@transcend-io/cli 8.38.1 → 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (278) hide show
  1. package/dist/api-keys-C7JLTDUZ.mjs +2 -0
  2. package/dist/api-keys-C7JLTDUZ.mjs.map +1 -0
  3. package/dist/app-Dti3qTxV.mjs +131 -0
  4. package/dist/app-Dti3qTxV.mjs.map +1 -0
  5. package/dist/bin/bash-complete.mjs +3 -0
  6. package/dist/bin/bash-complete.mjs.map +1 -0
  7. package/dist/bin/cli.mjs +3 -0
  8. package/dist/bin/cli.mjs.map +1 -0
  9. package/dist/bin/deprecated-command.mjs +5 -0
  10. package/dist/bin/deprecated-command.mjs.map +1 -0
  11. package/dist/buildAIIntegrationType-Bk0EbFKV.mjs +2 -0
  12. package/dist/buildAIIntegrationType-Bk0EbFKV.mjs.map +1 -0
  13. package/dist/code-scanning-3tLsE1W5.mjs +4 -0
  14. package/dist/code-scanning-3tLsE1W5.mjs.map +1 -0
  15. package/dist/codecs-TR6p48v3.mjs +2 -0
  16. package/dist/codecs-TR6p48v3.mjs.map +1 -0
  17. package/dist/command-BlHM1nCd.mjs +9 -0
  18. package/dist/command-BlHM1nCd.mjs.map +1 -0
  19. package/dist/consent-manager-BoaaMjRQ.mjs +12 -0
  20. package/dist/consent-manager-BoaaMjRQ.mjs.map +1 -0
  21. package/dist/constants-DdeeX81W.mjs +2 -0
  22. package/dist/constants-DdeeX81W.mjs.map +1 -0
  23. package/dist/context-bkKpii_t.mjs +2 -0
  24. package/dist/{context-_8xfl0dt.cjs.map → context-bkKpii_t.mjs.map} +1 -1
  25. package/dist/cron-DOicA1l8.mjs +2 -0
  26. package/dist/cron-DOicA1l8.mjs.map +1 -0
  27. package/dist/data-inventory-OeEcogPl.mjs +75 -0
  28. package/dist/data-inventory-OeEcogPl.mjs.map +1 -0
  29. package/dist/dataFlowsToDataSilos-RAhfPV0l.mjs +2 -0
  30. package/dist/dataFlowsToDataSilos-RAhfPV0l.mjs.map +1 -0
  31. package/dist/done-input-validation-CcZtaz03.mjs +2 -0
  32. package/dist/{done-input-validation-DGckEJ5a.cjs.map → done-input-validation-CcZtaz03.mjs.map} +1 -1
  33. package/dist/enums-CyFTrzXY.mjs +2 -0
  34. package/dist/{enums-BZulhPFa.cjs.map → enums-CyFTrzXY.mjs.map} +1 -1
  35. package/dist/impl--Ov8Om49.mjs +2 -0
  36. package/dist/impl--Ov8Om49.mjs.map +1 -0
  37. package/dist/impl-4BP7gY61.mjs +2 -0
  38. package/dist/impl-4BP7gY61.mjs.map +1 -0
  39. package/dist/impl-B0d5M861.mjs +2 -0
  40. package/dist/impl-B0d5M861.mjs.map +1 -0
  41. package/dist/impl-B40z0Aoz2.mjs +2 -0
  42. package/dist/impl-B40z0Aoz2.mjs.map +1 -0
  43. package/dist/impl-B8CoAX4t.mjs +2 -0
  44. package/dist/impl-B8CoAX4t.mjs.map +1 -0
  45. package/dist/impl-BDKBhSiG2.mjs +2 -0
  46. package/dist/impl-BDKBhSiG2.mjs.map +1 -0
  47. package/dist/impl-BEzyqD_12.mjs +2 -0
  48. package/dist/impl-BEzyqD_12.mjs.map +1 -0
  49. package/dist/impl-BI4zCNs0.mjs +2 -0
  50. package/dist/impl-BI4zCNs0.mjs.map +1 -0
  51. package/dist/impl-BJ9Ge6Wf2.mjs +2 -0
  52. package/dist/impl-BJ9Ge6Wf2.mjs.map +1 -0
  53. package/dist/impl-BPz3SpXo2.mjs +2 -0
  54. package/dist/impl-BPz3SpXo2.mjs.map +1 -0
  55. package/dist/impl-BYBNi68b.mjs +5 -0
  56. package/dist/impl-BYBNi68b.mjs.map +1 -0
  57. package/dist/impl-Bh04BLeU2.mjs +2 -0
  58. package/dist/impl-Bh04BLeU2.mjs.map +1 -0
  59. package/dist/impl-BhMd6_J22.mjs +2 -0
  60. package/dist/impl-BhMd6_J22.mjs.map +1 -0
  61. package/dist/impl-BiWrlucD.mjs +2 -0
  62. package/dist/impl-BiWrlucD.mjs.map +1 -0
  63. package/dist/impl-BpMKYqSR.mjs +2 -0
  64. package/dist/{impl-B8rg6CMv.cjs.map → impl-BpMKYqSR.mjs.map} +1 -1
  65. package/dist/impl-BraVBCrF2.mjs +4 -0
  66. package/dist/impl-BraVBCrF2.mjs.map +1 -0
  67. package/dist/impl-BvTvjK72.mjs +2 -0
  68. package/dist/impl-BvTvjK72.mjs.map +1 -0
  69. package/dist/impl-BvZai1Pf2.mjs +2 -0
  70. package/dist/impl-BvZai1Pf2.mjs.map +1 -0
  71. package/dist/impl-C73Uh2Ze.mjs +2 -0
  72. package/dist/impl-C73Uh2Ze.mjs.map +1 -0
  73. package/dist/impl-CIJ6P1GD.mjs +3 -0
  74. package/dist/impl-CIJ6P1GD.mjs.map +1 -0
  75. package/dist/impl-CNiEzL3_2.mjs +2 -0
  76. package/dist/impl-CNiEzL3_2.mjs.map +1 -0
  77. package/dist/impl-CTPHR7O62.mjs +2 -0
  78. package/dist/impl-CTPHR7O62.mjs.map +1 -0
  79. package/dist/impl-CU29SrJb2.mjs +2 -0
  80. package/dist/impl-CU29SrJb2.mjs.map +1 -0
  81. package/dist/impl-CaTnsoDi.mjs +2 -0
  82. package/dist/{impl-BIjDq-3S.cjs.map → impl-CaTnsoDi.mjs.map} +1 -1
  83. package/dist/impl-CiQeM677.mjs +2 -0
  84. package/dist/impl-CiQeM677.mjs.map +1 -0
  85. package/dist/impl-CkY0wfCz.mjs +2 -0
  86. package/dist/impl-CkY0wfCz.mjs.map +1 -0
  87. package/dist/impl-CoZhgLjC.mjs +12 -0
  88. package/dist/impl-CoZhgLjC.mjs.map +1 -0
  89. package/dist/impl-CvxsioT4.mjs +2 -0
  90. package/dist/impl-CvxsioT4.mjs.map +1 -0
  91. package/dist/impl-D2HalFgB2.mjs +2 -0
  92. package/dist/impl-D2HalFgB2.mjs.map +1 -0
  93. package/dist/impl-DFNq8PBe.mjs +2 -0
  94. package/dist/impl-DFNq8PBe.mjs.map +1 -0
  95. package/dist/impl-DOgLpdLw.mjs +2 -0
  96. package/dist/impl-DOgLpdLw.mjs.map +1 -0
  97. package/dist/impl-DP757pBT.mjs +2 -0
  98. package/dist/impl-DP757pBT.mjs.map +1 -0
  99. package/dist/impl-DVDN007x.mjs +2 -0
  100. package/dist/impl-DVDN007x.mjs.map +1 -0
  101. package/dist/impl-DfKI4fmI.mjs +2 -0
  102. package/dist/impl-DfKI4fmI.mjs.map +1 -0
  103. package/dist/impl-DgsWGnhH.mjs +2 -0
  104. package/dist/impl-DgsWGnhH.mjs.map +1 -0
  105. package/dist/impl-DzSmriDw.mjs +2 -0
  106. package/dist/impl-DzSmriDw.mjs.map +1 -0
  107. package/dist/impl-EhTHDCC1.mjs +2 -0
  108. package/dist/{impl-JgMjiEBD.cjs.map → impl-EhTHDCC1.mjs.map} +1 -1
  109. package/dist/impl-J-dQqTZJ2.mjs +2 -0
  110. package/dist/impl-J-dQqTZJ2.mjs.map +1 -0
  111. package/dist/impl-SxwaNC4m2.mjs +2 -0
  112. package/dist/impl-SxwaNC4m2.mjs.map +1 -0
  113. package/dist/impl-fESuqAH1.mjs +2 -0
  114. package/dist/{impl-ChHjX-p0.cjs.map → impl-fESuqAH1.mjs.map} +1 -1
  115. package/dist/impl-gYrR3kIh.mjs +4 -0
  116. package/dist/impl-gYrR3kIh.mjs.map +1 -0
  117. package/dist/impl-iwjvzA7a.mjs +2 -0
  118. package/dist/impl-iwjvzA7a.mjs.map +1 -0
  119. package/dist/impl-nKY3m-Vx.mjs +2 -0
  120. package/dist/impl-nKY3m-Vx.mjs.map +1 -0
  121. package/dist/impl-qiK6VF4F2.mjs +2 -0
  122. package/dist/impl-qiK6VF4F2.mjs.map +1 -0
  123. package/dist/{index.d.cts → index.d.mts} +1760 -3516
  124. package/dist/index.mjs +5 -0
  125. package/dist/index.mjs.map +1 -0
  126. package/dist/logger-Bj782ZYD.mjs +2 -0
  127. package/dist/logger-Bj782ZYD.mjs.map +1 -0
  128. package/dist/manual-enrichment-CYoZNBjO.mjs +2 -0
  129. package/dist/manual-enrichment-CYoZNBjO.mjs.map +1 -0
  130. package/dist/mergeTranscendInputs-Coj_e2N3.mjs +2 -0
  131. package/dist/{mergeTranscendInputs-BIBCYbug.cjs.map → mergeTranscendInputs-Coj_e2N3.mjs.map} +1 -1
  132. package/dist/pooling-BkZAO1Zs.mjs +23 -0
  133. package/dist/pooling-BkZAO1Zs.mjs.map +1 -0
  134. package/dist/preference-management-BHj26bmE.mjs +7 -0
  135. package/dist/preference-management-BHj26bmE.mjs.map +1 -0
  136. package/dist/readTranscendYaml-DhKG1ViI.mjs +4 -0
  137. package/dist/readTranscendYaml-DhKG1ViI.mjs.map +1 -0
  138. package/dist/syncConfigurationToTranscend-wWSbGVrI.mjs +3010 -0
  139. package/dist/syncConfigurationToTranscend-wWSbGVrI.mjs.map +1 -0
  140. package/dist/uploadConsents-nsjKy1I4.mjs +2 -0
  141. package/dist/uploadConsents-nsjKy1I4.mjs.map +1 -0
  142. package/package.json +46 -49
  143. package/dist/api-keys-y8Txn6tT.cjs +0 -2
  144. package/dist/api-keys-y8Txn6tT.cjs.map +0 -1
  145. package/dist/app-_ZoYl64o.cjs +0 -131
  146. package/dist/app-_ZoYl64o.cjs.map +0 -1
  147. package/dist/bin/bash-complete.cjs +0 -3
  148. package/dist/bin/bash-complete.cjs.map +0 -1
  149. package/dist/bin/cli.cjs +0 -3
  150. package/dist/bin/cli.cjs.map +0 -1
  151. package/dist/bin/deprecated-command.cjs +0 -5
  152. package/dist/bin/deprecated-command.cjs.map +0 -1
  153. package/dist/buildAIIntegrationType-BwuCYR-o.cjs +0 -2
  154. package/dist/buildAIIntegrationType-BwuCYR-o.cjs.map +0 -1
  155. package/dist/chunk-Bmb41Sf3.cjs +0 -1
  156. package/dist/code-scanning-ByZQgqip.cjs +0 -4
  157. package/dist/code-scanning-ByZQgqip.cjs.map +0 -1
  158. package/dist/codecs-Bvmb8o9R.cjs +0 -2
  159. package/dist/codecs-Bvmb8o9R.cjs.map +0 -1
  160. package/dist/command-CLULRNcd.cjs +0 -9
  161. package/dist/command-CLULRNcd.cjs.map +0 -1
  162. package/dist/consent-manager-CJZ5GTmv.cjs +0 -12
  163. package/dist/consent-manager-CJZ5GTmv.cjs.map +0 -1
  164. package/dist/constants-CzmvL6Mw.cjs +0 -2
  165. package/dist/constants-CzmvL6Mw.cjs.map +0 -1
  166. package/dist/context-_8xfl0dt.cjs +0 -2
  167. package/dist/cron-Ts7kHP6_.cjs +0 -2
  168. package/dist/cron-Ts7kHP6_.cjs.map +0 -1
  169. package/dist/data-inventory-D0Tt_vAm.cjs +0 -75
  170. package/dist/data-inventory-D0Tt_vAm.cjs.map +0 -1
  171. package/dist/dataFlowsToDataSilos-B7nTxawV.cjs +0 -2
  172. package/dist/dataFlowsToDataSilos-B7nTxawV.cjs.map +0 -1
  173. package/dist/done-input-validation-DGckEJ5a.cjs +0 -2
  174. package/dist/enums-BZulhPFa.cjs +0 -2
  175. package/dist/impl-1qwMfsU4.cjs +0 -2
  176. package/dist/impl-1qwMfsU4.cjs.map +0 -1
  177. package/dist/impl-73q3K0b_.cjs +0 -2
  178. package/dist/impl-73q3K0b_.cjs.map +0 -1
  179. package/dist/impl-8HXqFDdD.cjs +0 -2
  180. package/dist/impl-8HXqFDdD.cjs.map +0 -1
  181. package/dist/impl-AZPWCkCp.cjs +0 -2
  182. package/dist/impl-AZPWCkCp.cjs.map +0 -1
  183. package/dist/impl-B61wd2KQ.cjs +0 -2
  184. package/dist/impl-B61wd2KQ.cjs.map +0 -1
  185. package/dist/impl-B8rg6CMv.cjs +0 -2
  186. package/dist/impl-BIjDq-3S.cjs +0 -2
  187. package/dist/impl-BPxZw3LN.cjs +0 -2
  188. package/dist/impl-BPxZw3LN.cjs.map +0 -1
  189. package/dist/impl-BczOEWXK.cjs +0 -2
  190. package/dist/impl-BczOEWXK.cjs.map +0 -1
  191. package/dist/impl-BeUsmMIp.cjs +0 -2
  192. package/dist/impl-BeUsmMIp.cjs.map +0 -1
  193. package/dist/impl-Bhv353rp.cjs +0 -2
  194. package/dist/impl-Bhv353rp.cjs.map +0 -1
  195. package/dist/impl-BiPKUZQ2.cjs +0 -2
  196. package/dist/impl-BiPKUZQ2.cjs.map +0 -1
  197. package/dist/impl-BvrbCovf.cjs +0 -12
  198. package/dist/impl-BvrbCovf.cjs.map +0 -1
  199. package/dist/impl-BxKSXO7j.cjs +0 -2
  200. package/dist/impl-BxKSXO7j.cjs.map +0 -1
  201. package/dist/impl-ByavdlGX.cjs +0 -2
  202. package/dist/impl-ByavdlGX.cjs.map +0 -1
  203. package/dist/impl-C6Vv_fyU.cjs +0 -2
  204. package/dist/impl-C6Vv_fyU.cjs.map +0 -1
  205. package/dist/impl-CGSBsFc7.cjs +0 -2
  206. package/dist/impl-CGSBsFc7.cjs.map +0 -1
  207. package/dist/impl-ChHjX-p0.cjs +0 -2
  208. package/dist/impl-ChqwjO34.cjs +0 -2
  209. package/dist/impl-ChqwjO34.cjs.map +0 -1
  210. package/dist/impl-CrieEyzk.cjs +0 -2
  211. package/dist/impl-CrieEyzk.cjs.map +0 -1
  212. package/dist/impl-Cru4riTc.cjs +0 -5
  213. package/dist/impl-Cru4riTc.cjs.map +0 -1
  214. package/dist/impl-CujcX7vE.cjs +0 -2
  215. package/dist/impl-CujcX7vE.cjs.map +0 -1
  216. package/dist/impl-D9OOb2JE.cjs +0 -2
  217. package/dist/impl-D9OOb2JE.cjs.map +0 -1
  218. package/dist/impl-DCKUxoWY.cjs +0 -2
  219. package/dist/impl-DCKUxoWY.cjs.map +0 -1
  220. package/dist/impl-DG_MFWMU.cjs +0 -2
  221. package/dist/impl-DG_MFWMU.cjs.map +0 -1
  222. package/dist/impl-DHIiB7cV.cjs +0 -2
  223. package/dist/impl-DHIiB7cV.cjs.map +0 -1
  224. package/dist/impl-DYHQz-Wu.cjs +0 -2
  225. package/dist/impl-DYHQz-Wu.cjs.map +0 -1
  226. package/dist/impl-D_4LdDL9.cjs +0 -2
  227. package/dist/impl-D_4LdDL9.cjs.map +0 -1
  228. package/dist/impl-D_tCWU8I.cjs +0 -2
  229. package/dist/impl-D_tCWU8I.cjs.map +0 -1
  230. package/dist/impl-DhKyE3ja.cjs +0 -2
  231. package/dist/impl-DhKyE3ja.cjs.map +0 -1
  232. package/dist/impl-DkyT66jZ.cjs +0 -2
  233. package/dist/impl-DkyT66jZ.cjs.map +0 -1
  234. package/dist/impl-DpkTAuVd.cjs +0 -2
  235. package/dist/impl-DpkTAuVd.cjs.map +0 -1
  236. package/dist/impl-DvFcMtV7.cjs +0 -4
  237. package/dist/impl-DvFcMtV7.cjs.map +0 -1
  238. package/dist/impl-Dzi2-R-5.cjs +0 -3
  239. package/dist/impl-Dzi2-R-5.cjs.map +0 -1
  240. package/dist/impl-Dzyo_6if.cjs +0 -2
  241. package/dist/impl-Dzyo_6if.cjs.map +0 -1
  242. package/dist/impl-HogBsNBk.cjs +0 -2
  243. package/dist/impl-HogBsNBk.cjs.map +0 -1
  244. package/dist/impl-JgMjiEBD.cjs +0 -2
  245. package/dist/impl-JkHt--m4.cjs +0 -4
  246. package/dist/impl-JkHt--m4.cjs.map +0 -1
  247. package/dist/impl-_wktLwfn.cjs +0 -2
  248. package/dist/impl-_wktLwfn.cjs.map +0 -1
  249. package/dist/impl-afJ-fKK4.cjs +0 -2
  250. package/dist/impl-afJ-fKK4.cjs.map +0 -1
  251. package/dist/impl-brt-L_kS.cjs +0 -2
  252. package/dist/impl-brt-L_kS.cjs.map +0 -1
  253. package/dist/impl-iuvcsdad.cjs +0 -2
  254. package/dist/impl-iuvcsdad.cjs.map +0 -1
  255. package/dist/impl-kmDIC1No.cjs +0 -2
  256. package/dist/impl-kmDIC1No.cjs.map +0 -1
  257. package/dist/impl-zSp6Nypz.cjs +0 -2
  258. package/dist/impl-zSp6Nypz.cjs.map +0 -1
  259. package/dist/index.cjs +0 -5
  260. package/dist/index.cjs.map +0 -1
  261. package/dist/logger-DQwEYtSS.cjs +0 -2
  262. package/dist/logger-DQwEYtSS.cjs.map +0 -1
  263. package/dist/manual-enrichment-CW8iihdb.cjs +0 -2
  264. package/dist/manual-enrichment-CW8iihdb.cjs.map +0 -1
  265. package/dist/mergeTranscendInputs-BIBCYbug.cjs +0 -2
  266. package/dist/pooling-Dw0a42I_.cjs +0 -23
  267. package/dist/pooling-Dw0a42I_.cjs.map +0 -1
  268. package/dist/preference-management-CkmW6Z91.cjs +0 -7
  269. package/dist/preference-management-CkmW6Z91.cjs.map +0 -1
  270. package/dist/readTranscendYaml-Cycz6RxW.cjs +0 -4
  271. package/dist/readTranscendYaml-Cycz6RxW.cjs.map +0 -1
  272. package/dist/syncConfigurationToTranscend-DkeLrq-I.cjs +0 -3009
  273. package/dist/syncConfigurationToTranscend-DkeLrq-I.cjs.map +0 -1
  274. package/dist/uploadConsents-zr1Hg-JE.cjs +0 -2
  275. package/dist/uploadConsents-zr1Hg-JE.cjs.map +0 -1
  276. /package/dist/bin/{bash-complete.d.cts → bash-complete.d.mts} +0 -0
  277. /package/dist/bin/{cli.d.cts → cli.d.mts} +0 -0
  278. /package/dist/bin/{deprecated-command.d.cts → deprecated-command.d.mts} +0 -0
