@transcend-io/cli 8.36.1 → 8.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (191) hide show
  1. package/README.md +33 -0
  2. package/dist/{api-keys-DB0BZSh5.cjs → api-keys-eh_rPCV_.cjs} +2 -2
  3. package/dist/{api-keys-DB0BZSh5.cjs.map → api-keys-eh_rPCV_.cjs.map} +1 -1
  4. package/dist/app-D0ewaGAn.cjs +131 -0
  5. package/dist/app-D0ewaGAn.cjs.map +1 -0
  6. package/dist/bin/bash-complete.cjs +1 -1
  7. package/dist/bin/bash-complete.cjs.map +1 -1
  8. package/dist/bin/cli.cjs +1 -1
  9. package/dist/bin/cli.cjs.map +1 -1
  10. package/dist/bin/deprecated-command.cjs +1 -1
  11. package/dist/bin/deprecated-command.cjs.map +1 -1
  12. package/dist/buildAIIntegrationType-BwuCYR-o.cjs +2 -0
  13. package/dist/{buildAIIntegrationType-n_Qlv8wG.cjs.map → buildAIIntegrationType-BwuCYR-o.cjs.map} +1 -1
  14. package/dist/chunk-Bmb41Sf3.cjs +1 -0
  15. package/dist/{code-scanning-Yc7rgoTY.cjs → code-scanning-BB6Ncuzh.cjs} +2 -2
  16. package/dist/{code-scanning-Yc7rgoTY.cjs.map → code-scanning-BB6Ncuzh.cjs.map} +1 -1
  17. package/dist/codecs-Bvmb8o9R.cjs +2 -0
  18. package/dist/{codecs-JSDJgtyL.cjs.map → codecs-Bvmb8o9R.cjs.map} +1 -1
  19. package/dist/command-BUkTNNIa.cjs +9 -0
  20. package/dist/{command-41dUPvEa.cjs.map → command-BUkTNNIa.cjs.map} +1 -1
  21. package/dist/{consent-manager-BNMaKHId.cjs → consent-manager-Df8gw2Qh.cjs} +2 -2
  22. package/dist/{consent-manager-BNMaKHId.cjs.map → consent-manager-Df8gw2Qh.cjs.map} +1 -1
  23. package/dist/constants-7qBywLgI.cjs +2 -0
  24. package/dist/{constants-JoCDv9ym.cjs.map → constants-7qBywLgI.cjs.map} +1 -1
  25. package/dist/context-_8xfl0dt.cjs +2 -0
  26. package/dist/{context-Bw1xk9Q_.cjs.map → context-_8xfl0dt.cjs.map} +1 -1
  27. package/dist/{cron-ClvgH2uD.cjs → cron-BhfbISdy.cjs} +2 -2
  28. package/dist/{cron-ClvgH2uD.cjs.map → cron-BhfbISdy.cjs.map} +1 -1
  29. package/dist/{data-inventory-BzEYoxaa.cjs → data-inventory-D36n1YAJ.cjs} +2 -2
  30. package/dist/{data-inventory-BzEYoxaa.cjs.map → data-inventory-D36n1YAJ.cjs.map} +1 -1
  31. package/dist/{dataFlowsToDataSilos-daBgPi7V.cjs → dataFlowsToDataSilos-BLNhWeOw.cjs} +2 -2
  32. package/dist/{dataFlowsToDataSilos-daBgPi7V.cjs.map → dataFlowsToDataSilos-BLNhWeOw.cjs.map} +1 -1
  33. package/dist/{done-input-validation-Cgk5kNBs.cjs → done-input-validation-DGckEJ5a.cjs} +1 -1
  34. package/dist/{done-input-validation-Cgk5kNBs.cjs.map → done-input-validation-DGckEJ5a.cjs.map} +1 -1
  35. package/dist/enums-BZulhPFa.cjs +2 -0
  36. package/dist/{enums-CBXlBJii.cjs.map → enums-BZulhPFa.cjs.map} +1 -1
  37. package/dist/impl--CgaKM4x.cjs +2 -0
  38. package/dist/{impl-BFOghVmx.cjs.map → impl--CgaKM4x.cjs.map} +1 -1
  39. package/dist/impl--PmMYd1g.cjs +2 -0
  40. package/dist/{impl-BouHRicT.cjs.map → impl--PmMYd1g.cjs.map} +1 -1
  41. package/dist/impl-47WGWxyj.cjs +2 -0
  42. package/dist/{impl-CFmFCVt8.cjs.map → impl-47WGWxyj.cjs.map} +1 -1
  43. package/dist/impl-4NCrJ_Y6.cjs +2 -0
  44. package/dist/{impl-cfDtPbS9.cjs.map → impl-4NCrJ_Y6.cjs.map} +1 -1
  45. package/dist/impl-5AfPlpzA.cjs +2 -0
  46. package/dist/{impl-hGu8uCC4.cjs.map → impl-5AfPlpzA.cjs.map} +1 -1
  47. package/dist/impl-73q3K0b_.cjs +2 -0
  48. package/dist/{impl-BN61r-PG.cjs.map → impl-73q3K0b_.cjs.map} +1 -1
  49. package/dist/impl-8Basu9U-.cjs +2 -0
  50. package/dist/{impl-BXMfTm4K.cjs.map → impl-8Basu9U-.cjs.map} +1 -1
  51. package/dist/impl-BC1mCUl1.cjs +2 -0
  52. package/dist/{impl-CCOEjRnr.cjs.map → impl-BC1mCUl1.cjs.map} +1 -1
  53. package/dist/impl-BNEgHNz7.cjs +4 -0
  54. package/dist/{impl-8bci0gd2.cjs.map → impl-BNEgHNz7.cjs.map} +1 -1
  55. package/dist/impl-BPq8EyHn.cjs +2 -0
  56. package/dist/{impl-BRuqPhJU.cjs.map → impl-BPq8EyHn.cjs.map} +1 -1
  57. package/dist/impl-BfN9XMNM.cjs +2 -0
  58. package/dist/{impl-ClDXxODZ.cjs.map → impl-BfN9XMNM.cjs.map} +1 -1
  59. package/dist/impl-Boa1Uuzk.cjs +2 -0
  60. package/dist/{impl-DpdGWdrr.cjs.map → impl-Boa1Uuzk.cjs.map} +1 -1
  61. package/dist/impl-Bv2mYf1w.cjs +2 -0
  62. package/dist/{impl-C4D1tHjp.cjs.map → impl-Bv2mYf1w.cjs.map} +1 -1
  63. package/dist/impl-BxOeeF35.cjs +2 -0
  64. package/dist/{impl-CoxOrlXu.cjs.map → impl-BxOeeF35.cjs.map} +1 -1
  65. package/dist/impl-ByQI5s4b.cjs +2 -0
  66. package/dist/{impl-D7WBmmHb.cjs.map → impl-ByQI5s4b.cjs.map} +1 -1
  67. package/dist/impl-C1IjDv1N.cjs +2 -0
  68. package/dist/{impl-_dGu54cO.cjs.map → impl-C1IjDv1N.cjs.map} +1 -1
  69. package/dist/impl-CVsXgVaf.cjs +2 -0
  70. package/dist/{impl-BWiNjS6v.cjs.map → impl-CVsXgVaf.cjs.map} +1 -1
  71. package/dist/impl-CdXk78ar.cjs +2 -0
  72. package/dist/{impl-DhdY6lbj.cjs.map → impl-CdXk78ar.cjs.map} +1 -1
  73. package/dist/impl-CfsKuglq.cjs +2 -0
  74. package/dist/{impl-BH0HWnIY.cjs.map → impl-CfsKuglq.cjs.map} +1 -1
  75. package/dist/impl-CkkD_smS.cjs +2 -0
  76. package/dist/{impl-BS8t24Z7.cjs.map → impl-CkkD_smS.cjs.map} +1 -1
  77. package/dist/impl-Cotrjytz.cjs +2 -0
  78. package/dist/{impl-yHutqfbd.cjs.map → impl-Cotrjytz.cjs.map} +1 -1
  79. package/dist/impl-Crhm9eFe.cjs +2 -0
  80. package/dist/{impl-BYK9pQs0.cjs.map → impl-Crhm9eFe.cjs.map} +1 -1
  81. package/dist/impl-Cru4riTc.cjs +5 -0
  82. package/dist/impl-Cru4riTc.cjs.map +1 -0
  83. package/dist/impl-D2P_gDE8.cjs +2 -0
  84. package/dist/{impl-CA_CO88W.cjs.map → impl-D2P_gDE8.cjs.map} +1 -1
  85. package/dist/{impl-DjVmOb9T.cjs → impl-DDHduv-X.cjs} +2 -2
  86. package/dist/{impl-DjVmOb9T.cjs.map → impl-DDHduv-X.cjs.map} +1 -1
  87. package/dist/impl-DEULjxRp.cjs +2 -0
  88. package/dist/{impl-8zottXEQ.cjs.map → impl-DEULjxRp.cjs.map} +1 -1
  89. package/dist/impl-DHUnZ-Qx.cjs +2 -0
  90. package/dist/{impl-CSZwdpH-.cjs.map → impl-DHUnZ-Qx.cjs.map} +1 -1
  91. package/dist/impl-DI3lTLCy.cjs +2 -0
  92. package/dist/{impl-D3sI4I1g.cjs.map → impl-DI3lTLCy.cjs.map} +1 -1
  93. package/dist/impl-DKMxd5Wy.cjs +2 -0
  94. package/dist/{impl-ay7i0K_5.cjs.map → impl-DKMxd5Wy.cjs.map} +1 -1
  95. package/dist/impl-DNDs3FFG.cjs +2 -0
  96. package/dist/{impl-BjOFvm4E.cjs.map → impl-DNDs3FFG.cjs.map} +1 -1
  97. package/dist/impl-DQTfX_qq.cjs +4 -0
  98. package/dist/{impl-FlZPR0yd.cjs.map → impl-DQTfX_qq.cjs.map} +1 -1
  99. package/dist/impl-DS2IlxS3.cjs +2 -0
  100. package/dist/{impl-BIqdEXRo.cjs.map → impl-DS2IlxS3.cjs.map} +1 -1
  101. package/dist/impl-DVCUGrVY.cjs +2 -0
  102. package/dist/{impl-SkiG9sWb.cjs.map → impl-DVCUGrVY.cjs.map} +1 -1
  103. package/dist/{impl-C-_9uRms.cjs → impl-DZbi3AkB.cjs} +2 -2
  104. package/dist/{impl-C-_9uRms.cjs.map → impl-DZbi3AkB.cjs.map} +1 -1
  105. package/dist/impl-DcMkDhXY.cjs +2 -0
  106. package/dist/{impl-NLEQuKnT.cjs.map → impl-DcMkDhXY.cjs.map} +1 -1
  107. package/dist/impl-DlB56v12.cjs +2 -0
  108. package/dist/{impl-DU-WTXTY.cjs.map → impl-DlB56v12.cjs.map} +1 -1
  109. package/dist/impl-Du1Ty4JE.cjs +2 -0
  110. package/dist/{impl-Cp12F9tr.cjs.map → impl-Du1Ty4JE.cjs.map} +1 -1
  111. package/dist/{impl-KgEJvOhE.cjs → impl-DxDGyjMI.cjs} +2 -2
  112. package/dist/{impl-KgEJvOhE.cjs.map → impl-DxDGyjMI.cjs.map} +1 -1
  113. package/dist/impl-Dxgw6Xfk.cjs +2 -0
  114. package/dist/{impl-J5fV8gbh.cjs.map → impl-Dxgw6Xfk.cjs.map} +1 -1
  115. package/dist/impl-IQ7JOZxt.cjs +2 -0
  116. package/dist/{impl-Bv4gPikD.cjs.map → impl-IQ7JOZxt.cjs.map} +1 -1
  117. package/dist/impl-bgI-lF8x.cjs +2 -0
  118. package/dist/{impl-4pmSDQvA.cjs.map → impl-bgI-lF8x.cjs.map} +1 -1
  119. package/dist/impl-feFIqpBO.cjs +2 -0
  120. package/dist/{impl-BwAnSxkP.cjs.map → impl-feFIqpBO.cjs.map} +1 -1
  121. package/dist/impl-orpaJd8b.cjs +12 -0
  122. package/dist/{impl-BMxxKrNz.cjs.map → impl-orpaJd8b.cjs.map} +1 -1
  123. package/dist/{impl-ChNLuyNq.cjs → impl-xUzH7vUF.cjs} +2 -2
  124. package/dist/{impl-ChNLuyNq.cjs.map → impl-xUzH7vUF.cjs.map} +1 -1
  125. package/dist/index.cjs +4 -4
  126. package/dist/index.cjs.map +1 -1
  127. package/dist/{logger-BaHHbWVd.cjs → logger-DQwEYtSS.cjs} +2 -2
  128. package/dist/{logger-BaHHbWVd.cjs.map → logger-DQwEYtSS.cjs.map} +1 -1
  129. package/dist/{manual-enrichment-D-0rM9KN.cjs → manual-enrichment-CzRiIFev.cjs} +2 -2
  130. package/dist/{manual-enrichment-D-0rM9KN.cjs.map → manual-enrichment-CzRiIFev.cjs.map} +1 -1
  131. package/dist/{mergeTranscendInputs-PPpGbYgG.cjs → mergeTranscendInputs-BIBCYbug.cjs} +2 -2
  132. package/dist/{mergeTranscendInputs-PPpGbYgG.cjs.map → mergeTranscendInputs-BIBCYbug.cjs.map} +1 -1
  133. package/dist/{pooling-DbIx6-i7.cjs → pooling-BJAPXDiq.cjs} +2 -2
  134. package/dist/{pooling-DbIx6-i7.cjs.map → pooling-BJAPXDiq.cjs.map} +1 -1
  135. package/dist/{preference-management-Dapt3Li3.cjs → preference-management-DV6NIcXt.cjs} +2 -2
  136. package/dist/{preference-management-Dapt3Li3.cjs.map → preference-management-DV6NIcXt.cjs.map} +1 -1
  137. package/dist/{readTranscendYaml-CL9nujUr.cjs → readTranscendYaml-Cycz6RxW.cjs} +2 -2
  138. package/dist/{readTranscendYaml-CL9nujUr.cjs.map → readTranscendYaml-Cycz6RxW.cjs.map} +1 -1
  139. package/dist/syncConfigurationToTranscend-Bd0ZTIm1.cjs +2994 -0
  140. package/dist/{syncConfigurationToTranscend-D4PLA70C.cjs.map → syncConfigurationToTranscend-Bd0ZTIm1.cjs.map} +1 -1
  141. package/dist/{uploadConsents-CN1JucL3.cjs → uploadConsents-XYRco1_L.cjs} +2 -2
  142. package/dist/{uploadConsents-CN1JucL3.cjs.map → uploadConsents-XYRco1_L.cjs.map} +1 -1
  143. package/package.json +1 -1
  144. package/dist/app-BOlZhpYh.cjs +0 -118
  145. package/dist/app-BOlZhpYh.cjs.map +0 -1
  146. package/dist/buildAIIntegrationType-n_Qlv8wG.cjs +0 -2
  147. package/dist/codecs-JSDJgtyL.cjs +0 -2
  148. package/dist/command-41dUPvEa.cjs +0 -9
  149. package/dist/constants-JoCDv9ym.cjs +0 -2
  150. package/dist/context-Bw1xk9Q_.cjs +0 -2
  151. package/dist/enums-CBXlBJii.cjs +0 -2
  152. package/dist/impl-4pmSDQvA.cjs +0 -2
  153. package/dist/impl-8bci0gd2.cjs +0 -4
  154. package/dist/impl-8zottXEQ.cjs +0 -2
  155. package/dist/impl-BFOghVmx.cjs +0 -2
  156. package/dist/impl-BH0HWnIY.cjs +0 -2
  157. package/dist/impl-BIqdEXRo.cjs +0 -2
  158. package/dist/impl-BMxxKrNz.cjs +0 -12
  159. package/dist/impl-BN61r-PG.cjs +0 -2
  160. package/dist/impl-BRuqPhJU.cjs +0 -2
  161. package/dist/impl-BS8t24Z7.cjs +0 -2
  162. package/dist/impl-BWiNjS6v.cjs +0 -2
  163. package/dist/impl-BXMfTm4K.cjs +0 -2
  164. package/dist/impl-BYK9pQs0.cjs +0 -2
  165. package/dist/impl-BjOFvm4E.cjs +0 -2
  166. package/dist/impl-BouHRicT.cjs +0 -2
  167. package/dist/impl-Bv4gPikD.cjs +0 -2
  168. package/dist/impl-BwAnSxkP.cjs +0 -2
  169. package/dist/impl-C4D1tHjp.cjs +0 -2
  170. package/dist/impl-CA_CO88W.cjs +0 -2
  171. package/dist/impl-CCOEjRnr.cjs +0 -2
  172. package/dist/impl-CFmFCVt8.cjs +0 -2
  173. package/dist/impl-CSZwdpH-.cjs +0 -2
  174. package/dist/impl-ClDXxODZ.cjs +0 -2
  175. package/dist/impl-CoxOrlXu.cjs +0 -2
  176. package/dist/impl-Cp12F9tr.cjs +0 -2
  177. package/dist/impl-D3sI4I1g.cjs +0 -2
  178. package/dist/impl-D7WBmmHb.cjs +0 -2
  179. package/dist/impl-DU-WTXTY.cjs +0 -2
  180. package/dist/impl-DhdY6lbj.cjs +0 -2
  181. package/dist/impl-DpdGWdrr.cjs +0 -2
  182. package/dist/impl-FlZPR0yd.cjs +0 -4
  183. package/dist/impl-J5fV8gbh.cjs +0 -2
  184. package/dist/impl-NLEQuKnT.cjs +0 -2
  185. package/dist/impl-SkiG9sWb.cjs +0 -2
  186. package/dist/impl-_dGu54cO.cjs +0 -2
  187. package/dist/impl-ay7i0K_5.cjs +0 -2
  188. package/dist/impl-cfDtPbS9.cjs +0 -2
  189. package/dist/impl-hGu8uCC4.cjs +0 -2
  190. package/dist/impl-yHutqfbd.cjs +0 -2
  191. package/dist/syncConfigurationToTranscend-D4PLA70C.cjs +0 -2994
