@transcend-io/cli 8.38.1 → 9.0.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 (278) hide show
  1. package/dist/api-keys-C7JLTDUZ.mjs +2 -0
  2. package/dist/api-keys-C7JLTDUZ.mjs.map +1 -0
  3. package/dist/app-Dti3qTxV.mjs +131 -0
  4. package/dist/app-Dti3qTxV.mjs.map +1 -0
  5. package/dist/bin/bash-complete.mjs +3 -0
  6. package/dist/bin/bash-complete.mjs.map +1 -0
  7. package/dist/bin/cli.mjs +3 -0
  8. package/dist/bin/cli.mjs.map +1 -0
  9. package/dist/bin/deprecated-command.mjs +5 -0
  10. package/dist/bin/deprecated-command.mjs.map +1 -0
  11. package/dist/buildAIIntegrationType-Bk0EbFKV.mjs +2 -0
  12. package/dist/buildAIIntegrationType-Bk0EbFKV.mjs.map +1 -0
  13. package/dist/code-scanning-3tLsE1W5.mjs +4 -0
  14. package/dist/code-scanning-3tLsE1W5.mjs.map +1 -0
  15. package/dist/codecs-TR6p48v3.mjs +2 -0
  16. package/dist/codecs-TR6p48v3.mjs.map +1 -0
  17. package/dist/command-BlHM1nCd.mjs +9 -0
  18. package/dist/command-BlHM1nCd.mjs.map +1 -0
  19. package/dist/consent-manager-BoaaMjRQ.mjs +12 -0
  20. package/dist/consent-manager-BoaaMjRQ.mjs.map +1 -0
  21. package/dist/constants-DdeeX81W.mjs +2 -0
  22. package/dist/constants-DdeeX81W.mjs.map +1 -0
  23. package/dist/context-bkKpii_t.mjs +2 -0
  24. package/dist/{context-_8xfl0dt.cjs.map → context-bkKpii_t.mjs.map} +1 -1
  25. package/dist/cron-DOicA1l8.mjs +2 -0
  26. package/dist/cron-DOicA1l8.mjs.map +1 -0
  27. package/dist/data-inventory-OeEcogPl.mjs +75 -0
  28. package/dist/data-inventory-OeEcogPl.mjs.map +1 -0
  29. package/dist/dataFlowsToDataSilos-RAhfPV0l.mjs +2 -0
  30. package/dist/dataFlowsToDataSilos-RAhfPV0l.mjs.map +1 -0
  31. package/dist/done-input-validation-CcZtaz03.mjs +2 -0
  32. package/dist/{done-input-validation-DGckEJ5a.cjs.map → done-input-validation-CcZtaz03.mjs.map} +1 -1
  33. package/dist/enums-CyFTrzXY.mjs +2 -0
  34. package/dist/{enums-BZulhPFa.cjs.map → enums-CyFTrzXY.mjs.map} +1 -1
  35. package/dist/impl--Ov8Om49.mjs +2 -0
  36. package/dist/impl--Ov8Om49.mjs.map +1 -0
  37. package/dist/impl-4BP7gY61.mjs +2 -0
  38. package/dist/impl-4BP7gY61.mjs.map +1 -0
  39. package/dist/impl-B0d5M861.mjs +2 -0
  40. package/dist/impl-B0d5M861.mjs.map +1 -0
  41. package/dist/impl-B40z0Aoz2.mjs +2 -0
  42. package/dist/impl-B40z0Aoz2.mjs.map +1 -0
  43. package/dist/impl-B8CoAX4t.mjs +2 -0
  44. package/dist/impl-B8CoAX4t.mjs.map +1 -0
  45. package/dist/impl-BDKBhSiG2.mjs +2 -0
  46. package/dist/impl-BDKBhSiG2.mjs.map +1 -0
  47. package/dist/impl-BEzyqD_12.mjs +2 -0
  48. package/dist/impl-BEzyqD_12.mjs.map +1 -0
  49. package/dist/impl-BI4zCNs0.mjs +2 -0
  50. package/dist/impl-BI4zCNs0.mjs.map +1 -0
  51. package/dist/impl-BJ9Ge6Wf2.mjs +2 -0
  52. package/dist/impl-BJ9Ge6Wf2.mjs.map +1 -0
  53. package/dist/impl-BPz3SpXo2.mjs +2 -0
  54. package/dist/impl-BPz3SpXo2.mjs.map +1 -0
  55. package/dist/impl-BYBNi68b.mjs +5 -0
  56. package/dist/impl-BYBNi68b.mjs.map +1 -0
  57. package/dist/impl-Bh04BLeU2.mjs +2 -0
  58. package/dist/impl-Bh04BLeU2.mjs.map +1 -0
  59. package/dist/impl-BhMd6_J22.mjs +2 -0
  60. package/dist/impl-BhMd6_J22.mjs.map +1 -0
  61. package/dist/impl-BiWrlucD.mjs +2 -0
  62. package/dist/impl-BiWrlucD.mjs.map +1 -0
  63. package/dist/impl-BpMKYqSR.mjs +2 -0
  64. package/dist/{impl-B8rg6CMv.cjs.map → impl-BpMKYqSR.mjs.map} +1 -1
  65. package/dist/impl-BraVBCrF2.mjs +4 -0
  66. package/dist/impl-BraVBCrF2.mjs.map +1 -0
  67. package/dist/impl-BvTvjK72.mjs +2 -0
  68. package/dist/impl-BvTvjK72.mjs.map +1 -0
  69. package/dist/impl-BvZai1Pf2.mjs +2 -0
  70. package/dist/impl-BvZai1Pf2.mjs.map +1 -0
  71. package/dist/impl-C73Uh2Ze.mjs +2 -0
  72. package/dist/impl-C73Uh2Ze.mjs.map +1 -0
  73. package/dist/impl-CIJ6P1GD.mjs +3 -0
  74. package/dist/impl-CIJ6P1GD.mjs.map +1 -0
  75. package/dist/impl-CNiEzL3_2.mjs +2 -0
  76. package/dist/impl-CNiEzL3_2.mjs.map +1 -0
  77. package/dist/impl-CTPHR7O62.mjs +2 -0
  78. package/dist/impl-CTPHR7O62.mjs.map +1 -0
  79. package/dist/impl-CU29SrJb2.mjs +2 -0
  80. package/dist/impl-CU29SrJb2.mjs.map +1 -0
  81. package/dist/impl-CaTnsoDi.mjs +2 -0
  82. package/dist/{impl-BIjDq-3S.cjs.map → impl-CaTnsoDi.mjs.map} +1 -1
  83. package/dist/impl-CiQeM677.mjs +2 -0
  84. package/dist/impl-CiQeM677.mjs.map +1 -0
  85. package/dist/impl-CkY0wfCz.mjs +2 -0
  86. package/dist/impl-CkY0wfCz.mjs.map +1 -0
  87. package/dist/impl-CoZhgLjC.mjs +12 -0
  88. package/dist/impl-CoZhgLjC.mjs.map +1 -0
  89. package/dist/impl-CvxsioT4.mjs +2 -0
  90. package/dist/impl-CvxsioT4.mjs.map +1 -0
  91. package/dist/impl-D2HalFgB2.mjs +2 -0
  92. package/dist/impl-D2HalFgB2.mjs.map +1 -0
  93. package/dist/impl-DFNq8PBe.mjs +2 -0
  94. package/dist/impl-DFNq8PBe.mjs.map +1 -0
  95. package/dist/impl-DOgLpdLw.mjs +2 -0
  96. package/dist/impl-DOgLpdLw.mjs.map +1 -0
  97. package/dist/impl-DP757pBT.mjs +2 -0
  98. package/dist/impl-DP757pBT.mjs.map +1 -0
  99. package/dist/impl-DVDN007x.mjs +2 -0
  100. package/dist/impl-DVDN007x.mjs.map +1 -0
  101. package/dist/impl-DfKI4fmI.mjs +2 -0
  102. package/dist/impl-DfKI4fmI.mjs.map +1 -0
  103. package/dist/impl-DgsWGnhH.mjs +2 -0
  104. package/dist/impl-DgsWGnhH.mjs.map +1 -0
  105. package/dist/impl-DzSmriDw.mjs +2 -0
  106. package/dist/impl-DzSmriDw.mjs.map +1 -0
  107. package/dist/impl-EhTHDCC1.mjs +2 -0
  108. package/dist/{impl-JgMjiEBD.cjs.map → impl-EhTHDCC1.mjs.map} +1 -1
  109. package/dist/impl-J-dQqTZJ2.mjs +2 -0
  110. package/dist/impl-J-dQqTZJ2.mjs.map +1 -0
  111. package/dist/impl-SxwaNC4m2.mjs +2 -0
  112. package/dist/impl-SxwaNC4m2.mjs.map +1 -0
  113. package/dist/impl-fESuqAH1.mjs +2 -0
  114. package/dist/{impl-ChHjX-p0.cjs.map → impl-fESuqAH1.mjs.map} +1 -1
  115. package/dist/impl-gYrR3kIh.mjs +4 -0
  116. package/dist/impl-gYrR3kIh.mjs.map +1 -0
  117. package/dist/impl-iwjvzA7a.mjs +2 -0
  118. package/dist/impl-iwjvzA7a.mjs.map +1 -0
  119. package/dist/impl-nKY3m-Vx.mjs +2 -0
  120. package/dist/impl-nKY3m-Vx.mjs.map +1 -0
  121. package/dist/impl-qiK6VF4F2.mjs +2 -0
  122. package/dist/impl-qiK6VF4F2.mjs.map +1 -0
  123. package/dist/{index.d.cts → index.d.mts} +1760 -3516
  124. package/dist/index.mjs +5 -0
  125. package/dist/index.mjs.map +1 -0
  126. package/dist/logger-Bj782ZYD.mjs +2 -0
  127. package/dist/logger-Bj782ZYD.mjs.map +1 -0
  128. package/dist/manual-enrichment-CYoZNBjO.mjs +2 -0
  129. package/dist/manual-enrichment-CYoZNBjO.mjs.map +1 -0
  130. package/dist/mergeTranscendInputs-Coj_e2N3.mjs +2 -0
  131. package/dist/{mergeTranscendInputs-BIBCYbug.cjs.map → mergeTranscendInputs-Coj_e2N3.mjs.map} +1 -1
  132. package/dist/pooling-BkZAO1Zs.mjs +23 -0
  133. package/dist/pooling-BkZAO1Zs.mjs.map +1 -0
  134. package/dist/preference-management-BHj26bmE.mjs +7 -0
  135. package/dist/preference-management-BHj26bmE.mjs.map +1 -0
  136. package/dist/readTranscendYaml-DhKG1ViI.mjs +4 -0
  137. package/dist/readTranscendYaml-DhKG1ViI.mjs.map +1 -0
  138. package/dist/syncConfigurationToTranscend-wWSbGVrI.mjs +3010 -0
  139. package/dist/syncConfigurationToTranscend-wWSbGVrI.mjs.map +1 -0
  140. package/dist/uploadConsents-nsjKy1I4.mjs +2 -0
  141. package/dist/uploadConsents-nsjKy1I4.mjs.map +1 -0
  142. package/package.json +46 -49
  143. package/dist/api-keys-y8Txn6tT.cjs +0 -2
  144. package/dist/api-keys-y8Txn6tT.cjs.map +0 -1
  145. package/dist/app-_ZoYl64o.cjs +0 -131
  146. package/dist/app-_ZoYl64o.cjs.map +0 -1
  147. package/dist/bin/bash-complete.cjs +0 -3
  148. package/dist/bin/bash-complete.cjs.map +0 -1
  149. package/dist/bin/cli.cjs +0 -3
  150. package/dist/bin/cli.cjs.map +0 -1
  151. package/dist/bin/deprecated-command.cjs +0 -5
  152. package/dist/bin/deprecated-command.cjs.map +0 -1
  153. package/dist/buildAIIntegrationType-BwuCYR-o.cjs +0 -2
  154. package/dist/buildAIIntegrationType-BwuCYR-o.cjs.map +0 -1
  155. package/dist/chunk-Bmb41Sf3.cjs +0 -1
  156. package/dist/code-scanning-ByZQgqip.cjs +0 -4
  157. package/dist/code-scanning-ByZQgqip.cjs.map +0 -1
  158. package/dist/codecs-Bvmb8o9R.cjs +0 -2
  159. package/dist/codecs-Bvmb8o9R.cjs.map +0 -1
  160. package/dist/command-CLULRNcd.cjs +0 -9
  161. package/dist/command-CLULRNcd.cjs.map +0 -1
  162. package/dist/consent-manager-CJZ5GTmv.cjs +0 -12
  163. package/dist/consent-manager-CJZ5GTmv.cjs.map +0 -1
  164. package/dist/constants-CzmvL6Mw.cjs +0 -2
  165. package/dist/constants-CzmvL6Mw.cjs.map +0 -1
  166. package/dist/context-_8xfl0dt.cjs +0 -2
  167. package/dist/cron-Ts7kHP6_.cjs +0 -2
  168. package/dist/cron-Ts7kHP6_.cjs.map +0 -1
  169. package/dist/data-inventory-D0Tt_vAm.cjs +0 -75
  170. package/dist/data-inventory-D0Tt_vAm.cjs.map +0 -1
  171. package/dist/dataFlowsToDataSilos-B7nTxawV.cjs +0 -2
  172. package/dist/dataFlowsToDataSilos-B7nTxawV.cjs.map +0 -1
  173. package/dist/done-input-validation-DGckEJ5a.cjs +0 -2
  174. package/dist/enums-BZulhPFa.cjs +0 -2
  175. package/dist/impl-1qwMfsU4.cjs +0 -2
  176. package/dist/impl-1qwMfsU4.cjs.map +0 -1
  177. package/dist/impl-73q3K0b_.cjs +0 -2
  178. package/dist/impl-73q3K0b_.cjs.map +0 -1
  179. package/dist/impl-8HXqFDdD.cjs +0 -2
  180. package/dist/impl-8HXqFDdD.cjs.map +0 -1
  181. package/dist/impl-AZPWCkCp.cjs +0 -2
  182. package/dist/impl-AZPWCkCp.cjs.map +0 -1
  183. package/dist/impl-B61wd2KQ.cjs +0 -2
  184. package/dist/impl-B61wd2KQ.cjs.map +0 -1
  185. package/dist/impl-B8rg6CMv.cjs +0 -2
  186. package/dist/impl-BIjDq-3S.cjs +0 -2
  187. package/dist/impl-BPxZw3LN.cjs +0 -2
  188. package/dist/impl-BPxZw3LN.cjs.map +0 -1
  189. package/dist/impl-BczOEWXK.cjs +0 -2
  190. package/dist/impl-BczOEWXK.cjs.map +0 -1
  191. package/dist/impl-BeUsmMIp.cjs +0 -2
  192. package/dist/impl-BeUsmMIp.cjs.map +0 -1
  193. package/dist/impl-Bhv353rp.cjs +0 -2
  194. package/dist/impl-Bhv353rp.cjs.map +0 -1
  195. package/dist/impl-BiPKUZQ2.cjs +0 -2
  196. package/dist/impl-BiPKUZQ2.cjs.map +0 -1
  197. package/dist/impl-BvrbCovf.cjs +0 -12
  198. package/dist/impl-BvrbCovf.cjs.map +0 -1
  199. package/dist/impl-BxKSXO7j.cjs +0 -2
  200. package/dist/impl-BxKSXO7j.cjs.map +0 -1
  201. package/dist/impl-ByavdlGX.cjs +0 -2
  202. package/dist/impl-ByavdlGX.cjs.map +0 -1
  203. package/dist/impl-C6Vv_fyU.cjs +0 -2
  204. package/dist/impl-C6Vv_fyU.cjs.map +0 -1
  205. package/dist/impl-CGSBsFc7.cjs +0 -2
  206. package/dist/impl-CGSBsFc7.cjs.map +0 -1
  207. package/dist/impl-ChHjX-p0.cjs +0 -2
  208. package/dist/impl-ChqwjO34.cjs +0 -2
  209. package/dist/impl-ChqwjO34.cjs.map +0 -1
  210. package/dist/impl-CrieEyzk.cjs +0 -2
  211. package/dist/impl-CrieEyzk.cjs.map +0 -1
  212. package/dist/impl-Cru4riTc.cjs +0 -5
  213. package/dist/impl-Cru4riTc.cjs.map +0 -1
  214. package/dist/impl-CujcX7vE.cjs +0 -2
  215. package/dist/impl-CujcX7vE.cjs.map +0 -1
  216. package/dist/impl-D9OOb2JE.cjs +0 -2
  217. package/dist/impl-D9OOb2JE.cjs.map +0 -1
  218. package/dist/impl-DCKUxoWY.cjs +0 -2
  219. package/dist/impl-DCKUxoWY.cjs.map +0 -1
  220. package/dist/impl-DG_MFWMU.cjs +0 -2
  221. package/dist/impl-DG_MFWMU.cjs.map +0 -1
  222. package/dist/impl-DHIiB7cV.cjs +0 -2
  223. package/dist/impl-DHIiB7cV.cjs.map +0 -1
  224. package/dist/impl-DYHQz-Wu.cjs +0 -2
  225. package/dist/impl-DYHQz-Wu.cjs.map +0 -1
  226. package/dist/impl-D_4LdDL9.cjs +0 -2
  227. package/dist/impl-D_4LdDL9.cjs.map +0 -1
  228. package/dist/impl-D_tCWU8I.cjs +0 -2
  229. package/dist/impl-D_tCWU8I.cjs.map +0 -1
  230. package/dist/impl-DhKyE3ja.cjs +0 -2
  231. package/dist/impl-DhKyE3ja.cjs.map +0 -1
  232. package/dist/impl-DkyT66jZ.cjs +0 -2
  233. package/dist/impl-DkyT66jZ.cjs.map +0 -1
  234. package/dist/impl-DpkTAuVd.cjs +0 -2
  235. package/dist/impl-DpkTAuVd.cjs.map +0 -1
  236. package/dist/impl-DvFcMtV7.cjs +0 -4
  237. package/dist/impl-DvFcMtV7.cjs.map +0 -1
  238. package/dist/impl-Dzi2-R-5.cjs +0 -3
  239. package/dist/impl-Dzi2-R-5.cjs.map +0 -1
  240. package/dist/impl-Dzyo_6if.cjs +0 -2
  241. package/dist/impl-Dzyo_6if.cjs.map +0 -1
  242. package/dist/impl-HogBsNBk.cjs +0 -2
  243. package/dist/impl-HogBsNBk.cjs.map +0 -1
  244. package/dist/impl-JgMjiEBD.cjs +0 -2
  245. package/dist/impl-JkHt--m4.cjs +0 -4
  246. package/dist/impl-JkHt--m4.cjs.map +0 -1
  247. package/dist/impl-_wktLwfn.cjs +0 -2
  248. package/dist/impl-_wktLwfn.cjs.map +0 -1
  249. package/dist/impl-afJ-fKK4.cjs +0 -2
  250. package/dist/impl-afJ-fKK4.cjs.map +0 -1
  251. package/dist/impl-brt-L_kS.cjs +0 -2
  252. package/dist/impl-brt-L_kS.cjs.map +0 -1
  253. package/dist/impl-iuvcsdad.cjs +0 -2
  254. package/dist/impl-iuvcsdad.cjs.map +0 -1
  255. package/dist/impl-kmDIC1No.cjs +0 -2
  256. package/dist/impl-kmDIC1No.cjs.map +0 -1
  257. package/dist/impl-zSp6Nypz.cjs +0 -2
  258. package/dist/impl-zSp6Nypz.cjs.map +0 -1
  259. package/dist/index.cjs +0 -5
  260. package/dist/index.cjs.map +0 -1
  261. package/dist/logger-DQwEYtSS.cjs +0 -2
  262. package/dist/logger-DQwEYtSS.cjs.map +0 -1
  263. package/dist/manual-enrichment-CW8iihdb.cjs +0 -2
  264. package/dist/manual-enrichment-CW8iihdb.cjs.map +0 -1
  265. package/dist/mergeTranscendInputs-BIBCYbug.cjs +0 -2
  266. package/dist/pooling-Dw0a42I_.cjs +0 -23
  267. package/dist/pooling-Dw0a42I_.cjs.map +0 -1
  268. package/dist/preference-management-CkmW6Z91.cjs +0 -7
  269. package/dist/preference-management-CkmW6Z91.cjs.map +0 -1
  270. package/dist/readTranscendYaml-Cycz6RxW.cjs +0 -4
  271. package/dist/readTranscendYaml-Cycz6RxW.cjs.map +0 -1
  272. package/dist/syncConfigurationToTranscend-DkeLrq-I.cjs +0 -3009
  273. package/dist/syncConfigurationToTranscend-DkeLrq-I.cjs.map +0 -1
  274. package/dist/uploadConsents-zr1Hg-JE.cjs +0 -2
  275. package/dist/uploadConsents-zr1Hg-JE.cjs.map +0 -1
  276. /package/dist/bin/{bash-complete.d.cts → bash-complete.d.mts} +0 -0
  277. /package/dist/bin/{cli.d.cts → cli.d.mts} +0 -0
  278. /package/dist/bin/{deprecated-command.d.cts → deprecated-command.d.mts} +0 -0
