@transcend-io/cli 8.38.2 → 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-BO1fP5DL.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-CA7X_TDD.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-DZMWJNLE.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-BN8N7BHo.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} +1704 -3463
  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-DMPYZTne.cjs +0 -2
  144. package/dist/api-keys-DMPYZTne.cjs.map +0 -1
  145. package/dist/app-bPlpZQj_.cjs +0 -131
  146. package/dist/app-bPlpZQj_.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-D6YstOWo.cjs +0 -4
  157. package/dist/code-scanning-D6YstOWo.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-C39HGpGR.cjs +0 -9
  161. package/dist/command-C39HGpGR.cjs.map +0 -1
  162. package/dist/consent-manager-C3UVAKd_.cjs +0 -12
  163. package/dist/consent-manager-C3UVAKd_.cjs.map +0 -1
  164. package/dist/constants-gJm1eQH0.cjs +0 -2
  165. package/dist/constants-gJm1eQH0.cjs.map +0 -1
  166. package/dist/context-_8xfl0dt.cjs +0 -2
  167. package/dist/cron-NLlyCiml.cjs +0 -2
  168. package/dist/cron-NLlyCiml.cjs.map +0 -1
  169. package/dist/data-inventory-a9Nz9lUO.cjs +0 -75
  170. package/dist/data-inventory-a9Nz9lUO.cjs.map +0 -1
  171. package/dist/dataFlowsToDataSilos-BJh0hzJI.cjs +0 -2
  172. package/dist/dataFlowsToDataSilos-BJh0hzJI.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--RUTvJko.cjs +0 -2
  176. package/dist/impl--RUTvJko.cjs.map +0 -1
  177. package/dist/impl-6vrF2_M3.cjs +0 -2
  178. package/dist/impl-6vrF2_M3.cjs.map +0 -1
  179. package/dist/impl-73q3K0b_.cjs +0 -2
  180. package/dist/impl-73q3K0b_.cjs.map +0 -1
  181. package/dist/impl-BAZ34gSp.cjs +0 -2
  182. package/dist/impl-BAZ34gSp.cjs.map +0 -1
  183. package/dist/impl-BAs-7neS.cjs +0 -12
  184. package/dist/impl-BAs-7neS.cjs.map +0 -1
  185. package/dist/impl-BF44h4oH.cjs +0 -2
  186. package/dist/impl-BF44h4oH.cjs.map +0 -1
  187. package/dist/impl-BKXkRTVx.cjs +0 -2
  188. package/dist/impl-BKXkRTVx.cjs.map +0 -1
  189. package/dist/impl-BN8N7BHo.cjs +0 -2
  190. package/dist/impl-BO1fP5DL.cjs +0 -2
  191. package/dist/impl-BRAiiMt3.cjs +0 -2
  192. package/dist/impl-BRAiiMt3.cjs.map +0 -1
  193. package/dist/impl-BRNha4nQ.cjs +0 -2
  194. package/dist/impl-BRNha4nQ.cjs.map +0 -1
  195. package/dist/impl-Ba1d91O1.cjs +0 -2
  196. package/dist/impl-Ba1d91O1.cjs.map +0 -1
  197. package/dist/impl-Bgp_TuxN.cjs +0 -2
  198. package/dist/impl-Bgp_TuxN.cjs.map +0 -1
  199. package/dist/impl-BreaZGaV.cjs +0 -2
  200. package/dist/impl-BreaZGaV.cjs.map +0 -1
  201. package/dist/impl-BzAwMfNS.cjs +0 -2
  202. package/dist/impl-BzAwMfNS.cjs.map +0 -1
  203. package/dist/impl-C0eKnbO8.cjs +0 -4
  204. package/dist/impl-C0eKnbO8.cjs.map +0 -1
  205. package/dist/impl-C2kTLgRr.cjs +0 -2
  206. package/dist/impl-C2kTLgRr.cjs.map +0 -1
  207. package/dist/impl-CA7X_TDD.cjs +0 -2
  208. package/dist/impl-CC0T0jNd.cjs +0 -2
  209. package/dist/impl-CC0T0jNd.cjs.map +0 -1
  210. package/dist/impl-CJT35FpG.cjs +0 -2
  211. package/dist/impl-CJT35FpG.cjs.map +0 -1
  212. package/dist/impl-CTXPMoXc.cjs +0 -3
  213. package/dist/impl-CTXPMoXc.cjs.map +0 -1
  214. package/dist/impl-CUScCLAS.cjs +0 -2
  215. package/dist/impl-CUScCLAS.cjs.map +0 -1
  216. package/dist/impl-CYmPZogW.cjs +0 -2
  217. package/dist/impl-CYmPZogW.cjs.map +0 -1
  218. package/dist/impl-Ccd0FaOU.cjs +0 -2
  219. package/dist/impl-Ccd0FaOU.cjs.map +0 -1
  220. package/dist/impl-CmKWcYiV.cjs +0 -2
  221. package/dist/impl-CmKWcYiV.cjs.map +0 -1
  222. package/dist/impl-CqshC7my.cjs +0 -2
  223. package/dist/impl-CqshC7my.cjs.map +0 -1
  224. package/dist/impl-Cru4riTc.cjs +0 -5
  225. package/dist/impl-Cru4riTc.cjs.map +0 -1
  226. package/dist/impl-Cypfgm4t.cjs +0 -2
  227. package/dist/impl-Cypfgm4t.cjs.map +0 -1
  228. package/dist/impl-D2SWeIGe.cjs +0 -2
  229. package/dist/impl-D2SWeIGe.cjs.map +0 -1
  230. package/dist/impl-DLwIQVA6.cjs +0 -2
  231. package/dist/impl-DLwIQVA6.cjs.map +0 -1
  232. package/dist/impl-DMm4lt-A.cjs +0 -2
  233. package/dist/impl-DMm4lt-A.cjs.map +0 -1
  234. package/dist/impl-DRsuGuRx.cjs +0 -2
  235. package/dist/impl-DRsuGuRx.cjs.map +0 -1
  236. package/dist/impl-DSrvfkVp.cjs +0 -2
  237. package/dist/impl-DSrvfkVp.cjs.map +0 -1
  238. package/dist/impl-DZMWJNLE.cjs +0 -2
  239. package/dist/impl-DbqAvW7X.cjs +0 -2
  240. package/dist/impl-DbqAvW7X.cjs.map +0 -1
  241. package/dist/impl-Dl78xJu6.cjs +0 -2
  242. package/dist/impl-Dl78xJu6.cjs.map +0 -1
  243. package/dist/impl-Dvpc-Qa5.cjs +0 -2
  244. package/dist/impl-Dvpc-Qa5.cjs.map +0 -1
  245. package/dist/impl-DySeNL1m.cjs +0 -2
  246. package/dist/impl-DySeNL1m.cjs.map +0 -1
  247. package/dist/impl-Fj-Esff-.cjs +0 -2
  248. package/dist/impl-Fj-Esff-.cjs.map +0 -1
  249. package/dist/impl-W6tVmm8N.cjs +0 -2
  250. package/dist/impl-W6tVmm8N.cjs.map +0 -1
  251. package/dist/impl-WphnR0cX.cjs +0 -2
  252. package/dist/impl-WphnR0cX.cjs.map +0 -1
  253. package/dist/impl-YNAicr-z.cjs +0 -2
  254. package/dist/impl-YNAicr-z.cjs.map +0 -1
  255. package/dist/impl-jEpWgC2N.cjs +0 -2
  256. package/dist/impl-jEpWgC2N.cjs.map +0 -1
  257. package/dist/impl-x2P-_Pk2.cjs +0 -4
  258. package/dist/impl-x2P-_Pk2.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-DTVJo7hP.cjs +0 -2
  264. package/dist/manual-enrichment-DTVJo7hP.cjs.map +0 -1
  265. package/dist/mergeTranscendInputs-BIBCYbug.cjs +0 -2
  266. package/dist/pooling-C-TYBnHI.cjs +0 -23
  267. package/dist/pooling-C-TYBnHI.cjs.map +0 -1
  268. package/dist/preference-management-Ch77Yxod.cjs +0 -7
  269. package/dist/preference-management-Ch77Yxod.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-s-cjtUI3.cjs +0 -3010
  273. package/dist/syncConfigurationToTranscend-s-cjtUI3.cjs.map +0 -1
  274. package/dist/uploadConsents-CDkk_sWY.cjs +0 -2
  275. package/dist/uploadConsents-CDkk_sWY.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,3010 +0,0 @@
