@transcend-io/cli 6.26.6 → 7.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1344) hide show
  1. package/dist/bin/bash-complete.mjs +3 -0
  2. package/dist/bin/cli.mjs +2 -0
  3. package/dist/bin/deprecated-command.mjs +6 -0
  4. package/dist/chunk-BGXZA4EM.mjs +1 -0
  5. package/dist/chunk-BWXKSYTY.mjs +1 -0
  6. package/dist/chunk-CG4A43HM.mjs +1 -0
  7. package/dist/chunk-N4KHG2LT.mjs +3 -0
  8. package/dist/chunk-RTBRALWU.mjs +48 -0
  9. package/dist/chunk-WVOQBBD4.mjs +1 -0
  10. package/dist/impl-2SXC6DB5.mjs +1 -0
  11. package/dist/impl-3WS4KAXC.mjs +1 -0
  12. package/dist/impl-573JHF5Q.mjs +1 -0
  13. package/dist/impl-5G2VT3GE.mjs +1 -0
  14. package/dist/impl-5M2JICLA.mjs +1 -0
  15. package/dist/impl-6HCHXNYK.mjs +1 -0
  16. package/dist/impl-6HYSKLJA.mjs +1 -0
  17. package/dist/impl-6ZEB6Z2K.mjs +1 -0
  18. package/dist/impl-7R553APD.mjs +1 -0
  19. package/dist/impl-7YBBGEJS.mjs +1 -0
  20. package/dist/impl-AE4WVFKM.mjs +1 -0
  21. package/dist/impl-BUP5GVYQ.mjs +1 -0
  22. package/dist/impl-DDSJFH7O.mjs +1 -0
  23. package/dist/impl-EAWZEQHP.mjs +1 -0
  24. package/dist/impl-EBN6UN6B.mjs +1 -0
  25. package/dist/impl-F3GN5QBQ.mjs +1 -0
  26. package/dist/impl-F7EIWKOK.mjs +1 -0
  27. package/dist/impl-GOITDIYO.mjs +1 -0
  28. package/dist/impl-GWDASXMF.mjs +1 -0
  29. package/dist/impl-I2HNOFXK.mjs +1 -0
  30. package/dist/impl-J6TM5I2T.mjs +1 -0
  31. package/dist/impl-JKKLZIWW.mjs +1 -0
  32. package/dist/impl-L32NAFWG.mjs +1 -0
  33. package/dist/impl-LTXXHRJN.mjs +1 -0
  34. package/dist/impl-NFGCPTZ6.mjs +1 -0
  35. package/dist/impl-NFKMASFN.mjs +1 -0
  36. package/dist/impl-OCKVP3CG.mjs +1 -0
  37. package/dist/impl-ORZO5DKU.mjs +1 -0
  38. package/dist/impl-TMYFQHHJ.mjs +1 -0
  39. package/dist/impl-TN3TNFJ3.mjs +1 -0
  40. package/dist/impl-TY543E6H.mjs +1 -0
  41. package/dist/impl-U5YMWF3E.mjs +1 -0
  42. package/dist/impl-V26VW5PW.mjs +1 -0
  43. package/dist/impl-V75HSG53.mjs +1 -0
  44. package/dist/impl-VTEL3Q42.mjs +1 -0
  45. package/dist/impl-WJX6QJZG.mjs +1 -0
  46. package/dist/impl-YF6RKW6X.mjs +1 -0
  47. package/dist/impl-ZHAW5DO6.mjs +1 -0
  48. package/dist/index.mjs +2923 -0
  49. package/package.json +82 -61
  50. package/.yarn/sdks/eslint/package.json +0 -6
  51. package/.yarn/sdks/prettier/package.json +0 -6
  52. package/.yarn/sdks/typescript/package.json +0 -6
  53. package/CHANGELOG.md +0 -125
  54. package/build/ai/TranscendPromptManager.d.ts +0 -254
  55. package/build/ai/TranscendPromptManager.d.ts.map +0 -1
  56. package/build/ai/TranscendPromptManager.js +0 -472
  57. package/build/ai/TranscendPromptManager.js.map +0 -1
  58. package/build/ai/filterNullishValuesFromObject.d.ts +0 -9
  59. package/build/ai/filterNullishValuesFromObject.d.ts.map +0 -1
  60. package/build/ai/filterNullishValuesFromObject.js +0 -20
  61. package/build/ai/filterNullishValuesFromObject.js.map +0 -1
  62. package/build/ai/getGitFilesThatChanged.d.ts +0 -31
  63. package/build/ai/getGitFilesThatChanged.d.ts.map +0 -1
  64. package/build/ai/getGitFilesThatChanged.js +0 -56
  65. package/build/ai/getGitFilesThatChanged.js.map +0 -1
  66. package/build/ai/index.d.ts +0 -6
  67. package/build/ai/index.d.ts.map +0 -1
  68. package/build/ai/index.js +0 -24
  69. package/build/ai/index.js.map +0 -1
  70. package/build/ai/removeLinks.d.ts +0 -8
  71. package/build/ai/removeLinks.d.ts.map +0 -1
  72. package/build/ai/removeLinks.js +0 -15
  73. package/build/ai/removeLinks.js.map +0 -1
  74. package/build/api-keys/generateCrossAccountApiKeys.d.ts +0 -40
  75. package/build/api-keys/generateCrossAccountApiKeys.d.ts.map +0 -1
  76. package/build/api-keys/generateCrossAccountApiKeys.js +0 -96
  77. package/build/api-keys/generateCrossAccountApiKeys.js.map +0 -1
  78. package/build/api-keys/index.d.ts +0 -5
  79. package/build/api-keys/index.d.ts.map +0 -1
  80. package/build/api-keys/index.js +0 -21
  81. package/build/api-keys/index.js.map +0 -1
  82. package/build/api-keys/listDirectories.d.ts +0 -8
  83. package/build/api-keys/listDirectories.d.ts.map +0 -1
  84. package/build/api-keys/listDirectories.js +0 -16
  85. package/build/api-keys/listDirectories.js.map +0 -1
  86. package/build/api-keys/listFiles.d.ts +0 -17
  87. package/build/api-keys/listFiles.d.ts.map +0 -1
  88. package/build/api-keys/listFiles.js +0 -34
  89. package/build/api-keys/listFiles.js.map +0 -1
  90. package/build/api-keys/validateTranscendAuth.d.ts +0 -10
  91. package/build/api-keys/validateTranscendAuth.d.ts.map +0 -1
  92. package/build/api-keys/validateTranscendAuth.js +0 -58
  93. package/build/api-keys/validateTranscendAuth.js.map +0 -1
  94. package/build/cli-build-xdi-sync-endpoint.d.ts +0 -3
  95. package/build/cli-build-xdi-sync-endpoint.d.ts.map +0 -1
  96. package/build/cli-build-xdi-sync-endpoint.js +0 -48
  97. package/build/cli-build-xdi-sync-endpoint.js.map +0 -1
  98. package/build/cli-chunk-csv.d.ts +0 -14
  99. package/build/cli-chunk-csv.d.ts.map +0 -1
  100. package/build/cli-chunk-csv.js +0 -140
  101. package/build/cli-chunk-csv.js.map +0 -1
  102. package/build/cli-consent-manager-service-json-to-yml.d.ts +0 -3
  103. package/build/cli-consent-manager-service-json-to-yml.d.ts.map +0 -1
  104. package/build/cli-consent-manager-service-json-to-yml.js +0 -92
  105. package/build/cli-consent-manager-service-json-to-yml.js.map +0 -1
  106. package/build/cli-consent-managers-to-business-entities.d.ts +0 -3
  107. package/build/cli-consent-managers-to-business-entities.d.ts.map +0 -1
  108. package/build/cli-consent-managers-to-business-entities.js +0 -56
  109. package/build/cli-consent-managers-to-business-entities.js.map +0 -1
  110. package/build/cli-cron-mark-identifiers-completed.d.ts +0 -3
  111. package/build/cli-cron-mark-identifiers-completed.d.ts.map +0 -1
  112. package/build/cli-cron-mark-identifiers-completed.js +0 -45
  113. package/build/cli-cron-mark-identifiers-completed.js.map +0 -1
  114. package/build/cli-cron-pull-identifiers.d.ts +0 -3
  115. package/build/cli-cron-pull-identifiers.d.ts.map +0 -1
  116. package/build/cli-cron-pull-identifiers.js +0 -96
  117. package/build/cli-cron-pull-identifiers.js.map +0 -1
  118. package/build/cli-cron-pull-profiles.d.ts +0 -3
  119. package/build/cli-cron-pull-profiles.d.ts.map +0 -1
  120. package/build/cli-cron-pull-profiles.js +0 -119
  121. package/build/cli-cron-pull-profiles.js.map +0 -1
  122. package/build/cli-derive-data-silos-from-data-flows-cross-instance.d.ts +0 -3
  123. package/build/cli-derive-data-silos-from-data-flows-cross-instance.d.ts.map +0 -1
  124. package/build/cli-derive-data-silos-from-data-flows-cross-instance.js +0 -148
  125. package/build/cli-derive-data-silos-from-data-flows-cross-instance.js.map +0 -1
  126. package/build/cli-derive-data-silos-from-data-flows.d.ts +0 -3
  127. package/build/cli-derive-data-silos-from-data-flows.d.ts.map +0 -1
  128. package/build/cli-derive-data-silos-from-data-flows.js +0 -88
  129. package/build/cli-derive-data-silos-from-data-flows.js.map +0 -1
  130. package/build/cli-discover-silos.d.ts +0 -3
  131. package/build/cli-discover-silos.d.ts.map +0 -1
  132. package/build/cli-discover-silos.js +0 -65
  133. package/build/cli-discover-silos.js.map +0 -1
  134. package/build/cli-generate-cross-account-api-keys.d.ts +0 -3
  135. package/build/cli-generate-cross-account-api-keys.d.ts.map +0 -1
  136. package/build/cli-generate-cross-account-api-keys.js +0 -89
  137. package/build/cli-generate-cross-account-api-keys.js.map +0 -1
  138. package/build/cli-manual-enrichment-pull-identifiers.d.ts +0 -3
  139. package/build/cli-manual-enrichment-pull-identifiers.d.ts.map +0 -1
  140. package/build/cli-manual-enrichment-pull-identifiers.js +0 -56
  141. package/build/cli-manual-enrichment-pull-identifiers.js.map +0 -1
  142. package/build/cli-manual-enrichment-push-identifiers.d.ts +0 -3
  143. package/build/cli-manual-enrichment-push-identifiers.d.ts.map +0 -1
  144. package/build/cli-manual-enrichment-push-identifiers.js +0 -51
  145. package/build/cli-manual-enrichment-push-identifiers.js.map +0 -1
  146. package/build/cli-mark-request-data-silos-completed.d.ts +0 -3
  147. package/build/cli-mark-request-data-silos-completed.d.ts.map +0 -1
  148. package/build/cli-mark-request-data-silos-completed.js +0 -81
  149. package/build/cli-mark-request-data-silos-completed.js.map +0 -1
  150. package/build/cli-pull-consent-metrics.d.ts +0 -3
  151. package/build/cli-pull-consent-metrics.d.ts.map +0 -1
  152. package/build/cli-pull-consent-metrics.js +0 -161
  153. package/build/cli-pull-consent-metrics.js.map +0 -1
  154. package/build/cli-pull-consent-preferences.d.ts +0 -3
  155. package/build/cli-pull-consent-preferences.d.ts.map +0 -1
  156. package/build/cli-pull-consent-preferences.js +0 -83
  157. package/build/cli-pull-consent-preferences.js.map +0 -1
  158. package/build/cli-pull-datapoints.d.ts +0 -3
  159. package/build/cli-pull-datapoints.d.ts.map +0 -1
  160. package/build/cli-pull-datapoints.js +0 -93
  161. package/build/cli-pull-datapoints.js.map +0 -1
  162. package/build/cli-pull-unstructured-discovery-files.d.ts +0 -3
  163. package/build/cli-pull-unstructured-discovery-files.d.ts.map +0 -1
  164. package/build/cli-pull-unstructured-discovery-files.js +0 -73
  165. package/build/cli-pull-unstructured-discovery-files.js.map +0 -1
  166. package/build/cli-pull.d.ts +0 -3
  167. package/build/cli-pull.d.ts.map +0 -1
  168. package/build/cli-pull.js +0 -135
  169. package/build/cli-pull.js.map +0 -1
  170. package/build/cli-push.d.ts +0 -3
  171. package/build/cli-push.d.ts.map +0 -1
  172. package/build/cli-push.js +0 -167
  173. package/build/cli-push.js.map +0 -1
  174. package/build/cli-request-approve.d.ts +0 -3
  175. package/build/cli-request-approve.d.ts.map +0 -1
  176. package/build/cli-request-approve.js +0 -88
  177. package/build/cli-request-approve.js.map +0 -1
  178. package/build/cli-request-cancel.d.ts +0 -3
  179. package/build/cli-request-cancel.d.ts.map +0 -1
  180. package/build/cli-request-cancel.js +0 -90
  181. package/build/cli-request-cancel.js.map +0 -1
  182. package/build/cli-request-download-files.d.ts +0 -3
  183. package/build/cli-request-download-files.d.ts.map +0 -1
  184. package/build/cli-request-download-files.js +0 -77
  185. package/build/cli-request-download-files.js.map +0 -1
  186. package/build/cli-request-enricher-restart.d.ts +0 -3
  187. package/build/cli-request-enricher-restart.d.ts.map +0 -1
  188. package/build/cli-request-enricher-restart.js +0 -94
  189. package/build/cli-request-enricher-restart.js.map +0 -1
  190. package/build/cli-request-export.d.ts +0 -3
  191. package/build/cli-request-export.d.ts.map +0 -1
  192. package/build/cli-request-export.js +0 -96
  193. package/build/cli-request-export.js.map +0 -1
  194. package/build/cli-request-mark-silent.d.ts +0 -3
  195. package/build/cli-request-mark-silent.d.ts.map +0 -1
  196. package/build/cli-request-mark-silent.js +0 -84
  197. package/build/cli-request-mark-silent.js.map +0 -1
  198. package/build/cli-request-notify-additional-time.d.ts +0 -3
  199. package/build/cli-request-notify-additional-time.d.ts.map +0 -1
  200. package/build/cli-request-notify-additional-time.js +0 -88
  201. package/build/cli-request-notify-additional-time.js.map +0 -1
  202. package/build/cli-request-reject-unverified-identifiers.d.ts +0 -3
  203. package/build/cli-request-reject-unverified-identifiers.d.ts.map +0 -1
  204. package/build/cli-request-reject-unverified-identifiers.js +0 -57
  205. package/build/cli-request-reject-unverified-identifiers.js.map +0 -1
  206. package/build/cli-request-restart.d.ts +0 -3
  207. package/build/cli-request-restart.d.ts.map +0 -1
  208. package/build/cli-request-restart.js +0 -111
  209. package/build/cli-request-restart.js.map +0 -1
  210. package/build/cli-request-upload.d.ts +0 -3
  211. package/build/cli-request-upload.d.ts.map +0 -1
  212. package/build/cli-request-upload.js +0 -60
  213. package/build/cli-request-upload.js.map +0 -1
  214. package/build/cli-retry-request-data-silos.d.ts +0 -3
  215. package/build/cli-retry-request-data-silos.d.ts.map +0 -1
  216. package/build/cli-retry-request-data-silos.js +0 -57
  217. package/build/cli-retry-request-data-silos.js.map +0 -1
  218. package/build/cli-scan-packages.d.ts +0 -3
  219. package/build/cli-scan-packages.d.ts.map +0 -1
  220. package/build/cli-scan-packages.js +0 -76
  221. package/build/cli-scan-packages.js.map +0 -1
  222. package/build/cli-skip-preflight-jobs.d.ts +0 -3
  223. package/build/cli-skip-preflight-jobs.d.ts.map +0 -1
  224. package/build/cli-skip-preflight-jobs.js +0 -53
  225. package/build/cli-skip-preflight-jobs.js.map +0 -1
  226. package/build/cli-skip-request-data-silos.d.ts +0 -3
  227. package/build/cli-skip-request-data-silos.d.ts.map +0 -1
  228. package/build/cli-skip-request-data-silos.js +0 -70
  229. package/build/cli-skip-request-data-silos.js.map +0 -1
  230. package/build/cli-sync-ot.d.ts +0 -3
  231. package/build/cli-sync-ot.d.ts.map +0 -1
  232. package/build/cli-sync-ot.js +0 -58
  233. package/build/cli-sync-ot.js.map +0 -1
  234. package/build/cli-update-consent-manager-to-latest.d.ts +0 -3
  235. package/build/cli-update-consent-manager-to-latest.d.ts.map +0 -1
  236. package/build/cli-update-consent-manager-to-latest.js +0 -70
  237. package/build/cli-update-consent-manager-to-latest.js.map +0 -1
  238. package/build/cli-upload-consent-preferences.d.ts +0 -3
  239. package/build/cli-upload-consent-preferences.d.ts.map +0 -1
  240. package/build/cli-upload-consent-preferences.js +0 -73
  241. package/build/cli-upload-consent-preferences.js.map +0 -1
  242. package/build/cli-upload-cookies-from-csv.d.ts +0 -3
  243. package/build/cli-upload-cookies-from-csv.d.ts.map +0 -1
  244. package/build/cli-upload-cookies-from-csv.js +0 -59
  245. package/build/cli-upload-cookies-from-csv.js.map +0 -1
  246. package/build/cli-upload-data-flows-from-csv.d.ts +0 -3
  247. package/build/cli-upload-data-flows-from-csv.d.ts.map +0 -1
  248. package/build/cli-upload-data-flows-from-csv.js +0 -60
  249. package/build/cli-upload-data-flows-from-csv.js.map +0 -1
  250. package/build/cli-upload-preferences.d.ts +0 -3
  251. package/build/cli-upload-preferences.d.ts.map +0 -1
  252. package/build/cli-upload-preferences.js +0 -142
  253. package/build/cli-upload-preferences.js.map +0 -1
  254. package/build/code-scanning/constants.d.ts +0 -12
  255. package/build/code-scanning/constants.d.ts.map +0 -1
  256. package/build/code-scanning/constants.js +0 -28
  257. package/build/code-scanning/constants.js.map +0 -1
  258. package/build/code-scanning/findCodePackagesInFolder.d.ts +0 -16
  259. package/build/code-scanning/findCodePackagesInFolder.d.ts.map +0 -1
  260. package/build/code-scanning/findCodePackagesInFolder.js +0 -51
  261. package/build/code-scanning/findCodePackagesInFolder.js.map +0 -1
  262. package/build/code-scanning/findFilesToScan.d.ts +0 -29
  263. package/build/code-scanning/findFilesToScan.d.ts.map +0 -1
  264. package/build/code-scanning/findFilesToScan.js +0 -49
  265. package/build/code-scanning/findFilesToScan.js.map +0 -1
  266. package/build/code-scanning/index.d.ts +0 -4
  267. package/build/code-scanning/index.d.ts.map +0 -1
  268. package/build/code-scanning/index.js +0 -20
  269. package/build/code-scanning/index.js.map +0 -1
  270. package/build/code-scanning/integrations/cocoaPods.d.ts +0 -3
  271. package/build/code-scanning/integrations/cocoaPods.d.ts.map +0 -1
  272. package/build/code-scanning/integrations/cocoaPods.js +0 -44
  273. package/build/code-scanning/integrations/cocoaPods.js.map +0 -1
  274. package/build/code-scanning/integrations/composerJson.d.ts +0 -3
  275. package/build/code-scanning/integrations/composerJson.d.ts.map +0 -1
  276. package/build/code-scanning/integrations/composerJson.js +0 -34
  277. package/build/code-scanning/integrations/composerJson.js.map +0 -1
  278. package/build/code-scanning/integrations/gemfile.d.ts +0 -3
  279. package/build/code-scanning/integrations/gemfile.d.ts.map +0 -1
  280. package/build/code-scanning/integrations/gemfile.js +0 -58
  281. package/build/code-scanning/integrations/gemfile.js.map +0 -1
  282. package/build/code-scanning/integrations/gradle.d.ts +0 -13
  283. package/build/code-scanning/integrations/gradle.d.ts.map +0 -1
  284. package/build/code-scanning/integrations/gradle.js +0 -81
  285. package/build/code-scanning/integrations/gradle.js.map +0 -1
  286. package/build/code-scanning/integrations/index.d.ts +0 -9
  287. package/build/code-scanning/integrations/index.d.ts.map +0 -1
  288. package/build/code-scanning/integrations/index.js +0 -25
  289. package/build/code-scanning/integrations/index.js.map +0 -1
  290. package/build/code-scanning/integrations/javascriptPackageJson.d.ts +0 -3
  291. package/build/code-scanning/integrations/javascriptPackageJson.d.ts.map +0 -1
  292. package/build/code-scanning/integrations/javascriptPackageJson.js +0 -38
  293. package/build/code-scanning/integrations/javascriptPackageJson.js.map +0 -1
  294. package/build/code-scanning/integrations/pubspec.d.ts +0 -3
  295. package/build/code-scanning/integrations/pubspec.d.ts.map +0 -1
  296. package/build/code-scanning/integrations/pubspec.js +0 -70
  297. package/build/code-scanning/integrations/pubspec.js.map +0 -1
  298. package/build/code-scanning/integrations/pythonRequirementsTxt.d.ts +0 -3
  299. package/build/code-scanning/integrations/pythonRequirementsTxt.d.ts.map +0 -1
  300. package/build/code-scanning/integrations/pythonRequirementsTxt.js +0 -47
  301. package/build/code-scanning/integrations/pythonRequirementsTxt.js.map +0 -1
  302. package/build/code-scanning/integrations/swift.d.ts +0 -3
  303. package/build/code-scanning/integrations/swift.d.ts.map +0 -1
  304. package/build/code-scanning/integrations/swift.js +0 -62
  305. package/build/code-scanning/integrations/swift.js.map +0 -1
  306. package/build/code-scanning/types.d.ts +0 -10
  307. package/build/code-scanning/types.d.ts.map +0 -1
  308. package/build/code-scanning/types.js +0 -3
  309. package/build/code-scanning/types.js.map +0 -1
  310. package/build/codecs.d.ts +0 -89632
  311. package/build/codecs.d.ts.map +0 -1
  312. package/build/codecs.js +0 -1805
  313. package/build/codecs.js.map +0 -1
  314. package/build/consent-manager/buildXdiSyncEndpoint.d.ts +0 -43
  315. package/build/consent-manager/buildXdiSyncEndpoint.d.ts.map +0 -1
  316. package/build/consent-manager/buildXdiSyncEndpoint.js +0 -81
  317. package/build/consent-manager/buildXdiSyncEndpoint.js.map +0 -1
  318. package/build/consent-manager/consentManagersToBusinessEntities.d.ts +0 -14
  319. package/build/consent-manager/consentManagersToBusinessEntities.d.ts.map +0 -1
  320. package/build/consent-manager/consentManagersToBusinessEntities.js +0 -67
  321. package/build/consent-manager/consentManagersToBusinessEntities.js.map +0 -1
  322. package/build/consent-manager/createConsentToken.d.ts +0 -11
  323. package/build/consent-manager/createConsentToken.d.ts.map +0 -1
  324. package/build/consent-manager/createConsentToken.js +0 -67
  325. package/build/consent-manager/createConsentToken.js.map +0 -1
  326. package/build/consent-manager/dataFlowsToDataSilos.d.ts +0 -19
  327. package/build/consent-manager/dataFlowsToDataSilos.d.ts.map +0 -1
  328. package/build/consent-manager/dataFlowsToDataSilos.js +0 -95
  329. package/build/consent-manager/dataFlowsToDataSilos.js.map +0 -1
  330. package/build/consent-manager/domainToHost.d.ts +0 -8
  331. package/build/consent-manager/domainToHost.d.ts.map +0 -1
  332. package/build/consent-manager/domainToHost.js +0 -12
  333. package/build/consent-manager/domainToHost.js.map +0 -1
  334. package/build/consent-manager/fetchConsentPreferences.d.ts +0 -52
  335. package/build/consent-manager/fetchConsentPreferences.d.ts.map +0 -1
  336. package/build/consent-manager/fetchConsentPreferences.js +0 -80
  337. package/build/consent-manager/fetchConsentPreferences.js.map +0 -1
  338. package/build/consent-manager/index.d.ts +0 -11
  339. package/build/consent-manager/index.d.ts.map +0 -1
  340. package/build/consent-manager/index.js +0 -27
  341. package/build/consent-manager/index.js.map +0 -1
  342. package/build/consent-manager/pullConsentManagerMetrics.d.ts +0 -25
  343. package/build/consent-manager/pullConsentManagerMetrics.d.ts.map +0 -1
  344. package/build/consent-manager/pullConsentManagerMetrics.js +0 -72
  345. package/build/consent-manager/pullConsentManagerMetrics.js.map +0 -1
  346. package/build/consent-manager/types.d.ts +0 -94
  347. package/build/consent-manager/types.d.ts.map +0 -1
  348. package/build/consent-manager/types.js +0 -80
  349. package/build/consent-manager/types.js.map +0 -1
  350. package/build/consent-manager/updateConsentManagerVersionToLatest.d.ts +0 -17
  351. package/build/consent-manager/updateConsentManagerVersionToLatest.d.ts.map +0 -1
  352. package/build/consent-manager/updateConsentManagerVersionToLatest.js +0 -46
  353. package/build/consent-manager/updateConsentManagerVersionToLatest.js.map +0 -1
  354. package/build/consent-manager/uploadConsents.d.ts +0 -24
  355. package/build/consent-manager/uploadConsents.d.ts.map +0 -1
  356. package/build/consent-manager/uploadConsents.js +0 -136
  357. package/build/consent-manager/uploadConsents.js.map +0 -1
  358. package/build/consent-manager/uploadCookiesFromCsv.d.ts +0 -17
  359. package/build/consent-manager/uploadCookiesFromCsv.d.ts.map +0 -1
  360. package/build/consent-manager/uploadCookiesFromCsv.js +0 -73
  361. package/build/consent-manager/uploadCookiesFromCsv.js.map +0 -1
  362. package/build/consent-manager/uploadDataFlowsFromCsv.d.ts +0 -19
  363. package/build/consent-manager/uploadDataFlowsFromCsv.d.ts.map +0 -1
  364. package/build/consent-manager/uploadDataFlowsFromCsv.js +0 -71
  365. package/build/consent-manager/uploadDataFlowsFromCsv.js.map +0 -1
  366. package/build/constants.d.ts +0 -30
  367. package/build/constants.d.ts.map +0 -1
  368. package/build/constants.js +0 -149
  369. package/build/constants.js.map +0 -1
  370. package/build/cron/index.d.ts +0 -7
  371. package/build/cron/index.d.ts.map +0 -1
  372. package/build/cron/index.js +0 -23
  373. package/build/cron/index.js.map +0 -1
  374. package/build/cron/markCronIdentifierCompleted.d.ts +0 -21
  375. package/build/cron/markCronIdentifierCompleted.d.ts.map +0 -1
  376. package/build/cron/markCronIdentifierCompleted.js +0 -70
  377. package/build/cron/markCronIdentifierCompleted.js.map +0 -1
  378. package/build/cron/markRequestDataSiloIdsCompleted.d.ts +0 -22
  379. package/build/cron/markRequestDataSiloIdsCompleted.d.ts.map +0 -1
  380. package/build/cron/markRequestDataSiloIdsCompleted.js +0 -57
  381. package/build/cron/markRequestDataSiloIdsCompleted.js.map +0 -1
  382. package/build/cron/pullCronPageOfIdentifiers.d.ts +0 -47
  383. package/build/cron/pullCronPageOfIdentifiers.d.ts.map +0 -1
  384. package/build/cron/pullCronPageOfIdentifiers.js +0 -82
  385. package/build/cron/pullCronPageOfIdentifiers.js.map +0 -1
  386. package/build/cron/pullCustomSiloOutstandingIdentifiers.d.ts +0 -35
  387. package/build/cron/pullCustomSiloOutstandingIdentifiers.d.ts.map +0 -1
  388. package/build/cron/pullCustomSiloOutstandingIdentifiers.js +0 -88
  389. package/build/cron/pullCustomSiloOutstandingIdentifiers.js.map +0 -1
  390. package/build/cron/pushCronIdentifiersFromCsv.d.ts +0 -21
  391. package/build/cron/pushCronIdentifiersFromCsv.d.ts.map +0 -1
  392. package/build/cron/pushCronIdentifiersFromCsv.js +0 -68
  393. package/build/cron/pushCronIdentifiersFromCsv.js.map +0 -1
  394. package/build/cron/writeCsv.d.ts +0 -35
  395. package/build/cron/writeCsv.d.ts.map +0 -1
  396. package/build/cron/writeCsv.js +0 -136
  397. package/build/cron/writeCsv.js.map +0 -1
  398. package/build/data-inventory/index.d.ts +0 -3
  399. package/build/data-inventory/index.d.ts.map +0 -1
  400. package/build/data-inventory/index.js +0 -19
  401. package/build/data-inventory/index.js.map +0 -1
  402. package/build/data-inventory/pullAllDatapoints.d.ts +0 -78
  403. package/build/data-inventory/pullAllDatapoints.d.ts.map +0 -1
  404. package/build/data-inventory/pullAllDatapoints.js +0 -249
  405. package/build/data-inventory/pullAllDatapoints.js.map +0 -1
  406. package/build/data-inventory/pullUnstructuredSubDataPointRecommendations.d.ts +0 -58
  407. package/build/data-inventory/pullUnstructuredSubDataPointRecommendations.d.ts.map +0 -1
  408. package/build/data-inventory/pullUnstructuredSubDataPointRecommendations.js +0 -110
  409. package/build/data-inventory/pullUnstructuredSubDataPointRecommendations.js.map +0 -1
  410. package/build/enums.d.ts +0 -90
  411. package/build/enums.d.ts.map +0 -1
  412. package/build/enums.js +0 -90
  413. package/build/enums.js.map +0 -1
  414. package/build/graphql/addMessagesToPromptRun.d.ts +0 -40
  415. package/build/graphql/addMessagesToPromptRun.d.ts.map +0 -1
  416. package/build/graphql/addMessagesToPromptRun.js +0 -27
  417. package/build/graphql/addMessagesToPromptRun.js.map +0 -1
  418. package/build/graphql/buildTranscendGraphQLClient.d.ts +0 -18
  419. package/build/graphql/buildTranscendGraphQLClient.d.ts.map +0 -1
  420. package/build/graphql/buildTranscendGraphQLClient.js +0 -37
  421. package/build/graphql/buildTranscendGraphQLClient.js.map +0 -1
  422. package/build/graphql/createSombraGotInstance.d.ts +0 -12
  423. package/build/graphql/createSombraGotInstance.d.ts.map +0 -1
  424. package/build/graphql/createSombraGotInstance.js +0 -39
  425. package/build/graphql/createSombraGotInstance.js.map +0 -1
  426. package/build/graphql/createTranscendConsentGotInstance.d.ts +0 -10
  427. package/build/graphql/createTranscendConsentGotInstance.d.ts.map +0 -1
  428. package/build/graphql/createTranscendConsentGotInstance.js +0 -22
  429. package/build/graphql/createTranscendConsentGotInstance.js.map +0 -1
  430. package/build/graphql/deployConsentManager.d.ts +0 -27
  431. package/build/graphql/deployConsentManager.d.ts.map +0 -1
  432. package/build/graphql/deployConsentManager.js +0 -32
  433. package/build/graphql/deployConsentManager.js.map +0 -1
  434. package/build/graphql/fetchActiveSiloDiscoPlugin.d.ts +0 -28
  435. package/build/graphql/fetchActiveSiloDiscoPlugin.d.ts.map +0 -1
  436. package/build/graphql/fetchActiveSiloDiscoPlugin.js +0 -28
  437. package/build/graphql/fetchActiveSiloDiscoPlugin.js.map +0 -1
  438. package/build/graphql/fetchAllActionItemCollections.d.ts +0 -26
  439. package/build/graphql/fetchAllActionItemCollections.d.ts.map +0 -1
  440. package/build/graphql/fetchAllActionItemCollections.js +0 -22
  441. package/build/graphql/fetchAllActionItemCollections.js.map +0 -1
  442. package/build/graphql/fetchAllActionItems.d.ts +0 -107
  443. package/build/graphql/fetchAllActionItems.d.ts.map +0 -1
  444. package/build/graphql/fetchAllActionItems.js +0 -48
  445. package/build/graphql/fetchAllActionItems.js.map +0 -1
  446. package/build/graphql/fetchAllActions.d.ts +0 -28
  447. package/build/graphql/fetchAllActions.d.ts.map +0 -1
  448. package/build/graphql/fetchAllActions.js +0 -32
  449. package/build/graphql/fetchAllActions.js.map +0 -1
  450. package/build/graphql/fetchAllAgentFiles.d.ts +0 -35
  451. package/build/graphql/fetchAllAgentFiles.d.ts.map +0 -1
  452. package/build/graphql/fetchAllAgentFiles.js +0 -34
  453. package/build/graphql/fetchAllAgentFiles.js.map +0 -1
  454. package/build/graphql/fetchAllAgentFunctions.d.ts +0 -20
  455. package/build/graphql/fetchAllAgentFunctions.d.ts.map +0 -1
  456. package/build/graphql/fetchAllAgentFunctions.js +0 -35
  457. package/build/graphql/fetchAllAgentFunctions.js.map +0 -1
  458. package/build/graphql/fetchAllAgents.d.ts +0 -64
  459. package/build/graphql/fetchAllAgents.d.ts.map +0 -1
  460. package/build/graphql/fetchAllAgents.js +0 -34
  461. package/build/graphql/fetchAllAgents.js.map +0 -1
  462. package/build/graphql/fetchAllAssessmentTemplates.d.ts +0 -44
  463. package/build/graphql/fetchAllAssessmentTemplates.d.ts.map +0 -1
  464. package/build/graphql/fetchAllAssessmentTemplates.js +0 -31
  465. package/build/graphql/fetchAllAssessmentTemplates.js.map +0 -1
  466. package/build/graphql/fetchAllAssessments.d.ts +0 -309
  467. package/build/graphql/fetchAllAssessments.d.ts.map +0 -1
  468. package/build/graphql/fetchAllAssessments.js +0 -32
  469. package/build/graphql/fetchAllAssessments.js.map +0 -1
  470. package/build/graphql/fetchAllAttributeKeys.d.ts +0 -17
  471. package/build/graphql/fetchAllAttributeKeys.d.ts.map +0 -1
  472. package/build/graphql/fetchAllAttributeKeys.js +0 -32
  473. package/build/graphql/fetchAllAttributeKeys.js.map +0 -1
  474. package/build/graphql/fetchAllAttributes.d.ts +0 -45
  475. package/build/graphql/fetchAllAttributes.d.ts.map +0 -1
  476. package/build/graphql/fetchAllAttributes.js +0 -78
  477. package/build/graphql/fetchAllAttributes.js.map +0 -1
  478. package/build/graphql/fetchAllBusinessEntities.d.ts +0 -38
  479. package/build/graphql/fetchAllBusinessEntities.d.ts.map +0 -1
  480. package/build/graphql/fetchAllBusinessEntities.js +0 -32
  481. package/build/graphql/fetchAllBusinessEntities.js.map +0 -1
  482. package/build/graphql/fetchAllCodePackages.d.ts +0 -52
  483. package/build/graphql/fetchAllCodePackages.d.ts.map +0 -1
  484. package/build/graphql/fetchAllCodePackages.js +0 -32
  485. package/build/graphql/fetchAllCodePackages.js.map +0 -1
  486. package/build/graphql/fetchAllCookies.d.ts +0 -52
  487. package/build/graphql/fetchAllCookies.d.ts.map +0 -1
  488. package/build/graphql/fetchAllCookies.js +0 -38
  489. package/build/graphql/fetchAllCookies.js.map +0 -1
  490. package/build/graphql/fetchAllDataCategories.d.ts +0 -42
  491. package/build/graphql/fetchAllDataCategories.d.ts.map +0 -1
  492. package/build/graphql/fetchAllDataCategories.js +0 -32
  493. package/build/graphql/fetchAllDataCategories.js.map +0 -1
  494. package/build/graphql/fetchAllDataFlows.d.ts +0 -52
  495. package/build/graphql/fetchAllDataFlows.d.ts.map +0 -1
  496. package/build/graphql/fetchAllDataFlows.js +0 -41
  497. package/build/graphql/fetchAllDataFlows.js.map +0 -1
  498. package/build/graphql/fetchAllMessages.d.ts +0 -25
  499. package/build/graphql/fetchAllMessages.d.ts.map +0 -1
  500. package/build/graphql/fetchAllMessages.js +0 -17
  501. package/build/graphql/fetchAllMessages.js.map +0 -1
  502. package/build/graphql/fetchAllPolicies.d.ts +0 -29
  503. package/build/graphql/fetchAllPolicies.d.ts.map +0 -1
  504. package/build/graphql/fetchAllPolicies.js +0 -21
  505. package/build/graphql/fetchAllPolicies.js.map +0 -1
  506. package/build/graphql/fetchAllPreferenceTopics.d.ts +0 -53
  507. package/build/graphql/fetchAllPreferenceTopics.d.ts.map +0 -1
  508. package/build/graphql/fetchAllPreferenceTopics.js +0 -32
  509. package/build/graphql/fetchAllPreferenceTopics.js.map +0 -1
  510. package/build/graphql/fetchAllPrivacyCenters.d.ts +0 -53
  511. package/build/graphql/fetchAllPrivacyCenters.d.ts.map +0 -1
  512. package/build/graphql/fetchAllPrivacyCenters.js +0 -26
  513. package/build/graphql/fetchAllPrivacyCenters.js.map +0 -1
  514. package/build/graphql/fetchAllProcessingPurposes.d.ts +0 -40
  515. package/build/graphql/fetchAllProcessingPurposes.d.ts.map +0 -1
  516. package/build/graphql/fetchAllProcessingPurposes.js +0 -32
  517. package/build/graphql/fetchAllProcessingPurposes.js.map +0 -1
  518. package/build/graphql/fetchAllPurposes.d.ts +0 -47
  519. package/build/graphql/fetchAllPurposes.d.ts.map +0 -1
  520. package/build/graphql/fetchAllPurposes.js +0 -36
  521. package/build/graphql/fetchAllPurposes.js.map +0 -1
  522. package/build/graphql/fetchAllPurposesAndPreferences.d.ts +0 -15
  523. package/build/graphql/fetchAllPurposesAndPreferences.d.ts.map +0 -1
  524. package/build/graphql/fetchAllPurposesAndPreferences.js +0 -26
  525. package/build/graphql/fetchAllPurposesAndPreferences.js.map +0 -1
  526. package/build/graphql/fetchAllRepositories.d.ts +0 -33
  527. package/build/graphql/fetchAllRepositories.d.ts.map +0 -1
  528. package/build/graphql/fetchAllRepositories.js +0 -32
  529. package/build/graphql/fetchAllRepositories.js.map +0 -1
  530. package/build/graphql/fetchAllRequestEnrichers.d.ts +0 -29
  531. package/build/graphql/fetchAllRequestEnrichers.d.ts.map +0 -1
  532. package/build/graphql/fetchAllRequestEnrichers.js +0 -34
  533. package/build/graphql/fetchAllRequestEnrichers.js.map +0 -1
  534. package/build/graphql/fetchAllRequestIdentifierMetadata.d.ts +0 -21
  535. package/build/graphql/fetchAllRequestIdentifierMetadata.d.ts.map +0 -1
  536. package/build/graphql/fetchAllRequestIdentifierMetadata.js +0 -34
  537. package/build/graphql/fetchAllRequestIdentifierMetadata.js.map +0 -1
  538. package/build/graphql/fetchAllRequestIdentifiers.d.ts +0 -105
  539. package/build/graphql/fetchAllRequestIdentifiers.d.ts.map +0 -1
  540. package/build/graphql/fetchAllRequestIdentifiers.js +0 -94
  541. package/build/graphql/fetchAllRequestIdentifiers.js.map +0 -1
  542. package/build/graphql/fetchAllRequests.d.ts +0 -5577
  543. package/build/graphql/fetchAllRequests.d.ts.map +0 -1
  544. package/build/graphql/fetchAllRequests.js +0 -146
  545. package/build/graphql/fetchAllRequests.js.map +0 -1
  546. package/build/graphql/fetchAllSoftwareDevelopmentKits.d.ts +0 -38
  547. package/build/graphql/fetchAllSoftwareDevelopmentKits.d.ts.map +0 -1
  548. package/build/graphql/fetchAllSoftwareDevelopmentKits.js +0 -32
  549. package/build/graphql/fetchAllSoftwareDevelopmentKits.js.map +0 -1
  550. package/build/graphql/fetchAllTeams.d.ts +0 -42
  551. package/build/graphql/fetchAllTeams.d.ts.map +0 -1
  552. package/build/graphql/fetchAllTeams.js +0 -32
  553. package/build/graphql/fetchAllTeams.js.map +0 -1
  554. package/build/graphql/fetchAllUsers.d.ts +0 -17
  555. package/build/graphql/fetchAllUsers.d.ts.map +0 -1
  556. package/build/graphql/fetchAllUsers.js +0 -32
  557. package/build/graphql/fetchAllUsers.js.map +0 -1
  558. package/build/graphql/fetchAllVendors.d.ts +0 -57
  559. package/build/graphql/fetchAllVendors.d.ts.map +0 -1
  560. package/build/graphql/fetchAllVendors.js +0 -32
  561. package/build/graphql/fetchAllVendors.js.map +0 -1
  562. package/build/graphql/fetchApiKeys.d.ts +0 -29
  563. package/build/graphql/fetchApiKeys.d.ts.map +0 -1
  564. package/build/graphql/fetchApiKeys.js +0 -72
  565. package/build/graphql/fetchApiKeys.js.map +0 -1
  566. package/build/graphql/fetchCatalogs.d.ts +0 -37
  567. package/build/graphql/fetchCatalogs.d.ts.map +0 -1
  568. package/build/graphql/fetchCatalogs.js +0 -54
  569. package/build/graphql/fetchCatalogs.js.map +0 -1
  570. package/build/graphql/fetchConsentManagerId.d.ts +0 -166
  571. package/build/graphql/fetchConsentManagerId.d.ts.map +0 -1
  572. package/build/graphql/fetchConsentManagerId.js +0 -91
  573. package/build/graphql/fetchConsentManagerId.js.map +0 -1
  574. package/build/graphql/fetchDataSubjects.d.ts +0 -62
  575. package/build/graphql/fetchDataSubjects.d.ts.map +0 -1
  576. package/build/graphql/fetchDataSubjects.js +0 -103
  577. package/build/graphql/fetchDataSubjects.js.map +0 -1
  578. package/build/graphql/fetchIdentifiers.d.ts +0 -58
  579. package/build/graphql/fetchIdentifiers.d.ts.map +0 -1
  580. package/build/graphql/fetchIdentifiers.js +0 -89
  581. package/build/graphql/fetchIdentifiers.js.map +0 -1
  582. package/build/graphql/fetchLargeLanguageModels.d.ts +0 -20
  583. package/build/graphql/fetchLargeLanguageModels.d.ts.map +0 -1
  584. package/build/graphql/fetchLargeLanguageModels.js +0 -32
  585. package/build/graphql/fetchLargeLanguageModels.js.map +0 -1
  586. package/build/graphql/fetchPrivacyCenterId.d.ts +0 -17
  587. package/build/graphql/fetchPrivacyCenterId.d.ts.map +0 -1
  588. package/build/graphql/fetchPrivacyCenterId.js +0 -35
  589. package/build/graphql/fetchPrivacyCenterId.js.map +0 -1
  590. package/build/graphql/fetchPromptGroups.d.ts +0 -22
  591. package/build/graphql/fetchPromptGroups.d.ts.map +0 -1
  592. package/build/graphql/fetchPromptGroups.js +0 -32
  593. package/build/graphql/fetchPromptGroups.js.map +0 -1
  594. package/build/graphql/fetchPromptPartials.d.ts +0 -17
  595. package/build/graphql/fetchPromptPartials.d.ts.map +0 -1
  596. package/build/graphql/fetchPromptPartials.js +0 -32
  597. package/build/graphql/fetchPromptPartials.js.map +0 -1
  598. package/build/graphql/fetchPromptThreads.d.ts +0 -29
  599. package/build/graphql/fetchPromptThreads.d.ts.map +0 -1
  600. package/build/graphql/fetchPromptThreads.js +0 -34
  601. package/build/graphql/fetchPromptThreads.js.map +0 -1
  602. package/build/graphql/fetchPrompts.d.ts +0 -112
  603. package/build/graphql/fetchPrompts.d.ts.map +0 -1
  604. package/build/graphql/fetchPrompts.js +0 -55
  605. package/build/graphql/fetchPrompts.js.map +0 -1
  606. package/build/graphql/fetchRequestDataSilo.d.ts +0 -41
  607. package/build/graphql/fetchRequestDataSilo.d.ts.map +0 -1
  608. package/build/graphql/fetchRequestDataSilo.js +0 -79
  609. package/build/graphql/fetchRequestDataSilo.js.map +0 -1
  610. package/build/graphql/fetchRequestDataSiloActiveCount.d.ts +0 -13
  611. package/build/graphql/fetchRequestDataSiloActiveCount.d.ts.map +0 -1
  612. package/build/graphql/fetchRequestDataSiloActiveCount.js +0 -23
  613. package/build/graphql/fetchRequestDataSiloActiveCount.js.map +0 -1
  614. package/build/graphql/fetchRequestFilesForRequest.d.ts +0 -21
  615. package/build/graphql/fetchRequestFilesForRequest.d.ts.map +0 -1
  616. package/build/graphql/fetchRequestFilesForRequest.js +0 -34
  617. package/build/graphql/fetchRequestFilesForRequest.js.map +0 -1
  618. package/build/graphql/formatAttributeValues.d.ts +0 -15
  619. package/build/graphql/formatAttributeValues.d.ts.map +0 -1
  620. package/build/graphql/formatAttributeValues.js +0 -29
  621. package/build/graphql/formatAttributeValues.js.map +0 -1
  622. package/build/graphql/gqls/RequestDataSilo.d.ts +0 -5
  623. package/build/graphql/gqls/RequestDataSilo.d.ts.map +0 -1
  624. package/build/graphql/gqls/RequestDataSilo.js +0 -69
  625. package/build/graphql/gqls/RequestDataSilo.js.map +0 -1
  626. package/build/graphql/gqls/RequestEnricher.d.ts +0 -4
  627. package/build/graphql/gqls/RequestEnricher.d.ts.map +0 -1
  628. package/build/graphql/gqls/RequestEnricher.js +0 -54
  629. package/build/graphql/gqls/RequestEnricher.js.map +0 -1
  630. package/build/graphql/gqls/RequestIdentifier.d.ts +0 -3
  631. package/build/graphql/gqls/RequestIdentifier.d.ts.map +0 -1
  632. package/build/graphql/gqls/RequestIdentifier.js +0 -41
  633. package/build/graphql/gqls/RequestIdentifier.js.map +0 -1
  634. package/build/graphql/gqls/action.d.ts +0 -3
  635. package/build/graphql/gqls/action.d.ts.map +0 -1
  636. package/build/graphql/gqls/action.js +0 -36
  637. package/build/graphql/gqls/action.js.map +0 -1
  638. package/build/graphql/gqls/actionItem.d.ts +0 -4
  639. package/build/graphql/gqls/actionItem.d.ts.map +0 -1
  640. package/build/graphql/gqls/actionItem.js +0 -74
  641. package/build/graphql/gqls/actionItem.js.map +0 -1
  642. package/build/graphql/gqls/actionItemCollection.d.ts +0 -4
  643. package/build/graphql/gqls/actionItemCollection.d.ts.map +0 -1
  644. package/build/graphql/gqls/actionItemCollection.js +0 -48
  645. package/build/graphql/gqls/actionItemCollection.js.map +0 -1
  646. package/build/graphql/gqls/agent.d.ts +0 -4
  647. package/build/graphql/gqls/agent.d.ts.map +0 -1
  648. package/build/graphql/gqls/agent.js +0 -72
  649. package/build/graphql/gqls/agent.js.map +0 -1
  650. package/build/graphql/gqls/agentFile.d.ts +0 -4
  651. package/build/graphql/gqls/agentFile.d.ts.map +0 -1
  652. package/build/graphql/gqls/agentFile.js +0 -54
  653. package/build/graphql/gqls/agentFile.js.map +0 -1
  654. package/build/graphql/gqls/agentFunction.d.ts +0 -4
  655. package/build/graphql/gqls/agentFunction.d.ts.map +0 -1
  656. package/build/graphql/gqls/agentFunction.js +0 -46
  657. package/build/graphql/gqls/agentFunction.js.map +0 -1
  658. package/build/graphql/gqls/apiKey.d.ts +0 -4
  659. package/build/graphql/gqls/apiKey.d.ts.map +0 -1
  660. package/build/graphql/gqls/apiKey.js +0 -44
  661. package/build/graphql/gqls/apiKey.js.map +0 -1
  662. package/build/graphql/gqls/assessment.d.ts +0 -4
  663. package/build/graphql/gqls/assessment.d.ts.map +0 -1
  664. package/build/graphql/gqls/assessment.js +0 -299
  665. package/build/graphql/gqls/assessment.js.map +0 -1
  666. package/build/graphql/gqls/assessmentTemplate.d.ts +0 -2
  667. package/build/graphql/gqls/assessmentTemplate.d.ts.map +0 -1
  668. package/build/graphql/gqls/assessmentTemplate.js +0 -70
  669. package/build/graphql/gqls/assessmentTemplate.js.map +0 -1
  670. package/build/graphql/gqls/attribute.d.ts +0 -9
  671. package/build/graphql/gqls/attribute.d.ts.map +0 -1
  672. package/build/graphql/gqls/attribute.js +0 -122
  673. package/build/graphql/gqls/attribute.js.map +0 -1
  674. package/build/graphql/gqls/attributeKey.d.ts +0 -2
  675. package/build/graphql/gqls/attributeKey.d.ts.map +0 -1
  676. package/build/graphql/gqls/attributeKey.js +0 -24
  677. package/build/graphql/gqls/attributeKey.js.map +0 -1
  678. package/build/graphql/gqls/auth.d.ts +0 -4
  679. package/build/graphql/gqls/auth.d.ts.map +0 -1
  680. package/build/graphql/gqls/auth.js +0 -46
  681. package/build/graphql/gqls/auth.js.map +0 -1
  682. package/build/graphql/gqls/businessEntity.d.ts +0 -4
  683. package/build/graphql/gqls/businessEntity.d.ts.map +0 -1
  684. package/build/graphql/gqls/businessEntity.js +0 -70
  685. package/build/graphql/gqls/businessEntity.js.map +0 -1
  686. package/build/graphql/gqls/catalog.d.ts +0 -2
  687. package/build/graphql/gqls/catalog.d.ts.map +0 -1
  688. package/build/graphql/gqls/catalog.js +0 -19
  689. package/build/graphql/gqls/catalog.js.map +0 -1
  690. package/build/graphql/gqls/codePackage.d.ts +0 -4
  691. package/build/graphql/gqls/codePackage.d.ts.map +0 -1
  692. package/build/graphql/gqls/codePackage.js +0 -112
  693. package/build/graphql/gqls/codePackage.js.map +0 -1
  694. package/build/graphql/gqls/consentManager.d.ts +0 -26
  695. package/build/graphql/gqls/consentManager.d.ts.map +0 -1
  696. package/build/graphql/gqls/consentManager.js +0 -391
  697. package/build/graphql/gqls/consentManager.js.map +0 -1
  698. package/build/graphql/gqls/consentManagerMetrics.d.ts +0 -2
  699. package/build/graphql/gqls/consentManagerMetrics.d.ts.map +0 -1
  700. package/build/graphql/gqls/consentManagerMetrics.js +0 -18
  701. package/build/graphql/gqls/consentManagerMetrics.js.map +0 -1
  702. package/build/graphql/gqls/dataCategory.d.ts +0 -4
  703. package/build/graphql/gqls/dataCategory.d.ts.map +0 -1
  704. package/build/graphql/gqls/dataCategory.js +0 -62
  705. package/build/graphql/gqls/dataCategory.js.map +0 -1
  706. package/build/graphql/gqls/dataPoint.d.ts +0 -8
  707. package/build/graphql/gqls/dataPoint.d.ts.map +0 -1
  708. package/build/graphql/gqls/dataPoint.js +0 -222
  709. package/build/graphql/gqls/dataPoint.js.map +0 -1
  710. package/build/graphql/gqls/dataSilo.d.ts +0 -6
  711. package/build/graphql/gqls/dataSilo.d.ts.map +0 -1
  712. package/build/graphql/gqls/dataSilo.js +0 -145
  713. package/build/graphql/gqls/dataSilo.js.map +0 -1
  714. package/build/graphql/gqls/dataSubject.d.ts +0 -5
  715. package/build/graphql/gqls/dataSubject.d.ts.map +0 -1
  716. package/build/graphql/gqls/dataSubject.js +0 -45
  717. package/build/graphql/gqls/dataSubject.js.map +0 -1
  718. package/build/graphql/gqls/enricher.d.ts +0 -14
  719. package/build/graphql/gqls/enricher.d.ts.map +0 -1
  720. package/build/graphql/gqls/enricher.js +0 -68
  721. package/build/graphql/gqls/enricher.js.map +0 -1
  722. package/build/graphql/gqls/entry.d.ts +0 -2
  723. package/build/graphql/gqls/entry.d.ts.map +0 -1
  724. package/build/graphql/gqls/entry.js +0 -17
  725. package/build/graphql/gqls/entry.js.map +0 -1
  726. package/build/graphql/gqls/identifier.d.ts +0 -5
  727. package/build/graphql/gqls/identifier.d.ts.map +0 -1
  728. package/build/graphql/gqls/identifier.js +0 -65
  729. package/build/graphql/gqls/identifier.js.map +0 -1
  730. package/build/graphql/gqls/index.d.ts +0 -50
  731. package/build/graphql/gqls/index.d.ts.map +0 -1
  732. package/build/graphql/gqls/index.js +0 -66
  733. package/build/graphql/gqls/index.js.map +0 -1
  734. package/build/graphql/gqls/largeLanguageModel.d.ts +0 -2
  735. package/build/graphql/gqls/largeLanguageModel.d.ts.map +0 -1
  736. package/build/graphql/gqls/largeLanguageModel.js +0 -33
  737. package/build/graphql/gqls/largeLanguageModel.js.map +0 -1
  738. package/build/graphql/gqls/message.d.ts +0 -3
  739. package/build/graphql/gqls/message.d.ts.map +0 -1
  740. package/build/graphql/gqls/message.js +0 -25
  741. package/build/graphql/gqls/message.js.map +0 -1
  742. package/build/graphql/gqls/organization.d.ts +0 -2
  743. package/build/graphql/gqls/organization.d.ts.map +0 -1
  744. package/build/graphql/gqls/organization.js +0 -14
  745. package/build/graphql/gqls/organization.js.map +0 -1
  746. package/build/graphql/gqls/policy.d.ts +0 -3
  747. package/build/graphql/gqls/policy.d.ts.map +0 -1
  748. package/build/graphql/gqls/policy.js +0 -39
  749. package/build/graphql/gqls/policy.js.map +0 -1
  750. package/build/graphql/gqls/preferenceTopic.d.ts +0 -2
  751. package/build/graphql/gqls/preferenceTopic.d.ts.map +0 -1
  752. package/build/graphql/gqls/preferenceTopic.js +0 -47
  753. package/build/graphql/gqls/preferenceTopic.js.map +0 -1
  754. package/build/graphql/gqls/privacyCenter.d.ts +0 -5
  755. package/build/graphql/gqls/privacyCenter.d.ts.map +0 -1
  756. package/build/graphql/gqls/privacyCenter.js +0 -52
  757. package/build/graphql/gqls/privacyCenter.js.map +0 -1
  758. package/build/graphql/gqls/processingPurpose.d.ts +0 -4
  759. package/build/graphql/gqls/processingPurpose.d.ts.map +0 -1
  760. package/build/graphql/gqls/processingPurpose.js +0 -64
  761. package/build/graphql/gqls/processingPurpose.js.map +0 -1
  762. package/build/graphql/gqls/prompt.d.ts +0 -11
  763. package/build/graphql/gqls/prompt.d.ts.map +0 -1
  764. package/build/graphql/gqls/prompt.js +0 -153
  765. package/build/graphql/gqls/prompt.js.map +0 -1
  766. package/build/graphql/gqls/promptRun.d.ts +0 -3
  767. package/build/graphql/gqls/promptRun.d.ts.map +0 -1
  768. package/build/graphql/gqls/promptRun.js +0 -27
  769. package/build/graphql/gqls/promptRun.js.map +0 -1
  770. package/build/graphql/gqls/promptThread.d.ts +0 -2
  771. package/build/graphql/gqls/promptThread.d.ts.map +0 -1
  772. package/build/graphql/gqls/promptThread.js +0 -23
  773. package/build/graphql/gqls/promptThread.js.map +0 -1
  774. package/build/graphql/gqls/purpose.d.ts +0 -2
  775. package/build/graphql/gqls/purpose.d.ts.map +0 -1
  776. package/build/graphql/gqls/purpose.js +0 -45
  777. package/build/graphql/gqls/purpose.js.map +0 -1
  778. package/build/graphql/gqls/repository.d.ts +0 -4
  779. package/build/graphql/gqls/repository.d.ts.map +0 -1
  780. package/build/graphql/gqls/repository.js +0 -80
  781. package/build/graphql/gqls/repository.js.map +0 -1
  782. package/build/graphql/gqls/request.d.ts +0 -6
  783. package/build/graphql/gqls/request.d.ts.map +0 -1
  784. package/build/graphql/gqls/request.js +0 -87
  785. package/build/graphql/gqls/request.js.map +0 -1
  786. package/build/graphql/gqls/requestFile.d.ts +0 -2
  787. package/build/graphql/gqls/requestFile.d.ts.map +0 -1
  788. package/build/graphql/gqls/requestFile.js +0 -30
  789. package/build/graphql/gqls/requestFile.js.map +0 -1
  790. package/build/graphql/gqls/siloDiscovery.d.ts +0 -3
  791. package/build/graphql/gqls/siloDiscovery.d.ts.map +0 -1
  792. package/build/graphql/gqls/siloDiscovery.js +0 -30
  793. package/build/graphql/gqls/siloDiscovery.js.map +0 -1
  794. package/build/graphql/gqls/softwareDevelopmentKit.d.ts +0 -4
  795. package/build/graphql/gqls/softwareDevelopmentKit.d.ts.map +0 -1
  796. package/build/graphql/gqls/softwareDevelopmentKit.js +0 -92
  797. package/build/graphql/gqls/softwareDevelopmentKit.js.map +0 -1
  798. package/build/graphql/gqls/sombraVersion.d.ts +0 -2
  799. package/build/graphql/gqls/sombraVersion.d.ts.map +0 -1
  800. package/build/graphql/gqls/sombraVersion.js +0 -14
  801. package/build/graphql/gqls/sombraVersion.js.map +0 -1
  802. package/build/graphql/gqls/team.d.ts +0 -4
  803. package/build/graphql/gqls/team.d.ts.map +0 -1
  804. package/build/graphql/gqls/team.js +0 -64
  805. package/build/graphql/gqls/team.js.map +0 -1
  806. package/build/graphql/gqls/template.d.ts +0 -3
  807. package/build/graphql/gqls/template.d.ts.map +0 -1
  808. package/build/graphql/gqls/template.js +0 -36
  809. package/build/graphql/gqls/template.js.map +0 -1
  810. package/build/graphql/gqls/user.d.ts +0 -2
  811. package/build/graphql/gqls/user.d.ts.map +0 -1
  812. package/build/graphql/gqls/user.js +0 -31
  813. package/build/graphql/gqls/user.js.map +0 -1
  814. package/build/graphql/gqls/vendor.d.ts +0 -4
  815. package/build/graphql/gqls/vendor.d.ts.map +0 -1
  816. package/build/graphql/gqls/vendor.js +0 -65
  817. package/build/graphql/gqls/vendor.js.map +0 -1
  818. package/build/graphql/index.d.ts +0 -87
  819. package/build/graphql/index.d.ts.map +0 -1
  820. package/build/graphql/index.js +0 -103
  821. package/build/graphql/index.js.map +0 -1
  822. package/build/graphql/loginUser.d.ts +0 -48
  823. package/build/graphql/loginUser.d.ts.map +0 -1
  824. package/build/graphql/loginUser.js +0 -51
  825. package/build/graphql/loginUser.js.map +0 -1
  826. package/build/graphql/makeGraphQLRequest.d.ts +0 -13
  827. package/build/graphql/makeGraphQLRequest.d.ts.map +0 -1
  828. package/build/graphql/makeGraphQLRequest.js +0 -77
  829. package/build/graphql/makeGraphQLRequest.js.map +0 -1
  830. package/build/graphql/manageApiKeys.d.ts +0 -31
  831. package/build/graphql/manageApiKeys.d.ts.map +0 -1
  832. package/build/graphql/manageApiKeys.js +0 -28
  833. package/build/graphql/manageApiKeys.js.map +0 -1
  834. package/build/graphql/parseAssessmentDisplayLogic.d.ts +0 -56
  835. package/build/graphql/parseAssessmentDisplayLogic.d.ts.map +0 -1
  836. package/build/graphql/parseAssessmentDisplayLogic.js +0 -62
  837. package/build/graphql/parseAssessmentDisplayLogic.js.map +0 -1
  838. package/build/graphql/parseAssessmentRiskLogic.d.ts +0 -29
  839. package/build/graphql/parseAssessmentRiskLogic.d.ts.map +0 -1
  840. package/build/graphql/parseAssessmentRiskLogic.js +0 -53
  841. package/build/graphql/parseAssessmentRiskLogic.js.map +0 -1
  842. package/build/graphql/pullTranscendConfiguration.d.ts +0 -34
  843. package/build/graphql/pullTranscendConfiguration.d.ts.map +0 -1
  844. package/build/graphql/pullTranscendConfiguration.js +0 -1013
  845. package/build/graphql/pullTranscendConfiguration.js.map +0 -1
  846. package/build/graphql/reportPromptRun.d.ts +0 -70
  847. package/build/graphql/reportPromptRun.d.ts.map +0 -1
  848. package/build/graphql/reportPromptRun.js +0 -26
  849. package/build/graphql/reportPromptRun.js.map +0 -1
  850. package/build/graphql/retryRequestEnricher.d.ts +0 -9
  851. package/build/graphql/retryRequestEnricher.d.ts.map +0 -1
  852. package/build/graphql/retryRequestEnricher.js +0 -18
  853. package/build/graphql/retryRequestEnricher.js.map +0 -1
  854. package/build/graphql/setResourceAttributes.d.ts +0 -23
  855. package/build/graphql/setResourceAttributes.d.ts.map +0 -1
  856. package/build/graphql/setResourceAttributes.js +0 -18
  857. package/build/graphql/setResourceAttributes.js.map +0 -1
  858. package/build/graphql/syncAction.d.ts +0 -17
  859. package/build/graphql/syncAction.d.ts.map +0 -1
  860. package/build/graphql/syncAction.js +0 -38
  861. package/build/graphql/syncAction.js.map +0 -1
  862. package/build/graphql/syncActionItemCollections.d.ts +0 -27
  863. package/build/graphql/syncActionItemCollections.d.ts.map +0 -1
  864. package/build/graphql/syncActionItemCollections.js +0 -97
  865. package/build/graphql/syncActionItemCollections.js.map +0 -1
  866. package/build/graphql/syncActionItems.d.ts +0 -37
  867. package/build/graphql/syncActionItems.d.ts.map +0 -1
  868. package/build/graphql/syncActionItems.js +0 -197
  869. package/build/graphql/syncActionItems.js.map +0 -1
  870. package/build/graphql/syncAgentFiles.d.ts +0 -26
  871. package/build/graphql/syncAgentFiles.d.ts.map +0 -1
  872. package/build/graphql/syncAgentFiles.js +0 -100
  873. package/build/graphql/syncAgentFiles.js.map +0 -1
  874. package/build/graphql/syncAgentFunctions.d.ts +0 -26
  875. package/build/graphql/syncAgentFunctions.d.ts.map +0 -1
  876. package/build/graphql/syncAgentFunctions.js +0 -95
  877. package/build/graphql/syncAgentFunctions.js.map +0 -1
  878. package/build/graphql/syncAgents.d.ts +0 -26
  879. package/build/graphql/syncAgents.d.ts.map +0 -1
  880. package/build/graphql/syncAgents.js +0 -101
  881. package/build/graphql/syncAgents.js.map +0 -1
  882. package/build/graphql/syncAttribute.d.ts +0 -17
  883. package/build/graphql/syncAttribute.d.ts.map +0 -1
  884. package/build/graphql/syncAttribute.js +0 -90
  885. package/build/graphql/syncAttribute.js.map +0 -1
  886. package/build/graphql/syncBusinessEntities.d.ts +0 -26
  887. package/build/graphql/syncBusinessEntities.d.ts.map +0 -1
  888. package/build/graphql/syncBusinessEntities.js +0 -109
  889. package/build/graphql/syncBusinessEntities.js.map +0 -1
  890. package/build/graphql/syncCodePackages.d.ts +0 -77
  891. package/build/graphql/syncCodePackages.d.ts.map +0 -1
  892. package/build/graphql/syncCodePackages.js +0 -152
  893. package/build/graphql/syncCodePackages.js.map +0 -1
  894. package/build/graphql/syncConfigurationToTranscend.d.ts +0 -21
  895. package/build/graphql/syncConfigurationToTranscend.d.ts.map +0 -1
  896. package/build/graphql/syncConfigurationToTranscend.js +0 -357
  897. package/build/graphql/syncConfigurationToTranscend.js.map +0 -1
  898. package/build/graphql/syncConsentManager.d.ts +0 -17
  899. package/build/graphql/syncConsentManager.d.ts.map +0 -1
  900. package/build/graphql/syncConsentManager.js +0 -218
  901. package/build/graphql/syncConsentManager.js.map +0 -1
  902. package/build/graphql/syncCookies.d.ts +0 -18
  903. package/build/graphql/syncCookies.d.ts.map +0 -1
  904. package/build/graphql/syncCookies.js +0 -83
  905. package/build/graphql/syncCookies.js.map +0 -1
  906. package/build/graphql/syncDataCategories.d.ts +0 -26
  907. package/build/graphql/syncDataCategories.d.ts.map +0 -1
  908. package/build/graphql/syncDataCategories.js +0 -97
  909. package/build/graphql/syncDataCategories.js.map +0 -1
  910. package/build/graphql/syncDataFlows.d.ts +0 -28
  911. package/build/graphql/syncDataFlows.d.ts.map +0 -1
  912. package/build/graphql/syncDataFlows.js +0 -164
  913. package/build/graphql/syncDataFlows.js.map +0 -1
  914. package/build/graphql/syncDataSilos.d.ts +0 -346
  915. package/build/graphql/syncDataSilos.d.ts.map +0 -1
  916. package/build/graphql/syncDataSilos.js +0 -426
  917. package/build/graphql/syncDataSilos.js.map +0 -1
  918. package/build/graphql/syncDataSubject.d.ts +0 -17
  919. package/build/graphql/syncDataSubject.d.ts.map +0 -1
  920. package/build/graphql/syncDataSubject.js +0 -33
  921. package/build/graphql/syncDataSubject.js.map +0 -1
  922. package/build/graphql/syncEnrichers.d.ts +0 -73
  923. package/build/graphql/syncEnrichers.d.ts.map +0 -1
  924. package/build/graphql/syncEnrichers.js +0 -109
  925. package/build/graphql/syncEnrichers.js.map +0 -1
  926. package/build/graphql/syncIdentifier.d.ts +0 -22
  927. package/build/graphql/syncIdentifier.d.ts.map +0 -1
  928. package/build/graphql/syncIdentifier.js +0 -32
  929. package/build/graphql/syncIdentifier.js.map +0 -1
  930. package/build/graphql/syncIntlMessages.d.ts +0 -18
  931. package/build/graphql/syncIntlMessages.d.ts.map +0 -1
  932. package/build/graphql/syncIntlMessages.js +0 -68
  933. package/build/graphql/syncIntlMessages.js.map +0 -1
  934. package/build/graphql/syncPartitions.d.ts +0 -26
  935. package/build/graphql/syncPartitions.d.ts.map +0 -1
  936. package/build/graphql/syncPartitions.js +0 -71
  937. package/build/graphql/syncPartitions.js.map +0 -1
  938. package/build/graphql/syncPolicies.d.ts +0 -18
  939. package/build/graphql/syncPolicies.d.ts.map +0 -1
  940. package/build/graphql/syncPolicies.js +0 -87
  941. package/build/graphql/syncPolicies.js.map +0 -1
  942. package/build/graphql/syncPrivacyCenter.d.ts +0 -10
  943. package/build/graphql/syncPrivacyCenter.d.ts.map +0 -1
  944. package/build/graphql/syncPrivacyCenter.js +0 -62
  945. package/build/graphql/syncPrivacyCenter.js.map +0 -1
  946. package/build/graphql/syncProcessingPurposes.d.ts +0 -26
  947. package/build/graphql/syncProcessingPurposes.d.ts.map +0 -1
  948. package/build/graphql/syncProcessingPurposes.js +0 -97
  949. package/build/graphql/syncProcessingPurposes.js.map +0 -1
  950. package/build/graphql/syncPromptGroups.d.ts +0 -35
  951. package/build/graphql/syncPromptGroups.d.ts.map +0 -1
  952. package/build/graphql/syncPromptGroups.js +0 -126
  953. package/build/graphql/syncPromptGroups.js.map +0 -1
  954. package/build/graphql/syncPromptPartials.d.ts +0 -32
  955. package/build/graphql/syncPromptPartials.d.ts.map +0 -1
  956. package/build/graphql/syncPromptPartials.js +0 -102
  957. package/build/graphql/syncPromptPartials.js.map +0 -1
  958. package/build/graphql/syncPrompts.d.ts +0 -32
  959. package/build/graphql/syncPrompts.d.ts.map +0 -1
  960. package/build/graphql/syncPrompts.js +0 -103
  961. package/build/graphql/syncPrompts.js.map +0 -1
  962. package/build/graphql/syncRepositories.d.ts +0 -65
  963. package/build/graphql/syncRepositories.d.ts.map +0 -1
  964. package/build/graphql/syncRepositories.js +0 -113
  965. package/build/graphql/syncRepositories.js.map +0 -1
  966. package/build/graphql/syncSoftwareDevelopmentKits.d.ts +0 -84
  967. package/build/graphql/syncSoftwareDevelopmentKits.d.ts.map +0 -1
  968. package/build/graphql/syncSoftwareDevelopmentKits.js +0 -119
  969. package/build/graphql/syncSoftwareDevelopmentKits.js.map +0 -1
  970. package/build/graphql/syncTeams.d.ts +0 -27
  971. package/build/graphql/syncTeams.d.ts.map +0 -1
  972. package/build/graphql/syncTeams.js +0 -104
  973. package/build/graphql/syncTeams.js.map +0 -1
  974. package/build/graphql/syncTemplates.d.ts +0 -34
  975. package/build/graphql/syncTemplates.d.ts.map +0 -1
  976. package/build/graphql/syncTemplates.js +0 -52
  977. package/build/graphql/syncTemplates.js.map +0 -1
  978. package/build/graphql/syncVendors.d.ts +0 -26
  979. package/build/graphql/syncVendors.d.ts.map +0 -1
  980. package/build/graphql/syncVendors.js +0 -108
  981. package/build/graphql/syncVendors.js.map +0 -1
  982. package/build/graphql/uploadSiloDiscoveryResults.d.ts +0 -11
  983. package/build/graphql/uploadSiloDiscoveryResults.d.ts.map +0 -1
  984. package/build/graphql/uploadSiloDiscoveryResults.js +0 -29
  985. package/build/graphql/uploadSiloDiscoveryResults.js.map +0 -1
  986. package/build/helpers/buildAIIntegrationType.d.ts +0 -13
  987. package/build/helpers/buildAIIntegrationType.d.ts.map +0 -1
  988. package/build/helpers/buildAIIntegrationType.js +0 -38
  989. package/build/helpers/buildAIIntegrationType.js.map +0 -1
  990. package/build/helpers/buildEnabledRouteType.d.ts +0 -13
  991. package/build/helpers/buildEnabledRouteType.d.ts.map +0 -1
  992. package/build/helpers/buildEnabledRouteType.js +0 -41
  993. package/build/helpers/buildEnabledRouteType.js.map +0 -1
  994. package/build/helpers/index.d.ts +0 -5
  995. package/build/helpers/index.d.ts.map +0 -1
  996. package/build/helpers/index.js +0 -21
  997. package/build/helpers/index.js.map +0 -1
  998. package/build/helpers/inquirer.d.ts +0 -32
  999. package/build/helpers/inquirer.d.ts.map +0 -1
  1000. package/build/helpers/inquirer.js +0 -64
  1001. package/build/helpers/inquirer.js.map +0 -1
  1002. package/build/helpers/parseVariablesFromString.d.ts +0 -10
  1003. package/build/helpers/parseVariablesFromString.d.ts.map +0 -1
  1004. package/build/helpers/parseVariablesFromString.js +0 -21
  1005. package/build/helpers/parseVariablesFromString.js.map +0 -1
  1006. package/build/index.d.ts +0 -16
  1007. package/build/index.d.ts.map +0 -1
  1008. package/build/index.js +0 -32
  1009. package/build/index.js.map +0 -1
  1010. package/build/logger.d.ts +0 -2
  1011. package/build/logger.d.ts.map +0 -1
  1012. package/build/logger.js +0 -22
  1013. package/build/logger.js.map +0 -1
  1014. package/build/manual-enrichment/enrichPrivacyRequest.d.ts +0 -19
  1015. package/build/manual-enrichment/enrichPrivacyRequest.d.ts.map +0 -1
  1016. package/build/manual-enrichment/enrichPrivacyRequest.js +0 -97
  1017. package/build/manual-enrichment/enrichPrivacyRequest.js.map +0 -1
  1018. package/build/manual-enrichment/index.d.ts +0 -4
  1019. package/build/manual-enrichment/index.d.ts.map +0 -1
  1020. package/build/manual-enrichment/index.js +0 -20
  1021. package/build/manual-enrichment/index.js.map +0 -1
  1022. package/build/manual-enrichment/pullManualEnrichmentIdentifiersToCsv.d.ts +0 -28
  1023. package/build/manual-enrichment/pullManualEnrichmentIdentifiersToCsv.d.ts.map +0 -1
  1024. package/build/manual-enrichment/pullManualEnrichmentIdentifiersToCsv.js +0 -74
  1025. package/build/manual-enrichment/pullManualEnrichmentIdentifiersToCsv.js.map +0 -1
  1026. package/build/manual-enrichment/pushManualEnrichmentIdentifiersFromCsv.d.ts +0 -23
  1027. package/build/manual-enrichment/pushManualEnrichmentIdentifiersFromCsv.d.ts.map +0 -1
  1028. package/build/manual-enrichment/pushManualEnrichmentIdentifiersFromCsv.js +0 -67
  1029. package/build/manual-enrichment/pushManualEnrichmentIdentifiersFromCsv.js.map +0 -1
  1030. package/build/mergeTranscendInputs.d.ts +0 -10
  1031. package/build/mergeTranscendInputs.d.ts.map +0 -1
  1032. package/build/mergeTranscendInputs.js +0 -32
  1033. package/build/mergeTranscendInputs.js.map +0 -1
  1034. package/build/oneTrust/createOneTrustGotInstance.d.ts +0 -14
  1035. package/build/oneTrust/createOneTrustGotInstance.d.ts.map +0 -1
  1036. package/build/oneTrust/createOneTrustGotInstance.js +0 -23
  1037. package/build/oneTrust/createOneTrustGotInstance.js.map +0 -1
  1038. package/build/oneTrust/endpoints/getListOfOneTrustAssessments.d.ts +0 -14
  1039. package/build/oneTrust/endpoints/getListOfOneTrustAssessments.d.ts.map +0 -1
  1040. package/build/oneTrust/endpoints/getListOfOneTrustAssessments.js +0 -36
  1041. package/build/oneTrust/endpoints/getListOfOneTrustAssessments.js.map +0 -1
  1042. package/build/oneTrust/endpoints/getOneTrustAssessment.d.ts +0 -16
  1043. package/build/oneTrust/endpoints/getOneTrustAssessment.d.ts.map +0 -1
  1044. package/build/oneTrust/endpoints/getOneTrustAssessment.js +0 -18
  1045. package/build/oneTrust/endpoints/getOneTrustAssessment.js.map +0 -1
  1046. package/build/oneTrust/endpoints/getOneTrustRisk.d.ts +0 -16
  1047. package/build/oneTrust/endpoints/getOneTrustRisk.d.ts.map +0 -1
  1048. package/build/oneTrust/endpoints/getOneTrustRisk.js +0 -18
  1049. package/build/oneTrust/endpoints/getOneTrustRisk.js.map +0 -1
  1050. package/build/oneTrust/endpoints/getOneTrustUser.d.ts +0 -16
  1051. package/build/oneTrust/endpoints/getOneTrustUser.d.ts.map +0 -1
  1052. package/build/oneTrust/endpoints/getOneTrustUser.js +0 -18
  1053. package/build/oneTrust/endpoints/getOneTrustUser.js.map +0 -1
  1054. package/build/oneTrust/endpoints/index.d.ts +0 -5
  1055. package/build/oneTrust/endpoints/index.d.ts.map +0 -1
  1056. package/build/oneTrust/endpoints/index.js +0 -21
  1057. package/build/oneTrust/endpoints/index.js.map +0 -1
  1058. package/build/oneTrust/helpers/convertToEmptyStrings.d.ts +0 -34
  1059. package/build/oneTrust/helpers/convertToEmptyStrings.d.ts.map +0 -1
  1060. package/build/oneTrust/helpers/convertToEmptyStrings.js +0 -58
  1061. package/build/oneTrust/helpers/convertToEmptyStrings.js.map +0 -1
  1062. package/build/oneTrust/helpers/enrichOneTrustAssessment.d.ts +0 -22
  1063. package/build/oneTrust/helpers/enrichOneTrustAssessment.d.ts.map +0 -1
  1064. package/build/oneTrust/helpers/enrichOneTrustAssessment.js +0 -104
  1065. package/build/oneTrust/helpers/enrichOneTrustAssessment.js.map +0 -1
  1066. package/build/oneTrust/helpers/index.d.ts +0 -5
  1067. package/build/oneTrust/helpers/index.d.ts.map +0 -1
  1068. package/build/oneTrust/helpers/index.js +0 -21
  1069. package/build/oneTrust/helpers/index.js.map +0 -1
  1070. package/build/oneTrust/helpers/oneTrustAssessmentToJson.d.ts +0 -18
  1071. package/build/oneTrust/helpers/oneTrustAssessmentToJson.d.ts.map +0 -1
  1072. package/build/oneTrust/helpers/oneTrustAssessmentToJson.js +0 -28
  1073. package/build/oneTrust/helpers/oneTrustAssessmentToJson.js.map +0 -1
  1074. package/build/oneTrust/helpers/parseCliSyncOtArguments.d.ts +0 -29
  1075. package/build/oneTrust/helpers/parseCliSyncOtArguments.d.ts.map +0 -1
  1076. package/build/oneTrust/helpers/parseCliSyncOtArguments.js +0 -110
  1077. package/build/oneTrust/helpers/parseCliSyncOtArguments.js.map +0 -1
  1078. package/build/oneTrust/helpers/syncOneTrustAssessmentToDisk.d.ts +0 -18
  1079. package/build/oneTrust/helpers/syncOneTrustAssessmentToDisk.d.ts.map +0 -1
  1080. package/build/oneTrust/helpers/syncOneTrustAssessmentToDisk.js +0 -37
  1081. package/build/oneTrust/helpers/syncOneTrustAssessmentToDisk.js.map +0 -1
  1082. package/build/oneTrust/helpers/syncOneTrustAssessmentToTranscend.d.ts +0 -25
  1083. package/build/oneTrust/helpers/syncOneTrustAssessmentToTranscend.d.ts.map +0 -1
  1084. package/build/oneTrust/helpers/syncOneTrustAssessmentToTranscend.js +0 -40
  1085. package/build/oneTrust/helpers/syncOneTrustAssessmentToTranscend.js.map +0 -1
  1086. package/build/oneTrust/helpers/syncOneTrustAssessmentsFromFile.d.ts +0 -13
  1087. package/build/oneTrust/helpers/syncOneTrustAssessmentsFromFile.d.ts.map +0 -1
  1088. package/build/oneTrust/helpers/syncOneTrustAssessmentsFromFile.js +0 -71
  1089. package/build/oneTrust/helpers/syncOneTrustAssessmentsFromFile.js.map +0 -1
  1090. package/build/oneTrust/helpers/syncOneTrustAssessmentsFromOneTrust.d.ts +0 -24
  1091. package/build/oneTrust/helpers/syncOneTrustAssessmentsFromOneTrust.d.ts.map +0 -1
  1092. package/build/oneTrust/helpers/syncOneTrustAssessmentsFromOneTrust.js +0 -150
  1093. package/build/oneTrust/helpers/syncOneTrustAssessmentsFromOneTrust.js.map +0 -1
  1094. package/build/oneTrust/helpers/tests/convertToEmptyStrings.test.d.ts +0 -2
  1095. package/build/oneTrust/helpers/tests/convertToEmptyStrings.test.d.ts.map +0 -1
  1096. package/build/oneTrust/helpers/tests/convertToEmptyStrings.test.js +0 -74
  1097. package/build/oneTrust/helpers/tests/convertToEmptyStrings.test.js.map +0 -1
  1098. package/build/oneTrust/index.d.ts +0 -4
  1099. package/build/oneTrust/index.d.ts.map +0 -1
  1100. package/build/oneTrust/index.js +0 -20
  1101. package/build/oneTrust/index.js.map +0 -1
  1102. package/build/preference-management/checkIfPendingPreferenceUpdatesAreNoOp.d.ts +0 -19
  1103. package/build/preference-management/checkIfPendingPreferenceUpdatesAreNoOp.d.ts.map +0 -1
  1104. package/build/preference-management/checkIfPendingPreferenceUpdatesAreNoOp.js +0 -56
  1105. package/build/preference-management/checkIfPendingPreferenceUpdatesAreNoOp.js.map +0 -1
  1106. package/build/preference-management/checkIfPendingPreferenceUpdatesCauseConflict.d.ts +0 -20
  1107. package/build/preference-management/checkIfPendingPreferenceUpdatesCauseConflict.d.ts.map +0 -1
  1108. package/build/preference-management/checkIfPendingPreferenceUpdatesCauseConflict.js +0 -58
  1109. package/build/preference-management/checkIfPendingPreferenceUpdatesCauseConflict.js.map +0 -1
  1110. package/build/preference-management/codecs.d.ts +0 -387
  1111. package/build/preference-management/codecs.d.ts.map +0 -1
  1112. package/build/preference-management/codecs.js +0 -122
  1113. package/build/preference-management/codecs.js.map +0 -1
  1114. package/build/preference-management/getPreferenceUpdatesFromRow.d.ts +0 -37
  1115. package/build/preference-management/getPreferenceUpdatesFromRow.d.ts.map +0 -1
  1116. package/build/preference-management/getPreferenceUpdatesFromRow.js +0 -144
  1117. package/build/preference-management/getPreferenceUpdatesFromRow.js.map +0 -1
  1118. package/build/preference-management/getPreferencesForIdentifiers.d.ts +0 -21
  1119. package/build/preference-management/getPreferencesForIdentifiers.d.ts.map +0 -1
  1120. package/build/preference-management/getPreferencesForIdentifiers.js +0 -118
  1121. package/build/preference-management/getPreferencesForIdentifiers.js.map +0 -1
  1122. package/build/preference-management/index.d.ts +0 -12
  1123. package/build/preference-management/index.d.ts.map +0 -1
  1124. package/build/preference-management/index.js +0 -28
  1125. package/build/preference-management/index.js.map +0 -1
  1126. package/build/preference-management/parsePreferenceAndPurposeValuesFromCsv.d.ts +0 -19
  1127. package/build/preference-management/parsePreferenceAndPurposeValuesFromCsv.d.ts.map +0 -1
  1128. package/build/preference-management/parsePreferenceAndPurposeValuesFromCsv.js +0 -154
  1129. package/build/preference-management/parsePreferenceAndPurposeValuesFromCsv.js.map +0 -1
  1130. package/build/preference-management/parsePreferenceIdentifiersFromCsv.d.ts +0 -18
  1131. package/build/preference-management/parsePreferenceIdentifiersFromCsv.d.ts.map +0 -1
  1132. package/build/preference-management/parsePreferenceIdentifiersFromCsv.js +0 -97
  1133. package/build/preference-management/parsePreferenceIdentifiersFromCsv.js.map +0 -1
  1134. package/build/preference-management/parsePreferenceManagementCsv.d.ts +0 -29
  1135. package/build/preference-management/parsePreferenceManagementCsv.d.ts.map +0 -1
  1136. package/build/preference-management/parsePreferenceManagementCsv.js +0 -153
  1137. package/build/preference-management/parsePreferenceManagementCsv.js.map +0 -1
  1138. package/build/preference-management/parsePreferenceTimestampsFromCsv.d.ts +0 -16
  1139. package/build/preference-management/parsePreferenceTimestampsFromCsv.d.ts.map +0 -1
  1140. package/build/preference-management/parsePreferenceTimestampsFromCsv.js +0 -65
  1141. package/build/preference-management/parsePreferenceTimestampsFromCsv.js.map +0 -1
  1142. package/build/preference-management/tests/checkIfPendingPreferenceUpdatesAreNoOp.test.d.ts +0 -2
  1143. package/build/preference-management/tests/checkIfPendingPreferenceUpdatesAreNoOp.test.d.ts.map +0 -1
  1144. package/build/preference-management/tests/checkIfPendingPreferenceUpdatesAreNoOp.test.js +0 -464
  1145. package/build/preference-management/tests/checkIfPendingPreferenceUpdatesAreNoOp.test.js.map +0 -1
  1146. package/build/preference-management/tests/checkIfPendingPreferenceUpdatesCauseConflict.test.d.ts +0 -2
  1147. package/build/preference-management/tests/checkIfPendingPreferenceUpdatesCauseConflict.test.d.ts.map +0 -1
  1148. package/build/preference-management/tests/checkIfPendingPreferenceUpdatesCauseConflict.test.js +0 -485
  1149. package/build/preference-management/tests/checkIfPendingPreferenceUpdatesCauseConflict.test.js.map +0 -1
  1150. package/build/preference-management/tests/getPreferenceUpdatesFromRow.test.d.ts +0 -2
  1151. package/build/preference-management/tests/getPreferenceUpdatesFromRow.test.d.ts.map +0 -1
  1152. package/build/preference-management/tests/getPreferenceUpdatesFromRow.test.js +0 -737
  1153. package/build/preference-management/tests/getPreferenceUpdatesFromRow.test.js.map +0 -1
  1154. package/build/preference-management/uploadPreferenceManagementPreferencesInteractive.d.ts +0 -37
  1155. package/build/preference-management/uploadPreferenceManagementPreferencesInteractive.d.ts.map +0 -1
  1156. package/build/preference-management/uploadPreferenceManagementPreferencesInteractive.js +0 -172
  1157. package/build/preference-management/uploadPreferenceManagementPreferencesInteractive.js.map +0 -1
  1158. package/build/readTranscendYaml.d.ts +0 -31
  1159. package/build/readTranscendYaml.d.ts.map +0 -1
  1160. package/build/readTranscendYaml.js +0 -67
  1161. package/build/readTranscendYaml.js.map +0 -1
  1162. package/build/requests/approvePrivacyRequests.d.ts +0 -26
  1163. package/build/requests/approvePrivacyRequests.d.ts.map +0 -1
  1164. package/build/requests/approvePrivacyRequests.js +0 -76
  1165. package/build/requests/approvePrivacyRequests.js.map +0 -1
  1166. package/build/requests/bulkRestartRequests.d.ts +0 -41
  1167. package/build/requests/bulkRestartRequests.d.ts.map +0 -1
  1168. package/build/requests/bulkRestartRequests.js +0 -167
  1169. package/build/requests/bulkRestartRequests.js.map +0 -1
  1170. package/build/requests/bulkRetryEnrichers.d.ts +0 -27
  1171. package/build/requests/bulkRetryEnrichers.d.ts.map +0 -1
  1172. package/build/requests/bulkRetryEnrichers.js +0 -69
  1173. package/build/requests/bulkRetryEnrichers.js.map +0 -1
  1174. package/build/requests/cancelPrivacyRequests.d.ts +0 -30
  1175. package/build/requests/cancelPrivacyRequests.d.ts.map +0 -1
  1176. package/build/requests/cancelPrivacyRequests.js +0 -94
  1177. package/build/requests/cancelPrivacyRequests.js.map +0 -1
  1178. package/build/requests/constants.d.ts +0 -5587
  1179. package/build/requests/constants.d.ts.map +0 -1
  1180. package/build/requests/constants.js +0 -124
  1181. package/build/requests/constants.js.map +0 -1
  1182. package/build/requests/downloadPrivacyRequestFiles.d.ts +0 -30
  1183. package/build/requests/downloadPrivacyRequestFiles.d.ts.map +0 -1
  1184. package/build/requests/downloadPrivacyRequestFiles.js +0 -96
  1185. package/build/requests/downloadPrivacyRequestFiles.js.map +0 -1
  1186. package/build/requests/extractClientError.d.ts +0 -8
  1187. package/build/requests/extractClientError.d.ts.map +0 -1
  1188. package/build/requests/extractClientError.js +0 -15
  1189. package/build/requests/extractClientError.js.map +0 -1
  1190. package/build/requests/filterRows.d.ts +0 -10
  1191. package/build/requests/filterRows.d.ts.map +0 -1
  1192. package/build/requests/filterRows.js +0 -61
  1193. package/build/requests/filterRows.js.map +0 -1
  1194. package/build/requests/fuzzyMatchColumns.d.ts +0 -21
  1195. package/build/requests/fuzzyMatchColumns.d.ts.map +0 -1
  1196. package/build/requests/fuzzyMatchColumns.js +0 -43
  1197. package/build/requests/fuzzyMatchColumns.js.map +0 -1
  1198. package/build/requests/getFileMetadataForPrivacyRequests.d.ts +0 -157
  1199. package/build/requests/getFileMetadataForPrivacyRequests.d.ts.map +0 -1
  1200. package/build/requests/getFileMetadataForPrivacyRequests.js +0 -159
  1201. package/build/requests/getFileMetadataForPrivacyRequests.js.map +0 -1
  1202. package/build/requests/getUniqueValuesForColumn.d.ts +0 -10
  1203. package/build/requests/getUniqueValuesForColumn.d.ts.map +0 -1
  1204. package/build/requests/getUniqueValuesForColumn.js +0 -19
  1205. package/build/requests/getUniqueValuesForColumn.js.map +0 -1
  1206. package/build/requests/index.d.ts +0 -32
  1207. package/build/requests/index.d.ts.map +0 -1
  1208. package/build/requests/index.js +0 -48
  1209. package/build/requests/index.js.map +0 -1
  1210. package/build/requests/mapColumnsToAttributes.d.ts +0 -23
  1211. package/build/requests/mapColumnsToAttributes.d.ts.map +0 -1
  1212. package/build/requests/mapColumnsToAttributes.js +0 -44
  1213. package/build/requests/mapColumnsToAttributes.js.map +0 -1
  1214. package/build/requests/mapColumnsToIdentifiers.d.ts +0 -21
  1215. package/build/requests/mapColumnsToIdentifiers.d.ts.map +0 -1
  1216. package/build/requests/mapColumnsToIdentifiers.js +0 -48
  1217. package/build/requests/mapColumnsToIdentifiers.js.map +0 -1
  1218. package/build/requests/mapCsvColumnsToApi.d.ts +0 -17
  1219. package/build/requests/mapCsvColumnsToApi.d.ts.map +0 -1
  1220. package/build/requests/mapCsvColumnsToApi.js +0 -41
  1221. package/build/requests/mapCsvColumnsToApi.js.map +0 -1
  1222. package/build/requests/mapCsvRowsToRequestInputs.d.ts +0 -5572
  1223. package/build/requests/mapCsvRowsToRequestInputs.d.ts.map +0 -1
  1224. package/build/requests/mapCsvRowsToRequestInputs.js +0 -230
  1225. package/build/requests/mapCsvRowsToRequestInputs.js.map +0 -1
  1226. package/build/requests/mapEnumValues.d.ts +0 -14
  1227. package/build/requests/mapEnumValues.d.ts.map +0 -1
  1228. package/build/requests/mapEnumValues.js +0 -42
  1229. package/build/requests/mapEnumValues.js.map +0 -1
  1230. package/build/requests/mapRequestEnumValues.d.ts +0 -19
  1231. package/build/requests/mapRequestEnumValues.d.ts.map +0 -1
  1232. package/build/requests/mapRequestEnumValues.js +0 -63
  1233. package/build/requests/mapRequestEnumValues.js.map +0 -1
  1234. package/build/requests/markSilentPrivacyRequests.d.ts +0 -26
  1235. package/build/requests/markSilentPrivacyRequests.d.ts.map +0 -1
  1236. package/build/requests/markSilentPrivacyRequests.js +0 -66
  1237. package/build/requests/markSilentPrivacyRequests.js.map +0 -1
  1238. package/build/requests/notifyPrivacyRequestsAdditionalTime.d.ts +0 -34
  1239. package/build/requests/notifyPrivacyRequestsAdditionalTime.d.ts.map +0 -1
  1240. package/build/requests/notifyPrivacyRequestsAdditionalTime.js +0 -69
  1241. package/build/requests/notifyPrivacyRequestsAdditionalTime.js.map +0 -1
  1242. package/build/requests/parseAttributesFromString.d.ts +0 -17
  1243. package/build/requests/parseAttributesFromString.d.ts.map +0 -1
  1244. package/build/requests/parseAttributesFromString.js +0 -63
  1245. package/build/requests/parseAttributesFromString.js.map +0 -1
  1246. package/build/requests/pullPrivacyRequests.d.ts +0 -41
  1247. package/build/requests/pullPrivacyRequests.d.ts.map +0 -1
  1248. package/build/requests/pullPrivacyRequests.js +0 -83
  1249. package/build/requests/pullPrivacyRequests.js.map +0 -1
  1250. package/build/requests/readCsv.d.ts +0 -12
  1251. package/build/requests/readCsv.d.ts.map +0 -1
  1252. package/build/requests/readCsv.js +0 -54
  1253. package/build/requests/readCsv.js.map +0 -1
  1254. package/build/requests/removeUnverifiedRequestIdentifiers.d.ts +0 -20
  1255. package/build/requests/removeUnverifiedRequestIdentifiers.d.ts.map +0 -1
  1256. package/build/requests/removeUnverifiedRequestIdentifiers.js +0 -61
  1257. package/build/requests/removeUnverifiedRequestIdentifiers.js.map +0 -1
  1258. package/build/requests/restartPrivacyRequest.d.ts +0 -22
  1259. package/build/requests/restartPrivacyRequest.d.ts.map +0 -1
  1260. package/build/requests/restartPrivacyRequest.js +0 -90
  1261. package/build/requests/restartPrivacyRequest.js.map +0 -1
  1262. package/build/requests/retryRequestDataSilos.d.ts +0 -20
  1263. package/build/requests/retryRequestDataSilos.d.ts.map +0 -1
  1264. package/build/requests/retryRequestDataSilos.js +0 -64
  1265. package/build/requests/retryRequestDataSilos.js.map +0 -1
  1266. package/build/requests/skipPreflightJobs.d.ts +0 -20
  1267. package/build/requests/skipPreflightJobs.d.ts.map +0 -1
  1268. package/build/requests/skipPreflightJobs.js +0 -73
  1269. package/build/requests/skipPreflightJobs.js.map +0 -1
  1270. package/build/requests/skipRequestDataSilos.d.ts +0 -22
  1271. package/build/requests/skipRequestDataSilos.d.ts.map +0 -1
  1272. package/build/requests/skipRequestDataSilos.js +0 -58
  1273. package/build/requests/skipRequestDataSilos.js.map +0 -1
  1274. package/build/requests/splitCsvToList.d.ts +0 -12
  1275. package/build/requests/splitCsvToList.d.ts.map +0 -1
  1276. package/build/requests/splitCsvToList.js +0 -21
  1277. package/build/requests/splitCsvToList.js.map +0 -1
  1278. package/build/requests/streamPrivacyRequestFiles.d.ts +0 -22
  1279. package/build/requests/streamPrivacyRequestFiles.d.ts.map +0 -1
  1280. package/build/requests/streamPrivacyRequestFiles.js +0 -48
  1281. package/build/requests/streamPrivacyRequestFiles.js.map +0 -1
  1282. package/build/requests/submitPrivacyRequest.d.ts +0 -5470
  1283. package/build/requests/submitPrivacyRequest.d.ts.map +0 -1
  1284. package/build/requests/submitPrivacyRequest.js +0 -126
  1285. package/build/requests/submitPrivacyRequest.js.map +0 -1
  1286. package/build/requests/tests/fuzzyMatchColumns.test.d.ts +0 -2
  1287. package/build/requests/tests/fuzzyMatchColumns.test.d.ts.map +0 -1
  1288. package/build/requests/tests/fuzzyMatchColumns.test.js +0 -26
  1289. package/build/requests/tests/fuzzyMatchColumns.test.js.map +0 -1
  1290. package/build/requests/tests/getUniqueValuesForColumn.test.d.ts +0 -2
  1291. package/build/requests/tests/getUniqueValuesForColumn.test.d.ts.map +0 -1
  1292. package/build/requests/tests/getUniqueValuesForColumn.test.js +0 -66
  1293. package/build/requests/tests/getUniqueValuesForColumn.test.js.map +0 -1
  1294. package/build/requests/tests/mapCsvRowsToRequestInputs.test.d.ts +0 -1
  1295. package/build/requests/tests/mapCsvRowsToRequestInputs.test.d.ts.map +0 -1
  1296. package/build/requests/tests/mapCsvRowsToRequestInputs.test.js +0 -3
  1297. package/build/requests/tests/mapCsvRowsToRequestInputs.test.js.map +0 -1
  1298. package/build/requests/tests/parseAttributesFromString.test.d.ts +0 -2
  1299. package/build/requests/tests/parseAttributesFromString.test.d.ts.map +0 -1
  1300. package/build/requests/tests/parseAttributesFromString.test.js +0 -25
  1301. package/build/requests/tests/parseAttributesFromString.test.js.map +0 -1
  1302. package/build/requests/tests/readCsv.test.d.ts +0 -2
  1303. package/build/requests/tests/readCsv.test.d.ts.map +0 -1
  1304. package/build/requests/tests/readCsv.test.js +0 -68
  1305. package/build/requests/tests/readCsv.test.js.map +0 -1
  1306. package/build/requests/tests/splitCsvToList.test.d.ts +0 -2
  1307. package/build/requests/tests/splitCsvToList.test.d.ts.map +0 -1
  1308. package/build/requests/tests/splitCsvToList.test.js +0 -16
  1309. package/build/requests/tests/splitCsvToList.test.js.map +0 -1
  1310. package/build/requests/uploadPrivacyRequestsFromCsv.d.ts +0 -41
  1311. package/build/requests/uploadPrivacyRequestsFromCsv.d.ts.map +0 -1
  1312. package/build/requests/uploadPrivacyRequestsFromCsv.js +0 -227
  1313. package/build/requests/uploadPrivacyRequestsFromCsv.js.map +0 -1
  1314. package/build/tests/TranscendPromptManager.test.d.ts +0 -2
  1315. package/build/tests/TranscendPromptManager.test.d.ts.map +0 -1
  1316. package/build/tests/TranscendPromptManager.test.js +0 -92
  1317. package/build/tests/TranscendPromptManager.test.js.map +0 -1
  1318. package/build/tests/filterNullValuesFromObject.test.d.ts +0 -2
  1319. package/build/tests/filterNullValuesFromObject.test.d.ts.map +0 -1
  1320. package/build/tests/filterNullValuesFromObject.test.js +0 -26
  1321. package/build/tests/filterNullValuesFromObject.test.js.map +0 -1
  1322. package/build/tests/findCodePackagesInFolder.test.d.ts +0 -2
  1323. package/build/tests/findCodePackagesInFolder.test.d.ts.map +0 -1
  1324. package/build/tests/findCodePackagesInFolder.test.js +0 -710
  1325. package/build/tests/findCodePackagesInFolder.test.js.map +0 -1
  1326. package/build/tests/getGitFilesThatChanged.test.d.ts +0 -2
  1327. package/build/tests/getGitFilesThatChanged.test.d.ts.map +0 -1
  1328. package/build/tests/getGitFilesThatChanged.test.js +0 -24
  1329. package/build/tests/getGitFilesThatChanged.test.js.map +0 -1
  1330. package/build/tests/mergeTranscendInputs.test.d.ts +0 -2
  1331. package/build/tests/mergeTranscendInputs.test.d.ts.map +0 -1
  1332. package/build/tests/mergeTranscendInputs.test.js +0 -107
  1333. package/build/tests/mergeTranscendInputs.test.js.map +0 -1
  1334. package/build/tests/readTranscendYaml.test.d.ts +0 -2
  1335. package/build/tests/readTranscendYaml.test.d.ts.map +0 -1
  1336. package/build/tests/readTranscendYaml.test.js +0 -34
  1337. package/build/tests/readTranscendYaml.test.js.map +0 -1
  1338. package/build/tests/removeLinks.test.d.ts +0 -2
  1339. package/build/tests/removeLinks.test.d.ts.map +0 -1
  1340. package/build/tests/removeLinks.test.js +0 -21
  1341. package/build/tests/removeLinks.test.js.map +0 -1
  1342. package/build/tsbuildinfo +0 -1
  1343. package/examples/code-scanning/test-gradle/test-nested-package-json/package.json +0 -20
  1344. package/examples/code-scanning/test-package-json/package.json +0 -23
package/dist/index.mjs ADDED
@@ -0,0 +1,2923 @@
1
+ import{a as nm,b as VI,c as KI,d as jI,e as YI,f as x,g as to,h as zI,i as HI,j as ZI,k as WI}from"./chunk-BWXKSYTY.mjs";import{a as UI,b as BI,c as QI,d as rm,e as gr,f as gn}from"./chunk-BGXZA4EM.mjs";import{a as em}from"./chunk-WVOQBBD4.mjs";import*as e from"io-ts";import{applyEnum as yn,valuesOf as S}from"@transcend-io/type-utils";import{DataCategoryType as ao,ConsentBundleType as om,EnricherType as sm,ProcessingPurpose as po,RequestAction as Cr,ComparisonOperator as lo,RequestActionObjectResolver as io,AssessmentSyncColumn as am,RetentionScheduleType as pm,AssessmentQuestionType as lm,UspapiOption as cm,DataFlowScope as hn,PromptAVendorEmailSendType as um,RetentionScheduleOperation as mm,AssessmentsDisplayLogicAction as dm,DefaultConsentOption as fm,LogicOperator as gm,ConsentPrecedenceOption as ym,AssessmentSyncModel as hm,AssessmentQuestionSubType as Cm,IsoCountryCode as Ce,BrowserTimeZone as Im,IsoCountrySubdivisionCode as Ie,ConsentTrackerStatus as Ir,AttributeKeyType as Am,PromptAVendorEmailCompletionLinkType as Tm,RegionsOperator as Sm,UnknownRequestPolicy as oo,TelemetryPartitionStrategy as Pm,SignedIabAgreementOption as Em,RegionDetectionMethod as Rm,PreflightRequestStatus as bm,AttributeSupportedResourceType as co,SubDataPointDataSubCategoryGuessStatus as wm,LargeLanguageModelClient as xm,PromptFilePurpose as $m,CodePackageType as uo,ActionItemPriorityOverride as Dm,ActionItemCode as qm,ScopeName as vm,TranscendProduct as Lm,PrivacyCenterComponentStyles as km,PrivacyCenterTextStyles as Om,PreferenceStoreAuthLevel as Nm,ConfigurableColorPaletteColor as _m,AssessmentFormTemplateStatus as Gm,AssessmentFormStatus as Mm,AssessmentFormTemplateSource as Fm,UnstructuredSubDataPointRecommendationStatus as Um,PreferenceTopicType as Bm}from"@transcend-io/privacy-types";import{InitialViewState as Qm,BrowserLanguage as Vm,UserPrivacySignalEnum as Km,OnConsentExpiry as jm}from"@transcend-io/airgap.js-types";import*as yr from"io-ts";import{valuesOf as im}from"@transcend-io/type-utils";var eo=({TRouteName:r})=>yr.type({routeName:r,enabledPolicies:yr.array(im(gr))});import*as ro from"io-ts";var no=({TEnabledRoutes:r})=>ro.type({enabledRoutes:r});import{LanguageKey as hr}from"@transcend-io/internationalization";var Ym=e.type({title:e.string}),mo=e.intersection([e.type({name:e.string,value:e.string}),e.partial({isSecret:e.boolean})]),zm=e.type({title:e.string}),Hm=e.intersection([e.type({name:e.string,description:e.string}),e.partial({"sso-department":e.string,"sso-group":e.string,"sso-title":e.string,users:e.array(e.string),scopes:e.array(S(vm))})]),Zm=e.intersection([e.type({title:e.string,"output-identifiers":e.array(e.string)}),e.partial({description:e.string,url:e.string,type:S(sm),"input-identifier":e.string,testRegex:e.string,lookerQueryTitle:e.string,expirationDuration:e.number,transitionRequestStatus:S(bm),phoneNumbers:e.array(e.string),regionList:e.array(S({...Ce,...Ie})),"data-subjects":e.array(e.string),headers:e.array(mo),"privacy-actions":e.array(S(Cr))})]),Wm=e.type({purpose:S(po),name:e.string}),Cn=e.intersection([e.type({category:S(ao)}),e.partial({name:e.string})]),Jm=e.intersection([e.type({category:Cn,status:S(wm),confidence:e.number}),e.partial({classifierVersion:e.number})]),lA=e.intersection([e.type({category:Cn,status:S(Um),confidence:e.number}),e.partial({classifierVersion:e.number})]),Xm=e.intersection([e.type({name:e.string}),e.partial({description:e.string,color:e.string})]),td=e.intersection([e.type({name:e.string,type:S(Am)}),e.partial({description:e.string,resources:e.array(S(co)),values:e.array(Xm)})]),Bt=e.type({key:e.string,values:e.array(e.string)}),ed=e.intersection([e.type({name:e.string,instructions:e.string,agentId:e.string,codeInterpreterEnabled:e.boolean,retrievalEnabled:e.boolean,"large-language-model":e.type({name:e.string,client:S(xm)})}),e.partial({description:e.string,prompt:e.string,owners:e.array(e.string),teams:e.array(e.string),"agent-functions":e.array(e.string),"agent-files":e.array(e.string)})]),rd=e.type({name:e.string,description:e.string,parameters:e.string}),nd=e.intersection([e.type({name:e.string,fileId:e.string,size:e.number,purpose:S($m)}),e.partial({description:e.string})]),id=e.intersection([e.type({title:e.string}),e.partial({description:e.string,dataProcessingAgreementLink:e.string,contactName:e.string,contactPhone:e.string,address:e.string,headquarterCountry:S(Ce),headquarterSubDivision:S(Ie),websiteUrl:e.string,businessEntity:e.string,owners:e.array(e.string),teams:e.array(e.string),attributes:e.array(Bt)})]),od=e.intersection([e.type({name:e.string,category:S(ao)}),e.partial({description:e.string,regex:e.string,owners:e.array(e.string),teams:e.array(e.string),attributes:e.array(Bt)})]),sd=e.intersection([e.type({name:e.string,purpose:S(po)}),e.partial({description:e.string,owners:e.array(e.string),teams:e.array(e.string),attributes:e.array(Bt)})]),ad=e.type({title:e.string,content:e.string}),pd=e.type({title:e.string,content:e.string}),ld=e.type({title:e.string,description:e.string,prompts:e.array(e.string)}),cd=e.intersection([e.type({key:e.string}),e.partial({title:e.string,description:e.union([e.string,e.null]),purposes:e.array(Wm),categories:e.array(Cn),"guessed-categories":e.array(Jm),"access-request-visibility-enabled":e.boolean,"erasure-request-redaction-enabled":e.boolean,attributes:e.array(Bt)})]),ud=e.intersection([e.type({key:e.string}),e.partial({path:e.array(e.string),title:e.string,description:e.string,"data-collection-tag":e.string,"privacy-action-queries":e.partial(yn(io,()=>e.string)),"privacy-actions":e.array(S(io)),fields:e.array(cd),owners:e.array(e.string),teams:e.array(e.string)})]),md=e.partial({"notify-email-address":e.string,"send-frequency":e.number,"send-type":S(um),"include-identifiers-attachment":e.boolean,"completion-link-type":S(Tm),"manual-work-retry-frequency":e.string}),dd=e.intersection([e.type({title:e.string}),e.partial({description:e.string,address:e.string,headquarterCountry:S(Ce),headquarterSubDivision:S(Ie),dataProtectionOfficerName:e.string,dataProtectionOfficerEmail:e.string,attributes:e.array(Bt),owners:e.array(e.string),teams:e.array(e.string)})]),cA=e.intersection([e.type({name:e.string,codePackageType:S(uo)}),e.partial({description:e.string,repositoryUrl:e.string,catalogIntegrationName:e.string,documentationLinks:e.array(e.string),ownerEmails:e.array(e.string),teamNames:e.array(e.string)})]),fd=e.intersection([e.type({name:e.string}),e.partial({version:e.string,isDevDependency:e.boolean})]),uA=e.intersection([e.type({name:e.string,type:S(uo),relativePath:e.string,repositoryName:e.string}),e.partial({description:e.string,softwareDevelopmentKits:e.array(fd),teamNames:e.array(e.string),ownerEmails:e.array(e.string)})]),mA=e.intersection([e.type({name:e.string,url:e.string}),e.partial({description:e.string,teamNames:e.array(e.string),ownerEmails:e.array(e.string)})]),gd=e.intersection([e.type({type:e.string}),e.partial({active:e.boolean,title:e.string,adminDashboardDefaultSilentMode:e.boolean,actions:e.array(S(Cr))})]),yd=e.intersection([e.type({type:S(Cr)}),e.partial({skipSecondaryIfNoFiles:e.boolean,skipDownloadableStep:e.boolean,requiresReview:e.boolean,waitingPeriod:e.number,regionDetectionMethod:S(Rm),regionList:e.array(S({...Ce,...Ie})),regionBlockList:e.array(S({...Ce,...Ie}))})]),hd=e.intersection([e.type({name:e.string,type:e.string}),e.partial({regex:e.string,selectOptions:e.array(e.string),privacyCenterVisibility:e.array(S(Cr)),dataSubjects:e.array(e.string),isRequiredInForm:e.boolean,placeholder:e.string,displayTitle:e.string,displayDescription:e.string,displayOrder:e.number})]),Cd=e.intersection([e.type({value:e.string,type:S(hn)}),e.partial({description:e.string,trackingPurposes:e.array(e.string),service:e.string,status:S(Ir),owners:e.array(e.string),teams:e.array(e.string),attributes:e.array(Bt)})]),Id=e.intersection([e.type({name:e.string}),e.partial({isRegex:e.boolean,description:e.string,trackingPurposes:e.array(e.string),service:e.string,status:S(Ir),owners:e.array(e.string),teams:e.array(e.string),attributes:e.array(Bt)})]),Ad=e.intersection([e.type({name:e.string}),e.partial({displayName:e.string,regions:e.array(e.partial({countrySubDivision:S(Ie),country:S(Ce)})),onConsentExpiry:S(jm),consentExpiry:e.number,operator:S(Sm),displayPriority:e.number,viewState:S(Qm),purposes:e.array(e.type({trackingType:e.string})),optedOutPurposes:e.array(e.type({trackingType:e.string})),browserLanguages:e.array(S(Vm)),browserTimeZones:e.array(S(Im))})]),Td=e.intersection([e.type({name:e.string}),e.partial({partition:e.string})]),Sd=e.partial({version:e.string,bundleUrls:e.record(S(om),e.string),domains:e.array(e.string),partition:e.string,consentPrecedence:S(ym),unknownRequestPolicy:S(oo),unknownCookiePolicy:S(oo),syncEndpoint:e.string,telemetryPartitioning:S(Pm),signedIabAgreement:S(Em),uspapi:S(cm),experiences:e.array(Ad),theme:e.partial({primaryColor:e.string,fontColor:e.string,privacyPolicy:e.string,prompt:e.number}),syncGroups:e.string}),Pd=e.partial({isDisabled:e.boolean,showPrivacyRequestButton:e.boolean,showDataPractices:e.boolean,showPolicies:e.boolean,showTrackingTechnologies:e.boolean,showCookies:e.boolean,showDataFlows:e.boolean,showConsentManager:e.boolean,showManageYourPrivacy:e.boolean,showMarketingPreferences:e.boolean,locales:e.array(S(hr)),defaultLocale:S(hr),preferBrowserDefaultLocale:e.boolean,supportEmail:e.string,replyToEmail:e.string,useNoReplyEmailAddress:e.boolean,useCustomEmailDomain:e.boolean,transformAccessReportJsonToCsv:e.boolean,theme:e.partial({colors:e.partial(yn(_m,()=>e.string)),componentStyles:km,textStyles:Om})}),Ed=e.intersection([e.type({title:e.string}),e.partial({effectiveOn:e.string,disableEffectiveOn:e.boolean,content:e.string,disabledLocales:e.array(S(hr))})]),Rd=e.intersection([e.type({id:e.string}),e.partial({targetReactIntlId:e.string,defaultMessage:e.string,translations:e.partial(yn(hr,()=>e.string))})]),bd=e.intersection([e.type({title:e.string,integrationName:e.string}),e.partial({"outer-type":e.string,description:e.string,url:e.string,"api-key-title":e.string,headers:e.array(mo),"data-subjects":e.array(e.string),"identity-keys":e.array(e.string),"deletion-dependencies":e.array(e.string),owners:e.array(e.string),teams:e.array(e.string),disabled:e.boolean,datapoints:e.array(ud),"email-settings":md,country:S(Ce),countrySubDivision:S(Ie),attributes:e.array(Bt),businessEntityTitles:e.array(e.string)})]),wd=e.intersection([e.type({title:e.string,productLine:S(Lm)}),e.partial({description:e.string,hidden:e.boolean})]),xd=e.intersection([e.type({title:e.string,type:S(qm),collections:e.array(e.string)}),e.partial({priority:S(Dm),customerExperienceActionItemId:e.string,dueDate:e.string,resolved:e.boolean,notes:e.string,link:e.string,users:e.array(e.string),teams:e.array(e.string),attributes:e.array(Bt)})]),fo=e.intersection([e.type({"depends-on-question-reference-id":e.string,"comparison-operator":S(lo)}),e.partial({"comparison-operands":e.array(e.string)})]),$d=e.recursion("AssessmentNestedRuleInput",r=>e.intersection([e.type({"logic-operator":S(gm)}),e.partial({rules:e.array(fo),"nested-rules":e.array(r)})])),Dd=e.intersection([e.type({action:S(dm)}),e.partial({rule:fo,"nested-rule":$d})]),dA=e.partial({"risk-level":e.string,"risk-matrix-column":e.string,"risk-matrix-row":e.string}),qd=e.intersection([e.type({"comparison-operands":e.array(e.string),"comparison-operator":S(lo)}),e.partial({"risk-level":e.string,"risk-matrix-column":e.string,"risk-matrix-row":e.string})]),vd=e.type({value:e.string}),Ld=e.intersection([e.type({title:e.string,type:S(lm)}),e.partial({"sub-type":S(Cm),placeholder:e.string,description:e.string,"is-required":e.boolean,"reference-id":e.string,"display-logic":Dd,"risk-logic":e.array(qd),"risk-categories":e.array(e.string),"risk-framework":e.string,"answer-options":e.array(vd),"selected-answers":e.array(e.string),"allowed-mime-types":e.array(e.string),"allow-select-other":e.boolean,"sync-model":S(hm),"sync-column":S(am),"attribute-key":e.string,"require-risk-evaluation":e.boolean,"require-risk-matrix-evaluation":e.boolean})]),go=e.intersection([e.type({title:e.string,questions:e.array(Ld)}),e.partial({assignees:e.array(e.string),"external-assignees":e.array(e.string),status:e.string,"is-reviewed":e.boolean})]),yo=e.type({type:S(pm),"duration-days":e.number,operand:S(mm)}),kd=e.intersection([e.type({title:e.string}),e.partial({sections:e.array(go),description:e.string,status:S(Gm),source:S(Fm),creator:e.string,locked:e.boolean,"parent-id":e.string,archived:e.boolean,"created-at":e.string,"attribute-keys":e.array(e.string),"retention-schedule":yo,templates:e.array(e.string)})]),so=e.type({title:e.string,type:S(co)}),Od=e.intersection([e.type({title:e.string,group:e.string}),e.partial({sections:e.array(go),creator:e.string,description:e.string,status:S(Mm),assignees:e.array(e.string),"external-assignees":e.array(e.string),reviewers:e.array(e.string),locked:e.boolean,archived:e.boolean,external:e.boolean,"title-is-internal":e.boolean,"due-date":e.string,"created-at":e.string,"assigned-at":e.string,"submitted-at":e.string,"approved-at":e.string,"rejected-at":e.string,resources:e.array(so),rows:e.array(so),"retention-schedule":yo,attributes:e.array(Bt)})]),Nd=e.type({title:e.string,slug:e.string}),_d=e.intersection([e.type({type:S(Bm),title:e.string,description:e.string}),e.partial({"default-configuration":e.string,"show-in-privacy-center":e.boolean,options:e.array(Nd)})]),Gd=e.intersection([e.type({trackingType:e.string,title:e.string,name:e.string}),e.partial({description:e.string,"is-active":e.boolean,configurable:e.boolean,"display-order":e.number,"show-in-privacy-center":e.boolean,"show-in-consent-manager":e.boolean,"preference-topics":e.array(_d),"auth-level":S(Nm),"opt-out-signals":e.array(S(Km)),"default-consent":S(fm)})]),In=e.partial({"action-items":e.array(xd),"action-item-collections":e.array(wd),"api-keys":e.array(zm),teams:e.array(Hm),templates:e.array(Ym),enrichers:e.array(Zm),attributes:e.array(td),"business-entities":e.array(dd),vendors:e.array(id),"data-categories":e.array(od),"processing-purposes":e.array(sd),"data-subjects":e.array(gd),actions:e.array(yd),identifiers:e.array(hd),"data-silos":e.array(bd),"data-flows":e.array(Cd),cookies:e.array(Id),"consent-manager":Sd,prompts:e.array(ad),"prompt-partials":e.array(pd),"prompt-groups":e.array(ld),agents:e.array(ed),"agent-functions":e.array(rd),"agent-files":e.array(nd),"privacy-center":Pd,policies:e.array(Ed),messages:e.array(Rd),partitions:e.array(Td),"assessment-templates":e.array(kd),assessments:e.array(Od),purposes:e.array(Gd)}),ho=e.type({organizationName:e.string,apiKey:e.string,organizationId:e.string}),Co=e.intersection([e.type({"Connections Made To":e.string,Type:S(hn),Purpose:e.string}),e.partial({Service:e.string,Notes:e.string,Owners:e.string,Teams:e.string,Status:S(Ir)}),e.record(e.string,e.string)]),Io=e.intersection([e.type({Name:e.string,Purpose:e.string}),e.partial({Service:e.string,Notes:e.string,Owners:e.string,Teams:e.string,Status:S(Ir)}),e.record(e.string,e.string)]),fA=e.type({title:e.string,description:e.string,cookies:e.array(e.type({name:e.string,trackingPurposes:e.array(e.string)})),dataFlows:e.array(e.type({value:e.string,type:S(hn),trackingPurposes:e.array(e.string)}))}),gA=S(gr),Md=eo({TRouteName:S(gn)}),yA=S(gn),Fd=e.array(Md),Ud=no({TEnabledRoutes:Fd}),hA=e.partial({enabledIntegrations:e.partial({openAI:Ud})}),CA=e.partial({promptRunName:e.string,promptId:e.string,promptTitle:e.string,promptGroupId:e.string,promptGroupTitle:e.string,runByEmployeeEmail:e.string,applicationId:e.string,applicationName:e.string,codePackageName:e.string,repositoryName:e.string,applicationUserCoreIdentifier:e.string,applicationUserName:e.string,slackMessageTs:e.string,slackTeamId:e.string,slackChannelId:e.string,slackChannelName:e.string}),Bd=e.intersection([e.type({title:e.string}),e.partial({value:e.string})]),Qd=e.type({columns:e.array(Bd)}),IA=e.partial({rows:e.array(Qd),json:e.string});import{decodeCodec as So}from"@transcend-io/type-utils";import Po from"js-yaml";import{readFileSync as Vd,writeFileSync as Kd}from"fs";var Ao=/<<parameters\.(.+?)>>/,To="parameters";function jd(r,t,n=""){let o=r;if(Object.entries(t).forEach(([i,a])=>{o=o.split(`<<${To}.${i}>>`).join(a)}),Ao.test(o)){let[,i]=Ao.exec(o)||[];throw new Error(`Found variable that was not set: ${i}.
2
+ Make sure you are passing all parameters through the --${To}=${i}:value-for-param flag.
3
+ ${n}`)}return o}function bA(r,t={}){let n=Vd(r,"utf-8"),o=jd(n,t,`Also check that there are no extra variables defined in your yaml: ${r}`);return So(In,Po.load(o))}function wA(r,t){Kd(r,Po.dump(So(In,t)))}import Yd from"colors";import{bootstrap as zd}from"global-agent";import{ProxyAgent as Hd,setGlobalDispatcher as Zd}from"undici";import Wd from"yargs-parser";var p=console,{httpProxy:Ar=process.env.http_proxy}=Wd(process.argv.slice(2));Ar&&(p.info(Yd.green(`Initializing proxy: ${Ar}`)),process.env.GLOBAL_AGENT_HTTP_PROXY=Ar,zd(),Zd(new Hd(Ar)));import V from"colors";import{map as Fe}from"bluebird";import{gql as Ae}from"graphql-request";var Eo=Ae`
4
+ query TranscendCliDataPoints(
5
+ $filterBy: DataPointFiltersInput
6
+ $first: Int!
7
+ $offset: Int!
8
+ ) {
9
+ dataPoints(
10
+ filterBy: $filterBy
11
+ first: $first
12
+ offset: $offset
13
+ useMaster: false
14
+ orderBy: [
15
+ { field: createdAt, direction: ASC }
16
+ { field: name, direction: ASC }
17
+ ]
18
+ ) {
19
+ nodes {
20
+ id
21
+ title {
22
+ defaultMessage
23
+ }
24
+ description {
25
+ defaultMessage
26
+ }
27
+ owners {
28
+ email
29
+ }
30
+ teams {
31
+ name
32
+ }
33
+ name
34
+ path
35
+ actionSettings {
36
+ type
37
+ active
38
+ }
39
+ dataCollection {
40
+ title {
41
+ defaultMessage
42
+ }
43
+ }
44
+ dbIntegrationQueries {
45
+ query
46
+ suggestedQuery
47
+ requestType
48
+ }
49
+ }
50
+ }
51
+ }
52
+ `,OA=Ae`
53
+ query TranscendCliDataPointCount($filterBy: DataPointFiltersInput) {
54
+ dataPoints(filterBy: $filterBy, useMaster: false) {
55
+ totalCount
56
+ }
57
+ }
58
+ `,Ro=Ae`
59
+ query TranscendCliSubDataPoints(
60
+ $filterBy: SubDataPointFiltersInput
61
+ $first: Int!
62
+ $offset: Int!
63
+ ) {
64
+ subDataPoints(
65
+ filterBy: $filterBy
66
+ first: $first
67
+ offset: $offset
68
+ useMaster: false
69
+ ) {
70
+ nodes {
71
+ id
72
+ name
73
+ description
74
+ purposes {
75
+ name
76
+ purpose
77
+ }
78
+ categories {
79
+ name
80
+ category
81
+ }
82
+ accessRequestVisibilityEnabled
83
+ erasureRequestRedactionEnabled
84
+ attributeValues {
85
+ attributeKey {
86
+ name
87
+ }
88
+ name
89
+ }
90
+ }
91
+ }
92
+ }
93
+ `,bo=Ae`
94
+ query TranscendCliSubDataPointsCount($filterBy: SubDataPointFiltersInput) {
95
+ subDataPoints(filterBy: $filterBy, useMaster: false) {
96
+ totalCount
97
+ }
98
+ }
99
+ `,wo=Ae`
100
+ query TranscendCliSubDataPointGuesses(
101
+ $filterBy: SubDataPointFiltersInput
102
+ $first: Int!
103
+ $offset: Int!
104
+ ) {
105
+ subDataPoints(
106
+ filterBy: $filterBy
107
+ first: $first
108
+ offset: $offset
109
+ useMaster: false
110
+ ) {
111
+ nodes {
112
+ id
113
+ name
114
+ description
115
+ purposes {
116
+ name
117
+ purpose
118
+ }
119
+ categories {
120
+ name
121
+ category
122
+ }
123
+ pendingCategoryGuesses {
124
+ category {
125
+ name
126
+ category
127
+ }
128
+ status
129
+ confidence
130
+ classifierVersion
131
+ }
132
+ accessRequestVisibilityEnabled
133
+ erasureRequestRedactionEnabled
134
+ attributeValues {
135
+ attributeKey {
136
+ name
137
+ }
138
+ name
139
+ }
140
+ }
141
+ }
142
+ }
143
+ `,xo=Ae`
144
+ mutation TranscendCliUpdateOrCreateDataPoint(
145
+ $dataSiloId: ID!
146
+ $name: String!
147
+ $path: [String!]
148
+ $title: String
149
+ $description: String
150
+ $ownerIds: [ID!]
151
+ $ownerEmails: [String!]
152
+ $teamNames: [String!]
153
+ $teamIds: [ID!]
154
+ $dataCollectionTag: String
155
+ $querySuggestions: [DbIntegrationQuerySuggestionInput!]
156
+ $enabledActions: [RequestActionObjectResolver!]
157
+ $subDataPoints: [DataPointSubDataPointInput!]
158
+ ) {
159
+ updateOrCreateDataPoint(
160
+ input: {
161
+ dataSiloId: $dataSiloId
162
+ name: $name
163
+ path: $path
164
+ title: $title
165
+ teamNames: $teamNames
166
+ ownerEmails: $ownerEmails
167
+ dataCollectionTag: $dataCollectionTag
168
+ description: $description
169
+ ownerIds: $ownerIds
170
+ teamIds: $teamIds
171
+ querySuggestions: $querySuggestions
172
+ enabledActions: $enabledActions
173
+ subDataPoints: $subDataPoints
174
+ }
175
+ ) {
176
+ dataPoint {
177
+ id
178
+ name
179
+ }
180
+ }
181
+ }
182
+ `,$o=Ae`
183
+ query TranscendCliDataPointCsvExport(
184
+ $filterBy: DataPointFiltersInput
185
+ $first: Int!
186
+ ) {
187
+ dataPoints(filterBy: $filterBy, first: $first, useMaster: false) {
188
+ nodes {
189
+ id
190
+ title {
191
+ defaultMessage
192
+ }
193
+ description {
194
+ defaultMessage
195
+ }
196
+ owners {
197
+ email
198
+ }
199
+ teams {
200
+ name
201
+ }
202
+ name
203
+ path
204
+ }
205
+ }
206
+ }
207
+ `;import{gql as Jd}from"graphql-request";var Do=Jd`
208
+ query TranscendCliEntryCount(
209
+ $filterBy: UnstructuredSubDataPointRecommendationsFilterInput
210
+ ) {
211
+ unstructuredSubDataPointRecommendations(
212
+ filterBy: $filterBy
213
+ useMaster: false
214
+ ) {
215
+ totalCount
216
+ }
217
+ }
218
+ `;import{gql as tr}from"graphql-request";var qo=tr`
219
+ query TranscendCliDataSilos(
220
+ $filterBy: DataSiloFiltersInput!
221
+ $first: Int!
222
+ $offset: Int!
223
+ ) {
224
+ dataSilos(
225
+ filterBy: $filterBy
226
+ first: $first
227
+ offset: $offset
228
+ orderBy: [
229
+ { field: createdAt, direction: ASC }
230
+ { field: title, direction: ASC }
231
+ ]
232
+ useMaster: false
233
+ ) {
234
+ nodes {
235
+ id
236
+ title
237
+ link
238
+ type
239
+ catalog {
240
+ hasAvcFunctionality
241
+ }
242
+ }
243
+ }
244
+ }
245
+ `,vo=tr`
246
+ query TranscendCliDataSiloExport(
247
+ $filterBy: DataSiloFiltersInput!
248
+ $first: Int!
249
+ ) {
250
+ dataSilos(filterBy: $filterBy, first: $first, useMaster: false) {
251
+ nodes {
252
+ id
253
+ title
254
+ }
255
+ }
256
+ }
257
+ `,Lo=tr`
258
+ query TranscendCliDataSilosEnriched(
259
+ $filterBy: DataSiloFiltersInput!
260
+ $first: Int!
261
+ $offset: Int!
262
+ ) {
263
+ dataSilos(
264
+ filterBy: $filterBy
265
+ first: $first
266
+ offset: $offset
267
+ orderBy: [
268
+ { field: createdAt, direction: ASC }
269
+ { field: title, direction: ASC }
270
+ ]
271
+ useMaster: false
272
+ ) {
273
+ nodes {
274
+ id
275
+ title
276
+ description
277
+ type
278
+ outerType
279
+ link
280
+ country
281
+ countrySubDivision
282
+ url
283
+ notifyEmailAddress
284
+ attributeValues {
285
+ attributeKey {
286
+ name
287
+ }
288
+ name
289
+ }
290
+ apiKeys {
291
+ title
292
+ }
293
+ subjectBlocklist {
294
+ type
295
+ }
296
+ identifiers {
297
+ name
298
+ isConnected
299
+ }
300
+ dependentDataSilos {
301
+ title
302
+ }
303
+ owners {
304
+ email
305
+ }
306
+ teams {
307
+ id
308
+ name
309
+ }
310
+ catalog {
311
+ hasAvcFunctionality
312
+ }
313
+ isLive
314
+ promptAVendorEmailSendFrequency
315
+ promptAVendorEmailSendType
316
+ promptAVendorEmailIncludeIdentifiersAttachment
317
+ promptAVendorEmailCompletionLinkType
318
+ manualWorkRetryFrequency
319
+ discoveredBy {
320
+ title
321
+ }
322
+ businessEntities {
323
+ title
324
+ }
325
+ }
326
+ }
327
+ }
328
+ `,An=tr`
329
+ mutation TranscendCliUpdateDataSilo($input: UpdateDataSilosInput!) {
330
+ updateDataSilos(input: $input) {
331
+ clientMutationId
332
+ dataSilos {
333
+ id
334
+ title
335
+ }
336
+ }
337
+ }
338
+ `,ko=tr`
339
+ mutation TranscendCliCreateDataSilo($input: [CreateDataSilosInput!]!) {
340
+ createDataSilos(input: $input) {
341
+ dataSilos {
342
+ id
343
+ title
344
+ }
345
+ }
346
+ }
347
+ `;import{gql as Tr}from"graphql-request";var Oo=Tr`
348
+ query TranscendCliEnrichers($title: String, $first: Int!, $offset: Int!) {
349
+ enrichers(
350
+ filterBy: { text: $title }
351
+ first: $first
352
+ offset: $offset
353
+ useMaster: false
354
+ orderBy: [
355
+ { field: createdAt, direction: ASC }
356
+ { field: title, direction: ASC }
357
+ ]
358
+ ) {
359
+ nodes {
360
+ id
361
+ title
362
+ url
363
+ type
364
+ expirationDuration
365
+ lookerQueryTitle
366
+ testRegex
367
+ transitionRequestStatus
368
+ phoneNumbers
369
+ regionList
370
+ inputIdentifier {
371
+ name
372
+ }
373
+ identifiers {
374
+ name
375
+ }
376
+ dataSubjects {
377
+ type
378
+ }
379
+ actions
380
+ }
381
+ }
382
+ }
383
+ `,No=Tr`
384
+ query TranscendCliInitializer {
385
+ initializer {
386
+ id
387
+ identifiers {
388
+ name
389
+ }
390
+ }
391
+ }
392
+ `,_o=Tr`
393
+ mutation TranscendCliCreateEnricher($input: EnricherInput!) {
394
+ createEnricher(input: $input) {
395
+ clientMutationId
396
+ }
397
+ }
398
+ `,Go=Tr`
399
+ mutation TranscendCliUpdateEnricher($input: UpdateEnricherInput!) {
400
+ updateEnricher(input: $input) {
401
+ clientMutationId
402
+ }
403
+ }
404
+ `;import{gql as Xd}from"graphql-request";var Mo=Xd`
405
+ query TranscendCliCatalogs($first: Int!, $offset: Int!) {
406
+ catalogs(first: $first, offset: $offset, filterBy: {}, useMaster: false) {
407
+ nodes {
408
+ integrationName
409
+ title
410
+ hasApiFunctionality
411
+ }
412
+ }
413
+ }
414
+ `;import{gql as Sr}from"graphql-request";var Fo=Sr`
415
+ query TranscendCliIdentifiers($first: Int!, $offset: Int!) {
416
+ identifiers(
417
+ first: $first
418
+ offset: $offset
419
+ useMaster: false
420
+ orderBy: [
421
+ { field: createdAt, direction: ASC }
422
+ { field: name, direction: ASC }
423
+ ]
424
+ ) {
425
+ nodes {
426
+ id
427
+ name
428
+ type
429
+ regex
430
+ selectOptions
431
+ privacyCenterVisibility
432
+ dataSubjects {
433
+ type
434
+ }
435
+ isRequiredInForm
436
+ placeholder
437
+ displayTitle {
438
+ defaultMessage
439
+ }
440
+ displayDescription {
441
+ defaultMessage
442
+ }
443
+ displayOrder
444
+ }
445
+ }
446
+ }
447
+ `,Uo=Sr`
448
+ query TranscendCliNewIdentifierTypes {
449
+ newIdentifierTypes {
450
+ name
451
+ }
452
+ }
453
+ `,Bo=Sr`
454
+ mutation TranscendCliCreateIdentifier($input: IdentifierInput!) {
455
+ createIdentifier(input: $input) {
456
+ identifier {
457
+ id
458
+ name
459
+ }
460
+ }
461
+ }
462
+ `,Qo=Sr`
463
+ mutation TranscendCliUpdateIdentifier($input: UpdateIdentifierInput!) {
464
+ updateIdentifier(input: $input) {
465
+ clientMutationId
466
+ }
467
+ }
468
+ `;import{gql as Pr}from"graphql-request";var Er=Pr`
469
+ query TranscendCliDataSubjects {
470
+ internalSubjects {
471
+ id
472
+ title {
473
+ defaultMessage
474
+ }
475
+ active
476
+ type
477
+ adminDashboardDefaultSilentMode
478
+ actions {
479
+ type
480
+ }
481
+ }
482
+ }
483
+ `,Vo=Pr`
484
+ mutation TranscendCliCreateDataSubject($type: String!) {
485
+ createSubject(input: { type: $type, title: $type, subjectClass: OTHER }) {
486
+ subject {
487
+ id
488
+ type
489
+ }
490
+ }
491
+ }
492
+ `,Ko=Pr`
493
+ mutation TranscendCliUpdateDataSubject($input: UpdateSubjectInput!) {
494
+ updateSubject(input: $input) {
495
+ clientMutationId
496
+ }
497
+ }
498
+ `,jo=Pr`
499
+ mutation TranscendCliToggleDataSubject($input: ToggleSubjectInput!) {
500
+ toggleSubject(input: $input) {
501
+ clientMutationId
502
+ }
503
+ }
504
+ `;import{gql as Tn}from"graphql-request";var Yo=Tn`
505
+ query TranscendCliRepositories(
506
+ $first: Int!
507
+ $offset: Int!
508
+ $input: RepositoryFiltersInput
509
+ ) {
510
+ repositories(
511
+ first: $first
512
+ offset: $offset
513
+ filterBy: $input
514
+ orderBy: [
515
+ { field: createdAt, direction: ASC }
516
+ { field: name, direction: ASC }
517
+ ]
518
+ ) {
519
+ nodes {
520
+ id
521
+ name
522
+ description
523
+ url
524
+ teams {
525
+ id
526
+ name
527
+ }
528
+ owners {
529
+ id
530
+ email
531
+ }
532
+ }
533
+ }
534
+ }
535
+ `,zo=Tn`
536
+ mutation TranscendCliUpdateRepositories($input: UpdateRepositoriesInput!) {
537
+ updateRepositories(input: $input) {
538
+ clientMutationId
539
+ repositories {
540
+ id
541
+ name
542
+ url
543
+ teams {
544
+ id
545
+ name
546
+ }
547
+ owners {
548
+ id
549
+ email
550
+ }
551
+ }
552
+ }
553
+ }
554
+ `,Ho=Tn`
555
+ mutation TranscendCliCreateRepository($input: CreateRepositoryInput!) {
556
+ createRepository(input: $input) {
557
+ clientMutationId
558
+ repository {
559
+ id
560
+ name
561
+ url
562
+ teams {
563
+ id
564
+ name
565
+ }
566
+ owners {
567
+ id
568
+ email
569
+ }
570
+ }
571
+ }
572
+ }
573
+ `;import{gql as Sn}from"graphql-request";var Zo=Sn`
574
+ query TranscendCliApiKeys($first: Int!, $offset: Int!, $titles: [String!]) {
575
+ apiKeys(
576
+ first: $first
577
+ offset: $offset
578
+ filterBy: { titles: $titles }
579
+ useMaster: false
580
+ orderBy: [
581
+ { field: createdAt, direction: ASC }
582
+ { field: title, direction: ASC }
583
+ ]
584
+ ) {
585
+ nodes {
586
+ id
587
+ title
588
+ }
589
+ }
590
+ }
591
+ `,Wo=Sn`
592
+ mutation TranscendCliCreateApiKey($input: ApiKeyInput!) {
593
+ createApiKey(input: $input) {
594
+ apiKey {
595
+ id
596
+ apiKey
597
+ title
598
+ }
599
+ }
600
+ }
601
+ `,Jo=Sn`
602
+ mutation TranscendCliDeleteApiKey($id: ID!) {
603
+ deleteApiKey(id: $id) {
604
+ clientMutationId
605
+ }
606
+ }
607
+ `;import{gql as Xo}from"graphql-request";var ts=Xo`
608
+ mutation AddSiloDiscoveryResults(
609
+ $pluginId: ID!
610
+ $rawResults: [SiloDiscoveryRawResultInput!]!
611
+ ) {
612
+ addSiloDiscoveryResults(
613
+ input: { pluginId: $pluginId, rawResults: $rawResults }
614
+ ) {
615
+ success
616
+ }
617
+ }
618
+ `,es=Xo`
619
+ query Plugins($dataSiloId: String!, $type: PluginType!) {
620
+ plugins(filterBy: { dataSiloId: $dataSiloId, type: $type, enabled: true }) {
621
+ plugins {
622
+ id
623
+ dataSilo {
624
+ type
625
+ }
626
+ }
627
+ totalCount
628
+ }
629
+ }
630
+ `;import{gql as rs}from"graphql-request";var ns=rs`
631
+ query TranscendCliTemplates($title: String, $first: Int!, $offset: Int!) {
632
+ templates(
633
+ filterBy: { text: $title }
634
+ first: $first
635
+ offset: $offset
636
+ useMaster: false
637
+ ) {
638
+ nodes {
639
+ id
640
+ title
641
+ subject {
642
+ defaultMessage
643
+ }
644
+ template {
645
+ defaultMessage
646
+ }
647
+ }
648
+ }
649
+ }
650
+ `,is=rs`
651
+ mutation TranscendCliCreateTemplate($title: String!) {
652
+ createTemplate(input: { title: $title, template: "", subject: $title }) {
653
+ clientMutationId
654
+ }
655
+ }
656
+ `;import{gql as tf}from"graphql-request";var os=tf`
657
+ query TranscendCliOrganization {
658
+ organization {
659
+ sombra {
660
+ customerUrl
661
+ }
662
+ }
663
+ }
664
+ `;import{gql as ef}from"graphql-request";var ss=ef`
665
+ query TranscendCliAttributeKeys($first: Int!, $offset: Int!) {
666
+ attributeKeys(
667
+ filterBy: { enabledOn: [request] }
668
+ first: $first
669
+ useMaster: false
670
+ offset: $offset
671
+ ) {
672
+ nodes {
673
+ id
674
+ name
675
+ type
676
+ }
677
+ }
678
+ }
679
+ `;import{gql as Pn}from"graphql-request";var as=Pn`
680
+ query TranscendCliSoftwareDevelopmentKits(
681
+ $first: Int!
682
+ $offset: Int!
683
+ $input: SoftwareDevelopmentKitFiltersInput
684
+ ) {
685
+ softwareDevelopmentKits(
686
+ first: $first
687
+ offset: $offset
688
+ filterBy: $input
689
+ orderBy: [
690
+ { field: createdAt, direction: ASC }
691
+ { field: name, direction: ASC }
692
+ ]
693
+ ) {
694
+ nodes {
695
+ id
696
+ name
697
+ description
698
+ codePackageType
699
+ documentationLinks
700
+ repositoryUrl
701
+ teams {
702
+ id
703
+ name
704
+ }
705
+ owners {
706
+ id
707
+ email
708
+ }
709
+ }
710
+ }
711
+ }
712
+ `,ps=Pn`
713
+ mutation TranscendCliUpdateSoftwareDevelopmentKits(
714
+ $input: UpdateSoftwareDevelopmentKitsInput!
715
+ ) {
716
+ updateSoftwareDevelopmentKits(input: $input) {
717
+ clientMutationId
718
+ softwareDevelopmentKits {
719
+ id
720
+ name
721
+ description
722
+ codePackageType
723
+ documentationLinks
724
+ repositoryUrl
725
+ teams {
726
+ id
727
+ name
728
+ }
729
+ owners {
730
+ id
731
+ email
732
+ }
733
+ }
734
+ }
735
+ }
736
+ `,ls=Pn`
737
+ mutation TranscendCliCreateSoftwareDevelopmentKit(
738
+ $input: CreateSoftwareDevelopmentKitInput!
739
+ ) {
740
+ createSoftwareDevelopmentKit(input: $input) {
741
+ clientMutationId
742
+ softwareDevelopmentKit {
743
+ id
744
+ name
745
+ description
746
+ codePackageType
747
+ documentationLinks
748
+ repositoryUrl
749
+ teams {
750
+ id
751
+ name
752
+ }
753
+ owners {
754
+ id
755
+ email
756
+ }
757
+ }
758
+ }
759
+ }
760
+ `;import{gql as En}from"graphql-request";var cs=En`
761
+ query TranscendCliCodePackages(
762
+ $first: Int!
763
+ $offset: Int!
764
+ $input: CodePackageFiltersInput
765
+ ) {
766
+ codePackages(
767
+ first: $first
768
+ offset: $offset
769
+ filterBy: $input
770
+ orderBy: [
771
+ { field: createdAt, direction: ASC }
772
+ { field: name, direction: ASC }
773
+ ]
774
+ ) {
775
+ nodes {
776
+ id
777
+ name
778
+ description
779
+ type
780
+ relativePath
781
+ teams {
782
+ id
783
+ name
784
+ }
785
+ owners {
786
+ id
787
+ email
788
+ }
789
+ repository {
790
+ id
791
+ name
792
+ }
793
+ dataSilo {
794
+ id
795
+ title
796
+ type
797
+ }
798
+ }
799
+ }
800
+ }
801
+ `,us=En`
802
+ mutation TranscendCliUpdateCodePackages($input: UpdateCodePackagesInput!) {
803
+ updateCodePackages(input: $input) {
804
+ clientMutationId
805
+ codePackages {
806
+ id
807
+ name
808
+ description
809
+ type
810
+ relativePath
811
+ teams {
812
+ id
813
+ name
814
+ }
815
+ owners {
816
+ id
817
+ email
818
+ }
819
+ repository {
820
+ id
821
+ name
822
+ }
823
+ dataSilo {
824
+ id
825
+ title
826
+ type
827
+ }
828
+ }
829
+ }
830
+ }
831
+ `,ms=En`
832
+ mutation TranscendCliCreateCodePackage($input: CreateCodePackageInput!) {
833
+ createCodePackage(input: $input) {
834
+ clientMutationId
835
+ codePackage {
836
+ id
837
+ name
838
+ description
839
+ type
840
+ relativePath
841
+ teams {
842
+ id
843
+ name
844
+ }
845
+ owners {
846
+ id
847
+ email
848
+ }
849
+ repository {
850
+ id
851
+ name
852
+ }
853
+ dataSilo {
854
+ id
855
+ title
856
+ type
857
+ }
858
+ }
859
+ }
860
+ }
861
+ `;import{gql as rf}from"graphql-request";var ds=rf`
862
+ query TranscendCliPromptThreads(
863
+ $first: Int!
864
+ $offset: Int!
865
+ $filterBy: PromptThreadFiltersInput!
866
+ ) {
867
+ promptThreads(first: $first, offset: $offset, filterBy: $filterBy) {
868
+ nodes {
869
+ id
870
+ threadId
871
+ slackMessageTs
872
+ slackTeamId
873
+ slackChannelId
874
+ slackChannelName
875
+ }
876
+ }
877
+ }
878
+ `;import{gql as fs}from"graphql-request";var gs=fs`
879
+ query TranscendCliFetchPolicies($url: String!) {
880
+ privacyCenterPolicies(lookup: { url: $url }) {
881
+ id
882
+ title {
883
+ defaultMessage
884
+ }
885
+ disableEffectiveOn
886
+ disabledLocales
887
+ versions {
888
+ effectiveOn
889
+ content {
890
+ defaultMessage
891
+ }
892
+ }
893
+ }
894
+ }
895
+ `,ys=fs`
896
+ mutation TranscendCliUpdatePolicies(
897
+ $policies: [PolicyInput!]!
898
+ $privacyCenterId: ID!
899
+ ) {
900
+ updatePolicies(
901
+ input: {
902
+ privacyCenterId: $privacyCenterId
903
+ policies: $policies
904
+ skipPublish: true
905
+ }
906
+ ) {
907
+ clientMutationId
908
+ }
909
+ }
910
+ `;import{gql as er}from"graphql-request";var hs=er`
911
+ query TranscendCliRequests(
912
+ $first: Int!
913
+ $offset: Int!
914
+ $filterBy: RequestFiltersInput!
915
+ ) {
916
+ requests(
917
+ filterBy: $filterBy
918
+ first: $first
919
+ offset: $offset
920
+ orderBy: [
921
+ { field: createdAt, direction: ASC }
922
+ { field: id, direction: ASC }
923
+ ]
924
+ useMaster: false
925
+ ) {
926
+ nodes {
927
+ id
928
+ createdAt
929
+ email
930
+ link
931
+ status
932
+ details
933
+ isTest
934
+ locale
935
+ origin
936
+ isSilent
937
+ coreIdentifier
938
+ daysRemaining
939
+ type
940
+ subjectType
941
+ country
942
+ countrySubDivision
943
+ attributeValues {
944
+ id
945
+ name
946
+ attributeKey {
947
+ id
948
+ name
949
+ }
950
+ }
951
+ }
952
+ totalCount
953
+ }
954
+ }
955
+ `,Rr=er`
956
+ mutation TranscendCliApprovePrivacyRequest($input: CommunicationInput!) {
957
+ approveRequest(input: $input) {
958
+ request {
959
+ id
960
+ }
961
+ }
962
+ }
963
+ `,Cs=er`
964
+ mutation TranscendCliCancelPrivacyRequest($input: CommunicationInput!) {
965
+ cancelRequest(input: $input) {
966
+ request {
967
+ id
968
+ }
969
+ }
970
+ }
971
+ `,ae=er`
972
+ mutation TranscendCliUpdatePrivacyRequest($input: UpdateRequestInput!) {
973
+ updateRequest(input: $input) {
974
+ request {
975
+ id
976
+ }
977
+ }
978
+ }
979
+ `,Is=er`
980
+ mutation TranscendCliNotifyAdditionalTime($input: AdditionalTimeInput!) {
981
+ notifyAdditionalTime(input: $input) {
982
+ clientMutationId
983
+ }
984
+ }
985
+ `;import{gql as As}from"graphql-request";var Ts=As`
986
+ query TranscendCliFetchMessage {
987
+ translatedMessages {
988
+ id
989
+ defaultMessage
990
+ targetReactIntlId
991
+ translations {
992
+ locale
993
+ value
994
+ }
995
+ }
996
+ }
997
+ `,Ss=As`
998
+ mutation TranscendCliUpdateIntlMessages($messages: [MessageInput!]!) {
999
+ updateIntlMessages(input: { messages: $messages, skipPublish: true }) {
1000
+ clientMutationId
1001
+ }
1002
+ }
1003
+ `;import{gql as Rn}from"graphql-request";var Ps=Rn`
1004
+ query TranscendCliRequestEnrichers(
1005
+ $first: Int!
1006
+ $offset: Int!
1007
+ $requestId: ID!
1008
+ ) {
1009
+ requestEnrichers(
1010
+ input: { requestId: $requestId }
1011
+ first: $first
1012
+ offset: $offset
1013
+ useMaster: false
1014
+ orderBy: [
1015
+ { field: createdAt, direction: ASC }
1016
+ { field: title, direction: ASC, model: enricher }
1017
+ ]
1018
+ ) {
1019
+ nodes {
1020
+ id
1021
+ status
1022
+ enricher {
1023
+ id
1024
+ type
1025
+ title
1026
+ }
1027
+ }
1028
+ totalCount
1029
+ }
1030
+ }
1031
+ `,Es=Rn`
1032
+ mutation TranscendCliRetryRequestEnricher($requestEnricherId: ID!) {
1033
+ retryRequestEnricher(id: $requestEnricherId) {
1034
+ requestEnricher {
1035
+ id
1036
+ }
1037
+ }
1038
+ }
1039
+ `,Rs=Rn`
1040
+ mutation TranscendCliSkipRequestEnricher($requestEnricherId: ID!) {
1041
+ skipRequestEnricher(id: $requestEnricherId) {
1042
+ requestEnricher {
1043
+ id
1044
+ }
1045
+ }
1046
+ }
1047
+ `;import{gql as bs}from"graphql-request";var bn=`
1048
+ id
1049
+ title
1050
+ status
1051
+ index
1052
+ questions {
1053
+ id
1054
+ title
1055
+ index
1056
+ type
1057
+ subType
1058
+ placeholder
1059
+ description
1060
+ isRequired
1061
+ displayLogic
1062
+ riskLogic
1063
+ requireRiskEvaluation
1064
+ requireRiskMatrixEvaluation
1065
+ riskCategories {
1066
+ id
1067
+ title
1068
+ }
1069
+ riskFramework {
1070
+ id
1071
+ title
1072
+ description
1073
+ riskLevels {
1074
+ id
1075
+ title
1076
+ }
1077
+ riskCategories {
1078
+ id
1079
+ title
1080
+ }
1081
+ riskMatrixColumns {
1082
+ id
1083
+ title
1084
+ }
1085
+ riskMatrixRows {
1086
+ id
1087
+ title
1088
+ }
1089
+ riskMatrix {
1090
+ id
1091
+ title
1092
+ }
1093
+ creator {
1094
+ id
1095
+ email
1096
+ name
1097
+ }
1098
+ riskMatrixRowTitle
1099
+ riskMatrixColumnTitle
1100
+ }
1101
+ riskLevel {
1102
+ id
1103
+ title
1104
+ }
1105
+ reviewerRiskLevel {
1106
+ id
1107
+ title
1108
+ }
1109
+ riskLevelFromRiskMatrix {
1110
+ id
1111
+ title
1112
+ }
1113
+ answerOptions {
1114
+ id
1115
+ index
1116
+ value
1117
+ }
1118
+ selectedAnswers {
1119
+ ... on AssessmentAnswerInterface {
1120
+ id
1121
+ index
1122
+ value
1123
+ }
1124
+ }
1125
+ respondent {
1126
+ id
1127
+ email
1128
+ name
1129
+ }
1130
+ attributeKey {
1131
+ name
1132
+ }
1133
+ externalRespondentEmail
1134
+ comments {
1135
+ id
1136
+ content
1137
+ createdAt
1138
+ updatedAt
1139
+ author {
1140
+ id
1141
+ email
1142
+ name
1143
+ }
1144
+ }
1145
+ allowedMimeTypes
1146
+ updatedAt
1147
+ referenceId
1148
+ previousSubmissions {
1149
+ id
1150
+ updatedAt
1151
+ assessmentQuestionId
1152
+ answers {
1153
+ ... on AssessmentAnswerInterface {
1154
+ id
1155
+ index
1156
+ value
1157
+ }
1158
+ }
1159
+ }
1160
+ allowSelectOther
1161
+ syncModel
1162
+ syncColumn
1163
+ syncRowIds
1164
+ syncOverride
1165
+ }
1166
+ assignees {
1167
+ id
1168
+ email
1169
+ name
1170
+ }
1171
+ externalAssignees {
1172
+ id
1173
+ email
1174
+ }
1175
+ isReviewed
1176
+ `,ws=bs`
1177
+ query TranscendCliAssessments(
1178
+ $first: Int!
1179
+ $offset: Int!
1180
+ $filterBy: AssessmentFormFiltersInput
1181
+ ) {
1182
+ assessmentForms(first: $first, offset: $offset, filterBy: $filterBy) {
1183
+ nodes {
1184
+ id
1185
+ creator {
1186
+ id
1187
+ email
1188
+ name
1189
+ }
1190
+ lastEditor {
1191
+ id
1192
+ email
1193
+ name
1194
+ }
1195
+ title
1196
+ description
1197
+ status
1198
+ assignees {
1199
+ id
1200
+ email
1201
+ name
1202
+ }
1203
+ externalAssignees {
1204
+ id
1205
+ email
1206
+ }
1207
+ reviewers {
1208
+ id
1209
+ email
1210
+ name
1211
+ }
1212
+ isLocked
1213
+ isArchived
1214
+ isExternallyCreated
1215
+ dueDate
1216
+ createdAt
1217
+ updatedAt
1218
+ assignedAt
1219
+ submittedAt
1220
+ approvedAt
1221
+ rejectedAt
1222
+ titleIsInternal
1223
+ retentionSchedule {
1224
+ id
1225
+ type
1226
+ durationDays
1227
+ operation
1228
+ }
1229
+ attributeValues {
1230
+ name
1231
+ attributeKey {
1232
+ name
1233
+ }
1234
+ }
1235
+ sections {
1236
+ ${bn}
1237
+ }
1238
+ assessmentGroup {
1239
+ id
1240
+ title
1241
+ description
1242
+ }
1243
+ resources {
1244
+ resourceType
1245
+ ... on AttributeBusinessEntityResource {
1246
+ id
1247
+ title
1248
+ }
1249
+ ... on AttributeDataSiloResource {
1250
+ id
1251
+ title
1252
+ }
1253
+ ... on AttributeDataSubCategoryResource {
1254
+ id
1255
+ name
1256
+ category
1257
+ }
1258
+ ... on AttributeSubDataPointResource {
1259
+ id
1260
+ name
1261
+ }
1262
+ ... on AttributeProcessingPurposeSubCategoryResource {
1263
+ id
1264
+ name
1265
+ purpose
1266
+ }
1267
+ ... on AttributeRequestResource {
1268
+ id
1269
+ type
1270
+ }
1271
+ ... on AttributeVendorResource {
1272
+ id
1273
+ title
1274
+ }
1275
+ ... on AttributePromptResource {
1276
+ id
1277
+ title
1278
+ }
1279
+ ... on AttributePromptRunResource {
1280
+ id
1281
+ title
1282
+ }
1283
+ ... on AttributePromptGroupResource {
1284
+ id
1285
+ title
1286
+ }
1287
+ }
1288
+ syncedRows {
1289
+ resourceType
1290
+ ... on AttributeBusinessEntityResource {
1291
+ id
1292
+ title
1293
+ }
1294
+ ... on AttributeDataSiloResource {
1295
+ id
1296
+ title
1297
+ }
1298
+ ... on AttributeDataSubCategoryResource {
1299
+ id
1300
+ name
1301
+ category
1302
+ }
1303
+ ... on AttributeSubDataPointResource {
1304
+ id
1305
+ name
1306
+ }
1307
+ ... on AttributeProcessingPurposeSubCategoryResource {
1308
+ id
1309
+ name
1310
+ purpose
1311
+ }
1312
+ ... on AttributeVendorResource {
1313
+ id
1314
+ title
1315
+ }
1316
+ }
1317
+ }
1318
+ }
1319
+ }
1320
+ `,ST=bs`
1321
+ mutation TranscendCliImportOneTrustAssessmentForms(
1322
+ $input: ImportOnetrustAssessmentsInput!
1323
+ ) {
1324
+ importOneTrustAssessmentForms(input: $input) {
1325
+ assessmentForms {
1326
+ id
1327
+ title
1328
+ }
1329
+ }
1330
+ }
1331
+ `;import{gql as nf}from"graphql-request";var xs=nf`
1332
+ query TranscendCliPurposes(
1333
+ $first: Int!
1334
+ $offset: Int!
1335
+ $filterBy: TrackingPurposeFiltersInput
1336
+ $input: TrackingPurposeInput!
1337
+ ) {
1338
+ purposes(
1339
+ first: $first
1340
+ offset: $offset
1341
+ filterBy: $filterBy
1342
+ input: $input
1343
+ ) {
1344
+ nodes {
1345
+ id
1346
+ name
1347
+ description
1348
+ defaultConsent
1349
+ trackingType
1350
+ configurable
1351
+ essential
1352
+ showInConsentManager
1353
+ isActive
1354
+ displayOrder
1355
+ optOutSignals
1356
+ deletedAt
1357
+ authLevel
1358
+ showInPrivacyCenter
1359
+ title
1360
+ }
1361
+ }
1362
+ }
1363
+ `;import{gql as of}from"graphql-request";var $s=of`
1364
+ query TranscendCliPreferenceTopics(
1365
+ $first: Int!
1366
+ $offset: Int!
1367
+ $filterBy: PreferenceTopicFilterInput
1368
+ ) {
1369
+ preferenceTopics(first: $first, offset: $offset, filterBy: $filterBy) {
1370
+ nodes {
1371
+ id
1372
+ slug
1373
+ type
1374
+ title {
1375
+ id
1376
+ defaultMessage
1377
+ }
1378
+ showInPrivacyCenter
1379
+ displayDescription {
1380
+ id
1381
+ defaultMessage
1382
+ }
1383
+ defaultConfiguration
1384
+ preferenceOptionValues {
1385
+ slug
1386
+ title {
1387
+ id
1388
+ defaultMessage
1389
+ }
1390
+ }
1391
+ purpose {
1392
+ trackingType
1393
+ }
1394
+ }
1395
+ }
1396
+ }
1397
+ `;import{gql as sf}from"graphql-request";var Ds=sf`
1398
+ query TranscendCliAssessmentTemplates(
1399
+ $first: Int!
1400
+ $offset: Int!
1401
+ $filterBy: AssessmentFormTemplateFiltersInput
1402
+ ) {
1403
+ assessmentFormTemplates(
1404
+ first: $first
1405
+ offset: $offset
1406
+ filterBy: $filterBy
1407
+ ) {
1408
+ nodes {
1409
+ id
1410
+ creator {
1411
+ id
1412
+ email
1413
+ name
1414
+ }
1415
+ lastEditor {
1416
+ id
1417
+ email
1418
+ name
1419
+ }
1420
+ title
1421
+ description
1422
+ status
1423
+ source
1424
+ parentId
1425
+ isLocked
1426
+ isArchived
1427
+ createdAt
1428
+ updatedAt
1429
+ retentionSchedule {
1430
+ id
1431
+ type
1432
+ durationDays
1433
+ operation
1434
+ createdAt
1435
+ updatedAt
1436
+ }
1437
+ assessmentEmailSet {
1438
+ id
1439
+ title
1440
+ description
1441
+ isDefault
1442
+ templates {
1443
+ id
1444
+ title
1445
+ }
1446
+ }
1447
+ sections {
1448
+ ${bn}
1449
+ }
1450
+ }
1451
+ }
1452
+ }
1453
+ `;import{gql as Qt}from"graphql-request";var qs=Qt`
1454
+ query TranscendCliPrompts(
1455
+ $first: Int!
1456
+ $offset: Int!
1457
+ $filterBy: PromptFiltersInput
1458
+ ) {
1459
+ prompts(
1460
+ first: $first
1461
+ orderBy: [{ field: title, direction: ASC }]
1462
+ offset: $offset
1463
+ filterBy: $filterBy
1464
+ ) {
1465
+ nodes {
1466
+ id
1467
+ title
1468
+ status
1469
+ content
1470
+ temperature
1471
+ topP
1472
+ maxTokensToSample
1473
+ }
1474
+ }
1475
+ }
1476
+ `,vs=Qt`
1477
+ query TranscendCliPromptPartials($first: Int!, $offset: Int!) {
1478
+ promptPartials(first: $first, offset: $offset) {
1479
+ nodes {
1480
+ id
1481
+ title
1482
+ content
1483
+ }
1484
+ }
1485
+ }
1486
+ `,Ls=Qt`
1487
+ query TranscendCliPromptGroups($first: Int!, $offset: Int!) {
1488
+ promptGroups(
1489
+ first: $first
1490
+
1491
+ offset: $offset
1492
+ ) {
1493
+ nodes {
1494
+ id
1495
+ title
1496
+ description
1497
+ prompts {
1498
+ title
1499
+ }
1500
+ }
1501
+ }
1502
+ }
1503
+ `,ks=Qt`
1504
+ query TranscendCliPromptsWithVariables($input: PromptsWithVariablesInput!) {
1505
+ promptsWithVariables(input: $input) {
1506
+ prompts {
1507
+ id
1508
+ title
1509
+ content
1510
+ status
1511
+ temperature
1512
+ topP
1513
+ maxTokensToSample
1514
+ responseFormat
1515
+ }
1516
+ promptPartials {
1517
+ id
1518
+ title
1519
+ content
1520
+ slug
1521
+ }
1522
+ calculatedVariables {
1523
+ data
1524
+ name
1525
+ }
1526
+ runtimeVariables {
1527
+ name
1528
+ }
1529
+ }
1530
+ }
1531
+ `,Os=Qt`
1532
+ mutation TranscendCliUpdatePrompts($input: UpdatePromptsInput!) {
1533
+ updatePrompts(input: $input) {
1534
+ clientMutationId
1535
+ }
1536
+ }
1537
+ `,Ns=Qt`
1538
+ mutation TranscendCliCreatePrompt($input: CreatePromptInput!) {
1539
+ createPrompt(input: $input) {
1540
+ clientMutationId
1541
+ prompt {
1542
+ id
1543
+ }
1544
+ }
1545
+ }
1546
+ `,_s=Qt`
1547
+ mutation TranscendCliUpdatePromptPartials(
1548
+ $input: UpdatePromptPartialsInput!
1549
+ ) {
1550
+ updatePromptPartials(input: $input) {
1551
+ clientMutationId
1552
+ }
1553
+ }
1554
+ `,Gs=Qt`
1555
+ mutation TranscendCliCreatePromptPartial($input: CreatePromptPartialInput!) {
1556
+ createPromptPartial(input: $input) {
1557
+ clientMutationId
1558
+ promptPartial {
1559
+ id
1560
+ }
1561
+ }
1562
+ }
1563
+ `,Ms=Qt`
1564
+ mutation TranscendCliUpdatePromptGroups($input: UpdatePromptGroupsInput!) {
1565
+ updatePromptGroups(input: $input) {
1566
+ clientMutationId
1567
+ }
1568
+ }
1569
+ `,Fs=Qt`
1570
+ mutation TranscendCliCreatePromptPartial($input: CreatePromptGroupInput!) {
1571
+ createPromptGroup(input: $input) {
1572
+ clientMutationId
1573
+ promptGroup {
1574
+ id
1575
+ }
1576
+ }
1577
+ }
1578
+ `;import{gql as br}from"graphql-request";var Us=br`
1579
+ query TranscendCliRequestDataSilos(
1580
+ $first: Int!
1581
+ $offset: Int!
1582
+ $filterBy: RequestDataSiloFiltersInput!
1583
+ ) {
1584
+ requestDataSilos(
1585
+ filterBy: $filterBy
1586
+ first: $first
1587
+ offset: $offset
1588
+ useMaster: false
1589
+ orderBy: [
1590
+ { field: createdAt, direction: DESC }
1591
+ { field: title, direction: ASC, model: dataSilo }
1592
+ ]
1593
+ ) {
1594
+ nodes {
1595
+ id
1596
+ }
1597
+ totalCount
1598
+ }
1599
+ }
1600
+ `,wr=br`
1601
+ mutation TranscendCliMarkRequestDataSiloCompleted(
1602
+ $requestDataSiloId: ID!
1603
+ $status: UpdateRequestDataSiloStatus!
1604
+ ) {
1605
+ changeRequestDataSiloStatus(
1606
+ input: { id: $requestDataSiloId, status: $status }
1607
+ ) {
1608
+ requestDataSilo {
1609
+ id
1610
+ }
1611
+ }
1612
+ }
1613
+ `,Bs=br`
1614
+ mutation TranscendCliRetryRequestDataSilo($requestDataSiloId: ID!) {
1615
+ retryRequestDataSilo(id: $requestDataSiloId) {
1616
+ requestDataSilo {
1617
+ id
1618
+ }
1619
+ }
1620
+ }
1621
+ `,Qs=br`
1622
+ query TranscendCliListReducedRequestsForDataSiloCount(
1623
+ $input: BulkCompletionReducedRequestInput!
1624
+ ) {
1625
+ listReducedRequestsForDataSilo(input: $input) {
1626
+ totalCount
1627
+ }
1628
+ }
1629
+ `;import{gql as wn}from"graphql-request";var Vs=wn`
1630
+ query TranscendCliTeams(
1631
+ $first: Int!
1632
+ $offset: Int!
1633
+ $input: TeamFiltersInput
1634
+ ) {
1635
+ teams(
1636
+ first: $first
1637
+ offset: $offset
1638
+ filterBy: $input
1639
+ orderBy: [
1640
+ { field: createdAt, direction: ASC }
1641
+ { field: name, direction: ASC }
1642
+ ]
1643
+ ) {
1644
+ nodes {
1645
+ id
1646
+ name
1647
+ description
1648
+ ssoDepartment
1649
+ ssoGroup
1650
+ ssoTitle
1651
+ users {
1652
+ id
1653
+ email
1654
+ name
1655
+ }
1656
+ scopes {
1657
+ id
1658
+ name
1659
+ title
1660
+ }
1661
+ }
1662
+ }
1663
+ }
1664
+ `,Ks=wn`
1665
+ mutation TranscendCliCreateTeam($input: TeamInput!) {
1666
+ createTeam(input: $input) {
1667
+ team {
1668
+ id
1669
+ name
1670
+ }
1671
+ }
1672
+ }
1673
+ `,js=wn`
1674
+ mutation TranscendCliUpdateTeam($input: UpdateTeamInput!) {
1675
+ updateTeam(input: $input) {
1676
+ team {
1677
+ id
1678
+ name
1679
+ }
1680
+ }
1681
+ }
1682
+ `;import{gql as Ys}from"graphql-request";var zs=Ys`
1683
+ mutation TranscendCliRemoveRequestIdentifiers(
1684
+ $input: RemoveRequestIdentifiersInput!
1685
+ ) {
1686
+ removeRequestIdentifiers(input: $input) {
1687
+ count
1688
+ }
1689
+ }
1690
+ `,Hs=Ys`
1691
+ query TranscendCliRequestIdentifiers(
1692
+ $first: Int!
1693
+ $offset: Int!
1694
+ $requestIds: [ID!]!
1695
+ ) {
1696
+ requestIdentifiers(
1697
+ input: { requestIds: $requestIds }
1698
+ first: $first
1699
+ offset: $offset
1700
+ useMaster: false
1701
+ orderBy: [
1702
+ { field: createdAt, direction: ASC }
1703
+ { field: name, direction: ASC }
1704
+ ]
1705
+ ) {
1706
+ nodes {
1707
+ id
1708
+ name
1709
+ isVerifiedAtLeastOnce
1710
+ }
1711
+ totalCount
1712
+ }
1713
+ }
1714
+ `;import{gql as af}from"graphql-request";var Zs=af`
1715
+ query TranscendCliUsers(
1716
+ $first: Int!
1717
+ $offset: Int!
1718
+ $input: UserFiltersInput
1719
+ ) {
1720
+ users(
1721
+ first: $first
1722
+ offset: $offset
1723
+ filterBy: $input
1724
+ orderBy: [
1725
+ { field: createdAt, direction: ASC }
1726
+ { field: name, direction: ASC }
1727
+ ]
1728
+ ) {
1729
+ nodes {
1730
+ id
1731
+ name
1732
+ email
1733
+ }
1734
+ }
1735
+ }
1736
+ `;import{gql as pf}from"graphql-request";var Ws=pf`
1737
+ query TranscendCliRequestFiles(
1738
+ $first: Int!
1739
+ $offset: Int!
1740
+ $filterBy: RequestFileFiltersInput!
1741
+ ) {
1742
+ requestFiles(
1743
+ filterBy: $filterBy
1744
+ first: $first
1745
+ offset: $offset
1746
+ orderBy: [
1747
+ { field: createdAt, direction: ASC }
1748
+ { field: id, direction: ASC }
1749
+ ]
1750
+ ) {
1751
+ nodes {
1752
+ remoteId
1753
+ fileName
1754
+ }
1755
+ }
1756
+ }
1757
+ `;import{gql as Js}from"graphql-request";var Xs=Js`
1758
+ mutation TranscendCliReportPromptRun($input: ReportPromptRunInput!) {
1759
+ reportPromptRun(input: $input) {
1760
+ clientMutationId
1761
+ promptRun {
1762
+ id
1763
+ }
1764
+ }
1765
+ }
1766
+ `,ta=Js`
1767
+ mutation TranscendCliAddMessagesToPromptRun(
1768
+ $input: AddMessagesToPromptRunInput!
1769
+ ) {
1770
+ addMessagesToPromptRun(input: $input) {
1771
+ clientMutationId
1772
+ promptRun {
1773
+ id
1774
+ }
1775
+ }
1776
+ }
1777
+ `;import{gql as xn}from"graphql-request";var ea=xn`
1778
+ query TranscendCliGlobalActionItemCollectionss(
1779
+ $filterBy: GlobalActionItemCollectionFiltersInput!
1780
+ ) {
1781
+ globalActionItemCollections(filterBy: $filterBy) {
1782
+ nodes {
1783
+ id
1784
+ title
1785
+ description
1786
+ hidden
1787
+ productLine
1788
+ }
1789
+ }
1790
+ }
1791
+ `,ra=xn`
1792
+ mutation TranscendCliCreateActionItemCollection(
1793
+ $input: CreateActionItemCollectionInput!
1794
+ ) {
1795
+ createActionItemCollection(input: $input) {
1796
+ created {
1797
+ id
1798
+ title
1799
+ }
1800
+ }
1801
+ }
1802
+ `,na=xn`
1803
+ mutation TranscendCliUpdateActionItemCollection(
1804
+ $input: UpdateActionItemCollectionInput!
1805
+ ) {
1806
+ updateActionItemCollection(input: $input) {
1807
+ clientMutationId
1808
+ }
1809
+ }
1810
+ `;import{gql as pe}from"graphql-request";var ia=pe`
1811
+ query TranscendCliAttributes($first: Int!, $offset: Int!) {
1812
+ attributeKeys(first: $first, offset: $offset, useMaster: false) {
1813
+ nodes {
1814
+ id
1815
+ isCustom
1816
+ description
1817
+ enabledOn
1818
+ name
1819
+ type
1820
+ }
1821
+ }
1822
+ }
1823
+ `,oa=pe`
1824
+ mutation TranscendCliCreateAttributeValues(
1825
+ $input: [CreateAttributeValuesInput!]!
1826
+ ) {
1827
+ createAttributeValues(input: $input) {
1828
+ clientMutationId
1829
+ }
1830
+ }
1831
+ `,sa=pe`
1832
+ mutation TranscendCliUpdateAttributeValues(
1833
+ $input: [UpdateAttributeValueInput!]!
1834
+ ) {
1835
+ updateAttributeValues(input: $input) {
1836
+ clientMutationId
1837
+ }
1838
+ }
1839
+ `,aa=pe`
1840
+ mutation TranscendCliDeleteAttributeValue($id: ID!) {
1841
+ deleteAttributeValue(id: $id) {
1842
+ clientMutationId
1843
+ }
1844
+ }
1845
+ `,pa=pe`
1846
+ query TranscendCliAttributeValues(
1847
+ $first: Int!
1848
+ $offset: Int!
1849
+ $attributeKeyId: ID!
1850
+ ) {
1851
+ attributeValues(
1852
+ first: $first
1853
+ offset: $offset
1854
+ useMaster: false
1855
+ filterBy: { attributeKeys: [$attributeKeyId] }
1856
+ ) {
1857
+ nodes {
1858
+ id
1859
+ name
1860
+ description
1861
+ color
1862
+ }
1863
+ }
1864
+ }
1865
+ `,la=pe`
1866
+ mutation TranscendCliCreateAttribute(
1867
+ $name: String!
1868
+ $type: AttributeKeyType!
1869
+ $description: String
1870
+ $enabledOn: [AttributeSupportedResourceType!]
1871
+ ) {
1872
+ createAttributeKey(
1873
+ input: {
1874
+ name: $name
1875
+ type: $type
1876
+ description: $description
1877
+ enabledOn: $enabledOn
1878
+ }
1879
+ ) {
1880
+ clientMutationId
1881
+ attributeKey {
1882
+ id
1883
+ }
1884
+ }
1885
+ }
1886
+ `,ca=pe`
1887
+ mutation TranscendCliCreateAttribute(
1888
+ $attributeKeyId: ID!
1889
+ $description: String
1890
+ $enabledOn: [AttributeSupportedResourceType!]
1891
+ ) {
1892
+ updateAttributeKey(
1893
+ input: {
1894
+ id: $attributeKeyId
1895
+ description: $description
1896
+ enabledOn: $enabledOn
1897
+ }
1898
+ ) {
1899
+ clientMutationId
1900
+ attributeKey {
1901
+ id
1902
+ }
1903
+ }
1904
+ }
1905
+ `,ua=pe`
1906
+ mutation TranscendCliSetResourceAttributes(
1907
+ $input: SetResourceAttributesInput!
1908
+ ) {
1909
+ setResourceAttributes(input: $input) {
1910
+ clientMutationId
1911
+ }
1912
+ }
1913
+ `;import{gql as rt}from"graphql-request";var ma=rt`
1914
+ query TranscendCliExperiences($first: Int!, $offset: Int!) {
1915
+ experiences(first: $first, offset: $offset, useMaster: false) {
1916
+ nodes {
1917
+ id
1918
+ name
1919
+ displayName
1920
+ regions {
1921
+ countrySubDivision
1922
+ country
1923
+ }
1924
+ operator
1925
+ displayPriority
1926
+ onConsentExpiry
1927
+ consentExpiry
1928
+ viewState
1929
+ purposes {
1930
+ name
1931
+ trackingType
1932
+ }
1933
+ optedOutPurposes {
1934
+ name
1935
+ trackingType
1936
+ }
1937
+ browserLanguages
1938
+ browserTimeZones
1939
+ }
1940
+ }
1941
+ }
1942
+ `,da=rt`
1943
+ query TranscendCliConsentPartitions($first: Int!, $offset: Int!) {
1944
+ consentPartitions(first: $first, offset: $offset) {
1945
+ nodes {
1946
+ id
1947
+ name
1948
+ partition
1949
+ }
1950
+ }
1951
+ }
1952
+ `,fa=rt`
1953
+ mutation TranscendCliCreateDataFlows(
1954
+ $dataFlows: [DataFlowInput!]!
1955
+ $airgapBundleId: ID!
1956
+ $classifyService: Boolean
1957
+ ) {
1958
+ createDataFlows(
1959
+ input: {
1960
+ airgapBundleId: $airgapBundleId
1961
+ dataFlows: $dataFlows
1962
+ classifyService: $classifyService
1963
+ }
1964
+ ) {
1965
+ dataFlows {
1966
+ id
1967
+ }
1968
+ }
1969
+ }
1970
+ `,ga=rt`
1971
+ mutation TranscendCliUpdateDataFlows(
1972
+ $airgapBundleId: ID!
1973
+ $dataFlows: [UpdateDataFlowInput!]!
1974
+ $classifyService: Boolean
1975
+ ) {
1976
+ updateDataFlows(
1977
+ input: {
1978
+ airgapBundleId: $airgapBundleId
1979
+ dataFlows: $dataFlows
1980
+ classifyService: $classifyService
1981
+ }
1982
+ ) {
1983
+ dataFlows {
1984
+ id
1985
+ }
1986
+ }
1987
+ }
1988
+ `,ya=rt`
1989
+ mutation TranscendCliUpdateOrCreateCookies(
1990
+ $cookies: [UpdateOrCreateCookieInput!]!
1991
+ $airgapBundleId: ID!
1992
+ ) {
1993
+ updateOrCreateCookies(
1994
+ input: { airgapBundleId: $airgapBundleId, cookies: $cookies }
1995
+ ) {
1996
+ clientMutationId
1997
+ }
1998
+ }
1999
+ `,ha=rt`
2000
+ query TranscendCliDataFlows(
2001
+ $first: Int!
2002
+ $airgapBundleId: ID!
2003
+ $offset: Int!
2004
+ $status: ConsentTrackerStatus
2005
+ $showZeroActivity: Boolean
2006
+ ) {
2007
+ dataFlows(
2008
+ first: $first
2009
+ offset: $offset
2010
+ filterBy: { status: $status, showZeroActivity: $showZeroActivity }
2011
+ input: { airgapBundleId: $airgapBundleId }
2012
+ orderBy: [
2013
+ { field: createdAt, direction: ASC }
2014
+ { field: value, direction: ASC }
2015
+ ]
2016
+ useMaster: false
2017
+ ) {
2018
+ nodes {
2019
+ id
2020
+ value
2021
+ type
2022
+ description
2023
+ trackingType
2024
+ service {
2025
+ integrationName
2026
+ }
2027
+ source
2028
+ status
2029
+ owners {
2030
+ email
2031
+ }
2032
+ teams {
2033
+ name
2034
+ }
2035
+ attributeValues {
2036
+ name
2037
+ attributeKey {
2038
+ name
2039
+ }
2040
+ }
2041
+ }
2042
+ }
2043
+ }
2044
+ `,Ca=rt`
2045
+ query TranscendCliCookies(
2046
+ $first: Int!
2047
+ $offset: Int!
2048
+ $airgapBundleId: ID!
2049
+ $status: ConsentTrackerStatus
2050
+ ) {
2051
+ cookies(
2052
+ first: $first
2053
+ offset: $offset
2054
+ filterBy: { status: $status }
2055
+ input: { airgapBundleId: $airgapBundleId }
2056
+ orderBy: [
2057
+ { field: createdAt, direction: ASC }
2058
+ { field: name, direction: ASC }
2059
+ ]
2060
+ useMaster: false
2061
+ ) {
2062
+ nodes {
2063
+ id
2064
+ name
2065
+ isRegex
2066
+ description
2067
+ trackingPurposes
2068
+ service {
2069
+ integrationName
2070
+ }
2071
+ source
2072
+ status
2073
+ owners {
2074
+ email
2075
+ }
2076
+ teams {
2077
+ name
2078
+ }
2079
+ attributeValues {
2080
+ name
2081
+ attributeKey {
2082
+ name
2083
+ }
2084
+ }
2085
+ }
2086
+ }
2087
+ }
2088
+ `,Ia=rt`
2089
+ query TranscendCliFetchConsentManagerId {
2090
+ consentManager {
2091
+ consentManager {
2092
+ id
2093
+ }
2094
+ }
2095
+ }
2096
+ `,Aa=rt`
2097
+ query TranscendCliFetchConsentManager {
2098
+ consentManager {
2099
+ consentManager {
2100
+ id
2101
+ bundleURL
2102
+ testBundleURL
2103
+ configuration {
2104
+ domains
2105
+ consentPrecedence
2106
+ unknownRequestPolicy
2107
+ unknownCookiePolicy
2108
+ syncEndpoint
2109
+ telemetryPartitioning
2110
+ signedIabAgreement
2111
+ uspapi
2112
+ syncGroups
2113
+ partition
2114
+ }
2115
+ partition {
2116
+ partition
2117
+ }
2118
+ }
2119
+ }
2120
+ }
2121
+ `,Ta=rt`
2122
+ query TranscendCliFetchConsentManagerTheme($airgapBundleId: ID!) {
2123
+ consentManagerTheme(input: { airgapBundleId: $airgapBundleId }) {
2124
+ theme {
2125
+ primaryColor
2126
+ fontColor
2127
+ privacyPolicy
2128
+ prompt
2129
+ }
2130
+ }
2131
+ }
2132
+ `,Sa=rt`
2133
+ mutation TranscendCliCreateConsentManager($privacyCenterId: ID!) {
2134
+ createConsentManager(input: { privacyCenterId: $privacyCenterId }) {
2135
+ consentManager {
2136
+ id
2137
+ }
2138
+ }
2139
+ }
2140
+ `,Pa=rt`
2141
+ mutation TranscendCliUpdateConsentManager(
2142
+ $airgapBundleId: ID!
2143
+ $version: String!
2144
+ ) {
2145
+ updateConsentManager(id: $airgapBundleId, input: { version: $version }) {
2146
+ clientMutationId
2147
+ }
2148
+ }
2149
+ `,Ea=rt`
2150
+ mutation TranscendCliUpdateConsentManagerToLatest(
2151
+ $airgapBundleId: ID!
2152
+ $bundleType: ConsentBundleType!
2153
+ ) {
2154
+ updateConsentManagerToLatestVersion(
2155
+ id: $airgapBundleId
2156
+ input: { bundleType: $bundleType }
2157
+ ) {
2158
+ clientMutationId
2159
+ }
2160
+ }
2161
+ `,Ra=rt`
2162
+ mutation TranscendCliDeployConsentManager(
2163
+ $airgapBundleId: ID!
2164
+ $bundleType: ConsentBundleType!
2165
+ ) {
2166
+ deployConsentManagerBundle(
2167
+ id: $airgapBundleId
2168
+ input: { bundleType: $bundleType }
2169
+ ) {
2170
+ clientMutationId
2171
+ }
2172
+ }
2173
+ `,ba=rt`
2174
+ mutation TranscendCliUpdateConsentManagerDomains(
2175
+ $airgapBundleId: ID!
2176
+ $domains: [String!]!
2177
+ ) {
2178
+ updateConsentManagerDomains(
2179
+ input: { id: $airgapBundleId, domains: $domains }
2180
+ ) {
2181
+ clientMutationId
2182
+ }
2183
+ }
2184
+ `,wa=rt`
2185
+ mutation TranscendCliUpdateConsentManagerPartition(
2186
+ $airgapBundleId: ID!
2187
+ $partitionId: ID!
2188
+ ) {
2189
+ updateConsentManagerPartition(
2190
+ input: { id: $airgapBundleId, partitionId: $partitionId }
2191
+ ) {
2192
+ clientMutationId
2193
+ }
2194
+ }
2195
+ `,xa=rt`
2196
+ mutation TranscendCliToggleUspAPI($input: ToggleUspapiInput!) {
2197
+ toggleUspapi(input: $input) {
2198
+ clientMutationId
2199
+ }
2200
+ }
2201
+ `,$a=rt`
2202
+ mutation TranscendCliToggleUnknownRequestPolicy(
2203
+ $input: ToggleUnknownRequestPolicyInput!
2204
+ ) {
2205
+ toggleUnknownRequestPolicy(input: $input) {
2206
+ clientMutationId
2207
+ }
2208
+ }
2209
+ `,Da=rt`
2210
+ mutation TranscendCliToggleUnknownCookiePolicy(
2211
+ $input: ToggleUnknownCookiePolicyInput!
2212
+ ) {
2213
+ toggleUnknownCookiePolicy(input: $input) {
2214
+ clientMutationId
2215
+ }
2216
+ }
2217
+ `,qa=rt`
2218
+ mutation TranscendCliToggleTelemetryPartitionStrategy(
2219
+ $input: ToggleTelemetryPartitionStrategyInput!
2220
+ ) {
2221
+ toggleTelemetryPartitioning(input: $input) {
2222
+ clientMutationId
2223
+ }
2224
+ }
2225
+ `,va=rt`
2226
+ mutation TranscendCliToggleConsentPrecedence(
2227
+ $input: ToggleConsentPrecedenceInput!
2228
+ ) {
2229
+ toggleConsentPrecedence(input: $input) {
2230
+ clientMutationId
2231
+ }
2232
+ }
2233
+ `,La=rt`
2234
+ mutation TranscendCliUpdateConsentManagerTheme(
2235
+ $input: UpdateConsentManagerThemeInput!
2236
+ ) {
2237
+ updateConsentManagerTheme(input: $input) {
2238
+ clientMutationId
2239
+ }
2240
+ }
2241
+ `,ka=rt`
2242
+ mutation TranscendCliUpdateConsentExperience($input: UpdateExperienceInput!) {
2243
+ updateExperience(input: $input) {
2244
+ clientMutationId
2245
+ }
2246
+ }
2247
+ `,Oa=rt`
2248
+ mutation TranscendCliCreateConsentExperience($input: CreateExperienceInput!) {
2249
+ createExperience(input: $input) {
2250
+ clientMutationId
2251
+ }
2252
+ }
2253
+ `,Na=rt`
2254
+ mutation TranscendCliCreateConsentPartition(
2255
+ $input: CreateConsentPartitionInput!
2256
+ ) {
2257
+ createConsentPartition(input: $input) {
2258
+ clientMutationId
2259
+ }
2260
+ }
2261
+ `;import{gql as lf}from"graphql-request";var _a=lf`
2262
+ query TranscendCliConsentManagerAnalyticsData($input: AnalyticsInput!) {
2263
+ analyticsData(input: $input) {
2264
+ series {
2265
+ name
2266
+ points {
2267
+ key
2268
+ value
2269
+ }
2270
+ }
2271
+ }
2272
+ }
2273
+ `;import{gql as $n}from"graphql-request";var Ga=$n`
2274
+ query TranscendCliBusinessEntities($first: Int!, $offset: Int!) {
2275
+ businessEntities(
2276
+ first: $first
2277
+ offset: $offset
2278
+ orderBy: [
2279
+ { field: createdAt, direction: ASC }
2280
+ { field: title, direction: ASC }
2281
+ ]
2282
+ useMaster: false
2283
+ ) {
2284
+ nodes {
2285
+ id
2286
+ title
2287
+ description
2288
+ dataProtectionOfficerName
2289
+ dataProtectionOfficerEmail
2290
+ address
2291
+ headquarterCountry
2292
+ headquarterSubDivision
2293
+ attributeValues {
2294
+ name
2295
+ attributeKey {
2296
+ name
2297
+ }
2298
+ }
2299
+ }
2300
+ }
2301
+ }
2302
+ `,Ma=$n`
2303
+ mutation TranscendCliCreateBusinessEntity(
2304
+ $input: CreateBusinessEntityInput!
2305
+ ) {
2306
+ createBusinessEntity(input: $input) {
2307
+ businessEntity {
2308
+ id
2309
+ title
2310
+ description
2311
+ dataProtectionOfficerName
2312
+ dataProtectionOfficerEmail
2313
+ address
2314
+ headquarterCountry
2315
+ headquarterSubDivision
2316
+ attributeValues {
2317
+ name
2318
+ attributeKey {
2319
+ name
2320
+ }
2321
+ }
2322
+ }
2323
+ }
2324
+ }
2325
+ `,Fa=$n`
2326
+ mutation TranscendCliUpdateBusinessEntities(
2327
+ $input: [UpdateBusinessEntityInput!]!
2328
+ ) {
2329
+ updateBusinessEntities(input: { businessEntities: $input }) {
2330
+ clientMutationId
2331
+ }
2332
+ }
2333
+ `;import{gql as Ua}from"graphql-request";var Ba=Ua`
2334
+ query TranscendCliActions($first: Int!, $offset: Int!) {
2335
+ actions(
2336
+ first: $first
2337
+ offset: $offset
2338
+ useMaster: false
2339
+ orderBy: [{ field: type, direction: ASC }]
2340
+ ) {
2341
+ nodes {
2342
+ id
2343
+ type
2344
+ skipSecondaryIfNoFiles
2345
+ skipDownloadableStep
2346
+ requiresReview
2347
+ regionList
2348
+ regionDetectionMethod
2349
+ waitingPeriod
2350
+ }
2351
+ }
2352
+ }
2353
+ `,Qa=Ua`
2354
+ mutation TranscendCliUpdateAction($input: UpdateActionInput!) {
2355
+ updateAction(input: $input) {
2356
+ clientMutationId
2357
+ }
2358
+ }
2359
+ `;import{gql as Dn}from"graphql-request";var Va=Dn`
2360
+ query TranscendCliGlobalActionItems(
2361
+ $first: Int!
2362
+ $offset: Int!
2363
+ $filterBy: GlobalActionItemFiltersInput!
2364
+ ) {
2365
+ globalActionItems(first: $first, offset: $offset, filterBy: $filterBy) {
2366
+ nodes {
2367
+ ids
2368
+ count
2369
+ teams {
2370
+ id
2371
+ name
2372
+ }
2373
+ customerExperienceActionItemIds
2374
+ users {
2375
+ id
2376
+ email
2377
+ }
2378
+ collections {
2379
+ title
2380
+ id
2381
+ }
2382
+ dueDate
2383
+ priority
2384
+ titles
2385
+ resolved
2386
+ notes
2387
+ links
2388
+ type
2389
+ additionalContexts {
2390
+ iconOverride
2391
+ requestId
2392
+ dataSiloId
2393
+ requestType
2394
+ latestAirgapVersion
2395
+ parentTitle
2396
+ }
2397
+ attributeValues {
2398
+ name
2399
+ attributeKey {
2400
+ name
2401
+ }
2402
+ }
2403
+ }
2404
+ }
2405
+ }
2406
+ `,Ka=Dn`
2407
+ mutation TranscendCliUpdateActionItems($input: UpdateActionItemsInput!) {
2408
+ updateActionItems(input: $input) {
2409
+ clientMutationId
2410
+ }
2411
+ }
2412
+ `,ja=Dn`
2413
+ mutation TranscendCliCreateActionItems($input: [CreateActionItemsInput!]!) {
2414
+ createActionItems(input: $input) {
2415
+ clientMutationId
2416
+ }
2417
+ }
2418
+ `;import{gql as xr}from"graphql-request";var Ya=xr`
2419
+ query TranscendCliFetchPrivacyCenterId($url: String!) {
2420
+ privacyCenter(lookup: { url: $url }) {
2421
+ id
2422
+ }
2423
+ }
2424
+ `,za=xr`
2425
+ query TranscendCliDeployedPrivacyCenterUrl {
2426
+ organization {
2427
+ deployedPrivacyCenterUrl
2428
+ }
2429
+ }
2430
+ `,Ha=xr`
2431
+ query TranscendCliFetchPrivacyCenters($url: String!) {
2432
+ privacyCenter(lookup: { url: $url }) {
2433
+ id
2434
+ url
2435
+ isDisabled
2436
+ showPrivacyRequestButton
2437
+ showPolicies
2438
+ showTrackingTechnologies
2439
+ showCookies
2440
+ showDataFlows
2441
+ showConsentManager
2442
+ showManageYourPrivacy
2443
+ showMarketingPreferences
2444
+ locales
2445
+ defaultLocale
2446
+ preferBrowserDefaultLocale
2447
+ supportEmail
2448
+ replyToEmail
2449
+ useNoReplyEmailAddress
2450
+ useCustomEmailDomain
2451
+ transformAccessReportJsonToCsv
2452
+ themeStr
2453
+ }
2454
+ }
2455
+ `,Za=xr`
2456
+ mutation TranscendCliUpdatePrivacyCenter($input: UpdatePrivacyCenterInput!) {
2457
+ updatePrivacyCenter(input: $input) {
2458
+ clientMutationId
2459
+ }
2460
+ }
2461
+ `;import{gql as qn}from"graphql-request";var vn=qn`
2462
+ mutation TranscendCliDetermineLoginMethod($email: String!) {
2463
+ determineLoginMethod(input: { email: $email }) {
2464
+ loginMethod {
2465
+ email
2466
+ sombraPublicKey
2467
+ }
2468
+ }
2469
+ }
2470
+ `,Wa=qn`
2471
+ mutation TranscendCliLogin(
2472
+ $email: String!
2473
+ $password: String!
2474
+ $publicKey: String!
2475
+ ) {
2476
+ login(
2477
+ input: { email: $email, password: $password }
2478
+ publicKey: $publicKey
2479
+ ) {
2480
+ user {
2481
+ roles {
2482
+ id
2483
+ organization {
2484
+ name
2485
+ id
2486
+ uri
2487
+ parentOrganizationId
2488
+ }
2489
+ }
2490
+ }
2491
+ }
2492
+ }
2493
+ `,Ja=qn`
2494
+ mutation TranscendCliAssumeRole($id: ID!, $publicKey: String!) {
2495
+ assumeRole(id: $id, publicKey: $publicKey) {
2496
+ clientMutationId
2497
+ }
2498
+ }
2499
+ `;import{gql as cf}from"graphql-request";var Xa=cf`
2500
+ query TranscendCliLargeLanguageModels(
2501
+ $first: Int!
2502
+ $offset: Int!
2503
+ $filterBy: LargeLanguageModelFiltersInput
2504
+ ) {
2505
+ largeLanguageModels(
2506
+ first: $first
2507
+ orderBy: [
2508
+ { field: name, direction: ASC }
2509
+ { field: client, direction: ASC }
2510
+ { field: isTranscendHosted, direction: ASC }
2511
+ ]
2512
+ offset: $offset
2513
+ filterBy: $filterBy
2514
+ ) {
2515
+ nodes {
2516
+ id
2517
+ name
2518
+ client
2519
+ isTranscendHosted
2520
+ }
2521
+ }
2522
+ }
2523
+ `;import{gql as Ln}from"graphql-request";var tp=Ln`
2524
+ query TranscendCliAgents(
2525
+ $first: Int!
2526
+ $offset: Int!
2527
+ $filterBy: AgentFiltersInput
2528
+ ) {
2529
+ agents(
2530
+ first: $first
2531
+ offset: $offset
2532
+ filterBy: $filterBy
2533
+ orderBy: [
2534
+ { field: createdAt, direction: ASC }
2535
+ { field: name, direction: ASC }
2536
+ ]
2537
+ ) {
2538
+ nodes {
2539
+ id
2540
+ name
2541
+ agentId
2542
+ instructions
2543
+ description
2544
+ codeInterpreterEnabled
2545
+ retrievalEnabled
2546
+ prompt {
2547
+ title
2548
+ }
2549
+ largeLanguageModel {
2550
+ name
2551
+ client
2552
+ }
2553
+ teams {
2554
+ name
2555
+ }
2556
+ owners {
2557
+ email
2558
+ }
2559
+ agentFunctions {
2560
+ name
2561
+ }
2562
+ agentFiles {
2563
+ name
2564
+ }
2565
+ }
2566
+ }
2567
+ }
2568
+ `,ep=Ln`
2569
+ mutation TranscendCliCreateAgent($input: CreateAgentInput!) {
2570
+ createAgent(input: $input) {
2571
+ agent {
2572
+ id
2573
+ name
2574
+ agentId
2575
+ }
2576
+ }
2577
+ }
2578
+ `,rp=Ln`
2579
+ mutation TranscendCliUpdateAgents($input: UpdateAgentsInput!) {
2580
+ updateAgents(input: $input) {
2581
+ clientMutationId
2582
+ }
2583
+ }
2584
+ `;import{gql as kn}from"graphql-request";var np=kn`
2585
+ query TranscendCliAgentFiles(
2586
+ $first: Int!
2587
+ $offset: Int!
2588
+ $filterBy: AgentFileFiltersInput
2589
+ ) {
2590
+ agentFiles(
2591
+ first: $first
2592
+ offset: $offset
2593
+ filterBy: $filterBy
2594
+ orderBy: [
2595
+ { field: createdAt, direction: ASC }
2596
+ { field: name, direction: ASC }
2597
+ ]
2598
+ ) {
2599
+ nodes {
2600
+ id
2601
+ name
2602
+ description
2603
+ fileId
2604
+ size
2605
+ purpose
2606
+ initialFileName
2607
+ }
2608
+ }
2609
+ }
2610
+ `,ip=kn`
2611
+ mutation TranscendCliCreateAgentFile($input: CreateAgentFileInput!) {
2612
+ createAgentFile(input: $input) {
2613
+ agentFile {
2614
+ id
2615
+ name
2616
+ fileId
2617
+ initialFileName
2618
+ }
2619
+ }
2620
+ }
2621
+ `,op=kn`
2622
+ mutation TranscendCliUpdateAgentFiles($input: UpdateAgentFilesInput!) {
2623
+ updateAgentFiles(input: $input) {
2624
+ clientMutationId
2625
+ }
2626
+ }
2627
+ `;import{gql as On}from"graphql-request";var sp=On`
2628
+ query TranscendCliAgentFunctions($first: Int!, $offset: Int!) {
2629
+ agentFunctions(
2630
+ first: $first
2631
+ offset: $offset
2632
+ orderBy: [
2633
+ { field: createdAt, direction: ASC }
2634
+ { field: name, direction: ASC }
2635
+ ]
2636
+ ) {
2637
+ nodes {
2638
+ id
2639
+ name
2640
+ description
2641
+ parameters
2642
+ }
2643
+ }
2644
+ }
2645
+ `,ap=On`
2646
+ mutation TranscendCliCreateAgentFunction($input: CreateAgentFunctionInput!) {
2647
+ createAgentFunction(input: $input) {
2648
+ agentFunction {
2649
+ id
2650
+ name
2651
+ }
2652
+ }
2653
+ }
2654
+ `,pp=On`
2655
+ mutation TranscendCliUpdateAgentFunctions(
2656
+ $input: UpdateAgentFunctionsInput!
2657
+ ) {
2658
+ updateAgentFunctions(input: $input) {
2659
+ clientMutationId
2660
+ }
2661
+ }
2662
+ `;import{gql as Nn}from"graphql-request";var lp=Nn`
2663
+ query TranscendCliVendors($first: Int!, $offset: Int!) {
2664
+ vendors(
2665
+ first: $first
2666
+ offset: $offset
2667
+ useMaster: false
2668
+ isExportCsv: true
2669
+ orderBy: [
2670
+ { field: createdAt, direction: ASC }
2671
+ { field: title, direction: ASC }
2672
+ ]
2673
+ ) {
2674
+ nodes {
2675
+ id
2676
+ title
2677
+ description
2678
+ dataProcessingAgreementLink
2679
+ contactName
2680
+ contactEmail
2681
+ contactPhone
2682
+ address
2683
+ headquarterCountry
2684
+ headquarterSubDivision
2685
+ websiteUrl
2686
+ businessEntity {
2687
+ title
2688
+ }
2689
+ teams {
2690
+ name
2691
+ }
2692
+ owners {
2693
+ email
2694
+ }
2695
+ attributeValues {
2696
+ attributeKey {
2697
+ name
2698
+ }
2699
+ name
2700
+ }
2701
+ }
2702
+ }
2703
+ }
2704
+ `,cp=Nn`
2705
+ mutation TranscendCliCreateVendor($input: CreateVendorInput!) {
2706
+ createVendor(input: $input) {
2707
+ vendor {
2708
+ id
2709
+ title
2710
+ }
2711
+ }
2712
+ }
2713
+ `,up=Nn`
2714
+ mutation TranscendCliUpdateVendor($input: UpdateVendorsInput!) {
2715
+ updateVendors(input: $input) {
2716
+ clientMutationId
2717
+ }
2718
+ }
2719
+ `;import{gql as _n}from"graphql-request";var mp=_n`
2720
+ query TranscendCliDataSubCategories($first: Int!, $offset: Int!) {
2721
+ dataSubCategories(
2722
+ first: $first
2723
+ offset: $offset
2724
+ isExportCsv: true
2725
+ useMaster: false
2726
+ ) {
2727
+ nodes {
2728
+ id
2729
+ name
2730
+ category
2731
+ description
2732
+ regex
2733
+ teams {
2734
+ name
2735
+ }
2736
+ owners {
2737
+ email
2738
+ }
2739
+ attributeValues {
2740
+ attributeKey {
2741
+ name
2742
+ }
2743
+ name
2744
+ }
2745
+ }
2746
+ }
2747
+ }
2748
+ `,dp=_n`
2749
+ mutation TranscendCliCreateDataSubCategory(
2750
+ $input: CreateDataInventorySubCategoryInput!
2751
+ ) {
2752
+ createDataSubCategory(input: $input) {
2753
+ dataSubCategory {
2754
+ id
2755
+ name
2756
+ category
2757
+ }
2758
+ }
2759
+ }
2760
+ `,fp=_n`
2761
+ mutation TranscendCliUpdateDataSubCategories(
2762
+ $input: UpdateDataSubCategoriesInput!
2763
+ ) {
2764
+ updateDataSubCategories(input: $input) {
2765
+ clientMutationId
2766
+ }
2767
+ }
2768
+ `;import{gql as Gn}from"graphql-request";var gp=Gn`
2769
+ query TranscendCliProcessingPurposeSubCategories(
2770
+ $first: Int!
2771
+ $offset: Int!
2772
+ ) {
2773
+ processingPurposeSubCategories(
2774
+ first: $first
2775
+ offset: $offset
2776
+ isExportCsv: true
2777
+ useMaster: false
2778
+ ) {
2779
+ nodes {
2780
+ id
2781
+ name
2782
+ purpose
2783
+ description
2784
+ teams {
2785
+ name
2786
+ }
2787
+ owners {
2788
+ email
2789
+ }
2790
+ attributeValues {
2791
+ attributeKey {
2792
+ name
2793
+ }
2794
+ name
2795
+ }
2796
+ }
2797
+ }
2798
+ }
2799
+ `,yp=Gn`
2800
+ mutation TranscendCliCreateProcessingPurposeSubCategory(
2801
+ $input: CreateProcessingPurposeCategoryInput!
2802
+ ) {
2803
+ createProcessingPurposeSubCategory(input: $input) {
2804
+ processingPurposeSubCategory {
2805
+ id
2806
+ name
2807
+ purpose
2808
+ }
2809
+ }
2810
+ }
2811
+ `,hp=Gn`
2812
+ mutation TranscendCliUpdateProcessingPurposeSubCategories(
2813
+ $input: UpdateProcessingPurposeSubCategoriesInput!
2814
+ ) {
2815
+ updateProcessingPurposeSubCategories(input: $input) {
2816
+ clientMutationId
2817
+ }
2818
+ }
2819
+ `;import{gql as uf}from"graphql-request";var Cp=uf`
2820
+ query TranscendSombraVersion {
2821
+ organization {
2822
+ sombra {
2823
+ version
2824
+ }
2825
+ }
2826
+ }
2827
+ `;import gf from"lodash/keyBy";import yf from"lodash/uniq";import Ap from"lodash/flatten";import hf from"lodash/difference";import Mn from"colors";import{mapSeries as Cf}from"bluebird";import Ip from"colors";var mf=4;function df(r){return new Promise(t=>{setTimeout(()=>t(r),r)})}var ff=["syntax error","got invalid value","Client error","cannot affect row a second time","GRAPHQL_VALIDATION_FAILED"];async function m(r,t,n,o,i=mf){let a=0;for(;;)try{return await r.request(t,n,o)}catch(s){if(ff.some(l=>s.message.includes(l)))throw s;if(s.message.startsWith("Client error: Too many requests")){let l=s.response.headers?.get("x-ratelimit-reset"),u=l?new Date(l).getTime()-new Date().getTime()+100:1e3*10;p.log(Ip.yellow(`DETECTED RATE LIMIT: ${s.message}. Sleeping for ${u}ms`)),await df(u)}if(a>=i)throw s;a+=1,p.log(Ip.yellow(`REQUEST FAILED: ${s.message}. Retrying ${a}/${i}...`))}}var Fn=20;async function Un(r){let t=[],n=0,o=!1;do{let{identifiers:{nodes:i}}=await m(r,Fo,{first:Fn,offset:n});t.push(...i),n+=Fn,o=i.length===Fn}while(o);return t.sort((i,a)=>i.name.localeCompare(a.name))}async function Tp({enrichers:r=[],"data-silos":t=[],identifiers:n=[]},o,i=!1){let a=await Un(o),s=gf(a,"name"),l=yf([...Ap(r.map(c=>[c["input-identifier"],...c["output-identifiers"]])),...Ap(t.map(c=>c["identity-keys"])),...n.map(({name:c})=>c)]).filter(c=>!!c),u=hf(l,a.map(({name:c})=>c));if(u.length>0){p.info(Mn.magenta(`Creating ${u.length} new identifiers...`));let{newIdentifierTypes:c}=await m(o,Uo),f=c.map(({name:d})=>d);await Cf(u,async d=>{p.info(Mn.magenta(`Creating identifier ${d}...`));let{createIdentifier:g}=await m(o,Bo,{input:{name:d,type:f.includes(d)?d:"custom",skipPublish:i}});p.info(Mn.green(`Created identifier ${d}!`)),s[d]=g.identifier})}return s}async function Sp(r,{identifier:t,dataSubjectsByName:n,identifierId:o,skipPublish:i=!1}){await m(r,Qo,{input:{id:o,selectOptions:t.selectOptions,isRequiredInForm:t.isRequiredInForm,regex:t.regex,placeholder:t.placeholder,displayTitle:t.displayTitle,displayDescription:t.displayDescription,displayOrder:t.displayOrder,privacyCenterVisibility:t.privacyCenterVisibility,dataSubjectIds:t.dataSubjects?t.dataSubjects.map(a=>n[a].id):void 0,skipPublish:i}})}import{EnricherType as Pp,RequestAction as If}from"@transcend-io/privacy-types";var Bn=20;async function Qn(r,t){let n=[],o=0,i=!1;do{let{enrichers:{nodes:a}}=await m(r,Oo,{first:Bn,offset:o,title:t});n.push(...a),o+=Bn,i=a.length===Bn}while(i);return n.sort((a,s)=>a.title.localeCompare(s.title))}async function Ep(r,{enricher:t,identifierByName:n,dataSubjectsByName:o}){let a=(await Qn(r,t.title)).find(({title:c})=>c===t.title),s=t["data-subjects"]?.map(c=>{let f=o[c];if(!f)throw new Error(`Failed to find a data subject with name: ${c}`);return f.id}),l=t["input-identifier"],u=t["privacy-actions"]||Object.values(If);a?await m(r,Go,{input:{id:a.id,title:t.title,url:t.url,headers:t.headers,testRegex:t.testRegex,lookerQueryTitle:t.lookerQueryTitle,expirationDuration:typeof t.expirationDuration=="number"?t.expirationDuration.toString():void 0,transitionRequestStatus:t.transitionRequestStatus,phoneNumbers:t.phoneNumbers,regionList:t.regionList,dataSubjectIds:s,description:t.description||"",inputIdentifier:l?n[l].id:void 0,identifiers:t["output-identifiers"].map(c=>n[c].id),...a.type===Pp.Sombra?{}:{actions:u}}}):l&&await m(r,_o,{input:{title:t.title,url:t.url,type:t.type||Pp.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:s,regionList:t.regionList,description:t.description||"",inputIdentifier:n[l].id,identifiers:t["output-identifiers"].map(c=>n[c].id),actions:u}})}import Vn from"colors";import Af from"lodash/keyBy";import Tf from"lodash/difference";import Sf from"lodash/groupBy";import{map as Pf}from"bluebird";async function Rp(r,t,{existingAttribute:n,deleteExtraAttributeValues:o}){let i={name:t.name,enabledOn:t.resources},a;if(n)await m(r,ca,{attributeKeyId:n.id,description:n.isCustom?t.description:void 0,...i}),a=n.id;else{let{createAttributeKey:{attributeKey:f}}=await m(r,la,{type:t.type,description:t.description,...i});a=f.id}let s=Af(n?.values||[],"name"),{existingValues:l=[],newValues:u=[]}=Sf(t.values||[],f=>s[f.name]?"existingValues":"newValues"),c=Tf((n?.values||[]).map(({name:f})=>f),(t.values||[]).map(({name:f})=>f));u.length>0&&(await m(r,oa,{input:u.map(({name:f,...d})=>({name:f,attributeKeyId:a,...d}))}),p.info(Vn.green(`Created ${u.length} attribute values`))),l.length>0&&(await m(r,sa,{input:l.map(({name:f,...d})=>({id:s[f].id,name:f,description:s[f].description,color:s[f].color,...d,attributeKeyId:a}))}),p.info(Vn.green(`Updated ${l.length} attribute values`))),c.length>0&&o&&(await Pf(c,async f=>{await m(r,aa,{id:s[f].id})},{concurrency:10}),p.info(Vn.green(`Deleted ${c.length} attribute values`)))}import Dp from"cli-progress";import W from"colors";import{mapSeries as nr,map as qp}from"bluebird";import Ef from"lodash/keyBy";import bp from"lodash/flatten";import Rf from"lodash/uniq";import bf from"lodash/difference";import Kn from"colors";import{mapSeries as wf}from"bluebird";async function rr(r){let{internalSubjects:t}=await m(r,Er);return t}async function wp({"data-silos":r=[],"data-subjects":t=[],enrichers:n=[]},o,i=!1){let a=Rf([...bp(r.map(c=>c["data-subjects"]||[])||[]),...bp(n.map(c=>c["data-subjects"]||[])||[]),...t.map(c=>c.type)]);if(a.length===0&&!i)return{};let s=await rr(o),l=Ef(s,"type"),u=bf(a,s.map(({type:c})=>c));return u.length>0&&(p.info(Kn.magenta(`Creating ${u.length} new data subjects...`)),await wf(u,async c=>{p.info(Kn.magenta(`Creating data subject ${c}...`));let{createSubject:f}=await m(o,Vo,{type:c,skipPublish:!0});p.info(Kn.green(`Created data subject ${c}!`)),l[c]=f.subject})),l}function xp(r,t){return r.forEach(n=>{if(!t[n])throw new Error(`Expected to find data subject definition: ${n}`)}),Object.values(t).filter(n=>!r.includes(n.type)).map(({id:n})=>n)}function $p(r,t){return r.forEach(n=>{if(!t[n])throw new Error(`Expected to find data subject definition: ${n}`)}),Object.values(t).filter(n=>!r.includes(n.type)).map(({type:n})=>n)}import xf from"lodash/sortBy";import jn from"lodash/chunk";import{apply as $f}from"@transcend-io/type-utils";import Df from"lodash/keyBy";var Yn=20;async function vp(r,{titles:t,pageSize:n,ids:o=[],gql:i=qo,integrationNames:a=[]}){p.info(W.magenta(`Fetching ${o.length===0?"all":o.length} Data Silos...`));let s=[],l=0,u=!1;do{let{dataSilos:{nodes:c}}=await m(r,i,{filterBy:{ids:o.length>0?o:void 0,type:a.length>0?a:void 0,titles:t},first:n,offset:l});s.push(...c),l+=n,u=c.length===n}while(u);return p.info(W.green(`Found a total of ${s.length} data silo${o.length>0?` matching IDs ${o.join(",")}`:""}s${a.length>0?` matching integrationNames ${a.join(",")}`:""}`)),s.sort((c,f)=>c.title.localeCompare(f.title))}async function qf(r,t,{debug:n,includeGuessedCategories:o,pageSize:i}){let a=[],s=0,l=!1;do try{n&&p.log(W.magenta(`Pulling in subdatapoints for offset ${s}`));let{subDataPoints:{nodes:u}}=await m(r,o?wo:Ro,{first:i,filterBy:{dataPoints:[t]},offset:s});a.push(...u),s+=i,l=u.length===i,n&&p.log(W.green(`Pulled in subdatapoints for offset ${s} for dataPointId=${t}`))}catch(u){throw p.error(W.red(`An error fetching subdatapoints for offset ${s} for dataPointId=${t}`)),u}while(l);return xf(a,"name")}async function vf(r,t,{debug:n,pageSize:o,skipSubDatapoints:i,includeGuessedCategories:a}){let s=[],l=0,u=!1;do{n&&p.info(W.magenta(`Fetching datapoints with offset: ${l}`));let{dataPoints:{nodes:c}}=await m(r,Eo,{first:o,filterBy:{dataSilos:[t]},offset:l});n&&p.info(W.magenta(`Fetched ${c.length} datapoints at offset: ${l}`)),i||(await qp(c,async f=>{try{n&&p.info(W.magenta(`Fetching subdatapoints for ${f.name} for datapoint offset ${l}`));let d=await qf(r,f.id,{pageSize:1e3,debug:n,includeGuessedCategories:a});s.push({...f,subDataPoints:d.sort((g,h)=>g.name.localeCompare(h.name))}),n&&p.info(W.green(`Successfully fetched subdatapoints for ${f.name}`))}catch(d){throw p.error(W.red(`An error fetching subdatapoints for ${f.name} datapoint offset ${l}`)),d}},{concurrency:5}),n&&p.info(W.green(`Fetched all subdatapoints for page of datapoints at offset: ${l}`))),l+=o,u=c.length===o}while(u);return s.sort((c,f)=>c.name.localeCompare(f.name))}async function Lp(r,{ids:t,pageSize:n,titles:o,debug:i,skipDatapoints:a,skipSubDatapoints:s,includeGuessedCategories:l,integrationNames:u}){let c=[],f=await vp(r,{titles:o,ids:t,integrationNames:u,pageSize:n,gql:Lo});return a||await nr(f,async(d,g)=>{p.info(W.magenta(`[${g+1}/${f.length}] Fetching data silo - ${d.title}`));let h=await vf(r,d.id,{debug:i,pageSize:n,skipSubDatapoints:s,includeGuessedCategories:l});i&&p.info(W.green(`[${g+1}/${f.length}] Successfully fetched datapoint for - ${d.title}`)),c.push([d,h])}),p.info(W.green(`Successfully fetched all ${f.length} data silo configurations`)),c}async function kp(r,t,{pageSize:n,dataSubjectsByName:o,apiKeysByTitle:i}){let a=!1,s=new Date().getTime();p.info(W.magenta(`Syncing "${r.length}" data silos...`));let l=await vp(t,{titles:r.map(({title:T})=>T),pageSize:n}),u=Df(l,"title"),c=r.filter(({title:T})=>!u[T]);if(c.length>0){p.info(W.magenta(`Creating "${c.length}" data silos that did not exist...`));let T=jn(c,Yn);await nr(T,async R=>{let{createDataSilos:{dataSilos:I}}=await m(t,ko,{input:R.map(w=>({name:w["outer-type"]||w.integrationName,title:w.title,country:w.country,countrySubDivision:w.countrySubDivision}))});I.forEach(w=>{u[w.title]=w})}),p.info(W.green(`Successfully created "${c.length}" data silos!`))}let f=jn(r,Yn);await nr(f,async(T,R)=>{p.info(W.magenta(`[Batch ${R+1}/${f.length}] Syncing "${T.length}" data silos`)),await m(t,An,{input:{dataSilos:T.map(I=>({id:u[I.title].id,country:I.country,countrySubDivision:I.countrySubDivision,url:I.url,headers:I.headers,description:I.description,identifiers:I["identity-keys"],isLive:!I.disabled,ownerEmails:I.owners,teamNames:I.teams,dependedOnDataSiloTitles:I["deletion-dependencies"]?void 0:[],apiKeyId:I["api-key-title"]?i[I["api-key-title"]].id:void 0,dataSubjectBlockListIds:I["data-subjects"]?xp(I["data-subjects"],o):void 0,attributes:I.attributes,businessEntityTitles:I.businessEntityTitles,notifyEmailAddress:I["email-settings"]?.["notify-email-address"],promptAVendorEmailSendFrequency:I["email-settings"]?.["send-frequency"],promptAVendorEmailSendType:I["email-settings"]?.["send-type"],promptAVendorEmailIncludeIdentifiersAttachment:I["email-settings"]?.["include-identifiers-attachment"],promptAVendorEmailCompletionLinkType:I["email-settings"]?.["completion-link-type"],manualWorkRetryFrequency:I["email-settings"]?.["manual-work-retry-frequency"]}))}}),p.info(W.green(`[Batch ${R+1}/${f.length}] Synced "${T.length}" data silos!`))});let d=new Dp.SingleBar({},Dp.Presets.shades_classic),g=r.filter(({datapoints:T=[]})=>T.length>0),h=r.map(({datapoints:T=[]})=>T.length).reduce((T,R)=>T+R,0);p.info(W.magenta(`Syncing "${h}" datapoints from "${g.length}" data silos...`)),d.start(h,0);let y=0;await qp(g,async({datapoints:T,title:R})=>{T&&await nr(T,async I=>{let w=I.fields?I.fields.map(({key:Y,description:nt,categories:lt,purposes:X,attributes:gt,...yt})=>({name:Y,description:nt,categories:lt?lt.map(at=>({...at,name:at.name||"Other"})):void 0,purposes:X?X.map(at=>({...at,name:at.name||"Other"})):void 0,attributes:gt,accessRequestVisibilityEnabled:yt["access-request-visibility-enabled"],erasureRequestRedactionEnabled:yt["erasure-request-redaction-enabled"]})):void 0,N={dataSiloId:u[R].id,path:I.path,name:I.key,title:I.title,description:I.description,...I.owners?{ownerEmails:I.owners}:{},...I.teams?{teamNames:I.teams}:{},...I["data-collection-tag"]?{dataCollectionTag:I["data-collection-tag"]}:{},querySuggestions:I["privacy-action-queries"]?Object.entries(I["privacy-action-queries"]).map(([Y,nt])=>({requestType:Y,suggestedQuery:nt})):void 0,enabledActions:I["privacy-actions"]||[],subDataPoints:w},dt=(N.subDataPoints||[]).map(({name:Y})=>Y),J=dt.filter((Y,nt)=>dt.indexOf(Y)!==nt);if(J.length>0)p.info(W.red(`
2828
+ Cannot update datapoint "${I.key}" as it has duplicate sub-datapoints with the same name:
2829
+ ${J.join(`
2830
+ `)}`)),a=!0;else try{await m(t,xo,N)}catch(Y){p.info(W.red(`
2831
+ Failed to update datapoint "${I.key}" for data silo "${R}"! -
2832
+ ${Y.message}`)),a=!0}y+=1,d.update(y)})},{concurrency:10}),d.stop();let P=new Date().getTime()-s;return p.info(W.green(`Synced "${r.length}" data silos and "${h}" datapoints in "${P/1e3}" seconds!`)),{success:!a,dataSiloTitleToId:$f(u,({id:T})=>T)}}async function Op(r,t){let n=!1;p.info(W.magenta(`Syncing "${t.length}" data silo dependencies...`));let o=jn(t,Yn);return await nr(o,async(i,a)=>{p.info(W.magenta(`[Batch ${a}/${i.length}] Updating "${i.length}" data silos...`));try{await m(r,An,{input:{dataSilos:i.map(([s,l])=>({id:s,dependedOnDataSiloTitles:l}))}}),p.info(W.green(`[Batch ${a+1}/${i.length}] Synced "${i.length}" data silos!`))}catch(s){n=!0,p.info(W.red(`[Batch ${a+1}/${i.length}] Failed to update "${i.length}" silos! - ${s.message}`))}}),!n}import vr from"colors";import kf from"lodash/chunk";async function $r(r){let{consentManager:{consentManager:t}}=await m(r,Aa);return t}async function ht(r,t){let{consentManager:{consentManager:n}}=await m(r,Ia,{},{},t);return n.id}var zn=50;async function Dr(r){let t=[],n=0,o=!1;do{let{experiences:{nodes:i}}=await m(r,ma,{first:zn,offset:n});t.push(...i),n+=zn,o=i.length===zn}while(o);return t.sort((i,a)=>i.name.localeCompare(a.name))}var Lf=(n=>(n.Hourly="1h",n.Daily="1d",n))(Lf||{});async function qr(r,t){let{analyticsData:{series:n}}=await m(r,_a,{input:t});return n}async function Np(r,t){let{consentManagerTheme:{theme:n}}=await m(r,Ta,{airgapBundleId:t});return n}import{mapSeries as Of}from"bluebird";var Nf=100;async function _f(r,t){let n=await ht(r);await Of(kf(t,Nf),async o=>{await m(r,ya,{airgapBundleId:n,cookies:o.map(i=>({name:i.name,trackingPurposes:i.trackingPurposes&&i.trackingPurposes.length>0?i.trackingPurposes:void 0,description:i.description,service:i.service,status:i.status,attributes:i.attributes,isRegex:i.isRegex}))})})}async function Lr(r,t){let n=!1;p.info(vr.magenta(`Syncing "${t.length}" cookies...`));let o=t.filter(i=>t.filter(a=>i.name===a.name&&i.isRegex===a.isRegex).length>1);if(o.length>0)throw new Error(`Failed to upload cookies as there were non-unique entries found: ${o.map(({name:i})=>i).join(",")}`);try{p.info(vr.magenta(`Upserting "${t.length}" new cookies...`)),await _f(r,t),p.info(vr.green(`Successfully synced ${t.length} cookies!`))}catch(i){n=!0,p.info(vr.red(`Failed to create cookies! - ${i.message}`))}return!n}import{mapSeries as _p}from"bluebird";import Gf from"lodash/keyBy";import ir from"colors";var Hn=20;async function kr(r){let t=[],n=0,o=!1;do{let{teams:{nodes:i}}=await m(r,Vs,{first:Hn,offset:n});t.push(...i),n+=Hn,o=i.length===Hn}while(o);return t.sort((i,a)=>i.name.localeCompare(a.name))}async function Mf(r,t){let 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},{createTeam:o}=await m(r,Ks,{input:n});return o.team}async function Ff(r,t,n){let{updateTeam:o}=await m(r,js,{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 o.team}async function Gp(r,t){p.info(ir.magenta(`Syncing "${t.length}" teams...`));let n=!1,o=await kr(r),i=Gf(o,"name"),a=t.filter(l=>!i[l.name]),s=t.filter(l=>!!i[l.name]);return await _p(a,async l=>{try{let u=await Mf(r,l);i[u.name]=u,p.info(ir.green(`Successfully created team "${l.name}"!`))}catch(u){n=!0,p.info(ir.red(`Failed to sync team "${l.name}"! - ${u.message}`))}}),await _p(s,async l=>{try{let u=await Ff(r,l,i[l.name].id);i[u.name]=u,p.info(ir.green(`Successfully updated team "${l.name}"!`))}catch(u){n=!0,p.info(ir.red(`Failed to sync team "${l.name}"! - ${u.message}`))}}),!n}async function Mp(r,{dataSubject:t,dataSubjectId:n,skipPublish:o=!1}){await m(r,Ko,{input:{id:n,title:t.title,adminDashboardDefaultSilentMode:t.adminDashboardDefaultSilentMode,actions:t.actions,skipPublish:o&&typeof t.active>"u"}}),typeof t.active=="boolean"&&await m(r,jo,{input:{id:n,active:t.active,skipPublish:o}})}import Uf from"lodash/keyBy";import Bf from"lodash/uniq";import Qf from"lodash/difference";import Fp from"colors";var Zn=20,Vf="https://app.transcend.io/infrastructure/api-keys";async function Wn(r,t){let n=[],o=0,i=!1;do{let{apiKeys:{nodes:a}}=await m(r,Zo,{first:Zn,offset:o,titles:t});n.push(...a),o+=Zn,i=a.length===Zn}while(i);return n.sort((a,s)=>a.title.localeCompare(s.title))}async function Or({"api-keys":r=[],"data-silos":t=[]},n,o=!1){p.info(Fp.magenta(`Fetching ${o?"all":r.length} API keys...`));let i=r.map(({title:f})=>f),a=Bf(t.map(f=>f["api-key-title"]).filter(f=>!!f)),s=[...a,...i],l=await Wn(n,o?void 0:[...a,...i]),u=Uf(l,"title"),c=Qf(s,l.map(({title:f})=>f));return c.length>0&&(p.info(Fp.red(`Failed to find API keys "${c.join('", "')}"! Make sure these API keys are created at: ${Vf}`)),process.exit(1)),u}import Vt from"colors";import{map as Kf}from"bluebird";var Jn=20;async function be(r,{text:t,titles:n=[],ids:o=[]}={}){let i=[],a=0,s=!1;do{let{prompts:{nodes:l}}=await m(r,qs,{first:Jn,offset:a,filterBy:{...t?{text:t}:{},...n.length>0?{title:n}:{},...o.length>0?{id:o}:{}}});i.push(...l),a+=Jn,s=l.length===Jn}while(s);return i.sort((l,u)=>l.title.localeCompare(u.title))}async function Up(r,{promptTitles:t=[],promptIds:n=[]}={}){let{promptsWithVariables:o}=await m(r,ks,{input:{...t.length>0?{promptTitles:t}:{},...n.length>0?{promptIds:n}:{}}});return o}import jf from"lodash/keyBy";async function Yf(r,t){let{createPrompt:{prompt:n}}=await m(r,Ns,{input:t});return p.info(Vt.green(`Successfully created prompt "${t.title}"!`)),n.id}async function zf(r,t){await m(r,Os,{input:{prompts:t.map(([n,o])=>({...n,id:o}))}}),p.info(Vt.green(`Successfully updated ${t.length} prompts!`))}async function Bp(r,t,n=20){let o=!1;p.info(Vt.magenta(`Syncing "${t.length}" prompts...`));let i=await be(r),a=jf(i,"title"),s=t.map(c=>[c,a[c.title]?.id]),l=s.filter(([,c])=>!c).map(([c])=>c);try{p.info(Vt.magenta(`Creating "${l.length}" new prompts...`)),await Kf(l,async c=>{await Yf(r,c)},{concurrency:n}),p.info(Vt.green(`Successfully synced ${l.length} prompts!`))}catch(c){o=!0,p.info(Vt.red(`Failed to create prompts! - ${c.message}`))}let u=s.filter(c=>!!c[1]);try{p.info(Vt.magenta(`Updating "${u.length}" prompts...`)),await zf(r,u),p.info(Vt.green(`Successfully updated "${u.length}" prompts!`))}catch(c){o=!0,p.info(Vt.red(`Failed to create prompts! - ${c.message}`))}return p.info(Vt.green(`Synced "${t.length}" prompts!`)),!o}import _r from"colors";import Hf from"lodash/chunk";import{mapSeries as Zf}from"bluebird";async function or(r){let{organization:t}=await m(r,za);return t.deployedPrivacyCenterUrl}async function we(r,t){let n=t;n||(n=await or(r));let{privacyCenter:o}=await m(r,Ya,{url:n});return o.id}async function Nr(r){let t=await or(r),{privacyCenterPolicies:n}=await m(r,gs,{url:t});return n.sort((o,i)=>o.title.defaultMessage.localeCompare(i.title.defaultMessage))}import{keyBy as Wf}from"lodash";var Jf=100;async function Xf(r,t){let n=await we(r);await Zf(Hf(t,Jf),async o=>{await m(r,ys,{privacyCenterId:n,policies:o.map(([i,a])=>({id:a,title:i.title,disableEffectiveOn:i.disableEffectiveOn,disabledLocales:i.disabledLocales,...i.effectiveOn||i.content?{version:{...i.effectiveOn?{effectiveOn:i.effectiveOn}:{},...i.content?{content:{defaultMessage:i.content}}:{}}}:{}}))})})}async function Qp(r,t){let n=!1;p.info(_r.magenta(`Syncing "${t.length}" policies...`));let o=t.filter(s=>t.filter(l=>s.title===l.title).length>1);if(o.length>0)throw new Error(`Failed to upload policies as there were non-unique entries found: ${o.map(({title:s})=>s).join(",")}`);let i=await Nr(r),a=Wf(i,({title:s})=>s.defaultMessage);try{p.info(_r.magenta(`Upserting "${t.length}" new policies...`)),await Xf(r,t.map(s=>[s,a[s.title]?.id])),p.info(_r.green(`Successfully synced ${t.length} policies!`))}catch(s){n=!0,p.info(_r.red(`Failed to create policies! - ${s.message}`))}return!n}import Gr from"colors";import tg from"lodash/chunk";import{mapSeries as eg}from"bluebird";var rg=100;async function ng(r,t){await eg(tg(t,rg),async n=>{await m(r,Ss,{messages:n.map(o=>({...o.id.includes(".")?{}:{id:o.id},defaultMessage:o.defaultMessage,targetReactIntlId:o.targetReactIntlId,translations:o.translations?Object.entries(o.translations).map(([i,a])=>({locale:i,value:a})):void 0}))})})}async function Vp(r,t){let n=!1;p.info(Gr.magenta(`Syncing "${t.length}" messages...`));let o=t.filter(i=>t.filter(a=>i.id===a.id).length>1);if(o.length>0)throw new Error(`Failed to upload messages as there were non-unique entries found: ${o.map(({id:i})=>i).join(",")}`);try{p.info(Gr.magenta(`Upserting "${t.length}" new messages...`)),await ng(r,t),p.info(Gr.green(`Successfully synced ${t.length} messages!`))}catch(i){n=!0,p.info(Gr.red(`Failed to create messages! - ${i.message}`))}return!n}import Xn from"colors";async function Kp(r,t){let n=!1;p.info(Xn.magenta("Syncing privacy center..."));let o=await we(r);try{await m(r,Za,{input:{privacyCenterId:o,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}:{}}}),p.info(Xn.green("Successfully synced privacy center!"))}catch(i){n=!0,p.info(Xn.red(`Failed to create privacy center! - ${i.message}`))}return!n}import zp from"colors";import Hp from"lodash/keyBy";import{map as sg}from"bluebird";import{InitialViewState as ag,OnConsentExpiry as pg}from"@transcend-io/airgap.js-types";import jp from"colors";import{mapSeries as ig}from"bluebird";import og from"lodash/difference";var ti=50;async function sr(r){let t=[],n=0,o=!1;do{let{consentPartitions:{nodes:i}}=await m(r,da,{first:ti,offset:n});t.push(...i),n+=ti,o=i.length===ti}while(o);return t.sort((i,a)=>i.name.localeCompare(a.name))}async function Yp(r,t){let n=await ht(r),o=!1,i=await sr(r),a=og(t.map(({name:s})=>s),i.map(({name:s})=>s));return await ig(a,async s=>{try{await m(r,Na,{input:{id:n,name:s}}),p.info(jp.green(`Successfully created consent partition: ${s}!`))}catch(l){p.error(jp.red(`Failed to create consent partition: ${s}! - ${l.message}`)),o=!0}}),!o}var ei=20;async function Mr(r,{includeDeleted:t=!1}={}){let n=[],o=0,i=!1;do{let{purposes:{nodes:a}}=await m(r,xs,{first:ei,offset:o,input:{includeDeleted:t}});n.push(...a),o+=ei,i=a.length===ei}while(i);return n.sort((a,s)=>a.trackingType.localeCompare(s.trackingType))}var Zp="https://app.transcend.io/consent-manager/regional-experiences/purposes";async function lg(r,t){let n=await Dr(r),o=Hp(n,"name"),i=await Mr(r),a=Hp(i,"trackingType");await sg(t,async(s,l)=>{let u=s.purposes?.map((d,g)=>{let h=a[d.trackingType];if(!h)throw new Error(`Invalid purpose trackingType provided at consentManager.experiences[${l}].purposes[${g}]: ${d.trackingType}. See list of valid purposes ${Zp}`);return h.id}),c=s.optedOutPurposes?.map((d,g)=>{let h=a[d.trackingType];if(!h)throw new Error(`Invalid purpose trackingType provided at consentManager.experiences[${l}].optedOutPurposes[${g}]: ${d.trackingType}. See list of valid purposes ${Zp}`);return h.id}),f=o[s.name];f?(await m(r,ka,{input:{id:f.id,name:s.displayName,regions:s.regions,operator:s.operator,onConsentExpiry:s.onConsentExpiry,consentExpiry:s.consentExpiry,displayPriority:s.displayPriority!==f.displayPriority?s.displayPriority:void 0,viewState:s.viewState,purposes:u,optedOutPurposes:c,browserLanguages:s.browserLanguages,browserTimeZones:s.browserTimeZones}}),p.info(zp.green(`Successfully synced consent experience "${s.name}"!`))):(await m(r,Oa,{input:{name:s.name,displayName:s.displayName,regions:s.regions,operator:s.operator,onConsentExpiry:s.onConsentExpiry||pg.Prompt,consentExpiry:s.consentExpiry,displayPriority:s.displayPriority,viewState:s.viewState||ag.Hidden,purposes:u||[],optedOutPurposes:c||[],browserLanguages:s.browserLanguages,browserTimeZones:s.browserTimeZones}}),p.info(zp.green(`Successfully created consent experience "${s.name}"!`)))},{concurrency:10})}async function Wp(r,t){let n;try{n=await ht(r,1)}catch(o){if(o.message.includes("AirgapBundle not found")){let i=await we(r),{createConsentManager:a}=await m(r,Sa,{domains:t.domains,privacyCenterId:i});n=a.consentManager.id}else throw o}if(t.domains&&await m(r,ba,{domains:t.domains,airgapBundleId:n}),t.partition){let i=(await sr(r)).find(a=>a.name===t.partition);if(!i)throw new Error(`Partition "${t.partition}" not found. Please create the partition first.`);await m(r,wa,{partitionId:i.id,airgapBundleId:n})}t.version&&await m(r,Pa,{airgapBundleId:n,version:t.version}),(t.uspapi||t.signedIabAgreement)&&await m(r,xa,{input:{id:n,...t.uspapi?{uspapi:t.uspapi}:{},...t.signedIabAgreement?{signedIabAgreement:t.signedIabAgreement}:{}}}),t.unknownRequestPolicy&&await m(r,$a,{input:{id:n,unknownRequestPolicy:t.unknownRequestPolicy}}),t.unknownRequestPolicy&&await m(r,Da,{input:{id:n,unknownCookiePolicy:t.unknownCookiePolicy}}),t.telemetryPartitioning&&await m(r,qa,{input:{id:n,strategy:t.telemetryPartitioning}}),t.consentPrecedence&&await m(r,va,{input:{id:n,consentPrecedence:t.consentPrecedence}}),t.experiences&&await lg(r,t.experiences),t.theme&&await m(r,La,{input:{airgapBundleId:n,...t.theme}})}import Xp from"colors";import{AttributeKeyType as Jp}from"@transcend-io/privacy-types";var xe=100;async function cg(r,t){p.info(Xp.magenta(`Fetching all attribute values for ${t}...`));let n=[],o=0,i=!1;do{let{attributeValues:{nodes:a}}=await m(r,pa,{first:xe,offset:o,attributeKeyId:t});n.push(...a),o+=xe,i=a.length===xe}while(i);return n.sort((a,s)=>a.name.localeCompare(s.name))}var ug=[Jp.MultiSelect,Jp.SingleSelect];async function $e(r){p.info(Xp.magenta("Fetching all attributes..."));let t=[],n=0,o=!1;do{let{attributeKeys:{nodes:i}}=await m(r,ia,{first:xe,offset:n});t.push(...await Promise.all(i.map(async a=>({...a,values:ug.includes(a.type)?await cg(r,a.id):[]})))),n+=xe,o=i.length===xe}while(o);return t.sort((i,a)=>i.name.localeCompare(a.name))}import{mapSeries as tl}from"bluebird";import mg from"lodash/keyBy";var ri=20;async function Fr(r){let t=[],n=0,o=!1;do{let{businessEntities:{nodes:i}}=await m(r,Ga,{first:ri,offset:n});t.push(...i),n+=ri,o=i.length===ri}while(o);return t.sort((i,a)=>i.title.localeCompare(a.title))}import De from"colors";import dg from"lodash/chunk";async function fg(r,t){let n={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},{createBusinessEntity:o}=await m(r,Ma,{input:n});return o.businessEntity}async function gg(r,t){let n=dg(t,100);await tl(n,async o=>{await m(r,Fa,{input:o.map(([i,a])=>({id:a,title:i.title,description:i.description,address:i.address,headquarterCountry:i.headquarterCountry,headquarterSubDivision:i.headquarterSubDivision,dataProtectionOfficerName:i.dataProtectionOfficerName,dataProtectionOfficerEmail:i.dataProtectionOfficerEmail,attributes:i.attributes,teamNames:i.teams,ownerEmails:i.owners}))})})}async function el(r,t){p.info(De.magenta(`Syncing "${t.length}" business entities...`));let n=!1,o=await Fr(r),i=mg(o,"title"),a=t.filter(s=>!i[s.title]);await tl(a,async s=>{try{let l=await fg(r,s);i[l.title]=l,p.info(De.green(`Successfully synced business entity "${s.title}"!`))}catch(l){n=!0,p.info(De.red(`Failed to sync business entity "${s.title}"! - ${l.message}`))}});try{p.info(De.magenta(`Updating "${t.length}" business entities!`)),await gg(r,t.map(s=>[s,i[s.title].id])),p.info(De.green(`Successfully synced "${t.length}" business entities!`))}catch(s){n=!0,p.info(De.red(`Failed to sync "${t.length}" business entities ! - ${s.message}`))}return!n}import il from"lodash/chunk";import{mapSeries as ol}from"bluebird";import Jt from"colors";import{ConsentTrackerStatus as rl}from"@transcend-io/privacy-types";var ni=20;async function qe(r,t=rl.Live){let n=[],o=0,i=await ht(r),a=!1;do{let{dataFlows:{nodes:s}}=await m(r,ha,{first:ni,offset:o,airgapBundleId:i,status:t,...t===rl.NeedsReview?{showZeroActivity:!0}:{}});n.push(...s),o+=ni,a=s.length===ni}while(a);return n.sort((s,l)=>s.value.localeCompare(l.value))}import{ConsentTrackerStatus as nl}from"@transcend-io/privacy-types";var sl=100;async function yg(r,t,n=!1){let o=await ht(r);await ol(il(t,sl),async i=>{await m(r,ga,{airgapBundleId:o,dataFlows:i.map(([a,s])=>({id:s,value:a.value,type:a.type,trackingType:a.trackingPurposes&&a.trackingPurposes.length>0?a.trackingPurposes:void 0,description:a.description,service:a.service,status:a.status,attributes:a.attributes})),classifyService:n})})}async function hg(r,t,n=!1){let o=await ht(r);await ol(il(t,sl),async i=>{await m(r,fa,{airgapBundleId:o,dataFlows:i.map(a=>({value:a.value,type:a.type,trackingType:a.trackingPurposes&&a.trackingPurposes.length>0?a.trackingPurposes:void 0,description:a.description,service:a.service,status:a.status,attributes:a.attributes})),dropMatchingDataFlowsInTriage:!0,classifyService:n})})}async function Ur(r,t,n){let o=!1;p.info(Jt.magenta(`Syncing "${t.length}" data flows...`));let i=t.filter(d=>t.filter(g=>d.value===g.value&&d.type===g.type).length>1);if(i.length>0)throw new Error(`Failed to upload data flows as there were non-unique entries found: ${i.map(({value:d})=>d).join(",")}`);p.info(Jt.magenta("Fetching data flows..."));let[a,s]=await Promise.all([qe(r,nl.Live),qe(r,nl.NeedsReview)]),l=[...a,...s],u=t.map(d=>[d,l.find(g=>d.value===g.value&&d.type===g.type)?.id]),c=u.filter(([,d])=>!d).map(([d])=>d);try{p.info(Jt.magenta(`Creating "${c.length}" new data flows...`)),await hg(r,c,n),p.info(Jt.green(`Successfully synced ${c.length} data flows!`))}catch(d){o=!0,p.info(Jt.red(`Failed to create data flows! - ${d.message}`))}let f=u.filter(d=>!!d[1]);try{p.info(Jt.magenta(`Updating "${f.length}" data flows...`)),await yg(r,f,n),p.info(Jt.green(`Successfully updated "${f.length}" data flows!`))}catch(d){o=!0,p.info(Jt.red(`Failed to create data flows! - ${d.message}`))}return p.info(Jt.green(`Synced "${t.length}" data flows!`)),!o}import Cg from"lodash/difference";import{IsoCountryCode as Ig,IsoCountrySubdivisionCode as Ag}from"@transcend-io/privacy-types";var Tg=[...Object.values(Ig),...Object.values(Ag)];async function al(r,{action:t,actionId:n,skipPublish:o=!1}){await m(r,Qa,{input:{id:n,skipSecondaryIfNoFiles:t.skipSecondaryIfNoFiles,skipDownloadableStep:t.skipDownloadableStep,requiresReview:t.requiresReview,waitingPeriod:t.waitingPeriod,skipPublish:o,regionList:t.regionBlockList?Cg(Tg,t.regionBlockList):t.regionList,regionDetectionMethod:t.regionDetectionMethod}})}var ii=20;async function Te(r,t){let n=[],o=0,i=!1;do{let{templates:{nodes:a}}=await m(r,ns,{first:ii,offset:o,title:t});n.push(...a),o+=ii,i=a.length===ii}while(i);return n.sort((a,s)=>a.title.localeCompare(s.title))}async function pl(r,t){(await Te(t,r.title)).find(({title:i})=>i===r.title)||await m(t,is,{title:r.title})}var oi=20;async function Br(r){let t=[],n=0,o=!1;do{let{actions:{nodes:i}}=await m(r,Ba,{first:oi,offset:n});t.push(...i),n+=oi,o=i.length===oi}while(o);return t.sort((i,a)=>i.type.localeCompare(a.type))}import Kt from"colors";import{map as Sg}from"bluebird";var si=20;async function Qr(r){let t=[],n=0,o=!1;do{let{promptPartials:{nodes:i}}=await m(r,vs,{first:si,offset:n});t.push(...i),n+=si,o=i.length===si}while(o);return t.sort((i,a)=>i.title.localeCompare(a.title))}import Pg from"lodash/keyBy";async function Eg(r,t){let{createPromptPartial:{promptPartial:n}}=await m(r,Gs,{input:t});return p.info(Kt.green(`Successfully created prompt partial "${t.title}"!`)),n.id}async function Rg(r,t){await m(r,_s,{input:{promptPartials:t.map(([n,o])=>({...n,id:o}))}}),p.info(Kt.green(`Successfully updated ${t.length} prompt partials!`))}async function ll(r,t,n=20){let o=!1;p.info(Kt.magenta(`Syncing "${t.length}" prompt partials...`));let i=await Qr(r),a=Pg(i,"title"),s=t.map(c=>[c,a[c.title]?.id]),l=s.filter(([,c])=>!c).map(([c])=>c);try{p.info(Kt.magenta(`Creating "${l.length}" new prompt partials...`)),await Sg(l,async c=>{await Eg(r,c)},{concurrency:n}),p.info(Kt.green(`Successfully synced ${l.length} prompt partials!`))}catch(c){o=!0,p.info(Kt.red(`Failed to create prompt partials! - ${c.message}`))}let u=s.filter(c=>!!c[1]);try{p.info(Kt.magenta(`Updating "${u.length}" prompt partials...`)),await Rg(r,u),p.info(Kt.green(`Successfully updated "${u.length}" prompt partials!`))}catch(c){o=!0,p.info(Kt.red(`Failed to create prompt partials! - ${c.message}`))}return p.info(Kt.green(`Synced "${t.length}" prompt partials!`)),!o}import jt from"colors";import{map as bg}from"bluebird";var ai=20;async function Vr(r){let t=[],n=0,o=!1;do{let{promptGroups:{nodes:i}}=await m(r,Ls,{first:ai,offset:n});t.push(...i),n+=ai,o=i.length===ai}while(o);return t.sort((i,a)=>i.title.localeCompare(a.title))}import cl from"lodash/keyBy";async function wg(r,t){let{createPromptGroup:{promptGroup:n}}=await m(r,Fs,{input:t});return p.info(jt.green(`Successfully created prompt group "${t.title}"!`)),n.id}async function xg(r,t){await m(r,Ms,{input:{promptGroups:t.map(([n,o])=>({...n,id:o}))}}),p.info(jt.green(`Successfully updated ${t.length} prompt groups!`))}async function ul(r,t,n=20){let o=!1;p.info(jt.magenta(`Syncing "${t.length}" prompt groups...`));let i=await Vr(r),a=await be(r),s=cl(a,"title"),l=cl(i,"title"),u=t.map(d=>[d,l[d.title]?.id]),c=u.filter(([,d])=>!d).map(([d])=>d);try{p.info(jt.magenta(`Creating "${c.length}" new prompt groups...`)),await bg(c,async d=>{await wg(r,{...d,promptIds:d.prompts.map(g=>{let h=s[g];if(!h)throw new Error(`Failed to find prompt with title: "${g}"`);return h.id})})},{concurrency:n}),p.info(jt.green(`Successfully synced ${c.length} prompt groups!`))}catch(d){o=!0,p.info(jt.red(`Failed to create prompt groups! - ${d.message}`))}let f=u.filter(d=>!!d[1]);try{p.info(jt.magenta(`Updating "${f.length}" prompt groups...`)),await xg(r,f.map(([{prompts:d,...g},h])=>[{...g,promptIds:d.map(y=>{let C=s[y];if(!C)throw new Error(`Failed to find prompt with title: "${y}"`);return C.id})},h])),p.info(jt.green(`Successfully updated "${f.length}" prompt groups!`))}catch(d){o=!0,p.info(jt.red(`Failed to create prompt groups! - ${d.message}`))}return p.info(jt.green(`Synced "${t.length}" prompt groups!`)),!o}import{mapSeries as $g}from"bluebird";import Dg from"lodash/keyBy";import ve from"colors";var pi=20;async function le(r,t={}){let n=[],o=0,i=!1;do{let{agents:{nodes:a}}=await m(r,tp,{first:pi,offset:o,filterBy:t});n.push(...a),o+=pi,i=a.length===pi}while(i);return n.sort((a,s)=>a.name.localeCompare(s.name))}async function qg(r,t){let n={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},{createAgent:o}=await m(r,ep,{input:n});return o.agent}async function vg(r,t){await m(r,rp,{input:{agents:t.map(([n,o])=>({id:o,name:n.name,description:n.description,codeInterpreterEnabled:n.codeInterpreterEnabled,retrievalEnabled:n.retrievalEnabled}))}})}async function ml(r,t){p.info(ve.magenta(`Syncing "${t.length}" agents...`));let n=!1,o=await le(r),i=Dg(o,"name"),a=t.filter(s=>!i[s.name]);await $g(a,async s=>{try{let l=await qg(r,s);i[l.name]=l,p.info(ve.green(`Successfully synced agent "${s.name}"!`))}catch(l){n=!0,p.info(ve.red(`Failed to sync agent "${s.name}"! - ${l.message}`))}});try{p.info(ve.magenta(`Updating "${t.length}" agents!`)),await vg(r,t.map(s=>[s,i[s.name].id])),p.info(ve.green(`Successfully synced "${t.length}" agents!`))}catch(s){n=!0,p.info(ve.red(`Failed to sync "${t.length}" agents ! - ${s.message}`))}return!n}import{mapSeries as dl}from"bluebird";import Lg from"lodash/keyBy";import ar from"colors";async function Le(r,t={}){let{globalActionItemCollections:{nodes:n}}=await m(r,ea,{filterBy:{...t}});return n}async function kg(r,t){let n={title:t.title,description:t.description||"",hidden:t.hidden||!1,productLine:t.productLine},{createActionItemCollection:o}=await m(r,ra,{input:n});return o.created}async function Og(r,t,n){await m(r,na,{input:{id:n,title:t.title,description:t.description,hidden:t.hidden,productLine:t.productLine}})}async function fl(r,t){let n=!1;p.info(ar.magenta(`Syncing "${t.length}" action item collections...`));let o=await Le(r),i=Lg(o,"title"),a=t.filter(l=>!i[l.title]);await dl(a,async l=>{try{await kg(r,l),p.info(ar.green(`Successfully created action item collection "${l.title}"!`))}catch(u){n=!0,p.info(ar.red(`Failed to create action item collection "${l.title}"! - ${u.message}`))}});let s=t.map(l=>[l,i[l.title]?.id]).filter(l=>!!l[1]);return await dl(s,async([l,u])=>{try{await Og(r,l,u),p.info(ar.green(`Successfully synced action item collection "${l.title}"!`))}catch(c){n=!0,p.info(ar.red(`Failed to sync action item collection "${l.title}"! - ${c.message}`))}}),!n}import Ng from"lodash/uniq";import _g from"lodash/chunk";import{mapSeries as yl}from"bluebird";import jr from"lodash/keyBy";import Se from"colors";var li=20;async function Kr(r,t={}){let n=[],o=0,i=!1;do{let{globalActionItems:{nodes:a}}=await m(r,Va,{first:li,offset:o,filterBy:{...t,...t.startDueDate?{startDueDate:t.startDueDate.toISOString()}:{},...t.endDueDate?{endDueDate:t.endDueDate.toISOString()}:{}}});n.push(...a.map(s=>({...s,id:s.ids[0],title:s.titles[0],notes:s.notes[0],link:s.links[0]}))),o+=li,i=a.length===li}while(i);return n}async function Gg(r,t,n,o={}){let i=_g(t,100);await yl(i,async a=>{await m(r,ja,{input:a.map(s=>({title:s.title,type:s.type,priorityOverride:s.priority,dueDate:s.dueDate,customerExperienceActionItemId:s.customerExperienceActionItemId,resolved:s.resolved,notes:s.notes,link:s.link,assigneesUserEmails:s.users,assigneesTeamNames:s.teams,...s.attributes?{}:{},collectionIds:s.collections.map(l=>n[l].id)}))})})}async function Mg(r,t,n,o={}){let i=a=>{let s=o[a];if(!s)throw new Error(`Attribute key "${a}" does not exist!`);return s.id};await m(r,Ka,{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:a,values:s})=>({attributeKeyId:i(a),attributeValueNames:s}))}:{}}})}function Fg({title:r,collections:t}){return`${r}-${t.map(n=>n.title).sort().join("-")}`}function gl({title:r,collections:t}){return`${r}-${t.sort().join("-")}`}async function hl(r,t){let n=!1;p.info(Se.magenta(`Syncing "${t.length}" actionItems...`));let o=t.some(y=>y.attributes&&y.attributes.length>0),[i,a,s]=await Promise.all([Kr(r),Le(r),o?$e(r):[]]),l=jr(a,"title"),u=jr(i,Fg),c=jr(s,"name"),f=jr(i.filter(y=>!!y.customerExperienceActionItemIds),({customerExperienceActionItemIds:y})=>y[0]),d=Ng(t.map(y=>y.collections).flat()).filter(y=>!l[y]);if(d.length>0)return p.info(Se.red(`Missing action item collections: "${d.join('", "')}" - please create them first!`)),!1;let g=t.filter(y=>!u[gl(y)]&&!f[y.customerExperienceActionItemId]);if(g.length>0)try{p.info(Se.magenta(`Creating "${g.length}" actionItems...`)),await Gg(r,g,l,c),p.info(Se.green(`Successfully created "${g.length}" actionItems!`))}catch(y){n=!0,p.info(Se.red(`Failed to create action items! - ${y.message}`))}let h=t.map(y=>[y,u[gl(y)]?.id||f[y.customerExperienceActionItemId]?.id]).filter(y=>!!y[1]);return await yl(h,async([y,C])=>{try{await Mg(r,y,C,c),p.info(Se.green(`Successfully synced action item "${y.title}"!`))}catch(P){n=!0,p.info(Se.red(`Failed to sync action item "${y.title}"! - ${P.message}`))}}),!n}import{mapSeries as Ug}from"bluebird";import Bg from"lodash/keyBy";import ke from"colors";var ci=20;async function Yr(r){let t=[],n=0,o=!1;do{let{agentFunctions:{nodes:i}}=await m(r,sp,{first:ci,offset:n});t.push(...i.map(a=>({...a,parameters:JSON.parse(a.parameters)}))),n+=ci,o=i.length===ci}while(o);return t.sort((i,a)=>i.name.localeCompare(a.name))}async function Qg(r,t){let n={name:t.name,description:t.description,parameters:t.parameters,agentIds:[]},{createAgentFunction:o}=await m(r,ap,{input:n});return o.agentFunction}async function Vg(r,t){await m(r,pp,{input:{agentFunctions:t.map(([n,o])=>({id:o,name:n.name,description:n.description,parameters:n.parameters}))}})}async function Cl(r,t){p.info(ke.magenta(`Syncing "${t.length}" agent functions...`));let n=!1,o=await Yr(r),i=Bg(o,"name"),a=t.filter(s=>!i[s.name]);await Ug(a,async s=>{try{let l=await Qg(r,s);i[l.name]=l,p.info(ke.green(`Successfully synced agent function "${s.name}"!`))}catch(l){n=!0,p.info(ke.red(`Failed to sync agent function "${s.name}"! - ${l.message}`))}});try{p.info(ke.magenta(`Updating "${t.length}" agent functions!`)),await Vg(r,t.map(s=>[s,i[s.name].id])),p.info(ke.green(`Successfully synced "${t.length}" agent functions!`))}catch(s){n=!0,p.info(ke.red(`Failed to sync "${t.length}" agent functions! - ${s.message}`))}return!n}import{mapSeries as Kg}from"bluebird";import jg from"lodash/keyBy";import Ne from"colors";var ui=20;async function Oe(r,t={}){let n=[],o=0,i=!1;do{let{agentFiles:{nodes:a}}=await m(r,np,{first:ui,offset:o,filterBy:t});n.push(...a),o+=ui,i=a.length===ui}while(i);return n.sort((a,s)=>a.name.localeCompare(s.name))}async function Yg(r,t){let n={name:t.name,description:t.description,fileId:t.fileId,size:t.size,purpose:t.purpose,fileUploadedAt:new Date,agentIds:[]},{createAgentFile:o}=await m(r,ip,{input:n});return o.agentFile}async function zg(r,t){await m(r,op,{input:{agentFiles:t.map(([n,o])=>({id:o,name:n.name,description:n.description,fileId:n.fileId,size:n.size,purpose:n.purpose}))}})}async function Il(r,t){p.info(Ne.magenta(`Syncing "${t.length}" agent files...`));let n=!1,o=await Oe(r),i=jg(o,"name"),a=t.filter(s=>!i[s.name]);await Kg(a,async s=>{try{let l=await Yg(r,s);i[l.name]=l,p.info(Ne.green(`Successfully synced agent file "${s.name}"!`))}catch(l){n=!0,p.info(Ne.red(`Failed to sync agent file "${s.name}"! - ${l.message}`))}});try{p.info(Ne.magenta(`Updating "${t.length}" agent files!`)),await zg(r,t.map(s=>[s,i[s.name].id])),p.info(Ne.green(`Successfully synced "${t.length}" agent files!`))}catch(s){n=!0,p.info(Ne.red(`Failed to sync "${t.length}" agent files! - ${s.message}`))}return!n}import{mapSeries as Hg}from"bluebird";import Zg from"lodash/keyBy";import _e from"colors";var mi=20;async function zr(r){let t=[],n=0,o=!1;do{let{vendors:{nodes:i}}=await m(r,lp,{first:mi,offset:n});t.push(...i),n+=mi,o=i.length===mi}while(o);return t.sort((i,a)=>i.title.localeCompare(a.title))}async function Wg(r,t){let n={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},{createVendor:o}=await m(r,cp,{input:n});return o.vendor}async function Jg(r,t){await m(r,up,{input:{vendors:t.map(([n,o])=>({id:o,title:n.title,description:n.description,address:n.address,headquarterCountry:n.headquarterCountry,headquarterSubDivision:n.headquarterSubDivision,dataProcessingAgreementLink:n.dataProcessingAgreementLink,contactName:n.contactName,contactPhone:n.contactPhone,websiteUrl:n.websiteUrl,attributes:n.attributes}))}})}async function Al(r,t){p.info(_e.magenta(`Syncing "${t.length}" vendors...`));let n=!1,o=await zr(r),i=Zg(o,"title"),a=t.filter(s=>!i[s.title]);await Hg(a,async s=>{try{let l=await Wg(r,s);i[l.title]=l,p.info(_e.green(`Successfully synced vendor "${s.title}"!`))}catch(l){n=!0,p.info(_e.red(`Failed to sync vendor "${s.title}"! - ${l.message}`))}});try{p.info(_e.magenta(`Updating "${t.length}" vendors!`)),await Jg(r,t.map(s=>[s,i[s.title].id])),p.info(_e.green(`Successfully synced "${t.length}" vendors!`))}catch(s){n=!0,p.info(_e.red(`Failed to sync "${t.length}" vendors ! - ${s.message}`))}return!n}import{mapSeries as Xg}from"bluebird";import ty from"lodash/keyBy";import Ge from"colors";var di=20;async function Hr(r){let t=[],n=0,o=!1;do{let{dataSubCategories:{nodes:i}}=await m(r,mp,{first:di,offset:n});t.push(...i),n+=di,o=i.length===di}while(o);return t.sort((i,a)=>i.name.localeCompare(a.name))}async function ey(r,t){let n={name:t.name,category:t.category,description:t.description},{createDataCategory:o}=await m(r,dp,{input:n});return o.dataCategory}async function ry(r,t){await m(r,fp,{input:{dataSubCategories:t.map(([n,o])=>({id:o,description:n.description,attributes:n.attributes}))}})}async function Tl(r,t){p.info(Ge.magenta(`Syncing "${t.length}" data categories...`));let n=!1,o=await Hr(r),i=ty(o,({name:s,category:l})=>`${s}:${l}`),a=t.filter(s=>!i[`${s.name}:${s.category}`]);await Xg(a,async s=>{try{let l=await ey(r,s);i[`${l.name}:${l.category}`]=l,p.info(Ge.green(`Successfully synced data category "${s.name}"!`))}catch(l){n=!0,p.info(Ge.red(`Failed to sync data category "${s.name}"! - ${l.message}`))}});try{p.info(Ge.magenta(`Updating "${t.length}" data categories!`)),await ry(r,t.map(s=>[s,i[`${s.name}:${s.category}`].id])),p.info(Ge.green(`Successfully synced "${t.length}" data categories!`))}catch(s){n=!0,p.info(Ge.red(`Failed to sync "${t.length}" data categories ! - ${s.message}`))}return!n}import{mapSeries as ny}from"bluebird";import iy from"lodash/keyBy";import Me from"colors";var fi=20;async function Zr(r){let t=[],n=0,o=!1;do{let{processingPurposeSubCategories:{nodes:i}}=await m(r,gp,{first:fi,offset:n});t.push(...i),n+=fi,o=i.length===fi}while(o);return t.sort((i,a)=>i.name.localeCompare(a.name))}async function oy(r,t){let n={name:t.name,purpose:t.purpose,description:t.description},{createProcessingPurposeSubCategory:o}=await m(r,yp,{input:n});return o.processingPurposeSubCategory}async function sy(r,t){await m(r,hp,{input:{processingPurposeSubCategories:t.map(([n,o])=>({id:o,description:n.description,attributes:n.attributes}))}})}async function Sl(r,t){p.info(Me.magenta(`Syncing "${t.length}" processing purposes...`));let n=!1,o=await Zr(r),i=iy(o,({name:s,purpose:l})=>`${s}:${l}`),a=t.filter(s=>!i[`${s.name}:${s.purpose}`]);await ny(a,async s=>{try{let l=await oy(r,s);i[`${l.name}:${l.purpose}`]=l,p.info(Me.green(`Successfully synced processing purpose "${s.name}"!`))}catch(l){n=!0,p.info(Me.red(`Failed to sync processing purpose "${s.name}"! - ${l.message}`))}});try{p.info(Me.magenta(`Updating "${t.length}" processing purposes!`)),await sy(r,t.map(s=>[s,i[`${s.name}:${s.purpose}`].id])),p.info(Me.green(`Successfully synced "${t.length}" processing purposes!`))}catch(s){n=!0,p.info(Me.red(`Failed to sync "${t.length}" processing purposes ! - ${s.message}`))}return!n}var Ue=10;async function oD(r,t,{pageSize:n=50,publishToPrivacyCenter:o=!0,classifyService:i=!1,deleteExtraAttributeValues:a=!1}){let s=!1;p.info(V.magenta(`Fetching data with page size ${n}...`));let{templates:l,attributes:u,actions:c,identifiers:f,"data-subjects":d,"business-entities":g,enrichers:h,cookies:y,"consent-manager":C,"data-silos":P,"data-flows":T,prompts:R,"prompt-groups":I,"prompt-partials":w,agents:N,"agent-functions":dt,"agent-files":J,vendors:Y,"data-categories":nt,"processing-purposes":lt,"action-items":X,"action-item-collections":gt,teams:yt,"privacy-center":at,messages:ct,policies:wt,partitions:Mt}=r,[qt,It,Rt]=await Promise.all([h||f?Tp(r,t,!o):{},P||d||h?wp(r,t):{},P&&P.map(E=>E["api-key-title"]||[]).reduce((E,M)=>E+M.length,0)>0?Or(r,t):{}]);if(C){p.info(V.magenta("Syncing consent manager..."));try{await Wp(t,C),p.info(V.green("Successfully synced consent manager!"))}catch(E){s=!0,p.info(V.red(`Failed to sync consent manager! - ${E.message}`))}}if(R){let E=await Bp(t,R);s=s||!E}if(w){let E=await ll(t,w);s=s||!E}if(I){let E=await ul(t,I);s=s||!E}if(yt){let E=await Gp(t,yt);s=s||!E}if(l&&(p.info(V.magenta(`Syncing "${l.length}" email templates...`)),await Fe(l,async E=>{p.info(V.magenta(`Syncing template "${E.title}"...`));try{await pl(E,t),p.info(V.green(`Successfully synced template "${E.title}"!`))}catch(M){s=!0,p.info(V.red(`Failed to sync template "${E.title}"! - ${M.message}`))}},{concurrency:Ue}),p.info(V.green(`Synced "${l.length}" email templates!`))),g){let E=await el(t,g);s=s||!E}if(Y){let E=await Al(t,Y);s=s||!E}if(nt){let E=await Tl(t,nt);s=s||!E}if(lt){let E=await Sl(t,lt);s=s||!E}if(Mt){let E=await Yp(t,Mt);s=s||!E}if(N){let E=await ml(t,N);s=s||!E}if(dt){let E=await Cl(t,dt);s=s||!E}if(J){let E=await Il(t,J);s=s||!E}if(y){let E=await Lr(t,y);s=s||!E}if(gt){let E=await fl(t,gt);s=s||!E}if(u){p.info(V.magenta(`Syncing "${u.length}" attributes...`));let E=await $e(t);await Fe(u,async M=>{let ot=E.find(ft=>ft.name===M.name);p.info(V.magenta(`Syncing attribute "${M.name}"...`));try{await Rp(t,M,{existingAttribute:ot,deleteExtraAttributeValues:a}),p.info(V.green(`Successfully synced attribute "${M.name}"!`))}catch(ft){s=!0,p.info(V.red(`Failed to sync attribute "${M.name}"! - ${ft.message}`))}},{concurrency:Ue}),p.info(V.green(`Synced "${u.length}" attributes!`))}if(X){let E=await hl(t,X);s=s||!E}if(h&&(p.info(V.magenta(`Syncing "${h.length}" enrichers...`)),await Fe(h,async E=>{p.info(V.magenta(`Syncing enricher "${E.title}"...`));try{await Ep(t,{enricher:E,identifierByName:qt,dataSubjectsByName:It}),p.info(V.green(`Successfully synced enricher "${E.title}"!`))}catch(M){s=!0,p.info(V.red(`Failed to sync enricher "${E.title}"! - ${M.message}`))}},{concurrency:Ue}),p.info(V.green(`Synced "${h.length}" enrichers!`))),f&&(p.info(V.magenta(`Syncing "${f.length}" identifiers...`)),await Fe(f,async E=>{let M=qt[E.name];if(!M)throw new Error(`Failed to find identifier with name: ${E.type}. Should have been auto-created by cli.`);p.info(V.magenta(`Syncing identifier "${E.type}"...`));try{await Sp(t,{identifier:E,dataSubjectsByName:It,identifierId:M.id,skipPublish:!o}),p.info(V.green(`Successfully synced identifier "${E.type}"!`))}catch(ot){s=!0,p.info(V.red(`Failed to sync identifier "${E.type}"! - ${ot.message}`))}},{concurrency:Ue}),p.info(V.green(`Synced "${f.length}" identifiers!`))),c){p.info(V.magenta(`Syncing "${c.length}" actions...`));let E=await Br(t);await Fe(c,async M=>{let ot=E.find(ft=>ft.type===M.type);if(!ot)throw new Error(`Failed to find action with type: ${M.type}. Should have already existing in the organization.`);p.info(V.magenta(`Syncing action "${M.type}"...`));try{await al(t,{action:M,actionId:ot.id,skipPublish:!o}),p.info(V.green(`Successfully synced action "${M.type}"!`))}catch(ft){s=!0,p.info(V.red(`Failed to sync action "${M.type}"! - ${ft.message}`))}},{concurrency:Ue}),p.info(V.green(`Synced "${c.length}" actions!`))}if(d){p.info(V.magenta(`Syncing "${d.length}" data subjects...`));let E=await rr(t);await Fe(d,async M=>{let ot=E.find(ft=>ft.type===M.type);if(!ot)throw new Error(`Failed to find data subject with type: ${M.type}. Should have already existing in the organization.`);p.info(V.magenta(`Syncing data subject "${M.type}"...`));try{await Mp(t,{dataSubject:M,dataSubjectId:ot.id,skipPublish:!o}),p.info(V.green(`Successfully synced data subject "${M.type}"!`))}catch(ft){s=!0,p.info(V.red(`Failed to sync data subject "${M.type}"! - ${ft.message}`))}},{concurrency:Ue}),p.info(V.green(`Synced "${d.length}" data subjects!`))}if(T){let E=await Ur(t,T,i);s=s||!E}if(at){let E=await Kp(t,at);s=s||!E}if(ct){let E=await Vp(t,ct);s=s||!E}if(wt){let E=await Qp(t,wt);s=s||!E}let At=[];if(P){let{success:E,dataSiloTitleToId:M}=await kp(P,t,{dataSubjectsByName:It,apiKeysByTitle:Rt,pageSize:n});P?.forEach(ot=>{ot["deletion-dependencies"]&&At.push([M[ot.title],ot["deletion-dependencies"]])}),s=s||!E}return At.length>0&&await Op(t,At),s}import{getEntries as ay}from"@transcend-io/type-utils";function pD(r,...t){let n=JSON.parse(JSON.stringify(r));return t.forEach(o=>{ay(o).forEach(([i,a])=>{n[i]===void 0?n[i]=a:Array.isArray(a)?n[i]=[...n[i],...a]:n[i]=a})}),n}import fy from"inquirer";import{applyEnum as py,valuesOf as pr}from"@transcend-io/type-utils";import{LanguageKey as ly}from"@transcend-io/internationalization";import{CompletedRequestStatus as cy,RequestAction as uy,IsoCountryCode as my,IsoCountrySubdivisionCode as dy}from"@transcend-io/privacy-types";import*as v from"io-ts";var Z="[NONE]",lr="[APPLY VALUE TO ALL ROWS]",gi="<blank>",Wr=["email","coreIdentifier"],Be=(f=>(f.Email="email",f.CoreIdentifier="coreIdentifier",f.RequestType="requestType",f.SubjectType="subjectType",f.Locale="locale",f.Country="country",f.CountrySubDivision="countrySubDivision",f.RequestStatus="requestStatus",f.CreatedAt="createdAt",f.DataSiloIds="dataSiloIds",f))(Be||{}),Pl={email:!1,coreIdentifier:!0,requestType:!0,subjectType:!0,requestStatus:!1,createdAt:!1,dataSiloIds:!1,locale:!1,country:!1,countrySubDivision:!1},El={requestType:!0,subjectType:!0},Rl=v.type({columnNames:v.partial(py(Be,()=>v.string)),identifierNames:v.record(v.string,v.string),attributeNames:v.record(v.string,v.string),requestTypeToRequestAction:v.record(v.string,pr(uy)),subjectTypeToSubjectName:v.record(v.string,v.string),languageToLocale:v.record(v.string,pr(ly)),regionToCountry:v.record(v.string,pr({...my,[Z]:Z})),regionToCountrySubDivision:v.record(v.string,pr({...dy,[Z]:Z})),statusToRequestStatus:v.record(v.string,pr({...cy,[Z]:Z}))}),Jr=v.type({id:v.string,link:v.string,rowIndex:v.number,coreIdentifier:v.string,attemptedAt:v.string}),bl=v.type({failingRequests:v.array(v.record(v.string,v.any)),successfulRequests:v.array(Jr),duplicateRequests:v.array(v.type({rowIndex:v.number,coreIdentifier:v.string,attemptedAt:v.string}))});import wl from"fuzzysearch";function Qe(r,t){return wl(r.toLowerCase(),t.toLowerCase())||wl(t.toLowerCase(),r.toLowerCase())}function Ve(r,t,n,o){let i=r.filter(a=>Qe(t.toLowerCase(),a.toLowerCase()));return[...i,new fy.Separator,...n?[]:[Z],...o?[lr]:[],...r.filter(a=>!i.includes(a))]}import xl from"inquirer";import gy from"inquirer-autocomplete-prompt";import{apply as yy}from"@transcend-io/type-utils";async function Pe(r,t,n){xl.registerPrompt("autocomplete",gy);let o=r.map(a=>a||"<blank>").filter(a=>!n[a]);if(o.length===0)return n;let i=await xl.prompt(o.map(a=>({name:a,message:`Map value of: ${a}`,type:"autocomplete",default:t.find(s=>Qe(a,s)),source:(s,l)=>l?t.filter(u=>typeof u=="string"&&Qe(l,u)):t})));return{...n,...yy(i,a=>typeof a=="string"?a:Object.values(a)[0])}}function Pt(r){return r.split(",").map(t=>t.trim()).filter(t=>t)}import $l from"colors";import*as Ee from"io-ts";var Dl=Ee.type({key:Ee.string,values:Ee.array(Ee.string)});function ql(r){let t=r.map(n=>{let[o,i]=n.trim().split(":");if(!i)throw new Error("Expected attributes in key:value1;value2,key2:value3;value4");let a=i.split(";");return{key:o,values:a}});return p.info($l.magenta("Attributes to apply to all requests:")),p.info($l.magenta(JSON.stringify(t,null,2))),t}import hy from"csv-parse/lib/sync";import{readFileSync as Cy}from"fs";import*as vl from"io-ts";import{decodeCodec as Iy}from"@transcend-io/type-utils";function Yt(r,t,n={columns:!0}){let o=hy(Cy(r,"utf-8"),n);return Iy(vl.array(t),o).map(s=>Object.entries(s).reduce((l,[u,c])=>Object.assign(l,{[u.replace(/[^a-z_.+\-A-Z -~]/g,"")]:c}),{}))}import Ay from"lodash/uniq";function Xt(r,t){return Ay(r.map(n=>n[t]||"").flat())}import Ll from"inquirer";import Ty from"colors";import Sy from"lodash/uniq";async function kl(r){let t=Sy(r.map(i=>Object.keys(i)).flat()),n=r,o=!0;for(;o;){let{filterColumnName:i}=await Ll.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:[Z,...t]}]);if(o=Z!==i,o){let a=Xt(n,i),{valuesToKeep:s}=await Ll.prompt([{name:"valuesToKeep",message:"Keep rows matching this value",type:"checkbox",default:t,choices:a}]);n=n.filter(l=>s.includes(l[i]))}}return p.info(Ty.magenta(`Importing ${n.length} requests`)),n}import{map as Eh}from"bluebird";import fc from"colors";import{RequestStatus as ce}from"@transcend-io/privacy-types";async function VD(r,t){let n=await m(r,es,{dataSiloId:t,type:"DATA_SILO_DISCOVERY"}),{plugins:o,totalCount:i}=n.plugins;return i===0&&(p.error("No active data silo plugins found for this data silo."),process.exit(1)),o[0]}import{RequestAction as Bl,ConsentTrackerStatus as te,ActionItemCode as ky}from"@transcend-io/privacy-types";import Oy from"lodash/flatten";import Ql from"lodash/keyBy";import Ny from"lodash/mapValues";async function Ol(r){let t=await or(r),{privacyCenter:{themeStr:n,...o}}=await m(r,Ha,{url:t});return[{...o,theme:JSON.parse(n)}]}async function Nl(r){let{translatedMessages:t}=await m(r,Ts,{});return t}import{ConsentTrackerStatus as Py}from"@transcend-io/privacy-types";var yi=20;async function hi(r,t=Py.Live){let n=[],o=0,i=await ht(r),a=!1;do{let{cookies:{nodes:s}}=await m(r,Ca,{first:yi,offset:o,airgapBundleId:i,status:t});n.push(...s),o+=yi,a=s.length===yi}while(a);return n.sort((s,l)=>s.name.localeCompare(l.name))}function Nt(r){let t=[];return r.map(n=>{let o=t.find(i=>i.key===n.attributeKey.name);return o===void 0?(o={key:n.attributeKey.name,values:[n.name]},t.push(o)):o.values.push(n.name),t}),t}import _y from"colors";var Ci=20;async function _l(r){let t=[],n=0,o=!1;do{let{assessmentForms:{nodes:i}}=await m(r,ws,{first:Ci,offset:n});t.push(...i),n+=Ci,o=i.length===Ci}while(o);return t.sort((i,a)=>i.title.localeCompare(a.title))}var Ii=20;async function Gl(r){let t=[],n=0,o=!1;do{let{assessmentFormTemplates:{nodes:i}}=await m(r,Ds,{first:Ii,offset:n});t.push(...i),n+=Ii,o=i.length===Ii}while(o);return t.sort((i,a)=>i.title.localeCompare(a.title))}import{AssessmentsDisplayLogicAction as Ey,ComparisonOperator as Ry,LogicOperator as by}from"@transcend-io/privacy-types";import{decodeCodec as wy,valuesOf as Ai}from"@transcend-io/type-utils";import*as Ct from"io-ts";var Ml=Ct.type({dependsOnQuestionReferenceId:Ct.string,comparisonOperator:Ai(Ry),comparisonOperands:Ct.array(Ct.string)}),xy=Ct.recursion("AssessmentNestedRule",r=>Ct.intersection([Ct.type({logicOperator:Ai(by)}),Ct.partial({rules:Ct.array(Ml),nestedRules:Ct.array(r)})])),$y=Ct.partial({action:Ai(Ey),rule:Ml,nestedRule:xy});function Ti(r){return wy($y,r)}import{ComparisonOperator as Dy}from"@transcend-io/privacy-types";import{decodeCodec as qy,valuesOf as vy}from"@transcend-io/type-utils";import*as bt from"io-ts";var Ly=bt.intersection([bt.partial({riskAssignment:bt.partial({riskLevelId:bt.string,riskMatrixRowId:bt.string,riskMatrixColumnId:bt.string})}),bt.type({comparisonOperands:bt.array(bt.string),comparisonOperator:vy(Dy)})]);function Si(r){return qy(Ly,r)}var Pi=20;async function Fl(r){let t=[],n=0,o=!1;do{let{preferenceTopics:{nodes:i}}=await m(r,$s,{first:Pi,offset:n});t.push(...i),n+=Pi,o=i.length===Pi}while(o);return t.sort((i,a)=>`${i.slug}:${i.purpose.trackingType}`.localeCompare(`${a.slug}:${a.purpose.trackingType}`))}async function Ul(r){let[t,n]=await Promise.all([Mr(r),Fl(r)]);return t.map(o=>{let i=n.filter(a=>a.purpose.trackingType===o.trackingType);return{...o,topics:i}})}var Gy=["dataSilos","enrichers","templates","apiKeys"];async function fv(r,{dataSiloIds:t,integrationNames:n,debug:o,resources:i=Gy,pageSize:a,skipDatapoints:s,includeGuessedCategories:l,skipSubDatapoints:u,trackerStatuses:c=Object.values(te)}){if(t.length>0&&n.length>0)throw new Error("Only 1 of integrationNames OR dataSiloIds can be provided");p.info(_y.magenta(`Fetching data with page size ${a}...`));let[f,d,g,h,y,C,P,T,R,I,w,N,dt,J,Y,nt,lt,X,gt,yt,at,ct,wt,Mt,qt,It,Rt,At,E,M,ot,ft]=await Promise.all([i.includes("dataSilos")||i.includes("dataSubjects")?rr(r):[],i.includes("apiKeys")?Or({},r,!0):[],i.includes("dataSilos")?Lp(r,{ids:t,integrationNames:n,pageSize:a,debug:o,includeGuessedCategories:l,skipDatapoints:s,skipSubDatapoints:u}):[],i.includes("enrichers")?Qn(r):[],i.includes("dataFlows")?[...c.includes(te.Live)?await qe(r,te.Live):[],...c.includes(te.NeedsReview)?await qe(r,te.NeedsReview):[]]:[],i.includes("cookies")?[...c.includes(te.Live)?await hi(r,te.Live):[],...c.includes(te.NeedsReview)?await hi(r,te.NeedsReview):[]]:[],i.includes("customFields")?$e(r):[],i.includes("templates")?Te(r):[],i.includes("identifiers")?Un(r):[],i.includes("actions")?Br(r):[],i.includes("businessEntities")?Fr(r):[],i.includes("consentManager")?$r(r):void 0,i.includes("consentManager")?Dr(r):[],i.includes("prompts")?be(r):[],i.includes("promptPartials")?Qr(r):[],i.includes("promptGroups")?Vr(r):[],i.includes("agents")?le(r):[],i.includes("agentFunctions")?Yr(r):[],i.includes("agentFiles")?Oe(r):[],i.includes("vendors")?zr(r):[],i.includes("dataCategories")?Hr(r):[],i.includes("processingPurposes")?Zr(r):[],i.includes("actionItems")?Kr(r,{type:[ky.Onboarding]}):[],i.includes("actionItemCollections")?Le(r):[],i.includes("teams")?kr(r):[],i.includes("policies")?Nr(r):[],i.includes("privacyCenters")?Ol(r):[],i.includes("messages")?Nl(r):[],i.includes("partitions")?sr(r):[],i.includes("assessments")?_l(r):[],i.includes("assessmentTemplates")?Gl(r):[],i.includes("purposes")?Ul(r):[]]),vt=i.includes("consentManager")&&N?await Np(r,N.id):void 0,K={},Fu=Oy(g.map(([{apiKeys:A}])=>A.map(({title:b})=>b))),Ji=Object.values(d).filter(({title:A})=>i.includes("apiKeys")?!0:Fu.includes(A));if(Ji.length>0&&i.includes("apiKeys")&&(K["api-keys"]=Ji.map(({title:A})=>({title:A}))),E.length>0&&i.includes("partitions")&&(K.partitions=E.map(({name:A,partition:b})=>({name:A,partition:b}))),N&&i.includes("consentManager")&&(K["consent-manager"]={bundleUrls:{TEST:N.testBundleURL,PRODUCTION:N.bundleURL},domains:N.configuration.domains||void 0,partition:N.configuration.partition||void 0,consentPrecedence:N.configuration.consentPrecedence||void 0,unknownRequestPolicy:N.configuration.unknownRequestPolicy||void 0,unknownCookiePolicy:N.configuration.unknownCookiePolicy||void 0,syncEndpoint:N.configuration.syncEndpoint||void 0,telemetryPartitioning:N.configuration.telemetryPartitioning||void 0,signedIabAgreement:N.configuration.signedIabAgreement||void 0,uspapi:N.configuration.uspapi||void 0,syncGroups:N.configuration.syncGroups||void 0,theme:vt?{primaryColor:vt.primaryColor||void 0,fontColor:vt.fontColor||void 0,privacyPolicy:vt.privacyPolicy||void 0,prompt:vt.prompt}:void 0,experiences:dt.map(A=>({name:A.name,displayName:A.displayName||void 0,regions:A.regions.map(b=>({countrySubDivision:b.countrySubDivision||void 0,country:b.country||void 0})),onConsentExpiry:A.onConsentExpiry,consentExpiry:A.consentExpiry,operator:A.operator,displayPriority:A.displayPriority,viewState:A.viewState,purposes:A.purposes.map(b=>({trackingType:b.trackingType})),optedOutPurposes:A.optedOutPurposes.map(b=>({trackingType:b.trackingType})),browserLanguages:A.browserLanguages,browserTimeZones:A.browserTimeZones}))}),M.length>0&&i.includes("assessments")&&(K.assessments=M.map(({title:A,assessmentGroup:b,sections:D,creator:q,description:k,status:G,assignees:F,externalAssignees:U,reviewers:z,isLocked:j,isArchived:pt,isExternallyCreated:et,dueDate:H,createdAt:Tt,assignedAt:oe,submittedAt:me,approvedAt:de,rejectedAt:fe,titleIsInternal:se,retentionSchedule:Lt,attributeValues:Wt,resources:Xe,syncedRows:ge})=>({title:A,group:b.title,sections:D.map(({title:St,status:Ft,questions:xt,assignees:_,isReviewed:B,externalAssignees:mt})=>({title:St,status:Ft,questions:xt.map(({title:ye,type:dn,subType:Dt,placeholder:kt,description:he,isRequired:Uu,referenceId:Bu,displayLogic:Xi,riskLogic:Qu,riskCategories:Vu,riskFramework:Ku,answerOptions:ju,selectedAnswers:Yu,allowedMimeTypes:zu,allowSelectOther:Hu,syncModel:Zu,syncColumn:Wu,attributeKey:Ju,requireRiskEvaluation:Xu,requireRiskMatrixEvaluation:tm})=>{let Ut=Xi?Ti(Xi):void 0;return{title:ye,type:dn,"sub-type":Dt,placeholder:kt,description:he,"is-required":Uu,"reference-id":Bu,"display-logic":Ut&&Object.keys(Ut).length>0?{action:Ut.action,rule:Ut.rule?{"depends-on-question-reference-id":Ut.rule.dependsOnQuestionReferenceId,"comparison-operator":Ut.rule.comparisonOperator,"comparison-operands":Ut.rule.comparisonOperands}:void 0,"nested-rule":Ut.nestedRule?{"logic-operator":Ut.nestedRule.logicOperator,rules:(Ut.nestedRule.rules||[]).map(Ot=>({"depends-on-question-reference-id":Ot.dependsOnQuestionReferenceId,"comparison-operator":Ot.comparisonOperator,"comparison-operands":Ot.comparisonOperands}))}:void 0}:void 0,"risk-logic":Qu.map(Ot=>{let fn=Si(Ot);return{"risk-level":fn.riskAssignment?.riskLevelId,"comparison-operands":fn.comparisonOperands,"comparison-operator":fn.comparisonOperator}}),"risk-categories":Vu.map(({title:Ot})=>Ot),"risk-framework":Ku?.title,"answer-options":ju.map(({value:Ot})=>({value:Ot})),"selected-answers":Yu.map(({value:Ot})=>Ot),"allowed-mime-types":zu,"allow-select-other":Hu,"sync-model":Zu||void 0,"sync-column":Wu||void 0,"attribute-key":Ju?.name,"require-risk-evaluation":Xu,"require-risk-matrix-evaluation":tm}}),assignees:_.map(({email:ye})=>ye),"external-assignees":mt.map(({email:ye})=>ye),"is-reviewed":B})),creator:q?.email,description:k,status:G,assignees:F.map(({email:St})=>St),"external-assignees":U.map(({email:St})=>St),reviewers:z.map(({email:St})=>St),locked:j,archived:pt,external:et,"title-is-internal":se,"due-date":H||void 0,"created-at":Tt||void 0,"assigned-at":oe||void 0,"submitted-at":me||void 0,"approved-at":de||void 0,"rejected-at":fe||void 0,"retention-schedule":Lt?{type:Lt.type,"duration-days":Lt.durationDays,operand:Lt.operation}:void 0,attributes:Wt!==void 0&&Wt.length>0?Nt(Wt):void 0,resources:Xe.map(({resourceType:St,title:Ft,name:xt,category:_,type:B,purpose:mt})=>({type:St,title:_?`${_} - ${xt}`:mt?`${mt} - ${xt}`:Ft||xt||B||""})),rows:ge.map(({resourceType:St,title:Ft,name:xt,category:_,type:B,purpose:mt})=>({type:St,title:_?`${_} - ${xt}`:mt?`${mt} - ${xt}`:Ft||xt||B||""}))}))),ot.length>0&&i.includes("assessmentTemplates")&&(K["assessment-templates"]=ot.map(({title:A,description:b,sections:D,status:q,source:k,creator:G,isLocked:F,isArchived:U,createdAt:z,retentionSchedule:j})=>({title:A,description:b,sections:D.map(({title:pt,questions:et})=>({title:pt,questions:et.map(({title:H,type:Tt,subType:oe,placeholder:me,description:de,isRequired:fe,referenceId:se,displayLogic:Lt,riskLogic:Wt,riskCategories:Xe,riskFramework:ge,answerOptions:St,allowedMimeTypes:Ft,allowSelectOther:xt,syncModel:_,syncColumn:B,attributeKey:mt,requireRiskEvaluation:ye,requireRiskMatrixEvaluation:dn})=>{let Dt=Lt?Ti(Lt):void 0;return{title:H,type:Tt,"sub-type":oe,placeholder:me,description:de,"is-required":fe,"reference-id":se,"display-logic":Dt&&Object.keys(Dt).length>0?{action:Dt.action,rule:Dt.rule?{"depends-on-question-reference-id":Dt.rule.dependsOnQuestionReferenceId,"comparison-operator":Dt.rule.comparisonOperator,"comparison-operands":Dt.rule.comparisonOperands}:void 0,"nested-rule":Dt.nestedRule?{"logic-operator":Dt.nestedRule.logicOperator,rules:(Dt.nestedRule.rules||[]).map(kt=>({"depends-on-question-reference-id":kt.dependsOnQuestionReferenceId,"comparison-operator":kt.comparisonOperator,"comparison-operands":kt.comparisonOperands}))}:void 0}:void 0,"risk-logic":Wt.map(kt=>{let he=Si(kt);return{"risk-level":he.riskAssignment?.riskLevelId,"risk-matrix-row":he.riskAssignment?.riskMatrixRowId,"risk-matrix-column":he.riskAssignment?.riskMatrixColumnId,"comparison-operands":he.comparisonOperands,"comparison-operator":he.comparisonOperator}}),"risk-categories":Xe.map(({title:kt})=>kt),"risk-framework":ge?.title,"answer-options":St.map(({value:kt})=>({value:kt})),"allowed-mime-types":Ft,"allow-select-other":xt,"sync-model":_||void 0,"sync-column":B||void 0,"attribute-key":mt?.name,"require-risk-evaluation":ye,"require-risk-matrix-evaluation":dn}})})),status:q,source:k,creator:G?.email,locked:F,archived:U,"created-at":z||void 0,"retention-schedule":j?{type:j.type,"duration-days":j.durationDays,operand:j.operation}:void 0}))),J.length>0&&i.includes("prompts")&&(K.prompts=J.map(({title:A,content:b})=>({title:A,content:b}))),Y.length>0&&i.includes("promptPartials")&&(K["prompt-partials"]=Y.map(({title:A,content:b})=>({title:A,content:b}))),nt.length>0&&i.includes("promptGroups")&&(K["prompt-groups"]=nt.map(({title:A,description:b,prompts:D})=>({title:A,description:b,prompts:D.map(({title:q})=>q)}))),qt.length>0&&i.includes("teams")&&(K.teams=qt.map(({name:A,description:b,ssoDepartment:D,ssoGroup:q,ssoTitle:k,users:G,scopes:F})=>({name:A,description:b,"sso-department":D||void 0,"sso-group":q||void 0,"sso-title":k||void 0,users:G.map(({email:U})=>U),scopes:F.map(({name:U})=>U)}))),f.length>0&&i.includes("dataSubjects")&&(K["data-subjects"]=f.map(({type:A,title:b,active:D,adminDashboardDefaultSilentMode:q,actions:k})=>({type:A,title:b?.defaultMessage,active:D,adminDashboardDefaultSilentMode:q,actions:k.map(({type:G})=>G)}))),It.length>0&&(K.policies=It.map(({title:A,versions:b,disabledLocales:D})=>({title:A?.defaultMessage,content:b?.[0]?.content?.defaultMessage,disabledLocales:D}))),At.length>0&&(K.messages=At.map(({id:A,defaultMessage:b,targetReactIntlId:D,translations:q})=>({id:A,defaultMessage:b,targetReactIntlId:D||void 0,translations:q.reduce((k,{locale:G,value:F})=>Object.assign(k,{[G]:F}),{})}))),Rt.length>0){let A=Rt[0];K["privacy-center"]={isDisabled:A.isDisabled,showPrivacyRequestButton:A.showPrivacyRequestButton,showPolicies:A.showPolicies,showTrackingTechnologies:A.showTrackingTechnologies,showCookies:A.showCookies,showDataFlows:A.showDataFlows,showConsentManager:A.showConsentManager,showManageYourPrivacy:A.showManageYourPrivacy,showMarketingPreferences:A.showMarketingPreferences,locales:A.locales,defaultLocale:A.defaultLocale,preferBrowserDefaultLocale:A.preferBrowserDefaultLocale,supportEmail:A.supportEmail||void 0,replyToEmail:A.replyToEmail||void 0,useNoReplyEmailAddress:A.useNoReplyEmailAddress,useCustomEmailDomain:A.useCustomEmailDomain,transformAccessReportJsonToCsv:A.transformAccessReportJsonToCsv,theme:A.theme}}if(w.length>0&&i.includes("businessEntities")&&(K["business-entities"]=w.map(({title:A,description:b,address:D,headquarterCountry:q,headquarterSubDivision:k,dataProtectionOfficerName:G,dataProtectionOfficerEmail:F,attributeValues:U})=>({title:A,description:b||void 0,address:D||void 0,headquarterCountry:q||void 0,headquarterSubDivision:k||void 0,dataProtectionOfficerName:G||void 0,dataProtectionOfficerEmail:F||void 0,attributes:U!==void 0&&U.length>0?Nt(U):void 0}))),I.length>0&&i.includes("actions")&&(K.actions=I.map(({type:A,skipSecondaryIfNoFiles:b,skipDownloadableStep:D,requiresReview:q,regionList:k,regionDetectionMethod:G,waitingPeriod:F})=>({type:A,...A===Bl.Erasure?{skipSecondaryIfNoFiles:b,skipDownloadableStep:D}:{},requiresReview:q,waitingPeriod:F,regionDetectionMethod:G,regionList:k.length>0?k:void 0}))),R.length>0&&i.includes("identifiers")&&(K.identifiers=R.map(({name:A,type:b,regex:D,selectOptions:q,privacyCenterVisibility:k,isRequiredInForm:G,placeholder:F,displayTitle:U,dataSubjects:z,displayDescription:j,displayOrder:pt})=>({name:A,type:b,regex:D,selectOptions:q.length>0?q:void 0,privacyCenterVisibility:k.length>0?k:void 0,isRequiredInForm:G,placeholder:F||void 0,dataSubjects:z.length>0?z.map(({type:et})=>et):void 0,displayTitle:U?.defaultMessage,displayDescription:j?.defaultMessage,displayOrder:pt}))),lt.length>0&&i.includes("agents")&&(K.agents=lt.map(({name:A,agentId:b,description:D,instructions:q,codeInterpreterEnabled:k,retrievalEnabled:G,prompt:F,largeLanguageModel:U,teams:z,owners:j,agentFunctions:pt,agentFiles:et})=>({name:A,agentId:b,description:D||void 0,instructions:q,codeInterpreterEnabled:k,retrievalEnabled:G,prompt:F?.title,"large-language-model":{name:U.name,client:U.client},teams:z&&z.length>0?z.map(({name:H})=>H):void 0,owners:j&&j.length>0?j.map(({email:H})=>H):void 0,"agent-functions":pt&&pt.length>0?pt.map(({name:H})=>H):void 0,"agent-files":et&&et.length>0?et.map(({name:H})=>H):void 0}))),wt.length>0&&i.includes("actionItems")&&(K["action-items"]=wt.map(({teams:A,users:b,customerExperienceActionItemIds:[D],dueDate:q,priority:k,resolved:G,collections:F,notes:U,link:z,title:j,type:pt,attributeValues:et})=>({teams:A.map(({name:H})=>H),users:b.map(({email:H})=>H),dueDate:q||void 0,title:j,notes:U,customerExperienceActionItemId:D,collections:F.map(({title:H})=>H),link:z,priority:k||void 0,resolved:G,type:pt,attributes:et!==void 0&&et.length>0?Nt(et):void 0}))),Mt.length>0&&i.includes("actionItemCollections")&&(K["action-item-collections"]=Mt.map(({title:A,description:b,hidden:D,productLine:q})=>({title:A,description:b||void 0,hidden:D,productLine:q}))),X.length>0&&i.includes("agentFunctions")&&(K["agent-functions"]=X.map(({name:A,description:b,parameters:D})=>({name:A,description:b,parameters:JSON.stringify(D)}))),gt.length>0&&i.includes("agentFiles")&&(K["agent-files"]=gt.map(({name:A,description:b,fileId:D,size:q,purpose:k})=>({name:A,description:b,fileId:D,size:q,purpose:k}))),yt.length>0&&i.includes("vendors")&&(K.vendors=yt.map(({title:A,description:b,dataProcessingAgreementLink:D,contactName:q,contactPhone:k,address:G,headquarterCountry:F,headquarterSubDivision:U,websiteUrl:z,businessEntity:j,teams:pt,owners:et,attributeValues:H})=>({title:A,description:b||void 0,dataProcessingAgreementLink:D||void 0,contactName:q||void 0,contactPhone:k||void 0,address:G||void 0,headquarterCountry:F||void 0,headquarterSubDivision:U||void 0,websiteUrl:z||void 0,businessEntity:j?.title,teams:pt&&pt.length>0?pt.map(({name:Tt})=>Tt):void 0,owners:et&&et.length>0?et.map(({email:Tt})=>Tt):void 0,attributes:H!==void 0&&H.length>0?Nt(H):void 0}))),at.length>0&&i.includes("dataCategories")&&(K["data-categories"]=at.map(({name:A,category:b,description:D,regex:q,owners:k,teams:G,attributeValues:F})=>({name:A,category:b,description:D||void 0,regex:q||void 0,owners:k&&k.length>0?k.map(({email:U})=>U):void 0,teams:G&&G.length>0?G.map(({name:U})=>U):void 0,attributes:F!==void 0&&F.length>0?Nt(F):void 0}))),ct.length>0&&i.includes("processingPurposes")&&(K["processing-purposes"]=ct.map(({name:A,purpose:b,description:D,owners:q,teams:k,attributeValues:G})=>({name:A,purpose:b,description:D||void 0,owners:q&&q.length>0?q.map(({email:F})=>F):void 0,teams:k&&k.length>0?k.map(({name:F})=>F):void 0,attributes:G!==void 0&&G.length>0?Nt(G):void 0}))),y.length>0&&i.includes("dataFlows")&&(K["data-flows"]=y.map(({value:A,type:b,description:D,trackingType:q,service:k,status:G,owners:F,teams:U,attributeValues:z})=>({value:A,type:b,description:D||void 0,trackingPurposes:q,status:G,service:k?.integrationName,owners:F.map(({email:j})=>j),teams:U.map(({name:j})=>j),attributes:z!==void 0&&z.length>0?Nt(z):void 0}))),C.length>0&&i.includes("cookies")&&(K.cookies=C.map(({name:A,isRegex:b,description:D,trackingPurposes:q,service:k,status:G,owners:F,teams:U,attributeValues:z})=>({name:A,isRegex:b,description:D||void 0,trackingPurposes:q,status:G,service:k?.integrationName,owners:F.map(({email:j})=>j),teams:U.map(({name:j})=>j),attributes:z!==void 0&&z.length>0?Nt(z):void 0}))),P.length>0&&i.includes("customFields")&&(K.attributes=P.map(({description:A,name:b,type:D,values:q,enabledOn:k=[]})=>({description:A||void 0,resources:k,name:b,type:D,values:q.map(({name:G,color:F,description:U})=>({name:G,color:F||void 0,description:U}))}))),ft.length>0&&(K.purposes=ft.map(({name:A,description:b,trackingType:D,defaultConsent:q,configurable:k,showInConsentManager:G,isActive:F,displayOrder:U,optOutSignals:z,authLevel:j,topics:pt,showInPrivacyCenter:et,title:H})=>({name:A,title:H,description:b||void 0,trackingType:D,"default-consent":q,configurable:k,"show-in-consent-manager":G,"show-in-privacy-center":et,"is-active":F,"display-order":U,"opt-out-signals":z.length>0?z:void 0,"auth-level":j||void 0,"preference-topics":pt.map(({title:Tt,type:oe,displayDescription:me,defaultConfiguration:de,showInPrivacyCenter:fe,preferenceOptionValues:se})=>({title:Tt.defaultMessage,type:oe,description:me.defaultMessage,"default-configuration":de,"show-in-privacy-center":fe,...se.length>0?{options:se.map(({title:Lt,slug:Wt})=>({title:Lt.defaultMessage,slug:Wt}))}:{}}))}))),t.length===0&&T.length>0&&i.includes("templates")&&(K.templates=T.map(({title:A})=>({title:A}))),h.length>0&&i.includes("enrichers")&&(K.enrichers=h.map(({title:A,url:b,type:D,inputIdentifier:q,identifiers:k,actions:G,testRegex:F,dataSubjects:U,expirationDuration:z,lookerQueryTitle:j,transitionRequestStatus:pt,phoneNumbers:et,regionList:H})=>({title:A,url:b||void 0,type:D,"input-identifier":q?.name,"output-identifiers":k.map(({name:Tt})=>Tt),"privacy-actions":Object.values(Bl).length===G.length?void 0:G,testRegex:F||void 0,lookerQueryTitle:j||void 0,expirationDuration:parseInt(z,10),transitionRequestStatus:pt||void 0,phoneNumbers:et&&et.length>0?et:void 0,regionList:H&&H.length>0?H:void 0,"data-subjects":U.map(({type:Tt})=>Tt)}))),g.length>0&&i.includes("dataSilos")){let A=Ql(f,"type");K["data-silos"]=g.map(([{title:b,description:D,url:q,type:k,outerType:G,apiKeys:F,notifyEmailAddress:U,identifiers:z,dependentDataSilos:j,owners:pt,country:et,countrySubDivision:H,teams:Tt,subjectBlocklist:oe,isLive:me,promptAVendorEmailSendFrequency:de,promptAVendorEmailSendType:fe,promptAVendorEmailIncludeIdentifiersAttachment:se,promptAVendorEmailCompletionLinkType:Lt,manualWorkRetryFrequency:Wt,catalog:Xe,attributeValues:ge,discoveredBy:St,businessEntities:Ft},xt])=>({title:b,description:D,integrationName:k,"outer-type":G||void 0,url:q||void 0,"api-key-title":F[0]?.title,"identity-keys":z.filter(({isConnected:_})=>_).map(({name:_})=>_),...j.length>0?{"deletion-dependencies":j.map(({title:_})=>_)}:{},...pt.length>0?{owners:pt.map(({email:_})=>_)}:{},...Tt.length>0?{teams:Tt.map(({name:_})=>_)}:{},...St.length>0?{discoveredBy:St.map(({title:_})=>_)}:{},...Ft.length>0?{businessEntities:Ft.map(({title:_})=>_)}:{},country:et||void 0,countrySubDivision:H||void 0,disabled:!me,"data-subjects":oe.length>0?$p(oe.map(({type:_})=>_),A):void 0,...Xe.hasAvcFunctionality?{"email-settings":{"notify-email-address":U||void 0,"send-frequency":de,"send-type":fe,"include-identifiers-attachment":se,"completion-link-type":Lt,"manual-work-retry-frequency":Wt}}:{},attributes:ge!==void 0&&ge.length>0?Nt(ge):void 0,datapoints:xt.map(_=>({key:_.name,title:_.title?.defaultMessage,description:_.description?.defaultMessage,owners:_.owners.map(({email:B})=>B),teams:_.teams.map(({name:B})=>B),..._.path.length>0?{path:_.path}:{},..._.dataCollection?.title?{"data-collection-tag":_.dataCollection.title.defaultMessage}:{},..._.dbIntegrationQueries.length>0?{"privacy-action-queries":Ny(Ql(_.dbIntegrationQueries,"requestType"),B=>B.suggestedQuery||B.query||void 0)}:{},..._.subDataPoints.length>0?{fields:_.subDataPoints.map(B=>({key:B.name,description:B.description,purposes:B.purposes,categories:B.categories,...l&&B.pendingCategoryGuesses?{"guessed-categories":B.pendingCategoryGuesses.filter(mt=>mt.status==="PENDING").map(mt=>({category:{name:mt.category.name,category:mt.category.category},status:mt.status,confidence:mt.confidence,classifierVersion:mt.classifierVersion||void 0}))}:{},"access-request-visibility-enabled":B.accessRequestVisibilityEnabled,"erasure-request-redaction-enabled":B.erasureRequestRedactionEnabled,attributes:B.attributeValues!==void 0&&B.attributeValues.length>0?Nt(B.attributeValues):void 0})).sort((B,mt)=>B.key.localeCompare(mt.key))}:{},"privacy-actions":_.actionSettings.filter(({active:B})=>B).map(({type:B})=>B)})).sort((_,B)=>[..._.path??[],_.key].join(".").localeCompare([...B.path??[],B.key].join(".")))}))}return K}import Xy from"lodash/chunk";import Hl from"lodash/uniq";import Zl from"lodash/keyBy";import Wl from"lodash/uniqBy";import re from"colors";var Ei=20;async function Vl(r){let t=[],n=0,o=!1;do{let{codePackages:{nodes:i}}=await m(r,cs,{first:Ei,offset:n});t.push(...i),n+=Ei,o=i.length===Ei}while(o);return t.sort((i,a)=>i.name.localeCompare(a.name))}import zt from"colors";import My from"lodash/chunk";import{map as Fy,mapSeries as Uy}from"bluebird";var Ri=20;async function Kl(r){let t=[],n=0,o=!1;do{let{softwareDevelopmentKits:{nodes:i}}=await m(r,as,{first:Ri,offset:n});t.push(...i),n+=Ri,o=i.length===Ri}while(o);return t.sort((i,a)=>i.name.localeCompare(a.name))}import By from"lodash/keyBy";var Qy=100;async function Vy(r,t){let{createSoftwareDevelopmentKit:{softwareDevelopmentKit:n}}=await m(r,ls,{input:t});return p.info(zt.green(`Successfully created software development kit "${t.name}"!`)),n}async function Ky(r,t){let{updateSoftwareDevelopmentKits:{softwareDevelopmentKits:n}}=await m(r,ps,{input:{softwareDevelopmentKits:t}});return p.info(zt.green(`Successfully updated ${t.length} software development kits!`)),n}async function jl(r,t,n=20){let o=!1,i=[];p.info(zt.magenta("Syncing software development kits..."));let a=await Kl(r),s=By(a,({name:d,codePackageType:g})=>JSON.stringify({name:d,codePackageType:g})),l=t.map(d=>[d,s[JSON.stringify({name:d.name,codePackageType:d.codePackageType})]?.id]),u=l.filter(([,d])=>!d).map(([d])=>d);try{p.info(zt.magenta(`Creating "${u.length}" new software development kits...`)),await Fy(u,async d=>{let g=await Vy(r,d);i.push(g)},{concurrency:n}),p.info(zt.green(`Successfully synced ${u.length} software development kits!`))}catch(d){o=!0,p.info(zt.red(`Failed to create software development kits! - ${d.message}`))}let c=l.filter(d=>!!d[1]),f=My(c,Qy);return p.info(zt.magenta(`Updating "${c.length}" software development kits...`)),await Uy(f,async d=>{try{let g=await Ky(r,d.map(([{codePackageType:h,...y},C])=>({...y,id:C})));i.push(...g),p.info(zt.green(`Successfully updated "${c.length}" software development kits!`))}catch(g){o=!0,p.info(zt.red(`Failed to update software development kits! - ${g.message}`))}p.info(zt.green(`Synced "${t.length}" software development kits!`))}),{softwareDevelopmentKits:i,success:!o}}import{map as th,mapSeries as eh}from"bluebird";import ee from"colors";import jy from"lodash/chunk";import{map as Yy,mapSeries as zy}from"bluebird";var bi=20;async function Yl(r){let t=[],n=0,o=!1;do{let{repositories:{nodes:i}}=await m(r,Yo,{first:bi,offset:n});t.push(...i),n+=bi,o=i.length===bi}while(o);return t.sort((i,a)=>i.name.localeCompare(a.name))}import Hy from"lodash/keyBy";var Zy=100;async function Wy(r,t){let{createRepository:{repository:n}}=await m(r,Ho,{input:t});return p.info(ee.green(`Successfully created repository "${t.name}"!`)),n}async function Jy(r,t){let{updateRepositories:{repositories:n}}=await m(r,zo,{input:{repositories:t}});return p.info(ee.green(`Successfully updated ${t.length} repositories!`)),n}async function zl(r,t,n=20){let o=!1,i=[],a=await Yl(r),s=Hy(a,"name"),l=t.map(d=>[d,s[d.name]?.id]),u=l.filter(([,d])=>!d).map(([d])=>d);try{p.info(ee.magenta(`Creating "${u.length}" new repositories...`)),await Yy(u,async d=>{let g=await Wy(r,d);i.push(g)},{concurrency:n}),p.info(ee.green(`Successfully synced ${u.length} repositories!`))}catch(d){o=!0,p.info(ee.red(`Failed to create repositories! - ${d.message}`))}let c=l.filter(d=>!!d[1]),f=jy(c,Zy);return p.info(ee.magenta(`Updating "${c.length}" repositories...`)),await zy(f,async d=>{try{let g=await Jy(r,d.map(([h,y])=>({...h,id:y})));i.push(...g),p.info(ee.green(`Successfully updated "${c.length}" repositories!`))}catch(g){o=!0,p.info(ee.red(`Failed to update repositories! - ${g.message}`))}p.info(ee.green(`Synced "${t.length}" repositories!`))}),{repositories:i,success:!o}}var rh=100,Ke="%%%%";async function nh(r,t){let{createCodePackage:{codePackage:n}}=await m(r,ms,{input:t});return p.info(re.green(`Successfully created code package "${t.name}"!`)),n}async function ih(r,t){let{updateCodePackages:{codePackages:n}}=await m(r,us,{input:{codePackages:t}});return p.info(re.green(`Successfully updated ${t.length} code packages!`)),n}async function iL(r,t,n=20){let o=!1,[i,{softwareDevelopmentKits:a}]=await Promise.all([Vl(r),jl(r,Wl(t.map(({type:g,softwareDevelopmentKits:h=[]})=>h.map(({name:y})=>({name:y,codePackageType:g}))).flat(),({name:g,codePackageType:h})=>`${g}${Ke}${h}`),n),zl(r,Wl(t,"repositoryName").map(({repositoryName:g})=>({name:g,url:`https://github.com/${g}`})))]),s=Zl(a,({name:g,codePackageType:h})=>`${g}${Ke}${h}`),l=Zl(i,({name:g,type:h})=>`${g}${Ke}${h}`),u=t.map(g=>[g,l[`${g.name}${Ke}${g.type}`]?.id]),c=u.filter(([,g])=>!g).map(([g])=>g);try{p.info(re.magenta(`Creating "${c.length}" new code packages...`)),await th(c,async({softwareDevelopmentKits:g,...h})=>{await nh(r,{...h,...g?{softwareDevelopmentKitIds:Hl(g.map(({name:y})=>{let C=s[`${y}${Ke}${h.type}`];if(!C)throw new Error(`Failed to find SDK with name: "${y}"`);return C.id}))}:{}})},{concurrency:n}),p.info(re.green(`Successfully synced ${c.length} code packages!`))}catch(g){o=!0,p.info(re.red(`Failed to create code packages! - ${g.message}`))}let f=u.filter(g=>!!g[1]);p.info(re.magenta(`Updating "${f.length}" code packages...`));let d=Xy(f,rh);return await eh(d,async g=>{try{await ih(r,g.map(([{softwareDevelopmentKits:h,repositoryName:y,...C},P])=>({...C,...h?{softwareDevelopmentKitIds:Hl(h.map(({name:T})=>{let R=s[`${T}${Ke}${C.type}`];if(!R)throw new Error(`Failed to find SDK with name: "${T}"`);return R.id}))}:{},id:P}))),p.info(re.green(`Successfully updated "${g.length}" code packages!`))}catch(h){o=!0,p.info(re.red(`Failed to update code packages! - ${h.message}`))}}),p.info(re.green(`Synced "${t.length}" code packages!`)),!o}import oh from"lodash/chunk";import{mapSeries as sh}from"bluebird";var ah=1e3;async function cL(r,t,n){let o=oh(n,ah);await sh(o,async i=>{await m(r,ts,{pluginId:t,rawResults:i})})}var wi=100;async function ph(r){let t=[],n=0,o=!1;do{let{catalogs:{nodes:i}}=await m(r,Mo,{first:wi,offset:n});t.push(...i),n+=wi,o=i.length===wi}while(o);return t.sort((i,a)=>i.integrationName.localeCompare(a.integrationName))}async function fL(r){let t=await ph(r),n=t.reduce((i,a)=>Object.assign(i,{[a.integrationName]:a.title}),{}),o=t.reduce((i,a)=>Object.assign(i,{[a.integrationName]:a.hasApiFunctionality}),{});return{catalogs:t,serviceToTitle:n,serviceToSupportedIntegration:o}}import ch from"got";import{GraphQLClient as lh}from"graphql-request";function xi(r,t){let{version:n}=nm();return new lh(`${r}/graphql`,{headers:{...t,version:n}})}function L(r,t){return xi(r,{Authorization:`Bearer ${t}`})}async function Et(r,t,n){let o=L(r,t),{organization:i}=await m(o,os);return ch.extend({prefixUrl:i.sombra.customerUrl,headers:{Authorization:`Bearer ${t}`,...n?{"X-Sombra-Authorization":`Bearer ${n}`}:{}}})}async function bL(r,t){await m(r,ua,{input:t})}async function Jl(r,t){await m(r,Es,{requestEnricherId:t})}var $i=20;async function Xl(r,t){let n=[],o=0,i=!1;do{let{promptThreads:{nodes:a}}=await m(r,ds,{first:$i,offset:o,filterBy:t});n.push(...a),o+=$i,i=a.length===$i}while(i);return n.sort((a,s)=>a.threadId.localeCompare(s.threadId))}var Di=50;async function tc(r,{requestId:t}){let n=[],o=0,i=!1;do{let{requestIdentifiers:{nodes:a}}=await m(r,Hs,{first:Di,offset:o,requestIds:[t]});n.push(...a),o+=Di,i=a.length===Di}while(i);return n}async function ec(r,{dataSiloId:t}){let{listReducedRequestsForDataSilo:{totalCount:n}}=await m(r,Qs,{input:{dataSiloId:t,isResolved:!1}});return n}var qi=20;async function rc(r){let t=[],n=0,o=!1;do{let{attributeKeys:{nodes:i}}=await m(r,ss,{first:qi,offset:n});t.push(...i),n+=qi,o=i.length===qi}while(o);return t.sort((i,a)=>i.name.localeCompare(a.name))}import Xr from"colors";import*as Q from"io-ts";import nc from"cli-progress";import{valuesOf as je}from"@transcend-io/type-utils";import{RequestAction as uh,RequestOrigin as mh,RequestStatus as dh,IsoCountryCode as fh,IsoCountrySubdivisionCode as gh}from"@transcend-io/privacy-types";import{LanguageKey as yh}from"@transcend-io/internationalization";var WL=Q.intersection([Q.type({id:Q.string,createdAt:Q.string,email:Q.string,type:je(uh),link:Q.string,isSilent:Q.boolean,origin:je(mh),isTest:Q.boolean,coreIdentifier:Q.string,details:Q.string,locale:je(yh),status:je(dh),subjectType:Q.string,country:Q.union([Q.null,je(fh)]),countrySubDivision:Q.union([Q.null,je(gh)]),attributeValues:Q.array(Q.type({id:Q.string,attributeKey:Q.type({name:Q.string,id:Q.string}),name:Q.string}))}),Q.partial({daysRemaining:Q.union([Q.null,Q.number])})]),tn=50;async function it(r,{actions:t=[],statuses:n=[],origins:o=[],text:i,createdAtBefore:a,createdAtAfter:s,isTest:l,isSilent:u,isClosed:c,requestIds:f=[]}={}){p.info(Xr.magenta("Fetching requests..."));let d=new Date().getTime(),g=new nc.SingleBar({},nc.Presets.shades_classic),h=[],y=0,C=!1;do{let{requests:{nodes:I,totalCount:w}}=await m(r,hs,{first:tn,offset:y,filterBy:{text:i,type:t.length>0?t:void 0,status:n.length>0?n:void 0,origin:o.length>0?o:void 0,isTest:l,isSilent:u,isClosed:c,createdAtBefore:a?a.toISOString():void 0,createdAtAfter:s?s.toISOString():void 0}});y===0&&w>tn&&(p.info(Xr.magenta(`Fetching ${w} requests`)),g.start(w,0)),h.push(...I),y+=tn,g.update(y),C=I.length===tn}while(C);g.stop();let T=new Date().getTime()-d;p.info(Xr.green(`Completed fetching of ${h.length} request in "${T/1e3}" seconds.`));let R=h;return f&&f.length>0&&(R=R.filter(I=>f.includes(I.id)),p.info(Xr.green(`Filtered down to ${R.length} requests based on ${f.length} provided IDs.`))),R}import{IdentifierType as hh}from"@transcend-io/privacy-types";import{decodeCodec as Ch,valuesOf as Ih}from"@transcend-io/type-utils";import*as ne from"io-ts";import Ah from"semver";var ic="7.180",Th=ne.type({id:ne.string,name:ne.string,value:ne.string,type:Ih(hh)}),vi=50,Sh=ne.type({identifiers:ne.array(Th)});async function Ye(r,t,{requestId:n}){let o=[],i=0,a=!1,{organization:{sombra:{version:s}}}=await m(r,Cp);if(s&&Ah.lt(s,ic))throw new Error(`Please upgrade Sombra to ${ic} or greater to use this command.`);do{let l;try{l=await t.post("v1/request-identifiers",{json:{first:vi,offset:i,requestId:n}}).json()}catch(c){throw new Error(`Failed to fetch request identifiers: ${c?.response?.body||c?.message}`)}let{identifiers:u}=Ch(Sh,l);o.push(...u),i+=vi,a=u.length===vi}while(a);return o}var Li=50;async function ze(r,{requestId:t}){let n=[],o=0,i=!1;do{let{requestEnrichers:{nodes:a}}=await m(r,Ps,{first:Li,offset:o,requestId:t});n.push(...a),o+=Li,i=a.length===Li}while(i);return n}import oc from"colors";import sc from"cli-progress";var en=100;async function ki(r,{requestId:t,dataSiloId:n,requestStatuses:o,statuses:i,skipLog:a=!1}){let s=new Date().getTime(),l=new sc.SingleBar({},sc.Presets.shades_classic),u=[],c=0,f=!1;do{let{requestDataSilos:{nodes:h,totalCount:y}}=await m(r,Us,{first:en,offset:c,filterBy:{dataSiloId:n,requestId:t,status:i,requestStatus:o}});u.push(...h),c===0&&y>en&&(p.info(oc.magenta(`Fetching ${y} requests`)),l.start(y,0)),c+=en,f=h.length===en,l.update(c)}while(f);l.stop();let g=new Date().getTime()-s;return a||p.info(oc.green(`Completed fetching of ${u.length} request data silos in "${g/1e3}" seconds.`)),u}async function rn(r,{requestId:t,dataSiloId:n}){let o=await ki(r,{requestId:t,dataSiloId:n,skipLog:!0});if(o.length!==1)throw new Error(`Failed to find RequestDataSilo with requestId:${t},dataSiloId:${n}`);return o[0]}import Ph from"got";function ac(r){return Ph.extend({prefixUrl:r})}async function pc(r,{email:t,password:n}){let{determineLoginMethod:{loginMethod:o}}=await m(r,vn,{email:t}),i=await r.rawRequest(Wa,{email:t,password:n,publicKey:o.sombraPublicKey}),{login:{user:a}}=i.data,s=i.headers.get("set-cookie");if(!s||!s.includes("laravel"))throw new Error("Failed to get login cookie in response");return{roles:a.roles,loginCookie:s}}async function lc(r,{email:t,roleId:n}){let{determineLoginMethod:{loginMethod:o}}=await m(r,vn,{email:t,userId:n});await r.rawRequest(Ja,{id:n,publicKey:o.sombraPublicKey})}var Oi=20;async function Sk(r){let t=[],n=0,o=!1;do{let{users:{nodes:i}}=await m(r,Zs,{first:Oi,offset:n});t.push(...i),n+=Oi,o=i.length===Oi}while(o);return t.sort((i,a)=>i.email.localeCompare(a.email))}async function cc(r,t){let{createApiKey:{apiKey:n}}=await m(r,Wo,{input:t});return n}async function uc(r,t){await m(r,Jo,{id:t})}var Ni=20;async function $k(r,t){let n=[],o=0,i=!1;do{let{requestFiles:{nodes:a}}=await m(r,Ws,{first:Ni,offset:o,filterBy:t});n.push(...a),o+=Ni,i=a.length===Ni}while(i);return n.sort((a,s)=>a.remoteId.localeCompare(s.remoteId))}async function mc(r,{id:t,bundleType:n}){await m(r,Ra,{airgapBundleId:t,bundleType:n})}async function dc(r,{id:t,bundleType:n}){await m(r,Ea,{airgapBundleId:t,bundleType:n})}async function nn(r,t){let{reportPromptRun:{promptRun:n}}=await m(r,Xs,{input:{...t,promptRunMessages:t.promptRunMessages.map(({content:o,...i})=>({...i,message:o}))}});return n.id}async function Mk(r,{promptRunId:t,promptRunMessages:n=[],...o}){let{addMessagesToPromptRun:{promptRun:i}}=await m(r,ta,{input:{...o,...t,promptRunMessages:n.map(({content:a,...s})=>({...s,message:a}))}});return i.id}import gc from"cli-progress";async function xN({requestActions:r,auth:t,requestIds:n,statuses:o=[ce.Compiling,ce.RequestMade,ce.Delayed,ce.Approving,ce.Secondary,ce.Enriching,ce.Waiting,ce.SecondaryApproving],createdAtAfter:i,createdAtBefore:a,concurrency:s=100,transcendUrl:l=x}){let u=L(l,t),c=new Date().getTime(),f=new gc.SingleBar({},gc.Presets.shades_classic),d=await it(u,{actions:r,statuses:o,createdAtBefore:a,createdAtAfter:i,isSilent:!1,requestIds:n});p.info(fc.magenta(`Marking "${d.length}" as silent mode.`));let g=0;f.start(d.length,0),await Eh(d,async C=>{await m(u,ae,{input:{id:C.id,isSilent:!0}}),g+=1,f.update(g)},{concurrency:s}),f.stop();let y=new Date().getTime()-c;return p.info(fc.green(`Successfully marked ${g} requests as silent mode in "${y/1e3}" seconds!`)),d.length}import{getValues as Rh,getEntries as bh}from"@transcend-io/type-utils";import wh from"inquirer";import xh from"lodash/startCase";async function yc(r,t){let n=Rh(Be).filter(i=>!t.getValue("columnNames",i)),o=n.length===0?{}:await wh.prompt(n.map(i=>{let a=xh(i.replace("ColumnName","")),s=Ve(r,a,Pl[i],!!El[i]);return{name:i,message:`Choose the column that will be used to map in the field: ${a}`,type:"list",default:s[0],choices:s}}));return await Promise.all(bh(o).map(([i,a])=>t.setValue(a,"columnNames",i))),o}import Re from"colors";import{CompletedRequestStatus as $h,RequestAction as Dh,IsoCountryCode as qh,IsoCountrySubdivisionCode as vh}from"@transcend-io/privacy-types";import{LanguageKey as Lh}from"@transcend-io/internationalization";async function hc(r,t,{state:n,columnNameMap:o}){let i=C=>n.getValue("columnNames",C)||o[C],{internalSubjects:a}=await m(r,Er);p.info(Re.magenta("Determining mapping of columns for request action"));let s=await Pe(Xt(t,i("requestType")),Object.values(Dh),n.getValue("requestTypeToRequestAction"));await n.setValue(s,"requestTypeToRequestAction"),p.info(Re.magenta("Determining mapping of columns for subject"));let l=await Pe(Xt(t,i("subjectType")),a.map(({type:C})=>C),n.getValue("subjectTypeToSubjectName"));await n.setValue(l,"subjectTypeToSubjectName"),p.info(Re.magenta("Determining mapping of columns for locale"));let u=await Pe(Xt(t,i("locale")),Object.values(Lh),n.getValue("languageToLocale"));await n.setValue(u,"languageToLocale"),p.info(Re.magenta("Determining mapping of columns for request status")),p.info(Re.magenta("Determining mapping of columns for request status"));let c=i("requestStatus"),f=c===Z?{}:await Pe(Xt(t,c),[...Object.values($h),Z],n.getValue("statusToRequestStatus"));await n.setValue(f,"statusToRequestStatus"),p.info(Re.magenta("Determining mapping of columns for country"));let d=i("country"),g=d===Z?{}:await Pe(Xt(t,d),[...Object.values(qh),Z],n.getValue("regionToCountry"));await n.setValue(g,"regionToCountry"),p.info(Re.magenta("Determining mapping of columns for country sub division"));let h=i("countrySubDivision"),y=h===Z?{}:await Pe(Xt(t,h),[...Object.values(vh),Z],n.getValue("regionToCountrySubDivision"));await n.setValue(y,"regionToCountrySubDivision")}import{LanguageKey as kh}from"@transcend-io/internationalization";import{DateFromISOString as Oh}from"io-ts-types/lib/DateFromISOString";import*as st from"io-ts";import{NORMALIZE_PHONE_NUMBER as Nh,CompletedRequestStatus as _h,RequestAction as Gh,IdentifierType as on,IsoCountryCode as Mh,IsoCountrySubdivisionCode as Fh}from"@transcend-io/privacy-types";import{valuesOf as cr}from"@transcend-io/type-utils";var Uh=st.record(st.string,st.array(st.intersection([st.type({value:st.string}),st.partial({name:st.string})]))),n_=st.intersection([st.type({email:st.string,attestedExtraIdentifiers:Uh,coreIdentifier:st.string,requestType:cr(Gh),subjectType:st.string}),st.partial({country:cr(Mh),countrySubDivision:cr(Fh),attributes:st.array(Dl),status:cr(_h),createdAt:Oh,dataSiloIds:st.array(st.string),locale:cr(kh)})]);function Bh(r,t,n){if(t===on.Email)return r.toLowerCase();if(t===on.Phone){let o=r.replace(Nh,"").replace(/[()]/g,"").replace(/[–]/g,"").replace(/[:]/g,"").replace(/[‭‬]/g,"").replace(/[A-Za-z]/g,"");return o?o.startsWith("+")?o:`+${n}${o}`:""}return r}function Cc(r,t,{columnNameMap:n,identifierNameMap:o,attributeNameMap:i,requestAttributeKeys:a,defaultPhoneCountryCode:s="1"}){let l=u=>t.getValue("columnNames",u)||n[u];return r.map(u=>{let c={};Object.entries(o).filter(([,h])=>h!==Z).forEach(([h,y])=>{let C=Object.values(on).includes(h)?h:on.Custom,P=u[y];if(P){let T=Bh(P,C,s);T&&(c[C]||(c[C]=[]),c[C].push({value:T,name:h}))}});let f=[];Object.entries(i).filter(([,h])=>h!==Z).forEach(([h,y])=>{let C=u[y];if(C){let P=a.find(T=>T.name===h)?.type==="MULTI_SELECT";f.push({values:P?Pt(C):C,key:h})}});let d=l("requestType"),g=l("subjectType");return[u,{email:u[l("email")],attestedExtraIdentifiers:c,attributes:f,coreIdentifier:u[l("coreIdentifier")],requestType:d===lr?t.getValue("requestTypeToRequestAction",gi):t.getValue("requestTypeToRequestAction",u[d]),subjectType:g===lr?t.getValue("subjectTypeToSubjectName",gi):t.getValue("subjectTypeToSubjectName",u[g]),...l("locale")!==Z&&u[l("locale")]?{locale:t.getValue("languageToLocale",u[l("locale")])}:{},...l("country")!==Z&&u[l("country")]?{country:t.getValue("regionToCountry",u[l("country")])}:{},...l("countrySubDivision")!==Z&&u[l("countrySubDivision")]?{countrySubDivision:t.getValue("regionToCountrySubDivision",u[l("countrySubDivision")])}:{},...l("requestStatus")!==Z&&t.getValue("statusToRequestStatus",u[l("requestStatus")])!==Z&&u[l("requestStatus")]?{status:t.getValue("statusToRequestStatus",u[l("requestStatus")])}:{},...l("createdAt")!==Z&&u[l("createdAt")]?{createdAt:new Date(u[l("createdAt")])}:{},...l("dataSiloIds")!==Z&&u[l("dataSiloIds")]?{dataSiloIds:Pt(u[l("dataSiloIds")])}:{}}]})}import{map as Wh}from"bluebird";import{existsSync as _i,mkdirSync as Gi,writeFileSync as Jh}from"fs";import{dirname as Xh,join as Ec}from"path";import Rc from"colors";import{RequestAction as tC,RequestStatus as Mi}from"@transcend-io/privacy-types";import bc from"cli-progress";import{map as Qh}from"bluebird";import Ic from"colors";import Ac from"cli-progress";import*as $ from"io-ts";import{decodeCodec as Vh,valuesOf as Kh}from"@transcend-io/type-utils";import{TableEncryptionType as jh}from"@transcend-io/privacy-types";var Tc=$.type({defaultMessage:$.string,id:$.string}),Yh=$.type({downloadKey:$.string,error:$.union([$.null,$.string]),mimetype:$.string,size:$.string,fileName:$.string,dataPoint:$.type({id:$.string,title:$.union([Tc,$.null]),description:$.union([Tc,$.null]),name:$.string,slug:$.string,encryption:$.union([Kh(jh),$.null]),dataSilo:$.type({id:$.string,title:$.string,description:$.string,type:$.string,outerType:$.union([$.string,$.null])}),path:$.array($.string)})}),zh=$.type({nodes:$.array(Yh),totalCount:$.number,_links:$.partial({next:$.union([$.string,$.null]),previous:$.union([$.string,$.null])})});async function Sc(r,{sombra:t,concurrency:n=5,limit:o=100}){p.info(Ic.magenta(`Pulling file metadata for ${r.length} requests`));let i=new Date().getTime(),a=new Ac.SingleBar({},Ac.Presets.shades_classic),s=0;a.start(r.length,0);let l=await Qh(r,async f=>{let d=[],g=!0,h=0;for(;g;){let y;try{let C=await t.get(`v1/data-subject-request/${f.id}/download-keys`,{searchParams:{limit:o,offset:h}}).json();y=Vh(zh,C),d.push(...y.nodes),h+=o,g=!!y._links.next&&y.nodes.length===o}catch(C){throw new Error(`Received an error from server: ${C?.response?.body||C?.message}`)}}return s+=1,a.update(s),[f,d]},{concurrency:n});a.stop();let c=new Date().getTime()-i;return p.info(Ic.green(`Successfully downloaded file metadata ${r.length} requests in "${c/1e3}" seconds!`)),l}import{map as Hh}from"bluebird";import Zh from"colors";async function Pc(r,{requestId:t,sombra:n,onFileDownloaded:o,concurrency:i=20}){await Hh(r,async a=>{try{await n.get("v1/files",{searchParams:{downloadKey:a.downloadKey}}).buffer().then(s=>o(a,s))}catch(s){if(s?.response?.body?.includes("fileMetadata#verify")){p.error(Zh.red(`Failed to pull file for: ${a.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 new Error(`Received an error from server: ${s?.response?.body||s?.message}`)}},{concurrency:i})}async function w_({auth:r,folderPath:t,requestIds:n,createdAtBefore:o,sombraAuth:i,createdAtAfter:a,statuses:s=[Mi.Approving,Mi.Downloadable],concurrency:l=5,transcendUrl:u=x,approveAfterDownload:c=!1}){let f=L(u,r),d=await Et(u,r,i);_i(t)||Gi(t);let g=await it(f,{actions:[tC.Access],createdAtBefore:o,createdAtAfter:a,statuses:s,requestIds:n}),h=await Sc(g,{sombra:d,concurrency:l}),y=new Date().getTime(),C=new bc.SingleBar({},bc.Presets.shades_classic),P=0,T=0;C.start(g.length,0),await Wh(h,async([w,N])=>{let dt=Ec(t,w.id);_i(dt)||Gi(dt),await Pc(N,{sombra:d,requestId:w.id,onFileDownloaded:(J,Y)=>{let nt=Ec(dt,J.fileName),lt=Xh(nt);_i(lt)||Gi(lt,{recursive:!0}),Jh(nt,Y)}}),c&&w.status===Mi.Approving&&(await m(f,Rr,{input:{requestId:w.id}}),T+=1),P+=1,C.update(P)},{concurrency:l}),C.stop();let I=new Date().getTime()-y;return p.info(Rc.green(`Successfully downloaded ${P} requests in "${I/1e3}" seconds!`)),T>0&&p.info(Rc.green(`Approved ${T} requests in Transcend.`)),g.length}import*as tt from"io-ts";import eC from"lodash/uniq";import{valuesOf as sn,decodeCodec as rC}from"@transcend-io/type-utils";import{IsoCountryCode as nC,IsoCountrySubdivisionCode as iC,RequestAction as oC,RequestStatus as sC}from"@transcend-io/privacy-types";var Fi=tt.type({id:tt.string,link:tt.string,status:sn(sC),type:sn(oC),subjectType:tt.string,email:tt.union([tt.null,tt.string]),coreIdentifier:tt.string,isSilent:tt.boolean,isTest:tt.boolean,country:tt.union([tt.null,sn(nC)]),countrySubDivision:tt.union([tt.null,sn(iC)]),attributeValues:tt.array(tt.type({attributeKey:tt.type({name:tt.string}),name:tt.string}))});async function wc(r,t,{details:n="",isTest:o=!1,emailIsVerified:i=!0,skipSendingReceipt:a=!1,isSilent:s=!0,additionalAttributes:l=[]}={}){let u=[...l];(t.attributes||[]).forEach(d=>{let g=u.find(h=>h.key===d.key);g?(g.values.push(...d.values),g.values=eC(g.values)):u.push(d)});let c;try{c=await r.post("v1/data-subject-request",{json:{type:t.requestType,subject:{coreIdentifier:t.coreIdentifier,email:t.email,emailIsVerified:i,attestedExtraIdentifiers:t.attestedExtraIdentifiers},subjectType:t.subjectType,isSilent:s,isTest:o,skipSendingReceipt:a,...t.locale?{locale:t.locale}:{},details:n,attributes:u,...t.country||t.countrySubDivision?{region:{...t.country?{country:t.country}:t.countrySubDivision?{country:t.countrySubDivision.split("-")[0]}:{},...t.countrySubDivision?{countrySubDivision:t.countrySubDivision}:{}}}:{},...t.createdAt?{createdAt:t.createdAt}:{},...t.dataSiloIds?{dataSiloIds:t.dataSiloIds}:{},...t.status?{completedRequestStatus:t.status}:{}}}).json()}catch(d){throw new Error(`Received an error from server: ${d?.response?.body||d?.message}`)}let{request:f}=rC(tt.type({request:Fi}),c);return f}import{map as aC}from"bluebird";import Ui from"colors";import{RequestStatus as pC}from"@transcend-io/privacy-types";import xc from"cli-progress";async function B_({requestActions:r,requestOrigins:t,auth:n,silentModeBefore:o,createdAtAfter:i,createdAtBefore:a,concurrency:s=50,transcendUrl:l=x}){let u=L(l,n),c=new Date().getTime(),f=new xc.SingleBar({},xc.Presets.shades_classic),d=await it(u,{actions:r,statuses:[pC.Approving],createdAtAfter:i,origins:t,createdAtBefore:a});p.info(Ui.magenta(`Approving "${d.length}" requests.`));let g=0,h=0;f.start(d.length,0),await aC(d,async P=>{o&&new Date(o)>new Date(P.createdAt)&&await m(u,ae,{input:{id:P.id,isSilent:!0}});try{await m(u,Rr,{input:{requestId:P.id}})}catch(T){T.message.includes("Request must be in an approving state,")&&(h+=1)}g+=1,f.update(g)},{concurrency:s}),f.stop();let C=new Date().getTime()-c;return h>0&&p.info(Ui.yellow(`${h} requests were skipped.`)),p.info(Ui.green(`Successfully approved ${g} requests in "${C/1e3}" seconds!`)),d.length}import{map as lC}from"bluebird";import $c from"colors";import{RequestAction as cC}from"@transcend-io/privacy-types";import Dc from"cli-progress";async function W_({requestActions:r=Object.values(cC),auth:t,requestIds:n,createdAtBefore:o,days:i=45,daysLeft:a=10,createdAtAfter:s,emailTemplate:l="Additional Time Needed",concurrency:u=100,transcendUrl:c=x}){let f=L(c,t),d=new Date().getTime(),g=new Dc.SingleBar({},Dc.Presets.shades_classic),y=(await Te(f,l)).find(I=>I.title===l);if(!y)throw new Error(`Failed to find a template with title: "${l}"`);let C=await it(f,{actions:r,createdAtBefore:o,createdAtAfter:s,isSilent:!1,isClosed:!1,requestIds:n});C=C.filter(I=>typeof I.daysRemaining=="number"&&I.daysRemaining<a),p.info($c.magenta(`Notifying "${C.length}" that more time is needed.`));let P=0;g.start(C.length,0),await lC(C,async I=>{await m(f,Is,{input:{requestId:I.id,template:y.template.defaultMessage,subject:y.subject.defaultMessage,additionalTime:i}}),P+=1,g.update(P)},{concurrency:u}),g.stop();let R=new Date().getTime()-d;return p.info($c.green(`Successfully marked ${P} requests as silent mode in "${R/1e3}" seconds!`)),C.length}import uC from"inquirer";async function qc(r,t,n){let{initializer:o}=await m(r,No),i=o.identifiers.filter(({name:s})=>!n.getValue("identifierNames",s)&&!Wr.includes(s)),a=i.length===0?{}:await uC.prompt(i.map(({name:s})=>{let l=Ve(t,s,!1);return{name:s,message:`Choose the column that will be used to map in the identifier: ${s}`,type:"list",default:l[0],choices:l}}));return await Promise.all(Object.entries(a).map(([s,l])=>n.setValue(l,"identifierNames",s))),{...n.getValue("identifierNames"),...a}}import{map as mC}from"bluebird";import vc from"colors";import{RequestStatus as ue}from"@transcend-io/privacy-types";import Lc from"cli-progress";async function gG({requestActions:r,cancellationTitle:t,auth:n,requestIds:o,silentModeBefore:i,createdAtBefore:a,createdAtAfter:s,statuses:l=[ue.Compiling,ue.RequestMade,ue.Delayed,ue.Approving,ue.Secondary,ue.Enriching,ue.Waiting,ue.SecondaryApproving],concurrency:u=50,transcendUrl:c=x}){let f=L(c,n),d=new Date().getTime(),g=new Lc.SingleBar({},Lc.Presets.shades_classic),h;if(t){let I=(await Te(f,t)).find(w=>w.title===t);if(!I)throw new Error(`Failed to find a template with title: "${t}"`);h=I}let y=await it(f,{actions:r,createdAtBefore:a,createdAtAfter:s,statuses:l,requestIds:o});p.info(vc.magenta(`Canceling "${y.length}" requests${h?` Using template: ${h.title}`:""}.`));let C=0;g.start(y.length,0),await mC(y,async R=>{i&&new Date(i)>new Date(R.createdAt)&&await m(f,ae,{input:{id:R.id,isSilent:!0}}),await m(f,Cs,{input:{requestId:R.id,...h?{subject:`Re: ${h.subject.defaultMessage}`,template:h.template.defaultMessage}:{}}}),C+=1,g.update(C)},{concurrency:u}),g.stop();let T=new Date().getTime()-d;return p.info(vc.green(`Successfully canceled ${C} requests in "${T/1e3}" seconds!`)),y.length}import dC from"inquirer";async function kc(r,t,n,o){let i=o.filter(({name:s})=>!n.getValue("attributeNames",s)),a=i.length===0?{}:await dC.prompt(i.map(({name:s})=>{let l=Ve(t,s,!1);return{name:s,message:`Choose the column that will be used to map in the attribute: ${s}`,type:"list",default:l[0],choices:l}}));return await Promise.all(Object.entries(a).map(([s,l])=>n.setValue(l,"attributeNames",s))),{...n.getValue("attributeNames"),...a}}var Oc=/{\\"message\\":\\"(.+?)\\",/;function an(r){return Oc.test(r)?Oc.exec(r)[1]:null}import _t from"colors";import{map as fC}from"bluebird";import*as ur from"io-ts";import gC from"lodash/uniq";import Nc from"cli-progress";import{join as yC}from"path";import{PersistedState as _c}from"@transcend-io/persisted-state";async function UG({cacheFilepath:r,requestReceiptFolder:t,file:n,auth:o,sombraAuth:i,concurrency:a=100,defaultPhoneCountryCode:s="1",transcendUrl:l=x,attributes:u=[],emailIsVerified:c=!0,skipFilterStep:f=!1,skipSendingReceipt:d=!0,isTest:g=!1,isSilent:h=!0,debug:y=!1,dryRun:C=!1}){let P=new Date().getTime(),T=new Nc.SingleBar({},Nc.Presets.shades_classic),R=ql(u),I=new _c(r,Rl,{columnNames:{},requestTypeToRequestAction:{},subjectTypeToSubjectName:{},languageToLocale:{},statusToRequestStatus:{},identifierNames:{},attributeNames:{},regionToCountrySubDivision:{},regionToCountry:{}}),w=yC(t,`tr-request-upload-${new Date().toISOString()}-${n.split("/").pop()}`.replace(".csv",".json")),N=new _c(w,bl,{successfulRequests:[],duplicateRequests:[],failingRequests:[]}),dt=await Et(l,o,i),J=Yt(n,ur.record(ur.string,ur.string)),Y=gC(J.map(It=>Object.keys(It)).flat());if(J.length===0)throw new Error("No Requests found in list! Ensure the first row of the CSV is a header and the rest are requests.");if(y){let It=J[0];p.info(_t.magenta(`First request: ${JSON.stringify(It,null,2)}`))}let nt=f?J:await kl(J),lt=L(l,o),X=await rc(lt),gt=await yc(Y,I),yt=await qc(lt,Y,I),at=await kc(lt,Y,I,X);await hc(lt,nt,{state:I,columnNameMap:gt});let ct=Cc(nt,I,{defaultPhoneCountryCode:s,columnNameMap:gt,identifierNameMap:yt,attributeNameMap:at,requestAttributeKeys:X});y||T.start(ct.length,0);let wt=0;await fC(ct,async([It,Rt],At)=>{let E=y?`email:${Rt.email} | coreIdentifier:${Rt.coreIdentifier}`:`row:${At.toString()}`;if(y&&p.info(_t.magenta(`[${At+1}/${ct.length}] Importing: ${JSON.stringify(Rt,null,2)}`)),C){p.info(_t.magenta("Bailing out on dry run because dryRun is set"));return}try{let M=await wc(dt,Rt,{details:`Uploaded by Transcend Cli: "tr-request-upload" : ${JSON.stringify(It,null,2)}`,isTest:g,emailIsVerified:c,skipSendingReceipt:d,isSilent:h,additionalAttributes:R});y&&(p.info(_t.green(`[${At+1}/${ct.length}] Successfully submitted the test data subject request: "${E}"`)),p.info(_t.green(`[${At+1}/${ct.length}] View it at: "${M.link}"`)));let ot=N.getValue("successfulRequests");ot.push({id:M.id,link:M.link,rowIndex:At,coreIdentifier:M.coreIdentifier,attemptedAt:new Date().toISOString()}),await N.setValue(ot,"successfulRequests")}catch(M){let ot=`${M.message} - ${JSON.stringify(M.response?.body,null,2)}`,ft=an(ot);if(ft==="Client error: You have already made this request."){y&&p.info(_t.yellow(`[${At+1}/${ct.length}] Skipping request as it is a duplicate`));let vt=N.getValue("duplicateRequests");vt.push({coreIdentifier:Rt.coreIdentifier,rowIndex:At,attemptedAt:new Date().toISOString()}),await N.setValue(vt,"duplicateRequests")}else{let vt=N.getValue("failingRequests");vt.push({...Rt,rowIndex:At,error:ft||ot,attemptedAt:new Date().toISOString()}),await N.setValue(vt,"failingRequests"),y&&(p.error(_t.red(ft||ot)),p.error(_t.red(`[${At+1}/${ct.length}] Failed to submit request for: "${E}"`)))}}wt+=1,y||T.update(wt)},{concurrency:a}),T.stop();let qt=new Date().getTime()-P;p.info(_t.green(`Completed upload in "${qt/1e3}" seconds.`)),N.getValue("duplicateRequests").length>0&&p.info(_t.yellow(`Encountered "${N.getValue("duplicateRequests").length}" duplicate requests. See "${w}" to review the core identifiers for these requests.`)),N.getValue("failingRequests").length>0&&(p.error(_t.red(`Encountered "${N.getValue("failingRequests").length}" errors. See "${w}" to review the error messages and inputs.`)),process.exit(1))}import{PersistedState as AC}from"@transcend-io/persisted-state";import{map as TC}from"bluebird";import Fc from"cli-progress";import Qi from"colors";import*as Ht from"io-ts";import SC from"lodash/difference";import{join as PC}from"path";import*as Gc from"io-ts";import hC from"lodash/groupBy";import{apply as CC,decodeCodec as IC}from"@transcend-io/type-utils";import{IdentifierType as Bi}from"@transcend-io/privacy-types";async function Mc(r,t,{sendEmailReceipt:n=!1,skipWaitingPeriod:o=!1,emailIsVerified:i=!0,requestIdentifiers:a=[]}={}){let s=await r.post("v1/data-subject-request",{json:{type:t.type,subject:{coreIdentifier:t.coreIdentifier,email:t.email,emailIsVerified:i,...a.length>0?{attestedExtraIdentifiers:CC(hC(a.filter(u=>!(u.name==="email"&&u.value===t.email)&&!Wr.includes(u.name)).map(u=>({...u,type:Object.values(Bi).includes(u.name)?u.name:Bi.Custom})),"type"),(u,c)=>u.map(({name:f,value:d})=>({...c===Bi.Custom?{name:f}:{},value:d})))}:{}},requestId:t.id,subjectType:t.subjectType,isSilent:t.isSilent,isTest:t.isTest,locale:t.locale,skipWaitingPeriod:o,createdAt:t.createdAt,details:`Restarted by Transcend cli: "tr-request-restart" - ${t.details}`,skipSendingReceipt:!n}}).json(),{request:l}=IC(Gc.type({request:Fi}),s);return l}var EC=Ht.intersection([Jr,Ht.type({error:Ht.string})]),RC=Ht.type({restartedRequests:Ht.array(Jr),failingRequests:Ht.array(EC)});async function aM({requestReceiptFolder:r,auth:t,sombraAuth:n,requestActions:o,requestStatuses:i,createdAtBefore:a,createdAtAfter:s,transcendUrl:l=x,requestIds:u=[],createdAt:c=new Date,silentModeBefore:f,sendEmailReceipt:d=!1,emailIsVerified:g=!0,copyIdentifiers:h=!1,skipWaitingPeriod:y=!1,concurrency:C=20}){let P=new Date().getTime(),T=new Fc.SingleBar({},Fc.Presets.shades_classic),R=PC(r,`tr-request-restart-${new Date().toISOString()}`),I=new AC(R,RC,{restartedRequests:[],failingRequests:[]}),w=await Et(l,t,n),N=L(l,t),J=(await it(N,{actions:o,statuses:i,createdAtBefore:a,createdAtAfter:s})).filter(X=>new Date(X.createdAt)<c);if(p.info(`Found ${J.length} requests to process`),h&&p.info("copyIdentifiers detected - All Identifiers will be copied."),d&&p.info("sendEmailReceipt detected - Email receipts will be sent."),y&&p.info("skipWaitingPeriod detected - Waiting period will be skipped."),u.length>0&&u.length!==J.length){let X=SC(u,J.map(({id:gt})=>gt));X.length>0&&(p.error(Qi.red(`Failed to find the following requests by ID: ${X.join(",")}.`)),process.exit(1))}let Y=0;T.start(J.length,0),await TC(J,async(X,gt)=>{try{let yt=h?await Ye(N,w,{requestId:X.id}):[],at=await Mc(w,{...X,isSilent:f&&new Date(X.createdAt)<f?!0:X.isSilent},{requestIdentifiers:yt,skipWaitingPeriod:y,sendEmailReceipt:d,emailIsVerified:g}),ct=I.getValue("restartedRequests");ct.push({id:at.id,link:at.link,rowIndex:gt,coreIdentifier:at.coreIdentifier,attemptedAt:new Date().toISOString()}),await I.setValue(ct,"restartedRequests")}catch(yt){let at=`${yt.message} - ${JSON.stringify(yt.response?.body,null,2)}`,ct=an(at),wt=I.getValue("failingRequests");wt.push({id:X.id,link:X.link,rowIndex:gt,coreIdentifier:X.coreIdentifier,attemptedAt:new Date().toISOString(),error:ct||at}),await I.setValue(wt,"failingRequests")}Y+=1,T.update(Y)},{concurrency:C}),T.stop();let lt=new Date().getTime()-P;p.info(Qi.green(`Completed restarting of requests in "${lt/1e3}" seconds.`)),I.getValue("failingRequests").length>0&&(p.error(Qi.red(`Encountered "${I.getValue("failingRequests").length}" errors. See "${R}" to review the error messages and inputs.`)),process.exit(1))}import{map as bC,mapSeries as wC}from"bluebird";import Uc from"colors";import Bc from"cli-progress";import{RequestEnricherStatus as Qc,RequestStatus as xC}from"@transcend-io/privacy-types";async function yM({enricherIds:r,auth:t,concurrency:n=100,transcendUrl:o=x}){let i=L(o,t),a=new Date().getTime(),s=await it(i,{statuses:[xC.Enriching]});p.info(Uc.magenta(`Processing enricher: "${r.join(",")}" fetched "${s.length}" in enriching status.`));let l=new Bc.SingleBar({},Bc.Presets.shades_classic),u=0;l.start(s.length,0);let c=0;await bC(s,async g=>{let y=(await ze(i,{requestId:g.id})).filter(C=>r.includes(C.enricher.id)&&![Qc.Resolved,Qc.Skipped].includes(C.status));y.length>0&&await wC(y,async C=>{try{await m(i,Rs,{requestEnricherId:C.id}),c+=1}catch(P){if(!P.message.includes("Client error: Cannot skip Request enricher because it has already completed"))throw P}}),u+=1,l.update(u)},{concurrency:n}),l.stop();let d=new Date().getTime()-a;return p.info(Uc.green(`Successfully skipped "${c}" for "${s.length}" requests in "${d/1e3}" seconds!`)),s.length}import{RequestEnricherStatus as $C,RequestStatus as DC}from"@transcend-io/privacy-types";import{map as Vc}from"bluebird";import Kc from"cli-progress";import Vi from"colors";import qC from"lodash/difference";async function wM({auth:r,requestActions:t=[],createdAtBefore:n,createdAtAfter:o,transcendUrl:i=x,requestEnricherStatuses:a=Object.values($C),requestIds:s=[],enricherId:l,concurrency:u=20}){let c=new Date().getTime(),f=new Kc.SingleBar({},Kc.Presets.shades_classic),d=L(i,r);p.info(Vi.magenta("Fetching requests to restart..."));let g=await it(d,{actions:t,statuses:[DC.Enriching],createdAtBefore:n,createdAtAfter:o,requestIds:s}),h=0;if(s.length>0&&s.length!==g.length){let T=qC(s,g.map(({id:R})=>R));T.length>0&&(p.error(Vi.red(`Failed to find the following requests by ID: ${T.join(",")}.`)),process.exit(1))}let y=0;f.start(g.length,0),await Vc(g,async T=>{let I=(await ze(d,{requestId:T.id})).filter(w=>w.enricher.id===l&&a.includes(w.status));await Vc(I,async w=>{await Jl(d,w.id),h+=1}),y+=1,f.update(y)},{concurrency:u}),f.stop();let P=new Date().getTime()-c;p.info(Vi.green(`Completed restarting of ${g.length} requests and ${h} enrichers in "${P/1e3}" seconds.`))}import{map as vC}from"bluebird";import jc from"colors";import{RequestStatus as Yc}from"@transcend-io/privacy-types";import zc from"cli-progress";async function _M({requestActions:r,dataSiloId:t,auth:n,concurrency:o=20,transcendUrl:i=x}){let a=L(i,n),s=new Date().getTime(),l=new zc.SingleBar({},zc.Presets.shades_classic),u=await it(a,{actions:r,statuses:[Yc.Compiling,Yc.Approving]});p.info(jc.magenta(`Retrying requests for Data Silo: "${t}", restarting "${u.length}" requests.`));let c=0,f=0;l.start(u.length,0),await vC(u,async h=>{try{let y=await rn(a,{requestId:h.id,dataSiloId:t});await m(a,Bs,{requestDataSiloId:y.id})}catch(y){if(!y.message.includes("Failed to find RequestDataSilo"))throw y;f+=1}c+=1,l.update(c)},{concurrency:o}),l.stop();let g=new Date().getTime()-s;return p.info(jc.green(`Successfully notified Transcend in "${g/1e3}" seconds for ${c} requests, ${f} requests were skipped because data silo was not attached to the request!`)),u.length}import{map as LC}from"bluebird";import Hc from"colors";import Zc from"lodash/groupBy";async function YM({auth:r,sombraAuth:t,actions:n=[],statuses:o=[],identifierSearch:i,pageLimit:a=100,transcendUrl:s=x,createdAtBefore:l,createdAtAfter:u,isTest:c}){let f=L(s,r),d=await Et(s,r,t),g="";l&&(g+=` before ${l.toISOString()}`),u&&(g+=`${g?", and":""} after ${u.toISOString()}`),p.info(Hc.magenta(`${n.length>0?`Pulling requests of type "${n.join('" , "')}"`:"Pulling all requests"}${g}`));let h=await it(f,{actions:n,text:i,statuses:o,createdAtBefore:l,createdAtAfter:u,isTest:c}),y=await LC(h,async P=>{let T=await Ye(f,d,{requestId:P.id});return{...P,requestIdentifiers:T}},{concurrency:a});p.info(Hc.magenta(`Pulled ${y.length} requests`));let C=y.map(({attributeValues:P,requestIdentifiers:T,id:R,email:I,type:w,status:N,subjectType:dt,details:J,createdAt:Y,country:nt,locale:lt,origin:X,countrySubDivision:gt,isSilent:yt,isTest:at,coreIdentifier:ct,...wt})=>({"Request ID":R,"Created At":Y,Email:I,"Core Identifier":ct,"Request Type":w,"Data Subject Type":dt,Status:N,Country:nt,"Country Sub Division":gt,Details:J,Origin:X,"Silent Mode":yt,"Is Test Request":at,Language:lt,...wt,...Object.entries(Zc(P,"attributeKey.name")).reduce((Mt,[qt,It])=>Object.assign(Mt,{[qt]:It.map(({name:Rt})=>Rt).join(",")}),{}),...Object.entries(Zc(T,"name")).reduce((Mt,[qt,It])=>Object.assign(Mt,{[qt]:It.map(({value:Rt})=>Rt).join(",")}),{})}));return{requestsWithRequestIdentifiers:y,requestsFormattedForCsv:C}}import{map as kC}from"bluebird";import Wc from"colors";import Jc from"cli-progress";import{RequestStatus as Xc}from"@transcend-io/privacy-types";async function rF({dataSiloId:r,auth:t,concurrency:n=100,status:o="SKIPPED",transcendUrl:i=x,requestStatuses:a=[Xc.Compiling,Xc.Secondary]}){let s=L(i,t),l=new Date().getTime(),u=await ki(s,{dataSiloId:r,requestStatuses:a});p.info(Wc.magenta(`Processing data silo: "${r}" marking "${u.length}" requests as skipped.`));let c=new Jc.SingleBar({},Jc.Presets.shades_classic),f=0;c.start(u.length,0),await kC(u,async h=>{try{await m(s,wr,{requestDataSiloId:h.id,status:o})}catch(y){if(!y.message.includes("Client error: Request must be active:"))throw y}f+=1,c.update(f)},{concurrency:n}),c.stop();let g=new Date().getTime()-l;return p.info(Wc.green(`Successfully skipped "${u.length}" requests in "${g/1e3}" seconds!`)),u.length}import{map as OC}from"bluebird";import tu from"colors";import{RequestStatus as NC}from"@transcend-io/privacy-types";import eu from"cli-progress";async function mF({requestActions:r,identifierNames:t,auth:n,concurrency:o=20,transcendUrl:i=x}){let a=L(i,n),s=new Date().getTime(),l=new eu.SingleBar({},eu.Presets.shades_classic),u=await it(a,{actions:r,statuses:[NC.Enriching]});p.info(tu.magenta("Fetched requests in preflight/enriching state."));let c=0,f=0;l.start(u.length,0),await OC(u,async h=>{let C=(await tc(a,{requestId:h.id})).filter(({isVerifiedAtLeastOnce:P,name:T})=>P===!1&&t.includes(T)).map(({id:P})=>P);C.length>0&&(await m(a,zs,{input:{requestId:h.id,requestIdentifierIds:C}}),f+=C.length),c+=1,l.update(c)},{concurrency:o}),l.stop();let g=new Date().getTime()-s;return p.info(tu.green(`Successfully cleared out unverified identifiers "${g/1e3}" seconds for ${c} requests, ${f} identifiers were cleared out!`)),u.length}import{ConsentBundleType as _C}from"@transcend-io/privacy-types";import{mapSeries as ru}from"bluebird";import pn from"colors";async function JF({auth:r,deploy:t=!1,transcendUrl:n=x,bundleTypes:o=Object.values(_C)}){let i=L(n,r),a=await ht(i);await ru(o,async s=>{p.info(pn.magenta(`Update Consent Manager bundle with ID "${a}" and type "${s}" to latest version...`)),await dc(i,{id:a,bundleType:s}),p.info(pn.green(`Updated Consent Manager bundle with ID "${a}" and type "${s}" to latest version!`))}),t&&await ru(o,async s=>{p.info(pn.magenta(`Deploying Consent Manager bundle with ID "${a}" and type "${s}"...`)),await mc(i,{id:a,bundleType:s}),p.info(pn.green(`Deployed Consent Manager bundle with ID "${a}" and type "${s}"!`))})}import nu from"colors";var GC=["ID","Activity","Encounters","Last Seen At","Has Native Do Not Sell/Share Support","IAB USP API Support","Service Description","Website URL","Categories of Recipients"];async function p0({auth:r,trackerStatus:t,file:n,classifyService:o=!1,transcendUrl:i=x}){let a=L(i,r);p.info(nu.magenta(`Reading "${n}" from disk`));let l=Yt(n,Co).map(({Type:c,Notes:f,Service:d,Purpose:g,Status:h,Owners:y,Teams:C,"Connections Made To":P,...T})=>({value:P,type:c,description:f,trackingPurposes:Pt(g),status:h||t,owners:y?Pt(y):void 0,teams:C?Pt(C):void 0,attributes:Object.entries(T).filter(([R])=>!GC.includes(R)).map(([R,I])=>({key:R,values:Pt(I)}))}));await Ur(a,l,o)||(p.error(nu.red("Encountered error(s) syncing data flows from CSV, see logs above for more info. ")),process.exit(1))}import iu from"colors";var MC=["ID","Activity","Encounters","Last Seen At","Has Native Do Not Sell/Share Support","IAB USP API Support","Service Description","Website URL","Categories of Recipients"];async function C0({auth:r,trackerStatus:t,file:n,transcendUrl:o=x}){let i=L(o,r);p.info(iu.magenta(`Reading "${n}" from disk`));let s=Yt(n,Io).map(({"Is Regex?":u,Notes:c,Service:f,Purpose:d,Status:g,Owners:h,Teams:y,Name:C,...P})=>({...typeof u=="string"?{isRegex:u.toLowerCase()==="true"}:{},name:C,description:c,trackingPurposes:Pt(d),status:g||t,owners:h?Pt(h):void 0,teams:y?Pt(y):void 0,attributes:Object.entries(P).filter(([T])=>!MC.includes(T)).map(([T,R])=>({key:T,values:Pt(R)}))}));await Lr(i,s)||(p.error(iu.red("Encountered error(s) syncing cookies from CSV, see logs above for more info. ")),process.exit(1))}var FC=1e3,UC=60*FC,BC=60*UC,QC=24*BC,VC=7*QC;async function P0(r,{bin:t,start:n,end:o=new Date}){let i=await ht(r),a=Math.floor(n.getTime()/1e3),s=Math.floor(o.getTime()/1e3);if(a>s)throw new Error('Received "end" date that happened before "start" date');if(t==="1h"&&o.getTime()-n.getTime()>VC*2)throw new Error("When using bin=1h, start and end time can be no more than 2 weeks apart");let l=n.toISOString(),u=o.toISOString(),[c,f,d]=await Promise.all([qr(r,{dataSource:"PRIVACY_SIGNAL_TIMESERIES",startDate:l,endDate:u,forceRefetch:!0,airgapBundleId:i,binInterval:t,smoothTimeseries:!1}),qr(r,{dataSource:"CONSENT_CHANGES_TIMESERIES",startDate:l,endDate:u,forceRefetch:!0,airgapBundleId:i,binInterval:t,smoothTimeseries:!1}),qr(r,{dataSource:"CONSENT_SESSIONS_BY_REGIME",startDate:l,endDate:u,forceRefetch:!0,airgapBundleId:i,binInterval:t,smoothTimeseries:!1})]);return{PRIVACY_SIGNAL_TIMESERIES:c,CONSENT_CHANGES_TIMESERIES:f,CONSENT_SESSIONS_BY_REGIME:d}}import KC from"colors";import jC from"lodash/difference";import{map as YC}from"bluebird";var ou=r=>new URL(`https://${r}`).hostname.split(".").slice(-2).join(".");var zC=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/;async function L0(r,{xdiLocation:t,transcendUrl:n=x,removeIpAddresses:o=!0,domainBlockList:i=["localhost"],xdiAllowedCommands:a="ConsentManager:Sync"}){let s=Array.isArray(r)?r:[{apiKey:r,organizationId:"",organizationName:""}],l=await YC(s,async f=>{p.info(KC.magenta(`Pulling consent metadata for organization - ${f.organizationName}`));let d=L(n,f.apiKey);return await $r(d)},{concurrency:5}),u={};return l.forEach(f=>{let d=f.partition?.partition||f.bundleURL.split("/").reverse()[1];u[d]||(u[d]=[]);let g=jC(f.configuration.domains.filter(h=>!o||!zC.test(h)).map(h=>ou(h)),i);u[d]=[...new Set([...u[d]||[],...g])]}),{html:`
2833
+ <!DOCTYPE html>
2834
+ <script
2835
+ src="${t}"
2836
+ data-sync-groups='${JSON.stringify(u,null,2)}'
2837
+ data-xdi-commands="${a}"
2838
+ ></script>
2839
+ `,syncGroups:u}}function N0(r){let t=r.map(({name:n,input:o})=>({title:n.replace(".yml",""),attributes:[...o?.domains?[{key:"Transcend Domain List",values:[...new Set(o.domains)]}]:[],...o?.bundleUrls?[{key:"Airgap Production URL",values:[o.bundleUrls.PRODUCTION]},{key:"Airgap Test URL",values:[o.bundleUrls.TEST]},{key:"Airgap XDI URL",values:[o.bundleUrls.PRODUCTION.replace("airgap.js","xdi.js")]}]:[],...o?.partition?[{key:"Consent Partition Key",values:[o.partition]}]:[]]}));return p.info(`
2840
+
2841
+ ~~~~~~~~~~~
2842
+ Airgap scripts to host:`),t.forEach(({attributes:n,title:o},i)=>{n?.find(a=>a.key==="Airgap Production URL")?.values?.forEach(a=>{p.info(`${i}) ${o} - ${a}`)})}),t}import*as su from"crypto";import*as au from"jsonwebtoken";function pu(r,t,n){let o=Buffer.from(n,"base64"),i=Buffer.from(t,"base64"),a="id-aes256-wrap-pad",s=Buffer.from("A65959A6","hex"),l=su.createCipheriv(a,i,s),c={encryptedIdentifier:Buffer.concat([l.update(r),l.final()]).toString("base64")};return au.sign(c,o,{algorithm:"HS384"})}import*as $t from"io-ts";import{decodeCodec as HC}from"@transcend-io/type-utils";import*as O from"io-ts";var lu=O.intersection([O.type({userId:O.string,timestamp:O.string}),O.partial({confirmed:O.union([O.literal("true"),O.literal("false")]),updated:O.union([O.literal("true"),O.literal("false")]),prompted:O.union([O.literal("true"),O.literal("false")]),metadata:O.string,usp:O.union([O.string,O.null]),gpp:O.union([O.string,O.null])})]),M0=O.intersection([lu,O.partial({purposes:O.string})]),cu=O.intersection([lu,O.type({partition:O.string}),O.partial({tcf:O.union([O.string,O.null]),purposes:O.record(O.string,O.union([O.boolean,O.string]))})]);var ZC=$t.intersection([$t.type({nodes:$t.array(cu)}),$t.partial({lastKey:$t.partial({userId:$t.string,partition:$t.string,timestamp:$t.string})})]);async function Q0(r,{partition:t,filterBy:n={},limit:o=50}){let i,a=[],s=!0;for(;s;){let l=await r.post("v1/consent-preferences",{json:{partition:t,...n,startKey:i||void 0,limit:o}}).json(),{nodes:u,lastKey:c}=HC(ZC,l);if(!u||u.length===0)break;a.push(...u),i=c,s=!!c&&Object.keys(c).length>0}return a}import Ki from"colors";import*as Zt from"io-ts";import{map as WC}from"bluebird";import uu from"cli-progress";import{decodeCodec as mu}from"@transcend-io/type-utils";var du=/^[0-9][Y|N]([Y|N])[Y|N]$/,fu=Zt.record(Zt.string,Zt.union([Zt.boolean,Zt.literal("Auto")]));async function X0({base64EncryptionKey:r,base64SigningKey:t,preferences:n,partition:o,concurrency:i=100,transcendUrl:a=to}){let s=ac(a),l=n.filter(C=>C.usp&&!du.test(C.usp));if(l.length>0)throw new Error(`Received invalid usp strings: ${JSON.stringify(l,null,2)}`);let u=n.map((C,P)=>[C,P]).filter(([C])=>{if(!C.purposes)return!1;try{return mu(fu,C.purposes),!1}catch{return!0}});if(u.length>0)throw new Error(`Received invalid purpose maps: ${JSON.stringify(u,null,2)}`);let c=n.filter(C=>!C.usp&&!C.purposes);if(c.length>0)throw new Error(`Received invalid inputs, expected either purposes or usp to be defined: ${JSON.stringify(c,null,2)}`);p.info(Ki.magenta(`Uploading ${n.length} user preferences to partition ${o}`));let f=new Date().getTime(),d=new uu.SingleBar({},uu.Presets.shades_classic),g=0;d.start(n.length,0),await WC(n,async({userId:C,confirmed:P="true",updated:T,prompted:R,purposes:I,...w})=>{let N=pu(C,r,t),[,dt]=w.usp?du.exec(w.usp)||[]:[],J={token:N,partition:o,consent:{confirmed:P==="true",purposes:I?mu(fu,I):w.usp?{SaleOfInfo:dt==="Y"}:{},...T?{updated:T==="true"}:{},...R?{prompted:R==="true"}:{},...w}};try{await s.post("sync",{json:J}).json()}catch(Y){try{let nt=JSON.parse(Y?.response?.body||"{}");nt.error&&p.error(Ki.red(`Error: ${nt.error}`))}catch{}throw new Error(`Received an error from server: ${Y?.response?.body||Y?.message}`)}g+=1,d.update(g)},{concurrency:i}),d.stop();let y=new Date().getTime()-f;p.info(Ki.green(`Successfully uploaded ${n.length} user preferences to partition ${o} in "${y/1e3}" seconds!`))}import ln from"inquirer";import JC from"inquirer-autocomplete-prompt";async function gU({message:r}){let{response:t}=await ln.prompt([{name:"response",message:r,type:"confirm"}]);return t}async function yU({message:r}){let{response:t}=await ln.prompt([{name:"response",message:r,type:"text",validate:n=>n.trim().length>0}]);return t}async function hU({defaultValue:r,values:t,message:n}){ln.registerPrompt("autocomplete",JC);let{response:o}=await ln.prompt([{name:"response",message:n,type:"autocomplete",default:r,source:(i,a)=>a?t.filter(s=>typeof s=="string"&&Qe(a,s)):t}]);return o}function IU(r){let t=r.split(",").filter(o=>!!o),n={};return t.forEach(o=>{let[i,a]=o.split(":");n[i]=a}),n}import ji from"colors";import yu from"cli-progress";import*as ut from"io-ts";import{decodeCodec as XC}from"@transcend-io/type-utils";var tI=ut.type({identifier:ut.string,type:ut.string,coreIdentifier:ut.string,dataSiloId:ut.string,requestId:ut.string,nonce:ut.string,requestCreatedAt:ut.string,daysUntilOverdue:ut.number,attributes:ut.array(ut.type({key:ut.string,values:ut.array(ut.string)}))});async function gu(r,{dataSiloId:t,limit:n=100,offset:o=0,requestType:i}){try{let a=await r.get(`v1/data-silo/${t}/pending-requests/${i}`,{searchParams:{offset:o,limit:n}}).json(),{items:s}=XC(ut.type({items:ut.array(tI)}),a);return s}catch(a){throw new Error(`Received an error from server: ${a?.response?.body||a?.message}`)}}import{mapSeries as eI}from"bluebird";async function NU({dataSiloId:r,auth:t,sombraAuth:n,actions:o,pageLimit:i=100,transcendUrl:a=x,skipRequestCount:s=!1}){let l=await Et(a,t,n),u=L(a,t),c=0;s||(c=await ec(u,{dataSiloId:r})),p.info(ji.magenta(`Pulling ${s?"all":c} outstanding request identifiers for data silo: "${r}" for requests of types "${o.join('", "')}"`));let f=new Date().getTime(),d=new yu.SingleBar({},yu.Presets.shades_classic),g=new Set,h=[];s||d.start(c,0),await eI(o,async T=>{let R=0,I=!0;for(;I;){let w=await gu(l,{dataSiloId:r,limit:i,offset:R,requestType:T});h.push(...w.map(N=>(g.add(N.requestId),{...N,action:T}))),I=w.length===i,R+=i,s?p.info(ji.magenta(`Pulled ${w.length} outstanding identifiers for ${g.size} requests`)):d.update(g.size)}}),s||d.stop();let C=new Date().getTime()-f;p.info(ji.green(`Successfully pulled ${h.length} outstanding identifiers from ${g.size} requests in "${C/1e3}" seconds!`));let P=h.map(({attributes:T,...R})=>({...R,...T.reduce((I,w)=>Object.assign(I,{[w.key]:w.values.join(",")}),{})}));return{identifiers:h,identifiersFormattedForCsv:P}}import*as hu from"fast-csv";import{createWriteStream as rI,writeFileSync as nI,appendFileSync as iI}from"fs";function Cu(r){return r.includes('"')||r.includes(",")||r.includes(`
2843
+ `)?`"${r.replace(/"/g,'""')}"`:r}function MU(r,t,n){let o=[];o.push(n),o.push(...t.map(a=>Object.values(a)));let i=o.map(a=>a.map(Cu).join(",")).join(`
2844
+ `);nI(r,i)}function FU(r,t){let o=t.map(i=>Object.values(i)).map(i=>i.map(Cu).join(",")).join(`
2845
+ `);iI(r,`
2846
+ ${o}`)}async function cn(r,t,n=!0){let o=rI(r);await new Promise((i,a)=>{try{hu.write(t,{headers:n}).pipe(o).on("error",a).on("end",()=>i(!0))}catch(s){a(s)}})}async function UU(r,t,n=!0,o=1e5){if(t.length<=o)return await cn(r,t,n),[r];let i=[],a=Math.ceil(t.length/o),s=r.lastIndexOf("."),l=s!==-1?r.substring(0,s):r,u=s!==-1?r.substring(s):".csv";for(let c=0;c<a;c+=1){let f=c*o,d=Math.min(f+o,t.length),g=t.slice(f,d),h=String(c+1).padStart(String(a).length,"0"),y=`${l}_part${h}_of_${a}${u}`;await cn(y,g,n),i.push(y)}return i}import{map as oI}from"bluebird";import He from"colors";import*as mr from"io-ts";var Iu=mr.type({nonce:mr.string,identifier:mr.string});async function Au(r,{nonce:t,identifier:n}){try{return await r.put("v1/data-silo",{headers:{"x-transcend-nonce":t},json:{profiles:[{profileId:n}]}}),!0}catch(o){if(o.response?.statusCode===409)return!1;throw new Error(`Received an error from server: ${o?.response?.body||o?.message}`)}}import Tu from"cli-progress";async function JU({file:r,dataSiloId:t,auth:n,sombraAuth:o,concurrency:i=100,transcendUrl:a=x}){let s=await Et(a,n,o);p.info(He.magenta(`Reading "${r}" from disk`));let l=Yt(r,Iu);p.info(He.magenta(`Notifying Transcend for data silo "${t}" marking "${l.length}" identifiers as completed.`));let u=new Date().getTime(),c=new Tu.SingleBar({},Tu.Presets.shades_classic),f=0,d=0,g=0;c.start(l.length,0),await oI(l,async C=>{try{await Au(s,C)?f+=1:d+=1}catch(P){p.error(He.red(`Error notifying Transcend for identifier "${C.identifier}" - ${P.message}`)),g+=1}c.update(f+d)},{concurrency:i}),c.stop();let y=new Date().getTime()-u;if(p.info(He.green(`Successfully notified Transcend for ${f} identifiers in "${y/1e3}" seconds!`)),d&&p.info(He.magenta(`There were ${d} identifiers that were not in a state to be updated.They likely have already been resolved.`)),g)throw p.error(He.red(`There were ${g} identifiers that failed to be updated. Please review the logs for more information.`)),new Error("Failed to update all identifiers");return l.length}import{map as sI}from"bluebird";import Su from"colors";import Pu from"cli-progress";import{RequestDataSiloStatus as aI}from"@transcend-io/privacy-types";async function aB({requestIds:r,dataSiloId:t,auth:n,concurrency:o=100,status:i=aI.Resolved,transcendUrl:a=x}){let s=L(a,n),l=new Date().getTime(),u=new Pu.SingleBar({},Pu.Presets.shades_classic);p.info(Su.magenta(`Notifying Transcend for data silo "${t}" marking "${r.length}" requests as completed.`));let c=0;u.start(r.length,0),await sI(r,async g=>{let h=await rn(s,{requestId:g,dataSiloId:t});try{await m(s,wr,{requestDataSiloId:h.id,status:i})}catch(y){if(!y.message.includes("Client error: Request must be active:"))throw y}c+=1,u.update(c)},{concurrency:o}),u.stop();let d=new Date().getTime()-l;return p.info(Su.green(`Successfully notified Transcend in "${d/1e3}" seconds!`)),r.length}import{mapSeries as pI}from"bluebird";import Gt from"colors";async function TB({email:r,password:t,scopes:n,apiKeyTitle:o,parentOrganizationId:i,deleteExistingApiKey:a=!0,createNewApiKey:s=!0,transcendUrl:l=x}){let u=await xi(l,{});p.info(Gt.magenta("Logging in using email and password."));let{roles:c,loginCookie:f}=await pc(u,{email:r,password:t});p.info(Gt.green(`Successfully logged in and found ${c.length} role${c.length===1?"":"s"}!`));let d=i?c.filter(y=>y.organization.id===i||y.organization.parentOrganizationId===i):c;u.setHeaders({Cookie:f});let g=[],h=[];return p.info(Gt.magenta(`Generating API keys with title: ${o}, scopes: ${n.join(",")}.`)),await pI(d,async y=>{try{await lc(u,{roleId:y.id,email:r}),p.info(Gt.magenta(`Checking if API key already exists in organization "${y.organization.name}" with title: "${o}".`));let[C]=await Wn(u,[o]);if(C&&a)p.info(Gt.yellow(`Deleting existing API key in "${y.organization.name}" with title: "${o}".`)),await uc(u,C.id),p.info(Gt.green(`Successfully deleted API key in "${y.organization.name}" with title: "${o}".`));else if(C)throw new Error(`API key already exists with title: "${o}"`);if(s){p.info(Gt.magenta(`Creating API key in "${y.organization.name}" with title: "${o}".`));let{apiKey:P}=await cc(u,{title:o,scopes:n});g.push({organizationName:y.organization.name,organizationId:y.organization.id,apiKey:P}),p.info(Gt.green(`Successfully created API key in "${y.organization.name}" with title: "${o}".`))}else g.push({organizationName:y.organization.name,organizationId:y.organization.id,apiKey:""})}catch(C){p.error(Gt.red(`Failed to create API key in organization "${y.organization.name}"! - ${C.message}`)),h.push({organizationName:y.organization.name,organizationId:y.organization.id,error:C.message})}}),p.info(Gt.green(`Successfully created ${g.length} API key${g.length===1?"":"s"}`)),h.length>0&&p.error(Gt.red(`Failed to create ${h.length} API key${h.length===1?"":"s"}!`)),{errors:h,apiKeys:g}}import{decodeCodec as lI}from"@transcend-io/type-utils";import cI from"colors";import*as Eu from"io-ts";import{existsSync as uI,readFileSync as mI}from"fs";function xB(r){return r||(p.error(cI.red("A Transcend API key must be provided. You can specify using --auth=$TRANSCEND_API_KEY")),process.exit(1)),uI(r)?lI(Eu.array(ho),mI(r,"utf-8")):r}import{existsSync as dI,readdirSync as fI}from"fs";function qB(r,t,n=!1){if(!dI(r))return[];let o=fI(r).filter(i=>t?t.filter(a=>i.endsWith(a)).length:!0).filter(i=>i.indexOf(".")>0);return n?o.map(i=>i.replace(/\.[^/.]+$/,"")):o}import{readdirSync as gI,statSync as yI}from"fs";import{join as hI}from"path";function OB(r){return gI(r).filter(t=>yI(hI(r,t)).isDirectory())}import CI from"lodash/chunk";import II from"lodash/uniq";import{apply as AI,decodeCodec as bu,getValues as TI}from"@transcend-io/type-utils";import{createHandlebarsWithHelpers as wu}from"@transcend-io/handlebars-utils";import un from"lodash/keyBy";import{PromptStatus as xu,ChatCompletionRole as Ze,PromptRunProductArea as zi,QueueStatus as Hi}from"@transcend-io/privacy-types";var Yi=20;async function Ru(r){let t=[],n=0,o=!1;do{let{largeLanguageModels:{nodes:i}}=await m(r,Xa,{first:Yi,offset:n});t.push(...i),n+=Yi,o=i.length===Yi}while(o);return t.sort((i,a)=>i.name.localeCompare(a.name))}import SI from"lodash/groupBy";import{mapSeries as PI}from"bluebird";function EI(r){return new RegExp(`<${r}>([\\s\\S]+?)<\\/${r}>`)}function yQ(r){return r}var RI=r=>{try{return JSON.parse(r)}catch{return r}},$u=class{prompts;handlebarsOptions;promptContentMap;largeLanguageModels=[];agentsByName={};agentsByAgentId={};graphQLClient;defaultVariables;variables;handlebars;transcendApiKey;transcendUrl;requireApproval;cacheDuration;lastUpdatedAt;constructor({prompts:t,handlebarsOptions:n={},transcendUrl:o=x,transcendApiKey:i,requireApproval:a=!0,cacheDuration:s,defaultVariables:l={}}){this.prompts=t,this.transcendUrl=o,this.transcendApiKey=i,this.variables=l,this.defaultVariables=l,this.graphQLClient=L(o,typeof i=="object"?i.release():i),this.requireApproval=a,this.cacheDuration=s,this.handlebarsOptions=n,this.handlebars=wu(n)}async fetchPromptsAndMetadata(){let t=TI(this.prompts),n=t.map(({id:f})=>f).filter(f=>!!f),o=t.map(({title:f})=>f).filter(f=>!!f),i=II(t.map(({agentNames:f})=>f||[]).flat()),[a,s,l]=await Promise.all([Up(this.graphQLClient,{promptIds:n,promptTitles:o}),Ru(this.graphQLClient),le(this.graphQLClient,{names:i})]);this.agentsByName=un(l,"name"),this.agentsByAgentId=un(l,"agentId"),this.largeLanguageModels=s.filter(f=>f.isTranscendHosted===!1);let u=un(a.prompts,"title"),c=un(a.prompts,"id");return this.variables={...a.calculatedVariables.reduce((f,d)=>Object.assign(f,{[d.name]:d.data?JSON.parse(d.data):d.data}),{}),...this.defaultVariables},this.handlebars=wu({...this.handlebarsOptions,templates:[...this.handlebarsOptions.templates||[],...a.promptPartials.map(f=>({name:f.slug,content:f.content}))]}),this.promptContentMap=AI(this.prompts,({id:f,title:d})=>{let g=f?c[f]:d?u[d]:void 0;if(!g)throw new Error(`Failed to find prompt with title: "${d}" and id: "${f}"`);return g}),this.lastUpdatedAt=new Date,a}async getAgentByName(t){let n=this.agentsByName[t];if(n)return n;let[o]=await le(this.graphQLClient,{names:[t]});if(o)return this.agentsByName[o.name]=o,this.agentsByAgentId[o.agentId]=o,o}async getPromptThreadBySlackTs(t){let[n]=await Xl(this.graphQLClient,{slackMessageTs:[t]});return n}async getAgentsByName(t){if(t.length<1)throw new Error("Expected at least one name to be provided");let{hasCache:n=[],missingCache:o=[]}=SI(t,l=>this.agentsByName[l]?"hasCache":"missingCache"),i=n.map(l=>this.agentsByName[l]);if(o.length===0)return i;let a=CI(o,50),s=[];return await PI(a,async l=>{let u=await le(this.graphQLClient,{names:l});u.forEach(c=>{this.agentsByName[c.name]=c,this.agentsByAgentId[c.agentId]=c}),s.push(...u)}),[...i,...s]}getAgentFiles(t){return Oe(this.graphQLClient,t)}getLargeLanguageModel(t){let n=this.largeLanguageModels.find(o=>typeof t=="string"?o.id===t:o.name===t.name&&o.client===t.client);if(!n)throw new Error(`Failed to find model matching: ${typeof t=="string"?t:JSON.stringify(t)}`);return n}async getPromptDefinition(t){(!this.lastUpdatedAt||this.cacheDuration===0||this.cacheDuration&&Date.now()-this.lastUpdatedAt.getTime()>this.cacheDuration)&&await this.fetchPromptsAndMetadata();let{promptContentMap:n}=this;if(!n)throw new Error("Expected this.promptContentMap to be defined");let o=n[t];if(!o)throw new Error(`Expected this.promptContentMap[${t}] to be defined`);return o}async compilePrompt(t,n){let o=await this.getPromptDefinition(t),i=this.prompts[t];if(!i)throw new Error(`Expected this.prompts[${t}] to be defined`);if(this.requireApproval&&o.status!==xu.Approved)throw new Error(`Assessment "${o.title}" cannot be used because its in status: "${o.status}"`);if(o.status===xu.Rejected)throw new Error(`Assessment "${o.title}" cannot be used because it's in status: "${o.status}"`);return bu(i.paramCodec,n),this.handlebars.compile(o.content)({currentDate:new Date().toISOString(),...this.variables,...n})}parseAiResponse(t,n){let o=this.prompts[t];if(!o)throw new Error(`Expected this.prompts[${t}] to be defined`);let i=o.extractFromTag&&(EI(o.extractFromTag).exec(n)||[])[1]||n;return bu(o.outputCodec,RI(i),!1)}async reportAndParsePromptRun(t,{largeLanguageModel:n,...o}){(!this.lastUpdatedAt||this.cacheDuration===0||this.cacheDuration&&Date.now()-this.lastUpdatedAt.getTime()>this.cacheDuration)&&await this.fetchPromptsAndMetadata();let i=o.name||`@transcend-io/cli-prompt-run-${new Date().toISOString()}`;if(!this.promptContentMap)throw new Error("Expected this.promptContentMap to be defined");let a=this.promptContentMap[t];if(!a)throw new Error(`Expected this.prompts[${t}] to be defined`);if(o.promptRunMessages.length===0)throw new Error("promptRunMessages is expected to have length > 0");if(o.promptRunMessages[0].role!==Ze.System)throw new Error(`promptRunMessages[0].role is expected to be = ${Ze.System}`);if(o.promptRunMessages[o.promptRunMessages.length-1].role!==Ze.Assistant)throw new Error(`promptRunMessages[${o.promptRunMessages.length-1}].role is expected to be = ${Ze.Assistant}`);let s=o.promptRunMessages[o.promptRunMessages.length-1].content,l;try{l=this.parseAiResponse(t,s)}catch(c){throw await nn(this.graphQLClient,{productArea:zi.PromptManager,...o,name:i,error:c.message,status:Hi.Error,...typeof n=="string"?{largeLanguageModelId:n}:{largeLanguageModelName:n.name,largeLanguageModelClient:n.client},promptId:a.id,promptRunMessages:o.promptRunMessages.map((f,d)=>({...f,...d===0?{template:a.content}:{}}))}),c}let u=await nn(this.graphQLClient,{productArea:zi.PromptManager,...o,name:i,status:Hi.Resolved,...typeof n=="string"?{largeLanguageModelId:n}:{largeLanguageModelName:n.name,largeLanguageModelClient:n.client},promptId:a.id,promptRunMessages:o.promptRunMessages.map((c,f)=>({...c,...f===0?{template:a.content}:{}}))});return{result:l,promptRunId:u,promptRunUrl:`https://app.transcend.io/prompts/runs/${u}`}}async reportPromptRunError(t,{largeLanguageModel:n,...o}){(!this.lastUpdatedAt||this.cacheDuration===0||this.cacheDuration&&Date.now()-this.lastUpdatedAt.getTime()>this.cacheDuration)&&await this.fetchPromptsAndMetadata();let i=o.name||`@transcend-io/cli-prompt-run-${new Date().toISOString()}`;if(!this.promptContentMap)throw new Error("Expected this.promptContentMap to be defined");let a=this.promptContentMap[t];if(!a)throw new Error(`Expected this.prompts[${t}] to be defined`);if(o.promptRunMessages.length===0)throw new Error("promptRunMessages is expected to have length > 0");if(o.promptRunMessages[0].role!==Ze.System)throw new Error(`promptRunMessages[0].role is expected to be = ${Ze.System}`);let s=await nn(this.graphQLClient,{productArea:zi.PromptManager,...o,name:i,status:Hi.Error,...typeof n=="string"?{largeLanguageModelId:n}:{largeLanguageModelName:n.name,largeLanguageModelClient:n.client},promptId:a.id,promptRunMessages:o.promptRunMessages.map((l,u)=>({...l,...u===0?{template:a.content}:{}}))});return{promptRunId:s,promptRunUrl:`https://app.transcend.io/prompts/runs/${s}`}}};function CQ(r){let t=/(https?:\/\/[^\s]+)/g;return r.replace(t,"<link-omitted>")}function AQ(r){return Object.entries(r).reduce((t,[n,o])=>o!=null&&o!==""&&!(Array.isArray(o)&&o.length===0)&&!(typeof o=="object"&&Object.keys(o).length===0)?Object.assign(t,{[n]:o}):t,{})}import bI from"lodash/difference";import wI from"fast-glob";import{execSync as dr}from"child_process";function RQ({baseBranch:r,rootDirectory:t,githubRepo:n,excludedGlob:o=[],fileBlockList:i=[]}){dr(`git fetch origin ${r}`);let a=dr(`git ls-remote ${n} "refs/heads/${r}" | cut -f 1`,{encoding:"utf-8"}).split(`
2847
+ `)[0],s=dr("git rev-parse HEAD",{encoding:"utf-8"}).split(`
2848
+ `)[0];if(!a||!s)throw new Error("FAILED TO FIND COMMIT RANGE");let l=dr(`git fetch && git diff --name-only "${r||a}...${s}" -- ${t}`,{encoding:"utf-8"}),u=bI(l.split(`
2849
+ `).filter(g=>g),i),c=o.length>0?wI.sync(u,{ignore:o}):u,f={};c.forEach(g=>{let h=dr(`git show ${s}:${g}`,{encoding:"utf-8"});f[g]=h});let d=n.split("/").pop().split(".")[0];return{changedFiles:u,fileDiffs:f,repoName:d,commit:s}}var{parse:xI}=em("json2csv"),wQ=xI;import Du from"lodash/keyBy";import{SubDataPointDataSubCategoryGuessStatus as $I}from"@transcend-io/privacy-types";import qu from"lodash/uniq";import vu from"lodash/chunk";import We from"cli-progress";import{gql as DI}from"graphql-request";import ie from"colors";import qI from"lodash/sortBy";import{mapSeries as Lu}from"bluebird";async function vI(r,{dataSiloIds:t=[],includeGuessedCategories:n,includeAttributes:o,parentCategories:i=[],subCategories:a=[],pageSize:s=1e3}={}){let l=[],u=new Date().getTime(),c=new We.SingleBar({},We.Presets.shades_classic),f={...i.length>0?{category:i}:{},...a.length>0?{subCategoryIds:a}:{},...i.length+a.length>0&&!n?{status:$I.Approved}:{},...t.length>0?{dataSilos:t}:{}},{subDataPoints:{totalCount:d}}=await m(r,bo,{filterBy:f});p.info(ie.magenta("[Step 1/3] Pulling in all subdatapoints")),c.start(d,0);let g=0,h=!1,y,C=0;do try{let{subDataPoints:{nodes:I}}=await m(r,DI`
2850
+ query TranscendCliSubDataPointCsvExport(
2851
+ $filterBy: SubDataPointFiltersInput
2852
+ $first: Int!
2853
+ $offset: Int!
2854
+ ) {
2855
+ subDataPoints(
2856
+ filterBy: $filterBy
2857
+ first: $first
2858
+ offset: $offset
2859
+ useMaster: false
2860
+ ) {
2861
+ nodes {
2862
+ id
2863
+ name
2864
+ description
2865
+ dataPointId
2866
+ dataSiloId
2867
+ purposes {
2868
+ name
2869
+ purpose
2870
+ }
2871
+ categories {
2872
+ name
2873
+ category
2874
+ }
2875
+ ${n?`pendingCategoryGuesses {
2876
+ category {
2877
+ name
2878
+ category
2879
+ }
2880
+ status
2881
+ classifierVersion
2882
+ }`:""}
2883
+ ${o?`attributeValues {
2884
+ attributeKey {
2885
+ name
2886
+ }
2887
+ name
2888
+ }`:""}
2889
+ }
2890
+ }
2891
+ }
2892
+ `,{first:s,offset:C,filterBy:{...f}});y=I[I.length-1]?.id,l.push(...I),h=I.length===s,g+=I.length,C+=I.length,c.update(g)}catch(I){throw p.error(ie.red(`An error fetching subdatapoints for cursor ${y} and offset ${C}`)),I}while(h);c.stop();let T=new Date().getTime()-u,R=qI(l,"name");return p.info(ie.green(`Successfully pulled in ${R.length} subdatapoints in ${T/1e3} seconds!`)),R}async function LI(r,{dataPointIds:t=[],pageSize:n=100}){let o=[],i=new Date().getTime(),a=new We.SingleBar({},We.Presets.shades_classic);p.info(ie.magenta(`[Step 2/3] Fetching metadata for ${t.length} datapoints`));let s=vu(t,n);a.start(t.length,0);let l=0;await Lu(s,async f=>{try{let{dataPoints:{nodes:d}}=await m(r,$o,{first:n,filterBy:{ids:f}});o.push(...d),l+=f.length,a.update(l)}catch(d){throw p.error(ie.red(`An error fetching subdatapoints for IDs ${f.join(", ")}`)),d}}),a.stop();let c=new Date().getTime()-i;return p.info(ie.green(`Successfully pulled in ${o.length} dataPoints in ${c/1e3} seconds!`)),o}async function kI(r,{dataSiloIds:t=[],pageSize:n=100}){let o=[],i=new Date().getTime(),a=new We.SingleBar({},We.Presets.shades_classic);p.info(ie.magenta(`[Step 3/3] Fetching metadata for ${t.length} data silos`));let s=vu(t,n);a.start(t.length,0);let l=0;await Lu(s,async f=>{try{let{dataSilos:{nodes:d}}=await m(r,vo,{first:n,filterBy:{ids:f}});o.push(...d),l+=f.length,a.update(l)}catch(d){throw p.error(ie.red(`An error fetching data silos for IDs ${f.join(", ")}`)),d}}),a.stop();let c=new Date().getTime()-i;return p.info(ie.green(`Successfully pulled in ${o.length} data silos in ${c/1e3} seconds!`)),o}async function VQ(r,{dataSiloIds:t=[],includeGuessedCategories:n,includeAttributes:o,parentCategories:i=[],subCategories:a=[],pageSize:s=1e3}={}){let l=await vI(r,{dataSiloIds:t,includeGuessedCategories:n,includeAttributes:o,parentCategories:i,subCategories:a,pageSize:s}),u=qu(l.map(y=>y.dataPointId)),c=await LI(r,{dataPointIds:u}),f=Du(c,"id"),d=qu(l.map(y=>y.dataSiloId)),g=await kI(r,{dataSiloIds:d}),h=Du(g,"id");return l.map(y=>({...y,dataPoint:f[y.dataPointId],dataSilo:h[y.dataSiloId]}))}import ku from"cli-progress";import Zi from"colors";import{gql as OI}from"graphql-request";import NI from"lodash/sortBy";async function JQ(r,{dataSiloIds:t=[],status:n,subCategories:o=[],includeEncryptedSnippets:i,pageSize:a=100}={}){let s=[],l=new Date().getTime(),u=new ku.SingleBar({},ku.Presets.shades_classic),c={...o.length>0?{subCategoryIds:o}:{},...n?{status:n}:{},...t.length>0?{dataSilos:t}:{}},{unstructuredSubDataPointRecommendations:{totalCount:f}}=await m(r,Do,{filterBy:c});p.info(Zi.magenta("[Step 1/3] Pulling in all subdatapoints")),u.start(f,0);let d=0,g=!1,h,y=0;do try{let{unstructuredSubDataPointRecommendations:{nodes:R}}=await m(r,OI`
2893
+ query TranscendCliUnstructuredSubDataPointRecommendationCsvExport(
2894
+ $filterBy: UnstructuredSubDataPointRecommendationsFilterInput
2895
+ $first: Int!
2896
+ $offset: Int!
2897
+ ) {
2898
+ unstructuredSubDataPointRecommendations(
2899
+ filterBy: $filterBy
2900
+ first: $first
2901
+ offset: $offset
2902
+ useMaster: false
2903
+ ) {
2904
+ nodes {
2905
+ id
2906
+ dataSiloId
2907
+ scannedObjectPathId
2908
+ scannedObjectId
2909
+ ${i?"name":""}
2910
+ ${i?"contextSnippet":""}
2911
+ dataSubCategory {
2912
+ name
2913
+ category
2914
+ }
2915
+ status
2916
+ confidence
2917
+ classificationMethod
2918
+ classifierVersion
2919
+ }
2920
+ }
2921
+ }
2922
+ `,{first:a,offset:y,filterBy:{...c}});h=R[R.length-1]?.id,s.push(...R),g=R.length===a,d+=R.length,y+=R.length,u.update(d)}catch(R){throw p.error(Zi.red(`An error fetching subdatapoints for cursor ${h} and offset ${y}`)),R}while(g);u.stop();let P=new Date().getTime()-l,T=NI(s,"name");return p.info(Zi.green(`Successfully pulled in ${T.length} subdatapoints in ${P/1e3} seconds!`)),T}import{RequestStatus as _I}from"@transcend-io/privacy-types";import{map as GI}from"bluebird";import Ou from"colors";import Nu from"lodash/groupBy";import MI from"lodash/uniq";async function yV({file:r,auth:t,sombraAuth:n,requestActions:o,concurrency:i=100,transcendUrl:a=x}){let s=L(a,t),l=await Et(a,t,n);p.info(Ou.magenta(`Pulling manual enrichment requests, filtered for actions: ${o.join(",")}`));let u=await it(s,{actions:o,statuses:[_I.Enriching]}),c=[];await GI(u,async g=>{let h=await ze(s,{requestId:g.id});if(h.filter(({status:C})=>C==="ACTION_REQUIRED")){let C=await Ye(s,l,{requestId:g.id});c.push({...g,requestIdentifiers:C,requestEnrichers:h})}},{concurrency:i});let f=c.map(({attributeValues:g,requestIdentifiers:h,requestEnrichers:y,...C})=>({...C,...Object.entries(Nu(h,"name")).reduce((P,[T,R])=>Object.assign(P,{[T]:R.map(({value:I})=>I).join(",")}),{}),...Object.entries(Nu(g,"attributeKey.name")).reduce((P,[T,R])=>Object.assign(P,{[T]:R.map(({name:I})=>I).join(",")}),{})})),d=MI(f.map(g=>Object.keys(g)).flat());return cn(r,f,d),p.info(Ou.green(`Successfully wrote ${c.length} requests to file "${r}"`)),c}import Je from"colors";import{map as FI}from"bluebird";import*as fr from"io-ts";import _u from"lodash/uniq";import mn from"colors";var Wi="https://app.transcend.io/privacy-requests/incoming-requests/",Gu=fr.record(fr.string,fr.string);async function Mu(r,{id:t,...n},o,i){if(!t){let l=`Request ID must be provided to enricher request.${i?` Found error in row: ${i}`:""}`;throw p.error(mn.red(l)),new Error(l)}let a=t.toLowerCase(),s=Object.entries(n).reduce((l,[u,c])=>_u(Pt(c)).length===0?l:Object.assign(l,{[u]:_u(Pt(c)).map(d=>({value:u==="email"?d.toLowerCase():d}))}),{});try{return await r.post("v1/enrich-identifiers",{headers:{"x-transcend-request-id":a,"x-transcend-enricher-id":o},json:{enrichedIdentifiers:s}}).json(),p.error(mn.green(`Successfully enriched request: ${Wi}${a}`)),!0}catch(l){if(typeof l.response.body=="string"&&l.response.body.includes("Cannot update a resolved RequestEnricher"))return p.warn(mn.magenta(`Skipped enrichment for request: ${Wi}${a}, request is no longer in the enriching phase.`)),!1;throw p.error(mn.red(`Failed to enricher identifiers for request with id: ${Wi}${a} - ${l.message} - ${l.response.body}`)),l}}async function DV({file:r,auth:t,sombraAuth:n,enricherId:o,markSilent:i,concurrency:a=100,transcendUrl:s=x}){let l=await Et(s,t,n),u=L(s,t);p.info(Je.magenta(`Reading "${r}" from disk`));let c=Yt(r,Gu);p.info(Je.magenta(`Enriching "${c.length}" privacy requests.`));let f=0,d=0,g=0;if(await FI(c,async(h,y)=>{try{i&&(await m(u,ae,{input:{id:h.id,isSilent:!0}}),p.info(Je.magenta(`Mark request as silent mode - ${h.id}`))),await Mu(l,h,o,y)?f+=1:d+=1}catch{g+=1}},{concurrency:a}),p.info(Je.green(`Successfully notified Transcend!
2923
+ Success count: ${f}.`)),d>0&&p.info(Je.magenta(`Skipped count: ${d}.`)),g>0)throw p.info(Je.red(`Error Count: ${g}.`)),new Error(`Failed to enrich: ${g} requests.`);return c.length}var export_description=WI.description;var export_version=WI.version;export{Ba as ACTIONS,ta as ADD_MESSAGES_TO_PROMPT_RUN,ts as ADD_SILO_DISCOVERY_RESULTS,KI as ADMIN_DASH,YI as ADMIN_DASH_DATAPOINTS,jI as ADMIN_DASH_INTEGRATIONS,tp as AGENTS,np as AGENT_FILES,sp as AGENT_FUNCTIONS,Zo as API_KEYS,Rr as APPROVE_PRIVACY_REQUEST,ws as ASSESSMENTS,bn as ASSESSMENT_SECTION_FIELDS,Ds as ASSESSMENT_TEMPLATES,Ja as ASSUME_ROLE,ia as ATTRIBUTES,ss as ATTRIBUTE_KEYS_REQUESTS,pa as ATTRIBUTE_VALUES,yd as ActionInput,wd as ActionItemCollectionInput,xd as ActionItemInput,nd as AgentFileInput,rd as AgentFunctionInput,ed as AgentInput,zm as ApiKeyInput,$y as AssessmentAction,vd as AssessmentAnswerOptionInput,Dd as AssessmentDisplayLogicInput,Od as AssessmentInput,xy as AssessmentNestedRule,$d as AssessmentNestedRuleInput,so as AssessmentResourceInput,yo as AssessmentRetentionScheduleInput,Ly as AssessmentRiskLogic,Ml as AssessmentRule,fo as AssessmentRuleInput,go as AssessmentSectionInput,Ld as AssessmentSectionQuestionInput,kd as AssessmentTemplateInput,Uh as AttestedExtraIdentifiers,td as AttributeInput,Bt as AttributePreview,Xm as AttributeValueInput,gi as BLANK,lr as BULK_APPLY,Ga as BUSINESS_ENTITIES,dd as BusinessEntityInput,Cs as CANCEL_PRIVACY_REQUEST,El as CAN_APPLY_IN_BULK,Mo as CATALOGS,wr as CHANGE_REQUEST_DATA_SILO_STATUS,cs as CODE_PACKAGES,_a as CONSENT_MANAGER_ANALYTICS_DATA,da as CONSENT_PARTITIONS,Ca as COOKIES,ja as CREATE_ACTION_ITEMS,ra as CREATE_ACTION_ITEM_COLLECTION,ep as CREATE_AGENT,ip as CREATE_AGENT_FILE,ap as CREATE_AGENT_FUNCTION,Wo as CREATE_API_KEY,la as CREATE_ATTRIBUTE,oa as CREATE_ATTRIBUTE_VALUES,Ma as CREATE_BUSINESS_ENTITY,ms as CREATE_CODE_PACKAGE,Oa as CREATE_CONSENT_EXPERIENCE,Sa as CREATE_CONSENT_MANAGER,Na as CREATE_CONSENT_PARTITION,fa as CREATE_DATA_FLOWS,ko as CREATE_DATA_SILOS,Vo as CREATE_DATA_SUBJECT,dp as CREATE_DATA_SUB_CATEGORY,_o as CREATE_ENRICHER,Bo as CREATE_IDENTIFIER,yp as CREATE_PROCESSING_PURPOSE_SUB_CATEGORY,Ns as CREATE_PROMPT,Fs as CREATE_PROMPT_GROUP,Gs as CREATE_PROMPT_PARTIAL,Ho as CREATE_REPOSITORY,ls as CREATE_SOFTWARE_DEVELOPMENT_KIT,Ks as CREATE_TEAM,is as CREATE_TEMPLATE,cp as CREATE_VENDOR,Rl as CachedFileState,bl as CachedRequestState,uA as CodePackageInput,fd as CodePackageSdk,Be as ColumnName,Ad as ConsentManageExperienceInput,Sd as ConsentManagerInput,Lf as ConsentManagerMetricBin,fA as ConsentManagerServiceMetadata,ZC as ConsentPreferenceResponse,_d as ConsentPreferenceTopic,Nd as ConsentPreferenceTopicOptionValue,Gd as ConsentPurpose,Io as CookieCsvInput,Id as CookieInput,tI as CronIdentifier,Iu as CronIdentifierPush,$o as DATAPOINT_EXPORT,ha as DATA_FLOWS,Eo as DATA_POINTS,OA as DATA_POINT_COUNT,qo as DATA_SILOS,Lo as DATA_SILOS_ENRICHED,vo as DATA_SILO_EXPORT,Er as DATA_SUBJECTS,mp as DATA_SUB_CATEGORIES,x as DEFAULT_TRANSCEND_API,to as DEFAULT_TRANSCEND_CONSENT_API,Gy as DEFAULT_TRANSCEND_PULL_RESOURCES,Jo as DELETE_API_KEY,aa as DELETE_ATTRIBUTE_VALUE,za as DEPLOYED_PRIVACY_CENTER_URL,Ra as DEPLOY_CONSENT_MANAGER,vn as DETERMINE_LOGIN_METHOD,Jm as DataCategoryGuessInput,od as DataCategoryInput,Cn as DataCategoryPreviewInput,lA as DataCategoryRecommendationInput,Co as DataFlowCsvInput,Cd as DataFlowInput,bd as DataSiloInput,gd as DataSubjectInput,ud as DatapointInput,es as ENABLED_PLUGINS,Oo as ENRICHERS,Do as ENTRY_COUNT,ma as EXPERIENCES,Gu as EnrichPrivacyRequest,Zm as EnricherInput,Aa as FETCH_CONSENT_MANAGER,Ia as FETCH_CONSENT_MANAGER_ID,Ta as FETCH_CONSENT_MANAGER_THEME,Ya as FETCH_PRIVACY_CENTER_ID,cd as FieldInput,Va as GLOBAL_ACTION_ITEMS,ea as GLOBAL_ACTION_ITEM_COLLECTIONS,Fo as IDENTIFIERS,Wr as IDENTIFIER_BLOCK_LIST,ST as IMPORT_ONE_TRUST_ASSESSMENT_FORMS,No as INITIALIZER,zC as IP_ADDRESS_REGEX,Pl as IS_REQUIRED,hd as IdentifierInput,IA as ImportOnetrustAssessmentsInput,Tc as IntlMessage,Rd as IntlMessageInput,Xa as LARGE_LANGUAGE_MODELS,Wa as LOGIN,Ts as MESSAGES,Uo as NEW_IDENTIFIER_TYPES,Z as NONE,Is as NOTIFY_ADDITIONAL_TIME,os as ORGANIZATION,UI as OneTrustFileFormat,BI as OneTrustPullResource,QI as OneTrustPullSource,Md as OpenAIEnabledRoute,Fd as OpenAIEnabledRoutes,Ud as OpenAIIntegration,gn as OpenAIRouteName,gs as POLICIES,$s as PREFERENCE_TOPICS,Ha as PRIVACY_CENTER,gp as PROCESSING_PURPOSE_SUB_CATEGORIES,qs as PROMPTS,ks as PROMPTS_WITH_VARIABLES,Ls as PROMPT_GROUPS,vs as PROMPT_PARTIALS,ds as PROMPT_THREADS,xs as PURPOSES,Dl as ParsedAttributeInput,Td as PartitionInput,hA as PathfinderPolicy,gr as PathfinderPolicyName,gA as PathfinderPolicyNameC,CA as PathfinderPromptRunMetadata,Ed as PolicyInput,Pd as PrivacyCenterInput,WL as PrivacyRequest,n_ as PrivacyRequestInput,Fi as PrivacyRequestResponse,sd as ProcessingPurposeInput,Wm as ProcessingPurposePreviewInput,md as PromptAVendorEmailSettings,ld as PromptGroupInput,ad as PromptInput,pd as PromptPartialInput,fu as PurposeMap,Qs as REDUCED_REQUESTS_FOR_DATA_SILO_COUNT,zs as REMOVE_REQUEST_IDENTIFIERS,Xs as REPORT_PROMPT_RUN,Yo as REPOSITORIES,hs as REQUESTS,Us as REQUEST_DATA_SILOS,Ps as REQUEST_ENRICHERS,Ws as REQUEST_FILES,Hs as REQUEST_IDENTIFIERS,Bs as RETRY_REQUEST_DATA_SILO,Es as RETRY_REQUEST_ENRICHER,mA as RepositoryInput,Yh as RequestFileMetadata,zh as RequestFileMetadataResponse,Sh as RequestIdentifiersResponse,dA as RiskAssignmentInput,qd as RiskLogicInput,ua as SET_RESOURCE_ATTRIBUTES,Rs as SKIP_REQUEST_ENRICHER,as as SOFTWARE_DEVELOPMENT_KITS,Cp as SOMBRA_VERSION,Ro as SUB_DATA_POINTS,bo as SUB_DATA_POINTS_COUNT,wo as SUB_DATA_POINTS_WITH_GUESSES,ug as SYNC_ATTRIBUTE_TYPES,cA as SoftwareDevelopmentKitInput,ho as StoredApiKey,Jr as SuccessfulRequest,Vs as TEAMS,ns as TEMPLATES,va as TOGGLE_CONSENT_PRECEDENCE,jo as TOGGLE_DATA_SUBJECT,qa as TOGGLE_TELEMETRY_PARTITION_STRATEGY,Da as TOGGLE_UNKNOWN_COOKIE_POLICY,$a as TOGGLE_UNKNOWN_REQUEST_POLICY,HI as TR_PULL_RESOURCE_SCOPE_MAP,zI as TR_PUSH_RESOURCE_SCOPE_MAP,ZI as TR_YML_RESOURCE_TO_FIELD_NAME,Hm as TeamInput,Ym as TemplateInput,In as TranscendInput,$u as TranscendPromptManager,rm as TranscendPullResource,Qa as UPDATE_ACTION,Ka as UPDATE_ACTION_ITEMS,na as UPDATE_ACTION_ITEM_COLLECTION,rp as UPDATE_AGENTS,op as UPDATE_AGENT_FILES,pp as UPDATE_AGENT_FUNCTIONS,ca as UPDATE_ATTRIBUTE,sa as UPDATE_ATTRIBUTE_VALUES,Fa as UPDATE_BUSINESS_ENTITIES,us as UPDATE_CODE_PACKAGES,ka as UPDATE_CONSENT_EXPERIENCE,ba as UPDATE_CONSENT_MANAGER_DOMAINS,wa as UPDATE_CONSENT_MANAGER_PARTITION,La as UPDATE_CONSENT_MANAGER_THEME,Ea as UPDATE_CONSENT_MANAGER_TO_LATEST,Pa as UPDATE_CONSENT_MANAGER_VERSION,ga as UPDATE_DATA_FLOWS,An as UPDATE_DATA_SILOS,Ko as UPDATE_DATA_SUBJECT,fp as UPDATE_DATA_SUB_CATEGORIES,Go as UPDATE_ENRICHER,Qo as UPDATE_IDENTIFIER,Ss as UPDATE_INTL_MESSAGES,ya as UPDATE_OR_CREATE_COOKIES,xo as UPDATE_OR_CREATE_DATA_POINT,ys as UPDATE_POLICIES,Za as UPDATE_PRIVACY_CENTER,ae as UPDATE_PRIVACY_REQUEST,hp as UPDATE_PROCESSING_PURPOSE_SUB_CATEGORIES,Os as UPDATE_PROMPTS,Ms as UPDATE_PROMPT_GROUPS,_s as UPDATE_PROMPT_PARTIALS,zo as UPDATE_REPOSITORIES,ps as UPDATE_SOFTWARE_DEVELOPMENT_KITS,js as UPDATE_TEAM,xa as UPDATE_TOGGLE_USP_API,up as UPDATE_VENDORS,Zs as USERS,du as USP_STRING_REGEX,To as VARIABLE_PARAMETERS_NAME,Ao as VARIABLE_PARAMETERS_REGEXP,lp as VENDORS,id as VendorInput,mo as WebhookHeader,Mk as addMessagesToPromptRun,FU as appendCsvSync,B_ as approvePrivacyRequests,lc as assumeRole,no as buildAIIntegrationType,eo as buildEnabledRouteType,L as buildTranscendGraphQLClient,xi as buildTranscendGraphQLClientGeneric,L0 as buildXdiSyncEndpoint,aM as bulkRestartRequests,wM as bulkRetryEnrichers,gG as cancelPrivacyRequests,N0 as consentManagersToBusinessEntities,$p as convertToDataSubjectAllowlist,xp as convertToDataSubjectBlockList,kg as createActionItemCollection,Gg as createActionItems,qg as createAgent,Yg as createAgentFile,Qg as createAgentFunction,cc as createApiKey,fg as createBusinessEntity,nh as createCodePackage,pu as createConsentToken,ey as createDataCategory,hg as createDataFlows,oy as createProcessingPurpose,Yf as createPrompt,EI as createRegexForTag,Wy as createRepository,Vy as createSoftwareDevelopmentKit,Et as createSombraGotInstance,ac as createTranscendConsentGotInstance,Wg as createVendor,yQ as defineTranscendPrompts,uc as deleteApiKey,mc as deployConsentManager,export_description as description,ou as domainToHost,w_ as downloadPrivacyRequestFiles,Mu as enrichPrivacyRequest,wp as ensureAllDataSubjectsExist,an as extractClientError,VD as fetchActiveSiloDiscoPlugin,Kr as fetchAllActionItems,Br as fetchAllActions,Oe as fetchAllAgentFiles,Yr as fetchAllAgentFunctions,le as fetchAllAgents,Wn as fetchAllApiKeys,Gl as fetchAllAssessmentTemplates,_l as fetchAllAssessments,cg as fetchAllAttributeValues,$e as fetchAllAttributes,Fr as fetchAllBusinessEntities,ph as fetchAllCatalogs,hi as fetchAllCookies,Hr as fetchAllDataCategories,qe as fetchAllDataFlows,vf as fetchAllDataPoints,vp as fetchAllDataSilos,rr as fetchAllDataSubjects,Qn as fetchAllEnrichers,Un as fetchAllIdentifiers,Nl as fetchAllMessages,Nr as fetchAllPolicies,Fl as fetchAllPreferenceTopics,Ol as fetchAllPrivacyCenters,Zr as fetchAllProcessingPurposes,Vr as fetchAllPromptGroups,Qr as fetchAllPromptPartials,Xl as fetchAllPromptThreads,be as fetchAllPrompts,Mr as fetchAllPurposes,Ul as fetchAllPurposesAndPreferences,rc as fetchAllRequestAttributeKeys,ze as fetchAllRequestEnrichers,tc as fetchAllRequestIdentifierMetadata,Ye as fetchAllRequestIdentifiers,it as fetchAllRequests,qf as fetchAllSubDataPoints,kr as fetchAllTeams,Te as fetchAllTemplates,Sk as fetchAllUsers,zr as fetchAllVendors,fL as fetchAndIndexCatalogs,Or as fetchApiKeys,$r as fetchConsentManager,qr as fetchConsentManagerAnalyticsData,Dr as fetchConsentManagerExperiences,ht as fetchConsentManagerId,Np as fetchConsentManagerTheme,Q0 as fetchConsentPreferences,Lp as fetchEnrichedDataSilos,Tp as fetchIdentifiersAndCreateMissing,sr as fetchPartitions,we as fetchPrivacyCenterId,or as fetchPrivacyCenterUrl,Up as fetchPromptsWithVariables,rn as fetchRequestDataSilo,ec as fetchRequestDataSiloActiveCount,ki as fetchRequestDataSilos,$k as fetchRequestFilesForRequest,AQ as filterNullishValuesFromObject,kl as filterRows,Ve as fuzzyMatchColumns,Qe as fuzzySearch,TB as generateCrossAccountApiKeys,Sc as getFileMetadataForPrivacyRequests,RQ as getGitFilesThatChanged,Xt as getUniqueValuesForColumn,hU as inquirerAutoComplete,gU as inquirerConfirmBoolean,yU as inquirerConfirmText,wQ as json2Csv,OB as listDirectories,qB as listFiles,pc as loginUser,m as makeGraphQLRequest,kc as mapColumnsToAttributes,qc as mapColumnsToIdentifiers,yc as mapCsvColumnsToApi,Cc as mapCsvRowsToRequestInputs,Pe as mapEnumValues,hc as mapRequestEnumValues,Au as markCronIdentifierCompleted,aB as markRequestDataSiloIdsCompleted,xN as markSilentPrivacyRequests,pD as mergeTranscendInputs,VI as name,Bh as normalizeIdentifierValue,W_ as notifyPrivacyRequestsAdditionalTime,Ti as parseAssessmentDisplayLogic,Si as parseAssessmentRiskLogic,ql as parseAttributesFromString,IU as parseVariablesFromString,VQ as pullAllDatapoints,P0 as pullConsentManagerMetrics,gu as pullCronPageOfIdentifiers,NU as pullCustomSiloOutstandingIdentifiers,yV as pullManualEnrichmentIdentifiersToCsv,YM as pullPrivacyRequests,fv as pullTranscendConfiguration,JQ as pullUnstructuredSubDataPointRecommendations,JU as pushCronIdentifiersFromCsv,DV as pushManualEnrichmentIdentifiersFromCsv,Yt as readCsv,bA as readTranscendYaml,CQ as removeLinks,mF as removeUnverifiedRequestIdentifiers,jd as replaceVariablesInYaml,nn as reportPromptRun,Mc as restartPrivacyRequest,_M as retryRequestDataSilos,Jl as retryRequestEnricher,bL as setResourceAttributes,yM as skipPreflightJobs,rF as skipRequestDataSilos,Pt as splitCsvToList,Pc as streamPrivacyRequestFiles,wc as submitPrivacyRequest,al as syncAction,fl as syncActionItemCollections,hl as syncActionItems,Il as syncAgentFiles,Cl as syncAgentFunctions,ml as syncAgents,Rp as syncAttribute,el as syncBusinessEntities,iL as syncCodePackages,oD as syncConfigurationToTranscend,Wp as syncConsentManager,lg as syncConsentManagerExperiences,Lr as syncCookies,Tl as syncDataCategories,Ur as syncDataFlows,Op as syncDataSiloDependencies,kp as syncDataSilos,Mp as syncDataSubject,Ep as syncEnricher,Sp as syncIdentifier,Vp as syncIntlMessages,Yp as syncPartitions,Qp as syncPolicies,Kp as syncPrivacyCenter,Sl as syncProcessingPurposes,Bp as syncPrompts,zl as syncRepositories,jl as syncSoftwareDevelopmentKits,pl as syncTemplate,Al as syncVendors,Mg as updateActionItem,Og as updateActionItemCollection,zg as updateAgentFiles,Vg as updateAgentFunctions,vg as updateAgents,gg as updateBusinessEntities,ih as updateCodePackages,dc as updateConsentManagerToLatest,JF as updateConsentManagerVersionToLatest,ry as updateDataCategories,yg as updateDataFlows,ng as updateIntlMessages,_f as updateOrCreateCookies,Xf as updatePolicies,sy as updateProcessingPurposes,zf as updatePrompts,Jy as updateRepositories,Ky as updateSoftwareDevelopmentKits,Jg as updateVendors,X0 as uploadConsents,C0 as uploadCookiesFromCsv,p0 as uploadDataFlowsFromCsv,UG as uploadPrivacyRequestsFromCsv,cL as uploadSiloDiscoveryResults,xB as validateTranscendAuth,export_version as version,cn as writeCsv,MU as writeCsvSync,UU as writeLargeCsv,wA as writeTranscendYaml};