@transcend-io/cli 7.0.3 → 7.0.4
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.
- package/dist/bin/bash-complete.cjs +1 -1
- package/dist/bin/cli.cjs +1 -1
- package/dist/bin/deprecated-command.cjs +2 -2
- package/dist/{chunk-T66BMKXU.cjs → chunk-3ZKZCSGD.cjs} +157 -140
- package/dist/chunk-3ZKZCSGD.cjs.map +1 -0
- package/dist/{chunk-LD6RM4JJ.cjs → chunk-6DWFLWWT.cjs} +2 -2
- package/dist/{chunk-LD6RM4JJ.cjs.map → chunk-6DWFLWWT.cjs.map} +1 -1
- package/dist/{chunk-6VV64JQD.cjs → chunk-6FGYCQAQ.cjs} +2 -2
- package/dist/{chunk-6VV64JQD.cjs.map → chunk-6FGYCQAQ.cjs.map} +1 -1
- package/dist/{chunk-3L4DLV6F.cjs → chunk-BF5T3SGE.cjs} +2 -2
- package/dist/{chunk-3L4DLV6F.cjs.map → chunk-BF5T3SGE.cjs.map} +1 -1
- package/dist/{chunk-DM7WURT2.cjs → chunk-E3CF3RKX.cjs} +2 -2
- package/dist/{chunk-DM7WURT2.cjs.map → chunk-E3CF3RKX.cjs.map} +1 -1
- package/dist/{chunk-VBCQ7F34.cjs → chunk-EVZLUL56.cjs} +4 -4
- package/dist/{chunk-VBCQ7F34.cjs.map → chunk-EVZLUL56.cjs.map} +1 -1
- package/dist/{chunk-GF4AD4KW.cjs → chunk-FPXWBUHS.cjs} +2 -2
- package/dist/{chunk-GF4AD4KW.cjs.map → chunk-FPXWBUHS.cjs.map} +1 -1
- package/dist/{chunk-A57ZB6XS.cjs → chunk-G2T7YVBG.cjs} +19 -19
- package/dist/{chunk-A57ZB6XS.cjs.map → chunk-G2T7YVBG.cjs.map} +1 -1
- package/dist/{chunk-MYCE3NIE.cjs → chunk-IG65EYJY.cjs} +2 -2
- package/dist/{chunk-MYCE3NIE.cjs.map → chunk-IG65EYJY.cjs.map} +1 -1
- package/dist/{chunk-WLVJQVRU.cjs → chunk-L7YT5ETS.cjs} +2 -2
- package/dist/{chunk-WLVJQVRU.cjs.map → chunk-L7YT5ETS.cjs.map} +1 -1
- package/dist/{chunk-S27CXPPN.cjs → chunk-R4IKDXM5.cjs} +2 -2
- package/dist/{chunk-S27CXPPN.cjs.map → chunk-R4IKDXM5.cjs.map} +1 -1
- package/dist/{chunk-JQ7LX2L3.cjs → chunk-TS5EYI4O.cjs} +3 -3
- package/dist/{chunk-JQ7LX2L3.cjs.map → chunk-TS5EYI4O.cjs.map} +1 -1
- package/dist/{chunk-DFOLIGJP.cjs → chunk-WIXQSFS6.cjs} +2 -2
- package/dist/{chunk-DFOLIGJP.cjs.map → chunk-WIXQSFS6.cjs.map} +1 -1
- package/dist/chunk-Y4BWTFTX.cjs +15 -0
- package/dist/chunk-Y4BWTFTX.cjs.map +1 -0
- package/dist/{chunk-2DLJ3BDD.cjs → chunk-YA5UZ3YM.cjs} +2 -2
- package/dist/{chunk-2DLJ3BDD.cjs.map → chunk-YA5UZ3YM.cjs.map} +1 -1
- package/dist/impl-2G6FOZLU.cjs +2 -0
- package/dist/{impl-IVH7T3MG.cjs.map → impl-2G6FOZLU.cjs.map} +1 -1
- package/dist/{impl-CTN3RH3H.cjs → impl-4EDFESYC.cjs} +2 -2
- package/dist/{impl-CTN3RH3H.cjs.map → impl-4EDFESYC.cjs.map} +1 -1
- package/dist/{impl-XSP2L4A3.cjs → impl-5FO2QEHJ.cjs} +2 -2
- package/dist/{impl-XSP2L4A3.cjs.map → impl-5FO2QEHJ.cjs.map} +1 -1
- package/dist/{impl-LEPYMCRL.cjs → impl-6B7JDOM5.cjs} +2 -2
- package/dist/{impl-LEPYMCRL.cjs.map → impl-6B7JDOM5.cjs.map} +1 -1
- package/dist/impl-AUOR6D3Q.cjs +2 -0
- package/dist/{impl-5R7QQLXX.cjs.map → impl-AUOR6D3Q.cjs.map} +1 -1
- package/dist/{impl-45GI5GBX.cjs → impl-B5HQXUMH.cjs} +2 -2
- package/dist/{impl-45GI5GBX.cjs.map → impl-B5HQXUMH.cjs.map} +1 -1
- package/dist/{impl-EJWCZU32.cjs → impl-BNFADMTO.cjs} +2 -2
- package/dist/{impl-EJWCZU32.cjs.map → impl-BNFADMTO.cjs.map} +1 -1
- package/dist/{impl-EHZWLIEN.cjs → impl-BPWMOF4U.cjs} +2 -2
- package/dist/{impl-EHZWLIEN.cjs.map → impl-BPWMOF4U.cjs.map} +1 -1
- package/dist/{impl-LGMUBZ3P.cjs → impl-CNCC36M6.cjs} +5 -5
- package/dist/{impl-LGMUBZ3P.cjs.map → impl-CNCC36M6.cjs.map} +1 -1
- package/dist/{impl-S4J44FBI.cjs → impl-DBDL4Z23.cjs} +2 -2
- package/dist/{impl-S4J44FBI.cjs.map → impl-DBDL4Z23.cjs.map} +1 -1
- package/dist/{impl-I7IZGNDD.cjs → impl-FG47LALL.cjs} +2 -2
- package/dist/{impl-I7IZGNDD.cjs.map → impl-FG47LALL.cjs.map} +1 -1
- package/dist/{impl-BJNS6ODX.cjs → impl-GNB7TDFU.cjs} +2 -2
- package/dist/{impl-BJNS6ODX.cjs.map → impl-GNB7TDFU.cjs.map} +1 -1
- package/dist/{impl-O72S3ARJ.cjs → impl-HB3R7YDP.cjs} +2 -2
- package/dist/{impl-O72S3ARJ.cjs.map → impl-HB3R7YDP.cjs.map} +1 -1
- package/dist/{impl-4CKKKZSW.cjs → impl-ICI7EQKE.cjs} +2 -2
- package/dist/{impl-4CKKKZSW.cjs.map → impl-ICI7EQKE.cjs.map} +1 -1
- package/dist/impl-KOMGU55G.cjs +2 -0
- package/dist/{impl-PBCOYUN3.cjs.map → impl-KOMGU55G.cjs.map} +1 -1
- package/dist/{impl-U7KRGFYL.cjs → impl-KP27234L.cjs} +2 -2
- package/dist/{impl-U7KRGFYL.cjs.map → impl-KP27234L.cjs.map} +1 -1
- package/dist/{impl-4JIOV3X6.cjs → impl-KZ2L66Q3.cjs} +2 -2
- package/dist/{impl-4JIOV3X6.cjs.map → impl-KZ2L66Q3.cjs.map} +1 -1
- package/dist/{impl-OIRM2C3D.cjs → impl-L3M67IGI.cjs} +4 -4
- package/dist/{impl-OIRM2C3D.cjs.map → impl-L3M67IGI.cjs.map} +1 -1
- package/dist/{impl-P64XABL2.cjs → impl-LTOV5CHF.cjs} +2 -2
- package/dist/{impl-P64XABL2.cjs.map → impl-LTOV5CHF.cjs.map} +1 -1
- package/dist/{impl-OOVHRMYF.cjs → impl-MO6AOGQM.cjs} +2 -2
- package/dist/{impl-OOVHRMYF.cjs.map → impl-MO6AOGQM.cjs.map} +1 -1
- package/dist/{impl-KHC6VQQ3.cjs → impl-MPGDZ2M2.cjs} +6 -6
- package/dist/{impl-KHC6VQQ3.cjs.map → impl-MPGDZ2M2.cjs.map} +1 -1
- package/dist/{impl-HBRGW4FK.cjs → impl-N54C7NPT.cjs} +2 -2
- package/dist/{impl-HBRGW4FK.cjs.map → impl-N54C7NPT.cjs.map} +1 -1
- package/dist/{impl-YST7YAME.cjs → impl-N6ML5K5S.cjs} +2 -2
- package/dist/{impl-YST7YAME.cjs.map → impl-N6ML5K5S.cjs.map} +1 -1
- package/dist/{impl-TSBZWYSU.cjs → impl-NKLZ5RG4.cjs} +2 -2
- package/dist/{impl-TSBZWYSU.cjs.map → impl-NKLZ5RG4.cjs.map} +1 -1
- package/dist/{impl-RBCLAU3L.cjs → impl-NNOWJ4Q4.cjs} +3 -3
- package/dist/{impl-RBCLAU3L.cjs.map → impl-NNOWJ4Q4.cjs.map} +1 -1
- package/dist/{impl-DNQUVLSW.cjs → impl-OLEEHZUA.cjs} +3 -3
- package/dist/{impl-DNQUVLSW.cjs.map → impl-OLEEHZUA.cjs.map} +1 -1
- package/dist/{impl-2WTVQZVH.cjs → impl-Q6EQYFKN.cjs} +2 -2
- package/dist/{impl-2WTVQZVH.cjs.map → impl-Q6EQYFKN.cjs.map} +1 -1
- package/dist/{impl-U5LM6TOR.cjs → impl-QHTG36G3.cjs} +2 -2
- package/dist/{impl-U5LM6TOR.cjs.map → impl-QHTG36G3.cjs.map} +1 -1
- package/dist/{impl-KCK7ESJ2.cjs → impl-QITUCVEV.cjs} +2 -2
- package/dist/{impl-KCK7ESJ2.cjs.map → impl-QITUCVEV.cjs.map} +1 -1
- package/dist/{impl-52VR3GDJ.cjs → impl-R3KCARSP.cjs} +2 -2
- package/dist/{impl-52VR3GDJ.cjs.map → impl-R3KCARSP.cjs.map} +1 -1
- package/dist/{impl-2FABITOO.cjs → impl-RSHVCDLE.cjs} +2 -2
- package/dist/{impl-2FABITOO.cjs.map → impl-RSHVCDLE.cjs.map} +1 -1
- package/dist/impl-SNLQCZOR.cjs +2 -0
- package/dist/impl-SNLQCZOR.cjs.map +1 -0
- package/dist/{impl-LAY6PG5S.cjs → impl-TPVA6DLJ.cjs} +2 -2
- package/dist/{impl-LAY6PG5S.cjs.map → impl-TPVA6DLJ.cjs.map} +1 -1
- package/dist/{impl-OUBX3UFM.cjs → impl-TVNBHOR4.cjs} +2 -2
- package/dist/{impl-OUBX3UFM.cjs.map → impl-TVNBHOR4.cjs.map} +1 -1
- package/dist/{impl-7TE6HP4S.cjs → impl-TWLWQSZG.cjs} +2 -2
- package/dist/{impl-7TE6HP4S.cjs.map → impl-TWLWQSZG.cjs.map} +1 -1
- package/dist/impl-UKOAB6ED.cjs +2 -0
- package/dist/{impl-TIOK6UX4.cjs.map → impl-UKOAB6ED.cjs.map} +1 -1
- package/dist/{impl-CEZKH3XW.cjs → impl-ZKBMWGMK.cjs} +2 -2
- package/dist/{impl-CEZKH3XW.cjs.map → impl-ZKBMWGMK.cjs.map} +1 -1
- package/dist/{impl-4GWAH2JR.cjs → impl-ZTWLYZZO.cjs} +2 -2
- package/dist/{impl-4GWAH2JR.cjs.map → impl-ZTWLYZZO.cjs.map} +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +30 -6
- package/package.json +1 -1
- package/dist/chunk-T66BMKXU.cjs.map +0 -1
- package/dist/chunk-UM5F6R4I.cjs +0 -15
- package/dist/chunk-UM5F6R4I.cjs.map +0 -1
- package/dist/impl-5R7QQLXX.cjs +0 -2
- package/dist/impl-6WSGLEVR.cjs +0 -2
- package/dist/impl-6WSGLEVR.cjs.map +0 -1
- package/dist/impl-IVH7T3MG.cjs +0 -2
- package/dist/impl-PBCOYUN3.cjs +0 -2
- package/dist/impl-TIOK6UX4.cjs +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
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
|
|
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 _chunkY4BWTFTXcjs = require('./chunk-Y4BWTFTX.cjs');async function P(t,e){let n=[];for(let r=0;r<t.length;r+=1)n.push(await e(t[r],r,t.length));return n}async function U(t,e,n={}){let{concurrency:r=1/0}=n,i=new Array(t.length),s=[],o=0,l=async()=>{if(o>=t.length)return;let d=o;o+=1;let m=e(t[d],d,t.length).then(h=>{i[d]=h});s.push(m),await m;let g=s.indexOf(m);g>-1&&s.splice(g,1)},u=Math.min(r,t.length),c=[];for(let d=0;d<u;d+=1)c.push(l());for(await Promise.all(c);o<t.length;)s.length<r?await l():await Promise.race(s);return await Promise.all(s),i}var _graphqlrequest = require('graphql-request');var Ai=_graphqlrequest.gql`
|
|
2
2
|
query TranscendCliDataPoints(
|
|
3
3
|
$filterBy: DataPointFiltersInput
|
|
4
4
|
$first: Int!
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
totalCount
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
`,
|
|
56
|
+
`,Ti= exports.e =_graphqlrequest.gql`
|
|
57
57
|
query TranscendCliSubDataPoints(
|
|
58
58
|
$filterBy: SubDataPointFiltersInput
|
|
59
59
|
$first: Int!
|
|
@@ -88,13 +88,13 @@
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
|
-
`,
|
|
91
|
+
`,vl= exports.f =_graphqlrequest.gql`
|
|
92
92
|
query TranscendCliSubDataPointsCount($filterBy: SubDataPointFiltersInput) {
|
|
93
93
|
subDataPoints(filterBy: $filterBy, useMaster: false) {
|
|
94
94
|
totalCount
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
`,
|
|
97
|
+
`,Pi= exports.g =_graphqlrequest.gql`
|
|
98
98
|
query TranscendCliSubDataPointGuesses(
|
|
99
99
|
$filterBy: SubDataPointFiltersInput
|
|
100
100
|
$first: Int!
|
|
@@ -138,7 +138,7 @@
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
|
-
`,
|
|
141
|
+
`,Si= exports.h =_graphqlrequest.gql`
|
|
142
142
|
mutation TranscendCliUpdateOrCreateDataPoint(
|
|
143
143
|
$dataSiloId: ID!
|
|
144
144
|
$name: String!
|
|
@@ -177,7 +177,7 @@
|
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
|
-
`,
|
|
180
|
+
`,Ol= exports.i =_graphqlrequest.gql`
|
|
181
181
|
query TranscendCliDataPointCsvExport(
|
|
182
182
|
$filterBy: DataPointFiltersInput
|
|
183
183
|
$first: Int!
|
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
|
-
`;var
|
|
205
|
+
`;var Ul=_graphqlrequest.gql`
|
|
206
206
|
query TranscendCliEntryCount(
|
|
207
207
|
$filterBy: UnstructuredSubDataPointRecommendationsFilterInput
|
|
208
208
|
) {
|
|
@@ -213,7 +213,7 @@
|
|
|
213
213
|
totalCount
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
|
-
`;var
|
|
216
|
+
`;var Ei=_graphqlrequest.gql`
|
|
217
217
|
query TranscendCliDataSilos(
|
|
218
218
|
$filterBy: DataSiloFiltersInput!
|
|
219
219
|
$first: Int!
|
|
@@ -240,7 +240,7 @@
|
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
|
-
`,
|
|
243
|
+
`,Bl= exports.l =_graphqlrequest.gql`
|
|
244
244
|
query TranscendCliDataSiloExport(
|
|
245
245
|
$filterBy: DataSiloFiltersInput!
|
|
246
246
|
$first: Int!
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
|
-
`,
|
|
255
|
+
`,Ri= exports.m =_graphqlrequest.gql`
|
|
256
256
|
query TranscendCliDataSilosEnriched(
|
|
257
257
|
$filterBy: DataSiloFiltersInput!
|
|
258
258
|
$first: Int!
|
|
@@ -333,7 +333,7 @@
|
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
335
|
}
|
|
336
|
-
|
|
336
|
+
`,wi= exports.o =_graphqlrequest.gql`
|
|
337
337
|
mutation TranscendCliCreateDataSilo($input: [CreateDataSilosInput!]!) {
|
|
338
338
|
createDataSilos(input: $input) {
|
|
339
339
|
dataSilos {
|
|
@@ -342,7 +342,7 @@
|
|
|
342
342
|
}
|
|
343
343
|
}
|
|
344
344
|
}
|
|
345
|
-
`;var
|
|
345
|
+
`;var $i=_graphqlrequest.gql`
|
|
346
346
|
query TranscendCliEnrichers($title: String, $first: Int!, $offset: Int!) {
|
|
347
347
|
enrichers(
|
|
348
348
|
filterBy: { text: $title }
|
|
@@ -378,7 +378,7 @@
|
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
380
|
}
|
|
381
|
-
`,
|
|
381
|
+
`,jl= exports.q =_graphqlrequest.gql`
|
|
382
382
|
query TranscendCliInitializer {
|
|
383
383
|
initializer {
|
|
384
384
|
id
|
|
@@ -387,19 +387,19 @@
|
|
|
387
387
|
}
|
|
388
388
|
}
|
|
389
389
|
}
|
|
390
|
-
`,
|
|
390
|
+
`,bi= exports.r =_graphqlrequest.gql`
|
|
391
391
|
mutation TranscendCliCreateEnricher($input: EnricherInput!) {
|
|
392
392
|
createEnricher(input: $input) {
|
|
393
393
|
clientMutationId
|
|
394
394
|
}
|
|
395
395
|
}
|
|
396
|
-
`,
|
|
396
|
+
`,xi= exports.s =_graphqlrequest.gql`
|
|
397
397
|
mutation TranscendCliUpdateEnricher($input: UpdateEnricherInput!) {
|
|
398
398
|
updateEnricher(input: $input) {
|
|
399
399
|
clientMutationId
|
|
400
400
|
}
|
|
401
401
|
}
|
|
402
|
-
`;var
|
|
402
|
+
`;var Di=_graphqlrequest.gql`
|
|
403
403
|
query TranscendCliCatalogs($first: Int!, $offset: Int!) {
|
|
404
404
|
catalogs(first: $first, offset: $offset, filterBy: {}, useMaster: false) {
|
|
405
405
|
nodes {
|
|
@@ -409,7 +409,7 @@
|
|
|
409
409
|
}
|
|
410
410
|
}
|
|
411
411
|
}
|
|
412
|
-
`;var
|
|
412
|
+
`;var Li=_graphqlrequest.gql`
|
|
413
413
|
query TranscendCliIdentifiers($first: Int!, $offset: Int!) {
|
|
414
414
|
identifiers(
|
|
415
415
|
first: $first
|
|
@@ -442,13 +442,13 @@
|
|
|
442
442
|
}
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
|
-
`,
|
|
445
|
+
`,ki= exports.v =_graphqlrequest.gql`
|
|
446
446
|
query TranscendCliNewIdentifierTypes {
|
|
447
447
|
newIdentifierTypes {
|
|
448
448
|
name
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
|
-
`,
|
|
451
|
+
`,_i= exports.w =_graphqlrequest.gql`
|
|
452
452
|
mutation TranscendCliCreateIdentifier($input: IdentifierInput!) {
|
|
453
453
|
createIdentifier(input: $input) {
|
|
454
454
|
identifier {
|
|
@@ -457,7 +457,7 @@
|
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
|
-
`,
|
|
460
|
+
`,Gi= exports.x =_graphqlrequest.gql`
|
|
461
461
|
mutation TranscendCliUpdateIdentifier($input: UpdateIdentifierInput!) {
|
|
462
462
|
updateIdentifier(input: $input) {
|
|
463
463
|
clientMutationId
|
|
@@ -478,7 +478,7 @@
|
|
|
478
478
|
}
|
|
479
479
|
}
|
|
480
480
|
}
|
|
481
|
-
`,
|
|
481
|
+
`,vi= exports.z =_graphqlrequest.gql`
|
|
482
482
|
mutation TranscendCliCreateDataSubject($type: String!) {
|
|
483
483
|
createSubject(input: { type: $type, title: $type, subjectClass: OTHER }) {
|
|
484
484
|
subject {
|
|
@@ -487,7 +487,7 @@
|
|
|
487
487
|
}
|
|
488
488
|
}
|
|
489
489
|
}
|
|
490
|
-
`,
|
|
490
|
+
`,Oi= exports.A =_graphqlrequest.gql`
|
|
491
491
|
mutation TranscendCliUpdateDataSubject($input: UpdateSubjectInput!) {
|
|
492
492
|
updateSubject(input: $input) {
|
|
493
493
|
clientMutationId
|
|
@@ -499,7 +499,7 @@
|
|
|
499
499
|
clientMutationId
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
`;var
|
|
502
|
+
`;var Mi=_graphqlrequest.gql`
|
|
503
503
|
query TranscendCliRepositories(
|
|
504
504
|
$first: Int!
|
|
505
505
|
$offset: Int!
|
|
@@ -530,7 +530,7 @@
|
|
|
530
530
|
}
|
|
531
531
|
}
|
|
532
532
|
}
|
|
533
|
-
`,
|
|
533
|
+
`,Ui= exports.D =_graphqlrequest.gql`
|
|
534
534
|
mutation TranscendCliUpdateRepositories($input: UpdateRepositoriesInput!) {
|
|
535
535
|
updateRepositories(input: $input) {
|
|
536
536
|
clientMutationId
|
|
@@ -549,7 +549,7 @@
|
|
|
549
549
|
}
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
|
-
`,
|
|
552
|
+
`,Fi= exports.E =_graphqlrequest.gql`
|
|
553
553
|
mutation TranscendCliCreateRepository($input: CreateRepositoryInput!) {
|
|
554
554
|
createRepository(input: $input) {
|
|
555
555
|
clientMutationId
|
|
@@ -568,7 +568,7 @@
|
|
|
568
568
|
}
|
|
569
569
|
}
|
|
570
570
|
}
|
|
571
|
-
`;var
|
|
571
|
+
`;var Qi=_graphqlrequest.gql`
|
|
572
572
|
query TranscendCliApiKeys($first: Int!, $offset: Int!, $titles: [String!]) {
|
|
573
573
|
apiKeys(
|
|
574
574
|
first: $first
|
|
@@ -586,7 +586,7 @@
|
|
|
586
586
|
}
|
|
587
587
|
}
|
|
588
588
|
}
|
|
589
|
-
`,
|
|
589
|
+
`,Bi= exports.G =_graphqlrequest.gql`
|
|
590
590
|
mutation TranscendCliCreateApiKey($input: ApiKeyInput!) {
|
|
591
591
|
createApiKey(input: $input) {
|
|
592
592
|
apiKey {
|
|
@@ -596,13 +596,13 @@
|
|
|
596
596
|
}
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
|
-
`,
|
|
599
|
+
`,Ki= exports.H =_graphqlrequest.gql`
|
|
600
600
|
mutation TranscendCliDeleteApiKey($id: ID!) {
|
|
601
601
|
deleteApiKey(id: $id) {
|
|
602
602
|
clientMutationId
|
|
603
603
|
}
|
|
604
604
|
}
|
|
605
|
-
`;var
|
|
605
|
+
`;var ji=_graphqlrequest.gql`
|
|
606
606
|
mutation AddSiloDiscoveryResults(
|
|
607
607
|
$pluginId: ID!
|
|
608
608
|
$rawResults: [SiloDiscoveryRawResultInput!]!
|
|
@@ -613,7 +613,7 @@
|
|
|
613
613
|
success
|
|
614
614
|
}
|
|
615
615
|
}
|
|
616
|
-
`,
|
|
616
|
+
`,Yi= exports.J =_graphqlrequest.gql`
|
|
617
617
|
query Plugins($dataSiloId: String!, $type: PluginType!) {
|
|
618
618
|
plugins(filterBy: { dataSiloId: $dataSiloId, type: $type, enabled: true }) {
|
|
619
619
|
plugins {
|
|
@@ -625,7 +625,7 @@
|
|
|
625
625
|
totalCount
|
|
626
626
|
}
|
|
627
627
|
}
|
|
628
|
-
`;var
|
|
628
|
+
`;var Hi=_graphqlrequest.gql`
|
|
629
629
|
query TranscendCliTemplates($title: String, $first: Int!, $offset: Int!) {
|
|
630
630
|
templates(
|
|
631
631
|
filterBy: { text: $title }
|
|
@@ -645,13 +645,13 @@
|
|
|
645
645
|
}
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
|
-
`,
|
|
648
|
+
`,Wi= exports.L =_graphqlrequest.gql`
|
|
649
649
|
mutation TranscendCliCreateTemplate($title: String!) {
|
|
650
650
|
createTemplate(input: { title: $title, template: "", subject: $title }) {
|
|
651
651
|
clientMutationId
|
|
652
652
|
}
|
|
653
653
|
}
|
|
654
|
-
`;var
|
|
654
|
+
`;var zi=_graphqlrequest.gql`
|
|
655
655
|
query TranscendCliOrganization {
|
|
656
656
|
organization {
|
|
657
657
|
sombra {
|
|
@@ -659,7 +659,7 @@
|
|
|
659
659
|
}
|
|
660
660
|
}
|
|
661
661
|
}
|
|
662
|
-
`;var
|
|
662
|
+
`;var Ji=_graphqlrequest.gql`
|
|
663
663
|
query TranscendCliAttributeKeys($first: Int!, $offset: Int!) {
|
|
664
664
|
attributeKeys(
|
|
665
665
|
filterBy: { enabledOn: [request] }
|
|
@@ -674,7 +674,7 @@
|
|
|
674
674
|
}
|
|
675
675
|
}
|
|
676
676
|
}
|
|
677
|
-
`;var
|
|
677
|
+
`;var Xi=_graphqlrequest.gql`
|
|
678
678
|
query TranscendCliSoftwareDevelopmentKits(
|
|
679
679
|
$first: Int!
|
|
680
680
|
$offset: Int!
|
|
@@ -707,7 +707,7 @@
|
|
|
707
707
|
}
|
|
708
708
|
}
|
|
709
709
|
}
|
|
710
|
-
`,
|
|
710
|
+
`,er= exports.P =_graphqlrequest.gql`
|
|
711
711
|
mutation TranscendCliUpdateSoftwareDevelopmentKits(
|
|
712
712
|
$input: UpdateSoftwareDevelopmentKitsInput!
|
|
713
713
|
) {
|
|
@@ -731,7 +731,7 @@
|
|
|
731
731
|
}
|
|
732
732
|
}
|
|
733
733
|
}
|
|
734
|
-
`,
|
|
734
|
+
`,tr= exports.Q =_graphqlrequest.gql`
|
|
735
735
|
mutation TranscendCliCreateSoftwareDevelopmentKit(
|
|
736
736
|
$input: CreateSoftwareDevelopmentKitInput!
|
|
737
737
|
) {
|
|
@@ -755,7 +755,7 @@
|
|
|
755
755
|
}
|
|
756
756
|
}
|
|
757
757
|
}
|
|
758
|
-
`;var
|
|
758
|
+
`;var nr=_graphqlrequest.gql`
|
|
759
759
|
query TranscendCliCodePackages(
|
|
760
760
|
$first: Int!
|
|
761
761
|
$offset: Int!
|
|
@@ -796,7 +796,7 @@
|
|
|
796
796
|
}
|
|
797
797
|
}
|
|
798
798
|
}
|
|
799
|
-
`,
|
|
799
|
+
`,ir= exports.S =_graphqlrequest.gql`
|
|
800
800
|
mutation TranscendCliUpdateCodePackages($input: UpdateCodePackagesInput!) {
|
|
801
801
|
updateCodePackages(input: $input) {
|
|
802
802
|
clientMutationId
|
|
@@ -826,7 +826,7 @@
|
|
|
826
826
|
}
|
|
827
827
|
}
|
|
828
828
|
}
|
|
829
|
-
`,
|
|
829
|
+
`,rr= exports.T =_graphqlrequest.gql`
|
|
830
830
|
mutation TranscendCliCreateCodePackage($input: CreateCodePackageInput!) {
|
|
831
831
|
createCodePackage(input: $input) {
|
|
832
832
|
clientMutationId
|
|
@@ -856,7 +856,7 @@
|
|
|
856
856
|
}
|
|
857
857
|
}
|
|
858
858
|
}
|
|
859
|
-
`;var
|
|
859
|
+
`;var or=_graphqlrequest.gql`
|
|
860
860
|
query TranscendCliPromptThreads(
|
|
861
861
|
$first: Int!
|
|
862
862
|
$offset: Int!
|
|
@@ -873,7 +873,7 @@
|
|
|
873
873
|
}
|
|
874
874
|
}
|
|
875
875
|
}
|
|
876
|
-
`;var
|
|
876
|
+
`;var ar=_graphqlrequest.gql`
|
|
877
877
|
query TranscendCliFetchPolicies($url: String!) {
|
|
878
878
|
privacyCenterPolicies(lookup: { url: $url }) {
|
|
879
879
|
id
|
|
@@ -890,7 +890,7 @@
|
|
|
890
890
|
}
|
|
891
891
|
}
|
|
892
892
|
}
|
|
893
|
-
`,
|
|
893
|
+
`,pr= exports.W =_graphqlrequest.gql`
|
|
894
894
|
mutation TranscendCliUpdatePolicies(
|
|
895
895
|
$policies: [PolicyInput!]!
|
|
896
896
|
$privacyCenterId: ID!
|
|
@@ -905,7 +905,7 @@
|
|
|
905
905
|
clientMutationId
|
|
906
906
|
}
|
|
907
907
|
}
|
|
908
|
-
`;var
|
|
908
|
+
`;var lr=_graphqlrequest.gql`
|
|
909
909
|
query TranscendCliRequests(
|
|
910
910
|
$first: Int!
|
|
911
911
|
$offset: Int!
|
|
@@ -950,7 +950,7 @@
|
|
|
950
950
|
totalCount
|
|
951
951
|
}
|
|
952
952
|
}
|
|
953
|
-
`,
|
|
953
|
+
`,Tc= exports.Y =_graphqlrequest.gql`
|
|
954
954
|
mutation TranscendCliApprovePrivacyRequest($input: CommunicationInput!) {
|
|
955
955
|
approveRequest(input: $input) {
|
|
956
956
|
request {
|
|
@@ -958,7 +958,7 @@
|
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
|
-
`,
|
|
961
|
+
`,Pc= exports.Z =_graphqlrequest.gql`
|
|
962
962
|
mutation TranscendCliCancelPrivacyRequest($input: CommunicationInput!) {
|
|
963
963
|
cancelRequest(input: $input) {
|
|
964
964
|
request {
|
|
@@ -966,7 +966,7 @@
|
|
|
966
966
|
}
|
|
967
967
|
}
|
|
968
968
|
}
|
|
969
|
-
`,
|
|
969
|
+
`,Sc= exports._ =_graphqlrequest.gql`
|
|
970
970
|
mutation TranscendCliUpdatePrivacyRequest($input: UpdateRequestInput!) {
|
|
971
971
|
updateRequest(input: $input) {
|
|
972
972
|
request {
|
|
@@ -974,13 +974,13 @@
|
|
|
974
974
|
}
|
|
975
975
|
}
|
|
976
976
|
}
|
|
977
|
-
`,
|
|
977
|
+
`,Ec= exports.$ =_graphqlrequest.gql`
|
|
978
978
|
mutation TranscendCliNotifyAdditionalTime($input: AdditionalTimeInput!) {
|
|
979
979
|
notifyAdditionalTime(input: $input) {
|
|
980
980
|
clientMutationId
|
|
981
981
|
}
|
|
982
982
|
}
|
|
983
|
-
`;var
|
|
983
|
+
`;var mr=_graphqlrequest.gql`
|
|
984
984
|
query TranscendCliFetchMessage {
|
|
985
985
|
translatedMessages {
|
|
986
986
|
id
|
|
@@ -992,13 +992,13 @@
|
|
|
992
992
|
}
|
|
993
993
|
}
|
|
994
994
|
}
|
|
995
|
-
`,
|
|
995
|
+
`,ur= exports.ba =_graphqlrequest.gql`
|
|
996
996
|
mutation TranscendCliUpdateIntlMessages($messages: [MessageInput!]!) {
|
|
997
997
|
updateIntlMessages(input: { messages: $messages, skipPublish: true }) {
|
|
998
998
|
clientMutationId
|
|
999
999
|
}
|
|
1000
1000
|
}
|
|
1001
|
-
`;var
|
|
1001
|
+
`;var dr=_graphqlrequest.gql`
|
|
1002
1002
|
query TranscendCliRequestEnrichers(
|
|
1003
1003
|
$first: Int!
|
|
1004
1004
|
$offset: Int!
|
|
@@ -1026,7 +1026,7 @@
|
|
|
1026
1026
|
totalCount
|
|
1027
1027
|
}
|
|
1028
1028
|
}
|
|
1029
|
-
`,
|
|
1029
|
+
`,fr= exports.da =_graphqlrequest.gql`
|
|
1030
1030
|
mutation TranscendCliRetryRequestEnricher($requestEnricherId: ID!) {
|
|
1031
1031
|
retryRequestEnricher(id: $requestEnricherId) {
|
|
1032
1032
|
requestEnricher {
|
|
@@ -1034,7 +1034,7 @@
|
|
|
1034
1034
|
}
|
|
1035
1035
|
}
|
|
1036
1036
|
}
|
|
1037
|
-
`,
|
|
1037
|
+
`,xc= exports.ea =_graphqlrequest.gql`
|
|
1038
1038
|
mutation TranscendCliSkipRequestEnricher($requestEnricherId: ID!) {
|
|
1039
1039
|
skipRequestEnricher(id: $requestEnricherId) {
|
|
1040
1040
|
requestEnricher {
|
|
@@ -1171,7 +1171,7 @@
|
|
|
1171
1171
|
email
|
|
1172
1172
|
}
|
|
1173
1173
|
isReviewed
|
|
1174
|
-
`,
|
|
1174
|
+
`,yr= exports.ga =_graphqlrequest.gql`
|
|
1175
1175
|
query TranscendCliAssessments(
|
|
1176
1176
|
$first: Int!
|
|
1177
1177
|
$offset: Int!
|
|
@@ -1315,7 +1315,7 @@
|
|
|
1315
1315
|
}
|
|
1316
1316
|
}
|
|
1317
1317
|
}
|
|
1318
|
-
`,
|
|
1318
|
+
`,kc= exports.ha =_graphqlrequest.gql`
|
|
1319
1319
|
mutation TranscendCliImportOneTrustAssessmentForms(
|
|
1320
1320
|
$input: ImportOnetrustAssessmentsInput!
|
|
1321
1321
|
) {
|
|
@@ -1326,7 +1326,7 @@
|
|
|
1326
1326
|
}
|
|
1327
1327
|
}
|
|
1328
1328
|
}
|
|
1329
|
-
`;var
|
|
1329
|
+
`;var Cr=_graphqlrequest.gql`
|
|
1330
1330
|
query TranscendCliPurposes(
|
|
1331
1331
|
$first: Int!
|
|
1332
1332
|
$offset: Int!
|
|
@@ -1358,7 +1358,7 @@
|
|
|
1358
1358
|
}
|
|
1359
1359
|
}
|
|
1360
1360
|
}
|
|
1361
|
-
`;var
|
|
1361
|
+
`;var hr=_graphqlrequest.gql`
|
|
1362
1362
|
query TranscendCliPreferenceTopics(
|
|
1363
1363
|
$first: Int!
|
|
1364
1364
|
$offset: Int!
|
|
@@ -1392,7 +1392,7 @@
|
|
|
1392
1392
|
}
|
|
1393
1393
|
}
|
|
1394
1394
|
}
|
|
1395
|
-
`;var
|
|
1395
|
+
`;var Ir=_graphqlrequest.gql`
|
|
1396
1396
|
query TranscendCliAssessmentTemplates(
|
|
1397
1397
|
$first: Int!
|
|
1398
1398
|
$offset: Int!
|
|
@@ -1448,7 +1448,7 @@
|
|
|
1448
1448
|
}
|
|
1449
1449
|
}
|
|
1450
1450
|
}
|
|
1451
|
-
`;var
|
|
1451
|
+
`;var Ar=_graphqlrequest.gql`
|
|
1452
1452
|
query TranscendCliPrompts(
|
|
1453
1453
|
$first: Int!
|
|
1454
1454
|
$offset: Int!
|
|
@@ -1471,7 +1471,7 @@
|
|
|
1471
1471
|
}
|
|
1472
1472
|
}
|
|
1473
1473
|
}
|
|
1474
|
-
`,
|
|
1474
|
+
`,Tr= exports.ma =_graphqlrequest.gql`
|
|
1475
1475
|
query TranscendCliPromptPartials($first: Int!, $offset: Int!) {
|
|
1476
1476
|
promptPartials(first: $first, offset: $offset) {
|
|
1477
1477
|
nodes {
|
|
@@ -1481,7 +1481,7 @@
|
|
|
1481
1481
|
}
|
|
1482
1482
|
}
|
|
1483
1483
|
}
|
|
1484
|
-
`,
|
|
1484
|
+
`,Pr= exports.na =_graphqlrequest.gql`
|
|
1485
1485
|
query TranscendCliPromptGroups($first: Int!, $offset: Int!) {
|
|
1486
1486
|
promptGroups(
|
|
1487
1487
|
first: $first
|
|
@@ -1498,7 +1498,7 @@
|
|
|
1498
1498
|
}
|
|
1499
1499
|
}
|
|
1500
1500
|
}
|
|
1501
|
-
`,
|
|
1501
|
+
`,Sr= exports.oa =_graphqlrequest.gql`
|
|
1502
1502
|
query TranscendCliPromptsWithVariables($input: PromptsWithVariablesInput!) {
|
|
1503
1503
|
promptsWithVariables(input: $input) {
|
|
1504
1504
|
prompts {
|
|
@@ -1526,13 +1526,13 @@
|
|
|
1526
1526
|
}
|
|
1527
1527
|
}
|
|
1528
1528
|
}
|
|
1529
|
-
`,
|
|
1529
|
+
`,Er= exports.pa =_graphqlrequest.gql`
|
|
1530
1530
|
mutation TranscendCliUpdatePrompts($input: UpdatePromptsInput!) {
|
|
1531
1531
|
updatePrompts(input: $input) {
|
|
1532
1532
|
clientMutationId
|
|
1533
1533
|
}
|
|
1534
1534
|
}
|
|
1535
|
-
`,
|
|
1535
|
+
`,Rr= exports.qa =_graphqlrequest.gql`
|
|
1536
1536
|
mutation TranscendCliCreatePrompt($input: CreatePromptInput!) {
|
|
1537
1537
|
createPrompt(input: $input) {
|
|
1538
1538
|
clientMutationId
|
|
@@ -1541,7 +1541,7 @@
|
|
|
1541
1541
|
}
|
|
1542
1542
|
}
|
|
1543
1543
|
}
|
|
1544
|
-
|
|
1544
|
+
`,wr= exports.ra =_graphqlrequest.gql`
|
|
1545
1545
|
mutation TranscendCliUpdatePromptPartials(
|
|
1546
1546
|
$input: UpdatePromptPartialsInput!
|
|
1547
1547
|
) {
|
|
@@ -1549,7 +1549,7 @@
|
|
|
1549
1549
|
clientMutationId
|
|
1550
1550
|
}
|
|
1551
1551
|
}
|
|
1552
|
-
|
|
1552
|
+
`,$r= exports.sa =_graphqlrequest.gql`
|
|
1553
1553
|
mutation TranscendCliCreatePromptPartial($input: CreatePromptPartialInput!) {
|
|
1554
1554
|
createPromptPartial(input: $input) {
|
|
1555
1555
|
clientMutationId
|
|
@@ -1558,13 +1558,13 @@
|
|
|
1558
1558
|
}
|
|
1559
1559
|
}
|
|
1560
1560
|
}
|
|
1561
|
-
`,
|
|
1561
|
+
`,br= exports.ta =_graphqlrequest.gql`
|
|
1562
1562
|
mutation TranscendCliUpdatePromptGroups($input: UpdatePromptGroupsInput!) {
|
|
1563
1563
|
updatePromptGroups(input: $input) {
|
|
1564
1564
|
clientMutationId
|
|
1565
1565
|
}
|
|
1566
1566
|
}
|
|
1567
|
-
`,
|
|
1567
|
+
`,xr= exports.ua =_graphqlrequest.gql`
|
|
1568
1568
|
mutation TranscendCliCreatePromptPartial($input: CreatePromptGroupInput!) {
|
|
1569
1569
|
createPromptGroup(input: $input) {
|
|
1570
1570
|
clientMutationId
|
|
@@ -1573,7 +1573,7 @@
|
|
|
1573
1573
|
}
|
|
1574
1574
|
}
|
|
1575
1575
|
}
|
|
1576
|
-
`;var
|
|
1576
|
+
`;var Dr=_graphqlrequest.gql`
|
|
1577
1577
|
query TranscendCliRequestDataSilos(
|
|
1578
1578
|
$first: Int!
|
|
1579
1579
|
$offset: Int!
|
|
@@ -1595,7 +1595,7 @@
|
|
|
1595
1595
|
totalCount
|
|
1596
1596
|
}
|
|
1597
1597
|
}
|
|
1598
|
-
`,
|
|
1598
|
+
`,Kc= exports.wa =_graphqlrequest.gql`
|
|
1599
1599
|
mutation TranscendCliMarkRequestDataSiloCompleted(
|
|
1600
1600
|
$requestDataSiloId: ID!
|
|
1601
1601
|
$status: UpdateRequestDataSiloStatus!
|
|
@@ -1608,7 +1608,7 @@
|
|
|
1608
1608
|
}
|
|
1609
1609
|
}
|
|
1610
1610
|
}
|
|
1611
|
-
`,
|
|
1611
|
+
`,Vc= exports.xa =_graphqlrequest.gql`
|
|
1612
1612
|
mutation TranscendCliRetryRequestDataSilo($requestDataSiloId: ID!) {
|
|
1613
1613
|
retryRequestDataSilo(id: $requestDataSiloId) {
|
|
1614
1614
|
requestDataSilo {
|
|
@@ -1616,7 +1616,7 @@
|
|
|
1616
1616
|
}
|
|
1617
1617
|
}
|
|
1618
1618
|
}
|
|
1619
|
-
`,
|
|
1619
|
+
`,Lr= exports.ya =_graphqlrequest.gql`
|
|
1620
1620
|
query TranscendCliListReducedRequestsForDataSiloCount(
|
|
1621
1621
|
$input: BulkCompletionReducedRequestInput!
|
|
1622
1622
|
) {
|
|
@@ -1624,7 +1624,7 @@
|
|
|
1624
1624
|
totalCount
|
|
1625
1625
|
}
|
|
1626
1626
|
}
|
|
1627
|
-
`;var
|
|
1627
|
+
`;var kr=_graphqlrequest.gql`
|
|
1628
1628
|
query TranscendCliTeams(
|
|
1629
1629
|
$first: Int!
|
|
1630
1630
|
$offset: Int!
|
|
@@ -1659,7 +1659,7 @@
|
|
|
1659
1659
|
}
|
|
1660
1660
|
}
|
|
1661
1661
|
}
|
|
1662
|
-
`,
|
|
1662
|
+
`,_r= exports.Aa =_graphqlrequest.gql`
|
|
1663
1663
|
mutation TranscendCliCreateTeam($input: TeamInput!) {
|
|
1664
1664
|
createTeam(input: $input) {
|
|
1665
1665
|
team {
|
|
@@ -1668,7 +1668,7 @@
|
|
|
1668
1668
|
}
|
|
1669
1669
|
}
|
|
1670
1670
|
}
|
|
1671
|
-
`,
|
|
1671
|
+
`,Gr= exports.Ba =_graphqlrequest.gql`
|
|
1672
1672
|
mutation TranscendCliUpdateTeam($input: UpdateTeamInput!) {
|
|
1673
1673
|
updateTeam(input: $input) {
|
|
1674
1674
|
team {
|
|
@@ -1677,7 +1677,7 @@
|
|
|
1677
1677
|
}
|
|
1678
1678
|
}
|
|
1679
1679
|
}
|
|
1680
|
-
`;var
|
|
1680
|
+
`;var Wc=_graphqlrequest.gql`
|
|
1681
1681
|
mutation TranscendCliRemoveRequestIdentifiers(
|
|
1682
1682
|
$input: RemoveRequestIdentifiersInput!
|
|
1683
1683
|
) {
|
|
@@ -1685,7 +1685,7 @@
|
|
|
1685
1685
|
count
|
|
1686
1686
|
}
|
|
1687
1687
|
}
|
|
1688
|
-
`,
|
|
1688
|
+
`,vr= exports.Da =_graphqlrequest.gql`
|
|
1689
1689
|
query TranscendCliRequestIdentifiers(
|
|
1690
1690
|
$first: Int!
|
|
1691
1691
|
$offset: Int!
|
|
@@ -1709,7 +1709,7 @@
|
|
|
1709
1709
|
totalCount
|
|
1710
1710
|
}
|
|
1711
1711
|
}
|
|
1712
|
-
`;var
|
|
1712
|
+
`;var Or=_graphqlrequest.gql`
|
|
1713
1713
|
query TranscendCliUsers(
|
|
1714
1714
|
$first: Int!
|
|
1715
1715
|
$offset: Int!
|
|
@@ -1731,7 +1731,7 @@
|
|
|
1731
1731
|
}
|
|
1732
1732
|
}
|
|
1733
1733
|
}
|
|
1734
|
-
`;var
|
|
1734
|
+
`;var tm=_graphqlrequest.gql`
|
|
1735
1735
|
query TranscendCliRequestFiles(
|
|
1736
1736
|
$first: Int!
|
|
1737
1737
|
$offset: Int!
|
|
@@ -1752,6 +1752,23 @@
|
|
|
1752
1752
|
}
|
|
1753
1753
|
}
|
|
1754
1754
|
}
|
|
1755
|
+
`,Mr= exports.Ga =_graphqlrequest.gql`
|
|
1756
|
+
query TranscendCliBulkRequestFiles(
|
|
1757
|
+
$filterBy: BulkRequestFilesFiltersInput!
|
|
1758
|
+
$first: Int!
|
|
1759
|
+
$after: String
|
|
1760
|
+
) {
|
|
1761
|
+
bulkRequestFiles(filterBy: $filterBy, first: $first, after: $after) {
|
|
1762
|
+
nodes {
|
|
1763
|
+
remoteId
|
|
1764
|
+
fileName
|
|
1765
|
+
}
|
|
1766
|
+
pageInfo {
|
|
1767
|
+
hasNextPage
|
|
1768
|
+
endCursor
|
|
1769
|
+
}
|
|
1770
|
+
}
|
|
1771
|
+
}
|
|
1755
1772
|
`;var Fr=_graphqlrequest.gql`
|
|
1756
1773
|
mutation TranscendCliReportPromptRun($input: ReportPromptRunInput!) {
|
|
1757
1774
|
reportPromptRun(input: $input) {
|
|
@@ -1761,7 +1778,7 @@
|
|
|
1761
1778
|
}
|
|
1762
1779
|
}
|
|
1763
1780
|
}
|
|
1764
|
-
`,Qr= exports.
|
|
1781
|
+
`,Qr= exports.Ia =_graphqlrequest.gql`
|
|
1765
1782
|
mutation TranscendCliAddMessagesToPromptRun(
|
|
1766
1783
|
$input: AddMessagesToPromptRunInput!
|
|
1767
1784
|
) {
|
|
@@ -1786,7 +1803,7 @@
|
|
|
1786
1803
|
}
|
|
1787
1804
|
}
|
|
1788
1805
|
}
|
|
1789
|
-
`,Kr= exports.
|
|
1806
|
+
`,Kr= exports.Ka =_graphqlrequest.gql`
|
|
1790
1807
|
mutation TranscendCliCreateActionItemCollection(
|
|
1791
1808
|
$input: CreateActionItemCollectionInput!
|
|
1792
1809
|
) {
|
|
@@ -1797,7 +1814,7 @@
|
|
|
1797
1814
|
}
|
|
1798
1815
|
}
|
|
1799
1816
|
}
|
|
1800
|
-
`,Vr= exports.
|
|
1817
|
+
`,Vr= exports.La =_graphqlrequest.gql`
|
|
1801
1818
|
mutation TranscendCliUpdateActionItemCollection(
|
|
1802
1819
|
$input: UpdateActionItemCollectionInput!
|
|
1803
1820
|
) {
|
|
@@ -1818,7 +1835,7 @@
|
|
|
1818
1835
|
}
|
|
1819
1836
|
}
|
|
1820
1837
|
}
|
|
1821
|
-
`,Yr= exports.
|
|
1838
|
+
`,Yr= exports.Na =_graphqlrequest.gql`
|
|
1822
1839
|
mutation TranscendCliCreateAttributeValues(
|
|
1823
1840
|
$input: [CreateAttributeValuesInput!]!
|
|
1824
1841
|
) {
|
|
@@ -1826,7 +1843,7 @@
|
|
|
1826
1843
|
clientMutationId
|
|
1827
1844
|
}
|
|
1828
1845
|
}
|
|
1829
|
-
`,Zr= exports.
|
|
1846
|
+
`,Zr= exports.Oa =_graphqlrequest.gql`
|
|
1830
1847
|
mutation TranscendCliUpdateAttributeValues(
|
|
1831
1848
|
$input: [UpdateAttributeValueInput!]!
|
|
1832
1849
|
) {
|
|
@@ -1834,13 +1851,13 @@
|
|
|
1834
1851
|
clientMutationId
|
|
1835
1852
|
}
|
|
1836
1853
|
}
|
|
1837
|
-
`,Hr= exports.
|
|
1854
|
+
`,Hr= exports.Pa =_graphqlrequest.gql`
|
|
1838
1855
|
mutation TranscendCliDeleteAttributeValue($id: ID!) {
|
|
1839
1856
|
deleteAttributeValue(id: $id) {
|
|
1840
1857
|
clientMutationId
|
|
1841
1858
|
}
|
|
1842
1859
|
}
|
|
1843
|
-
`,Wr= exports.
|
|
1860
|
+
`,Wr= exports.Qa =_graphqlrequest.gql`
|
|
1844
1861
|
query TranscendCliAttributeValues(
|
|
1845
1862
|
$first: Int!
|
|
1846
1863
|
$offset: Int!
|
|
@@ -1860,7 +1877,7 @@
|
|
|
1860
1877
|
}
|
|
1861
1878
|
}
|
|
1862
1879
|
}
|
|
1863
|
-
`,zr= exports.
|
|
1880
|
+
`,zr= exports.Ra =_graphqlrequest.gql`
|
|
1864
1881
|
mutation TranscendCliCreateAttribute(
|
|
1865
1882
|
$name: String!
|
|
1866
1883
|
$type: AttributeKeyType!
|
|
@@ -1881,7 +1898,7 @@
|
|
|
1881
1898
|
}
|
|
1882
1899
|
}
|
|
1883
1900
|
}
|
|
1884
|
-
`,Jr= exports.
|
|
1901
|
+
`,Jr= exports.Sa =_graphqlrequest.gql`
|
|
1885
1902
|
mutation TranscendCliCreateAttribute(
|
|
1886
1903
|
$attributeKeyId: ID!
|
|
1887
1904
|
$description: String
|
|
@@ -1900,7 +1917,7 @@
|
|
|
1900
1917
|
}
|
|
1901
1918
|
}
|
|
1902
1919
|
}
|
|
1903
|
-
`,Xr= exports.
|
|
1920
|
+
`,Xr= exports.Ta =_graphqlrequest.gql`
|
|
1904
1921
|
mutation TranscendCliSetResourceAttributes(
|
|
1905
1922
|
$input: SetResourceAttributesInput!
|
|
1906
1923
|
) {
|
|
@@ -1937,7 +1954,7 @@
|
|
|
1937
1954
|
}
|
|
1938
1955
|
}
|
|
1939
1956
|
}
|
|
1940
|
-
`,to= exports.
|
|
1957
|
+
`,to= exports.Va =_graphqlrequest.gql`
|
|
1941
1958
|
query TranscendCliConsentPartitions($first: Int!, $offset: Int!) {
|
|
1942
1959
|
consentPartitions(first: $first, offset: $offset) {
|
|
1943
1960
|
nodes {
|
|
@@ -1947,7 +1964,7 @@
|
|
|
1947
1964
|
}
|
|
1948
1965
|
}
|
|
1949
1966
|
}
|
|
1950
|
-
`,no= exports.
|
|
1967
|
+
`,no= exports.Wa =_graphqlrequest.gql`
|
|
1951
1968
|
mutation TranscendCliCreateDataFlows(
|
|
1952
1969
|
$dataFlows: [DataFlowInput!]!
|
|
1953
1970
|
$airgapBundleId: ID!
|
|
@@ -1965,7 +1982,7 @@
|
|
|
1965
1982
|
}
|
|
1966
1983
|
}
|
|
1967
1984
|
}
|
|
1968
|
-
`,io= exports.
|
|
1985
|
+
`,io= exports.Xa =_graphqlrequest.gql`
|
|
1969
1986
|
mutation TranscendCliUpdateDataFlows(
|
|
1970
1987
|
$airgapBundleId: ID!
|
|
1971
1988
|
$dataFlows: [UpdateDataFlowInput!]!
|
|
@@ -1983,7 +2000,7 @@
|
|
|
1983
2000
|
}
|
|
1984
2001
|
}
|
|
1985
2002
|
}
|
|
1986
|
-
`,ro= exports.
|
|
2003
|
+
`,ro= exports.Ya =_graphqlrequest.gql`
|
|
1987
2004
|
mutation TranscendCliUpdateOrCreateCookies(
|
|
1988
2005
|
$cookies: [UpdateOrCreateCookieInput!]!
|
|
1989
2006
|
$airgapBundleId: ID!
|
|
@@ -1994,7 +2011,7 @@
|
|
|
1994
2011
|
clientMutationId
|
|
1995
2012
|
}
|
|
1996
2013
|
}
|
|
1997
|
-
`,oo= exports.
|
|
2014
|
+
`,oo= exports.Za =_graphqlrequest.gql`
|
|
1998
2015
|
query TranscendCliDataFlows(
|
|
1999
2016
|
$first: Int!
|
|
2000
2017
|
$airgapBundleId: ID!
|
|
@@ -2039,7 +2056,7 @@
|
|
|
2039
2056
|
}
|
|
2040
2057
|
}
|
|
2041
2058
|
}
|
|
2042
|
-
`,so= exports.
|
|
2059
|
+
`,so= exports._a =_graphqlrequest.gql`
|
|
2043
2060
|
query TranscendCliCookies(
|
|
2044
2061
|
$first: Int!
|
|
2045
2062
|
$offset: Int!
|
|
@@ -2083,7 +2100,7 @@
|
|
|
2083
2100
|
}
|
|
2084
2101
|
}
|
|
2085
2102
|
}
|
|
2086
|
-
`,ao= exports
|
|
2103
|
+
`,ao= exports.$a =_graphqlrequest.gql`
|
|
2087
2104
|
query TranscendCliFetchConsentManagerId {
|
|
2088
2105
|
consentManager {
|
|
2089
2106
|
consentManager {
|
|
@@ -2091,7 +2108,7 @@
|
|
|
2091
2108
|
}
|
|
2092
2109
|
}
|
|
2093
2110
|
}
|
|
2094
|
-
`,po= exports
|
|
2111
|
+
`,po= exports.ab =_graphqlrequest.gql`
|
|
2095
2112
|
query TranscendCliFetchConsentManager {
|
|
2096
2113
|
consentManager {
|
|
2097
2114
|
consentManager {
|
|
@@ -2115,7 +2132,7 @@
|
|
|
2115
2132
|
}
|
|
2116
2133
|
}
|
|
2117
2134
|
}
|
|
2118
|
-
`,lo= exports.
|
|
2135
|
+
`,lo= exports.bb =_graphqlrequest.gql`
|
|
2119
2136
|
query TranscendCliFetchConsentManagerTheme($airgapBundleId: ID!) {
|
|
2120
2137
|
consentManagerTheme(input: { airgapBundleId: $airgapBundleId }) {
|
|
2121
2138
|
theme {
|
|
@@ -2126,7 +2143,7 @@
|
|
|
2126
2143
|
}
|
|
2127
2144
|
}
|
|
2128
2145
|
}
|
|
2129
|
-
`,co= exports.
|
|
2146
|
+
`,co= exports.cb =_graphqlrequest.gql`
|
|
2130
2147
|
mutation TranscendCliCreateConsentManager($privacyCenterId: ID!) {
|
|
2131
2148
|
createConsentManager(input: { privacyCenterId: $privacyCenterId }) {
|
|
2132
2149
|
consentManager {
|
|
@@ -2134,7 +2151,7 @@
|
|
|
2134
2151
|
}
|
|
2135
2152
|
}
|
|
2136
2153
|
}
|
|
2137
|
-
`,mo= exports.
|
|
2154
|
+
`,mo= exports.db =_graphqlrequest.gql`
|
|
2138
2155
|
mutation TranscendCliUpdateConsentManager(
|
|
2139
2156
|
$airgapBundleId: ID!
|
|
2140
2157
|
$version: String!
|
|
@@ -2143,7 +2160,7 @@
|
|
|
2143
2160
|
clientMutationId
|
|
2144
2161
|
}
|
|
2145
2162
|
}
|
|
2146
|
-
`,uo= exports.
|
|
2163
|
+
`,uo= exports.eb =_graphqlrequest.gql`
|
|
2147
2164
|
mutation TranscendCliUpdateConsentManagerToLatest(
|
|
2148
2165
|
$airgapBundleId: ID!
|
|
2149
2166
|
$bundleType: ConsentBundleType!
|
|
@@ -2155,7 +2172,7 @@
|
|
|
2155
2172
|
clientMutationId
|
|
2156
2173
|
}
|
|
2157
2174
|
}
|
|
2158
|
-
`,fo= exports.
|
|
2175
|
+
`,fo= exports.fb =_graphqlrequest.gql`
|
|
2159
2176
|
mutation TranscendCliDeployConsentManager(
|
|
2160
2177
|
$airgapBundleId: ID!
|
|
2161
2178
|
$bundleType: ConsentBundleType!
|
|
@@ -2167,7 +2184,7 @@
|
|
|
2167
2184
|
clientMutationId
|
|
2168
2185
|
}
|
|
2169
2186
|
}
|
|
2170
|
-
`,go= exports.
|
|
2187
|
+
`,go= exports.gb =_graphqlrequest.gql`
|
|
2171
2188
|
mutation TranscendCliUpdateConsentManagerDomains(
|
|
2172
2189
|
$airgapBundleId: ID!
|
|
2173
2190
|
$domains: [String!]!
|
|
@@ -2178,7 +2195,7 @@
|
|
|
2178
2195
|
clientMutationId
|
|
2179
2196
|
}
|
|
2180
2197
|
}
|
|
2181
|
-
`,yo= exports.
|
|
2198
|
+
`,yo= exports.hb =_graphqlrequest.gql`
|
|
2182
2199
|
mutation TranscendCliUpdateConsentManagerPartition(
|
|
2183
2200
|
$airgapBundleId: ID!
|
|
2184
2201
|
$partitionId: ID!
|
|
@@ -2189,13 +2206,13 @@
|
|
|
2189
2206
|
clientMutationId
|
|
2190
2207
|
}
|
|
2191
2208
|
}
|
|
2192
|
-
`,Co= exports.
|
|
2209
|
+
`,Co= exports.ib =_graphqlrequest.gql`
|
|
2193
2210
|
mutation TranscendCliUpdateLoadOptions($input: UpdateLoadOptionsInput!) {
|
|
2194
2211
|
updateLoadOptions(input: $input) {
|
|
2195
2212
|
clientMutationId
|
|
2196
2213
|
}
|
|
2197
2214
|
}
|
|
2198
|
-
`,ho= exports.
|
|
2215
|
+
`,ho= exports.jb =_graphqlrequest.gql`
|
|
2199
2216
|
mutation TranscendCliToggleUnknownRequestPolicy(
|
|
2200
2217
|
$input: ToggleUnknownRequestPolicyInput!
|
|
2201
2218
|
) {
|
|
@@ -2203,7 +2220,7 @@
|
|
|
2203
2220
|
clientMutationId
|
|
2204
2221
|
}
|
|
2205
2222
|
}
|
|
2206
|
-
`,Io= exports.
|
|
2223
|
+
`,Io= exports.kb =_graphqlrequest.gql`
|
|
2207
2224
|
mutation TranscendCliToggleUnknownCookiePolicy(
|
|
2208
2225
|
$input: ToggleUnknownCookiePolicyInput!
|
|
2209
2226
|
) {
|
|
@@ -2211,7 +2228,7 @@
|
|
|
2211
2228
|
clientMutationId
|
|
2212
2229
|
}
|
|
2213
2230
|
}
|
|
2214
|
-
`,Ao= exports.
|
|
2231
|
+
`,Ao= exports.lb =_graphqlrequest.gql`
|
|
2215
2232
|
mutation TranscendCliToggleTelemetryPartitionStrategy(
|
|
2216
2233
|
$input: ToggleTelemetryPartitionStrategyInput!
|
|
2217
2234
|
) {
|
|
@@ -2219,7 +2236,7 @@
|
|
|
2219
2236
|
clientMutationId
|
|
2220
2237
|
}
|
|
2221
2238
|
}
|
|
2222
|
-
`,To= exports.
|
|
2239
|
+
`,To= exports.mb =_graphqlrequest.gql`
|
|
2223
2240
|
mutation TranscendCliToggleConsentPrecedence(
|
|
2224
2241
|
$input: ToggleConsentPrecedenceInput!
|
|
2225
2242
|
) {
|
|
@@ -2227,7 +2244,7 @@
|
|
|
2227
2244
|
clientMutationId
|
|
2228
2245
|
}
|
|
2229
2246
|
}
|
|
2230
|
-
`,Po= exports.
|
|
2247
|
+
`,Po= exports.nb =_graphqlrequest.gql`
|
|
2231
2248
|
mutation TranscendCliUpdateConsentManagerTheme(
|
|
2232
2249
|
$input: UpdateConsentManagerThemeInput!
|
|
2233
2250
|
) {
|
|
@@ -2235,19 +2252,19 @@
|
|
|
2235
2252
|
clientMutationId
|
|
2236
2253
|
}
|
|
2237
2254
|
}
|
|
2238
|
-
`,So= exports.
|
|
2255
|
+
`,So= exports.ob =_graphqlrequest.gql`
|
|
2239
2256
|
mutation TranscendCliUpdateConsentExperience($input: UpdateExperienceInput!) {
|
|
2240
2257
|
updateExperience(input: $input) {
|
|
2241
2258
|
clientMutationId
|
|
2242
2259
|
}
|
|
2243
2260
|
}
|
|
2244
|
-
`,Eo= exports.
|
|
2261
|
+
`,Eo= exports.pb =_graphqlrequest.gql`
|
|
2245
2262
|
mutation TranscendCliCreateConsentExperience($input: CreateExperienceInput!) {
|
|
2246
2263
|
createExperience(input: $input) {
|
|
2247
2264
|
clientMutationId
|
|
2248
2265
|
}
|
|
2249
2266
|
}
|
|
2250
|
-
`,Ro= exports.
|
|
2267
|
+
`,Ro= exports.qb =_graphqlrequest.gql`
|
|
2251
2268
|
mutation TranscendCliCreateConsentPartition(
|
|
2252
2269
|
$input: CreateConsentPartitionInput!
|
|
2253
2270
|
) {
|
|
@@ -2296,7 +2313,7 @@
|
|
|
2296
2313
|
}
|
|
2297
2314
|
}
|
|
2298
2315
|
}
|
|
2299
|
-
`,bo= exports.
|
|
2316
|
+
`,bo= exports.tb =_graphqlrequest.gql`
|
|
2300
2317
|
mutation TranscendCliCreateBusinessEntity(
|
|
2301
2318
|
$input: CreateBusinessEntityInput!
|
|
2302
2319
|
) {
|
|
@@ -2319,7 +2336,7 @@
|
|
|
2319
2336
|
}
|
|
2320
2337
|
}
|
|
2321
2338
|
}
|
|
2322
|
-
`,xo= exports.
|
|
2339
|
+
`,xo= exports.ub =_graphqlrequest.gql`
|
|
2323
2340
|
mutation TranscendCliUpdateBusinessEntities(
|
|
2324
2341
|
$input: [UpdateBusinessEntityInput!]!
|
|
2325
2342
|
) {
|
|
@@ -2347,7 +2364,7 @@
|
|
|
2347
2364
|
}
|
|
2348
2365
|
}
|
|
2349
2366
|
}
|
|
2350
|
-
`,ko= exports.
|
|
2367
|
+
`,ko= exports.wb =_graphqlrequest.gql`
|
|
2351
2368
|
mutation TranscendCliUpdateAction($input: UpdateActionInput!) {
|
|
2352
2369
|
updateAction(input: $input) {
|
|
2353
2370
|
clientMutationId
|
|
@@ -2400,31 +2417,31 @@
|
|
|
2400
2417
|
}
|
|
2401
2418
|
}
|
|
2402
2419
|
}
|
|
2403
|
-
`,Go= exports.
|
|
2420
|
+
`,Go= exports.yb =_graphqlrequest.gql`
|
|
2404
2421
|
mutation TranscendCliUpdateActionItems($input: UpdateActionItemsInput!) {
|
|
2405
2422
|
updateActionItems(input: $input) {
|
|
2406
2423
|
clientMutationId
|
|
2407
2424
|
}
|
|
2408
2425
|
}
|
|
2409
|
-
`,
|
|
2426
|
+
`,qo= exports.zb =_graphqlrequest.gql`
|
|
2410
2427
|
mutation TranscendCliCreateActionItems($input: [CreateActionItemsInput!]!) {
|
|
2411
2428
|
createActionItems(input: $input) {
|
|
2412
2429
|
clientMutationId
|
|
2413
2430
|
}
|
|
2414
2431
|
}
|
|
2415
|
-
`;var
|
|
2432
|
+
`;var vo=_graphqlrequest.gql`
|
|
2416
2433
|
query TranscendCliFetchPrivacyCenterId($url: String!) {
|
|
2417
2434
|
privacyCenter(lookup: { url: $url }) {
|
|
2418
2435
|
id
|
|
2419
2436
|
}
|
|
2420
2437
|
}
|
|
2421
|
-
`,Oo= exports.
|
|
2438
|
+
`,Oo= exports.Bb =_graphqlrequest.gql`
|
|
2422
2439
|
query TranscendCliDeployedPrivacyCenterUrl {
|
|
2423
2440
|
organization {
|
|
2424
2441
|
deployedPrivacyCenterUrl
|
|
2425
2442
|
}
|
|
2426
2443
|
}
|
|
2427
|
-
`,
|
|
2444
|
+
`,No= exports.Cb =_graphqlrequest.gql`
|
|
2428
2445
|
query TranscendCliFetchPrivacyCenters($url: String!) {
|
|
2429
2446
|
privacyCenter(lookup: { url: $url }) {
|
|
2430
2447
|
id
|
|
@@ -2449,7 +2466,7 @@
|
|
|
2449
2466
|
themeStr
|
|
2450
2467
|
}
|
|
2451
2468
|
}
|
|
2452
|
-
`,
|
|
2469
|
+
`,Mo= exports.Db =_graphqlrequest.gql`
|
|
2453
2470
|
mutation TranscendCliUpdatePrivacyCenter($input: UpdatePrivacyCenterInput!) {
|
|
2454
2471
|
updatePrivacyCenter(input: $input) {
|
|
2455
2472
|
clientMutationId
|
|
@@ -2464,7 +2481,7 @@
|
|
|
2464
2481
|
}
|
|
2465
2482
|
}
|
|
2466
2483
|
}
|
|
2467
|
-
`,Uo= exports.
|
|
2484
|
+
`,Uo= exports.Fb =_graphqlrequest.gql`
|
|
2468
2485
|
mutation TranscendCliLogin(
|
|
2469
2486
|
$email: String!
|
|
2470
2487
|
$password: String!
|
|
@@ -2487,7 +2504,7 @@
|
|
|
2487
2504
|
}
|
|
2488
2505
|
}
|
|
2489
2506
|
}
|
|
2490
|
-
`,Fo= exports.
|
|
2507
|
+
`,Fo= exports.Gb =_graphqlrequest.gql`
|
|
2491
2508
|
mutation TranscendCliAssumeRole($id: ID!, $publicKey: String!) {
|
|
2492
2509
|
assumeRole(id: $id, publicKey: $publicKey) {
|
|
2493
2510
|
clientMutationId
|
|
@@ -2562,7 +2579,7 @@
|
|
|
2562
2579
|
}
|
|
2563
2580
|
}
|
|
2564
2581
|
}
|
|
2565
|
-
`,Bo= exports.
|
|
2582
|
+
`,Bo= exports.Jb =_graphqlrequest.gql`
|
|
2566
2583
|
mutation TranscendCliCreateAgent($input: CreateAgentInput!) {
|
|
2567
2584
|
createAgent(input: $input) {
|
|
2568
2585
|
agent {
|
|
@@ -2572,7 +2589,7 @@
|
|
|
2572
2589
|
}
|
|
2573
2590
|
}
|
|
2574
2591
|
}
|
|
2575
|
-
`,Ko= exports.
|
|
2592
|
+
`,Ko= exports.Kb =_graphqlrequest.gql`
|
|
2576
2593
|
mutation TranscendCliUpdateAgents($input: UpdateAgentsInput!) {
|
|
2577
2594
|
updateAgents(input: $input) {
|
|
2578
2595
|
clientMutationId
|
|
@@ -2604,7 +2621,7 @@
|
|
|
2604
2621
|
}
|
|
2605
2622
|
}
|
|
2606
2623
|
}
|
|
2607
|
-
`,jo= exports.
|
|
2624
|
+
`,jo= exports.Mb =_graphqlrequest.gql`
|
|
2608
2625
|
mutation TranscendCliCreateAgentFile($input: CreateAgentFileInput!) {
|
|
2609
2626
|
createAgentFile(input: $input) {
|
|
2610
2627
|
agentFile {
|
|
@@ -2615,7 +2632,7 @@
|
|
|
2615
2632
|
}
|
|
2616
2633
|
}
|
|
2617
2634
|
}
|
|
2618
|
-
`,Yo= exports.
|
|
2635
|
+
`,Yo= exports.Nb =_graphqlrequest.gql`
|
|
2619
2636
|
mutation TranscendCliUpdateAgentFiles($input: UpdateAgentFilesInput!) {
|
|
2620
2637
|
updateAgentFiles(input: $input) {
|
|
2621
2638
|
clientMutationId
|
|
@@ -2639,7 +2656,7 @@
|
|
|
2639
2656
|
}
|
|
2640
2657
|
}
|
|
2641
2658
|
}
|
|
2642
|
-
`,Ho= exports.
|
|
2659
|
+
`,Ho= exports.Pb =_graphqlrequest.gql`
|
|
2643
2660
|
mutation TranscendCliCreateAgentFunction($input: CreateAgentFunctionInput!) {
|
|
2644
2661
|
createAgentFunction(input: $input) {
|
|
2645
2662
|
agentFunction {
|
|
@@ -2648,7 +2665,7 @@
|
|
|
2648
2665
|
}
|
|
2649
2666
|
}
|
|
2650
2667
|
}
|
|
2651
|
-
`,Wo= exports.
|
|
2668
|
+
`,Wo= exports.Qb =_graphqlrequest.gql`
|
|
2652
2669
|
mutation TranscendCliUpdateAgentFunctions(
|
|
2653
2670
|
$input: UpdateAgentFunctionsInput!
|
|
2654
2671
|
) {
|
|
@@ -2698,7 +2715,7 @@
|
|
|
2698
2715
|
}
|
|
2699
2716
|
}
|
|
2700
2717
|
}
|
|
2701
|
-
`,Jo= exports.
|
|
2718
|
+
`,Jo= exports.Sb =_graphqlrequest.gql`
|
|
2702
2719
|
mutation TranscendCliCreateVendor($input: CreateVendorInput!) {
|
|
2703
2720
|
createVendor(input: $input) {
|
|
2704
2721
|
vendor {
|
|
@@ -2707,7 +2724,7 @@
|
|
|
2707
2724
|
}
|
|
2708
2725
|
}
|
|
2709
2726
|
}
|
|
2710
|
-
`,Xo= exports.
|
|
2727
|
+
`,Xo= exports.Tb =_graphqlrequest.gql`
|
|
2711
2728
|
mutation TranscendCliUpdateVendor($input: UpdateVendorsInput!) {
|
|
2712
2729
|
updateVendors(input: $input) {
|
|
2713
2730
|
clientMutationId
|
|
@@ -2742,7 +2759,7 @@
|
|
|
2742
2759
|
}
|
|
2743
2760
|
}
|
|
2744
2761
|
}
|
|
2745
|
-
`,ts= exports.
|
|
2762
|
+
`,ts= exports.Vb =_graphqlrequest.gql`
|
|
2746
2763
|
mutation TranscendCliCreateDataSubCategory(
|
|
2747
2764
|
$input: CreateDataInventorySubCategoryInput!
|
|
2748
2765
|
) {
|
|
@@ -2754,7 +2771,7 @@
|
|
|
2754
2771
|
}
|
|
2755
2772
|
}
|
|
2756
2773
|
}
|
|
2757
|
-
`,ns= exports.
|
|
2774
|
+
`,ns= exports.Wb =_graphqlrequest.gql`
|
|
2758
2775
|
mutation TranscendCliUpdateDataSubCategories(
|
|
2759
2776
|
$input: UpdateDataSubCategoriesInput!
|
|
2760
2777
|
) {
|
|
@@ -2793,7 +2810,7 @@
|
|
|
2793
2810
|
}
|
|
2794
2811
|
}
|
|
2795
2812
|
}
|
|
2796
|
-
`,rs= exports.
|
|
2813
|
+
`,rs= exports.Yb =_graphqlrequest.gql`
|
|
2797
2814
|
mutation TranscendCliCreateProcessingPurposeSubCategory(
|
|
2798
2815
|
$input: CreateProcessingPurposeCategoryInput!
|
|
2799
2816
|
) {
|
|
@@ -2805,7 +2822,7 @@
|
|
|
2805
2822
|
}
|
|
2806
2823
|
}
|
|
2807
2824
|
}
|
|
2808
|
-
`,os= exports.
|
|
2825
|
+
`,os= exports.Zb =_graphqlrequest.gql`
|
|
2809
2826
|
mutation TranscendCliUpdateProcessingPurposeSubCategories(
|
|
2810
2827
|
$input: UpdateProcessingPurposeSubCategoriesInput!
|
|
2811
2828
|
) {
|
|
@@ -2821,10 +2838,10 @@
|
|
|
2821
2838
|
}
|
|
2822
2839
|
}
|
|
2823
2840
|
}
|
|
2824
|
-
`;var _colors = require('colors'); var _colors2 = _interopRequireDefault(_colors);var Ya=4;function Za(t){return new Promise(e=>{setTimeout(()=>e(t),t)})}var Ha=["syntax error","got invalid value","Client error","cannot affect row a second time","GRAPHQL_VALIDATION_FAILED"];async function p(t,e,n,r,i=Ya){let s=0;for(;;)try{return await t.request(e,n,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)),Ha.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")]),u=l?new Date(l).getTime()-new Date().getTime()+100:1e3*10;_chunkZUNVPK23cjs.a.log(_colors2.default.yellow(`DETECTED RATE LIMIT: ${o.message}. Sleeping for ${u}ms`)),await Za(u)}if(s>=i)throw o;s+=1,_chunkZUNVPK23cjs.a.log(_colors2.default.yellow(`REQUEST FAILED: ${o.message}. Retrying ${s}/${i}...`))}}var Pn=20;async function Sn(t){let e=[],n=0,r=!1;do{let{identifiers:{nodes:i}}=await p(t,ki,{first:Pn,offset:n});e.push(...i),n+=Pn,r=i.length===Pn}while(r);return e.sort((i,s)=>i.name.localeCompare(s.name))}async function as({enrichers:t=[],"data-silos":e=[],identifiers:n=[]},r,i=!1){let s=await Sn(r),o=_chunkUM5F6R4Icjs.e.call(void 0, s,"name"),l=_chunkUM5F6R4Icjs.j.call(void 0, [..._chunkUM5F6R4Icjs.a.call(void 0, t.map(c=>[c["input-identifier"],...c["output-identifiers"]])),..._chunkUM5F6R4Icjs.a.call(void 0, e.map(c=>c["identity-keys"])),...n.map(({name:c})=>c)]).filter(c=>!!c),u=_chunkUM5F6R4Icjs.c.call(void 0, l,s.map(({name:c})=>c));if(u.length>0){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating ${u.length} new identifiers...`));let{newIdentifierTypes:c}=await p(r,_i),d=c.map(({name:m})=>m);await P(u,async m=>{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating identifier ${m}...`));let{createIdentifier:g}=await p(r,Gi,{input:{name:m,type:d.includes(m)?m:"custom",skipPublish:i}});_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Created identifier ${m}!`)),o[m]=g.identifier})}return o}async function ps(t,{identifier:e,dataSubjectsByName:n,identifierId:r,skipPublish:i=!1}){await p(t,vi,{input:{id:r,selectOptions:e.selectOptions,isRequiredInForm:e.isRequiredInForm,regex:e.regex,placeholder:e.placeholder,displayTitle:e.displayTitle,displayDescription:e.displayDescription,displayOrder:e.displayOrder,privacyCenterVisibility:e.privacyCenterVisibility,dataSubjectIds:e.dataSubjects?e.dataSubjects.map(s=>n[s].id):void 0,skipPublish:i}})}var _privacytypes = require('@transcend-io/privacy-types');var En=20;async function Rn(t,e){let n=[],r=0,i=!1;do{let{enrichers:{nodes:s}}=await p(t,bi,{first:En,offset:r,title:e});n.push(...s),r+=En,i=s.length===En}while(i);return n.sort((s,o)=>s.title.localeCompare(o.title))}async function cs(t,{enricher:e,identifierByName:n,dataSubjectsByName:r}){let s=(await Rn(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 d=r[c];if(!d)throw new Error(`Failed to find a data subject with name: ${c}`);return d.id})]),l=e["input-identifier"],u=e["privacy-actions"]||Object.values(_privacytypes.RequestAction);s?await p(t,Di,{input:{id:s.id,title:e.title,url:e.url,headers:e.headers,testRegex:e.testRegex,lookerQueryTitle:e.lookerQueryTitle,expirationDuration:typeof e.expirationDuration=="number"?e.expirationDuration.toString():void 0,transitionRequestStatus:e.transitionRequestStatus,phoneNumbers:e.phoneNumbers,regionList:e.regionList,dataSubjectIds:o,description:e.description||"",inputIdentifier:l?n[l].id:void 0,identifiers:e["output-identifiers"].map(c=>n[c].id),...s.type===_privacytypes.EnricherType.Sombra?{}:{actions:u}}}):l&&await p(t,xi,{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:n[l].id,identifiers:e["output-identifiers"].map(c=>n[c].id),actions:u}})}async function ms(t,e,{existingAttribute:n,deleteExtraAttributeValues:r}){let i={name:e.name,enabledOn:e.resources},s;if(n)await p(t,Jr,{attributeKeyId:n.id,description:n.isCustom?e.description:void 0,...i}),s=n.id;else{let{createAttributeKey:{attributeKey:d}}=await p(t,zr,{type:e.type,description:e.description,...i});s=d.id}let o=_chunkUM5F6R4Icjs.e.call(void 0, _optionalChain([n, 'optionalAccess', _9 => _9.values])||[],"name"),{existingValues:l=[],newValues:u=[]}=_chunkUM5F6R4Icjs.d.call(void 0, e.values||[],d=>o[d.name]?"existingValues":"newValues"),c=_chunkUM5F6R4Icjs.c.call(void 0, (_optionalChain([n, 'optionalAccess', _10 => _10.values])||[]).map(({name:d})=>d),(e.values||[]).map(({name:d})=>d));u.length>0&&(await p(t,Yr,{input:u.map(({name:d,...m})=>({name:d,attributeKeyId:s,...m}))}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Created ${u.length} attribute values`))),l.length>0&&(await p(t,Zr,{input:l.map(({name:d,...m})=>({id:o[d].id,name:d,description:o[d].description,color:o[d].color,...m,attributeKeyId:s}))}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Updated ${l.length} attribute values`))),c.length>0&&r&&(await U(c,async d=>{await p(t,Hr,{id:o[d].id})},{concurrency:10}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Deleted ${c.length} attribute values`)))}async function ht(t){let{internalSubjects:e}=await p(t,qi);return e}async function us({"data-silos":t=[],"data-subjects":e=[],enrichers:n=[]},r,i=!1){let s=_chunkUM5F6R4Icjs.j.call(void 0, [..._chunkUM5F6R4Icjs.a.call(void 0, t.map(c=>c["data-subjects"]||[])||[]),..._chunkUM5F6R4Icjs.a.call(void 0, n.map(c=>c["data-subjects"]||[])||[]),...e.map(c=>c.type)]);if(s.length===0&&!i)return{};let o=await ht(r),l=_chunkUM5F6R4Icjs.e.call(void 0, o,"type"),u=_chunkUM5F6R4Icjs.c.call(void 0, s,o.map(({type:c})=>c));return u.length>0&&(_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating ${u.length} new data subjects...`)),await P(u,async c=>{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating data subject ${c}...`));let{createSubject:d}=await p(r,Oi,{type:c,skipPublish:!0});_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Created data subject ${c}!`)),l[c]=d.subject})),l}function ds(t,e){return t.forEach(n=>{if(!e[n])throw new Error(`Expected to find data subject definition: ${n}`)}),Object.values(e).filter(n=>!t.includes(n.type)).map(({id:n})=>n)}function fs(t,e){return t.forEach(n=>{if(!e[n])throw new Error(`Expected to find data subject definition: ${n}`)}),Object.values(e).filter(n=>!t.includes(n.type)).map(({type:n})=>n)}var _cliprogress = require('cli-progress'); var _cliprogress2 = _interopRequireDefault(_cliprogress);var _typeutils = require('@transcend-io/type-utils');var bn=20;async function ys(t,{titles:e,pageSize:n,ids:r=[],gql:i=Ri,integrationNames:s=[]}){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetching ${r.length===0?"all":r.length} Data Silos...`));let o=[],l=0,u=!1;do{let{dataSilos:{nodes:c}}=await p(t,i,{filterBy:{ids:r.length>0?r:void 0,type:s.length>0?s:void 0,titles:e},first:n,offset:l});o.push(...c),l+=n,u=c.length===n}while(u);return _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,d)=>c.title.localeCompare(d.title))}async function Ja(t,e,{debug:n,includeGuessedCategories:r,pageSize:i}){let s=[],o=0,l=!1;do try{n&&_chunkZUNVPK23cjs.a.log(_colors2.default.magenta(`Pulling in subdatapoints for offset ${o}`));let{subDataPoints:{nodes:u}}=await p(t,r?Si:Pi,{first:i,filterBy:{dataPoints:[e]},offset:o});s.push(...u),o+=i,l=u.length===i,n&&_chunkZUNVPK23cjs.a.log(_colors2.default.green(`Pulled in subdatapoints for offset ${o} for dataPointId=${e}`))}catch(u){throw _chunkZUNVPK23cjs.a.error(_colors2.default.red(`An error fetching subdatapoints for offset ${o} for dataPointId=${e}`)),u}while(l);return _chunkUM5F6R4Icjs.g.call(void 0, s,"name")}async function Xa(t,e,{debug:n,pageSize:r,skipSubDatapoints:i,includeGuessedCategories:s}){let o=[],l=0,u=!1;do{n&&_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetching datapoints with offset: ${l}`));let{dataPoints:{nodes:c}}=await p(t,Ti,{first:r,filterBy:{dataSilos:[e]},offset:l});n&&_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetched ${c.length} datapoints at offset: ${l}`)),i||(await U(c,async d=>{try{n&&_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetching subdatapoints for ${d.name} for datapoint offset ${l}`));let m=await Ja(t,d.id,{pageSize:1e3,debug:n,includeGuessedCategories:s});o.push({...d,subDataPoints:m.sort((g,h)=>g.name.localeCompare(h.name))}),n&&_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully fetched subdatapoints for ${d.name}`))}catch(m){throw _chunkZUNVPK23cjs.a.error(_colors2.default.red(`An error fetching subdatapoints for ${d.name} datapoint offset ${l}`)),m}},{concurrency:5}),n&&_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Fetched all subdatapoints for page of datapoints at offset: ${l}`))),l+=r,u=c.length===r}while(u);return o.sort((c,d)=>c.name.localeCompare(d.name))}async function Cs(t,{ids:e,pageSize:n,titles:r,debug:i,skipDatapoints:s,skipSubDatapoints:o,includeGuessedCategories:l,integrationNames:u}){let c=[],d=await ys(t,{titles:r,ids:e,integrationNames:u,pageSize:n,gql:wi});return s||await P(d,async(m,g)=>{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`[${g+1}/${d.length}] Fetching data silo - ${m.title}`));let h=await Xa(t,m.id,{debug:i,pageSize:n,skipSubDatapoints:o,includeGuessedCategories:l});i&&_chunkZUNVPK23cjs.a.info(_colors2.default.green(`[${g+1}/${d.length}] Successfully fetched datapoint for - ${m.title}`)),c.push([m,h])}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully fetched all ${d.length} data silo configurations`)),c}async function hs(t,e,{pageSize:n,dataSubjectsByName:r,apiKeysByTitle:i}){let s=!1,o=new Date().getTime();_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${t.length}" data silos...`));let l=await ys(e,{titles:t.map(({title:v})=>v),pageSize:n}),u=_chunkUM5F6R4Icjs.e.call(void 0, l,"title"),c=t.filter(({title:v})=>!u[v]);if(c.length>0){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${c.length}" data silos that did not exist...`));let v=_chunkUM5F6R4Icjs.b.call(void 0, c,bn);await P(v,async K=>{let{createDataSilos:{dataSilos:T}}=await p(e,$i,{input:K.map(Y=>({name:Y["outer-type"]||Y.integrationName,title:Y.title,country:Y.country,countrySubDivision:Y.countrySubDivision}))});T.forEach(Y=>{u[Y.title]=Y})}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created "${c.length}" data silos!`))}let d=_chunkUM5F6R4Icjs.b.call(void 0, t,bn);await P(d,async(v,K)=>{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`[Batch ${K+1}/${d.length}] Syncing "${v.length}" data silos`)),await p(e,en,{input:{dataSilos:v.map(T=>({id:u[T.title].id,country:T.country,countrySubDivision:T.countrySubDivision,url:T.url,headers:T.headers,description:T.description,identifiers:T["identity-keys"],isLive:!T.disabled,ownerEmails:T.owners,teamNames:T.teams,dependedOnDataSiloTitles:T["deletion-dependencies"]?void 0:[],apiKeyId:T["api-key-title"]?i[T["api-key-title"]].id:void 0,dataSubjectBlockListIds:T["data-subjects"]?ds(T["data-subjects"],r):void 0,attributes:T.attributes,businessEntityTitles:T.businessEntityTitles,notifyEmailAddress:_optionalChain([T, 'access', _11 => _11["email-settings"], 'optionalAccess', _12 => _12["notify-email-address"]]),promptAVendorEmailSendFrequency:_optionalChain([T, 'access', _13 => _13["email-settings"], 'optionalAccess', _14 => _14["send-frequency"]]),promptAVendorEmailSendType:_optionalChain([T, 'access', _15 => _15["email-settings"], 'optionalAccess', _16 => _16["send-type"]]),promptAVendorEmailIncludeIdentifiersAttachment:_optionalChain([T, 'access', _17 => _17["email-settings"], 'optionalAccess', _18 => _18["include-identifiers-attachment"]]),promptAVendorEmailCompletionLinkType:_optionalChain([T, 'access', _19 => _19["email-settings"], 'optionalAccess', _20 => _20["completion-link-type"]]),manualWorkRetryFrequency:_optionalChain([T, 'access', _21 => _21["email-settings"], 'optionalAccess', _22 => _22["manual-work-retry-frequency"]])}))}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`[Batch ${K+1}/${d.length}] Synced "${v.length}" data silos!`))});let m=new _cliprogress2.default.SingleBar({},_cliprogress2.default.Presets.shades_classic),g=t.filter(({datapoints:v=[]})=>v.length>0),h=t.map(({datapoints:v=[]})=>v.length).reduce((v,K)=>v+K,0);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${h}" datapoints from "${g.length}" data silos...`)),m.start(h,0);let I=0;await U(g,async({datapoints:v,title:K})=>{v&&await P(v,async T=>{let Y=T.fields?T.fields.map(({key:te,description:pe,categories:xe,purposes:De,attributes:Oe,...Le})=>({name:te,description:pe,categories:xe?xe.map(le=>({...le,name:le.name||"Other"})):void 0,purposes:De?De.map(le=>({...le,name:le.name||"Other"})):void 0,attributes:Oe,accessRequestVisibilityEnabled:Le["access-request-visibility-enabled"],erasureRequestRedactionEnabled:Le["erasure-request-redaction-enabled"]})):void 0,Z={dataSiloId:u[K].id,path:T.path,name:T.key,title:T.title,description:T.description,...T.owners?{ownerEmails:T.owners}:{},...T.teams?{teamNames:T.teams}:{},...T["data-collection-tag"]?{dataCollectionTag:T["data-collection-tag"]}:{},querySuggestions:T["privacy-action-queries"]?Object.entries(T["privacy-action-queries"]).map(([te,pe])=>({requestType:te,suggestedQuery:pe})):void 0,enabledActions:T["privacy-actions"]||[],subDataPoints:Y},qe=(Z.subDataPoints||[]).map(({name:te})=>te),be=qe.filter((te,pe)=>qe.indexOf(te)!==pe);if(be.length>0)_chunkZUNVPK23cjs.a.info(_colors2.default.red(`
|
|
2841
|
+
`;var _colors = require('colors'); var _colors2 = _interopRequireDefault(_colors);var ja=4;function Ya(t){return new Promise(e=>{setTimeout(()=>e(t),t)})}var Za=["syntax error","got invalid value","Client error","cannot affect row a second time","GRAPHQL_VALIDATION_FAILED"];async function p(t,e,n,r,i=ja){let s=0;for(;;)try{return await t.request(e,n,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)),Za.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")]),u=l?new Date(l).getTime()-new Date().getTime()+100:1e3*10;_chunkZUNVPK23cjs.a.log(_colors2.default.yellow(`DETECTED RATE LIMIT: ${o.message}. Sleeping for ${u}ms`)),await Ya(u)}if(s>=i)throw o;s+=1,_chunkZUNVPK23cjs.a.log(_colors2.default.yellow(`REQUEST FAILED: ${o.message}. Retrying ${s}/${i}...`))}}var Pn=20;async function Sn(t){let e=[],n=0,r=!1;do{let{identifiers:{nodes:i}}=await p(t,Li,{first:Pn,offset:n});e.push(...i),n+=Pn,r=i.length===Pn}while(r);return e.sort((i,s)=>i.name.localeCompare(s.name))}async function as({enrichers:t=[],"data-silos":e=[],identifiers:n=[]},r,i=!1){let s=await Sn(r),o=_chunkY4BWTFTXcjs.e.call(void 0, s,"name"),l=_chunkY4BWTFTXcjs.j.call(void 0, [..._chunkY4BWTFTXcjs.a.call(void 0, t.map(c=>[c["input-identifier"],...c["output-identifiers"]])),..._chunkY4BWTFTXcjs.a.call(void 0, e.map(c=>c["identity-keys"])),...n.map(({name:c})=>c)]).filter(c=>!!c),u=_chunkY4BWTFTXcjs.c.call(void 0, l,s.map(({name:c})=>c));if(u.length>0){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating ${u.length} new identifiers...`));let{newIdentifierTypes:c}=await p(r,ki),d=c.map(({name:m})=>m);await P(u,async m=>{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating identifier ${m}...`));let{createIdentifier:g}=await p(r,_i,{input:{name:m,type:d.includes(m)?m:"custom",skipPublish:i}});_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Created identifier ${m}!`)),o[m]=g.identifier})}return o}async function ps(t,{identifier:e,dataSubjectsByName:n,identifierId:r,skipPublish:i=!1}){await p(t,Gi,{input:{id:r,selectOptions:e.selectOptions,isRequiredInForm:e.isRequiredInForm,regex:e.regex,placeholder:e.placeholder,displayTitle:e.displayTitle,displayDescription:e.displayDescription,displayOrder:e.displayOrder,privacyCenterVisibility:e.privacyCenterVisibility,dataSubjectIds:e.dataSubjects?e.dataSubjects.map(s=>n[s].id):void 0,skipPublish:i}})}var _privacytypes = require('@transcend-io/privacy-types');var En=20;async function Rn(t,e){let n=[],r=0,i=!1;do{let{enrichers:{nodes:s}}=await p(t,$i,{first:En,offset:r,title:e});n.push(...s),r+=En,i=s.length===En}while(i);return n.sort((s,o)=>s.title.localeCompare(o.title))}async function cs(t,{enricher:e,identifierByName:n,dataSubjectsByName:r}){let s=(await Rn(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 d=r[c];if(!d)throw new Error(`Failed to find a data subject with name: ${c}`);return d.id})]),l=e["input-identifier"],u=e["privacy-actions"]||Object.values(_privacytypes.RequestAction);s?await p(t,xi,{input:{id:s.id,title:e.title,url:e.url,headers:e.headers,testRegex:e.testRegex,lookerQueryTitle:e.lookerQueryTitle,expirationDuration:typeof e.expirationDuration=="number"?e.expirationDuration.toString():void 0,transitionRequestStatus:e.transitionRequestStatus,phoneNumbers:e.phoneNumbers,regionList:e.regionList,dataSubjectIds:o,description:e.description||"",inputIdentifier:l?n[l].id:void 0,identifiers:e["output-identifiers"].map(c=>n[c].id),...s.type===_privacytypes.EnricherType.Sombra?{}:{actions:u}}}):l&&await p(t,bi,{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:n[l].id,identifiers:e["output-identifiers"].map(c=>n[c].id),actions:u}})}async function ms(t,e,{existingAttribute:n,deleteExtraAttributeValues:r}){let i={name:e.name,enabledOn:e.resources},s;if(n)await p(t,Jr,{attributeKeyId:n.id,description:n.isCustom?e.description:void 0,...i}),s=n.id;else{let{createAttributeKey:{attributeKey:d}}=await p(t,zr,{type:e.type,description:e.description,...i});s=d.id}let o=_chunkY4BWTFTXcjs.e.call(void 0, _optionalChain([n, 'optionalAccess', _9 => _9.values])||[],"name"),{existingValues:l=[],newValues:u=[]}=_chunkY4BWTFTXcjs.d.call(void 0, e.values||[],d=>o[d.name]?"existingValues":"newValues"),c=_chunkY4BWTFTXcjs.c.call(void 0, (_optionalChain([n, 'optionalAccess', _10 => _10.values])||[]).map(({name:d})=>d),(e.values||[]).map(({name:d})=>d));u.length>0&&(await p(t,Yr,{input:u.map(({name:d,...m})=>({name:d,attributeKeyId:s,...m}))}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Created ${u.length} attribute values`))),l.length>0&&(await p(t,Zr,{input:l.map(({name:d,...m})=>({id:o[d].id,name:d,description:o[d].description,color:o[d].color,...m,attributeKeyId:s}))}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Updated ${l.length} attribute values`))),c.length>0&&r&&(await U(c,async d=>{await p(t,Hr,{id:o[d].id})},{concurrency:10}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Deleted ${c.length} attribute values`)))}async function ht(t){let{internalSubjects:e}=await p(t,qi);return e}async function us({"data-silos":t=[],"data-subjects":e=[],enrichers:n=[]},r,i=!1){let s=_chunkY4BWTFTXcjs.j.call(void 0, [..._chunkY4BWTFTXcjs.a.call(void 0, t.map(c=>c["data-subjects"]||[])||[]),..._chunkY4BWTFTXcjs.a.call(void 0, n.map(c=>c["data-subjects"]||[])||[]),...e.map(c=>c.type)]);if(s.length===0&&!i)return{};let o=await ht(r),l=_chunkY4BWTFTXcjs.e.call(void 0, o,"type"),u=_chunkY4BWTFTXcjs.c.call(void 0, s,o.map(({type:c})=>c));return u.length>0&&(_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating ${u.length} new data subjects...`)),await P(u,async c=>{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating data subject ${c}...`));let{createSubject:d}=await p(r,vi,{type:c,skipPublish:!0});_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Created data subject ${c}!`)),l[c]=d.subject})),l}function ds(t,e){return t.forEach(n=>{if(!e[n])throw new Error(`Expected to find data subject definition: ${n}`)}),Object.values(e).filter(n=>!t.includes(n.type)).map(({id:n})=>n)}function fs(t,e){return t.forEach(n=>{if(!e[n])throw new Error(`Expected to find data subject definition: ${n}`)}),Object.values(e).filter(n=>!t.includes(n.type)).map(({type:n})=>n)}var _cliprogress = require('cli-progress'); var _cliprogress2 = _interopRequireDefault(_cliprogress);var _typeutils = require('@transcend-io/type-utils');var bn=20;async function ys(t,{titles:e,pageSize:n,ids:r=[],gql:i=Ei,integrationNames:s=[]}){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetching ${r.length===0?"all":r.length} Data Silos...`));let o=[],l=0,u=!1;do{let{dataSilos:{nodes:c}}=await p(t,i,{filterBy:{ids:r.length>0?r:void 0,type:s.length>0?s:void 0,titles:e},first:n,offset:l});o.push(...c),l+=n,u=c.length===n}while(u);return _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,d)=>c.title.localeCompare(d.title))}async function za(t,e,{debug:n,includeGuessedCategories:r,pageSize:i}){let s=[],o=0,l=!1;do try{n&&_chunkZUNVPK23cjs.a.log(_colors2.default.magenta(`Pulling in subdatapoints for offset ${o}`));let{subDataPoints:{nodes:u}}=await p(t,r?Pi:Ti,{first:i,filterBy:{dataPoints:[e]},offset:o});s.push(...u),o+=i,l=u.length===i,n&&_chunkZUNVPK23cjs.a.log(_colors2.default.green(`Pulled in subdatapoints for offset ${o} for dataPointId=${e}`))}catch(u){throw _chunkZUNVPK23cjs.a.error(_colors2.default.red(`An error fetching subdatapoints for offset ${o} for dataPointId=${e}`)),u}while(l);return _chunkY4BWTFTXcjs.g.call(void 0, s,"name")}async function Ja(t,e,{debug:n,pageSize:r,skipSubDatapoints:i,includeGuessedCategories:s}){let o=[],l=0,u=!1;do{n&&_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetching datapoints with offset: ${l}`));let{dataPoints:{nodes:c}}=await p(t,Ai,{first:r,filterBy:{dataSilos:[e]},offset:l});n&&_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetched ${c.length} datapoints at offset: ${l}`)),i||(await U(c,async d=>{try{n&&_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetching subdatapoints for ${d.name} for datapoint offset ${l}`));let m=await za(t,d.id,{pageSize:1e3,debug:n,includeGuessedCategories:s});o.push({...d,subDataPoints:m.sort((g,h)=>g.name.localeCompare(h.name))}),n&&_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully fetched subdatapoints for ${d.name}`))}catch(m){throw _chunkZUNVPK23cjs.a.error(_colors2.default.red(`An error fetching subdatapoints for ${d.name} datapoint offset ${l}`)),m}},{concurrency:5}),n&&_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Fetched all subdatapoints for page of datapoints at offset: ${l}`))),l+=r,u=c.length===r}while(u);return o.sort((c,d)=>c.name.localeCompare(d.name))}async function Cs(t,{ids:e,pageSize:n,titles:r,debug:i,skipDatapoints:s,skipSubDatapoints:o,includeGuessedCategories:l,integrationNames:u}){let c=[],d=await ys(t,{titles:r,ids:e,integrationNames:u,pageSize:n,gql:Ri});return s||await P(d,async(m,g)=>{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`[${g+1}/${d.length}] Fetching data silo - ${m.title}`));let h=await Ja(t,m.id,{debug:i,pageSize:n,skipSubDatapoints:o,includeGuessedCategories:l});i&&_chunkZUNVPK23cjs.a.info(_colors2.default.green(`[${g+1}/${d.length}] Successfully fetched datapoint for - ${m.title}`)),c.push([m,h])}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully fetched all ${d.length} data silo configurations`)),c}async function hs(t,e,{pageSize:n,dataSubjectsByName:r,apiKeysByTitle:i}){let s=!1,o=new Date().getTime();_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${t.length}" data silos...`));let l=await ys(e,{titles:t.map(({title:q})=>q),pageSize:n}),u=_chunkY4BWTFTXcjs.e.call(void 0, l,"title"),c=t.filter(({title:q})=>!u[q]);if(c.length>0){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${c.length}" data silos that did not exist...`));let q=_chunkY4BWTFTXcjs.b.call(void 0, c,bn);await P(q,async K=>{let{createDataSilos:{dataSilos:T}}=await p(e,wi,{input:K.map(Y=>({name:Y["outer-type"]||Y.integrationName,title:Y.title,country:Y.country,countrySubDivision:Y.countrySubDivision}))});T.forEach(Y=>{u[Y.title]=Y})}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created "${c.length}" data silos!`))}let d=_chunkY4BWTFTXcjs.b.call(void 0, t,bn);await P(d,async(q,K)=>{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`[Batch ${K+1}/${d.length}] Syncing "${q.length}" data silos`)),await p(e,en,{input:{dataSilos:q.map(T=>({id:u[T.title].id,country:T.country,countrySubDivision:T.countrySubDivision,url:T.url,headers:T.headers,description:T.description,identifiers:T["identity-keys"],isLive:!T.disabled,ownerEmails:T.owners,teamNames:T.teams,dependedOnDataSiloTitles:T["deletion-dependencies"]?void 0:[],apiKeyId:T["api-key-title"]?i[T["api-key-title"]].id:void 0,dataSubjectBlockListIds:T["data-subjects"]?ds(T["data-subjects"],r):void 0,attributes:T.attributes,businessEntityTitles:T.businessEntityTitles,notifyEmailAddress:_optionalChain([T, 'access', _11 => _11["email-settings"], 'optionalAccess', _12 => _12["notify-email-address"]]),promptAVendorEmailSendFrequency:_optionalChain([T, 'access', _13 => _13["email-settings"], 'optionalAccess', _14 => _14["send-frequency"]]),promptAVendorEmailSendType:_optionalChain([T, 'access', _15 => _15["email-settings"], 'optionalAccess', _16 => _16["send-type"]]),promptAVendorEmailIncludeIdentifiersAttachment:_optionalChain([T, 'access', _17 => _17["email-settings"], 'optionalAccess', _18 => _18["include-identifiers-attachment"]]),promptAVendorEmailCompletionLinkType:_optionalChain([T, 'access', _19 => _19["email-settings"], 'optionalAccess', _20 => _20["completion-link-type"]]),manualWorkRetryFrequency:_optionalChain([T, 'access', _21 => _21["email-settings"], 'optionalAccess', _22 => _22["manual-work-retry-frequency"]])}))}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`[Batch ${K+1}/${d.length}] Synced "${q.length}" data silos!`))});let m=new _cliprogress2.default.SingleBar({},_cliprogress2.default.Presets.shades_classic),g=t.filter(({datapoints:q=[]})=>q.length>0),h=t.map(({datapoints:q=[]})=>q.length).reduce((q,K)=>q+K,0);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${h}" datapoints from "${g.length}" data silos...`)),m.start(h,0);let I=0;await U(g,async({datapoints:q,title:K})=>{q&&await P(q,async T=>{let Y=T.fields?T.fields.map(({key:te,description:pe,categories:xe,purposes:De,attributes:Oe,...Le})=>({name:te,description:pe,categories:xe?xe.map(le=>({...le,name:le.name||"Other"})):void 0,purposes:De?De.map(le=>({...le,name:le.name||"Other"})):void 0,attributes:Oe,accessRequestVisibilityEnabled:Le["access-request-visibility-enabled"],erasureRequestRedactionEnabled:Le["erasure-request-redaction-enabled"]})):void 0,Z={dataSiloId:u[K].id,path:T.path,name:T.key,title:T.title,description:T.description,...T.owners?{ownerEmails:T.owners}:{},...T.teams?{teamNames:T.teams}:{},...T["data-collection-tag"]?{dataCollectionTag:T["data-collection-tag"]}:{},querySuggestions:T["privacy-action-queries"]?Object.entries(T["privacy-action-queries"]).map(([te,pe])=>({requestType:te,suggestedQuery:pe})):void 0,enabledActions:T["privacy-actions"]||[],subDataPoints:Y},ve=(Z.subDataPoints||[]).map(({name:te})=>te),be=ve.filter((te,pe)=>ve.indexOf(te)!==pe);if(be.length>0)_chunkZUNVPK23cjs.a.info(_colors2.default.red(`
|
|
2825
2842
|
Cannot update datapoint "${T.key}" as it has duplicate sub-datapoints with the same name:
|
|
2826
2843
|
${be.join(`
|
|
2827
|
-
`)}`)),s=!0;else try{await p(e,
|
|
2844
|
+
`)}`)),s=!0;else try{await p(e,Si,Z)}catch(te){_chunkZUNVPK23cjs.a.info(_colors2.default.red(`
|
|
2828
2845
|
Failed to update datapoint "${T.key}" for data silo "${K}"! -
|
|
2829
|
-
${te.message}`)),s=!0}I+=1,m.update(I)})},{concurrency:10}),m.stop();let z=new Date().getTime()-o;return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${t.length}" data silos and "${h}" datapoints in "${z/1e3}" seconds!`)),{success:!s,dataSiloTitleToId:_typeutils.apply.call(void 0, u,({id:v})=>v)}}async function Is(t,e){let n=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" data silo dependencies...`));let r=_chunkUM5F6R4Icjs.b.call(void 0, e,bn);return await P(r,async(i,s)=>{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`[Batch ${s}/${i.length}] Updating "${i.length}" data silos...`));try{await p(t,en,{input:{dataSilos:i.map(([o,l])=>({id:o,dependedOnDataSiloTitles:l}))}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`[Batch ${s+1}/${i.length}] Synced "${i.length}" data silos!`))}catch(o){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`[Batch ${s+1}/${i.length}] Failed to update "${i.length}" silos! - ${o.message}`))}}),!n}async function As(t){let{consentManager:{consentManager:e}}=await p(t,po);return e}async function oe(t,e){let{consentManager:{consentManager:n}}=await p(t,ao,{},{},e);return n.id}var xn=50;async function xt(t){let e=[],n=0,r=!1;do{let{experiences:{nodes:i}}=await p(t,eo,{first:xn,offset:n});e.push(...i),n+=xn,r=i.length===xn}while(r);return e.sort((i,s)=>i.name.localeCompare(s.name))}var ep=(n=>(n.Hourly="1h",n.Daily="1d",n))(ep||{});async function xd(t,e){let{analyticsData:{series:n}}=await p(t,wo,{input:e});return n}async function Ts(t,e){let{consentManagerTheme:{theme:n}}=await p(t,lo,{airgapBundleId:e});return n}var tp=100;async function np(t,e){let n=await oe(t);await P(_chunkUM5F6R4Icjs.b.call(void 0, e,tp),async r=>{await p(t,ro,{airgapBundleId:n,cookies:r.map(i=>({name:i.name,trackingPurposes:i.trackingPurposes&&i.trackingPurposes.length>0?i.trackingPurposes:void 0,description:i.description,service:i.service,status:i.status,attributes:i.attributes,isRegex:i.isRegex}))})})}async function Ps(t,e){let n=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" cookies...`));let r=e.filter(i=>e.filter(s=>i.name===s.name&&i.isRegex===s.isRegex).length>1);if(r.length>0)throw new Error(`Failed to upload cookies as there were non-unique entries found: ${r.map(({name:i})=>i).join(",")}`);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Upserting "${e.length}" new cookies...`)),await np(t,e),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced ${e.length} cookies!`))}catch(i){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create cookies! - ${i.message}`))}return!n}var Dn=20;async function Lt(t){let e=[],n=0,r=!1;do{let{teams:{nodes:i}}=await p(t,_r,{first:Dn,offset:n});e.push(...i),n+=Dn,r=i.length===Dn}while(r);return e.sort((i,s)=>i.name.localeCompare(s.name))}async function Ss(t,{dataSubject:e,dataSubjectId:n,skipPublish:r=!1}){await p(t,Mi,{input:{id:n,title:e.title,adminDashboardDefaultSilentMode:e.adminDashboardDefaultSilentMode,actions:e.actions,skipPublish:r&&typeof e.active>"u"}}),typeof e.active=="boolean"&&await p(t,Ni,{input:{id:n,active:e.active,skipPublish:r}})}var Ln=20,ip="https://app.transcend.io/infrastructure/api-keys";async function rp(t,e){let n=[],r=0,i=!1;do{let{apiKeys:{nodes:s}}=await p(t,Bi,{first:Ln,offset:r,titles:e});n.push(...s),r+=Ln,i=s.length===Ln}while(i);return n.sort((s,o)=>s.title.localeCompare(o.title))}async function kt({"api-keys":t=[],"data-silos":e=[]},n,r=!1){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetching ${r?"all":t.length} API keys...`));let i=t.map(({title:d})=>d),s=_chunkUM5F6R4Icjs.j.call(void 0, e.map(d=>d["api-key-title"]).filter(d=>!!d)),o=[...s,...i],l=await rp(n,r?void 0:[...s,...i]),u=_chunkUM5F6R4Icjs.e.call(void 0, l,"title"),c=_chunkUM5F6R4Icjs.c.call(void 0, o,l.map(({title:d})=>d));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: ${ip}`)),process.exit(1)),u}var kn=20;async function Ze(t,{text:e,titles:n=[],ids:r=[]}={}){let i=[],s=0,o=!1;do{let{prompts:{nodes:l}}=await p(t,Tr,{first:kn,offset:s,filterBy:{...e?{text:e}:{},...n.length>0?{title:n}:{},...r.length>0?{id:r}:{}}});i.push(...l),s+=kn,o=l.length===kn}while(o);return i.sort((l,u)=>l.title.localeCompare(u.title))}async function Xd(t,{promptTitles:e=[],promptIds:n=[]}={}){let{promptsWithVariables:r}=await p(t,Er,{input:{...e.length>0?{promptTitles:e}:{},...n.length>0?{promptIds:n}:{}}});return r}async function op(t,e){let{createPrompt:{prompt:n}}=await p(t,wr,{input:e});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created prompt "${e.title}"!`)),n.id}async function sp(t,e){await p(t,Rr,{input:{prompts:e.map(([n,r])=>({...n,id:r}))}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated ${e.length} prompts!`))}async function Rs(t,e,n=20){let r=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" prompts...`));let i=await Ze(t),s=_chunkUM5F6R4Icjs.e.call(void 0, i,"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 U(l,async c=>{await op(t,c)},{concurrency:n}),_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 u=o.filter(c=>!!c[1]);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${u.length}" prompts...`)),await sp(t,u),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated "${u.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 It(t){let{organization:e}=await p(t,Oo);return e.deployedPrivacyCenterUrl}async function He(t,e){let n=e;n||(n=await It(t));let{privacyCenter:r}=await p(t,qo,{url:n});return r.id}async function _t(t){let e=await It(t),{privacyCenterPolicies:n}=await p(t,pr,{url:e});return n.sort((r,i)=>r.title.defaultMessage.localeCompare(i.title.defaultMessage))}var ap=100;async function pp(t,e){let n=await He(t);await P(_chunkUM5F6R4Icjs.b.call(void 0, e,ap),async r=>{await p(t,lr,{privacyCenterId:n,policies:r.map(([i,s])=>({id:s,title:i.title,disableEffectiveOn:i.disableEffectiveOn,disabledLocales:i.disabledLocales,...i.effectiveOn||i.content?{version:{...i.effectiveOn?{effectiveOn:i.effectiveOn}:{},...i.content?{content:{defaultMessage:i.content}}:{}}}:{}}))})})}async function ws(t,e){let n=!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 i=await _t(t),s=_chunkUM5F6R4Icjs.e.call(void 0, i,({title:o})=>o.defaultMessage);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Upserting "${e.length}" new policies...`)),await pp(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){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create policies! - ${o.message}`))}return!n}var lp=100;async function cp(t,e){await P(_chunkUM5F6R4Icjs.b.call(void 0, e,lp),async n=>{await p(t,dr,{messages:n.map(r=>({...r.id.includes(".")?{}:{id:r.id},defaultMessage:r.defaultMessage,targetReactIntlId:r.targetReactIntlId,translations:r.translations?Object.entries(r.translations).map(([i,s])=>({locale:i,value:s})):void 0}))})})}async function $s(t,e){let n=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" messages...`));let r=e.filter(i=>e.filter(s=>i.id===s.id).length>1);if(r.length>0)throw new Error(`Failed to upload messages as there were non-unique entries found: ${r.map(({id:i})=>i).join(",")}`);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Upserting "${e.length}" new messages...`)),await cp(t,e),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced ${e.length} messages!`))}catch(i){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create messages! - ${i.message}`))}return!n}async function bs(t,e){let n=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Syncing privacy center..."));let r=await He(t);try{await p(t,No,{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(i){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create privacy center! - ${i.message}`))}return!n}var Gn=50;async function At(t){let e=[],n=0,r=!1;do{let{consentPartitions:{nodes:i}}=await p(t,to,{first:Gn,offset:n});e.push(...i),n+=Gn,r=i.length===Gn}while(r);return e.sort((i,s)=>i.name.localeCompare(s.name))}async function Ds(t,e){let n=await oe(t),r=!1,i=await At(t),s=_chunkUM5F6R4Icjs.c.call(void 0, e.map(({name:o})=>o),i.map(({name:o})=>o));return await P(s,async o=>{try{await p(t,Ro,{input:{id:n,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 vn=20;async function qt(t,{includeDeleted:e=!1}={}){let n=[],r=0,i=!1;do{let{purposes:{nodes:s}}=await p(t,hr,{first:vn,offset:r,input:{includeDeleted:e}});n.push(...s),r+=vn,i=s.length===vn}while(i);return n.sort((s,o)=>s.trackingType.localeCompare(o.trackingType))}var _airgapjstypes = require('@transcend-io/airgap.js-types');var ks="https://app.transcend.io/consent-manager/regional-experiences/purposes";async function dp(t,e){let n=await xt(t),r=_chunkUM5F6R4Icjs.e.call(void 0, n,"name"),i=await qt(t),s=_chunkUM5F6R4Icjs.e.call(void 0, i,"trackingType");await U(e,async(o,l)=>{let u=_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 ${ks}`);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 ${ks}`);return h.id})]),d=r[o.name];d?(await p(t,So,{input:{id:d.id,name:o.displayName,regions:o.regions,operator:o.operator,onConsentExpiry:o.onConsentExpiry,consentExpiry:o.consentExpiry,displayPriority:o.displayPriority!==d.displayPriority?o.displayPriority:void 0,viewState:o.viewState,purposes:u,optedOutPurposes:c,browserLanguages:o.browserLanguages,browserTimeZones:o.browserTimeZones}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced consent experience "${o.name}"!`))):(await p(t,Eo,{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:u||[],optedOutPurposes:c||[],browserLanguages:o.browserLanguages,browserTimeZones:o.browserTimeZones}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created consent experience "${o.name}"!`)))},{concurrency:10})}async function _s(t,e){let n;try{n=await oe(t,1)}catch(r){if(r.message.includes("AirgapBundle not found")){let i=await He(t),{createConsentManager:s}=await p(t,co,{domains:e.domains,privacyCenterId:i});n=s.consentManager.id}else throw r}if(e.domains&&await p(t,go,{domains:e.domains,airgapBundleId:n}),e.partition){let i=(await At(t)).find(s=>s.name===e.partition);if(!i)throw new Error(`Partition "${e.partition}" not found. Please create the partition first.`);await p(t,yo,{partitionId:i.id,airgapBundleId:n})}e.version&&await p(t,mo,{airgapBundleId:n,version:e.version}),e.signedIabAgreement&&await p(t,Co,{input:{id:n,...e.signedIabAgreement?{signedIabAgreement:e.signedIabAgreement}:{}}}),e.unknownRequestPolicy&&await p(t,ho,{input:{id:n,unknownRequestPolicy:e.unknownRequestPolicy}}),e.unknownRequestPolicy&&await p(t,Io,{input:{id:n,unknownCookiePolicy:e.unknownCookiePolicy}}),e.telemetryPartitioning&&await p(t,Ao,{input:{id:n,strategy:e.telemetryPartitioning}}),e.consentPrecedence&&await p(t,To,{input:{id:n,consentPrecedence:e.consentPrecedence}}),e.experiences&&await dp(t,e.experiences),e.theme&&await p(t,Po,{input:{airgapBundleId:n,...e.theme}})}var We=100;async function fp(t,e){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetching all attribute values for ${e}...`));let n=[],r=0,i=!1;do{let{attributeValues:{nodes:s}}=await p(t,Wr,{first:We,offset:r,attributeKeyId:e});n.push(...s),r+=We,i=s.length===We}while(i);return n.sort((s,o)=>s.name.localeCompare(o.name))}var gp=[_privacytypes.AttributeKeyType.MultiSelect,_privacytypes.AttributeKeyType.SingleSelect];async function ze(t){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Fetching all attributes..."));let e=[],n=0,r=!1;do{let{attributeKeys:{nodes:i}}=await p(t,jr,{first:We,offset:n});e.push(...await Promise.all(i.map(async s=>({...s,values:gp.includes(s.type)?await fp(t,s.id):[]})))),n+=We,r=i.length===We}while(r);return e.sort((i,s)=>i.name.localeCompare(s.name))}var qn=20;async function Ot(t){let e=[],n=0,r=!1;do{let{businessEntities:{nodes:i}}=await p(t,$o,{first:qn,offset:n});e.push(...i),n+=qn,r=i.length===qn}while(r);return e.sort((i,s)=>i.title.localeCompare(s.title))}async function yp(t,e){let n={title:e.title,description:e.description,address:e.address,headquarterCountry:e.headquarterCountry,headquarterSubDivision:e.headquarterSubDivision,dataProtectionOfficerName:e.dataProtectionOfficerName,dataProtectionOfficerEmail:e.dataProtectionOfficerEmail,attributes:e.attributes,teamNames:e.teams,ownerEmails:e.owners},{createBusinessEntity:r}=await p(t,bo,{input:n});return r.businessEntity}async function Cp(t,e){let n=_chunkUM5F6R4Icjs.b.call(void 0, e,100);await P(n,async r=>{await p(t,xo,{input:r.map(([i,s])=>({id:s,title:i.title,description:i.description,address:i.address,headquarterCountry:i.headquarterCountry,headquarterSubDivision:i.headquarterSubDivision,dataProtectionOfficerName:i.dataProtectionOfficerName,dataProtectionOfficerEmail:i.dataProtectionOfficerEmail,attributes:i.attributes,teamNames:i.teams,ownerEmails:i.owners}))})})}async function qs(t,e){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" business entities...`));let n=!1,r=await Ot(t),i=_chunkUM5F6R4Icjs.e.call(void 0, r,"title"),s=e.filter(o=>!i[o.title]);await P(s,async o=>{try{let l=await yp(t,o);i[l.title]=l,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced business entity "${o.title}"!`))}catch(l){n=!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 Cp(t,e.map(o=>[o,i[o.title].id])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced "${e.length}" business entities!`))}catch(o){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync "${e.length}" business entities ! - ${o.message}`))}return!n}var On=20;async function Xe(t,e=_privacytypes.ConsentTrackerStatus.Live){let n=[],r=0,i=await oe(t),s=!1;do{let{dataFlows:{nodes:o}}=await p(t,oo,{first:On,offset:r,airgapBundleId:i,status:e,...e===_privacytypes.ConsentTrackerStatus.NeedsReview?{showZeroActivity:!0}:{}});n.push(...o),r+=On,s=o.length===On}while(s);return n.sort((o,l)=>o.value.localeCompare(l.value))}var Ns=100;async function hp(t,e,n=!1){let r=await oe(t);await P(_chunkUM5F6R4Icjs.b.call(void 0, e,Ns),async i=>{await p(t,io,{airgapBundleId:r,dataFlows:i.map(([s,o])=>({id:o,value:s.value,type:s.type,trackingType:s.trackingPurposes&&s.trackingPurposes.length>0?s.trackingPurposes:void 0,description:s.description,service:s.service,status:s.status,attributes:s.attributes})),classifyService:n})})}async function Ip(t,e,n=!1){let r=await oe(t);await P(_chunkUM5F6R4Icjs.b.call(void 0, e,Ns),async i=>{await p(t,no,{airgapBundleId:r,dataFlows:i.map(s=>({value:s.value,type:s.type,trackingType:s.trackingPurposes&&s.trackingPurposes.length>0?s.trackingPurposes:void 0,description:s.description,service:s.service,status:s.status,attributes:s.attributes})),dropMatchingDataFlowsInTriage:!0,classifyService:n})})}async function Us(t,e,n){let r=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" data flows...`));let i=e.filter(m=>e.filter(g=>m.value===g.value&&m.type===g.type).length>1);if(i.length>0)throw new Error(`Failed to upload data flows as there were non-unique entries found: ${i.map(({value:m})=>m).join(",")}`);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Fetching data flows..."));let[s,o]=await Promise.all([Xe(t,_privacytypes.ConsentTrackerStatus.Live),Xe(t,_privacytypes.ConsentTrackerStatus.NeedsReview)]),l=[...s,...o],u=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=u.filter(([,m])=>!m).map(([m])=>m);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${c.length}" new data flows...`)),await Ip(t,c,n),_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 d=u.filter(m=>!!m[1]);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${d.length}" data flows...`)),await hp(t,d,n),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated "${d.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 Pp=[...Object.values(_privacytypes.IsoCountryCode),...Object.values(_privacytypes.IsoCountrySubdivisionCode)];async function Fs(t,{action:e,actionId:n,skipPublish:r=!1}){await p(t,ko,{input:{id:n,skipSecondaryIfNoFiles:e.skipSecondaryIfNoFiles,skipDownloadableStep:e.skipDownloadableStep,requiresReview:e.requiresReview,waitingPeriod:e.waitingPeriod,skipPublish:r,regionList:e.regionBlockList?_chunkUM5F6R4Icjs.c.call(void 0, Pp,e.regionBlockList):e.regionList,regionDetectionMethod:e.regionDetectionMethod}})}var Mn=20;async function Nn(t,e){let n=[],r=0,i=!1;do{let{templates:{nodes:s}}=await p(t,Wi,{first:Mn,offset:r,title:e});n.push(...s),r+=Mn,i=s.length===Mn}while(i);return n.sort((s,o)=>s.title.localeCompare(o.title))}async function Qs(t,e){(await Nn(e,t.title)).find(({title:i})=>i===t.title)||await p(e,zi,{title:t.title})}var Un=20;async function Mt(t){let e=[],n=0,r=!1;do{let{actions:{nodes:i}}=await p(t,Lo,{first:Un,offset:n});e.push(...i),n+=Un,r=i.length===Un}while(r);return e.sort((i,s)=>i.type.localeCompare(s.type))}var Fn=20;async function Nt(t){let e=[],n=0,r=!1;do{let{promptPartials:{nodes:i}}=await p(t,Pr,{first:Fn,offset:n});e.push(...i),n+=Fn,r=i.length===Fn}while(r);return e.sort((i,s)=>i.title.localeCompare(s.title))}var Qn=20;async function Ut(t){let e=[],n=0,r=!1;do{let{promptGroups:{nodes:i}}=await p(t,Sr,{first:Qn,offset:n});e.push(...i),n+=Qn,r=i.length===Qn}while(r);return e.sort((i,s)=>i.title.localeCompare(s.title))}var Bn=20;async function Ft(t,e={}){let n=[],r=0,i=!1;do{let{agents:{nodes:s}}=await p(t,Qo,{first:Bn,offset:r,filterBy:e});n.push(...s),r+=Bn,i=s.length===Bn}while(i);return n.sort((s,o)=>s.name.localeCompare(o.name))}async function Sp(t,e){let n={name:e.name,description:e.description,codeInterpreterEnabled:e.codeInterpreterEnabled,retrievalEnabled:e.retrievalEnabled,promptTitle:e.prompt,largeLanguageModelName:e["large-language-model"].name,largeLanguageModelClient:e["large-language-model"].client},{createAgent:r}=await p(t,Bo,{input:n});return r.agent}async function Ep(t,e){await p(t,Ko,{input:{agents:e.map(([n,r])=>({id:r,name:n.name,description:n.description,codeInterpreterEnabled:n.codeInterpreterEnabled,retrievalEnabled:n.retrievalEnabled}))}})}async function Bs(t,e){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" agents...`));let n=!1,r=await Ft(t),i=_chunkUM5F6R4Icjs.e.call(void 0, r,"name"),s=e.filter(o=>!i[o.name]);await P(s,async o=>{try{let l=await Sp(t,o);i[l.name]=l,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced agent "${o.name}"!`))}catch(l){n=!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 Ep(t,e.map(o=>[o,i[o.name].id])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced "${e.length}" agents!`))}catch(o){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync "${e.length}" agents ! - ${o.message}`))}return!n}async function tt(t,e={}){let{globalActionItemCollections:{nodes:n}}=await p(t,Br,{filterBy:{...e}});return n}async function Rp(t,e){let n={title:e.title,description:e.description||"",hidden:e.hidden||!1,productLine:e.productLine},{createActionItemCollection:r}=await p(t,Kr,{input:n});return r.created}async function wp(t,e,n){await p(t,Vr,{input:{id:n,title:e.title,description:e.description,hidden:e.hidden,productLine:e.productLine}})}async function Ks(t,e){let n=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" action item collections...`));let r=await tt(t),i=_chunkUM5F6R4Icjs.e.call(void 0, r,"title"),s=e.filter(l=>!i[l.title]);await P(s,async l=>{try{await Rp(t,l),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created action item collection "${l.title}"!`))}catch(u){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create action item collection "${l.title}"! - ${u.message}`))}});let o=e.map(l=>[l,_optionalChain([i, 'access', _36 => _36[l.title], 'optionalAccess', _37 => _37.id])]).filter(l=>!!l[1]);return await P(o,async([l,u])=>{try{await wp(t,l,u),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced action item collection "${l.title}"!`))}catch(c){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync action item collection "${l.title}"! - ${c.message}`))}}),!n}var Kn=20;async function Qt(t,e={}){let n=[],r=0,i=!1;do{let{globalActionItems:{nodes:s}}=await p(t,_o,{first:Kn,offset:r,filterBy:{...e,...e.startDueDate?{startDueDate:e.startDueDate.toISOString()}:{},...e.endDueDate?{endDueDate:e.endDueDate.toISOString()}:{}}});n.push(...s.map(o=>({...o,id:o.ids[0],title:o.titles[0],notes:o.notes[0],link:o.links[0]}))),r+=Kn,i=s.length===Kn}while(i);return n}async function $p(t,e,n,r={}){let i=_chunkUM5F6R4Icjs.b.call(void 0, e,100);await P(i,async s=>{await p(t,vo,{input:s.map(o=>({title:o.title,type:o.type,priorityOverride:o.priority,dueDate:o.dueDate,customerExperienceActionItemId:o.customerExperienceActionItemId,resolved:o.resolved,notes:o.notes,link:o.link,assigneesUserEmails:o.users,assigneesTeamNames:o.teams,...o.attributes?{}:{},collectionIds:o.collections.map(l=>n[l].id)}))})})}async function bp(t,e,n,r={}){let i=s=>{let o=r[s];if(!o)throw new Error(`Attribute key "${s}" does not exist!`);return o.id};await p(t,Go,{input:{ids:[n],title:e.title,priorityOverride:e.priority,dueDate:e.dueDate,resolved:e.resolved,customerExperienceActionItemId:e.customerExperienceActionItemId,notes:e.notes,link:e.link,assigneesUserEmails:e.users,assigneesTeamNames:e.teams,...e.attributes?{attributes:e.attributes.map(({key:s,values:o})=>({attributeKeyId:i(s),attributeValueNames:o}))}:{}}})}function xp({title:t,collections:e}){return`${t}-${e.map(n=>n.title).sort().join("-")}`}function Vs({title:t,collections:e}){return`${t}-${e.sort().join("-")}`}async function js(t,e){let n=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" actionItems...`));let r=e.some(I=>I.attributes&&I.attributes.length>0),[i,s,o]=await Promise.all([Qt(t),tt(t),r?ze(t):[]]),l=_chunkUM5F6R4Icjs.e.call(void 0, s,"title"),u=_chunkUM5F6R4Icjs.e.call(void 0, i,xp),c=_chunkUM5F6R4Icjs.e.call(void 0, o,"name"),d=_chunkUM5F6R4Icjs.e.call(void 0, i.filter(I=>!!I.customerExperienceActionItemIds),({customerExperienceActionItemIds:I})=>I[0]),m=_chunkUM5F6R4Icjs.j.call(void 0, e.map(I=>I.collections).flat()).filter(I=>!l[I]);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(I=>!u[Vs(I)]&&!d[I.customerExperienceActionItemId]);if(g.length>0)try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${g.length}" actionItems...`)),await $p(t,g,l,c),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created "${g.length}" actionItems!`))}catch(I){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create action items! - ${I.message}`))}let h=e.map(I=>[I,_optionalChain([u, 'access', _38 => _38[Vs(I)], 'optionalAccess', _39 => _39.id])||_optionalChain([d, 'access', _40 => _40[I.customerExperienceActionItemId], 'optionalAccess', _41 => _41.id])]).filter(I=>!!I[1]);return await P(h,async([I,V])=>{try{await bp(t,I,V,c),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced action item "${I.title}"!`))}catch(z){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync action item "${I.title}"! - ${z.message}`))}}),!n}var Vn=20;async function Bt(t){let e=[],n=0,r=!1;do{let{agentFunctions:{nodes:i}}=await p(t,Zo,{first:Vn,offset:n});e.push(...i.map(s=>({...s,parameters:JSON.parse(s.parameters)}))),n+=Vn,r=i.length===Vn}while(r);return e.sort((i,s)=>i.name.localeCompare(s.name))}async function Dp(t,e){let n={name:e.name,description:e.description,parameters:e.parameters,agentIds:[]},{createAgentFunction:r}=await p(t,Ho,{input:n});return r.agentFunction}async function Lp(t,e){await p(t,Wo,{input:{agentFunctions:e.map(([n,r])=>({id:r,name:n.name,description:n.description,parameters:n.parameters}))}})}async function Ys(t,e){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" agent functions...`));let n=!1,r=await Bt(t),i=_chunkUM5F6R4Icjs.e.call(void 0, r,"name"),s=e.filter(o=>!i[o.name]);await P(s,async o=>{try{let l=await Dp(t,o);i[l.name]=l,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced agent function "${o.name}"!`))}catch(l){n=!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 Lp(t,e.map(o=>[o,i[o.name].id])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced "${e.length}" agent functions!`))}catch(o){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync "${e.length}" agent functions! - ${o.message}`))}return!n}var jn=20;async function Kt(t,e={}){let n=[],r=0,i=!1;do{let{agentFiles:{nodes:s}}=await p(t,Vo,{first:jn,offset:r,filterBy:e});n.push(...s),r+=jn,i=s.length===jn}while(i);return n.sort((s,o)=>s.name.localeCompare(o.name))}async function kp(t,e){let n={name:e.name,description:e.description,fileId:e.fileId,size:e.size,purpose:e.purpose,fileUploadedAt:new Date,agentIds:[]},{createAgentFile:r}=await p(t,jo,{input:n});return r.agentFile}async function _p(t,e){await p(t,Yo,{input:{agentFiles:e.map(([n,r])=>({id:r,name:n.name,description:n.description,fileId:n.fileId,size:n.size,purpose:n.purpose}))}})}async function Zs(t,e){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" agent files...`));let n=!1,r=await Kt(t),i=_chunkUM5F6R4Icjs.e.call(void 0, r,"name"),s=e.filter(o=>!i[o.name]);await P(s,async o=>{try{let l=await kp(t,o);i[l.name]=l,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced agent file "${o.name}"!`))}catch(l){n=!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 _p(t,e.map(o=>[o,i[o.name].id])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced "${e.length}" agent files!`))}catch(o){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync "${e.length}" agent files! - ${o.message}`))}return!n}var Yn=20;async function Vt(t){let e=[],n=0,r=!1;do{let{vendors:{nodes:i}}=await p(t,zo,{first:Yn,offset:n});e.push(...i),n+=Yn,r=i.length===Yn}while(r);return e.sort((i,s)=>i.title.localeCompare(s.title))}async function Gp(t,e){let n={title:e.title,description:e.description,address:e.address,headquarterCountry:e.headquarterCountry,headquarterSubDivision:e.headquarterSubDivision,dataProcessingAgreementLink:e.dataProcessingAgreementLink,contactName:e.contactName,contactPhone:e.contactPhone,websiteUrl:e.websiteUrl},{createVendor:r}=await p(t,Jo,{input:n});return r.vendor}async function vp(t,e){await p(t,Xo,{input:{vendors:e.map(([n,r])=>({id:r,title:n.title,description:n.description,address:n.address,headquarterCountry:n.headquarterCountry,headquarterSubDivision:n.headquarterSubDivision,dataProcessingAgreementLink:n.dataProcessingAgreementLink,contactName:n.contactName,contactPhone:n.contactPhone,websiteUrl:n.websiteUrl,attributes:n.attributes}))}})}async function Hs(t,e){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" vendors...`));let n=!1,r=await Vt(t),i=_chunkUM5F6R4Icjs.e.call(void 0, r,"title"),s=e.filter(o=>!i[o.title]);await P(s,async o=>{try{let l=await Gp(t,o);i[l.title]=l,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced vendor "${o.title}"!`))}catch(l){n=!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 vp(t,e.map(o=>[o,i[o.title].id])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced "${e.length}" vendors!`))}catch(o){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync "${e.length}" vendors ! - ${o.message}`))}return!n}var Zn=20;async function jt(t){let e=[],n=0,r=!1;do{let{dataSubCategories:{nodes:i}}=await p(t,es,{first:Zn,offset:n});e.push(...i),n+=Zn,r=i.length===Zn}while(r);return e.sort((i,s)=>i.name.localeCompare(s.name))}async function qp(t,e){let n={name:e.name,category:e.category,description:e.description},{createDataCategory:r}=await p(t,ts,{input:n});return r.dataCategory}async function Op(t,e){await p(t,ns,{input:{dataSubCategories:e.map(([n,r])=>({id:r,description:n.description,attributes:n.attributes}))}})}async function Ws(t,e){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" data categories...`));let n=!1,r=await jt(t),i=_chunkUM5F6R4Icjs.e.call(void 0, r,({name:o,category:l})=>`${o}:${l}`),s=e.filter(o=>!i[`${o.name}:${o.category}`]);await P(s,async o=>{try{let l=await qp(t,o);i[`${l.name}:${l.category}`]=l,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced data category "${o.name}"!`))}catch(l){n=!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 Op(t,e.map(o=>[o,i[`${o.name}:${o.category}`].id])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced "${e.length}" data categories!`))}catch(o){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync "${e.length}" data categories ! - ${o.message}`))}return!n}var Hn=20;async function Yt(t){let e=[],n=0,r=!1;do{let{processingPurposeSubCategories:{nodes:i}}=await p(t,is,{first:Hn,offset:n});e.push(...i),n+=Hn,r=i.length===Hn}while(r);return e.sort((i,s)=>i.name.localeCompare(s.name))}async function Mp(t,e){let n={name:e.name,purpose:e.purpose,description:e.description},{createProcessingPurposeSubCategory:r}=await p(t,rs,{input:n});return r.processingPurposeSubCategory}async function Np(t,e){await p(t,os,{input:{processingPurposeSubCategories:e.map(([n,r])=>({id:r,description:n.description,attributes:n.attributes}))}})}async function zs(t,e){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" processing purposes...`));let n=!1,r=await Yt(t),i=_chunkUM5F6R4Icjs.e.call(void 0, r,({name:o,purpose:l})=>`${o}:${l}`),s=e.filter(o=>!i[`${o.name}:${o.purpose}`]);await P(s,async o=>{try{let l=await Mp(t,o);i[`${l.name}:${l.purpose}`]=l,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced processing purpose "${o.name}"!`))}catch(l){n=!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 Np(t,e.map(o=>[o,i[`${o.name}:${o.purpose}`].id])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced "${e.length}" processing purposes!`))}catch(o){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync "${e.length}" processing purposes ! - ${o.message}`))}return!n}async function Up(t,e){let n={name:e.name,description:e.description,ssoTitle:e["sso-title"],ssoDepartment:e["sso-department"],ssoGroup:e["sso-group"],scopes:e.scopes,userEmails:e.users},{createTeam:r}=await p(t,Gr,{input:n});return r.team}async function Fp(t,e,n){let{updateTeam:r}=await p(t,vr,{input:{id:n,name:e.name,description:e.description,ssoTitle:e["sso-title"],ssoDepartment:e["sso-department"],ssoGroup:e["sso-group"],scopes:e.scopes,userEmails:e.users}});return r.team}async function Js(t,e){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" teams...`));let n=!1,r=await Lt(t),i=_chunkUM5F6R4Icjs.e.call(void 0, r,"name"),s=e.filter(l=>!i[l.name]),o=e.filter(l=>!!i[l.name]);return await P(s,async l=>{try{let u=await Up(t,l);i[u.name]=u,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created team "${l.name}"!`))}catch(u){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync team "${l.name}"! - ${u.message}`))}}),await P(o,async l=>{try{let u=await Fp(t,l,i[l.name].id);i[u.name]=u,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated team "${l.name}"!`))}catch(u){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync team "${l.name}"! - ${u.message}`))}}),!n}async function Qp(t,e){let{createPromptPartial:{promptPartial:n}}=await p(t,br,{input:e});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created prompt partial "${e.title}"!`)),n.id}async function Bp(t,e){await p(t,$r,{input:{promptPartials:e.map(([n,r])=>({...n,id:r}))}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated ${e.length} prompt partials!`))}async function Xs(t,e,n=20){let r=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" prompt partials...`));let i=await Nt(t),s=_chunkUM5F6R4Icjs.e.call(void 0, i,"title"),o=e.map(c=>[c,_optionalChain([s, 'access', _42 => _42[c.title], 'optionalAccess', _43 => _43.id])]),l=o.filter(([,c])=>!c).map(([c])=>c);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${l.length}" new prompt partials...`)),await U(l,async c=>{await Qp(t,c)},{concurrency:n}),_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 u=o.filter(c=>!!c[1]);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${u.length}" prompt partials...`)),await Bp(t,u),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated "${u.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 Kp(t,e){let{createPromptGroup:{promptGroup:n}}=await p(t,Dr,{input:e});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created prompt group "${e.title}"!`)),n.id}async function Vp(t,e){await p(t,xr,{input:{promptGroups:e.map(([n,r])=>({...n,id:r}))}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated ${e.length} prompt groups!`))}async function ea(t,e,n=20){let r=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" prompt groups...`));let i=await Ut(t),s=await Ze(t),o=_chunkUM5F6R4Icjs.e.call(void 0, s,"title"),l=_chunkUM5F6R4Icjs.e.call(void 0, i,"title"),u=e.map(m=>[m,_optionalChain([l, 'access', _44 => _44[m.title], 'optionalAccess', _45 => _45.id])]),c=u.filter(([,m])=>!m).map(([m])=>m);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${c.length}" new prompt groups...`)),await U(c,async m=>{await Kp(t,{...m,promptIds:m.prompts.map(g=>{let h=o[g];if(!h)throw new Error(`Failed to find prompt with title: "${g}"`);return h.id})})},{concurrency:n}),_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 d=u.filter(m=>!!m[1]);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${d.length}" prompt groups...`)),await Vp(t,d.map(([{prompts:m,...g},h])=>[{...g,promptIds:m.map(I=>{let V=o[I];if(!V)throw new Error(`Failed to find prompt with title: "${I}"`);return V.id})},h])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated "${d.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 at=10;async function aI(t,e,{pageSize:n=50,publishToPrivacyCenter:r=!0,classifyService:i=!1,deleteExtraAttributeValues:s=!1}){let o=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetching data with page size ${n}...`));let{templates:l,attributes:u,actions:c,identifiers:d,"data-subjects":m,"business-entities":g,enrichers:h,cookies:I,"consent-manager":V,"data-silos":z,"data-flows":v,prompts:K,"prompt-groups":T,"prompt-partials":Y,agents:Z,"agent-functions":qe,"agent-files":be,vendors:te,"data-categories":pe,"processing-purposes":xe,"action-items":De,"action-item-collections":Oe,teams:Le,"privacy-center":le,messages:ct,policies:mt,partitions:ut}=t,[dt,je,St]=await Promise.all([h||d?as(t,e,!r):{},z||m||h?us(t,e):{},z&&z.map(y=>y["api-key-title"]||[]).reduce((y,_)=>y+_.length,0)>0?kt(t,e):{}]);if(V){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Syncing consent manager..."));try{await _s(e,V),_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(K){let y=await Rs(e,K);o=o||!y}if(Y){let y=await Xs(e,Y);o=o||!y}if(T){let y=await ea(e,T);o=o||!y}if(Le){let y=await Js(e,Le);o=o||!y}if(l&&(_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${l.length}" email templates...`)),await U(l,async y=>{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing template "${y.title}"...`));try{await Qs(y,e),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced template "${y.title}"!`))}catch(_){o=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync template "${y.title}"! - ${_.message}`))}},{concurrency:at}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${l.length}" email templates!`))),g){let y=await qs(e,g);o=o||!y}if(te){let y=await Hs(e,te);o=o||!y}if(pe){let y=await Ws(e,pe);o=o||!y}if(xe){let y=await zs(e,xe);o=o||!y}if(ut){let y=await Ds(e,ut);o=o||!y}if(Z){let y=await Bs(e,Z);o=o||!y}if(qe){let y=await Ys(e,qe);o=o||!y}if(be){let y=await Zs(e,be);o=o||!y}if(I){let y=await Ps(e,I);o=o||!y}if(Oe){let y=await Ks(e,Oe);o=o||!y}if(u){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${u.length}" attributes...`));let y=await ze(e);await U(u,async _=>{let J=y.find(ne=>ne.name===_.name);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing attribute "${_.name}"...`));try{await ms(e,_,{existingAttribute:J,deleteExtraAttributeValues:s}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced attribute "${_.name}"!`))}catch(ne){o=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync attribute "${_.name}"! - ${ne.message}`))}},{concurrency:at}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${u.length}" attributes!`))}if(De){let y=await js(e,De);o=o||!y}if(h&&(_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${h.length}" enrichers...`)),await U(h,async y=>{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing enricher "${y.title}"...`));try{await cs(e,{enricher:y,identifierByName:dt,dataSubjectsByName:je}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced enricher "${y.title}"!`))}catch(_){o=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync enricher "${y.title}"! - ${_.message}`))}},{concurrency:at}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${h.length}" enrichers!`))),d&&(_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${d.length}" identifiers...`)),await U(d,async y=>{let _=dt[y.name];if(!_)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 ps(e,{identifier:y,dataSubjectsByName:je,identifierId:_.id,skipPublish:!r}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced identifier "${y.type}"!`))}catch(J){o=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync identifier "${y.type}"! - ${J.message}`))}},{concurrency:at}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${d.length}" identifiers!`))),c){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${c.length}" actions...`));let y=await Mt(e);await U(c,async _=>{let J=y.find(ne=>ne.type===_.type);if(!J)throw new Error(`Failed to find action with type: ${_.type}. Should have already existing in the organization.`);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing action "${_.type}"...`));try{await Fs(e,{action:_,actionId:J.id,skipPublish:!r}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced action "${_.type}"!`))}catch(ne){o=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync action "${_.type}"! - ${ne.message}`))}},{concurrency:at}),_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 ht(e);await U(m,async _=>{let J=y.find(ne=>ne.type===_.type);if(!J)throw new Error(`Failed to find data subject with type: ${_.type}. Should have already existing in the organization.`);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing data subject "${_.type}"...`));try{await Ss(e,{dataSubject:_,dataSubjectId:J.id,skipPublish:!r}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced data subject "${_.type}"!`))}catch(ne){o=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync data subject "${_.type}"! - ${ne.message}`))}},{concurrency:at}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${m.length}" data subjects!`))}if(v){let y=await Us(e,v,i);o=o||!y}if(le){let y=await bs(e,le);o=o||!y}if(ct){let y=await $s(e,ct);o=o||!y}if(mt){let y=await ws(e,mt);o=o||!y}let Ye=[];if(z){let{success:y,dataSiloTitleToId:_}=await hs(z,e,{dataSubjectsByName:je,apiKeysByTitle:St,pageSize:n});_optionalChain([z, 'optionalAccess', _46 => _46.forEach, 'call', _47 => _47(J=>{J["deletion-dependencies"]&&Ye.push([_[J.title],J["deletion-dependencies"]])})]),o=o||!y}return Ye.length>0&&await Is(e,Ye),o}async function uI(t,e){let n=await p(t,Zi,{dataSiloId:e,type:"DATA_SILO_DISCOVERY"}),{plugins:r,totalCount:i}=n.plugins;return i===0&&(_chunkZUNVPK23cjs.a.error("No active data silo plugins found for this data silo."),process.exit(1)),r[0]}async function ta(t){let e=await It(t),{privacyCenter:{themeStr:n,...r}}=await p(t,Mo,{url:e});return[{...r,theme:JSON.parse(n)}]}async function na(t){let{translatedMessages:e}=await p(t,ur,{});return e}var Wn=20;async function zn(t,e=_privacytypes.ConsentTrackerStatus.Live){let n=[],r=0,i=await oe(t),s=!1;do{let{cookies:{nodes:o}}=await p(t,so,{first:Wn,offset:r,airgapBundleId:i,status:e});n.push(...o),r+=Wn,s=o.length===Wn}while(s);return n.sort((o,l)=>o.name.localeCompare(l.name))}var Jn=20;async function ia(t){let e=[],n=0,r=!1;do{let{assessmentForms:{nodes:i}}=await p(t,Cr,{first:Jn,offset:n});e.push(...i),n+=Jn,r=i.length===Jn}while(r);return e.sort((i,s)=>i.title.localeCompare(s.title))}var Xn=20;async function ra(t){let e=[],n=0,r=!1;do{let{assessmentFormTemplates:{nodes:i}}=await p(t,Ar,{first:Xn,offset:n});e.push(...i),n+=Xn,r=i.length===Xn}while(r);return e.sort((i,s)=>i.title.localeCompare(s.title))}var _iots = require('io-ts'); var W = _interopRequireWildcard(_iots); var ie = _interopRequireWildcard(_iots); var L = _interopRequireWildcard(_iots); var $e = _interopRequireWildcard(_iots);var oa=W.type({dependsOnQuestionReferenceId:W.string,comparisonOperator:_typeutils.valuesOf.call(void 0, _privacytypes.ComparisonOperator),comparisonOperands:W.array(W.string)}),zp= exports.Vd =W.recursion("AssessmentNestedRule",t=>W.intersection([W.type({logicOperator:_typeutils.valuesOf.call(void 0, _privacytypes.LogicOperator)}),W.partial({rules:W.array(oa),nestedRules:W.array(t)})])),Jp= exports.Wd =W.partial({action:_typeutils.valuesOf.call(void 0, _privacytypes.AssessmentsDisplayLogicAction),rule:oa,nestedRule:zp});function ti(t){return _typeutils.decodeCodec.call(void 0, Jp,t)}var nl=ie.intersection([ie.partial({riskAssignment:ie.partial({riskLevelId:ie.string,riskMatrixRowId:ie.string,riskMatrixColumnId:ie.string})}),ie.type({comparisonOperands:ie.array(ie.string),comparisonOperator:_typeutils.valuesOf.call(void 0, _privacytypes.ComparisonOperator)})]);function ni(t){return _typeutils.decodeCodec.call(void 0, nl,t)}var ii=20;async function sa(t){let e=[],n=0,r=!1;do{let{preferenceTopics:{nodes:i}}=await p(t,Ir,{first:ii,offset:n});e.push(...i),n+=ii,r=i.length===ii}while(r);return e.sort((i,s)=>`${i.slug}:${i.purpose.trackingType}`.localeCompare(`${s.slug}:${s.purpose.trackingType}`))}async function aa(t){let[e,n]=await Promise.all([qt(t),sa(t)]);return e.map(r=>{let i=n.filter(s=>s.purpose.trackingType===r.trackingType);return{...r,topics:i}})}function fe(t){let e=[];return t.map(n=>{let r=e.find(i=>i.key===n.attributeKey.name);return r===void 0?(r={key:n.attributeKey.name,values:[n.name]},e.push(r)):r.values.push(n.name),e}),e}var ol=["dataSilos","enrichers","templates","apiKeys"];async function vA(t,{dataSiloIds:e,integrationNames:n,debug:r,resources:i=ol,pageSize:s,skipDatapoints:o,includeGuessedCategories:l,skipSubDatapoints:u,trackerStatuses:c=Object.values(_privacytypes.ConsentTrackerStatus)}){if(e.length>0&&n.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[d,m,g,h,I,V,z,v,K,T,Y,Z,qe,be,te,pe,xe,De,Oe,Le,le,ct,mt,ut,dt,je,St,Ye,y,_,J,ne]=await Promise.all([i.includes("dataSilos")||i.includes("dataSubjects")?ht(t):[],i.includes("apiKeys")?kt({},t,!0):[],i.includes("dataSilos")?Cs(t,{ids:e,integrationNames:n,pageSize:s,debug:r,includeGuessedCategories:l,skipDatapoints:o,skipSubDatapoints:u}):[],i.includes("enrichers")?Rn(t):[],i.includes("dataFlows")?[...c.includes(_privacytypes.ConsentTrackerStatus.Live)?await Xe(t,_privacytypes.ConsentTrackerStatus.Live):[],...c.includes(_privacytypes.ConsentTrackerStatus.NeedsReview)?await Xe(t,_privacytypes.ConsentTrackerStatus.NeedsReview):[]]:[],i.includes("cookies")?[...c.includes(_privacytypes.ConsentTrackerStatus.Live)?await zn(t,_privacytypes.ConsentTrackerStatus.Live):[],...c.includes(_privacytypes.ConsentTrackerStatus.NeedsReview)?await zn(t,_privacytypes.ConsentTrackerStatus.NeedsReview):[]]:[],i.includes("customFields")?ze(t):[],i.includes("templates")?Nn(t):[],i.includes("identifiers")?Sn(t):[],i.includes("actions")?Mt(t):[],i.includes("businessEntities")?Ot(t):[],i.includes("consentManager")?As(t):void 0,i.includes("consentManager")?xt(t):[],i.includes("prompts")?Ze(t):[],i.includes("promptPartials")?Nt(t):[],i.includes("promptGroups")?Ut(t):[],i.includes("agents")?Ft(t):[],i.includes("agentFunctions")?Bt(t):[],i.includes("agentFiles")?Kt(t):[],i.includes("vendors")?Vt(t):[],i.includes("dataCategories")?jt(t):[],i.includes("processingPurposes")?Yt(t):[],i.includes("actionItems")?Qt(t,{type:[_privacytypes.ActionItemCode.Onboarding]}):[],i.includes("actionItemCollections")?tt(t):[],i.includes("teams")?Lt(t):[],i.includes("policies")?_t(t):[],i.includes("privacyCenters")?ta(t):[],i.includes("messages")?na(t):[],i.includes("partitions")?At(t):[],i.includes("assessments")?ia(t):[],i.includes("assessmentTemplates")?ra(t):[],i.includes("purposes")?aa(t):[]]),ft=i.includes("consentManager")&&Z?await Ts(t,Z.id):void 0,G={},Ia=_chunkUM5F6R4Icjs.a.call(void 0, g.map(([{apiKeys:f}])=>f.map(({title:C})=>C))),gi=Object.values(m).filter(({title:f})=>i.includes("apiKeys")?!0:Ia.includes(f));if(gi.length>0&&i.includes("apiKeys")&&(G["api-keys"]=gi.map(({title:f})=>({title:f}))),y.length>0&&i.includes("partitions")&&(G.partitions=y.map(({name:f,partition:C})=>({name:f,partition:C}))),Z&&i.includes("consentManager")&&(G["consent-manager"]={bundleUrls:{TEST:Z.testBundleURL,PRODUCTION:Z.bundleURL},domains:Z.configuration.domains||void 0,partition:Z.configuration.partition||void 0,consentPrecedence:Z.configuration.consentPrecedence||void 0,unknownRequestPolicy:Z.configuration.unknownRequestPolicy||void 0,unknownCookiePolicy:Z.configuration.unknownCookiePolicy||void 0,syncEndpoint:Z.configuration.syncEndpoint||void 0,telemetryPartitioning:Z.configuration.telemetryPartitioning||void 0,signedIabAgreement:Z.configuration.signedIabAgreement||void 0,syncGroups:Z.configuration.syncGroups||void 0,theme:ft?{primaryColor:ft.primaryColor||void 0,fontColor:ft.fontColor||void 0,privacyPolicy:ft.privacyPolicy||void 0,prompt:ft.prompt}:void 0,experiences:qe.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}))}),_.length>0&&i.includes("assessments")&&(G.assessments=_.map(({title:f,assessmentGroup:C,sections:S,creator:E,description:R,status:$,assignees:b,externalAssignees:x,reviewers:O,isLocked:q,isArchived:j,isExternallyCreated:F,dueDate:M,createdAt:X,assignedAt:ke,submittedAt:Me,approvedAt:Ne,rejectedAt:Ue,titleIsInternal:_e,retentionSchedule:ce,attributeValues:Pe,resources:gt,syncedRows:Fe})=>({title:f,group:C.title,sections:S.map(({title:ee,status:ge,questions:re,assignees:w,isReviewed:D,externalAssignees:H})=>({title:ee,status:ge,questions:re.map(({title:Qe,type:zt,subType:se,placeholder:me,description:Be,isRequired:Aa,referenceId:Ta,displayLogic:yi,riskLogic:Pa,riskCategories:Sa,riskFramework:Ea,answerOptions:Ra,selectedAnswers:wa,allowedMimeTypes:$a,allowSelectOther:ba,syncModel:xa,syncColumn:Da,attributeKey:La,requireRiskEvaluation:ka,requireRiskMatrixEvaluation:_a})=>{let ye=yi?ti(yi):void 0;return{title:Qe,type:zt,"sub-type":se,placeholder:me,description:Be,"is-required":Aa,"reference-id":Ta,"display-logic":ye&&Object.keys(ye).length>0?{action:ye.action,rule:ye.rule?{"depends-on-question-reference-id":ye.rule.dependsOnQuestionReferenceId,"comparison-operator":ye.rule.comparisonOperator,"comparison-operands":ye.rule.comparisonOperands}:void 0,"nested-rule":ye.nestedRule?{"logic-operator":ye.nestedRule.logicOperator,rules:(ye.nestedRule.rules||[]).map(ue=>({"depends-on-question-reference-id":ue.dependsOnQuestionReferenceId,"comparison-operator":ue.comparisonOperator,"comparison-operands":ue.comparisonOperands}))}:void 0}:void 0,"risk-logic":Pa.map(ue=>{let Jt=ni(ue);return{"risk-level":_optionalChain([Jt, 'access', _48 => _48.riskAssignment, 'optionalAccess', _49 => _49.riskLevelId]),"comparison-operands":Jt.comparisonOperands,"comparison-operator":Jt.comparisonOperator}}),"risk-categories":Sa.map(({title:ue})=>ue),"risk-framework":_optionalChain([Ea, 'optionalAccess', _50 => _50.title]),"answer-options":Ra.map(({value:ue})=>({value:ue})),"selected-answers":wa.map(({value:ue})=>ue),"allowed-mime-types":$a,"allow-select-other":ba,"sync-model":xa||void 0,"sync-column":Da||void 0,"attribute-key":_optionalChain([La, 'optionalAccess', _51 => _51.name]),"require-risk-evaluation":ka,"require-risk-matrix-evaluation":_a}}),assignees:w.map(({email:Qe})=>Qe),"external-assignees":H.map(({email:Qe})=>Qe),"is-reviewed":D})),creator:_optionalChain([E, 'optionalAccess', _52 => _52.email]),description:R,status:$,assignees:b.map(({email:ee})=>ee),"external-assignees":x.map(({email:ee})=>ee),reviewers:O.map(({email:ee})=>ee),locked:q,archived:j,external:F,"title-is-internal":_e,"due-date":M||void 0,"created-at":X||void 0,"assigned-at":ke||void 0,"submitted-at":Me||void 0,"approved-at":Ne||void 0,"rejected-at":Ue||void 0,"retention-schedule":ce?{type:ce.type,"duration-days":ce.durationDays,operand:ce.operation}:void 0,attributes:Pe!==void 0&&Pe.length>0?fe(Pe):void 0,resources:gt.map(({resourceType:ee,title:ge,name:re,category:w,type:D,purpose:H})=>({type:ee,title:w?`${w} - ${re}`:H?`${H} - ${re}`:ge||re||D||""})),rows:Fe.map(({resourceType:ee,title:ge,name:re,category:w,type:D,purpose:H})=>({type:ee,title:w?`${w} - ${re}`:H?`${H} - ${re}`:ge||re||D||""}))}))),J.length>0&&i.includes("assessmentTemplates")&&(G["assessment-templates"]=J.map(({title:f,description:C,sections:S,status:E,source:R,creator:$,isLocked:b,isArchived:x,createdAt:O,retentionSchedule:q})=>({title:f,description:C,sections:S.map(({title:j,questions:F})=>({title:j,questions:F.map(({title:M,type:X,subType:ke,placeholder:Me,description:Ne,isRequired:Ue,referenceId:_e,displayLogic:ce,riskLogic:Pe,riskCategories:gt,riskFramework:Fe,answerOptions:ee,allowedMimeTypes:ge,allowSelectOther:re,syncModel:w,syncColumn:D,attributeKey:H,requireRiskEvaluation:Qe,requireRiskMatrixEvaluation:zt})=>{let se=ce?ti(ce):void 0;return{title:M,type:X,"sub-type":ke,placeholder:Me,description:Ne,"is-required":Ue,"reference-id":_e,"display-logic":se&&Object.keys(se).length>0?{action:se.action,rule:se.rule?{"depends-on-question-reference-id":se.rule.dependsOnQuestionReferenceId,"comparison-operator":se.rule.comparisonOperator,"comparison-operands":se.rule.comparisonOperands}:void 0,"nested-rule":se.nestedRule?{"logic-operator":se.nestedRule.logicOperator,rules:(se.nestedRule.rules||[]).map(me=>({"depends-on-question-reference-id":me.dependsOnQuestionReferenceId,"comparison-operator":me.comparisonOperator,"comparison-operands":me.comparisonOperands}))}:void 0}:void 0,"risk-logic":Pe.map(me=>{let Be=ni(me);return{"risk-level":_optionalChain([Be, 'access', _53 => _53.riskAssignment, 'optionalAccess', _54 => _54.riskLevelId]),"risk-matrix-row":_optionalChain([Be, 'access', _55 => _55.riskAssignment, 'optionalAccess', _56 => _56.riskMatrixRowId]),"risk-matrix-column":_optionalChain([Be, 'access', _57 => _57.riskAssignment, 'optionalAccess', _58 => _58.riskMatrixColumnId]),"comparison-operands":Be.comparisonOperands,"comparison-operator":Be.comparisonOperator}}),"risk-categories":gt.map(({title:me})=>me),"risk-framework":_optionalChain([Fe, 'optionalAccess', _59 => _59.title]),"answer-options":ee.map(({value:me})=>({value:me})),"allowed-mime-types":ge,"allow-select-other":re,"sync-model":w||void 0,"sync-column":D||void 0,"attribute-key":_optionalChain([H, 'optionalAccess', _60 => _60.name]),"require-risk-evaluation":Qe,"require-risk-matrix-evaluation":zt}})})),status:E,source:R,creator:_optionalChain([$, 'optionalAccess', _61 => _61.email]),locked:b,archived:x,"created-at":O||void 0,"retention-schedule":q?{type:q.type,"duration-days":q.durationDays,operand:q.operation}:void 0}))),be.length>0&&i.includes("prompts")&&(G.prompts=be.map(({title:f,content:C})=>({title:f,content:C}))),te.length>0&&i.includes("promptPartials")&&(G["prompt-partials"]=te.map(({title:f,content:C})=>({title:f,content:C}))),pe.length>0&&i.includes("promptGroups")&&(G["prompt-groups"]=pe.map(({title:f,description:C,prompts:S})=>({title:f,description:C,prompts:S.map(({title:E})=>E)}))),dt.length>0&&i.includes("teams")&&(G.teams=dt.map(({name:f,description:C,ssoDepartment:S,ssoGroup:E,ssoTitle:R,users:$,scopes:b})=>({name:f,description:C,"sso-department":S||void 0,"sso-group":E||void 0,"sso-title":R||void 0,users:$.map(({email:x})=>x),scopes:b.map(({name:x})=>x)}))),d.length>0&&i.includes("dataSubjects")&&(G["data-subjects"]=d.map(({type:f,title:C,active:S,adminDashboardDefaultSilentMode:E,actions:R})=>({type:f,title:_optionalChain([C, 'optionalAccess', _62 => _62.defaultMessage]),active:S,adminDashboardDefaultSilentMode:E,actions:R.map(({type:$})=>$)}))),je.length>0&&(G.policies=je.map(({title:f,versions:C,disabledLocales:S})=>({title:_optionalChain([f, 'optionalAccess', _63 => _63.defaultMessage]),content:_optionalChain([C, 'optionalAccess', _64 => _64[0], 'optionalAccess', _65 => _65.content, 'optionalAccess', _66 => _66.defaultMessage]),disabledLocales:S}))),Ye.length>0&&(G.messages=Ye.map(({id:f,defaultMessage:C,targetReactIntlId:S,translations:E})=>({id:f,defaultMessage:C,targetReactIntlId:S||void 0,translations:E.reduce((R,{locale:$,value:b})=>Object.assign(R,{[$]:b}),{})}))),St.length>0){let f=St[0];G["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(Y.length>0&&i.includes("businessEntities")&&(G["business-entities"]=Y.map(({title:f,description:C,address:S,headquarterCountry:E,headquarterSubDivision:R,dataProtectionOfficerName:$,dataProtectionOfficerEmail:b,attributeValues:x})=>({title:f,description:C||void 0,address:S||void 0,headquarterCountry:E||void 0,headquarterSubDivision:R||void 0,dataProtectionOfficerName:$||void 0,dataProtectionOfficerEmail:b||void 0,attributes:x!==void 0&&x.length>0?fe(x):void 0}))),T.length>0&&i.includes("actions")&&(G.actions=T.map(({type:f,skipSecondaryIfNoFiles:C,skipDownloadableStep:S,requiresReview:E,regionList:R,regionDetectionMethod:$,waitingPeriod:b})=>({type:f,...f===_privacytypes.RequestAction.Erasure?{skipSecondaryIfNoFiles:C,skipDownloadableStep:S}:{},requiresReview:E,waitingPeriod:b,regionDetectionMethod:$,regionList:R.length>0?R:void 0}))),K.length>0&&i.includes("identifiers")&&(G.identifiers=K.map(({name:f,type:C,regex:S,selectOptions:E,privacyCenterVisibility:R,isRequiredInForm:$,placeholder:b,displayTitle:x,dataSubjects:O,displayDescription:q,displayOrder:j})=>({name:f,type:C,regex:S,selectOptions:E.length>0?E:void 0,privacyCenterVisibility:R.length>0?R:void 0,isRequiredInForm:$,placeholder:b||void 0,dataSubjects:O.length>0?O.map(({type:F})=>F):void 0,displayTitle:_optionalChain([x, 'optionalAccess', _67 => _67.defaultMessage]),displayDescription:_optionalChain([q, 'optionalAccess', _68 => _68.defaultMessage]),displayOrder:j}))),xe.length>0&&i.includes("agents")&&(G.agents=xe.map(({name:f,agentId:C,description:S,instructions:E,codeInterpreterEnabled:R,retrievalEnabled:$,prompt:b,largeLanguageModel:x,teams:O,owners:q,agentFunctions:j,agentFiles:F})=>({name:f,agentId:C,description:S||void 0,instructions:E,codeInterpreterEnabled:R,retrievalEnabled:$,prompt:_optionalChain([b, 'optionalAccess', _69 => _69.title]),"large-language-model":{name:x.name,client:x.client},teams:O&&O.length>0?O.map(({name:M})=>M):void 0,owners:q&&q.length>0?q.map(({email:M})=>M):void 0,"agent-functions":j&&j.length>0?j.map(({name:M})=>M):void 0,"agent-files":F&&F.length>0?F.map(({name:M})=>M):void 0}))),mt.length>0&&i.includes("actionItems")&&(G["action-items"]=mt.map(({teams:f,users:C,customerExperienceActionItemIds:[S],dueDate:E,priority:R,resolved:$,collections:b,notes:x,link:O,title:q,type:j,attributeValues:F})=>({teams:f.map(({name:M})=>M),users:C.map(({email:M})=>M),dueDate:E||void 0,title:q,notes:x,customerExperienceActionItemId:S,collections:b.map(({title:M})=>M),link:O,priority:R||void 0,resolved:$,type:j,attributes:F!==void 0&&F.length>0?fe(F):void 0}))),ut.length>0&&i.includes("actionItemCollections")&&(G["action-item-collections"]=ut.map(({title:f,description:C,hidden:S,productLine:E})=>({title:f,description:C||void 0,hidden:S,productLine:E}))),De.length>0&&i.includes("agentFunctions")&&(G["agent-functions"]=De.map(({name:f,description:C,parameters:S})=>({name:f,description:C,parameters:JSON.stringify(S)}))),Oe.length>0&&i.includes("agentFiles")&&(G["agent-files"]=Oe.map(({name:f,description:C,fileId:S,size:E,purpose:R})=>({name:f,description:C,fileId:S,size:E,purpose:R}))),Le.length>0&&i.includes("vendors")&&(G.vendors=Le.map(({title:f,description:C,dataProcessingAgreementLink:S,contactName:E,contactPhone:R,address:$,headquarterCountry:b,headquarterSubDivision:x,websiteUrl:O,businessEntity:q,teams:j,owners:F,attributeValues:M})=>({title:f,description:C||void 0,dataProcessingAgreementLink:S||void 0,contactName:E||void 0,contactPhone:R||void 0,address:$||void 0,headquarterCountry:b||void 0,headquarterSubDivision:x||void 0,websiteUrl:O||void 0,businessEntity:_optionalChain([q, 'optionalAccess', _70 => _70.title]),teams:j&&j.length>0?j.map(({name:X})=>X):void 0,owners:F&&F.length>0?F.map(({email:X})=>X):void 0,attributes:M!==void 0&&M.length>0?fe(M):void 0}))),le.length>0&&i.includes("dataCategories")&&(G["data-categories"]=le.map(({name:f,category:C,description:S,regex:E,owners:R,teams:$,attributeValues:b})=>({name:f,category:C,description:S||void 0,regex:E||void 0,owners:R&&R.length>0?R.map(({email:x})=>x):void 0,teams:$&&$.length>0?$.map(({name:x})=>x):void 0,attributes:b!==void 0&&b.length>0?fe(b):void 0}))),ct.length>0&&i.includes("processingPurposes")&&(G["processing-purposes"]=ct.map(({name:f,purpose:C,description:S,owners:E,teams:R,attributeValues:$})=>({name:f,purpose:C,description:S||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:$!==void 0&&$.length>0?fe($):void 0}))),I.length>0&&i.includes("dataFlows")&&(G["data-flows"]=I.map(({value:f,type:C,description:S,trackingType:E,service:R,status:$,owners:b,teams:x,attributeValues:O})=>({value:f,type:C,description:S||void 0,trackingPurposes:E,status:$,service:_optionalChain([R, 'optionalAccess', _71 => _71.integrationName]),owners:b.map(({email:q})=>q),teams:x.map(({name:q})=>q),attributes:O!==void 0&&O.length>0?fe(O):void 0}))),V.length>0&&i.includes("cookies")&&(G.cookies=V.map(({name:f,isRegex:C,description:S,trackingPurposes:E,service:R,status:$,owners:b,teams:x,attributeValues:O})=>({name:f,isRegex:C,description:S||void 0,trackingPurposes:E,status:$,service:_optionalChain([R, 'optionalAccess', _72 => _72.integrationName]),owners:b.map(({email:q})=>q),teams:x.map(({name:q})=>q),attributes:O!==void 0&&O.length>0?fe(O):void 0}))),z.length>0&&i.includes("customFields")&&(G.attributes=z.map(({description:f,name:C,type:S,values:E,enabledOn:R=[]})=>({description:f||void 0,resources:R,name:C,type:S,values:E.map(({name:$,color:b,description:x})=>({name:$,color:b||void 0,description:x}))}))),ne.length>0&&(G.purposes=ne.map(({name:f,description:C,trackingType:S,defaultConsent:E,configurable:R,showInConsentManager:$,isActive:b,displayOrder:x,optOutSignals:O,authLevel:q,topics:j,showInPrivacyCenter:F,title:M})=>({name:f,title:M,description:C||void 0,trackingType:S,"default-consent":E,configurable:R,"show-in-consent-manager":$,"show-in-privacy-center":F,"is-active":b,"display-order":x,"opt-out-signals":O.length>0?O:void 0,"auth-level":q||void 0,"preference-topics":j.map(({title:X,type:ke,displayDescription:Me,defaultConfiguration:Ne,showInPrivacyCenter:Ue,preferenceOptionValues:_e})=>({title:X.defaultMessage,type:ke,description:Me.defaultMessage,"default-configuration":Ne,"show-in-privacy-center":Ue,..._e.length>0?{options:_e.map(({title:ce,slug:Pe})=>({title:ce.defaultMessage,slug:Pe}))}:{}}))}))),e.length===0&&v.length>0&&i.includes("templates")&&(G.templates=v.map(({title:f})=>({title:f}))),h.length>0&&i.includes("enrichers")&&(G.enrichers=h.map(({title:f,url:C,type:S,inputIdentifier:E,identifiers:R,actions:$,testRegex:b,dataSubjects:x,expirationDuration:O,lookerQueryTitle:q,transitionRequestStatus:j,phoneNumbers:F,regionList:M})=>({title:f,url:C||void 0,type:S,"input-identifier":_optionalChain([E, 'optionalAccess', _73 => _73.name]),"output-identifiers":R.map(({name:X})=>X),"privacy-actions":Object.values(_privacytypes.RequestAction).length===$.length?void 0:$,testRegex:b||void 0,lookerQueryTitle:q||void 0,expirationDuration:parseInt(O,10),transitionRequestStatus:j||void 0,phoneNumbers:F&&F.length>0?F:void 0,regionList:M&&M.length>0?M:void 0,"data-subjects":x.map(({type:X})=>X)}))),g.length>0&&i.includes("dataSilos")){let f=_chunkUM5F6R4Icjs.e.call(void 0, d,"type");G["data-silos"]=g.map(([{title:C,description:S,url:E,type:R,outerType:$,apiKeys:b,notifyEmailAddress:x,identifiers:O,dependentDataSilos:q,owners:j,country:F,countrySubDivision:M,teams:X,subjectBlocklist:ke,isLive:Me,promptAVendorEmailSendFrequency:Ne,promptAVendorEmailSendType:Ue,promptAVendorEmailIncludeIdentifiersAttachment:_e,promptAVendorEmailCompletionLinkType:ce,manualWorkRetryFrequency:Pe,catalog:gt,attributeValues:Fe,discoveredBy:ee,businessEntities:ge},re])=>({title:C,description:S,integrationName:R,"outer-type":$||void 0,url:E||void 0,"api-key-title":_optionalChain([b, 'access', _74 => _74[0], 'optionalAccess', _75 => _75.title]),"identity-keys":O.filter(({isConnected:w})=>w).map(({name:w})=>w),...q.length>0?{"deletion-dependencies":q.map(({title:w})=>w)}:{},...j.length>0?{owners:j.map(({email:w})=>w)}:{},...X.length>0?{teams:X.map(({name:w})=>w)}:{},...ee.length>0?{discoveredBy:ee.map(({title:w})=>w)}:{},...ge.length>0?{businessEntities:ge.map(({title:w})=>w)}:{},country:F||void 0,countrySubDivision:M||void 0,disabled:!Me,"data-subjects":ke.length>0?fs(ke.map(({type:w})=>w),f):void 0,...gt.hasAvcFunctionality?{"email-settings":{"notify-email-address":x||void 0,"send-frequency":Ne,"send-type":Ue,"include-identifiers-attachment":_e,"completion-link-type":ce,"manual-work-retry-frequency":Pe}}:{},attributes:Fe!==void 0&&Fe.length>0?fe(Fe):void 0,datapoints:re.map(w=>({key:w.name,title:_optionalChain([w, 'access', _76 => _76.title, 'optionalAccess', _77 => _77.defaultMessage]),description:_optionalChain([w, 'access', _78 => _78.description, 'optionalAccess', _79 => _79.defaultMessage]),owners:w.owners.map(({email:D})=>D),teams:w.teams.map(({name:D})=>D),...w.path.length>0?{path:w.path}:{},..._optionalChain([w, 'access', _80 => _80.dataCollection, 'optionalAccess', _81 => _81.title])?{"data-collection-tag":w.dataCollection.title.defaultMessage}:{},...w.dbIntegrationQueries.length>0?{"privacy-action-queries":_chunkUM5F6R4Icjs.f.call(void 0, _chunkUM5F6R4Icjs.e.call(void 0, w.dbIntegrationQueries,"requestType"),D=>D.suggestedQuery||D.query||void 0)}:{},...w.subDataPoints.length>0?{fields:w.subDataPoints.map(D=>({key:D.name,description:D.description,purposes:D.purposes,categories:D.categories,...l&&D.pendingCategoryGuesses?{"guessed-categories":D.pendingCategoryGuesses.filter(H=>H.status==="PENDING").map(H=>({category:{name:H.category.name,category:H.category.category},status:H.status,confidence:H.confidence,classifierVersion:H.classifierVersion||void 0}))}:{},"access-request-visibility-enabled":D.accessRequestVisibilityEnabled,"erasure-request-redaction-enabled":D.erasureRequestRedactionEnabled,attributes:D.attributeValues!==void 0&&D.attributeValues.length>0?fe(D.attributeValues):void 0})).sort((D,H)=>D.key.localeCompare(H.key))}:{},"privacy-actions":w.actionSettings.filter(({active:D})=>D).map(({type:D})=>D)})).sort((w,D)=>[..._nullishCoalesce(w.path, () => ([])),w.key].join(".").localeCompare([..._nullishCoalesce(D.path, () => ([])),D.key].join(".")))}))}return G}var ri=20;async function la(t){let e=[],n=0,r=!1;do{let{softwareDevelopmentKits:{nodes:i}}=await p(t,er,{first:ri,offset:n});e.push(...i),n+=ri,r=i.length===ri}while(r);return e.sort((i,s)=>i.name.localeCompare(s.name))}var sl=100;async function al(t,e){let{createSoftwareDevelopmentKit:{softwareDevelopmentKit:n}}=await p(t,nr,{input:e});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created software development kit "${e.name}"!`)),n}async function pl(t,e){let{updateSoftwareDevelopmentKits:{softwareDevelopmentKits:n}}=await p(t,tr,{input:{softwareDevelopmentKits:e}});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated ${e.length} software development kits!`)),n}async function ca(t,e,n=20){let r=!1,i=[];_chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Syncing software development kits..."));let s=await la(t),o=_chunkUM5F6R4Icjs.e.call(void 0, s,({name:m,codePackageType:g})=>JSON.stringify({name:m,codePackageType:g})),l=e.map(m=>[m,_optionalChain([o, 'access', _82 => _82[JSON.stringify({name:m.name,codePackageType:m.codePackageType})], 'optionalAccess', _83 => _83.id])]),u=l.filter(([,m])=>!m).map(([m])=>m);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${u.length}" new software development kits...`)),await U(u,async m=>{let g=await al(t,m);i.push(g)},{concurrency:n}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced ${u.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]),d=_chunkUM5F6R4Icjs.b.call(void 0, c,sl);return _chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${c.length}" software development kits...`)),await P(d,async m=>{try{let g=await pl(t,m.map(([{codePackageType:h,...I},V])=>({...I,id:V})));i.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:i,success:!r}}var oi=20;async function ma(t){let e=[],n=0,r=!1;do{let{repositories:{nodes:i}}=await p(t,Ui,{first:oi,offset:n});e.push(...i),n+=oi,r=i.length===oi}while(r);return e.sort((i,s)=>i.name.localeCompare(s.name))}var ll=100;async function cl(t,e){let{createRepository:{repository:n}}=await p(t,Qi,{input:e});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created repository "${e.name}"!`)),n}async function ml(t,e){let{updateRepositories:{repositories:n}}=await p(t,Fi,{input:{repositories:e}});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated ${e.length} repositories!`)),n}async function ua(t,e,n=20){let r=!1,i=[],s=await ma(t),o=_chunkUM5F6R4Icjs.e.call(void 0, s,"name"),l=e.map(m=>[m,_optionalChain([o, 'access', _84 => _84[m.name], 'optionalAccess', _85 => _85.id])]),u=l.filter(([,m])=>!m).map(([m])=>m);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${u.length}" new repositories...`)),await U(u,async m=>{let g=await cl(t,m);i.push(g)},{concurrency:n}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced ${u.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]),d=_chunkUM5F6R4Icjs.b.call(void 0, c,ll);return _chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${c.length}" repositories...`)),await P(d,async m=>{try{let g=await ml(t,m.map(([h,I])=>({...h,id:I})));i.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:i,success:!r}}var si=20;async function da(t){let e=[],n=0,r=!1;do{let{codePackages:{nodes:i}}=await p(t,ir,{first:si,offset:n});e.push(...i),n+=si,r=i.length===si}while(r);return e.sort((i,s)=>i.name.localeCompare(s.name))}var ul=100,pt="%%%%";async function dl(t,e){let{createCodePackage:{codePackage:n}}=await p(t,or,{input:e});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created code package "${e.name}"!`)),n}async function fl(t,e){let{updateCodePackages:{codePackages:n}}=await p(t,rr,{input:{codePackages:e}});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated ${e.length} code packages!`)),n}async function AT(t,e,n=20){let r=!1,[i,{softwareDevelopmentKits:s}]=await Promise.all([da(t),ca(t,_chunkUM5F6R4Icjs.k.call(void 0, e.map(({type:g,softwareDevelopmentKits:h=[]})=>h.map(({name:I})=>({name:I,codePackageType:g}))).flat(),({name:g,codePackageType:h})=>`${g}${pt}${h}`),n),ua(t,_chunkUM5F6R4Icjs.k.call(void 0, e,"repositoryName").map(({repositoryName:g})=>({name:g,url:`https://github.com/${g}`})))]),o=_chunkUM5F6R4Icjs.e.call(void 0, s,({name:g,codePackageType:h})=>`${g}${pt}${h}`),l=_chunkUM5F6R4Icjs.e.call(void 0, i,({name:g,type:h})=>`${g}${pt}${h}`),u=e.map(g=>[g,_optionalChain([l, 'access', _86 => _86[`${g.name}${pt}${g.type}`], 'optionalAccess', _87 => _87.id])]),c=u.filter(([,g])=>!g).map(([g])=>g);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${c.length}" new code packages...`)),await U(c,async({softwareDevelopmentKits:g,...h})=>{await dl(t,{...h,...g?{softwareDevelopmentKitIds:_chunkUM5F6R4Icjs.j.call(void 0, g.map(({name:I})=>{let V=o[`${I}${pt}${h.type}`];if(!V)throw new Error(`Failed to find SDK with name: "${I}"`);return V.id}))}:{}})},{concurrency:n}),_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 d=u.filter(g=>!!g[1]);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${d.length}" code packages...`));let m=_chunkUM5F6R4Icjs.b.call(void 0, d,ul);return await P(m,async g=>{try{await fl(t,g.map(([{softwareDevelopmentKits:h,repositoryName:I,...V},z])=>({...V,...h?{softwareDevelopmentKitIds:_chunkUM5F6R4Icjs.j.call(void 0, h.map(({name:v})=>{let K=o[`${v}${pt}${V.type}`];if(!K)throw new Error(`Failed to find SDK with name: "${v}"`);return K.id}))}:{},id:z}))),_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 gl=1e3;async function wT(t,e,n){let r=_chunkUM5F6R4Icjs.b.call(void 0, n,gl);await P(r,async i=>{await p(t,Yi,{pluginId:e,rawResults:i})})}var ai=100;async function yl(t){let e=[],n=0,r=!1;do{let{catalogs:{nodes:i}}=await p(t,Li,{first:ai,offset:n});e.push(...i),n+=ai,r=i.length===ai}while(r);return e.sort((i,s)=>i.integrationName.localeCompare(s.integrationName))}async function DT(t){let e=await yl(t),n=e.reduce((i,s)=>Object.assign(i,{[s.integrationName]:s.title}),{}),r=e.reduce((i,s)=>Object.assign(i,{[s.integrationName]:s.hasApiFunctionality}),{});return{catalogs:e,serviceToTitle:n,serviceToSupportedIntegration:r}}function hl(t,e){return new (0, _graphqlrequest.GraphQLClient)(`${t}/graphql`,{headers:{...e,version:_chunkUM5F6R4Icjs.m}})}function fa(t,e){return hl(t,{Authorization:`Bearer ${e}`})}var _got = require('got'); var _got2 = _interopRequireDefault(_got);async function UT(t,e,n){let r=fa(t,e),{organization:i}=await p(r,Ji);return _got2.default.extend({prefixUrl:i.sombra.customerUrl,headers:{Authorization:`Bearer ${e}`,...n?{"X-Sombra-Authorization":`Bearer ${n}`}:{}}})}async function KT(t,e){await p(t,Xr,{input:e})}async function ZT(t,e){await p(t,gr,{requestEnricherId:e})}var pi=20;async function JT(t,e){let n=[],r=0,i=!1;do{let{promptThreads:{nodes:s}}=await p(t,sr,{first:pi,offset:r,filterBy:e});n.push(...s),r+=pi,i=s.length===pi}while(i);return n.sort((s,o)=>s.threadId.localeCompare(o.threadId))}var li=50;async function nP(t,{requestId:e}){let n=[],r=0,i=!1;do{let{requestIdentifiers:{nodes:s}}=await p(t,Or,{first:li,offset:r,requestIds:[e]});n.push(...s),r+=li,i=s.length===li}while(i);return n}async function sP(t,{dataSiloId:e}){let{listReducedRequestsForDataSilo:{totalCount:n}}=await p(t,kr,{input:{dataSiloId:e,isResolved:!1}});return n}var ci=20;async function cP(t){let e=[],n=0,r=!1;do{let{attributeKeys:{nodes:i}}=await p(t,Xi,{first:ci,offset:n});e.push(...i),n+=ci,r=i.length===ci}while(r);return e.sort((i,s)=>i.name.localeCompare(s.name))}var _internationalization = require('@transcend-io/internationalization');var AP=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])})]),Ht=50;async function TP(t,{actions:e=[],statuses:n=[],origins:r=[],text:i,createdAtBefore:s,createdAtAfter:o,isTest:l,isSilent:u,isClosed:c,requestIds:d=[]}={}){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Fetching requests..."));let m=new Date().getTime(),g=new _cliprogress2.default.SingleBar({},_cliprogress2.default.Presets.shades_classic),h=[],I=0,V=!1;do{let{requests:{nodes:T,totalCount:Y}}=await p(t,cr,{first:Ht,offset:I,filterBy:{text:i,type:e.length>0?e:void 0,status:n.length>0?n:void 0,origin:r.length>0?r:void 0,isTest:l,isSilent:u,isClosed:c,createdAtBefore:s?s.toISOString():void 0,createdAtAfter:o?o.toISOString():void 0}});I===0&&Y>Ht&&(_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetching ${Y} requests`)),g.start(Y,0)),h.push(...T),I+=Ht,g.update(I),V=T.length===Ht}while(V);g.stop();let v=new Date().getTime()-m;_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Completed fetching of ${h.length} request in "${v/1e3}" seconds.`));let K=h;return d&&d.length>0&&(K=K.filter(T=>d.includes(T.id)),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Filtered down to ${K.length} requests based on ${d.length} provided IDs.`))),K}var _semver = require('semver'); var _semver2 = _interopRequireDefault(_semver);var ya="7.180",Dl=$e.type({id:$e.string,name:$e.string,value:$e.string,type:_typeutils.valuesOf.call(void 0, _privacytypes.IdentifierType)}),mi=50,Ll= exports.ze =$e.type({identifiers:$e.array(Dl)});async function bP(t,e,{requestId:n}){let r=[],i=0,s=!1,{organization:{sombra:{version:o}}}=await p(t,ss);if(o&&_semver2.default.lt(o,ya))throw new Error(`Please upgrade Sombra to ${ya} or greater to use this command.`);do{let l;try{l=await e.post("v1/request-identifiers",{json:{first:mi,offset:i,requestId:n}}).json()}catch(c){throw new Error(`Failed to fetch request identifiers: ${_optionalChain([c, 'optionalAccess', _88 => _88.response, 'optionalAccess', _89 => _89.body])||_optionalChain([c, 'optionalAccess', _90 => _90.message])}`)}let{identifiers:u}=_typeutils.decodeCodec.call(void 0, Ll,l);r.push(...u),i+=mi,s=u.length===mi}while(s);return r}var ui=50;async function kP(t,{requestId:e}){let n=[],r=0,i=!1;do{let{requestEnrichers:{nodes:s}}=await p(t,fr,{first:ui,offset:r,requestId:e});n.push(...s),r+=ui,i=s.length===ui}while(i);return n}var Wt=100;async function kl(t,{requestId:e,dataSiloId:n,requestStatuses:r,statuses:i,skipLog:s=!1}){let o=new Date().getTime(),l=new _cliprogress2.default.SingleBar({},_cliprogress2.default.Presets.shades_classic),u=[],c=0,d=!1;do{let{requestDataSilos:{nodes:h,totalCount:I}}=await p(t,Lr,{first:Wt,offset:c,filterBy:{dataSiloId:n,requestId:e,status:i,requestStatus:r}});u.push(...h),c===0&&I>Wt&&(_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetching ${I} requests`)),l.start(I,0)),c+=Wt,d=h.length===Wt,l.update(c)}while(d);l.stop();let g=new Date().getTime()-o;return s||_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Completed fetching of ${u.length} request data silos in "${g/1e3}" seconds.`)),u}async function NP(t,{requestId:e,dataSiloId:n}){let r=await kl(t,{requestId:e,dataSiloId:n,skipLog:!0});if(r.length!==1)throw new Error(`Failed to find RequestDataSilo with requestId:${e},dataSiloId:${n}`);return r[0]}function BP(t){return _got2.default.extend({prefixUrl:t})}async function YP(t,{email:e,password:n}){let{determineLoginMethod:{loginMethod:r}}=await p(t,dn,{email:e}),i=await t.rawRequest(Uo,{email:e,password:n,publicKey:r.sombraPublicKey}),{login:{user:s}}=i.data,o=i.headers.get("set-cookie");if(!o||!o.includes("laravel"))throw new Error("Failed to get login cookie in response");return{roles:s.roles,loginCookie:o}}async function ZP(t,{email:e,roleId:n}){let{determineLoginMethod:{loginMethod:r}}=await p(t,dn,{email:e,userId:n});await t.rawRequest(Fo,{id:n,publicKey:r.sombraPublicKey})}var di=20;async function JP(t){let e=[],n=0,r=!1;do{let{users:{nodes:i}}=await p(t,Mr,{first:di,offset:n});e.push(...i),n+=di,r=i.length===di}while(r);return e.sort((i,s)=>i.email.localeCompare(s.email))}async function nS(t,e){let{createApiKey:{apiKey:n}}=await p(t,Ki,{input:e});return n}async function iS(t,e){await p(t,Vi,{id:e})}var fi=20;async function aS(t,e){let n=[],r=0,i=!1;do{let{requestFiles:{nodes:s}}=await p(t,Nr,{first:fi,offset:r,filterBy:e});n.push(...s),r+=fi,i=s.length===fi}while(i);return n.sort((s,o)=>s.remoteId.localeCompare(o.remoteId))}async function mS(t,{id:e,bundleType:n}){await p(t,fo,{airgapBundleId:e,bundleType:n})}async function uS(t,{id:e,bundleType:n}){await p(t,uo,{airgapBundleId:e,bundleType:n})}async function yS(t,e){let{reportPromptRun:{promptRun:n}}=await p(t,Fr,{input:{...e,promptRunMessages:e.promptRunMessages.map(({content:r,...i})=>({...i,message:r}))}});return n.id}async function AS(t,{promptRunId:e,promptRunMessages:n=[],...r}){let{addMessagesToPromptRun:{promptRun:i}}=await p(t,Qr,{input:{...r,...e,promptRunMessages:n.map(({content:s,...o})=>({...o,message:s}))}});return i.id}exports.a = P; exports.b = U; exports.c = Ti; exports.d = ql; exports.e = Pi; exports.f = Ol; exports.g = Si; exports.h = Ei; exports.i = Ml; exports.j = Fl; exports.k = Ri; exports.l = Kl; exports.m = wi; exports.n = en; exports.o = $i; exports.p = bi; exports.q = Yl; exports.r = xi; exports.s = Di; exports.t = Li; exports.u = ki; exports.v = _i; exports.w = Gi; exports.x = vi; exports.y = qi; exports.z = Oi; exports.A = Mi; exports.B = Ni; exports.C = Ui; exports.D = Fi; exports.E = Qi; exports.F = Bi; exports.G = Ki; exports.H = Vi; exports.I = Yi; exports.J = Zi; exports.K = Wi; exports.L = zi; exports.M = Ji; exports.N = Xi; exports.O = er; exports.P = tr; exports.Q = nr; exports.R = ir; exports.S = rr; exports.T = or; exports.U = sr; exports.V = pr; exports.W = lr; exports.X = cr; exports.Y = Pc; exports.Z = Sc; exports._ = Ec; exports.$ = Rc; exports.aa = ur; exports.ba = dr; exports.ca = fr; exports.da = gr; exports.ea = Dc; exports.fa = an; exports.ga = Cr; exports.ha = _c; exports.ia = hr; exports.ja = Ir; exports.ka = Ar; exports.la = Tr; exports.ma = Pr; exports.na = Sr; exports.oa = Er; exports.pa = Rr; exports.qa = wr; exports.ra = $r; exports.sa = br; exports.ta = xr; exports.ua = Dr; exports.va = Lr; exports.wa = Vc; exports.xa = jc; exports.ya = kr; exports.za = _r; exports.Aa = Gr; exports.Ba = vr; exports.Ca = zc; exports.Da = Or; exports.Ea = Mr; exports.Fa = Nr; exports.Ga = Fr; exports.Ha = Qr; exports.Ia = Br; exports.Ja = Kr; exports.Ka = Vr; exports.La = jr; exports.Ma = Yr; exports.Na = Zr; exports.Oa = Hr; exports.Pa = Wr; exports.Qa = zr; exports.Ra = Jr; exports.Sa = Xr; exports.Ta = eo; exports.Ua = to; exports.Va = no; exports.Wa = io; exports.Xa = ro; exports.Ya = oo; exports.Za = so; exports._a = ao; exports.$a = po; exports.ab = lo; exports.bb = co; exports.cb = mo; exports.db = uo; exports.eb = fo; exports.fb = go; exports.gb = yo; exports.hb = Co; exports.ib = ho; exports.jb = Io; exports.kb = Ao; exports.lb = To; exports.mb = Po; exports.nb = So; exports.ob = Eo; exports.pb = Ro; exports.qb = wo; exports.rb = $o; exports.sb = bo; exports.tb = xo; exports.ub = Lo; exports.vb = ko; exports.wb = _o; exports.xb = Go; exports.yb = vo; exports.zb = qo; exports.Ab = Oo; exports.Bb = Mo; exports.Cb = No; exports.Db = dn; exports.Eb = Uo; exports.Fb = Fo; exports.Gb = Em; exports.Hb = Qo; exports.Ib = Bo; exports.Jb = Ko; exports.Kb = Vo; exports.Lb = jo; exports.Mb = Yo; exports.Nb = Zo; exports.Ob = Ho; exports.Pb = Wo; exports.Qb = zo; exports.Rb = Jo; exports.Sb = Xo; exports.Tb = es; exports.Ub = ts; exports.Vb = ns; exports.Wb = is; exports.Xb = rs; exports.Yb = os; exports.Zb = ss; exports._b = p; exports.$b = Sn; exports.ac = as; exports.bc = ps; exports.cc = Rn; exports.dc = cs; exports.ec = ms; exports.fc = ht; exports.gc = us; exports.hc = ds; exports.ic = fs; exports.jc = ys; exports.kc = Ja; exports.lc = Xa; exports.mc = Cs; exports.nc = hs; exports.oc = Is; exports.pc = As; exports.qc = oe; exports.rc = xt; exports.sc = ep; exports.tc = xd; exports.uc = Ts; exports.vc = np; exports.wc = Ps; exports.xc = Lt; exports.yc = Ss; exports.zc = rp; exports.Ac = kt; exports.Bc = Ze; exports.Cc = Xd; exports.Dc = op; exports.Ec = sp; exports.Fc = Rs; exports.Gc = It; exports.Hc = He; exports.Ic = _t; exports.Jc = pp; exports.Kc = ws; exports.Lc = cp; exports.Mc = $s; exports.Nc = bs; exports.Oc = At; exports.Pc = Ds; exports.Qc = qt; exports.Rc = dp; exports.Sc = _s; exports.Tc = fp; exports.Uc = gp; exports.Vc = ze; exports.Wc = Ot; exports.Xc = yp; exports.Yc = Cp; exports.Zc = qs; exports._c = Xe; exports.$c = hp; exports.ad = Ip; exports.bd = Us; exports.cd = Fs; exports.dd = Nn; exports.ed = Qs; exports.fd = Mt; exports.gd = Nt; exports.hd = Ut; exports.id = Ft; exports.jd = Sp; exports.kd = Ep; exports.ld = Bs; exports.md = Rp; exports.nd = wp; exports.od = Ks; exports.pd = Qt; exports.qd = $p; exports.rd = bp; exports.sd = js; exports.td = Bt; exports.ud = Dp; exports.vd = Lp; exports.wd = Ys; exports.xd = Kt; exports.yd = kp; exports.zd = _p; exports.Ad = Zs; exports.Bd = Vt; exports.Cd = Gp; exports.Dd = vp; exports.Ed = Hs; exports.Fd = jt; exports.Gd = qp; exports.Hd = Op; exports.Id = Ws; exports.Jd = Yt; exports.Kd = Mp; exports.Ld = Np; exports.Md = zs; exports.Nd = aI; exports.Od = uI; exports.Pd = ta; exports.Qd = na; exports.Rd = zn; exports.Sd = ia; exports.Td = ra; exports.Ud = oa; exports.Vd = zp; exports.Wd = Jp; exports.Xd = ti; exports.Yd = nl; exports.Zd = ni; exports._d = sa; exports.$d = aa; exports.ae = ol; exports.be = vA; exports.ce = al; exports.de = pl; exports.ee = ca; exports.fe = cl; exports.ge = ml; exports.he = ua; exports.ie = dl; exports.je = fl; exports.ke = AT; exports.le = wT; exports.me = yl; exports.ne = DT; exports.oe = hl; exports.pe = fa; exports.qe = UT; exports.re = KT; exports.se = ZT; exports.te = JT; exports.ue = nP; exports.ve = sP; exports.we = cP; exports.xe = AP; exports.ye = TP; exports.ze = Ll; exports.Ae = bP; exports.Be = kP; exports.Ce = kl; exports.De = NP; exports.Ee = BP; exports.Fe = YP; exports.Ge = ZP; exports.He = JP; exports.Ie = nS; exports.Je = iS; exports.Ke = aS; exports.Le = mS; exports.Me = uS; exports.Ne = yS; exports.Oe = AS;
|
|
2830
|
-
//# sourceMappingURL=chunk-
|
|
2846
|
+
${te.message}`)),s=!0}I+=1,m.update(I)})},{concurrency:10}),m.stop();let z=new Date().getTime()-o;return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${t.length}" data silos and "${h}" datapoints in "${z/1e3}" seconds!`)),{success:!s,dataSiloTitleToId:_typeutils.apply.call(void 0, u,({id:q})=>q)}}async function Is(t,e){let n=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" data silo dependencies...`));let r=_chunkY4BWTFTXcjs.b.call(void 0, e,bn);return await P(r,async(i,s)=>{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`[Batch ${s}/${i.length}] Updating "${i.length}" data silos...`));try{await p(t,en,{input:{dataSilos:i.map(([o,l])=>({id:o,dependedOnDataSiloTitles:l}))}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`[Batch ${s+1}/${i.length}] Synced "${i.length}" data silos!`))}catch(o){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`[Batch ${s+1}/${i.length}] Failed to update "${i.length}" silos! - ${o.message}`))}}),!n}async function As(t){let{consentManager:{consentManager:e}}=await p(t,po);return e}async function oe(t,e){let{consentManager:{consentManager:n}}=await p(t,ao,{},{},e);return n.id}var xn=50;async function xt(t){let e=[],n=0,r=!1;do{let{experiences:{nodes:i}}=await p(t,eo,{first:xn,offset:n});e.push(...i),n+=xn,r=i.length===xn}while(r);return e.sort((i,s)=>i.name.localeCompare(s.name))}var Xa=(n=>(n.Hourly="1h",n.Daily="1d",n))(Xa||{});async function xd(t,e){let{analyticsData:{series:n}}=await p(t,wo,{input:e});return n}async function Ts(t,e){let{consentManagerTheme:{theme:n}}=await p(t,lo,{airgapBundleId:e});return n}var ep=100;async function tp(t,e){let n=await oe(t);await P(_chunkY4BWTFTXcjs.b.call(void 0, e,ep),async r=>{await p(t,ro,{airgapBundleId:n,cookies:r.map(i=>({name:i.name,trackingPurposes:i.trackingPurposes&&i.trackingPurposes.length>0?i.trackingPurposes:void 0,description:i.description,service:i.service,status:i.status,attributes:i.attributes,isRegex:i.isRegex}))})})}async function Ps(t,e){let n=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" cookies...`));let r=e.filter(i=>e.filter(s=>i.name===s.name&&i.isRegex===s.isRegex).length>1);if(r.length>0)throw new Error(`Failed to upload cookies as there were non-unique entries found: ${r.map(({name:i})=>i).join(",")}`);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Upserting "${e.length}" new cookies...`)),await tp(t,e),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced ${e.length} cookies!`))}catch(i){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create cookies! - ${i.message}`))}return!n}var Dn=20;async function Lt(t){let e=[],n=0,r=!1;do{let{teams:{nodes:i}}=await p(t,kr,{first:Dn,offset:n});e.push(...i),n+=Dn,r=i.length===Dn}while(r);return e.sort((i,s)=>i.name.localeCompare(s.name))}async function Ss(t,{dataSubject:e,dataSubjectId:n,skipPublish:r=!1}){await p(t,Oi,{input:{id:n,title:e.title,adminDashboardDefaultSilentMode:e.adminDashboardDefaultSilentMode,actions:e.actions,skipPublish:r&&typeof e.active>"u"}}),typeof e.active=="boolean"&&await p(t,Ni,{input:{id:n,active:e.active,skipPublish:r}})}var Ln=20,np="https://app.transcend.io/infrastructure/api-keys";async function ip(t,e){let n=[],r=0,i=!1;do{let{apiKeys:{nodes:s}}=await p(t,Qi,{first:Ln,offset:r,titles:e});n.push(...s),r+=Ln,i=s.length===Ln}while(i);return n.sort((s,o)=>s.title.localeCompare(o.title))}async function kt({"api-keys":t=[],"data-silos":e=[]},n,r=!1){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetching ${r?"all":t.length} API keys...`));let i=t.map(({title:d})=>d),s=_chunkY4BWTFTXcjs.j.call(void 0, e.map(d=>d["api-key-title"]).filter(d=>!!d)),o=[...s,...i],l=await ip(n,r?void 0:[...s,...i]),u=_chunkY4BWTFTXcjs.e.call(void 0, l,"title"),c=_chunkY4BWTFTXcjs.c.call(void 0, o,l.map(({title:d})=>d));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: ${np}`)),process.exit(1)),u}var kn=20;async function Ze(t,{text:e,titles:n=[],ids:r=[]}={}){let i=[],s=0,o=!1;do{let{prompts:{nodes:l}}=await p(t,Ar,{first:kn,offset:s,filterBy:{...e?{text:e}:{},...n.length>0?{title:n}:{},...r.length>0?{id:r}:{}}});i.push(...l),s+=kn,o=l.length===kn}while(o);return i.sort((l,u)=>l.title.localeCompare(u.title))}async function Xd(t,{promptTitles:e=[],promptIds:n=[]}={}){let{promptsWithVariables:r}=await p(t,Sr,{input:{...e.length>0?{promptTitles:e}:{},...n.length>0?{promptIds:n}:{}}});return r}async function rp(t,e){let{createPrompt:{prompt:n}}=await p(t,Rr,{input:e});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created prompt "${e.title}"!`)),n.id}async function op(t,e){await p(t,Er,{input:{prompts:e.map(([n,r])=>({...n,id:r}))}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated ${e.length} prompts!`))}async function Rs(t,e,n=20){let r=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" prompts...`));let i=await Ze(t),s=_chunkY4BWTFTXcjs.e.call(void 0, i,"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 U(l,async c=>{await rp(t,c)},{concurrency:n}),_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 u=o.filter(c=>!!c[1]);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${u.length}" prompts...`)),await op(t,u),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated "${u.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 It(t){let{organization:e}=await p(t,Oo);return e.deployedPrivacyCenterUrl}async function He(t,e){let n=e;n||(n=await It(t));let{privacyCenter:r}=await p(t,vo,{url:n});return r.id}async function _t(t){let e=await It(t),{privacyCenterPolicies:n}=await p(t,ar,{url:e});return n.sort((r,i)=>r.title.defaultMessage.localeCompare(i.title.defaultMessage))}var sp=100;async function ap(t,e){let n=await He(t);await P(_chunkY4BWTFTXcjs.b.call(void 0, e,sp),async r=>{await p(t,pr,{privacyCenterId:n,policies:r.map(([i,s])=>({id:s,title:i.title,disableEffectiveOn:i.disableEffectiveOn,disabledLocales:i.disabledLocales,...i.effectiveOn||i.content?{version:{...i.effectiveOn?{effectiveOn:i.effectiveOn}:{},...i.content?{content:{defaultMessage:i.content}}:{}}}:{}}))})})}async function ws(t,e){let n=!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 i=await _t(t),s=_chunkY4BWTFTXcjs.e.call(void 0, i,({title:o})=>o.defaultMessage);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Upserting "${e.length}" new policies...`)),await ap(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){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create policies! - ${o.message}`))}return!n}var pp=100;async function lp(t,e){await P(_chunkY4BWTFTXcjs.b.call(void 0, e,pp),async n=>{await p(t,ur,{messages:n.map(r=>({...r.id.includes(".")?{}:{id:r.id},defaultMessage:r.defaultMessage,targetReactIntlId:r.targetReactIntlId,translations:r.translations?Object.entries(r.translations).map(([i,s])=>({locale:i,value:s})):void 0}))})})}async function $s(t,e){let n=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" messages...`));let r=e.filter(i=>e.filter(s=>i.id===s.id).length>1);if(r.length>0)throw new Error(`Failed to upload messages as there were non-unique entries found: ${r.map(({id:i})=>i).join(",")}`);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Upserting "${e.length}" new messages...`)),await lp(t,e),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced ${e.length} messages!`))}catch(i){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create messages! - ${i.message}`))}return!n}async function bs(t,e){let n=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Syncing privacy center..."));let r=await He(t);try{await p(t,Mo,{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(i){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create privacy center! - ${i.message}`))}return!n}var Gn=50;async function At(t){let e=[],n=0,r=!1;do{let{consentPartitions:{nodes:i}}=await p(t,to,{first:Gn,offset:n});e.push(...i),n+=Gn,r=i.length===Gn}while(r);return e.sort((i,s)=>i.name.localeCompare(s.name))}async function Ds(t,e){let n=await oe(t),r=!1,i=await At(t),s=_chunkY4BWTFTXcjs.c.call(void 0, e.map(({name:o})=>o),i.map(({name:o})=>o));return await P(s,async o=>{try{await p(t,Ro,{input:{id:n,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 qn=20;async function vt(t,{includeDeleted:e=!1}={}){let n=[],r=0,i=!1;do{let{purposes:{nodes:s}}=await p(t,Cr,{first:qn,offset:r,input:{includeDeleted:e}});n.push(...s),r+=qn,i=s.length===qn}while(i);return n.sort((s,o)=>s.trackingType.localeCompare(o.trackingType))}var _airgapjstypes = require('@transcend-io/airgap.js-types');var ks="https://app.transcend.io/consent-manager/regional-experiences/purposes";async function up(t,e){let n=await xt(t),r=_chunkY4BWTFTXcjs.e.call(void 0, n,"name"),i=await vt(t),s=_chunkY4BWTFTXcjs.e.call(void 0, i,"trackingType");await U(e,async(o,l)=>{let u=_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 ${ks}`);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 ${ks}`);return h.id})]),d=r[o.name];d?(await p(t,So,{input:{id:d.id,name:o.displayName,regions:o.regions,operator:o.operator,onConsentExpiry:o.onConsentExpiry,consentExpiry:o.consentExpiry,displayPriority:o.displayPriority!==d.displayPriority?o.displayPriority:void 0,viewState:o.viewState,purposes:u,optedOutPurposes:c,browserLanguages:o.browserLanguages,browserTimeZones:o.browserTimeZones}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced consent experience "${o.name}"!`))):(await p(t,Eo,{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:u||[],optedOutPurposes:c||[],browserLanguages:o.browserLanguages,browserTimeZones:o.browserTimeZones}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created consent experience "${o.name}"!`)))},{concurrency:10})}async function _s(t,e){let n;try{n=await oe(t,1)}catch(r){if(r.message.includes("AirgapBundle not found")){let i=await He(t),{createConsentManager:s}=await p(t,co,{domains:e.domains,privacyCenterId:i});n=s.consentManager.id}else throw r}if(e.domains&&await p(t,go,{domains:e.domains,airgapBundleId:n}),e.partition){let i=(await At(t)).find(s=>s.name===e.partition);if(!i)throw new Error(`Partition "${e.partition}" not found. Please create the partition first.`);await p(t,yo,{partitionId:i.id,airgapBundleId:n})}e.version&&await p(t,mo,{airgapBundleId:n,version:e.version}),e.signedIabAgreement&&await p(t,Co,{input:{id:n,...e.signedIabAgreement?{signedIabAgreement:e.signedIabAgreement}:{}}}),e.unknownRequestPolicy&&await p(t,ho,{input:{id:n,unknownRequestPolicy:e.unknownRequestPolicy}}),e.unknownRequestPolicy&&await p(t,Io,{input:{id:n,unknownCookiePolicy:e.unknownCookiePolicy}}),e.telemetryPartitioning&&await p(t,Ao,{input:{id:n,strategy:e.telemetryPartitioning}}),e.consentPrecedence&&await p(t,To,{input:{id:n,consentPrecedence:e.consentPrecedence}}),e.experiences&&await up(t,e.experiences),e.theme&&await p(t,Po,{input:{airgapBundleId:n,...e.theme}})}var We=100;async function dp(t,e){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetching all attribute values for ${e}...`));let n=[],r=0,i=!1;do{let{attributeValues:{nodes:s}}=await p(t,Wr,{first:We,offset:r,attributeKeyId:e});n.push(...s),r+=We,i=s.length===We}while(i);return n.sort((s,o)=>s.name.localeCompare(o.name))}var fp=[_privacytypes.AttributeKeyType.MultiSelect,_privacytypes.AttributeKeyType.SingleSelect];async function ze(t){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Fetching all attributes..."));let e=[],n=0,r=!1;do{let{attributeKeys:{nodes:i}}=await p(t,jr,{first:We,offset:n});e.push(...await Promise.all(i.map(async s=>({...s,values:fp.includes(s.type)?await dp(t,s.id):[]})))),n+=We,r=i.length===We}while(r);return e.sort((i,s)=>i.name.localeCompare(s.name))}var vn=20;async function Ot(t){let e=[],n=0,r=!1;do{let{businessEntities:{nodes:i}}=await p(t,$o,{first:vn,offset:n});e.push(...i),n+=vn,r=i.length===vn}while(r);return e.sort((i,s)=>i.title.localeCompare(s.title))}async function gp(t,e){let n={title:e.title,description:e.description,address:e.address,headquarterCountry:e.headquarterCountry,headquarterSubDivision:e.headquarterSubDivision,dataProtectionOfficerName:e.dataProtectionOfficerName,dataProtectionOfficerEmail:e.dataProtectionOfficerEmail,attributes:e.attributes,teamNames:e.teams,ownerEmails:e.owners},{createBusinessEntity:r}=await p(t,bo,{input:n});return r.businessEntity}async function yp(t,e){let n=_chunkY4BWTFTXcjs.b.call(void 0, e,100);await P(n,async r=>{await p(t,xo,{input:r.map(([i,s])=>({id:s,title:i.title,description:i.description,address:i.address,headquarterCountry:i.headquarterCountry,headquarterSubDivision:i.headquarterSubDivision,dataProtectionOfficerName:i.dataProtectionOfficerName,dataProtectionOfficerEmail:i.dataProtectionOfficerEmail,attributes:i.attributes,teamNames:i.teams,ownerEmails:i.owners}))})})}async function vs(t,e){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" business entities...`));let n=!1,r=await Ot(t),i=_chunkY4BWTFTXcjs.e.call(void 0, r,"title"),s=e.filter(o=>!i[o.title]);await P(s,async o=>{try{let l=await gp(t,o);i[l.title]=l,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced business entity "${o.title}"!`))}catch(l){n=!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 yp(t,e.map(o=>[o,i[o.title].id])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced "${e.length}" business entities!`))}catch(o){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync "${e.length}" business entities ! - ${o.message}`))}return!n}var On=20;async function Xe(t,e=_privacytypes.ConsentTrackerStatus.Live){let n=[],r=0,i=await oe(t),s=!1;do{let{dataFlows:{nodes:o}}=await p(t,oo,{first:On,offset:r,airgapBundleId:i,status:e,...e===_privacytypes.ConsentTrackerStatus.NeedsReview?{showZeroActivity:!0}:{}});n.push(...o),r+=On,s=o.length===On}while(s);return n.sort((o,l)=>o.value.localeCompare(l.value))}var Ms=100;async function Cp(t,e,n=!1){let r=await oe(t);await P(_chunkY4BWTFTXcjs.b.call(void 0, e,Ms),async i=>{await p(t,io,{airgapBundleId:r,dataFlows:i.map(([s,o])=>({id:o,value:s.value,type:s.type,trackingType:s.trackingPurposes&&s.trackingPurposes.length>0?s.trackingPurposes:void 0,description:s.description,service:s.service,status:s.status,attributes:s.attributes})),classifyService:n})})}async function hp(t,e,n=!1){let r=await oe(t);await P(_chunkY4BWTFTXcjs.b.call(void 0, e,Ms),async i=>{await p(t,no,{airgapBundleId:r,dataFlows:i.map(s=>({value:s.value,type:s.type,trackingType:s.trackingPurposes&&s.trackingPurposes.length>0?s.trackingPurposes:void 0,description:s.description,service:s.service,status:s.status,attributes:s.attributes})),dropMatchingDataFlowsInTriage:!0,classifyService:n})})}async function Us(t,e,n){let r=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" data flows...`));let i=e.filter(m=>e.filter(g=>m.value===g.value&&m.type===g.type).length>1);if(i.length>0)throw new Error(`Failed to upload data flows as there were non-unique entries found: ${i.map(({value:m})=>m).join(",")}`);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Fetching data flows..."));let[s,o]=await Promise.all([Xe(t,_privacytypes.ConsentTrackerStatus.Live),Xe(t,_privacytypes.ConsentTrackerStatus.NeedsReview)]),l=[...s,...o],u=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=u.filter(([,m])=>!m).map(([m])=>m);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${c.length}" new data flows...`)),await hp(t,c,n),_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 d=u.filter(m=>!!m[1]);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${d.length}" data flows...`)),await Cp(t,d,n),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated "${d.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 Tp=[...Object.values(_privacytypes.IsoCountryCode),...Object.values(_privacytypes.IsoCountrySubdivisionCode)];async function Fs(t,{action:e,actionId:n,skipPublish:r=!1}){await p(t,ko,{input:{id:n,skipSecondaryIfNoFiles:e.skipSecondaryIfNoFiles,skipDownloadableStep:e.skipDownloadableStep,requiresReview:e.requiresReview,waitingPeriod:e.waitingPeriod,skipPublish:r,regionList:e.regionBlockList?_chunkY4BWTFTXcjs.c.call(void 0, Tp,e.regionBlockList):e.regionList,regionDetectionMethod:e.regionDetectionMethod}})}var Nn=20;async function Mn(t,e){let n=[],r=0,i=!1;do{let{templates:{nodes:s}}=await p(t,Hi,{first:Nn,offset:r,title:e});n.push(...s),r+=Nn,i=s.length===Nn}while(i);return n.sort((s,o)=>s.title.localeCompare(o.title))}async function Qs(t,e){(await Mn(e,t.title)).find(({title:i})=>i===t.title)||await p(e,Wi,{title:t.title})}var Un=20;async function Nt(t){let e=[],n=0,r=!1;do{let{actions:{nodes:i}}=await p(t,Lo,{first:Un,offset:n});e.push(...i),n+=Un,r=i.length===Un}while(r);return e.sort((i,s)=>i.type.localeCompare(s.type))}var Fn=20;async function Mt(t){let e=[],n=0,r=!1;do{let{promptPartials:{nodes:i}}=await p(t,Tr,{first:Fn,offset:n});e.push(...i),n+=Fn,r=i.length===Fn}while(r);return e.sort((i,s)=>i.title.localeCompare(s.title))}var Qn=20;async function Ut(t){let e=[],n=0,r=!1;do{let{promptGroups:{nodes:i}}=await p(t,Pr,{first:Qn,offset:n});e.push(...i),n+=Qn,r=i.length===Qn}while(r);return e.sort((i,s)=>i.title.localeCompare(s.title))}var Bn=20;async function Ft(t,e={}){let n=[],r=0,i=!1;do{let{agents:{nodes:s}}=await p(t,Qo,{first:Bn,offset:r,filterBy:e});n.push(...s),r+=Bn,i=s.length===Bn}while(i);return n.sort((s,o)=>s.name.localeCompare(o.name))}async function Pp(t,e){let n={name:e.name,description:e.description,codeInterpreterEnabled:e.codeInterpreterEnabled,retrievalEnabled:e.retrievalEnabled,promptTitle:e.prompt,largeLanguageModelName:e["large-language-model"].name,largeLanguageModelClient:e["large-language-model"].client},{createAgent:r}=await p(t,Bo,{input:n});return r.agent}async function Sp(t,e){await p(t,Ko,{input:{agents:e.map(([n,r])=>({id:r,name:n.name,description:n.description,codeInterpreterEnabled:n.codeInterpreterEnabled,retrievalEnabled:n.retrievalEnabled}))}})}async function Bs(t,e){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" agents...`));let n=!1,r=await Ft(t),i=_chunkY4BWTFTXcjs.e.call(void 0, r,"name"),s=e.filter(o=>!i[o.name]);await P(s,async o=>{try{let l=await Pp(t,o);i[l.name]=l,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced agent "${o.name}"!`))}catch(l){n=!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 Sp(t,e.map(o=>[o,i[o.name].id])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced "${e.length}" agents!`))}catch(o){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync "${e.length}" agents ! - ${o.message}`))}return!n}async function tt(t,e={}){let{globalActionItemCollections:{nodes:n}}=await p(t,Br,{filterBy:{...e}});return n}async function Ep(t,e){let n={title:e.title,description:e.description||"",hidden:e.hidden||!1,productLine:e.productLine},{createActionItemCollection:r}=await p(t,Kr,{input:n});return r.created}async function Rp(t,e,n){await p(t,Vr,{input:{id:n,title:e.title,description:e.description,hidden:e.hidden,productLine:e.productLine}})}async function Ks(t,e){let n=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" action item collections...`));let r=await tt(t),i=_chunkY4BWTFTXcjs.e.call(void 0, r,"title"),s=e.filter(l=>!i[l.title]);await P(s,async l=>{try{await Ep(t,l),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created action item collection "${l.title}"!`))}catch(u){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create action item collection "${l.title}"! - ${u.message}`))}});let o=e.map(l=>[l,_optionalChain([i, 'access', _36 => _36[l.title], 'optionalAccess', _37 => _37.id])]).filter(l=>!!l[1]);return await P(o,async([l,u])=>{try{await Rp(t,l,u),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced action item collection "${l.title}"!`))}catch(c){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync action item collection "${l.title}"! - ${c.message}`))}}),!n}var Kn=20;async function Qt(t,e={}){let n=[],r=0,i=!1;do{let{globalActionItems:{nodes:s}}=await p(t,_o,{first:Kn,offset:r,filterBy:{...e,...e.startDueDate?{startDueDate:e.startDueDate.toISOString()}:{},...e.endDueDate?{endDueDate:e.endDueDate.toISOString()}:{}}});n.push(...s.map(o=>({...o,id:o.ids[0],title:o.titles[0],notes:o.notes[0],link:o.links[0]}))),r+=Kn,i=s.length===Kn}while(i);return n}async function wp(t,e,n,r={}){let i=_chunkY4BWTFTXcjs.b.call(void 0, e,100);await P(i,async s=>{await p(t,qo,{input:s.map(o=>({title:o.title,type:o.type,priorityOverride:o.priority,dueDate:o.dueDate,customerExperienceActionItemId:o.customerExperienceActionItemId,resolved:o.resolved,notes:o.notes,link:o.link,assigneesUserEmails:o.users,assigneesTeamNames:o.teams,...o.attributes?{}:{},collectionIds:o.collections.map(l=>n[l].id)}))})})}async function $p(t,e,n,r={}){let i=s=>{let o=r[s];if(!o)throw new Error(`Attribute key "${s}" does not exist!`);return o.id};await p(t,Go,{input:{ids:[n],title:e.title,priorityOverride:e.priority,dueDate:e.dueDate,resolved:e.resolved,customerExperienceActionItemId:e.customerExperienceActionItemId,notes:e.notes,link:e.link,assigneesUserEmails:e.users,assigneesTeamNames:e.teams,...e.attributes?{attributes:e.attributes.map(({key:s,values:o})=>({attributeKeyId:i(s),attributeValueNames:o}))}:{}}})}function bp({title:t,collections:e}){return`${t}-${e.map(n=>n.title).sort().join("-")}`}function Vs({title:t,collections:e}){return`${t}-${e.sort().join("-")}`}async function js(t,e){let n=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" actionItems...`));let r=e.some(I=>I.attributes&&I.attributes.length>0),[i,s,o]=await Promise.all([Qt(t),tt(t),r?ze(t):[]]),l=_chunkY4BWTFTXcjs.e.call(void 0, s,"title"),u=_chunkY4BWTFTXcjs.e.call(void 0, i,bp),c=_chunkY4BWTFTXcjs.e.call(void 0, o,"name"),d=_chunkY4BWTFTXcjs.e.call(void 0, i.filter(I=>!!I.customerExperienceActionItemIds),({customerExperienceActionItemIds:I})=>I[0]),m=_chunkY4BWTFTXcjs.j.call(void 0, e.map(I=>I.collections).flat()).filter(I=>!l[I]);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(I=>!u[Vs(I)]&&!d[I.customerExperienceActionItemId]);if(g.length>0)try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${g.length}" actionItems...`)),await wp(t,g,l,c),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created "${g.length}" actionItems!`))}catch(I){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create action items! - ${I.message}`))}let h=e.map(I=>[I,_optionalChain([u, 'access', _38 => _38[Vs(I)], 'optionalAccess', _39 => _39.id])||_optionalChain([d, 'access', _40 => _40[I.customerExperienceActionItemId], 'optionalAccess', _41 => _41.id])]).filter(I=>!!I[1]);return await P(h,async([I,V])=>{try{await $p(t,I,V,c),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced action item "${I.title}"!`))}catch(z){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync action item "${I.title}"! - ${z.message}`))}}),!n}var Vn=20;async function Bt(t){let e=[],n=0,r=!1;do{let{agentFunctions:{nodes:i}}=await p(t,Zo,{first:Vn,offset:n});e.push(...i.map(s=>({...s,parameters:JSON.parse(s.parameters)}))),n+=Vn,r=i.length===Vn}while(r);return e.sort((i,s)=>i.name.localeCompare(s.name))}async function xp(t,e){let n={name:e.name,description:e.description,parameters:e.parameters,agentIds:[]},{createAgentFunction:r}=await p(t,Ho,{input:n});return r.agentFunction}async function Dp(t,e){await p(t,Wo,{input:{agentFunctions:e.map(([n,r])=>({id:r,name:n.name,description:n.description,parameters:n.parameters}))}})}async function Ys(t,e){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" agent functions...`));let n=!1,r=await Bt(t),i=_chunkY4BWTFTXcjs.e.call(void 0, r,"name"),s=e.filter(o=>!i[o.name]);await P(s,async o=>{try{let l=await xp(t,o);i[l.name]=l,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced agent function "${o.name}"!`))}catch(l){n=!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 Dp(t,e.map(o=>[o,i[o.name].id])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced "${e.length}" agent functions!`))}catch(o){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync "${e.length}" agent functions! - ${o.message}`))}return!n}var jn=20;async function Kt(t,e={}){let n=[],r=0,i=!1;do{let{agentFiles:{nodes:s}}=await p(t,Vo,{first:jn,offset:r,filterBy:e});n.push(...s),r+=jn,i=s.length===jn}while(i);return n.sort((s,o)=>s.name.localeCompare(o.name))}async function Lp(t,e){let n={name:e.name,description:e.description,fileId:e.fileId,size:e.size,purpose:e.purpose,fileUploadedAt:new Date,agentIds:[]},{createAgentFile:r}=await p(t,jo,{input:n});return r.agentFile}async function kp(t,e){await p(t,Yo,{input:{agentFiles:e.map(([n,r])=>({id:r,name:n.name,description:n.description,fileId:n.fileId,size:n.size,purpose:n.purpose}))}})}async function Zs(t,e){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" agent files...`));let n=!1,r=await Kt(t),i=_chunkY4BWTFTXcjs.e.call(void 0, r,"name"),s=e.filter(o=>!i[o.name]);await P(s,async o=>{try{let l=await Lp(t,o);i[l.name]=l,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced agent file "${o.name}"!`))}catch(l){n=!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 kp(t,e.map(o=>[o,i[o.name].id])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced "${e.length}" agent files!`))}catch(o){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync "${e.length}" agent files! - ${o.message}`))}return!n}var Yn=20;async function Vt(t){let e=[],n=0,r=!1;do{let{vendors:{nodes:i}}=await p(t,zo,{first:Yn,offset:n});e.push(...i),n+=Yn,r=i.length===Yn}while(r);return e.sort((i,s)=>i.title.localeCompare(s.title))}async function _p(t,e){let n={title:e.title,description:e.description,address:e.address,headquarterCountry:e.headquarterCountry,headquarterSubDivision:e.headquarterSubDivision,dataProcessingAgreementLink:e.dataProcessingAgreementLink,contactName:e.contactName,contactPhone:e.contactPhone,websiteUrl:e.websiteUrl},{createVendor:r}=await p(t,Jo,{input:n});return r.vendor}async function Gp(t,e){await p(t,Xo,{input:{vendors:e.map(([n,r])=>({id:r,title:n.title,description:n.description,address:n.address,headquarterCountry:n.headquarterCountry,headquarterSubDivision:n.headquarterSubDivision,dataProcessingAgreementLink:n.dataProcessingAgreementLink,contactName:n.contactName,contactPhone:n.contactPhone,websiteUrl:n.websiteUrl,attributes:n.attributes}))}})}async function Hs(t,e){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" vendors...`));let n=!1,r=await Vt(t),i=_chunkY4BWTFTXcjs.e.call(void 0, r,"title"),s=e.filter(o=>!i[o.title]);await P(s,async o=>{try{let l=await _p(t,o);i[l.title]=l,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced vendor "${o.title}"!`))}catch(l){n=!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 Gp(t,e.map(o=>[o,i[o.title].id])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced "${e.length}" vendors!`))}catch(o){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync "${e.length}" vendors ! - ${o.message}`))}return!n}var Zn=20;async function jt(t){let e=[],n=0,r=!1;do{let{dataSubCategories:{nodes:i}}=await p(t,es,{first:Zn,offset:n});e.push(...i),n+=Zn,r=i.length===Zn}while(r);return e.sort((i,s)=>i.name.localeCompare(s.name))}async function qp(t,e){let n={name:e.name,category:e.category,description:e.description},{createDataCategory:r}=await p(t,ts,{input:n});return r.dataCategory}async function vp(t,e){await p(t,ns,{input:{dataSubCategories:e.map(([n,r])=>({id:r,description:n.description,attributes:n.attributes}))}})}async function Ws(t,e){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" data categories...`));let n=!1,r=await jt(t),i=_chunkY4BWTFTXcjs.e.call(void 0, r,({name:o,category:l})=>`${o}:${l}`),s=e.filter(o=>!i[`${o.name}:${o.category}`]);await P(s,async o=>{try{let l=await qp(t,o);i[`${l.name}:${l.category}`]=l,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced data category "${o.name}"!`))}catch(l){n=!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 vp(t,e.map(o=>[o,i[`${o.name}:${o.category}`].id])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced "${e.length}" data categories!`))}catch(o){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync "${e.length}" data categories ! - ${o.message}`))}return!n}var Hn=20;async function Yt(t){let e=[],n=0,r=!1;do{let{processingPurposeSubCategories:{nodes:i}}=await p(t,is,{first:Hn,offset:n});e.push(...i),n+=Hn,r=i.length===Hn}while(r);return e.sort((i,s)=>i.name.localeCompare(s.name))}async function Op(t,e){let n={name:e.name,purpose:e.purpose,description:e.description},{createProcessingPurposeSubCategory:r}=await p(t,rs,{input:n});return r.processingPurposeSubCategory}async function Np(t,e){await p(t,os,{input:{processingPurposeSubCategories:e.map(([n,r])=>({id:r,description:n.description,attributes:n.attributes}))}})}async function zs(t,e){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" processing purposes...`));let n=!1,r=await Yt(t),i=_chunkY4BWTFTXcjs.e.call(void 0, r,({name:o,purpose:l})=>`${o}:${l}`),s=e.filter(o=>!i[`${o.name}:${o.purpose}`]);await P(s,async o=>{try{let l=await Op(t,o);i[`${l.name}:${l.purpose}`]=l,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced processing purpose "${o.name}"!`))}catch(l){n=!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 Np(t,e.map(o=>[o,i[`${o.name}:${o.purpose}`].id])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced "${e.length}" processing purposes!`))}catch(o){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync "${e.length}" processing purposes ! - ${o.message}`))}return!n}async function Mp(t,e){let n={name:e.name,description:e.description,ssoTitle:e["sso-title"],ssoDepartment:e["sso-department"],ssoGroup:e["sso-group"],scopes:e.scopes,userEmails:e.users},{createTeam:r}=await p(t,_r,{input:n});return r.team}async function Up(t,e,n){let{updateTeam:r}=await p(t,Gr,{input:{id:n,name:e.name,description:e.description,ssoTitle:e["sso-title"],ssoDepartment:e["sso-department"],ssoGroup:e["sso-group"],scopes:e.scopes,userEmails:e.users}});return r.team}async function Js(t,e){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" teams...`));let n=!1,r=await Lt(t),i=_chunkY4BWTFTXcjs.e.call(void 0, r,"name"),s=e.filter(l=>!i[l.name]),o=e.filter(l=>!!i[l.name]);return await P(s,async l=>{try{let u=await Mp(t,l);i[u.name]=u,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created team "${l.name}"!`))}catch(u){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync team "${l.name}"! - ${u.message}`))}}),await P(o,async l=>{try{let u=await Up(t,l,i[l.name].id);i[u.name]=u,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated team "${l.name}"!`))}catch(u){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync team "${l.name}"! - ${u.message}`))}}),!n}async function Fp(t,e){let{createPromptPartial:{promptPartial:n}}=await p(t,$r,{input:e});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created prompt partial "${e.title}"!`)),n.id}async function Qp(t,e){await p(t,wr,{input:{promptPartials:e.map(([n,r])=>({...n,id:r}))}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated ${e.length} prompt partials!`))}async function Xs(t,e,n=20){let r=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" prompt partials...`));let i=await Mt(t),s=_chunkY4BWTFTXcjs.e.call(void 0, i,"title"),o=e.map(c=>[c,_optionalChain([s, 'access', _42 => _42[c.title], 'optionalAccess', _43 => _43.id])]),l=o.filter(([,c])=>!c).map(([c])=>c);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${l.length}" new prompt partials...`)),await U(l,async c=>{await Fp(t,c)},{concurrency:n}),_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 u=o.filter(c=>!!c[1]);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${u.length}" prompt partials...`)),await Qp(t,u),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated "${u.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 Bp(t,e){let{createPromptGroup:{promptGroup:n}}=await p(t,xr,{input:e});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created prompt group "${e.title}"!`)),n.id}async function Kp(t,e){await p(t,br,{input:{promptGroups:e.map(([n,r])=>({...n,id:r}))}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated ${e.length} prompt groups!`))}async function ea(t,e,n=20){let r=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" prompt groups...`));let i=await Ut(t),s=await Ze(t),o=_chunkY4BWTFTXcjs.e.call(void 0, s,"title"),l=_chunkY4BWTFTXcjs.e.call(void 0, i,"title"),u=e.map(m=>[m,_optionalChain([l, 'access', _44 => _44[m.title], 'optionalAccess', _45 => _45.id])]),c=u.filter(([,m])=>!m).map(([m])=>m);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${c.length}" new prompt groups...`)),await U(c,async m=>{await Bp(t,{...m,promptIds:m.prompts.map(g=>{let h=o[g];if(!h)throw new Error(`Failed to find prompt with title: "${g}"`);return h.id})})},{concurrency:n}),_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 d=u.filter(m=>!!m[1]);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${d.length}" prompt groups...`)),await Kp(t,d.map(([{prompts:m,...g},h])=>[{...g,promptIds:m.map(I=>{let V=o[I];if(!V)throw new Error(`Failed to find prompt with title: "${I}"`);return V.id})},h])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated "${d.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 at=10;async function aI(t,e,{pageSize:n=50,publishToPrivacyCenter:r=!0,classifyService:i=!1,deleteExtraAttributeValues:s=!1}){let o=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetching data with page size ${n}...`));let{templates:l,attributes:u,actions:c,identifiers:d,"data-subjects":m,"business-entities":g,enrichers:h,cookies:I,"consent-manager":V,"data-silos":z,"data-flows":q,prompts:K,"prompt-groups":T,"prompt-partials":Y,agents:Z,"agent-functions":ve,"agent-files":be,vendors:te,"data-categories":pe,"processing-purposes":xe,"action-items":De,"action-item-collections":Oe,teams:Le,"privacy-center":le,messages:ct,policies:mt,partitions:ut}=t,[dt,je,St]=await Promise.all([h||d?as(t,e,!r):{},z||m||h?us(t,e):{},z&&z.map(y=>y["api-key-title"]||[]).reduce((y,_)=>y+_.length,0)>0?kt(t,e):{}]);if(V){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Syncing consent manager..."));try{await _s(e,V),_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(K){let y=await Rs(e,K);o=o||!y}if(Y){let y=await Xs(e,Y);o=o||!y}if(T){let y=await ea(e,T);o=o||!y}if(Le){let y=await Js(e,Le);o=o||!y}if(l&&(_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${l.length}" email templates...`)),await U(l,async y=>{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing template "${y.title}"...`));try{await Qs(y,e),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced template "${y.title}"!`))}catch(_){o=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync template "${y.title}"! - ${_.message}`))}},{concurrency:at}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${l.length}" email templates!`))),g){let y=await vs(e,g);o=o||!y}if(te){let y=await Hs(e,te);o=o||!y}if(pe){let y=await Ws(e,pe);o=o||!y}if(xe){let y=await zs(e,xe);o=o||!y}if(ut){let y=await Ds(e,ut);o=o||!y}if(Z){let y=await Bs(e,Z);o=o||!y}if(ve){let y=await Ys(e,ve);o=o||!y}if(be){let y=await Zs(e,be);o=o||!y}if(I){let y=await Ps(e,I);o=o||!y}if(Oe){let y=await Ks(e,Oe);o=o||!y}if(u){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${u.length}" attributes...`));let y=await ze(e);await U(u,async _=>{let J=y.find(ne=>ne.name===_.name);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing attribute "${_.name}"...`));try{await ms(e,_,{existingAttribute:J,deleteExtraAttributeValues:s}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced attribute "${_.name}"!`))}catch(ne){o=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync attribute "${_.name}"! - ${ne.message}`))}},{concurrency:at}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${u.length}" attributes!`))}if(De){let y=await js(e,De);o=o||!y}if(h&&(_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${h.length}" enrichers...`)),await U(h,async y=>{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing enricher "${y.title}"...`));try{await cs(e,{enricher:y,identifierByName:dt,dataSubjectsByName:je}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced enricher "${y.title}"!`))}catch(_){o=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync enricher "${y.title}"! - ${_.message}`))}},{concurrency:at}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${h.length}" enrichers!`))),d&&(_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${d.length}" identifiers...`)),await U(d,async y=>{let _=dt[y.name];if(!_)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 ps(e,{identifier:y,dataSubjectsByName:je,identifierId:_.id,skipPublish:!r}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced identifier "${y.type}"!`))}catch(J){o=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync identifier "${y.type}"! - ${J.message}`))}},{concurrency:at}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${d.length}" identifiers!`))),c){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${c.length}" actions...`));let y=await Nt(e);await U(c,async _=>{let J=y.find(ne=>ne.type===_.type);if(!J)throw new Error(`Failed to find action with type: ${_.type}. Should have already existing in the organization.`);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing action "${_.type}"...`));try{await Fs(e,{action:_,actionId:J.id,skipPublish:!r}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced action "${_.type}"!`))}catch(ne){o=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync action "${_.type}"! - ${ne.message}`))}},{concurrency:at}),_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 ht(e);await U(m,async _=>{let J=y.find(ne=>ne.type===_.type);if(!J)throw new Error(`Failed to find data subject with type: ${_.type}. Should have already existing in the organization.`);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing data subject "${_.type}"...`));try{await Ss(e,{dataSubject:_,dataSubjectId:J.id,skipPublish:!r}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced data subject "${_.type}"!`))}catch(ne){o=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync data subject "${_.type}"! - ${ne.message}`))}},{concurrency:at}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${m.length}" data subjects!`))}if(q){let y=await Us(e,q,i);o=o||!y}if(le){let y=await bs(e,le);o=o||!y}if(ct){let y=await $s(e,ct);o=o||!y}if(mt){let y=await ws(e,mt);o=o||!y}let Ye=[];if(z){let{success:y,dataSiloTitleToId:_}=await hs(z,e,{dataSubjectsByName:je,apiKeysByTitle:St,pageSize:n});_optionalChain([z, 'optionalAccess', _46 => _46.forEach, 'call', _47 => _47(J=>{J["deletion-dependencies"]&&Ye.push([_[J.title],J["deletion-dependencies"]])})]),o=o||!y}return Ye.length>0&&await Is(e,Ye),o}async function uI(t,e){let n=await p(t,Yi,{dataSiloId:e,type:"DATA_SILO_DISCOVERY"}),{plugins:r,totalCount:i}=n.plugins;return i===0&&(_chunkZUNVPK23cjs.a.error("No active data silo plugins found for this data silo."),process.exit(1)),r[0]}async function ta(t){let e=await It(t),{privacyCenter:{themeStr:n,...r}}=await p(t,No,{url:e});return[{...r,theme:JSON.parse(n)}]}async function na(t){let{translatedMessages:e}=await p(t,mr,{});return e}var Wn=20;async function zn(t,e=_privacytypes.ConsentTrackerStatus.Live){let n=[],r=0,i=await oe(t),s=!1;do{let{cookies:{nodes:o}}=await p(t,so,{first:Wn,offset:r,airgapBundleId:i,status:e});n.push(...o),r+=Wn,s=o.length===Wn}while(s);return n.sort((o,l)=>o.name.localeCompare(l.name))}var Jn=20;async function ia(t){let e=[],n=0,r=!1;do{let{assessmentForms:{nodes:i}}=await p(t,yr,{first:Jn,offset:n});e.push(...i),n+=Jn,r=i.length===Jn}while(r);return e.sort((i,s)=>i.title.localeCompare(s.title))}var Xn=20;async function ra(t){let e=[],n=0,r=!1;do{let{assessmentFormTemplates:{nodes:i}}=await p(t,Ir,{first:Xn,offset:n});e.push(...i),n+=Xn,r=i.length===Xn}while(r);return e.sort((i,s)=>i.title.localeCompare(s.title))}var _iots = require('io-ts'); var W = _interopRequireWildcard(_iots); var ie = _interopRequireWildcard(_iots); var L = _interopRequireWildcard(_iots); var $e = _interopRequireWildcard(_iots);var oa=W.type({dependsOnQuestionReferenceId:W.string,comparisonOperator:_typeutils.valuesOf.call(void 0, _privacytypes.ComparisonOperator),comparisonOperands:W.array(W.string)}),Wp= exports.Wd =W.recursion("AssessmentNestedRule",t=>W.intersection([W.type({logicOperator:_typeutils.valuesOf.call(void 0, _privacytypes.LogicOperator)}),W.partial({rules:W.array(oa),nestedRules:W.array(t)})])),zp= exports.Xd =W.partial({action:_typeutils.valuesOf.call(void 0, _privacytypes.AssessmentsDisplayLogicAction),rule:oa,nestedRule:Wp});function ti(t){return _typeutils.decodeCodec.call(void 0, zp,t)}var tl=ie.intersection([ie.partial({riskAssignment:ie.partial({riskLevelId:ie.string,riskMatrixRowId:ie.string,riskMatrixColumnId:ie.string})}),ie.type({comparisonOperands:ie.array(ie.string),comparisonOperator:_typeutils.valuesOf.call(void 0, _privacytypes.ComparisonOperator)})]);function ni(t){return _typeutils.decodeCodec.call(void 0, tl,t)}var ii=20;async function sa(t){let e=[],n=0,r=!1;do{let{preferenceTopics:{nodes:i}}=await p(t,hr,{first:ii,offset:n});e.push(...i),n+=ii,r=i.length===ii}while(r);return e.sort((i,s)=>`${i.slug}:${i.purpose.trackingType}`.localeCompare(`${s.slug}:${s.purpose.trackingType}`))}async function aa(t){let[e,n]=await Promise.all([vt(t),sa(t)]);return e.map(r=>{let i=n.filter(s=>s.purpose.trackingType===r.trackingType);return{...r,topics:i}})}function fe(t){let e=[];return t.map(n=>{let r=e.find(i=>i.key===n.attributeKey.name);return r===void 0?(r={key:n.attributeKey.name,values:[n.name]},e.push(r)):r.values.push(n.name),e}),e}var rl=["dataSilos","enrichers","templates","apiKeys"];async function qA(t,{dataSiloIds:e,integrationNames:n,debug:r,resources:i=rl,pageSize:s,skipDatapoints:o,includeGuessedCategories:l,skipSubDatapoints:u,trackerStatuses:c=Object.values(_privacytypes.ConsentTrackerStatus)}){if(e.length>0&&n.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[d,m,g,h,I,V,z,q,K,T,Y,Z,ve,be,te,pe,xe,De,Oe,Le,le,ct,mt,ut,dt,je,St,Ye,y,_,J,ne]=await Promise.all([i.includes("dataSilos")||i.includes("dataSubjects")?ht(t):[],i.includes("apiKeys")?kt({},t,!0):[],i.includes("dataSilos")?Cs(t,{ids:e,integrationNames:n,pageSize:s,debug:r,includeGuessedCategories:l,skipDatapoints:o,skipSubDatapoints:u}):[],i.includes("enrichers")?Rn(t):[],i.includes("dataFlows")?[...c.includes(_privacytypes.ConsentTrackerStatus.Live)?await Xe(t,_privacytypes.ConsentTrackerStatus.Live):[],...c.includes(_privacytypes.ConsentTrackerStatus.NeedsReview)?await Xe(t,_privacytypes.ConsentTrackerStatus.NeedsReview):[]]:[],i.includes("cookies")?[...c.includes(_privacytypes.ConsentTrackerStatus.Live)?await zn(t,_privacytypes.ConsentTrackerStatus.Live):[],...c.includes(_privacytypes.ConsentTrackerStatus.NeedsReview)?await zn(t,_privacytypes.ConsentTrackerStatus.NeedsReview):[]]:[],i.includes("customFields")?ze(t):[],i.includes("templates")?Mn(t):[],i.includes("identifiers")?Sn(t):[],i.includes("actions")?Nt(t):[],i.includes("businessEntities")?Ot(t):[],i.includes("consentManager")?As(t):void 0,i.includes("consentManager")?xt(t):[],i.includes("prompts")?Ze(t):[],i.includes("promptPartials")?Mt(t):[],i.includes("promptGroups")?Ut(t):[],i.includes("agents")?Ft(t):[],i.includes("agentFunctions")?Bt(t):[],i.includes("agentFiles")?Kt(t):[],i.includes("vendors")?Vt(t):[],i.includes("dataCategories")?jt(t):[],i.includes("processingPurposes")?Yt(t):[],i.includes("actionItems")?Qt(t,{type:[_privacytypes.ActionItemCode.Onboarding]}):[],i.includes("actionItemCollections")?tt(t):[],i.includes("teams")?Lt(t):[],i.includes("policies")?_t(t):[],i.includes("privacyCenters")?ta(t):[],i.includes("messages")?na(t):[],i.includes("partitions")?At(t):[],i.includes("assessments")?ia(t):[],i.includes("assessmentTemplates")?ra(t):[],i.includes("purposes")?aa(t):[]]),ft=i.includes("consentManager")&&Z?await Ts(t,Z.id):void 0,G={},Ia=_chunkY4BWTFTXcjs.a.call(void 0, g.map(([{apiKeys:f}])=>f.map(({title:C})=>C))),fi=Object.values(m).filter(({title:f})=>i.includes("apiKeys")?!0:Ia.includes(f));if(fi.length>0&&i.includes("apiKeys")&&(G["api-keys"]=fi.map(({title:f})=>({title:f}))),y.length>0&&i.includes("partitions")&&(G.partitions=y.map(({name:f,partition:C})=>({name:f,partition:C}))),Z&&i.includes("consentManager")&&(G["consent-manager"]={bundleUrls:{TEST:Z.testBundleURL,PRODUCTION:Z.bundleURL},domains:Z.configuration.domains||void 0,partition:Z.configuration.partition||void 0,consentPrecedence:Z.configuration.consentPrecedence||void 0,unknownRequestPolicy:Z.configuration.unknownRequestPolicy||void 0,unknownCookiePolicy:Z.configuration.unknownCookiePolicy||void 0,syncEndpoint:Z.configuration.syncEndpoint||void 0,telemetryPartitioning:Z.configuration.telemetryPartitioning||void 0,signedIabAgreement:Z.configuration.signedIabAgreement||void 0,syncGroups:Z.configuration.syncGroups||void 0,theme:ft?{primaryColor:ft.primaryColor||void 0,fontColor:ft.fontColor||void 0,privacyPolicy:ft.privacyPolicy||void 0,prompt:ft.prompt}:void 0,experiences:ve.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}))}),_.length>0&&i.includes("assessments")&&(G.assessments=_.map(({title:f,assessmentGroup:C,sections:S,creator:E,description:R,status:$,assignees:b,externalAssignees:x,reviewers:O,isLocked:v,isArchived:j,isExternallyCreated:F,dueDate:N,createdAt:X,assignedAt:ke,submittedAt:Ne,approvedAt:Me,rejectedAt:Ue,titleIsInternal:_e,retentionSchedule:ce,attributeValues:Pe,resources:gt,syncedRows:Fe})=>({title:f,group:C.title,sections:S.map(({title:ee,status:ge,questions:re,assignees:w,isReviewed:D,externalAssignees:H})=>({title:ee,status:ge,questions:re.map(({title:Qe,type:zt,subType:se,placeholder:me,description:Be,isRequired:Aa,referenceId:Ta,displayLogic:gi,riskLogic:Pa,riskCategories:Sa,riskFramework:Ea,answerOptions:Ra,selectedAnswers:wa,allowedMimeTypes:$a,allowSelectOther:ba,syncModel:xa,syncColumn:Da,attributeKey:La,requireRiskEvaluation:ka,requireRiskMatrixEvaluation:_a})=>{let ye=gi?ti(gi):void 0;return{title:Qe,type:zt,"sub-type":se,placeholder:me,description:Be,"is-required":Aa,"reference-id":Ta,"display-logic":ye&&Object.keys(ye).length>0?{action:ye.action,rule:ye.rule?{"depends-on-question-reference-id":ye.rule.dependsOnQuestionReferenceId,"comparison-operator":ye.rule.comparisonOperator,"comparison-operands":ye.rule.comparisonOperands}:void 0,"nested-rule":ye.nestedRule?{"logic-operator":ye.nestedRule.logicOperator,rules:(ye.nestedRule.rules||[]).map(ue=>({"depends-on-question-reference-id":ue.dependsOnQuestionReferenceId,"comparison-operator":ue.comparisonOperator,"comparison-operands":ue.comparisonOperands}))}:void 0}:void 0,"risk-logic":Pa.map(ue=>{let Jt=ni(ue);return{"risk-level":_optionalChain([Jt, 'access', _48 => _48.riskAssignment, 'optionalAccess', _49 => _49.riskLevelId]),"comparison-operands":Jt.comparisonOperands,"comparison-operator":Jt.comparisonOperator}}),"risk-categories":Sa.map(({title:ue})=>ue),"risk-framework":_optionalChain([Ea, 'optionalAccess', _50 => _50.title]),"answer-options":Ra.map(({value:ue})=>({value:ue})),"selected-answers":wa.map(({value:ue})=>ue),"allowed-mime-types":$a,"allow-select-other":ba,"sync-model":xa||void 0,"sync-column":Da||void 0,"attribute-key":_optionalChain([La, 'optionalAccess', _51 => _51.name]),"require-risk-evaluation":ka,"require-risk-matrix-evaluation":_a}}),assignees:w.map(({email:Qe})=>Qe),"external-assignees":H.map(({email:Qe})=>Qe),"is-reviewed":D})),creator:_optionalChain([E, 'optionalAccess', _52 => _52.email]),description:R,status:$,assignees:b.map(({email:ee})=>ee),"external-assignees":x.map(({email:ee})=>ee),reviewers:O.map(({email:ee})=>ee),locked:v,archived:j,external:F,"title-is-internal":_e,"due-date":N||void 0,"created-at":X||void 0,"assigned-at":ke||void 0,"submitted-at":Ne||void 0,"approved-at":Me||void 0,"rejected-at":Ue||void 0,"retention-schedule":ce?{type:ce.type,"duration-days":ce.durationDays,operand:ce.operation}:void 0,attributes:Pe!==void 0&&Pe.length>0?fe(Pe):void 0,resources:gt.map(({resourceType:ee,title:ge,name:re,category:w,type:D,purpose:H})=>({type:ee,title:w?`${w} - ${re}`:H?`${H} - ${re}`:ge||re||D||""})),rows:Fe.map(({resourceType:ee,title:ge,name:re,category:w,type:D,purpose:H})=>({type:ee,title:w?`${w} - ${re}`:H?`${H} - ${re}`:ge||re||D||""}))}))),J.length>0&&i.includes("assessmentTemplates")&&(G["assessment-templates"]=J.map(({title:f,description:C,sections:S,status:E,source:R,creator:$,isLocked:b,isArchived:x,createdAt:O,retentionSchedule:v})=>({title:f,description:C,sections:S.map(({title:j,questions:F})=>({title:j,questions:F.map(({title:N,type:X,subType:ke,placeholder:Ne,description:Me,isRequired:Ue,referenceId:_e,displayLogic:ce,riskLogic:Pe,riskCategories:gt,riskFramework:Fe,answerOptions:ee,allowedMimeTypes:ge,allowSelectOther:re,syncModel:w,syncColumn:D,attributeKey:H,requireRiskEvaluation:Qe,requireRiskMatrixEvaluation:zt})=>{let se=ce?ti(ce):void 0;return{title:N,type:X,"sub-type":ke,placeholder:Ne,description:Me,"is-required":Ue,"reference-id":_e,"display-logic":se&&Object.keys(se).length>0?{action:se.action,rule:se.rule?{"depends-on-question-reference-id":se.rule.dependsOnQuestionReferenceId,"comparison-operator":se.rule.comparisonOperator,"comparison-operands":se.rule.comparisonOperands}:void 0,"nested-rule":se.nestedRule?{"logic-operator":se.nestedRule.logicOperator,rules:(se.nestedRule.rules||[]).map(me=>({"depends-on-question-reference-id":me.dependsOnQuestionReferenceId,"comparison-operator":me.comparisonOperator,"comparison-operands":me.comparisonOperands}))}:void 0}:void 0,"risk-logic":Pe.map(me=>{let Be=ni(me);return{"risk-level":_optionalChain([Be, 'access', _53 => _53.riskAssignment, 'optionalAccess', _54 => _54.riskLevelId]),"risk-matrix-row":_optionalChain([Be, 'access', _55 => _55.riskAssignment, 'optionalAccess', _56 => _56.riskMatrixRowId]),"risk-matrix-column":_optionalChain([Be, 'access', _57 => _57.riskAssignment, 'optionalAccess', _58 => _58.riskMatrixColumnId]),"comparison-operands":Be.comparisonOperands,"comparison-operator":Be.comparisonOperator}}),"risk-categories":gt.map(({title:me})=>me),"risk-framework":_optionalChain([Fe, 'optionalAccess', _59 => _59.title]),"answer-options":ee.map(({value:me})=>({value:me})),"allowed-mime-types":ge,"allow-select-other":re,"sync-model":w||void 0,"sync-column":D||void 0,"attribute-key":_optionalChain([H, 'optionalAccess', _60 => _60.name]),"require-risk-evaluation":Qe,"require-risk-matrix-evaluation":zt}})})),status:E,source:R,creator:_optionalChain([$, 'optionalAccess', _61 => _61.email]),locked:b,archived:x,"created-at":O||void 0,"retention-schedule":v?{type:v.type,"duration-days":v.durationDays,operand:v.operation}:void 0}))),be.length>0&&i.includes("prompts")&&(G.prompts=be.map(({title:f,content:C})=>({title:f,content:C}))),te.length>0&&i.includes("promptPartials")&&(G["prompt-partials"]=te.map(({title:f,content:C})=>({title:f,content:C}))),pe.length>0&&i.includes("promptGroups")&&(G["prompt-groups"]=pe.map(({title:f,description:C,prompts:S})=>({title:f,description:C,prompts:S.map(({title:E})=>E)}))),dt.length>0&&i.includes("teams")&&(G.teams=dt.map(({name:f,description:C,ssoDepartment:S,ssoGroup:E,ssoTitle:R,users:$,scopes:b})=>({name:f,description:C,"sso-department":S||void 0,"sso-group":E||void 0,"sso-title":R||void 0,users:$.map(({email:x})=>x),scopes:b.map(({name:x})=>x)}))),d.length>0&&i.includes("dataSubjects")&&(G["data-subjects"]=d.map(({type:f,title:C,active:S,adminDashboardDefaultSilentMode:E,actions:R})=>({type:f,title:_optionalChain([C, 'optionalAccess', _62 => _62.defaultMessage]),active:S,adminDashboardDefaultSilentMode:E,actions:R.map(({type:$})=>$)}))),je.length>0&&(G.policies=je.map(({title:f,versions:C,disabledLocales:S})=>({title:_optionalChain([f, 'optionalAccess', _63 => _63.defaultMessage]),content:_optionalChain([C, 'optionalAccess', _64 => _64[0], 'optionalAccess', _65 => _65.content, 'optionalAccess', _66 => _66.defaultMessage]),disabledLocales:S}))),Ye.length>0&&(G.messages=Ye.map(({id:f,defaultMessage:C,targetReactIntlId:S,translations:E})=>({id:f,defaultMessage:C,targetReactIntlId:S||void 0,translations:E.reduce((R,{locale:$,value:b})=>Object.assign(R,{[$]:b}),{})}))),St.length>0){let f=St[0];G["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(Y.length>0&&i.includes("businessEntities")&&(G["business-entities"]=Y.map(({title:f,description:C,address:S,headquarterCountry:E,headquarterSubDivision:R,dataProtectionOfficerName:$,dataProtectionOfficerEmail:b,attributeValues:x})=>({title:f,description:C||void 0,address:S||void 0,headquarterCountry:E||void 0,headquarterSubDivision:R||void 0,dataProtectionOfficerName:$||void 0,dataProtectionOfficerEmail:b||void 0,attributes:x!==void 0&&x.length>0?fe(x):void 0}))),T.length>0&&i.includes("actions")&&(G.actions=T.map(({type:f,skipSecondaryIfNoFiles:C,skipDownloadableStep:S,requiresReview:E,regionList:R,regionDetectionMethod:$,waitingPeriod:b})=>({type:f,...f===_privacytypes.RequestAction.Erasure?{skipSecondaryIfNoFiles:C,skipDownloadableStep:S}:{},requiresReview:E,waitingPeriod:b,regionDetectionMethod:$,regionList:R.length>0?R:void 0}))),K.length>0&&i.includes("identifiers")&&(G.identifiers=K.map(({name:f,type:C,regex:S,selectOptions:E,privacyCenterVisibility:R,isRequiredInForm:$,placeholder:b,displayTitle:x,dataSubjects:O,displayDescription:v,displayOrder:j})=>({name:f,type:C,regex:S,selectOptions:E.length>0?E:void 0,privacyCenterVisibility:R.length>0?R:void 0,isRequiredInForm:$,placeholder:b||void 0,dataSubjects:O.length>0?O.map(({type:F})=>F):void 0,displayTitle:_optionalChain([x, 'optionalAccess', _67 => _67.defaultMessage]),displayDescription:_optionalChain([v, 'optionalAccess', _68 => _68.defaultMessage]),displayOrder:j}))),xe.length>0&&i.includes("agents")&&(G.agents=xe.map(({name:f,agentId:C,description:S,instructions:E,codeInterpreterEnabled:R,retrievalEnabled:$,prompt:b,largeLanguageModel:x,teams:O,owners:v,agentFunctions:j,agentFiles:F})=>({name:f,agentId:C,description:S||void 0,instructions:E,codeInterpreterEnabled:R,retrievalEnabled:$,prompt:_optionalChain([b, 'optionalAccess', _69 => _69.title]),"large-language-model":{name:x.name,client:x.client},teams:O&&O.length>0?O.map(({name:N})=>N):void 0,owners:v&&v.length>0?v.map(({email:N})=>N):void 0,"agent-functions":j&&j.length>0?j.map(({name:N})=>N):void 0,"agent-files":F&&F.length>0?F.map(({name:N})=>N):void 0}))),mt.length>0&&i.includes("actionItems")&&(G["action-items"]=mt.map(({teams:f,users:C,customerExperienceActionItemIds:[S],dueDate:E,priority:R,resolved:$,collections:b,notes:x,link:O,title:v,type:j,attributeValues:F})=>({teams:f.map(({name:N})=>N),users:C.map(({email:N})=>N),dueDate:E||void 0,title:v,notes:x,customerExperienceActionItemId:S,collections:b.map(({title:N})=>N),link:O,priority:R||void 0,resolved:$,type:j,attributes:F!==void 0&&F.length>0?fe(F):void 0}))),ut.length>0&&i.includes("actionItemCollections")&&(G["action-item-collections"]=ut.map(({title:f,description:C,hidden:S,productLine:E})=>({title:f,description:C||void 0,hidden:S,productLine:E}))),De.length>0&&i.includes("agentFunctions")&&(G["agent-functions"]=De.map(({name:f,description:C,parameters:S})=>({name:f,description:C,parameters:JSON.stringify(S)}))),Oe.length>0&&i.includes("agentFiles")&&(G["agent-files"]=Oe.map(({name:f,description:C,fileId:S,size:E,purpose:R})=>({name:f,description:C,fileId:S,size:E,purpose:R}))),Le.length>0&&i.includes("vendors")&&(G.vendors=Le.map(({title:f,description:C,dataProcessingAgreementLink:S,contactName:E,contactPhone:R,address:$,headquarterCountry:b,headquarterSubDivision:x,websiteUrl:O,businessEntity:v,teams:j,owners:F,attributeValues:N})=>({title:f,description:C||void 0,dataProcessingAgreementLink:S||void 0,contactName:E||void 0,contactPhone:R||void 0,address:$||void 0,headquarterCountry:b||void 0,headquarterSubDivision:x||void 0,websiteUrl:O||void 0,businessEntity:_optionalChain([v, 'optionalAccess', _70 => _70.title]),teams:j&&j.length>0?j.map(({name:X})=>X):void 0,owners:F&&F.length>0?F.map(({email:X})=>X):void 0,attributes:N!==void 0&&N.length>0?fe(N):void 0}))),le.length>0&&i.includes("dataCategories")&&(G["data-categories"]=le.map(({name:f,category:C,description:S,regex:E,owners:R,teams:$,attributeValues:b})=>({name:f,category:C,description:S||void 0,regex:E||void 0,owners:R&&R.length>0?R.map(({email:x})=>x):void 0,teams:$&&$.length>0?$.map(({name:x})=>x):void 0,attributes:b!==void 0&&b.length>0?fe(b):void 0}))),ct.length>0&&i.includes("processingPurposes")&&(G["processing-purposes"]=ct.map(({name:f,purpose:C,description:S,owners:E,teams:R,attributeValues:$})=>({name:f,purpose:C,description:S||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:$!==void 0&&$.length>0?fe($):void 0}))),I.length>0&&i.includes("dataFlows")&&(G["data-flows"]=I.map(({value:f,type:C,description:S,trackingType:E,service:R,status:$,owners:b,teams:x,attributeValues:O})=>({value:f,type:C,description:S||void 0,trackingPurposes:E,status:$,service:_optionalChain([R, 'optionalAccess', _71 => _71.integrationName]),owners:b.map(({email:v})=>v),teams:x.map(({name:v})=>v),attributes:O!==void 0&&O.length>0?fe(O):void 0}))),V.length>0&&i.includes("cookies")&&(G.cookies=V.map(({name:f,isRegex:C,description:S,trackingPurposes:E,service:R,status:$,owners:b,teams:x,attributeValues:O})=>({name:f,isRegex:C,description:S||void 0,trackingPurposes:E,status:$,service:_optionalChain([R, 'optionalAccess', _72 => _72.integrationName]),owners:b.map(({email:v})=>v),teams:x.map(({name:v})=>v),attributes:O!==void 0&&O.length>0?fe(O):void 0}))),z.length>0&&i.includes("customFields")&&(G.attributes=z.map(({description:f,name:C,type:S,values:E,enabledOn:R=[]})=>({description:f||void 0,resources:R,name:C,type:S,values:E.map(({name:$,color:b,description:x})=>({name:$,color:b||void 0,description:x}))}))),ne.length>0&&(G.purposes=ne.map(({name:f,description:C,trackingType:S,defaultConsent:E,configurable:R,showInConsentManager:$,isActive:b,displayOrder:x,optOutSignals:O,authLevel:v,topics:j,showInPrivacyCenter:F,title:N})=>({name:f,title:N,description:C||void 0,trackingType:S,"default-consent":E,configurable:R,"show-in-consent-manager":$,"show-in-privacy-center":F,"is-active":b,"display-order":x,"opt-out-signals":O.length>0?O:void 0,"auth-level":v||void 0,"preference-topics":j.map(({title:X,type:ke,displayDescription:Ne,defaultConfiguration:Me,showInPrivacyCenter:Ue,preferenceOptionValues:_e})=>({title:X.defaultMessage,type:ke,description:Ne.defaultMessage,"default-configuration":Me,"show-in-privacy-center":Ue,..._e.length>0?{options:_e.map(({title:ce,slug:Pe})=>({title:ce.defaultMessage,slug:Pe}))}:{}}))}))),e.length===0&&q.length>0&&i.includes("templates")&&(G.templates=q.map(({title:f})=>({title:f}))),h.length>0&&i.includes("enrichers")&&(G.enrichers=h.map(({title:f,url:C,type:S,inputIdentifier:E,identifiers:R,actions:$,testRegex:b,dataSubjects:x,expirationDuration:O,lookerQueryTitle:v,transitionRequestStatus:j,phoneNumbers:F,regionList:N})=>({title:f,url:C||void 0,type:S,"input-identifier":_optionalChain([E, 'optionalAccess', _73 => _73.name]),"output-identifiers":R.map(({name:X})=>X),"privacy-actions":Object.values(_privacytypes.RequestAction).length===$.length?void 0:$,testRegex:b||void 0,lookerQueryTitle:v||void 0,expirationDuration:parseInt(O,10),transitionRequestStatus:j||void 0,phoneNumbers:F&&F.length>0?F:void 0,regionList:N&&N.length>0?N:void 0,"data-subjects":x.map(({type:X})=>X)}))),g.length>0&&i.includes("dataSilos")){let f=_chunkY4BWTFTXcjs.e.call(void 0, d,"type");G["data-silos"]=g.map(([{title:C,description:S,url:E,type:R,outerType:$,apiKeys:b,notifyEmailAddress:x,identifiers:O,dependentDataSilos:v,owners:j,country:F,countrySubDivision:N,teams:X,subjectBlocklist:ke,isLive:Ne,promptAVendorEmailSendFrequency:Me,promptAVendorEmailSendType:Ue,promptAVendorEmailIncludeIdentifiersAttachment:_e,promptAVendorEmailCompletionLinkType:ce,manualWorkRetryFrequency:Pe,catalog:gt,attributeValues:Fe,discoveredBy:ee,businessEntities:ge},re])=>({title:C,description:S,integrationName:R,"outer-type":$||void 0,url:E||void 0,"api-key-title":_optionalChain([b, 'access', _74 => _74[0], 'optionalAccess', _75 => _75.title]),"identity-keys":O.filter(({isConnected:w})=>w).map(({name:w})=>w),...v.length>0?{"deletion-dependencies":v.map(({title:w})=>w)}:{},...j.length>0?{owners:j.map(({email:w})=>w)}:{},...X.length>0?{teams:X.map(({name:w})=>w)}:{},...ee.length>0?{discoveredBy:ee.map(({title:w})=>w)}:{},...ge.length>0?{businessEntities:ge.map(({title:w})=>w)}:{},country:F||void 0,countrySubDivision:N||void 0,disabled:!Ne,"data-subjects":ke.length>0?fs(ke.map(({type:w})=>w),f):void 0,...gt.hasAvcFunctionality?{"email-settings":{"notify-email-address":x||void 0,"send-frequency":Me,"send-type":Ue,"include-identifiers-attachment":_e,"completion-link-type":ce,"manual-work-retry-frequency":Pe}}:{},attributes:Fe!==void 0&&Fe.length>0?fe(Fe):void 0,datapoints:re.map(w=>({key:w.name,title:_optionalChain([w, 'access', _76 => _76.title, 'optionalAccess', _77 => _77.defaultMessage]),description:_optionalChain([w, 'access', _78 => _78.description, 'optionalAccess', _79 => _79.defaultMessage]),owners:w.owners.map(({email:D})=>D),teams:w.teams.map(({name:D})=>D),...w.path.length>0?{path:w.path}:{},..._optionalChain([w, 'access', _80 => _80.dataCollection, 'optionalAccess', _81 => _81.title])?{"data-collection-tag":w.dataCollection.title.defaultMessage}:{},...w.dbIntegrationQueries.length>0?{"privacy-action-queries":_chunkY4BWTFTXcjs.f.call(void 0, _chunkY4BWTFTXcjs.e.call(void 0, w.dbIntegrationQueries,"requestType"),D=>D.suggestedQuery||D.query||void 0)}:{},...w.subDataPoints.length>0?{fields:w.subDataPoints.map(D=>({key:D.name,description:D.description,purposes:D.purposes,categories:D.categories,...l&&D.pendingCategoryGuesses?{"guessed-categories":D.pendingCategoryGuesses.filter(H=>H.status==="PENDING").map(H=>({category:{name:H.category.name,category:H.category.category},status:H.status,confidence:H.confidence,classifierVersion:H.classifierVersion||void 0}))}:{},"access-request-visibility-enabled":D.accessRequestVisibilityEnabled,"erasure-request-redaction-enabled":D.erasureRequestRedactionEnabled,attributes:D.attributeValues!==void 0&&D.attributeValues.length>0?fe(D.attributeValues):void 0})).sort((D,H)=>D.key.localeCompare(H.key))}:{},"privacy-actions":w.actionSettings.filter(({active:D})=>D).map(({type:D})=>D)})).sort((w,D)=>[..._nullishCoalesce(w.path, () => ([])),w.key].join(".").localeCompare([..._nullishCoalesce(D.path, () => ([])),D.key].join(".")))}))}return G}var ri=20;async function la(t){let e=[],n=0,r=!1;do{let{softwareDevelopmentKits:{nodes:i}}=await p(t,Xi,{first:ri,offset:n});e.push(...i),n+=ri,r=i.length===ri}while(r);return e.sort((i,s)=>i.name.localeCompare(s.name))}var ol=100;async function sl(t,e){let{createSoftwareDevelopmentKit:{softwareDevelopmentKit:n}}=await p(t,tr,{input:e});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created software development kit "${e.name}"!`)),n}async function al(t,e){let{updateSoftwareDevelopmentKits:{softwareDevelopmentKits:n}}=await p(t,er,{input:{softwareDevelopmentKits:e}});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated ${e.length} software development kits!`)),n}async function ca(t,e,n=20){let r=!1,i=[];_chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Syncing software development kits..."));let s=await la(t),o=_chunkY4BWTFTXcjs.e.call(void 0, s,({name:m,codePackageType:g})=>JSON.stringify({name:m,codePackageType:g})),l=e.map(m=>[m,_optionalChain([o, 'access', _82 => _82[JSON.stringify({name:m.name,codePackageType:m.codePackageType})], 'optionalAccess', _83 => _83.id])]),u=l.filter(([,m])=>!m).map(([m])=>m);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${u.length}" new software development kits...`)),await U(u,async m=>{let g=await sl(t,m);i.push(g)},{concurrency:n}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced ${u.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]),d=_chunkY4BWTFTXcjs.b.call(void 0, c,ol);return _chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${c.length}" software development kits...`)),await P(d,async m=>{try{let g=await al(t,m.map(([{codePackageType:h,...I},V])=>({...I,id:V})));i.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:i,success:!r}}var oi=20;async function ma(t){let e=[],n=0,r=!1;do{let{repositories:{nodes:i}}=await p(t,Mi,{first:oi,offset:n});e.push(...i),n+=oi,r=i.length===oi}while(r);return e.sort((i,s)=>i.name.localeCompare(s.name))}var pl=100;async function ll(t,e){let{createRepository:{repository:n}}=await p(t,Fi,{input:e});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created repository "${e.name}"!`)),n}async function cl(t,e){let{updateRepositories:{repositories:n}}=await p(t,Ui,{input:{repositories:e}});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated ${e.length} repositories!`)),n}async function ua(t,e,n=20){let r=!1,i=[],s=await ma(t),o=_chunkY4BWTFTXcjs.e.call(void 0, s,"name"),l=e.map(m=>[m,_optionalChain([o, 'access', _84 => _84[m.name], 'optionalAccess', _85 => _85.id])]),u=l.filter(([,m])=>!m).map(([m])=>m);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${u.length}" new repositories...`)),await U(u,async m=>{let g=await ll(t,m);i.push(g)},{concurrency:n}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced ${u.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]),d=_chunkY4BWTFTXcjs.b.call(void 0, c,pl);return _chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${c.length}" repositories...`)),await P(d,async m=>{try{let g=await cl(t,m.map(([h,I])=>({...h,id:I})));i.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:i,success:!r}}var si=20;async function da(t){let e=[],n=0,r=!1;do{let{codePackages:{nodes:i}}=await p(t,nr,{first:si,offset:n});e.push(...i),n+=si,r=i.length===si}while(r);return e.sort((i,s)=>i.name.localeCompare(s.name))}var ml=100,pt="%%%%";async function ul(t,e){let{createCodePackage:{codePackage:n}}=await p(t,rr,{input:e});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created code package "${e.name}"!`)),n}async function dl(t,e){let{updateCodePackages:{codePackages:n}}=await p(t,ir,{input:{codePackages:e}});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated ${e.length} code packages!`)),n}async function AT(t,e,n=20){let r=!1,[i,{softwareDevelopmentKits:s}]=await Promise.all([da(t),ca(t,_chunkY4BWTFTXcjs.k.call(void 0, e.map(({type:g,softwareDevelopmentKits:h=[]})=>h.map(({name:I})=>({name:I,codePackageType:g}))).flat(),({name:g,codePackageType:h})=>`${g}${pt}${h}`),n),ua(t,_chunkY4BWTFTXcjs.k.call(void 0, e,"repositoryName").map(({repositoryName:g})=>({name:g,url:`https://github.com/${g}`})))]),o=_chunkY4BWTFTXcjs.e.call(void 0, s,({name:g,codePackageType:h})=>`${g}${pt}${h}`),l=_chunkY4BWTFTXcjs.e.call(void 0, i,({name:g,type:h})=>`${g}${pt}${h}`),u=e.map(g=>[g,_optionalChain([l, 'access', _86 => _86[`${g.name}${pt}${g.type}`], 'optionalAccess', _87 => _87.id])]),c=u.filter(([,g])=>!g).map(([g])=>g);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${c.length}" new code packages...`)),await U(c,async({softwareDevelopmentKits:g,...h})=>{await ul(t,{...h,...g?{softwareDevelopmentKitIds:_chunkY4BWTFTXcjs.j.call(void 0, g.map(({name:I})=>{let V=o[`${I}${pt}${h.type}`];if(!V)throw new Error(`Failed to find SDK with name: "${I}"`);return V.id}))}:{}})},{concurrency:n}),_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 d=u.filter(g=>!!g[1]);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${d.length}" code packages...`));let m=_chunkY4BWTFTXcjs.b.call(void 0, d,ml);return await P(m,async g=>{try{await dl(t,g.map(([{softwareDevelopmentKits:h,repositoryName:I,...V},z])=>({...V,...h?{softwareDevelopmentKitIds:_chunkY4BWTFTXcjs.j.call(void 0, h.map(({name:q})=>{let K=o[`${q}${pt}${V.type}`];if(!K)throw new Error(`Failed to find SDK with name: "${q}"`);return K.id}))}:{},id:z}))),_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 fl=1e3;async function wT(t,e,n){let r=_chunkY4BWTFTXcjs.b.call(void 0, n,fl);await P(r,async i=>{await p(t,ji,{pluginId:e,rawResults:i})})}var ai=100;async function gl(t){let e=[],n=0,r=!1;do{let{catalogs:{nodes:i}}=await p(t,Di,{first:ai,offset:n});e.push(...i),n+=ai,r=i.length===ai}while(r);return e.sort((i,s)=>i.integrationName.localeCompare(s.integrationName))}async function DT(t){let e=await gl(t),n=e.reduce((i,s)=>Object.assign(i,{[s.integrationName]:s.title}),{}),r=e.reduce((i,s)=>Object.assign(i,{[s.integrationName]:s.hasApiFunctionality}),{});return{catalogs:e,serviceToTitle:n,serviceToSupportedIntegration:r}}function Cl(t,e){return new (0, _graphqlrequest.GraphQLClient)(`${t}/graphql`,{headers:{...e,version:_chunkY4BWTFTXcjs.m}})}function fa(t,e){return Cl(t,{Authorization:`Bearer ${e}`})}var _got = require('got'); var _got2 = _interopRequireDefault(_got);async function UT(t,e,n){let r=fa(t,e),{organization:i}=await p(r,zi);return _got2.default.extend({prefixUrl:i.sombra.customerUrl,headers:{Authorization:`Bearer ${e}`,...n?{"X-Sombra-Authorization":`Bearer ${n}`}:{}}})}async function KT(t,e){await p(t,Xr,{input:e})}async function ZT(t,e){await p(t,fr,{requestEnricherId:e})}var pi=20;async function JT(t,e){let n=[],r=0,i=!1;do{let{promptThreads:{nodes:s}}=await p(t,or,{first:pi,offset:r,filterBy:e});n.push(...s),r+=pi,i=s.length===pi}while(i);return n.sort((s,o)=>s.threadId.localeCompare(o.threadId))}var li=50;async function nP(t,{requestId:e}){let n=[],r=0,i=!1;do{let{requestIdentifiers:{nodes:s}}=await p(t,vr,{first:li,offset:r,requestIds:[e]});n.push(...s),r+=li,i=s.length===li}while(i);return n}async function sP(t,{dataSiloId:e}){let{listReducedRequestsForDataSilo:{totalCount:n}}=await p(t,Lr,{input:{dataSiloId:e,isResolved:!1}});return n}var ci=20;async function cP(t){let e=[],n=0,r=!1;do{let{attributeKeys:{nodes:i}}=await p(t,Ji,{first:ci,offset:n});e.push(...i),n+=ci,r=i.length===ci}while(r);return e.sort((i,s)=>i.name.localeCompare(s.name))}var _internationalization = require('@transcend-io/internationalization');var AP=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])})]),Ht=50;async function TP(t,{actions:e=[],statuses:n=[],origins:r=[],text:i,createdAtBefore:s,createdAtAfter:o,isTest:l,isSilent:u,isClosed:c,requestIds:d=[]}={}){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Fetching requests..."));let m=new Date().getTime(),g=new _cliprogress2.default.SingleBar({},_cliprogress2.default.Presets.shades_classic),h=[],I=0,V=!1;do{let{requests:{nodes:T,totalCount:Y}}=await p(t,lr,{first:Ht,offset:I,filterBy:{text:i,type:e.length>0?e:void 0,status:n.length>0?n:void 0,origin:r.length>0?r:void 0,isTest:l,isSilent:u,isClosed:c,createdAtBefore:s?s.toISOString():void 0,createdAtAfter:o?o.toISOString():void 0}});I===0&&Y>Ht&&(_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetching ${Y} requests`)),g.start(Y,0)),h.push(...T),I+=Ht,g.update(I),V=T.length===Ht}while(V);g.stop();let q=new Date().getTime()-m;_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Completed fetching of ${h.length} request in "${q/1e3}" seconds.`));let K=h;return d&&d.length>0&&(K=K.filter(T=>d.includes(T.id)),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Filtered down to ${K.length} requests based on ${d.length} provided IDs.`))),K}var _semver = require('semver'); var _semver2 = _interopRequireDefault(_semver);var ya="7.180",xl=$e.type({id:$e.string,name:$e.string,value:$e.string,type:_typeutils.valuesOf.call(void 0, _privacytypes.IdentifierType)}),mi=50,Dl= exports.Ae =$e.type({identifiers:$e.array(xl)});async function bP(t,e,{requestId:n}){let r=[],i=0,s=!1,{organization:{sombra:{version:o}}}=await p(t,ss);if(o&&_semver2.default.lt(o,ya))throw new Error(`Please upgrade Sombra to ${ya} or greater to use this command.`);do{let l;try{l=await e.post("v1/request-identifiers",{json:{first:mi,offset:i,requestId:n}}).json()}catch(c){throw new Error(`Failed to fetch request identifiers: ${_optionalChain([c, 'optionalAccess', _88 => _88.response, 'optionalAccess', _89 => _89.body])||_optionalChain([c, 'optionalAccess', _90 => _90.message])}`)}let{identifiers:u}=_typeutils.decodeCodec.call(void 0, Dl,l);r.push(...u),i+=mi,s=u.length===mi}while(s);return r}var ui=50;async function kP(t,{requestId:e}){let n=[],r=0,i=!1;do{let{requestEnrichers:{nodes:s}}=await p(t,dr,{first:ui,offset:r,requestId:e});n.push(...s),r+=ui,i=s.length===ui}while(i);return n}var Wt=100;async function Ll(t,{requestId:e,dataSiloId:n,requestStatuses:r,statuses:i,skipLog:s=!1}){let o=new Date().getTime(),l=new _cliprogress2.default.SingleBar({},_cliprogress2.default.Presets.shades_classic),u=[],c=0,d=!1;do{let{requestDataSilos:{nodes:h,totalCount:I}}=await p(t,Dr,{first:Wt,offset:c,filterBy:{dataSiloId:n,requestId:e,status:i,requestStatus:r}});u.push(...h),c===0&&I>Wt&&(_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetching ${I} requests`)),l.start(I,0)),c+=Wt,d=h.length===Wt,l.update(c)}while(d);l.stop();let g=new Date().getTime()-o;return s||_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Completed fetching of ${u.length} request data silos in "${g/1e3}" seconds.`)),u}async function MP(t,{requestId:e,dataSiloId:n}){let r=await Ll(t,{requestId:e,dataSiloId:n,skipLog:!0});if(r.length!==1)throw new Error(`Failed to find RequestDataSilo with requestId:${e},dataSiloId:${n}`);return r[0]}function BP(t){return _got2.default.extend({prefixUrl:t})}async function YP(t,{email:e,password:n}){let{determineLoginMethod:{loginMethod:r}}=await p(t,dn,{email:e}),i=await t.rawRequest(Uo,{email:e,password:n,publicKey:r.sombraPublicKey}),{login:{user:s}}=i.data,o=i.headers.get("set-cookie");if(!o||!o.includes("laravel"))throw new Error("Failed to get login cookie in response");return{roles:s.roles,loginCookie:o}}async function ZP(t,{email:e,roleId:n}){let{determineLoginMethod:{loginMethod:r}}=await p(t,dn,{email:e,userId:n});await t.rawRequest(Fo,{id:n,publicKey:r.sombraPublicKey})}var di=20;async function JP(t){let e=[],n=0,r=!1;do{let{users:{nodes:i}}=await p(t,Or,{first:di,offset:n});e.push(...i),n+=di,r=i.length===di}while(r);return e.sort((i,s)=>i.email.localeCompare(s.email))}async function nS(t,e){let{createApiKey:{apiKey:n}}=await p(t,Bi,{input:e});return n}async function iS(t,e){await p(t,Ki,{id:e})}async function aS(t,e,n){let r=[],i=null,s=!1;do{let o=await p(t,Mr,{filterBy:{...n},first:e,after:_nullishCoalesce(i, () => (void 0))}),{bulkRequestFiles:{nodes:l,pageInfo:u}}=o;r.push(...l),s=u.hasNextPage,i=u.endCursor}while(s);return r.sort((o,l)=>o.remoteId.localeCompare(l.remoteId))}async function mS(t,{id:e,bundleType:n}){await p(t,fo,{airgapBundleId:e,bundleType:n})}async function uS(t,{id:e,bundleType:n}){await p(t,uo,{airgapBundleId:e,bundleType:n})}async function yS(t,e){let{reportPromptRun:{promptRun:n}}=await p(t,Fr,{input:{...e,promptRunMessages:e.promptRunMessages.map(({content:r,...i})=>({...i,message:r}))}});return n.id}async function AS(t,{promptRunId:e,promptRunMessages:n=[],...r}){let{addMessagesToPromptRun:{promptRun:i}}=await p(t,Qr,{input:{...r,...e,promptRunMessages:n.map(({content:s,...o})=>({...o,message:s}))}});return i.id}exports.a = P; exports.b = U; exports.c = Ai; exports.d = ql; exports.e = Ti; exports.f = vl; exports.g = Pi; exports.h = Si; exports.i = Ol; exports.j = Ul; exports.k = Ei; exports.l = Bl; exports.m = Ri; exports.n = en; exports.o = wi; exports.p = $i; exports.q = jl; exports.r = bi; exports.s = xi; exports.t = Di; exports.u = Li; exports.v = ki; exports.w = _i; exports.x = Gi; exports.y = qi; exports.z = vi; exports.A = Oi; exports.B = Ni; exports.C = Mi; exports.D = Ui; exports.E = Fi; exports.F = Qi; exports.G = Bi; exports.H = Ki; exports.I = ji; exports.J = Yi; exports.K = Hi; exports.L = Wi; exports.M = zi; exports.N = Ji; exports.O = Xi; exports.P = er; exports.Q = tr; exports.R = nr; exports.S = ir; exports.T = rr; exports.U = or; exports.V = ar; exports.W = pr; exports.X = lr; exports.Y = Tc; exports.Z = Pc; exports._ = Sc; exports.$ = Ec; exports.aa = mr; exports.ba = ur; exports.ca = dr; exports.da = fr; exports.ea = xc; exports.fa = an; exports.ga = yr; exports.ha = kc; exports.ia = Cr; exports.ja = hr; exports.ka = Ir; exports.la = Ar; exports.ma = Tr; exports.na = Pr; exports.oa = Sr; exports.pa = Er; exports.qa = Rr; exports.ra = wr; exports.sa = $r; exports.ta = br; exports.ua = xr; exports.va = Dr; exports.wa = Kc; exports.xa = Vc; exports.ya = Lr; exports.za = kr; exports.Aa = _r; exports.Ba = Gr; exports.Ca = Wc; exports.Da = vr; exports.Ea = Or; exports.Fa = tm; exports.Ga = Mr; exports.Ha = Fr; exports.Ia = Qr; exports.Ja = Br; exports.Ka = Kr; exports.La = Vr; exports.Ma = jr; exports.Na = Yr; exports.Oa = Zr; exports.Pa = Hr; exports.Qa = Wr; exports.Ra = zr; exports.Sa = Jr; exports.Ta = Xr; exports.Ua = eo; exports.Va = to; exports.Wa = no; exports.Xa = io; exports.Ya = ro; exports.Za = oo; exports._a = so; exports.$a = ao; exports.ab = po; exports.bb = lo; exports.cb = co; exports.db = mo; exports.eb = uo; exports.fb = fo; exports.gb = go; exports.hb = yo; exports.ib = Co; exports.jb = ho; exports.kb = Io; exports.lb = Ao; exports.mb = To; exports.nb = Po; exports.ob = So; exports.pb = Eo; exports.qb = Ro; exports.rb = wo; exports.sb = $o; exports.tb = bo; exports.ub = xo; exports.vb = Lo; exports.wb = ko; exports.xb = _o; exports.yb = Go; exports.zb = qo; exports.Ab = vo; exports.Bb = Oo; exports.Cb = No; exports.Db = Mo; exports.Eb = dn; exports.Fb = Uo; exports.Gb = Fo; exports.Hb = Em; exports.Ib = Qo; exports.Jb = Bo; exports.Kb = Ko; exports.Lb = Vo; exports.Mb = jo; exports.Nb = Yo; exports.Ob = Zo; exports.Pb = Ho; exports.Qb = Wo; exports.Rb = zo; exports.Sb = Jo; exports.Tb = Xo; exports.Ub = es; exports.Vb = ts; exports.Wb = ns; exports.Xb = is; exports.Yb = rs; exports.Zb = os; exports._b = ss; exports.$b = p; exports.ac = Sn; exports.bc = as; exports.cc = ps; exports.dc = Rn; exports.ec = cs; exports.fc = ms; exports.gc = ht; exports.hc = us; exports.ic = ds; exports.jc = fs; exports.kc = ys; exports.lc = za; exports.mc = Ja; exports.nc = Cs; exports.oc = hs; exports.pc = Is; exports.qc = As; exports.rc = oe; exports.sc = xt; exports.tc = Xa; exports.uc = xd; exports.vc = Ts; exports.wc = tp; exports.xc = Ps; exports.yc = Lt; exports.zc = Ss; exports.Ac = ip; exports.Bc = kt; exports.Cc = Ze; exports.Dc = Xd; exports.Ec = rp; exports.Fc = op; exports.Gc = Rs; exports.Hc = It; exports.Ic = He; exports.Jc = _t; exports.Kc = ap; exports.Lc = ws; exports.Mc = lp; exports.Nc = $s; exports.Oc = bs; exports.Pc = At; exports.Qc = Ds; exports.Rc = vt; exports.Sc = up; exports.Tc = _s; exports.Uc = dp; exports.Vc = fp; exports.Wc = ze; exports.Xc = Ot; exports.Yc = gp; exports.Zc = yp; exports._c = vs; exports.$c = Xe; exports.ad = Cp; exports.bd = hp; exports.cd = Us; exports.dd = Fs; exports.ed = Mn; exports.fd = Qs; exports.gd = Nt; exports.hd = Mt; exports.id = Ut; exports.jd = Ft; exports.kd = Pp; exports.ld = Sp; exports.md = Bs; exports.nd = Ep; exports.od = Rp; exports.pd = Ks; exports.qd = Qt; exports.rd = wp; exports.sd = $p; exports.td = js; exports.ud = Bt; exports.vd = xp; exports.wd = Dp; exports.xd = Ys; exports.yd = Kt; exports.zd = Lp; exports.Ad = kp; exports.Bd = Zs; exports.Cd = Vt; exports.Dd = _p; exports.Ed = Gp; exports.Fd = Hs; exports.Gd = jt; exports.Hd = qp; exports.Id = vp; exports.Jd = Ws; exports.Kd = Yt; exports.Ld = Op; exports.Md = Np; exports.Nd = zs; exports.Od = aI; exports.Pd = uI; exports.Qd = ta; exports.Rd = na; exports.Sd = zn; exports.Td = ia; exports.Ud = ra; exports.Vd = oa; exports.Wd = Wp; exports.Xd = zp; exports.Yd = ti; exports.Zd = tl; exports._d = ni; exports.$d = sa; exports.ae = aa; exports.be = rl; exports.ce = qA; exports.de = sl; exports.ee = al; exports.fe = ca; exports.ge = ll; exports.he = cl; exports.ie = ua; exports.je = ul; exports.ke = dl; exports.le = AT; exports.me = wT; exports.ne = gl; exports.oe = DT; exports.pe = Cl; exports.qe = fa; exports.re = UT; exports.se = KT; exports.te = ZT; exports.ue = JT; exports.ve = nP; exports.we = sP; exports.xe = cP; exports.ye = AP; exports.ze = TP; exports.Ae = Dl; exports.Be = bP; exports.Ce = kP; exports.De = Ll; exports.Ee = MP; exports.Fe = BP; exports.Ge = YP; exports.He = ZP; exports.Ie = JP; exports.Je = nS; exports.Ke = iS; exports.Le = aS; exports.Me = mS; exports.Ne = uS; exports.Oe = yS; exports.Pe = AS;
|
|
2847
|
+
//# sourceMappingURL=chunk-3ZKZCSGD.cjs.map
|