@@ -0,0 +1,3010 @@
1
+ import{o as e}from"./enums-CyFTrzXY.mjs";import{a as t,h as n}from"./constants-DdeeX81W.mjs";import{t as r}from"./logger-Bj782ZYD.mjs";import{ActionItemCode as i,AssessmentsDisplayLogicAction as a,AttributeKeyType as o,ComparisonOperator as s,CompletedRequestStatus as c,ConsentTrackerStatus as l,EnricherType as u,IdentifierType as d,IsoCountryCode as f,IsoCountrySubdivisionCode as p,LogicOperator as m,NORMALIZE_PHONE_NUMBER as h,RequestAction as g,RequestEnricherStatus as _,RequestOrigin as v,RequestStatus as y,RetentionType as b,TableEncryptionType as x}from"@transcend-io/privacy-types";import{chunk as S,difference as C,flatten as w,groupBy as T,keyBy as E,mapValues as D,sortBy as O,startCase as k,uniq as A,uniqBy as j}from"lodash-es";import{apply as M,applyEnum as N,decodeCodec as P,getEntries as F,getValues as ee,valuesOf as I}from"@transcend-io/type-utils";import{appendFileSync as te,createWriteStream as ne,existsSync as re,mkdirSync as ie,readFileSync as ae,readdirSync as oe,rmSync as se,statSync as ce,writeFileSync as le}from"node:fs";import{dirname as ue,join as L,parse as de,resolve as fe}from"node:path";import R from"colors";import*as z from"io-ts";import{InitialViewState as pe,OnConsentExpiry as me}from"@transcend-io/airgap.js-types";import{LOCALE_KEY as B}from"@transcend-io/internationalization";import he from"bluebird";import{GraphQLClient as ge,gql as V}from"graphql-request";import H from"inquirer";import _e from"inquirer-autocomplete-prompt";import ve from"fuzzysearch";import{parse as ye}from"csv-parse/sync";import be from"got";import xe from"semver";import U from"cli-progress";import{DateFromISOString as Se}from"io-ts-types";import{PersistedState as Ce}from"@transcend-io/persisted-state";import*as we from"fast-csv";const{map:W,mapSeries:G}=he,Te=V`
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
+ `,Ee=V`
51
+ query TranscendCliDataPointCount($filterBy: DataPointFiltersInput) {
52
+ dataPoints(filterBy: $filterBy, useMaster: false) {
53
+ totalCount
54
+ }
55
+ }
56
+ `,De=V`
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
+ `,Oe=V`
92
+ query TranscendCliSubDataPointsCount($filterBy: SubDataPointFiltersInput) {
93
+ subDataPoints(filterBy: $filterBy, useMaster: false) {
94
+ totalCount
95
+ }
96
+ }
97
+ `,ke=V`
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
+ `,Ae=V`
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
+ `,je=V`
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
+ `,Me=V`
206
+ query TranscendCliEntryCount(
207
+ $filterBy: UnstructuredSubDataPointRecommendationsFilterInput
208
+ ) {
209
+ unstructuredSubDataPointRecommendations(
210
+ filterBy: $filterBy
211
+ useMaster: false
212
+ ) {
213
+ totalCount
214
+ }
215
+ }
216
+ `,Ne=V`
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
+ `,Pe=V`
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
+ `,Fe=V`
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
+ `,Ie=V`
327
+ mutation TranscendCliUpdateDataSilo($input: UpdateDataSilosInput!) {
328
+ updateDataSilos(input: $input) {
329
+ clientMutationId
330
+ dataSilos {
331
+ id
332
+ title
333
+ }
334
+ }
335
+ }
336
+ `,Le=V`
337
+ mutation TranscendCliCreateDataSilo($input: [CreateDataSilosInput!]!) {
338
+ createDataSilos(input: $input) {
339
+ dataSilos {
340
+ id
341
+ title
342
+ }
343
+ }
344
+ }
345
+ `,Re=V`
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
+ `,ze=V`
382
+ query TranscendCliInitializer {
383
+ initializer {
384
+ id
385
+ identifiers {
386
+ name
387
+ }
388
+ }
389
+ }
390
+ `,Be=V`
391
+ mutation TranscendCliCreateEnricher($input: EnricherInput!) {
392
+ createEnricher(input: $input) {
393
+ clientMutationId
394
+ }
395
+ }
396
+ `,Ve=V`
397
+ mutation TranscendCliUpdateEnricher($input: UpdateEnricherInput!) {
398
+ updateEnricher(input: $input) {
399
+ clientMutationId
400
+ }
401
+ }
402
+ `,He=V`
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
+ `,Ue=V`
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
+ `,We=V`
447
+ query TranscendCliNewIdentifierTypes {
448
+ newIdentifierTypes {
449
+ name
450
+ }
451
+ }
452
+ `,Ge=V`
453
+ mutation TranscendCliCreateIdentifier($input: IdentifierInput!) {
454
+ createIdentifier(input: $input) {
455
+ identifier {
456
+ id
457
+ name
458
+ }
459
+ }
460
+ }
461
+ `,Ke=V`
462
+ mutation TranscendCliUpdateIdentifier($input: UpdateIdentifierInput!) {
463
+ updateIdentifier(input: $input) {
464
+ clientMutationId
465
+ }
466
+ }
467
+ `,qe=V`
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
+ `,Je=V`
483
+ mutation TranscendCliCreateDataSubject($type: String!) {
484
+ createSubject(input: { type: $type, title: $type, subjectClass: OTHER }) {
485
+ subject {
486
+ id
487
+ type
488
+ }
489
+ }
490
+ }
491
+ `,Ye=V`
492
+ mutation TranscendCliUpdateDataSubject($input: UpdateSubjectInput!) {
493
+ updateSubject(input: $input) {
494
+ clientMutationId
495
+ }
496
+ }
497
+ `,Xe=V`
498
+ mutation TranscendCliToggleDataSubject($input: ToggleSubjectInput!) {
499
+ toggleSubject(input: $input) {
500
+ clientMutationId
501
+ }
502
+ }
503
+ `,Ze=V`
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
+ `,Qe=V`
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
+ `,$e=V`
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
+ `,et=V`
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
+ `,tt=V`
591
+ mutation TranscendCliCreateApiKey($input: ApiKeyInput!) {
592
+ createApiKey(input: $input) {
593
+ apiKey {
594
+ id
595
+ apiKey
596
+ title
597
+ }
598
+ }
599
+ }
600
+ `,nt=V`
601
+ mutation TranscendCliDeleteApiKey($id: ID!) {
602
+ deleteApiKey(id: $id) {
603
+ clientMutationId
604
+ }
605
+ }
606
+ `,rt=V`
607
+ mutation TranscendCliCreatePreferenceAccessTokens(
608
+ $input: CreatePrivacyCenterAccessTokensInput!
609
+ ) {
610
+ createPrivacyCenterAccessTokens(input: $input) {
611
+ nodes {
612
+ token
613
+ }
614
+ }
615
+ }
616
+ `,it=V`
617
+ mutation AddSiloDiscoveryResults(
618
+ $pluginId: ID!
619
+ $rawResults: [SiloDiscoveryRawResultInput!]!
620
+ ) {
621
+ addSiloDiscoveryResults(
622
+ input: { pluginId: $pluginId, rawResults: $rawResults }
623
+ ) {
624
+ success
625
+ }
626
+ }
627
+ `,at=V`
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
+ `,ot=V`
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
+ `,st=V`
660
+ mutation TranscendCliCreateTemplate($title: String!) {
661
+ createTemplate(input: { title: $title, template: "", subject: $title }) {
662
+ clientMutationId
663
+ }
664
+ }
665
+ `,ct=V`
666
+ query TranscendCliOrganization {
667
+ organization {
668
+ sombra {
669
+ customerUrl
670
+ }
671
+ }
672
+ }
673
+ `,lt=V`
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
+ `,ut=V`
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
+ `,dt=V`
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
+ `,ft=V`
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
+ `,pt=V`
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
+ `,mt=V`
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
+ `,ht=V`
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
+ `,gt=V`
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
+ `,_t=V`
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
+ `,vt=V`
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
+ `,yt=V`
920
+ query TranscendCliRequestsCount($filterBy: RequestFiltersInput!) {
921
+ requests(filterBy: $filterBy, first: 0, useMaster: false) {
922
+ totalCount
923
+ }
924
+ }
925
+ `,bt=V`
926
+ query TranscendCliRequests(
927
+ $first: Int!
928
+ $after: String
929
+ $filterBy: RequestFiltersInput!
930
+ ) {
931
+ requests(
932
+ filterBy: $filterBy
933
+ first: $first
934
+ after: $after
935
+ orderBy: [
936
+ { field: createdAt, direction: ASC }
937
+ { field: id, direction: ASC }
938
+ ]
939
+ useMaster: false
940
+ ) {
941
+ nodes {
942
+ id
943
+ createdAt
944
+ email
945
+ link
946
+ status
947
+ details
948
+ isTest
949
+ locale
950
+ origin
951
+ isSilent
952
+ coreIdentifier
953
+ daysRemaining
954
+ successfullyCompletedAt
955
+ type
956
+ subjectType
957
+ country
958
+ countrySubDivision
959
+ purpose {
960
+ title
961
+ name
962
+ consent
963
+ enrichedPreferences {
964
+ topic
965
+ selectValues {
966
+ id
967
+ name
968
+ preferenceOption {
969
+ id
970
+ slug
971
+ title {
972
+ defaultMessage
973
+ }
974
+ }
975
+ }
976
+ selectValue {
977
+ id
978
+ name
979
+ }
980
+ selectValue {
981
+ id
982
+ name
983
+ }
984
+ preferenceTopic {
985
+ title {
986
+ defaultMessage
987
+ }
988
+ id
989
+ slug
990
+ }
991
+ name
992
+ id
993
+ booleanValue
994
+ }
995
+ }
996
+ attributeValues {
997
+ id
998
+ name
999
+ attributeKey {
1000
+ id
1001
+ name
1002
+ }
1003
+ }
1004
+ }
1005
+ pageInfo {
1006
+ endCursor
1007
+ hasNextPage
1008
+ }
1009
+ }
1010
+ }
1011
+ `,xt=V`
1012
+ mutation TranscendCliApprovePrivacyRequest($input: CommunicationInput!) {
1013
+ approveRequest(input: $input) {
1014
+ request {
1015
+ id
1016
+ }
1017
+ }
1018
+ }
1019
+ `,St=V`
1020
+ mutation TranscendCliCancelPrivacyRequest($input: CommunicationInput!) {
1021
+ cancelRequest(input: $input) {
1022
+ request {
1023
+ id
1024
+ }
1025
+ }
1026
+ }
1027
+ `,Ct=V`
1028
+ mutation TranscendCliUpdatePrivacyRequest($input: UpdateRequestInput!) {
1029
+ updateRequest(input: $input) {
1030
+ request {
1031
+ id
1032
+ }
1033
+ }
1034
+ }
1035
+ `,wt=V`
1036
+ mutation TranscendCliNotifyAdditionalTime($input: AdditionalTimeInput!) {
1037
+ notifyAdditionalTime(input: $input) {
1038
+ clientMutationId
1039
+ }
1040
+ }
1041
+ `,Tt=V`
1042
+ query TranscendCliFetchMessage {
1043
+ translatedMessages {
1044
+ id
1045
+ defaultMessage
1046
+ description
1047
+ targetReactIntlId
1048
+ translations {
1049
+ locale
1050
+ value
1051
+ }
1052
+ }
1053
+ }
1054
+ `,Et=V`
1055
+ mutation TranscendCliUpdateIntlMessages($messages: [MessageInput!]!) {
1056
+ updateIntlMessages(input: { messages: $messages, skipPublish: true }) {
1057
+ clientMutationId
1058
+ }
1059
+ }
1060
+ `,Dt=V`
1061
+ query TranscendCliRequestEnrichers(
1062
+ $first: Int!
1063
+ $offset: Int!
1064
+ $requestId: ID!
1065
+ ) {
1066
+ requestEnrichers(
1067
+ input: { requestId: $requestId }
1068
+ first: $first
1069
+ offset: $offset
1070
+ useMaster: false
1071
+ orderBy: [
1072
+ { field: createdAt, direction: ASC }
1073
+ { field: title, direction: ASC, model: enricher }
1074
+ ]
1075
+ ) {
1076
+ nodes {
1077
+ id
1078
+ status
1079
+ enricher {
1080
+ id
1081
+ type
1082
+ title
1083
+ }
1084
+ }
1085
+ totalCount
1086
+ }
1087
+ }
1088
+ `,Ot=V`
1089
+ mutation TranscendCliRetryRequestEnricher($requestEnricherId: ID!) {
1090
+ retryRequestEnricher(id: $requestEnricherId) {
1091
+ requestEnricher {
1092
+ id
1093
+ }
1094
+ }
1095
+ }
1096
+ `,kt=V`
1097
+ mutation TranscendCliSkipRequestEnricher($requestEnricherId: ID!) {
1098
+ skipRequestEnricher(id: $requestEnricherId) {
1099
+ requestEnricher {
1100
+ id
1101
+ }
1102
+ }
1103
+ }
1104
+ `,At=`
1105
+ id
1106
+ title
1107
+ status
1108
+ index
1109
+ questions {
1110
+ id
1111
+ title
1112
+ index
1113
+ type
1114
+ subType
1115
+ placeholder
1116
+ description
1117
+ isRequired
1118
+ displayLogic
1119
+ riskLogic
1120
+ requireRiskEvaluation
1121
+ requireRiskMatrixEvaluation
1122
+ riskCategories {
1123
+ id
1124
+ title
1125
+ }
1126
+ riskFramework {
1127
+ id
1128
+ title
1129
+ description
1130
+ riskLevels {
1131
+ id
1132
+ title
1133
+ }
1134
+ riskCategories {
1135
+ id
1136
+ title
1137
+ }
1138
+ riskMatrixColumns {
1139
+ id
1140
+ title
1141
+ }
1142
+ riskMatrixRows {
1143
+ id
1144
+ title
1145
+ }
1146
+ riskMatrix {
1147
+ id
1148
+ title
1149
+ }
1150
+ creator {
1151
+ id
1152
+ email
1153
+ name
1154
+ }
1155
+ riskMatrixRowTitle
1156
+ riskMatrixColumnTitle
1157
+ }
1158
+ riskLevel {
1159
+ id
1160
+ title
1161
+ }
1162
+ reviewerRiskLevel {
1163
+ id
1164
+ title
1165
+ }
1166
+ riskLevelFromRiskMatrix {
1167
+ id
1168
+ title
1169
+ }
1170
+ answerOptions {
1171
+ id
1172
+ index
1173
+ value
1174
+ }
1175
+ selectedAnswers {
1176
+ ... on AssessmentAnswerInterface {
1177
+ id
1178
+ index
1179
+ value
1180
+ }
1181
+ }
1182
+ respondent {
1183
+ id
1184
+ email
1185
+ name
1186
+ }
1187
+ attributeKey {
1188
+ name
1189
+ }
1190
+ externalRespondentEmail
1191
+ comments {
1192
+ id
1193
+ content
1194
+ createdAt
1195
+ updatedAt
1196
+ author {
1197
+ id
1198
+ email
1199
+ name
1200
+ }
1201
+ }
1202
+ allowedMimeTypes
1203
+ updatedAt
1204
+ referenceId
1205
+ previousSubmissions {
1206
+ id
1207
+ updatedAt
1208
+ assessmentQuestionId
1209
+ answers {
1210
+ ... on AssessmentAnswerInterface {
1211
+ id
1212
+ index
1213
+ value
1214
+ }
1215
+ }
1216
+ }
1217
+ allowSelectOther
1218
+ syncModel
1219
+ syncColumn
1220
+ syncRowIds
1221
+ syncOverride
1222
+ }
1223
+ assignees {
1224
+ id
1225
+ email
1226
+ name
1227
+ }
1228
+ externalAssignees {
1229
+ id
1230
+ email
1231
+ }
1232
+ isReviewed
1233
+ `,jt=V`
1234
+ query TranscendCliAssessments(
1235
+ $first: Int!
1236
+ $offset: Int!
1237
+ $filterBy: AssessmentFormFiltersInput
1238
+ ) {
1239
+ assessmentForms(first: $first, offset: $offset, filterBy: $filterBy) {
1240
+ nodes {
1241
+ id
1242
+ creator {
1243
+ id
1244
+ email
1245
+ name
1246
+ }
1247
+ lastEditor {
1248
+ id
1249
+ email
1250
+ name
1251
+ }
1252
+ title
1253
+ description
1254
+ status
1255
+ assignees {
1256
+ id
1257
+ email
1258
+ name
1259
+ }
1260
+ externalAssignees {
1261
+ id
1262
+ email
1263
+ }
1264
+ reviewers {
1265
+ id
1266
+ email
1267
+ name
1268
+ }
1269
+ isLocked
1270
+ isArchived
1271
+ isExternallyCreated
1272
+ dueDate
1273
+ createdAt
1274
+ updatedAt
1275
+ assignedAt
1276
+ submittedAt
1277
+ approvedAt
1278
+ rejectedAt
1279
+ titleIsInternal
1280
+ retentionSchedule {
1281
+ id
1282
+ type
1283
+ durationDays
1284
+ operation
1285
+ }
1286
+ attributeValues {
1287
+ name
1288
+ attributeKey {
1289
+ name
1290
+ }
1291
+ }
1292
+ sections {
1293
+ ${At}
1294
+ }
1295
+ assessmentGroup {
1296
+ id
1297
+ title
1298
+ description
1299
+ }
1300
+ resources {
1301
+ resourceType
1302
+ ... on AttributeBusinessEntityResource {
1303
+ id
1304
+ title
1305
+ }
1306
+ ... on AttributeDataSiloResource {
1307
+ id
1308
+ title
1309
+ }
1310
+ ... on AttributeDataSubCategoryResource {
1311
+ id
1312
+ name
1313
+ category
1314
+ }
1315
+ ... on AttributeSubDataPointResource {
1316
+ id
1317
+ name
1318
+ }
1319
+ ... on AttributeProcessingPurposeSubCategoryResource {
1320
+ id
1321
+ name
1322
+ purpose
1323
+ }
1324
+ ... on AttributeRequestResource {
1325
+ id
1326
+ type
1327
+ }
1328
+ ... on AttributeVendorResource {
1329
+ id
1330
+ title
1331
+ }
1332
+ ... on AttributePromptResource {
1333
+ id
1334
+ title
1335
+ }
1336
+ ... on AttributePromptRunResource {
1337
+ id
1338
+ title
1339
+ }
1340
+ ... on AttributePromptGroupResource {
1341
+ id
1342
+ title
1343
+ }
1344
+ }
1345
+ syncedRows {
1346
+ resourceType
1347
+ ... on AttributeBusinessEntityResource {
1348
+ id
1349
+ title
1350
+ }
1351
+ ... on AttributeDataSiloResource {
1352
+ id
1353
+ title
1354
+ }
1355
+ ... on AttributeDataSubCategoryResource {
1356
+ id
1357
+ name
1358
+ category
1359
+ }
1360
+ ... on AttributeSubDataPointResource {
1361
+ id
1362
+ name
1363
+ }
1364
+ ... on AttributeProcessingPurposeSubCategoryResource {
1365
+ id
1366
+ name
1367
+ purpose
1368
+ }
1369
+ ... on AttributeVendorResource {
1370
+ id
1371
+ title
1372
+ }
1373
+ }
1374
+ }
1375
+ }
1376
+ }
1377
+ `,Mt=V`
1378
+ mutation TranscendCliImportOneTrustAssessmentForms(
1379
+ $input: ImportOnetrustAssessmentsInput!
1380
+ ) {
1381
+ importOneTrustAssessmentForms(input: $input) {
1382
+ assessmentForms {
1383
+ id
1384
+ title
1385
+ }
1386
+ }
1387
+ }
1388
+ `,Nt=V`
1389
+ query TranscendCliPurposes(
1390
+ $first: Int!
1391
+ $offset: Int!
1392
+ $filterBy: TrackingPurposeFiltersInput
1393
+ $input: TrackingPurposeInput!
1394
+ ) {
1395
+ purposes(
1396
+ first: $first
1397
+ offset: $offset
1398
+ filterBy: $filterBy
1399
+ input: $input
1400
+ ) {
1401
+ nodes {
1402
+ id
1403
+ name
1404
+ description
1405
+ defaultConsent
1406
+ trackingType
1407
+ configurable
1408
+ essential
1409
+ showInConsentManager
1410
+ isActive
1411
+ displayOrder
1412
+ optOutSignals
1413
+ deletedAt
1414
+ authLevel
1415
+ showInPrivacyCenter
1416
+ title
1417
+ }
1418
+ }
1419
+ }
1420
+ `,Pt=V`
1421
+ query TranscendCliPreferenceTopics(
1422
+ $first: Int!
1423
+ $offset: Int!
1424
+ $filterBy: PreferenceTopicFilterInput
1425
+ ) {
1426
+ preferenceTopics(first: $first, offset: $offset, filterBy: $filterBy) {
1427
+ nodes {
1428
+ id
1429
+ slug
1430
+ type
1431
+ title {
1432
+ id
1433
+ defaultMessage
1434
+ }
1435
+ showInPrivacyCenter
1436
+ displayDescription {
1437
+ id
1438
+ defaultMessage
1439
+ }
1440
+ defaultConfiguration
1441
+ preferenceOptionValues {
1442
+ slug
1443
+ title {
1444
+ id
1445
+ defaultMessage
1446
+ }
1447
+ }
1448
+ purpose {
1449
+ trackingType
1450
+ }
1451
+ }
1452
+ }
1453
+ }
1454
+ `,Ft=V`
1455
+ query TranscendCliAssessmentTemplates(
1456
+ $first: Int!
1457
+ $offset: Int!
1458
+ $filterBy: AssessmentFormTemplateFiltersInput
1459
+ ) {
1460
+ assessmentFormTemplates(
1461
+ first: $first
1462
+ offset: $offset
1463
+ filterBy: $filterBy
1464
+ ) {
1465
+ nodes {
1466
+ id
1467
+ creator {
1468
+ id
1469
+ email
1470
+ name
1471
+ }
1472
+ lastEditor {
1473
+ id
1474
+ email
1475
+ name
1476
+ }
1477
+ title
1478
+ description
1479
+ status
1480
+ source
1481
+ parentId
1482
+ isLocked
1483
+ isArchived
1484
+ createdAt
1485
+ updatedAt
1486
+ retentionSchedule {
1487
+ id
1488
+ type
1489
+ durationDays
1490
+ operation
1491
+ createdAt
1492
+ updatedAt
1493
+ }
1494
+ assessmentEmailSet {
1495
+ id
1496
+ title
1497
+ description
1498
+ isDefault
1499
+ templates {
1500
+ id
1501
+ title
1502
+ }
1503
+ }
1504
+ sections {
1505
+ ${At}
1506
+ }
1507
+ }
1508
+ }
1509
+ }
1510
+ `,It=V`
1511
+ query TranscendCliPrompts(
1512
+ $first: Int!
1513
+ $offset: Int!
1514
+ $filterBy: PromptFiltersInput
1515
+ ) {
1516
+ prompts(
1517
+ first: $first
1518
+ orderBy: [{ field: title, direction: ASC }]
1519
+ offset: $offset
1520
+ filterBy: $filterBy
1521
+ ) {
1522
+ nodes {
1523
+ id
1524
+ title
1525
+ status
1526
+ content
1527
+ temperature
1528
+ topP
1529
+ maxTokensToSample
1530
+ }
1531
+ }
1532
+ }
1533
+ `,Lt=V`
1534
+ query TranscendCliPromptPartials($first: Int!, $offset: Int!) {
1535
+ promptPartials(first: $first, offset: $offset) {
1536
+ nodes {
1537
+ id
1538
+ title
1539
+ content
1540
+ }
1541
+ }
1542
+ }
1543
+ `,Rt=V`
1544
+ query TranscendCliPromptGroups($first: Int!, $offset: Int!) {
1545
+ promptGroups(
1546
+ first: $first
1547
+
1548
+ offset: $offset
1549
+ ) {
1550
+ nodes {
1551
+ id
1552
+ title
1553
+ description
1554
+ prompts {
1555
+ title
1556
+ }
1557
+ }
1558
+ }
1559
+ }
1560
+ `,zt=V`
1561
+ query TranscendCliPromptsWithVariables($input: PromptsWithVariablesInput!) {
1562
+ promptsWithVariables(input: $input) {
1563
+ prompts {
1564
+ id
1565
+ title
1566
+ content
1567
+ status
1568
+ temperature
1569
+ topP
1570
+ maxTokensToSample
1571
+ responseFormat
1572
+ }
1573
+ promptPartials {
1574
+ id
1575
+ title
1576
+ content
1577
+ slug
1578
+ }
1579
+ calculatedVariables {
1580
+ data
1581
+ name
1582
+ }
1583
+ runtimeVariables {
1584
+ name
1585
+ }
1586
+ }
1587
+ }
1588
+ `,Bt=V`
1589
+ mutation TranscendCliUpdatePrompts($input: UpdatePromptsInput!) {
1590
+ updatePrompts(input: $input) {
1591
+ clientMutationId
1592
+ }
1593
+ }
1594
+ `,Vt=V`
1595
+ mutation TranscendCliCreatePrompt($input: CreatePromptInput!) {
1596
+ createPrompt(input: $input) {
1597
+ clientMutationId
1598
+ prompt {
1599
+ id
1600
+ }
1601
+ }
1602
+ }
1603
+ `,Ht=V`
1604
+ mutation TranscendCliUpdatePromptPartials(
1605
+ $input: UpdatePromptPartialsInput!
1606
+ ) {
1607
+ updatePromptPartials(input: $input) {
1608
+ clientMutationId
1609
+ }
1610
+ }
1611
+ `,Ut=V`
1612
+ mutation TranscendCliCreatePromptPartial($input: CreatePromptPartialInput!) {
1613
+ createPromptPartial(input: $input) {
1614
+ clientMutationId
1615
+ promptPartial {
1616
+ id
1617
+ }
1618
+ }
1619
+ }
1620
+ `,Wt=V`
1621
+ mutation TranscendCliUpdatePromptGroups($input: UpdatePromptGroupsInput!) {
1622
+ updatePromptGroups(input: $input) {
1623
+ clientMutationId
1624
+ }
1625
+ }
1626
+ `,Gt=V`
1627
+ mutation TranscendCliCreatePromptPartial($input: CreatePromptGroupInput!) {
1628
+ createPromptGroup(input: $input) {
1629
+ clientMutationId
1630
+ promptGroup {
1631
+ id
1632
+ }
1633
+ }
1634
+ }
1635
+ `,Kt=V`
1636
+ query TranscendCliRequestDataSilos(
1637
+ $first: Int!
1638
+ $offset: Int!
1639
+ $filterBy: RequestDataSiloFiltersInput!
1640
+ ) {
1641
+ requestDataSilos(
1642
+ filterBy: $filterBy
1643
+ first: $first
1644
+ offset: $offset
1645
+ useMaster: false
1646
+ orderBy: [
1647
+ { field: createdAt, direction: DESC }
1648
+ { field: title, direction: ASC, model: dataSilo }
1649
+ ]
1650
+ ) {
1651
+ nodes {
1652
+ id
1653
+ }
1654
+ totalCount
1655
+ }
1656
+ }
1657
+ `,qt=V`
1658
+ mutation TranscendCliMarkRequestDataSiloCompleted(
1659
+ $requestDataSiloId: ID!
1660
+ $status: UpdateRequestDataSiloStatus!
1661
+ ) {
1662
+ changeRequestDataSiloStatus(
1663
+ input: { id: $requestDataSiloId, status: $status }
1664
+ ) {
1665
+ requestDataSilo {
1666
+ id
1667
+ }
1668
+ }
1669
+ }
1670
+ `,Jt=V`
1671
+ mutation TranscendCliRetryRequestDataSilo($requestDataSiloId: ID!) {
1672
+ retryRequestDataSilo(id: $requestDataSiloId) {
1673
+ requestDataSilo {
1674
+ id
1675
+ }
1676
+ }
1677
+ }
1678
+ `,Yt=V`
1679
+ query TranscendCliListReducedRequestsForDataSiloCount(
1680
+ $input: BulkCompletionReducedRequestInput!
1681
+ ) {
1682
+ listReducedRequestsForDataSilo(input: $input) {
1683
+ totalCount
1684
+ }
1685
+ }
1686
+ `,Xt=V`
1687
+ query TranscendCliTeams(
1688
+ $first: Int!
1689
+ $offset: Int!
1690
+ $input: TeamFiltersInput
1691
+ ) {
1692
+ teams(
1693
+ first: $first
1694
+ offset: $offset
1695
+ filterBy: $input
1696
+ orderBy: [
1697
+ { field: createdAt, direction: ASC }
1698
+ { field: name, direction: ASC }
1699
+ ]
1700
+ ) {
1701
+ nodes {
1702
+ id
1703
+ name
1704
+ description
1705
+ ssoDepartment
1706
+ ssoGroup
1707
+ ssoTitle
1708
+ users {
1709
+ id
1710
+ email
1711
+ name
1712
+ }
1713
+ scopes {
1714
+ id
1715
+ name
1716
+ title
1717
+ }
1718
+ }
1719
+ }
1720
+ }
1721
+ `,Zt=V`
1722
+ mutation TranscendCliCreateTeam($input: TeamInput!) {
1723
+ createTeam(input: $input) {
1724
+ team {
1725
+ id
1726
+ name
1727
+ }
1728
+ }
1729
+ }
1730
+ `,Qt=V`
1731
+ mutation TranscendCliUpdateTeam($input: UpdateTeamInput!) {
1732
+ updateTeam(input: $input) {
1733
+ team {
1734
+ id
1735
+ name
1736
+ }
1737
+ }
1738
+ }
1739
+ `,$t=V`
1740
+ mutation TranscendCliRemoveRequestIdentifiers(
1741
+ $input: RemoveRequestIdentifiersInput!
1742
+ ) {
1743
+ removeRequestIdentifiers(input: $input) {
1744
+ count
1745
+ }
1746
+ }
1747
+ `,en=V`
1748
+ query TranscendCliRequestIdentifiers(
1749
+ $first: Int!
1750
+ $offset: Int!
1751
+ $requestIds: [ID!]
1752
+ $updatedAtBefore: Date
1753
+ $updatedAtAfter: Date
1754
+ ) {
1755
+ requestIdentifiers(
1756
+ input: {
1757
+ requestIds: $requestIds
1758
+ updatedAtBefore: $updatedAtBefore
1759
+ updatedAtAfter: $updatedAtAfter
1760
+ }
1761
+ first: $first
1762
+ offset: $offset
1763
+ useMaster: false
1764
+ orderBy: [
1765
+ { field: createdAt, direction: ASC }
1766
+ { field: name, direction: ASC }
1767
+ ]
1768
+ ) {
1769
+ nodes {
1770
+ id
1771
+ name
1772
+ isVerifiedAtLeastOnce
1773
+ }
1774
+ totalCount
1775
+ }
1776
+ }
1777
+ `,tn=V`
1778
+ query TranscendCliUsers(
1779
+ $first: Int!
1780
+ $offset: Int!
1781
+ $input: UserFiltersInput
1782
+ ) {
1783
+ users(
1784
+ first: $first
1785
+ offset: $offset
1786
+ filterBy: $input
1787
+ orderBy: [
1788
+ { field: createdAt, direction: ASC }
1789
+ { field: name, direction: ASC }
1790
+ ]
1791
+ ) {
1792
+ nodes {
1793
+ id
1794
+ name
1795
+ email
1796
+ }
1797
+ }
1798
+ }
1799
+ `,nn=V`
1800
+ query TranscendCliRequestFiles(
1801
+ $first: Int!
1802
+ $offset: Int!
1803
+ $filterBy: RequestFileFiltersInput!
1804
+ ) {
1805
+ requestFiles(
1806
+ filterBy: $filterBy
1807
+ first: $first
1808
+ offset: $offset
1809
+ orderBy: [
1810
+ { field: createdAt, direction: ASC }
1811
+ { field: id, direction: ASC }
1812
+ ]
1813
+ ) {
1814
+ nodes {
1815
+ remoteId
1816
+ fileName
1817
+ }
1818
+ }
1819
+ }
1820
+ `,rn=V`
1821
+ query TranscendCliBulkRequestFiles(
1822
+ $filterBy: BulkRequestFilesFiltersInput!
1823
+ $first: Int!
1824
+ $after: String
1825
+ ) {
1826
+ bulkRequestFiles(filterBy: $filterBy, first: $first, after: $after) {
1827
+ nodes {
1828
+ remoteId
1829
+ fileName
1830
+ }
1831
+ pageInfo {
1832
+ hasNextPage
1833
+ endCursor
1834
+ }
1835
+ }
1836
+ }
1837
+ `,an=V`
1838
+ mutation TranscendCliReportPromptRun($input: ReportPromptRunInput!) {
1839
+ reportPromptRun(input: $input) {
1840
+ clientMutationId
1841
+ promptRun {
1842
+ id
1843
+ }
1844
+ }
1845
+ }
1846
+ `,on=V`
1847
+ mutation TranscendCliAddMessagesToPromptRun(
1848
+ $input: AddMessagesToPromptRunInput!
1849
+ ) {
1850
+ addMessagesToPromptRun(input: $input) {
1851
+ clientMutationId
1852
+ promptRun {
1853
+ id
1854
+ }
1855
+ }
1856
+ }
1857
+ `,sn=V`
1858
+ query TranscendCliGlobalActionItemCollectionss(
1859
+ $filterBy: GlobalActionItemCollectionFiltersInput!
1860
+ ) {
1861
+ globalActionItemCollections(filterBy: $filterBy) {
1862
+ nodes {
1863
+ id
1864
+ title
1865
+ description
1866
+ hidden
1867
+ productLine
1868
+ }
1869
+ }
1870
+ }
1871
+ `,cn=V`
1872
+ mutation TranscendCliCreateActionItemCollection(
1873
+ $input: CreateActionItemCollectionInput!
1874
+ ) {
1875
+ createActionItemCollection(input: $input) {
1876
+ created {
1877
+ id
1878
+ title
1879
+ }
1880
+ }
1881
+ }
1882
+ `,ln=V`
1883
+ mutation TranscendCliUpdateActionItemCollection(
1884
+ $input: UpdateActionItemCollectionInput!
1885
+ ) {
1886
+ updateActionItemCollection(input: $input) {
1887
+ clientMutationId
1888
+ }
1889
+ }
1890
+ `,un=V`
1891
+ query TranscendCliAttributes($first: Int!, $offset: Int!) {
1892
+ attributeKeys(first: $first, offset: $offset, useMaster: false) {
1893
+ nodes {
1894
+ id
1895
+ isCustom
1896
+ description
1897
+ enabledOn
1898
+ name
1899
+ type
1900
+ }
1901
+ }
1902
+ }
1903
+ `,dn=V`
1904
+ mutation TranscendCliCreateAttributeValues(
1905
+ $input: [CreateAttributeValuesInput!]!
1906
+ ) {
1907
+ createAttributeValues(input: $input) {
1908
+ clientMutationId
1909
+ }
1910
+ }
1911
+ `,fn=V`
1912
+ mutation TranscendCliUpdateAttributeValues(
1913
+ $input: [UpdateAttributeValueInput!]!
1914
+ ) {
1915
+ updateAttributeValues(input: $input) {
1916
+ clientMutationId
1917
+ }
1918
+ }
1919
+ `,pn=V`
1920
+ mutation TranscendCliDeleteAttributeValue($id: ID!) {
1921
+ deleteAttributeValue(id: $id) {
1922
+ clientMutationId
1923
+ }
1924
+ }
1925
+ `,mn=V`
1926
+ query TranscendCliAttributeValues(
1927
+ $first: Int!
1928
+ $offset: Int!
1929
+ $attributeKeyId: ID!
1930
+ ) {
1931
+ attributeValues(
1932
+ first: $first
1933
+ offset: $offset
1934
+ useMaster: false
1935
+ filterBy: { attributeKeys: [$attributeKeyId] }
1936
+ ) {
1937
+ nodes {
1938
+ id
1939
+ name
1940
+ description
1941
+ color
1942
+ }
1943
+ }
1944
+ }
1945
+ `,hn=V`
1946
+ mutation TranscendCliCreateAttribute(
1947
+ $name: String!
1948
+ $type: AttributeKeyType!
1949
+ $description: String
1950
+ $enabledOn: [AttributeSupportedResourceType!]
1951
+ ) {
1952
+ createAttributeKey(
1953
+ input: {
1954
+ name: $name
1955
+ type: $type
1956
+ description: $description
1957
+ enabledOn: $enabledOn
1958
+ }
1959
+ ) {
1960
+ clientMutationId
1961
+ attributeKey {
1962
+ id
1963
+ }
1964
+ }
1965
+ }
1966
+ `,gn=V`
1967
+ mutation TranscendCliCreateAttribute(
1968
+ $attributeKeyId: ID!
1969
+ $description: String
1970
+ $enabledOn: [AttributeSupportedResourceType!]
1971
+ ) {
1972
+ updateAttributeKey(
1973
+ input: {
1974
+ id: $attributeKeyId
1975
+ description: $description
1976
+ enabledOn: $enabledOn
1977
+ }
1978
+ ) {
1979
+ clientMutationId
1980
+ attributeKey {
1981
+ id
1982
+ }
1983
+ }
1984
+ }
1985
+ `,_n=V`
1986
+ mutation TranscendCliSetResourceAttributes(
1987
+ $input: SetResourceAttributesInput!
1988
+ ) {
1989
+ setResourceAttributes(input: $input) {
1990
+ clientMutationId
1991
+ }
1992
+ }
1993
+ `,vn=V`
1994
+ query TranscendCliExperiences($first: Int!, $offset: Int!) {
1995
+ experiences(first: $first, offset: $offset, useMaster: false) {
1996
+ nodes {
1997
+ id
1998
+ name
1999
+ displayName
2000
+ regions {
2001
+ countrySubDivision
2002
+ country
2003
+ }
2004
+ operator
2005
+ displayPriority
2006
+ onConsentExpiry
2007
+ consentExpiry
2008
+ viewState
2009
+ purposes {
2010
+ name
2011
+ trackingType
2012
+ }
2013
+ optedOutPurposes {
2014
+ name
2015
+ trackingType
2016
+ }
2017
+ browserLanguages
2018
+ browserTimeZones
2019
+ }
2020
+ }
2021
+ }
2022
+ `,yn=V`
2023
+ query TranscendCliConsentPartitions($first: Int!, $offset: Int!) {
2024
+ consentPartitions(first: $first, offset: $offset) {
2025
+ nodes {
2026
+ id
2027
+ name
2028
+ partition
2029
+ }
2030
+ }
2031
+ }
2032
+ `,bn=V`
2033
+ mutation TranscendCliCreateDataFlows(
2034
+ $dataFlows: [DataFlowInput!]!
2035
+ $airgapBundleId: ID!
2036
+ $classifyService: Boolean
2037
+ ) {
2038
+ createDataFlows(
2039
+ input: {
2040
+ airgapBundleId: $airgapBundleId
2041
+ dataFlows: $dataFlows
2042
+ classifyService: $classifyService
2043
+ }
2044
+ ) {
2045
+ dataFlows {
2046
+ id
2047
+ }
2048
+ }
2049
+ }
2050
+ `,xn=V`
2051
+ mutation TranscendCliUpdateDataFlows(
2052
+ $airgapBundleId: ID!
2053
+ $dataFlows: [UpdateDataFlowInput!]!
2054
+ $classifyService: Boolean
2055
+ ) {
2056
+ updateDataFlows(
2057
+ input: {
2058
+ airgapBundleId: $airgapBundleId
2059
+ dataFlows: $dataFlows
2060
+ classifyService: $classifyService
2061
+ }
2062
+ ) {
2063
+ dataFlows {
2064
+ id
2065
+ }
2066
+ }
2067
+ }
2068
+ `,Sn=V`
2069
+ mutation TranscendCliUpdateOrCreateCookies(
2070
+ $cookies: [UpdateOrCreateCookieInput!]!
2071
+ $airgapBundleId: ID!
2072
+ ) {
2073
+ updateOrCreateCookies(
2074
+ input: { airgapBundleId: $airgapBundleId, cookies: $cookies }
2075
+ ) {
2076
+ clientMutationId
2077
+ }
2078
+ }
2079
+ `,Cn=V`
2080
+ query TranscendCliDataFlows(
2081
+ $first: Int!
2082
+ $airgapBundleId: ID!
2083
+ $offset: Int!
2084
+ $status: ConsentTrackerStatus
2085
+ $showZeroActivity: Boolean
2086
+ ) {
2087
+ dataFlows(
2088
+ first: $first
2089
+ offset: $offset
2090
+ filterBy: { status: $status, showZeroActivity: $showZeroActivity }
2091
+ input: { airgapBundleId: $airgapBundleId }
2092
+ orderBy: [
2093
+ { field: createdAt, direction: ASC }
2094
+ { field: value, direction: ASC }
2095
+ ]
2096
+ useMaster: false
2097
+ ) {
2098
+ nodes {
2099
+ id
2100
+ value
2101
+ type
2102
+ description
2103
+ trackingType
2104
+ service {
2105
+ integrationName
2106
+ }
2107
+ source
2108
+ status
2109
+ owners {
2110
+ email
2111
+ }
2112
+ teams {
2113
+ name
2114
+ }
2115
+ attributeValues {
2116
+ name
2117
+ attributeKey {
2118
+ name
2119
+ }
2120
+ }
2121
+ }
2122
+ }
2123
+ }
2124
+ `,wn=V`
2125
+ query TranscendCliCookies(
2126
+ $first: Int!
2127
+ $offset: Int!
2128
+ $airgapBundleId: ID!
2129
+ $status: ConsentTrackerStatus
2130
+ ) {
2131
+ cookies(
2132
+ first: $first
2133
+ offset: $offset
2134
+ filterBy: { status: $status }
2135
+ input: { airgapBundleId: $airgapBundleId }
2136
+ orderBy: [
2137
+ { field: createdAt, direction: ASC }
2138
+ { field: name, direction: ASC }
2139
+ ]
2140
+ useMaster: false
2141
+ ) {
2142
+ nodes {
2143
+ id
2144
+ name
2145
+ isRegex
2146
+ description
2147
+ trackingPurposes
2148
+ service {
2149
+ integrationName
2150
+ }
2151
+ source
2152
+ status
2153
+ owners {
2154
+ email
2155
+ }
2156
+ teams {
2157
+ name
2158
+ }
2159
+ attributeValues {
2160
+ name
2161
+ attributeKey {
2162
+ name
2163
+ }
2164
+ }
2165
+ }
2166
+ }
2167
+ }
2168
+ `,Tn=V`
2169
+ query TranscendCliFetchConsentManagerId {
2170
+ consentManager {
2171
+ consentManager {
2172
+ id
2173
+ }
2174
+ }
2175
+ }
2176
+ `,En=V`
2177
+ query TranscendCliFetchConsentManager {
2178
+ consentManager {
2179
+ consentManager {
2180
+ id
2181
+ bundleURL
2182
+ testBundleURL
2183
+ configuration {
2184
+ domains
2185
+ consentPrecedence
2186
+ unknownRequestPolicy
2187
+ unknownCookiePolicy
2188
+ syncEndpoint
2189
+ telemetryPartitioning
2190
+ signedIabAgreement
2191
+ syncGroups
2192
+ partition
2193
+ }
2194
+ partition {
2195
+ partition
2196
+ }
2197
+ }
2198
+ }
2199
+ }
2200
+ `,Dn=V`
2201
+ query TranscendCliFetchConsentManagerTheme($airgapBundleId: ID!) {
2202
+ consentManagerTheme(input: { airgapBundleId: $airgapBundleId }) {
2203
+ theme {
2204
+ primaryColor
2205
+ fontColor
2206
+ privacyPolicy
2207
+ prompt
2208
+ }
2209
+ }
2210
+ }
2211
+ `,On=V`
2212
+ mutation TranscendCliCreateConsentManager($privacyCenterId: ID!) {
2213
+ createConsentManager(input: { privacyCenterId: $privacyCenterId }) {
2214
+ consentManager {
2215
+ id
2216
+ }
2217
+ }
2218
+ }
2219
+ `,kn=V`
2220
+ mutation TranscendCliUpdateConsentManager(
2221
+ $airgapBundleId: ID!
2222
+ $version: String!
2223
+ ) {
2224
+ updateConsentManager(id: $airgapBundleId, input: { version: $version }) {
2225
+ clientMutationId
2226
+ }
2227
+ }
2228
+ `,An=V`
2229
+ mutation TranscendCliUpdateConsentManagerToLatest(
2230
+ $airgapBundleId: ID!
2231
+ $bundleType: ConsentBundleType!
2232
+ ) {
2233
+ updateConsentManagerToLatestVersion(
2234
+ id: $airgapBundleId
2235
+ input: { bundleType: $bundleType }
2236
+ ) {
2237
+ clientMutationId
2238
+ }
2239
+ }
2240
+ `,jn=V`
2241
+ mutation TranscendCliDeployConsentManager(
2242
+ $airgapBundleId: ID!
2243
+ $bundleType: ConsentBundleType!
2244
+ ) {
2245
+ deployConsentManagerBundle(
2246
+ id: $airgapBundleId
2247
+ input: { bundleType: $bundleType }
2248
+ ) {
2249
+ clientMutationId
2250
+ }
2251
+ }
2252
+ `,Mn=V`
2253
+ mutation TranscendCliUpdateConsentManagerDomains(
2254
+ $airgapBundleId: ID!
2255
+ $domains: [String!]!
2256
+ ) {
2257
+ updateConsentManagerDomains(
2258
+ input: { id: $airgapBundleId, domains: $domains }
2259
+ ) {
2260
+ clientMutationId
2261
+ }
2262
+ }
2263
+ `,Nn=V`
2264
+ mutation TranscendCliUpdateConsentManagerPartition(
2265
+ $airgapBundleId: ID!
2266
+ $partitionId: ID!
2267
+ ) {
2268
+ updateConsentManagerPartition(
2269
+ input: { id: $airgapBundleId, partitionId: $partitionId }
2270
+ ) {
2271
+ clientMutationId
2272
+ }
2273
+ }
2274
+ `,Pn=V`
2275
+ mutation TranscendCliUpdateLoadOptions($input: UpdateLoadOptionsInput!) {
2276
+ updateLoadOptions(input: $input) {
2277
+ clientMutationId
2278
+ }
2279
+ }
2280
+ `,Fn=V`
2281
+ mutation TranscendCliToggleUnknownRequestPolicy(
2282
+ $input: ToggleUnknownRequestPolicyInput!
2283
+ ) {
2284
+ toggleUnknownRequestPolicy(input: $input) {
2285
+ clientMutationId
2286
+ }
2287
+ }
2288
+ `,In=V`
2289
+ mutation TranscendCliToggleUnknownCookiePolicy(
2290
+ $input: ToggleUnknownCookiePolicyInput!
2291
+ ) {
2292
+ toggleUnknownCookiePolicy(input: $input) {
2293
+ clientMutationId
2294
+ }
2295
+ }
2296
+ `,Ln=V`
2297
+ mutation TranscendCliToggleTelemetryPartitionStrategy(
2298
+ $input: ToggleTelemetryPartitionStrategyInput!
2299
+ ) {
2300
+ toggleTelemetryPartitioning(input: $input) {
2301
+ clientMutationId
2302
+ }
2303
+ }
2304
+ `,Rn=V`
2305
+ mutation TranscendCliToggleConsentPrecedence(
2306
+ $input: ToggleConsentPrecedenceInput!
2307
+ ) {
2308
+ toggleConsentPrecedence(input: $input) {
2309
+ clientMutationId
2310
+ }
2311
+ }
2312
+ `,zn=V`
2313
+ mutation TranscendCliUpdateConsentManagerTheme(
2314
+ $input: UpdateConsentManagerThemeInput!
2315
+ ) {
2316
+ updateConsentManagerTheme(input: $input) {
2317
+ clientMutationId
2318
+ }
2319
+ }
2320
+ `,Bn=V`
2321
+ mutation TranscendCliUpdateConsentExperience($input: UpdateExperienceInput!) {
2322
+ updateExperience(input: $input) {
2323
+ clientMutationId
2324
+ }
2325
+ }
2326
+ `,Vn=V`
2327
+ mutation TranscendCliCreateConsentExperience($input: CreateExperienceInput!) {
2328
+ createExperience(input: $input) {
2329
+ clientMutationId
2330
+ }
2331
+ }
2332
+ `,Hn=V`
2333
+ mutation TranscendCliCreateConsentPartition(
2334
+ $input: CreateConsentPartitionInput!
2335
+ ) {
2336
+ createConsentPartition(input: $input) {
2337
+ clientMutationId
2338
+ }
2339
+ }
2340
+ `,Un=V`
2341
+ query TranscendCliConsentManagerAnalyticsData($input: AnalyticsInput!) {
2342
+ analyticsData(input: $input) {
2343
+ series {
2344
+ name
2345
+ points {
2346
+ key
2347
+ value
2348
+ }
2349
+ }
2350
+ }
2351
+ }
2352
+ `,Wn=V`
2353
+ query TranscendCliBusinessEntities($first: Int!, $offset: Int!) {
2354
+ businessEntities(
2355
+ first: $first
2356
+ offset: $offset
2357
+ orderBy: [
2358
+ { field: createdAt, direction: ASC }
2359
+ { field: title, direction: ASC }
2360
+ ]
2361
+ useMaster: false
2362
+ ) {
2363
+ nodes {
2364
+ id
2365
+ title
2366
+ description
2367
+ dataProtectionOfficerName
2368
+ dataProtectionOfficerEmail
2369
+ address
2370
+ headquarterCountry
2371
+ headquarterSubDivision
2372
+ attributeValues {
2373
+ name
2374
+ attributeKey {
2375
+ name
2376
+ }
2377
+ }
2378
+ }
2379
+ }
2380
+ }
2381
+ `,Gn=V`
2382
+ mutation TranscendCliCreateBusinessEntity(
2383
+ $input: CreateBusinessEntityInput!
2384
+ ) {
2385
+ createBusinessEntity(input: $input) {
2386
+ businessEntity {
2387
+ id
2388
+ title
2389
+ description
2390
+ dataProtectionOfficerName
2391
+ dataProtectionOfficerEmail
2392
+ address
2393
+ headquarterCountry
2394
+ headquarterSubDivision
2395
+ attributeValues {
2396
+ name
2397
+ attributeKey {
2398
+ name
2399
+ }
2400
+ }
2401
+ }
2402
+ }
2403
+ }
2404
+ `,Kn=V`
2405
+ mutation TranscendCliUpdateBusinessEntities(
2406
+ $input: [UpdateBusinessEntityInput!]!
2407
+ ) {
2408
+ updateBusinessEntities(input: { businessEntities: $input }) {
2409
+ clientMutationId
2410
+ }
2411
+ }
2412
+ `,qn=V`
2413
+ query TranscendCliActions($first: Int!, $offset: Int!) {
2414
+ actions(
2415
+ first: $first
2416
+ offset: $offset
2417
+ useMaster: false
2418
+ orderBy: [{ field: type, direction: ASC }]
2419
+ ) {
2420
+ nodes {
2421
+ id
2422
+ type
2423
+ skipSecondaryIfNoFiles
2424
+ skipDownloadableStep
2425
+ requiresReview
2426
+ regionList
2427
+ regionDetectionMethod
2428
+ waitingPeriod
2429
+ }
2430
+ }
2431
+ }
2432
+ `,Jn=V`
2433
+ mutation TranscendCliUpdateAction($input: UpdateActionInput!) {
2434
+ updateAction(input: $input) {
2435
+ clientMutationId
2436
+ }
2437
+ }
2438
+ `,Yn=V`
2439
+ query TranscendCliGlobalActionItems(
2440
+ $first: Int!
2441
+ $offset: Int!
2442
+ $filterBy: GlobalActionItemFiltersInput!
2443
+ ) {
2444
+ globalActionItems(first: $first, offset: $offset, filterBy: $filterBy) {
2445
+ nodes {
2446
+ ids
2447
+ count
2448
+ teams {
2449
+ id
2450
+ name
2451
+ }
2452
+ customerExperienceActionItemIds
2453
+ users {
2454
+ id
2455
+ email
2456
+ }
2457
+ collections {
2458
+ title
2459
+ id
2460
+ }
2461
+ dueDate
2462
+ priority
2463
+ titles
2464
+ resolved
2465
+ notes
2466
+ links
2467
+ type
2468
+ additionalContexts {
2469
+ iconOverride
2470
+ requestId
2471
+ dataSiloId
2472
+ requestType
2473
+ latestAirgapVersion
2474
+ parentTitle
2475
+ }
2476
+ attributeValues {
2477
+ name
2478
+ attributeKey {
2479
+ name
2480
+ }
2481
+ }
2482
+ }
2483
+ }
2484
+ }
2485
+ `,Xn=V`
2486
+ mutation TranscendCliUpdateActionItems($input: UpdateActionItemsInput!) {
2487
+ updateActionItems(input: $input) {
2488
+ clientMutationId
2489
+ }
2490
+ }
2491
+ `,Zn=V`
2492
+ mutation TranscendCliCreateActionItems($input: [CreateActionItemsInput!]!) {
2493
+ createActionItems(input: $input) {
2494
+ clientMutationId
2495
+ }
2496
+ }
2497
+ `,Qn=V`
2498
+ query TranscendCliFetchPrivacyCenterId($url: String!) {
2499
+ privacyCenter(lookup: { url: $url }) {
2500
+ id
2501
+ }
2502
+ }
2503
+ `,$n=V`
2504
+ query TranscendCliDeployedPrivacyCenterUrl {
2505
+ organization {
2506
+ deployedPrivacyCenterUrl
2507
+ }
2508
+ }
2509
+ `,er=V`
2510
+ query TranscendCliFetchPrivacyCenters($url: String!) {
2511
+ privacyCenter(lookup: { url: $url }) {
2512
+ id
2513
+ url
2514
+ isDisabled
2515
+ showPrivacyRequestButton
2516
+ showPolicies
2517
+ showTrackingTechnologies
2518
+ showCookies
2519
+ showDataFlows
2520
+ showConsentManager
2521
+ showManageYourPrivacy
2522
+ showMarketingPreferences
2523
+ locales
2524
+ defaultLocale
2525
+ preferBrowserDefaultLocale
2526
+ supportEmail
2527
+ replyToEmail
2528
+ useNoReplyEmailAddress
2529
+ useCustomEmailDomain
2530
+ transformAccessReportJsonToCsv
2531
+ themeStr
2532
+ }
2533
+ }
2534
+ `,tr=V`
2535
+ mutation TranscendCliUpdatePrivacyCenter($input: UpdatePrivacyCenterInput!) {
2536
+ updatePrivacyCenter(input: $input) {
2537
+ clientMutationId
2538
+ }
2539
+ }
2540
+ `,nr=V`
2541
+ mutation TranscendCliDetermineLoginMethod($email: String!) {
2542
+ determineLoginMethod(input: { email: $email }) {
2543
+ loginMethod {
2544
+ email
2545
+ sombraPublicKey
2546
+ }
2547
+ }
2548
+ }
2549
+ `,rr=V`
2550
+ mutation TranscendCliLogin(
2551
+ $email: String!
2552
+ $password: String!
2553
+ $publicKey: String!
2554
+ ) {
2555
+ login(
2556
+ input: { email: $email, password: $password }
2557
+ publicKey: $publicKey
2558
+ ) {
2559
+ user {
2560
+ roles {
2561
+ id
2562
+ organization {
2563
+ name
2564
+ id
2565
+ uri
2566
+ parentOrganizationId
2567
+ }
2568
+ }
2569
+ }
2570
+ }
2571
+ }
2572
+ `,ir=V`
2573
+ mutation TranscendCliAssumeRole($id: ID!, $publicKey: String!) {
2574
+ assumeRole(id: $id, publicKey: $publicKey) {
2575
+ clientMutationId
2576
+ }
2577
+ }
2578
+ `,ar=V`
2579
+ query TranscendCliLargeLanguageModels(
2580
+ $first: Int!
2581
+ $offset: Int!
2582
+ $filterBy: LargeLanguageModelFiltersInput
2583
+ ) {
2584
+ largeLanguageModels(
2585
+ first: $first
2586
+ orderBy: [
2587
+ { field: name, direction: ASC }
2588
+ { field: client, direction: ASC }
2589
+ { field: isTranscendHosted, direction: ASC }
2590
+ ]
2591
+ offset: $offset
2592
+ filterBy: $filterBy
2593
+ ) {
2594
+ nodes {
2595
+ id
2596
+ name
2597
+ client
2598
+ isTranscendHosted
2599
+ }
2600
+ }
2601
+ }
2602
+ `,or=V`
2603
+ query TranscendCliAgents(
2604
+ $first: Int!
2605
+ $offset: Int!
2606
+ $filterBy: AgentFiltersInput
2607
+ ) {
2608
+ agents(
2609
+ first: $first
2610
+ offset: $offset
2611
+ filterBy: $filterBy
2612
+ orderBy: [
2613
+ { field: createdAt, direction: ASC }
2614
+ { field: name, direction: ASC }
2615
+ ]
2616
+ ) {
2617
+ nodes {
2618
+ id
2619
+ name
2620
+ agentId
2621
+ instructions
2622
+ description
2623
+ codeInterpreterEnabled
2624
+ retrievalEnabled
2625
+ prompt {
2626
+ title
2627
+ }
2628
+ largeLanguageModel {
2629
+ name
2630
+ client
2631
+ }
2632
+ teams {
2633
+ name
2634
+ }
2635
+ owners {
2636
+ email
2637
+ }
2638
+ agentFunctions {
2639
+ name
2640
+ }
2641
+ agentFiles {
2642
+ name
2643
+ }
2644
+ }
2645
+ }
2646
+ }
2647
+ `,sr=V`
2648
+ mutation TranscendCliCreateAgent($input: CreateAgentInput!) {
2649
+ createAgent(input: $input) {
2650
+ agent {
2651
+ id
2652
+ name
2653
+ agentId
2654
+ }
2655
+ }
2656
+ }
2657
+ `,cr=V`
2658
+ mutation TranscendCliUpdateAgents($input: UpdateAgentsInput!) {
2659
+ updateAgents(input: $input) {
2660
+ clientMutationId
2661
+ }
2662
+ }
2663
+ `,lr=V`
2664
+ query TranscendCliAgentFiles(
2665
+ $first: Int!
2666
+ $offset: Int!
2667
+ $filterBy: AgentFileFiltersInput
2668
+ ) {
2669
+ agentFiles(
2670
+ first: $first
2671
+ offset: $offset
2672
+ filterBy: $filterBy
2673
+ orderBy: [
2674
+ { field: createdAt, direction: ASC }
2675
+ { field: name, direction: ASC }
2676
+ ]
2677
+ ) {
2678
+ nodes {
2679
+ id
2680
+ name
2681
+ description
2682
+ fileId
2683
+ size
2684
+ purpose
2685
+ initialFileName
2686
+ }
2687
+ }
2688
+ }
2689
+ `,ur=V`
2690
+ mutation TranscendCliCreateAgentFile($input: CreateAgentFileInput!) {
2691
+ createAgentFile(input: $input) {
2692
+ agentFile {
2693
+ id
2694
+ name
2695
+ fileId
2696
+ initialFileName
2697
+ }
2698
+ }
2699
+ }
2700
+ `,dr=V`
2701
+ mutation TranscendCliUpdateAgentFiles($input: UpdateAgentFilesInput!) {
2702
+ updateAgentFiles(input: $input) {
2703
+ clientMutationId
2704
+ }
2705
+ }
2706
+ `,fr=V`
2707
+ query TranscendCliAgentFunctions($first: Int!, $offset: Int!) {
2708
+ agentFunctions(
2709
+ first: $first
2710
+ offset: $offset
2711
+ orderBy: [
2712
+ { field: createdAt, direction: ASC }
2713
+ { field: name, direction: ASC }
2714
+ ]
2715
+ ) {
2716
+ nodes {
2717
+ id
2718
+ name
2719
+ description
2720
+ parameters
2721
+ }
2722
+ }
2723
+ }
2724
+ `,pr=V`
2725
+ mutation TranscendCliCreateAgentFunction($input: CreateAgentFunctionInput!) {
2726
+ createAgentFunction(input: $input) {
2727
+ agentFunction {
2728
+ id
2729
+ name
2730
+ }
2731
+ }
2732
+ }
2733
+ `,mr=V`
2734
+ mutation TranscendCliUpdateAgentFunctions(
2735
+ $input: UpdateAgentFunctionsInput!
2736
+ ) {
2737
+ updateAgentFunctions(input: $input) {
2738
+ clientMutationId
2739
+ }
2740
+ }
2741
+ `,hr=V`
2742
+ query TranscendCliVendors($first: Int!, $offset: Int!) {
2743
+ vendors(
2744
+ first: $first
2745
+ offset: $offset
2746
+ useMaster: false
2747
+ isExportCsv: true
2748
+ orderBy: [
2749
+ { field: createdAt, direction: ASC }
2750
+ { field: title, direction: ASC }
2751
+ ]
2752
+ ) {
2753
+ nodes {
2754
+ id
2755
+ title
2756
+ description
2757
+ dataProcessingAgreementLink
2758
+ contactName
2759
+ contactEmail
2760
+ contactPhone
2761
+ address
2762
+ headquarterCountry
2763
+ headquarterSubDivision
2764
+ websiteUrl
2765
+ businessEntity {
2766
+ title
2767
+ }
2768
+ teams {
2769
+ name
2770
+ }
2771
+ owners {
2772
+ email
2773
+ }
2774
+ attributeValues {
2775
+ attributeKey {
2776
+ name
2777
+ }
2778
+ name
2779
+ }
2780
+ }
2781
+ }
2782
+ }
2783
+ `,gr=V`
2784
+ mutation TranscendCliCreateVendor($input: CreateVendorInput!) {
2785
+ createVendor(input: $input) {
2786
+ vendor {
2787
+ id
2788
+ title
2789
+ }
2790
+ }
2791
+ }
2792
+ `,_r=V`
2793
+ mutation TranscendCliUpdateVendor($input: UpdateVendorsInput!) {
2794
+ updateVendors(input: $input) {
2795
+ clientMutationId
2796
+ }
2797
+ }
2798
+ `,vr=V`
2799
+ query TranscendCliDataSubCategories($first: Int!, $offset: Int!) {
2800
+ dataSubCategories(
2801
+ first: $first
2802
+ offset: $offset
2803
+ isExportCsv: true
2804
+ useMaster: false
2805
+ ) {
2806
+ nodes {
2807
+ id
2808
+ name
2809
+ category
2810
+ description
2811
+ regex
2812
+ teams {
2813
+ name
2814
+ }
2815
+ owners {
2816
+ email
2817
+ }
2818
+ attributeValues {
2819
+ attributeKey {
2820
+ name
2821
+ }
2822
+ name
2823
+ }
2824
+ }
2825
+ }
2826
+ }
2827
+ `,yr=V`
2828
+ mutation TranscendCliCreateDataSubCategory(
2829
+ $input: CreateDataInventorySubCategoryInput!
2830
+ ) {
2831
+ createDataSubCategory(input: $input) {
2832
+ dataSubCategory {
2833
+ id
2834
+ name
2835
+ category
2836
+ }
2837
+ }
2838
+ }
2839
+ `,br=V`
2840
+ mutation TranscendCliUpdateDataSubCategories(
2841
+ $input: UpdateDataSubCategoriesInput!
2842
+ ) {
2843
+ updateDataSubCategories(input: $input) {
2844
+ clientMutationId
2845
+ }
2846
+ }
2847
+ `,xr=V`
2848
+ query TranscendCliProcessingPurposeSubCategories(
2849
+ $first: Int!
2850
+ $offset: Int!
2851
+ ) {
2852
+ processingPurposeSubCategories(
2853
+ first: $first
2854
+ offset: $offset
2855
+ isExportCsv: true
2856
+ useMaster: false
2857
+ ) {
2858
+ nodes {
2859
+ id
2860
+ name
2861
+ purpose
2862
+ description
2863
+ teams {
2864
+ name
2865
+ }
2866
+ owners {
2867
+ email
2868
+ }
2869
+ attributeValues {
2870
+ attributeKey {
2871
+ name
2872
+ }
2873
+ name
2874
+ }
2875
+ }
2876
+ }
2877
+ }
2878
+ `,Sr=V`
2879
+ mutation TranscendCliCreateProcessingPurposeSubCategory(
2880
+ $input: CreateProcessingPurposeCategoryInput!
2881
+ ) {
2882
+ createProcessingPurposeSubCategory(input: $input) {
2883
+ processingPurposeSubCategory {
2884
+ id
2885
+ name
2886
+ purpose
2887
+ }
2888
+ }
2889
+ }
2890
+ `,Cr=V`
2891
+ mutation TranscendCliUpdateProcessingPurposeSubCategories(
2892
+ $input: UpdateProcessingPurposeSubCategoriesInput!
2893
+ ) {
2894
+ updateProcessingPurposeSubCategories(input: $input) {
2895
+ clientMutationId
2896
+ }
2897
+ }
2898
+ `,wr=V`
2899
+ query TranscendCliProcessingActivities($first: Int!, $offset: Int!) {
2900
+ processingActivities(first: $first, offset: $offset, useMaster: false) {
2901
+ nodes {
2902
+ id
2903
+ title
2904
+ description
2905
+ securityMeasureDetails
2906
+ controllerships
2907
+ storageRegions {
2908
+ countrySubDivision
2909
+ country
2910
+ }
2911
+ transferRegions {
2912
+ countrySubDivision
2913
+ country
2914
+ }
2915
+ retentionType
2916
+ retentionPeriod
2917
+ dataProtectionImpactAssessmentLink
2918
+ dataProtectionImpactAssessmentStatus
2919
+ attributeValues {
2920
+ name
2921
+ attributeKey {
2922
+ name
2923
+ }
2924
+ }
2925
+ dataSilos {
2926
+ title
2927
+ }
2928
+ dataSubjects {
2929
+ type
2930
+ }
2931
+ teams {
2932
+ name
2933
+ }
2934
+ owners {
2935
+ email
2936
+ }
2937
+ processingPurposeSubCategories {
2938
+ name
2939
+ purpose
2940
+ }
2941
+ dataSubCategories {
2942
+ name
2943
+ category
2944
+ }
2945
+ saaSCategories {
2946
+ title
2947
+ }
2948
+ }
2949
+ }
2950
+ }
2951
+ `,Tr=V`
2952
+ mutation TranscendCliCreateProcessingActivity(
2953
+ $input: CreateProcessingActivityInput!
2954
+ ) {
2955
+ createProcessingActivity(input: $input) {
2956
+ processingActivity {
2957
+ id
2958
+ title
2959
+ }
2960
+ }
2961
+ }
2962
+ `,Er=V`
2963
+ mutation TranscendCliUpdateProcessingActivities(
2964
+ $input: UpdateProcessingActivitiesInput!
2965
+ ) {
2966
+ updateProcessingActivities(input: $input) {
2967
+ clientMutationId
2968
+ }
2969
+ }
2970
+ `,Dr=V`
2971
+ query TranscendSombraVersion {
2972
+ organization {
2973
+ sombra {
2974
+ version
2975
+ }
2976
+ }
2977
+ }
2978
+ `,Or=V`
2979
+ query TranscendCliSiloDiscoveryResults($first: Int!, $offset: Int!) {
2980
+ siloDiscoveryResults(first: $first, offset: $offset) {
2981
+ nodes {
2982
+ title
2983
+ resourceId
2984
+ country
2985
+ countrySubDivision
2986
+ plaintextContext
2987
+ status
2988
+ containsSensitiveData
2989
+ suggestedCatalog {
2990
+ title
2991
+ }
2992
+ plugin {
2993
+ dataSilo {
2994
+ title
2995
+ }
2996
+ }
2997
+ }
2998
+ }
2999
+ }
3000
+ `,K=`[NONE]`,kr=`[APPLY VALUE TO ALL ROWS]`,Ar=`<blank>`,jr=[`email`,`coreIdentifier`];let q=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 Mr={[q.Email]:!1,[q.CoreIdentifier]:!0,[q.RequestType]:!0,[q.SubjectType]:!0,[q.RequestStatus]:!1,[q.CreatedAt]:!1,[q.DataSiloIds]:!1,[q.Locale]:!1,[q.Country]:!1,[q.CountrySubDivision]:!1},Nr={[q.RequestType]:!0,[q.SubjectType]:!0},Pr=z.type({columnNames:z.partial(N(q,()=>z.string)),identifierNames:z.record(z.string,z.string),attributeNames:z.record(z.string,z.string),requestTypeToRequestAction:z.record(z.string,I(g)),subjectTypeToSubjectName:z.record(z.string,z.string),languageToLocale:z.record(z.string,I(B)),regionToCountry:z.record(z.string,I({...f,[K]:K})),regionToCountrySubDivision:z.record(z.string,I({...p,[K]:K})),statusToRequestStatus:z.record(z.string,I({...c,[K]:K}))}),Fr=z.type({id:z.string,link:z.string,rowIndex:z.number,coreIdentifier:z.string,attemptedAt:z.string}),Ir=z.type({failingRequests:z.array(z.record(z.string,z.any)),successfulRequests:z.array(Fr),duplicateRequests:z.array(z.type({rowIndex:z.number,coreIdentifier:z.string,attemptedAt:z.string}))});function Lr(e,t){return ve(e.toLowerCase(),t.toLowerCase())||ve(t.toLowerCase(),e.toLowerCase())}function Rr(e,t,n,r){let i=e.filter(e=>Lr(t.toLowerCase(),e.toLowerCase()));return[...i,new H.Separator,...n?[]:[K],...r?[kr]:[],...e.filter(e=>!i.includes(e))]}async function zr(e,t,n){H.registerPrompt(`autocomplete`,_e);let r=e.map(e=>e||`<blank>`).filter(e=>!n[e]);if(r.length===0)return n;let i=await H.prompt(r.map(e=>({name:e,message:`Map value of: ${e}`,type:`autocomplete`,default:t.find(t=>Lr(e,t)),source:(e,n)=>n?t.filter(e=>typeof e==`string`&&Lr(n,e)):t})));return{...n,...M(i,e=>typeof e==`string`?e:Object.values(e)[0])}}function Br(e){return e.split(`,`).map(e=>e.trim()).filter(e=>e)}const Vr=z.type({key:z.string,values:z.array(z.string)});function Hr(e){let t=e.map(e=>{let[t,n]=e.trim().split(`:`);if(!n)throw Error(`Expected attributes in key:value1;value2,key2:value3;value4`);return{key:t,values:n.split(`;`)}});return r.info(R.magenta(`Attributes to apply to all requests:`)),r.info(R.magenta(JSON.stringify(t,null,2))),t}function Ur(e,t,n={columns:!0}){let r=ye(ae(e,`utf-8`),n);return P(z.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 A(e.map(e=>e[t]||``).flat())}async function Wr(e){let t=A(e.map(e=>Object.keys(e)).flat()),n=e,i=!0;for(;i;){let{filterColumnName:e}=await H.prompt([{name:`filterColumnName`,message:`If you need to filter the list of requests to import, choose the column to filter on. Currently ${n.length} rows.`,type:`list`,default:t,choices:[K,...t]}]);if(i=K!==e,i){let r=J(n,e),{valuesToKeep:i}=await H.prompt([{name:`valuesToKeep`,message:`Keep rows matching this value`,type:`checkbox`,default:t,choices:r}]);n=n.filter(t=>i.includes(t[e]))}}return r.info(R.magenta(`Importing ${n.length} requests`)),n}async function Gr(e,{promptRunId:t,promptRunMessages:n=[],...r}){let{addMessagesToPromptRun:{promptRun:i}}=await $(e,on,{input:{...r,...t,promptRunMessages:n.map(({content:e,...t})=>({...t,message:e}))}});return i.id}function Kr(e,t){return new ge(`${e}/graphql`,{headers:{...t,version:n}})}function Y(e,t){return Kr(e,{Authorization:`Bearer ${t}`})}async function qr(e,t,n){let{organization:i}=await $(Y(e,t),ct),{customerUrl:a}=i.sombra,o=process.env.SOMBRA_URL||a;if(!process.env.SOMBRA_URL&&[`https://sombra-reverse-tunnel.transcend.io`,`https://sombra-reverse-tunnel.us.transcend.io`].includes(a))throw Error(`It looks like your Sombra customer ingress URL has not been set up. Please follow the instructions here to configure networking for Sombra: https://docs.transcend.io/docs/articles/sombra/deploying/customizing-sombra/networking`);return r.info(R.green(`Using sombra: ${o}`)),be.extend({prefixUrl:o,headers:{Authorization:`Bearer ${t}`,...n?{"X-Sombra-Authorization":`Bearer ${n}`}:{}}})}function Jr(e){return be.extend({prefixUrl:e})}async function Yr(e,{id:t,bundleType:n}){await $(e,jn,{airgapBundleId:t,bundleType:n})}async function Xr(e,{id:t,bundleType:n}){await $(e,An,{airgapBundleId:t,bundleType:n})}async function Zr(e,t){let{plugins:n,totalCount:i}=(await $(e,at,{dataSiloId:t,type:`DATA_SILO_DISCOVERY`})).plugins;return i===0&&(r.error(`No active data silo plugins found for this data silo.`),process.exit(1)),n[0]}async function Qr(e,t={}){let n=[],r=0,i=!1;do{let{globalActionItems:{nodes:a}}=await $(e,Yn,{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}async function $r(e){let t=[],n=0,r=!1;do{let{actions:{nodes:i}}=await $(e,qn,{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))}async function ei(e,t={}){let n=[],r=0,i=!1;do{let{agentFiles:{nodes:a}}=await $(e,lr,{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))}async function ti(e){let t=[],n=0,r=!1;do{let{agentFunctions:{nodes:i}}=await $(e,fr,{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))}async function ni(e,t={}){let n=[],r=0,i=!1;do{let{agents:{nodes:a}}=await $(e,or,{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))}async function ri(e){let t=[],n=0,r=!1;do{let{assessmentForms:{nodes:i}}=await $(e,jt,{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 ii(e){let t=[],n=0,r=!1;do{let{assessmentFormTemplates:{nodes:i}}=await $(e,Ft,{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 ai(e,t){let{createPrivacyCenterAccessTokens:{nodes:n}}=await $(e,rt,{input:{records:t}});return n.map(e=>e.token)}async function oi(e,t,n,r=10){let i=0;n&&n(0);let a=[];return await W(S(t,50),async t=>{let r=(await ai(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}async function si(e){let t=[],n=0,r=!1;do{let{attributeKeys:{nodes:i}}=await $(e,lt,{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 ci(e,t){r.info(R.magenta(`Fetching all attribute values for ${t}...`));let n=[],i=0,a=!1;do{let{attributeValues:{nodes:r}}=await $(e,mn,{first:100,offset:i,attributeKeyId:t});n.push(...r),i+=100,a=r.length===100}while(a);return n.sort((e,t)=>e.name.localeCompare(t.name))}const li=[o.MultiSelect,o.SingleSelect];async function ui(e){r.info(R.magenta(`Fetching all attributes...`));let t=[],n=0,i=!1;do{let{attributeKeys:{nodes:r}}=await $(e,un,{first:100,offset:n});t.push(...await Promise.all(r.map(async t=>({...t,values:li.includes(t.type)?await ci(e,t.id):[]})))),n+=100,i=r.length===100}while(i);return t.sort((e,t)=>e.name.localeCompare(t.name))}async function di(e){let t=[],n=0,r=!1;do{let{businessEntities:{nodes:i}}=await $(e,Wn,{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 fi(e){let{consentManager:{consentManager:t}}=await $(e,En);return t}async function X(e,t){let{consentManager:{consentManager:n}}=await $(e,Tn,{},{},t);return n.id}async function pi(e){let t=[],n=0,r=!1;do{let{experiences:{nodes:i}}=await $(e,vn,{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 mi=function(e){return e.Hourly=`1h`,e.Daily=`1d`,e}({});async function hi(e,t){let{analyticsData:{series:n}}=await $(e,Un,{input:t});return n}async function gi(e,t){let{consentManagerTheme:{theme:n}}=await $(e,Dn,{airgapBundleId:t});return n}async function _i(e,t=l.Live){let n=[],r=0,i=await X(e),a=!1;do{let{cookies:{nodes:o}}=await $(e,wn,{first:20,offset:r,airgapBundleId:i,status:t});n.push(...o),r+=20,a=o.length===20}while(a);return n.sort((e,t)=>e.name.localeCompare(t.name))}async function vi(e){let t=[],n=0,r=!1;do{let{dataSubCategories:{nodes:i}}=await $(e,vr,{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 yi(e,t=l.Live){let n=[],r=0,i=await X(e),a=!1;do{let{dataFlows:{nodes:o}}=await $(e,Cn,{first:20,offset:r,airgapBundleId:i,status:t,...t===l.NeedsReview?{showZeroActivity:!0}:{}});n.push(...o),r+=20,a=o.length===20}while(a);return n.sort((e,t)=>e.value.localeCompare(t.value))}async function bi(e){let{translatedMessages:t}=await $(e,Tt,{});return t}async function xi(e){let{organization:t}=await $(e,$n);return t.deployedPrivacyCenterUrl}async function Si(e,t){let n=t;n||=await xi(e);let{privacyCenter:r}=await $(e,Qn,{url:n});return r.id}async function Ci(e){let{privacyCenterPolicies:t}=await $(e,_t,{url:await xi(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}async function wi(e){let t=[],n=0,r=!1;do{let{preferenceTopics:{nodes:i}}=await $(e,Pt,{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 Ti(e){let{privacyCenter:{themeStr:t,...n}}=await $(e,er,{url:await xi(e)});return[{...n,theme:JSON.parse(t)}]}async function Ei(e){let t=[],n=0,r=!1;do{let{processingActivities:{nodes:i}}=await $(e,wr,{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 Di(e){let t=[],n=0,r=!1;do{let{processingPurposeSubCategories:{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))}async function Oi(e,{includeDeleted:t=!1}={}){let n=[],r=0,i=!1;do{let{purposes:{nodes:a}}=await $(e,Nt,{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 ki(e){let[t,n]=await Promise.all([Oi(e),wi(e)]);return t.map(e=>{let t=n.filter(t=>t.purpose.trackingType===e.trackingType);return{...e,topics:t}})}async function Ai(e,{requestId:t}){let n=[],r=0,i=!1;do{let{requestEnrichers:{nodes:a}}=await $(e,Dt,{first:50,offset:r,requestId:t});n.push(...a),r+=50,i=a.length===50}while(i);return n}async function ji(e,{requestId:t,requestIds:n,updatedAtBefore:r,updatedAtAfter:i}){let a=n??(t?[t]:void 0),o=[],s=0,c=!1;do{let{requestIdentifiers:{nodes:t}}=await $(e,en,{first:50,offset:s,requestIds:a,updatedAtBefore:r?r.toISOString():void 0,updatedAtAfter:i?i.toISOString():void 0});o.push(...t),s+=50,c=t.length===50}while(c);return o}const Mi=`7.180.0`,Ni=z.type({id:z.string,name:z.string,value:z.string,type:I(d)}),Pi=z.type({identifiers:z.array(Ni)});async function Fi(e){let{organization:{sombra:{version:t}}}=await $(e,Dr);if(t&&xe.lt(t,Mi))throw Error(`Please upgrade Sombra to ${Mi} or greater to use this command.`)}async function Ii(e,t,{requestId:n,skipSombraCheck:r=!1}){let i=[],a=0,o=!1;r||await Fi(e);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:r}=P(Pi,e);i.push(...r),a+=50,o=r.length===50}while(o);return i}const Li=z.type({title:z.string,name:z.string,consent:z.boolean,enrichedPreferences:z.array(z.type({topic:z.string,selectValues:z.array(z.type({id:z.string,name:z.string,preferenceOption:z.type({id:z.string,slug:z.string,title:z.type({defaultMessage:z.string})})})),selectValue:z.type({id:z.string,name:z.string}),preferenceTopic:z.type({title:z.type({defaultMessage:z.string}),id:z.string,slug:z.string}),name:z.string,id:z.string,booleanValue:z.boolean}))}),Ri=z.intersection([z.type({id:z.string,createdAt:z.string,email:z.string,type:I(g),link:z.string,isSilent:z.boolean,origin:I(v),isTest:z.boolean,coreIdentifier:z.string,details:z.string,locale:I(B),status:I(y),subjectType:z.string,country:z.union([z.null,I(f)]),countrySubDivision:z.union([z.null,I(p)]),attributeValues:z.array(z.type({id:z.string,attributeKey:z.type({name:z.string,id:z.string}),name:z.string}))}),z.partial({daysRemaining:z.union([z.null,z.number]),successfullyCompletedAt:z.union([z.null,z.string]),purpose:Li})]);async function zi(e,t){let{requests:{totalCount:n}}=await $(e,yt,{filterBy:t});return n}async function Q(e,{actions:t=[],statuses:n=[],origins:i=[],text:a,createdAtBefore:o,createdAtAfter:s,updatedAtBefore:c,updatedAtAfter:l,isTest:u,isSilent:d,isClosed:f,requestIds:p=[],onPage:m}={}){let h=!!m,g={text:a,type:t.length>0?t:void 0,status:n.length>0?n:void 0,origin:i.length>0?i:void 0,isTest:u,isSilent:d,isClosed:f,createdAtBefore:o?o.toISOString():void 0,createdAtAfter:s?s.toISOString():void 0,updatedAtBefore:c?c.toISOString():void 0,updatedAtAfter:l?l.toISOString():void 0},_=new Date().getTime(),v=new U.SingleBar({},U.Presets.shades_classic);if(!h){r.info(R.magenta(`Fetching requests...`));let{requests:{totalCount:t}}=await $(e,yt,{filterBy:g});t>100&&(r.info(R.magenta(`Fetching ${t} requests`)),v.start(t,0))}let y=[],b=0,x,S=!1;do{let{requests:{nodes:t,pageInfo:n}}=await $(e,bt,{first:100,after:x,filterBy:g});h?await m(t):y.push(...t),b+=t.length,x=n.endCursor??void 0,h||v.update(b),S=n.hasNextPage}while(S);if(!h){v.stop();let e=new Date().getTime()-_;r.info(R.green(`Completed fetching of ${b} request in "${e/1e3}" seconds.`))}if(h)return[];let C=y;return p&&p.length>0&&(C=C.filter(e=>p.includes(e.id)),r.info(R.green(`Filtered down to ${C.length} requests based on ${p.length} provided IDs.`))),C}async function Bi(e){let t=[],n=0,r=!1;do{let{teams:{nodes:i}}=await $(e,Xt,{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 Vi(e){let t=[],n=0,r=!1;do{let{users:{nodes:i}}=await $(e,tn,{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))}async function Hi(e){let t=[],n=0,r=!1;do{let{vendors:{nodes:i}}=await $(e,hr,{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 Ui(e,t){let n=[],r=0,i=!1;do{let{apiKeys:{nodes:a}}=await $(e,et,{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 Wi({"api-keys":e=[],"data-silos":t=[]},n,i=!1){r.info(R.magenta(`Fetching ${i?`all`:e.length} API keys...`));let a=e.map(({title:e})=>e),o=A(t.map(e=>e[`api-key-title`]).filter(e=>!!e)),s=[...o,...a],c=await Ui(n,i?void 0:[...o,...a]),l=E(c,`title`),u=C(s,c.map(({title:e})=>e));return u.length>0&&(r.info(R.red(`Failed to find API keys "${u.join(`", "`)}"! Make sure these API keys are created at: https://app.transcend.io/infrastructure/api-keys`)),process.exit(1)),l}async function Gi(e){let t=[],n=0,r=!1;do{let{catalogs:{nodes:i}}=await $(e,He,{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 Ki(e){let t=await Gi(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 qi(e){let{internalSubjects:t}=await $(e,qe);return t}async function Ji({"data-silos":e=[],"data-subjects":t=[],"processing-activities":n=[],enrichers:i=[]},a,o=!1){let s=A([...w(e.map(e=>e[`data-subjects`]||[])||[]),...w(n.map(({dataSubjectTypes:e})=>e??[])??[]),...w(i.map(e=>e[`data-subjects`]||[])||[]),...t.map(e=>e.type)]);if(s.length===0&&!o)return{};let c=await qi(a),l=E(c,`type`),u=C(s,c.map(({type:e})=>e));return u.length>0&&(r.info(R.magenta(`Creating ${u.length} new data subjects...`)),await G(u,async e=>{r.info(R.magenta(`Creating data subject ${e}...`));let{createSubject:t}=await $(a,Je,{type:e,skipPublish:!0});r.info(R.green(`Created data subject ${e}!`)),l[e]=t.subject})),l}function Yi(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 Xi(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)}async function Zi(e){let t=[],n=0,r=!1;do{let{promptGroups:{nodes:i}}=await $(e,Rt,{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 Qi(e){let t=[],n=0,r=!1;do{let{promptPartials:{nodes:i}}=await $(e,Lt,{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 $i(e,{text:t,titles:n=[],ids:r=[]}={}){let i=[],a=0,o=!1;do{let{prompts:{nodes:s}}=await $(e,It,{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 ea(e,{promptTitles:t=[],promptIds:n=[]}={}){let{promptsWithVariables:r}=await $(e,zt,{input:{...t.length>0?{promptTitles:t}:{},...n.length>0?{promptIds:n}:{}}});return r}async function ta(e,t){let n=[],r=0,i=!1;do{let{promptThreads:{nodes:a}}=await $(e,gt,{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 na(e,{requestId:t,dataSiloId:n,requestStatuses:r,statuses:i}){let{requestDataSilos:{totalCount:a}}=await $(e,Kt,{first:1,offset:0,filterBy:{dataSiloId:n,requestId:t,status:i,requestStatus:r}});return a}async function ra(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,Kt,{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 ia(e,{requestId:t,dataSiloId:n}){let r=await ra(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 aa(e,{dataSiloId:t}){let{listReducedRequestsForDataSilo:{totalCount:n}}=await $(e,Yt,{input:{dataSiloId:t,isResolved:!1}});return n}async function oa(e,t,n){let r=[],i=null,a=!1;do{let{bulkRequestFiles:{nodes:o,pageInfo:s}}=await $(e,rn,{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 sa(e,{email:t,password:n}){let{determineLoginMethod:{loginMethod:r}}=await $(e,nr,{email:t}),i=await e.rawRequest(rr,{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 ca(e,{email:t,roleId:n}){let{determineLoginMethod:{loginMethod:r}}=await $(e,nr,{email:t,userId:n});await e.rawRequest(ir,{id:n,publicKey:r.sombraPublicKey})}async function la(e,t){let{createApiKey:{apiKey:n}}=await $(e,tt,{input:t});return n}async function ua(e,t){await $(e,nt,{id:t})}const da=z.type({dependsOnQuestionReferenceId:z.string,comparisonOperator:z.union([z.literal(s.IsEqualTo),z.literal(s.IsNotEqualTo),z.literal(s.IsOneOf),z.literal(s.IsNotOneOf),z.literal(s.Contains)]),comparisonOperands:z.array(z.string)}),fa=z.type({dependsOnQuestionReferenceId:z.string,comparisonOperator:z.union([z.literal(s.IsNotShown),z.literal(s.IsShown)])}),pa=z.union([da,fa]),ma=z.recursion(`AssessmentNestedRule`,e=>z.intersection([z.type({logicOperator:I(m)}),z.partial({rules:z.array(pa),nestedRules:z.array(e)})])),ha=z.partial({action:I(a),rule:pa,nestedRule:ma});function ga(e){return P(ha,e)}const _a=z.intersection([z.partial({riskAssignment:z.partial({riskLevelId:z.string,riskMatrixRowId:z.string,riskMatrixColumnId:z.string})}),z.type({comparisonOperands:z.array(z.string),comparisonOperator:I(s)})]);function va(e){return P(_a,e)}async function ya(e,{titles:t,pageSize:n,ids:i=[],gql:a=Ne,integrationNames:o=[]}){r.info(R.magenta(`Fetching ${i.length===0?`all`:i.length} Data Silos...`));let s=[],c=0,l=!1;do{let{dataSilos:{nodes:r}}=await $(e,a,{filterBy:{ids:i.length>0?i:void 0,type:o.length>0?o:void 0,titles:t},first:n,offset:c});s.push(...r),c+=n,l=r.length===n}while(l);return r.info(R.green(`Found a total of ${s.length} data silo${i.length>0?` matching IDs ${i.join(`,`)}`:``}s${o.length>0?` matching integrationNames ${o.join(`,`)}`:``}`)),s.sort((e,t)=>e.title.localeCompare(t.title))}async function ba(e,t,{debug:n,includeGuessedCategories:i,pageSize:a}){let o=[],s=0,c=!1;do try{n&&r.log(R.magenta(`Pulling in subdatapoints for offset ${s}`));let{subDataPoints:{nodes:l}}=await $(e,i?ke:De,{first:a,filterBy:{dataPoints:[t]},offset:s});o.push(...l),s+=a,c=l.length===a,n&&r.log(R.green(`Pulled in subdatapoints for offset ${s} for dataPointId=${t}`))}catch(e){throw r.error(R.red(`An error fetching subdatapoints for offset ${s} for dataPointId=${t}`)),e}while(c);return O(o,`name`)}async function xa(e,t,{debug:n,pageSize:i,skipSubDatapoints:a,includeGuessedCategories:o}){let s=[],c=0,l=!1;do{n&&r.info(R.magenta(`Fetching datapoints with offset: ${c}`));let{dataPoints:{nodes:u}}=await $(e,Te,{first:i,filterBy:{dataSilos:[t]},offset:c});n&&r.info(R.magenta(`Fetched ${u.length} datapoints at offset: ${c}`)),a||(await W(u,async t=>{try{n&&r.info(R.magenta(`Fetching subdatapoints for ${t.name} for datapoint offset ${c}`));let i=await ba(e,t.id,{pageSize:1e3,debug:n,includeGuessedCategories:o});s.push({...t,subDataPoints:i.sort((e,t)=>e.name.localeCompare(t.name))}),n&&r.info(R.green(`Successfully fetched subdatapoints for ${t.name}`))}catch(e){throw r.error(R.red(`An error fetching subdatapoints for ${t.name} datapoint offset ${c}`)),e}},{concurrency:5}),n&&r.info(R.green(`Fetched all subdatapoints for page of datapoints at offset: ${c}`))),c+=i,l=u.length===i}while(l);return s.sort((e,t)=>e.name.localeCompare(t.name))}async function Sa(e,{ids:t,pageSize:n,titles:i,debug:a,skipDatapoints:o,skipSubDatapoints:s,includeGuessedCategories:c,integrationNames:l}){let u=[],d=await ya(e,{titles:i,ids:t,integrationNames:l,pageSize:n,gql:Fe});return o||await G(d,async(t,i)=>{r.info(R.magenta(`[${i+1}/${d.length}] Fetching data silo - ${t.title}`));let o=await xa(e,t.id,{debug:a,pageSize:n,skipSubDatapoints:s,includeGuessedCategories:c});a&&r.info(R.green(`[${i+1}/${d.length}] Successfully fetched datapoint for - ${t.title}`)),u.push([t,o])}),r.info(R.green(`Successfully fetched all ${d.length} data silo configurations`)),u}async function Ca(e,t,{pageSize:n,dataSubjectsByName:i,apiKeysByTitle:a}){let o=!1,s=new Date().getTime();r.info(R.magenta(`Syncing "${e.length}" data silos...`));let c=E(await ya(t,{titles:e.map(({title:e})=>e),pageSize:n}),`title`),l=e.filter(({title:e})=>!c[e]);l.length>0&&(r.info(R.magenta(`Creating "${l.length}" data silos that did not exist...`)),await G(S(l,20),async e=>{let{createDataSilos:{dataSilos:n}}=await $(t,Le,{input:e.map(e=>({name:e[`outer-type`]||e.integrationName,title:e.title,country:e.country,countrySubDivision:e.countrySubDivision}))});n.forEach(e=>{c[e.title]=e})}),r.info(R.green(`Successfully created "${l.length}" data silos!`)));let u=S(e,20);await G(u,async(e,n)=>{r.info(R.magenta(`[Batch ${n+1}/${u.length}] Syncing "${e.length}" data silos`)),await $(t,Ie,{input:{dataSilos:e.map(e=>({id:c[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`]?a[e[`api-key-title`]].id:void 0,dataSubjectBlockListIds:e[`data-subjects`]?Yi(e[`data-subjects`],i):void 0,attributes:e.attributes,businessEntityTitles:e.businessEntityTitles,notifyEmailAddress:e[`email-settings`]?.[`notify-email-address`],promptAVendorEmailSendFrequency:e[`email-settings`]?.[`send-frequency`],promptAVendorEmailSendType:e[`email-settings`]?.[`send-type`],promptAVendorEmailIncludeIdentifiersAttachment:e[`email-settings`]?.[`include-identifiers-attachment`],promptAVendorEmailCompletionLinkType:e[`email-settings`]?.[`completion-link-type`],manualWorkRetryFrequency:e[`email-settings`]?.[`manual-work-retry-frequency`]}))}}),r.info(R.green(`[Batch ${n+1}/${u.length}] Synced "${e.length}" data silos!`))});let d=new U.SingleBar({},U.Presets.shades_classic),f=e.filter(({datapoints:e=[]})=>e.length>0),p=e.map(({datapoints:e=[]})=>e.length).reduce((e,t)=>e+t,0);r.info(R.magenta(`Syncing "${p}" datapoints from "${f.length}" data silos...`)),d.start(p,0);let m=0;await W(f,async({datapoints:e,title:n})=>{e&&await G(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:c[n].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},s=(a.subDataPoints||[]).map(({name:e})=>e),l=s.filter((e,t)=>s.indexOf(e)!==t);if(l.length>0)r.info(R.red(`\nCannot update datapoint "${e.key}" as it has duplicate sub-datapoints with the same name: \n${l.join(`
3001
+ `)}`)),o=!0;else try{await $(t,Ae,a)}catch(t){r.info(R.red(`\nFailed to update datapoint "${e.key}" for data silo "${n}"! - \n${t.message}`)),o=!0}m+=1,d.update(m)})},{concurrency:10}),d.stop();let h=new Date().getTime()-s;return r.info(R.green(`Synced "${e.length}" data silos and "${p}" datapoints in "${h/1e3}" seconds!`)),{success:!o,dataSiloTitleToId:M(c,({id:e})=>e)}}async function wa(e,t){let n=!1;return r.info(R.magenta(`Syncing "${t.length}" data silo dependencies...`)),await G(S(t,20),async(t,i)=>{r.info(R.magenta(`[Batch ${i}/${t.length}] Updating "${t.length}" data silos...`));try{await $(e,Ie,{input:{dataSilos:t.map(([e,t])=>({id:e,dependedOnDataSiloTitles:t}))}}),r.info(R.green(`[Batch ${i+1}/${t.length}] Synced "${t.length}" data silos!`))}catch(e){n=!0,r.info(R.red(`[Batch ${i+1}/${t.length}] Failed to update "${t.length}" silos! - ${e.message}`))}}),!n}async function Ta(e,t){let n=[],r=0,i=!1;do{let{enrichers:{nodes:a}}=await $(e,Re,{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 Ea(e,{enricher:t,identifierByName:n,dataSubjectsByName:r}){let i=(await Ta(e,t.title)).find(({title:e})=>e===t.title),a=t[`data-subjects`]?.map(e=>{let t=r[e];if(!t)throw Error(`Failed to find a data subject with name: ${e}`);return t.id}),o=t[`input-identifier`],s=t[`privacy-actions`]||Object.values(g);i?await $(e,Ve,{input:{id:i.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:a,description:t.description||``,inputIdentifier:o?n[o].id:void 0,identifiers:t[`output-identifiers`].map(e=>n[e].id),...i.type===u.Sombra?{}:{actions:s}}}):o&&await $(e,Be,{input:{title:t.title,url:t.url,type:t.type||u.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:a,regionList:t.regionList,description:t.description||``,inputIdentifier:n[o].id,identifiers:t[`output-identifiers`].map(e=>n[e].id),actions:s}})}async function Da(e,t){let n=[],r=0,i=!1;do{let{templates:{nodes:a}}=await $(e,ot,{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 Oa(e,t){(await Da(t,e.title)).find(({title:t})=>t===e.title)||await $(t,st,{title:e.title})}function ka(e){return e.map(({country:e,countrySubDivision:t})=>({country:e,...t?{countrySubDivision:t}:{}}))}async function Aa(e,t={}){let{globalActionItemCollections:{nodes:n}}=await $(e,sn,{filterBy:{...t}});return n}async function ja(e){let t=[],n=0,r=!1;do{let{consentPartitions:{nodes:i}}=await $(e,yn,{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 Ma(e,t){let n=await X(e),i=!1,a=await ja(e);return await G(C(t.map(({name:e})=>e),a.map(({name:e})=>e)),async t=>{try{await $(e,Hn,{input:{id:n,name:t}}),r.info(R.green(`Successfully created consent partition: ${t}!`))}catch(e){r.error(R.red(`Failed to create consent partition: ${t}! - ${e.message}`)),i=!0}}),!i}async function Na(e){let t=[],n=0,r=!1;do{let{siloDiscoveryResults:{nodes:i}}=await $(e,Or,{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 Pa=[e.DataSilos,e.Enrichers,e.Templates,e.ApiKeys];async function Fa(t,{dataSiloIds:n,integrationNames:a,debug:o,resources:s=Pa,pageSize:c,skipDatapoints:u,includeGuessedCategories:d,skipSubDatapoints:f,trackerStatuses:p=Object.values(l)}){if(n.length>0&&a.length>0)throw Error(`Only 1 of integrationNames OR dataSiloIds can be provided`);r.info(R.magenta(`Fetching data with page size ${c}...`));let[m,h,_,v,y,x,S,C,T,O,k,A,j,M,N,P,F,ee,I,te,ne,re,ie,ae,oe,se,ce,le,ue,L,de,fe,z,pe]=await Promise.all([s.includes(e.DataSilos)||s.includes(e.DataSubjects)?qi(t):[],s.includes(e.ApiKeys)?Wi({},t,!0):[],s.includes(e.DataSilos)?Sa(t,{ids:n,integrationNames:a,pageSize:c,debug:o,includeGuessedCategories:d,skipDatapoints:u,skipSubDatapoints:f}):[],s.includes(e.Enrichers)?Ta(t):[],s.includes(e.DataFlows)?[...p.includes(l.Live)?await yi(t,l.Live):[],...p.includes(l.NeedsReview)?await yi(t,l.NeedsReview):[]]:[],s.includes(e.Cookies)?[...p.includes(l.Live)?await _i(t,l.Live):[],...p.includes(l.NeedsReview)?await _i(t,l.NeedsReview):[]]:[],s.includes(e.Attributes)?ui(t):[],s.includes(e.Templates)?Da(t):[],s.includes(e.Identifiers)?vc(t):[],s.includes(e.Actions)?$r(t):[],s.includes(e.BusinessEntities)?di(t):[],s.includes(e.ProcessingActivities)?Ei(t):[],s.includes(e.ConsentManager)?fi(t):void 0,s.includes(e.ConsentManager)?pi(t):[],s.includes(e.Prompts)?$i(t):[],s.includes(e.PromptPartials)?Qi(t):[],s.includes(e.PromptGroups)?Zi(t):[],s.includes(e.Agents)?ni(t):[],s.includes(e.AgentFunctions)?ti(t):[],s.includes(e.AgentFiles)?ei(t):[],s.includes(e.Vendors)?Hi(t):[],s.includes(e.DataCategories)?vi(t):[],s.includes(e.ProcessingPurposes)?Di(t):[],s.includes(e.ActionItems)?Qr(t,{type:[i.Onboarding]}):[],s.includes(e.ActionItemCollections)?Aa(t):[],s.includes(e.Teams)?Bi(t):[],s.includes(e.Policies)?Ci(t):[],s.includes(e.PrivacyCenters)?Ti(t):[],s.includes(e.Messages)?bi(t):[],s.includes(e.Partitions)?ja(t):[],s.includes(e.Assessments)?ri(t):[],s.includes(e.AssessmentTemplates)?ii(t):[],s.includes(e.Purposes)?ki(t):[],s.includes(e.SystemDiscovery)?Na(t):[]]),me=s.includes(e.ConsentManager)&&j?await gi(t,j.id):void 0,B={},he=w(_.map(([{apiKeys:e}])=>e.map(({title:e})=>e))),ge=Object.values(h).filter(({title:t})=>s.includes(e.ApiKeys)?!0:he.includes(t));if(ge.length>0&&s.includes(e.ApiKeys)&&(B[`api-keys`]=ge.map(({title:e})=>({title:e}))),L.length>0&&s.includes(e.Partitions)&&(B.partitions=L.map(({name:e,partition:t})=>({name:e,partition:t}))),j&&s.includes(e.ConsentManager)&&(B[`consent-manager`]={bundleUrls:{TEST:j.testBundleURL,PRODUCTION:j.bundleURL},domains:j.configuration.domains||void 0,partition:j.configuration.partition||void 0,consentPrecedence:j.configuration.consentPrecedence||void 0,unknownRequestPolicy:j.configuration.unknownRequestPolicy||void 0,unknownCookiePolicy:j.configuration.unknownCookiePolicy||void 0,syncEndpoint:j.configuration.syncEndpoint||void 0,telemetryPartitioning:j.configuration.telemetryPartitioning||void 0,signedIabAgreement:j.configuration.signedIabAgreement||void 0,syncGroups:j.configuration.syncGroups||void 0,theme:me?{primaryColor:me.primaryColor||void 0,fontColor:me.fontColor||void 0,privacyPolicy:me.privacyPolicy||void 0,prompt:me.prompt}:void 0,experiences:M.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}))}),de.length>0&&s.includes(e.Assessments)&&(B.assessments=de.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?ga(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=va(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||``}))}))),fe.length>0&&s.includes(e.AssessmentTemplates)&&(B[`assessment-templates`]=fe.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?ga(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=va(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}))),pe.length>0&&s.includes(e.SystemDiscovery)&&(B[`system-discovery`]=pe.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}))),N.length>0&&s.includes(e.Prompts)&&(B.prompts=N.map(({title:e,content:t})=>({title:e,content:t}))),P.length>0&&s.includes(e.PromptPartials)&&(B[`prompt-partials`]=P.map(({title:e,content:t})=>({title:e,content:t}))),F.length>0&&s.includes(e.PromptGroups)&&(B[`prompt-groups`]=F.map(({title:e,description:t,prompts:n})=>({title:e,description:t,prompts:n.map(({title:e})=>e)}))),se.length>0&&s.includes(e.Teams)&&(B.teams=se.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)}))),m.length>0&&s.includes(e.DataSubjects)&&(B[`data-subjects`]=m.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)}))),ce.length>0&&(B.policies=ce.map(({title:e,versions:t,disabledLocales:n})=>({title:e?.defaultMessage,content:t?.[0]?.content?.defaultMessage,disabledLocales:n}))),ue.length>0&&(B.messages=ue.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}),{})}))),le.length>0){let e=le[0];B[`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(k.length>0&&s.includes(e.BusinessEntities)&&(B[`business-entities`]=k.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}))),A.length>0&&s.includes(e.ProcessingActivities)&&(B[`processing-activities`]=A.map(({title:e,description:t,securityMeasureDetails:n,controllerships:r,storageRegions:i,transferRegions:a,retentionType:o,retentionPeriod:s,dataProtectionImpactAssessmentLink:c,dataProtectionImpactAssessmentStatus:l,attributeValues:u,dataSilos:d,dataSubjects:f,teams:p,owners:m,processingPurposeSubCategories:h,dataSubCategories:g,saaSCategories:_})=>({title:e,description:t,securityMeasureDetails:n??void 0,controllerships:r.length>0?r:void 0,storageRegions:i.length>0?ka(i):void 0,transferRegions:a.length>0?ka(a):void 0,retentionType:o,retentionPeriod:o===b.StatedPeriod?s:void 0,dataProtectionImpactAssessmentLink:c??void 0,dataProtectionImpactAssessmentStatus:l,attributes:u!==void 0&&u.length>0?Z(u):void 0,dataSiloTitles:d.length>0?d.map(({title:e})=>e):void 0,dataSubjectTypes:f.length>0?f.map(({type:e})=>e):void 0,teamNames:p.length>0?p.map(({name:e})=>e):void 0,ownerEmails:m.length>0?m.map(({email:e})=>e):void 0,processingSubPurposes:h.length>0?h.map(({name:e,purpose:t})=>({purpose:t,...e?{name:e}:{}})):void 0,dataSubCategories:g.length>0?g.map(({name:e,category:t})=>({category:t,...e?{name:e}:{}})):void 0,saaSCategories:_.length>0?_.map(({title:e})=>e):void 0}))),O.length>0&&s.includes(e.Actions)&&(B.actions=O.map(({type:e,skipSecondaryIfNoFiles:t,skipDownloadableStep:n,requiresReview:r,regionList:i,regionDetectionMethod:a,waitingPeriod:o})=>({type:e,...e===g.Erasure?{skipSecondaryIfNoFiles:t,skipDownloadableStep:n}:{},requiresReview:r,waitingPeriod:o,regionDetectionMethod:a,regionList:i.length>0?i:void 0}))),T.length>0&&s.includes(e.Identifiers)&&(B.identifiers=T.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}))),ee.length>0&&s.includes(e.Agents)&&(B.agents=ee.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}))),ae.length>0&&s.includes(e.ActionItems)&&(B[`action-items`]=ae.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}))),oe.length>0&&s.includes(e.ActionItemCollections)&&(B[`action-item-collections`]=oe.map(({title:e,description:t,hidden:n,productLine:r})=>({title:e,description:t||void 0,hidden:n,productLine:r}))),I.length>0&&s.includes(e.AgentFunctions)&&(B[`agent-functions`]=I.map(({name:e,description:t,parameters:n})=>({name:e,description:t,parameters:JSON.stringify(n)}))),te.length>0&&s.includes(e.AgentFiles)&&(B[`agent-files`]=te.map(({name:e,description:t,fileId:n,size:r,purpose:i})=>({name:e,description:t,fileId:n,size:r,purpose:i}))),ne.length>0&&s.includes(e.Vendors)&&(B.vendors=ne.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}))),re.length>0&&s.includes(e.DataCategories)&&(B[`data-categories`]=re.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}))),ie.length>0&&s.includes(e.ProcessingPurposes)&&(B[`processing-purposes`]=ie.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&&s.includes(e.DataFlows)&&(B[`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}))),x.length>0&&s.includes(e.Cookies)&&(B.cookies=x.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}))),S.length>0&&s.includes(e.Attributes)&&(B.attributes=S.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}))}))),z.length>0&&(B.purposes=z.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}))}:{}}))}))),n.length===0&&C.length>0&&s.includes(e.Templates)&&(B.templates=C.map(({title:e})=>({title:e}))),v.length>0&&s.includes(e.Enrichers)&&(B.enrichers=v.map(({title:e,url:t,type:n,inputIdentifier:r,identifiers:i,actions:a,testRegex:o,dataSubjects:s,expirationDuration:c,lookerQueryTitle:l,transitionRequestStatus:u,phoneNumbers:d,regionList:f})=>({title:e,url:t||void 0,type:n,"input-identifier":r?.name,"output-identifiers":i.map(({name:e})=>e),"privacy-actions":Object.values(g).length===a.length?void 0:a,testRegex:o||void 0,lookerQueryTitle:l||void 0,expirationDuration:parseInt(c,10),transitionRequestStatus:u||void 0,phoneNumbers:d&&d.length>0?d:void 0,regionList:f&&f.length>0?f:void 0,"data-subjects":s.map(({type:e})=>e)}))),_.length>0&&s.includes(e.DataSilos)){let e=E(m,`type`);B[`data-silos`]=_.map(([{title:t,description:n,url:r,type:i,outerType:a,apiKeys:o,notifyEmailAddress:s,identifiers:c,dependentDataSilos:l,owners:u,country:f,countrySubDivision:p,teams:m,subjectBlocklist:h,isLive:g,promptAVendorEmailSendFrequency:_,promptAVendorEmailSendType:v,promptAVendorEmailIncludeIdentifiersAttachment:y,promptAVendorEmailCompletionLinkType:b,manualWorkRetryFrequency:x,catalog:S,attributeValues:C,discoveredBy:w,businessEntities:T},O])=>({title:t,description:n,integrationName:i,"outer-type":a||void 0,url:r||void 0,"api-key-title":o[0]?.title,"identity-keys":c.filter(({isConnected:e})=>e).map(({name:e})=>e),...l.length>0?{"deletion-dependencies":l.map(({title:e})=>e)}:{},...u.length>0?{owners:u.map(({email:e})=>e)}:{},...m.length>0?{teams:m.map(({name:e})=>e)}:{},...w.length>0?{discoveredBy:w.map(({title:e})=>e)}:{},...T.length>0?{businessEntities:T.map(({title:e})=>e)}:{},country:f||void 0,countrySubDivision:p||void 0,disabled:!g,"data-subjects":h.length>0?Xi(h.map(({type:e})=>e),e):void 0,...S.hasAvcFunctionality?{"email-settings":{"notify-email-address":s||void 0,"send-frequency":_,"send-type":v,"include-identifiers-attachment":y,"completion-link-type":b,"manual-work-retry-frequency":x}}:{},attributes:C!==void 0&&C.length>0?Z(C):void 0,datapoints:O.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":D(E(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,...d&&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 B}async function Ia(e,t){let{reportPromptRun:{promptRun:n}}=await $(e,an,{input:{...t,promptRunMessages:t.promptRunMessages.map(({content:e,...t})=>({...t,message:e}))}});return n.id}async function La(e,t){await $(e,Ot,{requestEnricherId:t})}async function Ra(e,t){await $(e,_n,{input:t})}const za=[...Object.values(f),...Object.values(p)];async function Ba(e,{action:t,actionId:n,skipPublish:r=!1}){await $(e,Jn,{input:{id:n,skipSecondaryIfNoFiles:t.skipSecondaryIfNoFiles,skipDownloadableStep:t.skipDownloadableStep,requiresReview:t.requiresReview,waitingPeriod:t.waitingPeriod,skipPublish:r,regionList:t.regionBlockList?C(za,t.regionBlockList):t.regionList,regionDetectionMethod:t.regionDetectionMethod}})}async function Va(e,t){let{createActionItemCollection:n}=await $(e,cn,{input:{title:t.title,description:t.description||``,hidden:t.hidden||!1,productLine:t.productLine}});return n.created}async function Ha(e,t,n){await $(e,ln,{input:{id:n,title:t.title,description:t.description,hidden:t.hidden,productLine:t.productLine}})}async function Ua(e,t){let n=!1;r.info(R.magenta(`Syncing "${t.length}" action item collections...`));let i=E(await Aa(e),`title`);return await G(t.filter(e=>!i[e.title]),async t=>{try{await Va(e,t),r.info(R.green(`Successfully created action item collection "${t.title}"!`))}catch(e){n=!0,r.info(R.red(`Failed to create action item collection "${t.title}"! - ${e.message}`))}}),await G(t.map(e=>[e,i[e.title]?.id]).filter(e=>!!e[1]),async([t,i])=>{try{await Ha(e,t,i),r.info(R.green(`Successfully synced action item collection "${t.title}"!`))}catch(e){n=!0,r.info(R.red(`Failed to sync action item collection "${t.title}"! - ${e.message}`))}}),!n}async function Wa(e,t,n,r={}){await G(S(t,100),async t=>{await $(e,Zn,{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 Ga(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,Xn,{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 Ka({title:e,collections:t}){return`${e}-${t.map(e=>e.title).sort().join(`-`)}`}function qa({title:e,collections:t}){return`${e}-${t.sort().join(`-`)}`}async function Ja(e,t){let n=!1;r.info(R.magenta(`Syncing "${t.length}" actionItems...`));let i=t.some(e=>e.attributes&&e.attributes.length>0),[a,o,s]=await Promise.all([Qr(e),Aa(e),i?ui(e):[]]),c=E(o,`title`),l=E(a,Ka),u=E(s,`name`),d=E(a.filter(e=>!!e.customerExperienceActionItemIds),({customerExperienceActionItemIds:e})=>e[0]),f=A(t.map(e=>e.collections).flat()).filter(e=>!c[e]);if(f.length>0)return r.info(R.red(`Missing action item collections: "${f.join(`", "`)}" - please create them first!`)),!1;let p=t.filter(e=>!l[qa(e)]&&!d[e.customerExperienceActionItemId]);if(p.length>0)try{r.info(R.magenta(`Creating "${p.length}" actionItems...`)),await Wa(e,p,c,u),r.info(R.green(`Successfully created "${p.length}" actionItems!`))}catch(e){n=!0,r.info(R.red(`Failed to create action items! - ${e.message}`))}return await G(t.map(e=>[e,l[qa(e)]?.id||d[e.customerExperienceActionItemId]?.id]).filter(e=>!!e[1]),async([t,i])=>{try{await Ga(e,t,i,u),r.info(R.green(`Successfully synced action item "${t.title}"!`))}catch(e){n=!0,r.info(R.red(`Failed to sync action item "${t.title}"! - ${e.message}`))}}),!n}async function Ya(e,t){let{createAgentFile:n}=await $(e,ur,{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 Xa(e,t){await $(e,dr,{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 Za(e,t){r.info(R.magenta(`Syncing "${t.length}" agent files...`));let n=!1,i=E(await ei(e),`name`);await G(t.filter(e=>!i[e.name]),async t=>{try{let n=await Ya(e,t);i[n.name]=n,r.info(R.green(`Successfully synced agent file "${t.name}"!`))}catch(e){n=!0,r.info(R.red(`Failed to sync agent file "${t.name}"! - ${e.message}`))}});try{r.info(R.magenta(`Updating "${t.length}" agent files!`)),await Xa(e,t.map(e=>[e,i[e.name].id])),r.info(R.green(`Successfully synced "${t.length}" agent files!`))}catch(e){n=!0,r.info(R.red(`Failed to sync "${t.length}" agent files! - ${e.message}`))}return!n}async function Qa(e,t){let{createAgentFunction:n}=await $(e,pr,{input:{name:t.name,description:t.description,parameters:t.parameters,agentIds:[]}});return n.agentFunction}async function $a(e,t){await $(e,mr,{input:{agentFunctions:t.map(([e,t])=>({id:t,name:e.name,description:e.description,parameters:e.parameters}))}})}async function eo(e,t){r.info(R.magenta(`Syncing "${t.length}" agent functions...`));let n=!1,i=E(await ti(e),`name`);await G(t.filter(e=>!i[e.name]),async t=>{try{let n=await Qa(e,t);i[n.name]=n,r.info(R.green(`Successfully synced agent function "${t.name}"!`))}catch(e){n=!0,r.info(R.red(`Failed to sync agent function "${t.name}"! - ${e.message}`))}});try{r.info(R.magenta(`Updating "${t.length}" agent functions!`)),await $a(e,t.map(e=>[e,i[e.name].id])),r.info(R.green(`Successfully synced "${t.length}" agent functions!`))}catch(e){n=!0,r.info(R.red(`Failed to sync "${t.length}" agent functions! - ${e.message}`))}return!n}async function to(e,t){let{createAgent:n}=await $(e,sr,{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 no(e,t){await $(e,cr,{input:{agents:t.map(([e,t])=>({id:t,name:e.name,description:e.description,codeInterpreterEnabled:e.codeInterpreterEnabled,retrievalEnabled:e.retrievalEnabled}))}})}async function ro(e,t){r.info(R.magenta(`Syncing "${t.length}" agents...`));let n=!1,i=E(await ni(e),`name`);await G(t.filter(e=>!i[e.name]),async t=>{try{let n=await to(e,t);i[n.name]=n,r.info(R.green(`Successfully synced agent "${t.name}"!`))}catch(e){n=!0,r.info(R.red(`Failed to sync agent "${t.name}"! - ${e.message}`))}});try{r.info(R.magenta(`Updating "${t.length}" agents!`)),await no(e,t.map(e=>[e,i[e.name].id])),r.info(R.green(`Successfully synced "${t.length}" agents!`))}catch(e){n=!0,r.info(R.red(`Failed to sync "${t.length}" agents ! - ${e.message}`))}return!n}async function io(e,t,{existingAttribute:n,deleteExtraAttributeValues:i}){let a={name:t.name,enabledOn:t.resources},o;if(n)await $(e,gn,{attributeKeyId:n.id,description:n.isCustom?t.description:void 0,...a}),o=n.id;else{let{createAttributeKey:{attributeKey:n}}=await $(e,hn,{type:t.type,description:t.description,...a});o=n.id}let s=E(n?.values||[],`name`),{existingValues:c=[],newValues:l=[]}=T(t.values||[],e=>s[e.name]?`existingValues`:`newValues`),u=C((n?.values||[]).map(({name:e})=>e),(t.values||[]).map(({name:e})=>e));l.length>0&&(await $(e,dn,{input:l.map(({name:e,...t})=>({name:e,attributeKeyId:o,...t}))}),r.info(R.green(`Created ${l.length} attribute values`))),c.length>0&&(await $(e,fn,{input:c.map(({name:e,...t})=>({id:s[e].id,name:e,description:s[e].description,color:s[e].color,...t,attributeKeyId:o}))}),r.info(R.green(`Updated ${c.length} attribute values`))),u.length>0&&i&&(await W(u,async t=>{await $(e,pn,{id:s[t].id})},{concurrency:10}),r.info(R.green(`Deleted ${u.length} attribute values`)))}async function ao(e,t){let{createBusinessEntity:n}=await $(e,Gn,{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 oo(e,t){await G(S(t,100),async t=>{await $(e,Kn,{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 so(e,t){r.info(R.magenta(`Syncing "${t.length}" business entities...`));let n=!1,i=E(await di(e),`title`);await G(t.filter(e=>!i[e.title]),async t=>{try{let n=await ao(e,t);i[n.title]=n,r.info(R.green(`Successfully synced business entity "${t.title}"!`))}catch(e){n=!0,r.info(R.red(`Failed to sync business entity "${t.title}"! - ${e.message}`))}});try{r.info(R.magenta(`Updating "${t.length}" business entities!`)),await oo(e,t.map(e=>[e,i[e.title].id])),r.info(R.green(`Successfully synced "${t.length}" business entities!`))}catch(e){n=!0,r.info(R.red(`Failed to sync "${t.length}" business entities ! - ${e.message}`))}return!n}async function co(e){let t=[],n=0,r=!1;do{let{codePackages:{nodes:i}}=await $(e,pt,{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 lo(e){let t=[],n=0,r=!1;do{let{softwareDevelopmentKits:{nodes:i}}=await $(e,ut,{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 uo(e,t){let{createSoftwareDevelopmentKit:{softwareDevelopmentKit:n}}=await $(e,ft,{input:t});return r.info(R.green(`Successfully created software development kit "${t.name}"!`)),n}async function fo(e,t){let{updateSoftwareDevelopmentKits:{softwareDevelopmentKits:n}}=await $(e,dt,{input:{softwareDevelopmentKits:t}});return r.info(R.green(`Successfully updated ${t.length} software development kits!`)),n}async function po(e,t,n=20){let i=!1,a=[];r.info(R.magenta(`Syncing software development kits...`));let o=E(await lo(e),({name:e,codePackageType:t})=>JSON.stringify({name:e,codePackageType:t})),s=t.map(e=>[e,o[JSON.stringify({name:e.name,codePackageType:e.codePackageType})]?.id]),c=s.filter(([,e])=>!e).map(([e])=>e);try{r.info(R.magenta(`Creating "${c.length}" new software development kits...`)),await W(c,async t=>{let n=await uo(e,t);a.push(n)},{concurrency:n}),r.info(R.green(`Successfully synced ${c.length} software development kits!`))}catch(e){i=!0,r.info(R.red(`Failed to create software development kits! - ${e.message}`))}let l=s.filter(e=>!!e[1]),u=S(l,100);return r.info(R.magenta(`Updating "${l.length}" software development kits...`)),await G(u,async n=>{try{let t=await fo(e,n.map(([{codePackageType:e,...t},n])=>({...t,id:n})));a.push(...t),r.info(R.green(`Successfully updated "${l.length}" software development kits!`))}catch(e){i=!0,r.info(R.red(`Failed to update software development kits! - ${e.message}`))}r.info(R.green(`Synced "${t.length}" software development kits!`))}),{softwareDevelopmentKits:a,success:!i}}async function mo(e){let t=[],n=0,r=!1;do{let{repositories:{nodes:i}}=await $(e,Ze,{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 ho(e,t){let{createRepository:{repository:n}}=await $(e,$e,{input:t});return r.info(R.green(`Successfully created repository "${t.name}"!`)),n}async function go(e,t){let{updateRepositories:{repositories:n}}=await $(e,Qe,{input:{repositories:t}});return r.info(R.green(`Successfully updated ${t.length} repositories!`)),n}async function _o(e,t,n=20){let i=!1,a=[],o=E(await mo(e),`name`),s=t.map(e=>[e,o[e.name]?.id]),c=s.filter(([,e])=>!e).map(([e])=>e);try{r.info(R.magenta(`Creating "${c.length}" new repositories...`)),await W(c,async t=>{let n=await ho(e,t);a.push(n)},{concurrency:n}),r.info(R.green(`Successfully synced ${c.length} repositories!`))}catch(e){i=!0,r.info(R.red(`Failed to create repositories! - ${e.message}`))}let l=s.filter(e=>!!e[1]),u=S(l,100);return r.info(R.magenta(`Updating "${l.length}" repositories...`)),await G(u,async n=>{try{let t=await go(e,n.map(([e,t])=>({...e,id:t})));a.push(...t),r.info(R.green(`Successfully updated "${l.length}" repositories!`))}catch(e){i=!0,r.info(R.red(`Failed to update repositories! - ${e.message}`))}r.info(R.green(`Synced "${t.length}" repositories!`))}),{repositories:a,success:!i}}const vo=`%%%%`;async function yo(e,t){let{createCodePackage:{codePackage:n}}=await $(e,ht,{input:t});return r.info(R.green(`Successfully created code package "${t.name}"!`)),n}async function bo(e,t){let{updateCodePackages:{codePackages:n}}=await $(e,mt,{input:{codePackages:t}});return r.info(R.green(`Successfully updated ${t.length} code packages!`)),n}async function xo(e,t,n=20){let i=!1,[a,{softwareDevelopmentKits:o}]=await Promise.all([co(e),po(e,j(t.map(({type:e,softwareDevelopmentKits:t=[]})=>t.map(({name:t})=>({name:t,codePackageType:e}))).flat(),({name:e,codePackageType:t})=>`${e}${vo}${t}`),n),_o(e,j(t,`repositoryName`).map(({repositoryName:e})=>({name:e,url:`https://github.com/${e}`})))]),s=E(o,({name:e,codePackageType:t})=>`${e}${vo}${t}`),c=E(a,({name:e,type:t})=>`${e}${vo}${t}`),l=t.map(e=>[e,c[`${e.name}${vo}${e.type}`]?.id]),u=l.filter(([,e])=>!e).map(([e])=>e);try{r.info(R.magenta(`Creating "${u.length}" new code packages...`)),await W(u,async({softwareDevelopmentKits:t,...n})=>{await yo(e,{...n,...t?{softwareDevelopmentKitIds:A(t.map(({name:e})=>{let t=s[`${e}${vo}${n.type}`];if(!t)throw Error(`Failed to find SDK with name: "${e}"`);return t.id}))}:{}})},{concurrency:n}),r.info(R.green(`Successfully synced ${u.length} code packages!`))}catch(e){i=!0,r.info(R.red(`Failed to create code packages! - ${e.message}`))}let d=l.filter(e=>!!e[1]);return r.info(R.magenta(`Updating "${d.length}" code packages...`)),await G(S(d,100),async t=>{try{await bo(e,t.map(([{softwareDevelopmentKits:e,repositoryName:t,...n},r])=>({...n,...e?{softwareDevelopmentKitIds:A(e.map(({name:e})=>{let t=s[`${e}${vo}${n.type}`];if(!t)throw Error(`Failed to find SDK with name: "${e}"`);return t.id}))}:{},id:r}))),r.info(R.green(`Successfully updated "${t.length}" code packages!`))}catch(e){i=!0,r.info(R.red(`Failed to update code packages! - ${e.message}`))}}),r.info(R.green(`Synced "${t.length}" code packages!`)),!i}const So=`https://app.transcend.io/consent-manager/regional-experiences/purposes`;async function Co(e,t){let n=E(await pi(e),`name`),i=E(await Oi(e),`trackingType`);await W(t,async(t,a)=>{let o=t.purposes?.map((e,t)=>{let n=i[e.trackingType];if(!n)throw Error(`Invalid purpose trackingType provided at consentManager.experiences[${a}].purposes[${t}]: ${e.trackingType}. See list of valid purposes ${So}`);return n.id}),s=t.optedOutPurposes?.map((e,t)=>{let n=i[e.trackingType];if(!n)throw Error(`Invalid purpose trackingType provided at consentManager.experiences[${a}].optedOutPurposes[${t}]: ${e.trackingType}. See list of valid purposes ${So}`);return n.id}),c=n[t.name];c?(await $(e,Bn,{input:{id:c.id,name:t.displayName,regions:t.regions,operator:t.operator,onConsentExpiry:t.onConsentExpiry,consentExpiry:t.consentExpiry,displayPriority:t.displayPriority===c.displayPriority?void 0:t.displayPriority,viewState:t.viewState,purposes:o,optedOutPurposes:s,browserLanguages:t.browserLanguages,browserTimeZones:t.browserTimeZones}}),r.info(R.green(`Successfully synced consent experience "${t.name}"!`))):(await $(e,Vn,{input:{name:t.name,displayName:t.displayName,regions:t.regions,operator:t.operator,onConsentExpiry:t.onConsentExpiry||me.Prompt,consentExpiry:t.consentExpiry,displayPriority:t.displayPriority,viewState:t.viewState||pe.Hidden,purposes:o||[],optedOutPurposes:s||[],browserLanguages:t.browserLanguages,browserTimeZones:t.browserTimeZones}}),r.info(R.green(`Successfully created consent experience "${t.name}"!`)))},{concurrency:10})}async function wo(e,t){let n;try{n=await X(e,1)}catch(r){if(r.message.includes(`AirgapBundle not found`)){let r=await Si(e),{createConsentManager:i}=await $(e,On,{domains:t.domains,privacyCenterId:r});n=i.consentManager.id}else throw r}if(t.domains&&await $(e,Mn,{domains:t.domains,airgapBundleId:n}),t.partition){let r=(await ja(e)).find(e=>e.name===t.partition);if(!r)throw Error(`Partition "${t.partition}" not found. Please create the partition first.`);await $(e,Nn,{partitionId:r.id,airgapBundleId:n})}t.version&&await $(e,kn,{airgapBundleId:n,version:t.version}),t.signedIabAgreement&&await $(e,Pn,{input:{id:n,...t.signedIabAgreement?{signedIabAgreement:t.signedIabAgreement}:{}}}),t.unknownRequestPolicy&&await $(e,Fn,{input:{id:n,unknownRequestPolicy:t.unknownRequestPolicy}}),t.unknownRequestPolicy&&await $(e,In,{input:{id:n,unknownCookiePolicy:t.unknownCookiePolicy}}),t.telemetryPartitioning&&await $(e,Ln,{input:{id:n,strategy:t.telemetryPartitioning}}),t.consentPrecedence&&await $(e,Rn,{input:{id:n,consentPrecedence:t.consentPrecedence}}),t.experiences&&await Co(e,t.experiences),t.theme&&await $(e,zn,{input:{airgapBundleId:n,...t.theme}})}async function To(e,t){let n=await X(e);await G(S(t,100),async t=>{await $(e,Sn,{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 Eo(e,t){let n=!1;r.info(R.magenta(`Syncing "${t.length}" cookies...`));let i=t.filter(e=>t.filter(t=>e.name===t.name&&e.isRegex===t.isRegex).length>1);if(i.length>0)throw Error(`Failed to upload cookies as there were non-unique entries found: ${i.map(({name:e})=>e).join(`,`)}`);try{r.info(R.magenta(`Upserting "${t.length}" new cookies...`)),await To(e,t),r.info(R.green(`Successfully synced ${t.length} cookies!`))}catch(e){n=!0,r.info(R.red(`Failed to create cookies! - ${e.message}`))}return!n}async function Do(e,t){let{createDataCategory:n}=await $(e,yr,{input:{name:t.name,category:t.category,description:t.description}});return n.dataCategory}async function Oo(e,t){await $(e,br,{input:{dataSubCategories:t.map(([e,t])=>({id:t,description:e.description,attributes:e.attributes}))}})}async function ko(e,t){r.info(R.magenta(`Syncing "${t.length}" data categories...`));let n=!1,i=E(await vi(e),({name:e,category:t})=>`${e}:${t}`);await G(t.filter(e=>!i[`${e.name}:${e.category}`]),async t=>{try{let n=await Do(e,t);i[`${n.name}:${n.category}`]=n,r.info(R.green(`Successfully synced data category "${t.name}"!`))}catch(e){n=!0,r.info(R.red(`Failed to sync data category "${t.name}"! - ${e.message}`))}});try{r.info(R.magenta(`Updating "${t.length}" data categories!`)),await Oo(e,t.map(e=>[e,i[`${e.name}:${e.category}`].id])),r.info(R.green(`Successfully synced "${t.length}" data categories!`))}catch(e){n=!0,r.info(R.red(`Failed to sync "${t.length}" data categories ! - ${e.message}`))}return!n}async function Ao(e,t,n=!1){let r=await X(e);await G(S(t,100),async t=>{await $(e,xn,{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 jo(e,t,n=!1){let r=await X(e);await G(S(t,100),async t=>{await $(e,bn,{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 Mo(e,t,n){let i=!1;r.info(R.magenta(`Syncing "${t.length}" data flows...`));let a=t.filter(e=>t.filter(t=>e.value===t.value&&e.type===t.type).length>1);if(a.length>0)throw Error(`Failed to upload data flows as there were non-unique entries found: ${a.map(({value:e})=>e).join(`,`)}`);r.info(R.magenta(`Fetching data flows...`));let[o,s]=await Promise.all([yi(e,l.Live),yi(e,l.NeedsReview)]),c=[...o,...s],u=t.map(e=>[e,c.find(t=>e.value===t.value&&e.type===t.type)?.id]),d=u.filter(([,e])=>!e).map(([e])=>e);try{r.info(R.magenta(`Creating "${d.length}" new data flows...`)),await jo(e,d,n),r.info(R.green(`Successfully synced ${d.length} data flows!`))}catch(e){i=!0,r.info(R.red(`Failed to create data flows! - ${e.message}`))}let f=u.filter(e=>!!e[1]);try{r.info(R.magenta(`Updating "${f.length}" data flows...`)),await Ao(e,f,n),r.info(R.green(`Successfully updated "${f.length}" data flows!`))}catch(e){i=!0,r.info(R.red(`Failed to create data flows! - ${e.message}`))}return r.info(R.green(`Synced "${t.length}" data flows!`)),!i}async function No(e,{dataSubject:t,dataSubjectId:n,skipPublish:r=!1}){await $(e,Ye,{input:{id:n,title:t.title,adminDashboardDefaultSilentMode:t.adminDashboardDefaultSilentMode,actions:t.actions,skipPublish:r&&t.active===void 0}}),typeof t.active==`boolean`&&await $(e,Xe,{input:{id:n,active:t.active,skipPublish:r}})}async function Po(e,{identifier:t,dataSubjectsByName:n,identifierId:r,skipPublish:i=!1}){await $(e,Ke,{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}})}async function Fo(e,t){await G(S(t,100),async t=>{await $(e,Et,{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 Io(e,t){let n=!1;r.info(R.magenta(`Syncing "${t.length}" messages...`));let i=t.filter(e=>t.filter(t=>e.id===t.id).length>1);if(i.length>0)throw Error(`Failed to upload messages as there were non-unique entries found: ${i.map(({id:e})=>e).join(`,`)}`);try{r.info(R.magenta(`Upserting "${t.length}" new messages...`)),await Fo(e,t),r.info(R.green(`Successfully synced ${t.length} messages!`))}catch(e){n=!0,r.info(R.red(`Failed to create messages! - ${e.message}`))}return!n}async function Lo(e,t){let n=await Si(e);await G(S(t,100),async t=>{await $(e,vt,{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 Ro(e,t){let n=!1;r.info(R.magenta(`Syncing "${t.length}" policies...`));let i=t.filter(e=>t.filter(t=>e.title===t.title).length>1);if(i.length>0)throw Error(`Failed to upload policies as there were non-unique entries found: ${i.map(({title:e})=>e).join(`,`)}`);let a=E(await Ci(e),({title:e})=>e.defaultMessage);try{r.info(R.magenta(`Upserting "${t.length}" new policies...`)),await Lo(e,t.map(e=>[e,a[e.title]?.id])),r.info(R.green(`Successfully synced ${t.length} policies!`))}catch(e){n=!0,r.info(R.red(`Failed to create policies! - ${e.message}`))}return!n}async function zo(e,t){let n=!1;r.info(R.magenta(`Syncing privacy center...`));let i=await Si(e);try{await $(e,tr,{input:{privacyCenterId:i,transformAccessReportJsonToCsv:t.transformAccessReportJsonToCsv,useCustomEmailDomain:t.useCustomEmailDomain,useNoReplyEmailAddress:t.useNoReplyEmailAddress,replyToEmail:t.replyToEmail,supportEmail:t.supportEmail,preferBrowserDefaultLocale:t.preferBrowserDefaultLocale,defaultLocale:t.defaultLocale,locales:t.locales,showMarketingPreferences:t.showMarketingPreferences,showManageYourPrivacy:t.showManageYourPrivacy,showPolicies:t.showPolicies,showConsentManager:t.showConsentManager,showDataFlows:t.showDataFlows,showCookies:t.showCookies,showTrackingTechnologies:t.showTrackingTechnologies,showPrivacyRequestButton:t.showPrivacyRequestButton,isDisabled:t.isDisabled,...t.theme?{colorPalette:t.theme.colors,componentStyles:t.theme.componentStyles,textStyles:t.theme.textStyles}:{}}}),r.info(R.green(`Successfully synced privacy center!`))}catch(e){n=!0,r.info(R.red(`Failed to create privacy center! - ${e.message}`))}return!n}async function Bo(e,t){let{createProcessingActivity:n}=await $(e,Tr,{input:{title:t.title,description:t.description}});return n.processingActivity}async function Vo(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,Er,{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 Ho(e,t){let n=!1;r.info(R.magenta(`Syncing "${t.length}" processing activities...`));let i=E(await Ei(e),`title`),a=t.filter(e=>!i[e.title]);a.length>0&&r.info(R.magenta(`Creating "${a.length}" new processing activities...`)),await G(a,async t=>{try{let n=await Bo(e,t);i[n.title]=n,r.info(R.green(`Successfully created processing activity "${t.title}"!`))}catch(e){n=!0,r.info(R.red(`Failed to create processing activity "${t.title}"! - ${e.message}`))}});try{r.info(R.magenta(`Updating "${t.length}" processing activities!`)),await Vo(e,t.map(e=>[e,i[e.title]?.id])),r.info(R.green(`Successfully synced "${t.length}" processingActivities!`))}catch(e){n=!0,r.info(R.red(`Failed to sync "${t.length}" processingActivities! - ${e.message}`))}return!n}async function Uo(e,t){let{createProcessingPurposeSubCategory:n}=await $(e,Sr,{input:{name:t.name,purpose:t.purpose,description:t.description}});return n.processingPurposeSubCategory}async function Wo(e,t){await $(e,Cr,{input:{processingPurposeSubCategories:t.map(([e,t])=>({id:t,description:e.description,attributes:e.attributes}))}})}async function Go(e,t){r.info(R.magenta(`Syncing "${t.length}" processing purposes...`));let n=!1,i=E(await Di(e),({name:e,purpose:t})=>`${e}:${t}`);await G(t.filter(e=>!i[`${e.name}:${e.purpose}`]),async t=>{try{let n=await Uo(e,t);i[`${n.name}:${n.purpose}`]=n,r.info(R.green(`Successfully synced processing purpose "${t.name}"!`))}catch(e){n=!0,r.info(R.red(`Failed to sync processing purpose "${t.name}"! - ${e.message}`))}});try{r.info(R.magenta(`Updating "${t.length}" processing purposes!`)),await Wo(e,t.map(e=>[e,i[`${e.name}:${e.purpose}`].id])),r.info(R.green(`Successfully synced "${t.length}" processing purposes!`))}catch(e){n=!0,r.info(R.red(`Failed to sync "${t.length}" processing purposes ! - ${e.message}`))}return!n}async function Ko(e,t){let{createPrompt:{prompt:n}}=await $(e,Vt,{input:t});return r.info(R.green(`Successfully created prompt "${t.title}"!`)),n.id}async function qo(e,t){await $(e,Bt,{input:{prompts:t.map(([e,t])=>({...e,id:t}))}}),r.info(R.green(`Successfully updated ${t.length} prompts!`))}async function Jo(e,t,n=20){let i=!1;r.info(R.magenta(`Syncing "${t.length}" prompts...`));let a=E(await $i(e),`title`),o=t.map(e=>[e,a[e.title]?.id]),s=o.filter(([,e])=>!e).map(([e])=>e);try{r.info(R.magenta(`Creating "${s.length}" new prompts...`)),await W(s,async t=>{await Ko(e,t)},{concurrency:n}),r.info(R.green(`Successfully synced ${s.length} prompts!`))}catch(e){i=!0,r.info(R.red(`Failed to create prompts! - ${e.message}`))}let c=o.filter(e=>!!e[1]);try{r.info(R.magenta(`Updating "${c.length}" prompts...`)),await qo(e,c),r.info(R.green(`Successfully updated "${c.length}" prompts!`))}catch(e){i=!0,r.info(R.red(`Failed to create prompts! - ${e.message}`))}return r.info(R.green(`Synced "${t.length}" prompts!`)),!i}async function Yo(e,t){let{createVendor:n}=await $(e,gr,{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 Xo(e,t){await $(e,_r,{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 Zo(e,t){r.info(R.magenta(`Syncing "${t.length}" vendors...`));let n=!1,i=E(await Hi(e),`title`);await G(t.filter(e=>!i[e.title]),async t=>{try{let n=await Yo(e,t);i[n.title]=n,r.info(R.green(`Successfully synced vendor "${t.title}"!`))}catch(e){n=!0,r.info(R.red(`Failed to sync vendor "${t.title}"! - ${e.message}`))}});try{r.info(R.magenta(`Updating "${t.length}" vendors!`)),await Xo(e,t.map(e=>[e,i[e.title].id])),r.info(R.green(`Successfully synced "${t.length}" vendors!`))}catch(e){n=!0,r.info(R.red(`Failed to sync "${t.length}" vendors ! - ${e.message}`))}return!n}async function Qo(e,t,n){await G(S(n,1e3),async n=>{await $(e,it,{pluginId:t,rawResults:n})})}async function $o({requestActions:e,auth:n,requestIds:i,statuses:a=[y.Compiling,y.RequestMade,y.Delayed,y.Approving,y.Secondary,y.Enriching,y.Waiting,y.SecondaryApproving],createdAtAfter:o,createdAtBefore:s,updatedAtBefore:c,updatedAtAfter:l,concurrency:u=100,transcendUrl:d=t}){let f=Y(d,n),p=new Date().getTime(),m=new U.SingleBar({},U.Presets.shades_classic),h=await Q(f,{actions:e,statuses:a,createdAtBefore:s,createdAtAfter:o,updatedAtBefore:c,updatedAtAfter:l,isSilent:!1,requestIds:i});r.info(R.magenta(`Marking "${h.length}" as silent mode.`));let g=0;m.start(h.length,0),await W(h,async e=>{await $(f,Ct,{input:{id:e.id,isSilent:!0}}),g+=1,m.update(g)},{concurrency:u}),m.stop();let _=new Date().getTime()-p;return r.info(R.green(`Successfully marked ${g} requests as silent mode in "${_/1e3}" seconds!`)),h.length}async function es(e,t){let n=ee(q).filter(e=>!t.getValue(`columnNames`,e)),r=n.length===0?{}:await H.prompt(n.map(t=>{let n=k(t.replace(`ColumnName`,``)),r=Rr(e,n,Mr[t],!!Nr[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(F(r).map(([e,n])=>t.setValue(n,`columnNames`,e))),r}async function ts(e,t,{state:n,columnNameMap:i}){let a=e=>n.getValue(`columnNames`,e)||i[e],{internalSubjects:o}=await $(e,qe);r.info(R.magenta(`Determining mapping of columns for request action`));let s=await zr(J(t,a(q.RequestType)),Object.values(g),n.getValue(`requestTypeToRequestAction`));await n.setValue(s,`requestTypeToRequestAction`),r.info(R.magenta(`Determining mapping of columns for subject`));let l=await zr(J(t,a(q.SubjectType)),o.map(({type:e})=>e),n.getValue(`subjectTypeToSubjectName`));await n.setValue(l,`subjectTypeToSubjectName`),r.info(R.magenta(`Determining mapping of columns for locale`));let u=await zr(J(t,a(q.Locale)),Object.values(B),n.getValue(`languageToLocale`));await n.setValue(u,`languageToLocale`),r.info(R.magenta(`Determining mapping of columns for request status`)),r.info(R.magenta(`Determining mapping of columns for request status`));let d=a(q.RequestStatus),m=d===`[NONE]`?{}:await zr(J(t,d),[...Object.values(c),K],n.getValue(`statusToRequestStatus`));await n.setValue(m,`statusToRequestStatus`),r.info(R.magenta(`Determining mapping of columns for country`));let h=a(q.Country),_=h===`[NONE]`?{}:await zr(J(t,h),[...Object.values(f),K],n.getValue(`regionToCountry`));await n.setValue(_,`regionToCountry`),r.info(R.magenta(`Determining mapping of columns for country sub division`));let v=a(q.CountrySubDivision),y=v===`[NONE]`?{}:await zr(J(t,v),[...Object.values(p),K],n.getValue(`regionToCountrySubDivision`));await n.setValue(y,`regionToCountrySubDivision`)}const ns=z.record(z.string,z.array(z.intersection([z.type({value:z.string}),z.partial({name:z.string})]))),rs=z.intersection([z.type({email:z.string,attestedExtraIdentifiers:ns,coreIdentifier:z.string,requestType:I(g),subjectType:z.string}),z.partial({country:I(f),countrySubDivision:I(p),attributes:z.array(Vr),status:I(c),createdAt:Se,dataSiloIds:z.array(z.string),locale:I(B)})]);function is(e,t,n){if(t===d.Email)return e.toLowerCase();if(t===d.Phone){let t=e.replace(h,``).replace(/[()]/g,``).replace(/[–]/g,``).replace(/[:]/g,``).replace(/[‭‬]/g,``).replace(/[A-Za-z]/g,``);return t?t.startsWith(`+`)?t:`+${n}${t}`:``}return e}function as(e,t,{columnNameMap:n,identifierNameMap:r,attributeNameMap:i,requestAttributeKeys:a,defaultPhoneCountryCode:o=`1`}){let s=e=>t.getValue(`columnNames`,e)||n[e];return e.map(e=>{let n={};Object.entries(r).filter(([,e])=>e!==K).forEach(([t,r])=>{let i=Object.values(d).includes(t)?t:d.Custom,a=e[r];if(a){let e=is(a,i,o);e&&(n[i]||(n[i]=[]),n[i].push({value:e,name:t}))}});let c=[];Object.entries(i).filter(([,e])=>e!==K).forEach(([t,n])=>{let r=e[n];if(r){let e=a.find(e=>e.name===t)?.type===`MULTI_SELECT`;c.push({values:e?Br(r):r,key:t})}});let l=s(q.RequestType),u=s(q.SubjectType);return[e,{email:e[s(q.Email)],attestedExtraIdentifiers:n,attributes:c,coreIdentifier:e[s(q.CoreIdentifier)],requestType:l===`[APPLY VALUE TO ALL ROWS]`?t.getValue(`requestTypeToRequestAction`,Ar):t.getValue(`requestTypeToRequestAction`,e[l]),subjectType:u===`[APPLY VALUE TO ALL ROWS]`?t.getValue(`subjectTypeToSubjectName`,Ar):t.getValue(`subjectTypeToSubjectName`,e[u]),...s(q.Locale)!==`[NONE]`&&e[s(q.Locale)]?{locale:t.getValue(`languageToLocale`,e[s(q.Locale)])}:{},...s(q.Country)!==`[NONE]`&&e[s(q.Country)]?{country:t.getValue(`regionToCountry`,e[s(q.Country)])}:{},...s(q.CountrySubDivision)!==`[NONE]`&&e[s(q.CountrySubDivision)]?{countrySubDivision:t.getValue(`regionToCountrySubDivision`,e[s(q.CountrySubDivision)])}:{},...s(q.RequestStatus)!==`[NONE]`&&t.getValue(`statusToRequestStatus`,e[s(q.RequestStatus)])!==`[NONE]`&&e[s(q.RequestStatus)]?{status:t.getValue(`statusToRequestStatus`,e[s(q.RequestStatus)])}:{},...s(q.CreatedAt)!==`[NONE]`&&e[s(q.CreatedAt)]?{createdAt:new Date(e[s(q.CreatedAt)])}:{},...s(q.DataSiloIds)!==`[NONE]`&&e[s(q.DataSiloIds)]?{dataSiloIds:Br(e[s(q.DataSiloIds)])}:{}}]})}const os=z.type({defaultMessage:z.string,id:z.string}),ss=z.type({downloadKey:z.string,error:z.union([z.null,z.string]),mimetype:z.string,size:z.string,fileName:z.string,dataPoint:z.type({id:z.string,title:z.union([os,z.null]),description:z.union([os,z.null]),name:z.string,slug:z.string,encryption:z.union([I(x),z.null]),dataSilo:z.type({id:z.string,title:z.string,description:z.string,type:z.string,outerType:z.union([z.string,z.null])}),path:z.array(z.string)})}),cs=z.type({nodes:z.array(ss),totalCount:z.number,_links:z.partial({next:z.union([z.string,z.null]),previous:z.union([z.string,z.null])})});async function ls(e,{sombra:t,concurrency:n=5,limit:i=100}){r.info(R.magenta(`Pulling file metadata for ${e.length} requests`));let a=new Date().getTime(),o=new U.SingleBar({},U.Presets.shades_classic),s=0;o.start(e.length,0);let c=await W(e,async e=>{let n=[],r=!0,a=0;for(;r;){let o;try{o=P(cs,await t.get(`v1/data-subject-request/${e.id}/download-keys`,{searchParams:{limit:i,offset:a}}).json()),n.push(...o.nodes),a+=i,r=!!o._links.next&&o.nodes.length===i}catch(e){throw Error(`Received an error from server: ${e?.response?.body||e?.message}`)}}return s+=1,o.update(s),[e,n]},{concurrency:n});o.stop();let l=new Date().getTime()-a;return r.info(R.green(`Successfully downloaded file metadata ${e.length} requests in "${l/1e3}" seconds!`)),c}async function us(e,{requestId:t,sombra:n,onFileDownloaded:i,concurrency:a=20}){await W(e,async e=>{try{await n.get(`v1/files`,{searchParams:{downloadKey:e.downloadKey}}).buffer().then(t=>i(e,t))}catch(n){if(n?.response?.body?.includes(`fileMetadata#verify`)){r.error(R.red(`Failed to pull file for: ${e.fileName} (request:${t}) - JWT expired. This likely means that the file is no longer available. Try restarting the request from scratch in Transcend Admin Dashboard. Skipping the download of this file.`));return}throw Error(`Received an error from server: ${n?.response?.body||n?.message}`)}},{concurrency:a})}async function ds({auth:e,folderPath:n,requestIds:i,createdAtBefore:a,sombraAuth:o,createdAtAfter:s,updatedAtBefore:c,updatedAtAfter:l,statuses:u=[y.Approving,y.Downloadable],concurrency:d=5,transcendUrl:f=t,approveAfterDownload:p=!1}){let m=Y(f,e),h=await qr(f,e,o);re(n)||ie(n);let _=await Q(m,{actions:[g.Access],createdAtBefore:a,createdAtAfter:s,updatedAtBefore:c,updatedAtAfter:l,statuses:u,requestIds:i}),v=await ls(_,{sombra:h,concurrency:d}),b=new Date().getTime(),x=new U.SingleBar({},U.Presets.shades_classic),S=0,C=0;x.start(_.length,0),await W(v,async([e,t])=>{let r=L(n,e.id);re(r)||ie(r),await us(t,{sombra:h,requestId:e.id,onFileDownloaded:(e,t)=>{let n=L(r,e.fileName),i=ue(n);re(i)||ie(i,{recursive:!0}),le(n,t)}}),p&&e.status===y.Approving&&(await $(m,xt,{input:{requestId:e.id}}),C+=1),S+=1,x.update(S)},{concurrency:d}),x.stop();let w=new Date().getTime()-b;return r.info(R.green(`Successfully downloaded ${S} requests in "${w/1e3}" seconds!`)),C>0&&r.info(R.green(`Approved ${C} requests in Transcend.`)),_.length}const fs=z.type({id:z.string,link:z.string,status:I(y),type:I(g),subjectType:z.string,email:z.union([z.null,z.string]),coreIdentifier:z.string,isSilent:z.boolean,isTest:z.boolean,country:z.union([z.null,I(f)]),countrySubDivision:z.union([z.null,I(p)]),attributeValues:z.array(z.type({attributeKey:z.type({name:z.string}),name:z.string}))});async function ps(e,t,{details:n=``,isTest:r=!1,emailIsVerified:i=!0,skipSendingReceipt:a=!1,isSilent:o=!0,additionalAttributes:s=[]}={}){let c=[...s];(t.attributes||[]).forEach(e=>{let t=c.find(t=>t.key===e.key);t?(t.values.push(...e.values),t.values=A(t.values)):c.push(e)});let l;try{l=await e.post(`v1/data-subject-request`,{json:{type:t.requestType,subject:{coreIdentifier:t.coreIdentifier,email:t.email,emailIsVerified:i,attestedExtraIdentifiers:t.attestedExtraIdentifiers},subjectType:t.subjectType,isSilent:o,isTest:r,skipSendingReceipt:a,...t.locale?{locale:t.locale}:{},details:n,attributes:c,...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:u}=P(z.type({request:fs}),l);return u}async function ms({requestActions:e,requestOrigins:n,auth:i,silentModeBefore:a,createdAtAfter:o,createdAtBefore:s,updatedAtBefore:c,updatedAtAfter:l,concurrency:u=50,transcendUrl:d=t}){let f=Y(d,i),p=new Date().getTime(),m=new U.SingleBar({},U.Presets.shades_classic),h=await Q(f,{actions:e,statuses:[y.Approving],createdAtAfter:o,createdAtBefore:s,updatedAtBefore:c,updatedAtAfter:l,origins:n});r.info(R.magenta(`Approving "${h.length}" requests.`));let g=0,_=0;m.start(h.length,0),await W(h,async e=>{a&&new Date(a)>new Date(e.createdAt)&&await $(f,Ct,{input:{id:e.id,isSilent:!0}});try{await $(f,xt,{input:{requestId:e.id}})}catch(e){e.message.includes(`Request must be in an approving state,`)&&(_+=1)}g+=1,m.update(g)},{concurrency:u}),m.stop();let v=new Date().getTime()-p;return _>0&&r.info(R.yellow(`${_} requests were skipped.`)),r.info(R.green(`Successfully approved ${g} requests in "${v/1e3}" seconds!`)),h.length}async function hs({requestActions:e=Object.values(g),auth:n,requestIds:i,createdAtBefore:a,days:o=45,daysLeft:s=10,createdAtAfter:c,updatedAtBefore:l,updatedAtAfter:u,emailTemplate:d=`Additional Time Needed`,concurrency:f=100,transcendUrl:p=t}){let m=Y(p,n),h=new Date().getTime(),_=new U.SingleBar({},U.Presets.shades_classic),v=(await Da(m,d)).find(e=>e.title===d);if(!v)throw Error(`Failed to find a template with title: "${d}"`);let y=await Q(m,{actions:e,createdAtBefore:a,createdAtAfter:c,updatedAtBefore:l,updatedAtAfter:u,isSilent:!1,isClosed:!1,requestIds:i});y=y.filter(e=>typeof e.daysRemaining==`number`&&e.daysRemaining<s),r.info(R.magenta(`Notifying "${y.length}" that more time is needed.`));let b=0;_.start(y.length,0),await W(y,async e=>{await $(m,wt,{input:{requestId:e.id,template:v.template.defaultMessage,subject:v.subject.defaultMessage,additionalTime:o}}),b+=1,_.update(b)},{concurrency:f}),_.stop();let x=new Date().getTime()-h;return r.info(R.green(`Successfully marked ${b} requests as silent mode in "${x/1e3}" seconds!`)),y.length}async function gs(e,t,n){let{initializer:r}=await $(e,ze),i=r.identifiers.filter(({name:e})=>!n.getValue(`identifierNames`,e)&&!jr.includes(e)),a=i.length===0?{}:await H.prompt(i.map(({name:e})=>{let n=Rr(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 _s({requestActions:e,cancellationTitle:n,auth:i,requestIds:a,silentModeBefore:o,createdAtBefore:s,createdAtAfter:c,updatedAtBefore:l,updatedAtAfter:u,statuses:d=[y.Compiling,y.RequestMade,y.Delayed,y.Approving,y.Secondary,y.Enriching,y.Waiting,y.SecondaryApproving],concurrency:f=50,transcendUrl:p=t}){let m=Y(p,i),h=new Date().getTime(),g=new U.SingleBar({},U.Presets.shades_classic),_;if(n){let e=(await Da(m,n)).find(e=>e.title===n);if(!e)throw Error(`Failed to find a template with title: "${n}"`);_=e}let v=await Q(m,{actions:e,createdAtBefore:s,createdAtAfter:c,updatedAtBefore:l,updatedAtAfter:u,statuses:d,requestIds:a});r.info(R.magenta(`Canceling "${v.length}" requests${_?` Using template: ${_.title}`:``}.`));let b=0;g.start(v.length,0),await W(v,async e=>{o&&new Date(o)>new Date(e.createdAt)&&await $(m,Ct,{input:{id:e.id,isSilent:!0}}),await $(m,St,{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 r.info(R.green(`Successfully canceled ${b} requests in "${x/1e3}" seconds!`)),v.length}async function vs(e,t,n,r){let i=r.filter(({name:e})=>!n.getValue(`attributeNames`,e)),a=i.length===0?{}:await H.prompt(i.map(({name:e})=>{let n=Rr(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 ys=/{\\"message\\":\\"(.+?)\\",/;function bs(e){return ys.test(e)?ys.exec(e)[1]:null}async function xs({cacheFilepath:e,requestReceiptFolder:n,file:i,auth:a,sombraAuth:o,concurrency:s=100,defaultPhoneCountryCode:c=`1`,transcendUrl:l=t,attributes:u=[],emailIsVerified:d=!0,skipFilterStep:f=!1,skipSendingReceipt:p=!0,isTest:m=!1,isSilent:h=!0,debug:g=!1,dryRun:_=!1}){let v=new Date().getTime(),y=new U.SingleBar({},U.Presets.shades_classic),b=Hr(u),x=new Ce(e,Pr,{columnNames:{},requestTypeToRequestAction:{},subjectTypeToSubjectName:{},languageToLocale:{},statusToRequestStatus:{},identifierNames:{},attributeNames:{},regionToCountrySubDivision:{},regionToCountry:{}}),S=L(n,`tr-request-upload-${new Date().toISOString()}-${i.split(`/`).pop()}`.replace(`.csv`,`.json`)),C=new Ce(S,Ir,{successfulRequests:[],duplicateRequests:[],failingRequests:[]}),w=await qr(l,a,o),T=Ur(i,z.record(z.string,z.string)),E=A(T.map(e=>Object.keys(e)).flat());if(T.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(g){let e=T[0];r.info(R.magenta(`First request: ${JSON.stringify(e,null,2)}`))}let D=f?T:await Wr(T),O=Y(l,a),k=await si(O),j=await es(E,x),M=await gs(O,E,x),N=await vs(O,E,x,k);await ts(O,D,{state:x,columnNameMap:j});let P=as(D,x,{defaultPhoneCountryCode:c,columnNameMap:j,identifierNameMap:M,attributeNameMap:N,requestAttributeKeys:k});g||y.start(P.length,0);let F=0;await W(P,async([e,t],n)=>{let i=g?`email:${t.email} | coreIdentifier:${t.coreIdentifier}`:`row:${n.toString()}`;if(g&&r.info(R.magenta(`[${n+1}/${P.length}] Importing: ${JSON.stringify(t,null,2)}`)),_){r.info(R.magenta(`Bailing out on dry run because dryRun is set`));return}try{let a=await ps(w,t,{details:`Uploaded by Transcend Cli: "tr-request-upload" : ${JSON.stringify(e,null,2)}`,isTest:m,emailIsVerified:d,skipSendingReceipt:p,isSilent:h,additionalAttributes:b});g&&(r.info(R.green(`[${n+1}/${P.length}] Successfully submitted the test data subject request: "${i}"`)),r.info(R.green(`[${n+1}/${P.length}] View it at: "${a.link}"`)));let o=C.getValue(`successfulRequests`);o.push({id:a.id,link:a.link,rowIndex:n,coreIdentifier:a.coreIdentifier,attemptedAt:new Date().toISOString()}),await C.setValue(o,`successfulRequests`)}catch(e){let a=`${e.message} - ${JSON.stringify(e.response?.body,null,2)}`,o=bs(a);if(o===`Client error: You have already made this request.`){g&&r.info(R.yellow(`[${n+1}/${P.length}] Skipping request as it is a duplicate`));let e=C.getValue(`duplicateRequests`);e.push({coreIdentifier:t.coreIdentifier,rowIndex:n,attemptedAt:new Date().toISOString()}),await C.setValue(e,`duplicateRequests`)}else{let e=C.getValue(`failingRequests`);e.push({...t,rowIndex:n,error:o||a,attemptedAt:new Date().toISOString()}),await C.setValue(e,`failingRequests`),g&&(r.error(R.red(o||a)),r.error(R.red(`[${n+1}/${P.length}] Failed to submit request for: "${i}"`)))}}F+=1,g||y.update(F)},{concurrency:s}),y.stop();let ee=new Date().getTime()-v;r.info(R.green(`Completed upload in "${ee/1e3}" seconds.`)),C.getValue(`duplicateRequests`).length>0&&r.info(R.yellow(`Encountered "${C.getValue(`duplicateRequests`).length}" duplicate requests. See "${S}" to review the core identifiers for these requests.`)),C.getValue(`failingRequests`).length>0&&(r.error(R.red(`Encountered "${C.getValue(`failingRequests`).length}" errors. See "${S}" to review the error messages and inputs.`)),process.exit(1))}async function Ss(e,t,{sendEmailReceipt:n=!1,skipWaitingPeriod:r=!1,emailIsVerified:i=!0,requestIdentifiers:a=[]}={}){let o=await e.post(`v1/data-subject-request`,{json:{type:t.type,subject:{coreIdentifier:t.coreIdentifier,email:t.email,emailIsVerified:i,...a.length>0?{attestedExtraIdentifiers:M(T(a.filter(e=>!(e.name===`email`&&e.value===t.email)&&!jr.includes(e.name)).map(e=>({...e,type:Object.values(d).includes(e.name)?e.name:d.Custom})),`type`),(e,t)=>e.map(({name:e,value:n})=>({...t===d.Custom?{name:e}:{},value:n})))}:{}},requestId:t.id,subjectType:t.subjectType,isSilent:t.isSilent,isTest:t.isTest,locale:t.locale,skipWaitingPeriod:r,createdAt:t.createdAt,details:`Restarted by Transcend cli: "tr-request-restart" - ${t.details}`,skipSendingReceipt:!n}}).json(),{request:s}=P(z.type({request:fs}),o);return s}const Cs=z.intersection([Fr,z.type({error:z.string})]),ws=z.type({restartedRequests:z.array(Fr),failingRequests:z.array(Cs)});async function Ts({requestReceiptFolder:e,auth:n,sombraAuth:i,requestActions:a,requestStatuses:o,createdAtBefore:s,createdAtAfter:c,updatedAtBefore:l,updatedAtAfter:u,transcendUrl:d=t,requestIds:f=[],createdAt:p=new Date,silentModeBefore:m,sendEmailReceipt:h=!1,emailIsVerified:g=!0,copyIdentifiers:_=!1,skipWaitingPeriod:v=!1,concurrency:y=20}){let b=new Date().getTime(),x=new U.SingleBar({},U.Presets.shades_classic),S=L(e,`tr-request-restart-${new Date().toISOString()}.json`),w=new Ce(S,ws,{restartedRequests:[],failingRequests:[]}),T=await qr(d,n,i),E=Y(d,n),D=(await Q(E,{requestIds:f,actions:a,statuses:o,createdAtBefore:s,createdAtAfter:c,updatedAtBefore:l,updatedAtAfter:u})).filter(e=>new Date(e.createdAt)<p);if(r.info(`Found ${D.length} requests to restart`),_&&r.info(`copyIdentifiers detected - All Identifiers will be copied.`),h&&r.info(`sendEmailReceipt detected - Email receipts will be sent.`),v&&r.info(`skipWaitingPeriod detected - Waiting period will be skipped.`),f.length>0&&f.length!==D.length){let e=C(f,D.map(({id:e})=>e));e.length>0&&(r.error(R.red(`Failed to find the following requests by ID: ${e.join(`,`)}.`)),process.exit(1))}_&&await Fi(E);let O=0;x.start(D.length,0),await W(D,async(e,t)=>{try{let n=_?await Ii(E,T,{requestId:e.id,skipSombraCheck:!0}):[],r=await Ss(T,{...e,isSilent:m&&new Date(e.createdAt)<m?!0:e.isSilent},{requestIdentifiers:n,skipWaitingPeriod:v,sendEmailReceipt:h,emailIsVerified:g}),i=w.getValue(`restartedRequests`);i.push({id:r.id,link:r.link,rowIndex:t,coreIdentifier:r.coreIdentifier,attemptedAt:new Date().toISOString()}),await w.setValue(i,`restartedRequests`)}catch(n){let r=`${n.message} - ${JSON.stringify(n.response?.body,null,2)}`,i=bs(r),a=w.getValue(`failingRequests`);a.push({id:e.id,link:e.link,rowIndex:t,coreIdentifier:e.coreIdentifier,attemptedAt:new Date().toISOString(),error:i||r}),await w.setValue(a,`failingRequests`)}O+=1,x.update(O)},{concurrency:y}),x.stop();let k=new Date().getTime()-b;r.info(R.green(`Completed restarting of requests in "${k/1e3}" seconds.`)),w.getValue(`failingRequests`).length>0&&(r.error(R.red(`Encountered "${w.getValue(`failingRequests`).length}" errors. See "${fe(S)}" to review the error messages and inputs.`)),process.exit(1))}async function Es({enricherIds:e,auth:n,concurrency:i=100,transcendUrl:a=t}){let o=Y(a,n),s=new Date().getTime(),c=await Q(o,{statuses:[y.Enriching]});r.info(R.magenta(`Processing enricher: "${e.join(`,`)}" fetched "${c.length}" in enriching status.`));let l=new U.SingleBar({},U.Presets.shades_classic),u=0;l.start(c.length,0);let d=0;await W(c,async t=>{let n=(await Ai(o,{requestId:t.id})).filter(t=>e.includes(t.enricher.id)&&![_.Resolved,_.Skipped].includes(t.status));n.length>0&&await G(n,async e=>{try{await $(o,kt,{requestEnricherId:e.id}),d+=1}catch(e){if(!e.message.includes(`Client error: Cannot skip Request enricher because it has already completed`))throw e}}),u+=1,l.update(u)},{concurrency:i}),l.stop();let f=new Date().getTime()-s;return r.info(R.green(`Successfully skipped "${d}" for "${c.length}" requests in "${f/1e3}" seconds!`)),c.length}async function Ds({auth:e,requestActions:n=[],createdAtBefore:i,createdAtAfter:a,updatedAtBefore:o,updatedAtAfter:s,transcendUrl:c=t,requestEnricherStatuses:l=Object.values(_),requestIds:u=[],enricherId:d,concurrency:f=20}){let p=new Date().getTime(),m=new U.SingleBar({},U.Presets.shades_classic),h=Y(c,e);r.info(R.magenta(`Fetching requests to restart...`));let g=await Q(h,{actions:n,statuses:[y.Enriching],createdAtBefore:i,createdAtAfter:a,updatedAtBefore:o,updatedAtAfter:s,requestIds:u}),v=0;if(u.length>0&&u.length!==g.length){let e=C(u,g.map(({id:e})=>e));e.length>0&&(r.error(R.red(`Failed to find the following requests by ID: ${e.join(`,`)}.`)),process.exit(1))}let b=0;m.start(g.length,0),await W(g,async e=>{await W((await Ai(h,{requestId:e.id})).filter(e=>e.enricher.id===d&&l.includes(e.status)),async e=>{await La(h,e.id),v+=1}),b+=1,m.update(b)},{concurrency:f}),m.stop();let x=new Date().getTime()-p;r.info(R.green(`Completed restarting of ${g.length} requests and ${v} enrichers in "${x/1e3}" seconds.`))}async function Os({requestActions:e,dataSiloId:n,auth:i,concurrency:a=20,transcendUrl:o=t}){let s=Y(o,i),c=new Date().getTime(),l=new U.SingleBar({},U.Presets.shades_classic),u=await Q(s,{actions:e,statuses:[y.Compiling,y.Approving]});r.info(R.magenta(`Retrying requests for Data Silo: "${n}", restarting "${u.length}" requests.`));let d=0,f=0;l.start(u.length,0),await W(u,async e=>{try{await $(s,Jt,{requestDataSiloId:(await ia(s,{requestId:e.id,dataSiloId:n})).id})}catch(e){if(!e.message.includes(`Failed to find RequestDataSilo`))throw e;f+=1}d+=1,l.update(d)},{concurrency:a}),l.stop();let p=new Date().getTime()-c;return r.info(R.green(`Successfully notified Transcend in "${p/1e3}" seconds for ${d} requests, ${f} requests were skipped because data silo was not attached to the request!`)),u.length}function ks({attributeValues:e,requestIdentifiers:t,id:n,email:r,type:i,status:a,subjectType:o,details:s,createdAt:c,successfullyCompletedAt:l,country:u,locale:d,origin:f,countrySubDivision:p,isSilent:m,isTest:h,coreIdentifier:g,purpose:_,...v}){return{"Request ID":n,"Created At":c,"Successfully Completed At":l||``,Email:r,"Core Identifier":g,"Request Type":i,"Data Subject Type":o,Status:a,Country:u,"Country Sub Division":p,Details:s,Origin:f,"Silent Mode":m,"Is Test Request":h,Language:d,"Purpose Trigger Name":_?.title||_?.name||``,"Purpose Trigger Value":_?.consent?.toString()||``,...(_?.enrichedPreferences||[]).reduce((e,t)=>{let n=t.preferenceTopic?.title.defaultMessage||t.name;return n?{...e,[n]:t.selectValues?t.selectValues.map(e=>e.name).join(`;`):t.selectValue?.name||t.booleanValue}:e},{}),...v,...Object.entries(T(e,`attributeKey.name`)).reduce((e,[t,n])=>Object.assign(e,{[t]:n.map(({name:e})=>e).join(`,`)}),{}),...Object.entries(T(t,`name`)).reduce((e,[t,n])=>Object.assign(e,{[t]:n.map(({value:e})=>e).join(`,`)}),{})}}function As(e,t,n){let r=e.getTime(),i=t.getTime(),a=(i-r)/n;return Array.from({length:n},(e,t)=>({createdAtAfter:new Date(r+a*t),createdAtBefore:new Date(t===n-1?i:r+a*(t+1))}))}async function js({auth:e,sombraAuth:n,actions:i=[],statuses:a=[],identifierSearch:o,pageLimit:s=100,concurrency:c=1,transcendUrl:l=t,createdAtBefore:u,skipRequestIdentifiers:d=!1,createdAtAfter:f,updatedAtBefore:p,updatedAtAfter:m,isTest:h}){let g=Y(l,e),_=await qr(l,e,n),v=``;u&&(v+=` before ${u.toISOString()}`),f&&(v+=`${v?`, and`:``} after ${f.toISOString()}`),r.info(R.magenta(`${i.length>0?`Pulling requests of type "${i.join(`" , "`)}"`:`Pulling all requests`}${v}`));let y=c>1&&f&&u,b=y?As(f,u,c):[{createdAtAfter:f,createdAtBefore:u}];y&&r.info(R.magenta(`Splitting date range into ${c} parallel chunks`));let x=(await W(b,e=>Q(g,{actions:i,text:o,statuses:a,createdAtBefore:e.createdAtBefore,createdAtAfter:e.createdAtAfter,updatedAtBefore:p,updatedAtAfter:m,isTest:h}),{concurrency:y?c:1})).flat();d||await Fi(g);let S=d?x.map(e=>({...e,requestIdentifiers:[]})):await W(x,async e=>{let t=await Ii(g,_,{requestId:e.id,skipSombraCheck:!0});return{...e,requestIdentifiers:t}},{concurrency:s});return r.info(R.magenta(`Pulled ${S.length} requests`)),{requestsWithRequestIdentifiers:S,requestsFormattedForCsv:S.map(ks)}}function Ms(e,t,n){let r=e.getTime(),i=t.getTime(),a=(i-r)/n;return Array.from({length:n},(e,t)=>({createdAtAfter:new Date(r+a*t),createdAtBefore:new Date(t===n-1?i:r+a*(t+1))}))}async function Ns({auth:e,sombraAuth:n,actions:i=[],statuses:a=[],identifierSearch:o,concurrency:s=1,pageLimit:c=100,transcendUrl:l=t,createdAtBefore:u,createdAtAfter:d,updatedAtBefore:f,updatedAtAfter:p,isTest:m,skipRequestIdentifiers:h=!1,file:g}){let _=Y(l,e),v=h?void 0:await qr(l,e,n),y=``;u&&(y+=` before ${u.toISOString()}`),d&&(y+=`${y?`, and`:``} after ${d.toISOString()}`),r.info(R.magenta(`${i.length>0?`Pulling requests of type "${i.join(`" , "`)}"`:`Pulling all requests`}${y}`));let b=s>1&&d&&u,x=b?Ms(d,u,s):[{createdAtAfter:d,createdAtBefore:u}];b&&r.info(R.magenta(`Splitting date range into ${s} parallel chunks`));let S={type:i.length>0?i:void 0,status:a.length>0?a:void 0,isTest:m,createdAtBefore:u?u.toISOString():void 0,createdAtAfter:d?d.toISOString():void 0,updatedAtBefore:f?f.toISOString():void 0,updatedAtAfter:p?p.toISOString():void 0},C=Date.now();h||await Fi(_);let w=await zi(_,S);r.info(R.magenta(`Fetching ${w} requests`));let T=new U.SingleBar({},U.Presets.shades_classic);T.start(w,0);let E=0,{baseName:D,extension:O}=pc(g),k=x.map((e,t)=>x.length===1?g:`${D}-${t}${O}`),j=[],M=await W(x,async(e,t)=>{let n=k[t],s,l=0;try{await Q(_,{actions:i,text:o,statuses:a,createdAtBefore:e.createdAtBefore,createdAtAfter:e.createdAtAfter,updatedAtBefore:f,updatedAtAfter:p,isTest:m,onPage:async e=>{if(e.length===0)return;let t=(h?e.map(e=>({...e,requestIdentifiers:[]})):await W(e,async e=>({...e,requestIdentifiers:await Ii(_,v,{requestId:e.id,skipSombraCheck:!0})}),{concurrency:c})).map(ks);s||(s=A(t.map(e=>Object.keys(e)).flat()),lc(n,s)),uc(n,t,s),l+=t.length,E+=t.length,T.update(E)}})}catch(n){let i=n instanceof Error?n.message:String(n);r.error(R.red(`Chunk ${t} failed (${e.createdAtAfter?.toISOString()??`start`} → ${e.createdAtBefore?.toISOString()??`end`}): ${i}`)),j.push({index:t,createdAtAfter:e.createdAtAfter,createdAtBefore:e.createdAtBefore,error:i})}return s||lc(n,[]),l},{concurrency:b?s:1});T.stop();let N=M.reduce((e,t)=>e+t,0),P=(Date.now()-C)/1e3;if(j.length>0){r.error(R.red(`\n${j.length} chunk(s) failed. Re-run with these date ranges to fill the gaps:`));for(let e of j)r.error(R.red(` Chunk ${e.index}: --createdAtAfter=${e.createdAtAfter?.toISOString()??``} --createdAtBefore=${e.createdAtBefore?.toISOString()??``}`))}return r.info(R.green(`Streamed ${N} requests to ${k.length} file(s) in ${P}s`)),{filePaths:k,totalCount:N}}async function Ps({dataSiloId:e,auth:n,concurrency:i=50,maxUploadPerChunk:a=5e4,status:o=`SKIPPED`,transcendUrl:s=t,requestStatuses:c=[y.Compiling,y.Secondary]}){let l=Y(s,n),u=new Date().getTime(),d=await na(l,{dataSiloId:e,requestStatuses:c});r.info(R.magenta(`Marking ${d} request data silos as completed`));let f=new U.SingleBar({},U.Presets.shades_classic),p=0;for(f.start(d,0);p<d;)await W(await ra(l,{dataSiloId:e,requestStatuses:c,limit:a,onProgress:e=>{p+=e/2,f.update(p)}}),async e=>{try{await $(l,qt,{requestDataSiloId:e.id,status:o})}catch(e){if(!e.message.includes(`Client error: Request must be active:`))throw e}p+=.5,f.update(p)},{concurrency:i});f.stop();let m=new Date().getTime()-u;return r.info(R.green(`Successfully skipped "${d}" requests in "${m/1e3}" seconds!`)),d}async function Fs({requestActions:e,identifierNames:n,auth:i,concurrency:a=20,transcendUrl:o=t}){let s=Y(o,i),c=new Date().getTime(),l=new U.SingleBar({},U.Presets.shades_classic),u=await Q(s,{actions:e,statuses:[y.Enriching]});r.info(R.magenta(`Fetched requests in preflight/enriching state.`));let d=0,f=0;l.start(u.length,0),await W(u,async e=>{let t=(await ji(s,{requestId:e.id})).filter(({isVerifiedAtLeastOnce:e,name:t})=>e===!1&&n.includes(t)).map(({id:e})=>e);t.length>0&&(await $(s,$t,{input:{requestId:e.id,requestIdentifierIds:t}}),f+=t.length),d+=1,l.update(d)},{concurrency:a}),l.stop();let p=new Date().getTime()-c;return r.info(R.green(`Successfully cleared out unverified identifiers "${p/1e3}" seconds for ${d} requests, ${f} identifiers were cleared out!`)),u.length}async function Is({message:e}){let{response:t}=await H.prompt([{name:`response`,message:e,type:`confirm`}]);return t}async function Ls({message:e}){let{response:t}=await H.prompt([{name:`response`,message:e,type:`text`,validate:e=>e.trim().length>0}]);return t}async function Rs({defaultValue:e,values:t,message:n}){H.registerPrompt(`autocomplete`,_e);let{response:r}=await H.prompt([{name:`response`,message:n,type:`autocomplete`,default:e,source:(e,n)=>n?t.filter(e=>typeof e==`string`&&Lr(n,e)):t}]);return r}function zs(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 Bs(e){let t=e;return t?.response?.statusCode??t?.response?.status}function Vs(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 Hs(e){return new Promise(t=>{setTimeout(()=>t(e),e)})}function Us(e){let t=Math.floor(e.length/2);return[e.slice(0,t),e.slice(t)]}async function Ws(e,t,n){let r=0;for(;;)try{return await e()}catch(e){r+=1;let i=Bs(e),a=Vs(e);if(!(r<=t.maxAttempts&&t.shouldRetry(i,a)))throw e;n(`Retrying after status=${i} attempt=${r}/${t.maxAttempts} — ${a}`),await Hs(t.delayMs)}}function Gs(e,t){return Object.entries(e).reduce((e,[n,r],i)=>(e[n]=i<t?r:!0,e),{})}var Ks=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 qs(e){try{return e?ae(e,`utf8`):``}catch{return``}}function Js(e,t){e||(r.error(R.red(`A --directory must be provided.`)),t.process.exit(1));let n=[];try{n=oe(e).filter(e=>e.endsWith(`.parquet`)).map(t=>L(e,t)).filter(e=>{try{return ce(e).isFile()}catch{return!1}})}catch(n){r.error(R.red(`Failed to read directory: ${e}`)),r.error(R.red(n.message)),t.process.exit(1)}return n.length===0&&(r.error(R.red(`No Parquet files found in directory: ${e}`)),t.process.exit(1)),r.info(R.green(`Found: ${n.join(`, `)} parquet files`)),n}async function Ys(e,t){let{filePath:n,outputDir:i,clearOutputDir:a,onProgress:o}=e,s=i||ue(n),{name:c}=de(n),l=L(s,`${c}.csv`);if(ie(s,{recursive:!0}),a&&re(l))try{se(l,{force:!0})}catch(e){r.warn(R.yellow(`Could not remove existing output file ${l}: ${e.message}`))}let u=await t.create(`:memory:`),d=await u.connect();try{await Zs(d,`PRAGMA temp_directory='';`);let e=e=>`'${e.replace(/'/g,`''`)}'`;await Xs(d,`
3002
+ COPY (SELECT * FROM read_parquet(${e(n)}))
3003
+ TO ${e(l)}
3004
+ (HEADER, DELIMITER ',', QUOTE '"', ESCAPE '"', NULL '');
3005
+ `),o?.(0,void 0),r.info(R.green(`Wrote CSV → ${l}`))}finally{await Qs(d),await Qs(u)}}async function Xs(e,t){await Qs(await e.run(t))}async function Zs(e,t){try{await Xs(e,t)}catch{}}async function Qs(e){if(!(!e||typeof e.dispose!=`function`))try{await e.dispose()}catch{}}const $s=1440*60*1e3,ec=3600*1e3,tc=300*1e3,nc=e=>Math.max(1,Math.min(50,e??50)),rc=e=>new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate())),ic=e=>new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours())),ac=(e,t)=>new Date(e.getTime()+t),oc=(e,t)=>new Date(e.getTime()+t*$s);function sc(e){return e.includes(`"`)||e.includes(`,`)||e.includes(`
3006
+ `)?`"${e.replace(/"/g,`""`)}"`:e}function cc(e,t,n){let r=[];r.push(n),r.push(...t.map(e=>Object.values(e))),le(e,r.map(e=>e.map(sc).join(`,`)).join(`
3007
+ `))}function lc(e,t){if(!t||t.length===0){le(e,``);return}le(e,`${t.map(sc).join(`,`)}\n`)}function uc(e,t,n){t.length&&te(e,`${t.map(e=>n.map(t=>{let n=e[t];return n==null?``:String(n)}).map(sc).join(`,`)).join(`
3008
+ `)}\n`)}function dc(e,t){te(e,`\n${t.map(e=>Object.values(e)).map(e=>e.map(sc).join(`,`)).join(`
3009
+ `)}`)}async function fc(e,t,n=!0){let r=ne(e);await new Promise((e,i)=>{try{let a=we.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 pc(e){let t=e.lastIndexOf(`.`);return{baseName:t===-1?e:e.substring(0,t),extension:t===-1?`.csv`:e.substring(t)}}function mc(e,t){let n={};for(let r of t)n[r]=e[r];return n}function hc(e){return new Promise(t=>{e.once(`drain`,t)})}async function gc(e,t,n=!0){let r;r=Array.isArray(n)?n:n===!0?t.length>0?Object.keys(t[0]):[]:!1;let i=ne(e),a=we.format({headers:r||void 0,objectMode:!0}),o=a.pipe(i),s=new Promise((e,t)=>{o.on(`finish`,()=>e()),o.on(`error`,t),a.on(`error`,t),i.on(`error`,t)});for(let e of t){let t=r?mc(e,r):e;a.write(t)||await hc(a)}return a.end(),await s,[e]}const _c=[`syntax error`,`got invalid value`,`Client error`,`cannot affect row a second time`,`GRAPHQL_VALIDATION_FAILED`];async function $(e,t,n,i,a=4){let o=0;for(;;)try{return await e.request(t,n,i)}catch(e){if(e.message.includes(`API key is invalid`)&&(r.error(R.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)),_c.some(t=>e.message.includes(t)))throw e;if(e.message.startsWith(`Client error: Too many requests`)){let t=e.response.headers?.get(`x-ratelimit-reset`),n=t?new Date(t).getTime()-new Date().getTime()+100:1e3*10;r.log(R.yellow(`DETECTED RATE LIMIT: ${e.message}. Sleeping for ${n}ms`)),await Hs(n)}if(o>=a)throw e;o+=1,r.log(R.yellow(`Retrying failed request (${o} / ${a}): ${e.message}`))}}async function vc(e){let t=[],n=0,r=!1;do{let{identifiers:{nodes:i}}=await $(e,Ue,{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 yc({enrichers:e=[],"data-silos":t=[],identifiers:n=[]},i,a=!1){let o=await vc(i),s=E(o,`name`),c=C(A([...w(e.map(e=>[e[`input-identifier`],...e[`output-identifiers`]])),...w(t.map(e=>e[`identity-keys`])),...n.map(({name:e})=>e)]).filter(e=>!!e),o.map(({name:e})=>e));if(c.length>0){r.info(R.magenta(`Creating ${c.length} new identifiers...`));let{newIdentifierTypes:e}=await $(i,We),t=e.map(({name:e})=>e);await G(c,async e=>{r.info(R.magenta(`Creating identifier ${e}...`));let{createIdentifier:n}=await $(i,Ge,{input:{name:e,type:t.includes(e)?e:`custom`,skipPublish:a}});r.info(R.green(`Created identifier ${e}!`)),s[e]=n.identifier})}return s}async function bc(e,t){let{createTeam:n}=await $(e,Zt,{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 xc(e,t,n){let{updateTeam:r}=await $(e,Qt,{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 Sc(e,t){r.info(R.magenta(`Syncing "${t.length}" teams...`));let n=!1,i=E(await Bi(e),`name`),a=t.filter(e=>!i[e.name]),o=t.filter(e=>!!i[e.name]);return await G(a,async t=>{try{let n=await bc(e,t);i[n.name]=n,r.info(R.green(`Successfully created team "${t.name}"!`))}catch(e){n=!0,r.info(R.red(`Failed to sync team "${t.name}"! - ${e.message}`))}}),await G(o,async t=>{try{let n=await xc(e,t,i[t.name].id);i[n.name]=n,r.info(R.green(`Successfully updated team "${t.name}"!`))}catch(e){n=!0,r.info(R.red(`Failed to sync team "${t.name}"! - ${e.message}`))}}),!n}async function Cc(e,t){let{createPromptPartial:{promptPartial:n}}=await $(e,Ut,{input:t});return r.info(R.green(`Successfully created prompt partial "${t.title}"!`)),n.id}async function wc(e,t){await $(e,Ht,{input:{promptPartials:t.map(([e,t])=>({...e,id:t}))}}),r.info(R.green(`Successfully updated ${t.length} prompt partials!`))}async function Tc(e,t,n=20){let i=!1;r.info(R.magenta(`Syncing "${t.length}" prompt partials...`));let a=E(await Qi(e),`title`),o=t.map(e=>[e,a[e.title]?.id]),s=o.filter(([,e])=>!e).map(([e])=>e);try{r.info(R.magenta(`Creating "${s.length}" new prompt partials...`)),await W(s,async t=>{await Cc(e,t)},{concurrency:n}),r.info(R.green(`Successfully synced ${s.length} prompt partials!`))}catch(e){i=!0,r.info(R.red(`Failed to create prompt partials! - ${e.message}`))}let c=o.filter(e=>!!e[1]);try{r.info(R.magenta(`Updating "${c.length}" prompt partials...`)),await wc(e,c),r.info(R.green(`Successfully updated "${c.length}" prompt partials!`))}catch(e){i=!0,r.info(R.red(`Failed to create prompt partials! - ${e.message}`))}return r.info(R.green(`Synced "${t.length}" prompt partials!`)),!i}async function Ec(e,t){let{createPromptGroup:{promptGroup:n}}=await $(e,Gt,{input:t});return r.info(R.green(`Successfully created prompt group "${t.title}"!`)),n.id}async function Dc(e,t){await $(e,Wt,{input:{promptGroups:t.map(([e,t])=>({...e,id:t}))}}),r.info(R.green(`Successfully updated ${t.length} prompt groups!`))}async function Oc(e,t,n=20){let i=!1;r.info(R.magenta(`Syncing "${t.length}" prompt groups...`));let a=await Zi(e),o=E(await $i(e),`title`),s=E(a,`title`),c=t.map(e=>[e,s[e.title]?.id]),l=c.filter(([,e])=>!e).map(([e])=>e);try{r.info(R.magenta(`Creating "${l.length}" new prompt groups...`)),await W(l,async t=>{await Ec(e,{...t,promptIds:t.prompts.map(e=>{let t=o[e];if(!t)throw Error(`Failed to find prompt with title: "${e}"`);return t.id})})},{concurrency:n}),r.info(R.green(`Successfully synced ${l.length} prompt groups!`))}catch(e){i=!0,r.info(R.red(`Failed to create prompt groups! - ${e.message}`))}let u=c.filter(e=>!!e[1]);try{r.info(R.magenta(`Updating "${u.length}" prompt groups...`)),await Dc(e,u.map(([{prompts:e,...t},n])=>[{...t,promptIds:e.map(e=>{let t=o[e];if(!t)throw Error(`Failed to find prompt with title: "${e}"`);return t.id})},n])),r.info(R.green(`Successfully updated "${u.length}" prompt groups!`))}catch(e){i=!0,r.info(R.red(`Failed to create prompt groups! - ${e.message}`))}return r.info(R.green(`Synced "${t.length}" prompt groups!`)),!i}async function kc(e,t,{pageSize:n=50,publishToPrivacyCenter:i=!0,classifyService:a=!1,deleteExtraAttributeValues:o=!1}){let s=!1;r.info(R.magenta(`Fetching data with page size ${n}...`));let{templates:c,attributes:l,actions:u,identifiers:d,"data-subjects":f,"business-entities":p,enrichers:m,cookies:h,"consent-manager":g,"data-silos":_,"data-flows":v,prompts:y,"prompt-groups":b,"prompt-partials":x,agents:S,"agent-functions":C,"agent-files":w,vendors:T,"data-categories":E,"processing-activities":D,"processing-purposes":O,"action-items":k,"action-item-collections":A,teams:j,"privacy-center":M,messages:N,policies:P,partitions:F}=e,[ee,I,te]=await Promise.all([m||d?yc(e,t,!i):{},_||f||m||D?Ji(e,t):{},_&&_.map(e=>e[`api-key-title`]||[]).reduce((e,t)=>e+t.length,0)>0?Wi(e,t):{}]);if(g){r.info(R.magenta(`Syncing consent manager...`));try{await wo(t,g),r.info(R.green(`Successfully synced consent manager!`))}catch(e){s=!0,r.info(R.red(`Failed to sync consent manager! - ${e.message}`))}}if(y){let e=await Jo(t,y);s||=!e}if(x){let e=await Tc(t,x);s||=!e}if(b){let e=await Oc(t,b);s||=!e}if(j){let e=await Sc(t,j);s||=!e}if(c&&(r.info(R.magenta(`Syncing "${c.length}" email templates...`)),await W(c,async e=>{r.info(R.magenta(`Syncing template "${e.title}"...`));try{await Oa(e,t),r.info(R.green(`Successfully synced template "${e.title}"!`))}catch(t){s=!0,r.info(R.red(`Failed to sync template "${e.title}"! - ${t.message}`))}},{concurrency:10}),r.info(R.green(`Synced "${c.length}" email templates!`))),p){let e=await so(t,p);s||=!e}if(T){let e=await Zo(t,T);s||=!e}if(E){let e=await ko(t,E);s||=!e}if(O){let e=await Go(t,O);s||=!e}if(F){let e=await Ma(t,F);s||=!e}if(S){let e=await ro(t,S);s||=!e}if(C){let e=await eo(t,C);s||=!e}if(w){let e=await Za(t,w);s||=!e}if(h){let e=await Eo(t,h);s||=!e}if(A){let e=await Ua(t,A);s||=!e}if(l){r.info(R.magenta(`Syncing "${l.length}" attributes...`));let e=await ui(t);await W(l,async n=>{let i=e.find(e=>e.name===n.name);r.info(R.magenta(`Syncing attribute "${n.name}"...`));try{await io(t,n,{existingAttribute:i,deleteExtraAttributeValues:o}),r.info(R.green(`Successfully synced attribute "${n.name}"!`))}catch(e){s=!0,r.info(R.red(`Failed to sync attribute "${n.name}"! - ${e.message}`))}},{concurrency:10}),r.info(R.green(`Synced "${l.length}" attributes!`))}if(k){let e=await Ja(t,k);s||=!e}if(m&&(r.info(R.magenta(`Syncing "${m.length}" enrichers...`)),await W(m,async e=>{r.info(R.magenta(`Syncing enricher "${e.title}"...`));try{await Ea(t,{enricher:e,identifierByName:ee,dataSubjectsByName:I}),r.info(R.green(`Successfully synced enricher "${e.title}"!`))}catch(t){s=!0,r.info(R.red(`Failed to sync enricher "${e.title}"! - ${t.message}`))}},{concurrency:10}),r.info(R.green(`Synced "${m.length}" enrichers!`))),d&&(r.info(R.magenta(`Syncing "${d.length}" identifiers...`)),await W(d,async e=>{let n=ee[e.name];if(!n)throw Error(`Failed to find identifier with name: ${e.type}. Should have been auto-created by cli.`);r.info(R.magenta(`Syncing identifier "${e.type}"...`));try{await Po(t,{identifier:e,dataSubjectsByName:I,identifierId:n.id,skipPublish:!i}),r.info(R.green(`Successfully synced identifier "${e.type}"!`))}catch(t){s=!0,r.info(R.red(`Failed to sync identifier "${e.type}"! - ${t.message}`))}},{concurrency:10}),r.info(R.green(`Synced "${d.length}" identifiers!`))),u){r.info(R.magenta(`Syncing "${u.length}" actions...`));let e=await $r(t);await W(u,async n=>{let a=e.find(e=>e.type===n.type);if(!a)throw Error(`Failed to find action with type: ${n.type}. Should have already existing in the organization.`);r.info(R.magenta(`Syncing action "${n.type}"...`));try{await Ba(t,{action:n,actionId:a.id,skipPublish:!i}),r.info(R.green(`Successfully synced action "${n.type}"!`))}catch(e){s=!0,r.info(R.red(`Failed to sync action "${n.type}"! - ${e.message}`))}},{concurrency:10}),r.info(R.green(`Synced "${u.length}" actions!`))}if(f){r.info(R.magenta(`Syncing "${f.length}" data subjects...`));let e=await qi(t);await W(f,async n=>{let a=e.find(e=>e.type===n.type);if(!a)throw Error(`Failed to find data subject with type: ${n.type}. Should have already existing in the organization.`);r.info(R.magenta(`Syncing data subject "${n.type}"...`));try{await No(t,{dataSubject:n,dataSubjectId:a.id,skipPublish:!i}),r.info(R.green(`Successfully synced data subject "${n.type}"!`))}catch(e){s=!0,r.info(R.red(`Failed to sync data subject "${n.type}"! - ${e.message}`))}},{concurrency:10}),r.info(R.green(`Synced "${f.length}" data subjects!`))}if(v){let e=await Mo(t,v,a);s||=!e}if(M){let e=await zo(t,M);s||=!e}if(N){let e=await Io(t,N);s||=!e}if(P){let e=await Ro(t,P);s||=!e}let ne=[];if(_){let{success:e,dataSiloTitleToId:r}=await Ca(_,t,{dataSubjectsByName:I,apiKeysByTitle:te,pageSize:n});_?.forEach(e=>{e[`deletion-dependencies`]&&ne.push([r[e.title],e[`deletion-dependencies`]])}),s||=!e}if(ne.length>0&&await wa(t,ne),D){let e=await Ho(t,D);s||=!e}return s}export{ds as $,tn as $a,rr as $i,Qi as $n,tt as $o,Qr as $r,to as $t,zs as A,Mn as Aa,wr as Ai,Sa as An,xt as Ao,xi as Ar,W as As,jo as At,Ds as B,hn as Ba,hr as Bi,ga as Bn,ht as Bo,gi as Br,yo as Bt,Ks as C,Tn as Ca,jr as Ci,Da as Cn,At as Co,Di as Cr,je as Cs,zo as Ct,Hs as D,In as Da,Or as Di,xa as Dn,kt as Do,Z as Dr,Oe as Ds,Fo as Dt,Us as E,Ln as Ea,Fr as Ei,Ea as En,Ot as Eo,wi as Er,De as Es,Io as Et,Ps as F,xn as Fa,yr as Fi,ha as Fn,Ct as Fo,mi as Fr,Oo as Ft,bs as G,fn as Ga,ur as Gi,oa as Gn,lt as Go,si as Gr,go as Gt,Ts as H,pn as Ha,pr as Hi,ua as Hn,ft as Ho,li as Hr,bo as Ht,Ns as I,Pn as Ia,vr as Ii,ma as In,_t as Io,fi as Ir,Eo as It,gs as J,ln as Ja,sr as Ji,ra as Jn,ot as Jo,ri as Jr,fo as Jt,vs as K,cn as Ka,dr as Ki,aa as Kn,ct as Ko,oi as Kr,uo as Kt,js as L,Sn as La,br as Li,pa as Ln,vt as Lo,hi as Lr,To as Lt,Is as M,zn as Ma,Sr as Mi,Ca as Mn,wt as Mo,yi as Mr,Ao as Mt,Ls as N,An as Na,xr as Ni,_a as Nn,bt as No,vi as Nr,Do as Nt,Vs as O,Fn as Oa,Dr as Oi,ya as On,Tt as Oo,Ci as Or,ke as Os,Po as Ot,Fs as P,kn as Pa,Cr as Pi,va as Pn,yt as Po,_i as Pr,ko as Pt,ps as Q,nn as Qa,nr as Qi,ea as Qn,et as Qo,$r as Qr,io as Qt,ks as R,un as Ra,gr as Ri,da as Rn,gt as Ro,pi as Rr,wo as Rt,qs as S,En as Sa,q as Si,Ma as Sn,jt as So,Oi as Sr,Me as Ss,Ho as St,Ws as T,Rn as Ta,K as Ti,Ta as Tn,Dt as To,Ti as Tr,Ee as Ts,Lo as Tt,Ss as U,_n as Ua,mr as Ui,ca as Un,ut as Uo,ci as Ur,ho as Ut,Es as V,dn as Va,fr as Vi,la as Vn,mt as Vo,di as Vr,xo as Vt,xs as W,gn as Wa,lr as Wi,sa as Wn,dt as Wo,ui as Wr,_o as Wt,ms as X,an as Xa,ar as Xi,ta as Xn,at as Xo,ti as Xr,so as Xt,hs as Y,on as Ya,cr as Yi,na as Yn,it as Yo,ni as Yr,ao as Yt,fs as Z,rn as Za,ir as Zi,$i as Zn,rt as Zo,ei as Zr,oo as Zt,nc as _,Hn as _a,Ar as _i,Ia as _n,Wt as _o,Ii as _r,Le as _s,Jo as _t,uc as a,Yn as aa,Y as ai,Ya as an,qt as ao,Gi as ar,qe as as,ns as at,Ys as b,jn as ba,Pr as bi,Na as bn,Pt as bo,Ai as br,Pe as bs,Go as bt,pc as c,Jn as ca,Wr as ci,Wa as cn,Jt as co,Wi as cr,Ge as cs,is as ct,gc as d,Kn as da,Vr as di,Va as dn,Ut as do,Bi as dr,Ke as ds,$o as dt,$n as ea,Zr as ei,ro as en,$t as eo,Zi as er,nt as es,us as et,$s as f,Un as fa,Hr as fi,Ua as fn,It as fo,Ri as fr,He as fs,Qo as ft,ac as g,On as ga,Lr as gi,La as gn,Bt as go,Pi as gr,Ve as gs,Ko as gt,oc as h,Vn as ha,Rr as hi,Ra as hn,Lt as ho,zi as hr,ze as hs,Xo as ht,$ as i,Zn as ia,qr as ii,$a as in,Qt as io,qi as ir,Je as is,ls as it,Rs as j,Nn as ja,Er as ji,wa as jn,St as jo,bi as jr,G as js,Mo as jt,Bs as k,Bn as ka,Tr as ki,ba as kn,Et as ko,Si as kr,Ae as ks,No as kt,fc as l,Wn as la,J as li,Ja as ln,Vt as lo,Hi as lr,Ue as ls,ts as lt,ec as m,wn as ma,zr as mi,Ba as mn,Rt as mo,Q as mr,Re as ms,Zo as mt,vc as n,er as na,Xr as ni,Qa as nn,Zt as no,Yi as nr,Ze as ns,ss as nt,dc as o,Xn as oa,Kr as oi,Za as on,Yt as oo,Ki as or,Xe as os,rs as ot,tc as p,yn as pa,Br as pi,Ha as pn,zt as po,Li as pr,Be as ps,Yo as pt,_s as q,sn as qa,or as qi,ia as qn,st as qo,ii as qr,po as qt,yc as r,tr as ra,Jr as ri,eo as rn,Xt as ro,Ji as rr,Qe as rs,cs as rt,lc as s,qn as sa,Gr as si,Xa as sn,Kt as so,Ui as sr,Ye as ss,as as st,kc as t,Qn as ta,Yr as ti,no as tn,en as to,Xi as tr,$e as ts,os as tt,cc as u,Gn as ua,Ur as ui,Ga as un,Gt as uo,Vi as ur,We as us,es as ut,ic as v,bn as va,kr as vi,Pa as vn,Ht as vo,Fi as vr,Ne as vs,qo as vt,Gs as w,Dn as wa,Mr as wi,Oa as wn,Mt as wo,Ei as wr,Te as ws,Ro as wt,Js as x,vn as xa,Ir as xi,ja as xn,Nt as xo,ki as xr,Ie as xs,Wo as xt,rc as y,Cn as ya,Nr as yi,Fa as yn,Ft as yo,ji as yr,Fe as ys,Uo as yt,Os as z,mn as za,_r as zi,fa as zn,pt as zo,X as zr,Co as zt};
3010
+ //# sourceMappingURL=syncConfigurationToTranscend-wWSbGVrI.mjs.map