@@ -1,3009 +0,0 @@
1
- const e=require(`./chunk-Bmb41Sf3.cjs`),t=require(`./constants-CzmvL6Mw.cjs`),n=require(`./enums-BZulhPFa.cjs`),r=require(`./logger-DQwEYtSS.cjs`);let i=require(`@transcend-io/privacy-types`),a=require(`@transcend-io/type-utils`),o=require(`node:fs`),s=require(`node:path`),c=require(`colors`);c=e.t(c);let l=require(`io-ts`);l=e.t(l);let u=require(`@transcend-io/airgap.js-types`),d=require(`@transcend-io/internationalization`),f=require(`bluebird`);f=e.t(f);let p=require(`graphql-request`),m=require(`inquirer`);m=e.t(m);let h=require(`inquirer-autocomplete-prompt`);h=e.t(h);let g=require(`fuzzysearch`);g=e.t(g);let _=require(`csv-parse/sync`),v=require(`got`);v=e.t(v);let y=require(`semver`);y=e.t(y);let b=require(`cli-progress`);b=e.t(b);let x=require(`io-ts-types`),S=require(`@transcend-io/persisted-state`),C=require(`fast-csv`);C=e.t(C);var w=/\s/;function T(e){for(var t=e.length;t--&&w.test(e.charAt(t)););return t}var E=T,D=/^\s+/;function O(e){return e&&e.slice(0,E(e)+1).replace(D,``)}var k=O,A=NaN,j=/^[-+]0x[0-9a-f]+$/i,M=/^0b[01]+$/i,N=/^0o[0-7]+$/i,P=parseInt;function F(e){if(typeof e==`number`)return e;if(t.z(e))return A;if(t.I(e)){var n=typeof e.valueOf==`function`?e.valueOf():e;e=t.I(n)?n+``:n}if(typeof e!=`string`)return e===0?e:+e;e=k(e);var r=M.test(e);return r||N.test(e)?P(e.slice(2),r?2:8):j.test(e)?A:+e}var ee=F,I=1/0,L=17976931348623157e292;function te(e){return e?(e=ee(e),e===I||e===-I?(e<0?-1:1)*L:e===e?e:0):e===0?e:0}var R=te;function ne(e){var t=R(e),n=t%1;return t===t?n?t-n:t:0}var re=ne;function ie(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var ae=ie;function oe(){}var se=oe,ce=800,le=16,ue=Date.now;function z(e){var t=0,n=0;return function(){var r=ue(),i=le-(r-n);if(n=r,i>0){if(++t>=ce)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var de=z;function fe(e){return function(){return e}}var pe=fe,me=t.P?function(e,n){return t.P(e,`toString`,{configurable:!0,enumerable:!1,value:pe(n),writable:!0})}:t.F,he=me,ge=de(he),_e=ge;function ve(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}var ye=ve;function be(e){return e!==e}var xe=be;function Se(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var Ce=Se;function we(e,t,n){return t===t?Ce(e,t,n):ye(e,xe,n)}var Te=we;function Ee(e,t){return!!(e!=null&&e.length)&&Te(e,t,0)>-1}var De=Ee,Oe=Math.max;function ke(e,t,n){return t=Oe(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=Oe(r.length-t,0),o=Array(a);++i<a;)o[i]=r[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=r[i];return s[t]=n(o),ae(e,this,s)}}var Ae=ke;function je(e,n){return _e(Ae(e,n,t.F),e+``)}var Me=je;function Ne(e,n,r){if(!t.I(r))return!1;var i=typeof n;return(i==`number`?t.A(r)&&t.N(n,r.length):i==`string`&&n in r)?t.j(r[n],e):!1}var Pe=Ne,Fe=t.V?t.V.isConcatSpreadable:void 0;function Ie(e){return t.L(e)||t.k(e)||!!(Fe&&e&&e[Fe])}var Le=Ie;function Re(e,n,r,i,a){var o=-1,s=e.length;for(r||=Le,a||=[];++o<s;){var c=e[o];n>0&&r(c)?n>1?Re(c,n-1,r,i,a):t.T(a,c):i||(a[a.length]=c)}return a}var ze=Re;function Be(e){return e!=null&&e.length?ze(e,1):[]}var Ve=Be;function He(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r<i;)a[r]=e[r+t];return a}var Ue=He;function We(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:Ue(e,t,n)}var Ge=We,Ke=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function qe(e){return Ke.test(e)}var Je=qe;function Ye(e){return e.split(``)}var Xe=Ye,Ze=`\\ud800-\\udfff`,Qe=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,$e=`\\ufe0e\\ufe0f`,et=`[`+Ze+`]`,tt=`[`+Qe+`]`,nt=`\\ud83c[\\udffb-\\udfff]`,rt=`(?:`+tt+`|`+nt+`)`,it=`[^`+Ze+`]`,at=`(?:\\ud83c[\\udde6-\\uddff]){2}`,ot=`[\\ud800-\\udbff][\\udc00-\\udfff]`,st=`\\u200d`,ct=rt+`?`,lt=`[`+$e+`]?`,ut=`(?:`+st+`(?:`+[it,at,ot].join(`|`)+`)`+lt+ct+`)*`,dt=lt+ct+ut,ft=`(?:`+[it+tt+`?`,tt,at,ot,et].join(`|`)+`)`,pt=RegExp(nt+`(?=`+nt+`)|`+ft+dt,`g`);function mt(e){return e.match(pt)||[]}var ht=mt;function gt(e){return Je(e)?ht(e):Xe(e)}var _t=gt;function vt(e){return function(n){n=t.D(n);var r=Je(n)?_t(n):void 0,i=r?r[0]:n.charAt(0),a=r?Ge(r,1).join(``):n.slice(1);return i[e]()+a}}var yt=vt,bt=yt(`toUpperCase`),xt=bt;function St(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}var Ct=St;function wt(e){return function(t){return e?.[t]}}var Tt=wt,Et=Tt({À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`s`}),Dt=Et,Ot=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,kt=RegExp(`[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]`,`g`);function At(e){return e=t.D(e),e&&e.replace(Ot,Dt).replace(kt,``)}var jt=At,Mt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Nt(e){return e.match(Mt)||[]}var Pt=Nt,Ft=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function It(e){return Ft.test(e)}var Lt=It,Rt=`\\ud800-\\udfff`,zt=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,Bt=`\\u2700-\\u27bf`,Vt=`a-z\\xdf-\\xf6\\xf8-\\xff`,Ht=`\\xac\\xb1\\xd7\\xf7`,Ut=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,Wt=`\\u2000-\\u206f`,Gt=` \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000`,Kt=`A-Z\\xc0-\\xd6\\xd8-\\xde`,qt=`\\ufe0e\\ufe0f`,Jt=Ht+Ut+Wt+Gt,Yt=`['’]`,Xt=`[`+Jt+`]`,Zt=`[`+zt+`]`,Qt=`\\d+`,$t=`[`+Bt+`]`,en=`[`+Vt+`]`,tn=`[^`+Rt+Jt+Qt+Bt+Vt+Kt+`]`,nn=`(?:`+Zt+`|\\ud83c[\\udffb-\\udfff])`,rn=`[^`+Rt+`]`,an=`(?:\\ud83c[\\udde6-\\uddff]){2}`,on=`[\\ud800-\\udbff][\\udc00-\\udfff]`,sn=`[`+Kt+`]`,cn=`\\u200d`,ln=`(?:`+en+`|`+tn+`)`,un=`(?:`+sn+`|`+tn+`)`,dn=`(?:`+Yt+`(?:d|ll|m|re|s|t|ve))?`,fn=`(?:`+Yt+`(?:D|LL|M|RE|S|T|VE))?`,pn=nn+`?`,mn=`[`+qt+`]?`,hn=`(?:`+cn+`(?:`+[rn,an,on].join(`|`)+`)`+mn+pn+`)*`,gn=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,_n=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,vn=mn+pn+hn,yn=`(?:`+[$t,an,on].join(`|`)+`)`+vn,bn=RegExp([sn+`?`+en+`+`+dn+`(?=`+[Xt,sn,`$`].join(`|`)+`)`,un+`+`+fn+`(?=`+[Xt,sn+ln,`$`].join(`|`)+`)`,sn+`?`+ln+`+`+dn,sn+`+`+fn,_n,gn,Qt,yn].join(`|`),`g`);function xn(e){return e.match(bn)||[]}var Sn=xn;function Cn(e,n,r){return e=t.D(e),n=r?void 0:n,n===void 0?Lt(e)?Sn(e):Pt(e):e.match(n)||[]}var wn=Cn,Tn=RegExp(`['’]`,`g`);function En(e){return function(t){return Ct(wn(jt(t).replace(Tn,``)),e,``)}}var Dn=En,On=Math.ceil,kn=Math.max;function An(e,t,n){t=(n?Pe(e,t,n):t===void 0)?1:kn(re(t),0);var r=e==null?0:e.length;if(!r||t<1)return[];for(var i=0,a=0,o=Array(On(r/t));i<r;)o[a++]=Ue(e,i,i+=t);return o}var B=An;function jn(e){return t.B(e)&&t.A(e)}var Mn=jn;function Nn(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}var Pn=Nn,Fn=200;function In(e,n,r,i){var a=-1,o=De,s=!0,c=e.length,l=[],u=n.length;if(!c)return l;r&&(n=t.R(n,t.O(r))),i?(o=Pn,s=!1):n.length>=Fn&&(o=t.S,s=!1,n=new t.C(n));outer:for(;++a<c;){var d=e[a],f=r==null?d:r(d);if(d=i||d!==0?d:0,s&&f===f){for(var p=u;p--;)if(n[p]===f)continue outer;l.push(d)}else o(n,f,i)||l.push(d)}return l}var Ln=In,Rn=Me(function(e,t){return Mn(e)?Ln(e,ze(t,1,Mn,!0)):[]}),V=Rn;function zn(e,n){var r=-1,i=t.A(e)?Array(e.length):[];return t.v(e,function(e,t,a){i[++r]=n(e,t,a)}),i}var Bn=zn,Vn=Object.prototype.hasOwnProperty,Hn=t._(function(e,n,r){Vn.call(e,r)?e[r].push(n):t.M(e,r,[n])}),Un=Hn;function Wn(e,n){var r={};return n=t.b(n,3),t.y(e,function(e,i,a){t.M(r,i,n(e,i,a))}),r}var Gn=Wn;function Kn(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var qn=Kn;function Jn(e,n){if(e!==n){var r=e!==void 0,i=e===null,a=e===e,o=t.z(e),s=n!==void 0,c=n===null,l=n===n,u=t.z(n);if(!c&&!u&&!o&&e>n||o&&s&&l&&!c&&!u||i&&s&&l||!r&&l||!a)return 1;if(!i&&!o&&!u&&e<n||u&&r&&a&&!i&&!o||c&&r&&a||!s&&a||!l)return-1}return 0}var Yn=Jn;function Xn(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=Yn(i[r],a[r]);if(c)return r>=s?c:c*(n[r]==`desc`?-1:1)}return e.index-t.index}var Zn=Xn;function Qn(e,n,r){n=n.length?t.R(n,function(e){return t.L(e)?function(n){return t.E(n,e.length===1?e[0]:e)}:e}):[t.F];var i=-1;return n=t.R(n,t.O(t.b)),qn(Bn(e,function(e,r,a){return{criteria:t.R(n,function(t){return t(e)}),index:++i,value:e}}),function(e,t){return Zn(e,t,r)})}var $n=Qn,er=Me(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Pe(e,t[0],t[1])?t=[]:n>2&&Pe(t[0],t[1],t[2])&&(t=[t[0]]),$n(e,ze(t,1),[])}),tr=er,nr=Dn(function(e,t,n){return e+(n?` `:``)+xt(t)}),rr=nr,ir=t.w&&1/t.x(new t.w([,-0]))[1]==1/0?function(e){return new t.w(e)}:se,ar=ir,or=200;function sr(e,n,r){var i=-1,a=De,o=e.length,s=!0,c=[],l=c;if(r)s=!1,a=Pn;else if(o>=or){var u=n?null:ar(e);if(u)return t.x(u);s=!1,a=t.S,l=new t.C}else l=n?[]:c;outer:for(;++i<o;){var d=e[i],f=n?n(d):d;if(d=r||d!==0?d:0,s&&f===f){for(var p=l.length;p--;)if(l[p]===f)continue outer;n&&l.push(f),c.push(d)}else a(l,f,r)||(l!==c&&l.push(f),c.push(d))}return c}var cr=sr;function lr(e){return e&&e.length?cr(e):[]}var H=lr;function ur(e,n){return e&&e.length?cr(e,t.b(n,2)):[]}var dr=ur;const{map:U,mapSeries:W}=f.default,fr=p.gql`
2
- query TranscendCliDataPoints(
3
- $filterBy: DataPointFiltersInput
4
- $first: Int!
5
- $offset: Int!
6
- ) {
7
- dataPoints(
8
- filterBy: $filterBy
9
- first: $first
10
- offset: $offset
11
- useMaster: false
12
- orderBy: [
13
- { field: createdAt, direction: ASC }
14
- { field: name, direction: ASC }
15
- ]
16
- ) {
17
- nodes {
18
- id
19
- title {
20
- defaultMessage
21
- }
22
- description {
23
- defaultMessage
24
- }
25
- owners {
26
- email
27
- }
28
- teams {
29
- name
30
- }
31
- name
32
- path
33
- actionSettings {
34
- type
35
- active
36
- }
37
- dataCollection {
38
- title {
39
- defaultMessage
40
- }
41
- }
42
- dbIntegrationQueries {
43
- query
44
- suggestedQuery
45
- requestType
46
- }
47
- }
48
- }
49
- }
50
- `,pr=p.gql`
51
- query TranscendCliDataPointCount($filterBy: DataPointFiltersInput) {
52
- dataPoints(filterBy: $filterBy, useMaster: false) {
53
- totalCount
54
- }
55
- }
56
- `,mr=p.gql`
57
- query TranscendCliSubDataPoints(
58
- $filterBy: SubDataPointFiltersInput
59
- $first: Int!
60
- $offset: Int!
61
- ) {
62
- subDataPoints(
63
- filterBy: $filterBy
64
- first: $first
65
- offset: $offset
66
- useMaster: false
67
- ) {
68
- nodes {
69
- id
70
- name
71
- description
72
- purposes {
73
- name
74
- purpose
75
- }
76
- categories {
77
- name
78
- category
79
- }
80
- accessRequestVisibilityEnabled
81
- erasureRequestRedactionEnabled
82
- attributeValues {
83
- attributeKey {
84
- name
85
- }
86
- name
87
- }
88
- }
89
- }
90
- }
91
- `,hr=p.gql`
92
- query TranscendCliSubDataPointsCount($filterBy: SubDataPointFiltersInput) {
93
- subDataPoints(filterBy: $filterBy, useMaster: false) {
94
- totalCount
95
- }
96
- }
97
- `,gr=p.gql`
98
- query TranscendCliSubDataPointGuesses(
99
- $filterBy: SubDataPointFiltersInput
100
- $first: Int!
101
- $offset: Int!
102
- ) {
103
- subDataPoints(
104
- filterBy: $filterBy
105
- first: $first
106
- offset: $offset
107
- useMaster: false
108
- ) {
109
- nodes {
110
- id
111
- name
112
- description
113
- purposes {
114
- name
115
- purpose
116
- }
117
- categories {
118
- name
119
- category
120
- }
121
- pendingCategoryGuesses {
122
- category {
123
- name
124
- category
125
- }
126
- status
127
- confidence
128
- classifierVersion
129
- }
130
- accessRequestVisibilityEnabled
131
- erasureRequestRedactionEnabled
132
- attributeValues {
133
- attributeKey {
134
- name
135
- }
136
- name
137
- }
138
- }
139
- }
140
- }
141
- `,_r=p.gql`
142
- mutation TranscendCliUpdateOrCreateDataPoint(
143
- $dataSiloId: ID!
144
- $name: String!
145
- $path: [String!]
146
- $title: String
147
- $description: String
148
- $ownerIds: [ID!]
149
- $ownerEmails: [String!]
150
- $teamNames: [String!]
151
- $teamIds: [ID!]
152
- $dataCollectionTag: String
153
- $querySuggestions: [DbIntegrationQuerySuggestionInput!]
154
- $enabledActions: [RequestActionObjectResolver!]
155
- $subDataPoints: [DataPointSubDataPointInput!]
156
- ) {
157
- updateOrCreateDataPoint(
158
- input: {
159
- dataSiloId: $dataSiloId
160
- name: $name
161
- path: $path
162
- title: $title
163
- teamNames: $teamNames
164
- ownerEmails: $ownerEmails
165
- dataCollectionTag: $dataCollectionTag
166
- description: $description
167
- ownerIds: $ownerIds
168
- teamIds: $teamIds
169
- querySuggestions: $querySuggestions
170
- enabledActions: $enabledActions
171
- subDataPoints: $subDataPoints
172
- }
173
- ) {
174
- dataPoint {
175
- id
176
- name
177
- }
178
- }
179
- }
180
- `,vr=p.gql`
181
- query TranscendCliDataPointCsvExport(
182
- $filterBy: DataPointFiltersInput
183
- $first: Int!
184
- ) {
185
- dataPoints(filterBy: $filterBy, first: $first, useMaster: false) {
186
- nodes {
187
- id
188
- title {
189
- defaultMessage
190
- }
191
- description {
192
- defaultMessage
193
- }
194
- owners {
195
- email
196
- }
197
- teams {
198
- name
199
- }
200
- name
201
- path
202
- }
203
- }
204
- }
205
- `,yr=p.gql`
206
- query TranscendCliEntryCount(
207
- $filterBy: UnstructuredSubDataPointRecommendationsFilterInput
208
- ) {
209
- unstructuredSubDataPointRecommendations(
210
- filterBy: $filterBy
211
- useMaster: false
212
- ) {
213
- totalCount
214
- }
215
- }
216
- `,br=p.gql`
217
- query TranscendCliDataSilos(
218
- $filterBy: DataSiloFiltersInput!
219
- $first: Int!
220
- $offset: Int!
221
- ) {
222
- dataSilos(
223
- filterBy: $filterBy
224
- first: $first
225
- offset: $offset
226
- orderBy: [
227
- { field: createdAt, direction: ASC }
228
- { field: title, direction: ASC }
229
- ]
230
- useMaster: false
231
- ) {
232
- nodes {
233
- id
234
- title
235
- link
236
- type
237
- catalog {
238
- hasAvcFunctionality
239
- }
240
- }
241
- }
242
- }
243
- `,xr=p.gql`
244
- query TranscendCliDataSiloExport(
245
- $filterBy: DataSiloFiltersInput!
246
- $first: Int!
247
- ) {
248
- dataSilos(filterBy: $filterBy, first: $first, useMaster: false) {
249
- nodes {
250
- id
251
- title
252
- }
253
- }
254
- }
255
- `,Sr=p.gql`
256
- query TranscendCliDataSilosEnriched(
257
- $filterBy: DataSiloFiltersInput!
258
- $first: Int!
259
- $offset: Int!
260
- ) {
261
- dataSilos(
262
- filterBy: $filterBy
263
- first: $first
264
- offset: $offset
265
- orderBy: [
266
- { field: createdAt, direction: ASC }
267
- { field: title, direction: ASC }
268
- ]
269
- useMaster: false
270
- ) {
271
- nodes {
272
- id
273
- title
274
- description
275
- type
276
- outerType
277
- link
278
- country
279
- countrySubDivision
280
- url
281
- notifyEmailAddress
282
- attributeValues {
283
- attributeKey {
284
- name
285
- }
286
- name
287
- }
288
- apiKeys {
289
- title
290
- }
291
- subjectBlocklist {
292
- type
293
- }
294
- identifiers {
295
- name
296
- isConnected
297
- }
298
- dependentDataSilos {
299
- title
300
- }
301
- owners {
302
- email
303
- }
304
- teams {
305
- id
306
- name
307
- }
308
- catalog {
309
- hasAvcFunctionality
310
- }
311
- isLive
312
- promptAVendorEmailSendFrequency
313
- promptAVendorEmailSendType
314
- promptAVendorEmailIncludeIdentifiersAttachment
315
- promptAVendorEmailCompletionLinkType
316
- manualWorkRetryFrequency
317
- discoveredBy {
318
- title
319
- }
320
- businessEntities {
321
- title
322
- }
323
- }
324
- }
325
- }
326
- `,Cr=p.gql`
327
- mutation TranscendCliUpdateDataSilo($input: UpdateDataSilosInput!) {
328
- updateDataSilos(input: $input) {
329
- clientMutationId
330
- dataSilos {
331
- id
332
- title
333
- }
334
- }
335
- }
336
- `,wr=p.gql`
337
- mutation TranscendCliCreateDataSilo($input: [CreateDataSilosInput!]!) {
338
- createDataSilos(input: $input) {
339
- dataSilos {
340
- id
341
- title
342
- }
343
- }
344
- }
345
- `,Tr=p.gql`
346
- query TranscendCliEnrichers($title: String, $first: Int!, $offset: Int!) {
347
- enrichers(
348
- filterBy: { text: $title }
349
- first: $first
350
- offset: $offset
351
- useMaster: false
352
- orderBy: [
353
- { field: createdAt, direction: ASC }
354
- { field: title, direction: ASC }
355
- ]
356
- ) {
357
- nodes {
358
- id
359
- title
360
- url
361
- type
362
- expirationDuration
363
- lookerQueryTitle
364
- testRegex
365
- transitionRequestStatus
366
- phoneNumbers
367
- regionList
368
- inputIdentifier {
369
- name
370
- }
371
- identifiers {
372
- name
373
- }
374
- dataSubjects {
375
- type
376
- }
377
- actions
378
- }
379
- }
380
- }
381
- `,Er=p.gql`
382
- query TranscendCliInitializer {
383
- initializer {
384
- id
385
- identifiers {
386
- name
387
- }
388
- }
389
- }
390
- `,Dr=p.gql`
391
- mutation TranscendCliCreateEnricher($input: EnricherInput!) {
392
- createEnricher(input: $input) {
393
- clientMutationId
394
- }
395
- }
396
- `,Or=p.gql`
397
- mutation TranscendCliUpdateEnricher($input: UpdateEnricherInput!) {
398
- updateEnricher(input: $input) {
399
- clientMutationId
400
- }
401
- }
402
- `,kr=p.gql`
403
- query TranscendCliCatalogs($first: Int!, $offset: Int!) {
404
- catalogs(first: $first, offset: $offset, filterBy: {}, useMaster: false) {
405
- nodes {
406
- integrationName
407
- title
408
- hasApiFunctionality
409
- }
410
- }
411
- }
412
- `,Ar=p.gql`
413
- query TranscendCliIdentifiers($first: Int!, $offset: Int!) {
414
- identifiers(
415
- first: $first
416
- offset: $offset
417
- useMaster: false
418
- orderBy: [
419
- { field: createdAt, direction: ASC }
420
- { field: name, direction: ASC }
421
- ]
422
- ) {
423
- nodes {
424
- id
425
- name
426
- type
427
- regex
428
- selectOptions
429
- privacyCenterVisibility
430
- dataSubjects {
431
- type
432
- }
433
- isRequiredInForm
434
- placeholder
435
- displayTitle {
436
- defaultMessage
437
- }
438
- displayDescription {
439
- defaultMessage
440
- }
441
- displayOrder
442
- isUniqueOnPreferenceStore
443
- }
444
- }
445
- }
446
- `,jr=p.gql`
447
- query TranscendCliNewIdentifierTypes {
448
- newIdentifierTypes {
449
- name
450
- }
451
- }
452
- `,Mr=p.gql`
453
- mutation TranscendCliCreateIdentifier($input: IdentifierInput!) {
454
- createIdentifier(input: $input) {
455
- identifier {
456
- id
457
- name
458
- }
459
- }
460
- }
461
- `,Nr=p.gql`
462
- mutation TranscendCliUpdateIdentifier($input: UpdateIdentifierInput!) {
463
- updateIdentifier(input: $input) {
464
- clientMutationId
465
- }
466
- }
467
- `,Pr=p.gql`
468
- query TranscendCliDataSubjects {
469
- internalSubjects {
470
- id
471
- title {
472
- defaultMessage
473
- }
474
- active
475
- type
476
- adminDashboardDefaultSilentMode
477
- actions {
478
- type
479
- }
480
- }
481
- }
482
- `,Fr=p.gql`
483
- mutation TranscendCliCreateDataSubject($type: String!) {
484
- createSubject(input: { type: $type, title: $type, subjectClass: OTHER }) {
485
- subject {
486
- id
487
- type
488
- }
489
- }
490
- }
491
- `,Ir=p.gql`
492
- mutation TranscendCliUpdateDataSubject($input: UpdateSubjectInput!) {
493
- updateSubject(input: $input) {
494
- clientMutationId
495
- }
496
- }
497
- `,Lr=p.gql`
498
- mutation TranscendCliToggleDataSubject($input: ToggleSubjectInput!) {
499
- toggleSubject(input: $input) {
500
- clientMutationId
501
- }
502
- }
503
- `,Rr=p.gql`
504
- query TranscendCliRepositories(
505
- $first: Int!
506
- $offset: Int!
507
- $input: RepositoryFiltersInput
508
- ) {
509
- repositories(
510
- first: $first
511
- offset: $offset
512
- filterBy: $input
513
- orderBy: [
514
- { field: createdAt, direction: ASC }
515
- { field: name, direction: ASC }
516
- ]
517
- ) {
518
- nodes {
519
- id
520
- name
521
- description
522
- url
523
- teams {
524
- id
525
- name
526
- }
527
- owners {
528
- id
529
- email
530
- }
531
- }
532
- }
533
- }
534
- `,zr=p.gql`
535
- mutation TranscendCliUpdateRepositories($input: UpdateRepositoriesInput!) {
536
- updateRepositories(input: $input) {
537
- clientMutationId
538
- repositories {
539
- id
540
- name
541
- url
542
- teams {
543
- id
544
- name
545
- }
546
- owners {
547
- id
548
- email
549
- }
550
- }
551
- }
552
- }
553
- `,Br=p.gql`
554
- mutation TranscendCliCreateRepository($input: CreateRepositoryInput!) {
555
- createRepository(input: $input) {
556
- clientMutationId
557
- repository {
558
- id
559
- name
560
- url
561
- teams {
562
- id
563
- name
564
- }
565
- owners {
566
- id
567
- email
568
- }
569
- }
570
- }
571
- }
572
- `,Vr=p.gql`
573
- query TranscendCliApiKeys($first: Int!, $offset: Int!, $titles: [String!]) {
574
- apiKeys(
575
- first: $first
576
- offset: $offset
577
- filterBy: { titles: $titles }
578
- useMaster: false
579
- orderBy: [
580
- { field: createdAt, direction: ASC }
581
- { field: title, direction: ASC }
582
- ]
583
- ) {
584
- nodes {
585
- id
586
- title
587
- }
588
- }
589
- }
590
- `,Hr=p.gql`
591
- mutation TranscendCliCreateApiKey($input: ApiKeyInput!) {
592
- createApiKey(input: $input) {
593
- apiKey {
594
- id
595
- apiKey
596
- title
597
- }
598
- }
599
- }
600
- `,Ur=p.gql`
601
- mutation TranscendCliDeleteApiKey($id: ID!) {
602
- deleteApiKey(id: $id) {
603
- clientMutationId
604
- }
605
- }
606
- `,Wr=p.gql`
607
- mutation TranscendCliCreatePreferenceAccessTokens(
608
- $input: CreatePrivacyCenterAccessTokensInput!
609
- ) {
610
- createPrivacyCenterAccessTokens(input: $input) {
611
- nodes {
612
- token
613
- }
614
- }
615
- }
616
- `,Gr=p.gql`
617
- mutation AddSiloDiscoveryResults(
618
- $pluginId: ID!
619
- $rawResults: [SiloDiscoveryRawResultInput!]!
620
- ) {
621
- addSiloDiscoveryResults(
622
- input: { pluginId: $pluginId, rawResults: $rawResults }
623
- ) {
624
- success
625
- }
626
- }
627
- `,Kr=p.gql`
628
- query Plugins($dataSiloId: String!, $type: PluginType!) {
629
- plugins(filterBy: { dataSiloId: $dataSiloId, type: $type, enabled: true }) {
630
- plugins {
631
- id
632
- dataSilo {
633
- type
634
- }
635
- }
636
- totalCount
637
- }
638
- }
639
- `,qr=p.gql`
640
- query TranscendCliTemplates($title: String, $first: Int!, $offset: Int!) {
641
- templates(
642
- filterBy: { text: $title }
643
- first: $first
644
- offset: $offset
645
- useMaster: false
646
- ) {
647
- nodes {
648
- id
649
- title
650
- subject {
651
- defaultMessage
652
- }
653
- template {
654
- defaultMessage
655
- }
656
- }
657
- }
658
- }
659
- `,Jr=p.gql`
660
- mutation TranscendCliCreateTemplate($title: String!) {
661
- createTemplate(input: { title: $title, template: "", subject: $title }) {
662
- clientMutationId
663
- }
664
- }
665
- `,Yr=p.gql`
666
- query TranscendCliOrganization {
667
- organization {
668
- sombra {
669
- customerUrl
670
- }
671
- }
672
- }
673
- `,Xr=p.gql`
674
- query TranscendCliAttributeKeys($first: Int!, $offset: Int!) {
675
- attributeKeys(
676
- filterBy: { enabledOn: [request] }
677
- first: $first
678
- useMaster: false
679
- offset: $offset
680
- ) {
681
- nodes {
682
- id
683
- name
684
- type
685
- }
686
- }
687
- }
688
- `,Zr=p.gql`
689
- query TranscendCliSoftwareDevelopmentKits(
690
- $first: Int!
691
- $offset: Int!
692
- $input: SoftwareDevelopmentKitFiltersInput
693
- ) {
694
- softwareDevelopmentKits(
695
- first: $first
696
- offset: $offset
697
- filterBy: $input
698
- orderBy: [
699
- { field: createdAt, direction: ASC }
700
- { field: name, direction: ASC }
701
- ]
702
- ) {
703
- nodes {
704
- id
705
- name
706
- description
707
- codePackageType
708
- documentationLinks
709
- repositoryUrl
710
- teams {
711
- id
712
- name
713
- }
714
- owners {
715
- id
716
- email
717
- }
718
- }
719
- }
720
- }
721
- `,Qr=p.gql`
722
- mutation TranscendCliUpdateSoftwareDevelopmentKits(
723
- $input: UpdateSoftwareDevelopmentKitsInput!
724
- ) {
725
- updateSoftwareDevelopmentKits(input: $input) {
726
- clientMutationId
727
- softwareDevelopmentKits {
728
- id
729
- name
730
- description
731
- codePackageType
732
- documentationLinks
733
- repositoryUrl
734
- teams {
735
- id
736
- name
737
- }
738
- owners {
739
- id
740
- email
741
- }
742
- }
743
- }
744
- }
745
- `,$r=p.gql`
746
- mutation TranscendCliCreateSoftwareDevelopmentKit(
747
- $input: CreateSoftwareDevelopmentKitInput!
748
- ) {
749
- createSoftwareDevelopmentKit(input: $input) {
750
- clientMutationId
751
- softwareDevelopmentKit {
752
- id
753
- name
754
- description
755
- codePackageType
756
- documentationLinks
757
- repositoryUrl
758
- teams {
759
- id
760
- name
761
- }
762
- owners {
763
- id
764
- email
765
- }
766
- }
767
- }
768
- }
769
- `,ei=p.gql`
770
- query TranscendCliCodePackages(
771
- $first: Int!
772
- $offset: Int!
773
- $input: CodePackageFiltersInput
774
- ) {
775
- codePackages(
776
- first: $first
777
- offset: $offset
778
- filterBy: $input
779
- orderBy: [
780
- { field: createdAt, direction: ASC }
781
- { field: name, direction: ASC }
782
- ]
783
- ) {
784
- nodes {
785
- id
786
- name
787
- description
788
- type
789
- relativePath
790
- teams {
791
- id
792
- name
793
- }
794
- owners {
795
- id
796
- email
797
- }
798
- repository {
799
- id
800
- name
801
- }
802
- dataSilo {
803
- id
804
- title
805
- type
806
- }
807
- }
808
- }
809
- }
810
- `,ti=p.gql`
811
- mutation TranscendCliUpdateCodePackages($input: UpdateCodePackagesInput!) {
812
- updateCodePackages(input: $input) {
813
- clientMutationId
814
- codePackages {
815
- id
816
- name
817
- description
818
- type
819
- relativePath
820
- teams {
821
- id
822
- name
823
- }
824
- owners {
825
- id
826
- email
827
- }
828
- repository {
829
- id
830
- name
831
- }
832
- dataSilo {
833
- id
834
- title
835
- type
836
- }
837
- }
838
- }
839
- }
840
- `,ni=p.gql`
841
- mutation TranscendCliCreateCodePackage($input: CreateCodePackageInput!) {
842
- createCodePackage(input: $input) {
843
- clientMutationId
844
- codePackage {
845
- id
846
- name
847
- description
848
- type
849
- relativePath
850
- teams {
851
- id
852
- name
853
- }
854
- owners {
855
- id
856
- email
857
- }
858
- repository {
859
- id
860
- name
861
- }
862
- dataSilo {
863
- id
864
- title
865
- type
866
- }
867
- }
868
- }
869
- }
870
- `,ri=p.gql`
871
- query TranscendCliPromptThreads(
872
- $first: Int!
873
- $offset: Int!
874
- $filterBy: PromptThreadFiltersInput!
875
- ) {
876
- promptThreads(first: $first, offset: $offset, filterBy: $filterBy) {
877
- nodes {
878
- id
879
- threadId
880
- slackMessageTs
881
- slackTeamId
882
- slackChannelId
883
- slackChannelName
884
- }
885
- }
886
- }
887
- `,ii=p.gql`
888
- query TranscendCliFetchPolicies($url: String!) {
889
- privacyCenterPolicies(lookup: { url: $url }) {
890
- id
891
- title {
892
- defaultMessage
893
- }
894
- disableEffectiveOn
895
- disabledLocales
896
- versions {
897
- effectiveOn
898
- content {
899
- defaultMessage
900
- }
901
- }
902
- }
903
- }
904
- `,ai=p.gql`
905
- mutation TranscendCliUpdatePolicies(
906
- $policies: [PolicyInput!]!
907
- $privacyCenterId: ID!
908
- ) {
909
- updatePolicies(
910
- input: {
911
- privacyCenterId: $privacyCenterId
912
- policies: $policies
913
- skipPublish: true
914
- }
915
- ) {
916
- clientMutationId
917
- }
918
- }
919
- `,oi=p.gql`
920
- query TranscendCliRequestsCount($filterBy: RequestFiltersInput!) {
921
- requests(filterBy: $filterBy, first: 0, useMaster: false) {
922
- totalCount
923
- }
924
- }
925
- `,si=p.gql`
926
- query TranscendCliRequests(
927
- $first: Int!
928
- $after: String
929
- $filterBy: RequestFiltersInput!
930
- ) {
931
- requests(
932
- filterBy: $filterBy
933
- first: $first
934
- after: $after
935
- orderBy: [
936
- { field: createdAt, direction: ASC }
937
- { field: id, direction: ASC }
938
- ]
939
- useMaster: false
940
- ) {
941
- nodes {
942
- id
943
- createdAt
944
- email
945
- link
946
- status
947
- details
948
- isTest
949
- locale
950
- origin
951
- isSilent
952
- coreIdentifier
953
- daysRemaining
954
- type
955
- subjectType
956
- country
957
- countrySubDivision
958
- purpose {
959
- title
960
- name
961
- consent
962
- enrichedPreferences {
963
- topic
964
- selectValues {
965
- id
966
- name
967
- preferenceOption {
968
- id
969
- slug
970
- title {
971
- defaultMessage
972
- }
973
- }
974
- }
975
- selectValue {
976
- id
977
- name
978
- }
979
- selectValue {
980
- id
981
- name
982
- }
983
- preferenceTopic {
984
- title {
985
- defaultMessage
986
- }
987
- id
988
- slug
989
- }
990
- name
991
- id
992
- booleanValue
993
- }
994
- }
995
- attributeValues {
996
- id
997
- name
998
- attributeKey {
999
- id
1000
- name
1001
- }
1002
- }
1003
- }
1004
- pageInfo {
1005
- endCursor
1006
- hasNextPage
1007
- }
1008
- }
1009
- }
1010
- `,ci=p.gql`
1011
- mutation TranscendCliApprovePrivacyRequest($input: CommunicationInput!) {
1012
- approveRequest(input: $input) {
1013
- request {
1014
- id
1015
- }
1016
- }
1017
- }
1018
- `,li=p.gql`
1019
- mutation TranscendCliCancelPrivacyRequest($input: CommunicationInput!) {
1020
- cancelRequest(input: $input) {
1021
- request {
1022
- id
1023
- }
1024
- }
1025
- }
1026
- `,ui=p.gql`
1027
- mutation TranscendCliUpdatePrivacyRequest($input: UpdateRequestInput!) {
1028
- updateRequest(input: $input) {
1029
- request {
1030
- id
1031
- }
1032
- }
1033
- }
1034
- `,di=p.gql`
1035
- mutation TranscendCliNotifyAdditionalTime($input: AdditionalTimeInput!) {
1036
- notifyAdditionalTime(input: $input) {
1037
- clientMutationId
1038
- }
1039
- }
1040
- `,fi=p.gql`
1041
- query TranscendCliFetchMessage {
1042
- translatedMessages {
1043
- id
1044
- defaultMessage
1045
- description
1046
- targetReactIntlId
1047
- translations {
1048
- locale
1049
- value
1050
- }
1051
- }
1052
- }
1053
- `,pi=p.gql`
1054
- mutation TranscendCliUpdateIntlMessages($messages: [MessageInput!]!) {
1055
- updateIntlMessages(input: { messages: $messages, skipPublish: true }) {
1056
- clientMutationId
1057
- }
1058
- }
1059
- `,mi=p.gql`
1060
- query TranscendCliRequestEnrichers(
1061
- $first: Int!
1062
- $offset: Int!
1063
- $requestId: ID!
1064
- ) {
1065
- requestEnrichers(
1066
- input: { requestId: $requestId }
1067
- first: $first
1068
- offset: $offset
1069
- useMaster: false
1070
- orderBy: [
1071
- { field: createdAt, direction: ASC }
1072
- { field: title, direction: ASC, model: enricher }
1073
- ]
1074
- ) {
1075
- nodes {
1076
- id
1077
- status
1078
- enricher {
1079
- id
1080
- type
1081
- title
1082
- }
1083
- }
1084
- totalCount
1085
- }
1086
- }
1087
- `,hi=p.gql`
1088
- mutation TranscendCliRetryRequestEnricher($requestEnricherId: ID!) {
1089
- retryRequestEnricher(id: $requestEnricherId) {
1090
- requestEnricher {
1091
- id
1092
- }
1093
- }
1094
- }
1095
- `,gi=p.gql`
1096
- mutation TranscendCliSkipRequestEnricher($requestEnricherId: ID!) {
1097
- skipRequestEnricher(id: $requestEnricherId) {
1098
- requestEnricher {
1099
- id
1100
- }
1101
- }
1102
- }
1103
- `,_i=`
1104
- id
1105
- title
1106
- status
1107
- index
1108
- questions {
1109
- id
1110
- title
1111
- index
1112
- type
1113
- subType
1114
- placeholder
1115
- description
1116
- isRequired
1117
- displayLogic
1118
- riskLogic
1119
- requireRiskEvaluation
1120
- requireRiskMatrixEvaluation
1121
- riskCategories {
1122
- id
1123
- title
1124
- }
1125
- riskFramework {
1126
- id
1127
- title
1128
- description
1129
- riskLevels {
1130
- id
1131
- title
1132
- }
1133
- riskCategories {
1134
- id
1135
- title
1136
- }
1137
- riskMatrixColumns {
1138
- id
1139
- title
1140
- }
1141
- riskMatrixRows {
1142
- id
1143
- title
1144
- }
1145
- riskMatrix {
1146
- id
1147
- title
1148
- }
1149
- creator {
1150
- id
1151
- email
1152
- name
1153
- }
1154
- riskMatrixRowTitle
1155
- riskMatrixColumnTitle
1156
- }
1157
- riskLevel {
1158
- id
1159
- title
1160
- }
1161
- reviewerRiskLevel {
1162
- id
1163
- title
1164
- }
1165
- riskLevelFromRiskMatrix {
1166
- id
1167
- title
1168
- }
1169
- answerOptions {
1170
- id
1171
- index
1172
- value
1173
- }
1174
- selectedAnswers {
1175
- ... on AssessmentAnswerInterface {
1176
- id
1177
- index
1178
- value
1179
- }
1180
- }
1181
- respondent {
1182
- id
1183
- email
1184
- name
1185
- }
1186
- attributeKey {
1187
- name
1188
- }
1189
- externalRespondentEmail
1190
- comments {
1191
- id
1192
- content
1193
- createdAt
1194
- updatedAt
1195
- author {
1196
- id
1197
- email
1198
- name
1199
- }
1200
- }
1201
- allowedMimeTypes
1202
- updatedAt
1203
- referenceId
1204
- previousSubmissions {
1205
- id
1206
- updatedAt
1207
- assessmentQuestionId
1208
- answers {
1209
- ... on AssessmentAnswerInterface {
1210
- id
1211
- index
1212
- value
1213
- }
1214
- }
1215
- }
1216
- allowSelectOther
1217
- syncModel
1218
- syncColumn
1219
- syncRowIds
1220
- syncOverride
1221
- }
1222
- assignees {
1223
- id
1224
- email
1225
- name
1226
- }
1227
- externalAssignees {
1228
- id
1229
- email
1230
- }
1231
- isReviewed
1232
- `,vi=p.gql`
1233
- query TranscendCliAssessments(
1234
- $first: Int!
1235
- $offset: Int!
1236
- $filterBy: AssessmentFormFiltersInput
1237
- ) {
1238
- assessmentForms(first: $first, offset: $offset, filterBy: $filterBy) {
1239
- nodes {
1240
- id
1241
- creator {
1242
- id
1243
- email
1244
- name
1245
- }
1246
- lastEditor {
1247
- id
1248
- email
1249
- name
1250
- }
1251
- title
1252
- description
1253
- status
1254
- assignees {
1255
- id
1256
- email
1257
- name
1258
- }
1259
- externalAssignees {
1260
- id
1261
- email
1262
- }
1263
- reviewers {
1264
- id
1265
- email
1266
- name
1267
- }
1268
- isLocked
1269
- isArchived
1270
- isExternallyCreated
1271
- dueDate
1272
- createdAt
1273
- updatedAt
1274
- assignedAt
1275
- submittedAt
1276
- approvedAt
1277
- rejectedAt
1278
- titleIsInternal
1279
- retentionSchedule {
1280
- id
1281
- type
1282
- durationDays
1283
- operation
1284
- }
1285
- attributeValues {
1286
- name
1287
- attributeKey {
1288
- name
1289
- }
1290
- }
1291
- sections {
1292
- ${_i}
1293
- }
1294
- assessmentGroup {
1295
- id
1296
- title
1297
- description
1298
- }
1299
- resources {
1300
- resourceType
1301
- ... on AttributeBusinessEntityResource {
1302
- id
1303
- title
1304
- }
1305
- ... on AttributeDataSiloResource {
1306
- id
1307
- title
1308
- }
1309
- ... on AttributeDataSubCategoryResource {
1310
- id
1311
- name
1312
- category
1313
- }
1314
- ... on AttributeSubDataPointResource {
1315
- id
1316
- name
1317
- }
1318
- ... on AttributeProcessingPurposeSubCategoryResource {
1319
- id
1320
- name
1321
- purpose
1322
- }
1323
- ... on AttributeRequestResource {
1324
- id
1325
- type
1326
- }
1327
- ... on AttributeVendorResource {
1328
- id
1329
- title
1330
- }
1331
- ... on AttributePromptResource {
1332
- id
1333
- title
1334
- }
1335
- ... on AttributePromptRunResource {
1336
- id
1337
- title
1338
- }
1339
- ... on AttributePromptGroupResource {
1340
- id
1341
- title
1342
- }
1343
- }
1344
- syncedRows {
1345
- resourceType
1346
- ... on AttributeBusinessEntityResource {
1347
- id
1348
- title
1349
- }
1350
- ... on AttributeDataSiloResource {
1351
- id
1352
- title
1353
- }
1354
- ... on AttributeDataSubCategoryResource {
1355
- id
1356
- name
1357
- category
1358
- }
1359
- ... on AttributeSubDataPointResource {
1360
- id
1361
- name
1362
- }
1363
- ... on AttributeProcessingPurposeSubCategoryResource {
1364
- id
1365
- name
1366
- purpose
1367
- }
1368
- ... on AttributeVendorResource {
1369
- id
1370
- title
1371
- }
1372
- }
1373
- }
1374
- }
1375
- }
1376
- `,yi=p.gql`
1377
- mutation TranscendCliImportOneTrustAssessmentForms(
1378
- $input: ImportOnetrustAssessmentsInput!
1379
- ) {
1380
- importOneTrustAssessmentForms(input: $input) {
1381
- assessmentForms {
1382
- id
1383
- title
1384
- }
1385
- }
1386
- }
1387
- `,bi=p.gql`
1388
- query TranscendCliPurposes(
1389
- $first: Int!
1390
- $offset: Int!
1391
- $filterBy: TrackingPurposeFiltersInput
1392
- $input: TrackingPurposeInput!
1393
- ) {
1394
- purposes(
1395
- first: $first
1396
- offset: $offset
1397
- filterBy: $filterBy
1398
- input: $input
1399
- ) {
1400
- nodes {
1401
- id
1402
- name
1403
- description
1404
- defaultConsent
1405
- trackingType
1406
- configurable
1407
- essential
1408
- showInConsentManager
1409
- isActive
1410
- displayOrder
1411
- optOutSignals
1412
- deletedAt
1413
- authLevel
1414
- showInPrivacyCenter
1415
- title
1416
- }
1417
- }
1418
- }
1419
- `,xi=p.gql`
1420
- query TranscendCliPreferenceTopics(
1421
- $first: Int!
1422
- $offset: Int!
1423
- $filterBy: PreferenceTopicFilterInput
1424
- ) {
1425
- preferenceTopics(first: $first, offset: $offset, filterBy: $filterBy) {
1426
- nodes {
1427
- id
1428
- slug
1429
- type
1430
- title {
1431
- id
1432
- defaultMessage
1433
- }
1434
- showInPrivacyCenter
1435
- displayDescription {
1436
- id
1437
- defaultMessage
1438
- }
1439
- defaultConfiguration
1440
- preferenceOptionValues {
1441
- slug
1442
- title {
1443
- id
1444
- defaultMessage
1445
- }
1446
- }
1447
- purpose {
1448
- trackingType
1449
- }
1450
- }
1451
- }
1452
- }
1453
- `,Si=p.gql`
1454
- query TranscendCliAssessmentTemplates(
1455
- $first: Int!
1456
- $offset: Int!
1457
- $filterBy: AssessmentFormTemplateFiltersInput
1458
- ) {
1459
- assessmentFormTemplates(
1460
- first: $first
1461
- offset: $offset
1462
- filterBy: $filterBy
1463
- ) {
1464
- nodes {
1465
- id
1466
- creator {
1467
- id
1468
- email
1469
- name
1470
- }
1471
- lastEditor {
1472
- id
1473
- email
1474
- name
1475
- }
1476
- title
1477
- description
1478
- status
1479
- source
1480
- parentId
1481
- isLocked
1482
- isArchived
1483
- createdAt
1484
- updatedAt
1485
- retentionSchedule {
1486
- id
1487
- type
1488
- durationDays
1489
- operation
1490
- createdAt
1491
- updatedAt
1492
- }
1493
- assessmentEmailSet {
1494
- id
1495
- title
1496
- description
1497
- isDefault
1498
- templates {
1499
- id
1500
- title
1501
- }
1502
- }
1503
- sections {
1504
- ${_i}
1505
- }
1506
- }
1507
- }
1508
- }
1509
- `,Ci=p.gql`
1510
- query TranscendCliPrompts(
1511
- $first: Int!
1512
- $offset: Int!
1513
- $filterBy: PromptFiltersInput
1514
- ) {
1515
- prompts(
1516
- first: $first
1517
- orderBy: [{ field: title, direction: ASC }]
1518
- offset: $offset
1519
- filterBy: $filterBy
1520
- ) {
1521
- nodes {
1522
- id
1523
- title
1524
- status
1525
- content
1526
- temperature
1527
- topP
1528
- maxTokensToSample
1529
- }
1530
- }
1531
- }
1532
- `,wi=p.gql`
1533
- query TranscendCliPromptPartials($first: Int!, $offset: Int!) {
1534
- promptPartials(first: $first, offset: $offset) {
1535
- nodes {
1536
- id
1537
- title
1538
- content
1539
- }
1540
- }
1541
- }
1542
- `,Ti=p.gql`
1543
- query TranscendCliPromptGroups($first: Int!, $offset: Int!) {
1544
- promptGroups(
1545
- first: $first
1546
-
1547
- offset: $offset
1548
- ) {
1549
- nodes {
1550
- id
1551
- title
1552
- description
1553
- prompts {
1554
- title
1555
- }
1556
- }
1557
- }
1558
- }
1559
- `,Ei=p.gql`
1560
- query TranscendCliPromptsWithVariables($input: PromptsWithVariablesInput!) {
1561
- promptsWithVariables(input: $input) {
1562
- prompts {
1563
- id
1564
- title
1565
- content
1566
- status
1567
- temperature
1568
- topP
1569
- maxTokensToSample
1570
- responseFormat
1571
- }
1572
- promptPartials {
1573
- id
1574
- title
1575
- content
1576
- slug
1577
- }
1578
- calculatedVariables {
1579
- data
1580
- name
1581
- }
1582
- runtimeVariables {
1583
- name
1584
- }
1585
- }
1586
- }
1587
- `,Di=p.gql`
1588
- mutation TranscendCliUpdatePrompts($input: UpdatePromptsInput!) {
1589
- updatePrompts(input: $input) {
1590
- clientMutationId
1591
- }
1592
- }
1593
- `,Oi=p.gql`
1594
- mutation TranscendCliCreatePrompt($input: CreatePromptInput!) {
1595
- createPrompt(input: $input) {
1596
- clientMutationId
1597
- prompt {
1598
- id
1599
- }
1600
- }
1601
- }
1602
- `,ki=p.gql`
1603
- mutation TranscendCliUpdatePromptPartials(
1604
- $input: UpdatePromptPartialsInput!
1605
- ) {
1606
- updatePromptPartials(input: $input) {
1607
- clientMutationId
1608
- }
1609
- }
1610
- `,Ai=p.gql`
1611
- mutation TranscendCliCreatePromptPartial($input: CreatePromptPartialInput!) {
1612
- createPromptPartial(input: $input) {
1613
- clientMutationId
1614
- promptPartial {
1615
- id
1616
- }
1617
- }
1618
- }
1619
- `,ji=p.gql`
1620
- mutation TranscendCliUpdatePromptGroups($input: UpdatePromptGroupsInput!) {
1621
- updatePromptGroups(input: $input) {
1622
- clientMutationId
1623
- }
1624
- }
1625
- `,Mi=p.gql`
1626
- mutation TranscendCliCreatePromptPartial($input: CreatePromptGroupInput!) {
1627
- createPromptGroup(input: $input) {
1628
- clientMutationId
1629
- promptGroup {
1630
- id
1631
- }
1632
- }
1633
- }
1634
- `,Ni=p.gql`
1635
- query TranscendCliRequestDataSilos(
1636
- $first: Int!
1637
- $offset: Int!
1638
- $filterBy: RequestDataSiloFiltersInput!
1639
- ) {
1640
- requestDataSilos(
1641
- filterBy: $filterBy
1642
- first: $first
1643
- offset: $offset
1644
- useMaster: false
1645
- orderBy: [
1646
- { field: createdAt, direction: DESC }
1647
- { field: title, direction: ASC, model: dataSilo }
1648
- ]
1649
- ) {
1650
- nodes {
1651
- id
1652
- }
1653
- totalCount
1654
- }
1655
- }
1656
- `,Pi=p.gql`
1657
- mutation TranscendCliMarkRequestDataSiloCompleted(
1658
- $requestDataSiloId: ID!
1659
- $status: UpdateRequestDataSiloStatus!
1660
- ) {
1661
- changeRequestDataSiloStatus(
1662
- input: { id: $requestDataSiloId, status: $status }
1663
- ) {
1664
- requestDataSilo {
1665
- id
1666
- }
1667
- }
1668
- }
1669
- `,Fi=p.gql`
1670
- mutation TranscendCliRetryRequestDataSilo($requestDataSiloId: ID!) {
1671
- retryRequestDataSilo(id: $requestDataSiloId) {
1672
- requestDataSilo {
1673
- id
1674
- }
1675
- }
1676
- }
1677
- `,Ii=p.gql`
1678
- query TranscendCliListReducedRequestsForDataSiloCount(
1679
- $input: BulkCompletionReducedRequestInput!
1680
- ) {
1681
- listReducedRequestsForDataSilo(input: $input) {
1682
- totalCount
1683
- }
1684
- }
1685
- `,Li=p.gql`
1686
- query TranscendCliTeams(
1687
- $first: Int!
1688
- $offset: Int!
1689
- $input: TeamFiltersInput
1690
- ) {
1691
- teams(
1692
- first: $first
1693
- offset: $offset
1694
- filterBy: $input
1695
- orderBy: [
1696
- { field: createdAt, direction: ASC }
1697
- { field: name, direction: ASC }
1698
- ]
1699
- ) {
1700
- nodes {
1701
- id
1702
- name
1703
- description
1704
- ssoDepartment
1705
- ssoGroup
1706
- ssoTitle
1707
- users {
1708
- id
1709
- email
1710
- name
1711
- }
1712
- scopes {
1713
- id
1714
- name
1715
- title
1716
- }
1717
- }
1718
- }
1719
- }
1720
- `,Ri=p.gql`
1721
- mutation TranscendCliCreateTeam($input: TeamInput!) {
1722
- createTeam(input: $input) {
1723
- team {
1724
- id
1725
- name
1726
- }
1727
- }
1728
- }
1729
- `,zi=p.gql`
1730
- mutation TranscendCliUpdateTeam($input: UpdateTeamInput!) {
1731
- updateTeam(input: $input) {
1732
- team {
1733
- id
1734
- name
1735
- }
1736
- }
1737
- }
1738
- `,Bi=p.gql`
1739
- mutation TranscendCliRemoveRequestIdentifiers(
1740
- $input: RemoveRequestIdentifiersInput!
1741
- ) {
1742
- removeRequestIdentifiers(input: $input) {
1743
- count
1744
- }
1745
- }
1746
- `,Vi=p.gql`
1747
- query TranscendCliRequestIdentifiers(
1748
- $first: Int!
1749
- $offset: Int!
1750
- $requestIds: [ID!]
1751
- $updatedAtBefore: Date
1752
- $updatedAtAfter: Date
1753
- ) {
1754
- requestIdentifiers(
1755
- input: {
1756
- requestIds: $requestIds
1757
- updatedAtBefore: $updatedAtBefore
1758
- updatedAtAfter: $updatedAtAfter
1759
- }
1760
- first: $first
1761
- offset: $offset
1762
- useMaster: false
1763
- orderBy: [
1764
- { field: createdAt, direction: ASC }
1765
- { field: name, direction: ASC }
1766
- ]
1767
- ) {
1768
- nodes {
1769
- id
1770
- name
1771
- isVerifiedAtLeastOnce
1772
- }
1773
- totalCount
1774
- }
1775
- }
1776
- `,Hi=p.gql`
1777
- query TranscendCliUsers(
1778
- $first: Int!
1779
- $offset: Int!
1780
- $input: UserFiltersInput
1781
- ) {
1782
- users(
1783
- first: $first
1784
- offset: $offset
1785
- filterBy: $input
1786
- orderBy: [
1787
- { field: createdAt, direction: ASC }
1788
- { field: name, direction: ASC }
1789
- ]
1790
- ) {
1791
- nodes {
1792
- id
1793
- name
1794
- email
1795
- }
1796
- }
1797
- }
1798
- `,Ui=p.gql`
1799
- query TranscendCliRequestFiles(
1800
- $first: Int!
1801
- $offset: Int!
1802
- $filterBy: RequestFileFiltersInput!
1803
- ) {
1804
- requestFiles(
1805
- filterBy: $filterBy
1806
- first: $first
1807
- offset: $offset
1808
- orderBy: [
1809
- { field: createdAt, direction: ASC }
1810
- { field: id, direction: ASC }
1811
- ]
1812
- ) {
1813
- nodes {
1814
- remoteId
1815
- fileName
1816
- }
1817
- }
1818
- }
1819
- `,Wi=p.gql`
1820
- query TranscendCliBulkRequestFiles(
1821
- $filterBy: BulkRequestFilesFiltersInput!
1822
- $first: Int!
1823
- $after: String
1824
- ) {
1825
- bulkRequestFiles(filterBy: $filterBy, first: $first, after: $after) {
1826
- nodes {
1827
- remoteId
1828
- fileName
1829
- }
1830
- pageInfo {
1831
- hasNextPage
1832
- endCursor
1833
- }
1834
- }
1835
- }
1836
- `,Gi=p.gql`
1837
- mutation TranscendCliReportPromptRun($input: ReportPromptRunInput!) {
1838
- reportPromptRun(input: $input) {
1839
- clientMutationId
1840
- promptRun {
1841
- id
1842
- }
1843
- }
1844
- }
1845
- `,Ki=p.gql`
1846
- mutation TranscendCliAddMessagesToPromptRun(
1847
- $input: AddMessagesToPromptRunInput!
1848
- ) {
1849
- addMessagesToPromptRun(input: $input) {
1850
- clientMutationId
1851
- promptRun {
1852
- id
1853
- }
1854
- }
1855
- }
1856
- `,qi=p.gql`
1857
- query TranscendCliGlobalActionItemCollectionss(
1858
- $filterBy: GlobalActionItemCollectionFiltersInput!
1859
- ) {
1860
- globalActionItemCollections(filterBy: $filterBy) {
1861
- nodes {
1862
- id
1863
- title
1864
- description
1865
- hidden
1866
- productLine
1867
- }
1868
- }
1869
- }
1870
- `,Ji=p.gql`
1871
- mutation TranscendCliCreateActionItemCollection(
1872
- $input: CreateActionItemCollectionInput!
1873
- ) {
1874
- createActionItemCollection(input: $input) {
1875
- created {
1876
- id
1877
- title
1878
- }
1879
- }
1880
- }
1881
- `,Yi=p.gql`
1882
- mutation TranscendCliUpdateActionItemCollection(
1883
- $input: UpdateActionItemCollectionInput!
1884
- ) {
1885
- updateActionItemCollection(input: $input) {
1886
- clientMutationId
1887
- }
1888
- }
1889
- `,Xi=p.gql`
1890
- query TranscendCliAttributes($first: Int!, $offset: Int!) {
1891
- attributeKeys(first: $first, offset: $offset, useMaster: false) {
1892
- nodes {
1893
- id
1894
- isCustom
1895
- description
1896
- enabledOn
1897
- name
1898
- type
1899
- }
1900
- }
1901
- }
1902
- `,Zi=p.gql`
1903
- mutation TranscendCliCreateAttributeValues(
1904
- $input: [CreateAttributeValuesInput!]!
1905
- ) {
1906
- createAttributeValues(input: $input) {
1907
- clientMutationId
1908
- }
1909
- }
1910
- `,Qi=p.gql`
1911
- mutation TranscendCliUpdateAttributeValues(
1912
- $input: [UpdateAttributeValueInput!]!
1913
- ) {
1914
- updateAttributeValues(input: $input) {
1915
- clientMutationId
1916
- }
1917
- }
1918
- `,$i=p.gql`
1919
- mutation TranscendCliDeleteAttributeValue($id: ID!) {
1920
- deleteAttributeValue(id: $id) {
1921
- clientMutationId
1922
- }
1923
- }
1924
- `,ea=p.gql`
1925
- query TranscendCliAttributeValues(
1926
- $first: Int!
1927
- $offset: Int!
1928
- $attributeKeyId: ID!
1929
- ) {
1930
- attributeValues(
1931
- first: $first
1932
- offset: $offset
1933
- useMaster: false
1934
- filterBy: { attributeKeys: [$attributeKeyId] }
1935
- ) {
1936
- nodes {
1937
- id
1938
- name
1939
- description
1940
- color
1941
- }
1942
- }
1943
- }
1944
- `,ta=p.gql`
1945
- mutation TranscendCliCreateAttribute(
1946
- $name: String!
1947
- $type: AttributeKeyType!
1948
- $description: String
1949
- $enabledOn: [AttributeSupportedResourceType!]
1950
- ) {
1951
- createAttributeKey(
1952
- input: {
1953
- name: $name
1954
- type: $type
1955
- description: $description
1956
- enabledOn: $enabledOn
1957
- }
1958
- ) {
1959
- clientMutationId
1960
- attributeKey {
1961
- id
1962
- }
1963
- }
1964
- }
1965
- `,na=p.gql`
1966
- mutation TranscendCliCreateAttribute(
1967
- $attributeKeyId: ID!
1968
- $description: String
1969
- $enabledOn: [AttributeSupportedResourceType!]
1970
- ) {
1971
- updateAttributeKey(
1972
- input: {
1973
- id: $attributeKeyId
1974
- description: $description
1975
- enabledOn: $enabledOn
1976
- }
1977
- ) {
1978
- clientMutationId
1979
- attributeKey {
1980
- id
1981
- }
1982
- }
1983
- }
1984
- `,ra=p.gql`
1985
- mutation TranscendCliSetResourceAttributes(
1986
- $input: SetResourceAttributesInput!
1987
- ) {
1988
- setResourceAttributes(input: $input) {
1989
- clientMutationId
1990
- }
1991
- }
1992
- `,ia=p.gql`
1993
- query TranscendCliExperiences($first: Int!, $offset: Int!) {
1994
- experiences(first: $first, offset: $offset, useMaster: false) {
1995
- nodes {
1996
- id
1997
- name
1998
- displayName
1999
- regions {
2000
- countrySubDivision
2001
- country
2002
- }
2003
- operator
2004
- displayPriority
2005
- onConsentExpiry
2006
- consentExpiry
2007
- viewState
2008
- purposes {
2009
- name
2010
- trackingType
2011
- }
2012
- optedOutPurposes {
2013
- name
2014
- trackingType
2015
- }
2016
- browserLanguages
2017
- browserTimeZones
2018
- }
2019
- }
2020
- }
2021
- `,aa=p.gql`
2022
- query TranscendCliConsentPartitions($first: Int!, $offset: Int!) {
2023
- consentPartitions(first: $first, offset: $offset) {
2024
- nodes {
2025
- id
2026
- name
2027
- partition
2028
- }
2029
- }
2030
- }
2031
- `,oa=p.gql`
2032
- mutation TranscendCliCreateDataFlows(
2033
- $dataFlows: [DataFlowInput!]!
2034
- $airgapBundleId: ID!
2035
- $classifyService: Boolean
2036
- ) {
2037
- createDataFlows(
2038
- input: {
2039
- airgapBundleId: $airgapBundleId
2040
- dataFlows: $dataFlows
2041
- classifyService: $classifyService
2042
- }
2043
- ) {
2044
- dataFlows {
2045
- id
2046
- }
2047
- }
2048
- }
2049
- `,sa=p.gql`
2050
- mutation TranscendCliUpdateDataFlows(
2051
- $airgapBundleId: ID!
2052
- $dataFlows: [UpdateDataFlowInput!]!
2053
- $classifyService: Boolean
2054
- ) {
2055
- updateDataFlows(
2056
- input: {
2057
- airgapBundleId: $airgapBundleId
2058
- dataFlows: $dataFlows
2059
- classifyService: $classifyService
2060
- }
2061
- ) {
2062
- dataFlows {
2063
- id
2064
- }
2065
- }
2066
- }
2067
- `,ca=p.gql`
2068
- mutation TranscendCliUpdateOrCreateCookies(
2069
- $cookies: [UpdateOrCreateCookieInput!]!
2070
- $airgapBundleId: ID!
2071
- ) {
2072
- updateOrCreateCookies(
2073
- input: { airgapBundleId: $airgapBundleId, cookies: $cookies }
2074
- ) {
2075
- clientMutationId
2076
- }
2077
- }
2078
- `,la=p.gql`
2079
- query TranscendCliDataFlows(
2080
- $first: Int!
2081
- $airgapBundleId: ID!
2082
- $offset: Int!
2083
- $status: ConsentTrackerStatus
2084
- $showZeroActivity: Boolean
2085
- ) {
2086
- dataFlows(
2087
- first: $first
2088
- offset: $offset
2089
- filterBy: { status: $status, showZeroActivity: $showZeroActivity }
2090
- input: { airgapBundleId: $airgapBundleId }
2091
- orderBy: [
2092
- { field: createdAt, direction: ASC }
2093
- { field: value, direction: ASC }
2094
- ]
2095
- useMaster: false
2096
- ) {
2097
- nodes {
2098
- id
2099
- value
2100
- type
2101
- description
2102
- trackingType
2103
- service {
2104
- integrationName
2105
- }
2106
- source
2107
- status
2108
- owners {
2109
- email
2110
- }
2111
- teams {
2112
- name
2113
- }
2114
- attributeValues {
2115
- name
2116
- attributeKey {
2117
- name
2118
- }
2119
- }
2120
- }
2121
- }
2122
- }
2123
- `,ua=p.gql`
2124
- query TranscendCliCookies(
2125
- $first: Int!
2126
- $offset: Int!
2127
- $airgapBundleId: ID!
2128
- $status: ConsentTrackerStatus
2129
- ) {
2130
- cookies(
2131
- first: $first
2132
- offset: $offset
2133
- filterBy: { status: $status }
2134
- input: { airgapBundleId: $airgapBundleId }
2135
- orderBy: [
2136
- { field: createdAt, direction: ASC }
2137
- { field: name, direction: ASC }
2138
- ]
2139
- useMaster: false
2140
- ) {
2141
- nodes {
2142
- id
2143
- name
2144
- isRegex
2145
- description
2146
- trackingPurposes
2147
- service {
2148
- integrationName
2149
- }
2150
- source
2151
- status
2152
- owners {
2153
- email
2154
- }
2155
- teams {
2156
- name
2157
- }
2158
- attributeValues {
2159
- name
2160
- attributeKey {
2161
- name
2162
- }
2163
- }
2164
- }
2165
- }
2166
- }
2167
- `,da=p.gql`
2168
- query TranscendCliFetchConsentManagerId {
2169
- consentManager {
2170
- consentManager {
2171
- id
2172
- }
2173
- }
2174
- }
2175
- `,fa=p.gql`
2176
- query TranscendCliFetchConsentManager {
2177
- consentManager {
2178
- consentManager {
2179
- id
2180
- bundleURL
2181
- testBundleURL
2182
- configuration {
2183
- domains
2184
- consentPrecedence
2185
- unknownRequestPolicy
2186
- unknownCookiePolicy
2187
- syncEndpoint
2188
- telemetryPartitioning
2189
- signedIabAgreement
2190
- syncGroups
2191
- partition
2192
- }
2193
- partition {
2194
- partition
2195
- }
2196
- }
2197
- }
2198
- }
2199
- `,pa=p.gql`
2200
- query TranscendCliFetchConsentManagerTheme($airgapBundleId: ID!) {
2201
- consentManagerTheme(input: { airgapBundleId: $airgapBundleId }) {
2202
- theme {
2203
- primaryColor
2204
- fontColor
2205
- privacyPolicy
2206
- prompt
2207
- }
2208
- }
2209
- }
2210
- `,ma=p.gql`
2211
- mutation TranscendCliCreateConsentManager($privacyCenterId: ID!) {
2212
- createConsentManager(input: { privacyCenterId: $privacyCenterId }) {
2213
- consentManager {
2214
- id
2215
- }
2216
- }
2217
- }
2218
- `,ha=p.gql`
2219
- mutation TranscendCliUpdateConsentManager(
2220
- $airgapBundleId: ID!
2221
- $version: String!
2222
- ) {
2223
- updateConsentManager(id: $airgapBundleId, input: { version: $version }) {
2224
- clientMutationId
2225
- }
2226
- }
2227
- `,ga=p.gql`
2228
- mutation TranscendCliUpdateConsentManagerToLatest(
2229
- $airgapBundleId: ID!
2230
- $bundleType: ConsentBundleType!
2231
- ) {
2232
- updateConsentManagerToLatestVersion(
2233
- id: $airgapBundleId
2234
- input: { bundleType: $bundleType }
2235
- ) {
2236
- clientMutationId
2237
- }
2238
- }
2239
- `,_a=p.gql`
2240
- mutation TranscendCliDeployConsentManager(
2241
- $airgapBundleId: ID!
2242
- $bundleType: ConsentBundleType!
2243
- ) {
2244
- deployConsentManagerBundle(
2245
- id: $airgapBundleId
2246
- input: { bundleType: $bundleType }
2247
- ) {
2248
- clientMutationId
2249
- }
2250
- }
2251
- `,va=p.gql`
2252
- mutation TranscendCliUpdateConsentManagerDomains(
2253
- $airgapBundleId: ID!
2254
- $domains: [String!]!
2255
- ) {
2256
- updateConsentManagerDomains(
2257
- input: { id: $airgapBundleId, domains: $domains }
2258
- ) {
2259
- clientMutationId
2260
- }
2261
- }
2262
- `,ya=p.gql`
2263
- mutation TranscendCliUpdateConsentManagerPartition(
2264
- $airgapBundleId: ID!
2265
- $partitionId: ID!
2266
- ) {
2267
- updateConsentManagerPartition(
2268
- input: { id: $airgapBundleId, partitionId: $partitionId }
2269
- ) {
2270
- clientMutationId
2271
- }
2272
- }
2273
- `,ba=p.gql`
2274
- mutation TranscendCliUpdateLoadOptions($input: UpdateLoadOptionsInput!) {
2275
- updateLoadOptions(input: $input) {
2276
- clientMutationId
2277
- }
2278
- }
2279
- `,xa=p.gql`
2280
- mutation TranscendCliToggleUnknownRequestPolicy(
2281
- $input: ToggleUnknownRequestPolicyInput!
2282
- ) {
2283
- toggleUnknownRequestPolicy(input: $input) {
2284
- clientMutationId
2285
- }
2286
- }
2287
- `,Sa=p.gql`
2288
- mutation TranscendCliToggleUnknownCookiePolicy(
2289
- $input: ToggleUnknownCookiePolicyInput!
2290
- ) {
2291
- toggleUnknownCookiePolicy(input: $input) {
2292
- clientMutationId
2293
- }
2294
- }
2295
- `,Ca=p.gql`
2296
- mutation TranscendCliToggleTelemetryPartitionStrategy(
2297
- $input: ToggleTelemetryPartitionStrategyInput!
2298
- ) {
2299
- toggleTelemetryPartitioning(input: $input) {
2300
- clientMutationId
2301
- }
2302
- }
2303
- `,wa=p.gql`
2304
- mutation TranscendCliToggleConsentPrecedence(
2305
- $input: ToggleConsentPrecedenceInput!
2306
- ) {
2307
- toggleConsentPrecedence(input: $input) {
2308
- clientMutationId
2309
- }
2310
- }
2311
- `,Ta=p.gql`
2312
- mutation TranscendCliUpdateConsentManagerTheme(
2313
- $input: UpdateConsentManagerThemeInput!
2314
- ) {
2315
- updateConsentManagerTheme(input: $input) {
2316
- clientMutationId
2317
- }
2318
- }
2319
- `,Ea=p.gql`
2320
- mutation TranscendCliUpdateConsentExperience($input: UpdateExperienceInput!) {
2321
- updateExperience(input: $input) {
2322
- clientMutationId
2323
- }
2324
- }
2325
- `,Da=p.gql`
2326
- mutation TranscendCliCreateConsentExperience($input: CreateExperienceInput!) {
2327
- createExperience(input: $input) {
2328
- clientMutationId
2329
- }
2330
- }
2331
- `,Oa=p.gql`
2332
- mutation TranscendCliCreateConsentPartition(
2333
- $input: CreateConsentPartitionInput!
2334
- ) {
2335
- createConsentPartition(input: $input) {
2336
- clientMutationId
2337
- }
2338
- }
2339
- `,ka=p.gql`
2340
- query TranscendCliConsentManagerAnalyticsData($input: AnalyticsInput!) {
2341
- analyticsData(input: $input) {
2342
- series {
2343
- name
2344
- points {
2345
- key
2346
- value
2347
- }
2348
- }
2349
- }
2350
- }
2351
- `,Aa=p.gql`
2352
- query TranscendCliBusinessEntities($first: Int!, $offset: Int!) {
2353
- businessEntities(
2354
- first: $first
2355
- offset: $offset
2356
- orderBy: [
2357
- { field: createdAt, direction: ASC }
2358
- { field: title, direction: ASC }
2359
- ]
2360
- useMaster: false
2361
- ) {
2362
- nodes {
2363
- id
2364
- title
2365
- description
2366
- dataProtectionOfficerName
2367
- dataProtectionOfficerEmail
2368
- address
2369
- headquarterCountry
2370
- headquarterSubDivision
2371
- attributeValues {
2372
- name
2373
- attributeKey {
2374
- name
2375
- }
2376
- }
2377
- }
2378
- }
2379
- }
2380
- `,ja=p.gql`
2381
- mutation TranscendCliCreateBusinessEntity(
2382
- $input: CreateBusinessEntityInput!
2383
- ) {
2384
- createBusinessEntity(input: $input) {
2385
- businessEntity {
2386
- id
2387
- title
2388
- description
2389
- dataProtectionOfficerName
2390
- dataProtectionOfficerEmail
2391
- address
2392
- headquarterCountry
2393
- headquarterSubDivision
2394
- attributeValues {
2395
- name
2396
- attributeKey {
2397
- name
2398
- }
2399
- }
2400
- }
2401
- }
2402
- }
2403
- `,Ma=p.gql`
2404
- mutation TranscendCliUpdateBusinessEntities(
2405
- $input: [UpdateBusinessEntityInput!]!
2406
- ) {
2407
- updateBusinessEntities(input: { businessEntities: $input }) {
2408
- clientMutationId
2409
- }
2410
- }
2411
- `,Na=p.gql`
2412
- query TranscendCliActions($first: Int!, $offset: Int!) {
2413
- actions(
2414
- first: $first
2415
- offset: $offset
2416
- useMaster: false
2417
- orderBy: [{ field: type, direction: ASC }]
2418
- ) {
2419
- nodes {
2420
- id
2421
- type
2422
- skipSecondaryIfNoFiles
2423
- skipDownloadableStep
2424
- requiresReview
2425
- regionList
2426
- regionDetectionMethod
2427
- waitingPeriod
2428
- }
2429
- }
2430
- }
2431
- `,Pa=p.gql`
2432
- mutation TranscendCliUpdateAction($input: UpdateActionInput!) {
2433
- updateAction(input: $input) {
2434
- clientMutationId
2435
- }
2436
- }
2437
- `,Fa=p.gql`
2438
- query TranscendCliGlobalActionItems(
2439
- $first: Int!
2440
- $offset: Int!
2441
- $filterBy: GlobalActionItemFiltersInput!
2442
- ) {
2443
- globalActionItems(first: $first, offset: $offset, filterBy: $filterBy) {
2444
- nodes {
2445
- ids
2446
- count
2447
- teams {
2448
- id
2449
- name
2450
- }
2451
- customerExperienceActionItemIds
2452
- users {
2453
- id
2454
- email
2455
- }
2456
- collections {
2457
- title
2458
- id
2459
- }
2460
- dueDate
2461
- priority
2462
- titles
2463
- resolved
2464
- notes
2465
- links
2466
- type
2467
- additionalContexts {
2468
- iconOverride
2469
- requestId
2470
- dataSiloId
2471
- requestType
2472
- latestAirgapVersion
2473
- parentTitle
2474
- }
2475
- attributeValues {
2476
- name
2477
- attributeKey {
2478
- name
2479
- }
2480
- }
2481
- }
2482
- }
2483
- }
2484
- `,Ia=p.gql`
2485
- mutation TranscendCliUpdateActionItems($input: UpdateActionItemsInput!) {
2486
- updateActionItems(input: $input) {
2487
- clientMutationId
2488
- }
2489
- }
2490
- `,La=p.gql`
2491
- mutation TranscendCliCreateActionItems($input: [CreateActionItemsInput!]!) {
2492
- createActionItems(input: $input) {
2493
- clientMutationId
2494
- }
2495
- }
2496
- `,Ra=p.gql`
2497
- query TranscendCliFetchPrivacyCenterId($url: String!) {
2498
- privacyCenter(lookup: { url: $url }) {
2499
- id
2500
- }
2501
- }
2502
- `,za=p.gql`
2503
- query TranscendCliDeployedPrivacyCenterUrl {
2504
- organization {
2505
- deployedPrivacyCenterUrl
2506
- }
2507
- }
2508
- `,Ba=p.gql`
2509
- query TranscendCliFetchPrivacyCenters($url: String!) {
2510
- privacyCenter(lookup: { url: $url }) {
2511
- id
2512
- url
2513
- isDisabled
2514
- showPrivacyRequestButton
2515
- showPolicies
2516
- showTrackingTechnologies
2517
- showCookies
2518
- showDataFlows
2519
- showConsentManager
2520
- showManageYourPrivacy
2521
- showMarketingPreferences
2522
- locales
2523
- defaultLocale
2524
- preferBrowserDefaultLocale
2525
- supportEmail
2526
- replyToEmail
2527
- useNoReplyEmailAddress
2528
- useCustomEmailDomain
2529
- transformAccessReportJsonToCsv
2530
- themeStr
2531
- }
2532
- }
2533
- `,Va=p.gql`
2534
- mutation TranscendCliUpdatePrivacyCenter($input: UpdatePrivacyCenterInput!) {
2535
- updatePrivacyCenter(input: $input) {
2536
- clientMutationId
2537
- }
2538
- }
2539
- `,Ha=p.gql`
2540
- mutation TranscendCliDetermineLoginMethod($email: String!) {
2541
- determineLoginMethod(input: { email: $email }) {
2542
- loginMethod {
2543
- email
2544
- sombraPublicKey
2545
- }
2546
- }
2547
- }
2548
- `,Ua=p.gql`
2549
- mutation TranscendCliLogin(
2550
- $email: String!
2551
- $password: String!
2552
- $publicKey: String!
2553
- ) {
2554
- login(
2555
- input: { email: $email, password: $password }
2556
- publicKey: $publicKey
2557
- ) {
2558
- user {
2559
- roles {
2560
- id
2561
- organization {
2562
- name
2563
- id
2564
- uri
2565
- parentOrganizationId
2566
- }
2567
- }
2568
- }
2569
- }
2570
- }
2571
- `,Wa=p.gql`
2572
- mutation TranscendCliAssumeRole($id: ID!, $publicKey: String!) {
2573
- assumeRole(id: $id, publicKey: $publicKey) {
2574
- clientMutationId
2575
- }
2576
- }
2577
- `,Ga=p.gql`
2578
- query TranscendCliLargeLanguageModels(
2579
- $first: Int!
2580
- $offset: Int!
2581
- $filterBy: LargeLanguageModelFiltersInput
2582
- ) {
2583
- largeLanguageModels(
2584
- first: $first
2585
- orderBy: [
2586
- { field: name, direction: ASC }
2587
- { field: client, direction: ASC }
2588
- { field: isTranscendHosted, direction: ASC }
2589
- ]
2590
- offset: $offset
2591
- filterBy: $filterBy
2592
- ) {
2593
- nodes {
2594
- id
2595
- name
2596
- client
2597
- isTranscendHosted
2598
- }
2599
- }
2600
- }
2601
- `,Ka=p.gql`
2602
- query TranscendCliAgents(
2603
- $first: Int!
2604
- $offset: Int!
2605
- $filterBy: AgentFiltersInput
2606
- ) {
2607
- agents(
2608
- first: $first
2609
- offset: $offset
2610
- filterBy: $filterBy
2611
- orderBy: [
2612
- { field: createdAt, direction: ASC }
2613
- { field: name, direction: ASC }
2614
- ]
2615
- ) {
2616
- nodes {
2617
- id
2618
- name
2619
- agentId
2620
- instructions
2621
- description
2622
- codeInterpreterEnabled
2623
- retrievalEnabled
2624
- prompt {
2625
- title
2626
- }
2627
- largeLanguageModel {
2628
- name
2629
- client
2630
- }
2631
- teams {
2632
- name
2633
- }
2634
- owners {
2635
- email
2636
- }
2637
- agentFunctions {
2638
- name
2639
- }
2640
- agentFiles {
2641
- name
2642
- }
2643
- }
2644
- }
2645
- }
2646
- `,qa=p.gql`
2647
- mutation TranscendCliCreateAgent($input: CreateAgentInput!) {
2648
- createAgent(input: $input) {
2649
- agent {
2650
- id
2651
- name
2652
- agentId
2653
- }
2654
- }
2655
- }
2656
- `,Ja=p.gql`
2657
- mutation TranscendCliUpdateAgents($input: UpdateAgentsInput!) {
2658
- updateAgents(input: $input) {
2659
- clientMutationId
2660
- }
2661
- }
2662
- `,Ya=p.gql`
2663
- query TranscendCliAgentFiles(
2664
- $first: Int!
2665
- $offset: Int!
2666
- $filterBy: AgentFileFiltersInput
2667
- ) {
2668
- agentFiles(
2669
- first: $first
2670
- offset: $offset
2671
- filterBy: $filterBy
2672
- orderBy: [
2673
- { field: createdAt, direction: ASC }
2674
- { field: name, direction: ASC }
2675
- ]
2676
- ) {
2677
- nodes {
2678
- id
2679
- name
2680
- description
2681
- fileId
2682
- size
2683
- purpose
2684
- initialFileName
2685
- }
2686
- }
2687
- }
2688
- `,Xa=p.gql`
2689
- mutation TranscendCliCreateAgentFile($input: CreateAgentFileInput!) {
2690
- createAgentFile(input: $input) {
2691
- agentFile {
2692
- id
2693
- name
2694
- fileId
2695
- initialFileName
2696
- }
2697
- }
2698
- }
2699
- `,Za=p.gql`
2700
- mutation TranscendCliUpdateAgentFiles($input: UpdateAgentFilesInput!) {
2701
- updateAgentFiles(input: $input) {
2702
- clientMutationId
2703
- }
2704
- }
2705
- `,Qa=p.gql`
2706
- query TranscendCliAgentFunctions($first: Int!, $offset: Int!) {
2707
- agentFunctions(
2708
- first: $first
2709
- offset: $offset
2710
- orderBy: [
2711
- { field: createdAt, direction: ASC }
2712
- { field: name, direction: ASC }
2713
- ]
2714
- ) {
2715
- nodes {
2716
- id
2717
- name
2718
- description
2719
- parameters
2720
- }
2721
- }
2722
- }
2723
- `,$a=p.gql`
2724
- mutation TranscendCliCreateAgentFunction($input: CreateAgentFunctionInput!) {
2725
- createAgentFunction(input: $input) {
2726
- agentFunction {
2727
- id
2728
- name
2729
- }
2730
- }
2731
- }
2732
- `,eo=p.gql`
2733
- mutation TranscendCliUpdateAgentFunctions(
2734
- $input: UpdateAgentFunctionsInput!
2735
- ) {
2736
- updateAgentFunctions(input: $input) {
2737
- clientMutationId
2738
- }
2739
- }
2740
- `,to=p.gql`
2741
- query TranscendCliVendors($first: Int!, $offset: Int!) {
2742
- vendors(
2743
- first: $first
2744
- offset: $offset
2745
- useMaster: false
2746
- isExportCsv: true
2747
- orderBy: [
2748
- { field: createdAt, direction: ASC }
2749
- { field: title, direction: ASC }
2750
- ]
2751
- ) {
2752
- nodes {
2753
- id
2754
- title
2755
- description
2756
- dataProcessingAgreementLink
2757
- contactName
2758
- contactEmail
2759
- contactPhone
2760
- address
2761
- headquarterCountry
2762
- headquarterSubDivision
2763
- websiteUrl
2764
- businessEntity {
2765
- title
2766
- }
2767
- teams {
2768
- name
2769
- }
2770
- owners {
2771
- email
2772
- }
2773
- attributeValues {
2774
- attributeKey {
2775
- name
2776
- }
2777
- name
2778
- }
2779
- }
2780
- }
2781
- }
2782
- `,no=p.gql`
2783
- mutation TranscendCliCreateVendor($input: CreateVendorInput!) {
2784
- createVendor(input: $input) {
2785
- vendor {
2786
- id
2787
- title
2788
- }
2789
- }
2790
- }
2791
- `,ro=p.gql`
2792
- mutation TranscendCliUpdateVendor($input: UpdateVendorsInput!) {
2793
- updateVendors(input: $input) {
2794
- clientMutationId
2795
- }
2796
- }
2797
- `,io=p.gql`
2798
- query TranscendCliDataSubCategories($first: Int!, $offset: Int!) {
2799
- dataSubCategories(
2800
- first: $first
2801
- offset: $offset
2802
- isExportCsv: true
2803
- useMaster: false
2804
- ) {
2805
- nodes {
2806
- id
2807
- name
2808
- category
2809
- description
2810
- regex
2811
- teams {
2812
- name
2813
- }
2814
- owners {
2815
- email
2816
- }
2817
- attributeValues {
2818
- attributeKey {
2819
- name
2820
- }
2821
- name
2822
- }
2823
- }
2824
- }
2825
- }
2826
- `,ao=p.gql`
2827
- mutation TranscendCliCreateDataSubCategory(
2828
- $input: CreateDataInventorySubCategoryInput!
2829
- ) {
2830
- createDataSubCategory(input: $input) {
2831
- dataSubCategory {
2832
- id
2833
- name
2834
- category
2835
- }
2836
- }
2837
- }
2838
- `,oo=p.gql`
2839
- mutation TranscendCliUpdateDataSubCategories(
2840
- $input: UpdateDataSubCategoriesInput!
2841
- ) {
2842
- updateDataSubCategories(input: $input) {
2843
- clientMutationId
2844
- }
2845
- }
2846
- `,so=p.gql`
2847
- query TranscendCliProcessingPurposeSubCategories(
2848
- $first: Int!
2849
- $offset: Int!
2850
- ) {
2851
- processingPurposeSubCategories(
2852
- first: $first
2853
- offset: $offset
2854
- isExportCsv: true
2855
- useMaster: false
2856
- ) {
2857
- nodes {
2858
- id
2859
- name
2860
- purpose
2861
- description
2862
- teams {
2863
- name
2864
- }
2865
- owners {
2866
- email
2867
- }
2868
- attributeValues {
2869
- attributeKey {
2870
- name
2871
- }
2872
- name
2873
- }
2874
- }
2875
- }
2876
- }
2877
- `,co=p.gql`
2878
- mutation TranscendCliCreateProcessingPurposeSubCategory(
2879
- $input: CreateProcessingPurposeCategoryInput!
2880
- ) {
2881
- createProcessingPurposeSubCategory(input: $input) {
2882
- processingPurposeSubCategory {
2883
- id
2884
- name
2885
- purpose
2886
- }
2887
- }
2888
- }
2889
- `,lo=p.gql`
2890
- mutation TranscendCliUpdateProcessingPurposeSubCategories(
2891
- $input: UpdateProcessingPurposeSubCategoriesInput!
2892
- ) {
2893
- updateProcessingPurposeSubCategories(input: $input) {
2894
- clientMutationId
2895
- }
2896
- }
2897
- `,uo=p.gql`
2898
- query TranscendCliProcessingActivities($first: Int!, $offset: Int!) {
2899
- processingActivities(first: $first, offset: $offset, useMaster: false) {
2900
- nodes {
2901
- id
2902
- title
2903
- description
2904
- securityMeasureDetails
2905
- controllerships
2906
- storageRegions {
2907
- countrySubDivision
2908
- country
2909
- }
2910
- transferRegions {
2911
- countrySubDivision
2912
- country
2913
- }
2914
- retentionType
2915
- retentionPeriod
2916
- dataProtectionImpactAssessmentLink
2917
- dataProtectionImpactAssessmentStatus
2918
- attributeValues {
2919
- name
2920
- attributeKey {
2921
- name
2922
- }
2923
- }
2924
- dataSilos {
2925
- title
2926
- }
2927
- dataSubjects {
2928
- type
2929
- }
2930
- teams {
2931
- name
2932
- }
2933
- owners {
2934
- email
2935
- }
2936
- processingPurposeSubCategories {
2937
- name
2938
- purpose
2939
- }
2940
- dataSubCategories {
2941
- name
2942
- category
2943
- }
2944
- saaSCategories {
2945
- title
2946
- }
2947
- }
2948
- }
2949
- }
2950
- `,fo=p.gql`
2951
- mutation TranscendCliCreateProcessingActivity(
2952
- $input: CreateProcessingActivityInput!
2953
- ) {
2954
- createProcessingActivity(input: $input) {
2955
- processingActivity {
2956
- id
2957
- title
2958
- }
2959
- }
2960
- }
2961
- `,po=p.gql`
2962
- mutation TranscendCliUpdateProcessingActivities(
2963
- $input: UpdateProcessingActivitiesInput!
2964
- ) {
2965
- updateProcessingActivities(input: $input) {
2966
- clientMutationId
2967
- }
2968
- }
2969
- `,mo=p.gql`
2970
- query TranscendSombraVersion {
2971
- organization {
2972
- sombra {
2973
- version
2974
- }
2975
- }
2976
- }
2977
- `,ho=p.gql`
2978
- query TranscendCliSiloDiscoveryResults($first: Int!, $offset: Int!) {
2979
- siloDiscoveryResults(first: $first, offset: $offset) {
2980
- nodes {
2981
- title
2982
- resourceId
2983
- country
2984
- countrySubDivision
2985
- plaintextContext
2986
- status
2987
- containsSensitiveData
2988
- suggestedCatalog {
2989
- title
2990
- }
2991
- plugin {
2992
- dataSilo {
2993
- title
2994
- }
2995
- }
2996
- }
2997
- }
2998
- }
2999
- `,G=`[NONE]`,go=`[APPLY VALUE TO ALL ROWS]`,_o=`<blank>`,vo=[`email`,`coreIdentifier`];let K=function(e){return e.Email=`email`,e.CoreIdentifier=`coreIdentifier`,e.RequestType=`requestType`,e.SubjectType=`subjectType`,e.Locale=`locale`,e.Country=`country`,e.CountrySubDivision=`countrySubDivision`,e.RequestStatus=`requestStatus`,e.CreatedAt=`createdAt`,e.DataSiloIds=`dataSiloIds`,e}({});const yo={[K.Email]:!1,[K.CoreIdentifier]:!0,[K.RequestType]:!0,[K.SubjectType]:!0,[K.RequestStatus]:!1,[K.CreatedAt]:!1,[K.DataSiloIds]:!1,[K.Locale]:!1,[K.Country]:!1,[K.CountrySubDivision]:!1},bo={[K.RequestType]:!0,[K.SubjectType]:!0},xo=l.type({columnNames:l.partial((0,a.applyEnum)(K,()=>l.string)),identifierNames:l.record(l.string,l.string),attributeNames:l.record(l.string,l.string),requestTypeToRequestAction:l.record(l.string,(0,a.valuesOf)(i.RequestAction)),subjectTypeToSubjectName:l.record(l.string,l.string),languageToLocale:l.record(l.string,(0,a.valuesOf)(d.LOCALE_KEY)),regionToCountry:l.record(l.string,(0,a.valuesOf)({...i.IsoCountryCode,[G]:G})),regionToCountrySubDivision:l.record(l.string,(0,a.valuesOf)({...i.IsoCountrySubdivisionCode,[G]:G})),statusToRequestStatus:l.record(l.string,(0,a.valuesOf)({...i.CompletedRequestStatus,[G]:G}))}),So=l.type({id:l.string,link:l.string,rowIndex:l.number,coreIdentifier:l.string,attemptedAt:l.string}),Co=l.type({failingRequests:l.array(l.record(l.string,l.any)),successfulRequests:l.array(So),duplicateRequests:l.array(l.type({rowIndex:l.number,coreIdentifier:l.string,attemptedAt:l.string}))});function wo(e,t){return(0,g.default)(e.toLowerCase(),t.toLowerCase())||(0,g.default)(t.toLowerCase(),e.toLowerCase())}function To(e,t,n,r){let i=e.filter(e=>wo(t.toLowerCase(),e.toLowerCase()));return[...i,new m.default.Separator,...n?[]:[G],...r?[go]:[],...e.filter(e=>!i.includes(e))]}async function q(e,t,n){m.default.registerPrompt(`autocomplete`,h.default);let r=e.map(e=>e||`<blank>`).filter(e=>!n[e]);if(r.length===0)return n;let i=await m.default.prompt(r.map(e=>({name:e,message:`Map value of: ${e}`,type:`autocomplete`,default:t.find(t=>wo(e,t)),source:(e,n)=>n?t.filter(e=>typeof e==`string`&&wo(n,e)):t})));return{...n,...(0,a.apply)(i,e=>typeof e==`string`?e:Object.values(e)[0])}}function Eo(e){return e.split(`,`).map(e=>e.trim()).filter(e=>e)}const Do=l.type({key:l.string,values:l.array(l.string)});function Oo(e){let t=e.map(e=>{let[t,n]=e.trim().split(`:`);if(!n)throw Error(`Expected attributes in key:value1;value2,key2:value3;value4`);return{key:t,values:n.split(`;`)}});return r.t.info(c.default.magenta(`Attributes to apply to all requests:`)),r.t.info(c.default.magenta(JSON.stringify(t,null,2))),t}function ko(e,t,n={columns:!0}){let r=(0,_.parse)((0,o.readFileSync)(e,`utf-8`),n);return(0,a.decodeCodec)(l.array(t),r).map(e=>Object.entries(e).reduce((e,[t,n])=>Object.assign(e,{[t.replace(/[^a-z_.+\-A-Z -~]/g,``)]:n}),{}))}function J(e,t){return H(e.map(e=>e[t]||``).flat())}async function Ao(e){let t=H(e.map(e=>Object.keys(e)).flat()),n=e,i=!0;for(;i;){let{filterColumnName:e}=await m.default.prompt([{name:`filterColumnName`,message:`If you need to filter the list of requests to import, choose the column to filter on. Currently ${n.length} rows.`,type:`list`,default:t,choices:[G,...t]}]);if(i=G!==e,i){let r=J(n,e),{valuesToKeep:i}=await m.default.prompt([{name:`valuesToKeep`,message:`Keep rows matching this value`,type:`checkbox`,default:t,choices:r}]);n=n.filter(t=>i.includes(t[e]))}}return r.t.info(c.default.magenta(`Importing ${n.length} requests`)),n}async function jo(e,{promptRunId:t,promptRunMessages:n=[],...r}){let{addMessagesToPromptRun:{promptRun:i}}=await $(e,Ki,{input:{...r,...t,promptRunMessages:n.map(({content:e,...t})=>({...t,message:e}))}});return i.id}function Mo(e,n){return new p.GraphQLClient(`${e}/graphql`,{headers:{...n,version:t.h}})}function Y(e,t){return Mo(e,{Authorization:`Bearer ${t}`})}async function No(e,t,n){let{organization:i}=await $(Y(e,t),Yr),{customerUrl:a}=i.sombra,o=process.env.SOMBRA_URL||a;if(!process.env.SOMBRA_URL&&[`https://sombra-reverse-tunnel.transcend.io`,`https://sombra-reverse-tunnel.us.transcend.io`].includes(a))throw Error(`It looks like your Sombra customer ingress URL has not been set up. Please follow the instructions here to configure networking for Sombra: https://docs.transcend.io/docs/articles/sombra/deploying/customizing-sombra/networking`);return r.t.info(c.default.green(`Using sombra: ${o}`)),v.default.extend({prefixUrl:o,headers:{Authorization:`Bearer ${t}`,...n?{"X-Sombra-Authorization":`Bearer ${n}`}:{}}})}function Po(e){return v.default.extend({prefixUrl:e})}async function Fo(e,{id:t,bundleType:n}){await $(e,_a,{airgapBundleId:t,bundleType:n})}async function Io(e,{id:t,bundleType:n}){await $(e,ga,{airgapBundleId:t,bundleType:n})}async function Lo(e,t){let{plugins:n,totalCount:i}=(await $(e,Kr,{dataSiloId:t,type:`DATA_SILO_DISCOVERY`})).plugins;return i===0&&(r.t.error(`No active data silo plugins found for this data silo.`),process.exit(1)),n[0]}const Ro=20;async function zo(e,t={}){let n=[],r=0,i=!1;do{let{globalActionItems:{nodes:a}}=await $(e,Fa,{first:20,offset:r,filterBy:{...t,...t.startDueDate?{startDueDate:t.startDueDate.toISOString()}:{},...t.endDueDate?{endDueDate:t.endDueDate.toISOString()}:{}}});n.push(...a.map(e=>({...e,id:e.ids[0],title:e.titles[0],notes:e.notes[0],link:e.links[0]}))),r+=20,i=a.length===20}while(i);return n}const Bo=20;async function Vo(e){let t=[],n=0,r=!1;do{let{actions:{nodes:i}}=await $(e,Na,{first:20,offset:n});t.push(...i),n+=20,r=i.length===20}while(r);return t.sort((e,t)=>e.type.localeCompare(t.type))}const Ho=20;async function Uo(e,t={}){let n=[],r=0,i=!1;do{let{agentFiles:{nodes:a}}=await $(e,Ya,{first:20,offset:r,filterBy:t});n.push(...a),r+=20,i=a.length===20}while(i);return n.sort((e,t)=>e.name.localeCompare(t.name))}const Wo=20;async function Go(e){let t=[],n=0,r=!1;do{let{agentFunctions:{nodes:i}}=await $(e,Qa,{first:20,offset:n});t.push(...i.map(e=>({...e,parameters:JSON.parse(e.parameters)}))),n+=20,r=i.length===20}while(r);return t.sort((e,t)=>e.name.localeCompare(t.name))}const Ko=20;async function qo(e,t={}){let n=[],r=0,i=!1;do{let{agents:{nodes:a}}=await $(e,Ka,{first:20,offset:r,filterBy:t});n.push(...a),r+=20,i=a.length===20}while(i);return n.sort((e,t)=>e.name.localeCompare(t.name))}const Jo=20;async function Yo(e){let t=[],n=0,r=!1;do{let{assessmentForms:{nodes:i}}=await $(e,vi,{first:20,offset:n});t.push(...i),n+=20,r=i.length===20}while(r);return t.sort((e,t)=>e.title.localeCompare(t.title))}const Xo=20;async function Zo(e){let t=[],n=0,r=!1;do{let{assessmentFormTemplates:{nodes:i}}=await $(e,Si,{first:20,offset:n});t.push(...i),n+=20,r=i.length===20}while(r);return t.sort((e,t)=>e.title.localeCompare(t.title))}const Qo=50;async function $o(e,t){let{createPrivacyCenterAccessTokens:{nodes:n}}=await $(e,Wr,{input:{records:t}});return n.map(e=>e.token)}async function es(e,t,n,r=10){let i=0;n&&n(0);let a=[];return await U(B(t,50),async t=>{let r=(await $o(e,t.map(({index:e,...t})=>t))).map((e,n)=>({input:t[n],accessToken:e}));a.push(...r),i+=t.length,n&&n(i)},{concurrency:r}),a}const ts=20;async function ns(e){let t=[],n=0,r=!1;do{let{attributeKeys:{nodes:i}}=await $(e,Xr,{first:20,offset:n});t.push(...i),n+=20,r=i.length===20}while(r);return t.sort((e,t)=>e.name.localeCompare(t.name))}const rs=100;async function is(e,t){r.t.info(c.default.magenta(`Fetching all attribute values for ${t}...`));let n=[],i=0,a=!1;do{let{attributeValues:{nodes:r}}=await $(e,ea,{first:100,offset:i,attributeKeyId:t});n.push(...r),i+=100,a=r.length===100}while(a);return n.sort((e,t)=>e.name.localeCompare(t.name))}const as=[i.AttributeKeyType.MultiSelect,i.AttributeKeyType.SingleSelect];async function os(e){r.t.info(c.default.magenta(`Fetching all attributes...`));let t=[],n=0,i=!1;do{let{attributeKeys:{nodes:r}}=await $(e,Xi,{first:100,offset:n});t.push(...await Promise.all(r.map(async t=>({...t,values:as.includes(t.type)?await is(e,t.id):[]})))),n+=100,i=r.length===100}while(i);return t.sort((e,t)=>e.name.localeCompare(t.name))}const ss=20;async function cs(e){let t=[],n=0,r=!1;do{let{businessEntities:{nodes:i}}=await $(e,Aa,{first:20,offset:n});t.push(...i),n+=20,r=i.length===20}while(r);return t.sort((e,t)=>e.title.localeCompare(t.title))}async function ls(e){let{consentManager:{consentManager:t}}=await $(e,fa);return t}async function X(e,t){let{consentManager:{consentManager:n}}=await $(e,da,{},{},t);return n.id}const us=50;async function ds(e){let t=[],n=0,r=!1;do{let{experiences:{nodes:i}}=await $(e,ia,{first:50,offset:n});t.push(...i),n+=50,r=i.length===50}while(r);return t.sort((e,t)=>e.name.localeCompare(t.name))}let fs=function(e){return e.Hourly=`1h`,e.Daily=`1d`,e}({});async function ps(e,t){let{analyticsData:{series:n}}=await $(e,ka,{input:t});return n}async function ms(e,t){let{consentManagerTheme:{theme:n}}=await $(e,pa,{airgapBundleId:t});return n}const hs=20;async function gs(e,t=i.ConsentTrackerStatus.Live){let n=[],r=0,a=await X(e),o=!1;do{let{cookies:{nodes:i}}=await $(e,ua,{first:20,offset:r,airgapBundleId:a,status:t});n.push(...i),r+=20,o=i.length===20}while(o);return n.sort((e,t)=>e.name.localeCompare(t.name))}const _s=20;async function vs(e){let t=[],n=0,r=!1;do{let{dataSubCategories:{nodes:i}}=await $(e,io,{first:20,offset:n});t.push(...i),n+=20,r=i.length===20}while(r);return t.sort((e,t)=>e.name.localeCompare(t.name))}const ys=20;async function bs(e,t=i.ConsentTrackerStatus.Live){let n=[],r=0,a=await X(e),o=!1;do{let{dataFlows:{nodes:s}}=await $(e,la,{first:20,offset:r,airgapBundleId:a,status:t,...t===i.ConsentTrackerStatus.NeedsReview?{showZeroActivity:!0}:{}});n.push(...s),r+=20,o=s.length===20}while(o);return n.sort((e,t)=>e.value.localeCompare(t.value))}async function xs(e){let{translatedMessages:t}=await $(e,fi,{});return t}async function Ss(e){let{organization:t}=await $(e,za);return t.deployedPrivacyCenterUrl}async function Cs(e,t){let n=t;n||=await Ss(e);let{privacyCenter:r}=await $(e,Ra,{url:n});return r.id}async function ws(e){let{privacyCenterPolicies:t}=await $(e,ii,{url:await Ss(e)});return t.sort((e,t)=>e.title.defaultMessage.localeCompare(t.title.defaultMessage))}function Z(e){let t=[];return e.map(e=>{let n=t.find(t=>t.key===e.attributeKey.name);return n===void 0?(n={key:e.attributeKey.name,values:[e.name]},t.push(n)):n.values.push(e.name),t}),t}const Ts=20;async function Es(e){let t=[],n=0,r=!1;do{let{preferenceTopics:{nodes:i}}=await $(e,xi,{first:20,offset:n});t.push(...i),n+=20,r=i.length===20}while(r);return t.sort((e,t)=>`${e.slug}:${e.purpose.trackingType}`.localeCompare(`${t.slug}:${t.purpose.trackingType}`))}async function Ds(e){let{privacyCenter:{themeStr:t,...n}}=await $(e,Ba,{url:await Ss(e)});return[{...n,theme:JSON.parse(t)}]}const Os=20;async function ks(e){let t=[],n=0,r=!1;do{let{processingActivities:{nodes:i}}=await $(e,uo,{first:20,offset:n});t.push(...i),n+=20,r=i.length===20}while(r);return t.sort((e,t)=>e.title.localeCompare(t.title))}const As=20;async function js(e){let t=[],n=0,r=!1;do{let{processingPurposeSubCategories:{nodes:i}}=await $(e,so,{first:20,offset:n});t.push(...i),n+=20,r=i.length===20}while(r);return t.sort((e,t)=>e.name.localeCompare(t.name))}const Ms=20;async function Ns(e,{includeDeleted:t=!1}={}){let n=[],r=0,i=!1;do{let{purposes:{nodes:a}}=await $(e,bi,{first:20,offset:r,input:{includeDeleted:t}});n.push(...a),r+=20,i=a.length===20}while(i);return n.sort((e,t)=>e.trackingType.localeCompare(t.trackingType))}async function Ps(e){let[t,n]=await Promise.all([Ns(e),Es(e)]);return t.map(e=>{let t=n.filter(t=>t.purpose.trackingType===e.trackingType);return{...e,topics:t}})}const Fs=50;async function Is(e,{requestId:t}){let n=[],r=0,i=!1;do{let{requestEnrichers:{nodes:a}}=await $(e,mi,{first:50,offset:r,requestId:t});n.push(...a),r+=50,i=a.length===50}while(i);return n}const Ls=50;async function Rs(e,{requestId:t,requestIds:n,updatedAtBefore:r,updatedAtAfter:i}){let a=n??(t?[t]:void 0),o=[],s=0,c=!1;do{let{requestIdentifiers:{nodes:t}}=await $(e,Vi,{first:50,offset:s,requestIds:a,updatedAtBefore:r?r.toISOString():void 0,updatedAtAfter:i?i.toISOString():void 0});o.push(...t),s+=50,c=t.length===50}while(c);return o}const zs=`7.180.0`,Bs=l.type({id:l.string,name:l.string,value:l.string,type:(0,a.valuesOf)(i.IdentifierType)}),Vs=50,Hs=l.type({identifiers:l.array(Bs)});async function Us(e){let{organization:{sombra:{version:t}}}=await $(e,mo);if(t&&y.default.lt(t,zs))throw Error(`Please upgrade Sombra to ${zs} or greater to use this command.`)}async function Ws(e,t,{requestId:n,skipSombraCheck:r=!1}){let i=[],o=0,s=!1;r||await Us(e);do{let e;try{e=await t.post(`v1/request-identifiers`,{json:{first:50,offset:o,requestId:n}}).json()}catch(e){throw Error(`Failed to fetch request identifiers: ${e?.response?.body||e?.message}`)}let{identifiers:r}=(0,a.decodeCodec)(Hs,e);i.push(...r),o+=50,s=r.length===50}while(s);return i}const Gs=l.type({title:l.string,name:l.string,consent:l.boolean,enrichedPreferences:l.array(l.type({topic:l.string,selectValues:l.array(l.type({id:l.string,name:l.string,preferenceOption:l.type({id:l.string,slug:l.string,title:l.type({defaultMessage:l.string})})})),selectValue:l.type({id:l.string,name:l.string}),preferenceTopic:l.type({title:l.type({defaultMessage:l.string}),id:l.string,slug:l.string}),name:l.string,id:l.string,booleanValue:l.boolean}))}),Ks=l.intersection([l.type({id:l.string,createdAt:l.string,email:l.string,type:(0,a.valuesOf)(i.RequestAction),link:l.string,isSilent:l.boolean,origin:(0,a.valuesOf)(i.RequestOrigin),isTest:l.boolean,coreIdentifier:l.string,details:l.string,locale:(0,a.valuesOf)(d.LOCALE_KEY),status:(0,a.valuesOf)(i.RequestStatus),subjectType:l.string,country:l.union([l.null,(0,a.valuesOf)(i.IsoCountryCode)]),countrySubDivision:l.union([l.null,(0,a.valuesOf)(i.IsoCountrySubdivisionCode)]),attributeValues:l.array(l.type({id:l.string,attributeKey:l.type({name:l.string,id:l.string}),name:l.string}))}),l.partial({daysRemaining:l.union([l.null,l.number]),purpose:Gs})]),qs=100;async function Js(e,t){let{requests:{totalCount:n}}=await $(e,oi,{filterBy:t});return n}async function Q(e,{actions:t=[],statuses:n=[],origins:i=[],text:a,createdAtBefore:o,createdAtAfter:s,updatedAtBefore:l,updatedAtAfter:u,isTest:d,isSilent:f,isClosed:p,requestIds:m=[],onPage:h}={}){let g=!!h,_={text:a,type:t.length>0?t:void 0,status:n.length>0?n:void 0,origin:i.length>0?i:void 0,isTest:d,isSilent:f,isClosed:p,createdAtBefore:o?o.toISOString():void 0,createdAtAfter:s?s.toISOString():void 0,updatedAtBefore:l?l.toISOString():void 0,updatedAtAfter:u?u.toISOString():void 0},v=new Date().getTime(),y=new b.default.SingleBar({},b.default.Presets.shades_classic);if(!g){r.t.info(c.default.magenta(`Fetching requests...`));let{requests:{totalCount:t}}=await $(e,oi,{filterBy:_});t>100&&(r.t.info(c.default.magenta(`Fetching ${t} requests`)),y.start(t,0))}let x=[],S=0,C,w=!1;do{let{requests:{nodes:t,pageInfo:n}}=await $(e,si,{first:100,after:C,filterBy:_});g?await h(t):x.push(...t),S+=t.length,C=n.endCursor??void 0,g||y.update(S),w=n.hasNextPage}while(w);if(!g){y.stop();let e=new Date().getTime()-v;r.t.info(c.default.green(`Completed fetching of ${S} request in "${e/1e3}" seconds.`))}if(g)return[];let T=x;return m&&m.length>0&&(T=T.filter(e=>m.includes(e.id)),r.t.info(c.default.green(`Filtered down to ${T.length} requests based on ${m.length} provided IDs.`))),T}const Ys=20;async function Xs(e){let t=[],n=0,r=!1;do{let{teams:{nodes:i}}=await $(e,Li,{first:20,offset:n});t.push(...i),n+=20,r=i.length===20}while(r);return t.sort((e,t)=>e.name.localeCompare(t.name))}const Zs=20;async function Qs(e){let t=[],n=0,r=!1;do{let{users:{nodes:i}}=await $(e,Hi,{first:20,offset:n});t.push(...i),n+=20,r=i.length===20}while(r);return t.sort((e,t)=>e.email.localeCompare(t.email))}const $s=20;async function ec(e){let t=[],n=0,r=!1;do{let{vendors:{nodes:i}}=await $(e,to,{first:20,offset:n});t.push(...i),n+=20,r=i.length===20}while(r);return t.sort((e,t)=>e.title.localeCompare(t.title))}const tc=20,nc=`https://app.transcend.io/infrastructure/api-keys`;async function rc(e,t){let n=[],r=0,i=!1;do{let{apiKeys:{nodes:a}}=await $(e,Vr,{first:20,offset:r,titles:t});n.push(...a),r+=20,i=a.length===20}while(i);return n.sort((e,t)=>e.title.localeCompare(t.title))}async function ic({"api-keys":e=[],"data-silos":n=[]},i,a=!1){r.t.info(c.default.magenta(`Fetching ${a?`all`:e.length} API keys...`));let o=e.map(({title:e})=>e),s=H(n.map(e=>e[`api-key-title`]).filter(e=>!!e)),l=[...s,...o],u=await rc(i,a?void 0:[...s,...o]),d=t.g(u,`title`),f=V(l,u.map(({title:e})=>e));return f.length>0&&(r.t.info(c.default.red(`Failed to find API keys "${f.join(`", "`)}"! Make sure these API keys are created at: https://app.transcend.io/infrastructure/api-keys`)),process.exit(1)),d}const ac=100;async function oc(e){let t=[],n=0,r=!1;do{let{catalogs:{nodes:i}}=await $(e,kr,{first:100,offset:n});t.push(...i),n+=100,r=i.length===100}while(r);return t.sort((e,t)=>e.integrationName.localeCompare(t.integrationName))}async function sc(e){let t=await oc(e);return{catalogs:t,serviceToTitle:t.reduce((e,t)=>Object.assign(e,{[t.integrationName]:t.title}),{}),serviceToSupportedIntegration:t.reduce((e,t)=>Object.assign(e,{[t.integrationName]:t.hasApiFunctionality}),{})}}async function cc(e){let{internalSubjects:t}=await $(e,Pr);return t}async function lc({"data-silos":e=[],"data-subjects":n=[],"processing-activities":i=[],enrichers:a=[]},o,s=!1){let l=H([...Ve(e.map(e=>e[`data-subjects`]||[])||[]),...Ve(i.map(({dataSubjectTypes:e})=>e??[])??[]),...Ve(a.map(e=>e[`data-subjects`]||[])||[]),...n.map(e=>e.type)]);if(l.length===0&&!s)return{};let u=await cc(o),d=t.g(u,`type`),f=V(l,u.map(({type:e})=>e));return f.length>0&&(r.t.info(c.default.magenta(`Creating ${f.length} new data subjects...`)),await W(f,async e=>{r.t.info(c.default.magenta(`Creating data subject ${e}...`));let{createSubject:t}=await $(o,Fr,{type:e,skipPublish:!0});r.t.info(c.default.green(`Created data subject ${e}!`)),d[e]=t.subject})),d}function uc(e,t){return e.forEach(e=>{if(!t[e])throw Error(`Expected to find data subject definition: ${e}`)}),Object.values(t).filter(t=>!e.includes(t.type)).map(({id:e})=>e)}function dc(e,t){return e.forEach(e=>{if(!t[e])throw Error(`Expected to find data subject definition: ${e}`)}),Object.values(t).filter(t=>!e.includes(t.type)).map(({type:e})=>e)}const fc=20;async function pc(e){let t=[],n=0,r=!1;do{let{promptGroups:{nodes:i}}=await $(e,Ti,{first:20,offset:n});t.push(...i),n+=20,r=i.length===20}while(r);return t.sort((e,t)=>e.title.localeCompare(t.title))}const mc=20;async function hc(e){let t=[],n=0,r=!1;do{let{promptPartials:{nodes:i}}=await $(e,wi,{first:20,offset:n});t.push(...i),n+=20,r=i.length===20}while(r);return t.sort((e,t)=>e.title.localeCompare(t.title))}const gc=20;async function _c(e,{text:t,titles:n=[],ids:r=[]}={}){let i=[],a=0,o=!1;do{let{prompts:{nodes:s}}=await $(e,Ci,{first:20,offset:a,filterBy:{...t?{text:t}:{},...n.length>0?{title:n}:{},...r.length>0?{id:r}:{}}});i.push(...s),a+=20,o=s.length===20}while(o);return i.sort((e,t)=>e.title.localeCompare(t.title))}async function vc(e,{promptTitles:t=[],promptIds:n=[]}={}){let{promptsWithVariables:r}=await $(e,Ei,{input:{...t.length>0?{promptTitles:t}:{},...n.length>0?{promptIds:n}:{}}});return r}const yc=20;async function bc(e,t){let n=[],r=0,i=!1;do{let{promptThreads:{nodes:a}}=await $(e,ri,{first:20,offset:r,filterBy:t});n.push(...a),r+=20,i=a.length===20}while(i);return n.sort((e,t)=>e.threadId.localeCompare(t.threadId))}async function xc(e,{requestId:t,dataSiloId:n,requestStatuses:r,statuses:i}){let{requestDataSilos:{totalCount:a}}=await $(e,Ni,{first:1,offset:0,filterBy:{dataSiloId:n,requestId:t,status:i,requestStatus:r}});return a}const Sc=100;async function Cc(e,{requestId:t,dataSiloId:n,requestStatuses:r,statuses:i,limit:a,onProgress:o}){let s=[],c=0,l=!1;do{let{requestDataSilos:{nodes:a}}=await $(e,Ni,{first:100,offset:c,filterBy:{dataSiloId:n,requestId:t,status:i,requestStatus:r}});s.push(...a),c+=100,l=a.length===100,o?.(a.length)}while(l&&(!a||c<a));return s}async function wc(e,{requestId:t,dataSiloId:n}){let r=await Cc(e,{requestId:t,dataSiloId:n});if(r.length!==1)throw Error(`Failed to find RequestDataSilo with requestId:${t},dataSiloId:${n}`);return r[0]}async function Tc(e,{dataSiloId:t}){let{listReducedRequestsForDataSilo:{totalCount:n}}=await $(e,Ii,{input:{dataSiloId:t,isResolved:!1}});return n}async function Ec(e,t,n){let r=[],i=null,a=!1;do{let{bulkRequestFiles:{nodes:o,pageInfo:s}}=await $(e,Wi,{filterBy:{...n},first:t,after:i??void 0});r.push(...o),a=s.hasNextPage,i=s.endCursor}while(a);return r.sort((e,t)=>e.remoteId.localeCompare(t.remoteId))}async function Dc(e,{email:t,password:n}){let{determineLoginMethod:{loginMethod:r}}=await $(e,Ha,{email:t}),i=await e.rawRequest(Ua,{email:t,password:n,publicKey:r.sombraPublicKey}),{login:{user:a}}=i.data,o=i.headers.get(`set-cookie`);if(!o||!o.includes(`laravel`))throw Error(`Failed to get login cookie in response`);return{roles:a.roles,loginCookie:o}}async function Oc(e,{email:t,roleId:n}){let{determineLoginMethod:{loginMethod:r}}=await $(e,Ha,{email:t,userId:n});await e.rawRequest(Wa,{id:n,publicKey:r.sombraPublicKey})}async function kc(e,t){let{createApiKey:{apiKey:n}}=await $(e,Hr,{input:t});return n}async function Ac(e,t){await $(e,Ur,{id:t})}const jc=l.type({dependsOnQuestionReferenceId:l.string,comparisonOperator:l.union([l.literal(i.ComparisonOperator.IsEqualTo),l.literal(i.ComparisonOperator.IsNotEqualTo),l.literal(i.ComparisonOperator.IsOneOf),l.literal(i.ComparisonOperator.IsNotOneOf),l.literal(i.ComparisonOperator.Contains)]),comparisonOperands:l.array(l.string)}),Mc=l.type({dependsOnQuestionReferenceId:l.string,comparisonOperator:l.union([l.literal(i.ComparisonOperator.IsNotShown),l.literal(i.ComparisonOperator.IsShown)])}),Nc=l.union([jc,Mc]),Pc=l.recursion(`AssessmentNestedRule`,e=>l.intersection([l.type({logicOperator:(0,a.valuesOf)(i.LogicOperator)}),l.partial({rules:l.array(Nc),nestedRules:l.array(e)})])),Fc=l.partial({action:(0,a.valuesOf)(i.AssessmentsDisplayLogicAction),rule:Nc,nestedRule:Pc});function Ic(e){return(0,a.decodeCodec)(Fc,e)}const Lc=l.intersection([l.partial({riskAssignment:l.partial({riskLevelId:l.string,riskMatrixRowId:l.string,riskMatrixColumnId:l.string})}),l.type({comparisonOperands:l.array(l.string),comparisonOperator:(0,a.valuesOf)(i.ComparisonOperator)})]);function Rc(e){return(0,a.decodeCodec)(Lc,e)}const zc=20;async function Bc(e,{titles:t,pageSize:n,ids:i=[],gql:a=br,integrationNames:o=[]}){r.t.info(c.default.magenta(`Fetching ${i.length===0?`all`:i.length} Data Silos...`));let s=[],l=0,u=!1;do{let{dataSilos:{nodes:r}}=await $(e,a,{filterBy:{ids:i.length>0?i:void 0,type:o.length>0?o:void 0,titles:t},first:n,offset:l});s.push(...r),l+=n,u=r.length===n}while(u);return r.t.info(c.default.green(`Found a total of ${s.length} data silo${i.length>0?` matching IDs ${i.join(`,`)}`:``}s${o.length>0?` matching integrationNames ${o.join(`,`)}`:``}`)),s.sort((e,t)=>e.title.localeCompare(t.title))}async function Vc(e,t,{debug:n,includeGuessedCategories:i,pageSize:a}){let o=[],s=0,l=!1;do try{n&&r.t.log(c.default.magenta(`Pulling in subdatapoints for offset ${s}`));let{subDataPoints:{nodes:u}}=await $(e,i?gr:mr,{first:a,filterBy:{dataPoints:[t]},offset:s});o.push(...u),s+=a,l=u.length===a,n&&r.t.log(c.default.green(`Pulled in subdatapoints for offset ${s} for dataPointId=${t}`))}catch(e){throw r.t.error(c.default.red(`An error fetching subdatapoints for offset ${s} for dataPointId=${t}`)),e}while(l);return tr(o,`name`)}async function Hc(e,t,{debug:n,pageSize:i,skipSubDatapoints:a,includeGuessedCategories:o}){let s=[],l=0,u=!1;do{n&&r.t.info(c.default.magenta(`Fetching datapoints with offset: ${l}`));let{dataPoints:{nodes:d}}=await $(e,fr,{first:i,filterBy:{dataSilos:[t]},offset:l});n&&r.t.info(c.default.magenta(`Fetched ${d.length} datapoints at offset: ${l}`)),a||(await U(d,async t=>{try{n&&r.t.info(c.default.magenta(`Fetching subdatapoints for ${t.name} for datapoint offset ${l}`));let i=await Vc(e,t.id,{pageSize:1e3,debug:n,includeGuessedCategories:o});s.push({...t,subDataPoints:i.sort((e,t)=>e.name.localeCompare(t.name))}),n&&r.t.info(c.default.green(`Successfully fetched subdatapoints for ${t.name}`))}catch(e){throw r.t.error(c.default.red(`An error fetching subdatapoints for ${t.name} datapoint offset ${l}`)),e}},{concurrency:5}),n&&r.t.info(c.default.green(`Fetched all subdatapoints for page of datapoints at offset: ${l}`))),l+=i,u=d.length===i}while(u);return s.sort((e,t)=>e.name.localeCompare(t.name))}async function Uc(e,{ids:t,pageSize:n,titles:i,debug:a,skipDatapoints:o,skipSubDatapoints:s,includeGuessedCategories:l,integrationNames:u}){let d=[],f=await Bc(e,{titles:i,ids:t,integrationNames:u,pageSize:n,gql:Sr});return o||await W(f,async(t,i)=>{r.t.info(c.default.magenta(`[${i+1}/${f.length}] Fetching data silo - ${t.title}`));let o=await Hc(e,t.id,{debug:a,pageSize:n,skipSubDatapoints:s,includeGuessedCategories:l});a&&r.t.info(c.default.green(`[${i+1}/${f.length}] Successfully fetched datapoint for - ${t.title}`)),d.push([t,o])}),r.t.info(c.default.green(`Successfully fetched all ${f.length} data silo configurations`)),d}async function Wc(e,n,{pageSize:i,dataSubjectsByName:o,apiKeysByTitle:s}){let l=!1,u=new Date().getTime();r.t.info(c.default.magenta(`Syncing "${e.length}" data silos...`));let d=t.g(await Bc(n,{titles:e.map(({title:e})=>e),pageSize:i}),`title`),f=e.filter(({title:e})=>!d[e]);f.length>0&&(r.t.info(c.default.magenta(`Creating "${f.length}" data silos that did not exist...`)),await W(B(f,20),async e=>{let{createDataSilos:{dataSilos:t}}=await $(n,wr,{input:e.map(e=>({name:e[`outer-type`]||e.integrationName,title:e.title,country:e.country,countrySubDivision:e.countrySubDivision}))});t.forEach(e=>{d[e.title]=e})}),r.t.info(c.default.green(`Successfully created "${f.length}" data silos!`)));let p=B(e,20);await W(p,async(e,t)=>{r.t.info(c.default.magenta(`[Batch ${t+1}/${p.length}] Syncing "${e.length}" data silos`)),await $(n,Cr,{input:{dataSilos:e.map(e=>({id:d[e.title].id,country:e.country,countrySubDivision:e.countrySubDivision,url:e.url,headers:e.headers,description:e.description,identifiers:e[`identity-keys`],isLive:!e.disabled,ownerEmails:e.owners,teamNames:e.teams,dependedOnDataSiloTitles:e[`deletion-dependencies`]?void 0:[],apiKeyId:e[`api-key-title`]?s[e[`api-key-title`]].id:void 0,dataSubjectBlockListIds:e[`data-subjects`]?uc(e[`data-subjects`],o):void 0,attributes:e.attributes,businessEntityTitles:e.businessEntityTitles,notifyEmailAddress:e[`email-settings`]?.[`notify-email-address`],promptAVendorEmailSendFrequency:e[`email-settings`]?.[`send-frequency`],promptAVendorEmailSendType:e[`email-settings`]?.[`send-type`],promptAVendorEmailIncludeIdentifiersAttachment:e[`email-settings`]?.[`include-identifiers-attachment`],promptAVendorEmailCompletionLinkType:e[`email-settings`]?.[`completion-link-type`],manualWorkRetryFrequency:e[`email-settings`]?.[`manual-work-retry-frequency`]}))}}),r.t.info(c.default.green(`[Batch ${t+1}/${p.length}] Synced "${e.length}" data silos!`))});let m=new b.default.SingleBar({},b.default.Presets.shades_classic),h=e.filter(({datapoints:e=[]})=>e.length>0),g=e.map(({datapoints:e=[]})=>e.length).reduce((e,t)=>e+t,0);r.t.info(c.default.magenta(`Syncing "${g}" datapoints from "${h.length}" data silos...`)),m.start(g,0);let _=0;await U(h,async({datapoints:e,title:t})=>{e&&await W(e,async e=>{let i=e.fields?e.fields.map(({key:e,description:t,categories:n,purposes:r,attributes:i,...a})=>({name:e,description:t,categories:n?n.map(e=>({...e,name:e.name||`Other`})):void 0,purposes:r?r.map(e=>({...e,name:e.name||`Other`})):void 0,attributes:i,accessRequestVisibilityEnabled:a[`access-request-visibility-enabled`],erasureRequestRedactionEnabled:a[`erasure-request-redaction-enabled`]})):void 0,a={dataSiloId:d[t].id,path:e.path,name:e.key,title:e.title,description:e.description,...e.owners?{ownerEmails:e.owners}:{},...e.teams?{teamNames:e.teams}:{},...e[`data-collection-tag`]?{dataCollectionTag:e[`data-collection-tag`]}:{},querySuggestions:e[`privacy-action-queries`]?Object.entries(e[`privacy-action-queries`]).map(([e,t])=>({requestType:e,suggestedQuery:t})):void 0,enabledActions:e[`privacy-actions`]||[],subDataPoints:i},o=(a.subDataPoints||[]).map(({name:e})=>e),s=o.filter((e,t)=>o.indexOf(e)!==t);if(s.length>0)r.t.info(c.default.red(`\nCannot update datapoint "${e.key}" as it has duplicate sub-datapoints with the same name: \n${s.join(`
3000
- `)}`)),l=!0;else try{await $(n,_r,a)}catch(n){r.t.info(c.default.red(`\nFailed to update datapoint "${e.key}" for data silo "${t}"! - \n${n.message}`)),l=!0}_+=1,m.update(_)})},{concurrency:10}),m.stop();let v=new Date().getTime()-u;return r.t.info(c.default.green(`Synced "${e.length}" data silos and "${g}" datapoints in "${v/1e3}" seconds!`)),{success:!l,dataSiloTitleToId:(0,a.apply)(d,({id:e})=>e)}}async function Gc(e,t){let n=!1;return r.t.info(c.default.magenta(`Syncing "${t.length}" data silo dependencies...`)),await W(B(t,20),async(t,i)=>{r.t.info(c.default.magenta(`[Batch ${i}/${t.length}] Updating "${t.length}" data silos...`));try{await $(e,Cr,{input:{dataSilos:t.map(([e,t])=>({id:e,dependedOnDataSiloTitles:t}))}}),r.t.info(c.default.green(`[Batch ${i+1}/${t.length}] Synced "${t.length}" data silos!`))}catch(e){n=!0,r.t.info(c.default.red(`[Batch ${i+1}/${t.length}] Failed to update "${t.length}" silos! - ${e.message}`))}}),!n}const Kc=20;async function qc(e,t){let n=[],r=0,i=!1;do{let{enrichers:{nodes:a}}=await $(e,Tr,{first:20,offset:r,title:t});n.push(...a),r+=20,i=a.length===20}while(i);return n.sort((e,t)=>e.title.localeCompare(t.title))}async function Jc(e,{enricher:t,identifierByName:n,dataSubjectsByName:r}){let a=(await qc(e,t.title)).find(({title:e})=>e===t.title),o=t[`data-subjects`]?.map(e=>{let t=r[e];if(!t)throw Error(`Failed to find a data subject with name: ${e}`);return t.id}),s=t[`input-identifier`],c=t[`privacy-actions`]||Object.values(i.RequestAction);a?await $(e,Or,{input:{id:a.id,title:t.title,url:t.url,headers:t.headers,testRegex:t.testRegex,lookerQueryTitle:t.lookerQueryTitle,expirationDuration:typeof t.expirationDuration==`number`?t.expirationDuration.toString():void 0,transitionRequestStatus:t.transitionRequestStatus,phoneNumbers:t.phoneNumbers,regionList:t.regionList,dataSubjectIds:o,description:t.description||``,inputIdentifier:s?n[s].id:void 0,identifiers:t[`output-identifiers`].map(e=>n[e].id),...a.type===i.EnricherType.Sombra?{}:{actions:c}}}):s&&await $(e,Dr,{input:{title:t.title,url:t.url,type:t.type||i.EnricherType.Server,headers:t.headers,testRegex:t.testRegex,lookerQueryTitle:t.lookerQueryTitle,expirationDuration:typeof t.expirationDuration==`number`?t.expirationDuration.toString():void 0,transitionRequestStatus:t.transitionRequestStatus,phoneNumbers:t.phoneNumbers,dataSubjectIds:o,regionList:t.regionList,description:t.description||``,inputIdentifier:n[s].id,identifiers:t[`output-identifiers`].map(e=>n[e].id),actions:c}})}const Yc=20;async function Xc(e,t){let n=[],r=0,i=!1;do{let{templates:{nodes:a}}=await $(e,qr,{first:20,offset:r,title:t});n.push(...a),r+=20,i=a.length===20}while(i);return n.sort((e,t)=>e.title.localeCompare(t.title))}async function Zc(e,t){(await Xc(t,e.title)).find(({title:t})=>t===e.title)||await $(t,Jr,{title:e.title})}function Qc(e){return e.map(({country:e,countrySubDivision:t})=>({country:e,...t?{countrySubDivision:t}:{}}))}async function $c(e,t={}){let{globalActionItemCollections:{nodes:n}}=await $(e,qi,{filterBy:{...t}});return n}const el=50;async function tl(e){let t=[],n=0,r=!1;do{let{consentPartitions:{nodes:i}}=await $(e,aa,{first:50,offset:n});t.push(...i),n+=50,r=i.length===50}while(r);return t.sort((e,t)=>e.name.localeCompare(t.name))}async function nl(e,t){let n=await X(e),i=!1,a=await tl(e);return await W(V(t.map(({name:e})=>e),a.map(({name:e})=>e)),async t=>{try{await $(e,Oa,{input:{id:n,name:t}}),r.t.info(c.default.green(`Successfully created consent partition: ${t}!`))}catch(e){r.t.error(c.default.red(`Failed to create consent partition: ${t}! - ${e.message}`)),i=!0}}),!i}const rl=30;async function il(e){let t=[],n=0,r=!1;do{let{siloDiscoveryResults:{nodes:i}}=await $(e,ho,{first:30,offset:n,input:{},filterBy:{}}),a=i.map(e=>e.title===null&&e.suggestedCatalog?.title?{...e,title:e.suggestedCatalog.title}:e);t.push(...a),n+=30,r=i.length===30}while(r);return t}const al=[n.o.DataSilos,n.o.Enrichers,n.o.Templates,n.o.ApiKeys];async function ol(e,{dataSiloIds:a,integrationNames:o,debug:s,resources:l=al,pageSize:u,skipDatapoints:d,includeGuessedCategories:f,skipSubDatapoints:p,trackerStatuses:m=Object.values(i.ConsentTrackerStatus)}){if(a.length>0&&o.length>0)throw Error(`Only 1 of integrationNames OR dataSiloIds can be provided`);r.t.info(c.default.magenta(`Fetching data with page size ${u}...`));let[h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N,P,F,ee,I,L,te,R,ne,re,ie,ae,oe,se,ce,le]=await Promise.all([l.includes(n.o.DataSilos)||l.includes(n.o.DataSubjects)?cc(e):[],l.includes(n.o.ApiKeys)?ic({},e,!0):[],l.includes(n.o.DataSilos)?Uc(e,{ids:a,integrationNames:o,pageSize:u,debug:s,includeGuessedCategories:f,skipDatapoints:d,skipSubDatapoints:p}):[],l.includes(n.o.Enrichers)?qc(e):[],l.includes(n.o.DataFlows)?[...m.includes(i.ConsentTrackerStatus.Live)?await bs(e,i.ConsentTrackerStatus.Live):[],...m.includes(i.ConsentTrackerStatus.NeedsReview)?await bs(e,i.ConsentTrackerStatus.NeedsReview):[]]:[],l.includes(n.o.Cookies)?[...m.includes(i.ConsentTrackerStatus.Live)?await gs(e,i.ConsentTrackerStatus.Live):[],...m.includes(i.ConsentTrackerStatus.NeedsReview)?await gs(e,i.ConsentTrackerStatus.NeedsReview):[]]:[],l.includes(n.o.Attributes)?os(e):[],l.includes(n.o.Templates)?Xc(e):[],l.includes(n.o.Identifiers)?tf(e):[],l.includes(n.o.Actions)?Vo(e):[],l.includes(n.o.BusinessEntities)?cs(e):[],l.includes(n.o.ProcessingActivities)?ks(e):[],l.includes(n.o.ConsentManager)?ls(e):void 0,l.includes(n.o.ConsentManager)?ds(e):[],l.includes(n.o.Prompts)?_c(e):[],l.includes(n.o.PromptPartials)?hc(e):[],l.includes(n.o.PromptGroups)?pc(e):[],l.includes(n.o.Agents)?qo(e):[],l.includes(n.o.AgentFunctions)?Go(e):[],l.includes(n.o.AgentFiles)?Uo(e):[],l.includes(n.o.Vendors)?ec(e):[],l.includes(n.o.DataCategories)?vs(e):[],l.includes(n.o.ProcessingPurposes)?js(e):[],l.includes(n.o.ActionItems)?zo(e,{type:[i.ActionItemCode.Onboarding]}):[],l.includes(n.o.ActionItemCollections)?$c(e):[],l.includes(n.o.Teams)?Xs(e):[],l.includes(n.o.Policies)?ws(e):[],l.includes(n.o.PrivacyCenters)?Ds(e):[],l.includes(n.o.Messages)?xs(e):[],l.includes(n.o.Partitions)?tl(e):[],l.includes(n.o.Assessments)?Yo(e):[],l.includes(n.o.AssessmentTemplates)?Zo(e):[],l.includes(n.o.Purposes)?Ps(e):[],l.includes(n.o.SystemDiscovery)?il(e):[]]),ue=l.includes(n.o.ConsentManager)&&D?await ms(e,D.id):void 0,z={},de=Ve(_.map(([{apiKeys:e}])=>e.map(({title:e})=>e))),fe=Object.values(g).filter(({title:e})=>l.includes(n.o.ApiKeys)?!0:de.includes(e));if(fe.length>0&&l.includes(n.o.ApiKeys)&&(z[`api-keys`]=fe.map(({title:e})=>({title:e}))),ae.length>0&&l.includes(n.o.Partitions)&&(z.partitions=ae.map(({name:e,partition:t})=>({name:e,partition:t}))),D&&l.includes(n.o.ConsentManager)&&(z[`consent-manager`]={bundleUrls:{TEST:D.testBundleURL,PRODUCTION:D.bundleURL},domains:D.configuration.domains||void 0,partition:D.configuration.partition||void 0,consentPrecedence:D.configuration.consentPrecedence||void 0,unknownRequestPolicy:D.configuration.unknownRequestPolicy||void 0,unknownCookiePolicy:D.configuration.unknownCookiePolicy||void 0,syncEndpoint:D.configuration.syncEndpoint||void 0,telemetryPartitioning:D.configuration.telemetryPartitioning||void 0,signedIabAgreement:D.configuration.signedIabAgreement||void 0,syncGroups:D.configuration.syncGroups||void 0,theme:ue?{primaryColor:ue.primaryColor||void 0,fontColor:ue.fontColor||void 0,privacyPolicy:ue.privacyPolicy||void 0,prompt:ue.prompt}:void 0,experiences:O.map(e=>({name:e.name,displayName:e.displayName||void 0,regions:e.regions.map(e=>({countrySubDivision:e.countrySubDivision||void 0,country:e.country||void 0})),onConsentExpiry:e.onConsentExpiry,consentExpiry:e.consentExpiry,operator:e.operator,displayPriority:e.displayPriority,viewState:e.viewState,purposes:e.purposes.map(e=>({trackingType:e.trackingType})),optedOutPurposes:e.optedOutPurposes.map(e=>({trackingType:e.trackingType})),browserLanguages:e.browserLanguages,browserTimeZones:e.browserTimeZones}))}),oe.length>0&&l.includes(n.o.Assessments)&&(z.assessments=oe.map(({title:e,assessmentGroup:t,sections:n,creator:r,description:i,status:a,assignees:o,externalAssignees:s,reviewers:c,isLocked:l,isArchived:u,isExternallyCreated:d,dueDate:f,createdAt:p,assignedAt:m,submittedAt:h,approvedAt:g,rejectedAt:_,titleIsInternal:v,retentionSchedule:y,attributeValues:b,resources:x,syncedRows:S})=>({title:e,group:t.title,sections:n.map(({title:e,status:t,questions:n,assignees:r,isReviewed:i,externalAssignees:a})=>({title:e,status:t,questions:n.map(({title:e,type:t,subType:n,placeholder:r,description:i,isRequired:a,referenceId:o,displayLogic:s,riskLogic:c,riskCategories:l,riskFramework:u,answerOptions:d,selectedAnswers:f,allowedMimeTypes:p,allowSelectOther:m,syncModel:h,syncColumn:g,attributeKey:_,requireRiskEvaluation:v,requireRiskMatrixEvaluation:y})=>{let b=s?Ic(s):void 0;return{title:e,type:t,"sub-type":n,placeholder:r,description:i,"is-required":a,"reference-id":o,"display-logic":b&&Object.keys(b).length>0?{action:b.action,rule:b.rule?{"depends-on-question-reference-id":b.rule.dependsOnQuestionReferenceId,"comparison-operator":b.rule.comparisonOperator,"comparison-operands":`comparisonOperands`in b.rule?b.rule.comparisonOperands:void 0}:void 0,"nested-rule":b.nestedRule?{"logic-operator":b.nestedRule.logicOperator,rules:(b.nestedRule.rules||[]).map(e=>({"depends-on-question-reference-id":e.dependsOnQuestionReferenceId,"comparison-operator":e.comparisonOperator,"comparison-operands":`comparisonOperands`in e?e.comparisonOperands:void 0}))}:void 0}:void 0,"risk-logic":c.map(e=>{let t=Rc(e);return{"risk-level":t.riskAssignment?.riskLevelId,"comparison-operands":t.comparisonOperands,"comparison-operator":t.comparisonOperator}}),"risk-categories":l.map(({title:e})=>e),"risk-framework":u?.title,"answer-options":d.map(({value:e})=>({value:e})),"selected-answers":f.map(({value:e})=>e),"allowed-mime-types":p,"allow-select-other":m,"sync-model":h||void 0,"sync-column":g||void 0,"attribute-key":_?.name,"require-risk-evaluation":v,"require-risk-matrix-evaluation":y}}),assignees:r.map(({email:e})=>e),"external-assignees":a.map(({email:e})=>e),"is-reviewed":i})),creator:r?.email,description:i,status:a,assignees:o.map(({email:e})=>e),"external-assignees":s.map(({email:e})=>e),reviewers:c.map(({email:e})=>e),locked:l,archived:u,external:d,"title-is-internal":v,"due-date":f||void 0,"created-at":p||void 0,"assigned-at":m||void 0,"submitted-at":h||void 0,"approved-at":g||void 0,"rejected-at":_||void 0,"retention-schedule":y?{type:y.type,"duration-days":y.durationDays,operand:y.operation}:void 0,attributes:b!==void 0&&b.length>0?Z(b):void 0,resources:x.map(({resourceType:e,title:t,name:n,category:r,type:i,purpose:a})=>({type:e,title:r?`${r} - ${n}`:a?`${a} - ${n}`:t||n||i||``})),rows:S.map(({resourceType:e,title:t,name:n,category:r,type:i,purpose:a})=>({type:e,title:r?`${r} - ${n}`:a?`${a} - ${n}`:t||n||i||``}))}))),se.length>0&&l.includes(n.o.AssessmentTemplates)&&(z[`assessment-templates`]=se.map(({title:e,description:t,sections:n,status:r,source:i,creator:a,isLocked:o,isArchived:s,createdAt:c,retentionSchedule:l})=>({title:e,description:t,sections:n.map(({title:e,questions:t})=>({title:e,questions:t.map(({title:e,type:t,subType:n,placeholder:r,description:i,isRequired:a,referenceId:o,displayLogic:s,riskLogic:c,riskCategories:l,riskFramework:u,answerOptions:d,allowedMimeTypes:f,allowSelectOther:p,syncModel:m,syncColumn:h,attributeKey:g,requireRiskEvaluation:_,requireRiskMatrixEvaluation:v})=>{let y=s?Ic(s):void 0;return{title:e,type:t,"sub-type":n,placeholder:r,description:i,"is-required":a,"reference-id":o,"display-logic":y&&Object.keys(y).length>0?{action:y.action,rule:y.rule?{"depends-on-question-reference-id":y.rule.dependsOnQuestionReferenceId,"comparison-operator":y.rule.comparisonOperator,"comparison-operands":`comparisonOperands`in y.rule?y.rule.comparisonOperands:void 0}:void 0,"nested-rule":y.nestedRule?{"logic-operator":y.nestedRule.logicOperator,rules:(y.nestedRule.rules||[]).map(e=>({"depends-on-question-reference-id":e.dependsOnQuestionReferenceId,"comparison-operator":e.comparisonOperator,"comparison-operands":`comparisonOperands`in e?e.comparisonOperands:void 0}))}:void 0}:void 0,"risk-logic":c.map(e=>{let t=Rc(e);return{"risk-level":t.riskAssignment?.riskLevelId,"risk-matrix-row":t.riskAssignment?.riskMatrixRowId,"risk-matrix-column":t.riskAssignment?.riskMatrixColumnId,"comparison-operands":t.comparisonOperands,"comparison-operator":t.comparisonOperator}}),"risk-categories":l.map(({title:e})=>e),"risk-framework":u?.title,"answer-options":d.map(({value:e})=>({value:e})),"allowed-mime-types":f,"allow-select-other":p,"sync-model":m||void 0,"sync-column":h||void 0,"attribute-key":g?.name,"require-risk-evaluation":_,"require-risk-matrix-evaluation":v}})})),status:r,source:i,creator:a?.email,locked:o,archived:s,"created-at":c||void 0,"retention-schedule":l?{type:l.type,"duration-days":l.durationDays,operand:l.operation}:void 0}))),le.length>0&&l.includes(n.o.SystemDiscovery)&&(z[`system-discovery`]=le.map(({title:e,resourceId:t,suggestedCatalog:{title:n},plugin:{dataSilo:{title:r}},country:i,countrySubDivision:a,plaintextContext:o,containsSensitiveData:s,status:c})=>({title:e,resourceId:t,suggestedCatalog:n,plugin:r,country:i||void 0,countrySubDivision:a||void 0,plaintextContext:o,containsSensitiveData:s,status:c}))),k.length>0&&l.includes(n.o.Prompts)&&(z.prompts=k.map(({title:e,content:t})=>({title:e,content:t}))),A.length>0&&l.includes(n.o.PromptPartials)&&(z[`prompt-partials`]=A.map(({title:e,content:t})=>({title:e,content:t}))),j.length>0&&l.includes(n.o.PromptGroups)&&(z[`prompt-groups`]=j.map(({title:e,description:t,prompts:n})=>({title:e,description:t,prompts:n.map(({title:e})=>e)}))),R.length>0&&l.includes(n.o.Teams)&&(z.teams=R.map(({name:e,description:t,ssoDepartment:n,ssoGroup:r,ssoTitle:i,users:a,scopes:o})=>({name:e,description:t,"sso-department":n||void 0,"sso-group":r||void 0,"sso-title":i||void 0,users:a.map(({email:e})=>e),scopes:o.map(({name:e})=>e)}))),h.length>0&&l.includes(n.o.DataSubjects)&&(z[`data-subjects`]=h.map(({type:e,title:t,active:n,adminDashboardDefaultSilentMode:r,actions:i})=>({type:e,title:t?.defaultMessage,active:n,adminDashboardDefaultSilentMode:r,actions:i.map(({type:e})=>e)}))),ne.length>0&&(z.policies=ne.map(({title:e,versions:t,disabledLocales:n})=>({title:e?.defaultMessage,content:t?.[0]?.content?.defaultMessage,disabledLocales:n}))),ie.length>0&&(z.messages=ie.map(({id:e,defaultMessage:t,targetReactIntlId:n,description:r,translations:i})=>({id:e,defaultMessage:t,description:r,targetReactIntlId:n||void 0,translations:i.reduce((e,{locale:t,value:n})=>Object.assign(e,{[t]:n}),{})}))),re.length>0){let e=re[0];z[`privacy-center`]={isDisabled:e.isDisabled,showPrivacyRequestButton:e.showPrivacyRequestButton,showPolicies:e.showPolicies,showTrackingTechnologies:e.showTrackingTechnologies,showCookies:e.showCookies,showDataFlows:e.showDataFlows,showConsentManager:e.showConsentManager,showManageYourPrivacy:e.showManageYourPrivacy,showMarketingPreferences:e.showMarketingPreferences,locales:e.locales,defaultLocale:e.defaultLocale,preferBrowserDefaultLocale:e.preferBrowserDefaultLocale,supportEmail:e.supportEmail||void 0,replyToEmail:e.replyToEmail||void 0,useNoReplyEmailAddress:e.useNoReplyEmailAddress,useCustomEmailDomain:e.useCustomEmailDomain,transformAccessReportJsonToCsv:e.transformAccessReportJsonToCsv,theme:e.theme}}if(T.length>0&&l.includes(n.o.BusinessEntities)&&(z[`business-entities`]=T.map(({title:e,description:t,address:n,headquarterCountry:r,headquarterSubDivision:i,dataProtectionOfficerName:a,dataProtectionOfficerEmail:o,attributeValues:s})=>({title:e,description:t||void 0,address:n||void 0,headquarterCountry:r||void 0,headquarterSubDivision:i||void 0,dataProtectionOfficerName:a||void 0,dataProtectionOfficerEmail:o||void 0,attributes:s!==void 0&&s.length>0?Z(s):void 0}))),E.length>0&&l.includes(n.o.ProcessingActivities)&&(z[`processing-activities`]=E.map(({title:e,description:t,securityMeasureDetails:n,controllerships:r,storageRegions:a,transferRegions:o,retentionType:s,retentionPeriod:c,dataProtectionImpactAssessmentLink:l,dataProtectionImpactAssessmentStatus:u,attributeValues:d,dataSilos:f,dataSubjects:p,teams:m,owners:h,processingPurposeSubCategories:g,dataSubCategories:_,saaSCategories:v})=>({title:e,description:t,securityMeasureDetails:n??void 0,controllerships:r.length>0?r:void 0,storageRegions:a.length>0?Qc(a):void 0,transferRegions:o.length>0?Qc(o):void 0,retentionType:s,retentionPeriod:s===i.RetentionType.StatedPeriod?c:void 0,dataProtectionImpactAssessmentLink:l??void 0,dataProtectionImpactAssessmentStatus:u,attributes:d!==void 0&&d.length>0?Z(d):void 0,dataSiloTitles:f.length>0?f.map(({title:e})=>e):void 0,dataSubjectTypes:p.length>0?p.map(({type:e})=>e):void 0,teamNames:m.length>0?m.map(({name:e})=>e):void 0,ownerEmails:h.length>0?h.map(({email:e})=>e):void 0,processingSubPurposes:g.length>0?g.map(({name:e,purpose:t})=>({purpose:t,...e?{name:e}:{}})):void 0,dataSubCategories:_.length>0?_.map(({name:e,category:t})=>({category:t,...e?{name:e}:{}})):void 0,saaSCategories:v.length>0?v.map(({title:e})=>e):void 0}))),w.length>0&&l.includes(n.o.Actions)&&(z.actions=w.map(({type:e,skipSecondaryIfNoFiles:t,skipDownloadableStep:n,requiresReview:r,regionList:a,regionDetectionMethod:o,waitingPeriod:s})=>({type:e,...e===i.RequestAction.Erasure?{skipSecondaryIfNoFiles:t,skipDownloadableStep:n}:{},requiresReview:r,waitingPeriod:s,regionDetectionMethod:o,regionList:a.length>0?a:void 0}))),C.length>0&&l.includes(n.o.Identifiers)&&(z.identifiers=C.map(({name:e,type:t,regex:n,selectOptions:r,privacyCenterVisibility:i,isRequiredInForm:a,placeholder:o,displayTitle:s,dataSubjects:c,displayDescription:l,displayOrder:u,isUniqueOnPreferenceStore:d})=>({name:e,type:t,regex:n,selectOptions:r.length>0?r:void 0,privacyCenterVisibility:i.length>0?i:void 0,isRequiredInForm:a,placeholder:o||void 0,dataSubjects:c.length>0?c.map(({type:e})=>e):void 0,displayTitle:s?.defaultMessage,displayDescription:l?.defaultMessage,displayOrder:u,isUniqueOnPreferenceStore:d}))),M.length>0&&l.includes(n.o.Agents)&&(z.agents=M.map(({name:e,agentId:t,description:n,instructions:r,codeInterpreterEnabled:i,retrievalEnabled:a,prompt:o,largeLanguageModel:s,teams:c,owners:l,agentFunctions:u,agentFiles:d})=>({name:e,agentId:t,description:n||void 0,instructions:r,codeInterpreterEnabled:i,retrievalEnabled:a,prompt:o?.title,"large-language-model":{name:s.name,client:s.client},teams:c&&c.length>0?c.map(({name:e})=>e):void 0,owners:l&&l.length>0?l.map(({email:e})=>e):void 0,"agent-functions":u&&u.length>0?u.map(({name:e})=>e):void 0,"agent-files":d&&d.length>0?d.map(({name:e})=>e):void 0}))),L.length>0&&l.includes(n.o.ActionItems)&&(z[`action-items`]=L.map(({teams:e,users:t,customerExperienceActionItemIds:[n],dueDate:r,priority:i,resolved:a,collections:o,notes:s,link:c,title:l,type:u,attributeValues:d})=>({teams:e.map(({name:e})=>e),users:t.map(({email:e})=>e),dueDate:r||void 0,title:l,notes:s,customerExperienceActionItemId:n,collections:o.map(({title:e})=>e),link:c,priority:i||void 0,resolved:a,type:u,attributes:d!==void 0&&d.length>0?Z(d):void 0}))),te.length>0&&l.includes(n.o.ActionItemCollections)&&(z[`action-item-collections`]=te.map(({title:e,description:t,hidden:n,productLine:r})=>({title:e,description:t||void 0,hidden:n,productLine:r}))),N.length>0&&l.includes(n.o.AgentFunctions)&&(z[`agent-functions`]=N.map(({name:e,description:t,parameters:n})=>({name:e,description:t,parameters:JSON.stringify(n)}))),P.length>0&&l.includes(n.o.AgentFiles)&&(z[`agent-files`]=P.map(({name:e,description:t,fileId:n,size:r,purpose:i})=>({name:e,description:t,fileId:n,size:r,purpose:i}))),F.length>0&&l.includes(n.o.Vendors)&&(z.vendors=F.map(({title:e,description:t,dataProcessingAgreementLink:n,contactName:r,contactPhone:i,address:a,headquarterCountry:o,headquarterSubDivision:s,websiteUrl:c,businessEntity:l,teams:u,owners:d,attributeValues:f})=>({title:e,description:t||void 0,dataProcessingAgreementLink:n||void 0,contactName:r||void 0,contactPhone:i||void 0,address:a||void 0,headquarterCountry:o||void 0,headquarterSubDivision:s||void 0,websiteUrl:c||void 0,businessEntity:l?.title,teams:u&&u.length>0?u.map(({name:e})=>e):void 0,owners:d&&d.length>0?d.map(({email:e})=>e):void 0,attributes:f!==void 0&&f.length>0?Z(f):void 0}))),ee.length>0&&l.includes(n.o.DataCategories)&&(z[`data-categories`]=ee.map(({name:e,category:t,description:n,regex:r,owners:i,teams:a,attributeValues:o})=>({name:e,category:t,description:n||void 0,regex:r||void 0,owners:i&&i.length>0?i.map(({email:e})=>e):void 0,teams:a&&a.length>0?a.map(({name:e})=>e):void 0,attributes:o!==void 0&&o.length>0?Z(o):void 0}))),I.length>0&&l.includes(n.o.ProcessingPurposes)&&(z[`processing-purposes`]=I.map(({name:e,purpose:t,description:n,owners:r,teams:i,attributeValues:a})=>({name:e,purpose:t,description:n||void 0,owners:r&&r.length>0?r.map(({email:e})=>e):void 0,teams:i&&i.length>0?i.map(({name:e})=>e):void 0,attributes:a!==void 0&&a.length>0?Z(a):void 0}))),y.length>0&&l.includes(n.o.DataFlows)&&(z[`data-flows`]=y.map(({value:e,type:t,description:n,trackingType:r,service:i,status:a,owners:o,teams:s,attributeValues:c})=>({value:e,type:t,description:n||void 0,trackingPurposes:r,status:a,service:i?.integrationName,owners:o.map(({email:e})=>e),teams:s.map(({name:e})=>e),attributes:c!==void 0&&c.length>0?Z(c):void 0}))),b.length>0&&l.includes(n.o.Cookies)&&(z.cookies=b.map(({name:e,isRegex:t,description:n,trackingPurposes:r,service:i,status:a,owners:o,teams:s,attributeValues:c})=>({name:e,isRegex:t,description:n||void 0,trackingPurposes:r,status:a,service:i?.integrationName,owners:o.map(({email:e})=>e),teams:s.map(({name:e})=>e),attributes:c!==void 0&&c.length>0?Z(c):void 0}))),x.length>0&&l.includes(n.o.Attributes)&&(z.attributes=x.map(({description:e,name:t,type:n,values:r,enabledOn:i=[]})=>({description:e||void 0,resources:i,name:t,type:n,values:r.map(({name:e,color:t,description:n})=>({name:e,color:t||void 0,description:n}))}))),ce.length>0&&(z.purposes=ce.map(({name:e,description:t,trackingType:n,defaultConsent:r,configurable:i,showInConsentManager:a,isActive:o,displayOrder:s,optOutSignals:c,authLevel:l,topics:u,showInPrivacyCenter:d,title:f})=>({name:e,title:f,description:t||void 0,trackingType:n,"default-consent":r,configurable:i,"show-in-consent-manager":a,"show-in-privacy-center":d,"is-active":o,"display-order":s,"opt-out-signals":c.length>0?c:void 0,"auth-level":l||void 0,"preference-topics":u.map(({title:e,type:t,displayDescription:n,defaultConfiguration:r,showInPrivacyCenter:i,preferenceOptionValues:a})=>({title:e.defaultMessage,type:t,description:n.defaultMessage,"default-configuration":r,"show-in-privacy-center":i,...a.length>0?{options:a.map(({title:e,slug:t})=>({title:e.defaultMessage,slug:t}))}:{}}))}))),a.length===0&&S.length>0&&l.includes(n.o.Templates)&&(z.templates=S.map(({title:e})=>({title:e}))),v.length>0&&l.includes(n.o.Enrichers)&&(z.enrichers=v.map(({title:e,url:t,type:n,inputIdentifier:r,identifiers:a,actions:o,testRegex:s,dataSubjects:c,expirationDuration:l,lookerQueryTitle:u,transitionRequestStatus:d,phoneNumbers:f,regionList:p})=>({title:e,url:t||void 0,type:n,"input-identifier":r?.name,"output-identifiers":a.map(({name:e})=>e),"privacy-actions":Object.values(i.RequestAction).length===o.length?void 0:o,testRegex:s||void 0,lookerQueryTitle:u||void 0,expirationDuration:parseInt(l,10),transitionRequestStatus:d||void 0,phoneNumbers:f&&f.length>0?f:void 0,regionList:p&&p.length>0?p:void 0,"data-subjects":c.map(({type:e})=>e)}))),_.length>0&&l.includes(n.o.DataSilos)){let e=t.g(h,`type`);z[`data-silos`]=_.map(([{title:n,description:r,url:i,type:a,outerType:o,apiKeys:s,notifyEmailAddress:c,identifiers:l,dependentDataSilos:u,owners:d,country:p,countrySubDivision:m,teams:h,subjectBlocklist:g,isLive:_,promptAVendorEmailSendFrequency:v,promptAVendorEmailSendType:y,promptAVendorEmailIncludeIdentifiersAttachment:b,promptAVendorEmailCompletionLinkType:x,manualWorkRetryFrequency:S,catalog:C,attributeValues:w,discoveredBy:T,businessEntities:E},D])=>({title:n,description:r,integrationName:a,"outer-type":o||void 0,url:i||void 0,"api-key-title":s[0]?.title,"identity-keys":l.filter(({isConnected:e})=>e).map(({name:e})=>e),...u.length>0?{"deletion-dependencies":u.map(({title:e})=>e)}:{},...d.length>0?{owners:d.map(({email:e})=>e)}:{},...h.length>0?{teams:h.map(({name:e})=>e)}:{},...T.length>0?{discoveredBy:T.map(({title:e})=>e)}:{},...E.length>0?{businessEntities:E.map(({title:e})=>e)}:{},country:p||void 0,countrySubDivision:m||void 0,disabled:!_,"data-subjects":g.length>0?dc(g.map(({type:e})=>e),e):void 0,...C.hasAvcFunctionality?{"email-settings":{"notify-email-address":c||void 0,"send-frequency":v,"send-type":y,"include-identifiers-attachment":b,"completion-link-type":x,"manual-work-retry-frequency":S}}:{},attributes:w!==void 0&&w.length>0?Z(w):void 0,datapoints:D.map(e=>({key:e.name,title:e.title?.defaultMessage,description:e.description?.defaultMessage,owners:e.owners.map(({email:e})=>e),teams:e.teams.map(({name:e})=>e),...e.path.length>0?{path:e.path}:{},...e.dataCollection?.title?{"data-collection-tag":e.dataCollection.title.defaultMessage}:{},...e.dbIntegrationQueries.length>0?{"privacy-action-queries":Gn(t.g(e.dbIntegrationQueries,`requestType`),e=>e.suggestedQuery||e.query||void 0)}:{},...e.subDataPoints.length>0?{fields:e.subDataPoints.map(e=>({key:e.name,description:e.description,purposes:e.purposes,categories:e.categories,...f&&e.pendingCategoryGuesses?{"guessed-categories":e.pendingCategoryGuesses.filter(e=>e.status===`PENDING`).map(e=>({category:{name:e.category.name,category:e.category.category},status:e.status,confidence:e.confidence,classifierVersion:e.classifierVersion||void 0}))}:{},"access-request-visibility-enabled":e.accessRequestVisibilityEnabled,"erasure-request-redaction-enabled":e.erasureRequestRedactionEnabled,attributes:e.attributeValues!==void 0&&e.attributeValues.length>0?Z(e.attributeValues):void 0})).sort((e,t)=>e.key.localeCompare(t.key))}:{},"privacy-actions":e.actionSettings.filter(({active:e})=>e).map(({type:e})=>e)})).sort((e,t)=>[...e.path??[],e.key].join(`.`).localeCompare([...t.path??[],t.key].join(`.`)))}))}return z}async function sl(e,t){let{reportPromptRun:{promptRun:n}}=await $(e,Gi,{input:{...t,promptRunMessages:t.promptRunMessages.map(({content:e,...t})=>({...t,message:e}))}});return n.id}async function cl(e,t){await $(e,hi,{requestEnricherId:t})}async function ll(e,t){await $(e,ra,{input:t})}const ul=[...Object.values(i.IsoCountryCode),...Object.values(i.IsoCountrySubdivisionCode)];async function dl(e,{action:t,actionId:n,skipPublish:r=!1}){await $(e,Pa,{input:{id:n,skipSecondaryIfNoFiles:t.skipSecondaryIfNoFiles,skipDownloadableStep:t.skipDownloadableStep,requiresReview:t.requiresReview,waitingPeriod:t.waitingPeriod,skipPublish:r,regionList:t.regionBlockList?V(ul,t.regionBlockList):t.regionList,regionDetectionMethod:t.regionDetectionMethod}})}async function fl(e,t){let{createActionItemCollection:n}=await $(e,Ji,{input:{title:t.title,description:t.description||``,hidden:t.hidden||!1,productLine:t.productLine}});return n.created}async function pl(e,t,n){await $(e,Yi,{input:{id:n,title:t.title,description:t.description,hidden:t.hidden,productLine:t.productLine}})}async function ml(e,n){let i=!1;r.t.info(c.default.magenta(`Syncing "${n.length}" action item collections...`));let a=t.g(await $c(e),`title`);return await W(n.filter(e=>!a[e.title]),async t=>{try{await fl(e,t),r.t.info(c.default.green(`Successfully created action item collection "${t.title}"!`))}catch(e){i=!0,r.t.info(c.default.red(`Failed to create action item collection "${t.title}"! - ${e.message}`))}}),await W(n.map(e=>[e,a[e.title]?.id]).filter(e=>!!e[1]),async([t,n])=>{try{await pl(e,t,n),r.t.info(c.default.green(`Successfully synced action item collection "${t.title}"!`))}catch(e){i=!0,r.t.info(c.default.red(`Failed to sync action item collection "${t.title}"! - ${e.message}`))}}),!i}async function hl(e,t,n,r={}){await W(B(t,100),async t=>{await $(e,La,{input:t.map(e=>({title:e.title,type:e.type,priorityOverride:e.priority,dueDate:e.dueDate,customerExperienceActionItemId:e.customerExperienceActionItemId,resolved:e.resolved,notes:e.notes,link:e.link,assigneesUserEmails:e.users,assigneesTeamNames:e.teams,...(e.attributes,{}),collectionIds:e.collections.map(e=>n[e].id)}))})})}async function gl(e,t,n,r={}){let i=e=>{let t=r[e];if(!t)throw Error(`Attribute key "${e}" does not exist!`);return t.id};await $(e,Ia,{input:{ids:[n],title:t.title,priorityOverride:t.priority,dueDate:t.dueDate,resolved:t.resolved,customerExperienceActionItemId:t.customerExperienceActionItemId,notes:t.notes,link:t.link,assigneesUserEmails:t.users,assigneesTeamNames:t.teams,...t.attributes?{attributes:t.attributes.map(({key:e,values:t})=>({attributeKeyId:i(e),attributeValueNames:t}))}:{}}})}function _l({title:e,collections:t}){return`${e}-${t.map(e=>e.title).sort().join(`-`)}`}function vl({title:e,collections:t}){return`${e}-${t.sort().join(`-`)}`}async function yl(e,n){let i=!1;r.t.info(c.default.magenta(`Syncing "${n.length}" actionItems...`));let a=n.some(e=>e.attributes&&e.attributes.length>0),[o,s,l]=await Promise.all([zo(e),$c(e),a?os(e):[]]),u=t.g(s,`title`),d=t.g(o,_l),f=t.g(l,`name`),p=t.g(o.filter(e=>!!e.customerExperienceActionItemIds),({customerExperienceActionItemIds:e})=>e[0]),m=H(n.map(e=>e.collections).flat()).filter(e=>!u[e]);if(m.length>0)return r.t.info(c.default.red(`Missing action item collections: "${m.join(`", "`)}" - please create them first!`)),!1;let h=n.filter(e=>!d[vl(e)]&&!p[e.customerExperienceActionItemId]);if(h.length>0)try{r.t.info(c.default.magenta(`Creating "${h.length}" actionItems...`)),await hl(e,h,u,f),r.t.info(c.default.green(`Successfully created "${h.length}" actionItems!`))}catch(e){i=!0,r.t.info(c.default.red(`Failed to create action items! - ${e.message}`))}return await W(n.map(e=>[e,d[vl(e)]?.id||p[e.customerExperienceActionItemId]?.id]).filter(e=>!!e[1]),async([t,n])=>{try{await gl(e,t,n,f),r.t.info(c.default.green(`Successfully synced action item "${t.title}"!`))}catch(e){i=!0,r.t.info(c.default.red(`Failed to sync action item "${t.title}"! - ${e.message}`))}}),!i}async function bl(e,t){let{createAgentFile:n}=await $(e,Xa,{input:{name:t.name,description:t.description,fileId:t.fileId,size:t.size,purpose:t.purpose,fileUploadedAt:new Date,agentIds:[]}});return n.agentFile}async function xl(e,t){await $(e,Za,{input:{agentFiles:t.map(([e,t])=>({id:t,name:e.name,description:e.description,fileId:e.fileId,size:e.size,purpose:e.purpose}))}})}async function Sl(e,n){r.t.info(c.default.magenta(`Syncing "${n.length}" agent files...`));let i=!1,a=t.g(await Uo(e),`name`);await W(n.filter(e=>!a[e.name]),async t=>{try{let n=await bl(e,t);a[n.name]=n,r.t.info(c.default.green(`Successfully synced agent file "${t.name}"!`))}catch(e){i=!0,r.t.info(c.default.red(`Failed to sync agent file "${t.name}"! - ${e.message}`))}});try{r.t.info(c.default.magenta(`Updating "${n.length}" agent files!`)),await xl(e,n.map(e=>[e,a[e.name].id])),r.t.info(c.default.green(`Successfully synced "${n.length}" agent files!`))}catch(e){i=!0,r.t.info(c.default.red(`Failed to sync "${n.length}" agent files! - ${e.message}`))}return!i}async function Cl(e,t){let{createAgentFunction:n}=await $(e,$a,{input:{name:t.name,description:t.description,parameters:t.parameters,agentIds:[]}});return n.agentFunction}async function wl(e,t){await $(e,eo,{input:{agentFunctions:t.map(([e,t])=>({id:t,name:e.name,description:e.description,parameters:e.parameters}))}})}async function Tl(e,n){r.t.info(c.default.magenta(`Syncing "${n.length}" agent functions...`));let i=!1,a=t.g(await Go(e),`name`);await W(n.filter(e=>!a[e.name]),async t=>{try{let n=await Cl(e,t);a[n.name]=n,r.t.info(c.default.green(`Successfully synced agent function "${t.name}"!`))}catch(e){i=!0,r.t.info(c.default.red(`Failed to sync agent function "${t.name}"! - ${e.message}`))}});try{r.t.info(c.default.magenta(`Updating "${n.length}" agent functions!`)),await wl(e,n.map(e=>[e,a[e.name].id])),r.t.info(c.default.green(`Successfully synced "${n.length}" agent functions!`))}catch(e){i=!0,r.t.info(c.default.red(`Failed to sync "${n.length}" agent functions! - ${e.message}`))}return!i}async function El(e,t){let{createAgent:n}=await $(e,qa,{input:{name:t.name,description:t.description,codeInterpreterEnabled:t.codeInterpreterEnabled,retrievalEnabled:t.retrievalEnabled,promptTitle:t.prompt,largeLanguageModelName:t[`large-language-model`].name,largeLanguageModelClient:t[`large-language-model`].client}});return n.agent}async function Dl(e,t){await $(e,Ja,{input:{agents:t.map(([e,t])=>({id:t,name:e.name,description:e.description,codeInterpreterEnabled:e.codeInterpreterEnabled,retrievalEnabled:e.retrievalEnabled}))}})}async function Ol(e,n){r.t.info(c.default.magenta(`Syncing "${n.length}" agents...`));let i=!1,a=t.g(await qo(e),`name`);await W(n.filter(e=>!a[e.name]),async t=>{try{let n=await El(e,t);a[n.name]=n,r.t.info(c.default.green(`Successfully synced agent "${t.name}"!`))}catch(e){i=!0,r.t.info(c.default.red(`Failed to sync agent "${t.name}"! - ${e.message}`))}});try{r.t.info(c.default.magenta(`Updating "${n.length}" agents!`)),await Dl(e,n.map(e=>[e,a[e.name].id])),r.t.info(c.default.green(`Successfully synced "${n.length}" agents!`))}catch(e){i=!0,r.t.info(c.default.red(`Failed to sync "${n.length}" agents ! - ${e.message}`))}return!i}async function kl(e,n,{existingAttribute:i,deleteExtraAttributeValues:a}){let o={name:n.name,enabledOn:n.resources},s;if(i)await $(e,na,{attributeKeyId:i.id,description:i.isCustom?n.description:void 0,...o}),s=i.id;else{let{createAttributeKey:{attributeKey:t}}=await $(e,ta,{type:n.type,description:n.description,...o});s=t.id}let l=t.g(i?.values||[],`name`),{existingValues:u=[],newValues:d=[]}=Un(n.values||[],e=>l[e.name]?`existingValues`:`newValues`),f=V((i?.values||[]).map(({name:e})=>e),(n.values||[]).map(({name:e})=>e));d.length>0&&(await $(e,Zi,{input:d.map(({name:e,...t})=>({name:e,attributeKeyId:s,...t}))}),r.t.info(c.default.green(`Created ${d.length} attribute values`))),u.length>0&&(await $(e,Qi,{input:u.map(({name:e,...t})=>({id:l[e].id,name:e,description:l[e].description,color:l[e].color,...t,attributeKeyId:s}))}),r.t.info(c.default.green(`Updated ${u.length} attribute values`))),f.length>0&&a&&(await U(f,async t=>{await $(e,$i,{id:l[t].id})},{concurrency:10}),r.t.info(c.default.green(`Deleted ${f.length} attribute values`)))}async function Al(e,t){let{createBusinessEntity:n}=await $(e,ja,{input:{title:t.title,description:t.description,address:t.address,headquarterCountry:t.headquarterCountry,headquarterSubDivision:t.headquarterSubDivision,dataProtectionOfficerName:t.dataProtectionOfficerName,dataProtectionOfficerEmail:t.dataProtectionOfficerEmail,attributes:t.attributes,teamNames:t.teams,ownerEmails:t.owners}});return n.businessEntity}async function jl(e,t){await W(B(t,100),async t=>{await $(e,Ma,{input:t.map(([e,t])=>({id:t,title:e.title,description:e.description,address:e.address,headquarterCountry:e.headquarterCountry,headquarterSubDivision:e.headquarterSubDivision,dataProtectionOfficerName:e.dataProtectionOfficerName,dataProtectionOfficerEmail:e.dataProtectionOfficerEmail,attributes:e.attributes,teamNames:e.teams,ownerEmails:e.owners}))})})}async function Ml(e,n){r.t.info(c.default.magenta(`Syncing "${n.length}" business entities...`));let i=!1,a=t.g(await cs(e),`title`);await W(n.filter(e=>!a[e.title]),async t=>{try{let n=await Al(e,t);a[n.title]=n,r.t.info(c.default.green(`Successfully synced business entity "${t.title}"!`))}catch(e){i=!0,r.t.info(c.default.red(`Failed to sync business entity "${t.title}"! - ${e.message}`))}});try{r.t.info(c.default.magenta(`Updating "${n.length}" business entities!`)),await jl(e,n.map(e=>[e,a[e.title].id])),r.t.info(c.default.green(`Successfully synced "${n.length}" business entities!`))}catch(e){i=!0,r.t.info(c.default.red(`Failed to sync "${n.length}" business entities ! - ${e.message}`))}return!i}const Nl=20;async function Pl(e){let t=[],n=0,r=!1;do{let{codePackages:{nodes:i}}=await $(e,ei,{first:20,offset:n});t.push(...i),n+=20,r=i.length===20}while(r);return t.sort((e,t)=>e.name.localeCompare(t.name))}const Fl=20;async function Il(e){let t=[],n=0,r=!1;do{let{softwareDevelopmentKits:{nodes:i}}=await $(e,Zr,{first:20,offset:n});t.push(...i),n+=20,r=i.length===20}while(r);return t.sort((e,t)=>e.name.localeCompare(t.name))}const Ll=100;async function Rl(e,t){let{createSoftwareDevelopmentKit:{softwareDevelopmentKit:n}}=await $(e,$r,{input:t});return r.t.info(c.default.green(`Successfully created software development kit "${t.name}"!`)),n}async function zl(e,t){let{updateSoftwareDevelopmentKits:{softwareDevelopmentKits:n}}=await $(e,Qr,{input:{softwareDevelopmentKits:t}});return r.t.info(c.default.green(`Successfully updated ${t.length} software development kits!`)),n}async function Bl(e,n,i=20){let a=!1,o=[];r.t.info(c.default.magenta(`Syncing software development kits...`));let s=t.g(await Il(e),({name:e,codePackageType:t})=>JSON.stringify({name:e,codePackageType:t})),l=n.map(e=>[e,s[JSON.stringify({name:e.name,codePackageType:e.codePackageType})]?.id]),u=l.filter(([,e])=>!e).map(([e])=>e);try{r.t.info(c.default.magenta(`Creating "${u.length}" new software development kits...`)),await U(u,async t=>{let n=await Rl(e,t);o.push(n)},{concurrency:i}),r.t.info(c.default.green(`Successfully synced ${u.length} software development kits!`))}catch(e){a=!0,r.t.info(c.default.red(`Failed to create software development kits! - ${e.message}`))}let d=l.filter(e=>!!e[1]),f=B(d,100);return r.t.info(c.default.magenta(`Updating "${d.length}" software development kits...`)),await W(f,async t=>{try{let n=await zl(e,t.map(([{codePackageType:e,...t},n])=>({...t,id:n})));o.push(...n),r.t.info(c.default.green(`Successfully updated "${d.length}" software development kits!`))}catch(e){a=!0,r.t.info(c.default.red(`Failed to update software development kits! - ${e.message}`))}r.t.info(c.default.green(`Synced "${n.length}" software development kits!`))}),{softwareDevelopmentKits:o,success:!a}}const Vl=20;async function Hl(e){let t=[],n=0,r=!1;do{let{repositories:{nodes:i}}=await $(e,Rr,{first:20,offset:n});t.push(...i),n+=20,r=i.length===20}while(r);return t.sort((e,t)=>e.name.localeCompare(t.name))}const Ul=100;async function Wl(e,t){let{createRepository:{repository:n}}=await $(e,Br,{input:t});return r.t.info(c.default.green(`Successfully created repository "${t.name}"!`)),n}async function Gl(e,t){let{updateRepositories:{repositories:n}}=await $(e,zr,{input:{repositories:t}});return r.t.info(c.default.green(`Successfully updated ${t.length} repositories!`)),n}async function Kl(e,n,i=20){let a=!1,o=[],s=t.g(await Hl(e),`name`),l=n.map(e=>[e,s[e.name]?.id]),u=l.filter(([,e])=>!e).map(([e])=>e);try{r.t.info(c.default.magenta(`Creating "${u.length}" new repositories...`)),await U(u,async t=>{let n=await Wl(e,t);o.push(n)},{concurrency:i}),r.t.info(c.default.green(`Successfully synced ${u.length} repositories!`))}catch(e){a=!0,r.t.info(c.default.red(`Failed to create repositories! - ${e.message}`))}let d=l.filter(e=>!!e[1]),f=B(d,100);return r.t.info(c.default.magenta(`Updating "${d.length}" repositories...`)),await W(f,async t=>{try{let n=await Gl(e,t.map(([e,t])=>({...e,id:t})));o.push(...n),r.t.info(c.default.green(`Successfully updated "${d.length}" repositories!`))}catch(e){a=!0,r.t.info(c.default.red(`Failed to update repositories! - ${e.message}`))}r.t.info(c.default.green(`Synced "${n.length}" repositories!`))}),{repositories:o,success:!a}}const ql=100,Jl=`%%%%`;async function Yl(e,t){let{createCodePackage:{codePackage:n}}=await $(e,ni,{input:t});return r.t.info(c.default.green(`Successfully created code package "${t.name}"!`)),n}async function Xl(e,t){let{updateCodePackages:{codePackages:n}}=await $(e,ti,{input:{codePackages:t}});return r.t.info(c.default.green(`Successfully updated ${t.length} code packages!`)),n}async function Zl(e,n,i=20){let a=!1,[o,{softwareDevelopmentKits:s}]=await Promise.all([Pl(e),Bl(e,dr(n.map(({type:e,softwareDevelopmentKits:t=[]})=>t.map(({name:t})=>({name:t,codePackageType:e}))).flat(),({name:e,codePackageType:t})=>`${e}${Jl}${t}`),i),Kl(e,dr(n,`repositoryName`).map(({repositoryName:e})=>({name:e,url:`https://github.com/${e}`})))]),l=t.g(s,({name:e,codePackageType:t})=>`${e}${Jl}${t}`),u=t.g(o,({name:e,type:t})=>`${e}${Jl}${t}`),d=n.map(e=>[e,u[`${e.name}${Jl}${e.type}`]?.id]),f=d.filter(([,e])=>!e).map(([e])=>e);try{r.t.info(c.default.magenta(`Creating "${f.length}" new code packages...`)),await U(f,async({softwareDevelopmentKits:t,...n})=>{await Yl(e,{...n,...t?{softwareDevelopmentKitIds:H(t.map(({name:e})=>{let t=l[`${e}${Jl}${n.type}`];if(!t)throw Error(`Failed to find SDK with name: "${e}"`);return t.id}))}:{}})},{concurrency:i}),r.t.info(c.default.green(`Successfully synced ${f.length} code packages!`))}catch(e){a=!0,r.t.info(c.default.red(`Failed to create code packages! - ${e.message}`))}let p=d.filter(e=>!!e[1]);return r.t.info(c.default.magenta(`Updating "${p.length}" code packages...`)),await W(B(p,100),async t=>{try{await Xl(e,t.map(([{softwareDevelopmentKits:e,repositoryName:t,...n},r])=>({...n,...e?{softwareDevelopmentKitIds:H(e.map(({name:e})=>{let t=l[`${e}${Jl}${n.type}`];if(!t)throw Error(`Failed to find SDK with name: "${e}"`);return t.id}))}:{},id:r}))),r.t.info(c.default.green(`Successfully updated "${t.length}" code packages!`))}catch(e){a=!0,r.t.info(c.default.red(`Failed to update code packages! - ${e.message}`))}}),r.t.info(c.default.green(`Synced "${n.length}" code packages!`)),!a}const Ql=`https://app.transcend.io/consent-manager/regional-experiences/purposes`;async function $l(e,n){let i=t.g(await ds(e),`name`),a=t.g(await Ns(e),`trackingType`);await U(n,async(t,n)=>{let o=t.purposes?.map((e,t)=>{let r=a[e.trackingType];if(!r)throw Error(`Invalid purpose trackingType provided at consentManager.experiences[${n}].purposes[${t}]: ${e.trackingType}. See list of valid purposes ${Ql}`);return r.id}),s=t.optedOutPurposes?.map((e,t)=>{let r=a[e.trackingType];if(!r)throw Error(`Invalid purpose trackingType provided at consentManager.experiences[${n}].optedOutPurposes[${t}]: ${e.trackingType}. See list of valid purposes ${Ql}`);return r.id}),l=i[t.name];l?(await $(e,Ea,{input:{id:l.id,name:t.displayName,regions:t.regions,operator:t.operator,onConsentExpiry:t.onConsentExpiry,consentExpiry:t.consentExpiry,displayPriority:t.displayPriority===l.displayPriority?void 0:t.displayPriority,viewState:t.viewState,purposes:o,optedOutPurposes:s,browserLanguages:t.browserLanguages,browserTimeZones:t.browserTimeZones}}),r.t.info(c.default.green(`Successfully synced consent experience "${t.name}"!`))):(await $(e,Da,{input:{name:t.name,displayName:t.displayName,regions:t.regions,operator:t.operator,onConsentExpiry:t.onConsentExpiry||u.OnConsentExpiry.Prompt,consentExpiry:t.consentExpiry,displayPriority:t.displayPriority,viewState:t.viewState||u.InitialViewState.Hidden,purposes:o||[],optedOutPurposes:s||[],browserLanguages:t.browserLanguages,browserTimeZones:t.browserTimeZones}}),r.t.info(c.default.green(`Successfully created consent experience "${t.name}"!`)))},{concurrency:10})}async function eu(e,t){let n;try{n=await X(e,1)}catch(r){if(r.message.includes(`AirgapBundle not found`)){let r=await Cs(e),{createConsentManager:i}=await $(e,ma,{domains:t.domains,privacyCenterId:r});n=i.consentManager.id}else throw r}if(t.domains&&await $(e,va,{domains:t.domains,airgapBundleId:n}),t.partition){let r=(await tl(e)).find(e=>e.name===t.partition);if(!r)throw Error(`Partition "${t.partition}" not found. Please create the partition first.`);await $(e,ya,{partitionId:r.id,airgapBundleId:n})}t.version&&await $(e,ha,{airgapBundleId:n,version:t.version}),t.signedIabAgreement&&await $(e,ba,{input:{id:n,...t.signedIabAgreement?{signedIabAgreement:t.signedIabAgreement}:{}}}),t.unknownRequestPolicy&&await $(e,xa,{input:{id:n,unknownRequestPolicy:t.unknownRequestPolicy}}),t.unknownRequestPolicy&&await $(e,Sa,{input:{id:n,unknownCookiePolicy:t.unknownCookiePolicy}}),t.telemetryPartitioning&&await $(e,Ca,{input:{id:n,strategy:t.telemetryPartitioning}}),t.consentPrecedence&&await $(e,wa,{input:{id:n,consentPrecedence:t.consentPrecedence}}),t.experiences&&await $l(e,t.experiences),t.theme&&await $(e,Ta,{input:{airgapBundleId:n,...t.theme}})}const tu=100;async function nu(e,t){let n=await X(e);await W(B(t,100),async t=>{await $(e,ca,{airgapBundleId:n,cookies:t.map(e=>({name:e.name,trackingPurposes:e.trackingPurposes&&e.trackingPurposes.length>0?e.trackingPurposes:void 0,description:e.description,service:e.service,status:e.status,attributes:e.attributes,isRegex:e.isRegex}))})})}async function ru(e,t){let n=!1;r.t.info(c.default.magenta(`Syncing "${t.length}" cookies...`));let i=t.filter(e=>t.filter(t=>e.name===t.name&&e.isRegex===t.isRegex).length>1);if(i.length>0)throw Error(`Failed to upload cookies as there were non-unique entries found: ${i.map(({name:e})=>e).join(`,`)}`);try{r.t.info(c.default.magenta(`Upserting "${t.length}" new cookies...`)),await nu(e,t),r.t.info(c.default.green(`Successfully synced ${t.length} cookies!`))}catch(e){n=!0,r.t.info(c.default.red(`Failed to create cookies! - ${e.message}`))}return!n}async function iu(e,t){let{createDataCategory:n}=await $(e,ao,{input:{name:t.name,category:t.category,description:t.description}});return n.dataCategory}async function au(e,t){await $(e,oo,{input:{dataSubCategories:t.map(([e,t])=>({id:t,description:e.description,attributes:e.attributes}))}})}async function ou(e,n){r.t.info(c.default.magenta(`Syncing "${n.length}" data categories...`));let i=!1,a=t.g(await vs(e),({name:e,category:t})=>`${e}:${t}`);await W(n.filter(e=>!a[`${e.name}:${e.category}`]),async t=>{try{let n=await iu(e,t);a[`${n.name}:${n.category}`]=n,r.t.info(c.default.green(`Successfully synced data category "${t.name}"!`))}catch(e){i=!0,r.t.info(c.default.red(`Failed to sync data category "${t.name}"! - ${e.message}`))}});try{r.t.info(c.default.magenta(`Updating "${n.length}" data categories!`)),await au(e,n.map(e=>[e,a[`${e.name}:${e.category}`].id])),r.t.info(c.default.green(`Successfully synced "${n.length}" data categories!`))}catch(e){i=!0,r.t.info(c.default.red(`Failed to sync "${n.length}" data categories ! - ${e.message}`))}return!i}const su=100;async function cu(e,t,n=!1){let r=await X(e);await W(B(t,100),async t=>{await $(e,sa,{airgapBundleId:r,dataFlows:t.map(([e,t])=>({id:t,value:e.value,type:e.type,trackingType:e.trackingPurposes&&e.trackingPurposes.length>0?e.trackingPurposes:void 0,description:e.description,service:e.service,status:e.status,attributes:e.attributes})),classifyService:n})})}async function lu(e,t,n=!1){let r=await X(e);await W(B(t,100),async t=>{await $(e,oa,{airgapBundleId:r,dataFlows:t.map(e=>({value:e.value,type:e.type,trackingType:e.trackingPurposes&&e.trackingPurposes.length>0?e.trackingPurposes:void 0,description:e.description,service:e.service,status:e.status,attributes:e.attributes})),dropMatchingDataFlowsInTriage:!0,classifyService:n})})}async function uu(e,t,n){let a=!1;r.t.info(c.default.magenta(`Syncing "${t.length}" data flows...`));let o=t.filter(e=>t.filter(t=>e.value===t.value&&e.type===t.type).length>1);if(o.length>0)throw Error(`Failed to upload data flows as there were non-unique entries found: ${o.map(({value:e})=>e).join(`,`)}`);r.t.info(c.default.magenta(`Fetching data flows...`));let[s,l]=await Promise.all([bs(e,i.ConsentTrackerStatus.Live),bs(e,i.ConsentTrackerStatus.NeedsReview)]),u=[...s,...l],d=t.map(e=>[e,u.find(t=>e.value===t.value&&e.type===t.type)?.id]),f=d.filter(([,e])=>!e).map(([e])=>e);try{r.t.info(c.default.magenta(`Creating "${f.length}" new data flows...`)),await lu(e,f,n),r.t.info(c.default.green(`Successfully synced ${f.length} data flows!`))}catch(e){a=!0,r.t.info(c.default.red(`Failed to create data flows! - ${e.message}`))}let p=d.filter(e=>!!e[1]);try{r.t.info(c.default.magenta(`Updating "${p.length}" data flows...`)),await cu(e,p,n),r.t.info(c.default.green(`Successfully updated "${p.length}" data flows!`))}catch(e){a=!0,r.t.info(c.default.red(`Failed to create data flows! - ${e.message}`))}return r.t.info(c.default.green(`Synced "${t.length}" data flows!`)),!a}async function du(e,{dataSubject:t,dataSubjectId:n,skipPublish:r=!1}){await $(e,Ir,{input:{id:n,title:t.title,adminDashboardDefaultSilentMode:t.adminDashboardDefaultSilentMode,actions:t.actions,skipPublish:r&&t.active===void 0}}),typeof t.active==`boolean`&&await $(e,Lr,{input:{id:n,active:t.active,skipPublish:r}})}async function fu(e,{identifier:t,dataSubjectsByName:n,identifierId:r,skipPublish:i=!1}){await $(e,Nr,{input:{id:r,selectOptions:t.selectOptions,isRequiredInForm:t.isRequiredInForm,regex:t.regex,placeholder:t.placeholder,displayTitle:t.displayTitle,displayDescription:t.displayDescription,displayOrder:t.displayOrder,isUniqueOnPreferenceStore:t.isUniqueOnPreferenceStore,privacyCenterVisibility:t.privacyCenterVisibility,dataSubjectIds:t.dataSubjects?t.dataSubjects.map(e=>n[e].id):void 0,skipPublish:i}})}const pu=100;async function mu(e,t){await W(B(t,100),async t=>{await $(e,pi,{messages:t.map(e=>({...e.id.includes(`.`)?{}:{id:e.id},defaultMessage:e.defaultMessage,targetReactIntlId:e.targetReactIntlId,translations:e.translations?Object.entries(e.translations).map(([e,t])=>({locale:e,value:t})):void 0}))})})}async function hu(e,t){let n=!1;r.t.info(c.default.magenta(`Syncing "${t.length}" messages...`));let i=t.filter(e=>t.filter(t=>e.id===t.id).length>1);if(i.length>0)throw Error(`Failed to upload messages as there were non-unique entries found: ${i.map(({id:e})=>e).join(`,`)}`);try{r.t.info(c.default.magenta(`Upserting "${t.length}" new messages...`)),await mu(e,t),r.t.info(c.default.green(`Successfully synced ${t.length} messages!`))}catch(e){n=!0,r.t.info(c.default.red(`Failed to create messages! - ${e.message}`))}return!n}const gu=100;async function _u(e,t){let n=await Cs(e);await W(B(t,100),async t=>{await $(e,ai,{privacyCenterId:n,policies:t.map(([e,t])=>({id:t,title:e.title,disableEffectiveOn:e.disableEffectiveOn,disabledLocales:e.disabledLocales,...e.effectiveOn||e.content?{version:{...e.effectiveOn?{effectiveOn:e.effectiveOn}:{},...e.content?{content:{defaultMessage:e.content}}:{}}}:{}}))})})}async function vu(e,n){let i=!1;r.t.info(c.default.magenta(`Syncing "${n.length}" policies...`));let a=n.filter(e=>n.filter(t=>e.title===t.title).length>1);if(a.length>0)throw Error(`Failed to upload policies as there were non-unique entries found: ${a.map(({title:e})=>e).join(`,`)}`);let o=t.g(await ws(e),({title:e})=>e.defaultMessage);try{r.t.info(c.default.magenta(`Upserting "${n.length}" new policies...`)),await _u(e,n.map(e=>[e,o[e.title]?.id])),r.t.info(c.default.green(`Successfully synced ${n.length} policies!`))}catch(e){i=!0,r.t.info(c.default.red(`Failed to create policies! - ${e.message}`))}return!i}async function yu(e,t){let n=!1;r.t.info(c.default.magenta(`Syncing privacy center...`));let i=await Cs(e);try{await $(e,Va,{input:{privacyCenterId:i,transformAccessReportJsonToCsv:t.transformAccessReportJsonToCsv,useCustomEmailDomain:t.useCustomEmailDomain,useNoReplyEmailAddress:t.useNoReplyEmailAddress,replyToEmail:t.replyToEmail,supportEmail:t.supportEmail,preferBrowserDefaultLocale:t.preferBrowserDefaultLocale,defaultLocale:t.defaultLocale,locales:t.locales,showMarketingPreferences:t.showMarketingPreferences,showManageYourPrivacy:t.showManageYourPrivacy,showPolicies:t.showPolicies,showConsentManager:t.showConsentManager,showDataFlows:t.showDataFlows,showCookies:t.showCookies,showTrackingTechnologies:t.showTrackingTechnologies,showPrivacyRequestButton:t.showPrivacyRequestButton,isDisabled:t.isDisabled,...t.theme?{colorPalette:t.theme.colors,componentStyles:t.theme.componentStyles,textStyles:t.theme.textStyles}:{}}}),r.t.info(c.default.green(`Successfully synced privacy center!`))}catch(e){n=!0,r.t.info(c.default.red(`Failed to create privacy center! - ${e.message}`))}return!n}async function bu(e,t){let{createProcessingActivity:n}=await $(e,fo,{input:{title:t.title,description:t.description}});return n.processingActivity}async function xu(e,t){let n=t.filter(([,e])=>e===void 0).map(([{title:e}])=>e);if(n.length>0)throw Error(`The following ${n.length} processing activities do not exist and thus can't be updated: "${n.join(`", "`)}"`);await $(e,po,{input:{processingActivities:t.map(([{processingSubPurposes:e,dataSubCategories:t,saaSCategories:n,...r},i])=>({dataSubCategoryInputs:t?.map(({category:e,name:t})=>({category:e,name:t??``})),processingPurposeSubCategoryInputs:e?.map(({purpose:e,name:t})=>({purpose:e,name:t??`Other`})),saaSCategoryTitles:n,...r,id:i}))}})}async function Su(e,n){let i=!1;r.t.info(c.default.magenta(`Syncing "${n.length}" processing activities...`));let a=t.g(await ks(e),`title`),o=n.filter(e=>!a[e.title]);o.length>0&&r.t.info(c.default.magenta(`Creating "${o.length}" new processing activities...`)),await W(o,async t=>{try{let n=await bu(e,t);a[n.title]=n,r.t.info(c.default.green(`Successfully created processing activity "${t.title}"!`))}catch(e){i=!0,r.t.info(c.default.red(`Failed to create processing activity "${t.title}"! - ${e.message}`))}});try{r.t.info(c.default.magenta(`Updating "${n.length}" processing activities!`)),await xu(e,n.map(e=>[e,a[e.title]?.id])),r.t.info(c.default.green(`Successfully synced "${n.length}" processingActivities!`))}catch(e){i=!0,r.t.info(c.default.red(`Failed to sync "${n.length}" processingActivities! - ${e.message}`))}return!i}async function Cu(e,t){let{createProcessingPurposeSubCategory:n}=await $(e,co,{input:{name:t.name,purpose:t.purpose,description:t.description}});return n.processingPurposeSubCategory}async function wu(e,t){await $(e,lo,{input:{processingPurposeSubCategories:t.map(([e,t])=>({id:t,description:e.description,attributes:e.attributes}))}})}async function Tu(e,n){r.t.info(c.default.magenta(`Syncing "${n.length}" processing purposes...`));let i=!1,a=t.g(await js(e),({name:e,purpose:t})=>`${e}:${t}`);await W(n.filter(e=>!a[`${e.name}:${e.purpose}`]),async t=>{try{let n=await Cu(e,t);a[`${n.name}:${n.purpose}`]=n,r.t.info(c.default.green(`Successfully synced processing purpose "${t.name}"!`))}catch(e){i=!0,r.t.info(c.default.red(`Failed to sync processing purpose "${t.name}"! - ${e.message}`))}});try{r.t.info(c.default.magenta(`Updating "${n.length}" processing purposes!`)),await wu(e,n.map(e=>[e,a[`${e.name}:${e.purpose}`].id])),r.t.info(c.default.green(`Successfully synced "${n.length}" processing purposes!`))}catch(e){i=!0,r.t.info(c.default.red(`Failed to sync "${n.length}" processing purposes ! - ${e.message}`))}return!i}async function Eu(e,t){let{createPrompt:{prompt:n}}=await $(e,Oi,{input:t});return r.t.info(c.default.green(`Successfully created prompt "${t.title}"!`)),n.id}async function Du(e,t){await $(e,Di,{input:{prompts:t.map(([e,t])=>({...e,id:t}))}}),r.t.info(c.default.green(`Successfully updated ${t.length} prompts!`))}async function Ou(e,n,i=20){let a=!1;r.t.info(c.default.magenta(`Syncing "${n.length}" prompts...`));let o=t.g(await _c(e),`title`),s=n.map(e=>[e,o[e.title]?.id]),l=s.filter(([,e])=>!e).map(([e])=>e);try{r.t.info(c.default.magenta(`Creating "${l.length}" new prompts...`)),await U(l,async t=>{await Eu(e,t)},{concurrency:i}),r.t.info(c.default.green(`Successfully synced ${l.length} prompts!`))}catch(e){a=!0,r.t.info(c.default.red(`Failed to create prompts! - ${e.message}`))}let u=s.filter(e=>!!e[1]);try{r.t.info(c.default.magenta(`Updating "${u.length}" prompts...`)),await Du(e,u),r.t.info(c.default.green(`Successfully updated "${u.length}" prompts!`))}catch(e){a=!0,r.t.info(c.default.red(`Failed to create prompts! - ${e.message}`))}return r.t.info(c.default.green(`Synced "${n.length}" prompts!`)),!a}async function ku(e,t){let{createVendor:n}=await $(e,no,{input:{title:t.title,description:t.description,address:t.address,headquarterCountry:t.headquarterCountry,headquarterSubDivision:t.headquarterSubDivision,dataProcessingAgreementLink:t.dataProcessingAgreementLink,contactName:t.contactName,contactPhone:t.contactPhone,websiteUrl:t.websiteUrl}});return n.vendor}async function Au(e,t){await $(e,ro,{input:{vendors:t.map(([e,t])=>({id:t,title:e.title,description:e.description,address:e.address,headquarterCountry:e.headquarterCountry,headquarterSubDivision:e.headquarterSubDivision,dataProcessingAgreementLink:e.dataProcessingAgreementLink,contactName:e.contactName,contactPhone:e.contactPhone,websiteUrl:e.websiteUrl,attributes:e.attributes}))}})}async function ju(e,n){r.t.info(c.default.magenta(`Syncing "${n.length}" vendors...`));let i=!1,a=t.g(await ec(e),`title`);await W(n.filter(e=>!a[e.title]),async t=>{try{let n=await ku(e,t);a[n.title]=n,r.t.info(c.default.green(`Successfully synced vendor "${t.title}"!`))}catch(e){i=!0,r.t.info(c.default.red(`Failed to sync vendor "${t.title}"! - ${e.message}`))}});try{r.t.info(c.default.magenta(`Updating "${n.length}" vendors!`)),await Au(e,n.map(e=>[e,a[e.title].id])),r.t.info(c.default.green(`Successfully synced "${n.length}" vendors!`))}catch(e){i=!0,r.t.info(c.default.red(`Failed to sync "${n.length}" vendors ! - ${e.message}`))}return!i}const Mu=1e3;async function Nu(e,t,n){await W(B(n,1e3),async n=>{await $(e,Gr,{pluginId:t,rawResults:n})})}async function Pu({requestActions:e,auth:n,requestIds:a,statuses:o=[i.RequestStatus.Compiling,i.RequestStatus.RequestMade,i.RequestStatus.Delayed,i.RequestStatus.Approving,i.RequestStatus.Secondary,i.RequestStatus.Enriching,i.RequestStatus.Waiting,i.RequestStatus.SecondaryApproving],createdAtAfter:s,createdAtBefore:l,updatedAtBefore:u,updatedAtAfter:d,concurrency:f=100,transcendUrl:p=t.a}){let m=Y(p,n),h=new Date().getTime(),g=new b.default.SingleBar({},b.default.Presets.shades_classic),_=await Q(m,{actions:e,statuses:o,createdAtBefore:l,createdAtAfter:s,updatedAtBefore:u,updatedAtAfter:d,isSilent:!1,requestIds:a});r.t.info(c.default.magenta(`Marking "${_.length}" as silent mode.`));let v=0;g.start(_.length,0),await U(_,async e=>{await $(m,ui,{input:{id:e.id,isSilent:!0}}),v+=1,g.update(v)},{concurrency:f}),g.stop();let y=new Date().getTime()-h;return r.t.info(c.default.green(`Successfully marked ${v} requests as silent mode in "${y/1e3}" seconds!`)),_.length}async function Fu(e,t){let n=(0,a.getValues)(K).filter(e=>!t.getValue(`columnNames`,e)),r=n.length===0?{}:await m.default.prompt(n.map(t=>{let n=rr(t.replace(`ColumnName`,``)),r=To(e,n,yo[t],!!bo[t]);return{name:t,message:`Choose the column that will be used to map in the field: ${n}`,type:`list`,default:r[0],choices:r}}));return await Promise.all((0,a.getEntries)(r).map(([e,n])=>t.setValue(n,`columnNames`,e))),r}async function Iu(e,t,{state:n,columnNameMap:a}){let o=e=>n.getValue(`columnNames`,e)||a[e],{internalSubjects:s}=await $(e,Pr);r.t.info(c.default.magenta(`Determining mapping of columns for request action`));let l=await q(J(t,o(K.RequestType)),Object.values(i.RequestAction),n.getValue(`requestTypeToRequestAction`));await n.setValue(l,`requestTypeToRequestAction`),r.t.info(c.default.magenta(`Determining mapping of columns for subject`));let u=await q(J(t,o(K.SubjectType)),s.map(({type:e})=>e),n.getValue(`subjectTypeToSubjectName`));await n.setValue(u,`subjectTypeToSubjectName`),r.t.info(c.default.magenta(`Determining mapping of columns for locale`));let f=await q(J(t,o(K.Locale)),Object.values(d.LOCALE_KEY),n.getValue(`languageToLocale`));await n.setValue(f,`languageToLocale`),r.t.info(c.default.magenta(`Determining mapping of columns for request status`)),r.t.info(c.default.magenta(`Determining mapping of columns for request status`));let p=o(K.RequestStatus),m=p===G?{}:await q(J(t,p),[...Object.values(i.CompletedRequestStatus),G],n.getValue(`statusToRequestStatus`));await n.setValue(m,`statusToRequestStatus`),r.t.info(c.default.magenta(`Determining mapping of columns for country`));let h=o(K.Country),g=h===G?{}:await q(J(t,h),[...Object.values(i.IsoCountryCode),G],n.getValue(`regionToCountry`));await n.setValue(g,`regionToCountry`),r.t.info(c.default.magenta(`Determining mapping of columns for country sub division`));let _=o(K.CountrySubDivision),v=_===G?{}:await q(J(t,_),[...Object.values(i.IsoCountrySubdivisionCode),G],n.getValue(`regionToCountrySubDivision`));await n.setValue(v,`regionToCountrySubDivision`)}const Lu=l.record(l.string,l.array(l.intersection([l.type({value:l.string}),l.partial({name:l.string})]))),Ru=l.intersection([l.type({email:l.string,attestedExtraIdentifiers:Lu,coreIdentifier:l.string,requestType:(0,a.valuesOf)(i.RequestAction),subjectType:l.string}),l.partial({country:(0,a.valuesOf)(i.IsoCountryCode),countrySubDivision:(0,a.valuesOf)(i.IsoCountrySubdivisionCode),attributes:l.array(Do),status:(0,a.valuesOf)(i.CompletedRequestStatus),createdAt:x.DateFromISOString,dataSiloIds:l.array(l.string),locale:(0,a.valuesOf)(d.LOCALE_KEY)})]);function zu(e,t,n){if(t===i.IdentifierType.Email)return e.toLowerCase();if(t===i.IdentifierType.Phone){let t=e.replace(i.NORMALIZE_PHONE_NUMBER,``).replace(/[()]/g,``).replace(/[–]/g,``).replace(/[:]/g,``).replace(/[‭‬]/g,``).replace(/[A-Za-z]/g,``);return t?t.startsWith(`+`)?t:`+${n}${t}`:``}return e}function Bu(e,t,{columnNameMap:n,identifierNameMap:r,attributeNameMap:a,requestAttributeKeys:o,defaultPhoneCountryCode:s=`1`}){let c=e=>t.getValue(`columnNames`,e)||n[e];return e.map(e=>{let n={};Object.entries(r).filter(([,e])=>e!==G).forEach(([t,r])=>{let a=Object.values(i.IdentifierType).includes(t)?t:i.IdentifierType.Custom,o=e[r];if(o){let e=zu(o,a,s);e&&(n[a]||(n[a]=[]),n[a].push({value:e,name:t}))}});let l=[];Object.entries(a).filter(([,e])=>e!==G).forEach(([t,n])=>{let r=e[n];if(r){let e=o.find(e=>e.name===t)?.type===`MULTI_SELECT`;l.push({values:e?Eo(r):r,key:t})}});let u=c(K.RequestType),d=c(K.SubjectType);return[e,{email:e[c(K.Email)],attestedExtraIdentifiers:n,attributes:l,coreIdentifier:e[c(K.CoreIdentifier)],requestType:u===go?t.getValue(`requestTypeToRequestAction`,_o):t.getValue(`requestTypeToRequestAction`,e[u]),subjectType:d===go?t.getValue(`subjectTypeToSubjectName`,_o):t.getValue(`subjectTypeToSubjectName`,e[d]),...c(K.Locale)!==G&&e[c(K.Locale)]?{locale:t.getValue(`languageToLocale`,e[c(K.Locale)])}:{},...c(K.Country)!==G&&e[c(K.Country)]?{country:t.getValue(`regionToCountry`,e[c(K.Country)])}:{},...c(K.CountrySubDivision)!==G&&e[c(K.CountrySubDivision)]?{countrySubDivision:t.getValue(`regionToCountrySubDivision`,e[c(K.CountrySubDivision)])}:{},...c(K.RequestStatus)!==G&&t.getValue(`statusToRequestStatus`,e[c(K.RequestStatus)])!==G&&e[c(K.RequestStatus)]?{status:t.getValue(`statusToRequestStatus`,e[c(K.RequestStatus)])}:{},...c(K.CreatedAt)!==G&&e[c(K.CreatedAt)]?{createdAt:new Date(e[c(K.CreatedAt)])}:{},...c(K.DataSiloIds)!==G&&e[c(K.DataSiloIds)]?{dataSiloIds:Eo(e[c(K.DataSiloIds)])}:{}}]})}const Vu=l.type({defaultMessage:l.string,id:l.string}),Hu=l.type({downloadKey:l.string,error:l.union([l.null,l.string]),mimetype:l.string,size:l.string,fileName:l.string,dataPoint:l.type({id:l.string,title:l.union([Vu,l.null]),description:l.union([Vu,l.null]),name:l.string,slug:l.string,encryption:l.union([(0,a.valuesOf)(i.TableEncryptionType),l.null]),dataSilo:l.type({id:l.string,title:l.string,description:l.string,type:l.string,outerType:l.union([l.string,l.null])}),path:l.array(l.string)})}),Uu=l.type({nodes:l.array(Hu),totalCount:l.number,_links:l.partial({next:l.union([l.string,l.null]),previous:l.union([l.string,l.null])})});async function Wu(e,{sombra:t,concurrency:n=5,limit:i=100}){r.t.info(c.default.magenta(`Pulling file metadata for ${e.length} requests`));let o=new Date().getTime(),s=new b.default.SingleBar({},b.default.Presets.shades_classic),l=0;s.start(e.length,0);let u=await U(e,async e=>{let n=[],r=!0,o=0;for(;r;){let s;try{s=(0,a.decodeCodec)(Uu,await t.get(`v1/data-subject-request/${e.id}/download-keys`,{searchParams:{limit:i,offset:o}}).json()),n.push(...s.nodes),o+=i,r=!!s._links.next&&s.nodes.length===i}catch(e){throw Error(`Received an error from server: ${e?.response?.body||e?.message}`)}}return l+=1,s.update(l),[e,n]},{concurrency:n});s.stop();let d=new Date().getTime()-o;return r.t.info(c.default.green(`Successfully downloaded file metadata ${e.length} requests in "${d/1e3}" seconds!`)),u}async function Gu(e,{requestId:t,sombra:n,onFileDownloaded:i,concurrency:a=20}){await U(e,async e=>{try{await n.get(`v1/files`,{searchParams:{downloadKey:e.downloadKey}}).buffer().then(t=>i(e,t))}catch(n){if(n?.response?.body?.includes(`fileMetadata#verify`)){r.t.error(c.default.red(`Failed to pull file for: ${e.fileName} (request:${t}) - JWT expired. This likely means that the file is no longer available. Try restarting the request from scratch in Transcend Admin Dashboard. Skipping the download of this file.`));return}throw Error(`Received an error from server: ${n?.response?.body||n?.message}`)}},{concurrency:a})}async function Ku({auth:e,folderPath:n,requestIds:a,createdAtBefore:l,sombraAuth:u,createdAtAfter:d,updatedAtBefore:f,updatedAtAfter:p,statuses:m=[i.RequestStatus.Approving,i.RequestStatus.Downloadable],concurrency:h=5,transcendUrl:g=t.a,approveAfterDownload:_=!1}){let v=Y(g,e),y=await No(g,e,u);(0,o.existsSync)(n)||(0,o.mkdirSync)(n);let x=await Q(v,{actions:[i.RequestAction.Access],createdAtBefore:l,createdAtAfter:d,updatedAtBefore:f,updatedAtAfter:p,statuses:m,requestIds:a}),S=await Wu(x,{sombra:y,concurrency:h}),C=new Date().getTime(),w=new b.default.SingleBar({},b.default.Presets.shades_classic),T=0,E=0;w.start(x.length,0),await U(S,async([e,t])=>{let r=(0,s.join)(n,e.id);(0,o.existsSync)(r)||(0,o.mkdirSync)(r),await Gu(t,{sombra:y,requestId:e.id,onFileDownloaded:(e,t)=>{let n=(0,s.join)(r,e.fileName),i=(0,s.dirname)(n);(0,o.existsSync)(i)||(0,o.mkdirSync)(i,{recursive:!0}),(0,o.writeFileSync)(n,t)}}),_&&e.status===i.RequestStatus.Approving&&(await $(v,ci,{input:{requestId:e.id}}),E+=1),T+=1,w.update(T)},{concurrency:h}),w.stop();let D=new Date().getTime()-C;return r.t.info(c.default.green(`Successfully downloaded ${T} requests in "${D/1e3}" seconds!`)),E>0&&r.t.info(c.default.green(`Approved ${E} requests in Transcend.`)),x.length}const qu=l.type({id:l.string,link:l.string,status:(0,a.valuesOf)(i.RequestStatus),type:(0,a.valuesOf)(i.RequestAction),subjectType:l.string,email:l.union([l.null,l.string]),coreIdentifier:l.string,isSilent:l.boolean,isTest:l.boolean,country:l.union([l.null,(0,a.valuesOf)(i.IsoCountryCode)]),countrySubDivision:l.union([l.null,(0,a.valuesOf)(i.IsoCountrySubdivisionCode)]),attributeValues:l.array(l.type({attributeKey:l.type({name:l.string}),name:l.string}))});async function Ju(e,t,{details:n=``,isTest:r=!1,emailIsVerified:i=!0,skipSendingReceipt:o=!1,isSilent:s=!0,additionalAttributes:c=[]}={}){let u=[...c];(t.attributes||[]).forEach(e=>{let t=u.find(t=>t.key===e.key);t?(t.values.push(...e.values),t.values=H(t.values)):u.push(e)});let d;try{d=await e.post(`v1/data-subject-request`,{json:{type:t.requestType,subject:{coreIdentifier:t.coreIdentifier,email:t.email,emailIsVerified:i,attestedExtraIdentifiers:t.attestedExtraIdentifiers},subjectType:t.subjectType,isSilent:s,isTest:r,skipSendingReceipt:o,...t.locale?{locale:t.locale}:{},details:n,attributes:u,...t.country||t.countrySubDivision?{region:{...t.country?{country:t.country}:t.countrySubDivision?{country:t.countrySubDivision.split(`-`)[0]}:{},...t.countrySubDivision?{countrySubDivision:t.countrySubDivision}:{}}}:{},...t.createdAt?{createdAt:t.createdAt}:{},...t.dataSiloIds?{dataSiloIds:t.dataSiloIds}:{},...t.status?{completedRequestStatus:t.status}:{}}}).json()}catch(e){throw Error(`Received an error from server: ${e?.response?.body||e?.message}`)}let{request:f}=(0,a.decodeCodec)(l.type({request:qu}),d);return f}async function Yu({requestActions:e,requestOrigins:n,auth:a,silentModeBefore:o,createdAtAfter:s,createdAtBefore:l,updatedAtBefore:u,updatedAtAfter:d,concurrency:f=50,transcendUrl:p=t.a}){let m=Y(p,a),h=new Date().getTime(),g=new b.default.SingleBar({},b.default.Presets.shades_classic),_=await Q(m,{actions:e,statuses:[i.RequestStatus.Approving],createdAtAfter:s,createdAtBefore:l,updatedAtBefore:u,updatedAtAfter:d,origins:n});r.t.info(c.default.magenta(`Approving "${_.length}" requests.`));let v=0,y=0;g.start(_.length,0),await U(_,async e=>{o&&new Date(o)>new Date(e.createdAt)&&await $(m,ui,{input:{id:e.id,isSilent:!0}});try{await $(m,ci,{input:{requestId:e.id}})}catch(e){e.message.includes(`Request must be in an approving state,`)&&(y+=1)}v+=1,g.update(v)},{concurrency:f}),g.stop();let x=new Date().getTime()-h;return y>0&&r.t.info(c.default.yellow(`${y} requests were skipped.`)),r.t.info(c.default.green(`Successfully approved ${v} requests in "${x/1e3}" seconds!`)),_.length}async function Xu({requestActions:e=Object.values(i.RequestAction),auth:n,requestIds:a,createdAtBefore:o,days:s=45,daysLeft:l=10,createdAtAfter:u,updatedAtBefore:d,updatedAtAfter:f,emailTemplate:p=`Additional Time Needed`,concurrency:m=100,transcendUrl:h=t.a}){let g=Y(h,n),_=new Date().getTime(),v=new b.default.SingleBar({},b.default.Presets.shades_classic),y=(await Xc(g,p)).find(e=>e.title===p);if(!y)throw Error(`Failed to find a template with title: "${p}"`);let x=await Q(g,{actions:e,createdAtBefore:o,createdAtAfter:u,updatedAtBefore:d,updatedAtAfter:f,isSilent:!1,isClosed:!1,requestIds:a});x=x.filter(e=>typeof e.daysRemaining==`number`&&e.daysRemaining<l),r.t.info(c.default.magenta(`Notifying "${x.length}" that more time is needed.`));let S=0;v.start(x.length,0),await U(x,async e=>{await $(g,di,{input:{requestId:e.id,template:y.template.defaultMessage,subject:y.subject.defaultMessage,additionalTime:s}}),S+=1,v.update(S)},{concurrency:m}),v.stop();let C=new Date().getTime()-_;return r.t.info(c.default.green(`Successfully marked ${S} requests as silent mode in "${C/1e3}" seconds!`)),x.length}async function Zu(e,t,n){let{initializer:r}=await $(e,Er),i=r.identifiers.filter(({name:e})=>!n.getValue(`identifierNames`,e)&&!vo.includes(e)),a=i.length===0?{}:await m.default.prompt(i.map(({name:e})=>{let n=To(t,e,!1);return{name:e,message:`Choose the column that will be used to map in the identifier: ${e}`,type:`list`,default:n[0],choices:n}}));return await Promise.all(Object.entries(a).map(([e,t])=>n.setValue(t,`identifierNames`,e))),{...n.getValue(`identifierNames`),...a}}async function Qu({requestActions:e,cancellationTitle:n,auth:a,requestIds:o,silentModeBefore:s,createdAtBefore:l,createdAtAfter:u,updatedAtBefore:d,updatedAtAfter:f,statuses:p=[i.RequestStatus.Compiling,i.RequestStatus.RequestMade,i.RequestStatus.Delayed,i.RequestStatus.Approving,i.RequestStatus.Secondary,i.RequestStatus.Enriching,i.RequestStatus.Waiting,i.RequestStatus.SecondaryApproving],concurrency:m=50,transcendUrl:h=t.a}){let g=Y(h,a),_=new Date().getTime(),v=new b.default.SingleBar({},b.default.Presets.shades_classic),y;if(n){let e=(await Xc(g,n)).find(e=>e.title===n);if(!e)throw Error(`Failed to find a template with title: "${n}"`);y=e}let x=await Q(g,{actions:e,createdAtBefore:l,createdAtAfter:u,updatedAtBefore:d,updatedAtAfter:f,statuses:p,requestIds:o});r.t.info(c.default.magenta(`Canceling "${x.length}" requests${y?` Using template: ${y.title}`:``}.`));let S=0;v.start(x.length,0),await U(x,async e=>{s&&new Date(s)>new Date(e.createdAt)&&await $(g,ui,{input:{id:e.id,isSilent:!0}}),await $(g,li,{input:{requestId:e.id,...y?{subject:`Re: ${y.subject.defaultMessage}`,template:y.template.defaultMessage}:{}}}),S+=1,v.update(S)},{concurrency:m}),v.stop();let C=new Date().getTime()-_;return r.t.info(c.default.green(`Successfully canceled ${S} requests in "${C/1e3}" seconds!`)),x.length}async function $u(e,t,n,r){let i=r.filter(({name:e})=>!n.getValue(`attributeNames`,e)),a=i.length===0?{}:await m.default.prompt(i.map(({name:e})=>{let n=To(t,e,!1);return{name:e,message:`Choose the column that will be used to map in the attribute: ${e}`,type:`list`,default:n[0],choices:n}}));return await Promise.all(Object.entries(a).map(([e,t])=>n.setValue(t,`attributeNames`,e))),{...n.getValue(`attributeNames`),...a}}const ed=/{\\"message\\":\\"(.+?)\\",/;function td(e){return ed.test(e)?ed.exec(e)[1]:null}async function nd({cacheFilepath:e,requestReceiptFolder:n,file:i,auth:a,sombraAuth:o,concurrency:u=100,defaultPhoneCountryCode:d=`1`,transcendUrl:f=t.a,attributes:p=[],emailIsVerified:m=!0,skipFilterStep:h=!1,skipSendingReceipt:g=!0,isTest:_=!1,isSilent:v=!0,debug:y=!1,dryRun:x=!1}){let C=new Date().getTime(),w=new b.default.SingleBar({},b.default.Presets.shades_classic),T=Oo(p),E=new S.PersistedState(e,xo,{columnNames:{},requestTypeToRequestAction:{},subjectTypeToSubjectName:{},languageToLocale:{},statusToRequestStatus:{},identifierNames:{},attributeNames:{},regionToCountrySubDivision:{},regionToCountry:{}}),D=(0,s.join)(n,`tr-request-upload-${new Date().toISOString()}-${i.split(`/`).pop()}`.replace(`.csv`,`.json`)),O=new S.PersistedState(D,Co,{successfulRequests:[],duplicateRequests:[],failingRequests:[]}),k=await No(f,a,o),A=ko(i,l.record(l.string,l.string)),j=H(A.map(e=>Object.keys(e)).flat());if(A.length===0)throw Error(`No Requests found in list! Ensure the first row of the CSV is a header and the rest are requests.`);if(y){let e=A[0];r.t.info(c.default.magenta(`First request: ${JSON.stringify(e,null,2)}`))}let M=h?A:await Ao(A),N=Y(f,a),P=await ns(N),F=await Fu(j,E),ee=await Zu(N,j,E),I=await $u(N,j,E,P);await Iu(N,M,{state:E,columnNameMap:F});let L=Bu(M,E,{defaultPhoneCountryCode:d,columnNameMap:F,identifierNameMap:ee,attributeNameMap:I,requestAttributeKeys:P});y||w.start(L.length,0);let te=0;await U(L,async([e,t],n)=>{let i=y?`email:${t.email} | coreIdentifier:${t.coreIdentifier}`:`row:${n.toString()}`;if(y&&r.t.info(c.default.magenta(`[${n+1}/${L.length}] Importing: ${JSON.stringify(t,null,2)}`)),x){r.t.info(c.default.magenta(`Bailing out on dry run because dryRun is set`));return}try{let a=await Ju(k,t,{details:`Uploaded by Transcend Cli: "tr-request-upload" : ${JSON.stringify(e,null,2)}`,isTest:_,emailIsVerified:m,skipSendingReceipt:g,isSilent:v,additionalAttributes:T});y&&(r.t.info(c.default.green(`[${n+1}/${L.length}] Successfully submitted the test data subject request: "${i}"`)),r.t.info(c.default.green(`[${n+1}/${L.length}] View it at: "${a.link}"`)));let o=O.getValue(`successfulRequests`);o.push({id:a.id,link:a.link,rowIndex:n,coreIdentifier:a.coreIdentifier,attemptedAt:new Date().toISOString()}),await O.setValue(o,`successfulRequests`)}catch(e){let a=`${e.message} - ${JSON.stringify(e.response?.body,null,2)}`,o=td(a);if(o===`Client error: You have already made this request.`){y&&r.t.info(c.default.yellow(`[${n+1}/${L.length}] Skipping request as it is a duplicate`));let e=O.getValue(`duplicateRequests`);e.push({coreIdentifier:t.coreIdentifier,rowIndex:n,attemptedAt:new Date().toISOString()}),await O.setValue(e,`duplicateRequests`)}else{let e=O.getValue(`failingRequests`);e.push({...t,rowIndex:n,error:o||a,attemptedAt:new Date().toISOString()}),await O.setValue(e,`failingRequests`),y&&(r.t.error(c.default.red(o||a)),r.t.error(c.default.red(`[${n+1}/${L.length}] Failed to submit request for: "${i}"`)))}}te+=1,y||w.update(te)},{concurrency:u}),w.stop();let R=new Date().getTime()-C;r.t.info(c.default.green(`Completed upload in "${R/1e3}" seconds.`)),O.getValue(`duplicateRequests`).length>0&&r.t.info(c.default.yellow(`Encountered "${O.getValue(`duplicateRequests`).length}" duplicate requests. See "${D}" to review the core identifiers for these requests.`)),O.getValue(`failingRequests`).length>0&&(r.t.error(c.default.red(`Encountered "${O.getValue(`failingRequests`).length}" errors. See "${D}" to review the error messages and inputs.`)),process.exit(1))}async function rd(e,t,{sendEmailReceipt:n=!1,skipWaitingPeriod:r=!1,emailIsVerified:o=!0,requestIdentifiers:s=[]}={}){let c=await e.post(`v1/data-subject-request`,{json:{type:t.type,subject:{coreIdentifier:t.coreIdentifier,email:t.email,emailIsVerified:o,...s.length>0?{attestedExtraIdentifiers:(0,a.apply)(Un(s.filter(e=>!(e.name===`email`&&e.value===t.email)&&!vo.includes(e.name)).map(e=>({...e,type:Object.values(i.IdentifierType).includes(e.name)?e.name:i.IdentifierType.Custom})),`type`),(e,t)=>e.map(({name:e,value:n})=>({...t===i.IdentifierType.Custom?{name:e}:{},value:n})))}:{}},requestId:t.id,subjectType:t.subjectType,isSilent:t.isSilent,isTest:t.isTest,locale:t.locale,skipWaitingPeriod:r,createdAt:t.createdAt,details:`Restarted by Transcend cli: "tr-request-restart" - ${t.details}`,skipSendingReceipt:!n}}).json(),{request:u}=(0,a.decodeCodec)(l.type({request:qu}),c);return u}const id=l.intersection([So,l.type({error:l.string})]),ad=l.type({restartedRequests:l.array(So),failingRequests:l.array(id)});async function od({requestReceiptFolder:e,auth:n,sombraAuth:i,requestActions:a,requestStatuses:o,createdAtBefore:l,createdAtAfter:u,updatedAtBefore:d,updatedAtAfter:f,transcendUrl:p=t.a,requestIds:m=[],createdAt:h=new Date,silentModeBefore:g,sendEmailReceipt:_=!1,emailIsVerified:v=!0,copyIdentifiers:y=!1,skipWaitingPeriod:x=!1,concurrency:C=20}){let w=new Date().getTime(),T=new b.default.SingleBar({},b.default.Presets.shades_classic),E=(0,s.join)(e,`tr-request-restart-${new Date().toISOString()}.json`),D=new S.PersistedState(E,ad,{restartedRequests:[],failingRequests:[]}),O=await No(p,n,i),k=Y(p,n),A=(await Q(k,{requestIds:m,actions:a,statuses:o,createdAtBefore:l,createdAtAfter:u,updatedAtBefore:d,updatedAtAfter:f})).filter(e=>new Date(e.createdAt)<h);if(r.t.info(`Found ${A.length} requests to restart`),y&&r.t.info(`copyIdentifiers detected - All Identifiers will be copied.`),_&&r.t.info(`sendEmailReceipt detected - Email receipts will be sent.`),x&&r.t.info(`skipWaitingPeriod detected - Waiting period will be skipped.`),m.length>0&&m.length!==A.length){let e=V(m,A.map(({id:e})=>e));e.length>0&&(r.t.error(c.default.red(`Failed to find the following requests by ID: ${e.join(`,`)}.`)),process.exit(1))}y&&await Us(k);let j=0;T.start(A.length,0),await U(A,async(e,t)=>{try{let n=y?await Ws(k,O,{requestId:e.id,skipSombraCheck:!0}):[],r=await rd(O,{...e,isSilent:g&&new Date(e.createdAt)<g?!0:e.isSilent},{requestIdentifiers:n,skipWaitingPeriod:x,sendEmailReceipt:_,emailIsVerified:v}),i=D.getValue(`restartedRequests`);i.push({id:r.id,link:r.link,rowIndex:t,coreIdentifier:r.coreIdentifier,attemptedAt:new Date().toISOString()}),await D.setValue(i,`restartedRequests`)}catch(n){let r=`${n.message} - ${JSON.stringify(n.response?.body,null,2)}`,i=td(r),a=D.getValue(`failingRequests`);a.push({id:e.id,link:e.link,rowIndex:t,coreIdentifier:e.coreIdentifier,attemptedAt:new Date().toISOString(),error:i||r}),await D.setValue(a,`failingRequests`)}j+=1,T.update(j)},{concurrency:C}),T.stop();let M=new Date().getTime()-w;r.t.info(c.default.green(`Completed restarting of requests in "${M/1e3}" seconds.`)),D.getValue(`failingRequests`).length>0&&(r.t.error(c.default.red(`Encountered "${D.getValue(`failingRequests`).length}" errors. See "${(0,s.resolve)(E)}" to review the error messages and inputs.`)),process.exit(1))}async function sd({enricherIds:e,auth:n,concurrency:a=100,transcendUrl:o=t.a}){let s=Y(o,n),l=new Date().getTime(),u=await Q(s,{statuses:[i.RequestStatus.Enriching]});r.t.info(c.default.magenta(`Processing enricher: "${e.join(`,`)}" fetched "${u.length}" in enriching status.`));let d=new b.default.SingleBar({},b.default.Presets.shades_classic),f=0;d.start(u.length,0);let p=0;await U(u,async t=>{let n=(await Is(s,{requestId:t.id})).filter(t=>e.includes(t.enricher.id)&&![i.RequestEnricherStatus.Resolved,i.RequestEnricherStatus.Skipped].includes(t.status));n.length>0&&await W(n,async e=>{try{await $(s,gi,{requestEnricherId:e.id}),p+=1}catch(e){if(!e.message.includes(`Client error: Cannot skip Request enricher because it has already completed`))throw e}}),f+=1,d.update(f)},{concurrency:a}),d.stop();let m=new Date().getTime()-l;return r.t.info(c.default.green(`Successfully skipped "${p}" for "${u.length}" requests in "${m/1e3}" seconds!`)),u.length}async function cd({auth:e,requestActions:n=[],createdAtBefore:a,createdAtAfter:o,updatedAtBefore:s,updatedAtAfter:l,transcendUrl:u=t.a,requestEnricherStatuses:d=Object.values(i.RequestEnricherStatus),requestIds:f=[],enricherId:p,concurrency:m=20}){let h=new Date().getTime(),g=new b.default.SingleBar({},b.default.Presets.shades_classic),_=Y(u,e);r.t.info(c.default.magenta(`Fetching requests to restart...`));let v=await Q(_,{actions:n,statuses:[i.RequestStatus.Enriching],createdAtBefore:a,createdAtAfter:o,updatedAtBefore:s,updatedAtAfter:l,requestIds:f}),y=0;if(f.length>0&&f.length!==v.length){let e=V(f,v.map(({id:e})=>e));e.length>0&&(r.t.error(c.default.red(`Failed to find the following requests by ID: ${e.join(`,`)}.`)),process.exit(1))}let x=0;g.start(v.length,0),await U(v,async e=>{await U((await Is(_,{requestId:e.id})).filter(e=>e.enricher.id===p&&d.includes(e.status)),async e=>{await cl(_,e.id),y+=1}),x+=1,g.update(x)},{concurrency:m}),g.stop();let S=new Date().getTime()-h;r.t.info(c.default.green(`Completed restarting of ${v.length} requests and ${y} enrichers in "${S/1e3}" seconds.`))}async function ld({requestActions:e,dataSiloId:n,auth:a,concurrency:o=20,transcendUrl:s=t.a}){let l=Y(s,a),u=new Date().getTime(),d=new b.default.SingleBar({},b.default.Presets.shades_classic),f=await Q(l,{actions:e,statuses:[i.RequestStatus.Compiling,i.RequestStatus.Approving]});r.t.info(c.default.magenta(`Retrying requests for Data Silo: "${n}", restarting "${f.length}" requests.`));let p=0,m=0;d.start(f.length,0),await U(f,async e=>{try{await $(l,Fi,{requestDataSiloId:(await wc(l,{requestId:e.id,dataSiloId:n})).id})}catch(e){if(!e.message.includes(`Failed to find RequestDataSilo`))throw e;m+=1}p+=1,d.update(p)},{concurrency:o}),d.stop();let h=new Date().getTime()-u;return r.t.info(c.default.green(`Successfully notified Transcend in "${h/1e3}" seconds for ${p} requests, ${m} requests were skipped because data silo was not attached to the request!`)),f.length}function ud({attributeValues:e,requestIdentifiers:t,id:n,email:r,type:i,status:a,subjectType:o,details:s,createdAt:c,country:l,locale:u,origin:d,countrySubDivision:f,isSilent:p,isTest:m,coreIdentifier:h,purpose:g,..._}){return{"Request ID":n,"Created At":c,Email:r,"Core Identifier":h,"Request Type":i,"Data Subject Type":o,Status:a,Country:l,"Country Sub Division":f,Details:s,Origin:d,"Silent Mode":p,"Is Test Request":m,Language:u,"Purpose Trigger Name":g?.title||g?.name||``,"Purpose Trigger Value":g?.consent?.toString()||``,...(g?.enrichedPreferences||[]).reduce((e,t)=>{let n=t.preferenceTopic?.title.defaultMessage||t.name;return n?{...e,[n]:t.selectValues?t.selectValues.map(e=>e.name).join(`;`):t.selectValue?.name||t.booleanValue}:e},{}),..._,...Object.entries(Un(e,`attributeKey.name`)).reduce((e,[t,n])=>Object.assign(e,{[t]:n.map(({name:e})=>e).join(`,`)}),{}),...Object.entries(Un(t,`name`)).reduce((e,[t,n])=>Object.assign(e,{[t]:n.map(({value:e})=>e).join(`,`)}),{})}}function dd(e,t,n){let r=e.getTime(),i=t.getTime(),a=(i-r)/n;return Array.from({length:n},(e,t)=>({createdAtAfter:new Date(r+a*t),createdAtBefore:new Date(t===n-1?i:r+a*(t+1))}))}async function fd({auth:e,sombraAuth:n,actions:i=[],statuses:a=[],identifierSearch:o,pageLimit:s=100,concurrency:l=1,transcendUrl:u=t.a,createdAtBefore:d,skipRequestIdentifiers:f=!1,createdAtAfter:p,updatedAtBefore:m,updatedAtAfter:h,isTest:g}){let _=Y(u,e),v=await No(u,e,n),y=``;d&&(y+=` before ${d.toISOString()}`),p&&(y+=`${y?`, and`:``} after ${p.toISOString()}`),r.t.info(c.default.magenta(`${i.length>0?`Pulling requests of type "${i.join(`" , "`)}"`:`Pulling all requests`}${y}`));let b=l>1&&p&&d,x=b?dd(p,d,l):[{createdAtAfter:p,createdAtBefore:d}];b&&r.t.info(c.default.magenta(`Splitting date range into ${l} parallel chunks`));let S=(await U(x,e=>Q(_,{actions:i,text:o,statuses:a,createdAtBefore:e.createdAtBefore,createdAtAfter:e.createdAtAfter,updatedAtBefore:m,updatedAtAfter:h,isTest:g}),{concurrency:b?l:1})).flat();f||await Us(_);let C=f?S.map(e=>({...e,requestIdentifiers:[]})):await U(S,async e=>{let t=await Ws(_,v,{requestId:e.id,skipSombraCheck:!0});return{...e,requestIdentifiers:t}},{concurrency:s});return r.t.info(c.default.magenta(`Pulled ${C.length} requests`)),{requestsWithRequestIdentifiers:C,requestsFormattedForCsv:C.map(ud)}}function pd(e,t,n){let r=e.getTime(),i=t.getTime(),a=(i-r)/n;return Array.from({length:n},(e,t)=>({createdAtAfter:new Date(r+a*t),createdAtBefore:new Date(t===n-1?i:r+a*(t+1))}))}async function md({auth:e,sombraAuth:n,actions:i=[],statuses:a=[],identifierSearch:o,concurrency:s=1,pageLimit:l=100,transcendUrl:u=t.a,createdAtBefore:d,createdAtAfter:f,updatedAtBefore:p,updatedAtAfter:m,isTest:h,skipRequestIdentifiers:g=!1,file:_}){let v=Y(u,e),y=g?void 0:await No(u,e,n),x=``;d&&(x+=` before ${d.toISOString()}`),f&&(x+=`${x?`, and`:``} after ${f.toISOString()}`),r.t.info(c.default.magenta(`${i.length>0?`Pulling requests of type "${i.join(`" , "`)}"`:`Pulling all requests`}${x}`));let S=s>1&&f&&d,C=S?pd(f,d,s):[{createdAtAfter:f,createdAtBefore:d}];S&&r.t.info(c.default.magenta(`Splitting date range into ${s} parallel chunks`));let w={type:i.length>0?i:void 0,status:a.length>0?a:void 0,isTest:h,createdAtBefore:d?d.toISOString():void 0,createdAtAfter:f?f.toISOString():void 0,updatedAtBefore:p?p.toISOString():void 0,updatedAtAfter:m?m.toISOString():void 0},T=Date.now();g||await Us(v);let E=await Js(v,w);r.t.info(c.default.magenta(`Fetching ${E} requests`));let D=new b.default.SingleBar({},b.default.Presets.shades_classic);D.start(E,0);let O=0,{baseName:k,extension:A}=Jd(_),j=C.map((e,t)=>C.length===1?_:`${k}-${t}${A}`),M=[],N=await U(C,async(e,t)=>{let n=j[t],s,u=0;try{await Q(v,{actions:i,text:o,statuses:a,createdAtBefore:e.createdAtBefore,createdAtAfter:e.createdAtAfter,updatedAtBefore:p,updatedAtAfter:m,isTest:h,onPage:async e=>{if(e.length===0)return;let t=(g?e.map(e=>({...e,requestIdentifiers:[]})):await U(e,async e=>({...e,requestIdentifiers:await Ws(v,y,{requestId:e.id,skipSombraCheck:!0})}),{concurrency:l})).map(ud);s||(s=H(t.map(e=>Object.keys(e)).flat()),Wd(n,s)),Gd(n,t,s),u+=t.length,O+=t.length,D.update(O)}})}catch(n){let i=n instanceof Error?n.message:String(n);r.t.error(c.default.red(`Chunk ${t} failed (${e.createdAtAfter?.toISOString()??`start`} → ${e.createdAtBefore?.toISOString()??`end`}): ${i}`)),M.push({index:t,createdAtAfter:e.createdAtAfter,createdAtBefore:e.createdAtBefore,error:i})}return s||Wd(n,[]),u},{concurrency:S?s:1});D.stop();let P=N.reduce((e,t)=>e+t,0),F=(Date.now()-T)/1e3;if(M.length>0){r.t.error(c.default.red(`\n${M.length} chunk(s) failed. Re-run with these date ranges to fill the gaps:`));for(let e of M)r.t.error(c.default.red(` Chunk ${e.index}: --createdAtAfter=${e.createdAtAfter?.toISOString()??``} --createdAtBefore=${e.createdAtBefore?.toISOString()??``}`))}return r.t.info(c.default.green(`Streamed ${P} requests to ${j.length} file(s) in ${F}s`)),{filePaths:j,totalCount:P}}async function hd({dataSiloId:e,auth:n,concurrency:a=50,maxUploadPerChunk:o=5e4,status:s=`SKIPPED`,transcendUrl:l=t.a,requestStatuses:u=[i.RequestStatus.Compiling,i.RequestStatus.Secondary]}){let d=Y(l,n),f=new Date().getTime(),p=await xc(d,{dataSiloId:e,requestStatuses:u});r.t.info(c.default.magenta(`Marking ${p} request data silos as completed`));let m=new b.default.SingleBar({},b.default.Presets.shades_classic),h=0;for(m.start(p,0);h<p;)await U(await Cc(d,{dataSiloId:e,requestStatuses:u,limit:o,onProgress:e=>{h+=e/2,m.update(h)}}),async e=>{try{await $(d,Pi,{requestDataSiloId:e.id,status:s})}catch(e){if(!e.message.includes(`Client error: Request must be active:`))throw e}h+=.5,m.update(h)},{concurrency:a});m.stop();let g=new Date().getTime()-f;return r.t.info(c.default.green(`Successfully skipped "${p}" requests in "${g/1e3}" seconds!`)),p}async function gd({requestActions:e,identifierNames:n,auth:a,concurrency:o=20,transcendUrl:s=t.a}){let l=Y(s,a),u=new Date().getTime(),d=new b.default.SingleBar({},b.default.Presets.shades_classic),f=await Q(l,{actions:e,statuses:[i.RequestStatus.Enriching]});r.t.info(c.default.magenta(`Fetched requests in preflight/enriching state.`));let p=0,m=0;d.start(f.length,0),await U(f,async e=>{let t=(await Rs(l,{requestId:e.id})).filter(({isVerifiedAtLeastOnce:e,name:t})=>e===!1&&n.includes(t)).map(({id:e})=>e);t.length>0&&(await $(l,Bi,{input:{requestId:e.id,requestIdentifierIds:t}}),m+=t.length),p+=1,d.update(p)},{concurrency:o}),d.stop();let h=new Date().getTime()-u;return r.t.info(c.default.green(`Successfully cleared out unverified identifiers "${h/1e3}" seconds for ${p} requests, ${m} identifiers were cleared out!`)),f.length}async function _d({message:e}){let{response:t}=await m.default.prompt([{name:`response`,message:e,type:`confirm`}]);return t}async function vd({message:e}){let{response:t}=await m.default.prompt([{name:`response`,message:e,type:`text`,validate:e=>e.trim().length>0}]);return t}async function yd({defaultValue:e,values:t,message:n}){m.default.registerPrompt(`autocomplete`,h.default);let{response:r}=await m.default.prompt([{name:`response`,message:n,type:`autocomplete`,default:e,source:(e,n)=>n?t.filter(e=>typeof e==`string`&&wo(n,e)):t}]);return r}function bd(e){let t=e.split(`,`).filter(e=>!!e),n={};return t.forEach(e=>{let[t,r]=e.split(`:`);if(!t||!r)throw Error(`Invalid variable: ${e}. Expected format: key:value`);n[t]=r}),n}function xd(e){let t=e;return t?.response?.statusCode??t?.response?.status}function Sd(e){let t=e,n=t?.response?.body||t?.message||`Unknown error`;try{let e=JSON.parse(n),t=e.errors||e.error?.errors||[e.error?.message||e.error];n=(Array.isArray(t)?t:[t]).filter(Boolean).join(`, `)}catch{}return n}function Cd(e){return new Promise(t=>{setTimeout(()=>t(e),e)})}function wd(e){let t=Math.floor(e.length/2);return[e.slice(0,t),e.slice(t)]}async function Td(e,t,n){let r=0;for(;;)try{return await e()}catch(e){r+=1;let i=xd(e),a=Sd(e);if(!(r<=t.maxAttempts&&t.shouldRetry(i,a)))throw e;n(`Retrying after status=${i} attempt=${r}/${t.maxAttempts} — ${a}`),await Cd(t.delayMs)}}function Ed(e,t){return Object.entries(e).reduce((e,[n,r],i)=>(e[n]=i<t?r:!0,e),{})}var Dd=class{buckets=[];add(e){let t=Date.now();this.buckets.push({t,n:e});let n=t-12e4;for(;this.buckets.length&&this.buckets[0].t<n;)this.buckets.shift()}rate(e){let t=Date.now()-e,n=0;for(let e=this.buckets.length-1;e>=0;--e){let r=this.buckets[e];if(r.t<t)break;n+=r.n}return n/(e/1e3)}};function Od(e){try{return e?(0,o.readFileSync)(e,`utf8`):``}catch{return``}}function kd(e,t){e||(r.t.error(c.default.red(`A --directory must be provided.`)),t.process.exit(1));let n=[];try{n=(0,o.readdirSync)(e).filter(e=>e.endsWith(`.parquet`)).map(t=>(0,s.join)(e,t)).filter(e=>{try{return(0,o.statSync)(e).isFile()}catch{return!1}})}catch(n){r.t.error(c.default.red(`Failed to read directory: ${e}`)),r.t.error(c.default.red(n.message)),t.process.exit(1)}return n.length===0&&(r.t.error(c.default.red(`No Parquet files found in directory: ${e}`)),t.process.exit(1)),r.t.info(c.default.green(`Found: ${n.join(`, `)} parquet files`)),n}async function Ad(e,t){let{filePath:n,outputDir:i,clearOutputDir:a,onProgress:l}=e,u=i||(0,s.dirname)(n),{name:d}=(0,s.parse)(n),f=(0,s.join)(u,`${d}.csv`);if((0,o.mkdirSync)(u,{recursive:!0}),a&&(0,o.existsSync)(f))try{(0,o.rmSync)(f,{force:!0})}catch(e){r.t.warn(c.default.yellow(`Could not remove existing output file ${f}: ${e.message}`))}let p=await t.create(`:memory:`),m=await p.connect();try{await Md(m,`PRAGMA temp_directory='';`);let e=e=>`'${e.replace(/'/g,`''`)}'`;await jd(m,`
3001
- COPY (SELECT * FROM read_parquet(${e(n)}))
3002
- TO ${e(f)}
3003
- (HEADER, DELIMITER ',', QUOTE '"', ESCAPE '"', NULL '');
3004
- `),l?.(0,void 0),r.t.info(c.default.green(`Wrote CSV → ${f}`))}finally{await Nd(m),await Nd(p)}}async function jd(e,t){await Nd(await e.run(t))}async function Md(e,t){try{await jd(e,t)}catch{}}async function Nd(e){if(!(!e||typeof e.dispose!=`function`))try{await e.dispose()}catch{}}const Pd=1440*60*1e3,Fd=3600*1e3,Id=300*1e3,Ld=e=>Math.max(1,Math.min(50,e??50)),Rd=e=>new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate())),zd=e=>new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours())),Bd=(e,t)=>new Date(e.getTime()+t),Vd=(e,t)=>new Date(e.getTime()+t*Pd);function Hd(e){return e.includes(`"`)||e.includes(`,`)||e.includes(`
3005
- `)?`"${e.replace(/"/g,`""`)}"`:e}function Ud(e,t,n){let r=[];r.push(n),r.push(...t.map(e=>Object.values(e))),(0,o.writeFileSync)(e,r.map(e=>e.map(Hd).join(`,`)).join(`
3006
- `))}function Wd(e,t){if(!t||t.length===0){(0,o.writeFileSync)(e,``);return}(0,o.writeFileSync)(e,`${t.map(Hd).join(`,`)}\n`)}function Gd(e,t,n){t.length&&(0,o.appendFileSync)(e,`${t.map(e=>n.map(t=>{let n=e[t];return n==null?``:String(n)}).map(Hd).join(`,`)).join(`
3007
- `)}\n`)}function Kd(e,t){(0,o.appendFileSync)(e,`\n${t.map(e=>Object.values(e)).map(e=>e.map(Hd).join(`,`)).join(`
3008
- `)}`)}async function qd(e,t,n=!0){let r=(0,o.createWriteStream)(e);await new Promise((e,i)=>{try{let a=C.write(t,{headers:n,objectMode:!0}).on(`error`,i);r.on(`error`,i),r.on(`finish`,()=>e()),a.pipe(r)}catch(e){i(e)}})}function Jd(e){let t=e.lastIndexOf(`.`);return{baseName:t===-1?e:e.substring(0,t),extension:t===-1?`.csv`:e.substring(t)}}function Yd(e,t){let n={};for(let r of t)n[r]=e[r];return n}function Xd(e){return new Promise(t=>{e.once(`drain`,t)})}async function Zd(e,t,n=!0){let r;r=Array.isArray(n)?n:n===!0?t.length>0?Object.keys(t[0]):[]:!1;let i=(0,o.createWriteStream)(e),a=C.format({headers:r||void 0,objectMode:!0}),s=a.pipe(i),c=new Promise((e,t)=>{s.on(`finish`,()=>e()),s.on(`error`,t),a.on(`error`,t),i.on(`error`,t)});for(let e of t){let t=r?Yd(e,r):e;a.write(t)||await Xd(a)}return a.end(),await c,[e]}const Qd=4,$d=[`syntax error`,`got invalid value`,`Client error`,`cannot affect row a second time`,`GRAPHQL_VALIDATION_FAILED`];async function $(e,t,n,i,a=4){let o=0;for(;;)try{return await e.request(t,n,i)}catch(e){if(e.message.includes(`API key is invalid`)&&(r.t.error(c.default.red("API key is invalid. Please ensure that the key provided to `transcendAuth` has the proper scope and is not expired, and that `transcendUrl` corresponds to the correct backend for your organization.")),process.exit(1)),$d.some(t=>e.message.includes(t)))throw e;if(e.message.startsWith(`Client error: Too many requests`)){let t=e.response.headers?.get(`x-ratelimit-reset`),n=t?new Date(t).getTime()-new Date().getTime()+100:1e3*10;r.t.log(c.default.yellow(`DETECTED RATE LIMIT: ${e.message}. Sleeping for ${n}ms`)),await Cd(n)}if(o>=a)throw e;o+=1,r.t.log(c.default.yellow(`Retrying failed request (${o} / ${a}): ${e.message}`))}}const ef=20;async function tf(e){let t=[],n=0,r=!1;do{let{identifiers:{nodes:i}}=await $(e,Ar,{first:20,offset:n});t.push(...i),n+=20,r=i.length===20}while(r);return t.sort((e,t)=>e.name.localeCompare(t.name))}async function nf({enrichers:e=[],"data-silos":n=[],identifiers:i=[]},a,o=!1){let s=await tf(a),l=t.g(s,`name`),u=V(H([...Ve(e.map(e=>[e[`input-identifier`],...e[`output-identifiers`]])),...Ve(n.map(e=>e[`identity-keys`])),...i.map(({name:e})=>e)]).filter(e=>!!e),s.map(({name:e})=>e));if(u.length>0){r.t.info(c.default.magenta(`Creating ${u.length} new identifiers...`));let{newIdentifierTypes:e}=await $(a,jr),t=e.map(({name:e})=>e);await W(u,async e=>{r.t.info(c.default.magenta(`Creating identifier ${e}...`));let{createIdentifier:n}=await $(a,Mr,{input:{name:e,type:t.includes(e)?e:`custom`,skipPublish:o}});r.t.info(c.default.green(`Created identifier ${e}!`)),l[e]=n.identifier})}return l}async function rf(e,t){let{createTeam:n}=await $(e,Ri,{input:{name:t.name,description:t.description,ssoTitle:t[`sso-title`],ssoDepartment:t[`sso-department`],ssoGroup:t[`sso-group`],scopes:t.scopes,userEmails:t.users}});return n.team}async function af(e,t,n){let{updateTeam:r}=await $(e,zi,{input:{id:n,name:t.name,description:t.description,ssoTitle:t[`sso-title`],ssoDepartment:t[`sso-department`],ssoGroup:t[`sso-group`],scopes:t.scopes,userEmails:t.users}});return r.team}async function of(e,n){r.t.info(c.default.magenta(`Syncing "${n.length}" teams...`));let i=!1,a=t.g(await Xs(e),`name`),o=n.filter(e=>!a[e.name]),s=n.filter(e=>!!a[e.name]);return await W(o,async t=>{try{let n=await rf(e,t);a[n.name]=n,r.t.info(c.default.green(`Successfully created team "${t.name}"!`))}catch(e){i=!0,r.t.info(c.default.red(`Failed to sync team "${t.name}"! - ${e.message}`))}}),await W(s,async t=>{try{let n=await af(e,t,a[t.name].id);a[n.name]=n,r.t.info(c.default.green(`Successfully updated team "${t.name}"!`))}catch(e){i=!0,r.t.info(c.default.red(`Failed to sync team "${t.name}"! - ${e.message}`))}}),!i}async function sf(e,t){let{createPromptPartial:{promptPartial:n}}=await $(e,Ai,{input:t});return r.t.info(c.default.green(`Successfully created prompt partial "${t.title}"!`)),n.id}async function cf(e,t){await $(e,ki,{input:{promptPartials:t.map(([e,t])=>({...e,id:t}))}}),r.t.info(c.default.green(`Successfully updated ${t.length} prompt partials!`))}async function lf(e,n,i=20){let a=!1;r.t.info(c.default.magenta(`Syncing "${n.length}" prompt partials...`));let o=t.g(await hc(e),`title`),s=n.map(e=>[e,o[e.title]?.id]),l=s.filter(([,e])=>!e).map(([e])=>e);try{r.t.info(c.default.magenta(`Creating "${l.length}" new prompt partials...`)),await U(l,async t=>{await sf(e,t)},{concurrency:i}),r.t.info(c.default.green(`Successfully synced ${l.length} prompt partials!`))}catch(e){a=!0,r.t.info(c.default.red(`Failed to create prompt partials! - ${e.message}`))}let u=s.filter(e=>!!e[1]);try{r.t.info(c.default.magenta(`Updating "${u.length}" prompt partials...`)),await cf(e,u),r.t.info(c.default.green(`Successfully updated "${u.length}" prompt partials!`))}catch(e){a=!0,r.t.info(c.default.red(`Failed to create prompt partials! - ${e.message}`))}return r.t.info(c.default.green(`Synced "${n.length}" prompt partials!`)),!a}async function uf(e,t){let{createPromptGroup:{promptGroup:n}}=await $(e,Mi,{input:t});return r.t.info(c.default.green(`Successfully created prompt group "${t.title}"!`)),n.id}async function df(e,t){await $(e,ji,{input:{promptGroups:t.map(([e,t])=>({...e,id:t}))}}),r.t.info(c.default.green(`Successfully updated ${t.length} prompt groups!`))}async function ff(e,n,i=20){let a=!1;r.t.info(c.default.magenta(`Syncing "${n.length}" prompt groups...`));let o=await pc(e),s=t.g(await _c(e),`title`),l=t.g(o,`title`),u=n.map(e=>[e,l[e.title]?.id]),d=u.filter(([,e])=>!e).map(([e])=>e);try{r.t.info(c.default.magenta(`Creating "${d.length}" new prompt groups...`)),await U(d,async t=>{await uf(e,{...t,promptIds:t.prompts.map(e=>{let t=s[e];if(!t)throw Error(`Failed to find prompt with title: "${e}"`);return t.id})})},{concurrency:i}),r.t.info(c.default.green(`Successfully synced ${d.length} prompt groups!`))}catch(e){a=!0,r.t.info(c.default.red(`Failed to create prompt groups! - ${e.message}`))}let f=u.filter(e=>!!e[1]);try{r.t.info(c.default.magenta(`Updating "${f.length}" prompt groups...`)),await df(e,f.map(([{prompts:e,...t},n])=>[{...t,promptIds:e.map(e=>{let t=s[e];if(!t)throw Error(`Failed to find prompt with title: "${e}"`);return t.id})},n])),r.t.info(c.default.green(`Successfully updated "${f.length}" prompt groups!`))}catch(e){a=!0,r.t.info(c.default.red(`Failed to create prompt groups! - ${e.message}`))}return r.t.info(c.default.green(`Synced "${n.length}" prompt groups!`)),!a}const pf=10;async function mf(e,t,{pageSize:n=50,publishToPrivacyCenter:i=!0,classifyService:a=!1,deleteExtraAttributeValues:o=!1}){let s=!1;r.t.info(c.default.magenta(`Fetching data with page size ${n}...`));let{templates:l,attributes:u,actions:d,identifiers:f,"data-subjects":p,"business-entities":m,enrichers:h,cookies:g,"consent-manager":_,"data-silos":v,"data-flows":y,prompts:b,"prompt-groups":x,"prompt-partials":S,agents:C,"agent-functions":w,"agent-files":T,vendors:E,"data-categories":D,"processing-activities":O,"processing-purposes":k,"action-items":A,"action-item-collections":j,teams:M,"privacy-center":N,messages:P,policies:F,partitions:ee}=e,[I,L,te]=await Promise.all([h||f?nf(e,t,!i):{},v||p||h||O?lc(e,t):{},v&&v.map(e=>e[`api-key-title`]||[]).reduce((e,t)=>e+t.length,0)>0?ic(e,t):{}]);if(_){r.t.info(c.default.magenta(`Syncing consent manager...`));try{await eu(t,_),r.t.info(c.default.green(`Successfully synced consent manager!`))}catch(e){s=!0,r.t.info(c.default.red(`Failed to sync consent manager! - ${e.message}`))}}if(b){let e=await Ou(t,b);s||=!e}if(S){let e=await lf(t,S);s||=!e}if(x){let e=await ff(t,x);s||=!e}if(M){let e=await of(t,M);s||=!e}if(l&&(r.t.info(c.default.magenta(`Syncing "${l.length}" email templates...`)),await U(l,async e=>{r.t.info(c.default.magenta(`Syncing template "${e.title}"...`));try{await Zc(e,t),r.t.info(c.default.green(`Successfully synced template "${e.title}"!`))}catch(t){s=!0,r.t.info(c.default.red(`Failed to sync template "${e.title}"! - ${t.message}`))}},{concurrency:10}),r.t.info(c.default.green(`Synced "${l.length}" email templates!`))),m){let e=await Ml(t,m);s||=!e}if(E){let e=await ju(t,E);s||=!e}if(D){let e=await ou(t,D);s||=!e}if(k){let e=await Tu(t,k);s||=!e}if(ee){let e=await nl(t,ee);s||=!e}if(C){let e=await Ol(t,C);s||=!e}if(w){let e=await Tl(t,w);s||=!e}if(T){let e=await Sl(t,T);s||=!e}if(g){let e=await ru(t,g);s||=!e}if(j){let e=await ml(t,j);s||=!e}if(u){r.t.info(c.default.magenta(`Syncing "${u.length}" attributes...`));let e=await os(t);await U(u,async n=>{let i=e.find(e=>e.name===n.name);r.t.info(c.default.magenta(`Syncing attribute "${n.name}"...`));try{await kl(t,n,{existingAttribute:i,deleteExtraAttributeValues:o}),r.t.info(c.default.green(`Successfully synced attribute "${n.name}"!`))}catch(e){s=!0,r.t.info(c.default.red(`Failed to sync attribute "${n.name}"! - ${e.message}`))}},{concurrency:10}),r.t.info(c.default.green(`Synced "${u.length}" attributes!`))}if(A){let e=await yl(t,A);s||=!e}if(h&&(r.t.info(c.default.magenta(`Syncing "${h.length}" enrichers...`)),await U(h,async e=>{r.t.info(c.default.magenta(`Syncing enricher "${e.title}"...`));try{await Jc(t,{enricher:e,identifierByName:I,dataSubjectsByName:L}),r.t.info(c.default.green(`Successfully synced enricher "${e.title}"!`))}catch(t){s=!0,r.t.info(c.default.red(`Failed to sync enricher "${e.title}"! - ${t.message}`))}},{concurrency:10}),r.t.info(c.default.green(`Synced "${h.length}" enrichers!`))),f&&(r.t.info(c.default.magenta(`Syncing "${f.length}" identifiers...`)),await U(f,async e=>{let n=I[e.name];if(!n)throw Error(`Failed to find identifier with name: ${e.type}. Should have been auto-created by cli.`);r.t.info(c.default.magenta(`Syncing identifier "${e.type}"...`));try{await fu(t,{identifier:e,dataSubjectsByName:L,identifierId:n.id,skipPublish:!i}),r.t.info(c.default.green(`Successfully synced identifier "${e.type}"!`))}catch(t){s=!0,r.t.info(c.default.red(`Failed to sync identifier "${e.type}"! - ${t.message}`))}},{concurrency:10}),r.t.info(c.default.green(`Synced "${f.length}" identifiers!`))),d){r.t.info(c.default.magenta(`Syncing "${d.length}" actions...`));let e=await Vo(t);await U(d,async n=>{let a=e.find(e=>e.type===n.type);if(!a)throw Error(`Failed to find action with type: ${n.type}. Should have already existing in the organization.`);r.t.info(c.default.magenta(`Syncing action "${n.type}"...`));try{await dl(t,{action:n,actionId:a.id,skipPublish:!i}),r.t.info(c.default.green(`Successfully synced action "${n.type}"!`))}catch(e){s=!0,r.t.info(c.default.red(`Failed to sync action "${n.type}"! - ${e.message}`))}},{concurrency:10}),r.t.info(c.default.green(`Synced "${d.length}" actions!`))}if(p){r.t.info(c.default.magenta(`Syncing "${p.length}" data subjects...`));let e=await cc(t);await U(p,async n=>{let a=e.find(e=>e.type===n.type);if(!a)throw Error(`Failed to find data subject with type: ${n.type}. Should have already existing in the organization.`);r.t.info(c.default.magenta(`Syncing data subject "${n.type}"...`));try{await du(t,{dataSubject:n,dataSubjectId:a.id,skipPublish:!i}),r.t.info(c.default.green(`Successfully synced data subject "${n.type}"!`))}catch(e){s=!0,r.t.info(c.default.red(`Failed to sync data subject "${n.type}"! - ${e.message}`))}},{concurrency:10}),r.t.info(c.default.green(`Synced "${p.length}" data subjects!`))}if(y){let e=await uu(t,y,a);s||=!e}if(N){let e=await yu(t,N);s||=!e}if(P){let e=await hu(t,P);s||=!e}if(F){let e=await vu(t,F);s||=!e}let R=[];if(v){let{success:e,dataSiloTitleToId:r}=await Wc(v,t,{dataSubjectsByName:L,apiKeysByTitle:te,pageSize:n});v?.forEach(e=>{e[`deletion-dependencies`]&&R.push([r[e.title],e[`deletion-dependencies`]])}),s||=!e}if(R.length>0&&await Gc(t,R),O){let e=await Su(t,O);s||=!e}return s}Object.defineProperty(exports,`$`,{enumerable:!0,get:function(){return Ku}}),Object.defineProperty(exports,`$a`,{enumerable:!0,get:function(){return Hi}}),Object.defineProperty(exports,`$i`,{enumerable:!0,get:function(){return Ua}}),Object.defineProperty(exports,`$n`,{enumerable:!0,get:function(){return hc}}),Object.defineProperty(exports,`$o`,{enumerable:!0,get:function(){return Hr}}),Object.defineProperty(exports,`$r`,{enumerable:!0,get:function(){return zo}}),Object.defineProperty(exports,`$t`,{enumerable:!0,get:function(){return El}}),Object.defineProperty(exports,`A`,{enumerable:!0,get:function(){return bd}}),Object.defineProperty(exports,`Aa`,{enumerable:!0,get:function(){return va}}),Object.defineProperty(exports,`Ai`,{enumerable:!0,get:function(){return uo}}),Object.defineProperty(exports,`An`,{enumerable:!0,get:function(){return Uc}}),Object.defineProperty(exports,`Ao`,{enumerable:!0,get:function(){return ci}}),Object.defineProperty(exports,`Ar`,{enumerable:!0,get:function(){return Ss}}),Object.defineProperty(exports,`As`,{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,`At`,{enumerable:!0,get:function(){return lu}}),Object.defineProperty(exports,`B`,{enumerable:!0,get:function(){return cd}}),Object.defineProperty(exports,`Ba`,{enumerable:!0,get:function(){return ta}}),Object.defineProperty(exports,`Bi`,{enumerable:!0,get:function(){return to}}),Object.defineProperty(exports,`Bn`,{enumerable:!0,get:function(){return Ic}}),Object.defineProperty(exports,`Bo`,{enumerable:!0,get:function(){return ni}}),Object.defineProperty(exports,`Br`,{enumerable:!0,get:function(){return ms}}),Object.defineProperty(exports,`Bs`,{enumerable:!0,get:function(){return Me}}),Object.defineProperty(exports,`Bt`,{enumerable:!0,get:function(){return Yl}}),Object.defineProperty(exports,`C`,{enumerable:!0,get:function(){return Dd}}),Object.defineProperty(exports,`Ca`,{enumerable:!0,get:function(){return da}}),Object.defineProperty(exports,`Ci`,{enumerable:!0,get:function(){return vo}}),Object.defineProperty(exports,`Cn`,{enumerable:!0,get:function(){return Xc}}),Object.defineProperty(exports,`Co`,{enumerable:!0,get:function(){return _i}}),Object.defineProperty(exports,`Cr`,{enumerable:!0,get:function(){return js}}),Object.defineProperty(exports,`Cs`,{enumerable:!0,get:function(){return vr}}),Object.defineProperty(exports,`Ct`,{enumerable:!0,get:function(){return yu}}),Object.defineProperty(exports,`D`,{enumerable:!0,get:function(){return Cd}}),Object.defineProperty(exports,`Da`,{enumerable:!0,get:function(){return Sa}}),Object.defineProperty(exports,`Di`,{enumerable:!0,get:function(){return ho}}),Object.defineProperty(exports,`Dn`,{enumerable:!0,get:function(){return Hc}}),Object.defineProperty(exports,`Do`,{enumerable:!0,get:function(){return gi}}),Object.defineProperty(exports,`Dr`,{enumerable:!0,get:function(){return Z}}),Object.defineProperty(exports,`Ds`,{enumerable:!0,get:function(){return hr}}),Object.defineProperty(exports,`Dt`,{enumerable:!0,get:function(){return mu}}),Object.defineProperty(exports,`E`,{enumerable:!0,get:function(){return wd}}),Object.defineProperty(exports,`Ea`,{enumerable:!0,get:function(){return Ca}}),Object.defineProperty(exports,`Ei`,{enumerable:!0,get:function(){return So}}),Object.defineProperty(exports,`En`,{enumerable:!0,get:function(){return Jc}}),Object.defineProperty(exports,`Eo`,{enumerable:!0,get:function(){return hi}}),Object.defineProperty(exports,`Er`,{enumerable:!0,get:function(){return Es}}),Object.defineProperty(exports,`Es`,{enumerable:!0,get:function(){return mr}}),Object.defineProperty(exports,`Et`,{enumerable:!0,get:function(){return hu}}),Object.defineProperty(exports,`F`,{enumerable:!0,get:function(){return hd}}),Object.defineProperty(exports,`Fa`,{enumerable:!0,get:function(){return sa}}),Object.defineProperty(exports,`Fi`,{enumerable:!0,get:function(){return ao}}),Object.defineProperty(exports,`Fn`,{enumerable:!0,get:function(){return Fc}}),Object.defineProperty(exports,`Fo`,{enumerable:!0,get:function(){return ui}}),Object.defineProperty(exports,`Fr`,{enumerable:!0,get:function(){return fs}}),Object.defineProperty(exports,`Fs`,{enumerable:!0,get:function(){return Un}}),Object.defineProperty(exports,`Ft`,{enumerable:!0,get:function(){return au}}),Object.defineProperty(exports,`G`,{enumerable:!0,get:function(){return td}}),Object.defineProperty(exports,`Ga`,{enumerable:!0,get:function(){return Qi}}),Object.defineProperty(exports,`Gi`,{enumerable:!0,get:function(){return Xa}}),Object.defineProperty(exports,`Gn`,{enumerable:!0,get:function(){return Ec}}),Object.defineProperty(exports,`Go`,{enumerable:!0,get:function(){return Xr}}),Object.defineProperty(exports,`Gr`,{enumerable:!0,get:function(){return ns}}),Object.defineProperty(exports,`Gt`,{enumerable:!0,get:function(){return Gl}}),Object.defineProperty(exports,`H`,{enumerable:!0,get:function(){return od}}),Object.defineProperty(exports,`Ha`,{enumerable:!0,get:function(){return $i}}),Object.defineProperty(exports,`Hi`,{enumerable:!0,get:function(){return $a}}),Object.defineProperty(exports,`Hn`,{enumerable:!0,get:function(){return Ac}}),Object.defineProperty(exports,`Ho`,{enumerable:!0,get:function(){return $r}}),Object.defineProperty(exports,`Hr`,{enumerable:!0,get:function(){return as}}),Object.defineProperty(exports,`Ht`,{enumerable:!0,get:function(){return Xl}}),Object.defineProperty(exports,`I`,{enumerable:!0,get:function(){return md}}),Object.defineProperty(exports,`Ia`,{enumerable:!0,get:function(){return ba}}),Object.defineProperty(exports,`Ii`,{enumerable:!0,get:function(){return io}}),Object.defineProperty(exports,`In`,{enumerable:!0,get:function(){return Pc}}),Object.defineProperty(exports,`Io`,{enumerable:!0,get:function(){return ii}}),Object.defineProperty(exports,`Ir`,{enumerable:!0,get:function(){return ls}}),Object.defineProperty(exports,`Is`,{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,`It`,{enumerable:!0,get:function(){return ru}}),Object.defineProperty(exports,`J`,{enumerable:!0,get:function(){return Zu}}),Object.defineProperty(exports,`Ja`,{enumerable:!0,get:function(){return Yi}}),Object.defineProperty(exports,`Ji`,{enumerable:!0,get:function(){return qa}}),Object.defineProperty(exports,`Jn`,{enumerable:!0,get:function(){return Cc}}),Object.defineProperty(exports,`Jo`,{enumerable:!0,get:function(){return qr}}),Object.defineProperty(exports,`Jr`,{enumerable:!0,get:function(){return Yo}}),Object.defineProperty(exports,`Jt`,{enumerable:!0,get:function(){return zl}}),Object.defineProperty(exports,`K`,{enumerable:!0,get:function(){return $u}}),Object.defineProperty(exports,`Ka`,{enumerable:!0,get:function(){return Ji}}),Object.defineProperty(exports,`Ki`,{enumerable:!0,get:function(){return Za}}),Object.defineProperty(exports,`Kn`,{enumerable:!0,get:function(){return Tc}}),Object.defineProperty(exports,`Ko`,{enumerable:!0,get:function(){return Yr}}),Object.defineProperty(exports,`Kr`,{enumerable:!0,get:function(){return es}}),Object.defineProperty(exports,`Kt`,{enumerable:!0,get:function(){return Rl}}),Object.defineProperty(exports,`L`,{enumerable:!0,get:function(){return fd}}),Object.defineProperty(exports,`La`,{enumerable:!0,get:function(){return ca}}),Object.defineProperty(exports,`Li`,{enumerable:!0,get:function(){return oo}}),Object.defineProperty(exports,`Ln`,{enumerable:!0,get:function(){return Nc}}),Object.defineProperty(exports,`Lo`,{enumerable:!0,get:function(){return ai}}),Object.defineProperty(exports,`Lr`,{enumerable:!0,get:function(){return ps}}),Object.defineProperty(exports,`Ls`,{enumerable:!0,get:function(){return Mn}}),Object.defineProperty(exports,`Lt`,{enumerable:!0,get:function(){return nu}}),Object.defineProperty(exports,`M`,{enumerable:!0,get:function(){return _d}}),Object.defineProperty(exports,`Ma`,{enumerable:!0,get:function(){return Ta}}),Object.defineProperty(exports,`Mi`,{enumerable:!0,get:function(){return co}}),Object.defineProperty(exports,`Mn`,{enumerable:!0,get:function(){return Wc}}),Object.defineProperty(exports,`Mo`,{enumerable:!0,get:function(){return di}}),Object.defineProperty(exports,`Mr`,{enumerable:!0,get:function(){return bs}}),Object.defineProperty(exports,`Ms`,{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,`Mt`,{enumerable:!0,get:function(){return cu}}),Object.defineProperty(exports,`N`,{enumerable:!0,get:function(){return vd}}),Object.defineProperty(exports,`Na`,{enumerable:!0,get:function(){return ga}}),Object.defineProperty(exports,`Ni`,{enumerable:!0,get:function(){return so}}),Object.defineProperty(exports,`Nn`,{enumerable:!0,get:function(){return Lc}}),Object.defineProperty(exports,`No`,{enumerable:!0,get:function(){return si}}),Object.defineProperty(exports,`Nr`,{enumerable:!0,get:function(){return vs}}),Object.defineProperty(exports,`Ns`,{enumerable:!0,get:function(){return cr}}),Object.defineProperty(exports,`Nt`,{enumerable:!0,get:function(){return iu}}),Object.defineProperty(exports,`O`,{enumerable:!0,get:function(){return Sd}}),Object.defineProperty(exports,`Oa`,{enumerable:!0,get:function(){return xa}}),Object.defineProperty(exports,`Oi`,{enumerable:!0,get:function(){return mo}}),Object.defineProperty(exports,`On`,{enumerable:!0,get:function(){return Bc}}),Object.defineProperty(exports,`Oo`,{enumerable:!0,get:function(){return fi}}),Object.defineProperty(exports,`Or`,{enumerable:!0,get:function(){return ws}}),Object.defineProperty(exports,`Os`,{enumerable:!0,get:function(){return gr}}),Object.defineProperty(exports,`Ot`,{enumerable:!0,get:function(){return fu}}),Object.defineProperty(exports,`P`,{enumerable:!0,get:function(){return gd}}),Object.defineProperty(exports,`Pa`,{enumerable:!0,get:function(){return ha}}),Object.defineProperty(exports,`Pi`,{enumerable:!0,get:function(){return lo}}),Object.defineProperty(exports,`Pn`,{enumerable:!0,get:function(){return Rc}}),Object.defineProperty(exports,`Po`,{enumerable:!0,get:function(){return oi}}),Object.defineProperty(exports,`Pr`,{enumerable:!0,get:function(){return gs}}),Object.defineProperty(exports,`Ps`,{enumerable:!0,get:function(){return tr}}),Object.defineProperty(exports,`Pt`,{enumerable:!0,get:function(){return ou}}),Object.defineProperty(exports,`Q`,{enumerable:!0,get:function(){return Ju}}),Object.defineProperty(exports,`Qa`,{enumerable:!0,get:function(){return Ui}}),Object.defineProperty(exports,`Qi`,{enumerable:!0,get:function(){return Ha}}),Object.defineProperty(exports,`Qn`,{enumerable:!0,get:function(){return vc}}),Object.defineProperty(exports,`Qo`,{enumerable:!0,get:function(){return Vr}}),Object.defineProperty(exports,`Qr`,{enumerable:!0,get:function(){return Vo}}),Object.defineProperty(exports,`Qt`,{enumerable:!0,get:function(){return kl}}),Object.defineProperty(exports,`R`,{enumerable:!0,get:function(){return ud}}),Object.defineProperty(exports,`Ra`,{enumerable:!0,get:function(){return Xi}}),Object.defineProperty(exports,`Ri`,{enumerable:!0,get:function(){return no}}),Object.defineProperty(exports,`Rn`,{enumerable:!0,get:function(){return jc}}),Object.defineProperty(exports,`Ro`,{enumerable:!0,get:function(){return ri}}),Object.defineProperty(exports,`Rr`,{enumerable:!0,get:function(){return ds}}),Object.defineProperty(exports,`Rs`,{enumerable:!0,get:function(){return B}}),Object.defineProperty(exports,`Rt`,{enumerable:!0,get:function(){return eu}}),Object.defineProperty(exports,`S`,{enumerable:!0,get:function(){return Od}}),Object.defineProperty(exports,`Sa`,{enumerable:!0,get:function(){return fa}}),Object.defineProperty(exports,`Si`,{enumerable:!0,get:function(){return K}}),Object.defineProperty(exports,`Sn`,{enumerable:!0,get:function(){return nl}}),Object.defineProperty(exports,`So`,{enumerable:!0,get:function(){return vi}}),Object.defineProperty(exports,`Sr`,{enumerable:!0,get:function(){return Ns}}),Object.defineProperty(exports,`Ss`,{enumerable:!0,get:function(){return yr}}),Object.defineProperty(exports,`St`,{enumerable:!0,get:function(){return Su}}),Object.defineProperty(exports,`T`,{enumerable:!0,get:function(){return Td}}),Object.defineProperty(exports,`Ta`,{enumerable:!0,get:function(){return wa}}),Object.defineProperty(exports,`Ti`,{enumerable:!0,get:function(){return G}}),Object.defineProperty(exports,`Tn`,{enumerable:!0,get:function(){return qc}}),Object.defineProperty(exports,`To`,{enumerable:!0,get:function(){return mi}}),Object.defineProperty(exports,`Tr`,{enumerable:!0,get:function(){return Ds}}),Object.defineProperty(exports,`Ts`,{enumerable:!0,get:function(){return pr}}),Object.defineProperty(exports,`Tt`,{enumerable:!0,get:function(){return _u}}),Object.defineProperty(exports,`U`,{enumerable:!0,get:function(){return rd}}),Object.defineProperty(exports,`Ua`,{enumerable:!0,get:function(){return ra}}),Object.defineProperty(exports,`Ui`,{enumerable:!0,get:function(){return eo}}),Object.defineProperty(exports,`Un`,{enumerable:!0,get:function(){return Oc}}),Object.defineProperty(exports,`Uo`,{enumerable:!0,get:function(){return Zr}}),Object.defineProperty(exports,`Ur`,{enumerable:!0,get:function(){return is}}),Object.defineProperty(exports,`Ut`,{enumerable:!0,get:function(){return Wl}}),Object.defineProperty(exports,`V`,{enumerable:!0,get:function(){return sd}}),Object.defineProperty(exports,`Va`,{enumerable:!0,get:function(){return Zi}}),Object.defineProperty(exports,`Vi`,{enumerable:!0,get:function(){return Qa}}),Object.defineProperty(exports,`Vn`,{enumerable:!0,get:function(){return kc}}),Object.defineProperty(exports,`Vo`,{enumerable:!0,get:function(){return ti}}),Object.defineProperty(exports,`Vr`,{enumerable:!0,get:function(){return cs}}),Object.defineProperty(exports,`Vt`,{enumerable:!0,get:function(){return Zl}}),Object.defineProperty(exports,`W`,{enumerable:!0,get:function(){return nd}}),Object.defineProperty(exports,`Wa`,{enumerable:!0,get:function(){return na}}),Object.defineProperty(exports,`Wi`,{enumerable:!0,get:function(){return Ya}}),Object.defineProperty(exports,`Wn`,{enumerable:!0,get:function(){return Dc}}),Object.defineProperty(exports,`Wo`,{enumerable:!0,get:function(){return Qr}}),Object.defineProperty(exports,`Wr`,{enumerable:!0,get:function(){return os}}),Object.defineProperty(exports,`Wt`,{enumerable:!0,get:function(){return Kl}}),Object.defineProperty(exports,`X`,{enumerable:!0,get:function(){return Yu}}),Object.defineProperty(exports,`Xa`,{enumerable:!0,get:function(){return Gi}}),Object.defineProperty(exports,`Xi`,{enumerable:!0,get:function(){return Ga}}),Object.defineProperty(exports,`Xn`,{enumerable:!0,get:function(){return bc}}),Object.defineProperty(exports,`Xo`,{enumerable:!0,get:function(){return Kr}}),Object.defineProperty(exports,`Xr`,{enumerable:!0,get:function(){return Go}}),Object.defineProperty(exports,`Xt`,{enumerable:!0,get:function(){return Ml}}),Object.defineProperty(exports,`Y`,{enumerable:!0,get:function(){return Xu}}),Object.defineProperty(exports,`Ya`,{enumerable:!0,get:function(){return Ki}}),Object.defineProperty(exports,`Yi`,{enumerable:!0,get:function(){return Ja}}),Object.defineProperty(exports,`Yn`,{enumerable:!0,get:function(){return xc}}),Object.defineProperty(exports,`Yo`,{enumerable:!0,get:function(){return Gr}}),Object.defineProperty(exports,`Yr`,{enumerable:!0,get:function(){return qo}}),Object.defineProperty(exports,`Yt`,{enumerable:!0,get:function(){return Al}}),Object.defineProperty(exports,`Z`,{enumerable:!0,get:function(){return qu}}),Object.defineProperty(exports,`Za`,{enumerable:!0,get:function(){return Wi}}),Object.defineProperty(exports,`Zi`,{enumerable:!0,get:function(){return Wa}}),Object.defineProperty(exports,`Zn`,{enumerable:!0,get:function(){return _c}}),Object.defineProperty(exports,`Zo`,{enumerable:!0,get:function(){return Wr}}),Object.defineProperty(exports,`Zr`,{enumerable:!0,get:function(){return Uo}}),Object.defineProperty(exports,`Zt`,{enumerable:!0,get:function(){return jl}}),Object.defineProperty(exports,`_`,{enumerable:!0,get:function(){return Ld}}),Object.defineProperty(exports,`_a`,{enumerable:!0,get:function(){return Oa}}),Object.defineProperty(exports,`_i`,{enumerable:!0,get:function(){return _o}}),Object.defineProperty(exports,`_n`,{enumerable:!0,get:function(){return sl}}),Object.defineProperty(exports,`_o`,{enumerable:!0,get:function(){return ji}}),Object.defineProperty(exports,`_r`,{enumerable:!0,get:function(){return Ws}}),Object.defineProperty(exports,`_s`,{enumerable:!0,get:function(){return wr}}),Object.defineProperty(exports,`_t`,{enumerable:!0,get:function(){return Ou}}),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return Gd}}),Object.defineProperty(exports,`aa`,{enumerable:!0,get:function(){return Fa}}),Object.defineProperty(exports,`ai`,{enumerable:!0,get:function(){return Y}}),Object.defineProperty(exports,`an`,{enumerable:!0,get:function(){return bl}}),Object.defineProperty(exports,`ao`,{enumerable:!0,get:function(){return Pi}}),Object.defineProperty(exports,`ar`,{enumerable:!0,get:function(){return oc}}),Object.defineProperty(exports,`as`,{enumerable:!0,get:function(){return Pr}}),Object.defineProperty(exports,`at`,{enumerable:!0,get:function(){return Lu}}),Object.defineProperty(exports,`b`,{enumerable:!0,get:function(){return Ad}}),Object.defineProperty(exports,`ba`,{enumerable:!0,get:function(){return _a}}),Object.defineProperty(exports,`bi`,{enumerable:!0,get:function(){return xo}}),Object.defineProperty(exports,`bn`,{enumerable:!0,get:function(){return il}}),Object.defineProperty(exports,`bo`,{enumerable:!0,get:function(){return xi}}),Object.defineProperty(exports,`br`,{enumerable:!0,get:function(){return Is}}),Object.defineProperty(exports,`bs`,{enumerable:!0,get:function(){return xr}}),Object.defineProperty(exports,`bt`,{enumerable:!0,get:function(){return Tu}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return Jd}}),Object.defineProperty(exports,`ca`,{enumerable:!0,get:function(){return Pa}}),Object.defineProperty(exports,`ci`,{enumerable:!0,get:function(){return Ao}}),Object.defineProperty(exports,`cn`,{enumerable:!0,get:function(){return hl}}),Object.defineProperty(exports,`co`,{enumerable:!0,get:function(){return Fi}}),Object.defineProperty(exports,`cr`,{enumerable:!0,get:function(){return ic}}),Object.defineProperty(exports,`cs`,{enumerable:!0,get:function(){return Mr}}),Object.defineProperty(exports,`ct`,{enumerable:!0,get:function(){return zu}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return Zd}}),Object.defineProperty(exports,`da`,{enumerable:!0,get:function(){return Ma}}),Object.defineProperty(exports,`di`,{enumerable:!0,get:function(){return Do}}),Object.defineProperty(exports,`dn`,{enumerable:!0,get:function(){return fl}}),Object.defineProperty(exports,`do`,{enumerable:!0,get:function(){return Ai}}),Object.defineProperty(exports,`dr`,{enumerable:!0,get:function(){return Xs}}),Object.defineProperty(exports,`ds`,{enumerable:!0,get:function(){return Nr}}),Object.defineProperty(exports,`dt`,{enumerable:!0,get:function(){return Pu}}),Object.defineProperty(exports,`ea`,{enumerable:!0,get:function(){return za}}),Object.defineProperty(exports,`ei`,{enumerable:!0,get:function(){return Lo}}),Object.defineProperty(exports,`en`,{enumerable:!0,get:function(){return Ol}}),Object.defineProperty(exports,`eo`,{enumerable:!0,get:function(){return Bi}}),Object.defineProperty(exports,`er`,{enumerable:!0,get:function(){return pc}}),Object.defineProperty(exports,`es`,{enumerable:!0,get:function(){return Ur}}),Object.defineProperty(exports,`et`,{enumerable:!0,get:function(){return Gu}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return Pd}}),Object.defineProperty(exports,`fa`,{enumerable:!0,get:function(){return ka}}),Object.defineProperty(exports,`fi`,{enumerable:!0,get:function(){return Oo}}),Object.defineProperty(exports,`fn`,{enumerable:!0,get:function(){return ml}}),Object.defineProperty(exports,`fo`,{enumerable:!0,get:function(){return Ci}}),Object.defineProperty(exports,`fr`,{enumerable:!0,get:function(){return Ks}}),Object.defineProperty(exports,`fs`,{enumerable:!0,get:function(){return kr}}),Object.defineProperty(exports,`ft`,{enumerable:!0,get:function(){return Nu}}),Object.defineProperty(exports,`g`,{enumerable:!0,get:function(){return Bd}}),Object.defineProperty(exports,`ga`,{enumerable:!0,get:function(){return ma}}),Object.defineProperty(exports,`gi`,{enumerable:!0,get:function(){return wo}}),Object.defineProperty(exports,`gn`,{enumerable:!0,get:function(){return cl}}),Object.defineProperty(exports,`go`,{enumerable:!0,get:function(){return Di}}),Object.defineProperty(exports,`gr`,{enumerable:!0,get:function(){return Hs}}),Object.defineProperty(exports,`gs`,{enumerable:!0,get:function(){return Or}}),Object.defineProperty(exports,`gt`,{enumerable:!0,get:function(){return Eu}}),Object.defineProperty(exports,`h`,{enumerable:!0,get:function(){return Vd}}),Object.defineProperty(exports,`ha`,{enumerable:!0,get:function(){return Da}}),Object.defineProperty(exports,`hi`,{enumerable:!0,get:function(){return To}}),Object.defineProperty(exports,`hn`,{enumerable:!0,get:function(){return ll}}),Object.defineProperty(exports,`ho`,{enumerable:!0,get:function(){return wi}}),Object.defineProperty(exports,`hr`,{enumerable:!0,get:function(){return Js}}),Object.defineProperty(exports,`hs`,{enumerable:!0,get:function(){return Er}}),Object.defineProperty(exports,`ht`,{enumerable:!0,get:function(){return Au}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return $}}),Object.defineProperty(exports,`ia`,{enumerable:!0,get:function(){return La}}),Object.defineProperty(exports,`ii`,{enumerable:!0,get:function(){return No}}),Object.defineProperty(exports,`in`,{enumerable:!0,get:function(){return wl}}),Object.defineProperty(exports,`io`,{enumerable:!0,get:function(){return zi}}),Object.defineProperty(exports,`ir`,{enumerable:!0,get:function(){return cc}}),Object.defineProperty(exports,`is`,{enumerable:!0,get:function(){return Fr}}),Object.defineProperty(exports,`it`,{enumerable:!0,get:function(){return Wu}}),Object.defineProperty(exports,`j`,{enumerable:!0,get:function(){return yd}}),Object.defineProperty(exports,`ja`,{enumerable:!0,get:function(){return ya}}),Object.defineProperty(exports,`ji`,{enumerable:!0,get:function(){return po}}),Object.defineProperty(exports,`jn`,{enumerable:!0,get:function(){return Gc}}),Object.defineProperty(exports,`jo`,{enumerable:!0,get:function(){return li}}),Object.defineProperty(exports,`jr`,{enumerable:!0,get:function(){return xs}}),Object.defineProperty(exports,`js`,{enumerable:!0,get:function(){return W}}),Object.defineProperty(exports,`jt`,{enumerable:!0,get:function(){return uu}}),Object.defineProperty(exports,`k`,{enumerable:!0,get:function(){return xd}}),Object.defineProperty(exports,`ka`,{enumerable:!0,get:function(){return Ea}}),Object.defineProperty(exports,`ki`,{enumerable:!0,get:function(){return fo}}),Object.defineProperty(exports,`kn`,{enumerable:!0,get:function(){return Vc}}),Object.defineProperty(exports,`ko`,{enumerable:!0,get:function(){return pi}}),Object.defineProperty(exports,`kr`,{enumerable:!0,get:function(){return Cs}}),Object.defineProperty(exports,`ks`,{enumerable:!0,get:function(){return _r}}),Object.defineProperty(exports,`kt`,{enumerable:!0,get:function(){return du}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return qd}}),Object.defineProperty(exports,`la`,{enumerable:!0,get:function(){return Aa}}),Object.defineProperty(exports,`li`,{enumerable:!0,get:function(){return J}}),Object.defineProperty(exports,`ln`,{enumerable:!0,get:function(){return yl}}),Object.defineProperty(exports,`lo`,{enumerable:!0,get:function(){return Oi}}),Object.defineProperty(exports,`lr`,{enumerable:!0,get:function(){return ec}}),Object.defineProperty(exports,`ls`,{enumerable:!0,get:function(){return Ar}}),Object.defineProperty(exports,`lt`,{enumerable:!0,get:function(){return Iu}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return 36e5}}),Object.defineProperty(exports,`ma`,{enumerable:!0,get:function(){return ua}}),Object.defineProperty(exports,`mi`,{enumerable:!0,get:function(){return q}}),Object.defineProperty(exports,`mn`,{enumerable:!0,get:function(){return dl}}),Object.defineProperty(exports,`mo`,{enumerable:!0,get:function(){return Ti}}),Object.defineProperty(exports,`mr`,{enumerable:!0,get:function(){return Q}}),Object.defineProperty(exports,`ms`,{enumerable:!0,get:function(){return Tr}}),Object.defineProperty(exports,`mt`,{enumerable:!0,get:function(){return ju}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return tf}}),Object.defineProperty(exports,`na`,{enumerable:!0,get:function(){return Ba}}),Object.defineProperty(exports,`ni`,{enumerable:!0,get:function(){return Io}}),Object.defineProperty(exports,`nn`,{enumerable:!0,get:function(){return Cl}}),Object.defineProperty(exports,`no`,{enumerable:!0,get:function(){return Ri}}),Object.defineProperty(exports,`nr`,{enumerable:!0,get:function(){return uc}}),Object.defineProperty(exports,`ns`,{enumerable:!0,get:function(){return Rr}}),Object.defineProperty(exports,`nt`,{enumerable:!0,get:function(){return Hu}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return Kd}}),Object.defineProperty(exports,`oa`,{enumerable:!0,get:function(){return Ia}}),Object.defineProperty(exports,`oi`,{enumerable:!0,get:function(){return Mo}}),Object.defineProperty(exports,`on`,{enumerable:!0,get:function(){return Sl}}),Object.defineProperty(exports,`oo`,{enumerable:!0,get:function(){return Ii}}),Object.defineProperty(exports,`or`,{enumerable:!0,get:function(){return sc}}),Object.defineProperty(exports,`os`,{enumerable:!0,get:function(){return Lr}}),Object.defineProperty(exports,`ot`,{enumerable:!0,get:function(){return Ru}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return 3e5}}),Object.defineProperty(exports,`pa`,{enumerable:!0,get:function(){return aa}}),Object.defineProperty(exports,`pi`,{enumerable:!0,get:function(){return Eo}}),Object.defineProperty(exports,`pn`,{enumerable:!0,get:function(){return pl}}),Object.defineProperty(exports,`po`,{enumerable:!0,get:function(){return Ei}}),Object.defineProperty(exports,`pr`,{enumerable:!0,get:function(){return Gs}}),Object.defineProperty(exports,`ps`,{enumerable:!0,get:function(){return Dr}}),Object.defineProperty(exports,`pt`,{enumerable:!0,get:function(){return ku}}),Object.defineProperty(exports,`q`,{enumerable:!0,get:function(){return Qu}}),Object.defineProperty(exports,`qa`,{enumerable:!0,get:function(){return qi}}),Object.defineProperty(exports,`qi`,{enumerable:!0,get:function(){return Ka}}),Object.defineProperty(exports,`qn`,{enumerable:!0,get:function(){return wc}}),Object.defineProperty(exports,`qo`,{enumerable:!0,get:function(){return Jr}}),Object.defineProperty(exports,`qr`,{enumerable:!0,get:function(){return Zo}}),Object.defineProperty(exports,`qt`,{enumerable:!0,get:function(){return Bl}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return nf}}),Object.defineProperty(exports,`ra`,{enumerable:!0,get:function(){return Va}}),Object.defineProperty(exports,`ri`,{enumerable:!0,get:function(){return Po}}),Object.defineProperty(exports,`rn`,{enumerable:!0,get:function(){return Tl}}),Object.defineProperty(exports,`ro`,{enumerable:!0,get:function(){return Li}}),Object.defineProperty(exports,`rr`,{enumerable:!0,get:function(){return lc}}),Object.defineProperty(exports,`rs`,{enumerable:!0,get:function(){return zr}}),Object.defineProperty(exports,`rt`,{enumerable:!0,get:function(){return Uu}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return Wd}}),Object.defineProperty(exports,`sa`,{enumerable:!0,get:function(){return Na}}),Object.defineProperty(exports,`si`,{enumerable:!0,get:function(){return jo}}),Object.defineProperty(exports,`sn`,{enumerable:!0,get:function(){return xl}}),Object.defineProperty(exports,`so`,{enumerable:!0,get:function(){return Ni}}),Object.defineProperty(exports,`sr`,{enumerable:!0,get:function(){return rc}}),Object.defineProperty(exports,`ss`,{enumerable:!0,get:function(){return Ir}}),Object.defineProperty(exports,`st`,{enumerable:!0,get:function(){return Bu}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return mf}}),Object.defineProperty(exports,`ta`,{enumerable:!0,get:function(){return Ra}}),Object.defineProperty(exports,`ti`,{enumerable:!0,get:function(){return Fo}}),Object.defineProperty(exports,`tn`,{enumerable:!0,get:function(){return Dl}}),Object.defineProperty(exports,`to`,{enumerable:!0,get:function(){return Vi}}),Object.defineProperty(exports,`tr`,{enumerable:!0,get:function(){return dc}}),Object.defineProperty(exports,`ts`,{enumerable:!0,get:function(){return Br}}),Object.defineProperty(exports,`tt`,{enumerable:!0,get:function(){return Vu}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return Ud}}),Object.defineProperty(exports,`ua`,{enumerable:!0,get:function(){return ja}}),Object.defineProperty(exports,`ui`,{enumerable:!0,get:function(){return ko}}),Object.defineProperty(exports,`un`,{enumerable:!0,get:function(){return gl}}),Object.defineProperty(exports,`uo`,{enumerable:!0,get:function(){return Mi}}),Object.defineProperty(exports,`ur`,{enumerable:!0,get:function(){return Qs}}),Object.defineProperty(exports,`us`,{enumerable:!0,get:function(){return jr}}),Object.defineProperty(exports,`ut`,{enumerable:!0,get:function(){return Fu}}),Object.defineProperty(exports,`v`,{enumerable:!0,get:function(){return zd}}),Object.defineProperty(exports,`va`,{enumerable:!0,get:function(){return oa}}),Object.defineProperty(exports,`vi`,{enumerable:!0,get:function(){return go}}),Object.defineProperty(exports,`vn`,{enumerable:!0,get:function(){return al}}),Object.defineProperty(exports,`vo`,{enumerable:!0,get:function(){return ki}}),Object.defineProperty(exports,`vr`,{enumerable:!0,get:function(){return Us}}),Object.defineProperty(exports,`vs`,{enumerable:!0,get:function(){return br}}),Object.defineProperty(exports,`vt`,{enumerable:!0,get:function(){return Du}}),Object.defineProperty(exports,`w`,{enumerable:!0,get:function(){return Ed}}),Object.defineProperty(exports,`wa`,{enumerable:!0,get:function(){return pa}}),Object.defineProperty(exports,`wi`,{enumerable:!0,get:function(){return yo}}),Object.defineProperty(exports,`wn`,{enumerable:!0,get:function(){return Zc}}),Object.defineProperty(exports,`wo`,{enumerable:!0,get:function(){return yi}}),Object.defineProperty(exports,`wr`,{enumerable:!0,get:function(){return ks}}),Object.defineProperty(exports,`ws`,{enumerable:!0,get:function(){return fr}}),Object.defineProperty(exports,`wt`,{enumerable:!0,get:function(){return vu}}),Object.defineProperty(exports,`x`,{enumerable:!0,get:function(){return kd}}),Object.defineProperty(exports,`xa`,{enumerable:!0,get:function(){return ia}}),Object.defineProperty(exports,`xi`,{enumerable:!0,get:function(){return Co}}),Object.defineProperty(exports,`xn`,{enumerable:!0,get:function(){return tl}}),Object.defineProperty(exports,`xo`,{enumerable:!0,get:function(){return bi}}),Object.defineProperty(exports,`xr`,{enumerable:!0,get:function(){return Ps}}),Object.defineProperty(exports,`xs`,{enumerable:!0,get:function(){return Cr}}),Object.defineProperty(exports,`xt`,{enumerable:!0,get:function(){return wu}}),Object.defineProperty(exports,`y`,{enumerable:!0,get:function(){return Rd}}),Object.defineProperty(exports,`ya`,{enumerable:!0,get:function(){return la}}),Object.defineProperty(exports,`yi`,{enumerable:!0,get:function(){return bo}}),Object.defineProperty(exports,`yn`,{enumerable:!0,get:function(){return ol}}),Object.defineProperty(exports,`yo`,{enumerable:!0,get:function(){return Si}}),Object.defineProperty(exports,`yr`,{enumerable:!0,get:function(){return Rs}}),Object.defineProperty(exports,`ys`,{enumerable:!0,get:function(){return Sr}}),Object.defineProperty(exports,`yt`,{enumerable:!0,get:function(){return Cu}}),Object.defineProperty(exports,`z`,{enumerable:!0,get:function(){return ld}}),Object.defineProperty(exports,`za`,{enumerable:!0,get:function(){return ea}}),Object.defineProperty(exports,`zi`,{enumerable:!0,get:function(){return ro}}),Object.defineProperty(exports,`zn`,{enumerable:!0,get:function(){return Mc}}),Object.defineProperty(exports,`zo`,{enumerable:!0,get:function(){return ei}}),Object.defineProperty(exports,`zr`,{enumerable:!0,get:function(){return X}}),Object.defineProperty(exports,`zs`,{enumerable:!0,get:function(){return ze}}),Object.defineProperty(exports,`zt`,{enumerable:!0,get:function(){return $l}});
3009
- //# sourceMappingURL=syncConfigurationToTranscend-DkeLrq-I.cjs.map