1
- const e=require(`./chunk-Bmb41Sf3.cjs`),t=require(`./constants-gJm1eQH0.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
- successfullyCompletedAt
955
- type
956
- subjectType
957
- country
958
- countrySubDivision
959
- purpose {
960
- title
961
- name
962
- consent
963
- enrichedPreferences {
964
- topic
965
- selectValues {
966
- id
967
- name
968
- preferenceOption {
969
- id
970
- slug
971
- title {
972
- defaultMessage
973
- }
974
- }
975
- }
976
- selectValue {
977
- id
978
- name
979
- }
980
- selectValue {
981
- id
982
- name
983
- }
984
- preferenceTopic {
985
- title {
986
- defaultMessage
987
- }
988
- id
989
- slug
990
- }
991
- name
992
- id
993
- booleanValue
994
- }
995
- }
996
- attributeValues {
997
- id
998
- name
999
- attributeKey {
1000
- id
1001
- name
1002
- }
1003
- }
1004
- }
1005
- pageInfo {
1006
- endCursor
1007
- hasNextPage
1008
- }
1009
- }
1010
- }
1011
- `,ci=p.gql`
1012
- mutation TranscendCliApprovePrivacyRequest($input: CommunicationInput!) {
1013
- approveRequest(input: $input) {
1014
- request {
1015
- id
1016
- }
1017
- }
1018
- }
1019
- `,li=p.gql`
1020
- mutation TranscendCliCancelPrivacyRequest($input: CommunicationInput!) {
1021
- cancelRequest(input: $input) {
1022
- request {
1023
- id
1024
- }
1025
- }
1026
- }
1027
- `,ui=p.gql`
1028
- mutation TranscendCliUpdatePrivacyRequest($input: UpdateRequestInput!) {
1029
- updateRequest(input: $input) {
1030
- request {
1031
- id
1032
- }
1033
- }
1034
- }
1035
- `,di=p.gql`
1036
- mutation TranscendCliNotifyAdditionalTime($input: AdditionalTimeInput!) {
1037
- notifyAdditionalTime(input: $input) {
1038
- clientMutationId
1039
- }
1040
- }
1041
- `,fi=p.gql`
1042
- query TranscendCliFetchMessage {
1043
- translatedMessages {
1044
- id
1045
- defaultMessage
1046
- description
1047
- targetReactIntlId
1048
- translations {
1049
- locale
1050
- value
1051
- }
1052
- }
1053
- }
1054
- `,pi=p.gql`
1055
- mutation TranscendCliUpdateIntlMessages($messages: [MessageInput!]!) {
1056
- updateIntlMessages(input: { messages: $messages, skipPublish: true }) {
1057
- clientMutationId
1058
- }
1059
- }
1060
- `,mi=p.gql`
1061
- query TranscendCliRequestEnrichers(
1062
- $first: Int!
1063
- $offset: Int!
1064
- $requestId: ID!
1065
- ) {
1066
- requestEnrichers(
1067
- input: { requestId: $requestId }
1068
- first: $first
1069
- offset: $offset
1070
- useMaster: false
1071
- orderBy: [
1072
- { field: createdAt, direction: ASC }
1073
- { field: title, direction: ASC, model: enricher }
1074
- ]
1075
- ) {
1076
- nodes {
1077
- id
1078
- status
1079
- enricher {
1080
- id
1081
- type
1082
- title
1083
- }
1084
- }
1085
- totalCount
1086
- }
1087
- }
1088
- `,hi=p.gql`
1089
- mutation TranscendCliRetryRequestEnricher($requestEnricherId: ID!) {
1090
- retryRequestEnricher(id: $requestEnricherId) {
1091
- requestEnricher {
1092
- id
1093
- }
1094
- }
1095
- }
1096
- `,gi=p.gql`
1097
- mutation TranscendCliSkipRequestEnricher($requestEnricherId: ID!) {
1098
- skipRequestEnricher(id: $requestEnricherId) {
1099
- requestEnricher {
1100
- id
1101
- }
1102
- }
1103
- }
1104
- `,_i=`
1105
- id
1106
- title
1107
- status
1108
- index
1109
- questions {
1110
- id
1111
- title
1112
- index
1113
- type
1114
- subType
1115
- placeholder
1116
- description
1117
- isRequired
1118
- displayLogic
1119
- riskLogic
1120
- requireRiskEvaluation
1121
- requireRiskMatrixEvaluation
1122
- riskCategories {
1123
- id
1124
- title
1125
- }
1126
- riskFramework {
1127
- id
1128
- title
1129
- description
1130
- riskLevels {
1131
- id
1132
- title
1133
- }
1134
- riskCategories {
1135
- id
1136
- title
1137
- }
1138
- riskMatrixColumns {
1139
- id
1140
- title
1141
- }
1142
- riskMatrixRows {
1143
- id
1144
- title
1145
- }
1146
- riskMatrix {
1147
- id
1148
- title
1149
- }
1150
- creator {
1151
- id
1152
- email
1153
- name
1154
- }
1155
- riskMatrixRowTitle
1156
- riskMatrixColumnTitle
1157
- }
1158
- riskLevel {
1159
- id
1160
- title
1161
- }
1162
- reviewerRiskLevel {
1163
- id
1164
- title
1165
- }
1166
- riskLevelFromRiskMatrix {
1167
- id
1168
- title
1169
- }
1170
- answerOptions {
1171
- id
1172
- index
1173
- value
1174
- }
1175
- selectedAnswers {
1176
- ... on AssessmentAnswerInterface {
1177
- id
1178
- index
1179
- value
1180
- }
1181
- }
1182
- respondent {
1183
- id
1184
- email
1185
- name
1186
- }
1187
- attributeKey {
1188
- name
1189
- }
1190
- externalRespondentEmail
1191
- comments {
1192
- id
1193
- content
1194
- createdAt
1195
- updatedAt
1196
- author {
1197
- id
1198
- email
1199
- name
1200
- }
1201
- }
1202
- allowedMimeTypes
1203
- updatedAt
1204
- referenceId
1205
- previousSubmissions {
1206
- id
1207
- updatedAt
1208
- assessmentQuestionId
1209
- answers {
1210
- ... on AssessmentAnswerInterface {
1211
- id
1212
- index
1213
- value
1214
- }
1215
- }
1216
- }
1217
- allowSelectOther
1218
- syncModel
1219
- syncColumn
1220
- syncRowIds
1221
- syncOverride
1222
- }
1223
- assignees {
1224
- id
1225
- email
1226
- name
1227
- }
1228
- externalAssignees {
1229
- id
1230
- email
1231
- }
1232
- isReviewed
1233
- `,vi=p.gql`
1234
- query TranscendCliAssessments(
1235
- $first: Int!
1236
- $offset: Int!
1237
- $filterBy: AssessmentFormFiltersInput
1238
- ) {
1239
- assessmentForms(first: $first, offset: $offset, filterBy: $filterBy) {
1240
- nodes {
1241
- id
1242
- creator {
1243
- id
1244
- email
1245
- name
1246
- }
1247
- lastEditor {
1248
- id
1249
- email
1250
- name
1251
- }
1252
- title
1253
- description
1254
- status
1255
- assignees {
1256
- id
1257
- email
1258
- name
1259
- }
1260
- externalAssignees {
1261
- id
1262
- email
1263
- }
1264
- reviewers {
1265
- id
1266
- email
1267
- name
1268
- }
1269
- isLocked
1270
- isArchived
1271
- isExternallyCreated
1272
- dueDate
1273
- createdAt
1274
- updatedAt
1275
- assignedAt
1276
- submittedAt
1277
- approvedAt
1278
- rejectedAt
1279
- titleIsInternal
1280
- retentionSchedule {
1281
- id
1282
- type
1283
- durationDays
1284
- operation
1285
- }
1286
- attributeValues {
1287
- name
1288
- attributeKey {
1289
- name
1290
- }
1291
- }
1292
- sections {
1293
- ${_i}
1294
- }
1295
- assessmentGroup {
1296
- id
1297
- title
1298
- description
1299
- }
1300
- resources {
1301
- resourceType
1302
- ... on AttributeBusinessEntityResource {
1303
- id
1304
- title
1305
- }
1306
- ... on AttributeDataSiloResource {
1307
- id
1308
- title
1309
- }
1310
- ... on AttributeDataSubCategoryResource {
1311
- id
1312
- name
1313
- category
1314
- }
1315
- ... on AttributeSubDataPointResource {
1316
- id
1317
- name
1318
- }
1319
- ... on AttributeProcessingPurposeSubCategoryResource {
1320
- id
1321
- name
1322
- purpose
1323
- }
1324
- ... on AttributeRequestResource {
1325
- id
1326
- type
1327
- }
1328
- ... on AttributeVendorResource {
1329
- id
1330
- title
1331
- }
1332
- ... on AttributePromptResource {
1333
- id
1334
- title
1335
- }
1336
- ... on AttributePromptRunResource {
1337
- id
1338
- title
1339
- }
1340
- ... on AttributePromptGroupResource {
1341
- id
1342
- title
1343
- }
1344
- }
1345
- syncedRows {
1346
- resourceType
1347
- ... on AttributeBusinessEntityResource {
1348
- id
1349
- title
1350
- }
1351
- ... on AttributeDataSiloResource {
1352
- id
1353
- title
1354
- }
1355
- ... on AttributeDataSubCategoryResource {
1356
- id
1357
- name
1358
- category
1359
- }
1360
- ... on AttributeSubDataPointResource {
1361
- id
1362
- name
1363
- }
1364
- ... on AttributeProcessingPurposeSubCategoryResource {
1365
- id
1366
- name
1367
- purpose
1368
- }
1369
- ... on AttributeVendorResource {
1370
- id
1371
- title
1372
- }
1373
- }
1374
- }
1375
- }
1376
- }
1377
- `,yi=p.gql`
1378
- mutation TranscendCliImportOneTrustAssessmentForms(
1379
- $input: ImportOnetrustAssessmentsInput!
1380
- ) {
1381
- importOneTrustAssessmentForms(input: $input) {
1382
- assessmentForms {
1383
- id
1384
- title
1385
- }
1386
- }
1387
- }
1388
- `,bi=p.gql`
1389
- query TranscendCliPurposes(
1390
- $first: Int!
1391
- $offset: Int!
1392
- $filterBy: TrackingPurposeFiltersInput
1393
- $input: TrackingPurposeInput!
1394
- ) {
1395
- purposes(
1396
- first: $first
1397
- offset: $offset
1398
- filterBy: $filterBy
1399
- input: $input
1400
- ) {
1401
- nodes {
1402
- id
1403
- name
1404
- description
1405
- defaultConsent
1406
- trackingType
1407
- configurable
1408
- essential
1409
- showInConsentManager
1410
- isActive
1411
- displayOrder
1412
- optOutSignals
1413
- deletedAt
1414
- authLevel
1415
- showInPrivacyCenter
1416
- title
1417
- }
1418
- }
1419
- }
1420
- `,xi=p.gql`
1421
- query TranscendCliPreferenceTopics(
1422
- $first: Int!
1423
- $offset: Int!
1424
- $filterBy: PreferenceTopicFilterInput
1425
- ) {
1426
- preferenceTopics(first: $first, offset: $offset, filterBy: $filterBy) {
1427
- nodes {
1428
- id
1429
- slug
1430
- type
1431
- title {
1432
- id
1433
- defaultMessage
1434
- }
1435
- showInPrivacyCenter
1436
- displayDescription {
1437
- id
1438
- defaultMessage
1439
- }
1440
- defaultConfiguration
1441
- preferenceOptionValues {
1442
- slug
1443
- title {
1444
- id
1445
- defaultMessage
1446
- }
1447
- }
1448
- purpose {
1449
- trackingType
1450
- }
1451
- }
1452
- }
1453
- }
1454
- `,Si=p.gql`
1455
- query TranscendCliAssessmentTemplates(
1456
- $first: Int!
1457
- $offset: Int!
1458
- $filterBy: AssessmentFormTemplateFiltersInput
1459
- ) {
1460
- assessmentFormTemplates(
1461
- first: $first
1462
- offset: $offset
1463
- filterBy: $filterBy
1464
- ) {
1465
- nodes {
1466
- id
1467
- creator {
1468
- id
1469
- email
1470
- name
1471
- }
1472
- lastEditor {
1473
- id
1474
- email
1475
- name
1476
- }
1477
- title
1478
- description
1479
- status
1480
- source
1481
- parentId
1482
- isLocked
1483
- isArchived
1484
- createdAt
1485
- updatedAt
1486
- retentionSchedule {
1487
- id
1488
- type
1489
- durationDays
1490
- operation
1491
- createdAt
1492
- updatedAt
1493
- }
1494
- assessmentEmailSet {
1495
- id
1496
- title
1497
- description
1498
- isDefault
1499
- templates {
1500
- id
1501
- title
1502
- }
1503
- }
1504
- sections {
1505
- ${_i}
1506
- }
1507
- }
1508
- }
1509
- }
1510
- `,Ci=p.gql`
1511
- query TranscendCliPrompts(
1512
- $first: Int!
1513
- $offset: Int!
1514
- $filterBy: PromptFiltersInput
1515
- ) {
1516
- prompts(
1517
- first: $first
1518
- orderBy: [{ field: title, direction: ASC }]
1519
- offset: $offset
1520
- filterBy: $filterBy
1521
- ) {
1522
- nodes {
1523
- id
1524
- title
1525
- status
1526
- content
1527
- temperature
1528
- topP
1529
- maxTokensToSample
1530
- }
1531
- }
1532
- }
1533
- `,wi=p.gql`
1534
- query TranscendCliPromptPartials($first: Int!, $offset: Int!) {
1535
- promptPartials(first: $first, offset: $offset) {
1536
- nodes {
1537
- id
1538
- title
1539
- content
1540
- }
1541
- }
1542
- }
1543
- `,Ti=p.gql`
1544
- query TranscendCliPromptGroups($first: Int!, $offset: Int!) {
1545
- promptGroups(
1546
- first: $first
1547
-
1548
- offset: $offset
1549
- ) {
1550
- nodes {
1551
- id
1552
- title
1553
- description
1554
- prompts {
1555
- title
1556
- }
1557
- }
1558
- }
1559
- }
1560
- `,Ei=p.gql`
1561
- query TranscendCliPromptsWithVariables($input: PromptsWithVariablesInput!) {
1562
- promptsWithVariables(input: $input) {
1563
- prompts {
1564
- id
1565
- title
1566
- content
1567
- status
1568
- temperature
1569
- topP
1570
- maxTokensToSample
1571
- responseFormat
1572
- }
1573
- promptPartials {
1574
- id
1575
- title
1576
- content
1577
- slug
1578
- }
1579
- calculatedVariables {
1580
- data
1581
- name
1582
- }
1583
- runtimeVariables {
1584
- name
1585
- }
1586
- }
1587
- }
1588
- `,Di=p.gql`
1589
- mutation TranscendCliUpdatePrompts($input: UpdatePromptsInput!) {
1590
- updatePrompts(input: $input) {
1591
- clientMutationId
1592
- }
1593
- }
1594
- `,Oi=p.gql`
1595
- mutation TranscendCliCreatePrompt($input: CreatePromptInput!) {
1596
- createPrompt(input: $input) {
1597
- clientMutationId
1598
- prompt {
1599
- id
1600
- }
1601
- }
1602
- }
1603
- `,ki=p.gql`
1604
- mutation TranscendCliUpdatePromptPartials(
1605
- $input: UpdatePromptPartialsInput!
1606
- ) {
1607
- updatePromptPartials(input: $input) {
1608
- clientMutationId
1609
- }
1610
- }
1611
- `,Ai=p.gql`
1612
- mutation TranscendCliCreatePromptPartial($input: CreatePromptPartialInput!) {
1613
- createPromptPartial(input: $input) {
1614
- clientMutationId
1615
- promptPartial {
1616
- id
1617
- }
1618
- }
1619
- }
1620
- `,ji=p.gql`
1621
- mutation TranscendCliUpdatePromptGroups($input: UpdatePromptGroupsInput!) {
1622
- updatePromptGroups(input: $input) {
1623
- clientMutationId
1624
- }
1625
- }
1626
- `,Mi=p.gql`
1627
- mutation TranscendCliCreatePromptPartial($input: CreatePromptGroupInput!) {
1628
- createPromptGroup(input: $input) {
1629
- clientMutationId
1630
- promptGroup {
1631
- id
1632
- }
1633
- }
1634
- }
1635
- `,Ni=p.gql`
1636
- query TranscendCliRequestDataSilos(
1637
- $first: Int!
1638
- $offset: Int!
1639
- $filterBy: RequestDataSiloFiltersInput!
1640
- ) {
1641
- requestDataSilos(
1642
- filterBy: $filterBy
1643
- first: $first
1644
- offset: $offset
1645
- useMaster: false
1646
- orderBy: [
1647
- { field: createdAt, direction: DESC }
1648
- { field: title, direction: ASC, model: dataSilo }
1649
- ]
1650
- ) {
1651
- nodes {
1652
- id
1653
- }
1654
- totalCount
1655
- }
1656
- }
1657
- `,Pi=p.gql`
1658
- mutation TranscendCliMarkRequestDataSiloCompleted(
1659
- $requestDataSiloId: ID!
1660
- $status: UpdateRequestDataSiloStatus!
1661
- ) {
1662
- changeRequestDataSiloStatus(
1663
- input: { id: $requestDataSiloId, status: $status }
1664
- ) {
1665
- requestDataSilo {
1666
- id
1667
- }
1668
- }
1669
- }
1670
- `,Fi=p.gql`
1671
- mutation TranscendCliRetryRequestDataSilo($requestDataSiloId: ID!) {
1672
- retryRequestDataSilo(id: $requestDataSiloId) {
1673
- requestDataSilo {
1674
- id
1675
- }
1676
- }
1677
- }
1678
- `,Ii=p.gql`
1679
- query TranscendCliListReducedRequestsForDataSiloCount(
1680
- $input: BulkCompletionReducedRequestInput!
1681
- ) {
1682
- listReducedRequestsForDataSilo(input: $input) {
1683
- totalCount
1684
- }
1685
- }
1686
- `,Li=p.gql`
1687
- query TranscendCliTeams(
1688
- $first: Int!
1689
- $offset: Int!
1690
- $input: TeamFiltersInput
1691
- ) {
1692
- teams(
1693
- first: $first
1694
- offset: $offset
1695
- filterBy: $input
1696
- orderBy: [
1697
- { field: createdAt, direction: ASC }
1698
- { field: name, direction: ASC }
1699
- ]
1700
- ) {
1701
- nodes {
1702
- id
1703
- name
1704
- description
1705
- ssoDepartment
1706
- ssoGroup
1707
- ssoTitle
1708
- users {
1709
- id
1710
- email
1711
- name
1712
- }
1713
- scopes {
1714
- id
1715
- name
1716
- title
1717
- }
1718
- }
1719
- }
1720
- }
1721
- `,Ri=p.gql`
1722
- mutation TranscendCliCreateTeam($input: TeamInput!) {
1723
- createTeam(input: $input) {
1724
- team {
1725
- id
1726
- name
1727
- }
1728
- }
1729
- }
1730
- `,zi=p.gql`
1731
- mutation TranscendCliUpdateTeam($input: UpdateTeamInput!) {
1732
- updateTeam(input: $input) {
1733
- team {
1734
- id
1735
- name
1736
- }
1737
- }
1738
- }
1739
- `,Bi=p.gql`
1740
- mutation TranscendCliRemoveRequestIdentifiers(
1741
- $input: RemoveRequestIdentifiersInput!
1742
- ) {
1743
- removeRequestIdentifiers(input: $input) {
1744
- count
1745
- }
1746
- }
1747
- `,Vi=p.gql`
1748
- query TranscendCliRequestIdentifiers(
1749
- $first: Int!
1750
- $offset: Int!
1751
- $requestIds: [ID!]
1752
- $updatedAtBefore: Date
1753
- $updatedAtAfter: Date
1754
- ) {
1755
- requestIdentifiers(
1756
- input: {
1757
- requestIds: $requestIds
1758
- updatedAtBefore: $updatedAtBefore
1759
- updatedAtAfter: $updatedAtAfter
1760
- }
1761
- first: $first
1762
- offset: $offset
1763
- useMaster: false
1764
- orderBy: [
1765
- { field: createdAt, direction: ASC }
1766
- { field: name, direction: ASC }
1767
- ]
1768
- ) {
1769
- nodes {
1770
- id
1771
- name
1772
- isVerifiedAtLeastOnce
1773
- }
1774
- totalCount
1775
- }
1776
- }
1777
- `,Hi=p.gql`
1778
- query TranscendCliUsers(
1779
- $first: Int!
1780
- $offset: Int!
1781
- $input: UserFiltersInput
1782
- ) {
1783
- users(
1784
- first: $first
1785
- offset: $offset
1786
- filterBy: $input
1787
- orderBy: [
1788
- { field: createdAt, direction: ASC }
1789
- { field: name, direction: ASC }
1790
- ]
1791
- ) {
1792
- nodes {
1793
- id
1794
- name
1795
- email
1796
- }
1797
- }
1798
- }
1799
- `,Ui=p.gql`
1800
- query TranscendCliRequestFiles(
1801
- $first: Int!
1802
- $offset: Int!
1803
- $filterBy: RequestFileFiltersInput!
1804
- ) {
1805
- requestFiles(
1806
- filterBy: $filterBy
1807
- first: $first
1808
- offset: $offset
1809
- orderBy: [
1810
- { field: createdAt, direction: ASC }
1811
- { field: id, direction: ASC }
1812
- ]
1813
- ) {
1814
- nodes {
1815
- remoteId
1816
- fileName
1817
- }
1818
- }
1819
- }
1820
- `,Wi=p.gql`
1821
- query TranscendCliBulkRequestFiles(
1822
- $filterBy: BulkRequestFilesFiltersInput!
1823
- $first: Int!
1824
- $after: String
1825
- ) {
1826
- bulkRequestFiles(filterBy: $filterBy, first: $first, after: $after) {
1827
- nodes {
1828
- remoteId
1829
- fileName
1830
- }
1831
- pageInfo {
1832
- hasNextPage
1833
- endCursor
1834
- }
1835
- }
1836
- }
1837
- `,Gi=p.gql`
1838
- mutation TranscendCliReportPromptRun($input: ReportPromptRunInput!) {
1839
- reportPromptRun(input: $input) {
1840
- clientMutationId
1841
- promptRun {
1842
- id
1843
- }
1844
- }
1845
- }
1846
- `,Ki=p.gql`
1847
- mutation TranscendCliAddMessagesToPromptRun(
1848
- $input: AddMessagesToPromptRunInput!
1849
- ) {
1850
- addMessagesToPromptRun(input: $input) {
1851
- clientMutationId
1852
- promptRun {
1853
- id
1854
- }
1855
- }
1856
- }
1857
- `,qi=p.gql`
1858
- query TranscendCliGlobalActionItemCollectionss(
1859
- $filterBy: GlobalActionItemCollectionFiltersInput!
1860
- ) {
1861
- globalActionItemCollections(filterBy: $filterBy) {
1862
- nodes {
1863
- id
1864
- title
1865
- description
1866
- hidden
1867
- productLine
1868
- }
1869
- }
1870
- }
1871
- `,Ji=p.gql`
1872
- mutation TranscendCliCreateActionItemCollection(
1873
- $input: CreateActionItemCollectionInput!
1874
- ) {
1875
- createActionItemCollection(input: $input) {
1876
- created {
1877
- id
1878
- title
1879
- }
1880
- }
1881
- }
1882
- `,Yi=p.gql`
1883
- mutation TranscendCliUpdateActionItemCollection(
1884
- $input: UpdateActionItemCollectionInput!
1885
- ) {
1886
- updateActionItemCollection(input: $input) {
1887
- clientMutationId
1888
- }
1889
- }
1890
- `,Xi=p.gql`
1891
- query TranscendCliAttributes($first: Int!, $offset: Int!) {
1892
- attributeKeys(first: $first, offset: $offset, useMaster: false) {
1893
- nodes {
1894
- id
1895
- isCustom
1896
- description
1897
- enabledOn
1898
- name
1899
- type
1900
- }
1901
- }
1902
- }
1903
- `,Zi=p.gql`
1904
- mutation TranscendCliCreateAttributeValues(
1905
- $input: [CreateAttributeValuesInput!]!
1906
- ) {
1907
- createAttributeValues(input: $input) {
1908
- clientMutationId
1909
- }
1910
- }
1911
- `,Qi=p.gql`
1912
- mutation TranscendCliUpdateAttributeValues(
1913
- $input: [UpdateAttributeValueInput!]!
1914
- ) {
1915
- updateAttributeValues(input: $input) {
1916
- clientMutationId
1917
- }
1918
- }
1919
- `,$i=p.gql`
1920
- mutation TranscendCliDeleteAttributeValue($id: ID!) {
1921
- deleteAttributeValue(id: $id) {
1922
- clientMutationId
1923
- }
1924
- }
1925
- `,ea=p.gql`
1926
- query TranscendCliAttributeValues(
1927
- $first: Int!
1928
- $offset: Int!
1929
- $attributeKeyId: ID!
1930
- ) {
1931
- attributeValues(
1932
- first: $first
1933
- offset: $offset
1934
- useMaster: false
1935
- filterBy: { attributeKeys: [$attributeKeyId] }
1936
- ) {
1937
- nodes {
1938
- id
1939
- name
1940
- description
1941
- color
1942
- }
1943
- }
1944
- }
1945
- `,ta=p.gql`
1946
- mutation TranscendCliCreateAttribute(
1947
- $name: String!
1948
- $type: AttributeKeyType!
1949
- $description: String
1950
- $enabledOn: [AttributeSupportedResourceType!]
1951
- ) {
1952
- createAttributeKey(
1953
- input: {
1954
- name: $name
1955
- type: $type
1956
- description: $description
1957
- enabledOn: $enabledOn
1958
- }
1959
- ) {
1960
- clientMutationId
1961
- attributeKey {
1962
- id
1963
- }
1964
- }
1965
- }
1966
- `,na=p.gql`
1967
- mutation TranscendCliCreateAttribute(
1968
- $attributeKeyId: ID!
1969
- $description: String
1970
- $enabledOn: [AttributeSupportedResourceType!]
1971
- ) {
1972
- updateAttributeKey(
1973
- input: {
1974
- id: $attributeKeyId
1975
- description: $description
1976
- enabledOn: $enabledOn
1977
- }
1978
- ) {
1979
- clientMutationId
1980
- attributeKey {
1981
- id
1982
- }
1983
- }
1984
- }
1985
- `,ra=p.gql`
1986
- mutation TranscendCliSetResourceAttributes(
1987
- $input: SetResourceAttributesInput!
1988
- ) {
1989
- setResourceAttributes(input: $input) {
1990
- clientMutationId
1991
- }
1992
- }
1993
- `,ia=p.gql`
1994
- query TranscendCliExperiences($first: Int!, $offset: Int!) {
1995
- experiences(first: $first, offset: $offset, useMaster: false) {
1996
- nodes {
1997
- id
1998
- name
1999
- displayName
2000
- regions {
2001
- countrySubDivision
2002
- country
2003
- }
2004
- operator
2005
- displayPriority
2006
- onConsentExpiry
2007
- consentExpiry
2008
- viewState
2009
- purposes {
2010
- name
2011
- trackingType
2012
- }
2013
- optedOutPurposes {
2014
- name
2015
- trackingType
2016
- }
2017
- browserLanguages
2018
- browserTimeZones
2019
- }
2020
- }
2021
- }
2022
- `,aa=p.gql`
2023
- query TranscendCliConsentPartitions($first: Int!, $offset: Int!) {
2024
- consentPartitions(first: $first, offset: $offset) {
2025
- nodes {
2026
- id
2027
- name
2028
- partition
2029
- }
2030
- }
2031
- }
2032
- `,oa=p.gql`
2033
- mutation TranscendCliCreateDataFlows(
2034
- $dataFlows: [DataFlowInput!]!
2035
- $airgapBundleId: ID!
2036
- $classifyService: Boolean
2037
- ) {
2038
- createDataFlows(
2039
- input: {
2040
- airgapBundleId: $airgapBundleId
2041
- dataFlows: $dataFlows
2042
- classifyService: $classifyService
2043
- }
2044
- ) {
2045
- dataFlows {
2046
- id
2047
- }
2048
- }
2049
- }
2050
- `,sa=p.gql`
2051
- mutation TranscendCliUpdateDataFlows(
2052
- $airgapBundleId: ID!
2053
- $dataFlows: [UpdateDataFlowInput!]!
2054
- $classifyService: Boolean
2055
- ) {
2056
- updateDataFlows(
2057
- input: {
2058
- airgapBundleId: $airgapBundleId
2059
- dataFlows: $dataFlows
2060
- classifyService: $classifyService
2061
- }
2062
- ) {
2063
- dataFlows {
2064
- id
2065
- }
2066
- }
2067
- }
2068
- `,ca=p.gql`
2069
- mutation TranscendCliUpdateOrCreateCookies(
2070
- $cookies: [UpdateOrCreateCookieInput!]!
2071
- $airgapBundleId: ID!
2072
- ) {
2073
- updateOrCreateCookies(
2074
- input: { airgapBundleId: $airgapBundleId, cookies: $cookies }
2075
- ) {
2076
- clientMutationId
2077
- }
2078
- }
2079
- `,la=p.gql`
2080
- query TranscendCliDataFlows(
2081
- $first: Int!
2082
- $airgapBundleId: ID!
2083
- $offset: Int!
2084
- $status: ConsentTrackerStatus
2085
- $showZeroActivity: Boolean
2086
- ) {
2087
- dataFlows(
2088
- first: $first
2089
- offset: $offset
2090
- filterBy: { status: $status, showZeroActivity: $showZeroActivity }
2091
- input: { airgapBundleId: $airgapBundleId }
2092
- orderBy: [
2093
- { field: createdAt, direction: ASC }
2094
- { field: value, direction: ASC }
2095
- ]
2096
- useMaster: false
2097
- ) {
2098
- nodes {
2099
- id
2100
- value
2101
- type
2102
- description
2103
- trackingType
2104
- service {
2105
- integrationName
2106
- }
2107
- source
2108
- status
2109
- owners {
2110
- email
2111
- }
2112
- teams {
2113
- name
2114
- }
2115
- attributeValues {
2116
- name
2117
- attributeKey {
2118
- name
2119
- }
2120
- }
2121
- }
2122
- }
2123
- }
2124
- `,ua=p.gql`
2125
- query TranscendCliCookies(
2126
- $first: Int!
2127
- $offset: Int!
2128
- $airgapBundleId: ID!
2129
- $status: ConsentTrackerStatus
2130
- ) {
2131
- cookies(
2132
- first: $first
2133
- offset: $offset
2134
- filterBy: { status: $status }
2135
- input: { airgapBundleId: $airgapBundleId }
2136
- orderBy: [
2137
- { field: createdAt, direction: ASC }
2138
- { field: name, direction: ASC }
2139
- ]
2140
- useMaster: false
2141
- ) {
2142
- nodes {
2143
- id
2144
- name
2145
- isRegex
2146
- description
2147
- trackingPurposes
2148
- service {
2149
- integrationName
2150
- }
2151
- source
2152
- status
2153
- owners {
2154
- email
2155
- }
2156
- teams {
2157
- name
2158
- }
2159
- attributeValues {
2160
- name
2161
- attributeKey {
2162
- name
2163
- }
2164
- }
2165
- }
2166
- }
2167
- }
2168
- `,da=p.gql`
2169
- query TranscendCliFetchConsentManagerId {
2170
- consentManager {
2171
- consentManager {
2172
- id
2173
- }
2174
- }
2175
- }
2176
- `,fa=p.gql`
2177
- query TranscendCliFetchConsentManager {
2178
- consentManager {
2179
- consentManager {
2180
- id
2181
- bundleURL
2182
- testBundleURL
2183
- configuration {
2184
- domains
2185
- consentPrecedence
2186
- unknownRequestPolicy
2187
- unknownCookiePolicy
2188
- syncEndpoint
2189
- telemetryPartitioning
2190
- signedIabAgreement
2191
- syncGroups
2192
- partition
2193
- }
2194
- partition {
2195
- partition
2196
- }
2197
- }
2198
- }
2199
- }
2200
- `,pa=p.gql`
2201
- query TranscendCliFetchConsentManagerTheme($airgapBundleId: ID!) {
2202
- consentManagerTheme(input: { airgapBundleId: $airgapBundleId }) {
2203
- theme {
2204
- primaryColor
2205
- fontColor
2206
- privacyPolicy
2207
- prompt
2208
- }
2209
- }
2210
- }
2211
- `,ma=p.gql`
2212
- mutation TranscendCliCreateConsentManager($privacyCenterId: ID!) {
2213
- createConsentManager(input: { privacyCenterId: $privacyCenterId }) {
2214
- consentManager {
2215
- id
2216
- }
2217
- }
2218
- }
2219
- `,ha=p.gql`
2220
- mutation TranscendCliUpdateConsentManager(
2221
- $airgapBundleId: ID!
2222
- $version: String!
2223
- ) {
2224
- updateConsentManager(id: $airgapBundleId, input: { version: $version }) {
2225
- clientMutationId
2226
- }
2227
- }
2228
- `,ga=p.gql`
2229
- mutation TranscendCliUpdateConsentManagerToLatest(
2230
- $airgapBundleId: ID!
2231
- $bundleType: ConsentBundleType!
2232
- ) {
2233
- updateConsentManagerToLatestVersion(
2234
- id: $airgapBundleId
2235
- input: { bundleType: $bundleType }
2236
- ) {
2237
- clientMutationId
2238
- }
2239
- }
2240
- `,_a=p.gql`
2241
- mutation TranscendCliDeployConsentManager(
2242
- $airgapBundleId: ID!
2243
- $bundleType: ConsentBundleType!
2244
- ) {
2245
- deployConsentManagerBundle(
2246
- id: $airgapBundleId
2247
- input: { bundleType: $bundleType }
2248
- ) {
2249
- clientMutationId
2250
- }
2251
- }
2252
- `,va=p.gql`
2253
- mutation TranscendCliUpdateConsentManagerDomains(
2254
- $airgapBundleId: ID!
2255
- $domains: [String!]!
2256
- ) {
2257
- updateConsentManagerDomains(
2258
- input: { id: $airgapBundleId, domains: $domains }
2259
- ) {
2260
- clientMutationId
2261
- }
2262
- }
2263
- `,ya=p.gql`
2264
- mutation TranscendCliUpdateConsentManagerPartition(
2265
- $airgapBundleId: ID!
2266
- $partitionId: ID!
2267
- ) {
2268
- updateConsentManagerPartition(
2269
- input: { id: $airgapBundleId, partitionId: $partitionId }
2270
- ) {
2271
- clientMutationId
2272
- }
2273
- }
2274
- `,ba=p.gql`
2275
- mutation TranscendCliUpdateLoadOptions($input: UpdateLoadOptionsInput!) {
2276
- updateLoadOptions(input: $input) {
2277
- clientMutationId
2278
- }
2279
- }
2280
- `,xa=p.gql`
2281
- mutation TranscendCliToggleUnknownRequestPolicy(
2282
- $input: ToggleUnknownRequestPolicyInput!
2283
- ) {
2284
- toggleUnknownRequestPolicy(input: $input) {
2285
- clientMutationId
2286
- }
2287
- }
2288
- `,Sa=p.gql`
2289
- mutation TranscendCliToggleUnknownCookiePolicy(
2290
- $input: ToggleUnknownCookiePolicyInput!
2291
- ) {
2292
- toggleUnknownCookiePolicy(input: $input) {
2293
- clientMutationId
2294
- }
2295
- }
2296
- `,Ca=p.gql`
2297
- mutation TranscendCliToggleTelemetryPartitionStrategy(
2298
- $input: ToggleTelemetryPartitionStrategyInput!
2299
- ) {
2300
- toggleTelemetryPartitioning(input: $input) {
2301
- clientMutationId
2302
- }
2303
- }
2304
- `,wa=p.gql`
2305
- mutation TranscendCliToggleConsentPrecedence(
2306
- $input: ToggleConsentPrecedenceInput!
2307
- ) {
2308
- toggleConsentPrecedence(input: $input) {
2309
- clientMutationId
2310
- }
2311
- }
2312
- `,Ta=p.gql`
2313
- mutation TranscendCliUpdateConsentManagerTheme(
2314
- $input: UpdateConsentManagerThemeInput!
2315
- ) {
2316
- updateConsentManagerTheme(input: $input) {
2317
- clientMutationId
2318
- }
2319
- }
2320
- `,Ea=p.gql`
2321
- mutation TranscendCliUpdateConsentExperience($input: UpdateExperienceInput!) {
2322
- updateExperience(input: $input) {
2323
- clientMutationId
2324
- }
2325
- }
2326
- `,Da=p.gql`
2327
- mutation TranscendCliCreateConsentExperience($input: CreateExperienceInput!) {
2328
- createExperience(input: $input) {
2329
- clientMutationId
2330
- }
2331
- }
2332
- `,Oa=p.gql`
2333
- mutation TranscendCliCreateConsentPartition(
2334
- $input: CreateConsentPartitionInput!
2335
- ) {
2336
- createConsentPartition(input: $input) {
2337
- clientMutationId
2338
- }
2339
- }
2340
- `,ka=p.gql`
2341
- query TranscendCliConsentManagerAnalyticsData($input: AnalyticsInput!) {
2342
- analyticsData(input: $input) {
2343
- series {
2344
- name
2345
- points {
2346
- key
2347
- value
2348
- }
2349
- }
2350
- }
2351
- }
2352
- `,Aa=p.gql`
2353
- query TranscendCliBusinessEntities($first: Int!, $offset: Int!) {
2354
- businessEntities(
2355
- first: $first
2356
- offset: $offset
2357
- orderBy: [
2358
- { field: createdAt, direction: ASC }
2359
- { field: title, direction: ASC }
2360
- ]
2361
- useMaster: false
2362
- ) {
2363
- nodes {
2364
- id
2365
- title
2366
- description
2367
- dataProtectionOfficerName
2368
- dataProtectionOfficerEmail
2369
- address
2370
- headquarterCountry
2371
- headquarterSubDivision
2372
- attributeValues {
2373
- name
2374
- attributeKey {
2375
- name
2376
- }
2377
- }
2378
- }
2379
- }
2380
- }
2381
- `,ja=p.gql`
2382
- mutation TranscendCliCreateBusinessEntity(
2383
- $input: CreateBusinessEntityInput!
2384
- ) {
2385
- createBusinessEntity(input: $input) {
2386
- businessEntity {
2387
- id
2388
- title
2389
- description
2390
- dataProtectionOfficerName
2391
- dataProtectionOfficerEmail
2392
- address
2393
- headquarterCountry
2394
- headquarterSubDivision
2395
- attributeValues {
2396
- name
2397
- attributeKey {
2398
- name
2399
- }
2400
- }
2401
- }
2402
- }
2403
- }
2404
- `,Ma=p.gql`
2405
- mutation TranscendCliUpdateBusinessEntities(
2406
- $input: [UpdateBusinessEntityInput!]!
2407
- ) {
2408
- updateBusinessEntities(input: { businessEntities: $input }) {
2409
- clientMutationId
2410
- }
2411
- }
2412
- `,Na=p.gql`
2413
- query TranscendCliActions($first: Int!, $offset: Int!) {
2414
- actions(
2415
- first: $first
2416
- offset: $offset
2417
- useMaster: false
2418
- orderBy: [{ field: type, direction: ASC }]
2419
- ) {
2420
- nodes {
2421
- id
2422
- type
2423
- skipSecondaryIfNoFiles
2424
- skipDownloadableStep
2425
- requiresReview
2426
- regionList
2427
- regionDetectionMethod
2428
- waitingPeriod
2429
- }
2430
- }
2431
- }
2432
- `,Pa=p.gql`
2433
- mutation TranscendCliUpdateAction($input: UpdateActionInput!) {
2434
- updateAction(input: $input) {
2435
- clientMutationId
2436
- }
2437
- }
2438
- `,Fa=p.gql`
2439
- query TranscendCliGlobalActionItems(
2440
- $first: Int!
2441
- $offset: Int!
2442
- $filterBy: GlobalActionItemFiltersInput!
2443
- ) {
2444
- globalActionItems(first: $first, offset: $offset, filterBy: $filterBy) {
2445
- nodes {
2446
- ids
2447
- count
2448
- teams {
2449
- id
2450
- name
2451
- }
2452
- customerExperienceActionItemIds
2453
- users {
2454
- id
2455
- email
2456
- }
2457
- collections {
2458
- title
2459
- id
2460
- }
2461
- dueDate
2462
- priority
2463
- titles
2464
- resolved
2465
- notes
2466
- links
2467
- type
2468
- additionalContexts {
2469
- iconOverride
2470
- requestId
2471
- dataSiloId
2472
- requestType
2473
- latestAirgapVersion
2474
- parentTitle
2475
- }
2476
- attributeValues {
2477
- name
2478
- attributeKey {
2479
- name
2480
- }
2481
- }
2482
- }
2483
- }
2484
- }
2485
- `,Ia=p.gql`
2486
- mutation TranscendCliUpdateActionItems($input: UpdateActionItemsInput!) {
2487
- updateActionItems(input: $input) {
2488
- clientMutationId
2489
- }
2490
- }
2491
- `,La=p.gql`
2492
- mutation TranscendCliCreateActionItems($input: [CreateActionItemsInput!]!) {
2493
- createActionItems(input: $input) {
2494
- clientMutationId
2495
- }
2496
- }
2497
- `,Ra=p.gql`
2498
- query TranscendCliFetchPrivacyCenterId($url: String!) {
2499
- privacyCenter(lookup: { url: $url }) {
2500
- id
2501
- }
2502
- }
2503
- `,za=p.gql`
2504
- query TranscendCliDeployedPrivacyCenterUrl {
2505
- organization {
2506
- deployedPrivacyCenterUrl
2507
- }
2508
- }
2509
- `,Ba=p.gql`
2510
- query TranscendCliFetchPrivacyCenters($url: String!) {
2511
- privacyCenter(lookup: { url: $url }) {
2512
- id
2513
- url
2514
- isDisabled
2515
- showPrivacyRequestButton
2516
- showPolicies
2517
- showTrackingTechnologies
2518
- showCookies
2519
- showDataFlows
2520
- showConsentManager
2521
- showManageYourPrivacy
2522
- showMarketingPreferences
2523
- locales
2524
- defaultLocale
2525
- preferBrowserDefaultLocale
2526
- supportEmail
2527
- replyToEmail
2528
- useNoReplyEmailAddress
2529
- useCustomEmailDomain
2530
- transformAccessReportJsonToCsv
2531
- themeStr
2532
- }
2533
- }
2534
- `,Va=p.gql`
2535
- mutation TranscendCliUpdatePrivacyCenter($input: UpdatePrivacyCenterInput!) {
2536
- updatePrivacyCenter(input: $input) {
2537
- clientMutationId
2538
- }
2539
- }
2540
- `,Ha=p.gql`
2541
- mutation TranscendCliDetermineLoginMethod($email: String!) {
2542
- determineLoginMethod(input: { email: $email }) {
2543
- loginMethod {
2544
- email
2545
- sombraPublicKey
2546
- }
2547
- }
2548
- }
2549
- `,Ua=p.gql`
2550
- mutation TranscendCliLogin(
2551
- $email: String!
2552
- $password: String!
2553
- $publicKey: String!
2554
- ) {
2555
- login(
2556
- input: { email: $email, password: $password }
2557
- publicKey: $publicKey
2558
- ) {
2559
- user {
2560
- roles {
2561
- id
2562
- organization {
2563
- name
2564
- id
2565
- uri
2566
- parentOrganizationId
2567
- }
2568
- }
2569
- }
2570
- }
2571
- }
2572
- `,Wa=p.gql`
2573
- mutation TranscendCliAssumeRole($id: ID!, $publicKey: String!) {
2574
- assumeRole(id: $id, publicKey: $publicKey) {
2575
- clientMutationId
2576
- }
2577
- }
2578
- `,Ga=p.gql`
2579
- query TranscendCliLargeLanguageModels(
2580
- $first: Int!
2581
- $offset: Int!
2582
- $filterBy: LargeLanguageModelFiltersInput
2583
- ) {
2584
- largeLanguageModels(
2585
- first: $first
2586
- orderBy: [
2587
- { field: name, direction: ASC }
2588
- { field: client, direction: ASC }
2589
- { field: isTranscendHosted, direction: ASC }
2590
- ]
2591
- offset: $offset
2592
- filterBy: $filterBy
2593
- ) {
2594
- nodes {
2595
- id
2596
- name
2597
- client
2598
- isTranscendHosted
2599
- }
2600
- }
2601
- }
2602
- `,Ka=p.gql`
2603
- query TranscendCliAgents(
2604
- $first: Int!
2605
- $offset: Int!
2606
- $filterBy: AgentFiltersInput
2607
- ) {
2608
- agents(
2609
- first: $first
2610
- offset: $offset
2611
- filterBy: $filterBy
2612
- orderBy: [
2613
- { field: createdAt, direction: ASC }
2614
- { field: name, direction: ASC }
2615
- ]
2616
- ) {
2617
- nodes {
2618
- id
2619
- name
2620
- agentId
2621
- instructions
2622
- description
2623
- codeInterpreterEnabled
2624
- retrievalEnabled
2625
- prompt {
2626
- title
2627
- }
2628
- largeLanguageModel {
2629
- name
2630
- client
2631
- }
2632
- teams {
2633
- name
2634
- }
2635
- owners {
2636
- email
2637
- }
2638
- agentFunctions {
2639
- name
2640
- }
2641
- agentFiles {
2642
- name
2643
- }
2644
- }
2645
- }
2646
- }
2647
- `,qa=p.gql`
2648
- mutation TranscendCliCreateAgent($input: CreateAgentInput!) {
2649
- createAgent(input: $input) {
2650
- agent {
2651
- id
2652
- name
2653
- agentId
2654
- }
2655
- }
2656
- }
2657
- `,Ja=p.gql`
2658
- mutation TranscendCliUpdateAgents($input: UpdateAgentsInput!) {
2659
- updateAgents(input: $input) {
2660
- clientMutationId
2661
- }
2662
- }
2663
- `,Ya=p.gql`
2664
- query TranscendCliAgentFiles(
2665
- $first: Int!
2666
- $offset: Int!
2667
- $filterBy: AgentFileFiltersInput
2668
- ) {
2669
- agentFiles(
2670
- first: $first
2671
- offset: $offset
2672
- filterBy: $filterBy
2673
- orderBy: [
2674
- { field: createdAt, direction: ASC }
2675
- { field: name, direction: ASC }
2676
- ]
2677
- ) {
2678
- nodes {
2679
- id
2680
- name
2681
- description
2682
- fileId
2683
- size
2684
- purpose
2685
- initialFileName
2686
- }
2687
- }
2688
- }
2689
- `,Xa=p.gql`
2690
- mutation TranscendCliCreateAgentFile($input: CreateAgentFileInput!) {
2691
- createAgentFile(input: $input) {
2692
- agentFile {
2693
- id
2694
- name
2695
- fileId
2696
- initialFileName
2697
- }
2698
- }
2699
- }
2700
- `,Za=p.gql`
2701
- mutation TranscendCliUpdateAgentFiles($input: UpdateAgentFilesInput!) {
2702
- updateAgentFiles(input: $input) {
2703
- clientMutationId
2704
- }
2705
- }
2706
- `,Qa=p.gql`
2707
- query TranscendCliAgentFunctions($first: Int!, $offset: Int!) {
2708
- agentFunctions(
2709
- first: $first
2710
- offset: $offset
2711
- orderBy: [
2712
- { field: createdAt, direction: ASC }
2713
- { field: name, direction: ASC }
2714
- ]
2715
- ) {
2716
- nodes {
2717
- id
2718
- name
2719
- description
2720
- parameters
2721
- }
2722
- }
2723
- }
2724
- `,$a=p.gql`
2725
- mutation TranscendCliCreateAgentFunction($input: CreateAgentFunctionInput!) {
2726
- createAgentFunction(input: $input) {
2727
- agentFunction {
2728
- id
2729
- name
2730
- }
2731
- }
2732
- }
2733
- `,eo=p.gql`
2734
- mutation TranscendCliUpdateAgentFunctions(
2735
- $input: UpdateAgentFunctionsInput!
2736
- ) {
2737
- updateAgentFunctions(input: $input) {
2738
- clientMutationId
2739
- }
2740
- }
2741
- `,to=p.gql`
2742
- query TranscendCliVendors($first: Int!, $offset: Int!) {
2743
- vendors(
2744
- first: $first
2745
- offset: $offset
2746
- useMaster: false
2747
- isExportCsv: true
2748
- orderBy: [
2749
- { field: createdAt, direction: ASC }
2750
- { field: title, direction: ASC }
2751
- ]
2752
- ) {
2753
- nodes {
2754
- id
2755
- title
2756
- description
2757
- dataProcessingAgreementLink
2758
- contactName
2759
- contactEmail
2760
- contactPhone
2761
- address
2762
- headquarterCountry
2763
- headquarterSubDivision
2764
- websiteUrl
2765
- businessEntity {
2766
- title
2767
- }
2768
- teams {
2769
- name
2770
- }
2771
- owners {
2772
- email
2773
- }
2774
- attributeValues {
2775
- attributeKey {
2776
- name
2777
- }
2778
- name
2779
- }
2780
- }
2781
- }
2782
- }
2783
- `,no=p.gql`
2784
- mutation TranscendCliCreateVendor($input: CreateVendorInput!) {
2785
- createVendor(input: $input) {
2786
- vendor {
2787
- id
2788
- title
2789
- }
2790
- }
2791
- }
2792
- `,ro=p.gql`
2793
- mutation TranscendCliUpdateVendor($input: UpdateVendorsInput!) {
2794
- updateVendors(input: $input) {
2795
- clientMutationId
2796
- }
2797
- }
2798
- `,io=p.gql`
2799
- query TranscendCliDataSubCategories($first: Int!, $offset: Int!) {
2800
- dataSubCategories(
2801
- first: $first
2802
- offset: $offset
2803
- isExportCsv: true
2804
- useMaster: false
2805
- ) {
2806
- nodes {
2807
- id
2808
- name
2809
- category
2810
- description
2811
- regex
2812
- teams {
2813
- name
2814
- }
2815
- owners {
2816
- email
2817
- }
2818
- attributeValues {
2819
- attributeKey {
2820
- name
2821
- }
2822
- name
2823
- }
2824
- }
2825
- }
2826
- }
2827
- `,ao=p.gql`
2828
- mutation TranscendCliCreateDataSubCategory(
2829
- $input: CreateDataInventorySubCategoryInput!
2830
- ) {
2831
- createDataSubCategory(input: $input) {
2832
- dataSubCategory {
2833
- id
2834
- name
2835
- category
2836
- }
2837
- }
2838
- }
2839
- `,oo=p.gql`
2840
- mutation TranscendCliUpdateDataSubCategories(
2841
- $input: UpdateDataSubCategoriesInput!
2842
- ) {
2843
- updateDataSubCategories(input: $input) {
2844
- clientMutationId
2845
- }
2846
- }
2847
- `,so=p.gql`
2848
- query TranscendCliProcessingPurposeSubCategories(
2849
- $first: Int!
2850
- $offset: Int!
2851
- ) {
2852
- processingPurposeSubCategories(
2853
- first: $first
2854
- offset: $offset
2855
- isExportCsv: true
2856
- useMaster: false
2857
- ) {
2858
- nodes {
2859
- id
2860
- name
2861
- purpose
2862
- description
2863
- teams {
2864
- name
2865
- }
2866
- owners {
2867
- email
2868
- }
2869
- attributeValues {
2870
- attributeKey {
2871
- name
2872
- }
2873
- name
2874
- }
2875
- }
2876
- }
2877
- }
2878
- `,co=p.gql`
2879
- mutation TranscendCliCreateProcessingPurposeSubCategory(
2880
- $input: CreateProcessingPurposeCategoryInput!
2881
- ) {
2882
- createProcessingPurposeSubCategory(input: $input) {
2883
- processingPurposeSubCategory {
2884
- id
2885
- name
2886
- purpose
2887
- }
2888
- }
2889
- }
2890
- `,lo=p.gql`
2891
- mutation TranscendCliUpdateProcessingPurposeSubCategories(
2892
- $input: UpdateProcessingPurposeSubCategoriesInput!
2893
- ) {
2894
- updateProcessingPurposeSubCategories(input: $input) {
2895
- clientMutationId
2896
- }
2897
- }
2898
- `,uo=p.gql`
2899
- query TranscendCliProcessingActivities($first: Int!, $offset: Int!) {
2900
- processingActivities(first: $first, offset: $offset, useMaster: false) {
2901
- nodes {
2902
- id
2903
- title
2904
- description
2905
- securityMeasureDetails
2906
- controllerships
2907
- storageRegions {
2908
- countrySubDivision
2909
- country
2910
- }
2911
- transferRegions {
2912
- countrySubDivision
2913
- country
2914
- }
2915
- retentionType
2916
- retentionPeriod
2917
- dataProtectionImpactAssessmentLink
2918
- dataProtectionImpactAssessmentStatus
2919
- attributeValues {
2920
- name
2921
- attributeKey {
2922
- name
2923
- }
2924
- }
2925
- dataSilos {
2926
- title
2927
- }
2928
- dataSubjects {
2929
- type
2930
- }
2931
- teams {
2932
- name
2933
- }
2934
- owners {
2935
- email
2936
- }
2937
- processingPurposeSubCategories {
2938
- name
2939
- purpose
2940
- }
2941
- dataSubCategories {
2942
- name
2943
- category
2944
- }
2945
- saaSCategories {
2946
- title
2947
- }
2948
- }
2949
- }
2950
- }
2951
- `,fo=p.gql`
2952
- mutation TranscendCliCreateProcessingActivity(
2953
- $input: CreateProcessingActivityInput!
2954
- ) {
2955
- createProcessingActivity(input: $input) {
2956
- processingActivity {
2957
- id
2958
- title
2959
- }
2960
- }
2961
- }
2962
- `,po=p.gql`
2963
- mutation TranscendCliUpdateProcessingActivities(
2964
- $input: UpdateProcessingActivitiesInput!
2965
- ) {
2966
- updateProcessingActivities(input: $input) {
2967
- clientMutationId
2968
- }
2969
- }
2970
- `,mo=p.gql`
2971
- query TranscendSombraVersion {
2972
- organization {
2973
- sombra {
2974
- version
2975
- }
2976
- }
2977
- }
2978
- `,ho=p.gql`
2979
- query TranscendCliSiloDiscoveryResults($first: Int!, $offset: Int!) {
2980
- siloDiscoveryResults(first: $first, offset: $offset) {
2981
- nodes {
2982
- title
2983
- resourceId
2984
- country
2985
- countrySubDivision
2986
- plaintextContext
2987
- status
2988
- containsSensitiveData
2989
- suggestedCatalog {
2990
- title
2991
- }
2992
- plugin {
2993
- dataSilo {
2994
- title
2995
- }
2996
- }
2997
- }
2998
- }
2999
- }
3000
- `,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]),successfullyCompletedAt:l.union([l.null,l.string]),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(`
3001
- `)}`)),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,successfullyCompletedAt:l,country:u,locale:d,origin:f,countrySubDivision:p,isSilent:m,isTest:h,coreIdentifier:g,purpose:_,...v}){return{"Request ID":n,"Created At":c,"Successfully Completed At":l||``,Email:r,"Core Identifier":g,"Request Type":i,"Data Subject Type":o,Status:a,Country:u,"Country Sub Division":p,Details:s,Origin:f,"Silent Mode":m,"Is Test Request":h,Language:d,"Purpose Trigger Name":_?.title||_?.name||``,"Purpose Trigger Value":_?.consent?.toString()||``,...(_?.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},{}),...v,...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,`
3002
- COPY (SELECT * FROM read_parquet(${e(n)}))
3003
- TO ${e(f)}
3004
- (HEADER, DELIMITER ',', QUOTE '"', ESCAPE '"', NULL '');
3005
- `),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(`
3006
- `)?`"${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(`
3007
- `))}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(`
3008
- `)}\n`)}function Kd(e,t){(0,o.appendFileSync)(e,`\n${t.map(e=>Object.values(e)).map(e=>e.map(Hd).join(`,`)).join(`
3009
- `)}`)}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}});
3010
- //# sourceMappingURL=syncConfigurationToTranscend-s-cjtUI3.cjs.map