@@ -0,0 +1,2994 @@
1
+ const e=require(`./chunk-Bmb41Sf3.cjs`),t=require(`./constants-7qBywLgI.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 TranscendCliRequests(
921
+ $first: Int!
922
+ $offset: Int!
923
+ $filterBy: RequestFiltersInput!
924
+ ) {
925
+ requests(
926
+ filterBy: $filterBy
927
+ first: $first
928
+ offset: $offset
929
+ orderBy: [
930
+ { field: createdAt, direction: ASC }
931
+ { field: id, direction: ASC }
932
+ ]
933
+ useMaster: false
934
+ ) {
935
+ nodes {
936
+ id
937
+ createdAt
938
+ email
939
+ link
940
+ status
941
+ details
942
+ isTest
943
+ locale
944
+ origin
945
+ isSilent
946
+ coreIdentifier
947
+ daysRemaining
948
+ type
949
+ subjectType
950
+ country
951
+ countrySubDivision
952
+ purpose {
953
+ title
954
+ name
955
+ consent
956
+ enrichedPreferences {
957
+ topic
958
+ selectValues {
959
+ id
960
+ name
961
+ preferenceOption {
962
+ id
963
+ slug
964
+ title {
965
+ defaultMessage
966
+ }
967
+ }
968
+ }
969
+ selectValue {
970
+ id
971
+ name
972
+ }
973
+ selectValue {
974
+ id
975
+ name
976
+ }
977
+ preferenceTopic {
978
+ title {
979
+ defaultMessage
980
+ }
981
+ id
982
+ slug
983
+ }
984
+ name
985
+ id
986
+ booleanValue
987
+ }
988
+ }
989
+ attributeValues {
990
+ id
991
+ name
992
+ attributeKey {
993
+ id
994
+ name
995
+ }
996
+ }
997
+ }
998
+ totalCount
999
+ }
1000
+ }
1001
+ `,si=p.gql`
1002
+ mutation TranscendCliApprovePrivacyRequest($input: CommunicationInput!) {
1003
+ approveRequest(input: $input) {
1004
+ request {
1005
+ id
1006
+ }
1007
+ }
1008
+ }
1009
+ `,ci=p.gql`
1010
+ mutation TranscendCliCancelPrivacyRequest($input: CommunicationInput!) {
1011
+ cancelRequest(input: $input) {
1012
+ request {
1013
+ id
1014
+ }
1015
+ }
1016
+ }
1017
+ `,li=p.gql`
1018
+ mutation TranscendCliUpdatePrivacyRequest($input: UpdateRequestInput!) {
1019
+ updateRequest(input: $input) {
1020
+ request {
1021
+ id
1022
+ }
1023
+ }
1024
+ }
1025
+ `,ui=p.gql`
1026
+ mutation TranscendCliNotifyAdditionalTime($input: AdditionalTimeInput!) {
1027
+ notifyAdditionalTime(input: $input) {
1028
+ clientMutationId
1029
+ }
1030
+ }
1031
+ `,di=p.gql`
1032
+ query TranscendCliFetchMessage {
1033
+ translatedMessages {
1034
+ id
1035
+ defaultMessage
1036
+ description
1037
+ targetReactIntlId
1038
+ translations {
1039
+ locale
1040
+ value
1041
+ }
1042
+ }
1043
+ }
1044
+ `,fi=p.gql`
1045
+ mutation TranscendCliUpdateIntlMessages($messages: [MessageInput!]!) {
1046
+ updateIntlMessages(input: { messages: $messages, skipPublish: true }) {
1047
+ clientMutationId
1048
+ }
1049
+ }
1050
+ `,pi=p.gql`
1051
+ query TranscendCliRequestEnrichers(
1052
+ $first: Int!
1053
+ $offset: Int!
1054
+ $requestId: ID!
1055
+ ) {
1056
+ requestEnrichers(
1057
+ input: { requestId: $requestId }
1058
+ first: $first
1059
+ offset: $offset
1060
+ useMaster: false
1061
+ orderBy: [
1062
+ { field: createdAt, direction: ASC }
1063
+ { field: title, direction: ASC, model: enricher }
1064
+ ]
1065
+ ) {
1066
+ nodes {
1067
+ id
1068
+ status
1069
+ enricher {
1070
+ id
1071
+ type
1072
+ title
1073
+ }
1074
+ }
1075
+ totalCount
1076
+ }
1077
+ }
1078
+ `,mi=p.gql`
1079
+ mutation TranscendCliRetryRequestEnricher($requestEnricherId: ID!) {
1080
+ retryRequestEnricher(id: $requestEnricherId) {
1081
+ requestEnricher {
1082
+ id
1083
+ }
1084
+ }
1085
+ }
1086
+ `,hi=p.gql`
1087
+ mutation TranscendCliSkipRequestEnricher($requestEnricherId: ID!) {
1088
+ skipRequestEnricher(id: $requestEnricherId) {
1089
+ requestEnricher {
1090
+ id
1091
+ }
1092
+ }
1093
+ }
1094
+ `,gi=`
1095
+ id
1096
+ title
1097
+ status
1098
+ index
1099
+ questions {
1100
+ id
1101
+ title
1102
+ index
1103
+ type
1104
+ subType
1105
+ placeholder
1106
+ description
1107
+ isRequired
1108
+ displayLogic
1109
+ riskLogic
1110
+ requireRiskEvaluation
1111
+ requireRiskMatrixEvaluation
1112
+ riskCategories {
1113
+ id
1114
+ title
1115
+ }
1116
+ riskFramework {
1117
+ id
1118
+ title
1119
+ description
1120
+ riskLevels {
1121
+ id
1122
+ title
1123
+ }
1124
+ riskCategories {
1125
+ id
1126
+ title
1127
+ }
1128
+ riskMatrixColumns {
1129
+ id
1130
+ title
1131
+ }
1132
+ riskMatrixRows {
1133
+ id
1134
+ title
1135
+ }
1136
+ riskMatrix {
1137
+ id
1138
+ title
1139
+ }
1140
+ creator {
1141
+ id
1142
+ email
1143
+ name
1144
+ }
1145
+ riskMatrixRowTitle
1146
+ riskMatrixColumnTitle
1147
+ }
1148
+ riskLevel {
1149
+ id
1150
+ title
1151
+ }
1152
+ reviewerRiskLevel {
1153
+ id
1154
+ title
1155
+ }
1156
+ riskLevelFromRiskMatrix {
1157
+ id
1158
+ title
1159
+ }
1160
+ answerOptions {
1161
+ id
1162
+ index
1163
+ value
1164
+ }
1165
+ selectedAnswers {
1166
+ ... on AssessmentAnswerInterface {
1167
+ id
1168
+ index
1169
+ value
1170
+ }
1171
+ }
1172
+ respondent {
1173
+ id
1174
+ email
1175
+ name
1176
+ }
1177
+ attributeKey {
1178
+ name
1179
+ }
1180
+ externalRespondentEmail
1181
+ comments {
1182
+ id
1183
+ content
1184
+ createdAt
1185
+ updatedAt
1186
+ author {
1187
+ id
1188
+ email
1189
+ name
1190
+ }
1191
+ }
1192
+ allowedMimeTypes
1193
+ updatedAt
1194
+ referenceId
1195
+ previousSubmissions {
1196
+ id
1197
+ updatedAt
1198
+ assessmentQuestionId
1199
+ answers {
1200
+ ... on AssessmentAnswerInterface {
1201
+ id
1202
+ index
1203
+ value
1204
+ }
1205
+ }
1206
+ }
1207
+ allowSelectOther
1208
+ syncModel
1209
+ syncColumn
1210
+ syncRowIds
1211
+ syncOverride
1212
+ }
1213
+ assignees {
1214
+ id
1215
+ email
1216
+ name
1217
+ }
1218
+ externalAssignees {
1219
+ id
1220
+ email
1221
+ }
1222
+ isReviewed
1223
+ `,_i=p.gql`
1224
+ query TranscendCliAssessments(
1225
+ $first: Int!
1226
+ $offset: Int!
1227
+ $filterBy: AssessmentFormFiltersInput
1228
+ ) {
1229
+ assessmentForms(first: $first, offset: $offset, filterBy: $filterBy) {
1230
+ nodes {
1231
+ id
1232
+ creator {
1233
+ id
1234
+ email
1235
+ name
1236
+ }
1237
+ lastEditor {
1238
+ id
1239
+ email
1240
+ name
1241
+ }
1242
+ title
1243
+ description
1244
+ status
1245
+ assignees {
1246
+ id
1247
+ email
1248
+ name
1249
+ }
1250
+ externalAssignees {
1251
+ id
1252
+ email
1253
+ }
1254
+ reviewers {
1255
+ id
1256
+ email
1257
+ name
1258
+ }
1259
+ isLocked
1260
+ isArchived
1261
+ isExternallyCreated
1262
+ dueDate
1263
+ createdAt
1264
+ updatedAt
1265
+ assignedAt
1266
+ submittedAt
1267
+ approvedAt
1268
+ rejectedAt
1269
+ titleIsInternal
1270
+ retentionSchedule {
1271
+ id
1272
+ type
1273
+ durationDays
1274
+ operation
1275
+ }
1276
+ attributeValues {
1277
+ name
1278
+ attributeKey {
1279
+ name
1280
+ }
1281
+ }
1282
+ sections {
1283
+ ${gi}
1284
+ }
1285
+ assessmentGroup {
1286
+ id
1287
+ title
1288
+ description
1289
+ }
1290
+ resources {
1291
+ resourceType
1292
+ ... on AttributeBusinessEntityResource {
1293
+ id
1294
+ title
1295
+ }
1296
+ ... on AttributeDataSiloResource {
1297
+ id
1298
+ title
1299
+ }
1300
+ ... on AttributeDataSubCategoryResource {
1301
+ id
1302
+ name
1303
+ category
1304
+ }
1305
+ ... on AttributeSubDataPointResource {
1306
+ id
1307
+ name
1308
+ }
1309
+ ... on AttributeProcessingPurposeSubCategoryResource {
1310
+ id
1311
+ name
1312
+ purpose
1313
+ }
1314
+ ... on AttributeRequestResource {
1315
+ id
1316
+ type
1317
+ }
1318
+ ... on AttributeVendorResource {
1319
+ id
1320
+ title
1321
+ }
1322
+ ... on AttributePromptResource {
1323
+ id
1324
+ title
1325
+ }
1326
+ ... on AttributePromptRunResource {
1327
+ id
1328
+ title
1329
+ }
1330
+ ... on AttributePromptGroupResource {
1331
+ id
1332
+ title
1333
+ }
1334
+ }
1335
+ syncedRows {
1336
+ resourceType
1337
+ ... on AttributeBusinessEntityResource {
1338
+ id
1339
+ title
1340
+ }
1341
+ ... on AttributeDataSiloResource {
1342
+ id
1343
+ title
1344
+ }
1345
+ ... on AttributeDataSubCategoryResource {
1346
+ id
1347
+ name
1348
+ category
1349
+ }
1350
+ ... on AttributeSubDataPointResource {
1351
+ id
1352
+ name
1353
+ }
1354
+ ... on AttributeProcessingPurposeSubCategoryResource {
1355
+ id
1356
+ name
1357
+ purpose
1358
+ }
1359
+ ... on AttributeVendorResource {
1360
+ id
1361
+ title
1362
+ }
1363
+ }
1364
+ }
1365
+ }
1366
+ }
1367
+ `,vi=p.gql`
1368
+ mutation TranscendCliImportOneTrustAssessmentForms(
1369
+ $input: ImportOnetrustAssessmentsInput!
1370
+ ) {
1371
+ importOneTrustAssessmentForms(input: $input) {
1372
+ assessmentForms {
1373
+ id
1374
+ title
1375
+ }
1376
+ }
1377
+ }
1378
+ `,yi=p.gql`
1379
+ query TranscendCliPurposes(
1380
+ $first: Int!
1381
+ $offset: Int!
1382
+ $filterBy: TrackingPurposeFiltersInput
1383
+ $input: TrackingPurposeInput!
1384
+ ) {
1385
+ purposes(
1386
+ first: $first
1387
+ offset: $offset
1388
+ filterBy: $filterBy
1389
+ input: $input
1390
+ ) {
1391
+ nodes {
1392
+ id
1393
+ name
1394
+ description
1395
+ defaultConsent
1396
+ trackingType
1397
+ configurable
1398
+ essential
1399
+ showInConsentManager
1400
+ isActive
1401
+ displayOrder
1402
+ optOutSignals
1403
+ deletedAt
1404
+ authLevel
1405
+ showInPrivacyCenter
1406
+ title
1407
+ }
1408
+ }
1409
+ }
1410
+ `,bi=p.gql`
1411
+ query TranscendCliPreferenceTopics(
1412
+ $first: Int!
1413
+ $offset: Int!
1414
+ $filterBy: PreferenceTopicFilterInput
1415
+ ) {
1416
+ preferenceTopics(first: $first, offset: $offset, filterBy: $filterBy) {
1417
+ nodes {
1418
+ id
1419
+ slug
1420
+ type
1421
+ title {
1422
+ id
1423
+ defaultMessage
1424
+ }
1425
+ showInPrivacyCenter
1426
+ displayDescription {
1427
+ id
1428
+ defaultMessage
1429
+ }
1430
+ defaultConfiguration
1431
+ preferenceOptionValues {
1432
+ slug
1433
+ title {
1434
+ id
1435
+ defaultMessage
1436
+ }
1437
+ }
1438
+ purpose {
1439
+ trackingType
1440
+ }
1441
+ }
1442
+ }
1443
+ }
1444
+ `,xi=p.gql`
1445
+ query TranscendCliAssessmentTemplates(
1446
+ $first: Int!
1447
+ $offset: Int!
1448
+ $filterBy: AssessmentFormTemplateFiltersInput
1449
+ ) {
1450
+ assessmentFormTemplates(
1451
+ first: $first
1452
+ offset: $offset
1453
+ filterBy: $filterBy
1454
+ ) {
1455
+ nodes {
1456
+ id
1457
+ creator {
1458
+ id
1459
+ email
1460
+ name
1461
+ }
1462
+ lastEditor {
1463
+ id
1464
+ email
1465
+ name
1466
+ }
1467
+ title
1468
+ description
1469
+ status
1470
+ source
1471
+ parentId
1472
+ isLocked
1473
+ isArchived
1474
+ createdAt
1475
+ updatedAt
1476
+ retentionSchedule {
1477
+ id
1478
+ type
1479
+ durationDays
1480
+ operation
1481
+ createdAt
1482
+ updatedAt
1483
+ }
1484
+ assessmentEmailSet {
1485
+ id
1486
+ title
1487
+ description
1488
+ isDefault
1489
+ templates {
1490
+ id
1491
+ title
1492
+ }
1493
+ }
1494
+ sections {
1495
+ ${gi}
1496
+ }
1497
+ }
1498
+ }
1499
+ }
1500
+ `,Si=p.gql`
1501
+ query TranscendCliPrompts(
1502
+ $first: Int!
1503
+ $offset: Int!
1504
+ $filterBy: PromptFiltersInput
1505
+ ) {
1506
+ prompts(
1507
+ first: $first
1508
+ orderBy: [{ field: title, direction: ASC }]
1509
+ offset: $offset
1510
+ filterBy: $filterBy
1511
+ ) {
1512
+ nodes {
1513
+ id
1514
+ title
1515
+ status
1516
+ content
1517
+ temperature
1518
+ topP
1519
+ maxTokensToSample
1520
+ }
1521
+ }
1522
+ }
1523
+ `,Ci=p.gql`
1524
+ query TranscendCliPromptPartials($first: Int!, $offset: Int!) {
1525
+ promptPartials(first: $first, offset: $offset) {
1526
+ nodes {
1527
+ id
1528
+ title
1529
+ content
1530
+ }
1531
+ }
1532
+ }
1533
+ `,wi=p.gql`
1534
+ query TranscendCliPromptGroups($first: Int!, $offset: Int!) {
1535
+ promptGroups(
1536
+ first: $first
1537
+
1538
+ offset: $offset
1539
+ ) {
1540
+ nodes {
1541
+ id
1542
+ title
1543
+ description
1544
+ prompts {
1545
+ title
1546
+ }
1547
+ }
1548
+ }
1549
+ }
1550
+ `,Ti=p.gql`
1551
+ query TranscendCliPromptsWithVariables($input: PromptsWithVariablesInput!) {
1552
+ promptsWithVariables(input: $input) {
1553
+ prompts {
1554
+ id
1555
+ title
1556
+ content
1557
+ status
1558
+ temperature
1559
+ topP
1560
+ maxTokensToSample
1561
+ responseFormat
1562
+ }
1563
+ promptPartials {
1564
+ id
1565
+ title
1566
+ content
1567
+ slug
1568
+ }
1569
+ calculatedVariables {
1570
+ data
1571
+ name
1572
+ }
1573
+ runtimeVariables {
1574
+ name
1575
+ }
1576
+ }
1577
+ }
1578
+ `,Ei=p.gql`
1579
+ mutation TranscendCliUpdatePrompts($input: UpdatePromptsInput!) {
1580
+ updatePrompts(input: $input) {
1581
+ clientMutationId
1582
+ }
1583
+ }
1584
+ `,Di=p.gql`
1585
+ mutation TranscendCliCreatePrompt($input: CreatePromptInput!) {
1586
+ createPrompt(input: $input) {
1587
+ clientMutationId
1588
+ prompt {
1589
+ id
1590
+ }
1591
+ }
1592
+ }
1593
+ `,Oi=p.gql`
1594
+ mutation TranscendCliUpdatePromptPartials(
1595
+ $input: UpdatePromptPartialsInput!
1596
+ ) {
1597
+ updatePromptPartials(input: $input) {
1598
+ clientMutationId
1599
+ }
1600
+ }
1601
+ `,ki=p.gql`
1602
+ mutation TranscendCliCreatePromptPartial($input: CreatePromptPartialInput!) {
1603
+ createPromptPartial(input: $input) {
1604
+ clientMutationId
1605
+ promptPartial {
1606
+ id
1607
+ }
1608
+ }
1609
+ }
1610
+ `,Ai=p.gql`
1611
+ mutation TranscendCliUpdatePromptGroups($input: UpdatePromptGroupsInput!) {
1612
+ updatePromptGroups(input: $input) {
1613
+ clientMutationId
1614
+ }
1615
+ }
1616
+ `,ji=p.gql`
1617
+ mutation TranscendCliCreatePromptPartial($input: CreatePromptGroupInput!) {
1618
+ createPromptGroup(input: $input) {
1619
+ clientMutationId
1620
+ promptGroup {
1621
+ id
1622
+ }
1623
+ }
1624
+ }
1625
+ `,Mi=p.gql`
1626
+ query TranscendCliRequestDataSilos(
1627
+ $first: Int!
1628
+ $offset: Int!
1629
+ $filterBy: RequestDataSiloFiltersInput!
1630
+ ) {
1631
+ requestDataSilos(
1632
+ filterBy: $filterBy
1633
+ first: $first
1634
+ offset: $offset
1635
+ useMaster: false
1636
+ orderBy: [
1637
+ { field: createdAt, direction: DESC }
1638
+ { field: title, direction: ASC, model: dataSilo }
1639
+ ]
1640
+ ) {
1641
+ nodes {
1642
+ id
1643
+ }
1644
+ totalCount
1645
+ }
1646
+ }
1647
+ `,Ni=p.gql`
1648
+ mutation TranscendCliMarkRequestDataSiloCompleted(
1649
+ $requestDataSiloId: ID!
1650
+ $status: UpdateRequestDataSiloStatus!
1651
+ ) {
1652
+ changeRequestDataSiloStatus(
1653
+ input: { id: $requestDataSiloId, status: $status }
1654
+ ) {
1655
+ requestDataSilo {
1656
+ id
1657
+ }
1658
+ }
1659
+ }
1660
+ `,Pi=p.gql`
1661
+ mutation TranscendCliRetryRequestDataSilo($requestDataSiloId: ID!) {
1662
+ retryRequestDataSilo(id: $requestDataSiloId) {
1663
+ requestDataSilo {
1664
+ id
1665
+ }
1666
+ }
1667
+ }
1668
+ `,Fi=p.gql`
1669
+ query TranscendCliListReducedRequestsForDataSiloCount(
1670
+ $input: BulkCompletionReducedRequestInput!
1671
+ ) {
1672
+ listReducedRequestsForDataSilo(input: $input) {
1673
+ totalCount
1674
+ }
1675
+ }
1676
+ `,Ii=p.gql`
1677
+ query TranscendCliTeams(
1678
+ $first: Int!
1679
+ $offset: Int!
1680
+ $input: TeamFiltersInput
1681
+ ) {
1682
+ teams(
1683
+ first: $first
1684
+ offset: $offset
1685
+ filterBy: $input
1686
+ orderBy: [
1687
+ { field: createdAt, direction: ASC }
1688
+ { field: name, direction: ASC }
1689
+ ]
1690
+ ) {
1691
+ nodes {
1692
+ id
1693
+ name
1694
+ description
1695
+ ssoDepartment
1696
+ ssoGroup
1697
+ ssoTitle
1698
+ users {
1699
+ id
1700
+ email
1701
+ name
1702
+ }
1703
+ scopes {
1704
+ id
1705
+ name
1706
+ title
1707
+ }
1708
+ }
1709
+ }
1710
+ }
1711
+ `,Li=p.gql`
1712
+ mutation TranscendCliCreateTeam($input: TeamInput!) {
1713
+ createTeam(input: $input) {
1714
+ team {
1715
+ id
1716
+ name
1717
+ }
1718
+ }
1719
+ }
1720
+ `,Ri=p.gql`
1721
+ mutation TranscendCliUpdateTeam($input: UpdateTeamInput!) {
1722
+ updateTeam(input: $input) {
1723
+ team {
1724
+ id
1725
+ name
1726
+ }
1727
+ }
1728
+ }
1729
+ `,zi=p.gql`
1730
+ mutation TranscendCliRemoveRequestIdentifiers(
1731
+ $input: RemoveRequestIdentifiersInput!
1732
+ ) {
1733
+ removeRequestIdentifiers(input: $input) {
1734
+ count
1735
+ }
1736
+ }
1737
+ `,Bi=p.gql`
1738
+ query TranscendCliRequestIdentifiers(
1739
+ $first: Int!
1740
+ $offset: Int!
1741
+ $requestIds: [ID!]!
1742
+ ) {
1743
+ requestIdentifiers(
1744
+ input: { requestIds: $requestIds }
1745
+ first: $first
1746
+ offset: $offset
1747
+ useMaster: false
1748
+ orderBy: [
1749
+ { field: createdAt, direction: ASC }
1750
+ { field: name, direction: ASC }
1751
+ ]
1752
+ ) {
1753
+ nodes {
1754
+ id
1755
+ name
1756
+ isVerifiedAtLeastOnce
1757
+ }
1758
+ totalCount
1759
+ }
1760
+ }
1761
+ `,Vi=p.gql`
1762
+ query TranscendCliUsers(
1763
+ $first: Int!
1764
+ $offset: Int!
1765
+ $input: UserFiltersInput
1766
+ ) {
1767
+ users(
1768
+ first: $first
1769
+ offset: $offset
1770
+ filterBy: $input
1771
+ orderBy: [
1772
+ { field: createdAt, direction: ASC }
1773
+ { field: name, direction: ASC }
1774
+ ]
1775
+ ) {
1776
+ nodes {
1777
+ id
1778
+ name
1779
+ email
1780
+ }
1781
+ }
1782
+ }
1783
+ `,Hi=p.gql`
1784
+ query TranscendCliRequestFiles(
1785
+ $first: Int!
1786
+ $offset: Int!
1787
+ $filterBy: RequestFileFiltersInput!
1788
+ ) {
1789
+ requestFiles(
1790
+ filterBy: $filterBy
1791
+ first: $first
1792
+ offset: $offset
1793
+ orderBy: [
1794
+ { field: createdAt, direction: ASC }
1795
+ { field: id, direction: ASC }
1796
+ ]
1797
+ ) {
1798
+ nodes {
1799
+ remoteId
1800
+ fileName
1801
+ }
1802
+ }
1803
+ }
1804
+ `,Ui=p.gql`
1805
+ query TranscendCliBulkRequestFiles(
1806
+ $filterBy: BulkRequestFilesFiltersInput!
1807
+ $first: Int!
1808
+ $after: String
1809
+ ) {
1810
+ bulkRequestFiles(filterBy: $filterBy, first: $first, after: $after) {
1811
+ nodes {
1812
+ remoteId
1813
+ fileName
1814
+ }
1815
+ pageInfo {
1816
+ hasNextPage
1817
+ endCursor
1818
+ }
1819
+ }
1820
+ }
1821
+ `,Wi=p.gql`
1822
+ mutation TranscendCliReportPromptRun($input: ReportPromptRunInput!) {
1823
+ reportPromptRun(input: $input) {
1824
+ clientMutationId
1825
+ promptRun {
1826
+ id
1827
+ }
1828
+ }
1829
+ }
1830
+ `,Gi=p.gql`
1831
+ mutation TranscendCliAddMessagesToPromptRun(
1832
+ $input: AddMessagesToPromptRunInput!
1833
+ ) {
1834
+ addMessagesToPromptRun(input: $input) {
1835
+ clientMutationId
1836
+ promptRun {
1837
+ id
1838
+ }
1839
+ }
1840
+ }
1841
+ `,Ki=p.gql`
1842
+ query TranscendCliGlobalActionItemCollectionss(
1843
+ $filterBy: GlobalActionItemCollectionFiltersInput!
1844
+ ) {
1845
+ globalActionItemCollections(filterBy: $filterBy) {
1846
+ nodes {
1847
+ id
1848
+ title
1849
+ description
1850
+ hidden
1851
+ productLine
1852
+ }
1853
+ }
1854
+ }
1855
+ `,qi=p.gql`
1856
+ mutation TranscendCliCreateActionItemCollection(
1857
+ $input: CreateActionItemCollectionInput!
1858
+ ) {
1859
+ createActionItemCollection(input: $input) {
1860
+ created {
1861
+ id
1862
+ title
1863
+ }
1864
+ }
1865
+ }
1866
+ `,Ji=p.gql`
1867
+ mutation TranscendCliUpdateActionItemCollection(
1868
+ $input: UpdateActionItemCollectionInput!
1869
+ ) {
1870
+ updateActionItemCollection(input: $input) {
1871
+ clientMutationId
1872
+ }
1873
+ }
1874
+ `,Yi=p.gql`
1875
+ query TranscendCliAttributes($first: Int!, $offset: Int!) {
1876
+ attributeKeys(first: $first, offset: $offset, useMaster: false) {
1877
+ nodes {
1878
+ id
1879
+ isCustom
1880
+ description
1881
+ enabledOn
1882
+ name
1883
+ type
1884
+ }
1885
+ }
1886
+ }
1887
+ `,Xi=p.gql`
1888
+ mutation TranscendCliCreateAttributeValues(
1889
+ $input: [CreateAttributeValuesInput!]!
1890
+ ) {
1891
+ createAttributeValues(input: $input) {
1892
+ clientMutationId
1893
+ }
1894
+ }
1895
+ `,Zi=p.gql`
1896
+ mutation TranscendCliUpdateAttributeValues(
1897
+ $input: [UpdateAttributeValueInput!]!
1898
+ ) {
1899
+ updateAttributeValues(input: $input) {
1900
+ clientMutationId
1901
+ }
1902
+ }
1903
+ `,Qi=p.gql`
1904
+ mutation TranscendCliDeleteAttributeValue($id: ID!) {
1905
+ deleteAttributeValue(id: $id) {
1906
+ clientMutationId
1907
+ }
1908
+ }
1909
+ `,$i=p.gql`
1910
+ query TranscendCliAttributeValues(
1911
+ $first: Int!
1912
+ $offset: Int!
1913
+ $attributeKeyId: ID!
1914
+ ) {
1915
+ attributeValues(
1916
+ first: $first
1917
+ offset: $offset
1918
+ useMaster: false
1919
+ filterBy: { attributeKeys: [$attributeKeyId] }
1920
+ ) {
1921
+ nodes {
1922
+ id
1923
+ name
1924
+ description
1925
+ color
1926
+ }
1927
+ }
1928
+ }
1929
+ `,ea=p.gql`
1930
+ mutation TranscendCliCreateAttribute(
1931
+ $name: String!
1932
+ $type: AttributeKeyType!
1933
+ $description: String
1934
+ $enabledOn: [AttributeSupportedResourceType!]
1935
+ ) {
1936
+ createAttributeKey(
1937
+ input: {
1938
+ name: $name
1939
+ type: $type
1940
+ description: $description
1941
+ enabledOn: $enabledOn
1942
+ }
1943
+ ) {
1944
+ clientMutationId
1945
+ attributeKey {
1946
+ id
1947
+ }
1948
+ }
1949
+ }
1950
+ `,ta=p.gql`
1951
+ mutation TranscendCliCreateAttribute(
1952
+ $attributeKeyId: ID!
1953
+ $description: String
1954
+ $enabledOn: [AttributeSupportedResourceType!]
1955
+ ) {
1956
+ updateAttributeKey(
1957
+ input: {
1958
+ id: $attributeKeyId
1959
+ description: $description
1960
+ enabledOn: $enabledOn
1961
+ }
1962
+ ) {
1963
+ clientMutationId
1964
+ attributeKey {
1965
+ id
1966
+ }
1967
+ }
1968
+ }
1969
+ `,na=p.gql`
1970
+ mutation TranscendCliSetResourceAttributes(
1971
+ $input: SetResourceAttributesInput!
1972
+ ) {
1973
+ setResourceAttributes(input: $input) {
1974
+ clientMutationId
1975
+ }
1976
+ }
1977
+ `,ra=p.gql`
1978
+ query TranscendCliExperiences($first: Int!, $offset: Int!) {
1979
+ experiences(first: $first, offset: $offset, useMaster: false) {
1980
+ nodes {
1981
+ id
1982
+ name
1983
+ displayName
1984
+ regions {
1985
+ countrySubDivision
1986
+ country
1987
+ }
1988
+ operator
1989
+ displayPriority
1990
+ onConsentExpiry
1991
+ consentExpiry
1992
+ viewState
1993
+ purposes {
1994
+ name
1995
+ trackingType
1996
+ }
1997
+ optedOutPurposes {
1998
+ name
1999
+ trackingType
2000
+ }
2001
+ browserLanguages
2002
+ browserTimeZones
2003
+ }
2004
+ }
2005
+ }
2006
+ `,ia=p.gql`
2007
+ query TranscendCliConsentPartitions($first: Int!, $offset: Int!) {
2008
+ consentPartitions(first: $first, offset: $offset) {
2009
+ nodes {
2010
+ id
2011
+ name
2012
+ partition
2013
+ }
2014
+ }
2015
+ }
2016
+ `,aa=p.gql`
2017
+ mutation TranscendCliCreateDataFlows(
2018
+ $dataFlows: [DataFlowInput!]!
2019
+ $airgapBundleId: ID!
2020
+ $classifyService: Boolean
2021
+ ) {
2022
+ createDataFlows(
2023
+ input: {
2024
+ airgapBundleId: $airgapBundleId
2025
+ dataFlows: $dataFlows
2026
+ classifyService: $classifyService
2027
+ }
2028
+ ) {
2029
+ dataFlows {
2030
+ id
2031
+ }
2032
+ }
2033
+ }
2034
+ `,oa=p.gql`
2035
+ mutation TranscendCliUpdateDataFlows(
2036
+ $airgapBundleId: ID!
2037
+ $dataFlows: [UpdateDataFlowInput!]!
2038
+ $classifyService: Boolean
2039
+ ) {
2040
+ updateDataFlows(
2041
+ input: {
2042
+ airgapBundleId: $airgapBundleId
2043
+ dataFlows: $dataFlows
2044
+ classifyService: $classifyService
2045
+ }
2046
+ ) {
2047
+ dataFlows {
2048
+ id
2049
+ }
2050
+ }
2051
+ }
2052
+ `,sa=p.gql`
2053
+ mutation TranscendCliUpdateOrCreateCookies(
2054
+ $cookies: [UpdateOrCreateCookieInput!]!
2055
+ $airgapBundleId: ID!
2056
+ ) {
2057
+ updateOrCreateCookies(
2058
+ input: { airgapBundleId: $airgapBundleId, cookies: $cookies }
2059
+ ) {
2060
+ clientMutationId
2061
+ }
2062
+ }
2063
+ `,ca=p.gql`
2064
+ query TranscendCliDataFlows(
2065
+ $first: Int!
2066
+ $airgapBundleId: ID!
2067
+ $offset: Int!
2068
+ $status: ConsentTrackerStatus
2069
+ $showZeroActivity: Boolean
2070
+ ) {
2071
+ dataFlows(
2072
+ first: $first
2073
+ offset: $offset
2074
+ filterBy: { status: $status, showZeroActivity: $showZeroActivity }
2075
+ input: { airgapBundleId: $airgapBundleId }
2076
+ orderBy: [
2077
+ { field: createdAt, direction: ASC }
2078
+ { field: value, direction: ASC }
2079
+ ]
2080
+ useMaster: false
2081
+ ) {
2082
+ nodes {
2083
+ id
2084
+ value
2085
+ type
2086
+ description
2087
+ trackingType
2088
+ service {
2089
+ integrationName
2090
+ }
2091
+ source
2092
+ status
2093
+ owners {
2094
+ email
2095
+ }
2096
+ teams {
2097
+ name
2098
+ }
2099
+ attributeValues {
2100
+ name
2101
+ attributeKey {
2102
+ name
2103
+ }
2104
+ }
2105
+ }
2106
+ }
2107
+ }
2108
+ `,la=p.gql`
2109
+ query TranscendCliCookies(
2110
+ $first: Int!
2111
+ $offset: Int!
2112
+ $airgapBundleId: ID!
2113
+ $status: ConsentTrackerStatus
2114
+ ) {
2115
+ cookies(
2116
+ first: $first
2117
+ offset: $offset
2118
+ filterBy: { status: $status }
2119
+ input: { airgapBundleId: $airgapBundleId }
2120
+ orderBy: [
2121
+ { field: createdAt, direction: ASC }
2122
+ { field: name, direction: ASC }
2123
+ ]
2124
+ useMaster: false
2125
+ ) {
2126
+ nodes {
2127
+ id
2128
+ name
2129
+ isRegex
2130
+ description
2131
+ trackingPurposes
2132
+ service {
2133
+ integrationName
2134
+ }
2135
+ source
2136
+ status
2137
+ owners {
2138
+ email
2139
+ }
2140
+ teams {
2141
+ name
2142
+ }
2143
+ attributeValues {
2144
+ name
2145
+ attributeKey {
2146
+ name
2147
+ }
2148
+ }
2149
+ }
2150
+ }
2151
+ }
2152
+ `,ua=p.gql`
2153
+ query TranscendCliFetchConsentManagerId {
2154
+ consentManager {
2155
+ consentManager {
2156
+ id
2157
+ }
2158
+ }
2159
+ }
2160
+ `,da=p.gql`
2161
+ query TranscendCliFetchConsentManager {
2162
+ consentManager {
2163
+ consentManager {
2164
+ id
2165
+ bundleURL
2166
+ testBundleURL
2167
+ configuration {
2168
+ domains
2169
+ consentPrecedence
2170
+ unknownRequestPolicy
2171
+ unknownCookiePolicy
2172
+ syncEndpoint
2173
+ telemetryPartitioning
2174
+ signedIabAgreement
2175
+ syncGroups
2176
+ partition
2177
+ }
2178
+ partition {
2179
+ partition
2180
+ }
2181
+ }
2182
+ }
2183
+ }
2184
+ `,fa=p.gql`
2185
+ query TranscendCliFetchConsentManagerTheme($airgapBundleId: ID!) {
2186
+ consentManagerTheme(input: { airgapBundleId: $airgapBundleId }) {
2187
+ theme {
2188
+ primaryColor
2189
+ fontColor
2190
+ privacyPolicy
2191
+ prompt
2192
+ }
2193
+ }
2194
+ }
2195
+ `,pa=p.gql`
2196
+ mutation TranscendCliCreateConsentManager($privacyCenterId: ID!) {
2197
+ createConsentManager(input: { privacyCenterId: $privacyCenterId }) {
2198
+ consentManager {
2199
+ id
2200
+ }
2201
+ }
2202
+ }
2203
+ `,ma=p.gql`
2204
+ mutation TranscendCliUpdateConsentManager(
2205
+ $airgapBundleId: ID!
2206
+ $version: String!
2207
+ ) {
2208
+ updateConsentManager(id: $airgapBundleId, input: { version: $version }) {
2209
+ clientMutationId
2210
+ }
2211
+ }
2212
+ `,ha=p.gql`
2213
+ mutation TranscendCliUpdateConsentManagerToLatest(
2214
+ $airgapBundleId: ID!
2215
+ $bundleType: ConsentBundleType!
2216
+ ) {
2217
+ updateConsentManagerToLatestVersion(
2218
+ id: $airgapBundleId
2219
+ input: { bundleType: $bundleType }
2220
+ ) {
2221
+ clientMutationId
2222
+ }
2223
+ }
2224
+ `,ga=p.gql`
2225
+ mutation TranscendCliDeployConsentManager(
2226
+ $airgapBundleId: ID!
2227
+ $bundleType: ConsentBundleType!
2228
+ ) {
2229
+ deployConsentManagerBundle(
2230
+ id: $airgapBundleId
2231
+ input: { bundleType: $bundleType }
2232
+ ) {
2233
+ clientMutationId
2234
+ }
2235
+ }
2236
+ `,_a=p.gql`
2237
+ mutation TranscendCliUpdateConsentManagerDomains(
2238
+ $airgapBundleId: ID!
2239
+ $domains: [String!]!
2240
+ ) {
2241
+ updateConsentManagerDomains(
2242
+ input: { id: $airgapBundleId, domains: $domains }
2243
+ ) {
2244
+ clientMutationId
2245
+ }
2246
+ }
2247
+ `,va=p.gql`
2248
+ mutation TranscendCliUpdateConsentManagerPartition(
2249
+ $airgapBundleId: ID!
2250
+ $partitionId: ID!
2251
+ ) {
2252
+ updateConsentManagerPartition(
2253
+ input: { id: $airgapBundleId, partitionId: $partitionId }
2254
+ ) {
2255
+ clientMutationId
2256
+ }
2257
+ }
2258
+ `,ya=p.gql`
2259
+ mutation TranscendCliUpdateLoadOptions($input: UpdateLoadOptionsInput!) {
2260
+ updateLoadOptions(input: $input) {
2261
+ clientMutationId
2262
+ }
2263
+ }
2264
+ `,ba=p.gql`
2265
+ mutation TranscendCliToggleUnknownRequestPolicy(
2266
+ $input: ToggleUnknownRequestPolicyInput!
2267
+ ) {
2268
+ toggleUnknownRequestPolicy(input: $input) {
2269
+ clientMutationId
2270
+ }
2271
+ }
2272
+ `,xa=p.gql`
2273
+ mutation TranscendCliToggleUnknownCookiePolicy(
2274
+ $input: ToggleUnknownCookiePolicyInput!
2275
+ ) {
2276
+ toggleUnknownCookiePolicy(input: $input) {
2277
+ clientMutationId
2278
+ }
2279
+ }
2280
+ `,Sa=p.gql`
2281
+ mutation TranscendCliToggleTelemetryPartitionStrategy(
2282
+ $input: ToggleTelemetryPartitionStrategyInput!
2283
+ ) {
2284
+ toggleTelemetryPartitioning(input: $input) {
2285
+ clientMutationId
2286
+ }
2287
+ }
2288
+ `,Ca=p.gql`
2289
+ mutation TranscendCliToggleConsentPrecedence(
2290
+ $input: ToggleConsentPrecedenceInput!
2291
+ ) {
2292
+ toggleConsentPrecedence(input: $input) {
2293
+ clientMutationId
2294
+ }
2295
+ }
2296
+ `,wa=p.gql`
2297
+ mutation TranscendCliUpdateConsentManagerTheme(
2298
+ $input: UpdateConsentManagerThemeInput!
2299
+ ) {
2300
+ updateConsentManagerTheme(input: $input) {
2301
+ clientMutationId
2302
+ }
2303
+ }
2304
+ `,Ta=p.gql`
2305
+ mutation TranscendCliUpdateConsentExperience($input: UpdateExperienceInput!) {
2306
+ updateExperience(input: $input) {
2307
+ clientMutationId
2308
+ }
2309
+ }
2310
+ `,Ea=p.gql`
2311
+ mutation TranscendCliCreateConsentExperience($input: CreateExperienceInput!) {
2312
+ createExperience(input: $input) {
2313
+ clientMutationId
2314
+ }
2315
+ }
2316
+ `,Da=p.gql`
2317
+ mutation TranscendCliCreateConsentPartition(
2318
+ $input: CreateConsentPartitionInput!
2319
+ ) {
2320
+ createConsentPartition(input: $input) {
2321
+ clientMutationId
2322
+ }
2323
+ }
2324
+ `,Oa=p.gql`
2325
+ query TranscendCliConsentManagerAnalyticsData($input: AnalyticsInput!) {
2326
+ analyticsData(input: $input) {
2327
+ series {
2328
+ name
2329
+ points {
2330
+ key
2331
+ value
2332
+ }
2333
+ }
2334
+ }
2335
+ }
2336
+ `,ka=p.gql`
2337
+ query TranscendCliBusinessEntities($first: Int!, $offset: Int!) {
2338
+ businessEntities(
2339
+ first: $first
2340
+ offset: $offset
2341
+ orderBy: [
2342
+ { field: createdAt, direction: ASC }
2343
+ { field: title, direction: ASC }
2344
+ ]
2345
+ useMaster: false
2346
+ ) {
2347
+ nodes {
2348
+ id
2349
+ title
2350
+ description
2351
+ dataProtectionOfficerName
2352
+ dataProtectionOfficerEmail
2353
+ address
2354
+ headquarterCountry
2355
+ headquarterSubDivision
2356
+ attributeValues {
2357
+ name
2358
+ attributeKey {
2359
+ name
2360
+ }
2361
+ }
2362
+ }
2363
+ }
2364
+ }
2365
+ `,Aa=p.gql`
2366
+ mutation TranscendCliCreateBusinessEntity(
2367
+ $input: CreateBusinessEntityInput!
2368
+ ) {
2369
+ createBusinessEntity(input: $input) {
2370
+ businessEntity {
2371
+ id
2372
+ title
2373
+ description
2374
+ dataProtectionOfficerName
2375
+ dataProtectionOfficerEmail
2376
+ address
2377
+ headquarterCountry
2378
+ headquarterSubDivision
2379
+ attributeValues {
2380
+ name
2381
+ attributeKey {
2382
+ name
2383
+ }
2384
+ }
2385
+ }
2386
+ }
2387
+ }
2388
+ `,ja=p.gql`
2389
+ mutation TranscendCliUpdateBusinessEntities(
2390
+ $input: [UpdateBusinessEntityInput!]!
2391
+ ) {
2392
+ updateBusinessEntities(input: { businessEntities: $input }) {
2393
+ clientMutationId
2394
+ }
2395
+ }
2396
+ `,Ma=p.gql`
2397
+ query TranscendCliActions($first: Int!, $offset: Int!) {
2398
+ actions(
2399
+ first: $first
2400
+ offset: $offset
2401
+ useMaster: false
2402
+ orderBy: [{ field: type, direction: ASC }]
2403
+ ) {
2404
+ nodes {
2405
+ id
2406
+ type
2407
+ skipSecondaryIfNoFiles
2408
+ skipDownloadableStep
2409
+ requiresReview
2410
+ regionList
2411
+ regionDetectionMethod
2412
+ waitingPeriod
2413
+ }
2414
+ }
2415
+ }
2416
+ `,Na=p.gql`
2417
+ mutation TranscendCliUpdateAction($input: UpdateActionInput!) {
2418
+ updateAction(input: $input) {
2419
+ clientMutationId
2420
+ }
2421
+ }
2422
+ `,Pa=p.gql`
2423
+ query TranscendCliGlobalActionItems(
2424
+ $first: Int!
2425
+ $offset: Int!
2426
+ $filterBy: GlobalActionItemFiltersInput!
2427
+ ) {
2428
+ globalActionItems(first: $first, offset: $offset, filterBy: $filterBy) {
2429
+ nodes {
2430
+ ids
2431
+ count
2432
+ teams {
2433
+ id
2434
+ name
2435
+ }
2436
+ customerExperienceActionItemIds
2437
+ users {
2438
+ id
2439
+ email
2440
+ }
2441
+ collections {
2442
+ title
2443
+ id
2444
+ }
2445
+ dueDate
2446
+ priority
2447
+ titles
2448
+ resolved
2449
+ notes
2450
+ links
2451
+ type
2452
+ additionalContexts {
2453
+ iconOverride
2454
+ requestId
2455
+ dataSiloId
2456
+ requestType
2457
+ latestAirgapVersion
2458
+ parentTitle
2459
+ }
2460
+ attributeValues {
2461
+ name
2462
+ attributeKey {
2463
+ name
2464
+ }
2465
+ }
2466
+ }
2467
+ }
2468
+ }
2469
+ `,Fa=p.gql`
2470
+ mutation TranscendCliUpdateActionItems($input: UpdateActionItemsInput!) {
2471
+ updateActionItems(input: $input) {
2472
+ clientMutationId
2473
+ }
2474
+ }
2475
+ `,Ia=p.gql`
2476
+ mutation TranscendCliCreateActionItems($input: [CreateActionItemsInput!]!) {
2477
+ createActionItems(input: $input) {
2478
+ clientMutationId
2479
+ }
2480
+ }
2481
+ `,La=p.gql`
2482
+ query TranscendCliFetchPrivacyCenterId($url: String!) {
2483
+ privacyCenter(lookup: { url: $url }) {
2484
+ id
2485
+ }
2486
+ }
2487
+ `,Ra=p.gql`
2488
+ query TranscendCliDeployedPrivacyCenterUrl {
2489
+ organization {
2490
+ deployedPrivacyCenterUrl
2491
+ }
2492
+ }
2493
+ `,za=p.gql`
2494
+ query TranscendCliFetchPrivacyCenters($url: String!) {
2495
+ privacyCenter(lookup: { url: $url }) {
2496
+ id
2497
+ url
2498
+ isDisabled
2499
+ showPrivacyRequestButton
2500
+ showPolicies
2501
+ showTrackingTechnologies
2502
+ showCookies
2503
+ showDataFlows
2504
+ showConsentManager
2505
+ showManageYourPrivacy
2506
+ showMarketingPreferences
2507
+ locales
2508
+ defaultLocale
2509
+ preferBrowserDefaultLocale
2510
+ supportEmail
2511
+ replyToEmail
2512
+ useNoReplyEmailAddress
2513
+ useCustomEmailDomain
2514
+ transformAccessReportJsonToCsv
2515
+ themeStr
2516
+ }
2517
+ }
2518
+ `,Ba=p.gql`
2519
+ mutation TranscendCliUpdatePrivacyCenter($input: UpdatePrivacyCenterInput!) {
2520
+ updatePrivacyCenter(input: $input) {
2521
+ clientMutationId
2522
+ }
2523
+ }
2524
+ `,Va=p.gql`
2525
+ mutation TranscendCliDetermineLoginMethod($email: String!) {
2526
+ determineLoginMethod(input: { email: $email }) {
2527
+ loginMethod {
2528
+ email
2529
+ sombraPublicKey
2530
+ }
2531
+ }
2532
+ }
2533
+ `,Ha=p.gql`
2534
+ mutation TranscendCliLogin(
2535
+ $email: String!
2536
+ $password: String!
2537
+ $publicKey: String!
2538
+ ) {
2539
+ login(
2540
+ input: { email: $email, password: $password }
2541
+ publicKey: $publicKey
2542
+ ) {
2543
+ user {
2544
+ roles {
2545
+ id
2546
+ organization {
2547
+ name
2548
+ id
2549
+ uri
2550
+ parentOrganizationId
2551
+ }
2552
+ }
2553
+ }
2554
+ }
2555
+ }
2556
+ `,Ua=p.gql`
2557
+ mutation TranscendCliAssumeRole($id: ID!, $publicKey: String!) {
2558
+ assumeRole(id: $id, publicKey: $publicKey) {
2559
+ clientMutationId
2560
+ }
2561
+ }
2562
+ `,Wa=p.gql`
2563
+ query TranscendCliLargeLanguageModels(
2564
+ $first: Int!
2565
+ $offset: Int!
2566
+ $filterBy: LargeLanguageModelFiltersInput
2567
+ ) {
2568
+ largeLanguageModels(
2569
+ first: $first
2570
+ orderBy: [
2571
+ { field: name, direction: ASC }
2572
+ { field: client, direction: ASC }
2573
+ { field: isTranscendHosted, direction: ASC }
2574
+ ]
2575
+ offset: $offset
2576
+ filterBy: $filterBy
2577
+ ) {
2578
+ nodes {
2579
+ id
2580
+ name
2581
+ client
2582
+ isTranscendHosted
2583
+ }
2584
+ }
2585
+ }
2586
+ `,Ga=p.gql`
2587
+ query TranscendCliAgents(
2588
+ $first: Int!
2589
+ $offset: Int!
2590
+ $filterBy: AgentFiltersInput
2591
+ ) {
2592
+ agents(
2593
+ first: $first
2594
+ offset: $offset
2595
+ filterBy: $filterBy
2596
+ orderBy: [
2597
+ { field: createdAt, direction: ASC }
2598
+ { field: name, direction: ASC }
2599
+ ]
2600
+ ) {
2601
+ nodes {
2602
+ id
2603
+ name
2604
+ agentId
2605
+ instructions
2606
+ description
2607
+ codeInterpreterEnabled
2608
+ retrievalEnabled
2609
+ prompt {
2610
+ title
2611
+ }
2612
+ largeLanguageModel {
2613
+ name
2614
+ client
2615
+ }
2616
+ teams {
2617
+ name
2618
+ }
2619
+ owners {
2620
+ email
2621
+ }
2622
+ agentFunctions {
2623
+ name
2624
+ }
2625
+ agentFiles {
2626
+ name
2627
+ }
2628
+ }
2629
+ }
2630
+ }
2631
+ `,Ka=p.gql`
2632
+ mutation TranscendCliCreateAgent($input: CreateAgentInput!) {
2633
+ createAgent(input: $input) {
2634
+ agent {
2635
+ id
2636
+ name
2637
+ agentId
2638
+ }
2639
+ }
2640
+ }
2641
+ `,qa=p.gql`
2642
+ mutation TranscendCliUpdateAgents($input: UpdateAgentsInput!) {
2643
+ updateAgents(input: $input) {
2644
+ clientMutationId
2645
+ }
2646
+ }
2647
+ `,Ja=p.gql`
2648
+ query TranscendCliAgentFiles(
2649
+ $first: Int!
2650
+ $offset: Int!
2651
+ $filterBy: AgentFileFiltersInput
2652
+ ) {
2653
+ agentFiles(
2654
+ first: $first
2655
+ offset: $offset
2656
+ filterBy: $filterBy
2657
+ orderBy: [
2658
+ { field: createdAt, direction: ASC }
2659
+ { field: name, direction: ASC }
2660
+ ]
2661
+ ) {
2662
+ nodes {
2663
+ id
2664
+ name
2665
+ description
2666
+ fileId
2667
+ size
2668
+ purpose
2669
+ initialFileName
2670
+ }
2671
+ }
2672
+ }
2673
+ `,Ya=p.gql`
2674
+ mutation TranscendCliCreateAgentFile($input: CreateAgentFileInput!) {
2675
+ createAgentFile(input: $input) {
2676
+ agentFile {
2677
+ id
2678
+ name
2679
+ fileId
2680
+ initialFileName
2681
+ }
2682
+ }
2683
+ }
2684
+ `,Xa=p.gql`
2685
+ mutation TranscendCliUpdateAgentFiles($input: UpdateAgentFilesInput!) {
2686
+ updateAgentFiles(input: $input) {
2687
+ clientMutationId
2688
+ }
2689
+ }
2690
+ `,Za=p.gql`
2691
+ query TranscendCliAgentFunctions($first: Int!, $offset: Int!) {
2692
+ agentFunctions(
2693
+ first: $first
2694
+ offset: $offset
2695
+ orderBy: [
2696
+ { field: createdAt, direction: ASC }
2697
+ { field: name, direction: ASC }
2698
+ ]
2699
+ ) {
2700
+ nodes {
2701
+ id
2702
+ name
2703
+ description
2704
+ parameters
2705
+ }
2706
+ }
2707
+ }
2708
+ `,Qa=p.gql`
2709
+ mutation TranscendCliCreateAgentFunction($input: CreateAgentFunctionInput!) {
2710
+ createAgentFunction(input: $input) {
2711
+ agentFunction {
2712
+ id
2713
+ name
2714
+ }
2715
+ }
2716
+ }
2717
+ `,$a=p.gql`
2718
+ mutation TranscendCliUpdateAgentFunctions(
2719
+ $input: UpdateAgentFunctionsInput!
2720
+ ) {
2721
+ updateAgentFunctions(input: $input) {
2722
+ clientMutationId
2723
+ }
2724
+ }
2725
+ `,eo=p.gql`
2726
+ query TranscendCliVendors($first: Int!, $offset: Int!) {
2727
+ vendors(
2728
+ first: $first
2729
+ offset: $offset
2730
+ useMaster: false
2731
+ isExportCsv: true
2732
+ orderBy: [
2733
+ { field: createdAt, direction: ASC }
2734
+ { field: title, direction: ASC }
2735
+ ]
2736
+ ) {
2737
+ nodes {
2738
+ id
2739
+ title
2740
+ description
2741
+ dataProcessingAgreementLink
2742
+ contactName
2743
+ contactEmail
2744
+ contactPhone
2745
+ address
2746
+ headquarterCountry
2747
+ headquarterSubDivision
2748
+ websiteUrl
2749
+ businessEntity {
2750
+ title
2751
+ }
2752
+ teams {
2753
+ name
2754
+ }
2755
+ owners {
2756
+ email
2757
+ }
2758
+ attributeValues {
2759
+ attributeKey {
2760
+ name
2761
+ }
2762
+ name
2763
+ }
2764
+ }
2765
+ }
2766
+ }
2767
+ `,to=p.gql`
2768
+ mutation TranscendCliCreateVendor($input: CreateVendorInput!) {
2769
+ createVendor(input: $input) {
2770
+ vendor {
2771
+ id
2772
+ title
2773
+ }
2774
+ }
2775
+ }
2776
+ `,no=p.gql`
2777
+ mutation TranscendCliUpdateVendor($input: UpdateVendorsInput!) {
2778
+ updateVendors(input: $input) {
2779
+ clientMutationId
2780
+ }
2781
+ }
2782
+ `,ro=p.gql`
2783
+ query TranscendCliDataSubCategories($first: Int!, $offset: Int!) {
2784
+ dataSubCategories(
2785
+ first: $first
2786
+ offset: $offset
2787
+ isExportCsv: true
2788
+ useMaster: false
2789
+ ) {
2790
+ nodes {
2791
+ id
2792
+ name
2793
+ category
2794
+ description
2795
+ regex
2796
+ teams {
2797
+ name
2798
+ }
2799
+ owners {
2800
+ email
2801
+ }
2802
+ attributeValues {
2803
+ attributeKey {
2804
+ name
2805
+ }
2806
+ name
2807
+ }
2808
+ }
2809
+ }
2810
+ }
2811
+ `,io=p.gql`
2812
+ mutation TranscendCliCreateDataSubCategory(
2813
+ $input: CreateDataInventorySubCategoryInput!
2814
+ ) {
2815
+ createDataSubCategory(input: $input) {
2816
+ dataSubCategory {
2817
+ id
2818
+ name
2819
+ category
2820
+ }
2821
+ }
2822
+ }
2823
+ `,ao=p.gql`
2824
+ mutation TranscendCliUpdateDataSubCategories(
2825
+ $input: UpdateDataSubCategoriesInput!
2826
+ ) {
2827
+ updateDataSubCategories(input: $input) {
2828
+ clientMutationId
2829
+ }
2830
+ }
2831
+ `,oo=p.gql`
2832
+ query TranscendCliProcessingPurposeSubCategories(
2833
+ $first: Int!
2834
+ $offset: Int!
2835
+ ) {
2836
+ processingPurposeSubCategories(
2837
+ first: $first
2838
+ offset: $offset
2839
+ isExportCsv: true
2840
+ useMaster: false
2841
+ ) {
2842
+ nodes {
2843
+ id
2844
+ name
2845
+ purpose
2846
+ description
2847
+ teams {
2848
+ name
2849
+ }
2850
+ owners {
2851
+ email
2852
+ }
2853
+ attributeValues {
2854
+ attributeKey {
2855
+ name
2856
+ }
2857
+ name
2858
+ }
2859
+ }
2860
+ }
2861
+ }
2862
+ `,so=p.gql`
2863
+ mutation TranscendCliCreateProcessingPurposeSubCategory(
2864
+ $input: CreateProcessingPurposeCategoryInput!
2865
+ ) {
2866
+ createProcessingPurposeSubCategory(input: $input) {
2867
+ processingPurposeSubCategory {
2868
+ id
2869
+ name
2870
+ purpose
2871
+ }
2872
+ }
2873
+ }
2874
+ `,co=p.gql`
2875
+ mutation TranscendCliUpdateProcessingPurposeSubCategories(
2876
+ $input: UpdateProcessingPurposeSubCategoriesInput!
2877
+ ) {
2878
+ updateProcessingPurposeSubCategories(input: $input) {
2879
+ clientMutationId
2880
+ }
2881
+ }
2882
+ `,lo=p.gql`
2883
+ query TranscendCliProcessingActivities($first: Int!, $offset: Int!) {
2884
+ processingActivities(first: $first, offset: $offset, useMaster: false) {
2885
+ nodes {
2886
+ id
2887
+ title
2888
+ description
2889
+ securityMeasureDetails
2890
+ controllerships
2891
+ storageRegions {
2892
+ countrySubDivision
2893
+ country
2894
+ }
2895
+ transferRegions {
2896
+ countrySubDivision
2897
+ country
2898
+ }
2899
+ retentionType
2900
+ retentionPeriod
2901
+ dataProtectionImpactAssessmentLink
2902
+ dataProtectionImpactAssessmentStatus
2903
+ attributeValues {
2904
+ name
2905
+ attributeKey {
2906
+ name
2907
+ }
2908
+ }
2909
+ dataSilos {
2910
+ title
2911
+ }
2912
+ dataSubjects {
2913
+ type
2914
+ }
2915
+ teams {
2916
+ name
2917
+ }
2918
+ owners {
2919
+ email
2920
+ }
2921
+ processingPurposeSubCategories {
2922
+ name
2923
+ purpose
2924
+ }
2925
+ dataSubCategories {
2926
+ name
2927
+ category
2928
+ }
2929
+ saaSCategories {
2930
+ title
2931
+ }
2932
+ }
2933
+ }
2934
+ }
2935
+ `,uo=p.gql`
2936
+ mutation TranscendCliCreateProcessingActivity(
2937
+ $input: CreateProcessingActivityInput!
2938
+ ) {
2939
+ createProcessingActivity(input: $input) {
2940
+ processingActivity {
2941
+ id
2942
+ title
2943
+ }
2944
+ }
2945
+ }
2946
+ `,fo=p.gql`
2947
+ mutation TranscendCliUpdateProcessingActivities(
2948
+ $input: UpdateProcessingActivitiesInput!
2949
+ ) {
2950
+ updateProcessingActivities(input: $input) {
2951
+ clientMutationId
2952
+ }
2953
+ }
2954
+ `,po=p.gql`
2955
+ query TranscendSombraVersion {
2956
+ organization {
2957
+ sombra {
2958
+ version
2959
+ }
2960
+ }
2961
+ }
2962
+ `,mo=p.gql`
2963
+ query TranscendCliSiloDiscoveryResults($first: Int!, $offset: Int!) {
2964
+ siloDiscoveryResults(first: $first, offset: $offset) {
2965
+ nodes {
2966
+ title
2967
+ resourceId
2968
+ country
2969
+ countrySubDivision
2970
+ plaintextContext
2971
+ status
2972
+ containsSensitiveData
2973
+ suggestedCatalog {
2974
+ title
2975
+ }
2976
+ plugin {
2977
+ dataSilo {
2978
+ title
2979
+ }
2980
+ }
2981
+ }
2982
+ }
2983
+ }
2984
+ `,G=`[NONE]`,ho=`[APPLY VALUE TO ALL ROWS]`,go=`<blank>`,_o=[`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 vo={[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},yo={[K.RequestType]:!0,[K.SubjectType]:!0},bo=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}))}),xo=l.type({id:l.string,link:l.string,rowIndex:l.number,coreIdentifier:l.string,attemptedAt:l.string}),So=l.type({failingRequests:l.array(l.record(l.string,l.any)),successfulRequests:l.array(xo),duplicateRequests:l.array(l.type({rowIndex:l.number,coreIdentifier:l.string,attemptedAt:l.string}))});function Co(e,t){return(0,g.default)(e.toLowerCase(),t.toLowerCase())||(0,g.default)(t.toLowerCase(),e.toLowerCase())}function wo(e,t,n,r){let i=e.filter(e=>Co(t.toLowerCase(),e.toLowerCase()));return[...i,new m.default.Separator,...n?[]:[G],...r?[ho]:[],...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=>Co(e,t)),source:(e,n)=>n?t.filter(e=>typeof e==`string`&&Co(n,e)):t})));return{...n,...(0,a.apply)(i,e=>typeof e==`string`?e:Object.values(e)[0])}}function To(e){return e.split(`,`).map(e=>e.trim()).filter(e=>e)}const Eo=l.type({key:l.string,values:l.array(l.string)});function Do(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 Oo(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 ko(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 Ao(e,{promptRunId:t,promptRunMessages:n=[],...r}){let{addMessagesToPromptRun:{promptRun:i}}=await $(e,Gi,{input:{...r,...t,promptRunMessages:n.map(({content:e,...t})=>({...t,message:e}))}});return i.id}function jo(e,n){return new p.GraphQLClient(`${e}/graphql`,{headers:{...n,version:t.h}})}function Y(e,t){return jo(e,{Authorization:`Bearer ${t}`})}async function Mo(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 No(e){return v.default.extend({prefixUrl:e})}async function Po(e,{id:t,bundleType:n}){await $(e,ga,{airgapBundleId:t,bundleType:n})}async function Fo(e,{id:t,bundleType:n}){await $(e,ha,{airgapBundleId:t,bundleType:n})}async function Io(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 Lo=20;async function Ro(e,t={}){let n=[],r=0,i=!1;do{let{globalActionItems:{nodes:a}}=await $(e,Pa,{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 zo=20;async function Bo(e){let t=[],n=0,r=!1;do{let{actions:{nodes:i}}=await $(e,Ma,{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 Vo=20;async function Ho(e,t={}){let n=[],r=0,i=!1;do{let{agentFiles:{nodes:a}}=await $(e,Ja,{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 Uo=20;async function Wo(e){let t=[],n=0,r=!1;do{let{agentFunctions:{nodes:i}}=await $(e,Za,{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 Go=20;async function Ko(e,t={}){let n=[],r=0,i=!1;do{let{agents:{nodes:a}}=await $(e,Ga,{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 qo=20;async function Jo(e){let t=[],n=0,r=!1;do{let{assessmentForms:{nodes:i}}=await $(e,_i,{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 Yo=20;async function Xo(e){let t=[],n=0,r=!1;do{let{assessmentFormTemplates:{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.title.localeCompare(t.title))}const Zo=50;async function Qo(e,t){let{createPrivacyCenterAccessTokens:{nodes:n}}=await $(e,Wr,{input:{records:t}});return n.map(e=>e.token)}async function $o(e,t,n,r=10){let i=0;n&&n(0);let a=[];return await U(B(t,50),async t=>{let r=(await Qo(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 es=20;async function ts(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 ns=100;async function rs(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,$i,{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 is=[i.AttributeKeyType.MultiSelect,i.AttributeKeyType.SingleSelect];async function as(e){r.t.info(c.default.magenta(`Fetching all attributes...`));let t=[],n=0,i=!1;do{let{attributeKeys:{nodes:r}}=await $(e,Yi,{first:100,offset:n});t.push(...await Promise.all(r.map(async t=>({...t,values:is.includes(t.type)?await rs(e,t.id):[]})))),n+=100,i=r.length===100}while(i);return t.sort((e,t)=>e.name.localeCompare(t.name))}const os=20;async function ss(e){let t=[],n=0,r=!1;do{let{businessEntities:{nodes:i}}=await $(e,ka,{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 cs(e){let{consentManager:{consentManager:t}}=await $(e,da);return t}async function X(e,t){let{consentManager:{consentManager:n}}=await $(e,ua,{},{},t);return n.id}const ls=50;async function us(e){let t=[],n=0,r=!1;do{let{experiences:{nodes:i}}=await $(e,ra,{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 ds=function(e){return e.Hourly=`1h`,e.Daily=`1d`,e}({});async function fs(e,t){let{analyticsData:{series:n}}=await $(e,Oa,{input:t});return n}async function ps(e,t){let{consentManagerTheme:{theme:n}}=await $(e,fa,{airgapBundleId:t});return n}const ms=20;async function hs(e,t=i.ConsentTrackerStatus.Live){let n=[],r=0,a=await X(e),o=!1;do{let{cookies:{nodes:i}}=await $(e,la,{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 gs=20;async function _s(e){let t=[],n=0,r=!1;do{let{dataSubCategories:{nodes:i}}=await $(e,ro,{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 vs=20;async function ys(e,t=i.ConsentTrackerStatus.Live){let n=[],r=0,a=await X(e),o=!1;do{let{dataFlows:{nodes:s}}=await $(e,ca,{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 bs(e){let{translatedMessages:t}=await $(e,di,{});return t}async function xs(e){let{organization:t}=await $(e,Ra);return t.deployedPrivacyCenterUrl}async function Ss(e,t){let n=t;n||=await xs(e);let{privacyCenter:r}=await $(e,La,{url:n});return r.id}async function Cs(e){let{privacyCenterPolicies:t}=await $(e,ii,{url:await xs(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 ws=20;async function Ts(e){let t=[],n=0,r=!1;do{let{preferenceTopics:{nodes:i}}=await $(e,bi,{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 Es(e){let{privacyCenter:{themeStr:t,...n}}=await $(e,za,{url:await xs(e)});return[{...n,theme:JSON.parse(t)}]}const Ds=20;async function Os(e){let t=[],n=0,r=!1;do{let{processingActivities:{nodes:i}}=await $(e,lo,{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 ks=20;async function As(e){let t=[],n=0,r=!1;do{let{processingPurposeSubCategories:{nodes:i}}=await $(e,oo,{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 js=20;async function Ms(e,{includeDeleted:t=!1}={}){let n=[],r=0,i=!1;do{let{purposes:{nodes:a}}=await $(e,yi,{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 Ns(e){let[t,n]=await Promise.all([Ms(e),Ts(e)]);return t.map(e=>{let t=n.filter(t=>t.purpose.trackingType===e.trackingType);return{...e,topics:t}})}const Ps=50;async function Fs(e,{requestId:t}){let n=[],r=0,i=!1;do{let{requestEnrichers:{nodes:a}}=await $(e,pi,{first:50,offset:r,requestId:t});n.push(...a),r+=50,i=a.length===50}while(i);return n}const Is=50;async function Ls(e,{requestId:t}){let n=[],r=0,i=!1;do{let{requestIdentifiers:{nodes:a}}=await $(e,Bi,{first:50,offset:r,requestIds:[t]});n.push(...a),r+=50,i=a.length===50}while(i);return n}const Rs=`7.180.0`,zs=l.type({id:l.string,name:l.string,value:l.string,type:(0,a.valuesOf)(i.IdentifierType)}),Bs=50,Vs=l.type({identifiers:l.array(zs)});async function Hs(e,t,{requestId:n}){let r=[],i=0,o=!1,{organization:{sombra:{version:s}}}=await $(e,po);if(s&&y.default.lt(s,Rs))throw Error(`Please upgrade Sombra to ${Rs} or greater to use this command.`);do{let e;try{e=await t.post(`v1/request-identifiers`,{json:{first:50,offset:i,requestId:n}}).json()}catch(e){throw Error(`Failed to fetch request identifiers: ${e?.response?.body||e?.message}`)}let{identifiers:s}=(0,a.decodeCodec)(Vs,e);r.push(...s),i+=50,o=s.length===50}while(o);return r}const Us=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}))}),Ws=l.intersection([l.type({id:l.string,createdAt:l.string,email:l.string,type:(0,a.valuesOf)(i.RequestAction),link:l.string,isSilent:l.boolean,origin:(0,a.valuesOf)(i.RequestOrigin),isTest:l.boolean,coreIdentifier:l.string,details:l.string,locale:(0,a.valuesOf)(d.LOCALE_KEY),status:(0,a.valuesOf)(i.RequestStatus),subjectType:l.string,country:l.union([l.null,(0,a.valuesOf)(i.IsoCountryCode)]),countrySubDivision:l.union([l.null,(0,a.valuesOf)(i.IsoCountrySubdivisionCode)]),attributeValues:l.array(l.type({id:l.string,attributeKey:l.type({name:l.string,id:l.string}),name:l.string}))}),l.partial({daysRemaining:l.union([l.null,l.number]),purpose:Us})]),Gs=50;async function Q(e,{actions:t=[],statuses:n=[],origins:i=[],text:a,createdAtBefore:o,createdAtAfter:s,isTest:l,isSilent:u,isClosed:d,requestIds:f=[]}={}){r.t.info(c.default.magenta(`Fetching requests...`));let p=new Date().getTime(),m=new b.default.SingleBar({},b.default.Presets.shades_classic),h=[],g=0,_=!1;do{let{requests:{nodes:f,totalCount:p}}=await $(e,oi,{first:50,offset:g,filterBy:{text:a,type:t.length>0?t:void 0,status:n.length>0?n:void 0,origin:i.length>0?i:void 0,isTest:l,isSilent:u,isClosed:d,createdAtBefore:o?o.toISOString():void 0,createdAtAfter:s?s.toISOString():void 0}});g===0&&p>50&&(r.t.info(c.default.magenta(`Fetching ${p} requests`)),m.start(p,0)),h.push(...f),g+=50,m.update(g),_=f.length===50}while(_);m.stop();let v=new Date().getTime()-p;r.t.info(c.default.green(`Completed fetching of ${h.length} request in "${v/1e3}" seconds.`));let y=h;return f&&f.length>0&&(y=y.filter(e=>f.includes(e.id)),r.t.info(c.default.green(`Filtered down to ${y.length} requests based on ${f.length} provided IDs.`))),y}const Ks=20;async function qs(e){let t=[],n=0,r=!1;do{let{teams:{nodes:i}}=await $(e,Ii,{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 Js=20;async function Ys(e){let t=[],n=0,r=!1;do{let{users:{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.email.localeCompare(t.email))}const Xs=20;async function Zs(e){let t=[],n=0,r=!1;do{let{vendors:{nodes:i}}=await $(e,eo,{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 Qs=20,$s=`https://app.transcend.io/infrastructure/api-keys`;async function ec(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 tc({"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 ec(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 nc=100;async function rc(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 ic(e){let t=await rc(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 ac(e){let{internalSubjects:t}=await $(e,Pr);return t}async function oc({"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 ac(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 sc(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 cc(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 lc=20;async function uc(e){let t=[],n=0,r=!1;do{let{promptGroups:{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 dc=20;async function fc(e){let t=[],n=0,r=!1;do{let{promptPartials:{nodes:i}}=await $(e,Ci,{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 pc=20;async function mc(e,{text:t,titles:n=[],ids:r=[]}={}){let i=[],a=0,o=!1;do{let{prompts:{nodes:s}}=await $(e,Si,{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 hc(e,{promptTitles:t=[],promptIds:n=[]}={}){let{promptsWithVariables:r}=await $(e,Ti,{input:{...t.length>0?{promptTitles:t}:{},...n.length>0?{promptIds:n}:{}}});return r}const gc=20;async function _c(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 vc(e,{requestId:t,dataSiloId:n,requestStatuses:r,statuses:i}){let{requestDataSilos:{totalCount:a}}=await $(e,Mi,{first:1,offset:0,filterBy:{dataSiloId:n,requestId:t,status:i,requestStatus:r}});return a}const yc=100;async function bc(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,Mi,{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 xc(e,{requestId:t,dataSiloId:n}){let r=await bc(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 Sc(e,{dataSiloId:t}){let{listReducedRequestsForDataSilo:{totalCount:n}}=await $(e,Fi,{input:{dataSiloId:t,isResolved:!1}});return n}async function Cc(e,t,n){let r=[],i=null,a=!1;do{let{bulkRequestFiles:{nodes:o,pageInfo:s}}=await $(e,Ui,{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 wc(e,{email:t,password:n}){let{determineLoginMethod:{loginMethod:r}}=await $(e,Va,{email:t}),i=await e.rawRequest(Ha,{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 Tc(e,{email:t,roleId:n}){let{determineLoginMethod:{loginMethod:r}}=await $(e,Va,{email:t,userId:n});await e.rawRequest(Ua,{id:n,publicKey:r.sombraPublicKey})}async function Ec(e,t){let{createApiKey:{apiKey:n}}=await $(e,Hr,{input:t});return n}async function Dc(e,t){await $(e,Ur,{id:t})}const Oc=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)}),kc=l.type({dependsOnQuestionReferenceId:l.string,comparisonOperator:l.union([l.literal(i.ComparisonOperator.IsNotShown),l.literal(i.ComparisonOperator.IsShown)])}),Ac=l.union([Oc,kc]),jc=l.recursion(`AssessmentNestedRule`,e=>l.intersection([l.type({logicOperator:(0,a.valuesOf)(i.LogicOperator)}),l.partial({rules:l.array(Ac),nestedRules:l.array(e)})])),Mc=l.partial({action:(0,a.valuesOf)(i.AssessmentsDisplayLogicAction),rule:Ac,nestedRule:jc});function Nc(e){return(0,a.decodeCodec)(Mc,e)}const Pc=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 Fc(e){return(0,a.decodeCodec)(Pc,e)}const Ic=20;async function Lc(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 Rc(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 zc(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 Rc(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 Bc(e,{ids:t,pageSize:n,titles:i,debug:a,skipDatapoints:o,skipSubDatapoints:s,includeGuessedCategories:l,integrationNames:u}){let d=[],f=await Lc(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 zc(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 Vc(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 Lc(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`]?sc(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(`
2985
+ `)}`)),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 Hc(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 Uc=20;async function Wc(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 Gc(e,{enricher:t,identifierByName:n,dataSubjectsByName:r}){let a=(await Wc(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 Kc=20;async function qc(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 Jc(e,t){(await qc(t,e.title)).find(({title:t})=>t===e.title)||await $(t,Jr,{title:e.title})}function Yc(e){return e.map(({country:e,countrySubDivision:t})=>({country:e,...t?{countrySubDivision:t}:{}}))}async function Xc(e,t={}){let{globalActionItemCollections:{nodes:n}}=await $(e,Ki,{filterBy:{...t}});return n}const Zc=50;async function Qc(e){let t=[],n=0,r=!1;do{let{consentPartitions:{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))}async function $c(e,t){let n=await X(e),i=!1,a=await Qc(e);return await W(V(t.map(({name:e})=>e),a.map(({name:e})=>e)),async t=>{try{await $(e,Da,{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 el=30;async function tl(e){let t=[],n=0,r=!1;do{let{siloDiscoveryResults:{nodes:i}}=await $(e,mo,{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 nl=[n.o.DataSilos,n.o.Enrichers,n.o.Templates,n.o.ApiKeys];async function rl(e,{dataSiloIds:a,integrationNames:o,debug:s,resources:l=nl,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)?ac(e):[],l.includes(n.o.ApiKeys)?tc({},e,!0):[],l.includes(n.o.DataSilos)?Bc(e,{ids:a,integrationNames:o,pageSize:u,debug:s,includeGuessedCategories:f,skipDatapoints:d,skipSubDatapoints:p}):[],l.includes(n.o.Enrichers)?Wc(e):[],l.includes(n.o.DataFlows)?[...m.includes(i.ConsentTrackerStatus.Live)?await ys(e,i.ConsentTrackerStatus.Live):[],...m.includes(i.ConsentTrackerStatus.NeedsReview)?await ys(e,i.ConsentTrackerStatus.NeedsReview):[]]:[],l.includes(n.o.Cookies)?[...m.includes(i.ConsentTrackerStatus.Live)?await hs(e,i.ConsentTrackerStatus.Live):[],...m.includes(i.ConsentTrackerStatus.NeedsReview)?await hs(e,i.ConsentTrackerStatus.NeedsReview):[]]:[],l.includes(n.o.Attributes)?as(e):[],l.includes(n.o.Templates)?qc(e):[],l.includes(n.o.Identifiers)?Jd(e):[],l.includes(n.o.Actions)?Bo(e):[],l.includes(n.o.BusinessEntities)?ss(e):[],l.includes(n.o.ProcessingActivities)?Os(e):[],l.includes(n.o.ConsentManager)?cs(e):void 0,l.includes(n.o.ConsentManager)?us(e):[],l.includes(n.o.Prompts)?mc(e):[],l.includes(n.o.PromptPartials)?fc(e):[],l.includes(n.o.PromptGroups)?uc(e):[],l.includes(n.o.Agents)?Ko(e):[],l.includes(n.o.AgentFunctions)?Wo(e):[],l.includes(n.o.AgentFiles)?Ho(e):[],l.includes(n.o.Vendors)?Zs(e):[],l.includes(n.o.DataCategories)?_s(e):[],l.includes(n.o.ProcessingPurposes)?As(e):[],l.includes(n.o.ActionItems)?Ro(e,{type:[i.ActionItemCode.Onboarding]}):[],l.includes(n.o.ActionItemCollections)?Xc(e):[],l.includes(n.o.Teams)?qs(e):[],l.includes(n.o.Policies)?Cs(e):[],l.includes(n.o.PrivacyCenters)?Es(e):[],l.includes(n.o.Messages)?bs(e):[],l.includes(n.o.Partitions)?Qc(e):[],l.includes(n.o.Assessments)?Jo(e):[],l.includes(n.o.AssessmentTemplates)?Xo(e):[],l.includes(n.o.Purposes)?Ns(e):[],l.includes(n.o.SystemDiscovery)?tl(e):[]]),ue=l.includes(n.o.ConsentManager)&&D?await ps(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?Nc(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=Fc(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?Nc(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=Fc(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?Yc(a):void 0,transferRegions:o.length>0?Yc(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?cc(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 il(e,t){let{reportPromptRun:{promptRun:n}}=await $(e,Wi,{input:{...t,promptRunMessages:t.promptRunMessages.map(({content:e,...t})=>({...t,message:e}))}});return n.id}async function al(e,t){await $(e,mi,{requestEnricherId:t})}async function ol(e,t){await $(e,na,{input:t})}const sl=[...Object.values(i.IsoCountryCode),...Object.values(i.IsoCountrySubdivisionCode)];async function cl(e,{action:t,actionId:n,skipPublish:r=!1}){await $(e,Na,{input:{id:n,skipSecondaryIfNoFiles:t.skipSecondaryIfNoFiles,skipDownloadableStep:t.skipDownloadableStep,requiresReview:t.requiresReview,waitingPeriod:t.waitingPeriod,skipPublish:r,regionList:t.regionBlockList?V(sl,t.regionBlockList):t.regionList,regionDetectionMethod:t.regionDetectionMethod}})}async function ll(e,t){let{createActionItemCollection:n}=await $(e,qi,{input:{title:t.title,description:t.description||``,hidden:t.hidden||!1,productLine:t.productLine}});return n.created}async function ul(e,t,n){await $(e,Ji,{input:{id:n,title:t.title,description:t.description,hidden:t.hidden,productLine:t.productLine}})}async function dl(e,n){let i=!1;r.t.info(c.default.magenta(`Syncing "${n.length}" action item collections...`));let a=t.g(await Xc(e),`title`);return await W(n.filter(e=>!a[e.title]),async t=>{try{await ll(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 ul(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 fl(e,t,n,r={}){await W(B(t,100),async t=>{await $(e,Ia,{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 pl(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,Fa,{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 ml({title:e,collections:t}){return`${e}-${t.map(e=>e.title).sort().join(`-`)}`}function hl({title:e,collections:t}){return`${e}-${t.sort().join(`-`)}`}async function gl(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([Ro(e),Xc(e),a?as(e):[]]),u=t.g(s,`title`),d=t.g(o,ml),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[hl(e)]&&!p[e.customerExperienceActionItemId]);if(h.length>0)try{r.t.info(c.default.magenta(`Creating "${h.length}" actionItems...`)),await fl(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[hl(e)]?.id||p[e.customerExperienceActionItemId]?.id]).filter(e=>!!e[1]),async([t,n])=>{try{await pl(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 _l(e,t){let{createAgentFile:n}=await $(e,Ya,{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 vl(e,t){await $(e,Xa,{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 yl(e,n){r.t.info(c.default.magenta(`Syncing "${n.length}" agent files...`));let i=!1,a=t.g(await Ho(e),`name`);await W(n.filter(e=>!a[e.name]),async t=>{try{let n=await _l(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 vl(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 bl(e,t){let{createAgentFunction:n}=await $(e,Qa,{input:{name:t.name,description:t.description,parameters:t.parameters,agentIds:[]}});return n.agentFunction}async function xl(e,t){await $(e,$a,{input:{agentFunctions:t.map(([e,t])=>({id:t,name:e.name,description:e.description,parameters:e.parameters}))}})}async function Sl(e,n){r.t.info(c.default.magenta(`Syncing "${n.length}" agent functions...`));let i=!1,a=t.g(await Wo(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 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 xl(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 Cl(e,t){let{createAgent:n}=await $(e,Ka,{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 wl(e,t){await $(e,qa,{input:{agents:t.map(([e,t])=>({id:t,name:e.name,description:e.description,codeInterpreterEnabled:e.codeInterpreterEnabled,retrievalEnabled:e.retrievalEnabled}))}})}async function Tl(e,n){r.t.info(c.default.magenta(`Syncing "${n.length}" agents...`));let i=!1,a=t.g(await Ko(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 "${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 wl(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 El(e,n,{existingAttribute:i,deleteExtraAttributeValues:a}){let o={name:n.name,enabledOn:n.resources},s;if(i)await $(e,ta,{attributeKeyId:i.id,description:i.isCustom?n.description:void 0,...o}),s=i.id;else{let{createAttributeKey:{attributeKey:t}}=await $(e,ea,{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,Xi,{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,Zi,{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,Qi,{id:l[t].id})},{concurrency:10}),r.t.info(c.default.green(`Deleted ${f.length} attribute values`)))}async function Dl(e,t){let{createBusinessEntity:n}=await $(e,Aa,{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 Ol(e,t){await W(B(t,100),async t=>{await $(e,ja,{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 kl(e,n){r.t.info(c.default.magenta(`Syncing "${n.length}" business entities...`));let i=!1,a=t.g(await ss(e),`title`);await W(n.filter(e=>!a[e.title]),async t=>{try{let n=await Dl(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 Ol(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 Al=20;async function jl(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 Ml=20;async function Nl(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 Pl=100;async function Fl(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 Il(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 Ll(e,n,i=20){let a=!1,o=[];r.t.info(c.default.magenta(`Syncing software development kits...`));let s=t.g(await Nl(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 Fl(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 Il(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 Rl=20;async function zl(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 Bl=100;async function Vl(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 Hl(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 Ul(e,n,i=20){let a=!1,o=[],s=t.g(await zl(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 Vl(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 Hl(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 Wl=100,Gl=`%%%%`;async function Kl(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 ql(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 Jl(e,n,i=20){let a=!1,[o,{softwareDevelopmentKits:s}]=await Promise.all([jl(e),Ll(e,dr(n.map(({type:e,softwareDevelopmentKits:t=[]})=>t.map(({name:t})=>({name:t,codePackageType:e}))).flat(),({name:e,codePackageType:t})=>`${e}${Gl}${t}`),i),Ul(e,dr(n,`repositoryName`).map(({repositoryName:e})=>({name:e,url:`https://github.com/${e}`})))]),l=t.g(s,({name:e,codePackageType:t})=>`${e}${Gl}${t}`),u=t.g(o,({name:e,type:t})=>`${e}${Gl}${t}`),d=n.map(e=>[e,u[`${e.name}${Gl}${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 Kl(e,{...n,...t?{softwareDevelopmentKitIds:H(t.map(({name:e})=>{let t=l[`${e}${Gl}${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 ql(e,t.map(([{softwareDevelopmentKits:e,repositoryName:t,...n},r])=>({...n,...e?{softwareDevelopmentKitIds:H(e.map(({name:e})=>{let t=l[`${e}${Gl}${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 Yl=`https://app.transcend.io/consent-manager/regional-experiences/purposes`;async function Xl(e,n){let i=t.g(await us(e),`name`),a=t.g(await Ms(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 ${Yl}`);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 ${Yl}`);return r.id}),l=i[t.name];l?(await $(e,Ta,{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,Ea,{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 Zl(e,t){let n;try{n=await X(e,1)}catch(r){if(r.message.includes(`AirgapBundle not found`)){let r=await Ss(e),{createConsentManager:i}=await $(e,pa,{domains:t.domains,privacyCenterId:r});n=i.consentManager.id}else throw r}if(t.domains&&await $(e,_a,{domains:t.domains,airgapBundleId:n}),t.partition){let r=(await Qc(e)).find(e=>e.name===t.partition);if(!r)throw Error(`Partition "${t.partition}" not found. Please create the partition first.`);await $(e,va,{partitionId:r.id,airgapBundleId:n})}t.version&&await $(e,ma,{airgapBundleId:n,version:t.version}),t.signedIabAgreement&&await $(e,ya,{input:{id:n,...t.signedIabAgreement?{signedIabAgreement:t.signedIabAgreement}:{}}}),t.unknownRequestPolicy&&await $(e,ba,{input:{id:n,unknownRequestPolicy:t.unknownRequestPolicy}}),t.unknownRequestPolicy&&await $(e,xa,{input:{id:n,unknownCookiePolicy:t.unknownCookiePolicy}}),t.telemetryPartitioning&&await $(e,Sa,{input:{id:n,strategy:t.telemetryPartitioning}}),t.consentPrecedence&&await $(e,Ca,{input:{id:n,consentPrecedence:t.consentPrecedence}}),t.experiences&&await Xl(e,t.experiences),t.theme&&await $(e,wa,{input:{airgapBundleId:n,...t.theme}})}const Ql=100;async function $l(e,t){let n=await X(e);await W(B(t,100),async t=>{await $(e,sa,{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 eu(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 $l(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 tu(e,t){let{createDataCategory:n}=await $(e,io,{input:{name:t.name,category:t.category,description:t.description}});return n.dataCategory}async function nu(e,t){await $(e,ao,{input:{dataSubCategories:t.map(([e,t])=>({id:t,description:e.description,attributes:e.attributes}))}})}async function ru(e,n){r.t.info(c.default.magenta(`Syncing "${n.length}" data categories...`));let i=!1,a=t.g(await _s(e),({name:e,category:t})=>`${e}:${t}`);await W(n.filter(e=>!a[`${e.name}:${e.category}`]),async t=>{try{let n=await tu(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 nu(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 iu=100;async function au(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,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 ou(e,t,n=!1){let r=await X(e);await W(B(t,100),async t=>{await $(e,aa,{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 su(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([ys(e,i.ConsentTrackerStatus.Live),ys(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 ou(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 au(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 cu(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 lu(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 uu=100;async function du(e,t){await W(B(t,100),async t=>{await $(e,fi,{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 fu(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 du(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 pu=100;async function mu(e,t){let n=await Ss(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 hu(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 Cs(e),({title:e})=>e.defaultMessage);try{r.t.info(c.default.magenta(`Upserting "${n.length}" new policies...`)),await mu(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 gu(e,t){let n=!1;r.t.info(c.default.magenta(`Syncing privacy center...`));let i=await Ss(e);try{await $(e,Ba,{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 _u(e,t){let{createProcessingActivity:n}=await $(e,uo,{input:{title:t.title,description:t.description}});return n.processingActivity}async function vu(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,fo,{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 yu(e,n){let i=!1;r.t.info(c.default.magenta(`Syncing "${n.length}" processing activities...`));let a=t.g(await Os(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 _u(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 vu(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 bu(e,t){let{createProcessingPurposeSubCategory:n}=await $(e,so,{input:{name:t.name,purpose:t.purpose,description:t.description}});return n.processingPurposeSubCategory}async function xu(e,t){await $(e,co,{input:{processingPurposeSubCategories:t.map(([e,t])=>({id:t,description:e.description,attributes:e.attributes}))}})}async function Su(e,n){r.t.info(c.default.magenta(`Syncing "${n.length}" processing purposes...`));let i=!1,a=t.g(await As(e),({name:e,purpose:t})=>`${e}:${t}`);await W(n.filter(e=>!a[`${e.name}:${e.purpose}`]),async t=>{try{let n=await bu(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 xu(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 Cu(e,t){let{createPrompt:{prompt:n}}=await $(e,Di,{input:t});return r.t.info(c.default.green(`Successfully created prompt "${t.title}"!`)),n.id}async function wu(e,t){await $(e,Ei,{input:{prompts:t.map(([e,t])=>({...e,id:t}))}}),r.t.info(c.default.green(`Successfully updated ${t.length} prompts!`))}async function Tu(e,n,i=20){let a=!1;r.t.info(c.default.magenta(`Syncing "${n.length}" prompts...`));let o=t.g(await mc(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 Cu(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 wu(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 Eu(e,t){let{createVendor:n}=await $(e,to,{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 Du(e,t){await $(e,no,{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 Ou(e,n){r.t.info(c.default.magenta(`Syncing "${n.length}" vendors...`));let i=!1,a=t.g(await Zs(e),`title`);await W(n.filter(e=>!a[e.title]),async t=>{try{let n=await Eu(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 Du(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 ku=1e3;async function Au(e,t,n){await W(B(n,1e3),async n=>{await $(e,Gr,{pluginId:t,rawResults:n})})}async function ju({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,concurrency:u=100,transcendUrl:d=t.a}){let f=Y(d,n),p=new Date().getTime(),m=new b.default.SingleBar({},b.default.Presets.shades_classic),h=await Q(f,{actions:e,statuses:o,createdAtBefore:l,createdAtAfter:s,isSilent:!1,requestIds:a});r.t.info(c.default.magenta(`Marking "${h.length}" as silent mode.`));let g=0;m.start(h.length,0),await U(h,async e=>{await $(f,li,{input:{id:e.id,isSilent:!0}}),g+=1,m.update(g)},{concurrency:u}),m.stop();let _=new Date().getTime()-p;return r.t.info(c.default.green(`Successfully marked ${g} requests as silent mode in "${_/1e3}" seconds!`)),h.length}async function Mu(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=wo(e,n,vo[t],!!yo[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 Nu(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 Pu=l.record(l.string,l.array(l.intersection([l.type({value:l.string}),l.partial({name:l.string})]))),Fu=l.intersection([l.type({email:l.string,attestedExtraIdentifiers:Pu,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(Eo),status:(0,a.valuesOf)(i.CompletedRequestStatus),createdAt:x.DateFromISOString,dataSiloIds:l.array(l.string),locale:(0,a.valuesOf)(d.LOCALE_KEY)})]);function Iu(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 Lu(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=Iu(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?To(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===ho?t.getValue(`requestTypeToRequestAction`,go):t.getValue(`requestTypeToRequestAction`,e[u]),subjectType:d===ho?t.getValue(`subjectTypeToSubjectName`,go):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:To(e[c(K.DataSiloIds)])}:{}}]})}const Ru=l.type({defaultMessage:l.string,id:l.string}),zu=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([Ru,l.null]),description:l.union([Ru,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)})}),Bu=l.type({nodes:l.array(zu),totalCount:l.number,_links:l.partial({next:l.union([l.string,l.null]),previous:l.union([l.string,l.null])})});async function Vu(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)(Bu,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 Hu(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 Uu({auth:e,folderPath:n,requestIds:a,createdAtBefore:l,sombraAuth:u,createdAtAfter:d,statuses:f=[i.RequestStatus.Approving,i.RequestStatus.Downloadable],concurrency:p=5,transcendUrl:m=t.a,approveAfterDownload:h=!1}){let g=Y(m,e),_=await Mo(m,e,u);(0,o.existsSync)(n)||(0,o.mkdirSync)(n);let v=await Q(g,{actions:[i.RequestAction.Access],createdAtBefore:l,createdAtAfter:d,statuses:f,requestIds:a}),y=await Vu(v,{sombra:_,concurrency:p}),x=new Date().getTime(),S=new b.default.SingleBar({},b.default.Presets.shades_classic),C=0,w=0;S.start(v.length,0),await U(y,async([e,t])=>{let r=(0,s.join)(n,e.id);(0,o.existsSync)(r)||(0,o.mkdirSync)(r),await Hu(t,{sombra:_,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)}}),h&&e.status===i.RequestStatus.Approving&&(await $(g,si,{input:{requestId:e.id}}),w+=1),C+=1,S.update(C)},{concurrency:p}),S.stop();let T=new Date().getTime()-x;return r.t.info(c.default.green(`Successfully downloaded ${C} requests in "${T/1e3}" seconds!`)),w>0&&r.t.info(c.default.green(`Approved ${w} requests in Transcend.`)),v.length}const Wu=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 Gu(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:Wu}),d);return f}async function Ku({requestActions:e,requestOrigins:n,auth:a,silentModeBefore:o,createdAtAfter:s,createdAtBefore:l,concurrency:u=50,transcendUrl:d=t.a}){let f=Y(d,a),p=new Date().getTime(),m=new b.default.SingleBar({},b.default.Presets.shades_classic),h=await Q(f,{actions:e,statuses:[i.RequestStatus.Approving],createdAtAfter:s,origins:n,createdAtBefore:l});r.t.info(c.default.magenta(`Approving "${h.length}" requests.`));let g=0,_=0;m.start(h.length,0),await U(h,async e=>{o&&new Date(o)>new Date(e.createdAt)&&await $(f,li,{input:{id:e.id,isSilent:!0}});try{await $(f,si,{input:{requestId:e.id}})}catch(e){e.message.includes(`Request must be in an approving state,`)&&(_+=1)}g+=1,m.update(g)},{concurrency:u}),m.stop();let v=new Date().getTime()-p;return _>0&&r.t.info(c.default.yellow(`${_} requests were skipped.`)),r.t.info(c.default.green(`Successfully approved ${g} requests in "${v/1e3}" seconds!`)),h.length}async function qu({requestActions:e=Object.values(i.RequestAction),auth:n,requestIds:a,createdAtBefore:o,days:s=45,daysLeft:l=10,createdAtAfter:u,emailTemplate:d=`Additional Time Needed`,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 qc(m,d)).find(e=>e.title===d);if(!_)throw Error(`Failed to find a template with title: "${d}"`);let v=await Q(m,{actions:e,createdAtBefore:o,createdAtAfter:u,isSilent:!1,isClosed:!1,requestIds:a});v=v.filter(e=>typeof e.daysRemaining==`number`&&e.daysRemaining<l),r.t.info(c.default.magenta(`Notifying "${v.length}" that more time is needed.`));let y=0;g.start(v.length,0),await U(v,async e=>{await $(m,ui,{input:{requestId:e.id,template:_.template.defaultMessage,subject:_.subject.defaultMessage,additionalTime:s}}),y+=1,g.update(y)},{concurrency:f}),g.stop();let x=new Date().getTime()-h;return r.t.info(c.default.green(`Successfully marked ${y} requests as silent mode in "${x/1e3}" seconds!`)),v.length}async function Ju(e,t,n){let{initializer:r}=await $(e,Er),i=r.identifiers.filter(({name:e})=>!n.getValue(`identifierNames`,e)&&!_o.includes(e)),a=i.length===0?{}:await m.default.prompt(i.map(({name:e})=>{let n=wo(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 Yu({requestActions:e,cancellationTitle:n,auth:a,requestIds:o,silentModeBefore:s,createdAtBefore:l,createdAtAfter:u,statuses:d=[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: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),_;if(n){let e=(await qc(m,n)).find(e=>e.title===n);if(!e)throw Error(`Failed to find a template with title: "${n}"`);_=e}let v=await Q(m,{actions:e,createdAtBefore:l,createdAtAfter:u,statuses:d,requestIds:o});r.t.info(c.default.magenta(`Canceling "${v.length}" requests${_?` Using template: ${_.title}`:``}.`));let y=0;g.start(v.length,0),await U(v,async e=>{s&&new Date(s)>new Date(e.createdAt)&&await $(m,li,{input:{id:e.id,isSilent:!0}}),await $(m,ci,{input:{requestId:e.id,..._?{subject:`Re: ${_.subject.defaultMessage}`,template:_.template.defaultMessage}:{}}}),y+=1,g.update(y)},{concurrency:f}),g.stop();let x=new Date().getTime()-h;return r.t.info(c.default.green(`Successfully canceled ${y} requests in "${x/1e3}" seconds!`)),v.length}async function Xu(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=wo(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 Zu=/{\\"message\\":\\"(.+?)\\",/;function Qu(e){return Zu.test(e)?Zu.exec(e)[1]:null}async function $u({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=Do(p),E=new S.PersistedState(e,bo,{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,So,{successfulRequests:[],duplicateRequests:[],failingRequests:[]}),k=await Mo(f,a,o),A=Oo(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 ko(A),N=Y(f,a),P=await ts(N),F=await Mu(j,E),ee=await Ju(N,j,E),I=await Xu(N,j,E,P);await Nu(N,M,{state:E,columnNameMap:F});let L=Lu(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 Gu(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=Qu(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 ed(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)&&!_o.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:Wu}),c);return u}const td=l.intersection([xo,l.type({error:l.string})]),nd=l.type({restartedRequests:l.array(xo),failingRequests:l.array(td)});async function rd({requestReceiptFolder:e,auth:n,sombraAuth:i,requestActions:a,requestStatuses:o,createdAtBefore:l,createdAtAfter:u,transcendUrl:d=t.a,requestIds:f=[],createdAt:p=new Date,silentModeBefore:m,sendEmailReceipt:h=!1,emailIsVerified:g=!0,copyIdentifiers:_=!1,skipWaitingPeriod:v=!1,concurrency:y=20}){let x=new Date().getTime(),C=new b.default.SingleBar({},b.default.Presets.shades_classic),w=(0,s.join)(e,`tr-request-restart-${new Date().toISOString()}.json`),T=new S.PersistedState(w,nd,{restartedRequests:[],failingRequests:[]}),E=await Mo(d,n,i),D=Y(d,n),O=(await Q(D,{requestIds:f,actions:a,statuses:o,createdAtBefore:l,createdAtAfter:u})).filter(e=>new Date(e.createdAt)<p);if(r.t.info(`Found ${O.length} requests to restart`),_&&r.t.info(`copyIdentifiers detected - All Identifiers will be copied.`),h&&r.t.info(`sendEmailReceipt detected - Email receipts will be sent.`),v&&r.t.info(`skipWaitingPeriod detected - Waiting period will be skipped.`),f.length>0&&f.length!==O.length){let e=V(f,O.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 k=0;C.start(O.length,0),await U(O,async(e,t)=>{try{let n=_?await Hs(D,E,{requestId:e.id}):[],r=await ed(E,{...e,isSilent:m&&new Date(e.createdAt)<m?!0:e.isSilent},{requestIdentifiers:n,skipWaitingPeriod:v,sendEmailReceipt:h,emailIsVerified:g}),i=T.getValue(`restartedRequests`);i.push({id:r.id,link:r.link,rowIndex:t,coreIdentifier:r.coreIdentifier,attemptedAt:new Date().toISOString()}),await T.setValue(i,`restartedRequests`)}catch(n){let r=`${n.message} - ${JSON.stringify(n.response?.body,null,2)}`,i=Qu(r),a=T.getValue(`failingRequests`);a.push({id:e.id,link:e.link,rowIndex:t,coreIdentifier:e.coreIdentifier,attemptedAt:new Date().toISOString(),error:i||r}),await T.setValue(a,`failingRequests`)}k+=1,C.update(k)},{concurrency:y}),C.stop();let A=new Date().getTime()-x;r.t.info(c.default.green(`Completed restarting of requests in "${A/1e3}" seconds.`)),T.getValue(`failingRequests`).length>0&&(r.t.error(c.default.red(`Encountered "${T.getValue(`failingRequests`).length}" errors. See "${(0,s.resolve)(w)}" to review the error messages and inputs.`)),process.exit(1))}async function id({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 Fs(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,hi,{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 ad({auth:e,requestActions:n=[],createdAtBefore:a,createdAtAfter:o,transcendUrl:s=t.a,requestEnricherStatuses:l=Object.values(i.RequestEnricherStatus),requestIds:u=[],enricherId:d,concurrency:f=20}){let p=new Date().getTime(),m=new b.default.SingleBar({},b.default.Presets.shades_classic),h=Y(s,e);r.t.info(c.default.magenta(`Fetching requests to restart...`));let g=await Q(h,{actions:n,statuses:[i.RequestStatus.Enriching],createdAtBefore:a,createdAtAfter:o,requestIds:u}),_=0;if(u.length>0&&u.length!==g.length){let e=V(u,g.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 v=0;m.start(g.length,0),await U(g,async e=>{await U((await Fs(h,{requestId:e.id})).filter(e=>e.enricher.id===d&&l.includes(e.status)),async e=>{await al(h,e.id),_+=1}),v+=1,m.update(v)},{concurrency:f}),m.stop();let y=new Date().getTime()-p;r.t.info(c.default.green(`Completed restarting of ${g.length} requests and ${_} enrichers in "${y/1e3}" seconds.`))}async function od({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,Pi,{requestDataSiloId:(await xc(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}async function sd({auth:e,sombraAuth:n,actions:i=[],statuses:a=[],identifierSearch:o,pageLimit:s=100,transcendUrl:l=t.a,createdAtBefore:u,skipRequestIdentifiers:d=!1,createdAtAfter:f,isTest:p}){let m=Y(l,e),h=await Mo(l,e,n),g=``;u&&(g+=` before ${u.toISOString()}`),f&&(g+=`${g?`, and`:``} after ${f.toISOString()}`),r.t.info(c.default.magenta(`${i.length>0?`Pulling requests of type "${i.join(`" , "`)}"`:`Pulling all requests`}${g}`));let _=await Q(m,{actions:i,text:o,statuses:a,createdAtBefore:u,createdAtAfter:f,isTest:p}),v=d?_.map(e=>({...e,requestIdentifiers:[]})):await U(_,async e=>{let t=await Hs(m,h,{requestId:e.id});return{...e,requestIdentifiers:t}},{concurrency:s});return r.t.info(c.default.magenta(`Pulled ${v.length} requests`)),{requestsWithRequestIdentifiers:v,requestsFormattedForCsv:v.map(({attributeValues:e,requestIdentifiers:t,id:n,email:r,type:i,status:a,subjectType:o,details:s,createdAt:c,country:l,locale:u,origin:d,countrySubDivision:f,isSilent:p,isTest:m,coreIdentifier:h,purpose:g,..._})=>({"Request ID":n,"Created At":c,Email:r,"Core Identifier":h,"Request Type":i,"Data Subject Type":o,Status:a,Country:l,"Country Sub Division":f,Details:s,Origin:d,"Silent Mode":p,"Is Test Request":m,Language:u,"Purpose Trigger Name":g?.title||g?.name||``,"Purpose Trigger Value":g?.consent?.toString()||``,...(g?.enrichedPreferences||[]).reduce((e,t)=>{let n=t.preferenceTopic?.title.defaultMessage||t.name;return n?{...e,[n]:t.selectValues?t.selectValues.map(e=>e.name).join(`;`):t.selectValue?.name||t.booleanValue}:e},{}),..._,...Object.entries(Un(e,`attributeKey.name`)).reduce((e,[t,n])=>Object.assign(e,{[t]:n.map(({name:e})=>e).join(`,`)}),{}),...Object.entries(Un(t,`name`)).reduce((e,[t,n])=>Object.assign(e,{[t]:n.map(({value:e})=>e).join(`,`)}),{})}))}}async function cd({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 vc(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 bc(d,{dataSiloId:e,requestStatuses:u,limit:o,onProgress:e=>{h+=e/2,m.update(h)}}),async e=>{try{await $(d,Ni,{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 ld({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 Ls(l,{requestId:e.id})).filter(({isVerifiedAtLeastOnce:e,name:t})=>e===!1&&n.includes(t)).map(({id:e})=>e);t.length>0&&(await $(l,zi,{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 ud({message:e}){let{response:t}=await m.default.prompt([{name:`response`,message:e,type:`confirm`}]);return t}async function dd({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 fd({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`&&Co(n,e)):t}]);return r}function pd(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 md(e){let t=e;return t?.response?.statusCode??t?.response?.status}function hd(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 gd(e){return new Promise(t=>{setTimeout(()=>t(e),e)})}function _d(e){let t=Math.floor(e.length/2);return[e.slice(0,t),e.slice(t)]}async function vd(e,t,n){let r=0;for(;;)try{return await e()}catch(e){r+=1;let i=md(e),a=hd(e);if(!(r<=t.maxAttempts&&t.shouldRetry(i,a)))throw e;n(`Retrying after status=${i} attempt=${r}/${t.maxAttempts} — ${a}`),await gd(t.delayMs)}}function yd(e,t){return Object.entries(e).reduce((e,[n,r],i)=>(e[n]=i<t?r:!0,e),{})}var bd=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 xd(e){try{return e?(0,o.readFileSync)(e,`utf8`):``}catch{return``}}function Sd(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 Cd(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 Td(m,`PRAGMA temp_directory='';`);let e=e=>`'${e.replace(/'/g,`''`)}'`;await wd(m,`
2986
+ COPY (SELECT * FROM read_parquet(${e(n)}))
2987
+ TO ${e(f)}
2988
+ (HEADER, DELIMITER ',', QUOTE '"', ESCAPE '"', NULL '');
2989
+ `),l?.(0,void 0),r.t.info(c.default.green(`Wrote CSV → ${f}`))}finally{await Ed(m),await Ed(p)}}async function wd(e,t){await Ed(await e.run(t))}async function Td(e,t){try{await wd(e,t)}catch{}}async function Ed(e){if(!(!e||typeof e.dispose!=`function`))try{await e.dispose()}catch{}}const Dd=1440*60*1e3,Od=3600*1e3,kd=300*1e3,Ad=e=>Math.max(1,Math.min(50,e??50)),jd=e=>new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate())),Md=e=>new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours())),Nd=(e,t)=>new Date(e.getTime()+t),Pd=(e,t)=>new Date(e.getTime()+t*Dd);function Fd(e){return e.includes(`"`)||e.includes(`,`)||e.includes(`
2990
+ `)?`"${e.replace(/"/g,`""`)}"`:e}function Id(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(Fd).join(`,`)).join(`
2991
+ `))}function Ld(e,t){if(!t||t.length===0){(0,o.writeFileSync)(e,``);return}(0,o.writeFileSync)(e,`${t.map(Fd).join(`,`)}\n`)}function Rd(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(Fd).join(`,`)).join(`
2992
+ `)}\n`)}function zd(e,t){(0,o.appendFileSync)(e,`\n${t.map(e=>Object.values(e)).map(e=>e.map(Fd).join(`,`)).join(`
2993
+ `)}`)}async function Bd(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 Vd(e){let t=e.lastIndexOf(`.`);return{baseName:t===-1?e:e.substring(0,t),extension:t===-1?`.csv`:e.substring(t)}}function Hd(e,t){let n={};for(let r of t)n[r]=e[r];return n}function Ud(e){return new Promise(t=>{e.once(`drain`,t)})}async function Wd(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?Hd(e,r):e;a.write(t)||await Ud(a)}return a.end(),await c,[e]}const Gd=4,Kd=[`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)),Kd.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 gd(n)}if(o>=a)throw e;o+=1,r.t.log(c.default.yellow(`Retrying failed request (${o} / ${a}): ${e.message}`))}}const qd=20;async function Jd(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 Yd({enrichers:e=[],"data-silos":n=[],identifiers:i=[]},a,o=!1){let s=await Jd(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 Xd(e,t){let{createTeam:n}=await $(e,Li,{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 Zd(e,t,n){let{updateTeam:r}=await $(e,Ri,{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 Qd(e,n){r.t.info(c.default.magenta(`Syncing "${n.length}" teams...`));let i=!1,a=t.g(await qs(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 Xd(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 Zd(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 $d(e,t){let{createPromptPartial:{promptPartial:n}}=await $(e,ki,{input:t});return r.t.info(c.default.green(`Successfully created prompt partial "${t.title}"!`)),n.id}async function ef(e,t){await $(e,Oi,{input:{promptPartials:t.map(([e,t])=>({...e,id:t}))}}),r.t.info(c.default.green(`Successfully updated ${t.length} prompt partials!`))}async function tf(e,n,i=20){let a=!1;r.t.info(c.default.magenta(`Syncing "${n.length}" prompt partials...`));let o=t.g(await fc(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 $d(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 ef(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 nf(e,t){let{createPromptGroup:{promptGroup:n}}=await $(e,ji,{input:t});return r.t.info(c.default.green(`Successfully created prompt group "${t.title}"!`)),n.id}async function rf(e,t){await $(e,Ai,{input:{promptGroups:t.map(([e,t])=>({...e,id:t}))}}),r.t.info(c.default.green(`Successfully updated ${t.length} prompt groups!`))}async function af(e,n,i=20){let a=!1;r.t.info(c.default.magenta(`Syncing "${n.length}" prompt groups...`));let o=await uc(e),s=t.g(await mc(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 nf(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 rf(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 of=10;async function sf(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?Yd(e,t,!i):{},v||p||h||O?oc(e,t):{},v&&v.map(e=>e[`api-key-title`]||[]).reduce((e,t)=>e+t.length,0)>0?tc(e,t):{}]);if(_){r.t.info(c.default.magenta(`Syncing consent manager...`));try{await Zl(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 Tu(t,b);s||=!e}if(S){let e=await tf(t,S);s||=!e}if(x){let e=await af(t,x);s||=!e}if(M){let e=await Qd(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 Jc(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 kl(t,m);s||=!e}if(E){let e=await Ou(t,E);s||=!e}if(D){let e=await ru(t,D);s||=!e}if(k){let e=await Su(t,k);s||=!e}if(ee){let e=await $c(t,ee);s||=!e}if(C){let e=await Tl(t,C);s||=!e}if(w){let e=await Sl(t,w);s||=!e}if(T){let e=await yl(t,T);s||=!e}if(g){let e=await eu(t,g);s||=!e}if(j){let e=await dl(t,j);s||=!e}if(u){r.t.info(c.default.magenta(`Syncing "${u.length}" attributes...`));let e=await as(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 El(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 gl(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 Gc(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 lu(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 Bo(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 cl(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 ac(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 cu(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 su(t,y,a);s||=!e}if(N){let e=await gu(t,N);s||=!e}if(P){let e=await fu(t,P);s||=!e}if(F){let e=await hu(t,F);s||=!e}let R=[];if(v){let{success:e,dataSiloTitleToId:r}=await Vc(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 Hc(t,R),O){let e=await yu(t,O);s||=!e}return s}Object.defineProperty(exports,`$`,{enumerable:!0,get:function(){return Ru}}),Object.defineProperty(exports,`$a`,{enumerable:!0,get:function(){return Ii}}),Object.defineProperty(exports,`$i`,{enumerable:!0,get:function(){return Ba}}),Object.defineProperty(exports,`$n`,{enumerable:!0,get:function(){return cc}}),Object.defineProperty(exports,`$o`,{enumerable:!0,get:function(){return Fr}}),Object.defineProperty(exports,`$r`,{enumerable:!0,get:function(){return No}}),Object.defineProperty(exports,`$t`,{enumerable:!0,get:function(){return wl}}),Object.defineProperty(exports,`A`,{enumerable:!0,get:function(){return pd}}),Object.defineProperty(exports,`Aa`,{enumerable:!0,get:function(){return ma}}),Object.defineProperty(exports,`Ai`,{enumerable:!0,get:function(){return co}}),Object.defineProperty(exports,`An`,{enumerable:!0,get:function(){return Vc}}),Object.defineProperty(exports,`Ao`,{enumerable:!0,get:function(){return li}}),Object.defineProperty(exports,`Ar`,{enumerable:!0,get:function(){return hs}}),Object.defineProperty(exports,`As`,{enumerable:!0,get:function(){return Un}}),Object.defineProperty(exports,`At`,{enumerable:!0,get:function(){return au}}),Object.defineProperty(exports,`B`,{enumerable:!0,get:function(){return rd}}),Object.defineProperty(exports,`Ba`,{enumerable:!0,get:function(){return ta}}),Object.defineProperty(exports,`Bi`,{enumerable:!0,get:function(){return Ja}}),Object.defineProperty(exports,`Bn`,{enumerable:!0,get:function(){return Dc}}),Object.defineProperty(exports,`Bo`,{enumerable:!0,get:function(){return Xr}}),Object.defineProperty(exports,`Br`,{enumerable:!0,get:function(){return as}}),Object.defineProperty(exports,`Bt`,{enumerable:!0,get:function(){return ql}}),Object.defineProperty(exports,`C`,{enumerable:!0,get:function(){return bd}}),Object.defineProperty(exports,`Ca`,{enumerable:!0,get:function(){return xa}}),Object.defineProperty(exports,`Ci`,{enumerable:!0,get:function(){return mo}}),Object.defineProperty(exports,`Cn`,{enumerable:!0,get:function(){return Wc}}),Object.defineProperty(exports,`Co`,{enumerable:!0,get:function(){return hi}}),Object.defineProperty(exports,`Cr`,{enumerable:!0,get:function(){return Z}}),Object.defineProperty(exports,`Cs`,{enumerable:!0,get:function(){return gr}}),Object.defineProperty(exports,`Ct`,{enumerable:!0,get:function(){return mu}}),Object.defineProperty(exports,`D`,{enumerable:!0,get:function(){return gd}}),Object.defineProperty(exports,`Da`,{enumerable:!0,get:function(){return va}}),Object.defineProperty(exports,`Di`,{enumerable:!0,get:function(){return fo}}),Object.defineProperty(exports,`Dn`,{enumerable:!0,get:function(){return Rc}}),Object.defineProperty(exports,`Do`,{enumerable:!0,get:function(){return ci}}),Object.defineProperty(exports,`Dr`,{enumerable:!0,get:function(){return bs}}),Object.defineProperty(exports,`Ds`,{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,`Dt`,{enumerable:!0,get:function(){return cu}}),Object.defineProperty(exports,`E`,{enumerable:!0,get:function(){return _d}}),Object.defineProperty(exports,`Ea`,{enumerable:!0,get:function(){return _a}}),Object.defineProperty(exports,`Ei`,{enumerable:!0,get:function(){return lo}}),Object.defineProperty(exports,`En`,{enumerable:!0,get:function(){return Lc}}),Object.defineProperty(exports,`Eo`,{enumerable:!0,get:function(){return si}}),Object.defineProperty(exports,`Er`,{enumerable:!0,get:function(){return xs}}),Object.defineProperty(exports,`Es`,{enumerable:!0,get:function(){return W}}),Object.defineProperty(exports,`Et`,{enumerable:!0,get:function(){return lu}}),Object.defineProperty(exports,`F`,{enumerable:!0,get:function(){return cd}}),Object.defineProperty(exports,`Fa`,{enumerable:!0,get:function(){return $i}}),Object.defineProperty(exports,`Fi`,{enumerable:!0,get:function(){return no}}),Object.defineProperty(exports,`Fn`,{enumerable:!0,get:function(){return Ac}}),Object.defineProperty(exports,`Fo`,{enumerable:!0,get:function(){return ni}}),Object.defineProperty(exports,`Fr`,{enumerable:!0,get:function(){return X}}),Object.defineProperty(exports,`Fs`,{enumerable:!0,get:function(){return Me}}),Object.defineProperty(exports,`Ft`,{enumerable:!0,get:function(){return $l}}),Object.defineProperty(exports,`G`,{enumerable:!0,get:function(){return Yu}}),Object.defineProperty(exports,`Ga`,{enumerable:!0,get:function(){return Gi}}),Object.defineProperty(exports,`Gi`,{enumerable:!0,get:function(){return qa}}),Object.defineProperty(exports,`Gn`,{enumerable:!0,get:function(){return xc}}),Object.defineProperty(exports,`Go`,{enumerable:!0,get:function(){return Kr}}),Object.defineProperty(exports,`Gr`,{enumerable:!0,get:function(){return Ko}}),Object.defineProperty(exports,`Gt`,{enumerable:!0,get:function(){return Ll}}),Object.defineProperty(exports,`H`,{enumerable:!0,get:function(){return $u}}),Object.defineProperty(exports,`Ha`,{enumerable:!0,get:function(){return qi}}),Object.defineProperty(exports,`Hi`,{enumerable:!0,get:function(){return Xa}}),Object.defineProperty(exports,`Hn`,{enumerable:!0,get:function(){return wc}}),Object.defineProperty(exports,`Ho`,{enumerable:!0,get:function(){return Jr}}),Object.defineProperty(exports,`Hr`,{enumerable:!0,get:function(){return $o}}),Object.defineProperty(exports,`Ht`,{enumerable:!0,get:function(){return Ul}}),Object.defineProperty(exports,`I`,{enumerable:!0,get:function(){return sd}}),Object.defineProperty(exports,`Ia`,{enumerable:!0,get:function(){return ea}}),Object.defineProperty(exports,`Ii`,{enumerable:!0,get:function(){return eo}}),Object.defineProperty(exports,`In`,{enumerable:!0,get:function(){return Oc}}),Object.defineProperty(exports,`Io`,{enumerable:!0,get:function(){return ti}}),Object.defineProperty(exports,`Ir`,{enumerable:!0,get:function(){return ps}}),Object.defineProperty(exports,`It`,{enumerable:!0,get:function(){return Zl}}),Object.defineProperty(exports,`J`,{enumerable:!0,get:function(){return Ku}}),Object.defineProperty(exports,`Ja`,{enumerable:!0,get:function(){return Hi}}),Object.defineProperty(exports,`Ji`,{enumerable:!0,get:function(){return Va}}),Object.defineProperty(exports,`Jn`,{enumerable:!0,get:function(){return _c}}),Object.defineProperty(exports,`Jo`,{enumerable:!0,get:function(){return Hr}}),Object.defineProperty(exports,`Jr`,{enumerable:!0,get:function(){return Bo}}),Object.defineProperty(exports,`Jt`,{enumerable:!0,get:function(){return kl}}),Object.defineProperty(exports,`K`,{enumerable:!0,get:function(){return Ju}}),Object.defineProperty(exports,`Ka`,{enumerable:!0,get:function(){return Wi}}),Object.defineProperty(exports,`Ki`,{enumerable:!0,get:function(){return Wa}}),Object.defineProperty(exports,`Kn`,{enumerable:!0,get:function(){return bc}}),Object.defineProperty(exports,`Ko`,{enumerable:!0,get:function(){return Wr}}),Object.defineProperty(exports,`Kr`,{enumerable:!0,get:function(){return Wo}}),Object.defineProperty(exports,`Kt`,{enumerable:!0,get:function(){return Il}}),Object.defineProperty(exports,`L`,{enumerable:!0,get:function(){return od}}),Object.defineProperty(exports,`La`,{enumerable:!0,get:function(){return Xi}}),Object.defineProperty(exports,`Li`,{enumerable:!0,get:function(){return Za}}),Object.defineProperty(exports,`Ln`,{enumerable:!0,get:function(){return kc}}),Object.defineProperty(exports,`Lo`,{enumerable:!0,get:function(){return $r}}),Object.defineProperty(exports,`Lr`,{enumerable:!0,get:function(){return ss}}),Object.defineProperty(exports,`Lt`,{enumerable:!0,get:function(){return Xl}}),Object.defineProperty(exports,`M`,{enumerable:!0,get:function(){return ud}}),Object.defineProperty(exports,`Ma`,{enumerable:!0,get:function(){return ya}}),Object.defineProperty(exports,`Mi`,{enumerable:!0,get:function(){return ro}}),Object.defineProperty(exports,`Mn`,{enumerable:!0,get:function(){return Fc}}),Object.defineProperty(exports,`Mo`,{enumerable:!0,get:function(){return ai}}),Object.defineProperty(exports,`Mr`,{enumerable:!0,get:function(){return cs}}),Object.defineProperty(exports,`Ms`,{enumerable:!0,get:function(){return Mn}}),Object.defineProperty(exports,`Mt`,{enumerable:!0,get:function(){return ru}}),Object.defineProperty(exports,`N`,{enumerable:!0,get:function(){return dd}}),Object.defineProperty(exports,`Na`,{enumerable:!0,get:function(){return sa}}),Object.defineProperty(exports,`Ni`,{enumerable:!0,get:function(){return ao}}),Object.defineProperty(exports,`Nn`,{enumerable:!0,get:function(){return Mc}}),Object.defineProperty(exports,`No`,{enumerable:!0,get:function(){return ri}}),Object.defineProperty(exports,`Nr`,{enumerable:!0,get:function(){return fs}}),Object.defineProperty(exports,`Ns`,{enumerable:!0,get:function(){return B}}),Object.defineProperty(exports,`Nt`,{enumerable:!0,get:function(){return nu}}),Object.defineProperty(exports,`O`,{enumerable:!0,get:function(){return hd}}),Object.defineProperty(exports,`Oa`,{enumerable:!0,get:function(){return wa}}),Object.defineProperty(exports,`Oi`,{enumerable:!0,get:function(){return so}}),Object.defineProperty(exports,`On`,{enumerable:!0,get:function(){return Bc}}),Object.defineProperty(exports,`Oo`,{enumerable:!0,get:function(){return ui}}),Object.defineProperty(exports,`Or`,{enumerable:!0,get:function(){return ys}}),Object.defineProperty(exports,`Os`,{enumerable:!0,get:function(){return cr}}),Object.defineProperty(exports,`Ot`,{enumerable:!0,get:function(){return ou}}),Object.defineProperty(exports,`P`,{enumerable:!0,get:function(){return ld}}),Object.defineProperty(exports,`Pa`,{enumerable:!0,get:function(){return Yi}}),Object.defineProperty(exports,`Pi`,{enumerable:!0,get:function(){return to}}),Object.defineProperty(exports,`Pn`,{enumerable:!0,get:function(){return jc}}),Object.defineProperty(exports,`Po`,{enumerable:!0,get:function(){return ei}}),Object.defineProperty(exports,`Pr`,{enumerable:!0,get:function(){return us}}),Object.defineProperty(exports,`Ps`,{enumerable:!0,get:function(){return ze}}),Object.defineProperty(exports,`Pt`,{enumerable:!0,get:function(){return eu}}),Object.defineProperty(exports,`Q`,{enumerable:!0,get:function(){return Hu}}),Object.defineProperty(exports,`Qa`,{enumerable:!0,get:function(){return Li}}),Object.defineProperty(exports,`Qi`,{enumerable:!0,get:function(){return za}}),Object.defineProperty(exports,`Qn`,{enumerable:!0,get:function(){return uc}}),Object.defineProperty(exports,`Qo`,{enumerable:!0,get:function(){return zr}}),Object.defineProperty(exports,`Qr`,{enumerable:!0,get:function(){return Fo}}),Object.defineProperty(exports,`Qt`,{enumerable:!0,get:function(){return Tl}}),Object.defineProperty(exports,`R`,{enumerable:!0,get:function(){return ad}}),Object.defineProperty(exports,`Ra`,{enumerable:!0,get:function(){return Qi}}),Object.defineProperty(exports,`Ri`,{enumerable:!0,get:function(){return Qa}}),Object.defineProperty(exports,`Rn`,{enumerable:!0,get:function(){return Nc}}),Object.defineProperty(exports,`Ro`,{enumerable:!0,get:function(){return Zr}}),Object.defineProperty(exports,`Rr`,{enumerable:!0,get:function(){return is}}),Object.defineProperty(exports,`Rt`,{enumerable:!0,get:function(){return Kl}}),Object.defineProperty(exports,`S`,{enumerable:!0,get:function(){return xd}}),Object.defineProperty(exports,`Sa`,{enumerable:!0,get:function(){return Sa}}),Object.defineProperty(exports,`Si`,{enumerable:!0,get:function(){return xo}}),Object.defineProperty(exports,`Sn`,{enumerable:!0,get:function(){return Jc}}),Object.defineProperty(exports,`So`,{enumerable:!0,get:function(){return mi}}),Object.defineProperty(exports,`Sr`,{enumerable:!0,get:function(){return Ts}}),Object.defineProperty(exports,`Ss`,{enumerable:!0,get:function(){return hr}}),Object.defineProperty(exports,`St`,{enumerable:!0,get:function(){return hu}}),Object.defineProperty(exports,`T`,{enumerable:!0,get:function(){return vd}}),Object.defineProperty(exports,`Ta`,{enumerable:!0,get:function(){return Ta}}),Object.defineProperty(exports,`Ti`,{enumerable:!0,get:function(){return uo}}),Object.defineProperty(exports,`Tn`,{enumerable:!0,get:function(){return zc}}),Object.defineProperty(exports,`To`,{enumerable:!0,get:function(){return fi}}),Object.defineProperty(exports,`Tr`,{enumerable:!0,get:function(){return Ss}}),Object.defineProperty(exports,`Ts`,{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,`Tt`,{enumerable:!0,get:function(){return du}}),Object.defineProperty(exports,`U`,{enumerable:!0,get:function(){return Qu}}),Object.defineProperty(exports,`Ua`,{enumerable:!0,get:function(){return Ki}}),Object.defineProperty(exports,`Ui`,{enumerable:!0,get:function(){return Ga}}),Object.defineProperty(exports,`Un`,{enumerable:!0,get:function(){return Cc}}),Object.defineProperty(exports,`Uo`,{enumerable:!0,get:function(){return qr}}),Object.defineProperty(exports,`Ur`,{enumerable:!0,get:function(){return Xo}}),Object.defineProperty(exports,`Ut`,{enumerable:!0,get:function(){return Hl}}),Object.defineProperty(exports,`V`,{enumerable:!0,get:function(){return ed}}),Object.defineProperty(exports,`Va`,{enumerable:!0,get:function(){return Zi}}),Object.defineProperty(exports,`Vi`,{enumerable:!0,get:function(){return Ya}}),Object.defineProperty(exports,`Vn`,{enumerable:!0,get:function(){return Tc}}),Object.defineProperty(exports,`Vo`,{enumerable:!0,get:function(){return Yr}}),Object.defineProperty(exports,`Vr`,{enumerable:!0,get:function(){return ts}}),Object.defineProperty(exports,`Vt`,{enumerable:!0,get:function(){return Vl}}),Object.defineProperty(exports,`W`,{enumerable:!0,get:function(){return Xu}}),Object.defineProperty(exports,`Wa`,{enumerable:!0,get:function(){return Ji}}),Object.defineProperty(exports,`Wi`,{enumerable:!0,get:function(){return Ka}}),Object.defineProperty(exports,`Wn`,{enumerable:!0,get:function(){return Sc}}),Object.defineProperty(exports,`Wo`,{enumerable:!0,get:function(){return Gr}}),Object.defineProperty(exports,`Wr`,{enumerable:!0,get:function(){return Jo}}),Object.defineProperty(exports,`Wt`,{enumerable:!0,get:function(){return Fl}}),Object.defineProperty(exports,`X`,{enumerable:!0,get:function(){return Gu}}),Object.defineProperty(exports,`Xa`,{enumerable:!0,get:function(){return zi}}),Object.defineProperty(exports,`Xi`,{enumerable:!0,get:function(){return Ra}}),Object.defineProperty(exports,`Xn`,{enumerable:!0,get:function(){return hc}}),Object.defineProperty(exports,`Xo`,{enumerable:!0,get:function(){return Br}}),Object.defineProperty(exports,`Xr`,{enumerable:!0,get:function(){return Io}}),Object.defineProperty(exports,`Xt`,{enumerable:!0,get:function(){return El}}),Object.defineProperty(exports,`Y`,{enumerable:!0,get:function(){return Wu}}),Object.defineProperty(exports,`Ya`,{enumerable:!0,get:function(){return Vi}}),Object.defineProperty(exports,`Yi`,{enumerable:!0,get:function(){return Ha}}),Object.defineProperty(exports,`Yn`,{enumerable:!0,get:function(){return mc}}),Object.defineProperty(exports,`Yo`,{enumerable:!0,get:function(){return Ur}}),Object.defineProperty(exports,`Yr`,{enumerable:!0,get:function(){return Ro}}),Object.defineProperty(exports,`Yt`,{enumerable:!0,get:function(){return Ol}}),Object.defineProperty(exports,`Z`,{enumerable:!0,get:function(){return Uu}}),Object.defineProperty(exports,`Za`,{enumerable:!0,get:function(){return Bi}}),Object.defineProperty(exports,`Zi`,{enumerable:!0,get:function(){return La}}),Object.defineProperty(exports,`Zn`,{enumerable:!0,get:function(){return fc}}),Object.defineProperty(exports,`Zo`,{enumerable:!0,get:function(){return Rr}}),Object.defineProperty(exports,`Zr`,{enumerable:!0,get:function(){return Po}}),Object.defineProperty(exports,`Zt`,{enumerable:!0,get:function(){return Cl}}),Object.defineProperty(exports,`_`,{enumerable:!0,get:function(){return Ad}}),Object.defineProperty(exports,`_a`,{enumerable:!0,get:function(){return ra}}),Object.defineProperty(exports,`_i`,{enumerable:!0,get:function(){return So}}),Object.defineProperty(exports,`_n`,{enumerable:!0,get:function(){return rl}}),Object.defineProperty(exports,`_o`,{enumerable:!0,get:function(){return yi}}),Object.defineProperty(exports,`_r`,{enumerable:!0,get:function(){return Ns}}),Object.defineProperty(exports,`_s`,{enumerable:!0,get:function(){return yr}}),Object.defineProperty(exports,`_t`,{enumerable:!0,get:function(){return bu}}),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return Rd}}),Object.defineProperty(exports,`aa`,{enumerable:!0,get:function(){return ka}}),Object.defineProperty(exports,`ai`,{enumerable:!0,get:function(){return J}}),Object.defineProperty(exports,`an`,{enumerable:!0,get:function(){return vl}}),Object.defineProperty(exports,`ao`,{enumerable:!0,get:function(){return Di}}),Object.defineProperty(exports,`ar`,{enumerable:!0,get:function(){return ec}}),Object.defineProperty(exports,`as`,{enumerable:!0,get:function(){return jr}}),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 fa}}),Object.defineProperty(exports,`bi`,{enumerable:!0,get:function(){return vo}}),Object.defineProperty(exports,`bn`,{enumerable:!0,get:function(){return $c}}),Object.defineProperty(exports,`bo`,{enumerable:!0,get:function(){return vi}}),Object.defineProperty(exports,`br`,{enumerable:!0,get:function(){return Os}}),Object.defineProperty(exports,`bs`,{enumerable:!0,get:function(){return pr}}),Object.defineProperty(exports,`bt`,{enumerable:!0,get:function(){return yu}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return Vd}}),Object.defineProperty(exports,`ca`,{enumerable:!0,get:function(){return Oa}}),Object.defineProperty(exports,`ci`,{enumerable:!0,get:function(){return Do}}),Object.defineProperty(exports,`cn`,{enumerable:!0,get:function(){return pl}}),Object.defineProperty(exports,`co`,{enumerable:!0,get:function(){return Si}}),Object.defineProperty(exports,`cr`,{enumerable:!0,get:function(){return Ys}}),Object.defineProperty(exports,`cs`,{enumerable:!0,get:function(){return Dr}}),Object.defineProperty(exports,`ct`,{enumerable:!0,get:function(){return Mu}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return Wd}}),Object.defineProperty(exports,`da`,{enumerable:!0,get:function(){return Ea}}),Object.defineProperty(exports,`di`,{enumerable:!0,get:function(){return wo}}),Object.defineProperty(exports,`dn`,{enumerable:!0,get:function(){return ul}}),Object.defineProperty(exports,`do`,{enumerable:!0,get:function(){return Ci}}),Object.defineProperty(exports,`dr`,{enumerable:!0,get:function(){return Us}}),Object.defineProperty(exports,`ds`,{enumerable:!0,get:function(){return Or}}),Object.defineProperty(exports,`dt`,{enumerable:!0,get:function(){return Eu}}),Object.defineProperty(exports,`ea`,{enumerable:!0,get:function(){return Ia}}),Object.defineProperty(exports,`ei`,{enumerable:!0,get:function(){return Mo}}),Object.defineProperty(exports,`en`,{enumerable:!0,get:function(){return bl}}),Object.defineProperty(exports,`eo`,{enumerable:!0,get:function(){return Ri}}),Object.defineProperty(exports,`er`,{enumerable:!0,get:function(){return sc}}),Object.defineProperty(exports,`es`,{enumerable:!0,get:function(){return Pr}}),Object.defineProperty(exports,`et`,{enumerable:!0,get:function(){return zu}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return Dd}}),Object.defineProperty(exports,`fa`,{enumerable:!0,get:function(){return pa}}),Object.defineProperty(exports,`fi`,{enumerable:!0,get:function(){return Co}}),Object.defineProperty(exports,`fn`,{enumerable:!0,get:function(){return cl}}),Object.defineProperty(exports,`fo`,{enumerable:!0,get:function(){return Ei}}),Object.defineProperty(exports,`fr`,{enumerable:!0,get:function(){return Q}}),Object.defineProperty(exports,`fs`,{enumerable:!0,get:function(){return wr}}),Object.defineProperty(exports,`ft`,{enumerable:!0,get:function(){return Ou}}),Object.defineProperty(exports,`g`,{enumerable:!0,get:function(){return Nd}}),Object.defineProperty(exports,`ga`,{enumerable:!0,get:function(){return ga}}),Object.defineProperty(exports,`gi`,{enumerable:!0,get:function(){return bo}}),Object.defineProperty(exports,`gn`,{enumerable:!0,get:function(){return nl}}),Object.defineProperty(exports,`go`,{enumerable:!0,get:function(){return bi}}),Object.defineProperty(exports,`gr`,{enumerable:!0,get:function(){return Fs}}),Object.defineProperty(exports,`gs`,{enumerable:!0,get:function(){return Cr}}),Object.defineProperty(exports,`gt`,{enumerable:!0,get:function(){return wu}}),Object.defineProperty(exports,`h`,{enumerable:!0,get:function(){return Pd}}),Object.defineProperty(exports,`ha`,{enumerable:!0,get:function(){return ca}}),Object.defineProperty(exports,`hi`,{enumerable:!0,get:function(){return yo}}),Object.defineProperty(exports,`hn`,{enumerable:!0,get:function(){return il}}),Object.defineProperty(exports,`ho`,{enumerable:!0,get:function(){return xi}}),Object.defineProperty(exports,`hr`,{enumerable:!0,get:function(){return Ls}}),Object.defineProperty(exports,`hs`,{enumerable:!0,get:function(){return xr}}),Object.defineProperty(exports,`ht`,{enumerable:!0,get:function(){return Tu}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return $}}),Object.defineProperty(exports,`ia`,{enumerable:!0,get:function(){return Na}}),Object.defineProperty(exports,`ii`,{enumerable:!0,get:function(){return ko}}),Object.defineProperty(exports,`in`,{enumerable:!0,get:function(){return yl}}),Object.defineProperty(exports,`io`,{enumerable:!0,get:function(){return Pi}}),Object.defineProperty(exports,`ir`,{enumerable:!0,get:function(){return ic}}),Object.defineProperty(exports,`is`,{enumerable:!0,get:function(){return Ar}}),Object.defineProperty(exports,`it`,{enumerable:!0,get:function(){return Fu}}),Object.defineProperty(exports,`j`,{enumerable:!0,get:function(){return fd}}),Object.defineProperty(exports,`ja`,{enumerable:!0,get:function(){return oa}}),Object.defineProperty(exports,`ji`,{enumerable:!0,get:function(){return io}}),Object.defineProperty(exports,`jn`,{enumerable:!0,get:function(){return Pc}}),Object.defineProperty(exports,`jo`,{enumerable:!0,get:function(){return ii}}),Object.defineProperty(exports,`jr`,{enumerable:!0,get:function(){return ds}}),Object.defineProperty(exports,`js`,{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,`jt`,{enumerable:!0,get:function(){return tu}}),Object.defineProperty(exports,`k`,{enumerable:!0,get:function(){return md}}),Object.defineProperty(exports,`ka`,{enumerable:!0,get:function(){return ha}}),Object.defineProperty(exports,`ki`,{enumerable:!0,get:function(){return oo}}),Object.defineProperty(exports,`kn`,{enumerable:!0,get:function(){return Hc}}),Object.defineProperty(exports,`ko`,{enumerable:!0,get:function(){return oi}}),Object.defineProperty(exports,`kr`,{enumerable:!0,get:function(){return _s}}),Object.defineProperty(exports,`ks`,{enumerable:!0,get:function(){return tr}}),Object.defineProperty(exports,`kt`,{enumerable:!0,get:function(){return su}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return Bd}}),Object.defineProperty(exports,`la`,{enumerable:!0,get:function(){return ia}}),Object.defineProperty(exports,`li`,{enumerable:!0,get:function(){return To}}),Object.defineProperty(exports,`ln`,{enumerable:!0,get:function(){return ll}}),Object.defineProperty(exports,`lo`,{enumerable:!0,get:function(){return Ti}}),Object.defineProperty(exports,`lr`,{enumerable:!0,get:function(){return qs}}),Object.defineProperty(exports,`ls`,{enumerable:!0,get:function(){return Tr}}),Object.defineProperty(exports,`lt`,{enumerable:!0,get:function(){return ju}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return 36e5}}),Object.defineProperty(exports,`ma`,{enumerable:!0,get:function(){return aa}}),Object.defineProperty(exports,`mi`,{enumerable:!0,get:function(){return ho}}),Object.defineProperty(exports,`mn`,{enumerable:!0,get:function(){return al}}),Object.defineProperty(exports,`mo`,{enumerable:!0,get:function(){return Oi}}),Object.defineProperty(exports,`mr`,{enumerable:!0,get:function(){return Hs}}),Object.defineProperty(exports,`ms`,{enumerable:!0,get:function(){return Sr}}),Object.defineProperty(exports,`mt`,{enumerable:!0,get:function(){return Cu}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return Jd}}),Object.defineProperty(exports,`na`,{enumerable:!0,get:function(){return Fa}}),Object.defineProperty(exports,`ni`,{enumerable:!0,get:function(){return jo}}),Object.defineProperty(exports,`nn`,{enumerable:!0,get:function(){return xl}}),Object.defineProperty(exports,`no`,{enumerable:!0,get:function(){return Fi}}),Object.defineProperty(exports,`nr`,{enumerable:!0,get:function(){return ac}}),Object.defineProperty(exports,`ns`,{enumerable:!0,get:function(){return Ir}}),Object.defineProperty(exports,`nt`,{enumerable:!0,get:function(){return Vu}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return zd}}),Object.defineProperty(exports,`oa`,{enumerable:!0,get:function(){return Aa}}),Object.defineProperty(exports,`oi`,{enumerable:!0,get:function(){return Oo}}),Object.defineProperty(exports,`on`,{enumerable:!0,get:function(){return fl}}),Object.defineProperty(exports,`oo`,{enumerable:!0,get:function(){return ji}}),Object.defineProperty(exports,`or`,{enumerable:!0,get:function(){return tc}}),Object.defineProperty(exports,`os`,{enumerable:!0,get:function(){return Nr}}),Object.defineProperty(exports,`ot`,{enumerable:!0,get:function(){return Iu}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return 3e5}}),Object.defineProperty(exports,`pa`,{enumerable:!0,get:function(){return Da}}),Object.defineProperty(exports,`pi`,{enumerable:!0,get:function(){return go}}),Object.defineProperty(exports,`pn`,{enumerable:!0,get:function(){return ol}}),Object.defineProperty(exports,`po`,{enumerable:!0,get:function(){return Ai}}),Object.defineProperty(exports,`pr`,{enumerable:!0,get:function(){return Vs}}),Object.defineProperty(exports,`ps`,{enumerable:!0,get:function(){return br}}),Object.defineProperty(exports,`pt`,{enumerable:!0,get:function(){return Du}}),Object.defineProperty(exports,`q`,{enumerable:!0,get:function(){return qu}}),Object.defineProperty(exports,`qa`,{enumerable:!0,get:function(){return Ui}}),Object.defineProperty(exports,`qi`,{enumerable:!0,get:function(){return Ua}}),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 Ho}}),Object.defineProperty(exports,`qt`,{enumerable:!0,get:function(){return Dl}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return Yd}}),Object.defineProperty(exports,`ra`,{enumerable:!0,get:function(){return Ma}}),Object.defineProperty(exports,`ri`,{enumerable:!0,get:function(){return Ao}}),Object.defineProperty(exports,`rn`,{enumerable:!0,get:function(){return _l}}),Object.defineProperty(exports,`ro`,{enumerable:!0,get:function(){return Mi}}),Object.defineProperty(exports,`rr`,{enumerable:!0,get:function(){return rc}}),Object.defineProperty(exports,`rs`,{enumerable:!0,get:function(){return Mr}}),Object.defineProperty(exports,`rt`,{enumerable:!0,get:function(){return Pu}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return Ld}}),Object.defineProperty(exports,`sa`,{enumerable:!0,get:function(){return ja}}),Object.defineProperty(exports,`si`,{enumerable:!0,get:function(){return Eo}}),Object.defineProperty(exports,`sn`,{enumerable:!0,get:function(){return gl}}),Object.defineProperty(exports,`so`,{enumerable:!0,get:function(){return ki}}),Object.defineProperty(exports,`sr`,{enumerable:!0,get:function(){return Zs}}),Object.defineProperty(exports,`ss`,{enumerable:!0,get:function(){return kr}}),Object.defineProperty(exports,`st`,{enumerable:!0,get:function(){return Nu}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return sf}}),Object.defineProperty(exports,`ta`,{enumerable:!0,get:function(){return Pa}}),Object.defineProperty(exports,`ti`,{enumerable:!0,get:function(){return Y}}),Object.defineProperty(exports,`tn`,{enumerable:!0,get:function(){return Sl}}),Object.defineProperty(exports,`to`,{enumerable:!0,get:function(){return Ni}}),Object.defineProperty(exports,`tr`,{enumerable:!0,get:function(){return oc}}),Object.defineProperty(exports,`ts`,{enumerable:!0,get:function(){return Lr}}),Object.defineProperty(exports,`tt`,{enumerable:!0,get:function(){return Bu}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return Id}}),Object.defineProperty(exports,`ua`,{enumerable:!0,get:function(){return la}}),Object.defineProperty(exports,`ui`,{enumerable:!0,get:function(){return q}}),Object.defineProperty(exports,`un`,{enumerable:!0,get:function(){return dl}}),Object.defineProperty(exports,`uo`,{enumerable:!0,get:function(){return wi}}),Object.defineProperty(exports,`ur`,{enumerable:!0,get:function(){return Ws}}),Object.defineProperty(exports,`us`,{enumerable:!0,get:function(){return Er}}),Object.defineProperty(exports,`ut`,{enumerable:!0,get:function(){return Au}}),Object.defineProperty(exports,`v`,{enumerable:!0,get:function(){return Md}}),Object.defineProperty(exports,`va`,{enumerable:!0,get:function(){return da}}),Object.defineProperty(exports,`vi`,{enumerable:!0,get:function(){return K}}),Object.defineProperty(exports,`vn`,{enumerable:!0,get:function(){return tl}}),Object.defineProperty(exports,`vo`,{enumerable:!0,get:function(){return _i}}),Object.defineProperty(exports,`vr`,{enumerable:!0,get:function(){return Ms}}),Object.defineProperty(exports,`vs`,{enumerable:!0,get:function(){return vr}}),Object.defineProperty(exports,`vt`,{enumerable:!0,get:function(){return Su}}),Object.defineProperty(exports,`w`,{enumerable:!0,get:function(){return yd}}),Object.defineProperty(exports,`wa`,{enumerable:!0,get:function(){return ba}}),Object.defineProperty(exports,`wi`,{enumerable:!0,get:function(){return po}}),Object.defineProperty(exports,`wn`,{enumerable:!0,get:function(){return Gc}}),Object.defineProperty(exports,`wo`,{enumerable:!0,get:function(){return di}}),Object.defineProperty(exports,`wr`,{enumerable:!0,get:function(){return Cs}}),Object.defineProperty(exports,`ws`,{enumerable:!0,get:function(){return _r}}),Object.defineProperty(exports,`wt`,{enumerable:!0,get:function(){return fu}}),Object.defineProperty(exports,`x`,{enumerable:!0,get:function(){return Sd}}),Object.defineProperty(exports,`xa`,{enumerable:!0,get:function(){return Ca}}),Object.defineProperty(exports,`xi`,{enumerable:!0,get:function(){return G}}),Object.defineProperty(exports,`xn`,{enumerable:!0,get:function(){return qc}}),Object.defineProperty(exports,`xo`,{enumerable:!0,get:function(){return pi}}),Object.defineProperty(exports,`xr`,{enumerable:!0,get:function(){return Es}}),Object.defineProperty(exports,`xs`,{enumerable:!0,get:function(){return mr}}),Object.defineProperty(exports,`xt`,{enumerable:!0,get:function(){return gu}}),Object.defineProperty(exports,`y`,{enumerable:!0,get:function(){return jd}}),Object.defineProperty(exports,`ya`,{enumerable:!0,get:function(){return ua}}),Object.defineProperty(exports,`yi`,{enumerable:!0,get:function(){return _o}}),Object.defineProperty(exports,`yn`,{enumerable:!0,get:function(){return Qc}}),Object.defineProperty(exports,`yo`,{enumerable:!0,get:function(){return gi}}),Object.defineProperty(exports,`yr`,{enumerable:!0,get:function(){return As}}),Object.defineProperty(exports,`ys`,{enumerable:!0,get:function(){return fr}}),Object.defineProperty(exports,`yt`,{enumerable:!0,get:function(){return xu}}),Object.defineProperty(exports,`z`,{enumerable:!0,get:function(){return id}}),Object.defineProperty(exports,`za`,{enumerable:!0,get:function(){return na}}),Object.defineProperty(exports,`zi`,{enumerable:!0,get:function(){return $a}}),Object.defineProperty(exports,`zn`,{enumerable:!0,get:function(){return Ec}}),Object.defineProperty(exports,`zo`,{enumerable:!0,get:function(){return Qr}}),Object.defineProperty(exports,`zr`,{enumerable:!0,get:function(){return rs}}),Object.defineProperty(exports,`zt`,{enumerable:!0,get:function(){return Jl}});
2994
+ //# sourceMappingURL=syncConfigurationToTranscend-Bd0ZTIm1.cjs.map