@transcend-io/cli 8.36.1 → 8.37.1

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 (203) hide show
  1. package/README.md +68 -19
  2. package/dist/{api-keys-DB0BZSh5.cjs → api-keys-Bb2BbZQe.cjs} +2 -2
  3. package/dist/{api-keys-DB0BZSh5.cjs.map → api-keys-Bb2BbZQe.cjs.map} +1 -1
  4. package/dist/app-C9jD-f87.cjs +131 -0
  5. package/dist/app-C9jD-f87.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-4d0zlFxk.cjs} +2 -2
  16. package/dist/{code-scanning-Yc7rgoTY.cjs.map → code-scanning-4d0zlFxk.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-XJ7XPQ04.cjs +9 -0
  20. package/dist/{command-41dUPvEa.cjs.map → command-XJ7XPQ04.cjs.map} +1 -1
  21. package/dist/{consent-manager-BNMaKHId.cjs → consent-manager-CCyvzvY5.cjs} +2 -2
  22. package/dist/{consent-manager-BNMaKHId.cjs.map → consent-manager-CCyvzvY5.cjs.map} +1 -1
  23. package/dist/constants-wkuhlP8d.cjs +2 -0
  24. package/dist/{constants-JoCDv9ym.cjs.map → constants-wkuhlP8d.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-DfEGA7Rf.cjs} +2 -2
  28. package/dist/{cron-ClvgH2uD.cjs.map → cron-DfEGA7Rf.cjs.map} +1 -1
  29. package/dist/{data-inventory-BzEYoxaa.cjs → data-inventory-C1eqZk1M.cjs} +2 -2
  30. package/dist/{data-inventory-BzEYoxaa.cjs.map → data-inventory-C1eqZk1M.cjs.map} +1 -1
  31. package/dist/{dataFlowsToDataSilos-daBgPi7V.cjs → dataFlowsToDataSilos-DXlFFHMV.cjs} +2 -2
  32. package/dist/{dataFlowsToDataSilos-daBgPi7V.cjs.map → dataFlowsToDataSilos-DXlFFHMV.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-6TmoWv0o.cjs +2 -0
  38. package/dist/{impl-ClDXxODZ.cjs.map → impl-6TmoWv0o.cjs.map} +1 -1
  39. package/dist/impl-73q3K0b_.cjs +2 -0
  40. package/dist/{impl-BN61r-PG.cjs.map → impl-73q3K0b_.cjs.map} +1 -1
  41. package/dist/{impl-DjVmOb9T.cjs → impl-7LAuV25D.cjs} +2 -2
  42. package/dist/{impl-DjVmOb9T.cjs.map → impl-7LAuV25D.cjs.map} +1 -1
  43. package/dist/impl-B04CctrY.cjs +12 -0
  44. package/dist/{impl-BMxxKrNz.cjs.map → impl-B04CctrY.cjs.map} +1 -1
  45. package/dist/impl-BGoAnVJu.cjs +4 -0
  46. package/dist/{impl-FlZPR0yd.cjs.map → impl-BGoAnVJu.cjs.map} +1 -1
  47. package/dist/impl-BOEjB3fo.cjs +2 -0
  48. package/dist/impl-BOEjB3fo.cjs.map +1 -0
  49. package/dist/impl-BOEoFzcB.cjs +4 -0
  50. package/dist/{impl-8bci0gd2.cjs.map → impl-BOEoFzcB.cjs.map} +1 -1
  51. package/dist/impl-B_2CdctV.cjs +2 -0
  52. package/dist/{impl-CCOEjRnr.cjs.map → impl-B_2CdctV.cjs.map} +1 -1
  53. package/dist/impl-BfC5CRRX.cjs +2 -0
  54. package/dist/{impl-hGu8uCC4.cjs.map → impl-BfC5CRRX.cjs.map} +1 -1
  55. package/dist/impl-C-aKX3zu.cjs +2 -0
  56. package/dist/{impl-DU-WTXTY.cjs.map → impl-C-aKX3zu.cjs.map} +1 -1
  57. package/dist/impl-C4q9xHFr.cjs +2 -0
  58. package/dist/{impl-BIqdEXRo.cjs.map → impl-C4q9xHFr.cjs.map} +1 -1
  59. package/dist/impl-C6JjApDI.cjs +2 -0
  60. package/dist/{impl-Bv4gPikD.cjs.map → impl-C6JjApDI.cjs.map} +1 -1
  61. package/dist/impl-CKYwKeLz.cjs +2 -0
  62. package/dist/{impl-4pmSDQvA.cjs.map → impl-CKYwKeLz.cjs.map} +1 -1
  63. package/dist/impl-CLcnbVfj.cjs +2 -0
  64. package/dist/impl-CLcnbVfj.cjs.map +1 -0
  65. package/dist/impl-CR-wyJSg.cjs +2 -0
  66. package/dist/impl-CR-wyJSg.cjs.map +1 -0
  67. package/dist/impl-CV3axMeT.cjs +2 -0
  68. package/dist/{impl-cfDtPbS9.cjs.map → impl-CV3axMeT.cjs.map} +1 -1
  69. package/dist/impl-CgKn47V9.cjs +2 -0
  70. package/dist/{impl-DpdGWdrr.cjs.map → impl-CgKn47V9.cjs.map} +1 -1
  71. package/dist/impl-CmEsmnYZ.cjs +2 -0
  72. package/dist/{impl-Cp12F9tr.cjs.map → impl-CmEsmnYZ.cjs.map} +1 -1
  73. package/dist/impl-CnRqR4kw.cjs +2 -0
  74. package/dist/{impl-C4D1tHjp.cjs.map → impl-CnRqR4kw.cjs.map} +1 -1
  75. package/dist/impl-Cp7-Tctr.cjs +2 -0
  76. package/dist/{impl-_dGu54cO.cjs.map → impl-Cp7-Tctr.cjs.map} +1 -1
  77. package/dist/impl-CqadSQOh.cjs +2 -0
  78. package/dist/impl-CqadSQOh.cjs.map +1 -0
  79. package/dist/impl-Cru4riTc.cjs +5 -0
  80. package/dist/impl-Cru4riTc.cjs.map +1 -0
  81. package/dist/impl-CsKfLxov.cjs +2 -0
  82. package/dist/impl-CsKfLxov.cjs.map +1 -0
  83. package/dist/impl-CyzGdwB1.cjs +2 -0
  84. package/dist/impl-CyzGdwB1.cjs.map +1 -0
  85. package/dist/impl-DC_YquN8.cjs +2 -0
  86. package/dist/{impl-BwAnSxkP.cjs.map → impl-DC_YquN8.cjs.map} +1 -1
  87. package/dist/impl-DHuguAlW.cjs +2 -0
  88. package/dist/{impl-BRuqPhJU.cjs.map → impl-DHuguAlW.cjs.map} +1 -1
  89. package/dist/impl-DNRsFfbU.cjs +2 -0
  90. package/dist/{impl-8zottXEQ.cjs.map → impl-DNRsFfbU.cjs.map} +1 -1
  91. package/dist/impl-DQ8rr7Fv.cjs +2 -0
  92. package/dist/{impl-ay7i0K_5.cjs.map → impl-DQ8rr7Fv.cjs.map} +1 -1
  93. package/dist/impl-DetfC7CT.cjs +2 -0
  94. package/dist/impl-DetfC7CT.cjs.map +1 -0
  95. package/dist/impl-DhbV3bBZ.cjs +2 -0
  96. package/dist/impl-DhbV3bBZ.cjs.map +1 -0
  97. package/dist/impl-DjP2MJNK.cjs +2 -0
  98. package/dist/{impl-CSZwdpH-.cjs.map → impl-DjP2MJNK.cjs.map} +1 -1
  99. package/dist/impl-DmXYpp-M.cjs +2 -0
  100. package/dist/{impl-J5fV8gbh.cjs.map → impl-DmXYpp-M.cjs.map} +1 -1
  101. package/dist/impl-Dp3-sA6b.cjs +2 -0
  102. package/dist/{impl-yHutqfbd.cjs.map → impl-Dp3-sA6b.cjs.map} +1 -1
  103. package/dist/{impl-KgEJvOhE.cjs → impl-DqfyWyoV.cjs} +2 -2
  104. package/dist/{impl-KgEJvOhE.cjs.map → impl-DqfyWyoV.cjs.map} +1 -1
  105. package/dist/impl-DrJj-l3s.cjs +2 -0
  106. package/dist/{impl-BXMfTm4K.cjs.map → impl-DrJj-l3s.cjs.map} +1 -1
  107. package/dist/impl-Dvoj_snk.cjs +2 -0
  108. package/dist/{impl-BouHRicT.cjs.map → impl-Dvoj_snk.cjs.map} +1 -1
  109. package/dist/impl-DwWoAbT_.cjs +2 -0
  110. package/dist/{impl-DhdY6lbj.cjs.map → impl-DwWoAbT_.cjs.map} +1 -1
  111. package/dist/impl-DxhyqjcY.cjs +2 -0
  112. package/dist/{impl-CFmFCVt8.cjs.map → impl-DxhyqjcY.cjs.map} +1 -1
  113. package/dist/impl-Dzq0t6mX.cjs +2 -0
  114. package/dist/{impl-BH0HWnIY.cjs.map → impl-Dzq0t6mX.cjs.map} +1 -1
  115. package/dist/impl-LgUGDTQK.cjs +2 -0
  116. package/dist/{impl-BS8t24Z7.cjs.map → impl-LgUGDTQK.cjs.map} +1 -1
  117. package/dist/impl-XyWPUpvw.cjs +2 -0
  118. package/dist/{impl-BWiNjS6v.cjs.map → impl-XyWPUpvw.cjs.map} +1 -1
  119. package/dist/impl-_QrpPIPw.cjs +2 -0
  120. package/dist/{impl-D3sI4I1g.cjs.map → impl-_QrpPIPw.cjs.map} +1 -1
  121. package/dist/impl-kxwq3OMk.cjs +2 -0
  122. package/dist/{impl-CoxOrlXu.cjs.map → impl-kxwq3OMk.cjs.map} +1 -1
  123. package/dist/impl-u8o3S8w2.cjs +2 -0
  124. package/dist/{impl-SkiG9sWb.cjs.map → impl-u8o3S8w2.cjs.map} +1 -1
  125. package/dist/index.cjs +4 -4
  126. package/dist/index.cjs.map +1 -1
  127. package/dist/index.d.cts +65 -2
  128. package/dist/{logger-BaHHbWVd.cjs → logger-DQwEYtSS.cjs} +2 -2
  129. package/dist/{logger-BaHHbWVd.cjs.map → logger-DQwEYtSS.cjs.map} +1 -1
  130. package/dist/{manual-enrichment-D-0rM9KN.cjs → manual-enrichment-CzTpv-mM.cjs} +2 -2
  131. package/dist/{manual-enrichment-D-0rM9KN.cjs.map → manual-enrichment-CzTpv-mM.cjs.map} +1 -1
  132. package/dist/{mergeTranscendInputs-PPpGbYgG.cjs → mergeTranscendInputs-BIBCYbug.cjs} +2 -2
  133. package/dist/{mergeTranscendInputs-PPpGbYgG.cjs.map → mergeTranscendInputs-BIBCYbug.cjs.map} +1 -1
  134. package/dist/{pooling-DbIx6-i7.cjs → pooling-DA_LwUEp.cjs} +2 -2
  135. package/dist/{pooling-DbIx6-i7.cjs.map → pooling-DA_LwUEp.cjs.map} +1 -1
  136. package/dist/{preference-management-Dapt3Li3.cjs → preference-management-aOhuZCuE.cjs} +2 -2
  137. package/dist/{preference-management-Dapt3Li3.cjs.map → preference-management-aOhuZCuE.cjs.map} +1 -1
  138. package/dist/{readTranscendYaml-CL9nujUr.cjs → readTranscendYaml-Cycz6RxW.cjs} +2 -2
  139. package/dist/{readTranscendYaml-CL9nujUr.cjs.map → readTranscendYaml-Cycz6RxW.cjs.map} +1 -1
  140. package/dist/syncConfigurationToTranscend-DuTZKIG8.cjs +3000 -0
  141. package/dist/syncConfigurationToTranscend-DuTZKIG8.cjs.map +1 -0
  142. package/dist/{uploadConsents-CN1JucL3.cjs → uploadConsents-C9Pv8Awr.cjs} +2 -2
  143. package/dist/{uploadConsents-CN1JucL3.cjs.map → uploadConsents-C9Pv8Awr.cjs.map} +1 -1
  144. package/package.json +1 -1
  145. package/dist/app-BOlZhpYh.cjs +0 -118
  146. package/dist/app-BOlZhpYh.cjs.map +0 -1
  147. package/dist/buildAIIntegrationType-n_Qlv8wG.cjs +0 -2
  148. package/dist/codecs-JSDJgtyL.cjs +0 -2
  149. package/dist/command-41dUPvEa.cjs +0 -9
  150. package/dist/constants-JoCDv9ym.cjs +0 -2
  151. package/dist/context-Bw1xk9Q_.cjs +0 -2
  152. package/dist/enums-CBXlBJii.cjs +0 -2
  153. package/dist/impl-4pmSDQvA.cjs +0 -2
  154. package/dist/impl-8bci0gd2.cjs +0 -4
  155. package/dist/impl-8zottXEQ.cjs +0 -2
  156. package/dist/impl-BFOghVmx.cjs +0 -2
  157. package/dist/impl-BFOghVmx.cjs.map +0 -1
  158. package/dist/impl-BH0HWnIY.cjs +0 -2
  159. package/dist/impl-BIqdEXRo.cjs +0 -2
  160. package/dist/impl-BMxxKrNz.cjs +0 -12
  161. package/dist/impl-BN61r-PG.cjs +0 -2
  162. package/dist/impl-BRuqPhJU.cjs +0 -2
  163. package/dist/impl-BS8t24Z7.cjs +0 -2
  164. package/dist/impl-BWiNjS6v.cjs +0 -2
  165. package/dist/impl-BXMfTm4K.cjs +0 -2
  166. package/dist/impl-BYK9pQs0.cjs +0 -2
  167. package/dist/impl-BYK9pQs0.cjs.map +0 -1
  168. package/dist/impl-BjOFvm4E.cjs +0 -2
  169. package/dist/impl-BjOFvm4E.cjs.map +0 -1
  170. package/dist/impl-BouHRicT.cjs +0 -2
  171. package/dist/impl-Bv4gPikD.cjs +0 -2
  172. package/dist/impl-BwAnSxkP.cjs +0 -2
  173. package/dist/impl-C-_9uRms.cjs +0 -2
  174. package/dist/impl-C-_9uRms.cjs.map +0 -1
  175. package/dist/impl-C4D1tHjp.cjs +0 -2
  176. package/dist/impl-CA_CO88W.cjs +0 -2
  177. package/dist/impl-CA_CO88W.cjs.map +0 -1
  178. package/dist/impl-CCOEjRnr.cjs +0 -2
  179. package/dist/impl-CFmFCVt8.cjs +0 -2
  180. package/dist/impl-CSZwdpH-.cjs +0 -2
  181. package/dist/impl-ChNLuyNq.cjs +0 -2
  182. package/dist/impl-ChNLuyNq.cjs.map +0 -1
  183. package/dist/impl-ClDXxODZ.cjs +0 -2
  184. package/dist/impl-CoxOrlXu.cjs +0 -2
  185. package/dist/impl-Cp12F9tr.cjs +0 -2
  186. package/dist/impl-D3sI4I1g.cjs +0 -2
  187. package/dist/impl-D7WBmmHb.cjs +0 -2
  188. package/dist/impl-D7WBmmHb.cjs.map +0 -1
  189. package/dist/impl-DU-WTXTY.cjs +0 -2
  190. package/dist/impl-DhdY6lbj.cjs +0 -2
  191. package/dist/impl-DpdGWdrr.cjs +0 -2
  192. package/dist/impl-FlZPR0yd.cjs +0 -4
  193. package/dist/impl-J5fV8gbh.cjs +0 -2
  194. package/dist/impl-NLEQuKnT.cjs +0 -2
  195. package/dist/impl-NLEQuKnT.cjs.map +0 -1
  196. package/dist/impl-SkiG9sWb.cjs +0 -2
  197. package/dist/impl-_dGu54cO.cjs +0 -2
  198. package/dist/impl-ay7i0K_5.cjs +0 -2
  199. package/dist/impl-cfDtPbS9.cjs +0 -2
  200. package/dist/impl-hGu8uCC4.cjs +0 -2
  201. package/dist/impl-yHutqfbd.cjs +0 -2
  202. package/dist/syncConfigurationToTranscend-D4PLA70C.cjs +0 -2994
  203. package/dist/syncConfigurationToTranscend-D4PLA70C.cjs.map +0 -1
@@ -1,2994 +0,0 @@
1
- const e=require(`./enums-CBXlBJii.cjs`),t=require(`./constants-JoCDv9ym.cjs`),n=require(`./logger-BaHHbWVd.cjs`);let r=require(`@transcend-io/privacy-types`),i=require(`@transcend-io/type-utils`),a=require(`node:fs`),o=require(`node:path`),s=require(`colors`);s=e.s(s);let c=require(`io-ts`);c=e.s(c);let l=require(`@transcend-io/airgap.js-types`),u=require(`@transcend-io/internationalization`),d=require(`bluebird`);d=e.s(d);let f=require(`graphql-request`),p=require(`inquirer`);p=e.s(p);let m=require(`inquirer-autocomplete-prompt`);m=e.s(m);let h=require(`fuzzysearch`);h=e.s(h);let g=require(`csv-parse/sync`),_=require(`got`);_=e.s(_);let v=require(`semver`);v=e.s(v);let y=require(`cli-progress`);y=e.s(y);let b=require(`io-ts-types`),x=require(`@transcend-io/persisted-state`),S=require(`fast-csv`);S=e.s(S);var C=/\s/;function w(e){for(var t=e.length;t--&&C.test(e.charAt(t)););return t}var T=w,E=/^\s+/;function D(e){return e&&e.slice(0,T(e)+1).replace(E,``)}var O=D,k=NaN,A=/^[-+]0x[0-9a-f]+$/i,j=/^0b[01]+$/i,M=/^0o[0-7]+$/i,N=parseInt;function P(e){if(typeof e==`number`)return e;if(t.z(e))return k;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=O(e);var r=j.test(e);return r||M.test(e)?N(e.slice(2),r?2:8):A.test(e)?k:+e}var F=P,I=1/0,ee=17976931348623157e292;function L(e){return e?(e=F(e),e===I||e===-I?(e<0?-1:1)*ee:e===e?e:0):e===0?e:0}var te=L;function R(e){var t=te(e),n=t%1;return t===t?n?t-n:t:0}var ne=R;function re(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 ie=re;function ae(){}var oe=ae,se=800,ce=16,le=Date.now;function ue(e){var t=0,n=0;return function(){var r=le(),i=ce-(r-n);if(n=r,i>0){if(++t>=se)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var z=ue;function de(e){return function(){return e}}var fe=de,pe=t.P?function(e,n){return t.P(e,`toString`,{configurable:!0,enumerable:!1,value:fe(n),writable:!0})}:t.F,me=pe,he=z(me),ge=he;function _e(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 ve=_e;function ye(e){return e!==e}var be=ye;function xe(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}var Se=xe;function Ce(e,t,n){return t===t?Se(e,t,n):ve(e,be,n)}var we=Ce;function Te(e,t){return!!(e!=null&&e.length)&&we(e,t,0)>-1}var Ee=Te,De=Math.max;function Oe(e,t,n){return t=De(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,a=De(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),ie(e,this,s)}}var ke=Oe;function Ae(e,n){return ge(ke(e,n,t.F),e+``)}var je=Ae;function Me(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 Ne=Me,Pe=t.V?t.V.isConcatSpreadable:void 0;function Fe(e){return t.L(e)||t.k(e)||!!(Pe&&e&&e[Pe])}var Ie=Fe;function Le(e,n,r,i,a){var o=-1,s=e.length;for(r||=Ie,a||=[];++o<s;){var c=e[o];n>0&&r(c)?n>1?Le(c,n-1,r,i,a):t.T(a,c):i||(a[a.length]=c)}return a}var Re=Le;function ze(e){return e!=null&&e.length?Re(e,1):[]}var Be=ze;function Ve(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 He=Ve;function Ue(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:He(e,t,n)}var We=Ue,Ge=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function Ke(e){return Ge.test(e)}var qe=Ke;function Je(e){return e.split(``)}var Ye=Je,Xe=`\\ud800-\\udfff`,Ze=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,Qe=`\\ufe0e\\ufe0f`,$e=`[`+Xe+`]`,et=`[`+Ze+`]`,tt=`\\ud83c[\\udffb-\\udfff]`,nt=`(?:`+et+`|`+tt+`)`,rt=`[^`+Xe+`]`,it=`(?:\\ud83c[\\udde6-\\uddff]){2}`,at=`[\\ud800-\\udbff][\\udc00-\\udfff]`,ot=`\\u200d`,st=nt+`?`,ct=`[`+Qe+`]?`,lt=`(?:`+ot+`(?:`+[rt,it,at].join(`|`)+`)`+ct+st+`)*`,ut=ct+st+lt,dt=`(?:`+[rt+et+`?`,et,it,at,$e].join(`|`)+`)`,ft=RegExp(tt+`(?=`+tt+`)|`+dt+ut,`g`);function pt(e){return e.match(ft)||[]}var mt=pt;function ht(e){return qe(e)?mt(e):Ye(e)}var gt=ht;function _t(e){return function(n){n=t.D(n);var r=qe(n)?gt(n):void 0,i=r?r[0]:n.charAt(0),a=r?We(r,1).join(``):n.slice(1);return i[e]()+a}}var vt=_t,yt=vt(`toUpperCase`),bt=yt;function xt(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 St=xt;function Ct(e){return function(t){return e?.[t]}}var wt=Ct,Tt=wt({À:`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`}),Et=Tt,Dt=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ot=RegExp(`[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]`,`g`);function kt(e){return e=t.D(e),e&&e.replace(Dt,Et).replace(Ot,``)}var At=kt,jt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Mt(e){return e.match(jt)||[]}var Nt=Mt,Pt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Ft(e){return Pt.test(e)}var It=Ft,Lt=`\\ud800-\\udfff`,Rt=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,zt=`\\u2700-\\u27bf`,Bt=`a-z\\xdf-\\xf6\\xf8-\\xff`,Vt=`\\xac\\xb1\\xd7\\xf7`,Ht=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,Ut=`\\u2000-\\u206f`,Wt=` \\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`,Gt=`A-Z\\xc0-\\xd6\\xd8-\\xde`,Kt=`\\ufe0e\\ufe0f`,qt=Vt+Ht+Ut+Wt,Jt=`['’]`,Yt=`[`+qt+`]`,Xt=`[`+Rt+`]`,Zt=`\\d+`,Qt=`[`+zt+`]`,$t=`[`+Bt+`]`,en=`[^`+Lt+qt+Zt+zt+Bt+Gt+`]`,tn=`(?:`+Xt+`|\\ud83c[\\udffb-\\udfff])`,nn=`[^`+Lt+`]`,rn=`(?:\\ud83c[\\udde6-\\uddff]){2}`,an=`[\\ud800-\\udbff][\\udc00-\\udfff]`,on=`[`+Gt+`]`,sn=`\\u200d`,cn=`(?:`+$t+`|`+en+`)`,ln=`(?:`+on+`|`+en+`)`,un=`(?:`+Jt+`(?:d|ll|m|re|s|t|ve))?`,dn=`(?:`+Jt+`(?:D|LL|M|RE|S|T|VE))?`,fn=tn+`?`,pn=`[`+Kt+`]?`,mn=`(?:`+sn+`(?:`+[nn,rn,an].join(`|`)+`)`+pn+fn+`)*`,hn=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,gn=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,_n=pn+fn+mn,vn=`(?:`+[Qt,rn,an].join(`|`)+`)`+_n,yn=RegExp([on+`?`+$t+`+`+un+`(?=`+[Yt,on,`$`].join(`|`)+`)`,ln+`+`+dn+`(?=`+[Yt,on+cn,`$`].join(`|`)+`)`,on+`?`+cn+`+`+un,on+`+`+dn,gn,hn,Zt,vn].join(`|`),`g`);function bn(e){return e.match(yn)||[]}var xn=bn;function Sn(e,n,r){return e=t.D(e),n=r?void 0:n,n===void 0?It(e)?xn(e):Nt(e):e.match(n)||[]}var Cn=Sn,wn=RegExp(`['’]`,`g`);function Tn(e){return function(t){return St(Cn(At(t).replace(wn,``)),e,``)}}var En=Tn,Dn=Math.ceil,On=Math.max;function kn(e,t,n){t=(n?Ne(e,t,n):t===void 0)?1:On(ne(t),0);var r=e==null?0:e.length;if(!r||t<1)return[];for(var i=0,a=0,o=Array(Dn(r/t));i<r;)o[a++]=He(e,i,i+=t);return o}var B=kn;function An(e){return t.B(e)&&t.A(e)}var jn=An;function Mn(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 Nn=Mn,Pn=200;function Fn(e,n,r,i){var a=-1,o=Ee,s=!0,c=e.length,l=[],u=n.length;if(!c)return l;r&&(n=t.R(n,t.O(r))),i?(o=Nn,s=!1):n.length>=Pn&&(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 In=Fn,Ln=je(function(e,t){return jn(e)?In(e,Re(t,1,jn,!0)):[]}),V=Ln;function Rn(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 zn=Rn,Bn=Object.prototype.hasOwnProperty,Vn=t._(function(e,n,r){Bn.call(e,r)?e[r].push(n):t.M(e,r,[n])}),Hn=Vn;function Un(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 Wn=Un;function Gn(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var Kn=Gn;function qn(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 Jn=qn;function Yn(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=Jn(i[r],a[r]);if(c)return r>=s?c:c*(n[r]==`desc`?-1:1)}return e.index-t.index}var Xn=Yn;function Zn(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)),Kn(zn(e,function(e,r,a){return{criteria:t.R(n,function(t){return t(e)}),index:++i,value:e}}),function(e,t){return Xn(e,t,r)})}var Qn=Zn,$n=je(function(e,t){if(e==null)return[];var n=t.length;return n>1&&Ne(e,t[0],t[1])?t=[]:n>2&&Ne(t[0],t[1],t[2])&&(t=[t[0]]),Qn(e,Re(t,1),[])}),er=$n,tr=En(function(e,t,n){return e+(n?` `:``)+bt(t)}),nr=tr,rr=t.w&&1/t.x(new t.w([,-0]))[1]==1/0?function(e){return new t.w(e)}:oe,ir=rr,ar=200;function or(e,n,r){var i=-1,a=Ee,o=e.length,s=!0,c=[],l=c;if(r)s=!1,a=Nn;else if(o>=ar){var u=n?null:ir(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 sr=or;function cr(e){return e&&e.length?sr(e):[]}var H=cr;function lr(e,n){return e&&e.length?sr(e,t.b(n,2)):[]}var ur=lr;const{map:U,mapSeries:W}=d.default,dr=f.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
- `,fr=f.gql`
51
- query TranscendCliDataPointCount($filterBy: DataPointFiltersInput) {
52
- dataPoints(filterBy: $filterBy, useMaster: false) {
53
- totalCount
54
- }
55
- }
56
- `,pr=f.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
- `,mr=f.gql`
92
- query TranscendCliSubDataPointsCount($filterBy: SubDataPointFiltersInput) {
93
- subDataPoints(filterBy: $filterBy, useMaster: false) {
94
- totalCount
95
- }
96
- }
97
- `,hr=f.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
- `,gr=f.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
- `,_r=f.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
- `,vr=f.gql`
206
- query TranscendCliEntryCount(
207
- $filterBy: UnstructuredSubDataPointRecommendationsFilterInput
208
- ) {
209
- unstructuredSubDataPointRecommendations(
210
- filterBy: $filterBy
211
- useMaster: false
212
- ) {
213
- totalCount
214
- }
215
- }
216
- `,yr=f.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
- `,br=f.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
- `,xr=f.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
- `,Sr=f.gql`
327
- mutation TranscendCliUpdateDataSilo($input: UpdateDataSilosInput!) {
328
- updateDataSilos(input: $input) {
329
- clientMutationId
330
- dataSilos {
331
- id
332
- title
333
- }
334
- }
335
- }
336
- `,Cr=f.gql`
337
- mutation TranscendCliCreateDataSilo($input: [CreateDataSilosInput!]!) {
338
- createDataSilos(input: $input) {
339
- dataSilos {
340
- id
341
- title
342
- }
343
- }
344
- }
345
- `,wr=f.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
- `,Tr=f.gql`
382
- query TranscendCliInitializer {
383
- initializer {
384
- id
385
- identifiers {
386
- name
387
- }
388
- }
389
- }
390
- `,Er=f.gql`
391
- mutation TranscendCliCreateEnricher($input: EnricherInput!) {
392
- createEnricher(input: $input) {
393
- clientMutationId
394
- }
395
- }
396
- `,Dr=f.gql`
397
- mutation TranscendCliUpdateEnricher($input: UpdateEnricherInput!) {
398
- updateEnricher(input: $input) {
399
- clientMutationId
400
- }
401
- }
402
- `,Or=f.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
- `,kr=f.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
- `,Ar=f.gql`
447
- query TranscendCliNewIdentifierTypes {
448
- newIdentifierTypes {
449
- name
450
- }
451
- }
452
- `,jr=f.gql`
453
- mutation TranscendCliCreateIdentifier($input: IdentifierInput!) {
454
- createIdentifier(input: $input) {
455
- identifier {
456
- id
457
- name
458
- }
459
- }
460
- }
461
- `,Mr=f.gql`
462
- mutation TranscendCliUpdateIdentifier($input: UpdateIdentifierInput!) {
463
- updateIdentifier(input: $input) {
464
- clientMutationId
465
- }
466
- }
467
- `,Nr=f.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
- `,Pr=f.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
- `,Fr=f.gql`
492
- mutation TranscendCliUpdateDataSubject($input: UpdateSubjectInput!) {
493
- updateSubject(input: $input) {
494
- clientMutationId
495
- }
496
- }
497
- `,Ir=f.gql`
498
- mutation TranscendCliToggleDataSubject($input: ToggleSubjectInput!) {
499
- toggleSubject(input: $input) {
500
- clientMutationId
501
- }
502
- }
503
- `,Lr=f.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
- `,Rr=f.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
- `,zr=f.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
- `,Br=f.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
- `,Vr=f.gql`
591
- mutation TranscendCliCreateApiKey($input: ApiKeyInput!) {
592
- createApiKey(input: $input) {
593
- apiKey {
594
- id
595
- apiKey
596
- title
597
- }
598
- }
599
- }
600
- `,Hr=f.gql`
601
- mutation TranscendCliDeleteApiKey($id: ID!) {
602
- deleteApiKey(id: $id) {
603
- clientMutationId
604
- }
605
- }
606
- `,Ur=f.gql`
607
- mutation TranscendCliCreatePreferenceAccessTokens(
608
- $input: CreatePrivacyCenterAccessTokensInput!
609
- ) {
610
- createPrivacyCenterAccessTokens(input: $input) {
611
- nodes {
612
- token
613
- }
614
- }
615
- }
616
- `,Wr=f.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
- `,Gr=f.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
- `,Kr=f.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
- `,qr=f.gql`
660
- mutation TranscendCliCreateTemplate($title: String!) {
661
- createTemplate(input: { title: $title, template: "", subject: $title }) {
662
- clientMutationId
663
- }
664
- }
665
- `,Jr=f.gql`
666
- query TranscendCliOrganization {
667
- organization {
668
- sombra {
669
- customerUrl
670
- }
671
- }
672
- }
673
- `,Yr=f.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
- `,Xr=f.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
- `,Zr=f.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
- `,Qr=f.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
- `,$r=f.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
- `,ei=f.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
- `,ti=f.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
- `,ni=f.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
- `,ri=f.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
- `,ii=f.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
- `,ai=f.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
- `,oi=f.gql`
1002
- mutation TranscendCliApprovePrivacyRequest($input: CommunicationInput!) {
1003
- approveRequest(input: $input) {
1004
- request {
1005
- id
1006
- }
1007
- }
1008
- }
1009
- `,si=f.gql`
1010
- mutation TranscendCliCancelPrivacyRequest($input: CommunicationInput!) {
1011
- cancelRequest(input: $input) {
1012
- request {
1013
- id
1014
- }
1015
- }
1016
- }
1017
- `,ci=f.gql`
1018
- mutation TranscendCliUpdatePrivacyRequest($input: UpdateRequestInput!) {
1019
- updateRequest(input: $input) {
1020
- request {
1021
- id
1022
- }
1023
- }
1024
- }
1025
- `,li=f.gql`
1026
- mutation TranscendCliNotifyAdditionalTime($input: AdditionalTimeInput!) {
1027
- notifyAdditionalTime(input: $input) {
1028
- clientMutationId
1029
- }
1030
- }
1031
- `,ui=f.gql`
1032
- query TranscendCliFetchMessage {
1033
- translatedMessages {
1034
- id
1035
- defaultMessage
1036
- description
1037
- targetReactIntlId
1038
- translations {
1039
- locale
1040
- value
1041
- }
1042
- }
1043
- }
1044
- `,di=f.gql`
1045
- mutation TranscendCliUpdateIntlMessages($messages: [MessageInput!]!) {
1046
- updateIntlMessages(input: { messages: $messages, skipPublish: true }) {
1047
- clientMutationId
1048
- }
1049
- }
1050
- `,fi=f.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
- `,pi=f.gql`
1079
- mutation TranscendCliRetryRequestEnricher($requestEnricherId: ID!) {
1080
- retryRequestEnricher(id: $requestEnricherId) {
1081
- requestEnricher {
1082
- id
1083
- }
1084
- }
1085
- }
1086
- `,mi=f.gql`
1087
- mutation TranscendCliSkipRequestEnricher($requestEnricherId: ID!) {
1088
- skipRequestEnricher(id: $requestEnricherId) {
1089
- requestEnricher {
1090
- id
1091
- }
1092
- }
1093
- }
1094
- `,hi=`
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
- `,gi=f.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
- ${hi}
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
- `,_i=f.gql`
1368
- mutation TranscendCliImportOneTrustAssessmentForms(
1369
- $input: ImportOnetrustAssessmentsInput!
1370
- ) {
1371
- importOneTrustAssessmentForms(input: $input) {
1372
- assessmentForms {
1373
- id
1374
- title
1375
- }
1376
- }
1377
- }
1378
- `,vi=f.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
- `,yi=f.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
- `,bi=f.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
- ${hi}
1496
- }
1497
- }
1498
- }
1499
- }
1500
- `,xi=f.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
- `,Si=f.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
- `,Ci=f.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
- `,wi=f.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
- `,Ti=f.gql`
1579
- mutation TranscendCliUpdatePrompts($input: UpdatePromptsInput!) {
1580
- updatePrompts(input: $input) {
1581
- clientMutationId
1582
- }
1583
- }
1584
- `,Ei=f.gql`
1585
- mutation TranscendCliCreatePrompt($input: CreatePromptInput!) {
1586
- createPrompt(input: $input) {
1587
- clientMutationId
1588
- prompt {
1589
- id
1590
- }
1591
- }
1592
- }
1593
- `,Di=f.gql`
1594
- mutation TranscendCliUpdatePromptPartials(
1595
- $input: UpdatePromptPartialsInput!
1596
- ) {
1597
- updatePromptPartials(input: $input) {
1598
- clientMutationId
1599
- }
1600
- }
1601
- `,Oi=f.gql`
1602
- mutation TranscendCliCreatePromptPartial($input: CreatePromptPartialInput!) {
1603
- createPromptPartial(input: $input) {
1604
- clientMutationId
1605
- promptPartial {
1606
- id
1607
- }
1608
- }
1609
- }
1610
- `,ki=f.gql`
1611
- mutation TranscendCliUpdatePromptGroups($input: UpdatePromptGroupsInput!) {
1612
- updatePromptGroups(input: $input) {
1613
- clientMutationId
1614
- }
1615
- }
1616
- `,Ai=f.gql`
1617
- mutation TranscendCliCreatePromptPartial($input: CreatePromptGroupInput!) {
1618
- createPromptGroup(input: $input) {
1619
- clientMutationId
1620
- promptGroup {
1621
- id
1622
- }
1623
- }
1624
- }
1625
- `,ji=f.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
- `,Mi=f.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
- `,Ni=f.gql`
1661
- mutation TranscendCliRetryRequestDataSilo($requestDataSiloId: ID!) {
1662
- retryRequestDataSilo(id: $requestDataSiloId) {
1663
- requestDataSilo {
1664
- id
1665
- }
1666
- }
1667
- }
1668
- `,Pi=f.gql`
1669
- query TranscendCliListReducedRequestsForDataSiloCount(
1670
- $input: BulkCompletionReducedRequestInput!
1671
- ) {
1672
- listReducedRequestsForDataSilo(input: $input) {
1673
- totalCount
1674
- }
1675
- }
1676
- `,Fi=f.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
- `,Ii=f.gql`
1712
- mutation TranscendCliCreateTeam($input: TeamInput!) {
1713
- createTeam(input: $input) {
1714
- team {
1715
- id
1716
- name
1717
- }
1718
- }
1719
- }
1720
- `,Li=f.gql`
1721
- mutation TranscendCliUpdateTeam($input: UpdateTeamInput!) {
1722
- updateTeam(input: $input) {
1723
- team {
1724
- id
1725
- name
1726
- }
1727
- }
1728
- }
1729
- `,Ri=f.gql`
1730
- mutation TranscendCliRemoveRequestIdentifiers(
1731
- $input: RemoveRequestIdentifiersInput!
1732
- ) {
1733
- removeRequestIdentifiers(input: $input) {
1734
- count
1735
- }
1736
- }
1737
- `,zi=f.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
- `,Bi=f.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
- `,Vi=f.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
- `,Hi=f.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
- `,Ui=f.gql`
1822
- mutation TranscendCliReportPromptRun($input: ReportPromptRunInput!) {
1823
- reportPromptRun(input: $input) {
1824
- clientMutationId
1825
- promptRun {
1826
- id
1827
- }
1828
- }
1829
- }
1830
- `,Wi=f.gql`
1831
- mutation TranscendCliAddMessagesToPromptRun(
1832
- $input: AddMessagesToPromptRunInput!
1833
- ) {
1834
- addMessagesToPromptRun(input: $input) {
1835
- clientMutationId
1836
- promptRun {
1837
- id
1838
- }
1839
- }
1840
- }
1841
- `,Gi=f.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
- `,Ki=f.gql`
1856
- mutation TranscendCliCreateActionItemCollection(
1857
- $input: CreateActionItemCollectionInput!
1858
- ) {
1859
- createActionItemCollection(input: $input) {
1860
- created {
1861
- id
1862
- title
1863
- }
1864
- }
1865
- }
1866
- `,qi=f.gql`
1867
- mutation TranscendCliUpdateActionItemCollection(
1868
- $input: UpdateActionItemCollectionInput!
1869
- ) {
1870
- updateActionItemCollection(input: $input) {
1871
- clientMutationId
1872
- }
1873
- }
1874
- `,Ji=f.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
- `,Yi=f.gql`
1888
- mutation TranscendCliCreateAttributeValues(
1889
- $input: [CreateAttributeValuesInput!]!
1890
- ) {
1891
- createAttributeValues(input: $input) {
1892
- clientMutationId
1893
- }
1894
- }
1895
- `,Xi=f.gql`
1896
- mutation TranscendCliUpdateAttributeValues(
1897
- $input: [UpdateAttributeValueInput!]!
1898
- ) {
1899
- updateAttributeValues(input: $input) {
1900
- clientMutationId
1901
- }
1902
- }
1903
- `,Zi=f.gql`
1904
- mutation TranscendCliDeleteAttributeValue($id: ID!) {
1905
- deleteAttributeValue(id: $id) {
1906
- clientMutationId
1907
- }
1908
- }
1909
- `,Qi=f.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
- `,$i=f.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
- `,ea=f.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
- `,ta=f.gql`
1970
- mutation TranscendCliSetResourceAttributes(
1971
- $input: SetResourceAttributesInput!
1972
- ) {
1973
- setResourceAttributes(input: $input) {
1974
- clientMutationId
1975
- }
1976
- }
1977
- `,na=f.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
- `,ra=f.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
- `,ia=f.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
- `,aa=f.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
- `,oa=f.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
- `,sa=f.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
- `,ca=f.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
- `,la=f.gql`
2153
- query TranscendCliFetchConsentManagerId {
2154
- consentManager {
2155
- consentManager {
2156
- id
2157
- }
2158
- }
2159
- }
2160
- `,ua=f.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
- `,da=f.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
- `,fa=f.gql`
2196
- mutation TranscendCliCreateConsentManager($privacyCenterId: ID!) {
2197
- createConsentManager(input: { privacyCenterId: $privacyCenterId }) {
2198
- consentManager {
2199
- id
2200
- }
2201
- }
2202
- }
2203
- `,pa=f.gql`
2204
- mutation TranscendCliUpdateConsentManager(
2205
- $airgapBundleId: ID!
2206
- $version: String!
2207
- ) {
2208
- updateConsentManager(id: $airgapBundleId, input: { version: $version }) {
2209
- clientMutationId
2210
- }
2211
- }
2212
- `,ma=f.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
- `,ha=f.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
- `,ga=f.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
- `,_a=f.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
- `,va=f.gql`
2259
- mutation TranscendCliUpdateLoadOptions($input: UpdateLoadOptionsInput!) {
2260
- updateLoadOptions(input: $input) {
2261
- clientMutationId
2262
- }
2263
- }
2264
- `,ya=f.gql`
2265
- mutation TranscendCliToggleUnknownRequestPolicy(
2266
- $input: ToggleUnknownRequestPolicyInput!
2267
- ) {
2268
- toggleUnknownRequestPolicy(input: $input) {
2269
- clientMutationId
2270
- }
2271
- }
2272
- `,ba=f.gql`
2273
- mutation TranscendCliToggleUnknownCookiePolicy(
2274
- $input: ToggleUnknownCookiePolicyInput!
2275
- ) {
2276
- toggleUnknownCookiePolicy(input: $input) {
2277
- clientMutationId
2278
- }
2279
- }
2280
- `,xa=f.gql`
2281
- mutation TranscendCliToggleTelemetryPartitionStrategy(
2282
- $input: ToggleTelemetryPartitionStrategyInput!
2283
- ) {
2284
- toggleTelemetryPartitioning(input: $input) {
2285
- clientMutationId
2286
- }
2287
- }
2288
- `,Sa=f.gql`
2289
- mutation TranscendCliToggleConsentPrecedence(
2290
- $input: ToggleConsentPrecedenceInput!
2291
- ) {
2292
- toggleConsentPrecedence(input: $input) {
2293
- clientMutationId
2294
- }
2295
- }
2296
- `,Ca=f.gql`
2297
- mutation TranscendCliUpdateConsentManagerTheme(
2298
- $input: UpdateConsentManagerThemeInput!
2299
- ) {
2300
- updateConsentManagerTheme(input: $input) {
2301
- clientMutationId
2302
- }
2303
- }
2304
- `,wa=f.gql`
2305
- mutation TranscendCliUpdateConsentExperience($input: UpdateExperienceInput!) {
2306
- updateExperience(input: $input) {
2307
- clientMutationId
2308
- }
2309
- }
2310
- `,Ta=f.gql`
2311
- mutation TranscendCliCreateConsentExperience($input: CreateExperienceInput!) {
2312
- createExperience(input: $input) {
2313
- clientMutationId
2314
- }
2315
- }
2316
- `,Ea=f.gql`
2317
- mutation TranscendCliCreateConsentPartition(
2318
- $input: CreateConsentPartitionInput!
2319
- ) {
2320
- createConsentPartition(input: $input) {
2321
- clientMutationId
2322
- }
2323
- }
2324
- `,Da=f.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
- `,Oa=f.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
- `,ka=f.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
- `,Aa=f.gql`
2389
- mutation TranscendCliUpdateBusinessEntities(
2390
- $input: [UpdateBusinessEntityInput!]!
2391
- ) {
2392
- updateBusinessEntities(input: { businessEntities: $input }) {
2393
- clientMutationId
2394
- }
2395
- }
2396
- `,ja=f.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
- `,Ma=f.gql`
2417
- mutation TranscendCliUpdateAction($input: UpdateActionInput!) {
2418
- updateAction(input: $input) {
2419
- clientMutationId
2420
- }
2421
- }
2422
- `,Na=f.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
- `,Pa=f.gql`
2470
- mutation TranscendCliUpdateActionItems($input: UpdateActionItemsInput!) {
2471
- updateActionItems(input: $input) {
2472
- clientMutationId
2473
- }
2474
- }
2475
- `,Fa=f.gql`
2476
- mutation TranscendCliCreateActionItems($input: [CreateActionItemsInput!]!) {
2477
- createActionItems(input: $input) {
2478
- clientMutationId
2479
- }
2480
- }
2481
- `,Ia=f.gql`
2482
- query TranscendCliFetchPrivacyCenterId($url: String!) {
2483
- privacyCenter(lookup: { url: $url }) {
2484
- id
2485
- }
2486
- }
2487
- `,La=f.gql`
2488
- query TranscendCliDeployedPrivacyCenterUrl {
2489
- organization {
2490
- deployedPrivacyCenterUrl
2491
- }
2492
- }
2493
- `,Ra=f.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
- `,za=f.gql`
2519
- mutation TranscendCliUpdatePrivacyCenter($input: UpdatePrivacyCenterInput!) {
2520
- updatePrivacyCenter(input: $input) {
2521
- clientMutationId
2522
- }
2523
- }
2524
- `,Ba=f.gql`
2525
- mutation TranscendCliDetermineLoginMethod($email: String!) {
2526
- determineLoginMethod(input: { email: $email }) {
2527
- loginMethod {
2528
- email
2529
- sombraPublicKey
2530
- }
2531
- }
2532
- }
2533
- `,Va=f.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
- `,Ha=f.gql`
2557
- mutation TranscendCliAssumeRole($id: ID!, $publicKey: String!) {
2558
- assumeRole(id: $id, publicKey: $publicKey) {
2559
- clientMutationId
2560
- }
2561
- }
2562
- `,Ua=f.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
- `,Wa=f.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
- `,Ga=f.gql`
2632
- mutation TranscendCliCreateAgent($input: CreateAgentInput!) {
2633
- createAgent(input: $input) {
2634
- agent {
2635
- id
2636
- name
2637
- agentId
2638
- }
2639
- }
2640
- }
2641
- `,Ka=f.gql`
2642
- mutation TranscendCliUpdateAgents($input: UpdateAgentsInput!) {
2643
- updateAgents(input: $input) {
2644
- clientMutationId
2645
- }
2646
- }
2647
- `,qa=f.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
- `,Ja=f.gql`
2674
- mutation TranscendCliCreateAgentFile($input: CreateAgentFileInput!) {
2675
- createAgentFile(input: $input) {
2676
- agentFile {
2677
- id
2678
- name
2679
- fileId
2680
- initialFileName
2681
- }
2682
- }
2683
- }
2684
- `,Ya=f.gql`
2685
- mutation TranscendCliUpdateAgentFiles($input: UpdateAgentFilesInput!) {
2686
- updateAgentFiles(input: $input) {
2687
- clientMutationId
2688
- }
2689
- }
2690
- `,Xa=f.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
- `,Za=f.gql`
2709
- mutation TranscendCliCreateAgentFunction($input: CreateAgentFunctionInput!) {
2710
- createAgentFunction(input: $input) {
2711
- agentFunction {
2712
- id
2713
- name
2714
- }
2715
- }
2716
- }
2717
- `,Qa=f.gql`
2718
- mutation TranscendCliUpdateAgentFunctions(
2719
- $input: UpdateAgentFunctionsInput!
2720
- ) {
2721
- updateAgentFunctions(input: $input) {
2722
- clientMutationId
2723
- }
2724
- }
2725
- `,$a=f.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
- `,eo=f.gql`
2768
- mutation TranscendCliCreateVendor($input: CreateVendorInput!) {
2769
- createVendor(input: $input) {
2770
- vendor {
2771
- id
2772
- title
2773
- }
2774
- }
2775
- }
2776
- `,to=f.gql`
2777
- mutation TranscendCliUpdateVendor($input: UpdateVendorsInput!) {
2778
- updateVendors(input: $input) {
2779
- clientMutationId
2780
- }
2781
- }
2782
- `,no=f.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
- `,ro=f.gql`
2812
- mutation TranscendCliCreateDataSubCategory(
2813
- $input: CreateDataInventorySubCategoryInput!
2814
- ) {
2815
- createDataSubCategory(input: $input) {
2816
- dataSubCategory {
2817
- id
2818
- name
2819
- category
2820
- }
2821
- }
2822
- }
2823
- `,io=f.gql`
2824
- mutation TranscendCliUpdateDataSubCategories(
2825
- $input: UpdateDataSubCategoriesInput!
2826
- ) {
2827
- updateDataSubCategories(input: $input) {
2828
- clientMutationId
2829
- }
2830
- }
2831
- `,ao=f.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
- `,oo=f.gql`
2863
- mutation TranscendCliCreateProcessingPurposeSubCategory(
2864
- $input: CreateProcessingPurposeCategoryInput!
2865
- ) {
2866
- createProcessingPurposeSubCategory(input: $input) {
2867
- processingPurposeSubCategory {
2868
- id
2869
- name
2870
- purpose
2871
- }
2872
- }
2873
- }
2874
- `,so=f.gql`
2875
- mutation TranscendCliUpdateProcessingPurposeSubCategories(
2876
- $input: UpdateProcessingPurposeSubCategoriesInput!
2877
- ) {
2878
- updateProcessingPurposeSubCategories(input: $input) {
2879
- clientMutationId
2880
- }
2881
- }
2882
- `,co=f.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
- `,lo=f.gql`
2936
- mutation TranscendCliCreateProcessingActivity(
2937
- $input: CreateProcessingActivityInput!
2938
- ) {
2939
- createProcessingActivity(input: $input) {
2940
- processingActivity {
2941
- id
2942
- title
2943
- }
2944
- }
2945
- }
2946
- `,uo=f.gql`
2947
- mutation TranscendCliUpdateProcessingActivities(
2948
- $input: UpdateProcessingActivitiesInput!
2949
- ) {
2950
- updateProcessingActivities(input: $input) {
2951
- clientMutationId
2952
- }
2953
- }
2954
- `,fo=f.gql`
2955
- query TranscendSombraVersion {
2956
- organization {
2957
- sombra {
2958
- version
2959
- }
2960
- }
2961
- }
2962
- `,po=f.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]`,mo=`[APPLY VALUE TO ALL ROWS]`,ho=`<blank>`,go=[`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 _o={[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},vo={[K.RequestType]:!0,[K.SubjectType]:!0},yo=c.type({columnNames:c.partial((0,i.applyEnum)(K,()=>c.string)),identifierNames:c.record(c.string,c.string),attributeNames:c.record(c.string,c.string),requestTypeToRequestAction:c.record(c.string,(0,i.valuesOf)(r.RequestAction)),subjectTypeToSubjectName:c.record(c.string,c.string),languageToLocale:c.record(c.string,(0,i.valuesOf)(u.LOCALE_KEY)),regionToCountry:c.record(c.string,(0,i.valuesOf)({...r.IsoCountryCode,[G]:G})),regionToCountrySubDivision:c.record(c.string,(0,i.valuesOf)({...r.IsoCountrySubdivisionCode,[G]:G})),statusToRequestStatus:c.record(c.string,(0,i.valuesOf)({...r.CompletedRequestStatus,[G]:G}))}),bo=c.type({id:c.string,link:c.string,rowIndex:c.number,coreIdentifier:c.string,attemptedAt:c.string}),xo=c.type({failingRequests:c.array(c.record(c.string,c.any)),successfulRequests:c.array(bo),duplicateRequests:c.array(c.type({rowIndex:c.number,coreIdentifier:c.string,attemptedAt:c.string}))});function So(e,t){return(0,h.default)(e.toLowerCase(),t.toLowerCase())||(0,h.default)(t.toLowerCase(),e.toLowerCase())}function Co(e,t,n,r){let i=e.filter(e=>So(t.toLowerCase(),e.toLowerCase()));return[...i,new p.default.Separator,...n?[]:[G],...r?[mo]:[],...e.filter(e=>!i.includes(e))]}async function q(e,t,n){p.default.registerPrompt(`autocomplete`,m.default);let r=e.map(e=>e||`<blank>`).filter(e=>!n[e]);if(r.length===0)return n;let a=await p.default.prompt(r.map(e=>({name:e,message:`Map value of: ${e}`,type:`autocomplete`,default:t.find(t=>So(e,t)),source:(e,n)=>n?t.filter(e=>typeof e==`string`&&So(n,e)):t})));return{...n,...(0,i.apply)(a,e=>typeof e==`string`?e:Object.values(e)[0])}}function wo(e){return e.split(`,`).map(e=>e.trim()).filter(e=>e)}const To=c.type({key:c.string,values:c.array(c.string)});function Eo(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 n.t.info(s.default.magenta(`Attributes to apply to all requests:`)),n.t.info(s.default.magenta(JSON.stringify(t,null,2))),t}function Do(e,t,n={columns:!0}){let r=(0,g.parse)((0,a.readFileSync)(e,`utf-8`),n);return(0,i.decodeCodec)(c.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 Oo(e){let t=H(e.map(e=>Object.keys(e)).flat()),r=e,i=!0;for(;i;){let{filterColumnName:e}=await p.default.prompt([{name:`filterColumnName`,message:`If you need to filter the list of requests to import, choose the column to filter on. Currently ${r.length} rows.`,type:`list`,default:t,choices:[G,...t]}]);if(i=G!==e,i){let n=J(r,e),{valuesToKeep:i}=await p.default.prompt([{name:`valuesToKeep`,message:`Keep rows matching this value`,type:`checkbox`,default:t,choices:n}]);r=r.filter(t=>i.includes(t[e]))}}return n.t.info(s.default.magenta(`Importing ${r.length} requests`)),r}async function ko(e,{promptRunId:t,promptRunMessages:n=[],...r}){let{addMessagesToPromptRun:{promptRun:i}}=await $(e,Wi,{input:{...r,...t,promptRunMessages:n.map(({content:e,...t})=>({...t,message:e}))}});return i.id}function Ao(e,n){return new f.GraphQLClient(`${e}/graphql`,{headers:{...n,version:t.h}})}function Y(e,t){return Ao(e,{Authorization:`Bearer ${t}`})}async function jo(e,t,r){let{organization:i}=await $(Y(e,t),Jr),{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 n.t.info(s.default.green(`Using sombra: ${o}`)),_.default.extend({prefixUrl:o,headers:{Authorization:`Bearer ${t}`,...r?{"X-Sombra-Authorization":`Bearer ${r}`}:{}}})}function Mo(e){return _.default.extend({prefixUrl:e})}async function No(e,{id:t,bundleType:n}){await $(e,ha,{airgapBundleId:t,bundleType:n})}async function Po(e,{id:t,bundleType:n}){await $(e,ma,{airgapBundleId:t,bundleType:n})}async function Fo(e,t){let{plugins:r,totalCount:i}=(await $(e,Gr,{dataSiloId:t,type:`DATA_SILO_DISCOVERY`})).plugins;return i===0&&(n.t.error(`No active data silo plugins found for this data silo.`),process.exit(1)),r[0]}const Io=20;async function Lo(e,t={}){let n=[],r=0,i=!1;do{let{globalActionItems:{nodes:a}}=await $(e,Na,{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 Ro=20;async function zo(e){let t=[],n=0,r=!1;do{let{actions:{nodes:i}}=await $(e,ja,{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 Bo=20;async function Vo(e,t={}){let n=[],r=0,i=!1;do{let{agentFiles:{nodes:a}}=await $(e,qa,{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 Ho=20;async function Uo(e){let t=[],n=0,r=!1;do{let{agentFunctions:{nodes:i}}=await $(e,Xa,{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 Wo=20;async function Go(e,t={}){let n=[],r=0,i=!1;do{let{agents:{nodes:a}}=await $(e,Wa,{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 Ko=20;async function qo(e){let t=[],n=0,r=!1;do{let{assessmentForms:{nodes:i}}=await $(e,gi,{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 Jo=20;async function Yo(e){let t=[],n=0,r=!1;do{let{assessmentFormTemplates:{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.title.localeCompare(t.title))}const Xo=50;async function Zo(e,t){let{createPrivacyCenterAccessTokens:{nodes:n}}=await $(e,Ur,{input:{records:t}});return n.map(e=>e.token)}async function Qo(e,t,n,r=10){let i=0;n&&n(0);let a=[];return await U(B(t,50),async t=>{let r=(await Zo(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 $o=20;async function es(e){let t=[],n=0,r=!1;do{let{attributeKeys:{nodes:i}}=await $(e,Yr,{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 ts=100;async function ns(e,t){n.t.info(s.default.magenta(`Fetching all attribute values for ${t}...`));let r=[],i=0,a=!1;do{let{attributeValues:{nodes:n}}=await $(e,Qi,{first:100,offset:i,attributeKeyId:t});r.push(...n),i+=100,a=n.length===100}while(a);return r.sort((e,t)=>e.name.localeCompare(t.name))}const rs=[r.AttributeKeyType.MultiSelect,r.AttributeKeyType.SingleSelect];async function is(e){n.t.info(s.default.magenta(`Fetching all attributes...`));let t=[],r=0,i=!1;do{let{attributeKeys:{nodes:n}}=await $(e,Ji,{first:100,offset:r});t.push(...await Promise.all(n.map(async t=>({...t,values:rs.includes(t.type)?await ns(e,t.id):[]})))),r+=100,i=n.length===100}while(i);return t.sort((e,t)=>e.name.localeCompare(t.name))}const as=20;async function os(e){let t=[],n=0,r=!1;do{let{businessEntities:{nodes:i}}=await $(e,Oa,{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 ss(e){let{consentManager:{consentManager:t}}=await $(e,ua);return t}async function X(e,t){let{consentManager:{consentManager:n}}=await $(e,la,{},{},t);return n.id}const cs=50;async function ls(e){let t=[],n=0,r=!1;do{let{experiences:{nodes:i}}=await $(e,na,{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 us=function(e){return e.Hourly=`1h`,e.Daily=`1d`,e}({});async function ds(e,t){let{analyticsData:{series:n}}=await $(e,Da,{input:t});return n}async function fs(e,t){let{consentManagerTheme:{theme:n}}=await $(e,da,{airgapBundleId:t});return n}const ps=20;async function ms(e,t=r.ConsentTrackerStatus.Live){let n=[],i=0,a=await X(e),o=!1;do{let{cookies:{nodes:r}}=await $(e,ca,{first:20,offset:i,airgapBundleId:a,status:t});n.push(...r),i+=20,o=r.length===20}while(o);return n.sort((e,t)=>e.name.localeCompare(t.name))}const hs=20;async function gs(e){let t=[],n=0,r=!1;do{let{dataSubCategories:{nodes:i}}=await $(e,no,{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 _s=20;async function vs(e,t=r.ConsentTrackerStatus.Live){let n=[],i=0,a=await X(e),o=!1;do{let{dataFlows:{nodes:s}}=await $(e,sa,{first:20,offset:i,airgapBundleId:a,status:t,...t===r.ConsentTrackerStatus.NeedsReview?{showZeroActivity:!0}:{}});n.push(...s),i+=20,o=s.length===20}while(o);return n.sort((e,t)=>e.value.localeCompare(t.value))}async function ys(e){let{translatedMessages:t}=await $(e,ui,{});return t}async function bs(e){let{organization:t}=await $(e,La);return t.deployedPrivacyCenterUrl}async function xs(e,t){let n=t;n||=await bs(e);let{privacyCenter:r}=await $(e,Ia,{url:n});return r.id}async function Ss(e){let{privacyCenterPolicies:t}=await $(e,ri,{url:await bs(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 Cs=20;async function ws(e){let t=[],n=0,r=!1;do{let{preferenceTopics:{nodes:i}}=await $(e,yi,{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 Ts(e){let{privacyCenter:{themeStr:t,...n}}=await $(e,Ra,{url:await bs(e)});return[{...n,theme:JSON.parse(t)}]}const Es=20;async function Ds(e){let t=[],n=0,r=!1;do{let{processingActivities:{nodes:i}}=await $(e,co,{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 Os=20;async function ks(e){let t=[],n=0,r=!1;do{let{processingPurposeSubCategories:{nodes:i}}=await $(e,ao,{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 As=20;async function js(e,{includeDeleted:t=!1}={}){let n=[],r=0,i=!1;do{let{purposes:{nodes:a}}=await $(e,vi,{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 Ms(e){let[t,n]=await Promise.all([js(e),ws(e)]);return t.map(e=>{let t=n.filter(t=>t.purpose.trackingType===e.trackingType);return{...e,topics:t}})}const Ns=50;async function Ps(e,{requestId:t}){let n=[],r=0,i=!1;do{let{requestEnrichers:{nodes:a}}=await $(e,fi,{first:50,offset:r,requestId:t});n.push(...a),r+=50,i=a.length===50}while(i);return n}const Fs=50;async function Is(e,{requestId:t}){let n=[],r=0,i=!1;do{let{requestIdentifiers:{nodes:a}}=await $(e,zi,{first:50,offset:r,requestIds:[t]});n.push(...a),r+=50,i=a.length===50}while(i);return n}const Ls=`7.180.0`,Rs=c.type({id:c.string,name:c.string,value:c.string,type:(0,i.valuesOf)(r.IdentifierType)}),zs=50,Bs=c.type({identifiers:c.array(Rs)});async function Vs(e,t,{requestId:n}){let r=[],a=0,o=!1,{organization:{sombra:{version:s}}}=await $(e,fo);if(s&&v.default.lt(s,Ls))throw Error(`Please upgrade Sombra to ${Ls} or greater to use this command.`);do{let e;try{e=await t.post(`v1/request-identifiers`,{json:{first:50,offset:a,requestId:n}}).json()}catch(e){throw Error(`Failed to fetch request identifiers: ${e?.response?.body||e?.message}`)}let{identifiers:s}=(0,i.decodeCodec)(Bs,e);r.push(...s),a+=50,o=s.length===50}while(o);return r}const Hs=c.type({title:c.string,name:c.string,consent:c.boolean,enrichedPreferences:c.array(c.type({topic:c.string,selectValues:c.array(c.type({id:c.string,name:c.string,preferenceOption:c.type({id:c.string,slug:c.string,title:c.type({defaultMessage:c.string})})})),selectValue:c.type({id:c.string,name:c.string}),preferenceTopic:c.type({title:c.type({defaultMessage:c.string}),id:c.string,slug:c.string}),name:c.string,id:c.string,booleanValue:c.boolean}))}),Us=c.intersection([c.type({id:c.string,createdAt:c.string,email:c.string,type:(0,i.valuesOf)(r.RequestAction),link:c.string,isSilent:c.boolean,origin:(0,i.valuesOf)(r.RequestOrigin),isTest:c.boolean,coreIdentifier:c.string,details:c.string,locale:(0,i.valuesOf)(u.LOCALE_KEY),status:(0,i.valuesOf)(r.RequestStatus),subjectType:c.string,country:c.union([c.null,(0,i.valuesOf)(r.IsoCountryCode)]),countrySubDivision:c.union([c.null,(0,i.valuesOf)(r.IsoCountrySubdivisionCode)]),attributeValues:c.array(c.type({id:c.string,attributeKey:c.type({name:c.string,id:c.string}),name:c.string}))}),c.partial({daysRemaining:c.union([c.null,c.number]),purpose:Hs})]),Ws=50;async function Q(e,{actions:t=[],statuses:r=[],origins:i=[],text:a,createdAtBefore:o,createdAtAfter:c,isTest:l,isSilent:u,isClosed:d,requestIds:f=[]}={}){n.t.info(s.default.magenta(`Fetching requests...`));let p=new Date().getTime(),m=new y.default.SingleBar({},y.default.Presets.shades_classic),h=[],g=0,_=!1;do{let{requests:{nodes:f,totalCount:p}}=await $(e,ai,{first:50,offset:g,filterBy:{text:a,type:t.length>0?t:void 0,status:r.length>0?r:void 0,origin:i.length>0?i:void 0,isTest:l,isSilent:u,isClosed:d,createdAtBefore:o?o.toISOString():void 0,createdAtAfter:c?c.toISOString():void 0}});g===0&&p>50&&(n.t.info(s.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;n.t.info(s.default.green(`Completed fetching of ${h.length} request in "${v/1e3}" seconds.`));let b=h;return f&&f.length>0&&(b=b.filter(e=>f.includes(e.id)),n.t.info(s.default.green(`Filtered down to ${b.length} requests based on ${f.length} provided IDs.`))),b}const Gs=20;async function Ks(e){let t=[],n=0,r=!1;do{let{teams:{nodes:i}}=await $(e,Fi,{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 qs=20;async function Js(e){let t=[],n=0,r=!1;do{let{users:{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.email.localeCompare(t.email))}const Ys=20;async function Xs(e){let t=[],n=0,r=!1;do{let{vendors:{nodes:i}}=await $(e,$a,{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 Zs=20,Qs=`https://app.transcend.io/infrastructure/api-keys`;async function $s(e,t){let n=[],r=0,i=!1;do{let{apiKeys:{nodes:a}}=await $(e,Br,{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 ec({"api-keys":e=[],"data-silos":r=[]},i,a=!1){n.t.info(s.default.magenta(`Fetching ${a?`all`:e.length} API keys...`));let o=e.map(({title:e})=>e),c=H(r.map(e=>e[`api-key-title`]).filter(e=>!!e)),l=[...c,...o],u=await $s(i,a?void 0:[...c,...o]),d=t.g(u,`title`),f=V(l,u.map(({title:e})=>e));return f.length>0&&(n.t.info(s.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 tc=100;async function nc(e){let t=[],n=0,r=!1;do{let{catalogs:{nodes:i}}=await $(e,Or,{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 rc(e){let t=await nc(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 ic(e){let{internalSubjects:t}=await $(e,Nr);return t}async function ac({"data-silos":e=[],"data-subjects":r=[],"processing-activities":i=[],enrichers:a=[]},o,c=!1){let l=H([...Be(e.map(e=>e[`data-subjects`]||[])||[]),...Be(i.map(({dataSubjectTypes:e})=>e??[])??[]),...Be(a.map(e=>e[`data-subjects`]||[])||[]),...r.map(e=>e.type)]);if(l.length===0&&!c)return{};let u=await ic(o),d=t.g(u,`type`),f=V(l,u.map(({type:e})=>e));return f.length>0&&(n.t.info(s.default.magenta(`Creating ${f.length} new data subjects...`)),await W(f,async e=>{n.t.info(s.default.magenta(`Creating data subject ${e}...`));let{createSubject:t}=await $(o,Pr,{type:e,skipPublish:!0});n.t.info(s.default.green(`Created data subject ${e}!`)),d[e]=t.subject})),d}function oc(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 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(({type:e})=>e)}const cc=20;async function lc(e){let t=[],n=0,r=!1;do{let{promptGroups:{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 uc=20;async function dc(e){let t=[],n=0,r=!1;do{let{promptPartials:{nodes:i}}=await $(e,Si,{first:20,offset:n});t.push(...i),n+=20,r=i.length===20}while(r);return t.sort((e,t)=>e.title.localeCompare(t.title))}const fc=20;async function pc(e,{text:t,titles:n=[],ids:r=[]}={}){let i=[],a=0,o=!1;do{let{prompts:{nodes:s}}=await $(e,xi,{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 mc(e,{promptTitles:t=[],promptIds:n=[]}={}){let{promptsWithVariables:r}=await $(e,wi,{input:{...t.length>0?{promptTitles:t}:{},...n.length>0?{promptIds:n}:{}}});return r}const hc=20;async function gc(e,t){let n=[],r=0,i=!1;do{let{promptThreads:{nodes:a}}=await $(e,ni,{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 _c(e,{requestId:t,dataSiloId:n,requestStatuses:r,statuses:i}){let{requestDataSilos:{totalCount:a}}=await $(e,ji,{first:1,offset:0,filterBy:{dataSiloId:n,requestId:t,status:i,requestStatus:r}});return a}const vc=100;async function yc(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,ji,{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 bc(e,{requestId:t,dataSiloId:n}){let r=await yc(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 xc(e,{dataSiloId:t}){let{listReducedRequestsForDataSilo:{totalCount:n}}=await $(e,Pi,{input:{dataSiloId:t,isResolved:!1}});return n}async function Sc(e,t,n){let r=[],i=null,a=!1;do{let{bulkRequestFiles:{nodes:o,pageInfo:s}}=await $(e,Hi,{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 Cc(e,{email:t,password:n}){let{determineLoginMethod:{loginMethod:r}}=await $(e,Ba,{email:t}),i=await e.rawRequest(Va,{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 wc(e,{email:t,roleId:n}){let{determineLoginMethod:{loginMethod:r}}=await $(e,Ba,{email:t,userId:n});await e.rawRequest(Ha,{id:n,publicKey:r.sombraPublicKey})}async function Tc(e,t){let{createApiKey:{apiKey:n}}=await $(e,Vr,{input:t});return n}async function Ec(e,t){await $(e,Hr,{id:t})}const Dc=c.type({dependsOnQuestionReferenceId:c.string,comparisonOperator:c.union([c.literal(r.ComparisonOperator.IsEqualTo),c.literal(r.ComparisonOperator.IsNotEqualTo),c.literal(r.ComparisonOperator.IsOneOf),c.literal(r.ComparisonOperator.IsNotOneOf),c.literal(r.ComparisonOperator.Contains)]),comparisonOperands:c.array(c.string)}),Oc=c.type({dependsOnQuestionReferenceId:c.string,comparisonOperator:c.union([c.literal(r.ComparisonOperator.IsNotShown),c.literal(r.ComparisonOperator.IsShown)])}),kc=c.union([Dc,Oc]),Ac=c.recursion(`AssessmentNestedRule`,e=>c.intersection([c.type({logicOperator:(0,i.valuesOf)(r.LogicOperator)}),c.partial({rules:c.array(kc),nestedRules:c.array(e)})])),jc=c.partial({action:(0,i.valuesOf)(r.AssessmentsDisplayLogicAction),rule:kc,nestedRule:Ac});function Mc(e){return(0,i.decodeCodec)(jc,e)}const Nc=c.intersection([c.partial({riskAssignment:c.partial({riskLevelId:c.string,riskMatrixRowId:c.string,riskMatrixColumnId:c.string})}),c.type({comparisonOperands:c.array(c.string),comparisonOperator:(0,i.valuesOf)(r.ComparisonOperator)})]);function Pc(e){return(0,i.decodeCodec)(Nc,e)}const Fc=20;async function Ic(e,{titles:t,pageSize:r,ids:i=[],gql:a=yr,integrationNames:o=[]}){n.t.info(s.default.magenta(`Fetching ${i.length===0?`all`:i.length} Data Silos...`));let c=[],l=0,u=!1;do{let{dataSilos:{nodes:n}}=await $(e,a,{filterBy:{ids:i.length>0?i:void 0,type:o.length>0?o:void 0,titles:t},first:r,offset:l});c.push(...n),l+=r,u=n.length===r}while(u);return n.t.info(s.default.green(`Found a total of ${c.length} data silo${i.length>0?` matching IDs ${i.join(`,`)}`:``}s${o.length>0?` matching integrationNames ${o.join(`,`)}`:``}`)),c.sort((e,t)=>e.title.localeCompare(t.title))}async function Lc(e,t,{debug:r,includeGuessedCategories:i,pageSize:a}){let o=[],c=0,l=!1;do try{r&&n.t.log(s.default.magenta(`Pulling in subdatapoints for offset ${c}`));let{subDataPoints:{nodes:u}}=await $(e,i?hr:pr,{first:a,filterBy:{dataPoints:[t]},offset:c});o.push(...u),c+=a,l=u.length===a,r&&n.t.log(s.default.green(`Pulled in subdatapoints for offset ${c} for dataPointId=${t}`))}catch(e){throw n.t.error(s.default.red(`An error fetching subdatapoints for offset ${c} for dataPointId=${t}`)),e}while(l);return er(o,`name`)}async function Rc(e,t,{debug:r,pageSize:i,skipSubDatapoints:a,includeGuessedCategories:o}){let c=[],l=0,u=!1;do{r&&n.t.info(s.default.magenta(`Fetching datapoints with offset: ${l}`));let{dataPoints:{nodes:d}}=await $(e,dr,{first:i,filterBy:{dataSilos:[t]},offset:l});r&&n.t.info(s.default.magenta(`Fetched ${d.length} datapoints at offset: ${l}`)),a||(await U(d,async t=>{try{r&&n.t.info(s.default.magenta(`Fetching subdatapoints for ${t.name} for datapoint offset ${l}`));let i=await Lc(e,t.id,{pageSize:1e3,debug:r,includeGuessedCategories:o});c.push({...t,subDataPoints:i.sort((e,t)=>e.name.localeCompare(t.name))}),r&&n.t.info(s.default.green(`Successfully fetched subdatapoints for ${t.name}`))}catch(e){throw n.t.error(s.default.red(`An error fetching subdatapoints for ${t.name} datapoint offset ${l}`)),e}},{concurrency:5}),r&&n.t.info(s.default.green(`Fetched all subdatapoints for page of datapoints at offset: ${l}`))),l+=i,u=d.length===i}while(u);return c.sort((e,t)=>e.name.localeCompare(t.name))}async function zc(e,{ids:t,pageSize:r,titles:i,debug:a,skipDatapoints:o,skipSubDatapoints:c,includeGuessedCategories:l,integrationNames:u}){let d=[],f=await Ic(e,{titles:i,ids:t,integrationNames:u,pageSize:r,gql:xr});return o||await W(f,async(t,i)=>{n.t.info(s.default.magenta(`[${i+1}/${f.length}] Fetching data silo - ${t.title}`));let o=await Rc(e,t.id,{debug:a,pageSize:r,skipSubDatapoints:c,includeGuessedCategories:l});a&&n.t.info(s.default.green(`[${i+1}/${f.length}] Successfully fetched datapoint for - ${t.title}`)),d.push([t,o])}),n.t.info(s.default.green(`Successfully fetched all ${f.length} data silo configurations`)),d}async function Bc(e,r,{pageSize:a,dataSubjectsByName:o,apiKeysByTitle:c}){let l=!1,u=new Date().getTime();n.t.info(s.default.magenta(`Syncing "${e.length}" data silos...`));let d=t.g(await Ic(r,{titles:e.map(({title:e})=>e),pageSize:a}),`title`),f=e.filter(({title:e})=>!d[e]);f.length>0&&(n.t.info(s.default.magenta(`Creating "${f.length}" data silos that did not exist...`)),await W(B(f,20),async e=>{let{createDataSilos:{dataSilos:t}}=await $(r,Cr,{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})}),n.t.info(s.default.green(`Successfully created "${f.length}" data silos!`)));let p=B(e,20);await W(p,async(e,t)=>{n.t.info(s.default.magenta(`[Batch ${t+1}/${p.length}] Syncing "${e.length}" data silos`)),await $(r,Sr,{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`]?c[e[`api-key-title`]].id:void 0,dataSubjectBlockListIds:e[`data-subjects`]?oc(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`]}))}}),n.t.info(s.default.green(`[Batch ${t+1}/${p.length}] Synced "${e.length}" data silos!`))});let m=new y.default.SingleBar({},y.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);n.t.info(s.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),c=o.filter((e,t)=>o.indexOf(e)!==t);if(c.length>0)n.t.info(s.default.red(`\nCannot update datapoint "${e.key}" as it has duplicate sub-datapoints with the same name: \n${c.join(`
2985
- `)}`)),l=!0;else try{await $(r,gr,a)}catch(r){n.t.info(s.default.red(`\nFailed to update datapoint "${e.key}" for data silo "${t}"! - \n${r.message}`)),l=!0}_+=1,m.update(_)})},{concurrency:10}),m.stop();let v=new Date().getTime()-u;return n.t.info(s.default.green(`Synced "${e.length}" data silos and "${g}" datapoints in "${v/1e3}" seconds!`)),{success:!l,dataSiloTitleToId:(0,i.apply)(d,({id:e})=>e)}}async function Vc(e,t){let r=!1;return n.t.info(s.default.magenta(`Syncing "${t.length}" data silo dependencies...`)),await W(B(t,20),async(t,i)=>{n.t.info(s.default.magenta(`[Batch ${i}/${t.length}] Updating "${t.length}" data silos...`));try{await $(e,Sr,{input:{dataSilos:t.map(([e,t])=>({id:e,dependedOnDataSiloTitles:t}))}}),n.t.info(s.default.green(`[Batch ${i+1}/${t.length}] Synced "${t.length}" data silos!`))}catch(e){r=!0,n.t.info(s.default.red(`[Batch ${i+1}/${t.length}] Failed to update "${t.length}" silos! - ${e.message}`))}}),!r}const Hc=20;async function Uc(e,t){let n=[],r=0,i=!1;do{let{enrichers:{nodes:a}}=await $(e,wr,{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 Wc(e,{enricher:t,identifierByName:n,dataSubjectsByName:i}){let a=(await Uc(e,t.title)).find(({title:e})=>e===t.title),o=t[`data-subjects`]?.map(e=>{let t=i[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(r.RequestAction);a?await $(e,Dr,{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===r.EnricherType.Sombra?{}:{actions:c}}}):s&&await $(e,Er,{input:{title:t.title,url:t.url,type:t.type||r.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 Gc=20;async function Kc(e,t){let n=[],r=0,i=!1;do{let{templates:{nodes:a}}=await $(e,Kr,{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 qc(e,t){(await Kc(t,e.title)).find(({title:t})=>t===e.title)||await $(t,qr,{title:e.title})}function Jc(e){return e.map(({country:e,countrySubDivision:t})=>({country:e,...t?{countrySubDivision:t}:{}}))}async function Yc(e,t={}){let{globalActionItemCollections:{nodes:n}}=await $(e,Gi,{filterBy:{...t}});return n}const Xc=50;async function Zc(e){let t=[],n=0,r=!1;do{let{consentPartitions:{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))}async function Qc(e,t){let r=await X(e),i=!1,a=await Zc(e);return await W(V(t.map(({name:e})=>e),a.map(({name:e})=>e)),async t=>{try{await $(e,Ea,{input:{id:r,name:t}}),n.t.info(s.default.green(`Successfully created consent partition: ${t}!`))}catch(e){n.t.error(s.default.red(`Failed to create consent partition: ${t}! - ${e.message}`)),i=!0}}),!i}const $c=30;async function el(e){let t=[],n=0,r=!1;do{let{siloDiscoveryResults:{nodes:i}}=await $(e,po,{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 tl=[e.o.DataSilos,e.o.Enrichers,e.o.Templates,e.o.ApiKeys];async function nl(i,{dataSiloIds:a,integrationNames:o,debug:c,resources:l=tl,pageSize:u,skipDatapoints:d,includeGuessedCategories:f,skipSubDatapoints:p,trackerStatuses:m=Object.values(r.ConsentTrackerStatus)}){if(a.length>0&&o.length>0)throw Error(`Only 1 of integrationNames OR dataSiloIds can be provided`);n.t.info(s.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,I,ee,L,te,R,ne,re,ie,ae,oe,se,ce,le]=await Promise.all([l.includes(e.o.DataSilos)||l.includes(e.o.DataSubjects)?ic(i):[],l.includes(e.o.ApiKeys)?ec({},i,!0):[],l.includes(e.o.DataSilos)?zc(i,{ids:a,integrationNames:o,pageSize:u,debug:c,includeGuessedCategories:f,skipDatapoints:d,skipSubDatapoints:p}):[],l.includes(e.o.Enrichers)?Uc(i):[],l.includes(e.o.DataFlows)?[...m.includes(r.ConsentTrackerStatus.Live)?await vs(i,r.ConsentTrackerStatus.Live):[],...m.includes(r.ConsentTrackerStatus.NeedsReview)?await vs(i,r.ConsentTrackerStatus.NeedsReview):[]]:[],l.includes(e.o.Cookies)?[...m.includes(r.ConsentTrackerStatus.Live)?await ms(i,r.ConsentTrackerStatus.Live):[],...m.includes(r.ConsentTrackerStatus.NeedsReview)?await ms(i,r.ConsentTrackerStatus.NeedsReview):[]]:[],l.includes(e.o.Attributes)?is(i):[],l.includes(e.o.Templates)?Kc(i):[],l.includes(e.o.Identifiers)?qd(i):[],l.includes(e.o.Actions)?zo(i):[],l.includes(e.o.BusinessEntities)?os(i):[],l.includes(e.o.ProcessingActivities)?Ds(i):[],l.includes(e.o.ConsentManager)?ss(i):void 0,l.includes(e.o.ConsentManager)?ls(i):[],l.includes(e.o.Prompts)?pc(i):[],l.includes(e.o.PromptPartials)?dc(i):[],l.includes(e.o.PromptGroups)?lc(i):[],l.includes(e.o.Agents)?Go(i):[],l.includes(e.o.AgentFunctions)?Uo(i):[],l.includes(e.o.AgentFiles)?Vo(i):[],l.includes(e.o.Vendors)?Xs(i):[],l.includes(e.o.DataCategories)?gs(i):[],l.includes(e.o.ProcessingPurposes)?ks(i):[],l.includes(e.o.ActionItems)?Lo(i,{type:[r.ActionItemCode.Onboarding]}):[],l.includes(e.o.ActionItemCollections)?Yc(i):[],l.includes(e.o.Teams)?Ks(i):[],l.includes(e.o.Policies)?Ss(i):[],l.includes(e.o.PrivacyCenters)?Ts(i):[],l.includes(e.o.Messages)?ys(i):[],l.includes(e.o.Partitions)?Zc(i):[],l.includes(e.o.Assessments)?qo(i):[],l.includes(e.o.AssessmentTemplates)?Yo(i):[],l.includes(e.o.Purposes)?Ms(i):[],l.includes(e.o.SystemDiscovery)?el(i):[]]),ue=l.includes(e.o.ConsentManager)&&D?await fs(i,D.id):void 0,z={},de=Be(_.map(([{apiKeys:e}])=>e.map(({title:e})=>e))),fe=Object.values(g).filter(({title:t})=>l.includes(e.o.ApiKeys)?!0:de.includes(t));if(fe.length>0&&l.includes(e.o.ApiKeys)&&(z[`api-keys`]=fe.map(({title:e})=>({title:e}))),ae.length>0&&l.includes(e.o.Partitions)&&(z.partitions=ae.map(({name:e,partition:t})=>({name:e,partition:t}))),D&&l.includes(e.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(e.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?Mc(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=Pc(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(e.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?Mc(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=Pc(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(e.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(e.o.Prompts)&&(z.prompts=k.map(({title:e,content:t})=>({title:e,content:t}))),A.length>0&&l.includes(e.o.PromptPartials)&&(z[`prompt-partials`]=A.map(({title:e,content:t})=>({title:e,content:t}))),j.length>0&&l.includes(e.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(e.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(e.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(e.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(e.o.ProcessingActivities)&&(z[`processing-activities`]=E.map(({title:e,description:t,securityMeasureDetails:n,controllerships:i,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:i.length>0?i:void 0,storageRegions:a.length>0?Jc(a):void 0,transferRegions:o.length>0?Jc(o):void 0,retentionType:s,retentionPeriod:s===r.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(e.o.Actions)&&(z.actions=w.map(({type:e,skipSecondaryIfNoFiles:t,skipDownloadableStep:n,requiresReview:i,regionList:a,regionDetectionMethod:o,waitingPeriod:s})=>({type:e,...e===r.RequestAction.Erasure?{skipSecondaryIfNoFiles:t,skipDownloadableStep:n}:{},requiresReview:i,waitingPeriod:s,regionDetectionMethod:o,regionList:a.length>0?a:void 0}))),C.length>0&&l.includes(e.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(e.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(e.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(e.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(e.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(e.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(e.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}))),I.length>0&&l.includes(e.o.DataCategories)&&(z[`data-categories`]=I.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}))),ee.length>0&&l.includes(e.o.ProcessingPurposes)&&(z[`processing-purposes`]=ee.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(e.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(e.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(e.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(e.o.Templates)&&(z.templates=S.map(({title:e})=>({title:e}))),v.length>0&&l.includes(e.o.Enrichers)&&(z.enrichers=v.map(({title:e,url:t,type:n,inputIdentifier:i,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":i?.name,"output-identifiers":a.map(({name:e})=>e),"privacy-actions":Object.values(r.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(e.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?sc(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":Wn(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 rl(e,t){let{reportPromptRun:{promptRun:n}}=await $(e,Ui,{input:{...t,promptRunMessages:t.promptRunMessages.map(({content:e,...t})=>({...t,message:e}))}});return n.id}async function il(e,t){await $(e,pi,{requestEnricherId:t})}async function al(e,t){await $(e,ta,{input:t})}const ol=[...Object.values(r.IsoCountryCode),...Object.values(r.IsoCountrySubdivisionCode)];async function sl(e,{action:t,actionId:n,skipPublish:r=!1}){await $(e,Ma,{input:{id:n,skipSecondaryIfNoFiles:t.skipSecondaryIfNoFiles,skipDownloadableStep:t.skipDownloadableStep,requiresReview:t.requiresReview,waitingPeriod:t.waitingPeriod,skipPublish:r,regionList:t.regionBlockList?V(ol,t.regionBlockList):t.regionList,regionDetectionMethod:t.regionDetectionMethod}})}async function cl(e,t){let{createActionItemCollection:n}=await $(e,Ki,{input:{title:t.title,description:t.description||``,hidden:t.hidden||!1,productLine:t.productLine}});return n.created}async function ll(e,t,n){await $(e,qi,{input:{id:n,title:t.title,description:t.description,hidden:t.hidden,productLine:t.productLine}})}async function ul(e,r){let i=!1;n.t.info(s.default.magenta(`Syncing "${r.length}" action item collections...`));let a=t.g(await Yc(e),`title`);return await W(r.filter(e=>!a[e.title]),async t=>{try{await cl(e,t),n.t.info(s.default.green(`Successfully created action item collection "${t.title}"!`))}catch(e){i=!0,n.t.info(s.default.red(`Failed to create action item collection "${t.title}"! - ${e.message}`))}}),await W(r.map(e=>[e,a[e.title]?.id]).filter(e=>!!e[1]),async([t,r])=>{try{await ll(e,t,r),n.t.info(s.default.green(`Successfully synced action item collection "${t.title}"!`))}catch(e){i=!0,n.t.info(s.default.red(`Failed to sync action item collection "${t.title}"! - ${e.message}`))}}),!i}async function dl(e,t,n,r={}){await W(B(t,100),async t=>{await $(e,Fa,{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 fl(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,Pa,{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 pl({title:e,collections:t}){return`${e}-${t.map(e=>e.title).sort().join(`-`)}`}function ml({title:e,collections:t}){return`${e}-${t.sort().join(`-`)}`}async function hl(e,r){let i=!1;n.t.info(s.default.magenta(`Syncing "${r.length}" actionItems...`));let a=r.some(e=>e.attributes&&e.attributes.length>0),[o,c,l]=await Promise.all([Lo(e),Yc(e),a?is(e):[]]),u=t.g(c,`title`),d=t.g(o,pl),f=t.g(l,`name`),p=t.g(o.filter(e=>!!e.customerExperienceActionItemIds),({customerExperienceActionItemIds:e})=>e[0]),m=H(r.map(e=>e.collections).flat()).filter(e=>!u[e]);if(m.length>0)return n.t.info(s.default.red(`Missing action item collections: "${m.join(`", "`)}" - please create them first!`)),!1;let h=r.filter(e=>!d[ml(e)]&&!p[e.customerExperienceActionItemId]);if(h.length>0)try{n.t.info(s.default.magenta(`Creating "${h.length}" actionItems...`)),await dl(e,h,u,f),n.t.info(s.default.green(`Successfully created "${h.length}" actionItems!`))}catch(e){i=!0,n.t.info(s.default.red(`Failed to create action items! - ${e.message}`))}return await W(r.map(e=>[e,d[ml(e)]?.id||p[e.customerExperienceActionItemId]?.id]).filter(e=>!!e[1]),async([t,r])=>{try{await fl(e,t,r,f),n.t.info(s.default.green(`Successfully synced action item "${t.title}"!`))}catch(e){i=!0,n.t.info(s.default.red(`Failed to sync action item "${t.title}"! - ${e.message}`))}}),!i}async function gl(e,t){let{createAgentFile:n}=await $(e,Ja,{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 _l(e,t){await $(e,Ya,{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 vl(e,r){n.t.info(s.default.magenta(`Syncing "${r.length}" agent files...`));let i=!1,a=t.g(await Vo(e),`name`);await W(r.filter(e=>!a[e.name]),async t=>{try{let r=await gl(e,t);a[r.name]=r,n.t.info(s.default.green(`Successfully synced agent file "${t.name}"!`))}catch(e){i=!0,n.t.info(s.default.red(`Failed to sync agent file "${t.name}"! - ${e.message}`))}});try{n.t.info(s.default.magenta(`Updating "${r.length}" agent files!`)),await _l(e,r.map(e=>[e,a[e.name].id])),n.t.info(s.default.green(`Successfully synced "${r.length}" agent files!`))}catch(e){i=!0,n.t.info(s.default.red(`Failed to sync "${r.length}" agent files! - ${e.message}`))}return!i}async function yl(e,t){let{createAgentFunction:n}=await $(e,Za,{input:{name:t.name,description:t.description,parameters:t.parameters,agentIds:[]}});return n.agentFunction}async function bl(e,t){await $(e,Qa,{input:{agentFunctions:t.map(([e,t])=>({id:t,name:e.name,description:e.description,parameters:e.parameters}))}})}async function xl(e,r){n.t.info(s.default.magenta(`Syncing "${r.length}" agent functions...`));let i=!1,a=t.g(await Uo(e),`name`);await W(r.filter(e=>!a[e.name]),async t=>{try{let r=await yl(e,t);a[r.name]=r,n.t.info(s.default.green(`Successfully synced agent function "${t.name}"!`))}catch(e){i=!0,n.t.info(s.default.red(`Failed to sync agent function "${t.name}"! - ${e.message}`))}});try{n.t.info(s.default.magenta(`Updating "${r.length}" agent functions!`)),await bl(e,r.map(e=>[e,a[e.name].id])),n.t.info(s.default.green(`Successfully synced "${r.length}" agent functions!`))}catch(e){i=!0,n.t.info(s.default.red(`Failed to sync "${r.length}" agent functions! - ${e.message}`))}return!i}async function Sl(e,t){let{createAgent:n}=await $(e,Ga,{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 Cl(e,t){await $(e,Ka,{input:{agents:t.map(([e,t])=>({id:t,name:e.name,description:e.description,codeInterpreterEnabled:e.codeInterpreterEnabled,retrievalEnabled:e.retrievalEnabled}))}})}async function wl(e,r){n.t.info(s.default.magenta(`Syncing "${r.length}" agents...`));let i=!1,a=t.g(await Go(e),`name`);await W(r.filter(e=>!a[e.name]),async t=>{try{let r=await Sl(e,t);a[r.name]=r,n.t.info(s.default.green(`Successfully synced agent "${t.name}"!`))}catch(e){i=!0,n.t.info(s.default.red(`Failed to sync agent "${t.name}"! - ${e.message}`))}});try{n.t.info(s.default.magenta(`Updating "${r.length}" agents!`)),await Cl(e,r.map(e=>[e,a[e.name].id])),n.t.info(s.default.green(`Successfully synced "${r.length}" agents!`))}catch(e){i=!0,n.t.info(s.default.red(`Failed to sync "${r.length}" agents ! - ${e.message}`))}return!i}async function Tl(e,r,{existingAttribute:i,deleteExtraAttributeValues:a}){let o={name:r.name,enabledOn:r.resources},c;if(i)await $(e,ea,{attributeKeyId:i.id,description:i.isCustom?r.description:void 0,...o}),c=i.id;else{let{createAttributeKey:{attributeKey:t}}=await $(e,$i,{type:r.type,description:r.description,...o});c=t.id}let l=t.g(i?.values||[],`name`),{existingValues:u=[],newValues:d=[]}=Hn(r.values||[],e=>l[e.name]?`existingValues`:`newValues`),f=V((i?.values||[]).map(({name:e})=>e),(r.values||[]).map(({name:e})=>e));d.length>0&&(await $(e,Yi,{input:d.map(({name:e,...t})=>({name:e,attributeKeyId:c,...t}))}),n.t.info(s.default.green(`Created ${d.length} attribute values`))),u.length>0&&(await $(e,Xi,{input:u.map(({name:e,...t})=>({id:l[e].id,name:e,description:l[e].description,color:l[e].color,...t,attributeKeyId:c}))}),n.t.info(s.default.green(`Updated ${u.length} attribute values`))),f.length>0&&a&&(await U(f,async t=>{await $(e,Zi,{id:l[t].id})},{concurrency:10}),n.t.info(s.default.green(`Deleted ${f.length} attribute values`)))}async function El(e,t){let{createBusinessEntity:n}=await $(e,ka,{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 Dl(e,t){await W(B(t,100),async t=>{await $(e,Aa,{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 Ol(e,r){n.t.info(s.default.magenta(`Syncing "${r.length}" business entities...`));let i=!1,a=t.g(await os(e),`title`);await W(r.filter(e=>!a[e.title]),async t=>{try{let r=await El(e,t);a[r.title]=r,n.t.info(s.default.green(`Successfully synced business entity "${t.title}"!`))}catch(e){i=!0,n.t.info(s.default.red(`Failed to sync business entity "${t.title}"! - ${e.message}`))}});try{n.t.info(s.default.magenta(`Updating "${r.length}" business entities!`)),await Dl(e,r.map(e=>[e,a[e.title].id])),n.t.info(s.default.green(`Successfully synced "${r.length}" business entities!`))}catch(e){i=!0,n.t.info(s.default.red(`Failed to sync "${r.length}" business entities ! - ${e.message}`))}return!i}const kl=20;async function Al(e){let t=[],n=0,r=!1;do{let{codePackages:{nodes:i}}=await $(e,$r,{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 jl=20;async function Ml(e){let t=[],n=0,r=!1;do{let{softwareDevelopmentKits:{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 Nl=100;async function Pl(e,t){let{createSoftwareDevelopmentKit:{softwareDevelopmentKit:r}}=await $(e,Qr,{input:t});return n.t.info(s.default.green(`Successfully created software development kit "${t.name}"!`)),r}async function Fl(e,t){let{updateSoftwareDevelopmentKits:{softwareDevelopmentKits:r}}=await $(e,Zr,{input:{softwareDevelopmentKits:t}});return n.t.info(s.default.green(`Successfully updated ${t.length} software development kits!`)),r}async function Il(e,r,i=20){let a=!1,o=[];n.t.info(s.default.magenta(`Syncing software development kits...`));let c=t.g(await Ml(e),({name:e,codePackageType:t})=>JSON.stringify({name:e,codePackageType:t})),l=r.map(e=>[e,c[JSON.stringify({name:e.name,codePackageType:e.codePackageType})]?.id]),u=l.filter(([,e])=>!e).map(([e])=>e);try{n.t.info(s.default.magenta(`Creating "${u.length}" new software development kits...`)),await U(u,async t=>{let n=await Pl(e,t);o.push(n)},{concurrency:i}),n.t.info(s.default.green(`Successfully synced ${u.length} software development kits!`))}catch(e){a=!0,n.t.info(s.default.red(`Failed to create software development kits! - ${e.message}`))}let d=l.filter(e=>!!e[1]),f=B(d,100);return n.t.info(s.default.magenta(`Updating "${d.length}" software development kits...`)),await W(f,async t=>{try{let r=await Fl(e,t.map(([{codePackageType:e,...t},n])=>({...t,id:n})));o.push(...r),n.t.info(s.default.green(`Successfully updated "${d.length}" software development kits!`))}catch(e){a=!0,n.t.info(s.default.red(`Failed to update software development kits! - ${e.message}`))}n.t.info(s.default.green(`Synced "${r.length}" software development kits!`))}),{softwareDevelopmentKits:o,success:!a}}const Ll=20;async function Rl(e){let t=[],n=0,r=!1;do{let{repositories:{nodes:i}}=await $(e,Lr,{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 zl=100;async function Bl(e,t){let{createRepository:{repository:r}}=await $(e,zr,{input:t});return n.t.info(s.default.green(`Successfully created repository "${t.name}"!`)),r}async function Vl(e,t){let{updateRepositories:{repositories:r}}=await $(e,Rr,{input:{repositories:t}});return n.t.info(s.default.green(`Successfully updated ${t.length} repositories!`)),r}async function Hl(e,r,i=20){let a=!1,o=[],c=t.g(await Rl(e),`name`),l=r.map(e=>[e,c[e.name]?.id]),u=l.filter(([,e])=>!e).map(([e])=>e);try{n.t.info(s.default.magenta(`Creating "${u.length}" new repositories...`)),await U(u,async t=>{let n=await Bl(e,t);o.push(n)},{concurrency:i}),n.t.info(s.default.green(`Successfully synced ${u.length} repositories!`))}catch(e){a=!0,n.t.info(s.default.red(`Failed to create repositories! - ${e.message}`))}let d=l.filter(e=>!!e[1]),f=B(d,100);return n.t.info(s.default.magenta(`Updating "${d.length}" repositories...`)),await W(f,async t=>{try{let r=await Vl(e,t.map(([e,t])=>({...e,id:t})));o.push(...r),n.t.info(s.default.green(`Successfully updated "${d.length}" repositories!`))}catch(e){a=!0,n.t.info(s.default.red(`Failed to update repositories! - ${e.message}`))}n.t.info(s.default.green(`Synced "${r.length}" repositories!`))}),{repositories:o,success:!a}}const Ul=100,Wl=`%%%%`;async function Gl(e,t){let{createCodePackage:{codePackage:r}}=await $(e,ti,{input:t});return n.t.info(s.default.green(`Successfully created code package "${t.name}"!`)),r}async function Kl(e,t){let{updateCodePackages:{codePackages:r}}=await $(e,ei,{input:{codePackages:t}});return n.t.info(s.default.green(`Successfully updated ${t.length} code packages!`)),r}async function ql(e,r,i=20){let a=!1,[o,{softwareDevelopmentKits:c}]=await Promise.all([Al(e),Il(e,ur(r.map(({type:e,softwareDevelopmentKits:t=[]})=>t.map(({name:t})=>({name:t,codePackageType:e}))).flat(),({name:e,codePackageType:t})=>`${e}${Wl}${t}`),i),Hl(e,ur(r,`repositoryName`).map(({repositoryName:e})=>({name:e,url:`https://github.com/${e}`})))]),l=t.g(c,({name:e,codePackageType:t})=>`${e}${Wl}${t}`),u=t.g(o,({name:e,type:t})=>`${e}${Wl}${t}`),d=r.map(e=>[e,u[`${e.name}${Wl}${e.type}`]?.id]),f=d.filter(([,e])=>!e).map(([e])=>e);try{n.t.info(s.default.magenta(`Creating "${f.length}" new code packages...`)),await U(f,async({softwareDevelopmentKits:t,...n})=>{await Gl(e,{...n,...t?{softwareDevelopmentKitIds:H(t.map(({name:e})=>{let t=l[`${e}${Wl}${n.type}`];if(!t)throw Error(`Failed to find SDK with name: "${e}"`);return t.id}))}:{}})},{concurrency:i}),n.t.info(s.default.green(`Successfully synced ${f.length} code packages!`))}catch(e){a=!0,n.t.info(s.default.red(`Failed to create code packages! - ${e.message}`))}let p=d.filter(e=>!!e[1]);return n.t.info(s.default.magenta(`Updating "${p.length}" code packages...`)),await W(B(p,100),async t=>{try{await Kl(e,t.map(([{softwareDevelopmentKits:e,repositoryName:t,...n},r])=>({...n,...e?{softwareDevelopmentKitIds:H(e.map(({name:e})=>{let t=l[`${e}${Wl}${n.type}`];if(!t)throw Error(`Failed to find SDK with name: "${e}"`);return t.id}))}:{},id:r}))),n.t.info(s.default.green(`Successfully updated "${t.length}" code packages!`))}catch(e){a=!0,n.t.info(s.default.red(`Failed to update code packages! - ${e.message}`))}}),n.t.info(s.default.green(`Synced "${r.length}" code packages!`)),!a}const Jl=`https://app.transcend.io/consent-manager/regional-experiences/purposes`;async function Yl(e,r){let i=t.g(await ls(e),`name`),a=t.g(await js(e),`trackingType`);await U(r,async(t,r)=>{let o=t.purposes?.map((e,t)=>{let n=a[e.trackingType];if(!n)throw Error(`Invalid purpose trackingType provided at consentManager.experiences[${r}].purposes[${t}]: ${e.trackingType}. See list of valid purposes ${Jl}`);return n.id}),c=t.optedOutPurposes?.map((e,t)=>{let n=a[e.trackingType];if(!n)throw Error(`Invalid purpose trackingType provided at consentManager.experiences[${r}].optedOutPurposes[${t}]: ${e.trackingType}. See list of valid purposes ${Jl}`);return n.id}),u=i[t.name];u?(await $(e,wa,{input:{id:u.id,name:t.displayName,regions:t.regions,operator:t.operator,onConsentExpiry:t.onConsentExpiry,consentExpiry:t.consentExpiry,displayPriority:t.displayPriority===u.displayPriority?void 0:t.displayPriority,viewState:t.viewState,purposes:o,optedOutPurposes:c,browserLanguages:t.browserLanguages,browserTimeZones:t.browserTimeZones}}),n.t.info(s.default.green(`Successfully synced consent experience "${t.name}"!`))):(await $(e,Ta,{input:{name:t.name,displayName:t.displayName,regions:t.regions,operator:t.operator,onConsentExpiry:t.onConsentExpiry||l.OnConsentExpiry.Prompt,consentExpiry:t.consentExpiry,displayPriority:t.displayPriority,viewState:t.viewState||l.InitialViewState.Hidden,purposes:o||[],optedOutPurposes:c||[],browserLanguages:t.browserLanguages,browserTimeZones:t.browserTimeZones}}),n.t.info(s.default.green(`Successfully created consent experience "${t.name}"!`)))},{concurrency:10})}async function Xl(e,t){let n;try{n=await X(e,1)}catch(r){if(r.message.includes(`AirgapBundle not found`)){let r=await xs(e),{createConsentManager:i}=await $(e,fa,{domains:t.domains,privacyCenterId:r});n=i.consentManager.id}else throw r}if(t.domains&&await $(e,ga,{domains:t.domains,airgapBundleId:n}),t.partition){let r=(await Zc(e)).find(e=>e.name===t.partition);if(!r)throw Error(`Partition "${t.partition}" not found. Please create the partition first.`);await $(e,_a,{partitionId:r.id,airgapBundleId:n})}t.version&&await $(e,pa,{airgapBundleId:n,version:t.version}),t.signedIabAgreement&&await $(e,va,{input:{id:n,...t.signedIabAgreement?{signedIabAgreement:t.signedIabAgreement}:{}}}),t.unknownRequestPolicy&&await $(e,ya,{input:{id:n,unknownRequestPolicy:t.unknownRequestPolicy}}),t.unknownRequestPolicy&&await $(e,ba,{input:{id:n,unknownCookiePolicy:t.unknownCookiePolicy}}),t.telemetryPartitioning&&await $(e,xa,{input:{id:n,strategy:t.telemetryPartitioning}}),t.consentPrecedence&&await $(e,Sa,{input:{id:n,consentPrecedence:t.consentPrecedence}}),t.experiences&&await Yl(e,t.experiences),t.theme&&await $(e,Ca,{input:{airgapBundleId:n,...t.theme}})}const Zl=100;async function Ql(e,t){let n=await X(e);await W(B(t,100),async t=>{await $(e,oa,{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 $l(e,t){let r=!1;n.t.info(s.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{n.t.info(s.default.magenta(`Upserting "${t.length}" new cookies...`)),await Ql(e,t),n.t.info(s.default.green(`Successfully synced ${t.length} cookies!`))}catch(e){r=!0,n.t.info(s.default.red(`Failed to create cookies! - ${e.message}`))}return!r}async function eu(e,t){let{createDataCategory:n}=await $(e,ro,{input:{name:t.name,category:t.category,description:t.description}});return n.dataCategory}async function tu(e,t){await $(e,io,{input:{dataSubCategories:t.map(([e,t])=>({id:t,description:e.description,attributes:e.attributes}))}})}async function nu(e,r){n.t.info(s.default.magenta(`Syncing "${r.length}" data categories...`));let i=!1,a=t.g(await gs(e),({name:e,category:t})=>`${e}:${t}`);await W(r.filter(e=>!a[`${e.name}:${e.category}`]),async t=>{try{let r=await eu(e,t);a[`${r.name}:${r.category}`]=r,n.t.info(s.default.green(`Successfully synced data category "${t.name}"!`))}catch(e){i=!0,n.t.info(s.default.red(`Failed to sync data category "${t.name}"! - ${e.message}`))}});try{n.t.info(s.default.magenta(`Updating "${r.length}" data categories!`)),await tu(e,r.map(e=>[e,a[`${e.name}:${e.category}`].id])),n.t.info(s.default.green(`Successfully synced "${r.length}" data categories!`))}catch(e){i=!0,n.t.info(s.default.red(`Failed to sync "${r.length}" data categories ! - ${e.message}`))}return!i}const ru=100;async function iu(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,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 au(e,t,n=!1){let r=await X(e);await W(B(t,100),async t=>{await $(e,ia,{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 ou(e,t,i){let a=!1;n.t.info(s.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(`,`)}`);n.t.info(s.default.magenta(`Fetching data flows...`));let[c,l]=await Promise.all([vs(e,r.ConsentTrackerStatus.Live),vs(e,r.ConsentTrackerStatus.NeedsReview)]),u=[...c,...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{n.t.info(s.default.magenta(`Creating "${f.length}" new data flows...`)),await au(e,f,i),n.t.info(s.default.green(`Successfully synced ${f.length} data flows!`))}catch(e){a=!0,n.t.info(s.default.red(`Failed to create data flows! - ${e.message}`))}let p=d.filter(e=>!!e[1]);try{n.t.info(s.default.magenta(`Updating "${p.length}" data flows...`)),await iu(e,p,i),n.t.info(s.default.green(`Successfully updated "${p.length}" data flows!`))}catch(e){a=!0,n.t.info(s.default.red(`Failed to create data flows! - ${e.message}`))}return n.t.info(s.default.green(`Synced "${t.length}" data flows!`)),!a}async function su(e,{dataSubject:t,dataSubjectId:n,skipPublish:r=!1}){await $(e,Fr,{input:{id:n,title:t.title,adminDashboardDefaultSilentMode:t.adminDashboardDefaultSilentMode,actions:t.actions,skipPublish:r&&t.active===void 0}}),typeof t.active==`boolean`&&await $(e,Ir,{input:{id:n,active:t.active,skipPublish:r}})}async function cu(e,{identifier:t,dataSubjectsByName:n,identifierId:r,skipPublish:i=!1}){await $(e,Mr,{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 lu=100;async function uu(e,t){await W(B(t,100),async t=>{await $(e,di,{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 du(e,t){let r=!1;n.t.info(s.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{n.t.info(s.default.magenta(`Upserting "${t.length}" new messages...`)),await uu(e,t),n.t.info(s.default.green(`Successfully synced ${t.length} messages!`))}catch(e){r=!0,n.t.info(s.default.red(`Failed to create messages! - ${e.message}`))}return!r}const fu=100;async function pu(e,t){let n=await xs(e);await W(B(t,100),async t=>{await $(e,ii,{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 mu(e,r){let i=!1;n.t.info(s.default.magenta(`Syncing "${r.length}" policies...`));let a=r.filter(e=>r.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 Ss(e),({title:e})=>e.defaultMessage);try{n.t.info(s.default.magenta(`Upserting "${r.length}" new policies...`)),await pu(e,r.map(e=>[e,o[e.title]?.id])),n.t.info(s.default.green(`Successfully synced ${r.length} policies!`))}catch(e){i=!0,n.t.info(s.default.red(`Failed to create policies! - ${e.message}`))}return!i}async function hu(e,t){let r=!1;n.t.info(s.default.magenta(`Syncing privacy center...`));let i=await xs(e);try{await $(e,za,{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}:{}}}),n.t.info(s.default.green(`Successfully synced privacy center!`))}catch(e){r=!0,n.t.info(s.default.red(`Failed to create privacy center! - ${e.message}`))}return!r}async function gu(e,t){let{createProcessingActivity:n}=await $(e,lo,{input:{title:t.title,description:t.description}});return n.processingActivity}async function _u(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,uo,{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 vu(e,r){let i=!1;n.t.info(s.default.magenta(`Syncing "${r.length}" processing activities...`));let a=t.g(await Ds(e),`title`),o=r.filter(e=>!a[e.title]);o.length>0&&n.t.info(s.default.magenta(`Creating "${o.length}" new processing activities...`)),await W(o,async t=>{try{let r=await gu(e,t);a[r.title]=r,n.t.info(s.default.green(`Successfully created processing activity "${t.title}"!`))}catch(e){i=!0,n.t.info(s.default.red(`Failed to create processing activity "${t.title}"! - ${e.message}`))}});try{n.t.info(s.default.magenta(`Updating "${r.length}" processing activities!`)),await _u(e,r.map(e=>[e,a[e.title]?.id])),n.t.info(s.default.green(`Successfully synced "${r.length}" processingActivities!`))}catch(e){i=!0,n.t.info(s.default.red(`Failed to sync "${r.length}" processingActivities! - ${e.message}`))}return!i}async function yu(e,t){let{createProcessingPurposeSubCategory:n}=await $(e,oo,{input:{name:t.name,purpose:t.purpose,description:t.description}});return n.processingPurposeSubCategory}async function bu(e,t){await $(e,so,{input:{processingPurposeSubCategories:t.map(([e,t])=>({id:t,description:e.description,attributes:e.attributes}))}})}async function xu(e,r){n.t.info(s.default.magenta(`Syncing "${r.length}" processing purposes...`));let i=!1,a=t.g(await ks(e),({name:e,purpose:t})=>`${e}:${t}`);await W(r.filter(e=>!a[`${e.name}:${e.purpose}`]),async t=>{try{let r=await yu(e,t);a[`${r.name}:${r.purpose}`]=r,n.t.info(s.default.green(`Successfully synced processing purpose "${t.name}"!`))}catch(e){i=!0,n.t.info(s.default.red(`Failed to sync processing purpose "${t.name}"! - ${e.message}`))}});try{n.t.info(s.default.magenta(`Updating "${r.length}" processing purposes!`)),await bu(e,r.map(e=>[e,a[`${e.name}:${e.purpose}`].id])),n.t.info(s.default.green(`Successfully synced "${r.length}" processing purposes!`))}catch(e){i=!0,n.t.info(s.default.red(`Failed to sync "${r.length}" processing purposes ! - ${e.message}`))}return!i}async function Su(e,t){let{createPrompt:{prompt:r}}=await $(e,Ei,{input:t});return n.t.info(s.default.green(`Successfully created prompt "${t.title}"!`)),r.id}async function Cu(e,t){await $(e,Ti,{input:{prompts:t.map(([e,t])=>({...e,id:t}))}}),n.t.info(s.default.green(`Successfully updated ${t.length} prompts!`))}async function wu(e,r,i=20){let a=!1;n.t.info(s.default.magenta(`Syncing "${r.length}" prompts...`));let o=t.g(await pc(e),`title`),c=r.map(e=>[e,o[e.title]?.id]),l=c.filter(([,e])=>!e).map(([e])=>e);try{n.t.info(s.default.magenta(`Creating "${l.length}" new prompts...`)),await U(l,async t=>{await Su(e,t)},{concurrency:i}),n.t.info(s.default.green(`Successfully synced ${l.length} prompts!`))}catch(e){a=!0,n.t.info(s.default.red(`Failed to create prompts! - ${e.message}`))}let u=c.filter(e=>!!e[1]);try{n.t.info(s.default.magenta(`Updating "${u.length}" prompts...`)),await Cu(e,u),n.t.info(s.default.green(`Successfully updated "${u.length}" prompts!`))}catch(e){a=!0,n.t.info(s.default.red(`Failed to create prompts! - ${e.message}`))}return n.t.info(s.default.green(`Synced "${r.length}" prompts!`)),!a}async function Tu(e,t){let{createVendor:n}=await $(e,eo,{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 Eu(e,t){await $(e,to,{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 Du(e,r){n.t.info(s.default.magenta(`Syncing "${r.length}" vendors...`));let i=!1,a=t.g(await Xs(e),`title`);await W(r.filter(e=>!a[e.title]),async t=>{try{let r=await Tu(e,t);a[r.title]=r,n.t.info(s.default.green(`Successfully synced vendor "${t.title}"!`))}catch(e){i=!0,n.t.info(s.default.red(`Failed to sync vendor "${t.title}"! - ${e.message}`))}});try{n.t.info(s.default.magenta(`Updating "${r.length}" vendors!`)),await Eu(e,r.map(e=>[e,a[e.title].id])),n.t.info(s.default.green(`Successfully synced "${r.length}" vendors!`))}catch(e){i=!0,n.t.info(s.default.red(`Failed to sync "${r.length}" vendors ! - ${e.message}`))}return!i}const Ou=1e3;async function ku(e,t,n){await W(B(n,1e3),async n=>{await $(e,Wr,{pluginId:t,rawResults:n})})}async function Au({requestActions:e,auth:i,requestIds:a,statuses:o=[r.RequestStatus.Compiling,r.RequestStatus.RequestMade,r.RequestStatus.Delayed,r.RequestStatus.Approving,r.RequestStatus.Secondary,r.RequestStatus.Enriching,r.RequestStatus.Waiting,r.RequestStatus.SecondaryApproving],createdAtAfter:c,createdAtBefore:l,concurrency:u=100,transcendUrl:d=t.a}){let f=Y(d,i),p=new Date().getTime(),m=new y.default.SingleBar({},y.default.Presets.shades_classic),h=await Q(f,{actions:e,statuses:o,createdAtBefore:l,createdAtAfter:c,isSilent:!1,requestIds:a});n.t.info(s.default.magenta(`Marking "${h.length}" as silent mode.`));let g=0;m.start(h.length,0),await U(h,async e=>{await $(f,ci,{input:{id:e.id,isSilent:!0}}),g+=1,m.update(g)},{concurrency:u}),m.stop();let _=new Date().getTime()-p;return n.t.info(s.default.green(`Successfully marked ${g} requests as silent mode in "${_/1e3}" seconds!`)),h.length}async function ju(e,t){let n=(0,i.getValues)(K).filter(e=>!t.getValue(`columnNames`,e)),r=n.length===0?{}:await p.default.prompt(n.map(t=>{let n=nr(t.replace(`ColumnName`,``)),r=Co(e,n,_o[t],!!vo[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,i.getEntries)(r).map(([e,n])=>t.setValue(n,`columnNames`,e))),r}async function Mu(e,t,{state:i,columnNameMap:a}){let o=e=>i.getValue(`columnNames`,e)||a[e],{internalSubjects:c}=await $(e,Nr);n.t.info(s.default.magenta(`Determining mapping of columns for request action`));let l=await q(J(t,o(K.RequestType)),Object.values(r.RequestAction),i.getValue(`requestTypeToRequestAction`));await i.setValue(l,`requestTypeToRequestAction`),n.t.info(s.default.magenta(`Determining mapping of columns for subject`));let d=await q(J(t,o(K.SubjectType)),c.map(({type:e})=>e),i.getValue(`subjectTypeToSubjectName`));await i.setValue(d,`subjectTypeToSubjectName`),n.t.info(s.default.magenta(`Determining mapping of columns for locale`));let f=await q(J(t,o(K.Locale)),Object.values(u.LOCALE_KEY),i.getValue(`languageToLocale`));await i.setValue(f,`languageToLocale`),n.t.info(s.default.magenta(`Determining mapping of columns for request status`)),n.t.info(s.default.magenta(`Determining mapping of columns for request status`));let p=o(K.RequestStatus),m=p===G?{}:await q(J(t,p),[...Object.values(r.CompletedRequestStatus),G],i.getValue(`statusToRequestStatus`));await i.setValue(m,`statusToRequestStatus`),n.t.info(s.default.magenta(`Determining mapping of columns for country`));let h=o(K.Country),g=h===G?{}:await q(J(t,h),[...Object.values(r.IsoCountryCode),G],i.getValue(`regionToCountry`));await i.setValue(g,`regionToCountry`),n.t.info(s.default.magenta(`Determining mapping of columns for country sub division`));let _=o(K.CountrySubDivision),v=_===G?{}:await q(J(t,_),[...Object.values(r.IsoCountrySubdivisionCode),G],i.getValue(`regionToCountrySubDivision`));await i.setValue(v,`regionToCountrySubDivision`)}const Nu=c.record(c.string,c.array(c.intersection([c.type({value:c.string}),c.partial({name:c.string})]))),Pu=c.intersection([c.type({email:c.string,attestedExtraIdentifiers:Nu,coreIdentifier:c.string,requestType:(0,i.valuesOf)(r.RequestAction),subjectType:c.string}),c.partial({country:(0,i.valuesOf)(r.IsoCountryCode),countrySubDivision:(0,i.valuesOf)(r.IsoCountrySubdivisionCode),attributes:c.array(To),status:(0,i.valuesOf)(r.CompletedRequestStatus),createdAt:b.DateFromISOString,dataSiloIds:c.array(c.string),locale:(0,i.valuesOf)(u.LOCALE_KEY)})]);function Fu(e,t,n){if(t===r.IdentifierType.Email)return e.toLowerCase();if(t===r.IdentifierType.Phone){let t=e.replace(r.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 Iu(e,t,{columnNameMap:n,identifierNameMap:i,attributeNameMap:a,requestAttributeKeys:o,defaultPhoneCountryCode:s=`1`}){let c=e=>t.getValue(`columnNames`,e)||n[e];return e.map(e=>{let n={};Object.entries(i).filter(([,e])=>e!==G).forEach(([t,i])=>{let a=Object.values(r.IdentifierType).includes(t)?t:r.IdentifierType.Custom,o=e[i];if(o){let e=Fu(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?wo(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===mo?t.getValue(`requestTypeToRequestAction`,ho):t.getValue(`requestTypeToRequestAction`,e[u]),subjectType:d===mo?t.getValue(`subjectTypeToSubjectName`,ho):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:wo(e[c(K.DataSiloIds)])}:{}}]})}const Lu=c.type({defaultMessage:c.string,id:c.string}),Ru=c.type({downloadKey:c.string,error:c.union([c.null,c.string]),mimetype:c.string,size:c.string,fileName:c.string,dataPoint:c.type({id:c.string,title:c.union([Lu,c.null]),description:c.union([Lu,c.null]),name:c.string,slug:c.string,encryption:c.union([(0,i.valuesOf)(r.TableEncryptionType),c.null]),dataSilo:c.type({id:c.string,title:c.string,description:c.string,type:c.string,outerType:c.union([c.string,c.null])}),path:c.array(c.string)})}),zu=c.type({nodes:c.array(Ru),totalCount:c.number,_links:c.partial({next:c.union([c.string,c.null]),previous:c.union([c.string,c.null])})});async function Bu(e,{sombra:t,concurrency:r=5,limit:a=100}){n.t.info(s.default.magenta(`Pulling file metadata for ${e.length} requests`));let o=new Date().getTime(),c=new y.default.SingleBar({},y.default.Presets.shades_classic),l=0;c.start(e.length,0);let u=await U(e,async e=>{let n=[],r=!0,o=0;for(;r;){let s;try{s=(0,i.decodeCodec)(zu,await t.get(`v1/data-subject-request/${e.id}/download-keys`,{searchParams:{limit:a,offset:o}}).json()),n.push(...s.nodes),o+=a,r=!!s._links.next&&s.nodes.length===a}catch(e){throw Error(`Received an error from server: ${e?.response?.body||e?.message}`)}}return l+=1,c.update(l),[e,n]},{concurrency:r});c.stop();let d=new Date().getTime()-o;return n.t.info(s.default.green(`Successfully downloaded file metadata ${e.length} requests in "${d/1e3}" seconds!`)),u}async function Vu(e,{requestId:t,sombra:r,onFileDownloaded:i,concurrency:a=20}){await U(e,async e=>{try{await r.get(`v1/files`,{searchParams:{downloadKey:e.downloadKey}}).buffer().then(t=>i(e,t))}catch(r){if(r?.response?.body?.includes(`fileMetadata#verify`)){n.t.error(s.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: ${r?.response?.body||r?.message}`)}},{concurrency:a})}async function Hu({auth:e,folderPath:i,requestIds:c,createdAtBefore:l,sombraAuth:u,createdAtAfter:d,statuses:f=[r.RequestStatus.Approving,r.RequestStatus.Downloadable],concurrency:p=5,transcendUrl:m=t.a,approveAfterDownload:h=!1}){let g=Y(m,e),_=await jo(m,e,u);(0,a.existsSync)(i)||(0,a.mkdirSync)(i);let v=await Q(g,{actions:[r.RequestAction.Access],createdAtBefore:l,createdAtAfter:d,statuses:f,requestIds:c}),b=await Bu(v,{sombra:_,concurrency:p}),x=new Date().getTime(),S=new y.default.SingleBar({},y.default.Presets.shades_classic),C=0,w=0;S.start(v.length,0),await U(b,async([e,t])=>{let n=(0,o.join)(i,e.id);(0,a.existsSync)(n)||(0,a.mkdirSync)(n),await Vu(t,{sombra:_,requestId:e.id,onFileDownloaded:(e,t)=>{let r=(0,o.join)(n,e.fileName),i=(0,o.dirname)(r);(0,a.existsSync)(i)||(0,a.mkdirSync)(i,{recursive:!0}),(0,a.writeFileSync)(r,t)}}),h&&e.status===r.RequestStatus.Approving&&(await $(g,oi,{input:{requestId:e.id}}),w+=1),C+=1,S.update(C)},{concurrency:p}),S.stop();let T=new Date().getTime()-x;return n.t.info(s.default.green(`Successfully downloaded ${C} requests in "${T/1e3}" seconds!`)),w>0&&n.t.info(s.default.green(`Approved ${w} requests in Transcend.`)),v.length}const Uu=c.type({id:c.string,link:c.string,status:(0,i.valuesOf)(r.RequestStatus),type:(0,i.valuesOf)(r.RequestAction),subjectType:c.string,email:c.union([c.null,c.string]),coreIdentifier:c.string,isSilent:c.boolean,isTest:c.boolean,country:c.union([c.null,(0,i.valuesOf)(r.IsoCountryCode)]),countrySubDivision:c.union([c.null,(0,i.valuesOf)(r.IsoCountrySubdivisionCode)]),attributeValues:c.array(c.type({attributeKey:c.type({name:c.string}),name:c.string}))});async function Wu(e,t,{details:n=``,isTest:r=!1,emailIsVerified:a=!0,skipSendingReceipt:o=!1,isSilent:s=!0,additionalAttributes:l=[]}={}){let u=[...l];(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:a,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,i.decodeCodec)(c.type({request:Uu}),d);return f}async function Gu({requestActions:e,requestOrigins:i,auth:a,silentModeBefore:o,createdAtAfter:c,createdAtBefore:l,concurrency:u=50,transcendUrl:d=t.a}){let f=Y(d,a),p=new Date().getTime(),m=new y.default.SingleBar({},y.default.Presets.shades_classic),h=await Q(f,{actions:e,statuses:[r.RequestStatus.Approving],createdAtAfter:c,origins:i,createdAtBefore:l});n.t.info(s.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,ci,{input:{id:e.id,isSilent:!0}});try{await $(f,oi,{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&&n.t.info(s.default.yellow(`${_} requests were skipped.`)),n.t.info(s.default.green(`Successfully approved ${g} requests in "${v/1e3}" seconds!`)),h.length}async function Ku({requestActions:e=Object.values(r.RequestAction),auth:i,requestIds:a,createdAtBefore:o,days:c=45,daysLeft:l=10,createdAtAfter:u,emailTemplate:d=`Additional Time Needed`,concurrency:f=100,transcendUrl:p=t.a}){let m=Y(p,i),h=new Date().getTime(),g=new y.default.SingleBar({},y.default.Presets.shades_classic),_=(await Kc(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),n.t.info(s.default.magenta(`Notifying "${v.length}" that more time is needed.`));let b=0;g.start(v.length,0),await U(v,async e=>{await $(m,li,{input:{requestId:e.id,template:_.template.defaultMessage,subject:_.subject.defaultMessage,additionalTime:c}}),b+=1,g.update(b)},{concurrency:f}),g.stop();let x=new Date().getTime()-h;return n.t.info(s.default.green(`Successfully marked ${b} requests as silent mode in "${x/1e3}" seconds!`)),v.length}async function qu(e,t,n){let{initializer:r}=await $(e,Tr),i=r.identifiers.filter(({name:e})=>!n.getValue(`identifierNames`,e)&&!go.includes(e)),a=i.length===0?{}:await p.default.prompt(i.map(({name:e})=>{let n=Co(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 Ju({requestActions:e,cancellationTitle:i,auth:a,requestIds:o,silentModeBefore:c,createdAtBefore:l,createdAtAfter:u,statuses:d=[r.RequestStatus.Compiling,r.RequestStatus.RequestMade,r.RequestStatus.Delayed,r.RequestStatus.Approving,r.RequestStatus.Secondary,r.RequestStatus.Enriching,r.RequestStatus.Waiting,r.RequestStatus.SecondaryApproving],concurrency:f=50,transcendUrl:p=t.a}){let m=Y(p,a),h=new Date().getTime(),g=new y.default.SingleBar({},y.default.Presets.shades_classic),_;if(i){let e=(await Kc(m,i)).find(e=>e.title===i);if(!e)throw Error(`Failed to find a template with title: "${i}"`);_=e}let v=await Q(m,{actions:e,createdAtBefore:l,createdAtAfter:u,statuses:d,requestIds:o});n.t.info(s.default.magenta(`Canceling "${v.length}" requests${_?` Using template: ${_.title}`:``}.`));let b=0;g.start(v.length,0),await U(v,async e=>{c&&new Date(c)>new Date(e.createdAt)&&await $(m,ci,{input:{id:e.id,isSilent:!0}}),await $(m,si,{input:{requestId:e.id,..._?{subject:`Re: ${_.subject.defaultMessage}`,template:_.template.defaultMessage}:{}}}),b+=1,g.update(b)},{concurrency:f}),g.stop();let x=new Date().getTime()-h;return n.t.info(s.default.green(`Successfully canceled ${b} requests in "${x/1e3}" seconds!`)),v.length}async function Yu(e,t,n,r){let i=r.filter(({name:e})=>!n.getValue(`attributeNames`,e)),a=i.length===0?{}:await p.default.prompt(i.map(({name:e})=>{let n=Co(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 Xu=/{\\"message\\":\\"(.+?)\\",/;function Zu(e){return Xu.test(e)?Xu.exec(e)[1]:null}async function Qu({cacheFilepath:e,requestReceiptFolder:r,file:i,auth:a,sombraAuth:l,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:b=!1,dryRun:S=!1}){let C=new Date().getTime(),w=new y.default.SingleBar({},y.default.Presets.shades_classic),T=Eo(p),E=new x.PersistedState(e,yo,{columnNames:{},requestTypeToRequestAction:{},subjectTypeToSubjectName:{},languageToLocale:{},statusToRequestStatus:{},identifierNames:{},attributeNames:{},regionToCountrySubDivision:{},regionToCountry:{}}),D=(0,o.join)(r,`tr-request-upload-${new Date().toISOString()}-${i.split(`/`).pop()}`.replace(`.csv`,`.json`)),O=new x.PersistedState(D,xo,{successfulRequests:[],duplicateRequests:[],failingRequests:[]}),k=await jo(f,a,l),A=Do(i,c.record(c.string,c.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(b){let e=A[0];n.t.info(s.default.magenta(`First request: ${JSON.stringify(e,null,2)}`))}let M=h?A:await Oo(A),N=Y(f,a),P=await es(N),F=await ju(j,E),I=await qu(N,j,E),ee=await Yu(N,j,E,P);await Mu(N,M,{state:E,columnNameMap:F});let L=Iu(M,E,{defaultPhoneCountryCode:d,columnNameMap:F,identifierNameMap:I,attributeNameMap:ee,requestAttributeKeys:P});b||w.start(L.length,0);let te=0;await U(L,async([e,t],r)=>{let i=b?`email:${t.email} | coreIdentifier:${t.coreIdentifier}`:`row:${r.toString()}`;if(b&&n.t.info(s.default.magenta(`[${r+1}/${L.length}] Importing: ${JSON.stringify(t,null,2)}`)),S){n.t.info(s.default.magenta(`Bailing out on dry run because dryRun is set`));return}try{let a=await Wu(k,t,{details:`Uploaded by Transcend Cli: "tr-request-upload" : ${JSON.stringify(e,null,2)}`,isTest:_,emailIsVerified:m,skipSendingReceipt:g,isSilent:v,additionalAttributes:T});b&&(n.t.info(s.default.green(`[${r+1}/${L.length}] Successfully submitted the test data subject request: "${i}"`)),n.t.info(s.default.green(`[${r+1}/${L.length}] View it at: "${a.link}"`)));let o=O.getValue(`successfulRequests`);o.push({id:a.id,link:a.link,rowIndex:r,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=Zu(a);if(o===`Client error: You have already made this request.`){b&&n.t.info(s.default.yellow(`[${r+1}/${L.length}] Skipping request as it is a duplicate`));let e=O.getValue(`duplicateRequests`);e.push({coreIdentifier:t.coreIdentifier,rowIndex:r,attemptedAt:new Date().toISOString()}),await O.setValue(e,`duplicateRequests`)}else{let e=O.getValue(`failingRequests`);e.push({...t,rowIndex:r,error:o||a,attemptedAt:new Date().toISOString()}),await O.setValue(e,`failingRequests`),b&&(n.t.error(s.default.red(o||a)),n.t.error(s.default.red(`[${r+1}/${L.length}] Failed to submit request for: "${i}"`)))}}te+=1,b||w.update(te)},{concurrency:u}),w.stop();let R=new Date().getTime()-C;n.t.info(s.default.green(`Completed upload in "${R/1e3}" seconds.`)),O.getValue(`duplicateRequests`).length>0&&n.t.info(s.default.yellow(`Encountered "${O.getValue(`duplicateRequests`).length}" duplicate requests. See "${D}" to review the core identifiers for these requests.`)),O.getValue(`failingRequests`).length>0&&(n.t.error(s.default.red(`Encountered "${O.getValue(`failingRequests`).length}" errors. See "${D}" to review the error messages and inputs.`)),process.exit(1))}async function $u(e,t,{sendEmailReceipt:n=!1,skipWaitingPeriod:a=!1,emailIsVerified:o=!0,requestIdentifiers:s=[]}={}){let l=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,i.apply)(Hn(s.filter(e=>!(e.name===`email`&&e.value===t.email)&&!go.includes(e.name)).map(e=>({...e,type:Object.values(r.IdentifierType).includes(e.name)?e.name:r.IdentifierType.Custom})),`type`),(e,t)=>e.map(({name:e,value:n})=>({...t===r.IdentifierType.Custom?{name:e}:{},value:n})))}:{}},requestId:t.id,subjectType:t.subjectType,isSilent:t.isSilent,isTest:t.isTest,locale:t.locale,skipWaitingPeriod:a,createdAt:t.createdAt,details:`Restarted by Transcend cli: "tr-request-restart" - ${t.details}`,skipSendingReceipt:!n}}).json(),{request:u}=(0,i.decodeCodec)(c.type({request:Uu}),l);return u}const ed=c.intersection([bo,c.type({error:c.string})]),td=c.type({restartedRequests:c.array(bo),failingRequests:c.array(ed)});async function nd({requestReceiptFolder:e,auth:r,sombraAuth:i,requestActions:a,requestStatuses:c,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:b=20}){let S=new Date().getTime(),C=new y.default.SingleBar({},y.default.Presets.shades_classic),w=(0,o.join)(e,`tr-request-restart-${new Date().toISOString()}.json`),T=new x.PersistedState(w,td,{restartedRequests:[],failingRequests:[]}),E=await jo(d,r,i),D=Y(d,r),O=(await Q(D,{requestIds:f,actions:a,statuses:c,createdAtBefore:l,createdAtAfter:u})).filter(e=>new Date(e.createdAt)<p);if(n.t.info(`Found ${O.length} requests to restart`),_&&n.t.info(`copyIdentifiers detected - All Identifiers will be copied.`),h&&n.t.info(`sendEmailReceipt detected - Email receipts will be sent.`),v&&n.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&&(n.t.error(s.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 Vs(D,E,{requestId:e.id}):[],r=await $u(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=Zu(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:b}),C.stop();let A=new Date().getTime()-S;n.t.info(s.default.green(`Completed restarting of requests in "${A/1e3}" seconds.`)),T.getValue(`failingRequests`).length>0&&(n.t.error(s.default.red(`Encountered "${T.getValue(`failingRequests`).length}" errors. See "${(0,o.resolve)(w)}" to review the error messages and inputs.`)),process.exit(1))}async function rd({enricherIds:e,auth:i,concurrency:a=100,transcendUrl:o=t.a}){let c=Y(o,i),l=new Date().getTime(),u=await Q(c,{statuses:[r.RequestStatus.Enriching]});n.t.info(s.default.magenta(`Processing enricher: "${e.join(`,`)}" fetched "${u.length}" in enriching status.`));let d=new y.default.SingleBar({},y.default.Presets.shades_classic),f=0;d.start(u.length,0);let p=0;await U(u,async t=>{let n=(await Ps(c,{requestId:t.id})).filter(t=>e.includes(t.enricher.id)&&![r.RequestEnricherStatus.Resolved,r.RequestEnricherStatus.Skipped].includes(t.status));n.length>0&&await W(n,async e=>{try{await $(c,mi,{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 n.t.info(s.default.green(`Successfully skipped "${p}" for "${u.length}" requests in "${m/1e3}" seconds!`)),u.length}async function id({auth:e,requestActions:i=[],createdAtBefore:a,createdAtAfter:o,transcendUrl:c=t.a,requestEnricherStatuses:l=Object.values(r.RequestEnricherStatus),requestIds:u=[],enricherId:d,concurrency:f=20}){let p=new Date().getTime(),m=new y.default.SingleBar({},y.default.Presets.shades_classic),h=Y(c,e);n.t.info(s.default.magenta(`Fetching requests to restart...`));let g=await Q(h,{actions:i,statuses:[r.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&&(n.t.error(s.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 Ps(h,{requestId:e.id})).filter(e=>e.enricher.id===d&&l.includes(e.status)),async e=>{await il(h,e.id),_+=1}),v+=1,m.update(v)},{concurrency:f}),m.stop();let b=new Date().getTime()-p;n.t.info(s.default.green(`Completed restarting of ${g.length} requests and ${_} enrichers in "${b/1e3}" seconds.`))}async function ad({requestActions:e,dataSiloId:i,auth:a,concurrency:o=20,transcendUrl:c=t.a}){let l=Y(c,a),u=new Date().getTime(),d=new y.default.SingleBar({},y.default.Presets.shades_classic),f=await Q(l,{actions:e,statuses:[r.RequestStatus.Compiling,r.RequestStatus.Approving]});n.t.info(s.default.magenta(`Retrying requests for Data Silo: "${i}", restarting "${f.length}" requests.`));let p=0,m=0;d.start(f.length,0),await U(f,async e=>{try{await $(l,Ni,{requestDataSiloId:(await bc(l,{requestId:e.id,dataSiloId:i})).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 n.t.info(s.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 od({auth:e,sombraAuth:r,actions:i=[],statuses:a=[],identifierSearch:o,pageLimit:c=100,transcendUrl:l=t.a,createdAtBefore:u,skipRequestIdentifiers:d=!1,createdAtAfter:f,isTest:p}){let m=Y(l,e),h=await jo(l,e,r),g=``;u&&(g+=` before ${u.toISOString()}`),f&&(g+=`${g?`, and`:``} after ${f.toISOString()}`),n.t.info(s.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 Vs(m,h,{requestId:e.id});return{...e,requestIdentifiers:t}},{concurrency:c});return n.t.info(s.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(Hn(e,`attributeKey.name`)).reduce((e,[t,n])=>Object.assign(e,{[t]:n.map(({name:e})=>e).join(`,`)}),{}),...Object.entries(Hn(t,`name`)).reduce((e,[t,n])=>Object.assign(e,{[t]:n.map(({value:e})=>e).join(`,`)}),{})}))}}async function sd({dataSiloId:e,auth:i,concurrency:a=50,maxUploadPerChunk:o=5e4,status:c=`SKIPPED`,transcendUrl:l=t.a,requestStatuses:u=[r.RequestStatus.Compiling,r.RequestStatus.Secondary]}){let d=Y(l,i),f=new Date().getTime(),p=await _c(d,{dataSiloId:e,requestStatuses:u});n.t.info(s.default.magenta(`Marking ${p} request data silos as completed`));let m=new y.default.SingleBar({},y.default.Presets.shades_classic),h=0;for(m.start(p,0);h<p;)await U(await yc(d,{dataSiloId:e,requestStatuses:u,limit:o,onProgress:e=>{h+=e/2,m.update(h)}}),async e=>{try{await $(d,Mi,{requestDataSiloId:e.id,status:c})}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 n.t.info(s.default.green(`Successfully skipped "${p}" requests in "${g/1e3}" seconds!`)),p}async function cd({requestActions:e,identifierNames:i,auth:a,concurrency:o=20,transcendUrl:c=t.a}){let l=Y(c,a),u=new Date().getTime(),d=new y.default.SingleBar({},y.default.Presets.shades_classic),f=await Q(l,{actions:e,statuses:[r.RequestStatus.Enriching]});n.t.info(s.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 Is(l,{requestId:e.id})).filter(({isVerifiedAtLeastOnce:e,name:t})=>e===!1&&i.includes(t)).map(({id:e})=>e);t.length>0&&(await $(l,Ri,{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 n.t.info(s.default.green(`Successfully cleared out unverified identifiers "${h/1e3}" seconds for ${p} requests, ${m} identifiers were cleared out!`)),f.length}async function ld({message:e}){let{response:t}=await p.default.prompt([{name:`response`,message:e,type:`confirm`}]);return t}async function ud({message:e}){let{response:t}=await p.default.prompt([{name:`response`,message:e,type:`text`,validate:e=>e.trim().length>0}]);return t}async function dd({defaultValue:e,values:t,message:n}){p.default.registerPrompt(`autocomplete`,m.default);let{response:r}=await p.default.prompt([{name:`response`,message:n,type:`autocomplete`,default:e,source:(e,n)=>n?t.filter(e=>typeof e==`string`&&So(n,e)):t}]);return r}function fd(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 pd(e){let t=e;return t?.response?.statusCode??t?.response?.status}function md(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 hd(e){return new Promise(t=>{setTimeout(()=>t(e),e)})}function gd(e){let t=Math.floor(e.length/2);return[e.slice(0,t),e.slice(t)]}async function _d(e,t,n){let r=0;for(;;)try{return await e()}catch(e){r+=1;let i=pd(e),a=md(e);if(!(r<=t.maxAttempts&&t.shouldRetry(i,a)))throw e;n(`Retrying after status=${i} attempt=${r}/${t.maxAttempts} — ${a}`),await hd(t.delayMs)}}function vd(e,t){return Object.entries(e).reduce((e,[n,r],i)=>(e[n]=i<t?r:!0,e),{})}var yd=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 bd(e){try{return e?(0,a.readFileSync)(e,`utf8`):``}catch{return``}}function xd(e,t){e||(n.t.error(s.default.red(`A --directory must be provided.`)),t.process.exit(1));let r=[];try{r=(0,a.readdirSync)(e).filter(e=>e.endsWith(`.parquet`)).map(t=>(0,o.join)(e,t)).filter(e=>{try{return(0,a.statSync)(e).isFile()}catch{return!1}})}catch(r){n.t.error(s.default.red(`Failed to read directory: ${e}`)),n.t.error(s.default.red(r.message)),t.process.exit(1)}return r.length===0&&(n.t.error(s.default.red(`No Parquet files found in directory: ${e}`)),t.process.exit(1)),n.t.info(s.default.green(`Found: ${r.join(`, `)} parquet files`)),r}async function Sd(e,t){let{filePath:r,outputDir:i,clearOutputDir:c,onProgress:l}=e,u=i||(0,o.dirname)(r),{name:d}=(0,o.parse)(r),f=(0,o.join)(u,`${d}.csv`);if((0,a.mkdirSync)(u,{recursive:!0}),c&&(0,a.existsSync)(f))try{(0,a.rmSync)(f,{force:!0})}catch(e){n.t.warn(s.default.yellow(`Could not remove existing output file ${f}: ${e.message}`))}let p=await t.create(`:memory:`),m=await p.connect();try{await wd(m,`PRAGMA temp_directory='';`);let e=e=>`'${e.replace(/'/g,`''`)}'`;await Cd(m,`
2986
- COPY (SELECT * FROM read_parquet(${e(r)}))
2987
- TO ${e(f)}
2988
- (HEADER, DELIMITER ',', QUOTE '"', ESCAPE '"', NULL '');
2989
- `),l?.(0,void 0),n.t.info(s.default.green(`Wrote CSV → ${f}`))}finally{await Td(m),await Td(p)}}async function Cd(e,t){await Td(await e.run(t))}async function wd(e,t){try{await Cd(e,t)}catch{}}async function Td(e){if(!(!e||typeof e.dispose!=`function`))try{await e.dispose()}catch{}}const Ed=1440*60*1e3,Dd=3600*1e3,Od=300*1e3,kd=e=>Math.max(1,Math.min(50,e??50)),Ad=e=>new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate())),jd=e=>new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours())),Md=(e,t)=>new Date(e.getTime()+t),Nd=(e,t)=>new Date(e.getTime()+t*Ed);function Pd(e){return e.includes(`"`)||e.includes(`,`)||e.includes(`
2990
- `)?`"${e.replace(/"/g,`""`)}"`:e}function Fd(e,t,n){let r=[];r.push(n),r.push(...t.map(e=>Object.values(e))),(0,a.writeFileSync)(e,r.map(e=>e.map(Pd).join(`,`)).join(`
2991
- `))}function Id(e,t){if(!t||t.length===0){(0,a.writeFileSync)(e,``);return}(0,a.writeFileSync)(e,`${t.map(Pd).join(`,`)}\n`)}function Ld(e,t,n){t.length&&(0,a.appendFileSync)(e,`${t.map(e=>n.map(t=>{let n=e[t];return n==null?``:String(n)}).map(Pd).join(`,`)).join(`
2992
- `)}\n`)}function Rd(e,t){(0,a.appendFileSync)(e,`\n${t.map(e=>Object.values(e)).map(e=>e.map(Pd).join(`,`)).join(`
2993
- `)}`)}async function zd(e,t,n=!0){let r=(0,a.createWriteStream)(e);await new Promise((e,i)=>{try{let a=S.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 Bd(e){let t=e.lastIndexOf(`.`);return{baseName:t===-1?e:e.substring(0,t),extension:t===-1?`.csv`:e.substring(t)}}function Vd(e,t){let n={};for(let r of t)n[r]=e[r];return n}function Hd(e){return new Promise(t=>{e.once(`drain`,t)})}async function Ud(e,t,n=!0){let r;r=Array.isArray(n)?n:n===!0?t.length>0?Object.keys(t[0]):[]:!1;let i=(0,a.createWriteStream)(e),o=S.format({headers:r||void 0,objectMode:!0}),s=o.pipe(i),c=new Promise((e,t)=>{s.on(`finish`,()=>e()),s.on(`error`,t),o.on(`error`,t),i.on(`error`,t)});for(let e of t){let t=r?Vd(e,r):e;o.write(t)||await Hd(o)}return o.end(),await c,[e]}const Wd=4,Gd=[`syntax error`,`got invalid value`,`Client error`,`cannot affect row a second time`,`GRAPHQL_VALIDATION_FAILED`];async function $(e,t,r,i,a=4){let o=0;for(;;)try{return await e.request(t,r,i)}catch(e){if(e.message.includes(`API key is invalid`)&&(n.t.error(s.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)),Gd.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`),r=t?new Date(t).getTime()-new Date().getTime()+100:1e3*10;n.t.log(s.default.yellow(`DETECTED RATE LIMIT: ${e.message}. Sleeping for ${r}ms`)),await hd(r)}if(o>=a)throw e;o+=1,n.t.log(s.default.yellow(`Retrying failed request (${o} / ${a}): ${e.message}`))}}const Kd=20;async function qd(e){let t=[],n=0,r=!1;do{let{identifiers:{nodes:i}}=await $(e,kr,{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 Jd({enrichers:e=[],"data-silos":r=[],identifiers:i=[]},a,o=!1){let c=await qd(a),l=t.g(c,`name`),u=V(H([...Be(e.map(e=>[e[`input-identifier`],...e[`output-identifiers`]])),...Be(r.map(e=>e[`identity-keys`])),...i.map(({name:e})=>e)]).filter(e=>!!e),c.map(({name:e})=>e));if(u.length>0){n.t.info(s.default.magenta(`Creating ${u.length} new identifiers...`));let{newIdentifierTypes:e}=await $(a,Ar),t=e.map(({name:e})=>e);await W(u,async e=>{n.t.info(s.default.magenta(`Creating identifier ${e}...`));let{createIdentifier:r}=await $(a,jr,{input:{name:e,type:t.includes(e)?e:`custom`,skipPublish:o}});n.t.info(s.default.green(`Created identifier ${e}!`)),l[e]=r.identifier})}return l}async function Yd(e,t){let{createTeam:n}=await $(e,Ii,{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 Xd(e,t,n){let{updateTeam:r}=await $(e,Li,{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 Zd(e,r){n.t.info(s.default.magenta(`Syncing "${r.length}" teams...`));let i=!1,a=t.g(await Ks(e),`name`),o=r.filter(e=>!a[e.name]),c=r.filter(e=>!!a[e.name]);return await W(o,async t=>{try{let r=await Yd(e,t);a[r.name]=r,n.t.info(s.default.green(`Successfully created team "${t.name}"!`))}catch(e){i=!0,n.t.info(s.default.red(`Failed to sync team "${t.name}"! - ${e.message}`))}}),await W(c,async t=>{try{let r=await Xd(e,t,a[t.name].id);a[r.name]=r,n.t.info(s.default.green(`Successfully updated team "${t.name}"!`))}catch(e){i=!0,n.t.info(s.default.red(`Failed to sync team "${t.name}"! - ${e.message}`))}}),!i}async function Qd(e,t){let{createPromptPartial:{promptPartial:r}}=await $(e,Oi,{input:t});return n.t.info(s.default.green(`Successfully created prompt partial "${t.title}"!`)),r.id}async function $d(e,t){await $(e,Di,{input:{promptPartials:t.map(([e,t])=>({...e,id:t}))}}),n.t.info(s.default.green(`Successfully updated ${t.length} prompt partials!`))}async function ef(e,r,i=20){let a=!1;n.t.info(s.default.magenta(`Syncing "${r.length}" prompt partials...`));let o=t.g(await dc(e),`title`),c=r.map(e=>[e,o[e.title]?.id]),l=c.filter(([,e])=>!e).map(([e])=>e);try{n.t.info(s.default.magenta(`Creating "${l.length}" new prompt partials...`)),await U(l,async t=>{await Qd(e,t)},{concurrency:i}),n.t.info(s.default.green(`Successfully synced ${l.length} prompt partials!`))}catch(e){a=!0,n.t.info(s.default.red(`Failed to create prompt partials! - ${e.message}`))}let u=c.filter(e=>!!e[1]);try{n.t.info(s.default.magenta(`Updating "${u.length}" prompt partials...`)),await $d(e,u),n.t.info(s.default.green(`Successfully updated "${u.length}" prompt partials!`))}catch(e){a=!0,n.t.info(s.default.red(`Failed to create prompt partials! - ${e.message}`))}return n.t.info(s.default.green(`Synced "${r.length}" prompt partials!`)),!a}async function tf(e,t){let{createPromptGroup:{promptGroup:r}}=await $(e,Ai,{input:t});return n.t.info(s.default.green(`Successfully created prompt group "${t.title}"!`)),r.id}async function nf(e,t){await $(e,ki,{input:{promptGroups:t.map(([e,t])=>({...e,id:t}))}}),n.t.info(s.default.green(`Successfully updated ${t.length} prompt groups!`))}async function rf(e,r,i=20){let a=!1;n.t.info(s.default.magenta(`Syncing "${r.length}" prompt groups...`));let o=await lc(e),c=t.g(await pc(e),`title`),l=t.g(o,`title`),u=r.map(e=>[e,l[e.title]?.id]),d=u.filter(([,e])=>!e).map(([e])=>e);try{n.t.info(s.default.magenta(`Creating "${d.length}" new prompt groups...`)),await U(d,async t=>{await tf(e,{...t,promptIds:t.prompts.map(e=>{let t=c[e];if(!t)throw Error(`Failed to find prompt with title: "${e}"`);return t.id})})},{concurrency:i}),n.t.info(s.default.green(`Successfully synced ${d.length} prompt groups!`))}catch(e){a=!0,n.t.info(s.default.red(`Failed to create prompt groups! - ${e.message}`))}let f=u.filter(e=>!!e[1]);try{n.t.info(s.default.magenta(`Updating "${f.length}" prompt groups...`)),await nf(e,f.map(([{prompts:e,...t},n])=>[{...t,promptIds:e.map(e=>{let t=c[e];if(!t)throw Error(`Failed to find prompt with title: "${e}"`);return t.id})},n])),n.t.info(s.default.green(`Successfully updated "${f.length}" prompt groups!`))}catch(e){a=!0,n.t.info(s.default.red(`Failed to create prompt groups! - ${e.message}`))}return n.t.info(s.default.green(`Synced "${r.length}" prompt groups!`)),!a}const af=10;async function of(e,t,{pageSize:r=50,publishToPrivacyCenter:i=!0,classifyService:a=!1,deleteExtraAttributeValues:o=!1}){let c=!1;n.t.info(s.default.magenta(`Fetching data with page size ${r}...`));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:I}=e,[ee,L,te]=await Promise.all([h||f?Jd(e,t,!i):{},v||p||h||O?ac(e,t):{},v&&v.map(e=>e[`api-key-title`]||[]).reduce((e,t)=>e+t.length,0)>0?ec(e,t):{}]);if(_){n.t.info(s.default.magenta(`Syncing consent manager...`));try{await Xl(t,_),n.t.info(s.default.green(`Successfully synced consent manager!`))}catch(e){c=!0,n.t.info(s.default.red(`Failed to sync consent manager! - ${e.message}`))}}if(b){let e=await wu(t,b);c||=!e}if(S){let e=await ef(t,S);c||=!e}if(x){let e=await rf(t,x);c||=!e}if(M){let e=await Zd(t,M);c||=!e}if(l&&(n.t.info(s.default.magenta(`Syncing "${l.length}" email templates...`)),await U(l,async e=>{n.t.info(s.default.magenta(`Syncing template "${e.title}"...`));try{await qc(e,t),n.t.info(s.default.green(`Successfully synced template "${e.title}"!`))}catch(t){c=!0,n.t.info(s.default.red(`Failed to sync template "${e.title}"! - ${t.message}`))}},{concurrency:10}),n.t.info(s.default.green(`Synced "${l.length}" email templates!`))),m){let e=await Ol(t,m);c||=!e}if(E){let e=await Du(t,E);c||=!e}if(D){let e=await nu(t,D);c||=!e}if(k){let e=await xu(t,k);c||=!e}if(I){let e=await Qc(t,I);c||=!e}if(C){let e=await wl(t,C);c||=!e}if(w){let e=await xl(t,w);c||=!e}if(T){let e=await vl(t,T);c||=!e}if(g){let e=await $l(t,g);c||=!e}if(j){let e=await ul(t,j);c||=!e}if(u){n.t.info(s.default.magenta(`Syncing "${u.length}" attributes...`));let e=await is(t);await U(u,async r=>{let i=e.find(e=>e.name===r.name);n.t.info(s.default.magenta(`Syncing attribute "${r.name}"...`));try{await Tl(t,r,{existingAttribute:i,deleteExtraAttributeValues:o}),n.t.info(s.default.green(`Successfully synced attribute "${r.name}"!`))}catch(e){c=!0,n.t.info(s.default.red(`Failed to sync attribute "${r.name}"! - ${e.message}`))}},{concurrency:10}),n.t.info(s.default.green(`Synced "${u.length}" attributes!`))}if(A){let e=await hl(t,A);c||=!e}if(h&&(n.t.info(s.default.magenta(`Syncing "${h.length}" enrichers...`)),await U(h,async e=>{n.t.info(s.default.magenta(`Syncing enricher "${e.title}"...`));try{await Wc(t,{enricher:e,identifierByName:ee,dataSubjectsByName:L}),n.t.info(s.default.green(`Successfully synced enricher "${e.title}"!`))}catch(t){c=!0,n.t.info(s.default.red(`Failed to sync enricher "${e.title}"! - ${t.message}`))}},{concurrency:10}),n.t.info(s.default.green(`Synced "${h.length}" enrichers!`))),f&&(n.t.info(s.default.magenta(`Syncing "${f.length}" identifiers...`)),await U(f,async e=>{let r=ee[e.name];if(!r)throw Error(`Failed to find identifier with name: ${e.type}. Should have been auto-created by cli.`);n.t.info(s.default.magenta(`Syncing identifier "${e.type}"...`));try{await cu(t,{identifier:e,dataSubjectsByName:L,identifierId:r.id,skipPublish:!i}),n.t.info(s.default.green(`Successfully synced identifier "${e.type}"!`))}catch(t){c=!0,n.t.info(s.default.red(`Failed to sync identifier "${e.type}"! - ${t.message}`))}},{concurrency:10}),n.t.info(s.default.green(`Synced "${f.length}" identifiers!`))),d){n.t.info(s.default.magenta(`Syncing "${d.length}" actions...`));let e=await zo(t);await U(d,async r=>{let a=e.find(e=>e.type===r.type);if(!a)throw Error(`Failed to find action with type: ${r.type}. Should have already existing in the organization.`);n.t.info(s.default.magenta(`Syncing action "${r.type}"...`));try{await sl(t,{action:r,actionId:a.id,skipPublish:!i}),n.t.info(s.default.green(`Successfully synced action "${r.type}"!`))}catch(e){c=!0,n.t.info(s.default.red(`Failed to sync action "${r.type}"! - ${e.message}`))}},{concurrency:10}),n.t.info(s.default.green(`Synced "${d.length}" actions!`))}if(p){n.t.info(s.default.magenta(`Syncing "${p.length}" data subjects...`));let e=await ic(t);await U(p,async r=>{let a=e.find(e=>e.type===r.type);if(!a)throw Error(`Failed to find data subject with type: ${r.type}. Should have already existing in the organization.`);n.t.info(s.default.magenta(`Syncing data subject "${r.type}"...`));try{await su(t,{dataSubject:r,dataSubjectId:a.id,skipPublish:!i}),n.t.info(s.default.green(`Successfully synced data subject "${r.type}"!`))}catch(e){c=!0,n.t.info(s.default.red(`Failed to sync data subject "${r.type}"! - ${e.message}`))}},{concurrency:10}),n.t.info(s.default.green(`Synced "${p.length}" data subjects!`))}if(y){let e=await ou(t,y,a);c||=!e}if(N){let e=await hu(t,N);c||=!e}if(P){let e=await du(t,P);c||=!e}if(F){let e=await mu(t,F);c||=!e}let R=[];if(v){let{success:e,dataSiloTitleToId:n}=await Bc(v,t,{dataSubjectsByName:L,apiKeysByTitle:te,pageSize:r});v?.forEach(e=>{e[`deletion-dependencies`]&&R.push([n[e.title],e[`deletion-dependencies`]])}),c||=!e}if(R.length>0&&await Vc(t,R),O){let e=await vu(t,O);c||=!e}return c}Object.defineProperty(exports,`$`,{enumerable:!0,get:function(){return Lu}}),Object.defineProperty(exports,`$a`,{enumerable:!0,get:function(){return Fi}}),Object.defineProperty(exports,`$i`,{enumerable:!0,get:function(){return za}}),Object.defineProperty(exports,`$n`,{enumerable:!0,get:function(){return sc}}),Object.defineProperty(exports,`$o`,{enumerable:!0,get:function(){return Pr}}),Object.defineProperty(exports,`$r`,{enumerable:!0,get:function(){return Mo}}),Object.defineProperty(exports,`$t`,{enumerable:!0,get:function(){return Cl}}),Object.defineProperty(exports,`A`,{enumerable:!0,get:function(){return fd}}),Object.defineProperty(exports,`Aa`,{enumerable:!0,get:function(){return pa}}),Object.defineProperty(exports,`Ai`,{enumerable:!0,get:function(){return so}}),Object.defineProperty(exports,`An`,{enumerable:!0,get:function(){return Bc}}),Object.defineProperty(exports,`Ao`,{enumerable:!0,get:function(){return ci}}),Object.defineProperty(exports,`Ar`,{enumerable:!0,get:function(){return ms}}),Object.defineProperty(exports,`As`,{enumerable:!0,get:function(){return Hn}}),Object.defineProperty(exports,`At`,{enumerable:!0,get:function(){return iu}}),Object.defineProperty(exports,`B`,{enumerable:!0,get:function(){return nd}}),Object.defineProperty(exports,`Ba`,{enumerable:!0,get:function(){return ea}}),Object.defineProperty(exports,`Bi`,{enumerable:!0,get:function(){return qa}}),Object.defineProperty(exports,`Bn`,{enumerable:!0,get:function(){return Ec}}),Object.defineProperty(exports,`Bo`,{enumerable:!0,get:function(){return Yr}}),Object.defineProperty(exports,`Br`,{enumerable:!0,get:function(){return is}}),Object.defineProperty(exports,`Bt`,{enumerable:!0,get:function(){return Kl}}),Object.defineProperty(exports,`C`,{enumerable:!0,get:function(){return yd}}),Object.defineProperty(exports,`Ca`,{enumerable:!0,get:function(){return ba}}),Object.defineProperty(exports,`Ci`,{enumerable:!0,get:function(){return po}}),Object.defineProperty(exports,`Cn`,{enumerable:!0,get:function(){return Uc}}),Object.defineProperty(exports,`Co`,{enumerable:!0,get:function(){return mi}}),Object.defineProperty(exports,`Cr`,{enumerable:!0,get:function(){return Z}}),Object.defineProperty(exports,`Cs`,{enumerable:!0,get:function(){return hr}}),Object.defineProperty(exports,`Ct`,{enumerable:!0,get:function(){return pu}}),Object.defineProperty(exports,`D`,{enumerable:!0,get:function(){return hd}}),Object.defineProperty(exports,`Da`,{enumerable:!0,get:function(){return _a}}),Object.defineProperty(exports,`Di`,{enumerable:!0,get:function(){return uo}}),Object.defineProperty(exports,`Dn`,{enumerable:!0,get:function(){return Lc}}),Object.defineProperty(exports,`Do`,{enumerable:!0,get:function(){return si}}),Object.defineProperty(exports,`Dr`,{enumerable:!0,get:function(){return ys}}),Object.defineProperty(exports,`Ds`,{enumerable:!0,get:function(){return H}}),Object.defineProperty(exports,`Dt`,{enumerable:!0,get:function(){return su}}),Object.defineProperty(exports,`E`,{enumerable:!0,get:function(){return gd}}),Object.defineProperty(exports,`Ea`,{enumerable:!0,get:function(){return ga}}),Object.defineProperty(exports,`Ei`,{enumerable:!0,get:function(){return co}}),Object.defineProperty(exports,`En`,{enumerable:!0,get:function(){return Ic}}),Object.defineProperty(exports,`Eo`,{enumerable:!0,get:function(){return oi}}),Object.defineProperty(exports,`Er`,{enumerable:!0,get:function(){return bs}}),Object.defineProperty(exports,`Es`,{enumerable:!0,get:function(){return W}}),Object.defineProperty(exports,`Et`,{enumerable:!0,get:function(){return cu}}),Object.defineProperty(exports,`F`,{enumerable:!0,get:function(){return sd}}),Object.defineProperty(exports,`Fa`,{enumerable:!0,get:function(){return Qi}}),Object.defineProperty(exports,`Fi`,{enumerable:!0,get:function(){return to}}),Object.defineProperty(exports,`Fn`,{enumerable:!0,get:function(){return kc}}),Object.defineProperty(exports,`Fo`,{enumerable:!0,get:function(){return ti}}),Object.defineProperty(exports,`Fr`,{enumerable:!0,get:function(){return X}}),Object.defineProperty(exports,`Fs`,{enumerable:!0,get:function(){return je}}),Object.defineProperty(exports,`Ft`,{enumerable:!0,get:function(){return Ql}}),Object.defineProperty(exports,`G`,{enumerable:!0,get:function(){return Ju}}),Object.defineProperty(exports,`Ga`,{enumerable:!0,get:function(){return Wi}}),Object.defineProperty(exports,`Gi`,{enumerable:!0,get:function(){return Ka}}),Object.defineProperty(exports,`Gn`,{enumerable:!0,get:function(){return bc}}),Object.defineProperty(exports,`Go`,{enumerable:!0,get:function(){return Gr}}),Object.defineProperty(exports,`Gr`,{enumerable:!0,get:function(){return Go}}),Object.defineProperty(exports,`Gt`,{enumerable:!0,get:function(){return Il}}),Object.defineProperty(exports,`H`,{enumerable:!0,get:function(){return Qu}}),Object.defineProperty(exports,`Ha`,{enumerable:!0,get:function(){return Ki}}),Object.defineProperty(exports,`Hi`,{enumerable:!0,get:function(){return Ya}}),Object.defineProperty(exports,`Hn`,{enumerable:!0,get:function(){return Cc}}),Object.defineProperty(exports,`Ho`,{enumerable:!0,get:function(){return qr}}),Object.defineProperty(exports,`Hr`,{enumerable:!0,get:function(){return Qo}}),Object.defineProperty(exports,`Ht`,{enumerable:!0,get:function(){return Hl}}),Object.defineProperty(exports,`I`,{enumerable:!0,get:function(){return od}}),Object.defineProperty(exports,`Ia`,{enumerable:!0,get:function(){return $i}}),Object.defineProperty(exports,`Ii`,{enumerable:!0,get:function(){return $a}}),Object.defineProperty(exports,`In`,{enumerable:!0,get:function(){return Dc}}),Object.defineProperty(exports,`Io`,{enumerable:!0,get:function(){return ei}}),Object.defineProperty(exports,`Ir`,{enumerable:!0,get:function(){return fs}}),Object.defineProperty(exports,`It`,{enumerable:!0,get:function(){return Xl}}),Object.defineProperty(exports,`J`,{enumerable:!0,get:function(){return Gu}}),Object.defineProperty(exports,`Ja`,{enumerable:!0,get:function(){return Vi}}),Object.defineProperty(exports,`Ji`,{enumerable:!0,get:function(){return Ba}}),Object.defineProperty(exports,`Jn`,{enumerable:!0,get:function(){return gc}}),Object.defineProperty(exports,`Jo`,{enumerable:!0,get:function(){return Vr}}),Object.defineProperty(exports,`Jr`,{enumerable:!0,get:function(){return zo}}),Object.defineProperty(exports,`Jt`,{enumerable:!0,get:function(){return Ol}}),Object.defineProperty(exports,`K`,{enumerable:!0,get:function(){return qu}}),Object.defineProperty(exports,`Ka`,{enumerable:!0,get:function(){return Ui}}),Object.defineProperty(exports,`Ki`,{enumerable:!0,get:function(){return Ua}}),Object.defineProperty(exports,`Kn`,{enumerable:!0,get:function(){return yc}}),Object.defineProperty(exports,`Ko`,{enumerable:!0,get:function(){return Ur}}),Object.defineProperty(exports,`Kr`,{enumerable:!0,get:function(){return Uo}}),Object.defineProperty(exports,`Kt`,{enumerable:!0,get:function(){return Fl}}),Object.defineProperty(exports,`L`,{enumerable:!0,get:function(){return ad}}),Object.defineProperty(exports,`La`,{enumerable:!0,get:function(){return Yi}}),Object.defineProperty(exports,`Li`,{enumerable:!0,get:function(){return Xa}}),Object.defineProperty(exports,`Ln`,{enumerable:!0,get:function(){return Oc}}),Object.defineProperty(exports,`Lo`,{enumerable:!0,get:function(){return Qr}}),Object.defineProperty(exports,`Lr`,{enumerable:!0,get:function(){return os}}),Object.defineProperty(exports,`Lt`,{enumerable:!0,get:function(){return Yl}}),Object.defineProperty(exports,`M`,{enumerable:!0,get:function(){return ld}}),Object.defineProperty(exports,`Ma`,{enumerable:!0,get:function(){return va}}),Object.defineProperty(exports,`Mi`,{enumerable:!0,get:function(){return no}}),Object.defineProperty(exports,`Mn`,{enumerable:!0,get:function(){return Pc}}),Object.defineProperty(exports,`Mo`,{enumerable:!0,get:function(){return ii}}),Object.defineProperty(exports,`Mr`,{enumerable:!0,get:function(){return ss}}),Object.defineProperty(exports,`Ms`,{enumerable:!0,get:function(){return jn}}),Object.defineProperty(exports,`Mt`,{enumerable:!0,get:function(){return nu}}),Object.defineProperty(exports,`N`,{enumerable:!0,get:function(){return ud}}),Object.defineProperty(exports,`Na`,{enumerable:!0,get:function(){return oa}}),Object.defineProperty(exports,`Ni`,{enumerable:!0,get:function(){return io}}),Object.defineProperty(exports,`Nn`,{enumerable:!0,get:function(){return jc}}),Object.defineProperty(exports,`No`,{enumerable:!0,get:function(){return ni}}),Object.defineProperty(exports,`Nr`,{enumerable:!0,get:function(){return ds}}),Object.defineProperty(exports,`Ns`,{enumerable:!0,get:function(){return B}}),Object.defineProperty(exports,`Nt`,{enumerable:!0,get:function(){return tu}}),Object.defineProperty(exports,`O`,{enumerable:!0,get:function(){return md}}),Object.defineProperty(exports,`Oa`,{enumerable:!0,get:function(){return Ca}}),Object.defineProperty(exports,`Oi`,{enumerable:!0,get:function(){return oo}}),Object.defineProperty(exports,`On`,{enumerable:!0,get:function(){return zc}}),Object.defineProperty(exports,`Oo`,{enumerable:!0,get:function(){return li}}),Object.defineProperty(exports,`Or`,{enumerable:!0,get:function(){return vs}}),Object.defineProperty(exports,`Os`,{enumerable:!0,get:function(){return sr}}),Object.defineProperty(exports,`Ot`,{enumerable:!0,get:function(){return au}}),Object.defineProperty(exports,`P`,{enumerable:!0,get:function(){return cd}}),Object.defineProperty(exports,`Pa`,{enumerable:!0,get:function(){return Ji}}),Object.defineProperty(exports,`Pi`,{enumerable:!0,get:function(){return eo}}),Object.defineProperty(exports,`Pn`,{enumerable:!0,get:function(){return Ac}}),Object.defineProperty(exports,`Po`,{enumerable:!0,get:function(){return $r}}),Object.defineProperty(exports,`Pr`,{enumerable:!0,get:function(){return ls}}),Object.defineProperty(exports,`Ps`,{enumerable:!0,get:function(){return Re}}),Object.defineProperty(exports,`Pt`,{enumerable:!0,get:function(){return $l}}),Object.defineProperty(exports,`Q`,{enumerable:!0,get:function(){return Vu}}),Object.defineProperty(exports,`Qa`,{enumerable:!0,get:function(){return Ii}}),Object.defineProperty(exports,`Qi`,{enumerable:!0,get:function(){return Ra}}),Object.defineProperty(exports,`Qn`,{enumerable:!0,get:function(){return lc}}),Object.defineProperty(exports,`Qo`,{enumerable:!0,get:function(){return Rr}}),Object.defineProperty(exports,`Qr`,{enumerable:!0,get:function(){return Po}}),Object.defineProperty(exports,`Qt`,{enumerable:!0,get:function(){return wl}}),Object.defineProperty(exports,`R`,{enumerable:!0,get:function(){return id}}),Object.defineProperty(exports,`Ra`,{enumerable:!0,get:function(){return Zi}}),Object.defineProperty(exports,`Ri`,{enumerable:!0,get:function(){return Za}}),Object.defineProperty(exports,`Rn`,{enumerable:!0,get:function(){return Mc}}),Object.defineProperty(exports,`Ro`,{enumerable:!0,get:function(){return Xr}}),Object.defineProperty(exports,`Rr`,{enumerable:!0,get:function(){return rs}}),Object.defineProperty(exports,`Rt`,{enumerable:!0,get:function(){return Gl}}),Object.defineProperty(exports,`S`,{enumerable:!0,get:function(){return bd}}),Object.defineProperty(exports,`Sa`,{enumerable:!0,get:function(){return xa}}),Object.defineProperty(exports,`Si`,{enumerable:!0,get:function(){return bo}}),Object.defineProperty(exports,`Sn`,{enumerable:!0,get:function(){return qc}}),Object.defineProperty(exports,`So`,{enumerable:!0,get:function(){return pi}}),Object.defineProperty(exports,`Sr`,{enumerable:!0,get:function(){return ws}}),Object.defineProperty(exports,`Ss`,{enumerable:!0,get:function(){return mr}}),Object.defineProperty(exports,`St`,{enumerable:!0,get:function(){return mu}}),Object.defineProperty(exports,`T`,{enumerable:!0,get:function(){return _d}}),Object.defineProperty(exports,`Ta`,{enumerable:!0,get:function(){return wa}}),Object.defineProperty(exports,`Ti`,{enumerable:!0,get:function(){return lo}}),Object.defineProperty(exports,`Tn`,{enumerable:!0,get:function(){return Rc}}),Object.defineProperty(exports,`To`,{enumerable:!0,get:function(){return di}}),Object.defineProperty(exports,`Tr`,{enumerable:!0,get:function(){return xs}}),Object.defineProperty(exports,`Ts`,{enumerable:!0,get:function(){return U}}),Object.defineProperty(exports,`Tt`,{enumerable:!0,get:function(){return uu}}),Object.defineProperty(exports,`U`,{enumerable:!0,get:function(){return Zu}}),Object.defineProperty(exports,`Ua`,{enumerable:!0,get:function(){return Gi}}),Object.defineProperty(exports,`Ui`,{enumerable:!0,get:function(){return Wa}}),Object.defineProperty(exports,`Un`,{enumerable:!0,get:function(){return Sc}}),Object.defineProperty(exports,`Uo`,{enumerable:!0,get:function(){return Kr}}),Object.defineProperty(exports,`Ur`,{enumerable:!0,get:function(){return Yo}}),Object.defineProperty(exports,`Ut`,{enumerable:!0,get:function(){return Vl}}),Object.defineProperty(exports,`V`,{enumerable:!0,get:function(){return $u}}),Object.defineProperty(exports,`Va`,{enumerable:!0,get:function(){return Xi}}),Object.defineProperty(exports,`Vi`,{enumerable:!0,get:function(){return Ja}}),Object.defineProperty(exports,`Vn`,{enumerable:!0,get:function(){return wc}}),Object.defineProperty(exports,`Vo`,{enumerable:!0,get:function(){return Jr}}),Object.defineProperty(exports,`Vr`,{enumerable:!0,get:function(){return es}}),Object.defineProperty(exports,`Vt`,{enumerable:!0,get:function(){return Bl}}),Object.defineProperty(exports,`W`,{enumerable:!0,get:function(){return Yu}}),Object.defineProperty(exports,`Wa`,{enumerable:!0,get:function(){return qi}}),Object.defineProperty(exports,`Wi`,{enumerable:!0,get:function(){return Ga}}),Object.defineProperty(exports,`Wn`,{enumerable:!0,get:function(){return xc}}),Object.defineProperty(exports,`Wo`,{enumerable:!0,get:function(){return Wr}}),Object.defineProperty(exports,`Wr`,{enumerable:!0,get:function(){return qo}}),Object.defineProperty(exports,`Wt`,{enumerable:!0,get:function(){return Pl}}),Object.defineProperty(exports,`X`,{enumerable:!0,get:function(){return Wu}}),Object.defineProperty(exports,`Xa`,{enumerable:!0,get:function(){return Ri}}),Object.defineProperty(exports,`Xi`,{enumerable:!0,get:function(){return La}}),Object.defineProperty(exports,`Xn`,{enumerable:!0,get:function(){return mc}}),Object.defineProperty(exports,`Xo`,{enumerable:!0,get:function(){return zr}}),Object.defineProperty(exports,`Xr`,{enumerable:!0,get:function(){return Fo}}),Object.defineProperty(exports,`Xt`,{enumerable:!0,get:function(){return Tl}}),Object.defineProperty(exports,`Y`,{enumerable:!0,get:function(){return Uu}}),Object.defineProperty(exports,`Ya`,{enumerable:!0,get:function(){return Bi}}),Object.defineProperty(exports,`Yi`,{enumerable:!0,get:function(){return Va}}),Object.defineProperty(exports,`Yn`,{enumerable:!0,get:function(){return pc}}),Object.defineProperty(exports,`Yo`,{enumerable:!0,get:function(){return Hr}}),Object.defineProperty(exports,`Yr`,{enumerable:!0,get:function(){return Lo}}),Object.defineProperty(exports,`Yt`,{enumerable:!0,get:function(){return Dl}}),Object.defineProperty(exports,`Z`,{enumerable:!0,get:function(){return Hu}}),Object.defineProperty(exports,`Za`,{enumerable:!0,get:function(){return zi}}),Object.defineProperty(exports,`Zi`,{enumerable:!0,get:function(){return Ia}}),Object.defineProperty(exports,`Zn`,{enumerable:!0,get:function(){return dc}}),Object.defineProperty(exports,`Zo`,{enumerable:!0,get:function(){return Lr}}),Object.defineProperty(exports,`Zr`,{enumerable:!0,get:function(){return No}}),Object.defineProperty(exports,`Zt`,{enumerable:!0,get:function(){return Sl}}),Object.defineProperty(exports,`_`,{enumerable:!0,get:function(){return kd}}),Object.defineProperty(exports,`_a`,{enumerable:!0,get:function(){return na}}),Object.defineProperty(exports,`_i`,{enumerable:!0,get:function(){return xo}}),Object.defineProperty(exports,`_n`,{enumerable:!0,get:function(){return nl}}),Object.defineProperty(exports,`_o`,{enumerable:!0,get:function(){return vi}}),Object.defineProperty(exports,`_r`,{enumerable:!0,get:function(){return Ms}}),Object.defineProperty(exports,`_s`,{enumerable:!0,get:function(){return vr}}),Object.defineProperty(exports,`_t`,{enumerable:!0,get:function(){return yu}}),Object.defineProperty(exports,`a`,{enumerable:!0,get:function(){return Ld}}),Object.defineProperty(exports,`aa`,{enumerable:!0,get:function(){return Oa}}),Object.defineProperty(exports,`ai`,{enumerable:!0,get:function(){return J}}),Object.defineProperty(exports,`an`,{enumerable:!0,get:function(){return _l}}),Object.defineProperty(exports,`ao`,{enumerable:!0,get:function(){return Ei}}),Object.defineProperty(exports,`ar`,{enumerable:!0,get:function(){return $s}}),Object.defineProperty(exports,`as`,{enumerable:!0,get:function(){return Ar}}),Object.defineProperty(exports,`at`,{enumerable:!0,get:function(){return Iu}}),Object.defineProperty(exports,`b`,{enumerable:!0,get:function(){return Sd}}),Object.defineProperty(exports,`ba`,{enumerable:!0,get:function(){return da}}),Object.defineProperty(exports,`bi`,{enumerable:!0,get:function(){return _o}}),Object.defineProperty(exports,`bn`,{enumerable:!0,get:function(){return Qc}}),Object.defineProperty(exports,`bo`,{enumerable:!0,get:function(){return _i}}),Object.defineProperty(exports,`br`,{enumerable:!0,get:function(){return Ds}}),Object.defineProperty(exports,`bs`,{enumerable:!0,get:function(){return fr}}),Object.defineProperty(exports,`bt`,{enumerable:!0,get:function(){return vu}}),Object.defineProperty(exports,`c`,{enumerable:!0,get:function(){return Bd}}),Object.defineProperty(exports,`ca`,{enumerable:!0,get:function(){return Da}}),Object.defineProperty(exports,`ci`,{enumerable:!0,get:function(){return Eo}}),Object.defineProperty(exports,`cn`,{enumerable:!0,get:function(){return fl}}),Object.defineProperty(exports,`co`,{enumerable:!0,get:function(){return xi}}),Object.defineProperty(exports,`cr`,{enumerable:!0,get:function(){return Js}}),Object.defineProperty(exports,`cs`,{enumerable:!0,get:function(){return Er}}),Object.defineProperty(exports,`ct`,{enumerable:!0,get:function(){return ju}}),Object.defineProperty(exports,`d`,{enumerable:!0,get:function(){return Ud}}),Object.defineProperty(exports,`da`,{enumerable:!0,get:function(){return Ta}}),Object.defineProperty(exports,`di`,{enumerable:!0,get:function(){return Co}}),Object.defineProperty(exports,`dn`,{enumerable:!0,get:function(){return ll}}),Object.defineProperty(exports,`do`,{enumerable:!0,get:function(){return Si}}),Object.defineProperty(exports,`dr`,{enumerable:!0,get:function(){return Hs}}),Object.defineProperty(exports,`ds`,{enumerable:!0,get:function(){return Dr}}),Object.defineProperty(exports,`dt`,{enumerable:!0,get:function(){return Tu}}),Object.defineProperty(exports,`ea`,{enumerable:!0,get:function(){return Fa}}),Object.defineProperty(exports,`ei`,{enumerable:!0,get:function(){return jo}}),Object.defineProperty(exports,`en`,{enumerable:!0,get:function(){return yl}}),Object.defineProperty(exports,`eo`,{enumerable:!0,get:function(){return Li}}),Object.defineProperty(exports,`er`,{enumerable:!0,get:function(){return oc}}),Object.defineProperty(exports,`es`,{enumerable:!0,get:function(){return Nr}}),Object.defineProperty(exports,`et`,{enumerable:!0,get:function(){return Ru}}),Object.defineProperty(exports,`f`,{enumerable:!0,get:function(){return Ed}}),Object.defineProperty(exports,`fa`,{enumerable:!0,get:function(){return fa}}),Object.defineProperty(exports,`fi`,{enumerable:!0,get:function(){return So}}),Object.defineProperty(exports,`fn`,{enumerable:!0,get:function(){return sl}}),Object.defineProperty(exports,`fo`,{enumerable:!0,get:function(){return Ti}}),Object.defineProperty(exports,`fr`,{enumerable:!0,get:function(){return Q}}),Object.defineProperty(exports,`fs`,{enumerable:!0,get:function(){return Cr}}),Object.defineProperty(exports,`ft`,{enumerable:!0,get:function(){return Du}}),Object.defineProperty(exports,`g`,{enumerable:!0,get:function(){return Md}}),Object.defineProperty(exports,`ga`,{enumerable:!0,get:function(){return ha}}),Object.defineProperty(exports,`gi`,{enumerable:!0,get:function(){return yo}}),Object.defineProperty(exports,`gn`,{enumerable:!0,get:function(){return tl}}),Object.defineProperty(exports,`go`,{enumerable:!0,get:function(){return yi}}),Object.defineProperty(exports,`gr`,{enumerable:!0,get:function(){return Ps}}),Object.defineProperty(exports,`gs`,{enumerable:!0,get:function(){return Sr}}),Object.defineProperty(exports,`gt`,{enumerable:!0,get:function(){return Cu}}),Object.defineProperty(exports,`h`,{enumerable:!0,get:function(){return Nd}}),Object.defineProperty(exports,`ha`,{enumerable:!0,get:function(){return sa}}),Object.defineProperty(exports,`hi`,{enumerable:!0,get:function(){return vo}}),Object.defineProperty(exports,`hn`,{enumerable:!0,get:function(){return rl}}),Object.defineProperty(exports,`ho`,{enumerable:!0,get:function(){return bi}}),Object.defineProperty(exports,`hr`,{enumerable:!0,get:function(){return Is}}),Object.defineProperty(exports,`hs`,{enumerable:!0,get:function(){return br}}),Object.defineProperty(exports,`ht`,{enumerable:!0,get:function(){return wu}}),Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return $}}),Object.defineProperty(exports,`ia`,{enumerable:!0,get:function(){return Ma}}),Object.defineProperty(exports,`ii`,{enumerable:!0,get:function(){return Oo}}),Object.defineProperty(exports,`in`,{enumerable:!0,get:function(){return vl}}),Object.defineProperty(exports,`io`,{enumerable:!0,get:function(){return Ni}}),Object.defineProperty(exports,`ir`,{enumerable:!0,get:function(){return rc}}),Object.defineProperty(exports,`is`,{enumerable:!0,get:function(){return kr}}),Object.defineProperty(exports,`it`,{enumerable:!0,get:function(){return Pu}}),Object.defineProperty(exports,`j`,{enumerable:!0,get:function(){return dd}}),Object.defineProperty(exports,`ja`,{enumerable:!0,get:function(){return aa}}),Object.defineProperty(exports,`ji`,{enumerable:!0,get:function(){return ro}}),Object.defineProperty(exports,`jn`,{enumerable:!0,get:function(){return Nc}}),Object.defineProperty(exports,`jo`,{enumerable:!0,get:function(){return ri}}),Object.defineProperty(exports,`jr`,{enumerable:!0,get:function(){return us}}),Object.defineProperty(exports,`js`,{enumerable:!0,get:function(){return V}}),Object.defineProperty(exports,`jt`,{enumerable:!0,get:function(){return eu}}),Object.defineProperty(exports,`k`,{enumerable:!0,get:function(){return pd}}),Object.defineProperty(exports,`ka`,{enumerable:!0,get:function(){return ma}}),Object.defineProperty(exports,`ki`,{enumerable:!0,get:function(){return ao}}),Object.defineProperty(exports,`kn`,{enumerable:!0,get:function(){return Vc}}),Object.defineProperty(exports,`ko`,{enumerable:!0,get:function(){return ai}}),Object.defineProperty(exports,`kr`,{enumerable:!0,get:function(){return gs}}),Object.defineProperty(exports,`ks`,{enumerable:!0,get:function(){return er}}),Object.defineProperty(exports,`kt`,{enumerable:!0,get:function(){return ou}}),Object.defineProperty(exports,`l`,{enumerable:!0,get:function(){return zd}}),Object.defineProperty(exports,`la`,{enumerable:!0,get:function(){return ra}}),Object.defineProperty(exports,`li`,{enumerable:!0,get:function(){return wo}}),Object.defineProperty(exports,`ln`,{enumerable:!0,get:function(){return cl}}),Object.defineProperty(exports,`lo`,{enumerable:!0,get:function(){return wi}}),Object.defineProperty(exports,`lr`,{enumerable:!0,get:function(){return Ks}}),Object.defineProperty(exports,`ls`,{enumerable:!0,get:function(){return wr}}),Object.defineProperty(exports,`lt`,{enumerable:!0,get:function(){return Au}}),Object.defineProperty(exports,`m`,{enumerable:!0,get:function(){return 36e5}}),Object.defineProperty(exports,`ma`,{enumerable:!0,get:function(){return ia}}),Object.defineProperty(exports,`mi`,{enumerable:!0,get:function(){return mo}}),Object.defineProperty(exports,`mn`,{enumerable:!0,get:function(){return il}}),Object.defineProperty(exports,`mo`,{enumerable:!0,get:function(){return Di}}),Object.defineProperty(exports,`mr`,{enumerable:!0,get:function(){return Vs}}),Object.defineProperty(exports,`ms`,{enumerable:!0,get:function(){return xr}}),Object.defineProperty(exports,`mt`,{enumerable:!0,get:function(){return Su}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return qd}}),Object.defineProperty(exports,`na`,{enumerable:!0,get:function(){return Pa}}),Object.defineProperty(exports,`ni`,{enumerable:!0,get:function(){return Ao}}),Object.defineProperty(exports,`nn`,{enumerable:!0,get:function(){return bl}}),Object.defineProperty(exports,`no`,{enumerable:!0,get:function(){return Pi}}),Object.defineProperty(exports,`nr`,{enumerable:!0,get:function(){return ic}}),Object.defineProperty(exports,`ns`,{enumerable:!0,get:function(){return Fr}}),Object.defineProperty(exports,`nt`,{enumerable:!0,get:function(){return Bu}}),Object.defineProperty(exports,`o`,{enumerable:!0,get:function(){return Rd}}),Object.defineProperty(exports,`oa`,{enumerable:!0,get:function(){return ka}}),Object.defineProperty(exports,`oi`,{enumerable:!0,get:function(){return Do}}),Object.defineProperty(exports,`on`,{enumerable:!0,get:function(){return dl}}),Object.defineProperty(exports,`oo`,{enumerable:!0,get:function(){return Ai}}),Object.defineProperty(exports,`or`,{enumerable:!0,get:function(){return ec}}),Object.defineProperty(exports,`os`,{enumerable:!0,get:function(){return Mr}}),Object.defineProperty(exports,`ot`,{enumerable:!0,get:function(){return Fu}}),Object.defineProperty(exports,`p`,{enumerable:!0,get:function(){return 3e5}}),Object.defineProperty(exports,`pa`,{enumerable:!0,get:function(){return Ea}}),Object.defineProperty(exports,`pi`,{enumerable:!0,get:function(){return ho}}),Object.defineProperty(exports,`pn`,{enumerable:!0,get:function(){return al}}),Object.defineProperty(exports,`po`,{enumerable:!0,get:function(){return ki}}),Object.defineProperty(exports,`pr`,{enumerable:!0,get:function(){return Bs}}),Object.defineProperty(exports,`ps`,{enumerable:!0,get:function(){return yr}}),Object.defineProperty(exports,`pt`,{enumerable:!0,get:function(){return Eu}}),Object.defineProperty(exports,`q`,{enumerable:!0,get:function(){return Ku}}),Object.defineProperty(exports,`qa`,{enumerable:!0,get:function(){return Hi}}),Object.defineProperty(exports,`qi`,{enumerable:!0,get:function(){return Ha}}),Object.defineProperty(exports,`qn`,{enumerable:!0,get:function(){return _c}}),Object.defineProperty(exports,`qo`,{enumerable:!0,get:function(){return Br}}),Object.defineProperty(exports,`qr`,{enumerable:!0,get:function(){return Vo}}),Object.defineProperty(exports,`qt`,{enumerable:!0,get:function(){return El}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return Jd}}),Object.defineProperty(exports,`ra`,{enumerable:!0,get:function(){return ja}}),Object.defineProperty(exports,`ri`,{enumerable:!0,get:function(){return ko}}),Object.defineProperty(exports,`rn`,{enumerable:!0,get:function(){return gl}}),Object.defineProperty(exports,`ro`,{enumerable:!0,get:function(){return ji}}),Object.defineProperty(exports,`rr`,{enumerable:!0,get:function(){return nc}}),Object.defineProperty(exports,`rs`,{enumerable:!0,get:function(){return jr}}),Object.defineProperty(exports,`rt`,{enumerable:!0,get:function(){return Nu}}),Object.defineProperty(exports,`s`,{enumerable:!0,get:function(){return Id}}),Object.defineProperty(exports,`sa`,{enumerable:!0,get:function(){return Aa}}),Object.defineProperty(exports,`si`,{enumerable:!0,get:function(){return To}}),Object.defineProperty(exports,`sn`,{enumerable:!0,get:function(){return hl}}),Object.defineProperty(exports,`so`,{enumerable:!0,get:function(){return Oi}}),Object.defineProperty(exports,`sr`,{enumerable:!0,get:function(){return Xs}}),Object.defineProperty(exports,`ss`,{enumerable:!0,get:function(){return Or}}),Object.defineProperty(exports,`st`,{enumerable:!0,get:function(){return Mu}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return of}}),Object.defineProperty(exports,`ta`,{enumerable:!0,get:function(){return Na}}),Object.defineProperty(exports,`ti`,{enumerable:!0,get:function(){return Y}}),Object.defineProperty(exports,`tn`,{enumerable:!0,get:function(){return xl}}),Object.defineProperty(exports,`to`,{enumerable:!0,get:function(){return Mi}}),Object.defineProperty(exports,`tr`,{enumerable:!0,get:function(){return ac}}),Object.defineProperty(exports,`ts`,{enumerable:!0,get:function(){return Ir}}),Object.defineProperty(exports,`tt`,{enumerable:!0,get:function(){return zu}}),Object.defineProperty(exports,`u`,{enumerable:!0,get:function(){return Fd}}),Object.defineProperty(exports,`ua`,{enumerable:!0,get:function(){return ca}}),Object.defineProperty(exports,`ui`,{enumerable:!0,get:function(){return q}}),Object.defineProperty(exports,`un`,{enumerable:!0,get:function(){return ul}}),Object.defineProperty(exports,`uo`,{enumerable:!0,get:function(){return Ci}}),Object.defineProperty(exports,`ur`,{enumerable:!0,get:function(){return Us}}),Object.defineProperty(exports,`us`,{enumerable:!0,get:function(){return Tr}}),Object.defineProperty(exports,`ut`,{enumerable:!0,get:function(){return ku}}),Object.defineProperty(exports,`v`,{enumerable:!0,get:function(){return jd}}),Object.defineProperty(exports,`va`,{enumerable:!0,get:function(){return ua}}),Object.defineProperty(exports,`vi`,{enumerable:!0,get:function(){return K}}),Object.defineProperty(exports,`vn`,{enumerable:!0,get:function(){return el}}),Object.defineProperty(exports,`vo`,{enumerable:!0,get:function(){return gi}}),Object.defineProperty(exports,`vr`,{enumerable:!0,get:function(){return js}}),Object.defineProperty(exports,`vs`,{enumerable:!0,get:function(){return _r}}),Object.defineProperty(exports,`vt`,{enumerable:!0,get:function(){return xu}}),Object.defineProperty(exports,`w`,{enumerable:!0,get:function(){return vd}}),Object.defineProperty(exports,`wa`,{enumerable:!0,get:function(){return ya}}),Object.defineProperty(exports,`wi`,{enumerable:!0,get:function(){return fo}}),Object.defineProperty(exports,`wn`,{enumerable:!0,get:function(){return Wc}}),Object.defineProperty(exports,`wo`,{enumerable:!0,get:function(){return ui}}),Object.defineProperty(exports,`wr`,{enumerable:!0,get:function(){return Ss}}),Object.defineProperty(exports,`ws`,{enumerable:!0,get:function(){return gr}}),Object.defineProperty(exports,`wt`,{enumerable:!0,get:function(){return du}}),Object.defineProperty(exports,`x`,{enumerable:!0,get:function(){return xd}}),Object.defineProperty(exports,`xa`,{enumerable:!0,get:function(){return Sa}}),Object.defineProperty(exports,`xi`,{enumerable:!0,get:function(){return G}}),Object.defineProperty(exports,`xn`,{enumerable:!0,get:function(){return Kc}}),Object.defineProperty(exports,`xo`,{enumerable:!0,get:function(){return fi}}),Object.defineProperty(exports,`xr`,{enumerable:!0,get:function(){return Ts}}),Object.defineProperty(exports,`xs`,{enumerable:!0,get:function(){return pr}}),Object.defineProperty(exports,`xt`,{enumerable:!0,get:function(){return hu}}),Object.defineProperty(exports,`y`,{enumerable:!0,get:function(){return Ad}}),Object.defineProperty(exports,`ya`,{enumerable:!0,get:function(){return la}}),Object.defineProperty(exports,`yi`,{enumerable:!0,get:function(){return go}}),Object.defineProperty(exports,`yn`,{enumerable:!0,get:function(){return Zc}}),Object.defineProperty(exports,`yo`,{enumerable:!0,get:function(){return hi}}),Object.defineProperty(exports,`yr`,{enumerable:!0,get:function(){return ks}}),Object.defineProperty(exports,`ys`,{enumerable:!0,get:function(){return dr}}),Object.defineProperty(exports,`yt`,{enumerable:!0,get:function(){return bu}}),Object.defineProperty(exports,`z`,{enumerable:!0,get:function(){return rd}}),Object.defineProperty(exports,`za`,{enumerable:!0,get:function(){return ta}}),Object.defineProperty(exports,`zi`,{enumerable:!0,get:function(){return Qa}}),Object.defineProperty(exports,`zn`,{enumerable:!0,get:function(){return Tc}}),Object.defineProperty(exports,`zo`,{enumerable:!0,get:function(){return Zr}}),Object.defineProperty(exports,`zr`,{enumerable:!0,get:function(){return ns}}),Object.defineProperty(exports,`zt`,{enumerable:!0,get:function(){return ql}});
2994
- //# sourceMappingURL=syncConfigurationToTranscend-D4PLA70C.cjs.map