@transcend-io/cli 7.0.0 → 8.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 (271) hide show
  1. package/dist/bin/bash-complete.js +4 -0
  2. package/dist/bin/bash-complete.js.map +1 -0
  3. package/dist/bin/cli.js +3 -0
  4. package/dist/bin/cli.js.map +1 -0
  5. package/dist/bin/deprecated-command.js +7 -0
  6. package/dist/bin/deprecated-command.js.map +1 -0
  7. package/dist/chunk-26T4RUOI.js +12 -0
  8. package/dist/chunk-26T4RUOI.js.map +1 -0
  9. package/dist/chunk-2LCGZ77N.js +2 -0
  10. package/dist/chunk-2LCGZ77N.js.map +1 -0
  11. package/dist/chunk-2V6ABZRI.js +2 -0
  12. package/dist/chunk-2V6ABZRI.js.map +1 -0
  13. package/dist/chunk-347UQP43.js +2 -0
  14. package/dist/chunk-347UQP43.js.map +1 -0
  15. package/dist/chunk-43JWXG77.js +2 -0
  16. package/dist/chunk-43JWXG77.js.map +1 -0
  17. package/dist/chunk-4GLITB3Y.js +2 -0
  18. package/dist/chunk-4GLITB3Y.js.map +1 -0
  19. package/dist/chunk-65I2PF73.js +2 -0
  20. package/dist/chunk-65I2PF73.js.map +1 -0
  21. package/dist/chunk-72U6ETHG.js +2 -0
  22. package/dist/chunk-72U6ETHG.js.map +1 -0
  23. package/dist/chunk-ARVEJERC.js +2 -0
  24. package/dist/chunk-ARVEJERC.js.map +1 -0
  25. package/dist/chunk-CBAHSBSW.js +2 -0
  26. package/dist/{chunk-UBUNHRCG.cjs.map → chunk-CBAHSBSW.js.map} +1 -1
  27. package/dist/chunk-EZHASXA5.js +2 -0
  28. package/dist/chunk-EZHASXA5.js.map +1 -0
  29. package/dist/chunk-FHZRITAV.js +2 -0
  30. package/dist/chunk-FHZRITAV.js.map +1 -0
  31. package/dist/chunk-HJULYIHF.js +3 -0
  32. package/dist/chunk-HJULYIHF.js.map +1 -0
  33. package/dist/chunk-HOZXN2EM.js +94 -0
  34. package/dist/chunk-HOZXN2EM.js.map +1 -0
  35. package/dist/chunk-L5ULN3IT.js +2 -0
  36. package/dist/chunk-L5ULN3IT.js.map +1 -0
  37. package/dist/chunk-L7ZIX4SU.js +2 -0
  38. package/dist/chunk-L7ZIX4SU.js.map +1 -0
  39. package/dist/chunk-LAYHULHH.js +2 -0
  40. package/dist/chunk-LAYHULHH.js.map +1 -0
  41. package/dist/chunk-MA4JWWRO.js +6 -0
  42. package/dist/chunk-MA4JWWRO.js.map +1 -0
  43. package/dist/chunk-MK5T6DBK.js +2831 -0
  44. package/dist/chunk-MK5T6DBK.js.map +1 -0
  45. package/dist/chunk-N6JZHL5U.js +2 -0
  46. package/dist/chunk-N6JZHL5U.js.map +1 -0
  47. package/dist/chunk-NZZKRVAI.js +4 -0
  48. package/dist/chunk-NZZKRVAI.js.map +1 -0
  49. package/dist/chunk-OEB7WG3G.js +4 -0
  50. package/dist/chunk-OEB7WG3G.js.map +1 -0
  51. package/dist/chunk-SRLEEKKQ.js +9 -0
  52. package/dist/chunk-SRLEEKKQ.js.map +1 -0
  53. package/dist/chunk-WO5MQBXP.js +75 -0
  54. package/dist/chunk-WO5MQBXP.js.map +1 -0
  55. package/dist/impl-24IS3GIF.js +2 -0
  56. package/dist/impl-24IS3GIF.js.map +1 -0
  57. package/dist/impl-3YESYKVQ.js +2 -0
  58. package/dist/impl-3YESYKVQ.js.map +1 -0
  59. package/dist/impl-6MGNPY7O.js +2 -0
  60. package/dist/impl-6MGNPY7O.js.map +1 -0
  61. package/dist/impl-6SYXV3YI.js +2 -0
  62. package/dist/impl-6SYXV3YI.js.map +1 -0
  63. package/dist/impl-BVOF3W2V.js +4 -0
  64. package/dist/impl-BVOF3W2V.js.map +1 -0
  65. package/dist/impl-D4AEXEMN.js +12 -0
  66. package/dist/impl-D4AEXEMN.js.map +1 -0
  67. package/dist/impl-EAY4M3OY.js +2 -0
  68. package/dist/impl-EAY4M3OY.js.map +1 -0
  69. package/dist/impl-F4IQEKTF.js +9 -0
  70. package/dist/impl-F4IQEKTF.js.map +1 -0
  71. package/dist/impl-G4JGSVWD.js +2 -0
  72. package/dist/impl-G4JGSVWD.js.map +1 -0
  73. package/dist/impl-HFXHM3PH.js +2 -0
  74. package/dist/impl-HFXHM3PH.js.map +1 -0
  75. package/dist/impl-HMHOYOZZ.js +2 -0
  76. package/dist/impl-HMHOYOZZ.js.map +1 -0
  77. package/dist/impl-IU4EANSX.js +7 -0
  78. package/dist/impl-IU4EANSX.js.map +1 -0
  79. package/dist/impl-IWDHKBWZ.js +2 -0
  80. package/dist/impl-IWDHKBWZ.js.map +1 -0
  81. package/dist/impl-JFD2JMP6.js +2 -0
  82. package/dist/impl-JFD2JMP6.js.map +1 -0
  83. package/dist/impl-JH4VBMNT.js +2 -0
  84. package/dist/impl-JH4VBMNT.js.map +1 -0
  85. package/dist/impl-LSP4V37Z.js +6 -0
  86. package/dist/impl-LSP4V37Z.js.map +1 -0
  87. package/dist/impl-MIJFNSLS.js +2 -0
  88. package/dist/impl-MIJFNSLS.js.map +1 -0
  89. package/dist/impl-NL32KFH4.js +2 -0
  90. package/dist/impl-NL32KFH4.js.map +1 -0
  91. package/dist/impl-NLCPSIYZ.js +2 -0
  92. package/dist/impl-NLCPSIYZ.js.map +1 -0
  93. package/dist/impl-NXRQU2U5.js +6 -0
  94. package/dist/impl-NXRQU2U5.js.map +1 -0
  95. package/dist/impl-QEOVZIM5.js +2 -0
  96. package/dist/impl-QEOVZIM5.js.map +1 -0
  97. package/dist/impl-QRK4B3FD.js +2 -0
  98. package/dist/impl-QRK4B3FD.js.map +1 -0
  99. package/dist/impl-QZBKOJBQ.js +2 -0
  100. package/dist/impl-QZBKOJBQ.js.map +1 -0
  101. package/dist/impl-RFRQUKQY.js +2 -0
  102. package/dist/impl-RFRQUKQY.js.map +1 -0
  103. package/dist/impl-RIVVHWBR.js +2 -0
  104. package/dist/impl-RIVVHWBR.js.map +1 -0
  105. package/dist/impl-SJHU5PR7.js +2 -0
  106. package/dist/impl-SJHU5PR7.js.map +1 -0
  107. package/dist/impl-SYC5TORT.js +2 -0
  108. package/dist/impl-SYC5TORT.js.map +1 -0
  109. package/dist/impl-TP4QITXR.js +2 -0
  110. package/dist/impl-TP4QITXR.js.map +1 -0
  111. package/dist/impl-UOB7PV4W.js +2 -0
  112. package/dist/impl-UOB7PV4W.js.map +1 -0
  113. package/dist/impl-UUQ2BEZR.js +2 -0
  114. package/dist/impl-UUQ2BEZR.js.map +1 -0
  115. package/dist/impl-WH2I2JB7.js +2 -0
  116. package/dist/impl-WH2I2JB7.js.map +1 -0
  117. package/dist/impl-X6N6NFUV.js +6 -0
  118. package/dist/impl-X6N6NFUV.js.map +1 -0
  119. package/dist/impl-XF3OTAQZ.js +2 -0
  120. package/dist/impl-XF3OTAQZ.js.map +1 -0
  121. package/dist/impl-XH3KTZRN.js +2 -0
  122. package/dist/{impl-EJT3AX73.cjs.map → impl-XH3KTZRN.js.map} +1 -1
  123. package/dist/impl-XQBTTRCU.js +2 -0
  124. package/dist/impl-XQBTTRCU.js.map +1 -0
  125. package/dist/impl-YA2HU57Y.js +2 -0
  126. package/dist/impl-YA2HU57Y.js.map +1 -0
  127. package/dist/impl-YEGS4G24.js +2 -0
  128. package/dist/impl-YEGS4G24.js.map +1 -0
  129. package/dist/impl-YNBHGQJK.js +2 -0
  130. package/dist/impl-YNBHGQJK.js.map +1 -0
  131. package/dist/impl-ZJL2YE7A.js +2 -0
  132. package/dist/impl-ZJL2YE7A.js.map +1 -0
  133. package/dist/{index.d.cts → index.d.ts} +1 -1
  134. package/dist/index.js +5 -0
  135. package/dist/index.js.map +1 -0
  136. package/package.json +45 -48
  137. package/dist/bin/bash-complete.cjs +0 -4
  138. package/dist/bin/bash-complete.cjs.map +0 -1
  139. package/dist/bin/cli.cjs +0 -3
  140. package/dist/bin/cli.cjs.map +0 -1
  141. package/dist/bin/deprecated-command.cjs +0 -7
  142. package/dist/bin/deprecated-command.cjs.map +0 -1
  143. package/dist/chunk-ANCIGXE5.cjs +0 -4
  144. package/dist/chunk-ANCIGXE5.cjs.map +0 -1
  145. package/dist/chunk-AW6I4V4F.cjs +0 -3
  146. package/dist/chunk-AW6I4V4F.cjs.map +0 -1
  147. package/dist/chunk-BY7W4UQF.cjs +0 -2
  148. package/dist/chunk-BY7W4UQF.cjs.map +0 -1
  149. package/dist/chunk-CHTWXNEA.cjs +0 -2
  150. package/dist/chunk-CHTWXNEA.cjs.map +0 -1
  151. package/dist/chunk-DS6VH676.cjs +0 -2
  152. package/dist/chunk-DS6VH676.cjs.map +0 -1
  153. package/dist/chunk-EG4L6YAJ.cjs +0 -2
  154. package/dist/chunk-EG4L6YAJ.cjs.map +0 -1
  155. package/dist/chunk-ETNRSKUM.cjs +0 -2
  156. package/dist/chunk-ETNRSKUM.cjs.map +0 -1
  157. package/dist/chunk-GM2EDRKN.cjs +0 -12
  158. package/dist/chunk-GM2EDRKN.cjs.map +0 -1
  159. package/dist/chunk-IBTP5OXE.cjs +0 -2
  160. package/dist/chunk-IBTP5OXE.cjs.map +0 -1
  161. package/dist/chunk-KOV2SQO2.cjs +0 -4
  162. package/dist/chunk-KOV2SQO2.cjs.map +0 -1
  163. package/dist/chunk-LBDIZJ23.cjs +0 -2844
  164. package/dist/chunk-LBDIZJ23.cjs.map +0 -1
  165. package/dist/chunk-LZYEIVWM.cjs +0 -94
  166. package/dist/chunk-LZYEIVWM.cjs.map +0 -1
  167. package/dist/chunk-MPJABCSW.cjs +0 -75
  168. package/dist/chunk-MPJABCSW.cjs.map +0 -1
  169. package/dist/chunk-R5N2S5UU.cjs +0 -2
  170. package/dist/chunk-R5N2S5UU.cjs.map +0 -1
  171. package/dist/chunk-RW5GSSAA.cjs +0 -2
  172. package/dist/chunk-RW5GSSAA.cjs.map +0 -1
  173. package/dist/chunk-RZWMOCW3.cjs +0 -2
  174. package/dist/chunk-RZWMOCW3.cjs.map +0 -1
  175. package/dist/chunk-SAEKBZGF.cjs +0 -2
  176. package/dist/chunk-SAEKBZGF.cjs.map +0 -1
  177. package/dist/chunk-T462ONFX.cjs +0 -2
  178. package/dist/chunk-T462ONFX.cjs.map +0 -1
  179. package/dist/chunk-TD7ADMVO.cjs +0 -2
  180. package/dist/chunk-TD7ADMVO.cjs.map +0 -1
  181. package/dist/chunk-UBUNHRCG.cjs +0 -2
  182. package/dist/chunk-UEGX6GZ2.cjs +0 -2
  183. package/dist/chunk-UEGX6GZ2.cjs.map +0 -1
  184. package/dist/chunk-VCWGXJ2H.cjs +0 -9
  185. package/dist/chunk-VCWGXJ2H.cjs.map +0 -1
  186. package/dist/chunk-ZUNVPK23.cjs +0 -2
  187. package/dist/chunk-ZUNVPK23.cjs.map +0 -1
  188. package/dist/chunk-ZVK4HIDF.cjs +0 -6
  189. package/dist/chunk-ZVK4HIDF.cjs.map +0 -1
  190. package/dist/impl-2GU6CYMY.cjs +0 -2
  191. package/dist/impl-2GU6CYMY.cjs.map +0 -1
  192. package/dist/impl-2OEHQTIR.cjs +0 -2
  193. package/dist/impl-2OEHQTIR.cjs.map +0 -1
  194. package/dist/impl-2QXJ3WST.cjs +0 -9
  195. package/dist/impl-2QXJ3WST.cjs.map +0 -1
  196. package/dist/impl-442H4ODN.cjs +0 -7
  197. package/dist/impl-442H4ODN.cjs.map +0 -1
  198. package/dist/impl-44QRPPUX.cjs +0 -6
  199. package/dist/impl-44QRPPUX.cjs.map +0 -1
  200. package/dist/impl-4DOGSDPC.cjs +0 -2
  201. package/dist/impl-4DOGSDPC.cjs.map +0 -1
  202. package/dist/impl-5J3MG42D.cjs +0 -2
  203. package/dist/impl-5J3MG42D.cjs.map +0 -1
  204. package/dist/impl-5YMSNFJU.cjs +0 -2
  205. package/dist/impl-5YMSNFJU.cjs.map +0 -1
  206. package/dist/impl-6TBKGA4Y.cjs +0 -2
  207. package/dist/impl-6TBKGA4Y.cjs.map +0 -1
  208. package/dist/impl-7VYQSZVO.cjs +0 -2
  209. package/dist/impl-7VYQSZVO.cjs.map +0 -1
  210. package/dist/impl-BB24LU3N.cjs +0 -2
  211. package/dist/impl-BB24LU3N.cjs.map +0 -1
  212. package/dist/impl-CWZ26FTN.cjs +0 -2
  213. package/dist/impl-CWZ26FTN.cjs.map +0 -1
  214. package/dist/impl-EFTKRWUA.cjs +0 -2
  215. package/dist/impl-EFTKRWUA.cjs.map +0 -1
  216. package/dist/impl-EJT3AX73.cjs +0 -2
  217. package/dist/impl-EKQ6ZNN3.cjs +0 -2
  218. package/dist/impl-EKQ6ZNN3.cjs.map +0 -1
  219. package/dist/impl-EV6T5UOK.cjs +0 -6
  220. package/dist/impl-EV6T5UOK.cjs.map +0 -1
  221. package/dist/impl-FPFUAY4Q.cjs +0 -2
  222. package/dist/impl-FPFUAY4Q.cjs.map +0 -1
  223. package/dist/impl-GDKUHX2J.cjs +0 -2
  224. package/dist/impl-GDKUHX2J.cjs.map +0 -1
  225. package/dist/impl-GXDABG5X.cjs +0 -2
  226. package/dist/impl-GXDABG5X.cjs.map +0 -1
  227. package/dist/impl-IG7QEF6D.cjs +0 -2
  228. package/dist/impl-IG7QEF6D.cjs.map +0 -1
  229. package/dist/impl-JQLYJA5L.cjs +0 -2
  230. package/dist/impl-JQLYJA5L.cjs.map +0 -1
  231. package/dist/impl-LPI3M7L3.cjs +0 -6
  232. package/dist/impl-LPI3M7L3.cjs.map +0 -1
  233. package/dist/impl-M7WMSIK4.cjs +0 -4
  234. package/dist/impl-M7WMSIK4.cjs.map +0 -1
  235. package/dist/impl-MRGZ5OLO.cjs +0 -2
  236. package/dist/impl-MRGZ5OLO.cjs.map +0 -1
  237. package/dist/impl-OI4UWRAU.cjs +0 -12
  238. package/dist/impl-OI4UWRAU.cjs.map +0 -1
  239. package/dist/impl-OX24YDRR.cjs +0 -2
  240. package/dist/impl-OX24YDRR.cjs.map +0 -1
  241. package/dist/impl-PFQKPCUL.cjs +0 -2
  242. package/dist/impl-PFQKPCUL.cjs.map +0 -1
  243. package/dist/impl-PXJZK6BV.cjs +0 -2
  244. package/dist/impl-PXJZK6BV.cjs.map +0 -1
  245. package/dist/impl-QOGUUIE6.cjs +0 -2
  246. package/dist/impl-QOGUUIE6.cjs.map +0 -1
  247. package/dist/impl-QR3LLBZL.cjs +0 -2
  248. package/dist/impl-QR3LLBZL.cjs.map +0 -1
  249. package/dist/impl-RODUB22E.cjs +0 -2
  250. package/dist/impl-RODUB22E.cjs.map +0 -1
  251. package/dist/impl-S56PHXGG.cjs +0 -2
  252. package/dist/impl-S56PHXGG.cjs.map +0 -1
  253. package/dist/impl-SDGCTSWN.cjs +0 -2
  254. package/dist/impl-SDGCTSWN.cjs.map +0 -1
  255. package/dist/impl-VEMQEG27.cjs +0 -2
  256. package/dist/impl-VEMQEG27.cjs.map +0 -1
  257. package/dist/impl-VFWBSWT5.cjs +0 -2
  258. package/dist/impl-VFWBSWT5.cjs.map +0 -1
  259. package/dist/impl-XRRNIJUK.cjs +0 -2
  260. package/dist/impl-XRRNIJUK.cjs.map +0 -1
  261. package/dist/impl-YA7HWMYB.cjs +0 -2
  262. package/dist/impl-YA7HWMYB.cjs.map +0 -1
  263. package/dist/impl-YOWRUVYG.cjs +0 -2
  264. package/dist/impl-YOWRUVYG.cjs.map +0 -1
  265. package/dist/impl-ZHZOMOST.cjs +0 -2
  266. package/dist/impl-ZHZOMOST.cjs.map +0 -1
  267. package/dist/index.cjs +0 -5
  268. package/dist/index.cjs.map +0 -1
  269. /package/dist/bin/{bash-complete.d.cts → bash-complete.d.ts} +0 -0
  270. /package/dist/bin/{cli.d.cts → cli.d.ts} +0 -0
  271. /package/dist/bin/{deprecated-command.d.cts → deprecated-command.d.ts} +0 -0
