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