@transcend-io/cli 8.0.0 → 8.0.2

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