@@ -0,0 +1,2831 @@
1
+ import{a}from"./chunk-43JWXG77.js";import{b as di}from"./chunk-EZHASXA5.js";async function T(t,e){let n=[];for(let r=0;r<t.length;r+=1)n.push(await e(t[r],r,t.length));return n}async function M(t,e,n={}){let{concurrency:r=1/0}=n,i=new Array(t.length),s=[],o=0,l=async()=>{if(o>=t.length)return;let d=o;o+=1;let m=e(t[d],d,t.length).then(h=>{i[d]=h});s.push(m),await m;let g=s.indexOf(m);g>-1&&s.splice(g,1)},u=Math.min(r,t.length),c=[];for(let d=0;d<u;d+=1)c.push(l());for(await Promise.all(c);o<t.length;)s.length<r?await l():await Promise.race(s);return await Promise.all(s),i}import{gql as Me}from"graphql-request";var fi=Me`
2
+ query TranscendCliDataPoints(
3
+ $filterBy: DataPointFiltersInput
4
+ $first: Int!
5
+ $offset: Int!
6
+ ) {
7
+ dataPoints(
8
+ filterBy: $filterBy
9
+ first: $first
10
+ offset: $offset
11
+ useMaster: false
12
+ orderBy: [
13
+ { field: createdAt, direction: ASC }
14
+ { field: name, direction: ASC }
15
+ ]
16
+ ) {
17
+ nodes {
18
+ id
19
+ title {
20
+ defaultMessage
21
+ }
22
+ description {
23
+ defaultMessage
24
+ }
25
+ owners {
26
+ email
27
+ }
28
+ teams {
29
+ name
30
+ }
31
+ name
32
+ path
33
+ actionSettings {
34
+ type
35
+ active
36
+ }
37
+ dataCollection {
38
+ title {
39
+ defaultMessage
40
+ }
41
+ }
42
+ dbIntegrationQueries {
43
+ query
44
+ suggestedQuery
45
+ requestType
46
+ }
47
+ }
48
+ }
49
+ }
50
+ `,wc=Me`
51
+ query TranscendCliDataPointCount($filterBy: DataPointFiltersInput) {
52
+ dataPoints(filterBy: $filterBy, useMaster: false) {
53
+ totalCount
54
+ }
55
+ }
56
+ `,gi=Me`
57
+ query TranscendCliSubDataPoints(
58
+ $filterBy: SubDataPointFiltersInput
59
+ $first: Int!
60
+ $offset: Int!
61
+ ) {
62
+ subDataPoints(
63
+ filterBy: $filterBy
64
+ first: $first
65
+ offset: $offset
66
+ useMaster: false
67
+ ) {
68
+ nodes {
69
+ id
70
+ name
71
+ description
72
+ purposes {
73
+ name
74
+ purpose
75
+ }
76
+ categories {
77
+ name
78
+ category
79
+ }
80
+ accessRequestVisibilityEnabled
81
+ erasureRequestRedactionEnabled
82
+ attributeValues {
83
+ attributeKey {
84
+ name
85
+ }
86
+ name
87
+ }
88
+ }
89
+ }
90
+ }
91
+ `,$c=Me`
92
+ query TranscendCliSubDataPointsCount($filterBy: SubDataPointFiltersInput) {
93
+ subDataPoints(filterBy: $filterBy, useMaster: false) {
94
+ totalCount
95
+ }
96
+ }
97
+ `,yi=Me`
98
+ query TranscendCliSubDataPointGuesses(
99
+ $filterBy: SubDataPointFiltersInput
100
+ $first: Int!
101
+ $offset: Int!
102
+ ) {
103
+ subDataPoints(
104
+ filterBy: $filterBy
105
+ first: $first
106
+ offset: $offset
107
+ useMaster: false
108
+ ) {
109
+ nodes {
110
+ id
111
+ name
112
+ description
113
+ purposes {
114
+ name
115
+ purpose
116
+ }
117
+ categories {
118
+ name
119
+ category
120
+ }
121
+ pendingCategoryGuesses {
122
+ category {
123
+ name
124
+ category
125
+ }
126
+ status
127
+ confidence
128
+ classifierVersion
129
+ }
130
+ accessRequestVisibilityEnabled
131
+ erasureRequestRedactionEnabled
132
+ attributeValues {
133
+ attributeKey {
134
+ name
135
+ }
136
+ name
137
+ }
138
+ }
139
+ }
140
+ }
141
+ `,Ci=Me`
142
+ mutation TranscendCliUpdateOrCreateDataPoint(
143
+ $dataSiloId: ID!
144
+ $name: String!
145
+ $path: [String!]
146
+ $title: String
147
+ $description: String
148
+ $ownerIds: [ID!]
149
+ $ownerEmails: [String!]
150
+ $teamNames: [String!]
151
+ $teamIds: [ID!]
152
+ $dataCollectionTag: String
153
+ $querySuggestions: [DbIntegrationQuerySuggestionInput!]
154
+ $enabledActions: [RequestActionObjectResolver!]
155
+ $subDataPoints: [DataPointSubDataPointInput!]
156
+ ) {
157
+ updateOrCreateDataPoint(
158
+ input: {
159
+ dataSiloId: $dataSiloId
160
+ name: $name
161
+ path: $path
162
+ title: $title
163
+ teamNames: $teamNames
164
+ ownerEmails: $ownerEmails
165
+ dataCollectionTag: $dataCollectionTag
166
+ description: $description
167
+ ownerIds: $ownerIds
168
+ teamIds: $teamIds
169
+ querySuggestions: $querySuggestions
170
+ enabledActions: $enabledActions
171
+ subDataPoints: $subDataPoints
172
+ }
173
+ ) {
174
+ dataPoint {
175
+ id
176
+ name
177
+ }
178
+ }
179
+ }
180
+ `,bc=Me`
181
+ query TranscendCliDataPointCsvExport(
182
+ $filterBy: DataPointFiltersInput
183
+ $first: Int!
184
+ ) {
185
+ dataPoints(filterBy: $filterBy, first: $first, useMaster: false) {
186
+ nodes {
187
+ id
188
+ title {
189
+ defaultMessage
190
+ }
191
+ description {
192
+ defaultMessage
193
+ }
194
+ owners {
195
+ email
196
+ }
197
+ teams {
198
+ name
199
+ }
200
+ name
201
+ path
202
+ }
203
+ }
204
+ }
205
+ `;import{gql as qa}from"graphql-request";var Lc=qa`
206
+ query TranscendCliEntryCount(
207
+ $filterBy: UnstructuredSubDataPointRecommendationsFilterInput
208
+ ) {
209
+ unstructuredSubDataPointRecommendations(
210
+ filterBy: $filterBy
211
+ useMaster: false
212
+ ) {
213
+ totalCount
214
+ }
215
+ }
216
+ `;import{gql as mt}from"graphql-request";var hi=mt`
217
+ query TranscendCliDataSilos(
218
+ $filterBy: DataSiloFiltersInput!
219
+ $first: Int!
220
+ $offset: Int!
221
+ ) {
222
+ dataSilos(
223
+ filterBy: $filterBy
224
+ first: $first
225
+ offset: $offset
226
+ orderBy: [
227
+ { field: createdAt, direction: ASC }
228
+ { field: title, direction: ASC }
229
+ ]
230
+ useMaster: false
231
+ ) {
232
+ nodes {
233
+ id
234
+ title
235
+ link
236
+ type
237
+ catalog {
238
+ hasAvcFunctionality
239
+ }
240
+ }
241
+ }
242
+ }
243
+ `,Gc=mt`
244
+ query TranscendCliDataSiloExport(
245
+ $filterBy: DataSiloFiltersInput!
246
+ $first: Int!
247
+ ) {
248
+ dataSilos(filterBy: $filterBy, first: $first, useMaster: false) {
249
+ nodes {
250
+ id
251
+ title
252
+ }
253
+ }
254
+ }
255
+ `,Ii=mt`
256
+ query TranscendCliDataSilosEnriched(
257
+ $filterBy: DataSiloFiltersInput!
258
+ $first: Int!
259
+ $offset: Int!
260
+ ) {
261
+ dataSilos(
262
+ filterBy: $filterBy
263
+ first: $first
264
+ offset: $offset
265
+ orderBy: [
266
+ { field: createdAt, direction: ASC }
267
+ { field: title, direction: ASC }
268
+ ]
269
+ useMaster: false
270
+ ) {
271
+ nodes {
272
+ id
273
+ title
274
+ description
275
+ type
276
+ outerType
277
+ link
278
+ country
279
+ countrySubDivision
280
+ url
281
+ notifyEmailAddress
282
+ attributeValues {
283
+ attributeKey {
284
+ name
285
+ }
286
+ name
287
+ }
288
+ apiKeys {
289
+ title
290
+ }
291
+ subjectBlocklist {
292
+ type
293
+ }
294
+ identifiers {
295
+ name
296
+ isConnected
297
+ }
298
+ dependentDataSilos {
299
+ title
300
+ }
301
+ owners {
302
+ email
303
+ }
304
+ teams {
305
+ id
306
+ name
307
+ }
308
+ catalog {
309
+ hasAvcFunctionality
310
+ }
311
+ isLive
312
+ promptAVendorEmailSendFrequency
313
+ promptAVendorEmailSendType
314
+ promptAVendorEmailIncludeIdentifiersAttachment
315
+ promptAVendorEmailCompletionLinkType
316
+ manualWorkRetryFrequency
317
+ discoveredBy {
318
+ title
319
+ }
320
+ businessEntities {
321
+ title
322
+ }
323
+ }
324
+ }
325
+ }
326
+ `,Ht=mt`
327
+ mutation TranscendCliUpdateDataSilo($input: UpdateDataSilosInput!) {
328
+ updateDataSilos(input: $input) {
329
+ clientMutationId
330
+ dataSilos {
331
+ id
332
+ title
333
+ }
334
+ }
335
+ }
336
+ `,Ai=mt`
337
+ mutation TranscendCliCreateDataSilo($input: [CreateDataSilosInput!]!) {
338
+ createDataSilos(input: $input) {
339
+ dataSilos {
340
+ id
341
+ title
342
+ }
343
+ }
344
+ }
345
+ `;import{gql as It}from"graphql-request";var Ti=It`
346
+ query TranscendCliEnrichers($title: String, $first: Int!, $offset: Int!) {
347
+ enrichers(
348
+ filterBy: { text: $title }
349
+ first: $first
350
+ offset: $offset
351
+ useMaster: false
352
+ orderBy: [
353
+ { field: createdAt, direction: ASC }
354
+ { field: title, direction: ASC }
355
+ ]
356
+ ) {
357
+ nodes {
358
+ id
359
+ title
360
+ url
361
+ type
362
+ expirationDuration
363
+ lookerQueryTitle
364
+ testRegex
365
+ transitionRequestStatus
366
+ phoneNumbers
367
+ regionList
368
+ inputIdentifier {
369
+ name
370
+ }
371
+ identifiers {
372
+ name
373
+ }
374
+ dataSubjects {
375
+ type
376
+ }
377
+ actions
378
+ }
379
+ }
380
+ }
381
+ `,Oc=It`
382
+ query TranscendCliInitializer {
383
+ initializer {
384
+ id
385
+ identifiers {
386
+ name
387
+ }
388
+ }
389
+ }
390
+ `,Pi=It`
391
+ mutation TranscendCliCreateEnricher($input: EnricherInput!) {
392
+ createEnricher(input: $input) {
393
+ clientMutationId
394
+ }
395
+ }
396
+ `,Si=It`
397
+ mutation TranscendCliUpdateEnricher($input: UpdateEnricherInput!) {
398
+ updateEnricher(input: $input) {
399
+ clientMutationId
400
+ }
401
+ }
402
+ `;import{gql as Oa}from"graphql-request";var Ei=Oa`
403
+ query TranscendCliCatalogs($first: Int!, $offset: Int!) {
404
+ catalogs(first: $first, offset: $offset, filterBy: {}, useMaster: false) {
405
+ nodes {
406
+ integrationName
407
+ title
408
+ hasApiFunctionality
409
+ }
410
+ }
411
+ }
412
+ `;import{gql as At}from"graphql-request";var Ri=At`
413
+ query TranscendCliIdentifiers($first: Int!, $offset: Int!) {
414
+ identifiers(
415
+ first: $first
416
+ offset: $offset
417
+ useMaster: false
418
+ orderBy: [
419
+ { field: createdAt, direction: ASC }
420
+ { field: name, direction: ASC }
421
+ ]
422
+ ) {
423
+ nodes {
424
+ id
425
+ name
426
+ type
427
+ regex
428
+ selectOptions
429
+ privacyCenterVisibility
430
+ dataSubjects {
431
+ type
432
+ }
433
+ isRequiredInForm
434
+ placeholder
435
+ displayTitle {
436
+ defaultMessage
437
+ }
438
+ displayDescription {
439
+ defaultMessage
440
+ }
441
+ displayOrder
442
+ }
443
+ }
444
+ }
445
+ `,wi=At`
446
+ query TranscendCliNewIdentifierTypes {
447
+ newIdentifierTypes {
448
+ name
449
+ }
450
+ }
451
+ `,$i=At`
452
+ mutation TranscendCliCreateIdentifier($input: IdentifierInput!) {
453
+ createIdentifier(input: $input) {
454
+ identifier {
455
+ id
456
+ name
457
+ }
458
+ }
459
+ }
460
+ `,bi=At`
461
+ mutation TranscendCliUpdateIdentifier($input: UpdateIdentifierInput!) {
462
+ updateIdentifier(input: $input) {
463
+ clientMutationId
464
+ }
465
+ }
466
+ `;import{gql as Tt}from"graphql-request";var xi=Tt`
467
+ query TranscendCliDataSubjects {
468
+ internalSubjects {
469
+ id
470
+ title {
471
+ defaultMessage
472
+ }
473
+ active
474
+ type
475
+ adminDashboardDefaultSilentMode
476
+ actions {
477
+ type
478
+ }
479
+ }
480
+ }
481
+ `,Di=Tt`
482
+ mutation TranscendCliCreateDataSubject($type: String!) {
483
+ createSubject(input: { type: $type, title: $type, subjectClass: OTHER }) {
484
+ subject {
485
+ id
486
+ type
487
+ }
488
+ }
489
+ }
490
+ `,Li=Tt`
491
+ mutation TranscendCliUpdateDataSubject($input: UpdateSubjectInput!) {
492
+ updateSubject(input: $input) {
493
+ clientMutationId
494
+ }
495
+ }
496
+ `,ki=Tt`
497
+ mutation TranscendCliToggleDataSubject($input: ToggleSubjectInput!) {
498
+ toggleSubject(input: $input) {
499
+ clientMutationId
500
+ }
501
+ }
502
+ `;import{gql as Wt}from"graphql-request";var _i=Wt`
503
+ query TranscendCliRepositories(
504
+ $first: Int!
505
+ $offset: Int!
506
+ $input: RepositoryFiltersInput
507
+ ) {
508
+ repositories(
509
+ first: $first
510
+ offset: $offset
511
+ filterBy: $input
512
+ orderBy: [
513
+ { field: createdAt, direction: ASC }
514
+ { field: name, direction: ASC }
515
+ ]
516
+ ) {
517
+ nodes {
518
+ id
519
+ name
520
+ description
521
+ url
522
+ teams {
523
+ id
524
+ name
525
+ }
526
+ owners {
527
+ id
528
+ email
529
+ }
530
+ }
531
+ }
532
+ }
533
+ `,Gi=Wt`
534
+ mutation TranscendCliUpdateRepositories($input: UpdateRepositoriesInput!) {
535
+ updateRepositories(input: $input) {
536
+ clientMutationId
537
+ repositories {
538
+ id
539
+ name
540
+ url
541
+ teams {
542
+ id
543
+ name
544
+ }
545
+ owners {
546
+ id
547
+ email
548
+ }
549
+ }
550
+ }
551
+ }
552
+ `,vi=Wt`
553
+ mutation TranscendCliCreateRepository($input: CreateRepositoryInput!) {
554
+ createRepository(input: $input) {
555
+ clientMutationId
556
+ repository {
557
+ id
558
+ name
559
+ url
560
+ teams {
561
+ id
562
+ name
563
+ }
564
+ owners {
565
+ id
566
+ email
567
+ }
568
+ }
569
+ }
570
+ }
571
+ `;import{gql as zt}from"graphql-request";var qi=zt`
572
+ query TranscendCliApiKeys($first: Int!, $offset: Int!, $titles: [String!]) {
573
+ apiKeys(
574
+ first: $first
575
+ offset: $offset
576
+ filterBy: { titles: $titles }
577
+ useMaster: false
578
+ orderBy: [
579
+ { field: createdAt, direction: ASC }
580
+ { field: title, direction: ASC }
581
+ ]
582
+ ) {
583
+ nodes {
584
+ id
585
+ title
586
+ }
587
+ }
588
+ }
589
+ `,Oi=zt`
590
+ mutation TranscendCliCreateApiKey($input: ApiKeyInput!) {
591
+ createApiKey(input: $input) {
592
+ apiKey {
593
+ id
594
+ apiKey
595
+ title
596
+ }
597
+ }
598
+ }
599
+ `,Ni=zt`
600
+ mutation TranscendCliDeleteApiKey($id: ID!) {
601
+ deleteApiKey(id: $id) {
602
+ clientMutationId
603
+ }
604
+ }
605
+ `;import{gql as Mi}from"graphql-request";var Ui=Mi`
606
+ mutation AddSiloDiscoveryResults(
607
+ $pluginId: ID!
608
+ $rawResults: [SiloDiscoveryRawResultInput!]!
609
+ ) {
610
+ addSiloDiscoveryResults(
611
+ input: { pluginId: $pluginId, rawResults: $rawResults }
612
+ ) {
613
+ success
614
+ }
615
+ }
616
+ `,Fi=Mi`
617
+ query Plugins($dataSiloId: String!, $type: PluginType!) {
618
+ plugins(filterBy: { dataSiloId: $dataSiloId, type: $type, enabled: true }) {
619
+ plugins {
620
+ id
621
+ dataSilo {
622
+ type
623
+ }
624
+ }
625
+ totalCount
626
+ }
627
+ }
628
+ `;import{gql as Qi}from"graphql-request";var Bi=Qi`
629
+ query TranscendCliTemplates($title: String, $first: Int!, $offset: Int!) {
630
+ templates(
631
+ filterBy: { text: $title }
632
+ first: $first
633
+ offset: $offset
634
+ useMaster: false
635
+ ) {
636
+ nodes {
637
+ id
638
+ title
639
+ subject {
640
+ defaultMessage
641
+ }
642
+ template {
643
+ defaultMessage
644
+ }
645
+ }
646
+ }
647
+ }
648
+ `,Ki=Qi`
649
+ mutation TranscendCliCreateTemplate($title: String!) {
650
+ createTemplate(input: { title: $title, template: "", subject: $title }) {
651
+ clientMutationId
652
+ }
653
+ }
654
+ `;import{gql as Na}from"graphql-request";var Vi=Na`
655
+ query TranscendCliOrganization {
656
+ organization {
657
+ sombra {
658
+ customerUrl
659
+ }
660
+ }
661
+ }
662
+ `;import{gql as Ma}from"graphql-request";var ji=Ma`
663
+ query TranscendCliAttributeKeys($first: Int!, $offset: Int!) {
664
+ attributeKeys(
665
+ filterBy: { enabledOn: [request] }
666
+ first: $first
667
+ useMaster: false
668
+ offset: $offset
669
+ ) {
670
+ nodes {
671
+ id
672
+ name
673
+ type
674
+ }
675
+ }
676
+ }
677
+ `;import{gql as Jt}from"graphql-request";var Yi=Jt`
678
+ query TranscendCliSoftwareDevelopmentKits(
679
+ $first: Int!
680
+ $offset: Int!
681
+ $input: SoftwareDevelopmentKitFiltersInput
682
+ ) {
683
+ softwareDevelopmentKits(
684
+ first: $first
685
+ offset: $offset
686
+ filterBy: $input
687
+ orderBy: [
688
+ { field: createdAt, direction: ASC }
689
+ { field: name, direction: ASC }
690
+ ]
691
+ ) {
692
+ nodes {
693
+ id
694
+ name
695
+ description
696
+ codePackageType
697
+ documentationLinks
698
+ repositoryUrl
699
+ teams {
700
+ id
701
+ name
702
+ }
703
+ owners {
704
+ id
705
+ email
706
+ }
707
+ }
708
+ }
709
+ }
710
+ `,Zi=Jt`
711
+ mutation TranscendCliUpdateSoftwareDevelopmentKits(
712
+ $input: UpdateSoftwareDevelopmentKitsInput!
713
+ ) {
714
+ updateSoftwareDevelopmentKits(input: $input) {
715
+ clientMutationId
716
+ softwareDevelopmentKits {
717
+ id
718
+ name
719
+ description
720
+ codePackageType
721
+ documentationLinks
722
+ repositoryUrl
723
+ teams {
724
+ id
725
+ name
726
+ }
727
+ owners {
728
+ id
729
+ email
730
+ }
731
+ }
732
+ }
733
+ }
734
+ `,Hi=Jt`
735
+ mutation TranscendCliCreateSoftwareDevelopmentKit(
736
+ $input: CreateSoftwareDevelopmentKitInput!
737
+ ) {
738
+ createSoftwareDevelopmentKit(input: $input) {
739
+ clientMutationId
740
+ softwareDevelopmentKit {
741
+ id
742
+ name
743
+ description
744
+ codePackageType
745
+ documentationLinks
746
+ repositoryUrl
747
+ teams {
748
+ id
749
+ name
750
+ }
751
+ owners {
752
+ id
753
+ email
754
+ }
755
+ }
756
+ }
757
+ }
758
+ `;import{gql as Xt}from"graphql-request";var Wi=Xt`
759
+ query TranscendCliCodePackages(
760
+ $first: Int!
761
+ $offset: Int!
762
+ $input: CodePackageFiltersInput
763
+ ) {
764
+ codePackages(
765
+ first: $first
766
+ offset: $offset
767
+ filterBy: $input
768
+ orderBy: [
769
+ { field: createdAt, direction: ASC }
770
+ { field: name, direction: ASC }
771
+ ]
772
+ ) {
773
+ nodes {
774
+ id
775
+ name
776
+ description
777
+ type
778
+ relativePath
779
+ teams {
780
+ id
781
+ name
782
+ }
783
+ owners {
784
+ id
785
+ email
786
+ }
787
+ repository {
788
+ id
789
+ name
790
+ }
791
+ dataSilo {
792
+ id
793
+ title
794
+ type
795
+ }
796
+ }
797
+ }
798
+ }
799
+ `,zi=Xt`
800
+ mutation TranscendCliUpdateCodePackages($input: UpdateCodePackagesInput!) {
801
+ updateCodePackages(input: $input) {
802
+ clientMutationId
803
+ codePackages {
804
+ id
805
+ name
806
+ description
807
+ type
808
+ relativePath
809
+ teams {
810
+ id
811
+ name
812
+ }
813
+ owners {
814
+ id
815
+ email
816
+ }
817
+ repository {
818
+ id
819
+ name
820
+ }
821
+ dataSilo {
822
+ id
823
+ title
824
+ type
825
+ }
826
+ }
827
+ }
828
+ }
829
+ `,Ji=Xt`
830
+ mutation TranscendCliCreateCodePackage($input: CreateCodePackageInput!) {
831
+ createCodePackage(input: $input) {
832
+ clientMutationId
833
+ codePackage {
834
+ id
835
+ name
836
+ description
837
+ type
838
+ relativePath
839
+ teams {
840
+ id
841
+ name
842
+ }
843
+ owners {
844
+ id
845
+ email
846
+ }
847
+ repository {
848
+ id
849
+ name
850
+ }
851
+ dataSilo {
852
+ id
853
+ title
854
+ type
855
+ }
856
+ }
857
+ }
858
+ }
859
+ `;import{gql as Ua}from"graphql-request";var Xi=Ua`
860
+ query TranscendCliPromptThreads(
861
+ $first: Int!
862
+ $offset: Int!
863
+ $filterBy: PromptThreadFiltersInput!
864
+ ) {
865
+ promptThreads(first: $first, offset: $offset, filterBy: $filterBy) {
866
+ nodes {
867
+ id
868
+ threadId
869
+ slackMessageTs
870
+ slackTeamId
871
+ slackChannelId
872
+ slackChannelName
873
+ }
874
+ }
875
+ }
876
+ `;import{gql as er}from"graphql-request";var tr=er`
877
+ query TranscendCliFetchPolicies($url: String!) {
878
+ privacyCenterPolicies(lookup: { url: $url }) {
879
+ id
880
+ title {
881
+ defaultMessage
882
+ }
883
+ disableEffectiveOn
884
+ disabledLocales
885
+ versions {
886
+ effectiveOn
887
+ content {
888
+ defaultMessage
889
+ }
890
+ }
891
+ }
892
+ }
893
+ `,nr=er`
894
+ mutation TranscendCliUpdatePolicies(
895
+ $policies: [PolicyInput!]!
896
+ $privacyCenterId: ID!
897
+ ) {
898
+ updatePolicies(
899
+ input: {
900
+ privacyCenterId: $privacyCenterId
901
+ policies: $policies
902
+ skipPublish: true
903
+ }
904
+ ) {
905
+ clientMutationId
906
+ }
907
+ }
908
+ `;import{gql as ut}from"graphql-request";var ir=ut`
909
+ query TranscendCliRequests(
910
+ $first: Int!
911
+ $offset: Int!
912
+ $filterBy: RequestFiltersInput!
913
+ ) {
914
+ requests(
915
+ filterBy: $filterBy
916
+ first: $first
917
+ offset: $offset
918
+ orderBy: [
919
+ { field: createdAt, direction: ASC }
920
+ { field: id, direction: ASC }
921
+ ]
922
+ useMaster: false
923
+ ) {
924
+ nodes {
925
+ id
926
+ createdAt
927
+ email
928
+ link
929
+ status
930
+ details
931
+ isTest
932
+ locale
933
+ origin
934
+ isSilent
935
+ coreIdentifier
936
+ daysRemaining
937
+ type
938
+ subjectType
939
+ country
940
+ countrySubDivision
941
+ attributeValues {
942
+ id
943
+ name
944
+ attributeKey {
945
+ id
946
+ name
947
+ }
948
+ }
949
+ }
950
+ totalCount
951
+ }
952
+ }
953
+ `,um=ut`
954
+ mutation TranscendCliApprovePrivacyRequest($input: CommunicationInput!) {
955
+ approveRequest(input: $input) {
956
+ request {
957
+ id
958
+ }
959
+ }
960
+ }
961
+ `,dm=ut`
962
+ mutation TranscendCliCancelPrivacyRequest($input: CommunicationInput!) {
963
+ cancelRequest(input: $input) {
964
+ request {
965
+ id
966
+ }
967
+ }
968
+ }
969
+ `,fm=ut`
970
+ mutation TranscendCliUpdatePrivacyRequest($input: UpdateRequestInput!) {
971
+ updateRequest(input: $input) {
972
+ request {
973
+ id
974
+ }
975
+ }
976
+ }
977
+ `,gm=ut`
978
+ mutation TranscendCliNotifyAdditionalTime($input: AdditionalTimeInput!) {
979
+ notifyAdditionalTime(input: $input) {
980
+ clientMutationId
981
+ }
982
+ }
983
+ `;import{gql as rr}from"graphql-request";var or=rr`
984
+ query TranscendCliFetchMessage {
985
+ translatedMessages {
986
+ id
987
+ defaultMessage
988
+ targetReactIntlId
989
+ translations {
990
+ locale
991
+ value
992
+ }
993
+ }
994
+ }
995
+ `,sr=rr`
996
+ mutation TranscendCliUpdateIntlMessages($messages: [MessageInput!]!) {
997
+ updateIntlMessages(input: { messages: $messages, skipPublish: true }) {
998
+ clientMutationId
999
+ }
1000
+ }
1001
+ `;import{gql as en}from"graphql-request";var ar=en`
1002
+ query TranscendCliRequestEnrichers(
1003
+ $first: Int!
1004
+ $offset: Int!
1005
+ $requestId: ID!
1006
+ ) {
1007
+ requestEnrichers(
1008
+ input: { requestId: $requestId }
1009
+ first: $first
1010
+ offset: $offset
1011
+ useMaster: false
1012
+ orderBy: [
1013
+ { field: createdAt, direction: ASC }
1014
+ { field: title, direction: ASC, model: enricher }
1015
+ ]
1016
+ ) {
1017
+ nodes {
1018
+ id
1019
+ status
1020
+ enricher {
1021
+ id
1022
+ type
1023
+ title
1024
+ }
1025
+ }
1026
+ totalCount
1027
+ }
1028
+ }
1029
+ `,pr=en`
1030
+ mutation TranscendCliRetryRequestEnricher($requestEnricherId: ID!) {
1031
+ retryRequestEnricher(id: $requestEnricherId) {
1032
+ requestEnricher {
1033
+ id
1034
+ }
1035
+ }
1036
+ }
1037
+ `,Am=en`
1038
+ mutation TranscendCliSkipRequestEnricher($requestEnricherId: ID!) {
1039
+ skipRequestEnricher(id: $requestEnricherId) {
1040
+ requestEnricher {
1041
+ id
1042
+ }
1043
+ }
1044
+ }
1045
+ `;import{gql as lr}from"graphql-request";var tn=`
1046
+ id
1047
+ title
1048
+ status
1049
+ index
1050
+ questions {
1051
+ id
1052
+ title
1053
+ index
1054
+ type
1055
+ subType
1056
+ placeholder
1057
+ description
1058
+ isRequired
1059
+ displayLogic
1060
+ riskLogic
1061
+ requireRiskEvaluation
1062
+ requireRiskMatrixEvaluation
1063
+ riskCategories {
1064
+ id
1065
+ title
1066
+ }
1067
+ riskFramework {
1068
+ id
1069
+ title
1070
+ description
1071
+ riskLevels {
1072
+ id
1073
+ title
1074
+ }
1075
+ riskCategories {
1076
+ id
1077
+ title
1078
+ }
1079
+ riskMatrixColumns {
1080
+ id
1081
+ title
1082
+ }
1083
+ riskMatrixRows {
1084
+ id
1085
+ title
1086
+ }
1087
+ riskMatrix {
1088
+ id
1089
+ title
1090
+ }
1091
+ creator {
1092
+ id
1093
+ email
1094
+ name
1095
+ }
1096
+ riskMatrixRowTitle
1097
+ riskMatrixColumnTitle
1098
+ }
1099
+ riskLevel {
1100
+ id
1101
+ title
1102
+ }
1103
+ reviewerRiskLevel {
1104
+ id
1105
+ title
1106
+ }
1107
+ riskLevelFromRiskMatrix {
1108
+ id
1109
+ title
1110
+ }
1111
+ answerOptions {
1112
+ id
1113
+ index
1114
+ value
1115
+ }
1116
+ selectedAnswers {
1117
+ ... on AssessmentAnswerInterface {
1118
+ id
1119
+ index
1120
+ value
1121
+ }
1122
+ }
1123
+ respondent {
1124
+ id
1125
+ email
1126
+ name
1127
+ }
1128
+ attributeKey {
1129
+ name
1130
+ }
1131
+ externalRespondentEmail
1132
+ comments {
1133
+ id
1134
+ content
1135
+ createdAt
1136
+ updatedAt
1137
+ author {
1138
+ id
1139
+ email
1140
+ name
1141
+ }
1142
+ }
1143
+ allowedMimeTypes
1144
+ updatedAt
1145
+ referenceId
1146
+ previousSubmissions {
1147
+ id
1148
+ updatedAt
1149
+ assessmentQuestionId
1150
+ answers {
1151
+ ... on AssessmentAnswerInterface {
1152
+ id
1153
+ index
1154
+ value
1155
+ }
1156
+ }
1157
+ }
1158
+ allowSelectOther
1159
+ syncModel
1160
+ syncColumn
1161
+ syncRowIds
1162
+ syncOverride
1163
+ }
1164
+ assignees {
1165
+ id
1166
+ email
1167
+ name
1168
+ }
1169
+ externalAssignees {
1170
+ id
1171
+ email
1172
+ }
1173
+ isReviewed
1174
+ `,cr=lr`
1175
+ query TranscendCliAssessments(
1176
+ $first: Int!
1177
+ $offset: Int!
1178
+ $filterBy: AssessmentFormFiltersInput
1179
+ ) {
1180
+ assessmentForms(first: $first, offset: $offset, filterBy: $filterBy) {
1181
+ nodes {
1182
+ id
1183
+ creator {
1184
+ id
1185
+ email
1186
+ name
1187
+ }
1188
+ lastEditor {
1189
+ id
1190
+ email
1191
+ name
1192
+ }
1193
+ title
1194
+ description
1195
+ status
1196
+ assignees {
1197
+ id
1198
+ email
1199
+ name
1200
+ }
1201
+ externalAssignees {
1202
+ id
1203
+ email
1204
+ }
1205
+ reviewers {
1206
+ id
1207
+ email
1208
+ name
1209
+ }
1210
+ isLocked
1211
+ isArchived
1212
+ isExternallyCreated
1213
+ dueDate
1214
+ createdAt
1215
+ updatedAt
1216
+ assignedAt
1217
+ submittedAt
1218
+ approvedAt
1219
+ rejectedAt
1220
+ titleIsInternal
1221
+ retentionSchedule {
1222
+ id
1223
+ type
1224
+ durationDays
1225
+ operation
1226
+ }
1227
+ attributeValues {
1228
+ name
1229
+ attributeKey {
1230
+ name
1231
+ }
1232
+ }
1233
+ sections {
1234
+ ${tn}
1235
+ }
1236
+ assessmentGroup {
1237
+ id
1238
+ title
1239
+ description
1240
+ }
1241
+ resources {
1242
+ resourceType
1243
+ ... on AttributeBusinessEntityResource {
1244
+ id
1245
+ title
1246
+ }
1247
+ ... on AttributeDataSiloResource {
1248
+ id
1249
+ title
1250
+ }
1251
+ ... on AttributeDataSubCategoryResource {
1252
+ id
1253
+ name
1254
+ category
1255
+ }
1256
+ ... on AttributeSubDataPointResource {
1257
+ id
1258
+ name
1259
+ }
1260
+ ... on AttributeProcessingPurposeSubCategoryResource {
1261
+ id
1262
+ name
1263
+ purpose
1264
+ }
1265
+ ... on AttributeRequestResource {
1266
+ id
1267
+ type
1268
+ }
1269
+ ... on AttributeVendorResource {
1270
+ id
1271
+ title
1272
+ }
1273
+ ... on AttributePromptResource {
1274
+ id
1275
+ title
1276
+ }
1277
+ ... on AttributePromptRunResource {
1278
+ id
1279
+ title
1280
+ }
1281
+ ... on AttributePromptGroupResource {
1282
+ id
1283
+ title
1284
+ }
1285
+ }
1286
+ syncedRows {
1287
+ resourceType
1288
+ ... on AttributeBusinessEntityResource {
1289
+ id
1290
+ title
1291
+ }
1292
+ ... on AttributeDataSiloResource {
1293
+ id
1294
+ title
1295
+ }
1296
+ ... on AttributeDataSubCategoryResource {
1297
+ id
1298
+ name
1299
+ category
1300
+ }
1301
+ ... on AttributeSubDataPointResource {
1302
+ id
1303
+ name
1304
+ }
1305
+ ... on AttributeProcessingPurposeSubCategoryResource {
1306
+ id
1307
+ name
1308
+ purpose
1309
+ }
1310
+ ... on AttributeVendorResource {
1311
+ id
1312
+ title
1313
+ }
1314
+ }
1315
+ }
1316
+ }
1317
+ }
1318
+ `,Sm=lr`
1319
+ mutation TranscendCliImportOneTrustAssessmentForms(
1320
+ $input: ImportOnetrustAssessmentsInput!
1321
+ ) {
1322
+ importOneTrustAssessmentForms(input: $input) {
1323
+ assessmentForms {
1324
+ id
1325
+ title
1326
+ }
1327
+ }
1328
+ }
1329
+ `;import{gql as Fa}from"graphql-request";var mr=Fa`
1330
+ query TranscendCliPurposes(
1331
+ $first: Int!
1332
+ $offset: Int!
1333
+ $filterBy: TrackingPurposeFiltersInput
1334
+ $input: TrackingPurposeInput!
1335
+ ) {
1336
+ purposes(
1337
+ first: $first
1338
+ offset: $offset
1339
+ filterBy: $filterBy
1340
+ input: $input
1341
+ ) {
1342
+ nodes {
1343
+ id
1344
+ name
1345
+ description
1346
+ defaultConsent
1347
+ trackingType
1348
+ configurable
1349
+ essential
1350
+ showInConsentManager
1351
+ isActive
1352
+ displayOrder
1353
+ optOutSignals
1354
+ deletedAt
1355
+ authLevel
1356
+ showInPrivacyCenter
1357
+ title
1358
+ }
1359
+ }
1360
+ }
1361
+ `;import{gql as Qa}from"graphql-request";var ur=Qa`
1362
+ query TranscendCliPreferenceTopics(
1363
+ $first: Int!
1364
+ $offset: Int!
1365
+ $filterBy: PreferenceTopicFilterInput
1366
+ ) {
1367
+ preferenceTopics(first: $first, offset: $offset, filterBy: $filterBy) {
1368
+ nodes {
1369
+ id
1370
+ slug
1371
+ type
1372
+ title {
1373
+ id
1374
+ defaultMessage
1375
+ }
1376
+ showInPrivacyCenter
1377
+ displayDescription {
1378
+ id
1379
+ defaultMessage
1380
+ }
1381
+ defaultConfiguration
1382
+ preferenceOptionValues {
1383
+ slug
1384
+ title {
1385
+ id
1386
+ defaultMessage
1387
+ }
1388
+ }
1389
+ purpose {
1390
+ trackingType
1391
+ }
1392
+ }
1393
+ }
1394
+ }
1395
+ `;import{gql as Ba}from"graphql-request";var dr=Ba`
1396
+ query TranscendCliAssessmentTemplates(
1397
+ $first: Int!
1398
+ $offset: Int!
1399
+ $filterBy: AssessmentFormTemplateFiltersInput
1400
+ ) {
1401
+ assessmentFormTemplates(
1402
+ first: $first
1403
+ offset: $offset
1404
+ filterBy: $filterBy
1405
+ ) {
1406
+ nodes {
1407
+ id
1408
+ creator {
1409
+ id
1410
+ email
1411
+ name
1412
+ }
1413
+ lastEditor {
1414
+ id
1415
+ email
1416
+ name
1417
+ }
1418
+ title
1419
+ description
1420
+ status
1421
+ source
1422
+ parentId
1423
+ isLocked
1424
+ isArchived
1425
+ createdAt
1426
+ updatedAt
1427
+ retentionSchedule {
1428
+ id
1429
+ type
1430
+ durationDays
1431
+ operation
1432
+ createdAt
1433
+ updatedAt
1434
+ }
1435
+ assessmentEmailSet {
1436
+ id
1437
+ title
1438
+ description
1439
+ isDefault
1440
+ templates {
1441
+ id
1442
+ title
1443
+ }
1444
+ }
1445
+ sections {
1446
+ ${tn}
1447
+ }
1448
+ }
1449
+ }
1450
+ }
1451
+ `;import{gql as de}from"graphql-request";var fr=de`
1452
+ query TranscendCliPrompts(
1453
+ $first: Int!
1454
+ $offset: Int!
1455
+ $filterBy: PromptFiltersInput
1456
+ ) {
1457
+ prompts(
1458
+ first: $first
1459
+ orderBy: [{ field: title, direction: ASC }]
1460
+ offset: $offset
1461
+ filterBy: $filterBy
1462
+ ) {
1463
+ nodes {
1464
+ id
1465
+ title
1466
+ status
1467
+ content
1468
+ temperature
1469
+ topP
1470
+ maxTokensToSample
1471
+ }
1472
+ }
1473
+ }
1474
+ `,gr=de`
1475
+ query TranscendCliPromptPartials($first: Int!, $offset: Int!) {
1476
+ promptPartials(first: $first, offset: $offset) {
1477
+ nodes {
1478
+ id
1479
+ title
1480
+ content
1481
+ }
1482
+ }
1483
+ }
1484
+ `,yr=de`
1485
+ query TranscendCliPromptGroups($first: Int!, $offset: Int!) {
1486
+ promptGroups(
1487
+ first: $first
1488
+
1489
+ offset: $offset
1490
+ ) {
1491
+ nodes {
1492
+ id
1493
+ title
1494
+ description
1495
+ prompts {
1496
+ title
1497
+ }
1498
+ }
1499
+ }
1500
+ }
1501
+ `,Cr=de`
1502
+ query TranscendCliPromptsWithVariables($input: PromptsWithVariablesInput!) {
1503
+ promptsWithVariables(input: $input) {
1504
+ prompts {
1505
+ id
1506
+ title
1507
+ content
1508
+ status
1509
+ temperature
1510
+ topP
1511
+ maxTokensToSample
1512
+ responseFormat
1513
+ }
1514
+ promptPartials {
1515
+ id
1516
+ title
1517
+ content
1518
+ slug
1519
+ }
1520
+ calculatedVariables {
1521
+ data
1522
+ name
1523
+ }
1524
+ runtimeVariables {
1525
+ name
1526
+ }
1527
+ }
1528
+ }
1529
+ `,hr=de`
1530
+ mutation TranscendCliUpdatePrompts($input: UpdatePromptsInput!) {
1531
+ updatePrompts(input: $input) {
1532
+ clientMutationId
1533
+ }
1534
+ }
1535
+ `,Ir=de`
1536
+ mutation TranscendCliCreatePrompt($input: CreatePromptInput!) {
1537
+ createPrompt(input: $input) {
1538
+ clientMutationId
1539
+ prompt {
1540
+ id
1541
+ }
1542
+ }
1543
+ }
1544
+ `,Ar=de`
1545
+ mutation TranscendCliUpdatePromptPartials(
1546
+ $input: UpdatePromptPartialsInput!
1547
+ ) {
1548
+ updatePromptPartials(input: $input) {
1549
+ clientMutationId
1550
+ }
1551
+ }
1552
+ `,Tr=de`
1553
+ mutation TranscendCliCreatePromptPartial($input: CreatePromptPartialInput!) {
1554
+ createPromptPartial(input: $input) {
1555
+ clientMutationId
1556
+ promptPartial {
1557
+ id
1558
+ }
1559
+ }
1560
+ }
1561
+ `,Pr=de`
1562
+ mutation TranscendCliUpdatePromptGroups($input: UpdatePromptGroupsInput!) {
1563
+ updatePromptGroups(input: $input) {
1564
+ clientMutationId
1565
+ }
1566
+ }
1567
+ `,Sr=de`
1568
+ mutation TranscendCliCreatePromptPartial($input: CreatePromptGroupInput!) {
1569
+ createPromptGroup(input: $input) {
1570
+ clientMutationId
1571
+ promptGroup {
1572
+ id
1573
+ }
1574
+ }
1575
+ }
1576
+ `;import{gql as Pt}from"graphql-request";var Er=Pt`
1577
+ query TranscendCliRequestDataSilos(
1578
+ $first: Int!
1579
+ $offset: Int!
1580
+ $filterBy: RequestDataSiloFiltersInput!
1581
+ ) {
1582
+ requestDataSilos(
1583
+ filterBy: $filterBy
1584
+ first: $first
1585
+ offset: $offset
1586
+ useMaster: false
1587
+ orderBy: [
1588
+ { field: createdAt, direction: DESC }
1589
+ { field: title, direction: ASC, model: dataSilo }
1590
+ ]
1591
+ ) {
1592
+ nodes {
1593
+ id
1594
+ }
1595
+ totalCount
1596
+ }
1597
+ }
1598
+ `,vm=Pt`
1599
+ mutation TranscendCliMarkRequestDataSiloCompleted(
1600
+ $requestDataSiloId: ID!
1601
+ $status: UpdateRequestDataSiloStatus!
1602
+ ) {
1603
+ changeRequestDataSiloStatus(
1604
+ input: { id: $requestDataSiloId, status: $status }
1605
+ ) {
1606
+ requestDataSilo {
1607
+ id
1608
+ }
1609
+ }
1610
+ }
1611
+ `,qm=Pt`
1612
+ mutation TranscendCliRetryRequestDataSilo($requestDataSiloId: ID!) {
1613
+ retryRequestDataSilo(id: $requestDataSiloId) {
1614
+ requestDataSilo {
1615
+ id
1616
+ }
1617
+ }
1618
+ }
1619
+ `,Rr=Pt`
1620
+ query TranscendCliListReducedRequestsForDataSiloCount(
1621
+ $input: BulkCompletionReducedRequestInput!
1622
+ ) {
1623
+ listReducedRequestsForDataSilo(input: $input) {
1624
+ totalCount
1625
+ }
1626
+ }
1627
+ `;import{gql as nn}from"graphql-request";var wr=nn`
1628
+ query TranscendCliTeams(
1629
+ $first: Int!
1630
+ $offset: Int!
1631
+ $input: TeamFiltersInput
1632
+ ) {
1633
+ teams(
1634
+ first: $first
1635
+ offset: $offset
1636
+ filterBy: $input
1637
+ orderBy: [
1638
+ { field: createdAt, direction: ASC }
1639
+ { field: name, direction: ASC }
1640
+ ]
1641
+ ) {
1642
+ nodes {
1643
+ id
1644
+ name
1645
+ description
1646
+ ssoDepartment
1647
+ ssoGroup
1648
+ ssoTitle
1649
+ users {
1650
+ id
1651
+ email
1652
+ name
1653
+ }
1654
+ scopes {
1655
+ id
1656
+ name
1657
+ title
1658
+ }
1659
+ }
1660
+ }
1661
+ }
1662
+ `,$r=nn`
1663
+ mutation TranscendCliCreateTeam($input: TeamInput!) {
1664
+ createTeam(input: $input) {
1665
+ team {
1666
+ id
1667
+ name
1668
+ }
1669
+ }
1670
+ }
1671
+ `,br=nn`
1672
+ mutation TranscendCliUpdateTeam($input: UpdateTeamInput!) {
1673
+ updateTeam(input: $input) {
1674
+ team {
1675
+ id
1676
+ name
1677
+ }
1678
+ }
1679
+ }
1680
+ `;import{gql as xr}from"graphql-request";var Fm=xr`
1681
+ mutation TranscendCliRemoveRequestIdentifiers(
1682
+ $input: RemoveRequestIdentifiersInput!
1683
+ ) {
1684
+ removeRequestIdentifiers(input: $input) {
1685
+ count
1686
+ }
1687
+ }
1688
+ `,Dr=xr`
1689
+ query TranscendCliRequestIdentifiers(
1690
+ $first: Int!
1691
+ $offset: Int!
1692
+ $requestIds: [ID!]!
1693
+ ) {
1694
+ requestIdentifiers(
1695
+ input: { requestIds: $requestIds }
1696
+ first: $first
1697
+ offset: $offset
1698
+ useMaster: false
1699
+ orderBy: [
1700
+ { field: createdAt, direction: ASC }
1701
+ { field: name, direction: ASC }
1702
+ ]
1703
+ ) {
1704
+ nodes {
1705
+ id
1706
+ name
1707
+ isVerifiedAtLeastOnce
1708
+ }
1709
+ totalCount
1710
+ }
1711
+ }
1712
+ `;import{gql as Ka}from"graphql-request";var Lr=Ka`
1713
+ query TranscendCliUsers(
1714
+ $first: Int!
1715
+ $offset: Int!
1716
+ $input: UserFiltersInput
1717
+ ) {
1718
+ users(
1719
+ first: $first
1720
+ offset: $offset
1721
+ filterBy: $input
1722
+ orderBy: [
1723
+ { field: createdAt, direction: ASC }
1724
+ { field: name, direction: ASC }
1725
+ ]
1726
+ ) {
1727
+ nodes {
1728
+ id
1729
+ name
1730
+ email
1731
+ }
1732
+ }
1733
+ }
1734
+ `;import{gql as Va}from"graphql-request";var kr=Va`
1735
+ query TranscendCliRequestFiles(
1736
+ $first: Int!
1737
+ $offset: Int!
1738
+ $filterBy: RequestFileFiltersInput!
1739
+ ) {
1740
+ requestFiles(
1741
+ filterBy: $filterBy
1742
+ first: $first
1743
+ offset: $offset
1744
+ orderBy: [
1745
+ { field: createdAt, direction: ASC }
1746
+ { field: id, direction: ASC }
1747
+ ]
1748
+ ) {
1749
+ nodes {
1750
+ remoteId
1751
+ fileName
1752
+ }
1753
+ }
1754
+ }
1755
+ `;import{gql as _r}from"graphql-request";var Gr=_r`
1756
+ mutation TranscendCliReportPromptRun($input: ReportPromptRunInput!) {
1757
+ reportPromptRun(input: $input) {
1758
+ clientMutationId
1759
+ promptRun {
1760
+ id
1761
+ }
1762
+ }
1763
+ }
1764
+ `,vr=_r`
1765
+ mutation TranscendCliAddMessagesToPromptRun(
1766
+ $input: AddMessagesToPromptRunInput!
1767
+ ) {
1768
+ addMessagesToPromptRun(input: $input) {
1769
+ clientMutationId
1770
+ promptRun {
1771
+ id
1772
+ }
1773
+ }
1774
+ }
1775
+ `;import{gql as rn}from"graphql-request";var qr=rn`
1776
+ query TranscendCliGlobalActionItemCollectionss(
1777
+ $filterBy: GlobalActionItemCollectionFiltersInput!
1778
+ ) {
1779
+ globalActionItemCollections(filterBy: $filterBy) {
1780
+ nodes {
1781
+ id
1782
+ title
1783
+ description
1784
+ hidden
1785
+ productLine
1786
+ }
1787
+ }
1788
+ }
1789
+ `,Or=rn`
1790
+ mutation TranscendCliCreateActionItemCollection(
1791
+ $input: CreateActionItemCollectionInput!
1792
+ ) {
1793
+ createActionItemCollection(input: $input) {
1794
+ created {
1795
+ id
1796
+ title
1797
+ }
1798
+ }
1799
+ }
1800
+ `,Nr=rn`
1801
+ mutation TranscendCliUpdateActionItemCollection(
1802
+ $input: UpdateActionItemCollectionInput!
1803
+ ) {
1804
+ updateActionItemCollection(input: $input) {
1805
+ clientMutationId
1806
+ }
1807
+ }
1808
+ `;import{gql as De}from"graphql-request";var Mr=De`
1809
+ query TranscendCliAttributes($first: Int!, $offset: Int!) {
1810
+ attributeKeys(first: $first, offset: $offset, useMaster: false) {
1811
+ nodes {
1812
+ id
1813
+ isCustom
1814
+ description
1815
+ enabledOn
1816
+ name
1817
+ type
1818
+ }
1819
+ }
1820
+ }
1821
+ `,Ur=De`
1822
+ mutation TranscendCliCreateAttributeValues(
1823
+ $input: [CreateAttributeValuesInput!]!
1824
+ ) {
1825
+ createAttributeValues(input: $input) {
1826
+ clientMutationId
1827
+ }
1828
+ }
1829
+ `,Fr=De`
1830
+ mutation TranscendCliUpdateAttributeValues(
1831
+ $input: [UpdateAttributeValueInput!]!
1832
+ ) {
1833
+ updateAttributeValues(input: $input) {
1834
+ clientMutationId
1835
+ }
1836
+ }
1837
+ `,Qr=De`
1838
+ mutation TranscendCliDeleteAttributeValue($id: ID!) {
1839
+ deleteAttributeValue(id: $id) {
1840
+ clientMutationId
1841
+ }
1842
+ }
1843
+ `,Br=De`
1844
+ query TranscendCliAttributeValues(
1845
+ $first: Int!
1846
+ $offset: Int!
1847
+ $attributeKeyId: ID!
1848
+ ) {
1849
+ attributeValues(
1850
+ first: $first
1851
+ offset: $offset
1852
+ useMaster: false
1853
+ filterBy: { attributeKeys: [$attributeKeyId] }
1854
+ ) {
1855
+ nodes {
1856
+ id
1857
+ name
1858
+ description
1859
+ color
1860
+ }
1861
+ }
1862
+ }
1863
+ `,Kr=De`
1864
+ mutation TranscendCliCreateAttribute(
1865
+ $name: String!
1866
+ $type: AttributeKeyType!
1867
+ $description: String
1868
+ $enabledOn: [AttributeSupportedResourceType!]
1869
+ ) {
1870
+ createAttributeKey(
1871
+ input: {
1872
+ name: $name
1873
+ type: $type
1874
+ description: $description
1875
+ enabledOn: $enabledOn
1876
+ }
1877
+ ) {
1878
+ clientMutationId
1879
+ attributeKey {
1880
+ id
1881
+ }
1882
+ }
1883
+ }
1884
+ `,Vr=De`
1885
+ mutation TranscendCliCreateAttribute(
1886
+ $attributeKeyId: ID!
1887
+ $description: String
1888
+ $enabledOn: [AttributeSupportedResourceType!]
1889
+ ) {
1890
+ updateAttributeKey(
1891
+ input: {
1892
+ id: $attributeKeyId
1893
+ description: $description
1894
+ enabledOn: $enabledOn
1895
+ }
1896
+ ) {
1897
+ clientMutationId
1898
+ attributeKey {
1899
+ id
1900
+ }
1901
+ }
1902
+ }
1903
+ `,jr=De`
1904
+ mutation TranscendCliSetResourceAttributes(
1905
+ $input: SetResourceAttributesInput!
1906
+ ) {
1907
+ setResourceAttributes(input: $input) {
1908
+ clientMutationId
1909
+ }
1910
+ }
1911
+ `;import{gql as F}from"graphql-request";var Yr=F`
1912
+ query TranscendCliExperiences($first: Int!, $offset: Int!) {
1913
+ experiences(first: $first, offset: $offset, useMaster: false) {
1914
+ nodes {
1915
+ id
1916
+ name
1917
+ displayName
1918
+ regions {
1919
+ countrySubDivision
1920
+ country
1921
+ }
1922
+ operator
1923
+ displayPriority
1924
+ onConsentExpiry
1925
+ consentExpiry
1926
+ viewState
1927
+ purposes {
1928
+ name
1929
+ trackingType
1930
+ }
1931
+ optedOutPurposes {
1932
+ name
1933
+ trackingType
1934
+ }
1935
+ browserLanguages
1936
+ browserTimeZones
1937
+ }
1938
+ }
1939
+ }
1940
+ `,Zr=F`
1941
+ query TranscendCliConsentPartitions($first: Int!, $offset: Int!) {
1942
+ consentPartitions(first: $first, offset: $offset) {
1943
+ nodes {
1944
+ id
1945
+ name
1946
+ partition
1947
+ }
1948
+ }
1949
+ }
1950
+ `,Hr=F`
1951
+ mutation TranscendCliCreateDataFlows(
1952
+ $dataFlows: [DataFlowInput!]!
1953
+ $airgapBundleId: ID!
1954
+ $classifyService: Boolean
1955
+ ) {
1956
+ createDataFlows(
1957
+ input: {
1958
+ airgapBundleId: $airgapBundleId
1959
+ dataFlows: $dataFlows
1960
+ classifyService: $classifyService
1961
+ }
1962
+ ) {
1963
+ dataFlows {
1964
+ id
1965
+ }
1966
+ }
1967
+ }
1968
+ `,Wr=F`
1969
+ mutation TranscendCliUpdateDataFlows(
1970
+ $airgapBundleId: ID!
1971
+ $dataFlows: [UpdateDataFlowInput!]!
1972
+ $classifyService: Boolean
1973
+ ) {
1974
+ updateDataFlows(
1975
+ input: {
1976
+ airgapBundleId: $airgapBundleId
1977
+ dataFlows: $dataFlows
1978
+ classifyService: $classifyService
1979
+ }
1980
+ ) {
1981
+ dataFlows {
1982
+ id
1983
+ }
1984
+ }
1985
+ }
1986
+ `,zr=F`
1987
+ mutation TranscendCliUpdateOrCreateCookies(
1988
+ $cookies: [UpdateOrCreateCookieInput!]!
1989
+ $airgapBundleId: ID!
1990
+ ) {
1991
+ updateOrCreateCookies(
1992
+ input: { airgapBundleId: $airgapBundleId, cookies: $cookies }
1993
+ ) {
1994
+ clientMutationId
1995
+ }
1996
+ }
1997
+ `,Jr=F`
1998
+ query TranscendCliDataFlows(
1999
+ $first: Int!
2000
+ $airgapBundleId: ID!
2001
+ $offset: Int!
2002
+ $status: ConsentTrackerStatus
2003
+ $showZeroActivity: Boolean
2004
+ ) {
2005
+ dataFlows(
2006
+ first: $first
2007
+ offset: $offset
2008
+ filterBy: { status: $status, showZeroActivity: $showZeroActivity }
2009
+ input: { airgapBundleId: $airgapBundleId }
2010
+ orderBy: [
2011
+ { field: createdAt, direction: ASC }
2012
+ { field: value, direction: ASC }
2013
+ ]
2014
+ useMaster: false
2015
+ ) {
2016
+ nodes {
2017
+ id
2018
+ value
2019
+ type
2020
+ description
2021
+ trackingType
2022
+ service {
2023
+ integrationName
2024
+ }
2025
+ source
2026
+ status
2027
+ owners {
2028
+ email
2029
+ }
2030
+ teams {
2031
+ name
2032
+ }
2033
+ attributeValues {
2034
+ name
2035
+ attributeKey {
2036
+ name
2037
+ }
2038
+ }
2039
+ }
2040
+ }
2041
+ }
2042
+ `,Xr=F`
2043
+ query TranscendCliCookies(
2044
+ $first: Int!
2045
+ $offset: Int!
2046
+ $airgapBundleId: ID!
2047
+ $status: ConsentTrackerStatus
2048
+ ) {
2049
+ cookies(
2050
+ first: $first
2051
+ offset: $offset
2052
+ filterBy: { status: $status }
2053
+ input: { airgapBundleId: $airgapBundleId }
2054
+ orderBy: [
2055
+ { field: createdAt, direction: ASC }
2056
+ { field: name, direction: ASC }
2057
+ ]
2058
+ useMaster: false
2059
+ ) {
2060
+ nodes {
2061
+ id
2062
+ name
2063
+ isRegex
2064
+ description
2065
+ trackingPurposes
2066
+ service {
2067
+ integrationName
2068
+ }
2069
+ source
2070
+ status
2071
+ owners {
2072
+ email
2073
+ }
2074
+ teams {
2075
+ name
2076
+ }
2077
+ attributeValues {
2078
+ name
2079
+ attributeKey {
2080
+ name
2081
+ }
2082
+ }
2083
+ }
2084
+ }
2085
+ }
2086
+ `,eo=F`
2087
+ query TranscendCliFetchConsentManagerId {
2088
+ consentManager {
2089
+ consentManager {
2090
+ id
2091
+ }
2092
+ }
2093
+ }
2094
+ `,to=F`
2095
+ query TranscendCliFetchConsentManager {
2096
+ consentManager {
2097
+ consentManager {
2098
+ id
2099
+ bundleURL
2100
+ testBundleURL
2101
+ configuration {
2102
+ domains
2103
+ consentPrecedence
2104
+ unknownRequestPolicy
2105
+ unknownCookiePolicy
2106
+ syncEndpoint
2107
+ telemetryPartitioning
2108
+ signedIabAgreement
2109
+ uspapi
2110
+ syncGroups
2111
+ partition
2112
+ }
2113
+ partition {
2114
+ partition
2115
+ }
2116
+ }
2117
+ }
2118
+ }
2119
+ `,no=F`
2120
+ query TranscendCliFetchConsentManagerTheme($airgapBundleId: ID!) {
2121
+ consentManagerTheme(input: { airgapBundleId: $airgapBundleId }) {
2122
+ theme {
2123
+ primaryColor
2124
+ fontColor
2125
+ privacyPolicy
2126
+ prompt
2127
+ }
2128
+ }
2129
+ }
2130
+ `,io=F`
2131
+ mutation TranscendCliCreateConsentManager($privacyCenterId: ID!) {
2132
+ createConsentManager(input: { privacyCenterId: $privacyCenterId }) {
2133
+ consentManager {
2134
+ id
2135
+ }
2136
+ }
2137
+ }
2138
+ `,ro=F`
2139
+ mutation TranscendCliUpdateConsentManager(
2140
+ $airgapBundleId: ID!
2141
+ $version: String!
2142
+ ) {
2143
+ updateConsentManager(id: $airgapBundleId, input: { version: $version }) {
2144
+ clientMutationId
2145
+ }
2146
+ }
2147
+ `,oo=F`
2148
+ mutation TranscendCliUpdateConsentManagerToLatest(
2149
+ $airgapBundleId: ID!
2150
+ $bundleType: ConsentBundleType!
2151
+ ) {
2152
+ updateConsentManagerToLatestVersion(
2153
+ id: $airgapBundleId
2154
+ input: { bundleType: $bundleType }
2155
+ ) {
2156
+ clientMutationId
2157
+ }
2158
+ }
2159
+ `,so=F`
2160
+ mutation TranscendCliDeployConsentManager(
2161
+ $airgapBundleId: ID!
2162
+ $bundleType: ConsentBundleType!
2163
+ ) {
2164
+ deployConsentManagerBundle(
2165
+ id: $airgapBundleId
2166
+ input: { bundleType: $bundleType }
2167
+ ) {
2168
+ clientMutationId
2169
+ }
2170
+ }
2171
+ `,ao=F`
2172
+ mutation TranscendCliUpdateConsentManagerDomains(
2173
+ $airgapBundleId: ID!
2174
+ $domains: [String!]!
2175
+ ) {
2176
+ updateConsentManagerDomains(
2177
+ input: { id: $airgapBundleId, domains: $domains }
2178
+ ) {
2179
+ clientMutationId
2180
+ }
2181
+ }
2182
+ `,po=F`
2183
+ mutation TranscendCliUpdateConsentManagerPartition(
2184
+ $airgapBundleId: ID!
2185
+ $partitionId: ID!
2186
+ ) {
2187
+ updateConsentManagerPartition(
2188
+ input: { id: $airgapBundleId, partitionId: $partitionId }
2189
+ ) {
2190
+ clientMutationId
2191
+ }
2192
+ }
2193
+ `,lo=F`
2194
+ mutation TranscendCliToggleUspAPI($input: ToggleUspapiInput!) {
2195
+ toggleUspapi(input: $input) {
2196
+ clientMutationId
2197
+ }
2198
+ }
2199
+ `,co=F`
2200
+ mutation TranscendCliToggleUnknownRequestPolicy(
2201
+ $input: ToggleUnknownRequestPolicyInput!
2202
+ ) {
2203
+ toggleUnknownRequestPolicy(input: $input) {
2204
+ clientMutationId
2205
+ }
2206
+ }
2207
+ `,mo=F`
2208
+ mutation TranscendCliToggleUnknownCookiePolicy(
2209
+ $input: ToggleUnknownCookiePolicyInput!
2210
+ ) {
2211
+ toggleUnknownCookiePolicy(input: $input) {
2212
+ clientMutationId
2213
+ }
2214
+ }
2215
+ `,uo=F`
2216
+ mutation TranscendCliToggleTelemetryPartitionStrategy(
2217
+ $input: ToggleTelemetryPartitionStrategyInput!
2218
+ ) {
2219
+ toggleTelemetryPartitioning(input: $input) {
2220
+ clientMutationId
2221
+ }
2222
+ }
2223
+ `,fo=F`
2224
+ mutation TranscendCliToggleConsentPrecedence(
2225
+ $input: ToggleConsentPrecedenceInput!
2226
+ ) {
2227
+ toggleConsentPrecedence(input: $input) {
2228
+ clientMutationId
2229
+ }
2230
+ }
2231
+ `,go=F`
2232
+ mutation TranscendCliUpdateConsentManagerTheme(
2233
+ $input: UpdateConsentManagerThemeInput!
2234
+ ) {
2235
+ updateConsentManagerTheme(input: $input) {
2236
+ clientMutationId
2237
+ }
2238
+ }
2239
+ `,yo=F`
2240
+ mutation TranscendCliUpdateConsentExperience($input: UpdateExperienceInput!) {
2241
+ updateExperience(input: $input) {
2242
+ clientMutationId
2243
+ }
2244
+ }
2245
+ `,Co=F`
2246
+ mutation TranscendCliCreateConsentExperience($input: CreateExperienceInput!) {
2247
+ createExperience(input: $input) {
2248
+ clientMutationId
2249
+ }
2250
+ }
2251
+ `,ho=F`
2252
+ mutation TranscendCliCreateConsentPartition(
2253
+ $input: CreateConsentPartitionInput!
2254
+ ) {
2255
+ createConsentPartition(input: $input) {
2256
+ clientMutationId
2257
+ }
2258
+ }
2259
+ `;import{gql as ja}from"graphql-request";var Io=ja`
2260
+ query TranscendCliConsentManagerAnalyticsData($input: AnalyticsInput!) {
2261
+ analyticsData(input: $input) {
2262
+ series {
2263
+ name
2264
+ points {
2265
+ key
2266
+ value
2267
+ }
2268
+ }
2269
+ }
2270
+ }
2271
+ `;import{gql as on}from"graphql-request";var Ao=on`
2272
+ query TranscendCliBusinessEntities($first: Int!, $offset: Int!) {
2273
+ businessEntities(
2274
+ first: $first
2275
+ offset: $offset
2276
+ orderBy: [
2277
+ { field: createdAt, direction: ASC }
2278
+ { field: title, direction: ASC }
2279
+ ]
2280
+ useMaster: false
2281
+ ) {
2282
+ nodes {
2283
+ id
2284
+ title
2285
+ description
2286
+ dataProtectionOfficerName
2287
+ dataProtectionOfficerEmail
2288
+ address
2289
+ headquarterCountry
2290
+ headquarterSubDivision
2291
+ attributeValues {
2292
+ name
2293
+ attributeKey {
2294
+ name
2295
+ }
2296
+ }
2297
+ }
2298
+ }
2299
+ }
2300
+ `,To=on`
2301
+ mutation TranscendCliCreateBusinessEntity(
2302
+ $input: CreateBusinessEntityInput!
2303
+ ) {
2304
+ createBusinessEntity(input: $input) {
2305
+ businessEntity {
2306
+ id
2307
+ title
2308
+ description
2309
+ dataProtectionOfficerName
2310
+ dataProtectionOfficerEmail
2311
+ address
2312
+ headquarterCountry
2313
+ headquarterSubDivision
2314
+ attributeValues {
2315
+ name
2316
+ attributeKey {
2317
+ name
2318
+ }
2319
+ }
2320
+ }
2321
+ }
2322
+ }
2323
+ `,Po=on`
2324
+ mutation TranscendCliUpdateBusinessEntities(
2325
+ $input: [UpdateBusinessEntityInput!]!
2326
+ ) {
2327
+ updateBusinessEntities(input: { businessEntities: $input }) {
2328
+ clientMutationId
2329
+ }
2330
+ }
2331
+ `;import{gql as So}from"graphql-request";var Eo=So`
2332
+ query TranscendCliActions($first: Int!, $offset: Int!) {
2333
+ actions(
2334
+ first: $first
2335
+ offset: $offset
2336
+ useMaster: false
2337
+ orderBy: [{ field: type, direction: ASC }]
2338
+ ) {
2339
+ nodes {
2340
+ id
2341
+ type
2342
+ skipSecondaryIfNoFiles
2343
+ skipDownloadableStep
2344
+ requiresReview
2345
+ regionList
2346
+ regionDetectionMethod
2347
+ waitingPeriod
2348
+ }
2349
+ }
2350
+ }
2351
+ `,Ro=So`
2352
+ mutation TranscendCliUpdateAction($input: UpdateActionInput!) {
2353
+ updateAction(input: $input) {
2354
+ clientMutationId
2355
+ }
2356
+ }
2357
+ `;import{gql as sn}from"graphql-request";var wo=sn`
2358
+ query TranscendCliGlobalActionItems(
2359
+ $first: Int!
2360
+ $offset: Int!
2361
+ $filterBy: GlobalActionItemFiltersInput!
2362
+ ) {
2363
+ globalActionItems(first: $first, offset: $offset, filterBy: $filterBy) {
2364
+ nodes {
2365
+ ids
2366
+ count
2367
+ teams {
2368
+ id
2369
+ name
2370
+ }
2371
+ customerExperienceActionItemIds
2372
+ users {
2373
+ id
2374
+ email
2375
+ }
2376
+ collections {
2377
+ title
2378
+ id
2379
+ }
2380
+ dueDate
2381
+ priority
2382
+ titles
2383
+ resolved
2384
+ notes
2385
+ links
2386
+ type
2387
+ additionalContexts {
2388
+ iconOverride
2389
+ requestId
2390
+ dataSiloId
2391
+ requestType
2392
+ latestAirgapVersion
2393
+ parentTitle
2394
+ }
2395
+ attributeValues {
2396
+ name
2397
+ attributeKey {
2398
+ name
2399
+ }
2400
+ }
2401
+ }
2402
+ }
2403
+ }
2404
+ `,$o=sn`
2405
+ mutation TranscendCliUpdateActionItems($input: UpdateActionItemsInput!) {
2406
+ updateActionItems(input: $input) {
2407
+ clientMutationId
2408
+ }
2409
+ }
2410
+ `,bo=sn`
2411
+ mutation TranscendCliCreateActionItems($input: [CreateActionItemsInput!]!) {
2412
+ createActionItems(input: $input) {
2413
+ clientMutationId
2414
+ }
2415
+ }
2416
+ `;import{gql as St}from"graphql-request";var xo=St`
2417
+ query TranscendCliFetchPrivacyCenterId($url: String!) {
2418
+ privacyCenter(lookup: { url: $url }) {
2419
+ id
2420
+ }
2421
+ }
2422
+ `,Do=St`
2423
+ query TranscendCliDeployedPrivacyCenterUrl {
2424
+ organization {
2425
+ deployedPrivacyCenterUrl
2426
+ }
2427
+ }
2428
+ `,Lo=St`
2429
+ query TranscendCliFetchPrivacyCenters($url: String!) {
2430
+ privacyCenter(lookup: { url: $url }) {
2431
+ id
2432
+ url
2433
+ isDisabled
2434
+ showPrivacyRequestButton
2435
+ showPolicies
2436
+ showTrackingTechnologies
2437
+ showCookies
2438
+ showDataFlows
2439
+ showConsentManager
2440
+ showManageYourPrivacy
2441
+ showMarketingPreferences
2442
+ locales
2443
+ defaultLocale
2444
+ preferBrowserDefaultLocale
2445
+ supportEmail
2446
+ replyToEmail
2447
+ useNoReplyEmailAddress
2448
+ useCustomEmailDomain
2449
+ transformAccessReportJsonToCsv
2450
+ themeStr
2451
+ }
2452
+ }
2453
+ `,ko=St`
2454
+ mutation TranscendCliUpdatePrivacyCenter($input: UpdatePrivacyCenterInput!) {
2455
+ updatePrivacyCenter(input: $input) {
2456
+ clientMutationId
2457
+ }
2458
+ }
2459
+ `;import{gql as an}from"graphql-request";var pn=an`
2460
+ mutation TranscendCliDetermineLoginMethod($email: String!) {
2461
+ determineLoginMethod(input: { email: $email }) {
2462
+ loginMethod {
2463
+ email
2464
+ sombraPublicKey
2465
+ }
2466
+ }
2467
+ }
2468
+ `,_o=an`
2469
+ mutation TranscendCliLogin(
2470
+ $email: String!
2471
+ $password: String!
2472
+ $publicKey: String!
2473
+ ) {
2474
+ login(
2475
+ input: { email: $email, password: $password }
2476
+ publicKey: $publicKey
2477
+ ) {
2478
+ user {
2479
+ roles {
2480
+ id
2481
+ organization {
2482
+ name
2483
+ id
2484
+ uri
2485
+ parentOrganizationId
2486
+ }
2487
+ }
2488
+ }
2489
+ }
2490
+ }
2491
+ `,Go=an`
2492
+ mutation TranscendCliAssumeRole($id: ID!, $publicKey: String!) {
2493
+ assumeRole(id: $id, publicKey: $publicKey) {
2494
+ clientMutationId
2495
+ }
2496
+ }
2497
+ `;import{gql as Ya}from"graphql-request";var fu=Ya`
2498
+ query TranscendCliLargeLanguageModels(
2499
+ $first: Int!
2500
+ $offset: Int!
2501
+ $filterBy: LargeLanguageModelFiltersInput
2502
+ ) {
2503
+ largeLanguageModels(
2504
+ first: $first
2505
+ orderBy: [
2506
+ { field: name, direction: ASC }
2507
+ { field: client, direction: ASC }
2508
+ { field: isTranscendHosted, direction: ASC }
2509
+ ]
2510
+ offset: $offset
2511
+ filterBy: $filterBy
2512
+ ) {
2513
+ nodes {
2514
+ id
2515
+ name
2516
+ client
2517
+ isTranscendHosted
2518
+ }
2519
+ }
2520
+ }
2521
+ `;import{gql as ln}from"graphql-request";var vo=ln`
2522
+ query TranscendCliAgents(
2523
+ $first: Int!
2524
+ $offset: Int!
2525
+ $filterBy: AgentFiltersInput
2526
+ ) {
2527
+ agents(
2528
+ first: $first
2529
+ offset: $offset
2530
+ filterBy: $filterBy
2531
+ orderBy: [
2532
+ { field: createdAt, direction: ASC }
2533
+ { field: name, direction: ASC }
2534
+ ]
2535
+ ) {
2536
+ nodes {
2537
+ id
2538
+ name
2539
+ agentId
2540
+ instructions
2541
+ description
2542
+ codeInterpreterEnabled
2543
+ retrievalEnabled
2544
+ prompt {
2545
+ title
2546
+ }
2547
+ largeLanguageModel {
2548
+ name
2549
+ client
2550
+ }
2551
+ teams {
2552
+ name
2553
+ }
2554
+ owners {
2555
+ email
2556
+ }
2557
+ agentFunctions {
2558
+ name
2559
+ }
2560
+ agentFiles {
2561
+ name
2562
+ }
2563
+ }
2564
+ }
2565
+ }
2566
+ `,qo=ln`
2567
+ mutation TranscendCliCreateAgent($input: CreateAgentInput!) {
2568
+ createAgent(input: $input) {
2569
+ agent {
2570
+ id
2571
+ name
2572
+ agentId
2573
+ }
2574
+ }
2575
+ }
2576
+ `,Oo=ln`
2577
+ mutation TranscendCliUpdateAgents($input: UpdateAgentsInput!) {
2578
+ updateAgents(input: $input) {
2579
+ clientMutationId
2580
+ }
2581
+ }
2582
+ `;import{gql as cn}from"graphql-request";var No=cn`
2583
+ query TranscendCliAgentFiles(
2584
+ $first: Int!
2585
+ $offset: Int!
2586
+ $filterBy: AgentFileFiltersInput
2587
+ ) {
2588
+ agentFiles(
2589
+ first: $first
2590
+ offset: $offset
2591
+ filterBy: $filterBy
2592
+ orderBy: [
2593
+ { field: createdAt, direction: ASC }
2594
+ { field: name, direction: ASC }
2595
+ ]
2596
+ ) {
2597
+ nodes {
2598
+ id
2599
+ name
2600
+ description
2601
+ fileId
2602
+ size
2603
+ purpose
2604
+ initialFileName
2605
+ }
2606
+ }
2607
+ }
2608
+ `,Mo=cn`
2609
+ mutation TranscendCliCreateAgentFile($input: CreateAgentFileInput!) {
2610
+ createAgentFile(input: $input) {
2611
+ agentFile {
2612
+ id
2613
+ name
2614
+ fileId
2615
+ initialFileName
2616
+ }
2617
+ }
2618
+ }
2619
+ `,Uo=cn`
2620
+ mutation TranscendCliUpdateAgentFiles($input: UpdateAgentFilesInput!) {
2621
+ updateAgentFiles(input: $input) {
2622
+ clientMutationId
2623
+ }
2624
+ }
2625
+ `;import{gql as mn}from"graphql-request";var Fo=mn`
2626
+ query TranscendCliAgentFunctions($first: Int!, $offset: Int!) {
2627
+ agentFunctions(
2628
+ first: $first
2629
+ offset: $offset
2630
+ orderBy: [
2631
+ { field: createdAt, direction: ASC }
2632
+ { field: name, direction: ASC }
2633
+ ]
2634
+ ) {
2635
+ nodes {
2636
+ id
2637
+ name
2638
+ description
2639
+ parameters
2640
+ }
2641
+ }
2642
+ }
2643
+ `,Qo=mn`
2644
+ mutation TranscendCliCreateAgentFunction($input: CreateAgentFunctionInput!) {
2645
+ createAgentFunction(input: $input) {
2646
+ agentFunction {
2647
+ id
2648
+ name
2649
+ }
2650
+ }
2651
+ }
2652
+ `,Bo=mn`
2653
+ mutation TranscendCliUpdateAgentFunctions(
2654
+ $input: UpdateAgentFunctionsInput!
2655
+ ) {
2656
+ updateAgentFunctions(input: $input) {
2657
+ clientMutationId
2658
+ }
2659
+ }
2660
+ `;import{gql as un}from"graphql-request";var Ko=un`
2661
+ query TranscendCliVendors($first: Int!, $offset: Int!) {
2662
+ vendors(
2663
+ first: $first
2664
+ offset: $offset
2665
+ useMaster: false
2666
+ isExportCsv: true
2667
+ orderBy: [
2668
+ { field: createdAt, direction: ASC }
2669
+ { field: title, direction: ASC }
2670
+ ]
2671
+ ) {
2672
+ nodes {
2673
+ id
2674
+ title
2675
+ description
2676
+ dataProcessingAgreementLink
2677
+ contactName
2678
+ contactEmail
2679
+ contactPhone
2680
+ address
2681
+ headquarterCountry
2682
+ headquarterSubDivision
2683
+ websiteUrl
2684
+ businessEntity {
2685
+ title
2686
+ }
2687
+ teams {
2688
+ name
2689
+ }
2690
+ owners {
2691
+ email
2692
+ }
2693
+ attributeValues {
2694
+ attributeKey {
2695
+ name
2696
+ }
2697
+ name
2698
+ }
2699
+ }
2700
+ }
2701
+ }
2702
+ `,Vo=un`
2703
+ mutation TranscendCliCreateVendor($input: CreateVendorInput!) {
2704
+ createVendor(input: $input) {
2705
+ vendor {
2706
+ id
2707
+ title
2708
+ }
2709
+ }
2710
+ }
2711
+ `,jo=un`
2712
+ mutation TranscendCliUpdateVendor($input: UpdateVendorsInput!) {
2713
+ updateVendors(input: $input) {
2714
+ clientMutationId
2715
+ }
2716
+ }
2717
+ `;import{gql as dn}from"graphql-request";var Yo=dn`
2718
+ query TranscendCliDataSubCategories($first: Int!, $offset: Int!) {
2719
+ dataSubCategories(
2720
+ first: $first
2721
+ offset: $offset
2722
+ isExportCsv: true
2723
+ useMaster: false
2724
+ ) {
2725
+ nodes {
2726
+ id
2727
+ name
2728
+ category
2729
+ description
2730
+ regex
2731
+ teams {
2732
+ name
2733
+ }
2734
+ owners {
2735
+ email
2736
+ }
2737
+ attributeValues {
2738
+ attributeKey {
2739
+ name
2740
+ }
2741
+ name
2742
+ }
2743
+ }
2744
+ }
2745
+ }
2746
+ `,Zo=dn`
2747
+ mutation TranscendCliCreateDataSubCategory(
2748
+ $input: CreateDataInventorySubCategoryInput!
2749
+ ) {
2750
+ createDataSubCategory(input: $input) {
2751
+ dataSubCategory {
2752
+ id
2753
+ name
2754
+ category
2755
+ }
2756
+ }
2757
+ }
2758
+ `,Ho=dn`
2759
+ mutation TranscendCliUpdateDataSubCategories(
2760
+ $input: UpdateDataSubCategoriesInput!
2761
+ ) {
2762
+ updateDataSubCategories(input: $input) {
2763
+ clientMutationId
2764
+ }
2765
+ }
2766
+ `;import{gql as fn}from"graphql-request";var Wo=fn`
2767
+ query TranscendCliProcessingPurposeSubCategories(
2768
+ $first: Int!
2769
+ $offset: Int!
2770
+ ) {
2771
+ processingPurposeSubCategories(
2772
+ first: $first
2773
+ offset: $offset
2774
+ isExportCsv: true
2775
+ useMaster: false
2776
+ ) {
2777
+ nodes {
2778
+ id
2779
+ name
2780
+ purpose
2781
+ description
2782
+ teams {
2783
+ name
2784
+ }
2785
+ owners {
2786
+ email
2787
+ }
2788
+ attributeValues {
2789
+ attributeKey {
2790
+ name
2791
+ }
2792
+ name
2793
+ }
2794
+ }
2795
+ }
2796
+ }
2797
+ `,zo=fn`
2798
+ mutation TranscendCliCreateProcessingPurposeSubCategory(
2799
+ $input: CreateProcessingPurposeCategoryInput!
2800
+ ) {
2801
+ createProcessingPurposeSubCategory(input: $input) {
2802
+ processingPurposeSubCategory {
2803
+ id
2804
+ name
2805
+ purpose
2806
+ }
2807
+ }
2808
+ }
2809
+ `,Jo=fn`
2810
+ mutation TranscendCliUpdateProcessingPurposeSubCategories(
2811
+ $input: UpdateProcessingPurposeSubCategoriesInput!
2812
+ ) {
2813
+ updateProcessingPurposeSubCategories(input: $input) {
2814
+ clientMutationId
2815
+ }
2816
+ }
2817
+ `;import{gql as Za}from"graphql-request";var Xo=Za`
2818
+ query TranscendSombraVersion {
2819
+ organization {
2820
+ sombra {
2821
+ version
2822
+ }
2823
+ }
2824
+ }
2825
+ `;import gn from"colors";var Ha=4;function Wa(t){return new Promise(e=>{setTimeout(()=>e(t),t)})}var za=["syntax error","got invalid value","Client error","cannot affect row a second time","GRAPHQL_VALIDATION_FAILED"];async function p(t,e,n,r,i=Ha){let s=0;for(;;)try{return await t.request(e,n,r)}catch(o){if(o.message.includes("API key is invalid")&&(a.error(gn.red("API key is invalid. Please ensure that the key provided to `transcendAuth` has the proper scope and is not expired, and that `transcendUrl` corresponds to the correct backend for your organization.")),process.exit(1)),za.some(l=>o.message.includes(l)))throw o;if(o.message.startsWith("Client error: Too many requests")){let l=o.response.headers?.get("x-ratelimit-reset"),u=l?new Date(l).getTime()-new Date().getTime()+100:1e3*10;a.log(gn.yellow(`DETECTED RATE LIMIT: ${o.message}. Sleeping for ${u}ms`)),await Wa(u)}if(s>=i)throw o;s+=1,a.log(gn.yellow(`REQUEST FAILED: ${o.message}. Retrying ${s}/${i}...`))}}import{keyBy as Ja,uniq as Xa,flatten as es,difference as ep}from"lodash-es";import yn from"colors";var Cn=20;async function hn(t){let e=[],n=0,r=!1;do{let{identifiers:{nodes:i}}=await p(t,Ri,{first:Cn,offset:n});e.push(...i),n+=Cn,r=i.length===Cn}while(r);return e.sort((i,s)=>i.name.localeCompare(s.name))}async function ts({enrichers:t=[],"data-silos":e=[],identifiers:n=[]},r,i=!1){let s=await hn(r),o=Ja(s,"name"),l=Xa([...es(t.map(c=>[c["input-identifier"],...c["output-identifiers"]])),...es(e.map(c=>c["identity-keys"])),...n.map(({name:c})=>c)]).filter(c=>!!c),u=ep(l,s.map(({name:c})=>c));if(u.length>0){a.info(yn.magenta(`Creating ${u.length} new identifiers...`));let{newIdentifierTypes:c}=await p(r,wi),d=c.map(({name:m})=>m);await T(u,async m=>{a.info(yn.magenta(`Creating identifier ${m}...`));let{createIdentifier:g}=await p(r,$i,{input:{name:m,type:d.includes(m)?m:"custom",skipPublish:i}});a.info(yn.green(`Created identifier ${m}!`)),o[m]=g.identifier})}return o}async function ns(t,{identifier:e,dataSubjectsByName:n,identifierId:r,skipPublish:i=!1}){await p(t,bi,{input:{id:r,selectOptions:e.selectOptions,isRequiredInForm:e.isRequiredInForm,regex:e.regex,placeholder:e.placeholder,displayTitle:e.displayTitle,displayDescription:e.displayDescription,displayOrder:e.displayOrder,privacyCenterVisibility:e.privacyCenterVisibility,dataSubjectIds:e.dataSubjects?e.dataSubjects.map(s=>n[s].id):void 0,skipPublish:i}})}import{EnricherType as is,RequestAction as tp}from"@transcend-io/privacy-types";var In=20;async function An(t,e){let n=[],r=0,i=!1;do{let{enrichers:{nodes:s}}=await p(t,Ti,{first:In,offset:r,title:e});n.push(...s),r+=In,i=s.length===In}while(i);return n.sort((s,o)=>s.title.localeCompare(o.title))}async function rs(t,{enricher:e,identifierByName:n,dataSubjectsByName:r}){let s=(await An(t,e.title)).find(({title:c})=>c===e.title),o=e["data-subjects"]?.map(c=>{let d=r[c];if(!d)throw new Error(`Failed to find a data subject with name: ${c}`);return d.id}),l=e["input-identifier"],u=e["privacy-actions"]||Object.values(tp);s?await p(t,Si,{input:{id:s.id,title:e.title,url:e.url,headers:e.headers,testRegex:e.testRegex,lookerQueryTitle:e.lookerQueryTitle,expirationDuration:typeof e.expirationDuration=="number"?e.expirationDuration.toString():void 0,transitionRequestStatus:e.transitionRequestStatus,phoneNumbers:e.phoneNumbers,regionList:e.regionList,dataSubjectIds:o,description:e.description||"",inputIdentifier:l?n[l].id:void 0,identifiers:e["output-identifiers"].map(c=>n[c].id),...s.type===is.Sombra?{}:{actions:u}}}):l&&await p(t,Pi,{input:{title:e.title,url:e.url,type:e.type||is.Server,headers:e.headers,testRegex:e.testRegex,lookerQueryTitle:e.lookerQueryTitle,expirationDuration:typeof e.expirationDuration=="number"?e.expirationDuration.toString():void 0,transitionRequestStatus:e.transitionRequestStatus,phoneNumbers:e.phoneNumbers,dataSubjectIds:o,regionList:e.regionList,description:e.description||"",inputIdentifier:n[l].id,identifiers:e["output-identifiers"].map(c=>n[c].id),actions:u}})}import Tn from"colors";import{keyBy as np,difference as ip,groupBy as rp}from"lodash-es";async function os(t,e,{existingAttribute:n,deleteExtraAttributeValues:r}){let i={name:e.name,enabledOn:e.resources},s;if(n)await p(t,Vr,{attributeKeyId:n.id,description:n.isCustom?e.description:void 0,...i}),s=n.id;else{let{createAttributeKey:{attributeKey:d}}=await p(t,Kr,{type:e.type,description:e.description,...i});s=d.id}let o=np(n?.values||[],"name"),{existingValues:l=[],newValues:u=[]}=rp(e.values||[],d=>o[d.name]?"existingValues":"newValues"),c=ip((n?.values||[]).map(({name:d})=>d),(e.values||[]).map(({name:d})=>d));u.length>0&&(await p(t,Ur,{input:u.map(({name:d,...m})=>({name:d,attributeKeyId:s,...m}))}),a.info(Tn.green(`Created ${u.length} attribute values`))),l.length>0&&(await p(t,Fr,{input:l.map(({name:d,...m})=>({id:o[d].id,name:d,description:o[d].description,color:o[d].color,...m,attributeKeyId:s}))}),a.info(Tn.green(`Updated ${l.length} attribute values`))),c.length>0&&r&&(await M(c,async d=>{await p(t,Qr,{id:o[d].id})},{concurrency:10}),a.info(Tn.green(`Deleted ${c.length} attribute values`)))}import{keyBy as op,flatten as ss,uniq as sp,difference as ap}from"lodash-es";import Pn from"colors";async function dt(t){let{internalSubjects:e}=await p(t,xi);return e}async function as({"data-silos":t=[],"data-subjects":e=[],enrichers:n=[]},r,i=!1){let s=sp([...ss(t.map(c=>c["data-subjects"]||[])||[]),...ss(n.map(c=>c["data-subjects"]||[])||[]),...e.map(c=>c.type)]);if(s.length===0&&!i)return{};let o=await dt(r),l=op(o,"type"),u=ap(s,o.map(({type:c})=>c));return u.length>0&&(a.info(Pn.magenta(`Creating ${u.length} new data subjects...`)),await T(u,async c=>{a.info(Pn.magenta(`Creating data subject ${c}...`));let{createSubject:d}=await p(r,Di,{type:c,skipPublish:!0});a.info(Pn.green(`Created data subject ${c}!`)),l[c]=d.subject})),l}function ps(t,e){return t.forEach(n=>{if(!e[n])throw new Error(`Expected to find data subject definition: ${n}`)}),Object.values(e).filter(n=>!t.includes(n.type)).map(({id:n})=>n)}function ls(t,e){return t.forEach(n=>{if(!e[n])throw new Error(`Expected to find data subject definition: ${n}`)}),Object.values(e).filter(n=>!t.includes(n.type)).map(({type:n})=>n)}import cs from"cli-progress";import N from"colors";import{sortBy as pp,chunk as Sn,keyBy as lp}from"lodash-es";import{apply as cp}from"@transcend-io/type-utils";var En=20;async function ms(t,{titles:e,pageSize:n,ids:r=[],gql:i=hi,integrationNames:s=[]}){a.info(N.magenta(`Fetching ${r.length===0?"all":r.length} Data Silos...`));let o=[],l=0,u=!1;do{let{dataSilos:{nodes:c}}=await p(t,i,{filterBy:{ids:r.length>0?r:void 0,type:s.length>0?s:void 0,titles:e},first:n,offset:l});o.push(...c),l+=n,u=c.length===n}while(u);return a.info(N.green(`Found a total of ${o.length} data silo${r.length>0?` matching IDs ${r.join(",")}`:""}s${s.length>0?` matching integrationNames ${s.join(",")}`:""}`)),o.sort((c,d)=>c.title.localeCompare(d.title))}async function mp(t,e,{debug:n,includeGuessedCategories:r,pageSize:i}){let s=[],o=0,l=!1;do try{n&&a.log(N.magenta(`Pulling in subdatapoints for offset ${o}`));let{subDataPoints:{nodes:u}}=await p(t,r?yi:gi,{first:i,filterBy:{dataPoints:[e]},offset:o});s.push(...u),o+=i,l=u.length===i,n&&a.log(N.green(`Pulled in subdatapoints for offset ${o} for dataPointId=${e}`))}catch(u){throw a.error(N.red(`An error fetching subdatapoints for offset ${o} for dataPointId=${e}`)),u}while(l);return pp(s,"name")}async function up(t,e,{debug:n,pageSize:r,skipSubDatapoints:i,includeGuessedCategories:s}){let o=[],l=0,u=!1;do{n&&a.info(N.magenta(`Fetching datapoints with offset: ${l}`));let{dataPoints:{nodes:c}}=await p(t,fi,{first:r,filterBy:{dataSilos:[e]},offset:l});n&&a.info(N.magenta(`Fetched ${c.length} datapoints at offset: ${l}`)),i||(await M(c,async d=>{try{n&&a.info(N.magenta(`Fetching subdatapoints for ${d.name} for datapoint offset ${l}`));let m=await mp(t,d.id,{pageSize:1e3,debug:n,includeGuessedCategories:s});o.push({...d,subDataPoints:m.sort((g,h)=>g.name.localeCompare(h.name))}),n&&a.info(N.green(`Successfully fetched subdatapoints for ${d.name}`))}catch(m){throw a.error(N.red(`An error fetching subdatapoints for ${d.name} datapoint offset ${l}`)),m}},{concurrency:5}),n&&a.info(N.green(`Fetched all subdatapoints for page of datapoints at offset: ${l}`))),l+=r,u=c.length===r}while(u);return o.sort((c,d)=>c.name.localeCompare(d.name))}async function us(t,{ids:e,pageSize:n,titles:r,debug:i,skipDatapoints:s,skipSubDatapoints:o,includeGuessedCategories:l,integrationNames:u}){let c=[],d=await ms(t,{titles:r,ids:e,integrationNames:u,pageSize:n,gql:Ii});return s||await T(d,async(m,g)=>{a.info(N.magenta(`[${g+1}/${d.length}] Fetching data silo - ${m.title}`));let h=await up(t,m.id,{debug:i,pageSize:n,skipSubDatapoints:o,includeGuessedCategories:l});i&&a.info(N.green(`[${g+1}/${d.length}] Successfully fetched datapoint for - ${m.title}`)),c.push([m,h])}),a.info(N.green(`Successfully fetched all ${d.length} data silo configurations`)),c}async function ds(t,e,{pageSize:n,dataSubjectsByName:r,apiKeysByTitle:i}){let s=!1,o=new Date().getTime();a.info(N.magenta(`Syncing "${t.length}" data silos...`));let l=await ms(e,{titles:t.map(({title:G})=>G),pageSize:n}),u=lp(l,"title"),c=t.filter(({title:G})=>!u[G]);if(c.length>0){a.info(N.magenta(`Creating "${c.length}" data silos that did not exist...`));let G=Sn(c,En);await T(G,async Q=>{let{createDataSilos:{dataSilos:A}}=await p(e,Ai,{input:Q.map(j=>({name:j["outer-type"]||j.integrationName,title:j.title,country:j.country,countrySubDivision:j.countrySubDivision}))});A.forEach(j=>{u[j.title]=j})}),a.info(N.green(`Successfully created "${c.length}" data silos!`))}let d=Sn(t,En);await T(d,async(G,Q)=>{a.info(N.magenta(`[Batch ${Q+1}/${d.length}] Syncing "${G.length}" data silos`)),await p(e,Ht,{input:{dataSilos:G.map(A=>({id:u[A.title].id,country:A.country,countrySubDivision:A.countrySubDivision,url:A.url,headers:A.headers,description:A.description,identifiers:A["identity-keys"],isLive:!A.disabled,ownerEmails:A.owners,teamNames:A.teams,dependedOnDataSiloTitles:A["deletion-dependencies"]?void 0:[],apiKeyId:A["api-key-title"]?i[A["api-key-title"]].id:void 0,dataSubjectBlockListIds:A["data-subjects"]?ps(A["data-subjects"],r):void 0,attributes:A.attributes,businessEntityTitles:A.businessEntityTitles,notifyEmailAddress:A["email-settings"]?.["notify-email-address"],promptAVendorEmailSendFrequency:A["email-settings"]?.["send-frequency"],promptAVendorEmailSendType:A["email-settings"]?.["send-type"],promptAVendorEmailIncludeIdentifiersAttachment:A["email-settings"]?.["include-identifiers-attachment"],promptAVendorEmailCompletionLinkType:A["email-settings"]?.["completion-link-type"],manualWorkRetryFrequency:A["email-settings"]?.["manual-work-retry-frequency"]}))}}),a.info(N.green(`[Batch ${Q+1}/${d.length}] Synced "${G.length}" data silos!`))});let m=new cs.SingleBar({},cs.Presets.shades_classic),g=t.filter(({datapoints:G=[]})=>G.length>0),h=t.map(({datapoints:G=[]})=>G.length).reduce((G,Q)=>G+Q,0);a.info(N.magenta(`Syncing "${h}" datapoints from "${g.length}" data silos...`)),m.start(h,0);let I=0;await M(g,async({datapoints:G,title:Q})=>{G&&await T(G,async A=>{let j=A.fields?A.fields.map(({key:X,description:oe,categories:Re,purposes:we,attributes:ke,...$e})=>({name:X,description:oe,categories:Re?Re.map(se=>({...se,name:se.name||"Other"})):void 0,purposes:we?we.map(se=>({...se,name:se.name||"Other"})):void 0,attributes:ke,accessRequestVisibilityEnabled:$e["access-request-visibility-enabled"],erasureRequestRedactionEnabled:$e["erasure-request-redaction-enabled"]})):void 0,V={dataSiloId:u[Q].id,path:A.path,name:A.key,title:A.title,description:A.description,...A.owners?{ownerEmails:A.owners}:{},...A.teams?{teamNames:A.teams}:{},...A["data-collection-tag"]?{dataCollectionTag:A["data-collection-tag"]}:{},querySuggestions:A["privacy-action-queries"]?Object.entries(A["privacy-action-queries"]).map(([X,oe])=>({requestType:X,suggestedQuery:oe})):void 0,enabledActions:A["privacy-actions"]||[],subDataPoints:j},Le=(V.subDataPoints||[]).map(({name:X})=>X),Ee=Le.filter((X,oe)=>Le.indexOf(X)!==oe);if(Ee.length>0)a.info(N.red(`
2826
+ Cannot update datapoint "${A.key}" as it has duplicate sub-datapoints with the same name:
2827
+ ${Ee.join(`
2828
+ `)}`)),s=!0;else try{await p(e,Ci,V)}catch(X){a.info(N.red(`
2829
+ Failed to update datapoint "${A.key}" for data silo "${Q}"! -
2830
+ ${X.message}`)),s=!0}I+=1,m.update(I)})},{concurrency:10}),m.stop();let H=new Date().getTime()-o;return a.info(N.green(`Synced "${t.length}" data silos and "${h}" datapoints in "${H/1e3}" seconds!`)),{success:!s,dataSiloTitleToId:cp(u,({id:G})=>G)}}async function fs(t,e){let n=!1;a.info(N.magenta(`Syncing "${e.length}" data silo dependencies...`));let r=Sn(e,En);return await T(r,async(i,s)=>{a.info(N.magenta(`[Batch ${s}/${i.length}] Updating "${i.length}" data silos...`));try{await p(t,Ht,{input:{dataSilos:i.map(([o,l])=>({id:o,dependedOnDataSiloTitles:l}))}}),a.info(N.green(`[Batch ${s+1}/${i.length}] Synced "${i.length}" data silos!`))}catch(o){n=!0,a.info(N.red(`[Batch ${s+1}/${i.length}] Failed to update "${i.length}" silos! - ${o.message}`))}}),!n}async function gs(t){let{consentManager:{consentManager:e}}=await p(t,to);return e}async function ie(t,e){let{consentManager:{consentManager:n}}=await p(t,eo,{},{},e);return n.id}var Rn=50;async function Et(t){let e=[],n=0,r=!1;do{let{experiences:{nodes:i}}=await p(t,Yr,{first:Rn,offset:n});e.push(...i),n+=Rn,r=i.length===Rn}while(r);return e.sort((i,s)=>i.name.localeCompare(s.name))}var dp=(n=>(n.Hourly="1h",n.Daily="1d",n))(dp||{});async function Af(t,e){let{analyticsData:{series:n}}=await p(t,Io,{input:e});return n}async function ys(t,e){let{consentManagerTheme:{theme:n}}=await p(t,no,{airgapBundleId:e});return n}import Rt from"colors";import{chunk as fp}from"lodash-es";var gp=100;async function yp(t,e){let n=await ie(t);await T(fp(e,gp),async r=>{await p(t,zr,{airgapBundleId:n,cookies:r.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 Cs(t,e){let n=!1;a.info(Rt.magenta(`Syncing "${e.length}" cookies...`));let r=e.filter(i=>e.filter(s=>i.name===s.name&&i.isRegex===s.isRegex).length>1);if(r.length>0)throw new Error(`Failed to upload cookies as there were non-unique entries found: ${r.map(({name:i})=>i).join(",")}`);try{a.info(Rt.magenta(`Upserting "${e.length}" new cookies...`)),await yp(t,e),a.info(Rt.green(`Successfully synced ${e.length} cookies!`))}catch(i){n=!0,a.info(Rt.red(`Failed to create cookies! - ${i.message}`))}return!n}var wn=20;async function wt(t){let e=[],n=0,r=!1;do{let{teams:{nodes:i}}=await p(t,wr,{first:wn,offset:n});e.push(...i),n+=wn,r=i.length===wn}while(r);return e.sort((i,s)=>i.name.localeCompare(s.name))}async function hs(t,{dataSubject:e,dataSubjectId:n,skipPublish:r=!1}){await p(t,Li,{input:{id:n,title:e.title,adminDashboardDefaultSilentMode:e.adminDashboardDefaultSilentMode,actions:e.actions,skipPublish:r&&typeof e.active>"u"}}),typeof e.active=="boolean"&&await p(t,ki,{input:{id:n,active:e.active,skipPublish:r}})}import{keyBy as Cp,uniq as hp,difference as Ip}from"lodash-es";import Is from"colors";var $n=20,Ap="https://app.transcend.io/infrastructure/api-keys";async function Tp(t,e){let n=[],r=0,i=!1;do{let{apiKeys:{nodes:s}}=await p(t,qi,{first:$n,offset:r,titles:e});n.push(...s),r+=$n,i=s.length===$n}while(i);return n.sort((s,o)=>s.title.localeCompare(o.title))}async function $t({"api-keys":t=[],"data-silos":e=[]},n,r=!1){a.info(Is.magenta(`Fetching ${r?"all":t.length} API keys...`));let i=t.map(({title:d})=>d),s=hp(e.map(d=>d["api-key-title"]).filter(d=>!!d)),o=[...s,...i],l=await Tp(n,r?void 0:[...s,...i]),u=Cp(l,"title"),c=Ip(o,l.map(({title:d})=>d));return c.length>0&&(a.info(Is.red(`Failed to find API keys "${c.join('", "')}"! Make sure these API keys are created at: ${Ap}`)),process.exit(1)),u}var bn=20;async function Be(t,{text:e,titles:n=[],ids:r=[]}={}){let i=[],s=0,o=!1;do{let{prompts:{nodes:l}}=await p(t,fr,{first:bn,offset:s,filterBy:{...e?{text:e}:{},...n.length>0?{title:n}:{},...r.length>0?{id:r}:{}}});i.push(...l),s+=bn,o=l.length===bn}while(o);return i.sort((l,u)=>l.title.localeCompare(u.title))}async function Kf(t,{promptTitles:e=[],promptIds:n=[]}={}){let{promptsWithVariables:r}=await p(t,Cr,{input:{...e.length>0?{promptTitles:e}:{},...n.length>0?{promptIds:n}:{}}});return r}import fe from"colors";import{keyBy as Pp}from"lodash-es";async function Sp(t,e){let{createPrompt:{prompt:n}}=await p(t,Ir,{input:e});return a.info(fe.green(`Successfully created prompt "${e.title}"!`)),n.id}async function Ep(t,e){await p(t,hr,{input:{prompts:e.map(([n,r])=>({...n,id:r}))}}),a.info(fe.green(`Successfully updated ${e.length} prompts!`))}async function As(t,e,n=20){let r=!1;a.info(fe.magenta(`Syncing "${e.length}" prompts...`));let i=await Be(t),s=Pp(i,"title"),o=e.map(c=>[c,s[c.title]?.id]),l=o.filter(([,c])=>!c).map(([c])=>c);try{a.info(fe.magenta(`Creating "${l.length}" new prompts...`)),await M(l,async c=>{await Sp(t,c)},{concurrency:n}),a.info(fe.green(`Successfully synced ${l.length} prompts!`))}catch(c){r=!0,a.info(fe.red(`Failed to create prompts! - ${c.message}`))}let u=o.filter(c=>!!c[1]);try{a.info(fe.magenta(`Updating "${u.length}" prompts...`)),await Ep(t,u),a.info(fe.green(`Successfully updated "${u.length}" prompts!`))}catch(c){r=!0,a.info(fe.red(`Failed to create prompts! - ${c.message}`))}return a.info(fe.green(`Synced "${e.length}" prompts!`)),!r}async function ft(t){let{organization:e}=await p(t,Do);return e.deployedPrivacyCenterUrl}async function Ke(t,e){let n=e;n||(n=await ft(t));let{privacyCenter:r}=await p(t,xo,{url:n});return r.id}async function bt(t){let e=await ft(t),{privacyCenterPolicies:n}=await p(t,tr,{url:e});return n.sort((r,i)=>r.title.defaultMessage.localeCompare(i.title.defaultMessage))}import xt from"colors";import{chunk as Rp,keyBy as wp}from"lodash-es";var $p=100;async function bp(t,e){let n=await Ke(t);await T(Rp(e,$p),async r=>{await p(t,nr,{privacyCenterId:n,policies:r.map(([i,s])=>({id:s,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 Ts(t,e){let n=!1;a.info(xt.magenta(`Syncing "${e.length}" policies...`));let r=e.filter(o=>e.filter(l=>o.title===l.title).length>1);if(r.length>0)throw new Error(`Failed to upload policies as there were non-unique entries found: ${r.map(({title:o})=>o).join(",")}`);let i=await bt(t),s=wp(i,({title:o})=>o.defaultMessage);try{a.info(xt.magenta(`Upserting "${e.length}" new policies...`)),await bp(t,e.map(o=>[o,s[o.title]?.id])),a.info(xt.green(`Successfully synced ${e.length} policies!`))}catch(o){n=!0,a.info(xt.red(`Failed to create policies! - ${o.message}`))}return!n}import Dt from"colors";import{chunk as xp}from"lodash-es";var Dp=100;async function Lp(t,e){await T(xp(e,Dp),async n=>{await p(t,sr,{messages:n.map(r=>({...r.id.includes(".")?{}:{id:r.id},defaultMessage:r.defaultMessage,targetReactIntlId:r.targetReactIntlId,translations:r.translations?Object.entries(r.translations).map(([i,s])=>({locale:i,value:s})):void 0}))})})}async function Ps(t,e){let n=!1;a.info(Dt.magenta(`Syncing "${e.length}" messages...`));let r=e.filter(i=>e.filter(s=>i.id===s.id).length>1);if(r.length>0)throw new Error(`Failed to upload messages as there were non-unique entries found: ${r.map(({id:i})=>i).join(",")}`);try{a.info(Dt.magenta(`Upserting "${e.length}" new messages...`)),await Lp(t,e),a.info(Dt.green(`Successfully synced ${e.length} messages!`))}catch(i){n=!0,a.info(Dt.red(`Failed to create messages! - ${i.message}`))}return!n}import xn from"colors";async function Ss(t,e){let n=!1;a.info(xn.magenta("Syncing privacy center..."));let r=await Ke(t);try{await p(t,ko,{input:{privacyCenterId:r,transformAccessReportJsonToCsv:e.transformAccessReportJsonToCsv,useCustomEmailDomain:e.useCustomEmailDomain,useNoReplyEmailAddress:e.useNoReplyEmailAddress,replyToEmail:e.replyToEmail,supportEmail:e.supportEmail,preferBrowserDefaultLocale:e.preferBrowserDefaultLocale,defaultLocale:e.defaultLocale,locales:e.locales,showMarketingPreferences:e.showMarketingPreferences,showManageYourPrivacy:e.showManageYourPrivacy,showPolicies:e.showPolicies,showConsentManager:e.showConsentManager,showDataFlows:e.showDataFlows,showCookies:e.showCookies,showTrackingTechnologies:e.showTrackingTechnologies,showPrivacyRequestButton:e.showPrivacyRequestButton,isDisabled:e.isDisabled,...e.theme?{colorPalette:e.theme.colors,componentStyles:e.theme.componentStyles,textStyles:e.theme.textStyles}:{}}}),a.info(xn.green("Successfully synced privacy center!"))}catch(i){n=!0,a.info(xn.red(`Failed to create privacy center! - ${i.message}`))}return!n}import Es from"colors";import{difference as kp}from"lodash-es";var Dn=50;async function gt(t){let e=[],n=0,r=!1;do{let{consentPartitions:{nodes:i}}=await p(t,Zr,{first:Dn,offset:n});e.push(...i),n+=Dn,r=i.length===Dn}while(r);return e.sort((i,s)=>i.name.localeCompare(s.name))}async function Rs(t,e){let n=await ie(t),r=!1,i=await gt(t),s=kp(e.map(({name:o})=>o),i.map(({name:o})=>o));return await T(s,async o=>{try{await p(t,ho,{input:{id:n,name:o}}),a.info(Es.green(`Successfully created consent partition: ${o}!`))}catch(l){a.error(Es.red(`Failed to create consent partition: ${o}! - ${l.message}`)),r=!0}}),!r}var Ln=20;async function Lt(t,{includeDeleted:e=!1}={}){let n=[],r=0,i=!1;do{let{purposes:{nodes:s}}=await p(t,mr,{first:Ln,offset:r,input:{includeDeleted:e}});n.push(...s),r+=Ln,i=s.length===Ln}while(i);return n.sort((s,o)=>s.trackingType.localeCompare(o.trackingType))}import ws from"colors";import{keyBy as $s}from"lodash-es";import{InitialViewState as _p,OnConsentExpiry as Gp}from"@transcend-io/airgap.js-types";var bs="https://app.transcend.io/consent-manager/regional-experiences/purposes";async function vp(t,e){let n=await Et(t),r=$s(n,"name"),i=await Lt(t),s=$s(i,"trackingType");await M(e,async(o,l)=>{let u=o.purposes?.map((m,g)=>{let h=s[m.trackingType];if(!h)throw new Error(`Invalid purpose trackingType provided at consentManager.experiences[${l}].purposes[${g}]: ${m.trackingType}. See list of valid purposes ${bs}`);return h.id}),c=o.optedOutPurposes?.map((m,g)=>{let h=s[m.trackingType];if(!h)throw new Error(`Invalid purpose trackingType provided at consentManager.experiences[${l}].optedOutPurposes[${g}]: ${m.trackingType}. See list of valid purposes ${bs}`);return h.id}),d=r[o.name];d?(await p(t,yo,{input:{id:d.id,name:o.displayName,regions:o.regions,operator:o.operator,onConsentExpiry:o.onConsentExpiry,consentExpiry:o.consentExpiry,displayPriority:o.displayPriority!==d.displayPriority?o.displayPriority:void 0,viewState:o.viewState,purposes:u,optedOutPurposes:c,browserLanguages:o.browserLanguages,browserTimeZones:o.browserTimeZones}}),a.info(ws.green(`Successfully synced consent experience "${o.name}"!`))):(await p(t,Co,{input:{name:o.name,displayName:o.displayName,regions:o.regions,operator:o.operator,onConsentExpiry:o.onConsentExpiry||Gp.Prompt,consentExpiry:o.consentExpiry,displayPriority:o.displayPriority,viewState:o.viewState||_p.Hidden,purposes:u||[],optedOutPurposes:c||[],browserLanguages:o.browserLanguages,browserTimeZones:o.browserTimeZones}}),a.info(ws.green(`Successfully created consent experience "${o.name}"!`)))},{concurrency:10})}async function xs(t,e){let n;try{n=await ie(t,1)}catch(r){if(r.message.includes("AirgapBundle not found")){let i=await Ke(t),{createConsentManager:s}=await p(t,io,{domains:e.domains,privacyCenterId:i});n=s.consentManager.id}else throw r}if(e.domains&&await p(t,ao,{domains:e.domains,airgapBundleId:n}),e.partition){let i=(await gt(t)).find(s=>s.name===e.partition);if(!i)throw new Error(`Partition "${e.partition}" not found. Please create the partition first.`);await p(t,po,{partitionId:i.id,airgapBundleId:n})}e.version&&await p(t,ro,{airgapBundleId:n,version:e.version}),(e.uspapi||e.signedIabAgreement)&&await p(t,lo,{input:{id:n,...e.uspapi?{uspapi:e.uspapi}:{},...e.signedIabAgreement?{signedIabAgreement:e.signedIabAgreement}:{}}}),e.unknownRequestPolicy&&await p(t,co,{input:{id:n,unknownRequestPolicy:e.unknownRequestPolicy}}),e.unknownRequestPolicy&&await p(t,mo,{input:{id:n,unknownCookiePolicy:e.unknownCookiePolicy}}),e.telemetryPartitioning&&await p(t,uo,{input:{id:n,strategy:e.telemetryPartitioning}}),e.consentPrecedence&&await p(t,fo,{input:{id:n,consentPrecedence:e.consentPrecedence}}),e.experiences&&await vp(t,e.experiences),e.theme&&await p(t,go,{input:{airgapBundleId:n,...e.theme}})}import Ls from"colors";import{AttributeKeyType as Ds}from"@transcend-io/privacy-types";var Ve=100;async function qp(t,e){a.info(Ls.magenta(`Fetching all attribute values for ${e}...`));let n=[],r=0,i=!1;do{let{attributeValues:{nodes:s}}=await p(t,Br,{first:Ve,offset:r,attributeKeyId:e});n.push(...s),r+=Ve,i=s.length===Ve}while(i);return n.sort((s,o)=>s.name.localeCompare(o.name))}var Op=[Ds.MultiSelect,Ds.SingleSelect];async function je(t){a.info(Ls.magenta("Fetching all attributes..."));let e=[],n=0,r=!1;do{let{attributeKeys:{nodes:i}}=await p(t,Mr,{first:Ve,offset:n});e.push(...await Promise.all(i.map(async s=>({...s,values:Op.includes(s.type)?await qp(t,s.id):[]})))),n+=Ve,r=i.length===Ve}while(r);return e.sort((i,s)=>i.name.localeCompare(s.name))}var kn=20;async function kt(t){let e=[],n=0,r=!1;do{let{businessEntities:{nodes:i}}=await p(t,Ao,{first:kn,offset:n});e.push(...i),n+=kn,r=i.length===kn}while(r);return e.sort((i,s)=>i.title.localeCompare(s.title))}import{keyBy as Np,chunk as Mp}from"lodash-es";import Ye from"colors";async function Up(t,e){let n={title:e.title,description:e.description,address:e.address,headquarterCountry:e.headquarterCountry,headquarterSubDivision:e.headquarterSubDivision,dataProtectionOfficerName:e.dataProtectionOfficerName,dataProtectionOfficerEmail:e.dataProtectionOfficerEmail,attributes:e.attributes,teamNames:e.teams,ownerEmails:e.owners},{createBusinessEntity:r}=await p(t,To,{input:n});return r.businessEntity}async function Fp(t,e){let n=Mp(e,100);await T(n,async r=>{await p(t,Po,{input:r.map(([i,s])=>({id:s,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 ks(t,e){a.info(Ye.magenta(`Syncing "${e.length}" business entities...`));let n=!1,r=await kt(t),i=Np(r,"title"),s=e.filter(o=>!i[o.title]);await T(s,async o=>{try{let l=await Up(t,o);i[l.title]=l,a.info(Ye.green(`Successfully synced business entity "${o.title}"!`))}catch(l){n=!0,a.info(Ye.red(`Failed to sync business entity "${o.title}"! - ${l.message}`))}});try{a.info(Ye.magenta(`Updating "${e.length}" business entities!`)),await Fp(t,e.map(o=>[o,i[o.title].id])),a.info(Ye.green(`Successfully synced "${e.length}" business entities!`))}catch(o){n=!0,a.info(Ye.red(`Failed to sync "${e.length}" business entities ! - ${o.message}`))}return!n}import{ConsentTrackerStatus as _s}from"@transcend-io/privacy-types";var _n=20;async function Ze(t,e=_s.Live){let n=[],r=0,i=await ie(t),s=!1;do{let{dataFlows:{nodes:o}}=await p(t,Jr,{first:_n,offset:r,airgapBundleId:i,status:e,...e===_s.NeedsReview?{showZeroActivity:!0}:{}});n.push(...o),r+=_n,s=o.length===_n}while(s);return n.sort((o,l)=>o.value.localeCompare(l.value))}import{chunk as vs}from"lodash-es";import Ie from"colors";import{ConsentTrackerStatus as Gs}from"@transcend-io/privacy-types";var qs=100;async function Qp(t,e,n=!1){let r=await ie(t);await T(vs(e,qs),async i=>{await p(t,Wr,{airgapBundleId:r,dataFlows:i.map(([s,o])=>({id:o,value:s.value,type:s.type,trackingType:s.trackingPurposes&&s.trackingPurposes.length>0?s.trackingPurposes:void 0,description:s.description,service:s.service,status:s.status,attributes:s.attributes})),classifyService:n})})}async function Bp(t,e,n=!1){let r=await ie(t);await T(vs(e,qs),async i=>{await p(t,Hr,{airgapBundleId:r,dataFlows:i.map(s=>({value:s.value,type:s.type,trackingType:s.trackingPurposes&&s.trackingPurposes.length>0?s.trackingPurposes:void 0,description:s.description,service:s.service,status:s.status,attributes:s.attributes})),dropMatchingDataFlowsInTriage:!0,classifyService:n})})}async function Os(t,e,n){let r=!1;a.info(Ie.magenta(`Syncing "${e.length}" data flows...`));let i=e.filter(m=>e.filter(g=>m.value===g.value&&m.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:m})=>m).join(",")}`);a.info(Ie.magenta("Fetching data flows..."));let[s,o]=await Promise.all([Ze(t,Gs.Live),Ze(t,Gs.NeedsReview)]),l=[...s,...o],u=e.map(m=>[m,l.find(g=>m.value===g.value&&m.type===g.type)?.id]),c=u.filter(([,m])=>!m).map(([m])=>m);try{a.info(Ie.magenta(`Creating "${c.length}" new data flows...`)),await Bp(t,c,n),a.info(Ie.green(`Successfully synced ${c.length} data flows!`))}catch(m){r=!0,a.info(Ie.red(`Failed to create data flows! - ${m.message}`))}let d=u.filter(m=>!!m[1]);try{a.info(Ie.magenta(`Updating "${d.length}" data flows...`)),await Qp(t,d,n),a.info(Ie.green(`Successfully updated "${d.length}" data flows!`))}catch(m){r=!0,a.info(Ie.red(`Failed to create data flows! - ${m.message}`))}return a.info(Ie.green(`Synced "${e.length}" data flows!`)),!r}import{difference as Kp}from"lodash-es";import{IsoCountryCode as Vp,IsoCountrySubdivisionCode as jp}from"@transcend-io/privacy-types";var Yp=[...Object.values(Vp),...Object.values(jp)];async function Ns(t,{action:e,actionId:n,skipPublish:r=!1}){await p(t,Ro,{input:{id:n,skipSecondaryIfNoFiles:e.skipSecondaryIfNoFiles,skipDownloadableStep:e.skipDownloadableStep,requiresReview:e.requiresReview,waitingPeriod:e.waitingPeriod,skipPublish:r,regionList:e.regionBlockList?Kp(Yp,e.regionBlockList):e.regionList,regionDetectionMethod:e.regionDetectionMethod}})}var Gn=20;async function vn(t,e){let n=[],r=0,i=!1;do{let{templates:{nodes:s}}=await p(t,Bi,{first:Gn,offset:r,title:e});n.push(...s),r+=Gn,i=s.length===Gn}while(i);return n.sort((s,o)=>s.title.localeCompare(o.title))}async function Ms(t,e){(await vn(e,t.title)).find(({title:i})=>i===t.title)||await p(e,Ki,{title:t.title})}var qn=20;async function _t(t){let e=[],n=0,r=!1;do{let{actions:{nodes:i}}=await p(t,Eo,{first:qn,offset:n});e.push(...i),n+=qn,r=i.length===qn}while(r);return e.sort((i,s)=>i.type.localeCompare(s.type))}var On=20;async function Gt(t){let e=[],n=0,r=!1;do{let{promptPartials:{nodes:i}}=await p(t,gr,{first:On,offset:n});e.push(...i),n+=On,r=i.length===On}while(r);return e.sort((i,s)=>i.title.localeCompare(s.title))}var Nn=20;async function vt(t){let e=[],n=0,r=!1;do{let{promptGroups:{nodes:i}}=await p(t,yr,{first:Nn,offset:n});e.push(...i),n+=Nn,r=i.length===Nn}while(r);return e.sort((i,s)=>i.title.localeCompare(s.title))}var Mn=20;async function qt(t,e={}){let n=[],r=0,i=!1;do{let{agents:{nodes:s}}=await p(t,vo,{first:Mn,offset:r,filterBy:e});n.push(...s),r+=Mn,i=s.length===Mn}while(i);return n.sort((s,o)=>s.name.localeCompare(o.name))}import{keyBy as Zp}from"lodash-es";import He from"colors";async function Hp(t,e){let n={name:e.name,description:e.description,codeInterpreterEnabled:e.codeInterpreterEnabled,retrievalEnabled:e.retrievalEnabled,promptTitle:e.prompt,largeLanguageModelName:e["large-language-model"].name,largeLanguageModelClient:e["large-language-model"].client},{createAgent:r}=await p(t,qo,{input:n});return r.agent}async function Wp(t,e){await p(t,Oo,{input:{agents:e.map(([n,r])=>({id:r,name:n.name,description:n.description,codeInterpreterEnabled:n.codeInterpreterEnabled,retrievalEnabled:n.retrievalEnabled}))}})}async function Us(t,e){a.info(He.magenta(`Syncing "${e.length}" agents...`));let n=!1,r=await qt(t),i=Zp(r,"name"),s=e.filter(o=>!i[o.name]);await T(s,async o=>{try{let l=await Hp(t,o);i[l.name]=l,a.info(He.green(`Successfully synced agent "${o.name}"!`))}catch(l){n=!0,a.info(He.red(`Failed to sync agent "${o.name}"! - ${l.message}`))}});try{a.info(He.magenta(`Updating "${e.length}" agents!`)),await Wp(t,e.map(o=>[o,i[o.name].id])),a.info(He.green(`Successfully synced "${e.length}" agents!`))}catch(o){n=!0,a.info(He.red(`Failed to sync "${e.length}" agents ! - ${o.message}`))}return!n}import{keyBy as zp}from"lodash-es";import yt from"colors";async function We(t,e={}){let{globalActionItemCollections:{nodes:n}}=await p(t,qr,{filterBy:{...e}});return n}async function Jp(t,e){let n={title:e.title,description:e.description||"",hidden:e.hidden||!1,productLine:e.productLine},{createActionItemCollection:r}=await p(t,Or,{input:n});return r.created}async function Xp(t,e,n){await p(t,Nr,{input:{id:n,title:e.title,description:e.description,hidden:e.hidden,productLine:e.productLine}})}async function Fs(t,e){let n=!1;a.info(yt.magenta(`Syncing "${e.length}" action item collections...`));let r=await We(t),i=zp(r,"title"),s=e.filter(l=>!i[l.title]);await T(s,async l=>{try{await Jp(t,l),a.info(yt.green(`Successfully created action item collection "${l.title}"!`))}catch(u){n=!0,a.info(yt.red(`Failed to create action item collection "${l.title}"! - ${u.message}`))}});let o=e.map(l=>[l,i[l.title]?.id]).filter(l=>!!l[1]);return await T(o,async([l,u])=>{try{await Xp(t,l,u),a.info(yt.green(`Successfully synced action item collection "${l.title}"!`))}catch(c){n=!0,a.info(yt.red(`Failed to sync action item collection "${l.title}"! - ${c.message}`))}}),!n}var Un=20;async function Ot(t,e={}){let n=[],r=0,i=!1;do{let{globalActionItems:{nodes:s}}=await p(t,wo,{first:Un,offset:r,filterBy:{...e,...e.startDueDate?{startDueDate:e.startDueDate.toISOString()}:{},...e.endDueDate?{endDueDate:e.endDueDate.toISOString()}:{}}});n.push(...s.map(o=>({...o,id:o.ids[0],title:o.titles[0],notes:o.notes[0],link:o.links[0]}))),r+=Un,i=s.length===Un}while(i);return n}import{uniq as el,keyBy as Nt,chunk as tl}from"lodash-es";import Ue from"colors";async function nl(t,e,n,r={}){let i=tl(e,100);await T(i,async s=>{await p(t,bo,{input:s.map(o=>({title:o.title,type:o.type,priorityOverride:o.priority,dueDate:o.dueDate,customerExperienceActionItemId:o.customerExperienceActionItemId,resolved:o.resolved,notes:o.notes,link:o.link,assigneesUserEmails:o.users,assigneesTeamNames:o.teams,...o.attributes?{}:{},collectionIds:o.collections.map(l=>n[l].id)}))})})}async function il(t,e,n,r={}){let i=s=>{let o=r[s];if(!o)throw new Error(`Attribute key "${s}" does not exist!`);return o.id};await p(t,$o,{input:{ids:[n],title:e.title,priorityOverride:e.priority,dueDate:e.dueDate,resolved:e.resolved,customerExperienceActionItemId:e.customerExperienceActionItemId,notes:e.notes,link:e.link,assigneesUserEmails:e.users,assigneesTeamNames:e.teams,...e.attributes?{attributes:e.attributes.map(({key:s,values:o})=>({attributeKeyId:i(s),attributeValueNames:o}))}:{}}})}function rl({title:t,collections:e}){return`${t}-${e.map(n=>n.title).sort().join("-")}`}function Qs({title:t,collections:e}){return`${t}-${e.sort().join("-")}`}async function Bs(t,e){let n=!1;a.info(Ue.magenta(`Syncing "${e.length}" actionItems...`));let r=e.some(I=>I.attributes&&I.attributes.length>0),[i,s,o]=await Promise.all([Ot(t),We(t),r?je(t):[]]),l=Nt(s,"title"),u=Nt(i,rl),c=Nt(o,"name"),d=Nt(i.filter(I=>!!I.customerExperienceActionItemIds),({customerExperienceActionItemIds:I})=>I[0]),m=el(e.map(I=>I.collections).flat()).filter(I=>!l[I]);if(m.length>0)return a.info(Ue.red(`Missing action item collections: "${m.join('", "')}" - please create them first!`)),!1;let g=e.filter(I=>!u[Qs(I)]&&!d[I.customerExperienceActionItemId]);if(g.length>0)try{a.info(Ue.magenta(`Creating "${g.length}" actionItems...`)),await nl(t,g,l,c),a.info(Ue.green(`Successfully created "${g.length}" actionItems!`))}catch(I){n=!0,a.info(Ue.red(`Failed to create action items! - ${I.message}`))}let h=e.map(I=>[I,u[Qs(I)]?.id||d[I.customerExperienceActionItemId]?.id]).filter(I=>!!I[1]);return await T(h,async([I,B])=>{try{await il(t,I,B,c),a.info(Ue.green(`Successfully synced action item "${I.title}"!`))}catch(H){n=!0,a.info(Ue.red(`Failed to sync action item "${I.title}"! - ${H.message}`))}}),!n}var Fn=20;async function Mt(t){let e=[],n=0,r=!1;do{let{agentFunctions:{nodes:i}}=await p(t,Fo,{first:Fn,offset:n});e.push(...i.map(s=>({...s,parameters:JSON.parse(s.parameters)}))),n+=Fn,r=i.length===Fn}while(r);return e.sort((i,s)=>i.name.localeCompare(s.name))}import{keyBy as ol}from"lodash-es";import ze from"colors";async function sl(t,e){let n={name:e.name,description:e.description,parameters:e.parameters,agentIds:[]},{createAgentFunction:r}=await p(t,Qo,{input:n});return r.agentFunction}async function al(t,e){await p(t,Bo,{input:{agentFunctions:e.map(([n,r])=>({id:r,name:n.name,description:n.description,parameters:n.parameters}))}})}async function Ks(t,e){a.info(ze.magenta(`Syncing "${e.length}" agent functions...`));let n=!1,r=await Mt(t),i=ol(r,"name"),s=e.filter(o=>!i[o.name]);await T(s,async o=>{try{let l=await sl(t,o);i[l.name]=l,a.info(ze.green(`Successfully synced agent function "${o.name}"!`))}catch(l){n=!0,a.info(ze.red(`Failed to sync agent function "${o.name}"! - ${l.message}`))}});try{a.info(ze.magenta(`Updating "${e.length}" agent functions!`)),await al(t,e.map(o=>[o,i[o.name].id])),a.info(ze.green(`Successfully synced "${e.length}" agent functions!`))}catch(o){n=!0,a.info(ze.red(`Failed to sync "${e.length}" agent functions! - ${o.message}`))}return!n}var Qn=20;async function Ut(t,e={}){let n=[],r=0,i=!1;do{let{agentFiles:{nodes:s}}=await p(t,No,{first:Qn,offset:r,filterBy:e});n.push(...s),r+=Qn,i=s.length===Qn}while(i);return n.sort((s,o)=>s.name.localeCompare(o.name))}import{keyBy as pl}from"lodash-es";import Je from"colors";async function ll(t,e){let n={name:e.name,description:e.description,fileId:e.fileId,size:e.size,purpose:e.purpose,fileUploadedAt:new Date,agentIds:[]},{createAgentFile:r}=await p(t,Mo,{input:n});return r.agentFile}async function cl(t,e){await p(t,Uo,{input:{agentFiles:e.map(([n,r])=>({id:r,name:n.name,description:n.description,fileId:n.fileId,size:n.size,purpose:n.purpose}))}})}async function Vs(t,e){a.info(Je.magenta(`Syncing "${e.length}" agent files...`));let n=!1,r=await Ut(t),i=pl(r,"name"),s=e.filter(o=>!i[o.name]);await T(s,async o=>{try{let l=await ll(t,o);i[l.name]=l,a.info(Je.green(`Successfully synced agent file "${o.name}"!`))}catch(l){n=!0,a.info(Je.red(`Failed to sync agent file "${o.name}"! - ${l.message}`))}});try{a.info(Je.magenta(`Updating "${e.length}" agent files!`)),await cl(t,e.map(o=>[o,i[o.name].id])),a.info(Je.green(`Successfully synced "${e.length}" agent files!`))}catch(o){n=!0,a.info(Je.red(`Failed to sync "${e.length}" agent files! - ${o.message}`))}return!n}var Bn=20;async function Ft(t){let e=[],n=0,r=!1;do{let{vendors:{nodes:i}}=await p(t,Ko,{first:Bn,offset:n});e.push(...i),n+=Bn,r=i.length===Bn}while(r);return e.sort((i,s)=>i.title.localeCompare(s.title))}import{keyBy as ml}from"lodash-es";import Xe from"colors";async function ul(t,e){let n={title:e.title,description:e.description,address:e.address,headquarterCountry:e.headquarterCountry,headquarterSubDivision:e.headquarterSubDivision,dataProcessingAgreementLink:e.dataProcessingAgreementLink,contactName:e.contactName,contactPhone:e.contactPhone,websiteUrl:e.websiteUrl},{createVendor:r}=await p(t,Vo,{input:n});return r.vendor}async function dl(t,e){await p(t,jo,{input:{vendors:e.map(([n,r])=>({id:r,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 js(t,e){a.info(Xe.magenta(`Syncing "${e.length}" vendors...`));let n=!1,r=await Ft(t),i=ml(r,"title"),s=e.filter(o=>!i[o.title]);await T(s,async o=>{try{let l=await ul(t,o);i[l.title]=l,a.info(Xe.green(`Successfully synced vendor "${o.title}"!`))}catch(l){n=!0,a.info(Xe.red(`Failed to sync vendor "${o.title}"! - ${l.message}`))}});try{a.info(Xe.magenta(`Updating "${e.length}" vendors!`)),await dl(t,e.map(o=>[o,i[o.title].id])),a.info(Xe.green(`Successfully synced "${e.length}" vendors!`))}catch(o){n=!0,a.info(Xe.red(`Failed to sync "${e.length}" vendors ! - ${o.message}`))}return!n}var Kn=20;async function Qt(t){let e=[],n=0,r=!1;do{let{dataSubCategories:{nodes:i}}=await p(t,Yo,{first:Kn,offset:n});e.push(...i),n+=Kn,r=i.length===Kn}while(r);return e.sort((i,s)=>i.name.localeCompare(s.name))}import{keyBy as fl}from"lodash-es";import et from"colors";async function gl(t,e){let n={name:e.name,category:e.category,description:e.description},{createDataCategory:r}=await p(t,Zo,{input:n});return r.dataCategory}async function yl(t,e){await p(t,Ho,{input:{dataSubCategories:e.map(([n,r])=>({id:r,description:n.description,attributes:n.attributes}))}})}async function Ys(t,e){a.info(et.magenta(`Syncing "${e.length}" data categories...`));let n=!1,r=await Qt(t),i=fl(r,({name:o,category:l})=>`${o}:${l}`),s=e.filter(o=>!i[`${o.name}:${o.category}`]);await T(s,async o=>{try{let l=await gl(t,o);i[`${l.name}:${l.category}`]=l,a.info(et.green(`Successfully synced data category "${o.name}"!`))}catch(l){n=!0,a.info(et.red(`Failed to sync data category "${o.name}"! - ${l.message}`))}});try{a.info(et.magenta(`Updating "${e.length}" data categories!`)),await yl(t,e.map(o=>[o,i[`${o.name}:${o.category}`].id])),a.info(et.green(`Successfully synced "${e.length}" data categories!`))}catch(o){n=!0,a.info(et.red(`Failed to sync "${e.length}" data categories ! - ${o.message}`))}return!n}var Vn=20;async function Bt(t){let e=[],n=0,r=!1;do{let{processingPurposeSubCategories:{nodes:i}}=await p(t,Wo,{first:Vn,offset:n});e.push(...i),n+=Vn,r=i.length===Vn}while(r);return e.sort((i,s)=>i.name.localeCompare(s.name))}import{keyBy as Cl}from"lodash-es";import tt from"colors";async function hl(t,e){let n={name:e.name,purpose:e.purpose,description:e.description},{createProcessingPurposeSubCategory:r}=await p(t,zo,{input:n});return r.processingPurposeSubCategory}async function Il(t,e){await p(t,Jo,{input:{processingPurposeSubCategories:e.map(([n,r])=>({id:r,description:n.description,attributes:n.attributes}))}})}async function Zs(t,e){a.info(tt.magenta(`Syncing "${e.length}" processing purposes...`));let n=!1,r=await Bt(t),i=Cl(r,({name:o,purpose:l})=>`${o}:${l}`),s=e.filter(o=>!i[`${o.name}:${o.purpose}`]);await T(s,async o=>{try{let l=await hl(t,o);i[`${l.name}:${l.purpose}`]=l,a.info(tt.green(`Successfully synced processing purpose "${o.name}"!`))}catch(l){n=!0,a.info(tt.red(`Failed to sync processing purpose "${o.name}"! - ${l.message}`))}});try{a.info(tt.magenta(`Updating "${e.length}" processing purposes!`)),await Il(t,e.map(o=>[o,i[`${o.name}:${o.purpose}`].id])),a.info(tt.green(`Successfully synced "${e.length}" processing purposes!`))}catch(o){n=!0,a.info(tt.red(`Failed to sync "${e.length}" processing purposes ! - ${o.message}`))}return!n}import L from"colors";import{keyBy as Al}from"lodash-es";import Ct from"colors";async function Tl(t,e){let n={name:e.name,description:e.description,ssoTitle:e["sso-title"],ssoDepartment:e["sso-department"],ssoGroup:e["sso-group"],scopes:e.scopes,userEmails:e.users},{createTeam:r}=await p(t,$r,{input:n});return r.team}async function Pl(t,e,n){let{updateTeam:r}=await p(t,br,{input:{id:n,name:e.name,description:e.description,ssoTitle:e["sso-title"],ssoDepartment:e["sso-department"],ssoGroup:e["sso-group"],scopes:e.scopes,userEmails:e.users}});return r.team}async function Hs(t,e){a.info(Ct.magenta(`Syncing "${e.length}" teams...`));let n=!1,r=await wt(t),i=Al(r,"name"),s=e.filter(l=>!i[l.name]),o=e.filter(l=>!!i[l.name]);return await T(s,async l=>{try{let u=await Tl(t,l);i[u.name]=u,a.info(Ct.green(`Successfully created team "${l.name}"!`))}catch(u){n=!0,a.info(Ct.red(`Failed to sync team "${l.name}"! - ${u.message}`))}}),await T(o,async l=>{try{let u=await Pl(t,l,i[l.name].id);i[u.name]=u,a.info(Ct.green(`Successfully updated team "${l.name}"!`))}catch(u){n=!0,a.info(Ct.red(`Failed to sync team "${l.name}"! - ${u.message}`))}}),!n}import ge from"colors";import{keyBy as Sl}from"lodash-es";async function El(t,e){let{createPromptPartial:{promptPartial:n}}=await p(t,Tr,{input:e});return a.info(ge.green(`Successfully created prompt partial "${e.title}"!`)),n.id}async function Rl(t,e){await p(t,Ar,{input:{promptPartials:e.map(([n,r])=>({...n,id:r}))}}),a.info(ge.green(`Successfully updated ${e.length} prompt partials!`))}async function Ws(t,e,n=20){let r=!1;a.info(ge.magenta(`Syncing "${e.length}" prompt partials...`));let i=await Gt(t),s=Sl(i,"title"),o=e.map(c=>[c,s[c.title]?.id]),l=o.filter(([,c])=>!c).map(([c])=>c);try{a.info(ge.magenta(`Creating "${l.length}" new prompt partials...`)),await M(l,async c=>{await El(t,c)},{concurrency:n}),a.info(ge.green(`Successfully synced ${l.length} prompt partials!`))}catch(c){r=!0,a.info(ge.red(`Failed to create prompt partials! - ${c.message}`))}let u=o.filter(c=>!!c[1]);try{a.info(ge.magenta(`Updating "${u.length}" prompt partials...`)),await Rl(t,u),a.info(ge.green(`Successfully updated "${u.length}" prompt partials!`))}catch(c){r=!0,a.info(ge.red(`Failed to create prompt partials! - ${c.message}`))}return a.info(ge.green(`Synced "${e.length}" prompt partials!`)),!r}import ye from"colors";import{keyBy as zs}from"lodash-es";async function wl(t,e){let{createPromptGroup:{promptGroup:n}}=await p(t,Sr,{input:e});return a.info(ye.green(`Successfully created prompt group "${e.title}"!`)),n.id}async function $l(t,e){await p(t,Pr,{input:{promptGroups:e.map(([n,r])=>({...n,id:r}))}}),a.info(ye.green(`Successfully updated ${e.length} prompt groups!`))}async function Js(t,e,n=20){let r=!1;a.info(ye.magenta(`Syncing "${e.length}" prompt groups...`));let i=await vt(t),s=await Be(t),o=zs(s,"title"),l=zs(i,"title"),u=e.map(m=>[m,l[m.title]?.id]),c=u.filter(([,m])=>!m).map(([m])=>m);try{a.info(ye.magenta(`Creating "${c.length}" new prompt groups...`)),await M(c,async m=>{await wl(t,{...m,promptIds:m.prompts.map(g=>{let h=o[g];if(!h)throw new Error(`Failed to find prompt with title: "${g}"`);return h.id})})},{concurrency:n}),a.info(ye.green(`Successfully synced ${c.length} prompt groups!`))}catch(m){r=!0,a.info(ye.red(`Failed to create prompt groups! - ${m.message}`))}let d=u.filter(m=>!!m[1]);try{a.info(ye.magenta(`Updating "${d.length}" prompt groups...`)),await $l(t,d.map(([{prompts:m,...g},h])=>[{...g,promptIds:m.map(I=>{let B=o[I];if(!B)throw new Error(`Failed to find prompt with title: "${I}"`);return B.id})},h])),a.info(ye.green(`Successfully updated "${d.length}" prompt groups!`))}catch(m){r=!0,a.info(ye.red(`Failed to create prompt groups! - ${m.message}`))}return a.info(ye.green(`Synced "${e.length}" prompt groups!`)),!r}var nt=10;async function zI(t,e,{pageSize:n=50,publishToPrivacyCenter:r=!0,classifyService:i=!1,deleteExtraAttributeValues:s=!1}){let o=!1;a.info(L.magenta(`Fetching data with page size ${n}...`));let{templates:l,attributes:u,actions:c,identifiers:d,"data-subjects":m,"business-entities":g,enrichers:h,cookies:I,"consent-manager":B,"data-silos":H,"data-flows":G,prompts:Q,"prompt-groups":A,"prompt-partials":j,agents:V,"agent-functions":Le,"agent-files":Ee,vendors:X,"data-categories":oe,"processing-purposes":Re,"action-items":we,"action-item-collections":ke,teams:$e,"privacy-center":se,messages:ot,policies:st,partitions:at}=t,[pt,Fe,ht]=await Promise.all([h||d?ts(t,e,!r):{},H||m||h?as(t,e):{},H&&H.map(y=>y["api-key-title"]||[]).reduce((y,k)=>y+k.length,0)>0?$t(t,e):{}]);if(B){a.info(L.magenta("Syncing consent manager..."));try{await xs(e,B),a.info(L.green("Successfully synced consent manager!"))}catch(y){o=!0,a.info(L.red(`Failed to sync consent manager! - ${y.message}`))}}if(Q){let y=await As(e,Q);o=o||!y}if(j){let y=await Ws(e,j);o=o||!y}if(A){let y=await Js(e,A);o=o||!y}if($e){let y=await Hs(e,$e);o=o||!y}if(l&&(a.info(L.magenta(`Syncing "${l.length}" email templates...`)),await M(l,async y=>{a.info(L.magenta(`Syncing template "${y.title}"...`));try{await Ms(y,e),a.info(L.green(`Successfully synced template "${y.title}"!`))}catch(k){o=!0,a.info(L.red(`Failed to sync template "${y.title}"! - ${k.message}`))}},{concurrency:nt}),a.info(L.green(`Synced "${l.length}" email templates!`))),g){let y=await ks(e,g);o=o||!y}if(X){let y=await js(e,X);o=o||!y}if(oe){let y=await Ys(e,oe);o=o||!y}if(Re){let y=await Zs(e,Re);o=o||!y}if(at){let y=await Rs(e,at);o=o||!y}if(V){let y=await Us(e,V);o=o||!y}if(Le){let y=await Ks(e,Le);o=o||!y}if(Ee){let y=await Vs(e,Ee);o=o||!y}if(I){let y=await Cs(e,I);o=o||!y}if(ke){let y=await Fs(e,ke);o=o||!y}if(u){a.info(L.magenta(`Syncing "${u.length}" attributes...`));let y=await je(e);await M(u,async k=>{let W=y.find(ee=>ee.name===k.name);a.info(L.magenta(`Syncing attribute "${k.name}"...`));try{await os(e,k,{existingAttribute:W,deleteExtraAttributeValues:s}),a.info(L.green(`Successfully synced attribute "${k.name}"!`))}catch(ee){o=!0,a.info(L.red(`Failed to sync attribute "${k.name}"! - ${ee.message}`))}},{concurrency:nt}),a.info(L.green(`Synced "${u.length}" attributes!`))}if(we){let y=await Bs(e,we);o=o||!y}if(h&&(a.info(L.magenta(`Syncing "${h.length}" enrichers...`)),await M(h,async y=>{a.info(L.magenta(`Syncing enricher "${y.title}"...`));try{await rs(e,{enricher:y,identifierByName:pt,dataSubjectsByName:Fe}),a.info(L.green(`Successfully synced enricher "${y.title}"!`))}catch(k){o=!0,a.info(L.red(`Failed to sync enricher "${y.title}"! - ${k.message}`))}},{concurrency:nt}),a.info(L.green(`Synced "${h.length}" enrichers!`))),d&&(a.info(L.magenta(`Syncing "${d.length}" identifiers...`)),await M(d,async y=>{let k=pt[y.name];if(!k)throw new Error(`Failed to find identifier with name: ${y.type}. Should have been auto-created by cli.`);a.info(L.magenta(`Syncing identifier "${y.type}"...`));try{await ns(e,{identifier:y,dataSubjectsByName:Fe,identifierId:k.id,skipPublish:!r}),a.info(L.green(`Successfully synced identifier "${y.type}"!`))}catch(W){o=!0,a.info(L.red(`Failed to sync identifier "${y.type}"! - ${W.message}`))}},{concurrency:nt}),a.info(L.green(`Synced "${d.length}" identifiers!`))),c){a.info(L.magenta(`Syncing "${c.length}" actions...`));let y=await _t(e);await M(c,async k=>{let W=y.find(ee=>ee.type===k.type);if(!W)throw new Error(`Failed to find action with type: ${k.type}. Should have already existing in the organization.`);a.info(L.magenta(`Syncing action "${k.type}"...`));try{await Ns(e,{action:k,actionId:W.id,skipPublish:!r}),a.info(L.green(`Successfully synced action "${k.type}"!`))}catch(ee){o=!0,a.info(L.red(`Failed to sync action "${k.type}"! - ${ee.message}`))}},{concurrency:nt}),a.info(L.green(`Synced "${c.length}" actions!`))}if(m){a.info(L.magenta(`Syncing "${m.length}" data subjects...`));let y=await dt(e);await M(m,async k=>{let W=y.find(ee=>ee.type===k.type);if(!W)throw new Error(`Failed to find data subject with type: ${k.type}. Should have already existing in the organization.`);a.info(L.magenta(`Syncing data subject "${k.type}"...`));try{await hs(e,{dataSubject:k,dataSubjectId:W.id,skipPublish:!r}),a.info(L.green(`Successfully synced data subject "${k.type}"!`))}catch(ee){o=!0,a.info(L.red(`Failed to sync data subject "${k.type}"! - ${ee.message}`))}},{concurrency:nt}),a.info(L.green(`Synced "${m.length}" data subjects!`))}if(G){let y=await Os(e,G,i);o=o||!y}if(se){let y=await Ss(e,se);o=o||!y}if(ot){let y=await Ps(e,ot);o=o||!y}if(st){let y=await Ts(e,st);o=o||!y}let Qe=[];if(H){let{success:y,dataSiloTitleToId:k}=await ds(H,e,{dataSubjectsByName:Fe,apiKeysByTitle:ht,pageSize:n});H?.forEach(W=>{W["deletion-dependencies"]&&Qe.push([k[W.title],W["deletion-dependencies"]])}),o=o||!y}return Qe.length>0&&await fs(e,Qe),o}async function nA(t,e){let n=await p(t,Fi,{dataSiloId:e,type:"DATA_SILO_DISCOVERY"}),{plugins:r,totalCount:i}=n.plugins;return i===0&&(a.error("No active data silo plugins found for this data silo."),process.exit(1)),r[0]}async function Xs(t){let e=await ft(t),{privacyCenter:{themeStr:n,...r}}=await p(t,Lo,{url:e});return[{...r,theme:JSON.parse(n)}]}async function ea(t){let{translatedMessages:e}=await p(t,or,{});return e}import{ConsentTrackerStatus as bl}from"@transcend-io/privacy-types";var jn=20;async function Yn(t,e=bl.Live){let n=[],r=0,i=await ie(t),s=!1;do{let{cookies:{nodes:o}}=await p(t,Xr,{first:jn,offset:r,airgapBundleId:i,status:e});n.push(...o),r+=jn,s=o.length===jn}while(s);return n.sort((o,l)=>o.name.localeCompare(l.name))}var Zn=20;async function ta(t){let e=[],n=0,r=!1;do{let{assessmentForms:{nodes:i}}=await p(t,cr,{first:Zn,offset:n});e.push(...i),n+=Zn,r=i.length===Zn}while(r);return e.sort((i,s)=>i.title.localeCompare(s.title))}var Hn=20;async function na(t){let e=[],n=0,r=!1;do{let{assessmentFormTemplates:{nodes:i}}=await p(t,dr,{first:Hn,offset:n});e.push(...i),n+=Hn,r=i.length===Hn}while(r);return e.sort((i,s)=>i.title.localeCompare(s.title))}import{AssessmentsDisplayLogicAction as xl,ComparisonOperator as Dl,LogicOperator as Ll}from"@transcend-io/privacy-types";import{decodeCodec as kl,valuesOf as Wn}from"@transcend-io/type-utils";import*as Z from"io-ts";var ia=Z.type({dependsOnQuestionReferenceId:Z.string,comparisonOperator:Wn(Dl),comparisonOperands:Z.array(Z.string)}),_l=Z.recursion("AssessmentNestedRule",t=>Z.intersection([Z.type({logicOperator:Wn(Ll)}),Z.partial({rules:Z.array(ia),nestedRules:Z.array(t)})])),Gl=Z.partial({action:Wn(xl),rule:ia,nestedRule:_l});function zn(t){return kl(Gl,t)}import{ComparisonOperator as vl}from"@transcend-io/privacy-types";import{decodeCodec as ql,valuesOf as Ol}from"@transcend-io/type-utils";import*as te from"io-ts";var Nl=te.intersection([te.partial({riskAssignment:te.partial({riskLevelId:te.string,riskMatrixRowId:te.string,riskMatrixColumnId:te.string})}),te.type({comparisonOperands:te.array(te.string),comparisonOperator:Ol(vl)})]);function Jn(t){return ql(Nl,t)}var Xn=20;async function ra(t){let e=[],n=0,r=!1;do{let{preferenceTopics:{nodes:i}}=await p(t,ur,{first:Xn,offset:n});e.push(...i),n+=Xn,r=i.length===Xn}while(r);return e.sort((i,s)=>`${i.slug}:${i.purpose.trackingType}`.localeCompare(`${s.slug}:${s.purpose.trackingType}`))}async function oa(t){let[e,n]=await Promise.all([Lt(t),ra(t)]);return e.map(r=>{let i=n.filter(s=>s.purpose.trackingType===r.trackingType);return{...r,topics:i}})}import{RequestAction as sa,ConsentTrackerStatus as Ae,ActionItemCode as Ml}from"@transcend-io/privacy-types";import{flatten as Ul,keyBy as aa,mapValues as Fl}from"lodash-es";function ce(t){let e=[];return t.map(n=>{let r=e.find(i=>i.key===n.attributeKey.name);return r===void 0?(r={key:n.attributeKey.name,values:[n.name]},e.push(r)):r.values.push(n.name),e}),e}import Ql from"colors";var Bl=["dataSilos","enrichers","templates","apiKeys"];async function RT(t,{dataSiloIds:e,integrationNames:n,debug:r,resources:i=Bl,pageSize:s,skipDatapoints:o,includeGuessedCategories:l,skipSubDatapoints:u,trackerStatuses:c=Object.values(Ae)}){if(e.length>0&&n.length>0)throw new Error("Only 1 of integrationNames OR dataSiloIds can be provided");a.info(Ql.magenta(`Fetching data with page size ${s}...`));let[d,m,g,h,I,B,H,G,Q,A,j,V,Le,Ee,X,oe,Re,we,ke,$e,se,ot,st,at,pt,Fe,ht,Qe,y,k,W,ee]=await Promise.all([i.includes("dataSilos")||i.includes("dataSubjects")?dt(t):[],i.includes("apiKeys")?$t({},t,!0):[],i.includes("dataSilos")?us(t,{ids:e,integrationNames:n,pageSize:s,debug:r,includeGuessedCategories:l,skipDatapoints:o,skipSubDatapoints:u}):[],i.includes("enrichers")?An(t):[],i.includes("dataFlows")?[...c.includes(Ae.Live)?await Ze(t,Ae.Live):[],...c.includes(Ae.NeedsReview)?await Ze(t,Ae.NeedsReview):[]]:[],i.includes("cookies")?[...c.includes(Ae.Live)?await Yn(t,Ae.Live):[],...c.includes(Ae.NeedsReview)?await Yn(t,Ae.NeedsReview):[]]:[],i.includes("customFields")?je(t):[],i.includes("templates")?vn(t):[],i.includes("identifiers")?hn(t):[],i.includes("actions")?_t(t):[],i.includes("businessEntities")?kt(t):[],i.includes("consentManager")?gs(t):void 0,i.includes("consentManager")?Et(t):[],i.includes("prompts")?Be(t):[],i.includes("promptPartials")?Gt(t):[],i.includes("promptGroups")?vt(t):[],i.includes("agents")?qt(t):[],i.includes("agentFunctions")?Mt(t):[],i.includes("agentFiles")?Ut(t):[],i.includes("vendors")?Ft(t):[],i.includes("dataCategories")?Qt(t):[],i.includes("processingPurposes")?Bt(t):[],i.includes("actionItems")?Ot(t,{type:[Ml.Onboarding]}):[],i.includes("actionItemCollections")?We(t):[],i.includes("teams")?wt(t):[],i.includes("policies")?bt(t):[],i.includes("privacyCenters")?Xs(t):[],i.includes("messages")?ea(t):[],i.includes("partitions")?gt(t):[],i.includes("assessments")?ta(t):[],i.includes("assessmentTemplates")?na(t):[],i.includes("purposes")?oa(t):[]]),lt=i.includes("consentManager")&&V?await ys(t,V.id):void 0,_={},Ta=Ul(g.map(([{apiKeys:f}])=>f.map(({title:C})=>C))),mi=Object.values(m).filter(({title:f})=>i.includes("apiKeys")?!0:Ta.includes(f));if(mi.length>0&&i.includes("apiKeys")&&(_["api-keys"]=mi.map(({title:f})=>({title:f}))),y.length>0&&i.includes("partitions")&&(_.partitions=y.map(({name:f,partition:C})=>({name:f,partition:C}))),V&&i.includes("consentManager")&&(_["consent-manager"]={bundleUrls:{TEST:V.testBundleURL,PRODUCTION:V.bundleURL},domains:V.configuration.domains||void 0,partition:V.configuration.partition||void 0,consentPrecedence:V.configuration.consentPrecedence||void 0,unknownRequestPolicy:V.configuration.unknownRequestPolicy||void 0,unknownCookiePolicy:V.configuration.unknownCookiePolicy||void 0,syncEndpoint:V.configuration.syncEndpoint||void 0,telemetryPartitioning:V.configuration.telemetryPartitioning||void 0,signedIabAgreement:V.configuration.signedIabAgreement||void 0,uspapi:V.configuration.uspapi||void 0,syncGroups:V.configuration.syncGroups||void 0,theme:lt?{primaryColor:lt.primaryColor||void 0,fontColor:lt.fontColor||void 0,privacyPolicy:lt.privacyPolicy||void 0,prompt:lt.prompt}:void 0,experiences:Le.map(f=>({name:f.name,displayName:f.displayName||void 0,regions:f.regions.map(C=>({countrySubDivision:C.countrySubDivision||void 0,country:C.country||void 0})),onConsentExpiry:f.onConsentExpiry,consentExpiry:f.consentExpiry,operator:f.operator,displayPriority:f.displayPriority,viewState:f.viewState,purposes:f.purposes.map(C=>({trackingType:C.trackingType})),optedOutPurposes:f.optedOutPurposes.map(C=>({trackingType:C.trackingType})),browserLanguages:f.browserLanguages,browserTimeZones:f.browserTimeZones}))}),k.length>0&&i.includes("assessments")&&(_.assessments=k.map(({title:f,assessmentGroup:C,sections:P,creator:S,description:E,status:w,assignees:$,externalAssignees:b,reviewers:q,isLocked:v,isArchived:K,isExternallyCreated:U,dueDate:O,createdAt:z,assignedAt:be,submittedAt:_e,approvedAt:Ge,rejectedAt:ve,titleIsInternal:xe,retentionSchedule:ae,attributeValues:he,resources:ct,syncedRows:qe})=>({title:f,group:C.title,sections:P.map(({title:J,status:me,questions:ne,assignees:R,isReviewed:x,externalAssignees:Y})=>({title:J,status:me,questions:ne.map(({title:Oe,type:Yt,subType:re,placeholder:pe,description:Ne,isRequired:Pa,referenceId:Sa,displayLogic:ui,riskLogic:Ea,riskCategories:Ra,riskFramework:wa,answerOptions:$a,selectedAnswers:ba,allowedMimeTypes:xa,allowSelectOther:Da,syncModel:La,syncColumn:ka,attributeKey:_a,requireRiskEvaluation:Ga,requireRiskMatrixEvaluation:va})=>{let ue=ui?zn(ui):void 0;return{title:Oe,type:Yt,"sub-type":re,placeholder:pe,description:Ne,"is-required":Pa,"reference-id":Sa,"display-logic":ue&&Object.keys(ue).length>0?{action:ue.action,rule:ue.rule?{"depends-on-question-reference-id":ue.rule.dependsOnQuestionReferenceId,"comparison-operator":ue.rule.comparisonOperator,"comparison-operands":ue.rule.comparisonOperands}:void 0,"nested-rule":ue.nestedRule?{"logic-operator":ue.nestedRule.logicOperator,rules:(ue.nestedRule.rules||[]).map(le=>({"depends-on-question-reference-id":le.dependsOnQuestionReferenceId,"comparison-operator":le.comparisonOperator,"comparison-operands":le.comparisonOperands}))}:void 0}:void 0,"risk-logic":Ea.map(le=>{let Zt=Jn(le);return{"risk-level":Zt.riskAssignment?.riskLevelId,"comparison-operands":Zt.comparisonOperands,"comparison-operator":Zt.comparisonOperator}}),"risk-categories":Ra.map(({title:le})=>le),"risk-framework":wa?.title,"answer-options":$a.map(({value:le})=>({value:le})),"selected-answers":ba.map(({value:le})=>le),"allowed-mime-types":xa,"allow-select-other":Da,"sync-model":La||void 0,"sync-column":ka||void 0,"attribute-key":_a?.name,"require-risk-evaluation":Ga,"require-risk-matrix-evaluation":va}}),assignees:R.map(({email:Oe})=>Oe),"external-assignees":Y.map(({email:Oe})=>Oe),"is-reviewed":x})),creator:S?.email,description:E,status:w,assignees:$.map(({email:J})=>J),"external-assignees":b.map(({email:J})=>J),reviewers:q.map(({email:J})=>J),locked:v,archived:K,external:U,"title-is-internal":xe,"due-date":O||void 0,"created-at":z||void 0,"assigned-at":be||void 0,"submitted-at":_e||void 0,"approved-at":Ge||void 0,"rejected-at":ve||void 0,"retention-schedule":ae?{type:ae.type,"duration-days":ae.durationDays,operand:ae.operation}:void 0,attributes:he!==void 0&&he.length>0?ce(he):void 0,resources:ct.map(({resourceType:J,title:me,name:ne,category:R,type:x,purpose:Y})=>({type:J,title:R?`${R} - ${ne}`:Y?`${Y} - ${ne}`:me||ne||x||""})),rows:qe.map(({resourceType:J,title:me,name:ne,category:R,type:x,purpose:Y})=>({type:J,title:R?`${R} - ${ne}`:Y?`${Y} - ${ne}`:me||ne||x||""}))}))),W.length>0&&i.includes("assessmentTemplates")&&(_["assessment-templates"]=W.map(({title:f,description:C,sections:P,status:S,source:E,creator:w,isLocked:$,isArchived:b,createdAt:q,retentionSchedule:v})=>({title:f,description:C,sections:P.map(({title:K,questions:U})=>({title:K,questions:U.map(({title:O,type:z,subType:be,placeholder:_e,description:Ge,isRequired:ve,referenceId:xe,displayLogic:ae,riskLogic:he,riskCategories:ct,riskFramework:qe,answerOptions:J,allowedMimeTypes:me,allowSelectOther:ne,syncModel:R,syncColumn:x,attributeKey:Y,requireRiskEvaluation:Oe,requireRiskMatrixEvaluation:Yt})=>{let re=ae?zn(ae):void 0;return{title:O,type:z,"sub-type":be,placeholder:_e,description:Ge,"is-required":ve,"reference-id":xe,"display-logic":re&&Object.keys(re).length>0?{action:re.action,rule:re.rule?{"depends-on-question-reference-id":re.rule.dependsOnQuestionReferenceId,"comparison-operator":re.rule.comparisonOperator,"comparison-operands":re.rule.comparisonOperands}:void 0,"nested-rule":re.nestedRule?{"logic-operator":re.nestedRule.logicOperator,rules:(re.nestedRule.rules||[]).map(pe=>({"depends-on-question-reference-id":pe.dependsOnQuestionReferenceId,"comparison-operator":pe.comparisonOperator,"comparison-operands":pe.comparisonOperands}))}:void 0}:void 0,"risk-logic":he.map(pe=>{let Ne=Jn(pe);return{"risk-level":Ne.riskAssignment?.riskLevelId,"risk-matrix-row":Ne.riskAssignment?.riskMatrixRowId,"risk-matrix-column":Ne.riskAssignment?.riskMatrixColumnId,"comparison-operands":Ne.comparisonOperands,"comparison-operator":Ne.comparisonOperator}}),"risk-categories":ct.map(({title:pe})=>pe),"risk-framework":qe?.title,"answer-options":J.map(({value:pe})=>({value:pe})),"allowed-mime-types":me,"allow-select-other":ne,"sync-model":R||void 0,"sync-column":x||void 0,"attribute-key":Y?.name,"require-risk-evaluation":Oe,"require-risk-matrix-evaluation":Yt}})})),status:S,source:E,creator:w?.email,locked:$,archived:b,"created-at":q||void 0,"retention-schedule":v?{type:v.type,"duration-days":v.durationDays,operand:v.operation}:void 0}))),Ee.length>0&&i.includes("prompts")&&(_.prompts=Ee.map(({title:f,content:C})=>({title:f,content:C}))),X.length>0&&i.includes("promptPartials")&&(_["prompt-partials"]=X.map(({title:f,content:C})=>({title:f,content:C}))),oe.length>0&&i.includes("promptGroups")&&(_["prompt-groups"]=oe.map(({title:f,description:C,prompts:P})=>({title:f,description:C,prompts:P.map(({title:S})=>S)}))),pt.length>0&&i.includes("teams")&&(_.teams=pt.map(({name:f,description:C,ssoDepartment:P,ssoGroup:S,ssoTitle:E,users:w,scopes:$})=>({name:f,description:C,"sso-department":P||void 0,"sso-group":S||void 0,"sso-title":E||void 0,users:w.map(({email:b})=>b),scopes:$.map(({name:b})=>b)}))),d.length>0&&i.includes("dataSubjects")&&(_["data-subjects"]=d.map(({type:f,title:C,active:P,adminDashboardDefaultSilentMode:S,actions:E})=>({type:f,title:C?.defaultMessage,active:P,adminDashboardDefaultSilentMode:S,actions:E.map(({type:w})=>w)}))),Fe.length>0&&(_.policies=Fe.map(({title:f,versions:C,disabledLocales:P})=>({title:f?.defaultMessage,content:C?.[0]?.content?.defaultMessage,disabledLocales:P}))),Qe.length>0&&(_.messages=Qe.map(({id:f,defaultMessage:C,targetReactIntlId:P,translations:S})=>({id:f,defaultMessage:C,targetReactIntlId:P||void 0,translations:S.reduce((E,{locale:w,value:$})=>Object.assign(E,{[w]:$}),{})}))),ht.length>0){let f=ht[0];_["privacy-center"]={isDisabled:f.isDisabled,showPrivacyRequestButton:f.showPrivacyRequestButton,showPolicies:f.showPolicies,showTrackingTechnologies:f.showTrackingTechnologies,showCookies:f.showCookies,showDataFlows:f.showDataFlows,showConsentManager:f.showConsentManager,showManageYourPrivacy:f.showManageYourPrivacy,showMarketingPreferences:f.showMarketingPreferences,locales:f.locales,defaultLocale:f.defaultLocale,preferBrowserDefaultLocale:f.preferBrowserDefaultLocale,supportEmail:f.supportEmail||void 0,replyToEmail:f.replyToEmail||void 0,useNoReplyEmailAddress:f.useNoReplyEmailAddress,useCustomEmailDomain:f.useCustomEmailDomain,transformAccessReportJsonToCsv:f.transformAccessReportJsonToCsv,theme:f.theme}}if(j.length>0&&i.includes("businessEntities")&&(_["business-entities"]=j.map(({title:f,description:C,address:P,headquarterCountry:S,headquarterSubDivision:E,dataProtectionOfficerName:w,dataProtectionOfficerEmail:$,attributeValues:b})=>({title:f,description:C||void 0,address:P||void 0,headquarterCountry:S||void 0,headquarterSubDivision:E||void 0,dataProtectionOfficerName:w||void 0,dataProtectionOfficerEmail:$||void 0,attributes:b!==void 0&&b.length>0?ce(b):void 0}))),A.length>0&&i.includes("actions")&&(_.actions=A.map(({type:f,skipSecondaryIfNoFiles:C,skipDownloadableStep:P,requiresReview:S,regionList:E,regionDetectionMethod:w,waitingPeriod:$})=>({type:f,...f===sa.Erasure?{skipSecondaryIfNoFiles:C,skipDownloadableStep:P}:{},requiresReview:S,waitingPeriod:$,regionDetectionMethod:w,regionList:E.length>0?E:void 0}))),Q.length>0&&i.includes("identifiers")&&(_.identifiers=Q.map(({name:f,type:C,regex:P,selectOptions:S,privacyCenterVisibility:E,isRequiredInForm:w,placeholder:$,displayTitle:b,dataSubjects:q,displayDescription:v,displayOrder:K})=>({name:f,type:C,regex:P,selectOptions:S.length>0?S:void 0,privacyCenterVisibility:E.length>0?E:void 0,isRequiredInForm:w,placeholder:$||void 0,dataSubjects:q.length>0?q.map(({type:U})=>U):void 0,displayTitle:b?.defaultMessage,displayDescription:v?.defaultMessage,displayOrder:K}))),Re.length>0&&i.includes("agents")&&(_.agents=Re.map(({name:f,agentId:C,description:P,instructions:S,codeInterpreterEnabled:E,retrievalEnabled:w,prompt:$,largeLanguageModel:b,teams:q,owners:v,agentFunctions:K,agentFiles:U})=>({name:f,agentId:C,description:P||void 0,instructions:S,codeInterpreterEnabled:E,retrievalEnabled:w,prompt:$?.title,"large-language-model":{name:b.name,client:b.client},teams:q&&q.length>0?q.map(({name:O})=>O):void 0,owners:v&&v.length>0?v.map(({email:O})=>O):void 0,"agent-functions":K&&K.length>0?K.map(({name:O})=>O):void 0,"agent-files":U&&U.length>0?U.map(({name:O})=>O):void 0}))),st.length>0&&i.includes("actionItems")&&(_["action-items"]=st.map(({teams:f,users:C,customerExperienceActionItemIds:[P],dueDate:S,priority:E,resolved:w,collections:$,notes:b,link:q,title:v,type:K,attributeValues:U})=>({teams:f.map(({name:O})=>O),users:C.map(({email:O})=>O),dueDate:S||void 0,title:v,notes:b,customerExperienceActionItemId:P,collections:$.map(({title:O})=>O),link:q,priority:E||void 0,resolved:w,type:K,attributes:U!==void 0&&U.length>0?ce(U):void 0}))),at.length>0&&i.includes("actionItemCollections")&&(_["action-item-collections"]=at.map(({title:f,description:C,hidden:P,productLine:S})=>({title:f,description:C||void 0,hidden:P,productLine:S}))),we.length>0&&i.includes("agentFunctions")&&(_["agent-functions"]=we.map(({name:f,description:C,parameters:P})=>({name:f,description:C,parameters:JSON.stringify(P)}))),ke.length>0&&i.includes("agentFiles")&&(_["agent-files"]=ke.map(({name:f,description:C,fileId:P,size:S,purpose:E})=>({name:f,description:C,fileId:P,size:S,purpose:E}))),$e.length>0&&i.includes("vendors")&&(_.vendors=$e.map(({title:f,description:C,dataProcessingAgreementLink:P,contactName:S,contactPhone:E,address:w,headquarterCountry:$,headquarterSubDivision:b,websiteUrl:q,businessEntity:v,teams:K,owners:U,attributeValues:O})=>({title:f,description:C||void 0,dataProcessingAgreementLink:P||void 0,contactName:S||void 0,contactPhone:E||void 0,address:w||void 0,headquarterCountry:$||void 0,headquarterSubDivision:b||void 0,websiteUrl:q||void 0,businessEntity:v?.title,teams:K&&K.length>0?K.map(({name:z})=>z):void 0,owners:U&&U.length>0?U.map(({email:z})=>z):void 0,attributes:O!==void 0&&O.length>0?ce(O):void 0}))),se.length>0&&i.includes("dataCategories")&&(_["data-categories"]=se.map(({name:f,category:C,description:P,regex:S,owners:E,teams:w,attributeValues:$})=>({name:f,category:C,description:P||void 0,regex:S||void 0,owners:E&&E.length>0?E.map(({email:b})=>b):void 0,teams:w&&w.length>0?w.map(({name:b})=>b):void 0,attributes:$!==void 0&&$.length>0?ce($):void 0}))),ot.length>0&&i.includes("processingPurposes")&&(_["processing-purposes"]=ot.map(({name:f,purpose:C,description:P,owners:S,teams:E,attributeValues:w})=>({name:f,purpose:C,description:P||void 0,owners:S&&S.length>0?S.map(({email:$})=>$):void 0,teams:E&&E.length>0?E.map(({name:$})=>$):void 0,attributes:w!==void 0&&w.length>0?ce(w):void 0}))),I.length>0&&i.includes("dataFlows")&&(_["data-flows"]=I.map(({value:f,type:C,description:P,trackingType:S,service:E,status:w,owners:$,teams:b,attributeValues:q})=>({value:f,type:C,description:P||void 0,trackingPurposes:S,status:w,service:E?.integrationName,owners:$.map(({email:v})=>v),teams:b.map(({name:v})=>v),attributes:q!==void 0&&q.length>0?ce(q):void 0}))),B.length>0&&i.includes("cookies")&&(_.cookies=B.map(({name:f,isRegex:C,description:P,trackingPurposes:S,service:E,status:w,owners:$,teams:b,attributeValues:q})=>({name:f,isRegex:C,description:P||void 0,trackingPurposes:S,status:w,service:E?.integrationName,owners:$.map(({email:v})=>v),teams:b.map(({name:v})=>v),attributes:q!==void 0&&q.length>0?ce(q):void 0}))),H.length>0&&i.includes("customFields")&&(_.attributes=H.map(({description:f,name:C,type:P,values:S,enabledOn:E=[]})=>({description:f||void 0,resources:E,name:C,type:P,values:S.map(({name:w,color:$,description:b})=>({name:w,color:$||void 0,description:b}))}))),ee.length>0&&(_.purposes=ee.map(({name:f,description:C,trackingType:P,defaultConsent:S,configurable:E,showInConsentManager:w,isActive:$,displayOrder:b,optOutSignals:q,authLevel:v,topics:K,showInPrivacyCenter:U,title:O})=>({name:f,title:O,description:C||void 0,trackingType:P,"default-consent":S,configurable:E,"show-in-consent-manager":w,"show-in-privacy-center":U,"is-active":$,"display-order":b,"opt-out-signals":q.length>0?q:void 0,"auth-level":v||void 0,"preference-topics":K.map(({title:z,type:be,displayDescription:_e,defaultConfiguration:Ge,showInPrivacyCenter:ve,preferenceOptionValues:xe})=>({title:z.defaultMessage,type:be,description:_e.defaultMessage,"default-configuration":Ge,"show-in-privacy-center":ve,...xe.length>0?{options:xe.map(({title:ae,slug:he})=>({title:ae.defaultMessage,slug:he}))}:{}}))}))),e.length===0&&G.length>0&&i.includes("templates")&&(_.templates=G.map(({title:f})=>({title:f}))),h.length>0&&i.includes("enrichers")&&(_.enrichers=h.map(({title:f,url:C,type:P,inputIdentifier:S,identifiers:E,actions:w,testRegex:$,dataSubjects:b,expirationDuration:q,lookerQueryTitle:v,transitionRequestStatus:K,phoneNumbers:U,regionList:O})=>({title:f,url:C||void 0,type:P,"input-identifier":S?.name,"output-identifiers":E.map(({name:z})=>z),"privacy-actions":Object.values(sa).length===w.length?void 0:w,testRegex:$||void 0,lookerQueryTitle:v||void 0,expirationDuration:parseInt(q,10),transitionRequestStatus:K||void 0,phoneNumbers:U&&U.length>0?U:void 0,regionList:O&&O.length>0?O:void 0,"data-subjects":b.map(({type:z})=>z)}))),g.length>0&&i.includes("dataSilos")){let f=aa(d,"type");_["data-silos"]=g.map(([{title:C,description:P,url:S,type:E,outerType:w,apiKeys:$,notifyEmailAddress:b,identifiers:q,dependentDataSilos:v,owners:K,country:U,countrySubDivision:O,teams:z,subjectBlocklist:be,isLive:_e,promptAVendorEmailSendFrequency:Ge,promptAVendorEmailSendType:ve,promptAVendorEmailIncludeIdentifiersAttachment:xe,promptAVendorEmailCompletionLinkType:ae,manualWorkRetryFrequency:he,catalog:ct,attributeValues:qe,discoveredBy:J,businessEntities:me},ne])=>({title:C,description:P,integrationName:E,"outer-type":w||void 0,url:S||void 0,"api-key-title":$[0]?.title,"identity-keys":q.filter(({isConnected:R})=>R).map(({name:R})=>R),...v.length>0?{"deletion-dependencies":v.map(({title:R})=>R)}:{},...K.length>0?{owners:K.map(({email:R})=>R)}:{},...z.length>0?{teams:z.map(({name:R})=>R)}:{},...J.length>0?{discoveredBy:J.map(({title:R})=>R)}:{},...me.length>0?{businessEntities:me.map(({title:R})=>R)}:{},country:U||void 0,countrySubDivision:O||void 0,disabled:!_e,"data-subjects":be.length>0?ls(be.map(({type:R})=>R),f):void 0,...ct.hasAvcFunctionality?{"email-settings":{"notify-email-address":b||void 0,"send-frequency":Ge,"send-type":ve,"include-identifiers-attachment":xe,"completion-link-type":ae,"manual-work-retry-frequency":he}}:{},attributes:qe!==void 0&&qe.length>0?ce(qe):void 0,datapoints:ne.map(R=>({key:R.name,title:R.title?.defaultMessage,description:R.description?.defaultMessage,owners:R.owners.map(({email:x})=>x),teams:R.teams.map(({name:x})=>x),...R.path.length>0?{path:R.path}:{},...R.dataCollection?.title?{"data-collection-tag":R.dataCollection.title.defaultMessage}:{},...R.dbIntegrationQueries.length>0?{"privacy-action-queries":Fl(aa(R.dbIntegrationQueries,"requestType"),x=>x.suggestedQuery||x.query||void 0)}:{},...R.subDataPoints.length>0?{fields:R.subDataPoints.map(x=>({key:x.name,description:x.description,purposes:x.purposes,categories:x.categories,...l&&x.pendingCategoryGuesses?{"guessed-categories":x.pendingCategoryGuesses.filter(Y=>Y.status==="PENDING").map(Y=>({category:{name:Y.category.name,category:Y.category.category},status:Y.status,confidence:Y.confidence,classifierVersion:Y.classifierVersion||void 0}))}:{},"access-request-visibility-enabled":x.accessRequestVisibilityEnabled,"erasure-request-redaction-enabled":x.erasureRequestRedactionEnabled,attributes:x.attributeValues!==void 0&&x.attributeValues.length>0?ce(x.attributeValues):void 0})).sort((x,Y)=>x.key.localeCompare(Y.key))}:{},"privacy-actions":R.actionSettings.filter(({active:x})=>x).map(({type:x})=>x)})).sort((R,x)=>[...R.path??[],R.key].join(".").localeCompare([...x.path??[],x.key].join(".")))}))}return _}import Ce from"colors";import{chunk as Kl,keyBy as Vl}from"lodash-es";var ei=20;async function pa(t){let e=[],n=0,r=!1;do{let{softwareDevelopmentKits:{nodes:i}}=await p(t,Yi,{first:ei,offset:n});e.push(...i),n+=ei,r=i.length===ei}while(r);return e.sort((i,s)=>i.name.localeCompare(s.name))}var jl=100;async function Yl(t,e){let{createSoftwareDevelopmentKit:{softwareDevelopmentKit:n}}=await p(t,Hi,{input:e});return a.info(Ce.green(`Successfully created software development kit "${e.name}"!`)),n}async function Zl(t,e){let{updateSoftwareDevelopmentKits:{softwareDevelopmentKits:n}}=await p(t,Zi,{input:{softwareDevelopmentKits:e}});return a.info(Ce.green(`Successfully updated ${e.length} software development kits!`)),n}async function la(t,e,n=20){let r=!1,i=[];a.info(Ce.magenta("Syncing software development kits..."));let s=await pa(t),o=Vl(s,({name:m,codePackageType:g})=>JSON.stringify({name:m,codePackageType:g})),l=e.map(m=>[m,o[JSON.stringify({name:m.name,codePackageType:m.codePackageType})]?.id]),u=l.filter(([,m])=>!m).map(([m])=>m);try{a.info(Ce.magenta(`Creating "${u.length}" new software development kits...`)),await M(u,async m=>{let g=await Yl(t,m);i.push(g)},{concurrency:n}),a.info(Ce.green(`Successfully synced ${u.length} software development kits!`))}catch(m){r=!0,a.info(Ce.red(`Failed to create software development kits! - ${m.message}`))}let c=l.filter(m=>!!m[1]),d=Kl(c,jl);return a.info(Ce.magenta(`Updating "${c.length}" software development kits...`)),await T(d,async m=>{try{let g=await Zl(t,m.map(([{codePackageType:h,...I},B])=>({...I,id:B})));i.push(...g),a.info(Ce.green(`Successfully updated "${c.length}" software development kits!`))}catch(g){r=!0,a.info(Ce.red(`Failed to update software development kits! - ${g.message}`))}a.info(Ce.green(`Synced "${e.length}" software development kits!`))}),{softwareDevelopmentKits:i,success:!r}}import Te from"colors";import{chunk as Hl,keyBy as Wl}from"lodash-es";var ti=20;async function ca(t){let e=[],n=0,r=!1;do{let{repositories:{nodes:i}}=await p(t,_i,{first:ti,offset:n});e.push(...i),n+=ti,r=i.length===ti}while(r);return e.sort((i,s)=>i.name.localeCompare(s.name))}var zl=100;async function Jl(t,e){let{createRepository:{repository:n}}=await p(t,vi,{input:e});return a.info(Te.green(`Successfully created repository "${e.name}"!`)),n}async function Xl(t,e){let{updateRepositories:{repositories:n}}=await p(t,Gi,{input:{repositories:e}});return a.info(Te.green(`Successfully updated ${e.length} repositories!`)),n}async function ma(t,e,n=20){let r=!1,i=[],s=await ca(t),o=Wl(s,"name"),l=e.map(m=>[m,o[m.name]?.id]),u=l.filter(([,m])=>!m).map(([m])=>m);try{a.info(Te.magenta(`Creating "${u.length}" new repositories...`)),await M(u,async m=>{let g=await Jl(t,m);i.push(g)},{concurrency:n}),a.info(Te.green(`Successfully synced ${u.length} repositories!`))}catch(m){r=!0,a.info(Te.red(`Failed to create repositories! - ${m.message}`))}let c=l.filter(m=>!!m[1]),d=Hl(c,zl);return a.info(Te.magenta(`Updating "${c.length}" repositories...`)),await T(d,async m=>{try{let g=await Xl(t,m.map(([h,I])=>({...h,id:I})));i.push(...g),a.info(Te.green(`Successfully updated "${c.length}" repositories!`))}catch(g){r=!0,a.info(Te.red(`Failed to update repositories! - ${g.message}`))}a.info(Te.green(`Synced "${e.length}" repositories!`))}),{repositories:i,success:!r}}import{chunk as ec,uniq as da,keyBy as fa,uniqBy as ga}from"lodash-es";import Pe from"colors";var ni=20;async function ua(t){let e=[],n=0,r=!1;do{let{codePackages:{nodes:i}}=await p(t,Wi,{first:ni,offset:n});e.push(...i),n+=ni,r=i.length===ni}while(r);return e.sort((i,s)=>i.name.localeCompare(s.name))}var tc=100,it="%%%%";async function nc(t,e){let{createCodePackage:{codePackage:n}}=await p(t,Ji,{input:e});return a.info(Pe.green(`Successfully created code package "${e.name}"!`)),n}async function ic(t,e){let{updateCodePackages:{codePackages:n}}=await p(t,zi,{input:{codePackages:e}});return a.info(Pe.green(`Successfully updated ${e.length} code packages!`)),n}async function cP(t,e,n=20){let r=!1,[i,{softwareDevelopmentKits:s}]=await Promise.all([ua(t),la(t,ga(e.map(({type:g,softwareDevelopmentKits:h=[]})=>h.map(({name:I})=>({name:I,codePackageType:g}))).flat(),({name:g,codePackageType:h})=>`${g}${it}${h}`),n),ma(t,ga(e,"repositoryName").map(({repositoryName:g})=>({name:g,url:`https://github.com/${g}`})))]),o=fa(s,({name:g,codePackageType:h})=>`${g}${it}${h}`),l=fa(i,({name:g,type:h})=>`${g}${it}${h}`),u=e.map(g=>[g,l[`${g.name}${it}${g.type}`]?.id]),c=u.filter(([,g])=>!g).map(([g])=>g);try{a.info(Pe.magenta(`Creating "${c.length}" new code packages...`)),await M(c,async({softwareDevelopmentKits:g,...h})=>{await nc(t,{...h,...g?{softwareDevelopmentKitIds:da(g.map(({name:I})=>{let B=o[`${I}${it}${h.type}`];if(!B)throw new Error(`Failed to find SDK with name: "${I}"`);return B.id}))}:{}})},{concurrency:n}),a.info(Pe.green(`Successfully synced ${c.length} code packages!`))}catch(g){r=!0,a.info(Pe.red(`Failed to create code packages! - ${g.message}`))}let d=u.filter(g=>!!g[1]);a.info(Pe.magenta(`Updating "${d.length}" code packages...`));let m=ec(d,tc);return await T(m,async g=>{try{await ic(t,g.map(([{softwareDevelopmentKits:h,repositoryName:I,...B},H])=>({...B,...h?{softwareDevelopmentKitIds:da(h.map(({name:G})=>{let Q=o[`${G}${it}${B.type}`];if(!Q)throw new Error(`Failed to find SDK with name: "${G}"`);return Q.id}))}:{},id:H}))),a.info(Pe.green(`Successfully updated "${g.length}" code packages!`))}catch(h){r=!0,a.info(Pe.red(`Failed to update code packages! - ${h.message}`))}}),a.info(Pe.green(`Synced "${e.length}" code packages!`)),!r}import{chunk as rc}from"lodash-es";var oc=1e3;async function yP(t,e,n){let r=rc(n,oc);await T(r,async i=>{await p(t,Ui,{pluginId:e,rawResults:i})})}var ii=100;async function sc(t){let e=[],n=0,r=!1;do{let{catalogs:{nodes:i}}=await p(t,Ei,{first:ii,offset:n});e.push(...i),n+=ii,r=i.length===ii}while(r);return e.sort((i,s)=>i.integrationName.localeCompare(s.integrationName))}async function AP(t){let e=await sc(t),n=e.reduce((i,s)=>Object.assign(i,{[s.integrationName]:s.title}),{}),r=e.reduce((i,s)=>Object.assign(i,{[s.integrationName]:s.hasApiFunctionality}),{});return{catalogs:e,serviceToTitle:n,serviceToSupportedIntegration:r}}import{GraphQLClient as ac}from"graphql-request";function pc(t,e){return new ac(`${t}/graphql`,{headers:{...e,version:di}})}function ya(t,e){return pc(t,{Authorization:`Bearer ${e}`})}import lc from"got";async function DP(t,e,n){let r=ya(t,e),{organization:i}=await p(r,Vi);return lc.extend({prefixUrl:i.sombra.customerUrl,headers:{Authorization:`Bearer ${e}`,...n?{"X-Sombra-Authorization":`Bearer ${n}`}:{}}})}async function GP(t,e){await p(t,jr,{input:e})}async function NP(t,e){await p(t,pr,{requestEnricherId:e})}var ri=20;async function QP(t,e){let n=[],r=0,i=!1;do{let{promptThreads:{nodes:s}}=await p(t,Xi,{first:ri,offset:r,filterBy:e});n.push(...s),r+=ri,i=s.length===ri}while(i);return n.sort((s,o)=>s.threadId.localeCompare(o.threadId))}var oi=50;async function jP(t,{requestId:e}){let n=[],r=0,i=!1;do{let{requestIdentifiers:{nodes:s}}=await p(t,Dr,{first:oi,offset:r,requestIds:[e]});n.push(...s),r+=oi,i=s.length===oi}while(i);return n}async function WP(t,{dataSiloId:e}){let{listReducedRequestsForDataSilo:{totalCount:n}}=await p(t,Rr,{input:{dataSiloId:e,isResolved:!1}});return n}var si=20;async function eS(t){let e=[],n=0,r=!1;do{let{attributeKeys:{nodes:i}}=await p(t,ji,{first:si,offset:n});e.push(...i),n+=si,r=i.length===si}while(r);return e.sort((i,s)=>i.name.localeCompare(s.name))}import Kt from"colors";import*as D from"io-ts";import Ca from"cli-progress";import{valuesOf as rt}from"@transcend-io/type-utils";import{RequestAction as cc,RequestOrigin as mc,RequestStatus as uc,IsoCountryCode as dc,IsoCountrySubdivisionCode as fc}from"@transcend-io/privacy-types";import{LanguageKey as gc}from"@transcend-io/internationalization";var cS=D.intersection([D.type({id:D.string,createdAt:D.string,email:D.string,type:rt(cc),link:D.string,isSilent:D.boolean,origin:rt(mc),isTest:D.boolean,coreIdentifier:D.string,details:D.string,locale:rt(gc),status:rt(uc),subjectType:D.string,country:D.union([D.null,rt(dc)]),countrySubDivision:D.union([D.null,rt(fc)]),attributeValues:D.array(D.type({id:D.string,attributeKey:D.type({name:D.string,id:D.string}),name:D.string}))}),D.partial({daysRemaining:D.union([D.null,D.number])})]),Vt=50;async function mS(t,{actions:e=[],statuses:n=[],origins:r=[],text:i,createdAtBefore:s,createdAtAfter:o,isTest:l,isSilent:u,isClosed:c,requestIds:d=[]}={}){a.info(Kt.magenta("Fetching requests..."));let m=new Date().getTime(),g=new Ca.SingleBar({},Ca.Presets.shades_classic),h=[],I=0,B=!1;do{let{requests:{nodes:A,totalCount:j}}=await p(t,ir,{first:Vt,offset:I,filterBy:{text:i,type:e.length>0?e:void 0,status:n.length>0?n:void 0,origin:r.length>0?r:void 0,isTest:l,isSilent:u,isClosed:c,createdAtBefore:s?s.toISOString():void 0,createdAtAfter:o?o.toISOString():void 0}});I===0&&j>Vt&&(a.info(Kt.magenta(`Fetching ${j} requests`)),g.start(j,0)),h.push(...A),I+=Vt,g.update(I),B=A.length===Vt}while(B);g.stop();let G=new Date().getTime()-m;a.info(Kt.green(`Completed fetching of ${h.length} request in "${G/1e3}" seconds.`));let Q=h;return d&&d.length>0&&(Q=Q.filter(A=>d.includes(A.id)),a.info(Kt.green(`Filtered down to ${Q.length} requests based on ${d.length} provided IDs.`))),Q}import{IdentifierType as yc}from"@transcend-io/privacy-types";import{decodeCodec as Cc,valuesOf as hc}from"@transcend-io/type-utils";import*as Se from"io-ts";import Ic from"semver";var ha="7.180",Ac=Se.type({id:Se.string,name:Se.string,value:Se.string,type:hc(yc)}),ai=50,Tc=Se.type({identifiers:Se.array(Ac)});async function hS(t,e,{requestId:n}){let r=[],i=0,s=!1,{organization:{sombra:{version:o}}}=await p(t,Xo);if(o&&Ic.lt(o,ha))throw new Error(`Please upgrade Sombra to ${ha} or greater to use this command.`);do{let l;try{l=await e.post("v1/request-identifiers",{json:{first:ai,offset:i,requestId:n}}).json()}catch(c){throw new Error(`Failed to fetch request identifiers: ${c?.response?.body||c?.message}`)}let{identifiers:u}=Cc(Tc,l);r.push(...u),i+=ai,s=u.length===ai}while(s);return r}var pi=50;async function PS(t,{requestId:e}){let n=[],r=0,i=!1;do{let{requestEnrichers:{nodes:s}}=await p(t,ar,{first:pi,offset:r,requestId:e});n.push(...s),r+=pi,i=s.length===pi}while(i);return n}import Ia from"colors";import Aa from"cli-progress";var jt=100;async function Pc(t,{requestId:e,dataSiloId:n,requestStatuses:r,statuses:i,skipLog:s=!1}){let o=new Date().getTime(),l=new Aa.SingleBar({},Aa.Presets.shades_classic),u=[],c=0,d=!1;do{let{requestDataSilos:{nodes:h,totalCount:I}}=await p(t,Er,{first:jt,offset:c,filterBy:{dataSiloId:n,requestId:e,status:i,requestStatus:r}});u.push(...h),c===0&&I>jt&&(a.info(Ia.magenta(`Fetching ${I} requests`)),l.start(I,0)),c+=jt,d=h.length===jt,l.update(c)}while(d);l.stop();let g=new Date().getTime()-o;return s||a.info(Ia.green(`Completed fetching of ${u.length} request data silos in "${g/1e3}" seconds.`)),u}async function xS(t,{requestId:e,dataSiloId:n}){let r=await Pc(t,{requestId:e,dataSiloId:n,skipLog:!0});if(r.length!==1)throw new Error(`Failed to find RequestDataSilo with requestId:${e},dataSiloId:${n}`);return r[0]}import Sc from"got";function _S(t){return Sc.extend({prefixUrl:t})}async function OS(t,{email:e,password:n}){let{determineLoginMethod:{loginMethod:r}}=await p(t,pn,{email:e}),i=await t.rawRequest(_o,{email:e,password:n,publicKey:r.sombraPublicKey}),{login:{user:s}}=i.data,o=i.headers.get("set-cookie");if(!o||!o.includes("laravel"))throw new Error("Failed to get login cookie in response");return{roles:s.roles,loginCookie:o}}async function NS(t,{email:e,roleId:n}){let{determineLoginMethod:{loginMethod:r}}=await p(t,pn,{email:e,userId:n});await t.rawRequest(Go,{id:n,publicKey:r.sombraPublicKey})}var li=20;async function QS(t){let e=[],n=0,r=!1;do{let{users:{nodes:i}}=await p(t,Lr,{first:li,offset:n});e.push(...i),n+=li,r=i.length===li}while(r);return e.sort((i,s)=>i.email.localeCompare(s.email))}async function jS(t,e){let{createApiKey:{apiKey:n}}=await p(t,Oi,{input:e});return n}async function YS(t,e){await p(t,Ni,{id:e})}var ci=20;async function zS(t,e){let n=[],r=0,i=!1;do{let{requestFiles:{nodes:s}}=await p(t,kr,{first:ci,offset:r,filterBy:e});n.push(...s),r+=ci,i=s.length===ci}while(i);return n.sort((s,o)=>s.remoteId.localeCompare(o.remoteId))}async function tE(t,{id:e,bundleType:n}){await p(t,so,{airgapBundleId:e,bundleType:n})}async function nE(t,{id:e,bundleType:n}){await p(t,oo,{airgapBundleId:e,bundleType:n})}async function sE(t,e){let{reportPromptRun:{promptRun:n}}=await p(t,Gr,{input:{...e,promptRunMessages:e.promptRunMessages.map(({content:r,...i})=>({...i,message:r}))}});return n.id}async function cE(t,{promptRunId:e,promptRunMessages:n=[],...r}){let{addMessagesToPromptRun:{promptRun:i}}=await p(t,vr,{input:{...r,...e,promptRunMessages:n.map(({content:s,...o})=>({...o,message:s}))}});return i.id}export{T as a,M as b,fi as c,wc as d,gi as e,$c as f,yi as g,Ci as h,bc as i,Lc as j,hi as k,Gc as l,Ii as m,Ht as n,Ai as o,Ti as p,Oc as q,Pi as r,Si as s,Ei as t,Ri as u,wi as v,$i as w,bi as x,xi as y,Di as z,Li as A,ki as B,_i as C,Gi as D,vi as E,qi as F,Oi as G,Ni as H,Ui as I,Fi as J,Bi as K,Ki as L,Vi as M,ji as N,Yi as O,Zi as P,Hi as Q,Wi as R,zi as S,Ji as T,Xi as U,tr as V,nr as W,ir as X,um as Y,dm as Z,fm as _,gm as $,or as aa,sr as ba,ar as ca,pr as da,Am as ea,tn as fa,cr as ga,Sm as ha,mr as ia,ur as ja,dr as ka,fr as la,gr as ma,yr as na,Cr as oa,hr as pa,Ir as qa,Ar as ra,Tr as sa,Pr as ta,Sr as ua,Er as va,vm as wa,qm as xa,Rr as ya,wr as za,$r as Aa,br as Ba,Fm as Ca,Dr as Da,Lr as Ea,kr as Fa,Gr as Ga,vr as Ha,qr as Ia,Or as Ja,Nr as Ka,Mr as La,Ur as Ma,Fr as Na,Qr as Oa,Br as Pa,Kr as Qa,Vr as Ra,jr as Sa,Yr as Ta,Zr as Ua,Hr as Va,Wr as Wa,zr as Xa,Jr as Ya,Xr as Za,eo as _a,to as $a,no as ab,io as bb,ro as cb,oo as db,so as eb,ao as fb,po as gb,lo as hb,co as ib,mo as jb,uo as kb,fo as lb,go as mb,yo as nb,Co as ob,ho as pb,Io as qb,Ao as rb,To as sb,Po as tb,Eo as ub,Ro as vb,wo as wb,$o as xb,bo as yb,xo as zb,Do as Ab,Lo as Bb,ko as Cb,pn as Db,_o as Eb,Go as Fb,fu as Gb,vo as Hb,qo as Ib,Oo as Jb,No as Kb,Mo as Lb,Uo as Mb,Fo as Nb,Qo as Ob,Bo as Pb,Ko as Qb,Vo as Rb,jo as Sb,Yo as Tb,Zo as Ub,Ho as Vb,Wo as Wb,zo as Xb,Jo as Yb,Xo as Zb,p as _b,hn as $b,ts as ac,ns as bc,An as cc,rs as dc,os as ec,dt as fc,as as gc,ps as hc,ls as ic,ms as jc,mp as kc,up as lc,us as mc,ds as nc,fs as oc,gs as pc,ie as qc,Et as rc,dp as sc,Af as tc,ys as uc,yp as vc,Cs as wc,wt as xc,hs as yc,Tp as zc,$t as Ac,Be as Bc,Kf as Cc,Sp as Dc,Ep as Ec,As as Fc,ft as Gc,Ke as Hc,bt as Ic,bp as Jc,Ts as Kc,Lp as Lc,Ps as Mc,Ss as Nc,gt as Oc,Rs as Pc,Lt as Qc,vp as Rc,xs as Sc,qp as Tc,Op as Uc,je as Vc,kt as Wc,Up as Xc,Fp as Yc,ks as Zc,Ze as _c,Qp as $c,Bp as ad,Os as bd,Ns as cd,vn as dd,Ms as ed,_t as fd,Gt as gd,vt as hd,qt as id,Hp as jd,Wp as kd,Us as ld,Jp as md,Xp as nd,Fs as od,Ot as pd,nl as qd,il as rd,Bs as sd,Mt as td,sl as ud,al as vd,Ks as wd,Ut as xd,ll as yd,cl as zd,Vs as Ad,Ft as Bd,ul as Cd,dl as Dd,js as Ed,Qt as Fd,gl as Gd,yl as Hd,Ys as Id,Bt as Jd,hl as Kd,Il as Ld,Zs as Md,zI as Nd,nA as Od,Xs as Pd,ea as Qd,Yn as Rd,ta as Sd,na as Td,ia as Ud,_l as Vd,Gl as Wd,zn as Xd,Nl as Yd,Jn as Zd,ra as _d,oa as $d,Bl as ae,RT as be,Yl as ce,Zl as de,la as ee,Jl as fe,Xl as ge,ma as he,nc as ie,ic as je,cP as ke,yP as le,sc as me,AP as ne,pc as oe,ya as pe,DP as qe,GP as re,NP as se,QP as te,jP as ue,WP as ve,eS as we,cS as xe,mS as ye,Tc as ze,hS as Ae,PS as Be,Pc as Ce,xS as De,_S as Ee,OS as Fe,NS as Ge,QS as He,jS as Ie,YS as Je,zS as Ke,tE as Le,nE as Me,sE as Ne,cE as Oe};
2831
+ //# sourceMappingURL=chunk-MK5T6DBK.js.map