@transcend-io/cli 7.0.2 → 7.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (214) hide show
  1. package/README.md +1816 -158
  2. package/dist/bin/bash-complete.cjs +1 -1
  3. package/dist/bin/cli.cjs +1 -1
  4. package/dist/bin/deprecated-command.cjs +2 -2
  5. package/dist/chunk-3ZKZCSGD.cjs +2847 -0
  6. package/dist/chunk-3ZKZCSGD.cjs.map +1 -0
  7. package/dist/{chunk-QXKWSBYR.cjs → chunk-6DWFLWWT.cjs} +2 -2
  8. package/dist/{chunk-QXKWSBYR.cjs.map → chunk-6DWFLWWT.cjs.map} +1 -1
  9. package/dist/chunk-6FGYCQAQ.cjs +2 -0
  10. package/dist/chunk-6FGYCQAQ.cjs.map +1 -0
  11. package/dist/chunk-BF5T3SGE.cjs +3 -0
  12. package/dist/chunk-BF5T3SGE.cjs.map +1 -0
  13. package/dist/chunk-E3CF3RKX.cjs +2 -0
  14. package/dist/chunk-E3CF3RKX.cjs.map +1 -0
  15. package/dist/chunk-EVZLUL56.cjs +75 -0
  16. package/dist/chunk-EVZLUL56.cjs.map +1 -0
  17. package/dist/{chunk-W5T3VHKD.cjs → chunk-FPXWBUHS.cjs} +2 -2
  18. package/dist/{chunk-W5T3VHKD.cjs.map → chunk-FPXWBUHS.cjs.map} +1 -1
  19. package/dist/chunk-G2T7YVBG.cjs +113 -0
  20. package/dist/chunk-G2T7YVBG.cjs.map +1 -0
  21. package/dist/{chunk-WAYG2MDL.cjs → chunk-IG65EYJY.cjs} +2 -2
  22. package/dist/{chunk-WAYG2MDL.cjs.map → chunk-IG65EYJY.cjs.map} +1 -1
  23. package/dist/chunk-L7YT5ETS.cjs +2 -0
  24. package/dist/{chunk-VFP6EKTE.cjs.map → chunk-L7YT5ETS.cjs.map} +1 -1
  25. package/dist/{chunk-U6G3J6VJ.cjs → chunk-R4IKDXM5.cjs} +2 -2
  26. package/dist/{chunk-U6G3J6VJ.cjs.map → chunk-R4IKDXM5.cjs.map} +1 -1
  27. package/dist/chunk-TS5EYI4O.cjs +12 -0
  28. package/dist/chunk-TS5EYI4O.cjs.map +1 -0
  29. package/dist/chunk-WIXQSFS6.cjs +2 -0
  30. package/dist/chunk-WIXQSFS6.cjs.map +1 -0
  31. package/dist/chunk-WKCTKYN4.cjs +2 -0
  32. package/dist/chunk-WKCTKYN4.cjs.map +1 -0
  33. package/dist/chunk-Y4BWTFTX.cjs +15 -0
  34. package/dist/chunk-Y4BWTFTX.cjs.map +1 -0
  35. package/dist/{chunk-XHS3FR6L.cjs → chunk-YA5UZ3YM.cjs} +2 -2
  36. package/dist/{chunk-XHS3FR6L.cjs.map → chunk-YA5UZ3YM.cjs.map} +1 -1
  37. package/dist/impl-24MFRX5R.cjs +2 -0
  38. package/dist/impl-24MFRX5R.cjs.map +1 -0
  39. package/dist/impl-2G6FOZLU.cjs +2 -0
  40. package/dist/impl-2G6FOZLU.cjs.map +1 -0
  41. package/dist/impl-4EDFESYC.cjs +2 -0
  42. package/dist/impl-4EDFESYC.cjs.map +1 -0
  43. package/dist/impl-5FO2QEHJ.cjs +2 -0
  44. package/dist/impl-5FO2QEHJ.cjs.map +1 -0
  45. package/dist/impl-6B7JDOM5.cjs +3 -0
  46. package/dist/impl-6B7JDOM5.cjs.map +1 -0
  47. package/dist/impl-AUOR6D3Q.cjs +2 -0
  48. package/dist/impl-AUOR6D3Q.cjs.map +1 -0
  49. package/dist/impl-B5HQXUMH.cjs +2 -0
  50. package/dist/impl-B5HQXUMH.cjs.map +1 -0
  51. package/dist/impl-BNFADMTO.cjs +2 -0
  52. package/dist/impl-BNFADMTO.cjs.map +1 -0
  53. package/dist/impl-BPWMOF4U.cjs +2 -0
  54. package/dist/impl-BPWMOF4U.cjs.map +1 -0
  55. package/dist/impl-CNCC36M6.cjs +9 -0
  56. package/dist/impl-CNCC36M6.cjs.map +1 -0
  57. package/dist/impl-DBDL4Z23.cjs +2 -0
  58. package/dist/impl-DBDL4Z23.cjs.map +1 -0
  59. package/dist/impl-FG47LALL.cjs +2 -0
  60. package/dist/impl-FG47LALL.cjs.map +1 -0
  61. package/dist/impl-GNB7TDFU.cjs +2 -0
  62. package/dist/impl-GNB7TDFU.cjs.map +1 -0
  63. package/dist/impl-HB3R7YDP.cjs +2 -0
  64. package/dist/impl-HB3R7YDP.cjs.map +1 -0
  65. package/dist/impl-ICI7EQKE.cjs +2 -0
  66. package/dist/impl-ICI7EQKE.cjs.map +1 -0
  67. package/dist/impl-KOMGU55G.cjs +2 -0
  68. package/dist/impl-KOMGU55G.cjs.map +1 -0
  69. package/dist/impl-KP27234L.cjs +2 -0
  70. package/dist/impl-KP27234L.cjs.map +1 -0
  71. package/dist/impl-KZ2L66Q3.cjs +2 -0
  72. package/dist/impl-KZ2L66Q3.cjs.map +1 -0
  73. package/dist/impl-L3M67IGI.cjs +7 -0
  74. package/dist/{impl-JH4KIP5U.cjs.map → impl-L3M67IGI.cjs.map} +1 -1
  75. package/dist/impl-LTOV5CHF.cjs +2 -0
  76. package/dist/impl-LTOV5CHF.cjs.map +1 -0
  77. package/dist/impl-MO6AOGQM.cjs +2 -0
  78. package/dist/impl-MO6AOGQM.cjs.map +1 -0
  79. package/dist/impl-MPGDZ2M2.cjs +12 -0
  80. package/dist/impl-MPGDZ2M2.cjs.map +1 -0
  81. package/dist/impl-N54C7NPT.cjs +2 -0
  82. package/dist/impl-N54C7NPT.cjs.map +1 -0
  83. package/dist/impl-N6ML5K5S.cjs +2 -0
  84. package/dist/impl-N6ML5K5S.cjs.map +1 -0
  85. package/dist/impl-NKLZ5RG4.cjs +2 -0
  86. package/dist/impl-NKLZ5RG4.cjs.map +1 -0
  87. package/dist/impl-NNOWJ4Q4.cjs +6 -0
  88. package/dist/impl-NNOWJ4Q4.cjs.map +1 -0
  89. package/dist/impl-OLEEHZUA.cjs +6 -0
  90. package/dist/impl-OLEEHZUA.cjs.map +1 -0
  91. package/dist/impl-Q6EQYFKN.cjs +4 -0
  92. package/dist/impl-Q6EQYFKN.cjs.map +1 -0
  93. package/dist/impl-QHTG36G3.cjs +2 -0
  94. package/dist/impl-QHTG36G3.cjs.map +1 -0
  95. package/dist/impl-QITUCVEV.cjs +2 -0
  96. package/dist/impl-QITUCVEV.cjs.map +1 -0
  97. package/dist/impl-R3KCARSP.cjs +2 -0
  98. package/dist/impl-R3KCARSP.cjs.map +1 -0
  99. package/dist/impl-RSHVCDLE.cjs +2 -0
  100. package/dist/impl-RSHVCDLE.cjs.map +1 -0
  101. package/dist/impl-SNLQCZOR.cjs +2 -0
  102. package/dist/impl-SNLQCZOR.cjs.map +1 -0
  103. package/dist/impl-TPVA6DLJ.cjs +2 -0
  104. package/dist/impl-TPVA6DLJ.cjs.map +1 -0
  105. package/dist/impl-TVNBHOR4.cjs +2 -0
  106. package/dist/impl-TVNBHOR4.cjs.map +1 -0
  107. package/dist/impl-TWLWQSZG.cjs +2 -0
  108. package/dist/impl-TWLWQSZG.cjs.map +1 -0
  109. package/dist/impl-UKOAB6ED.cjs +2 -0
  110. package/dist/impl-UKOAB6ED.cjs.map +1 -0
  111. package/dist/impl-ZKBMWGMK.cjs +2 -0
  112. package/dist/impl-ZKBMWGMK.cjs.map +1 -0
  113. package/dist/impl-ZTWLYZZO.cjs +2 -0
  114. package/dist/impl-ZTWLYZZO.cjs.map +1 -0
  115. package/dist/index.cjs +3 -3
  116. package/dist/index.cjs.map +1 -1
  117. package/dist/index.d.cts +39 -7
  118. package/package.json +2 -1
  119. package/dist/chunk-25UGE4YY.cjs +0 -12
  120. package/dist/chunk-25UGE4YY.cjs.map +0 -1
  121. package/dist/chunk-EG4L6YAJ.cjs +0 -2
  122. package/dist/chunk-EG4L6YAJ.cjs.map +0 -1
  123. package/dist/chunk-FPTEK7BG.cjs +0 -2
  124. package/dist/chunk-FPTEK7BG.cjs.map +0 -1
  125. package/dist/chunk-HAOVN3XO.cjs +0 -75
  126. package/dist/chunk-HAOVN3XO.cjs.map +0 -1
  127. package/dist/chunk-KWG56BUX.cjs +0 -2
  128. package/dist/chunk-KWG56BUX.cjs.map +0 -1
  129. package/dist/chunk-NOF6QHE4.cjs +0 -2843
  130. package/dist/chunk-NOF6QHE4.cjs.map +0 -1
  131. package/dist/chunk-QY37PK62.cjs +0 -94
  132. package/dist/chunk-QY37PK62.cjs.map +0 -1
  133. package/dist/chunk-SHV6R64J.cjs +0 -2
  134. package/dist/chunk-SHV6R64J.cjs.map +0 -1
  135. package/dist/chunk-VFP6EKTE.cjs +0 -2
  136. package/dist/chunk-XBHJO2OX.cjs +0 -3
  137. package/dist/chunk-XBHJO2OX.cjs.map +0 -1
  138. package/dist/impl-2DZFILID.cjs +0 -2
  139. package/dist/impl-2DZFILID.cjs.map +0 -1
  140. package/dist/impl-3CTVL4TA.cjs +0 -2
  141. package/dist/impl-3CTVL4TA.cjs.map +0 -1
  142. package/dist/impl-3IN6AV44.cjs +0 -9
  143. package/dist/impl-3IN6AV44.cjs.map +0 -1
  144. package/dist/impl-3PSE2WEI.cjs +0 -2
  145. package/dist/impl-3PSE2WEI.cjs.map +0 -1
  146. package/dist/impl-4XMTTFXK.cjs +0 -2
  147. package/dist/impl-4XMTTFXK.cjs.map +0 -1
  148. package/dist/impl-5L4G73JT.cjs +0 -2
  149. package/dist/impl-5L4G73JT.cjs.map +0 -1
  150. package/dist/impl-6NO74W36.cjs +0 -2
  151. package/dist/impl-6NO74W36.cjs.map +0 -1
  152. package/dist/impl-6TJRZGRQ.cjs +0 -2
  153. package/dist/impl-6TJRZGRQ.cjs.map +0 -1
  154. package/dist/impl-7FHT7P3V.cjs +0 -2
  155. package/dist/impl-7FHT7P3V.cjs.map +0 -1
  156. package/dist/impl-7KOXTJKC.cjs +0 -2
  157. package/dist/impl-7KOXTJKC.cjs.map +0 -1
  158. package/dist/impl-BESS7RG2.cjs +0 -2
  159. package/dist/impl-BESS7RG2.cjs.map +0 -1
  160. package/dist/impl-COCUOYKI.cjs +0 -2
  161. package/dist/impl-COCUOYKI.cjs.map +0 -1
  162. package/dist/impl-ELOMI7JW.cjs +0 -6
  163. package/dist/impl-ELOMI7JW.cjs.map +0 -1
  164. package/dist/impl-EUJEQGOT.cjs +0 -2
  165. package/dist/impl-EUJEQGOT.cjs.map +0 -1
  166. package/dist/impl-F3OOKCK6.cjs +0 -2
  167. package/dist/impl-F3OOKCK6.cjs.map +0 -1
  168. package/dist/impl-GH42XS6I.cjs +0 -2
  169. package/dist/impl-GH42XS6I.cjs.map +0 -1
  170. package/dist/impl-GSD2LS72.cjs +0 -2
  171. package/dist/impl-GSD2LS72.cjs.map +0 -1
  172. package/dist/impl-IIP3SXEB.cjs +0 -6
  173. package/dist/impl-IIP3SXEB.cjs.map +0 -1
  174. package/dist/impl-JD4LU2UP.cjs +0 -4
  175. package/dist/impl-JD4LU2UP.cjs.map +0 -1
  176. package/dist/impl-JH4KIP5U.cjs +0 -7
  177. package/dist/impl-JVXU24DF.cjs +0 -2
  178. package/dist/impl-JVXU24DF.cjs.map +0 -1
  179. package/dist/impl-KO4JL735.cjs +0 -2
  180. package/dist/impl-KO4JL735.cjs.map +0 -1
  181. package/dist/impl-L464FWQF.cjs +0 -2
  182. package/dist/impl-L464FWQF.cjs.map +0 -1
  183. package/dist/impl-LH2NCUFY.cjs +0 -2
  184. package/dist/impl-LH2NCUFY.cjs.map +0 -1
  185. package/dist/impl-LTL4WYPE.cjs +0 -2
  186. package/dist/impl-LTL4WYPE.cjs.map +0 -1
  187. package/dist/impl-MHML3KTM.cjs +0 -2
  188. package/dist/impl-MHML3KTM.cjs.map +0 -1
  189. package/dist/impl-NKUI2BXG.cjs +0 -2
  190. package/dist/impl-NKUI2BXG.cjs.map +0 -1
  191. package/dist/impl-NXTGH73U.cjs +0 -2
  192. package/dist/impl-NXTGH73U.cjs.map +0 -1
  193. package/dist/impl-OAPUUSOI.cjs +0 -2
  194. package/dist/impl-OAPUUSOI.cjs.map +0 -1
  195. package/dist/impl-OCJDYVIR.cjs +0 -2
  196. package/dist/impl-OCJDYVIR.cjs.map +0 -1
  197. package/dist/impl-PDWZ4O5W.cjs +0 -2
  198. package/dist/impl-PDWZ4O5W.cjs.map +0 -1
  199. package/dist/impl-Q2MH6BDT.cjs +0 -2
  200. package/dist/impl-Q2MH6BDT.cjs.map +0 -1
  201. package/dist/impl-QV42ZSX6.cjs +0 -6
  202. package/dist/impl-QV42ZSX6.cjs.map +0 -1
  203. package/dist/impl-TEQOCEBB.cjs +0 -2
  204. package/dist/impl-TEQOCEBB.cjs.map +0 -1
  205. package/dist/impl-TXQ4XVDC.cjs +0 -12
  206. package/dist/impl-TXQ4XVDC.cjs.map +0 -1
  207. package/dist/impl-U744VBLW.cjs +0 -2
  208. package/dist/impl-U744VBLW.cjs.map +0 -1
  209. package/dist/impl-VEGPS7VZ.cjs +0 -2
  210. package/dist/impl-VEGPS7VZ.cjs.map +0 -1
  211. package/dist/impl-XBEBGY37.cjs +0 -2
  212. package/dist/impl-XBEBGY37.cjs.map +0 -1
  213. package/dist/impl-Y3YSZDVF.cjs +0 -2
  214. package/dist/impl-Y3YSZDVF.cjs.map +0 -1
@@ -1,2843 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }var _chunkZUNVPK23cjs = require('./chunk-ZUNVPK23.cjs');var _chunkFPTEK7BGcjs = require('./chunk-FPTEK7BG.cjs');async function T(e,t){let r=[];for(let n=0;n<e.length;n+=1)r.push(await t(e[n],n,e.length));return r}async function B(e,t,r={}){let{concurrency:n=1/0}=r,o=new Array(e.length),a=[],i=0,p=async()=>{if(i>=e.length)return;let c=i;i+=1;let f=t(e[c],c,e.length).then(C=>{o[c]=C});a.push(f),await f;let d=a.indexOf(f);d>-1&&a.splice(d,1)},m=Math.min(n,e.length),l=[];for(let c=0;c<m;c+=1)l.push(p());for(await Promise.all(l);i<e.length;)a.length<n?await p():await Promise.race(a);return await Promise.all(a),o}var _graphqlrequest = require('graphql-request');var Jn=_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
- `,MI= exports.d =_graphqlrequest.gql`
51
- query TranscendCliDataPointCount($filterBy: DataPointFiltersInput) {
52
- dataPoints(filterBy: $filterBy, useMaster: false) {
53
- totalCount
54
- }
55
- }
56
- `,Xn= exports.e =_graphqlrequest.gql`
57
- query TranscendCliSubDataPoints(
58
- $filterBy: SubDataPointFiltersInput
59
- $first: Int!
60
- $offset: Int!
61
- ) {
62
- subDataPoints(
63
- filterBy: $filterBy
64
- first: $first
65
- offset: $offset
66
- useMaster: false
67
- ) {
68
- nodes {
69
- id
70
- name
71
- description
72
- purposes {
73
- name
74
- purpose
75
- }
76
- categories {
77
- name
78
- category
79
- }
80
- accessRequestVisibilityEnabled
81
- erasureRequestRedactionEnabled
82
- attributeValues {
83
- attributeKey {
84
- name
85
- }
86
- name
87
- }
88
- }
89
- }
90
- }
91
- `,qI= exports.f =_graphqlrequest.gql`
92
- query TranscendCliSubDataPointsCount($filterBy: SubDataPointFiltersInput) {
93
- subDataPoints(filterBy: $filterBy, useMaster: false) {
94
- totalCount
95
- }
96
- }
97
- `,ei= exports.g =_graphqlrequest.gql`
98
- query TranscendCliSubDataPointGuesses(
99
- $filterBy: SubDataPointFiltersInput
100
- $first: Int!
101
- $offset: Int!
102
- ) {
103
- subDataPoints(
104
- filterBy: $filterBy
105
- first: $first
106
- offset: $offset
107
- useMaster: false
108
- ) {
109
- nodes {
110
- id
111
- name
112
- description
113
- purposes {
114
- name
115
- purpose
116
- }
117
- categories {
118
- name
119
- category
120
- }
121
- pendingCategoryGuesses {
122
- category {
123
- name
124
- category
125
- }
126
- status
127
- confidence
128
- classifierVersion
129
- }
130
- accessRequestVisibilityEnabled
131
- erasureRequestRedactionEnabled
132
- attributeValues {
133
- attributeKey {
134
- name
135
- }
136
- name
137
- }
138
- }
139
- }
140
- }
141
- `,ti= exports.h =_graphqlrequest.gql`
142
- mutation TranscendCliUpdateOrCreateDataPoint(
143
- $dataSiloId: ID!
144
- $name: String!
145
- $path: [String!]
146
- $title: String
147
- $description: String
148
- $ownerIds: [ID!]
149
- $ownerEmails: [String!]
150
- $teamNames: [String!]
151
- $teamIds: [ID!]
152
- $dataCollectionTag: String
153
- $querySuggestions: [DbIntegrationQuerySuggestionInput!]
154
- $enabledActions: [RequestActionObjectResolver!]
155
- $subDataPoints: [DataPointSubDataPointInput!]
156
- ) {
157
- updateOrCreateDataPoint(
158
- input: {
159
- dataSiloId: $dataSiloId
160
- name: $name
161
- path: $path
162
- title: $title
163
- teamNames: $teamNames
164
- ownerEmails: $ownerEmails
165
- dataCollectionTag: $dataCollectionTag
166
- description: $description
167
- ownerIds: $ownerIds
168
- teamIds: $teamIds
169
- querySuggestions: $querySuggestions
170
- enabledActions: $enabledActions
171
- subDataPoints: $subDataPoints
172
- }
173
- ) {
174
- dataPoint {
175
- id
176
- name
177
- }
178
- }
179
- }
180
- `,NI= exports.i =_graphqlrequest.gql`
181
- query TranscendCliDataPointCsvExport(
182
- $filterBy: DataPointFiltersInput
183
- $first: Int!
184
- ) {
185
- dataPoints(filterBy: $filterBy, first: $first, useMaster: false) {
186
- nodes {
187
- id
188
- title {
189
- defaultMessage
190
- }
191
- description {
192
- defaultMessage
193
- }
194
- owners {
195
- email
196
- }
197
- teams {
198
- name
199
- }
200
- name
201
- path
202
- }
203
- }
204
- }
205
- `;var BI=_graphqlrequest.gql`
206
- query TranscendCliEntryCount(
207
- $filterBy: UnstructuredSubDataPointRecommendationsFilterInput
208
- ) {
209
- unstructuredSubDataPointRecommendations(
210
- filterBy: $filterBy
211
- useMaster: false
212
- ) {
213
- totalCount
214
- }
215
- }
216
- `;var ri=_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
- `,VI= exports.l =_graphqlrequest.gql`
244
- query TranscendCliDataSiloExport(
245
- $filterBy: DataSiloFiltersInput!
246
- $first: Int!
247
- ) {
248
- dataSilos(filterBy: $filterBy, first: $first, useMaster: false) {
249
- nodes {
250
- id
251
- title
252
- }
253
- }
254
- }
255
- `,oi= exports.m =_graphqlrequest.gql`
256
- query TranscendCliDataSilosEnriched(
257
- $filterBy: DataSiloFiltersInput!
258
- $first: Int!
259
- $offset: Int!
260
- ) {
261
- dataSilos(
262
- filterBy: $filterBy
263
- first: $first
264
- offset: $offset
265
- orderBy: [
266
- { field: createdAt, direction: ASC }
267
- { field: title, direction: ASC }
268
- ]
269
- useMaster: false
270
- ) {
271
- nodes {
272
- id
273
- title
274
- description
275
- type
276
- outerType
277
- link
278
- country
279
- countrySubDivision
280
- url
281
- notifyEmailAddress
282
- attributeValues {
283
- attributeKey {
284
- name
285
- }
286
- name
287
- }
288
- apiKeys {
289
- title
290
- }
291
- subjectBlocklist {
292
- type
293
- }
294
- identifiers {
295
- name
296
- isConnected
297
- }
298
- dependentDataSilos {
299
- title
300
- }
301
- owners {
302
- email
303
- }
304
- teams {
305
- id
306
- name
307
- }
308
- catalog {
309
- hasAvcFunctionality
310
- }
311
- isLive
312
- promptAVendorEmailSendFrequency
313
- promptAVendorEmailSendType
314
- promptAVendorEmailIncludeIdentifiersAttachment
315
- promptAVendorEmailCompletionLinkType
316
- manualWorkRetryFrequency
317
- discoveredBy {
318
- title
319
- }
320
- businessEntities {
321
- title
322
- }
323
- }
324
- }
325
- }
326
- `,Io= exports.n =_graphqlrequest.gql`
327
- mutation TranscendCliUpdateDataSilo($input: UpdateDataSilosInput!) {
328
- updateDataSilos(input: $input) {
329
- clientMutationId
330
- dataSilos {
331
- id
332
- title
333
- }
334
- }
335
- }
336
- `,ni= exports.o =_graphqlrequest.gql`
337
- mutation TranscendCliCreateDataSilo($input: [CreateDataSilosInput!]!) {
338
- createDataSilos(input: $input) {
339
- dataSilos {
340
- id
341
- title
342
- }
343
- }
344
- }
345
- `;var ii=_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
- `,HI= exports.q =_graphqlrequest.gql`
382
- query TranscendCliInitializer {
383
- initializer {
384
- id
385
- identifiers {
386
- name
387
- }
388
- }
389
- }
390
- `,ai= exports.r =_graphqlrequest.gql`
391
- mutation TranscendCliCreateEnricher($input: EnricherInput!) {
392
- createEnricher(input: $input) {
393
- clientMutationId
394
- }
395
- }
396
- `,si= exports.s =_graphqlrequest.gql`
397
- mutation TranscendCliUpdateEnricher($input: UpdateEnricherInput!) {
398
- updateEnricher(input: $input) {
399
- clientMutationId
400
- }
401
- }
402
- `;var pi=_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 ui=_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
- }
443
- }
444
- }
445
- `,li= exports.v =_graphqlrequest.gql`
446
- query TranscendCliNewIdentifierTypes {
447
- newIdentifierTypes {
448
- name
449
- }
450
- }
451
- `,mi= exports.w =_graphqlrequest.gql`
452
- mutation TranscendCliCreateIdentifier($input: IdentifierInput!) {
453
- createIdentifier(input: $input) {
454
- identifier {
455
- id
456
- name
457
- }
458
- }
459
- }
460
- `,fi= exports.x =_graphqlrequest.gql`
461
- mutation TranscendCliUpdateIdentifier($input: UpdateIdentifierInput!) {
462
- updateIdentifier(input: $input) {
463
- clientMutationId
464
- }
465
- }
466
- `;var ci=_graphqlrequest.gql`
467
- query TranscendCliDataSubjects {
468
- internalSubjects {
469
- id
470
- title {
471
- defaultMessage
472
- }
473
- active
474
- type
475
- adminDashboardDefaultSilentMode
476
- actions {
477
- type
478
- }
479
- }
480
- }
481
- `,di= exports.z =_graphqlrequest.gql`
482
- mutation TranscendCliCreateDataSubject($type: String!) {
483
- createSubject(input: { type: $type, title: $type, subjectClass: OTHER }) {
484
- subject {
485
- id
486
- type
487
- }
488
- }
489
- }
490
- `,gi= exports.A =_graphqlrequest.gql`
491
- mutation TranscendCliUpdateDataSubject($input: UpdateSubjectInput!) {
492
- updateSubject(input: $input) {
493
- clientMutationId
494
- }
495
- }
496
- `,yi= exports.B =_graphqlrequest.gql`
497
- mutation TranscendCliToggleDataSubject($input: ToggleSubjectInput!) {
498
- toggleSubject(input: $input) {
499
- clientMutationId
500
- }
501
- }
502
- `;var hi=_graphqlrequest.gql`
503
- query TranscendCliRepositories(
504
- $first: Int!
505
- $offset: Int!
506
- $input: RepositoryFiltersInput
507
- ) {
508
- repositories(
509
- first: $first
510
- offset: $offset
511
- filterBy: $input
512
- orderBy: [
513
- { field: createdAt, direction: ASC }
514
- { field: name, direction: ASC }
515
- ]
516
- ) {
517
- nodes {
518
- id
519
- name
520
- description
521
- url
522
- teams {
523
- id
524
- name
525
- }
526
- owners {
527
- id
528
- email
529
- }
530
- }
531
- }
532
- }
533
- `,Ci= exports.D =_graphqlrequest.gql`
534
- mutation TranscendCliUpdateRepositories($input: UpdateRepositoriesInput!) {
535
- updateRepositories(input: $input) {
536
- clientMutationId
537
- repositories {
538
- id
539
- name
540
- url
541
- teams {
542
- id
543
- name
544
- }
545
- owners {
546
- id
547
- email
548
- }
549
- }
550
- }
551
- }
552
- `,Ai= exports.E =_graphqlrequest.gql`
553
- mutation TranscendCliCreateRepository($input: CreateRepositoryInput!) {
554
- createRepository(input: $input) {
555
- clientMutationId
556
- repository {
557
- id
558
- name
559
- url
560
- teams {
561
- id
562
- name
563
- }
564
- owners {
565
- id
566
- email
567
- }
568
- }
569
- }
570
- }
571
- `;var Ii=_graphqlrequest.gql`
572
- query TranscendCliApiKeys($first: Int!, $offset: Int!, $titles: [String!]) {
573
- apiKeys(
574
- first: $first
575
- offset: $offset
576
- filterBy: { titles: $titles }
577
- useMaster: false
578
- orderBy: [
579
- { field: createdAt, direction: ASC }
580
- { field: title, direction: ASC }
581
- ]
582
- ) {
583
- nodes {
584
- id
585
- title
586
- }
587
- }
588
- }
589
- `,xi= exports.G =_graphqlrequest.gql`
590
- mutation TranscendCliCreateApiKey($input: ApiKeyInput!) {
591
- createApiKey(input: $input) {
592
- apiKey {
593
- id
594
- apiKey
595
- title
596
- }
597
- }
598
- }
599
- `,Ti= exports.H =_graphqlrequest.gql`
600
- mutation TranscendCliDeleteApiKey($id: ID!) {
601
- deleteApiKey(id: $id) {
602
- clientMutationId
603
- }
604
- }
605
- `;var Pi=_graphqlrequest.gql`
606
- mutation AddSiloDiscoveryResults(
607
- $pluginId: ID!
608
- $rawResults: [SiloDiscoveryRawResultInput!]!
609
- ) {
610
- addSiloDiscoveryResults(
611
- input: { pluginId: $pluginId, rawResults: $rawResults }
612
- ) {
613
- success
614
- }
615
- }
616
- `,Ei= exports.J =_graphqlrequest.gql`
617
- query Plugins($dataSiloId: String!, $type: PluginType!) {
618
- plugins(filterBy: { dataSiloId: $dataSiloId, type: $type, enabled: true }) {
619
- plugins {
620
- id
621
- dataSilo {
622
- type
623
- }
624
- }
625
- totalCount
626
- }
627
- }
628
- `;var wi=_graphqlrequest.gql`
629
- query TranscendCliTemplates($title: String, $first: Int!, $offset: Int!) {
630
- templates(
631
- filterBy: { text: $title }
632
- first: $first
633
- offset: $offset
634
- useMaster: false
635
- ) {
636
- nodes {
637
- id
638
- title
639
- subject {
640
- defaultMessage
641
- }
642
- template {
643
- defaultMessage
644
- }
645
- }
646
- }
647
- }
648
- `,Ri= exports.L =_graphqlrequest.gql`
649
- mutation TranscendCliCreateTemplate($title: String!) {
650
- createTemplate(input: { title: $title, template: "", subject: $title }) {
651
- clientMutationId
652
- }
653
- }
654
- `;var $i=_graphqlrequest.gql`
655
- query TranscendCliOrganization {
656
- organization {
657
- sombra {
658
- customerUrl
659
- }
660
- }
661
- }
662
- `;var Di=_graphqlrequest.gql`
663
- query TranscendCliAttributeKeys($first: Int!, $offset: Int!) {
664
- attributeKeys(
665
- filterBy: { enabledOn: [request] }
666
- first: $first
667
- useMaster: false
668
- offset: $offset
669
- ) {
670
- nodes {
671
- id
672
- name
673
- type
674
- }
675
- }
676
- }
677
- `;var _i=_graphqlrequest.gql`
678
- query TranscendCliSoftwareDevelopmentKits(
679
- $first: Int!
680
- $offset: Int!
681
- $input: SoftwareDevelopmentKitFiltersInput
682
- ) {
683
- softwareDevelopmentKits(
684
- first: $first
685
- offset: $offset
686
- filterBy: $input
687
- orderBy: [
688
- { field: createdAt, direction: ASC }
689
- { field: name, direction: ASC }
690
- ]
691
- ) {
692
- nodes {
693
- id
694
- name
695
- description
696
- codePackageType
697
- documentationLinks
698
- repositoryUrl
699
- teams {
700
- id
701
- name
702
- }
703
- owners {
704
- id
705
- email
706
- }
707
- }
708
- }
709
- }
710
- `,Li= exports.P =_graphqlrequest.gql`
711
- mutation TranscendCliUpdateSoftwareDevelopmentKits(
712
- $input: UpdateSoftwareDevelopmentKitsInput!
713
- ) {
714
- updateSoftwareDevelopmentKits(input: $input) {
715
- clientMutationId
716
- softwareDevelopmentKits {
717
- id
718
- name
719
- description
720
- codePackageType
721
- documentationLinks
722
- repositoryUrl
723
- teams {
724
- id
725
- name
726
- }
727
- owners {
728
- id
729
- email
730
- }
731
- }
732
- }
733
- }
734
- `,vi= exports.Q =_graphqlrequest.gql`
735
- mutation TranscendCliCreateSoftwareDevelopmentKit(
736
- $input: CreateSoftwareDevelopmentKitInput!
737
- ) {
738
- createSoftwareDevelopmentKit(input: $input) {
739
- clientMutationId
740
- softwareDevelopmentKit {
741
- id
742
- name
743
- description
744
- codePackageType
745
- documentationLinks
746
- repositoryUrl
747
- teams {
748
- id
749
- name
750
- }
751
- owners {
752
- id
753
- email
754
- }
755
- }
756
- }
757
- }
758
- `;var Oi=_graphqlrequest.gql`
759
- query TranscendCliCodePackages(
760
- $first: Int!
761
- $offset: Int!
762
- $input: CodePackageFiltersInput
763
- ) {
764
- codePackages(
765
- first: $first
766
- offset: $offset
767
- filterBy: $input
768
- orderBy: [
769
- { field: createdAt, direction: ASC }
770
- { field: name, direction: ASC }
771
- ]
772
- ) {
773
- nodes {
774
- id
775
- name
776
- description
777
- type
778
- relativePath
779
- teams {
780
- id
781
- name
782
- }
783
- owners {
784
- id
785
- email
786
- }
787
- repository {
788
- id
789
- name
790
- }
791
- dataSilo {
792
- id
793
- title
794
- type
795
- }
796
- }
797
- }
798
- }
799
- `,ki= exports.S =_graphqlrequest.gql`
800
- mutation TranscendCliUpdateCodePackages($input: UpdateCodePackagesInput!) {
801
- updateCodePackages(input: $input) {
802
- clientMutationId
803
- codePackages {
804
- id
805
- name
806
- description
807
- type
808
- relativePath
809
- teams {
810
- id
811
- name
812
- }
813
- owners {
814
- id
815
- email
816
- }
817
- repository {
818
- id
819
- name
820
- }
821
- dataSilo {
822
- id
823
- title
824
- type
825
- }
826
- }
827
- }
828
- }
829
- `,Gi= exports.T =_graphqlrequest.gql`
830
- mutation TranscendCliCreateCodePackage($input: CreateCodePackageInput!) {
831
- createCodePackage(input: $input) {
832
- clientMutationId
833
- codePackage {
834
- id
835
- name
836
- description
837
- type
838
- relativePath
839
- teams {
840
- id
841
- name
842
- }
843
- owners {
844
- id
845
- email
846
- }
847
- repository {
848
- id
849
- name
850
- }
851
- dataSilo {
852
- id
853
- title
854
- type
855
- }
856
- }
857
- }
858
- }
859
- `;var Mi=_graphqlrequest.gql`
860
- query TranscendCliPromptThreads(
861
- $first: Int!
862
- $offset: Int!
863
- $filterBy: PromptThreadFiltersInput!
864
- ) {
865
- promptThreads(first: $first, offset: $offset, filterBy: $filterBy) {
866
- nodes {
867
- id
868
- threadId
869
- slackMessageTs
870
- slackTeamId
871
- slackChannelId
872
- slackChannelName
873
- }
874
- }
875
- }
876
- `;var Ni=_graphqlrequest.gql`
877
- query TranscendCliFetchPolicies($url: String!) {
878
- privacyCenterPolicies(lookup: { url: $url }) {
879
- id
880
- title {
881
- defaultMessage
882
- }
883
- disableEffectiveOn
884
- disabledLocales
885
- versions {
886
- effectiveOn
887
- content {
888
- defaultMessage
889
- }
890
- }
891
- }
892
- }
893
- `,Ui= exports.W =_graphqlrequest.gql`
894
- mutation TranscendCliUpdatePolicies(
895
- $policies: [PolicyInput!]!
896
- $privacyCenterId: ID!
897
- ) {
898
- updatePolicies(
899
- input: {
900
- privacyCenterId: $privacyCenterId
901
- policies: $policies
902
- skipPublish: true
903
- }
904
- ) {
905
- clientMutationId
906
- }
907
- }
908
- `;var Fi=_graphqlrequest.gql`
909
- query TranscendCliRequests(
910
- $first: Int!
911
- $offset: Int!
912
- $filterBy: RequestFiltersInput!
913
- ) {
914
- requests(
915
- filterBy: $filterBy
916
- first: $first
917
- offset: $offset
918
- orderBy: [
919
- { field: createdAt, direction: ASC }
920
- { field: id, direction: ASC }
921
- ]
922
- useMaster: false
923
- ) {
924
- nodes {
925
- id
926
- createdAt
927
- email
928
- link
929
- status
930
- details
931
- isTest
932
- locale
933
- origin
934
- isSilent
935
- coreIdentifier
936
- daysRemaining
937
- type
938
- subjectType
939
- country
940
- countrySubDivision
941
- attributeValues {
942
- id
943
- name
944
- attributeKey {
945
- id
946
- name
947
- }
948
- }
949
- }
950
- totalCount
951
- }
952
- }
953
- `,Sx= exports.Y =_graphqlrequest.gql`
954
- mutation TranscendCliApprovePrivacyRequest($input: CommunicationInput!) {
955
- approveRequest(input: $input) {
956
- request {
957
- id
958
- }
959
- }
960
- }
961
- `,Px= exports.Z =_graphqlrequest.gql`
962
- mutation TranscendCliCancelPrivacyRequest($input: CommunicationInput!) {
963
- cancelRequest(input: $input) {
964
- request {
965
- id
966
- }
967
- }
968
- }
969
- `,Ex= exports._ =_graphqlrequest.gql`
970
- mutation TranscendCliUpdatePrivacyRequest($input: UpdateRequestInput!) {
971
- updateRequest(input: $input) {
972
- request {
973
- id
974
- }
975
- }
976
- }
977
- `,bx= exports.$ =_graphqlrequest.gql`
978
- mutation TranscendCliNotifyAdditionalTime($input: AdditionalTimeInput!) {
979
- notifyAdditionalTime(input: $input) {
980
- clientMutationId
981
- }
982
- }
983
- `;var Qi=_graphqlrequest.gql`
984
- query TranscendCliFetchMessage {
985
- translatedMessages {
986
- id
987
- defaultMessage
988
- targetReactIntlId
989
- translations {
990
- locale
991
- value
992
- }
993
- }
994
- }
995
- `,Ki= exports.ba =_graphqlrequest.gql`
996
- mutation TranscendCliUpdateIntlMessages($messages: [MessageInput!]!) {
997
- updateIntlMessages(input: { messages: $messages, skipPublish: true }) {
998
- clientMutationId
999
- }
1000
- }
1001
- `;var Vi=_graphqlrequest.gql`
1002
- query TranscendCliRequestEnrichers(
1003
- $first: Int!
1004
- $offset: Int!
1005
- $requestId: ID!
1006
- ) {
1007
- requestEnrichers(
1008
- input: { requestId: $requestId }
1009
- first: $first
1010
- offset: $offset
1011
- useMaster: false
1012
- orderBy: [
1013
- { field: createdAt, direction: ASC }
1014
- { field: title, direction: ASC, model: enricher }
1015
- ]
1016
- ) {
1017
- nodes {
1018
- id
1019
- status
1020
- enricher {
1021
- id
1022
- type
1023
- title
1024
- }
1025
- }
1026
- totalCount
1027
- }
1028
- }
1029
- `,ji= exports.da =_graphqlrequest.gql`
1030
- mutation TranscendCliRetryRequestEnricher($requestEnricherId: ID!) {
1031
- retryRequestEnricher(id: $requestEnricherId) {
1032
- requestEnricher {
1033
- id
1034
- }
1035
- }
1036
- }
1037
- `,_x= exports.ea =_graphqlrequest.gql`
1038
- mutation TranscendCliSkipRequestEnricher($requestEnricherId: ID!) {
1039
- skipRequestEnricher(id: $requestEnricherId) {
1040
- requestEnricher {
1041
- id
1042
- }
1043
- }
1044
- }
1045
- `;var bo=`
1046
- id
1047
- title
1048
- status
1049
- index
1050
- questions {
1051
- id
1052
- title
1053
- index
1054
- type
1055
- subType
1056
- placeholder
1057
- description
1058
- isRequired
1059
- displayLogic
1060
- riskLogic
1061
- requireRiskEvaluation
1062
- requireRiskMatrixEvaluation
1063
- riskCategories {
1064
- id
1065
- title
1066
- }
1067
- riskFramework {
1068
- id
1069
- title
1070
- description
1071
- riskLevels {
1072
- id
1073
- title
1074
- }
1075
- riskCategories {
1076
- id
1077
- title
1078
- }
1079
- riskMatrixColumns {
1080
- id
1081
- title
1082
- }
1083
- riskMatrixRows {
1084
- id
1085
- title
1086
- }
1087
- riskMatrix {
1088
- id
1089
- title
1090
- }
1091
- creator {
1092
- id
1093
- email
1094
- name
1095
- }
1096
- riskMatrixRowTitle
1097
- riskMatrixColumnTitle
1098
- }
1099
- riskLevel {
1100
- id
1101
- title
1102
- }
1103
- reviewerRiskLevel {
1104
- id
1105
- title
1106
- }
1107
- riskLevelFromRiskMatrix {
1108
- id
1109
- title
1110
- }
1111
- answerOptions {
1112
- id
1113
- index
1114
- value
1115
- }
1116
- selectedAnswers {
1117
- ... on AssessmentAnswerInterface {
1118
- id
1119
- index
1120
- value
1121
- }
1122
- }
1123
- respondent {
1124
- id
1125
- email
1126
- name
1127
- }
1128
- attributeKey {
1129
- name
1130
- }
1131
- externalRespondentEmail
1132
- comments {
1133
- id
1134
- content
1135
- createdAt
1136
- updatedAt
1137
- author {
1138
- id
1139
- email
1140
- name
1141
- }
1142
- }
1143
- allowedMimeTypes
1144
- updatedAt
1145
- referenceId
1146
- previousSubmissions {
1147
- id
1148
- updatedAt
1149
- assessmentQuestionId
1150
- answers {
1151
- ... on AssessmentAnswerInterface {
1152
- id
1153
- index
1154
- value
1155
- }
1156
- }
1157
- }
1158
- allowSelectOther
1159
- syncModel
1160
- syncColumn
1161
- syncRowIds
1162
- syncOverride
1163
- }
1164
- assignees {
1165
- id
1166
- email
1167
- name
1168
- }
1169
- externalAssignees {
1170
- id
1171
- email
1172
- }
1173
- isReviewed
1174
- `,Hi= exports.ga =_graphqlrequest.gql`
1175
- query TranscendCliAssessments(
1176
- $first: Int!
1177
- $offset: Int!
1178
- $filterBy: AssessmentFormFiltersInput
1179
- ) {
1180
- assessmentForms(first: $first, offset: $offset, filterBy: $filterBy) {
1181
- nodes {
1182
- id
1183
- creator {
1184
- id
1185
- email
1186
- name
1187
- }
1188
- lastEditor {
1189
- id
1190
- email
1191
- name
1192
- }
1193
- title
1194
- description
1195
- status
1196
- assignees {
1197
- id
1198
- email
1199
- name
1200
- }
1201
- externalAssignees {
1202
- id
1203
- email
1204
- }
1205
- reviewers {
1206
- id
1207
- email
1208
- name
1209
- }
1210
- isLocked
1211
- isArchived
1212
- isExternallyCreated
1213
- dueDate
1214
- createdAt
1215
- updatedAt
1216
- assignedAt
1217
- submittedAt
1218
- approvedAt
1219
- rejectedAt
1220
- titleIsInternal
1221
- retentionSchedule {
1222
- id
1223
- type
1224
- durationDays
1225
- operation
1226
- }
1227
- attributeValues {
1228
- name
1229
- attributeKey {
1230
- name
1231
- }
1232
- }
1233
- sections {
1234
- ${bo}
1235
- }
1236
- assessmentGroup {
1237
- id
1238
- title
1239
- description
1240
- }
1241
- resources {
1242
- resourceType
1243
- ... on AttributeBusinessEntityResource {
1244
- id
1245
- title
1246
- }
1247
- ... on AttributeDataSiloResource {
1248
- id
1249
- title
1250
- }
1251
- ... on AttributeDataSubCategoryResource {
1252
- id
1253
- name
1254
- category
1255
- }
1256
- ... on AttributeSubDataPointResource {
1257
- id
1258
- name
1259
- }
1260
- ... on AttributeProcessingPurposeSubCategoryResource {
1261
- id
1262
- name
1263
- purpose
1264
- }
1265
- ... on AttributeRequestResource {
1266
- id
1267
- type
1268
- }
1269
- ... on AttributeVendorResource {
1270
- id
1271
- title
1272
- }
1273
- ... on AttributePromptResource {
1274
- id
1275
- title
1276
- }
1277
- ... on AttributePromptRunResource {
1278
- id
1279
- title
1280
- }
1281
- ... on AttributePromptGroupResource {
1282
- id
1283
- title
1284
- }
1285
- }
1286
- syncedRows {
1287
- resourceType
1288
- ... on AttributeBusinessEntityResource {
1289
- id
1290
- title
1291
- }
1292
- ... on AttributeDataSiloResource {
1293
- id
1294
- title
1295
- }
1296
- ... on AttributeDataSubCategoryResource {
1297
- id
1298
- name
1299
- category
1300
- }
1301
- ... on AttributeSubDataPointResource {
1302
- id
1303
- name
1304
- }
1305
- ... on AttributeProcessingPurposeSubCategoryResource {
1306
- id
1307
- name
1308
- purpose
1309
- }
1310
- ... on AttributeVendorResource {
1311
- id
1312
- title
1313
- }
1314
- }
1315
- }
1316
- }
1317
- }
1318
- `,Ox= exports.ha =_graphqlrequest.gql`
1319
- mutation TranscendCliImportOneTrustAssessmentForms(
1320
- $input: ImportOnetrustAssessmentsInput!
1321
- ) {
1322
- importOneTrustAssessmentForms(input: $input) {
1323
- assessmentForms {
1324
- id
1325
- title
1326
- }
1327
- }
1328
- }
1329
- `;var Zi=_graphqlrequest.gql`
1330
- query TranscendCliPurposes(
1331
- $first: Int!
1332
- $offset: Int!
1333
- $filterBy: TrackingPurposeFiltersInput
1334
- $input: TrackingPurposeInput!
1335
- ) {
1336
- purposes(
1337
- first: $first
1338
- offset: $offset
1339
- filterBy: $filterBy
1340
- input: $input
1341
- ) {
1342
- nodes {
1343
- id
1344
- name
1345
- description
1346
- defaultConsent
1347
- trackingType
1348
- configurable
1349
- essential
1350
- showInConsentManager
1351
- isActive
1352
- displayOrder
1353
- optOutSignals
1354
- deletedAt
1355
- authLevel
1356
- showInPrivacyCenter
1357
- title
1358
- }
1359
- }
1360
- }
1361
- `;var Yi=_graphqlrequest.gql`
1362
- query TranscendCliPreferenceTopics(
1363
- $first: Int!
1364
- $offset: Int!
1365
- $filterBy: PreferenceTopicFilterInput
1366
- ) {
1367
- preferenceTopics(first: $first, offset: $offset, filterBy: $filterBy) {
1368
- nodes {
1369
- id
1370
- slug
1371
- type
1372
- title {
1373
- id
1374
- defaultMessage
1375
- }
1376
- showInPrivacyCenter
1377
- displayDescription {
1378
- id
1379
- defaultMessage
1380
- }
1381
- defaultConfiguration
1382
- preferenceOptionValues {
1383
- slug
1384
- title {
1385
- id
1386
- defaultMessage
1387
- }
1388
- }
1389
- purpose {
1390
- trackingType
1391
- }
1392
- }
1393
- }
1394
- }
1395
- `;var zi=_graphqlrequest.gql`
1396
- query TranscendCliAssessmentTemplates(
1397
- $first: Int!
1398
- $offset: Int!
1399
- $filterBy: AssessmentFormTemplateFiltersInput
1400
- ) {
1401
- assessmentFormTemplates(
1402
- first: $first
1403
- offset: $offset
1404
- filterBy: $filterBy
1405
- ) {
1406
- nodes {
1407
- id
1408
- creator {
1409
- id
1410
- email
1411
- name
1412
- }
1413
- lastEditor {
1414
- id
1415
- email
1416
- name
1417
- }
1418
- title
1419
- description
1420
- status
1421
- source
1422
- parentId
1423
- isLocked
1424
- isArchived
1425
- createdAt
1426
- updatedAt
1427
- retentionSchedule {
1428
- id
1429
- type
1430
- durationDays
1431
- operation
1432
- createdAt
1433
- updatedAt
1434
- }
1435
- assessmentEmailSet {
1436
- id
1437
- title
1438
- description
1439
- isDefault
1440
- templates {
1441
- id
1442
- title
1443
- }
1444
- }
1445
- sections {
1446
- ${bo}
1447
- }
1448
- }
1449
- }
1450
- }
1451
- `;var Ji=_graphqlrequest.gql`
1452
- query TranscendCliPrompts(
1453
- $first: Int!
1454
- $offset: Int!
1455
- $filterBy: PromptFiltersInput
1456
- ) {
1457
- prompts(
1458
- first: $first
1459
- orderBy: [{ field: title, direction: ASC }]
1460
- offset: $offset
1461
- filterBy: $filterBy
1462
- ) {
1463
- nodes {
1464
- id
1465
- title
1466
- status
1467
- content
1468
- temperature
1469
- topP
1470
- maxTokensToSample
1471
- }
1472
- }
1473
- }
1474
- `,Xi= exports.ma =_graphqlrequest.gql`
1475
- query TranscendCliPromptPartials($first: Int!, $offset: Int!) {
1476
- promptPartials(first: $first, offset: $offset) {
1477
- nodes {
1478
- id
1479
- title
1480
- content
1481
- }
1482
- }
1483
- }
1484
- `,ea= exports.na =_graphqlrequest.gql`
1485
- query TranscendCliPromptGroups($first: Int!, $offset: Int!) {
1486
- promptGroups(
1487
- first: $first
1488
-
1489
- offset: $offset
1490
- ) {
1491
- nodes {
1492
- id
1493
- title
1494
- description
1495
- prompts {
1496
- title
1497
- }
1498
- }
1499
- }
1500
- }
1501
- `,ta= exports.oa =_graphqlrequest.gql`
1502
- query TranscendCliPromptsWithVariables($input: PromptsWithVariablesInput!) {
1503
- promptsWithVariables(input: $input) {
1504
- prompts {
1505
- id
1506
- title
1507
- content
1508
- status
1509
- temperature
1510
- topP
1511
- maxTokensToSample
1512
- responseFormat
1513
- }
1514
- promptPartials {
1515
- id
1516
- title
1517
- content
1518
- slug
1519
- }
1520
- calculatedVariables {
1521
- data
1522
- name
1523
- }
1524
- runtimeVariables {
1525
- name
1526
- }
1527
- }
1528
- }
1529
- `,ra= exports.pa =_graphqlrequest.gql`
1530
- mutation TranscendCliUpdatePrompts($input: UpdatePromptsInput!) {
1531
- updatePrompts(input: $input) {
1532
- clientMutationId
1533
- }
1534
- }
1535
- `,oa= exports.qa =_graphqlrequest.gql`
1536
- mutation TranscendCliCreatePrompt($input: CreatePromptInput!) {
1537
- createPrompt(input: $input) {
1538
- clientMutationId
1539
- prompt {
1540
- id
1541
- }
1542
- }
1543
- }
1544
- `,na= exports.ra =_graphqlrequest.gql`
1545
- mutation TranscendCliUpdatePromptPartials(
1546
- $input: UpdatePromptPartialsInput!
1547
- ) {
1548
- updatePromptPartials(input: $input) {
1549
- clientMutationId
1550
- }
1551
- }
1552
- `,ia= exports.sa =_graphqlrequest.gql`
1553
- mutation TranscendCliCreatePromptPartial($input: CreatePromptPartialInput!) {
1554
- createPromptPartial(input: $input) {
1555
- clientMutationId
1556
- promptPartial {
1557
- id
1558
- }
1559
- }
1560
- }
1561
- `,aa= exports.ta =_graphqlrequest.gql`
1562
- mutation TranscendCliUpdatePromptGroups($input: UpdatePromptGroupsInput!) {
1563
- updatePromptGroups(input: $input) {
1564
- clientMutationId
1565
- }
1566
- }
1567
- `,sa= exports.ua =_graphqlrequest.gql`
1568
- mutation TranscendCliCreatePromptPartial($input: CreatePromptGroupInput!) {
1569
- createPromptGroup(input: $input) {
1570
- clientMutationId
1571
- promptGroup {
1572
- id
1573
- }
1574
- }
1575
- }
1576
- `;var pa=_graphqlrequest.gql`
1577
- query TranscendCliRequestDataSilos(
1578
- $first: Int!
1579
- $offset: Int!
1580
- $filterBy: RequestDataSiloFiltersInput!
1581
- ) {
1582
- requestDataSilos(
1583
- filterBy: $filterBy
1584
- first: $first
1585
- offset: $offset
1586
- useMaster: false
1587
- orderBy: [
1588
- { field: createdAt, direction: DESC }
1589
- { field: title, direction: ASC, model: dataSilo }
1590
- ]
1591
- ) {
1592
- nodes {
1593
- id
1594
- }
1595
- totalCount
1596
- }
1597
- }
1598
- `,jx= exports.wa =_graphqlrequest.gql`
1599
- mutation TranscendCliMarkRequestDataSiloCompleted(
1600
- $requestDataSiloId: ID!
1601
- $status: UpdateRequestDataSiloStatus!
1602
- ) {
1603
- changeRequestDataSiloStatus(
1604
- input: { id: $requestDataSiloId, status: $status }
1605
- ) {
1606
- requestDataSilo {
1607
- id
1608
- }
1609
- }
1610
- }
1611
- `,Wx= exports.xa =_graphqlrequest.gql`
1612
- mutation TranscendCliRetryRequestDataSilo($requestDataSiloId: ID!) {
1613
- retryRequestDataSilo(id: $requestDataSiloId) {
1614
- requestDataSilo {
1615
- id
1616
- }
1617
- }
1618
- }
1619
- `,ua= exports.ya =_graphqlrequest.gql`
1620
- query TranscendCliListReducedRequestsForDataSiloCount(
1621
- $input: BulkCompletionReducedRequestInput!
1622
- ) {
1623
- listReducedRequestsForDataSilo(input: $input) {
1624
- totalCount
1625
- }
1626
- }
1627
- `;var la=_graphqlrequest.gql`
1628
- query TranscendCliTeams(
1629
- $first: Int!
1630
- $offset: Int!
1631
- $input: TeamFiltersInput
1632
- ) {
1633
- teams(
1634
- first: $first
1635
- offset: $offset
1636
- filterBy: $input
1637
- orderBy: [
1638
- { field: createdAt, direction: ASC }
1639
- { field: name, direction: ASC }
1640
- ]
1641
- ) {
1642
- nodes {
1643
- id
1644
- name
1645
- description
1646
- ssoDepartment
1647
- ssoGroup
1648
- ssoTitle
1649
- users {
1650
- id
1651
- email
1652
- name
1653
- }
1654
- scopes {
1655
- id
1656
- name
1657
- title
1658
- }
1659
- }
1660
- }
1661
- }
1662
- `,ma= exports.Aa =_graphqlrequest.gql`
1663
- mutation TranscendCliCreateTeam($input: TeamInput!) {
1664
- createTeam(input: $input) {
1665
- team {
1666
- id
1667
- name
1668
- }
1669
- }
1670
- }
1671
- `,fa= exports.Ba =_graphqlrequest.gql`
1672
- mutation TranscendCliUpdateTeam($input: UpdateTeamInput!) {
1673
- updateTeam(input: $input) {
1674
- team {
1675
- id
1676
- name
1677
- }
1678
- }
1679
- }
1680
- `;var Jx=_graphqlrequest.gql`
1681
- mutation TranscendCliRemoveRequestIdentifiers(
1682
- $input: RemoveRequestIdentifiersInput!
1683
- ) {
1684
- removeRequestIdentifiers(input: $input) {
1685
- count
1686
- }
1687
- }
1688
- `,da= exports.Da =_graphqlrequest.gql`
1689
- query TranscendCliRequestIdentifiers(
1690
- $first: Int!
1691
- $offset: Int!
1692
- $requestIds: [ID!]!
1693
- ) {
1694
- requestIdentifiers(
1695
- input: { requestIds: $requestIds }
1696
- first: $first
1697
- offset: $offset
1698
- useMaster: false
1699
- orderBy: [
1700
- { field: createdAt, direction: ASC }
1701
- { field: name, direction: ASC }
1702
- ]
1703
- ) {
1704
- nodes {
1705
- id
1706
- name
1707
- isVerifiedAtLeastOnce
1708
- }
1709
- totalCount
1710
- }
1711
- }
1712
- `;var ga=_graphqlrequest.gql`
1713
- query TranscendCliUsers(
1714
- $first: Int!
1715
- $offset: Int!
1716
- $input: UserFiltersInput
1717
- ) {
1718
- users(
1719
- first: $first
1720
- offset: $offset
1721
- filterBy: $input
1722
- orderBy: [
1723
- { field: createdAt, direction: ASC }
1724
- { field: name, direction: ASC }
1725
- ]
1726
- ) {
1727
- nodes {
1728
- id
1729
- name
1730
- email
1731
- }
1732
- }
1733
- }
1734
- `;var ya=_graphqlrequest.gql`
1735
- query TranscendCliRequestFiles(
1736
- $first: Int!
1737
- $offset: Int!
1738
- $filterBy: RequestFileFiltersInput!
1739
- ) {
1740
- requestFiles(
1741
- filterBy: $filterBy
1742
- first: $first
1743
- offset: $offset
1744
- orderBy: [
1745
- { field: createdAt, direction: ASC }
1746
- { field: id, direction: ASC }
1747
- ]
1748
- ) {
1749
- nodes {
1750
- remoteId
1751
- fileName
1752
- }
1753
- }
1754
- }
1755
- `;var Ca=_graphqlrequest.gql`
1756
- mutation TranscendCliReportPromptRun($input: ReportPromptRunInput!) {
1757
- reportPromptRun(input: $input) {
1758
- clientMutationId
1759
- promptRun {
1760
- id
1761
- }
1762
- }
1763
- }
1764
- `,Aa= exports.Ha =_graphqlrequest.gql`
1765
- mutation TranscendCliAddMessagesToPromptRun(
1766
- $input: AddMessagesToPromptRunInput!
1767
- ) {
1768
- addMessagesToPromptRun(input: $input) {
1769
- clientMutationId
1770
- promptRun {
1771
- id
1772
- }
1773
- }
1774
- }
1775
- `;var Ia=_graphqlrequest.gql`
1776
- query TranscendCliGlobalActionItemCollectionss(
1777
- $filterBy: GlobalActionItemCollectionFiltersInput!
1778
- ) {
1779
- globalActionItemCollections(filterBy: $filterBy) {
1780
- nodes {
1781
- id
1782
- title
1783
- description
1784
- hidden
1785
- productLine
1786
- }
1787
- }
1788
- }
1789
- `,xa= exports.Ja =_graphqlrequest.gql`
1790
- mutation TranscendCliCreateActionItemCollection(
1791
- $input: CreateActionItemCollectionInput!
1792
- ) {
1793
- createActionItemCollection(input: $input) {
1794
- created {
1795
- id
1796
- title
1797
- }
1798
- }
1799
- }
1800
- `,Ta= exports.Ka =_graphqlrequest.gql`
1801
- mutation TranscendCliUpdateActionItemCollection(
1802
- $input: UpdateActionItemCollectionInput!
1803
- ) {
1804
- updateActionItemCollection(input: $input) {
1805
- clientMutationId
1806
- }
1807
- }
1808
- `;var Sa=_graphqlrequest.gql`
1809
- query TranscendCliAttributes($first: Int!, $offset: Int!) {
1810
- attributeKeys(first: $first, offset: $offset, useMaster: false) {
1811
- nodes {
1812
- id
1813
- isCustom
1814
- description
1815
- enabledOn
1816
- name
1817
- type
1818
- }
1819
- }
1820
- }
1821
- `,Pa= exports.Ma =_graphqlrequest.gql`
1822
- mutation TranscendCliCreateAttributeValues(
1823
- $input: [CreateAttributeValuesInput!]!
1824
- ) {
1825
- createAttributeValues(input: $input) {
1826
- clientMutationId
1827
- }
1828
- }
1829
- `,Ea= exports.Na =_graphqlrequest.gql`
1830
- mutation TranscendCliUpdateAttributeValues(
1831
- $input: [UpdateAttributeValueInput!]!
1832
- ) {
1833
- updateAttributeValues(input: $input) {
1834
- clientMutationId
1835
- }
1836
- }
1837
- `,ba= exports.Oa =_graphqlrequest.gql`
1838
- mutation TranscendCliDeleteAttributeValue($id: ID!) {
1839
- deleteAttributeValue(id: $id) {
1840
- clientMutationId
1841
- }
1842
- }
1843
- `,wa= exports.Pa =_graphqlrequest.gql`
1844
- query TranscendCliAttributeValues(
1845
- $first: Int!
1846
- $offset: Int!
1847
- $attributeKeyId: ID!
1848
- ) {
1849
- attributeValues(
1850
- first: $first
1851
- offset: $offset
1852
- useMaster: false
1853
- filterBy: { attributeKeys: [$attributeKeyId] }
1854
- ) {
1855
- nodes {
1856
- id
1857
- name
1858
- description
1859
- color
1860
- }
1861
- }
1862
- }
1863
- `,Ra= exports.Qa =_graphqlrequest.gql`
1864
- mutation TranscendCliCreateAttribute(
1865
- $name: String!
1866
- $type: AttributeKeyType!
1867
- $description: String
1868
- $enabledOn: [AttributeSupportedResourceType!]
1869
- ) {
1870
- createAttributeKey(
1871
- input: {
1872
- name: $name
1873
- type: $type
1874
- description: $description
1875
- enabledOn: $enabledOn
1876
- }
1877
- ) {
1878
- clientMutationId
1879
- attributeKey {
1880
- id
1881
- }
1882
- }
1883
- }
1884
- `,$a= exports.Ra =_graphqlrequest.gql`
1885
- mutation TranscendCliCreateAttribute(
1886
- $attributeKeyId: ID!
1887
- $description: String
1888
- $enabledOn: [AttributeSupportedResourceType!]
1889
- ) {
1890
- updateAttributeKey(
1891
- input: {
1892
- id: $attributeKeyId
1893
- description: $description
1894
- enabledOn: $enabledOn
1895
- }
1896
- ) {
1897
- clientMutationId
1898
- attributeKey {
1899
- id
1900
- }
1901
- }
1902
- }
1903
- `,Da= exports.Sa =_graphqlrequest.gql`
1904
- mutation TranscendCliSetResourceAttributes(
1905
- $input: SetResourceAttributesInput!
1906
- ) {
1907
- setResourceAttributes(input: $input) {
1908
- clientMutationId
1909
- }
1910
- }
1911
- `;var _a=_graphqlrequest.gql`
1912
- query TranscendCliExperiences($first: Int!, $offset: Int!) {
1913
- experiences(first: $first, offset: $offset, useMaster: false) {
1914
- nodes {
1915
- id
1916
- name
1917
- displayName
1918
- regions {
1919
- countrySubDivision
1920
- country
1921
- }
1922
- operator
1923
- displayPriority
1924
- onConsentExpiry
1925
- consentExpiry
1926
- viewState
1927
- purposes {
1928
- name
1929
- trackingType
1930
- }
1931
- optedOutPurposes {
1932
- name
1933
- trackingType
1934
- }
1935
- browserLanguages
1936
- browserTimeZones
1937
- }
1938
- }
1939
- }
1940
- `,La= exports.Ua =_graphqlrequest.gql`
1941
- query TranscendCliConsentPartitions($first: Int!, $offset: Int!) {
1942
- consentPartitions(first: $first, offset: $offset) {
1943
- nodes {
1944
- id
1945
- name
1946
- partition
1947
- }
1948
- }
1949
- }
1950
- `,va= exports.Va =_graphqlrequest.gql`
1951
- mutation TranscendCliCreateDataFlows(
1952
- $dataFlows: [DataFlowInput!]!
1953
- $airgapBundleId: ID!
1954
- $classifyService: Boolean
1955
- ) {
1956
- createDataFlows(
1957
- input: {
1958
- airgapBundleId: $airgapBundleId
1959
- dataFlows: $dataFlows
1960
- classifyService: $classifyService
1961
- }
1962
- ) {
1963
- dataFlows {
1964
- id
1965
- }
1966
- }
1967
- }
1968
- `,Oa= exports.Wa =_graphqlrequest.gql`
1969
- mutation TranscendCliUpdateDataFlows(
1970
- $airgapBundleId: ID!
1971
- $dataFlows: [UpdateDataFlowInput!]!
1972
- $classifyService: Boolean
1973
- ) {
1974
- updateDataFlows(
1975
- input: {
1976
- airgapBundleId: $airgapBundleId
1977
- dataFlows: $dataFlows
1978
- classifyService: $classifyService
1979
- }
1980
- ) {
1981
- dataFlows {
1982
- id
1983
- }
1984
- }
1985
- }
1986
- `,ka= exports.Xa =_graphqlrequest.gql`
1987
- mutation TranscendCliUpdateOrCreateCookies(
1988
- $cookies: [UpdateOrCreateCookieInput!]!
1989
- $airgapBundleId: ID!
1990
- ) {
1991
- updateOrCreateCookies(
1992
- input: { airgapBundleId: $airgapBundleId, cookies: $cookies }
1993
- ) {
1994
- clientMutationId
1995
- }
1996
- }
1997
- `,Ga= exports.Ya =_graphqlrequest.gql`
1998
- query TranscendCliDataFlows(
1999
- $first: Int!
2000
- $airgapBundleId: ID!
2001
- $offset: Int!
2002
- $status: ConsentTrackerStatus
2003
- $showZeroActivity: Boolean
2004
- ) {
2005
- dataFlows(
2006
- first: $first
2007
- offset: $offset
2008
- filterBy: { status: $status, showZeroActivity: $showZeroActivity }
2009
- input: { airgapBundleId: $airgapBundleId }
2010
- orderBy: [
2011
- { field: createdAt, direction: ASC }
2012
- { field: value, direction: ASC }
2013
- ]
2014
- useMaster: false
2015
- ) {
2016
- nodes {
2017
- id
2018
- value
2019
- type
2020
- description
2021
- trackingType
2022
- service {
2023
- integrationName
2024
- }
2025
- source
2026
- status
2027
- owners {
2028
- email
2029
- }
2030
- teams {
2031
- name
2032
- }
2033
- attributeValues {
2034
- name
2035
- attributeKey {
2036
- name
2037
- }
2038
- }
2039
- }
2040
- }
2041
- }
2042
- `,Ma= exports.Za =_graphqlrequest.gql`
2043
- query TranscendCliCookies(
2044
- $first: Int!
2045
- $offset: Int!
2046
- $airgapBundleId: ID!
2047
- $status: ConsentTrackerStatus
2048
- ) {
2049
- cookies(
2050
- first: $first
2051
- offset: $offset
2052
- filterBy: { status: $status }
2053
- input: { airgapBundleId: $airgapBundleId }
2054
- orderBy: [
2055
- { field: createdAt, direction: ASC }
2056
- { field: name, direction: ASC }
2057
- ]
2058
- useMaster: false
2059
- ) {
2060
- nodes {
2061
- id
2062
- name
2063
- isRegex
2064
- description
2065
- trackingPurposes
2066
- service {
2067
- integrationName
2068
- }
2069
- source
2070
- status
2071
- owners {
2072
- email
2073
- }
2074
- teams {
2075
- name
2076
- }
2077
- attributeValues {
2078
- name
2079
- attributeKey {
2080
- name
2081
- }
2082
- }
2083
- }
2084
- }
2085
- }
2086
- `,qa= exports._a =_graphqlrequest.gql`
2087
- query TranscendCliFetchConsentManagerId {
2088
- consentManager {
2089
- consentManager {
2090
- id
2091
- }
2092
- }
2093
- }
2094
- `,Na= exports.$a =_graphqlrequest.gql`
2095
- query TranscendCliFetchConsentManager {
2096
- consentManager {
2097
- consentManager {
2098
- id
2099
- bundleURL
2100
- testBundleURL
2101
- configuration {
2102
- domains
2103
- consentPrecedence
2104
- unknownRequestPolicy
2105
- unknownCookiePolicy
2106
- syncEndpoint
2107
- telemetryPartitioning
2108
- signedIabAgreement
2109
- syncGroups
2110
- partition
2111
- }
2112
- partition {
2113
- partition
2114
- }
2115
- }
2116
- }
2117
- }
2118
- `,Ua= exports.ab =_graphqlrequest.gql`
2119
- query TranscendCliFetchConsentManagerTheme($airgapBundleId: ID!) {
2120
- consentManagerTheme(input: { airgapBundleId: $airgapBundleId }) {
2121
- theme {
2122
- primaryColor
2123
- fontColor
2124
- privacyPolicy
2125
- prompt
2126
- }
2127
- }
2128
- }
2129
- `,Fa= exports.bb =_graphqlrequest.gql`
2130
- mutation TranscendCliCreateConsentManager($privacyCenterId: ID!) {
2131
- createConsentManager(input: { privacyCenterId: $privacyCenterId }) {
2132
- consentManager {
2133
- id
2134
- }
2135
- }
2136
- }
2137
- `,Ba= exports.cb =_graphqlrequest.gql`
2138
- mutation TranscendCliUpdateConsentManager(
2139
- $airgapBundleId: ID!
2140
- $version: String!
2141
- ) {
2142
- updateConsentManager(id: $airgapBundleId, input: { version: $version }) {
2143
- clientMutationId
2144
- }
2145
- }
2146
- `,Qa= exports.db =_graphqlrequest.gql`
2147
- mutation TranscendCliUpdateConsentManagerToLatest(
2148
- $airgapBundleId: ID!
2149
- $bundleType: ConsentBundleType!
2150
- ) {
2151
- updateConsentManagerToLatestVersion(
2152
- id: $airgapBundleId
2153
- input: { bundleType: $bundleType }
2154
- ) {
2155
- clientMutationId
2156
- }
2157
- }
2158
- `,Ka= exports.eb =_graphqlrequest.gql`
2159
- mutation TranscendCliDeployConsentManager(
2160
- $airgapBundleId: ID!
2161
- $bundleType: ConsentBundleType!
2162
- ) {
2163
- deployConsentManagerBundle(
2164
- id: $airgapBundleId
2165
- input: { bundleType: $bundleType }
2166
- ) {
2167
- clientMutationId
2168
- }
2169
- }
2170
- `,Va= exports.fb =_graphqlrequest.gql`
2171
- mutation TranscendCliUpdateConsentManagerDomains(
2172
- $airgapBundleId: ID!
2173
- $domains: [String!]!
2174
- ) {
2175
- updateConsentManagerDomains(
2176
- input: { id: $airgapBundleId, domains: $domains }
2177
- ) {
2178
- clientMutationId
2179
- }
2180
- }
2181
- `,ja= exports.gb =_graphqlrequest.gql`
2182
- mutation TranscendCliUpdateConsentManagerPartition(
2183
- $airgapBundleId: ID!
2184
- $partitionId: ID!
2185
- ) {
2186
- updateConsentManagerPartition(
2187
- input: { id: $airgapBundleId, partitionId: $partitionId }
2188
- ) {
2189
- clientMutationId
2190
- }
2191
- }
2192
- `,Wa= exports.hb =_graphqlrequest.gql`
2193
- mutation TranscendCliUpdateLoadOptions($input: UpdateLoadOptionsInput!) {
2194
- updateLoadOptions(input: $input) {
2195
- clientMutationId
2196
- }
2197
- }
2198
- `,Ha= exports.ib =_graphqlrequest.gql`
2199
- mutation TranscendCliToggleUnknownRequestPolicy(
2200
- $input: ToggleUnknownRequestPolicyInput!
2201
- ) {
2202
- toggleUnknownRequestPolicy(input: $input) {
2203
- clientMutationId
2204
- }
2205
- }
2206
- `,Za= exports.jb =_graphqlrequest.gql`
2207
- mutation TranscendCliToggleUnknownCookiePolicy(
2208
- $input: ToggleUnknownCookiePolicyInput!
2209
- ) {
2210
- toggleUnknownCookiePolicy(input: $input) {
2211
- clientMutationId
2212
- }
2213
- }
2214
- `,Ya= exports.kb =_graphqlrequest.gql`
2215
- mutation TranscendCliToggleTelemetryPartitionStrategy(
2216
- $input: ToggleTelemetryPartitionStrategyInput!
2217
- ) {
2218
- toggleTelemetryPartitioning(input: $input) {
2219
- clientMutationId
2220
- }
2221
- }
2222
- `,za= exports.lb =_graphqlrequest.gql`
2223
- mutation TranscendCliToggleConsentPrecedence(
2224
- $input: ToggleConsentPrecedenceInput!
2225
- ) {
2226
- toggleConsentPrecedence(input: $input) {
2227
- clientMutationId
2228
- }
2229
- }
2230
- `,Ja= exports.mb =_graphqlrequest.gql`
2231
- mutation TranscendCliUpdateConsentManagerTheme(
2232
- $input: UpdateConsentManagerThemeInput!
2233
- ) {
2234
- updateConsentManagerTheme(input: $input) {
2235
- clientMutationId
2236
- }
2237
- }
2238
- `,Xa= exports.nb =_graphqlrequest.gql`
2239
- mutation TranscendCliUpdateConsentExperience($input: UpdateExperienceInput!) {
2240
- updateExperience(input: $input) {
2241
- clientMutationId
2242
- }
2243
- }
2244
- `,es= exports.ob =_graphqlrequest.gql`
2245
- mutation TranscendCliCreateConsentExperience($input: CreateExperienceInput!) {
2246
- createExperience(input: $input) {
2247
- clientMutationId
2248
- }
2249
- }
2250
- `,ts= exports.pb =_graphqlrequest.gql`
2251
- mutation TranscendCliCreateConsentPartition(
2252
- $input: CreateConsentPartitionInput!
2253
- ) {
2254
- createConsentPartition(input: $input) {
2255
- clientMutationId
2256
- }
2257
- }
2258
- `;var rs=_graphqlrequest.gql`
2259
- query TranscendCliConsentManagerAnalyticsData($input: AnalyticsInput!) {
2260
- analyticsData(input: $input) {
2261
- series {
2262
- name
2263
- points {
2264
- key
2265
- value
2266
- }
2267
- }
2268
- }
2269
- }
2270
- `;var os=_graphqlrequest.gql`
2271
- query TranscendCliBusinessEntities($first: Int!, $offset: Int!) {
2272
- businessEntities(
2273
- first: $first
2274
- offset: $offset
2275
- orderBy: [
2276
- { field: createdAt, direction: ASC }
2277
- { field: title, direction: ASC }
2278
- ]
2279
- useMaster: false
2280
- ) {
2281
- nodes {
2282
- id
2283
- title
2284
- description
2285
- dataProtectionOfficerName
2286
- dataProtectionOfficerEmail
2287
- address
2288
- headquarterCountry
2289
- headquarterSubDivision
2290
- attributeValues {
2291
- name
2292
- attributeKey {
2293
- name
2294
- }
2295
- }
2296
- }
2297
- }
2298
- }
2299
- `,ns= exports.sb =_graphqlrequest.gql`
2300
- mutation TranscendCliCreateBusinessEntity(
2301
- $input: CreateBusinessEntityInput!
2302
- ) {
2303
- createBusinessEntity(input: $input) {
2304
- businessEntity {
2305
- id
2306
- title
2307
- description
2308
- dataProtectionOfficerName
2309
- dataProtectionOfficerEmail
2310
- address
2311
- headquarterCountry
2312
- headquarterSubDivision
2313
- attributeValues {
2314
- name
2315
- attributeKey {
2316
- name
2317
- }
2318
- }
2319
- }
2320
- }
2321
- }
2322
- `,is= exports.tb =_graphqlrequest.gql`
2323
- mutation TranscendCliUpdateBusinessEntities(
2324
- $input: [UpdateBusinessEntityInput!]!
2325
- ) {
2326
- updateBusinessEntities(input: { businessEntities: $input }) {
2327
- clientMutationId
2328
- }
2329
- }
2330
- `;var ss=_graphqlrequest.gql`
2331
- query TranscendCliActions($first: Int!, $offset: Int!) {
2332
- actions(
2333
- first: $first
2334
- offset: $offset
2335
- useMaster: false
2336
- orderBy: [{ field: type, direction: ASC }]
2337
- ) {
2338
- nodes {
2339
- id
2340
- type
2341
- skipSecondaryIfNoFiles
2342
- skipDownloadableStep
2343
- requiresReview
2344
- regionList
2345
- regionDetectionMethod
2346
- waitingPeriod
2347
- }
2348
- }
2349
- }
2350
- `,ps= exports.vb =_graphqlrequest.gql`
2351
- mutation TranscendCliUpdateAction($input: UpdateActionInput!) {
2352
- updateAction(input: $input) {
2353
- clientMutationId
2354
- }
2355
- }
2356
- `;var us=_graphqlrequest.gql`
2357
- query TranscendCliGlobalActionItems(
2358
- $first: Int!
2359
- $offset: Int!
2360
- $filterBy: GlobalActionItemFiltersInput!
2361
- ) {
2362
- globalActionItems(first: $first, offset: $offset, filterBy: $filterBy) {
2363
- nodes {
2364
- ids
2365
- count
2366
- teams {
2367
- id
2368
- name
2369
- }
2370
- customerExperienceActionItemIds
2371
- users {
2372
- id
2373
- email
2374
- }
2375
- collections {
2376
- title
2377
- id
2378
- }
2379
- dueDate
2380
- priority
2381
- titles
2382
- resolved
2383
- notes
2384
- links
2385
- type
2386
- additionalContexts {
2387
- iconOverride
2388
- requestId
2389
- dataSiloId
2390
- requestType
2391
- latestAirgapVersion
2392
- parentTitle
2393
- }
2394
- attributeValues {
2395
- name
2396
- attributeKey {
2397
- name
2398
- }
2399
- }
2400
- }
2401
- }
2402
- }
2403
- `,ls= exports.xb =_graphqlrequest.gql`
2404
- mutation TranscendCliUpdateActionItems($input: UpdateActionItemsInput!) {
2405
- updateActionItems(input: $input) {
2406
- clientMutationId
2407
- }
2408
- }
2409
- `,ms= exports.yb =_graphqlrequest.gql`
2410
- mutation TranscendCliCreateActionItems($input: [CreateActionItemsInput!]!) {
2411
- createActionItems(input: $input) {
2412
- clientMutationId
2413
- }
2414
- }
2415
- `;var fs=_graphqlrequest.gql`
2416
- query TranscendCliFetchPrivacyCenterId($url: String!) {
2417
- privacyCenter(lookup: { url: $url }) {
2418
- id
2419
- }
2420
- }
2421
- `,cs= exports.Ab =_graphqlrequest.gql`
2422
- query TranscendCliDeployedPrivacyCenterUrl {
2423
- organization {
2424
- deployedPrivacyCenterUrl
2425
- }
2426
- }
2427
- `,ds= exports.Bb =_graphqlrequest.gql`
2428
- query TranscendCliFetchPrivacyCenters($url: String!) {
2429
- privacyCenter(lookup: { url: $url }) {
2430
- id
2431
- url
2432
- isDisabled
2433
- showPrivacyRequestButton
2434
- showPolicies
2435
- showTrackingTechnologies
2436
- showCookies
2437
- showDataFlows
2438
- showConsentManager
2439
- showManageYourPrivacy
2440
- showMarketingPreferences
2441
- locales
2442
- defaultLocale
2443
- preferBrowserDefaultLocale
2444
- supportEmail
2445
- replyToEmail
2446
- useNoReplyEmailAddress
2447
- useCustomEmailDomain
2448
- transformAccessReportJsonToCsv
2449
- themeStr
2450
- }
2451
- }
2452
- `,gs= exports.Cb =_graphqlrequest.gql`
2453
- mutation TranscendCliUpdatePrivacyCenter($input: UpdatePrivacyCenterInput!) {
2454
- updatePrivacyCenter(input: $input) {
2455
- clientMutationId
2456
- }
2457
- }
2458
- `;var Lo=_graphqlrequest.gql`
2459
- mutation TranscendCliDetermineLoginMethod($email: String!) {
2460
- determineLoginMethod(input: { email: $email }) {
2461
- loginMethod {
2462
- email
2463
- sombraPublicKey
2464
- }
2465
- }
2466
- }
2467
- `,ys= exports.Eb =_graphqlrequest.gql`
2468
- mutation TranscendCliLogin(
2469
- $email: String!
2470
- $password: String!
2471
- $publicKey: String!
2472
- ) {
2473
- login(
2474
- input: { email: $email, password: $password }
2475
- publicKey: $publicKey
2476
- ) {
2477
- user {
2478
- roles {
2479
- id
2480
- organization {
2481
- name
2482
- id
2483
- uri
2484
- parentOrganizationId
2485
- }
2486
- }
2487
- }
2488
- }
2489
- }
2490
- `,hs= exports.Fb =_graphqlrequest.gql`
2491
- mutation TranscendCliAssumeRole($id: ID!, $publicKey: String!) {
2492
- assumeRole(id: $id, publicKey: $publicKey) {
2493
- clientMutationId
2494
- }
2495
- }
2496
- `;var ET=_graphqlrequest.gql`
2497
- query TranscendCliLargeLanguageModels(
2498
- $first: Int!
2499
- $offset: Int!
2500
- $filterBy: LargeLanguageModelFiltersInput
2501
- ) {
2502
- largeLanguageModels(
2503
- first: $first
2504
- orderBy: [
2505
- { field: name, direction: ASC }
2506
- { field: client, direction: ASC }
2507
- { field: isTranscendHosted, direction: ASC }
2508
- ]
2509
- offset: $offset
2510
- filterBy: $filterBy
2511
- ) {
2512
- nodes {
2513
- id
2514
- name
2515
- client
2516
- isTranscendHosted
2517
- }
2518
- }
2519
- }
2520
- `;var Cs=_graphqlrequest.gql`
2521
- query TranscendCliAgents(
2522
- $first: Int!
2523
- $offset: Int!
2524
- $filterBy: AgentFiltersInput
2525
- ) {
2526
- agents(
2527
- first: $first
2528
- offset: $offset
2529
- filterBy: $filterBy
2530
- orderBy: [
2531
- { field: createdAt, direction: ASC }
2532
- { field: name, direction: ASC }
2533
- ]
2534
- ) {
2535
- nodes {
2536
- id
2537
- name
2538
- agentId
2539
- instructions
2540
- description
2541
- codeInterpreterEnabled
2542
- retrievalEnabled
2543
- prompt {
2544
- title
2545
- }
2546
- largeLanguageModel {
2547
- name
2548
- client
2549
- }
2550
- teams {
2551
- name
2552
- }
2553
- owners {
2554
- email
2555
- }
2556
- agentFunctions {
2557
- name
2558
- }
2559
- agentFiles {
2560
- name
2561
- }
2562
- }
2563
- }
2564
- }
2565
- `,As= exports.Ib =_graphqlrequest.gql`
2566
- mutation TranscendCliCreateAgent($input: CreateAgentInput!) {
2567
- createAgent(input: $input) {
2568
- agent {
2569
- id
2570
- name
2571
- agentId
2572
- }
2573
- }
2574
- }
2575
- `,Is= exports.Jb =_graphqlrequest.gql`
2576
- mutation TranscendCliUpdateAgents($input: UpdateAgentsInput!) {
2577
- updateAgents(input: $input) {
2578
- clientMutationId
2579
- }
2580
- }
2581
- `;var xs=_graphqlrequest.gql`
2582
- query TranscendCliAgentFiles(
2583
- $first: Int!
2584
- $offset: Int!
2585
- $filterBy: AgentFileFiltersInput
2586
- ) {
2587
- agentFiles(
2588
- first: $first
2589
- offset: $offset
2590
- filterBy: $filterBy
2591
- orderBy: [
2592
- { field: createdAt, direction: ASC }
2593
- { field: name, direction: ASC }
2594
- ]
2595
- ) {
2596
- nodes {
2597
- id
2598
- name
2599
- description
2600
- fileId
2601
- size
2602
- purpose
2603
- initialFileName
2604
- }
2605
- }
2606
- }
2607
- `,Ts= exports.Lb =_graphqlrequest.gql`
2608
- mutation TranscendCliCreateAgentFile($input: CreateAgentFileInput!) {
2609
- createAgentFile(input: $input) {
2610
- agentFile {
2611
- id
2612
- name
2613
- fileId
2614
- initialFileName
2615
- }
2616
- }
2617
- }
2618
- `,Ss= exports.Mb =_graphqlrequest.gql`
2619
- mutation TranscendCliUpdateAgentFiles($input: UpdateAgentFilesInput!) {
2620
- updateAgentFiles(input: $input) {
2621
- clientMutationId
2622
- }
2623
- }
2624
- `;var Ps=_graphqlrequest.gql`
2625
- query TranscendCliAgentFunctions($first: Int!, $offset: Int!) {
2626
- agentFunctions(
2627
- first: $first
2628
- offset: $offset
2629
- orderBy: [
2630
- { field: createdAt, direction: ASC }
2631
- { field: name, direction: ASC }
2632
- ]
2633
- ) {
2634
- nodes {
2635
- id
2636
- name
2637
- description
2638
- parameters
2639
- }
2640
- }
2641
- }
2642
- `,Es= exports.Ob =_graphqlrequest.gql`
2643
- mutation TranscendCliCreateAgentFunction($input: CreateAgentFunctionInput!) {
2644
- createAgentFunction(input: $input) {
2645
- agentFunction {
2646
- id
2647
- name
2648
- }
2649
- }
2650
- }
2651
- `,bs= exports.Pb =_graphqlrequest.gql`
2652
- mutation TranscendCliUpdateAgentFunctions(
2653
- $input: UpdateAgentFunctionsInput!
2654
- ) {
2655
- updateAgentFunctions(input: $input) {
2656
- clientMutationId
2657
- }
2658
- }
2659
- `;var ws=_graphqlrequest.gql`
2660
- query TranscendCliVendors($first: Int!, $offset: Int!) {
2661
- vendors(
2662
- first: $first
2663
- offset: $offset
2664
- useMaster: false
2665
- isExportCsv: true
2666
- orderBy: [
2667
- { field: createdAt, direction: ASC }
2668
- { field: title, direction: ASC }
2669
- ]
2670
- ) {
2671
- nodes {
2672
- id
2673
- title
2674
- description
2675
- dataProcessingAgreementLink
2676
- contactName
2677
- contactEmail
2678
- contactPhone
2679
- address
2680
- headquarterCountry
2681
- headquarterSubDivision
2682
- websiteUrl
2683
- businessEntity {
2684
- title
2685
- }
2686
- teams {
2687
- name
2688
- }
2689
- owners {
2690
- email
2691
- }
2692
- attributeValues {
2693
- attributeKey {
2694
- name
2695
- }
2696
- name
2697
- }
2698
- }
2699
- }
2700
- }
2701
- `,Rs= exports.Rb =_graphqlrequest.gql`
2702
- mutation TranscendCliCreateVendor($input: CreateVendorInput!) {
2703
- createVendor(input: $input) {
2704
- vendor {
2705
- id
2706
- title
2707
- }
2708
- }
2709
- }
2710
- `,$s= exports.Sb =_graphqlrequest.gql`
2711
- mutation TranscendCliUpdateVendor($input: UpdateVendorsInput!) {
2712
- updateVendors(input: $input) {
2713
- clientMutationId
2714
- }
2715
- }
2716
- `;var Ds=_graphqlrequest.gql`
2717
- query TranscendCliDataSubCategories($first: Int!, $offset: Int!) {
2718
- dataSubCategories(
2719
- first: $first
2720
- offset: $offset
2721
- isExportCsv: true
2722
- useMaster: false
2723
- ) {
2724
- nodes {
2725
- id
2726
- name
2727
- category
2728
- description
2729
- regex
2730
- teams {
2731
- name
2732
- }
2733
- owners {
2734
- email
2735
- }
2736
- attributeValues {
2737
- attributeKey {
2738
- name
2739
- }
2740
- name
2741
- }
2742
- }
2743
- }
2744
- }
2745
- `,_s= exports.Ub =_graphqlrequest.gql`
2746
- mutation TranscendCliCreateDataSubCategory(
2747
- $input: CreateDataInventorySubCategoryInput!
2748
- ) {
2749
- createDataSubCategory(input: $input) {
2750
- dataSubCategory {
2751
- id
2752
- name
2753
- category
2754
- }
2755
- }
2756
- }
2757
- `,Ls= exports.Vb =_graphqlrequest.gql`
2758
- mutation TranscendCliUpdateDataSubCategories(
2759
- $input: UpdateDataSubCategoriesInput!
2760
- ) {
2761
- updateDataSubCategories(input: $input) {
2762
- clientMutationId
2763
- }
2764
- }
2765
- `;var vs=_graphqlrequest.gql`
2766
- query TranscendCliProcessingPurposeSubCategories(
2767
- $first: Int!
2768
- $offset: Int!
2769
- ) {
2770
- processingPurposeSubCategories(
2771
- first: $first
2772
- offset: $offset
2773
- isExportCsv: true
2774
- useMaster: false
2775
- ) {
2776
- nodes {
2777
- id
2778
- name
2779
- purpose
2780
- description
2781
- teams {
2782
- name
2783
- }
2784
- owners {
2785
- email
2786
- }
2787
- attributeValues {
2788
- attributeKey {
2789
- name
2790
- }
2791
- name
2792
- }
2793
- }
2794
- }
2795
- }
2796
- `,Os= exports.Xb =_graphqlrequest.gql`
2797
- mutation TranscendCliCreateProcessingPurposeSubCategory(
2798
- $input: CreateProcessingPurposeCategoryInput!
2799
- ) {
2800
- createProcessingPurposeSubCategory(input: $input) {
2801
- processingPurposeSubCategory {
2802
- id
2803
- name
2804
- purpose
2805
- }
2806
- }
2807
- }
2808
- `,ks= exports.Yb =_graphqlrequest.gql`
2809
- mutation TranscendCliUpdateProcessingPurposeSubCategories(
2810
- $input: UpdateProcessingPurposeSubCategoriesInput!
2811
- ) {
2812
- updateProcessingPurposeSubCategories(input: $input) {
2813
- clientMutationId
2814
- }
2815
- }
2816
- `;var Gs=_graphqlrequest.gql`
2817
- query TranscendSombraVersion {
2818
- organization {
2819
- sombra {
2820
- version
2821
- }
2822
- }
2823
- }
2824
- `;var hf=typeof global=="object"&&global&&global.Object===Object&&global,br=hf;var Cf=typeof self=="object"&&self&&self.Object===Object&&self,Af=br||Cf||Function("return this")(),X=Af;var If=X.Symbol,ie=If;var Ms=Object.prototype,xf=Ms.hasOwnProperty,Tf=Ms.toString,lr=ie?ie.toStringTag:void 0;function Sf(e){var t=xf.call(e,lr),r=e[lr];try{e[lr]=void 0;var n=!0}catch (e2){}var o=Tf.call(e);return n&&(t?e[lr]=r:delete e[lr]),o}var qs=Sf;var Pf=Object.prototype,Ef=Pf.toString;function bf(e){return Ef.call(e)}var Ns=bf;var wf="[object Null]",Rf="[object Undefined]",Us=ie?ie.toStringTag:void 0;function $f(e){return e==null?e===void 0?Rf:wf:Us&&Us in Object(e)?qs(e):Ns(e)}var Ie=$f;function Df(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var xe=Df;var _f="[object AsyncFunction]",Lf="[object Function]",vf="[object GeneratorFunction]",Of="[object Proxy]";function kf(e){if(!xe(e))return!1;var t=Ie(e);return t==Lf||t==vf||t==_f||t==Of}var wr=kf;var Gf=X["__core-js_shared__"],Rr=Gf;var Fs=function(){var e=/[^.]+$/.exec(Rr&&Rr.keys&&Rr.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Mf(e){return!!Fs&&Fs in e}var Bs=Mf;var qf=Function.prototype,Nf=qf.toString;function Uf(e){if(e!=null){try{return Nf.call(e)}catch (e3){}try{return e+""}catch (e4){}}return""}var ve=Uf;var Ff=/[\\^$.*+?()[\]{}|]/g,Bf=/^\[object .+?Constructor\]$/,Qf=Function.prototype,Kf=Object.prototype,Vf=Qf.toString,jf=Kf.hasOwnProperty,Wf=RegExp("^"+Vf.call(jf).replace(Ff,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Hf(e){if(!xe(e)||Bs(e))return!1;var t=wr(e)?Wf:Bf;return t.test(ve(e))}var Qs=Hf;function Zf(e,t){return _optionalChain([e, 'optionalAccess', _2 => _2[t]])}var Ks=Zf;function Yf(e,t){var r=Ks(e,t);return Qs(r)?r:void 0}var se=Yf;var zf=se(Object,"create"),Oe=zf;function Jf(){this.__data__=Oe?Oe(null):{},this.size=0}var Vs=Jf;function Xf(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var js=Xf;var ec="__lodash_hash_undefined__",tc=Object.prototype,rc=tc.hasOwnProperty;function oc(e){var t=this.__data__;if(Oe){var r=t[e];return r===ec?void 0:r}return rc.call(t,e)?t[e]:void 0}var Ws=oc;var nc=Object.prototype,ic=nc.hasOwnProperty;function ac(e){var t=this.__data__;return Oe?t[e]!==void 0:ic.call(t,e)}var Hs=ac;var sc="__lodash_hash_undefined__";function pc(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Oe&&t===void 0?sc:t,this}var Zs=pc;function At(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}At.prototype.clear=Vs;At.prototype.delete=js;At.prototype.get=Ws;At.prototype.has=Hs;At.prototype.set=Zs;var No=At;function uc(){this.__data__=[],this.size=0}var Ys=uc;function lc(e,t){return e===t||e!==e&&t!==t}var It=lc;function mc(e,t){for(var r=e.length;r--;)if(It(e[r][0],t))return r;return-1}var He=mc;var fc=Array.prototype,cc=fc.splice;function dc(e){var t=this.__data__,r=He(t,e);if(r<0)return!1;var n=t.length-1;return r==n?t.pop():cc.call(t,r,1),--this.size,!0}var zs=dc;function gc(e){var t=this.__data__,r=He(t,e);return r<0?void 0:t[r][1]}var Js=gc;function yc(e){return He(this.__data__,e)>-1}var Xs=yc;function hc(e,t){var r=this.__data__,n=He(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}var ep=hc;function xt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}xt.prototype.clear=Ys;xt.prototype.delete=zs;xt.prototype.get=Js;xt.prototype.has=Xs;xt.prototype.set=ep;var Ze=xt;var Cc=se(X,"Map"),Ye=Cc;function Ac(){this.size=0,this.__data__={hash:new No,map:new(Ye||Ze),string:new No}}var tp=Ac;function Ic(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var rp=Ic;function xc(e,t){var r=e.__data__;return rp(t)?r[typeof t=="string"?"string":"hash"]:r.map}var ze=xc;function Tc(e){var t=ze(this,e).delete(e);return this.size-=t?1:0,t}var op=Tc;function Sc(e){return ze(this,e).get(e)}var np=Sc;function Pc(e){return ze(this,e).has(e)}var ip=Pc;function Ec(e,t){var r=ze(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}var ap=Ec;function Tt(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}Tt.prototype.clear=tp;Tt.prototype.delete=op;Tt.prototype.get=np;Tt.prototype.has=ip;Tt.prototype.set=ap;var dt=Tt;var bc="__lodash_hash_undefined__";function wc(e){return this.__data__.set(e,bc),this}var sp=wc;function Rc(e){return this.__data__.has(e)}var pp=Rc;function $r(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new dt;++t<r;)this.add(e[t])}$r.prototype.add=$r.prototype.push=sp;$r.prototype.has=pp;var St=$r;function $c(e,t,r,n){for(var o=e.length,a=r+(n?1:-1);n?a--:++a<o;)if(t(e[a],a,e))return a;return-1}var up=$c;function Dc(e){return e!==e}var lp=Dc;function _c(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}var mp=_c;function Lc(e,t,r){return t===t?mp(e,t,r):up(e,lp,r)}var fp=Lc;function vc(e,t){var r=e==null?0:e.length;return!!r&&fp(e,t,0)>-1}var Dr=vc;function Oc(e,t,r){for(var n=-1,o=e==null?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}var _r=Oc;function kc(e,t){for(var r=-1,n=e==null?0:e.length,o=Array(n);++r<n;)o[r]=t(e[r],r,e);return o}var Je=kc;function Gc(e){return function(t){return e(t)}}var Pt=Gc;function Mc(e,t){return e.has(t)}var Et=Mc;var qc=200;function Nc(e,t,r,n){var o=-1,a=Dr,i=!0,p=e.length,m=[],l=t.length;if(!p)return m;r&&(t=Je(t,Pt(r))),n?(a=_r,i=!1):t.length>=qc&&(a=Et,i=!1,t=new St(t));e:for(;++o<p;){var c=e[o],f=r==null?c:r(c);if(c=n||c!==0?c:0,i&&f===f){for(var d=l;d--;)if(t[d]===f)continue e;m.push(c)}else a(t,f,n)||m.push(c)}return m}var cp=Nc;function Uc(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}var Lr=Uc;function Fc(e){return e!=null&&typeof e=="object"}var le=Fc;var Bc="[object Arguments]";function Qc(e){return le(e)&&Ie(e)==Bc}var Uo=Qc;var dp=Object.prototype,Kc=dp.hasOwnProperty,Vc=dp.propertyIsEnumerable,jc=Uo(function(){return arguments}())?Uo:function(e){return le(e)&&Kc.call(e,"callee")&&!Vc.call(e,"callee")},bt=jc;var Wc=Array.isArray,Y=Wc;var gp=ie?ie.isConcatSpreadable:void 0;function Hc(e){return Y(e)||bt(e)||!!(gp&&e&&e[gp])}var yp=Hc;function hp(e,t,r,n,o){var a=-1,i=e.length;for(r||(r=yp),o||(o=[]);++a<i;){var p=e[a];t>0&&r(p)?t>1?hp(p,t-1,r,n,o):Lr(o,p):n||(o[o.length]=p)}return o}var Xe=hp;function Zc(e){return e}var et=Zc;function Yc(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var Cp=Yc;var Ap=Math.max;function zc(e,t,r){return t=Ap(t===void 0?e.length-1:t,0),function(){for(var n=arguments,o=-1,a=Ap(n.length-t,0),i=Array(a);++o<a;)i[o]=n[t+o];o=-1;for(var p=Array(t+1);++o<t;)p[o]=n[o];return p[t]=r(i),Cp(e,this,p)}}var Ip=zc;function Jc(e){return function(){return e}}var xp=Jc;var Xc=function(){try{var e=se(Object,"defineProperty");return e({},"",{}),e}catch (e5){}}(),wt=Xc;var ed=wt?function(e,t){return wt(e,"toString",{configurable:!0,enumerable:!1,value:xp(t),writable:!0})}:et,Tp=ed;var td=800,rd=16,od=Date.now;function nd(e){var t=0,r=0;return function(){var n=od(),o=rd-(n-r);if(r=n,o>0){if(++t>=td)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var Sp=nd;var id=Sp(Tp),Pp=id;function ad(e,t){return Pp(Ip(e,t,et),e+"")}var Rt=ad;var sd=9007199254740991;function pd(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=sd}var $t=pd;function ud(e){return e!=null&&$t(e.length)&&!wr(e)}var we=ud;function ld(e){return le(e)&&we(e)}var mr=ld;var md=Rt(function(e,t){return mr(e)?cp(e,Xe(t,1,mr,!0)):[]}),me= exports.$b =md;function fd(e,t,r){t=="__proto__"&&wt?wt(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var Dt=fd;function cd(e,t,r,n){for(var o=-1,a=e==null?0:e.length;++o<a;){var i=e[o];t(n,i,r(i),e)}return n}var Ep=cd;function dd(e){return function(t,r,n){for(var o=-1,a=Object(t),i=n(t),p=i.length;p--;){var m=i[e?p:++o];if(r(a[m],m,a)===!1)break}return t}}var bp=dd;var gd=bp(),wp=gd;function yd(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}var Rp=yd;function hd(){return!1}var $p=hd;var Lp=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Dp=Lp&&typeof module=="object"&&module&&!module.nodeType&&module,Cd=Dp&&Dp.exports===Lp,_p=Cd?X.Buffer:void 0,Ad=_p?_p.isBuffer:void 0,Id=Ad||$p,fr=Id;var xd=9007199254740991,Td=/^(?:0|[1-9]\d*)$/;function Sd(e,t){var r=typeof e;return t=_nullishCoalesce(t, () => (xd)),!!t&&(r=="number"||r!="symbol"&&Td.test(e))&&e>-1&&e%1==0&&e<t}var _t=Sd;var Pd="[object Arguments]",Ed="[object Array]",bd="[object Boolean]",wd="[object Date]",Rd="[object Error]",$d="[object Function]",Dd="[object Map]",_d="[object Number]",Ld="[object Object]",vd="[object RegExp]",Od="[object Set]",kd="[object String]",Gd="[object WeakMap]",Md="[object ArrayBuffer]",qd="[object DataView]",Nd="[object Float32Array]",Ud="[object Float64Array]",Fd="[object Int8Array]",Bd="[object Int16Array]",Qd="[object Int32Array]",Kd="[object Uint8Array]",Vd="[object Uint8ClampedArray]",jd="[object Uint16Array]",Wd="[object Uint32Array]",Z={};Z[Nd]=Z[Ud]=Z[Fd]=Z[Bd]=Z[Qd]=Z[Kd]=Z[Vd]=Z[jd]=Z[Wd]=!0;Z[Pd]=Z[Ed]=Z[Md]=Z[bd]=Z[qd]=Z[wd]=Z[Rd]=Z[$d]=Z[Dd]=Z[_d]=Z[Ld]=Z[vd]=Z[Od]=Z[kd]=Z[Gd]=!1;function Hd(e){return le(e)&&$t(e.length)&&!!Z[Ie(e)]}var vp=Hd;var Op=typeof exports=="object"&&exports&&!exports.nodeType&&exports,cr=Op&&typeof module=="object"&&module&&!module.nodeType&&module,Zd=cr&&cr.exports===Op,Fo=Zd&&br.process,Yd=function(){try{var e=cr&&cr.require&&cr.require("util").types;return e||Fo&&Fo.binding&&Fo.binding("util")}catch (e6){}}(),Bo=Yd;var kp=Bo&&Bo.isTypedArray,zd=kp?Pt(kp):vp,vr=zd;var Jd=Object.prototype,Xd=Jd.hasOwnProperty;function eg(e,t){var r=Y(e),n=!r&&bt(e),o=!r&&!n&&fr(e),a=!r&&!n&&!o&&vr(e),i=r||n||o||a,p=i?Rp(e.length,String):[],m=p.length;for(var l in e)(t||Xd.call(e,l))&&!(i&&(l=="length"||o&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||_t(l,m)))&&p.push(l);return p}var Gp=eg;var tg=Object.prototype;function rg(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||tg;return e===r}var Mp=rg;function og(e,t){return function(r){return e(t(r))}}var qp=og;var ng=qp(Object.keys,Object),Np=ng;var ig=Object.prototype,ag=ig.hasOwnProperty;function sg(e){if(!Mp(e))return Np(e);var t=[];for(var r in Object(e))ag.call(e,r)&&r!="constructor"&&t.push(r);return t}var Up=sg;function pg(e){return we(e)?Gp(e):Up(e)}var Lt=pg;function ug(e,t){return e&&wp(e,t,Lt)}var Or=ug;function lg(e,t){return function(r,n){if(r==null)return r;if(!we(r))return e(r,n);for(var o=r.length,a=t?o:-1,i=Object(r);(t?a--:++a<o)&&n(i[a],a,i)!==!1;);return r}}var Fp=lg;var mg=Fp(Or),kr=mg;function fg(e,t,r,n){return kr(e,function(o,a,i){t(n,o,r(o),i)}),n}var Bp=fg;function cg(){this.__data__=new Ze,this.size=0}var Qp=cg;function dg(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var Kp=dg;function gg(e){return this.__data__.get(e)}var Vp=gg;function yg(e){return this.__data__.has(e)}var jp=yg;var hg=200;function Cg(e,t){var r=this.__data__;if(r instanceof Ze){var n=r.__data__;if(!Ye||n.length<hg-1)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new dt(n)}return r.set(e,t),this.size=r.size,this}var Wp=Cg;function vt(e){var t=this.__data__=new Ze(e);this.size=t.size}vt.prototype.clear=Qp;vt.prototype.delete=Kp;vt.prototype.get=Vp;vt.prototype.has=jp;vt.prototype.set=Wp;var Ot=vt;function Ag(e,t){for(var r=-1,n=e==null?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}var Hp=Ag;var Ig=1,xg=2;function Tg(e,t,r,n,o,a){var i=r&Ig,p=e.length,m=t.length;if(p!=m&&!(i&&m>p))return!1;var l=a.get(e),c=a.get(t);if(l&&c)return l==t&&c==e;var f=-1,d=!0,C=r&xg?new St:void 0;for(a.set(e,t),a.set(t,e);++f<p;){var h=e[f],v=t[f];if(n)var K=i?n(v,h,f,t,e,a):n(h,v,f,e,t,a);if(K!==void 0){if(K)continue;d=!1;break}if(C){if(!Hp(t,function(R,M){if(!Et(C,M)&&(h===R||o(h,R,r,n,a)))return C.push(M)})){d=!1;break}}else if(!(h===v||o(h,v,r,n,a))){d=!1;break}}return a.delete(e),a.delete(t),d}var Gr=Tg;var Sg=X.Uint8Array,Qo=Sg;function Pg(e){var t=-1,r=Array(e.size);return e.forEach(function(n,o){r[++t]=[o,n]}),r}var Zp=Pg;function Eg(e){var t=-1,r=Array(e.size);return e.forEach(function(n){r[++t]=n}),r}var kt=Eg;var bg=1,wg=2,Rg="[object Boolean]",$g="[object Date]",Dg="[object Error]",_g="[object Map]",Lg="[object Number]",vg="[object RegExp]",Og="[object Set]",kg="[object String]",Gg="[object Symbol]",Mg="[object ArrayBuffer]",qg="[object DataView]",Yp=ie?ie.prototype:void 0,Ko=Yp?Yp.valueOf:void 0;function Ng(e,t,r,n,o,a,i){switch(r){case qg:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Mg:return!(e.byteLength!=t.byteLength||!a(new Qo(e),new Qo(t)));case Rg:case $g:case Lg:return It(+e,+t);case Dg:return e.name==t.name&&e.message==t.message;case vg:case kg:return e==t+"";case _g:var p=Zp;case Og:var m=n&bg;if(p||(p=kt),e.size!=t.size&&!m)return!1;var l=i.get(e);if(l)return l==t;n|=wg,i.set(e,t);var c=Gr(p(e),p(t),n,o,a,i);return i.delete(e),c;case Gg:if(Ko)return Ko.call(e)==Ko.call(t)}return!1}var zp=Ng;function Ug(e,t,r){var n=t(e);return Y(e)?n:Lr(n,r(e))}var Jp=Ug;function Fg(e,t){for(var r=-1,n=e==null?0:e.length,o=0,a=[];++r<n;){var i=e[r];t(i,r,e)&&(a[o++]=i)}return a}var Xp=Fg;function Bg(){return[]}var eu=Bg;var Qg=Object.prototype,Kg=Qg.propertyIsEnumerable,tu=Object.getOwnPropertySymbols,Vg=tu?function(e){return e==null?[]:(e=Object(e),Xp(tu(e),function(t){return Kg.call(e,t)}))}:eu,ru=Vg;function jg(e){return Jp(e,Lt,ru)}var Vo=jg;var Wg=1,Hg=Object.prototype,Zg=Hg.hasOwnProperty;function Yg(e,t,r,n,o,a){var i=r&Wg,p=Vo(e),m=p.length,l=Vo(t),c=l.length;if(m!=c&&!i)return!1;for(var f=m;f--;){var d=p[f];if(!(i?d in t:Zg.call(t,d)))return!1}var C=a.get(e),h=a.get(t);if(C&&h)return C==t&&h==e;var v=!0;a.set(e,t),a.set(t,e);for(var K=i;++f<m;){d=p[f];var R=e[d],M=t[d];if(n)var I=i?n(M,R,d,t,e,a):n(R,M,d,e,t,a);if(!(I===void 0?R===M||o(R,M,r,n,a):I)){v=!1;break}K||(K=d=="constructor")}if(v&&!K){var V=e.constructor,j=t.constructor;V!=j&&"constructor"in e&&"constructor"in t&&!(typeof V=="function"&&V instanceof V&&typeof j=="function"&&j instanceof j)&&(v=!1)}return a.delete(e),a.delete(t),v}var ou=Yg;var zg=se(X,"DataView"),Mr=zg;var Jg=se(X,"Promise"),qr=Jg;var Xg=se(X,"Set"),tt=Xg;var ey=se(X,"WeakMap"),Nr=ey;var nu="[object Map]",ty="[object Object]",iu="[object Promise]",au="[object Set]",su="[object WeakMap]",pu="[object DataView]",ry=ve(Mr),oy=ve(Ye),ny=ve(qr),iy=ve(tt),ay=ve(Nr),gt=Ie;(Mr&&gt(new Mr(new ArrayBuffer(1)))!=pu||Ye&&gt(new Ye)!=nu||qr&&gt(qr.resolve())!=iu||tt&&gt(new tt)!=au||Nr&&gt(new Nr)!=su)&&(gt=function(e){var t=Ie(e),r=t==ty?e.constructor:void 0,n=r?ve(r):"";if(n)switch(n){case ry:return pu;case oy:return nu;case ny:return iu;case iy:return au;case ay:return su}return t});var jo=gt;var sy=1,uu="[object Arguments]",lu="[object Array]",Ur="[object Object]",py=Object.prototype,mu=py.hasOwnProperty;function uy(e,t,r,n,o,a){var i=Y(e),p=Y(t),m=i?lu:jo(e),l=p?lu:jo(t);m=m==uu?Ur:m,l=l==uu?Ur:l;var c=m==Ur,f=l==Ur,d=m==l;if(d&&fr(e)){if(!fr(t))return!1;i=!0,c=!1}if(d&&!c)return a||(a=new Ot),i||vr(e)?Gr(e,t,r,n,o,a):zp(e,t,m,r,n,o,a);if(!(r&sy)){var C=c&&mu.call(e,"__wrapped__"),h=f&&mu.call(t,"__wrapped__");if(C||h){var v=C?e.value():e,K=h?t.value():t;return a||(a=new Ot),o(v,K,r,n,a)}}return d?(a||(a=new Ot),ou(e,t,r,n,o,a)):!1}var fu=uy;function cu(e,t,r,n,o){return e===t?!0:e==null||t==null||!le(e)&&!le(t)?e!==e&&t!==t:fu(e,t,r,n,cu,o)}var Fr=cu;var ly=1,my=2;function fy(e,t,r,n){var o=r.length,a=o,i=!n;if(e==null)return!a;for(e=Object(e);o--;){var p=r[o];if(i&&p[2]?p[1]!==e[p[0]]:!(p[0]in e))return!1}for(;++o<a;){p=r[o];var m=p[0],l=e[m],c=p[1];if(i&&p[2]){if(l===void 0&&!(m in e))return!1}else{var f=new Ot;if(n)var d=n(l,c,m,e,t,f);if(!(d===void 0?Fr(c,l,ly|my,n,f):d))return!1}}return!0}var du=fy;function cy(e){return e===e&&!xe(e)}var Br=cy;function dy(e){for(var t=Lt(e),r=t.length;r--;){var n=t[r],o=e[n];t[r]=[n,o,Br(o)]}return t}var gu=dy;function gy(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var Qr=gy;function yy(e){var t=gu(e);return t.length==1&&t[0][2]?Qr(t[0][0],t[0][1]):function(r){return r===e||du(r,e,t)}}var yu=yy;var hy="[object Symbol]";function Cy(e){return typeof e=="symbol"||le(e)&&Ie(e)==hy}var Te=Cy;var Ay=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Iy=/^\w*$/;function xy(e,t){if(Y(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Te(e)?!0:Iy.test(e)||!Ay.test(e)||t!=null&&e in Object(t)}var Gt=xy;var Ty="Expected a function";function Wo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Ty);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],a=r.cache;if(a.has(o))return a.get(o);var i=e.apply(this,n);return r.cache=a.set(o,i)||a,i};return r.cache=new(Wo.Cache||dt),r}Wo.Cache=dt;var hu=Wo;var Sy=500;function Py(e){var t=hu(e,function(n){return r.size===Sy&&r.clear(),n}),r=t.cache;return t}var Cu=Py;var Ey=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,by=/\\(\\)?/g,wy=Cu(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(Ey,function(r,n,o,a){t.push(o?a.replace(by,"$1"):n||r)}),t}),Au=wy;var Ry=1/0,Iu=ie?ie.prototype:void 0,xu=Iu?Iu.toString:void 0;function Tu(e){if(typeof e=="string")return e;if(Y(e))return Je(e,Tu)+"";if(Te(e))return xu?xu.call(e):"";var t=e+"";return t=="0"&&1/e==-Ry?"-0":t}var Su=Tu;function $y(e){return e==null?"":Su(e)}var rt=$y;function Dy(e,t){return Y(e)?e:Gt(e,t)?[e]:Au(rt(e))}var Kr=Dy;var _y=1/0;function Ly(e){if(typeof e=="string"||Te(e))return e;var t=e+"";return t=="0"&&1/e==-_y?"-0":t}var ot=Ly;function vy(e,t){t=Kr(t,e);for(var r=0,n=t.length;e!=null&&r<n;)e=e[ot(t[r++])];return r&&r==n?e:void 0}var Mt=vy;function Oy(e,t,r){var n=e==null?void 0:Mt(e,t);return n===void 0?r:n}var Pu=Oy;function ky(e,t){return e!=null&&t in Object(e)}var Eu=ky;function Gy(e,t,r){t=Kr(t,e);for(var n=-1,o=t.length,a=!1;++n<o;){var i=ot(t[n]);if(!(a=e!=null&&r(e,i)))break;e=e[i]}return a||++n!=o?a:(o=e==null?0:e.length,!!o&&$t(o)&&_t(i,o)&&(Y(e)||bt(e)))}var bu=Gy;function My(e,t){return e!=null&&bu(e,t,Eu)}var wu=My;var qy=1,Ny=2;function Uy(e,t){return Gt(e)&&Br(t)?Qr(ot(e),t):function(r){var n=Pu(r,e);return n===void 0&&n===t?wu(r,e):Fr(t,n,qy|Ny)}}var Ru=Uy;function Fy(e){return function(t){return _optionalChain([t, 'optionalAccess', _3 => _3[e]])}}var $u=Fy;function By(e){return function(t){return Mt(t,e)}}var Du=By;function Qy(e){return Gt(e)?$u(ot(e)):Du(e)}var _u=Qy;function Ky(e){return typeof e=="function"?e:e==null?et:typeof e=="object"?Y(e)?Ru(e[0],e[1]):yu(e):_u(e)}var nt=Ky;function Vy(e,t){return function(r,n){var o=Y(r)?Ep:Bp,a=t?t():{};return o(r,e,nt(n,2),a)}}var Vr=Vy;var jy=Object.prototype,Wy=jy.hasOwnProperty,Hy=Vr(function(e,t,r){Wy.call(e,r)?e[r].push(t):Dt(e,r,[t])}),Ho= exports.ac =Hy;var Zy=Vr(function(e,t,r){Dt(e,r,t)}),x= exports.bc =Zy;function Yy(){}var Lu=Yy;var zy=1/0,Jy=tt&&1/kt(new tt([,-0]))[1]==zy?function(e){return new tt(e)}:Lu,vu=Jy;var Xy=200;function eh(e,t,r){var n=-1,o=Dr,a=e.length,i=!0,p=[],m=p;if(r)i=!1,o=_r;else if(a>=Xy){var l=t?null:vu(e);if(l)return kt(l);i=!1,o=Et,m=new St}else m=t?[]:p;e:for(;++n<a;){var c=e[n],f=t?t(c):c;if(c=r||c!==0?c:0,i&&f===f){for(var d=m.length;d--;)if(m[d]===f)continue e;t&&m.push(f),p.push(c)}else o(m,f,r)||(m!==p&&m.push(f),p.push(c))}return p}var qt=eh;function th(e){return e&&e.length?qt(e):[]}var de=th;var rh=/\s/;function oh(e){for(var t=e.length;t--&&rh.test(e.charAt(t)););return t}var Ou=oh;var nh=/^\s+/;function ih(e){return e&&e.slice(0,Ou(e)+1).replace(nh,"")}var ku=ih;var Gu=NaN,ah=/^[-+]0x[0-9a-f]+$/i,sh=/^0b[01]+$/i,ph=/^0o[0-7]+$/i,uh=parseInt;function lh(e){if(typeof e=="number")return e;if(Te(e))return Gu;if(xe(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=xe(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=ku(e);var r=sh.test(e);return r||ph.test(e)?uh(e.slice(2),r?2:8):ah.test(e)?Gu:+e}var Mu=lh;var qu=1/0,mh=17976931348623157e292;function fh(e){if(!e)return e===0?e:0;if(e=Mu(e),e===qu||e===-qu){var t=e<0?-1:1;return t*mh}return e===e?e:0}var Nu=fh;function ch(e){var t=Nu(e),r=t%1;return t===t?r?t-r:t:0}var Uu=ch;function dh(e,t,r){if(!xe(r))return!1;var n=typeof t;return(n=="number"?we(r)&&_t(t,r.length):n=="string"&&t in r)?It(r[t],e):!1}var dr=dh;function gh(e){var t=e==null?0:e.length;return t?Xe(e,1):[]}var ke=gh;function yh(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(o);++n<o;)a[n]=e[n+t];return a}var jr=yh;function hh(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:jr(e,t,r)}var Fu=hh;var Ch="\\ud800-\\udfff",Ah="\\u0300-\\u036f",Ih="\\ufe20-\\ufe2f",xh="\\u20d0-\\u20ff",Th=Ah+Ih+xh,Sh="\\ufe0e\\ufe0f",Ph="\\u200d",Eh=RegExp("["+Ph+Ch+Th+Sh+"]");function bh(e){return Eh.test(e)}var Wr=bh;function wh(e){return e.split("")}var Bu=wh;var Qu="\\ud800-\\udfff",Rh="\\u0300-\\u036f",$h="\\ufe20-\\ufe2f",Dh="\\u20d0-\\u20ff",_h=Rh+$h+Dh,Lh="\\ufe0e\\ufe0f",vh="["+Qu+"]",Zo="["+_h+"]",Yo="\\ud83c[\\udffb-\\udfff]",Oh="(?:"+Zo+"|"+Yo+")",Ku="[^"+Qu+"]",Vu="(?:\\ud83c[\\udde6-\\uddff]){2}",ju="[\\ud800-\\udbff][\\udc00-\\udfff]",kh="\\u200d",Wu=Oh+"?",Hu="["+Lh+"]?",Gh="(?:"+kh+"(?:"+[Ku,Vu,ju].join("|")+")"+Hu+Wu+")*",Mh=Hu+Wu+Gh,qh="(?:"+[Ku+Zo+"?",Zo,Vu,ju,vh].join("|")+")",Nh=RegExp(Yo+"(?="+Yo+")|"+qh+Mh,"g");function Uh(e){return e.match(Nh)||[]}var Zu=Uh;function Fh(e){return Wr(e)?Zu(e):Bu(e)}var Yu=Fh;function Bh(e){return function(t){t=rt(t);var r=Wr(t)?Yu(t):void 0,n=r?r[0]:t.charAt(0),o=r?Fu(r,1).join(""):t.slice(1);return n[e]()+o}}var zu=Bh;var Qh=zu("toUpperCase"),Ju=Qh;function Kh(e,t,r,n){var o=-1,a=e==null?0:e.length;for(n&&a&&(r=e[++o]);++o<a;)r=t(r,e[o],o,e);return r}var Xu=Kh;function Vh(e){return function(t){return _optionalChain([e, 'optionalAccess', _4 => _4[t]])}}var el=Vh;var jh={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},Wh=el(jh),tl=Wh;var Hh=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Zh="\\u0300-\\u036f",Yh="\\ufe20-\\ufe2f",zh="\\u20d0-\\u20ff",Jh=Zh+Yh+zh,Xh="["+Jh+"]",eC=RegExp(Xh,"g");function tC(e){return e=rt(e),e&&e.replace(Hh,tl).replace(eC,"")}var rl=tC;var rC=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function oC(e){return e.match(rC)||[]}var ol=oC;var nC=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function iC(e){return nC.test(e)}var nl=iC;var ul="\\ud800-\\udfff",aC="\\u0300-\\u036f",sC="\\ufe20-\\ufe2f",pC="\\u20d0-\\u20ff",uC=aC+sC+pC,ll="\\u2700-\\u27bf",ml="a-z\\xdf-\\xf6\\xf8-\\xff",lC="\\xac\\xb1\\xd7\\xf7",mC="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",fC="\\u2000-\\u206f",cC=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",fl="A-Z\\xc0-\\xd6\\xd8-\\xde",dC="\\ufe0e\\ufe0f",cl=lC+mC+fC+cC,dl="['\u2019]",il="["+cl+"]",gC="["+uC+"]",gl="\\d+",yC="["+ll+"]",yl="["+ml+"]",hl="[^"+ul+cl+gl+ll+ml+fl+"]",hC="\\ud83c[\\udffb-\\udfff]",CC="(?:"+gC+"|"+hC+")",AC="[^"+ul+"]",Cl="(?:\\ud83c[\\udde6-\\uddff]){2}",Al="[\\ud800-\\udbff][\\udc00-\\udfff]",Nt="["+fl+"]",IC="\\u200d",al="(?:"+yl+"|"+hl+")",xC="(?:"+Nt+"|"+hl+")",sl="(?:"+dl+"(?:d|ll|m|re|s|t|ve))?",pl="(?:"+dl+"(?:D|LL|M|RE|S|T|VE))?",Il=CC+"?",xl="["+dC+"]?",TC="(?:"+IC+"(?:"+[AC,Cl,Al].join("|")+")"+xl+Il+")*",SC="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",PC="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",EC=xl+Il+TC,bC="(?:"+[yC,Cl,Al].join("|")+")"+EC,wC=RegExp([Nt+"?"+yl+"+"+sl+"(?="+[il,Nt,"$"].join("|")+")",xC+"+"+pl+"(?="+[il,Nt+al,"$"].join("|")+")",Nt+"?"+al+"+"+sl,Nt+"+"+pl,PC,SC,gl,bC].join("|"),"g");function RC(e){return e.match(wC)||[]}var Tl=RC;function $C(e,t,r){return e=rt(e),t=r?void 0:t,t===void 0?nl(e)?Tl(e):ol(e):e.match(t)||[]}var Sl=$C;var DC="['\u2019]",_C=RegExp(DC,"g");function LC(e){return function(t){return Xu(Sl(rl(t).replace(_C,"")),e,"")}}var Pl=LC;var vC=Math.ceil,OC=Math.max;function kC(e,t,r){(r?dr(e,t,r):t===void 0)?t=1:t=OC(Uu(t),0);var n=e==null?0:e.length;if(!n||t<1)return[];for(var o=0,a=0,i=Array(vC(n/t));o<n;)i[a++]=jr(e,o,o+=t);return i}var Q=kC;function GC(e,t){var r=-1,n=we(e)?Array(e.length):[];return kr(e,function(o,a,i){n[++r]=t(o,a,i)}),n}var El=GC;function MC(e,t){var r={};return t=nt(t,3),Or(e,function(n,o,a){Dt(r,o,t(n,o,a))}),r}var zo=MC;function qC(e,t){var r=e.length;for(e.sort(t);r--;)e[r]=e[r].value;return e}var bl=qC;function NC(e,t){if(e!==t){var r=e!==void 0,n=e===null,o=e===e,a=Te(e),i=t!==void 0,p=t===null,m=t===t,l=Te(t);if(!p&&!l&&!a&&e>t||a&&i&&m&&!p&&!l||n&&i&&m||!r&&m||!o)return 1;if(!n&&!a&&!l&&e<t||l&&r&&o&&!n&&!a||p&&r&&o||!i&&o||!m)return-1}return 0}var wl=NC;function UC(e,t,r){for(var n=-1,o=e.criteria,a=t.criteria,i=o.length,p=r.length;++n<i;){var m=wl(o[n],a[n]);if(m){if(n>=p)return m;var l=r[n];return m*(l=="desc"?-1:1)}}return e.index-t.index}var Rl=UC;function FC(e,t,r){t.length?t=Je(t,function(a){return Y(a)?function(i){return Mt(i,a.length===1?a[0]:a)}:a}):t=[et];var n=-1;t=Je(t,Pt(nt));var o=El(e,function(a,i,p){var m=Je(t,function(l){return l(a)});return{criteria:m,index:++n,value:a}});return bl(o,function(a,i){return Rl(a,i,r)})}var $l=FC;var BC=Rt(function(e,t){if(e==null)return[];var r=t.length;return r>1&&dr(e,t[0],t[1])?t=[]:r>2&&dr(t[0],t[1],t[2])&&(t=[t[0]]),$l(e,Xe(t,1),[])}),Jo= exports.cc =BC;var QC=Pl(function(e,t,r){return e+(r?" ":"")+Ju(t)}),KC= exports.dc =QC;var VC=Rt(function(e){return qt(Xe(e,1,mr,!0))}),jC= exports.ec =VC;function WC(e,t){return e&&e.length?qt(e,nt(t,2)):[]}var Hr=WC;var _colors = require('colors'); var _colors2 = _interopRequireDefault(_colors);var HC=4;function ZC(e){return new Promise(t=>{setTimeout(()=>t(e),e)})}var YC=["syntax error","got invalid value","Client error","cannot affect row a second time","GRAPHQL_VALIDATION_FAILED"];async function u(e,t,r,n,o=HC){let a=0;for(;;)try{return await e.request(t,r,n)}catch(i){if(i.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)),YC.some(p=>i.message.includes(p)))throw i;if(i.message.startsWith("Client error: Too many requests")){let p=_optionalChain([i, 'access', _5 => _5.response, 'access', _6 => _6.headers, 'optionalAccess', _7 => _7.get, 'call', _8 => _8("x-ratelimit-reset")]),m=p?new Date(p).getTime()-new Date().getTime()+100:1e3*10;_chunkZUNVPK23cjs.a.log(_colors2.default.yellow(`DETECTED RATE LIMIT: ${i.message}. Sleeping for ${m}ms`)),await ZC(m)}if(a>=o)throw i;a+=1,_chunkZUNVPK23cjs.a.log(_colors2.default.yellow(`REQUEST FAILED: ${i.message}. Retrying ${a}/${o}...`))}}var tn=20;async function rn(e){let t=[],r=0,n=!1;do{let{identifiers:{nodes:o}}=await u(e,ui,{first:tn,offset:r});t.push(...o),r+=tn,n=o.length===tn}while(n);return t.sort((o,a)=>o.name.localeCompare(a.name))}async function Dl({enrichers:e=[],"data-silos":t=[],identifiers:r=[]},n,o=!1){let a=await rn(n),i=x(a,"name"),p=de([...ke(e.map(l=>[l["input-identifier"],...l["output-identifiers"]])),...ke(t.map(l=>l["identity-keys"])),...r.map(({name:l})=>l)]).filter(l=>!!l),m=me(p,a.map(({name:l})=>l));if(m.length>0){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating ${m.length} new identifiers...`));let{newIdentifierTypes:l}=await u(n,li),c=l.map(({name:f})=>f);await T(m,async f=>{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating identifier ${f}...`));let{createIdentifier:d}=await u(n,mi,{input:{name:f,type:c.includes(f)?f:"custom",skipPublish:o}});_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Created identifier ${f}!`)),i[f]=d.identifier})}return i}async function _l(e,{identifier:t,dataSubjectsByName:r,identifierId:n,skipPublish:o=!1}){await u(e,fi,{input:{id:n,selectOptions:t.selectOptions,isRequiredInForm:t.isRequiredInForm,regex:t.regex,placeholder:t.placeholder,displayTitle:t.displayTitle,displayDescription:t.displayDescription,displayOrder:t.displayOrder,privacyCenterVisibility:t.privacyCenterVisibility,dataSubjectIds:t.dataSubjects?t.dataSubjects.map(a=>r[a].id):void 0,skipPublish:o}})}var _privacytypes = require('@transcend-io/privacy-types');var on=20;async function nn(e,t){let r=[],n=0,o=!1;do{let{enrichers:{nodes:a}}=await u(e,ii,{first:on,offset:n,title:t});r.push(...a),n+=on,o=a.length===on}while(o);return r.sort((a,i)=>a.title.localeCompare(i.title))}async function vl(e,{enricher:t,identifierByName:r,dataSubjectsByName:n}){let a=(await nn(e,t.title)).find(({title:l})=>l===t.title),i=_optionalChain([t, 'access', _9 => _9["data-subjects"], 'optionalAccess', _10 => _10.map, 'call', _11 => _11(l=>{let c=n[l];if(!c)throw new Error(`Failed to find a data subject with name: ${l}`);return c.id})]),p=t["input-identifier"],m=t["privacy-actions"]||Object.values(_privacytypes.RequestAction);a?await u(e,si,{input:{id:a.id,title:t.title,url:t.url,headers:t.headers,testRegex:t.testRegex,lookerQueryTitle:t.lookerQueryTitle,expirationDuration:typeof t.expirationDuration=="number"?t.expirationDuration.toString():void 0,transitionRequestStatus:t.transitionRequestStatus,phoneNumbers:t.phoneNumbers,regionList:t.regionList,dataSubjectIds:i,description:t.description||"",inputIdentifier:p?r[p].id:void 0,identifiers:t["output-identifiers"].map(l=>r[l].id),...a.type===_privacytypes.EnricherType.Sombra?{}:{actions:m}}}):p&&await u(e,ai,{input:{title:t.title,url:t.url,type:t.type||_privacytypes.EnricherType.Server,headers:t.headers,testRegex:t.testRegex,lookerQueryTitle:t.lookerQueryTitle,expirationDuration:typeof t.expirationDuration=="number"?t.expirationDuration.toString():void 0,transitionRequestStatus:t.transitionRequestStatus,phoneNumbers:t.phoneNumbers,dataSubjectIds:i,regionList:t.regionList,description:t.description||"",inputIdentifier:r[p].id,identifiers:t["output-identifiers"].map(l=>r[l].id),actions:m}})}async function Ol(e,t,{existingAttribute:r,deleteExtraAttributeValues:n}){let o={name:t.name,enabledOn:t.resources},a;if(r)await u(e,$a,{attributeKeyId:r.id,description:r.isCustom?t.description:void 0,...o}),a=r.id;else{let{createAttributeKey:{attributeKey:c}}=await u(e,Ra,{type:t.type,description:t.description,...o});a=c.id}let i=x(_optionalChain([r, 'optionalAccess', _12 => _12.values])||[],"name"),{existingValues:p=[],newValues:m=[]}=Ho(t.values||[],c=>i[c.name]?"existingValues":"newValues"),l=me((_optionalChain([r, 'optionalAccess', _13 => _13.values])||[]).map(({name:c})=>c),(t.values||[]).map(({name:c})=>c));m.length>0&&(await u(e,Pa,{input:m.map(({name:c,...f})=>({name:c,attributeKeyId:a,...f}))}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Created ${m.length} attribute values`))),p.length>0&&(await u(e,Ea,{input:p.map(({name:c,...f})=>({id:i[c].id,name:c,description:i[c].description,color:i[c].color,...f,attributeKeyId:a}))}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Updated ${p.length} attribute values`))),l.length>0&&n&&(await B(l,async c=>{await u(e,ba,{id:i[c].id})},{concurrency:10}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Deleted ${l.length} attribute values`)))}async function gr(e){let{internalSubjects:t}=await u(e,ci);return t}async function kl({"data-silos":e=[],"data-subjects":t=[],enrichers:r=[]},n,o=!1){let a=de([...ke(e.map(l=>l["data-subjects"]||[])||[]),...ke(r.map(l=>l["data-subjects"]||[])||[]),...t.map(l=>l.type)]);if(a.length===0&&!o)return{};let i=await gr(n),p=x(i,"type"),m=me(a,i.map(({type:l})=>l));return m.length>0&&(_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating ${m.length} new data subjects...`)),await T(m,async l=>{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating data subject ${l}...`));let{createSubject:c}=await u(n,di,{type:l,skipPublish:!0});_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Created data subject ${l}!`)),p[l]=c.subject})),p}function Gl(e,t){return e.forEach(r=>{if(!t[r])throw new Error(`Expected to find data subject definition: ${r}`)}),Object.values(t).filter(r=>!e.includes(r.type)).map(({id:r})=>r)}function Ml(e,t){return e.forEach(r=>{if(!t[r])throw new Error(`Expected to find data subject definition: ${r}`)}),Object.values(t).filter(r=>!e.includes(r.type)).map(({type:r})=>r)}var _cliprogress = require('cli-progress'); var _cliprogress2 = _interopRequireDefault(_cliprogress);var _typeutils = require('@transcend-io/type-utils');var pn=20;async function Nl(e,{titles:t,pageSize:r,ids:n=[],gql:o=ri,integrationNames:a=[]}){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetching ${n.length===0?"all":n.length} Data Silos...`));let i=[],p=0,m=!1;do{let{dataSilos:{nodes:l}}=await u(e,o,{filterBy:{ids:n.length>0?n:void 0,type:a.length>0?a:void 0,titles:t},first:r,offset:p});i.push(...l),p+=r,m=l.length===r}while(m);return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Found a total of ${i.length} data silo${n.length>0?` matching IDs ${n.join(",")}`:""}s${a.length>0?` matching integrationNames ${a.join(",")}`:""}`)),i.sort((l,c)=>l.title.localeCompare(c.title))}async function XC(e,t,{debug:r,includeGuessedCategories:n,pageSize:o}){let a=[],i=0,p=!1;do try{r&&_chunkZUNVPK23cjs.a.log(_colors2.default.magenta(`Pulling in subdatapoints for offset ${i}`));let{subDataPoints:{nodes:m}}=await u(e,n?ei:Xn,{first:o,filterBy:{dataPoints:[t]},offset:i});a.push(...m),i+=o,p=m.length===o,r&&_chunkZUNVPK23cjs.a.log(_colors2.default.green(`Pulled in subdatapoints for offset ${i} for dataPointId=${t}`))}catch(m){throw _chunkZUNVPK23cjs.a.error(_colors2.default.red(`An error fetching subdatapoints for offset ${i} for dataPointId=${t}`)),m}while(p);return Jo(a,"name")}async function eA(e,t,{debug:r,pageSize:n,skipSubDatapoints:o,includeGuessedCategories:a}){let i=[],p=0,m=!1;do{r&&_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetching datapoints with offset: ${p}`));let{dataPoints:{nodes:l}}=await u(e,Jn,{first:n,filterBy:{dataSilos:[t]},offset:p});r&&_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetched ${l.length} datapoints at offset: ${p}`)),o||(await B(l,async c=>{try{r&&_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetching subdatapoints for ${c.name} for datapoint offset ${p}`));let f=await XC(e,c.id,{pageSize:1e3,debug:r,includeGuessedCategories:a});i.push({...c,subDataPoints:f.sort((d,C)=>d.name.localeCompare(C.name))}),r&&_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully fetched subdatapoints for ${c.name}`))}catch(f){throw _chunkZUNVPK23cjs.a.error(_colors2.default.red(`An error fetching subdatapoints for ${c.name} datapoint offset ${p}`)),f}},{concurrency:5}),r&&_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Fetched all subdatapoints for page of datapoints at offset: ${p}`))),p+=n,m=l.length===n}while(m);return i.sort((l,c)=>l.name.localeCompare(c.name))}async function Ul(e,{ids:t,pageSize:r,titles:n,debug:o,skipDatapoints:a,skipSubDatapoints:i,includeGuessedCategories:p,integrationNames:m}){let l=[],c=await Nl(e,{titles:n,ids:t,integrationNames:m,pageSize:r,gql:oi});return a||await T(c,async(f,d)=>{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`[${d+1}/${c.length}] Fetching data silo - ${f.title}`));let C=await eA(e,f.id,{debug:o,pageSize:r,skipSubDatapoints:i,includeGuessedCategories:p});o&&_chunkZUNVPK23cjs.a.info(_colors2.default.green(`[${d+1}/${c.length}] Successfully fetched datapoint for - ${f.title}`)),l.push([f,C])}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully fetched all ${c.length} data silo configurations`)),l}async function Fl(e,t,{pageSize:r,dataSubjectsByName:n,apiKeysByTitle:o}){let a=!1,i=new Date().getTime();_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${e.length}" data silos...`));let p=await Nl(t,{titles:e.map(({title:R})=>R),pageSize:r}),m=x(p,"title"),l=e.filter(({title:R})=>!m[R]);if(l.length>0){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${l.length}" data silos that did not exist...`));let R=Q(l,pn);await T(R,async M=>{let{createDataSilos:{dataSilos:I}}=await u(t,ni,{input:M.map(V=>({name:V["outer-type"]||V.integrationName,title:V.title,country:V.country,countrySubDivision:V.countrySubDivision}))});I.forEach(V=>{m[V.title]=V})}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created "${l.length}" data silos!`))}let c=Q(e,pn);await T(c,async(R,M)=>{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`[Batch ${M+1}/${c.length}] Syncing "${R.length}" data silos`)),await u(t,Io,{input:{dataSilos:R.map(I=>({id:m[I.title].id,country:I.country,countrySubDivision:I.countrySubDivision,url:I.url,headers:I.headers,description:I.description,identifiers:I["identity-keys"],isLive:!I.disabled,ownerEmails:I.owners,teamNames:I.teams,dependedOnDataSiloTitles:I["deletion-dependencies"]?void 0:[],apiKeyId:I["api-key-title"]?o[I["api-key-title"]].id:void 0,dataSubjectBlockListIds:I["data-subjects"]?Gl(I["data-subjects"],n):void 0,attributes:I.attributes,businessEntityTitles:I.businessEntityTitles,notifyEmailAddress:_optionalChain([I, 'access', _14 => _14["email-settings"], 'optionalAccess', _15 => _15["notify-email-address"]]),promptAVendorEmailSendFrequency:_optionalChain([I, 'access', _16 => _16["email-settings"], 'optionalAccess', _17 => _17["send-frequency"]]),promptAVendorEmailSendType:_optionalChain([I, 'access', _18 => _18["email-settings"], 'optionalAccess', _19 => _19["send-type"]]),promptAVendorEmailIncludeIdentifiersAttachment:_optionalChain([I, 'access', _20 => _20["email-settings"], 'optionalAccess', _21 => _21["include-identifiers-attachment"]]),promptAVendorEmailCompletionLinkType:_optionalChain([I, 'access', _22 => _22["email-settings"], 'optionalAccess', _23 => _23["completion-link-type"]]),manualWorkRetryFrequency:_optionalChain([I, 'access', _24 => _24["email-settings"], 'optionalAccess', _25 => _25["manual-work-retry-frequency"]])}))}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`[Batch ${M+1}/${c.length}] Synced "${R.length}" data silos!`))});let f=new _cliprogress2.default.SingleBar({},_cliprogress2.default.Presets.shades_classic),d=e.filter(({datapoints:R=[]})=>R.length>0),C=e.map(({datapoints:R=[]})=>R.length).reduce((R,M)=>R+M,0);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${C}" datapoints from "${d.length}" data silos...`)),f.start(C,0);let h=0;await B(d,async({datapoints:R,title:M})=>{R&&await T(R,async I=>{let V=I.fields?I.fields.map(({key:ne,description:ge,categories:Be,purposes:Qe,attributes:at,...Ke})=>({name:ne,description:ge,categories:Be?Be.map(ye=>({...ye,name:ye.name||"Other"})):void 0,purposes:Qe?Qe.map(ye=>({...ye,name:ye.name||"Other"})):void 0,attributes:at,accessRequestVisibilityEnabled:Ke["access-request-visibility-enabled"],erasureRequestRedactionEnabled:Ke["erasure-request-redaction-enabled"]})):void 0,j={dataSiloId:m[M].id,path:I.path,name:I.key,title:I.title,description:I.description,...I.owners?{ownerEmails:I.owners}:{},...I.teams?{teamNames:I.teams}:{},...I["data-collection-tag"]?{dataCollectionTag:I["data-collection-tag"]}:{},querySuggestions:I["privacy-action-queries"]?Object.entries(I["privacy-action-queries"]).map(([ne,ge])=>({requestType:ne,suggestedQuery:ge})):void 0,enabledActions:I["privacy-actions"]||[],subDataPoints:V},it=(j.subDataPoints||[]).map(({name:ne})=>ne),Fe=it.filter((ne,ge)=>it.indexOf(ne)!==ge);if(Fe.length>0)_chunkZUNVPK23cjs.a.info(_colors2.default.red(`
2825
- Cannot update datapoint "${I.key}" as it has duplicate sub-datapoints with the same name:
2826
- ${Fe.join(`
2827
- `)}`)),a=!0;else try{await u(t,ti,j)}catch(ne){_chunkZUNVPK23cjs.a.info(_colors2.default.red(`
2828
- Failed to update datapoint "${I.key}" for data silo "${M}"! -
2829
- ${ne.message}`)),a=!0}h+=1,f.update(h)})},{concurrency:10}),f.stop();let K=new Date().getTime()-i;return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${e.length}" data silos and "${C}" datapoints in "${K/1e3}" seconds!`)),{success:!a,dataSiloTitleToId:_typeutils.apply.call(void 0, m,({id:R})=>R)}}async function Bl(e,t){let r=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${t.length}" data silo dependencies...`));let n=Q(t,pn);return await T(n,async(o,a)=>{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`[Batch ${a}/${o.length}] Updating "${o.length}" data silos...`));try{await u(e,Io,{input:{dataSilos:o.map(([i,p])=>({id:i,dependedOnDataSiloTitles:p}))}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`[Batch ${a+1}/${o.length}] Synced "${o.length}" data silos!`))}catch(i){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`[Batch ${a+1}/${o.length}] Failed to update "${o.length}" silos! - ${i.message}`))}}),!r}async function Ql(e){let{consentManager:{consentManager:t}}=await u(e,Na);return t}async function fe(e,t){let{consentManager:{consentManager:r}}=await u(e,qa,{},{},t);return r.id}var un=50;async function Zr(e){let t=[],r=0,n=!1;do{let{experiences:{nodes:o}}=await u(e,_a,{first:un,offset:r});t.push(...o),r+=un,n=o.length===un}while(n);return t.sort((o,a)=>o.name.localeCompare(a.name))}var tA=(r=>(r.Hourly="1h",r.Daily="1d",r))(tA||{});async function Kv(e,t){let{analyticsData:{series:r}}=await u(e,rs,{input:t});return r}async function Kl(e,t){let{consentManagerTheme:{theme:r}}=await u(e,Ua,{airgapBundleId:t});return r}var rA=100;async function oA(e,t){let r=await fe(e);await T(Q(t,rA),async n=>{await u(e,ka,{airgapBundleId:r,cookies:n.map(o=>({name:o.name,trackingPurposes:o.trackingPurposes&&o.trackingPurposes.length>0?o.trackingPurposes:void 0,description:o.description,service:o.service,status:o.status,attributes:o.attributes,isRegex:o.isRegex}))})})}async function Vl(e,t){let r=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${t.length}" cookies...`));let n=t.filter(o=>t.filter(a=>o.name===a.name&&o.isRegex===a.isRegex).length>1);if(n.length>0)throw new Error(`Failed to upload cookies as there were non-unique entries found: ${n.map(({name:o})=>o).join(",")}`);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Upserting "${t.length}" new cookies...`)),await oA(e,t),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced ${t.length} cookies!`))}catch(o){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create cookies! - ${o.message}`))}return!r}var ln=20;async function zr(e){let t=[],r=0,n=!1;do{let{teams:{nodes:o}}=await u(e,la,{first:ln,offset:r});t.push(...o),r+=ln,n=o.length===ln}while(n);return t.sort((o,a)=>o.name.localeCompare(a.name))}async function jl(e,{dataSubject:t,dataSubjectId:r,skipPublish:n=!1}){await u(e,gi,{input:{id:r,title:t.title,adminDashboardDefaultSilentMode:t.adminDashboardDefaultSilentMode,actions:t.actions,skipPublish:n&&typeof t.active>"u"}}),typeof t.active=="boolean"&&await u(e,yi,{input:{id:r,active:t.active,skipPublish:n}})}var mn=20,nA="https://app.transcend.io/infrastructure/api-keys";async function iA(e,t){let r=[],n=0,o=!1;do{let{apiKeys:{nodes:a}}=await u(e,Ii,{first:mn,offset:n,titles:t});r.push(...a),n+=mn,o=a.length===mn}while(o);return r.sort((a,i)=>a.title.localeCompare(i.title))}async function Jr({"api-keys":e=[],"data-silos":t=[]},r,n=!1){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetching ${n?"all":e.length} API keys...`));let o=e.map(({title:c})=>c),a=de(t.map(c=>c["api-key-title"]).filter(c=>!!c)),i=[...a,...o],p=await iA(r,n?void 0:[...a,...o]),m=x(p,"title"),l=me(i,p.map(({title:c})=>c));return l.length>0&&(_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to find API keys "${l.join('", "')}"! Make sure these API keys are created at: ${nA}`)),process.exit(1)),m}var fn=20;async function Ut(e,{text:t,titles:r=[],ids:n=[]}={}){let o=[],a=0,i=!1;do{let{prompts:{nodes:p}}=await u(e,Ji,{first:fn,offset:a,filterBy:{...t?{text:t}:{},...r.length>0?{title:r}:{},...n.length>0?{id:n}:{}}});o.push(...p),a+=fn,i=p.length===fn}while(i);return o.sort((p,m)=>p.title.localeCompare(m.title))}async function dO(e,{promptTitles:t=[],promptIds:r=[]}={}){let{promptsWithVariables:n}=await u(e,ta,{input:{...t.length>0?{promptTitles:t}:{},...r.length>0?{promptIds:r}:{}}});return n}async function aA(e,t){let{createPrompt:{prompt:r}}=await u(e,oa,{input:t});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created prompt "${t.title}"!`)),r.id}async function sA(e,t){await u(e,ra,{input:{prompts:t.map(([r,n])=>({...r,id:n}))}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated ${t.length} prompts!`))}async function Hl(e,t,r=20){let n=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${t.length}" prompts...`));let o=await Ut(e),a=x(o,"title"),i=t.map(l=>[l,_optionalChain([a, 'access', _26 => _26[l.title], 'optionalAccess', _27 => _27.id])]),p=i.filter(([,l])=>!l).map(([l])=>l);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${p.length}" new prompts...`)),await B(p,async l=>{await aA(e,l)},{concurrency:r}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced ${p.length} prompts!`))}catch(l){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create prompts! - ${l.message}`))}let m=i.filter(l=>!!l[1]);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${m.length}" prompts...`)),await sA(e,m),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated "${m.length}" prompts!`))}catch(l){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create prompts! - ${l.message}`))}return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${t.length}" prompts!`)),!n}async function yr(e){let{organization:t}=await u(e,cs);return t.deployedPrivacyCenterUrl}async function Ft(e,t){let r=t;r||(r=await yr(e));let{privacyCenter:n}=await u(e,fs,{url:r});return n.id}async function Xr(e){let t=await yr(e),{privacyCenterPolicies:r}=await u(e,Ni,{url:t});return r.sort((n,o)=>n.title.defaultMessage.localeCompare(o.title.defaultMessage))}var pA=100;async function uA(e,t){let r=await Ft(e);await T(Q(t,pA),async n=>{await u(e,Ui,{privacyCenterId:r,policies:n.map(([o,a])=>({id:a,title:o.title,disableEffectiveOn:o.disableEffectiveOn,disabledLocales:o.disabledLocales,...o.effectiveOn||o.content?{version:{...o.effectiveOn?{effectiveOn:o.effectiveOn}:{},...o.content?{content:{defaultMessage:o.content}}:{}}}:{}}))})})}async function Zl(e,t){let r=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${t.length}" policies...`));let n=t.filter(i=>t.filter(p=>i.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:i})=>i).join(",")}`);let o=await Xr(e),a=x(o,({title:i})=>i.defaultMessage);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Upserting "${t.length}" new policies...`)),await uA(e,t.map(i=>[i,_optionalChain([a, 'access', _28 => _28[i.title], 'optionalAccess', _29 => _29.id])])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced ${t.length} policies!`))}catch(i){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create policies! - ${i.message}`))}return!r}var lA=100;async function mA(e,t){await T(Q(t,lA),async r=>{await u(e,Ki,{messages:r.map(n=>({...n.id.includes(".")?{}:{id:n.id},defaultMessage:n.defaultMessage,targetReactIntlId:n.targetReactIntlId,translations:n.translations?Object.entries(n.translations).map(([o,a])=>({locale:o,value:a})):void 0}))})})}async function Yl(e,t){let r=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${t.length}" messages...`));let n=t.filter(o=>t.filter(a=>o.id===a.id).length>1);if(n.length>0)throw new Error(`Failed to upload messages as there were non-unique entries found: ${n.map(({id:o})=>o).join(",")}`);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Upserting "${t.length}" new messages...`)),await mA(e,t),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced ${t.length} messages!`))}catch(o){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create messages! - ${o.message}`))}return!r}async function zl(e,t){let r=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Syncing privacy center..."));let n=await Ft(e);try{await u(e,gs,{input:{privacyCenterId:n,transformAccessReportJsonToCsv:t.transformAccessReportJsonToCsv,useCustomEmailDomain:t.useCustomEmailDomain,useNoReplyEmailAddress:t.useNoReplyEmailAddress,replyToEmail:t.replyToEmail,supportEmail:t.supportEmail,preferBrowserDefaultLocale:t.preferBrowserDefaultLocale,defaultLocale:t.defaultLocale,locales:t.locales,showMarketingPreferences:t.showMarketingPreferences,showManageYourPrivacy:t.showManageYourPrivacy,showPolicies:t.showPolicies,showConsentManager:t.showConsentManager,showDataFlows:t.showDataFlows,showCookies:t.showCookies,showTrackingTechnologies:t.showTrackingTechnologies,showPrivacyRequestButton:t.showPrivacyRequestButton,isDisabled:t.isDisabled,...t.theme?{colorPalette:t.theme.colors,componentStyles:t.theme.componentStyles,textStyles:t.theme.textStyles}:{}}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green("Successfully synced privacy center!"))}catch(o){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create privacy center! - ${o.message}`))}return!r}var dn=50;async function hr(e){let t=[],r=0,n=!1;do{let{consentPartitions:{nodes:o}}=await u(e,La,{first:dn,offset:r});t.push(...o),r+=dn,n=o.length===dn}while(n);return t.sort((o,a)=>o.name.localeCompare(a.name))}async function Xl(e,t){let r=await fe(e),n=!1,o=await hr(e),a=me(t.map(({name:i})=>i),o.map(({name:i})=>i));return await T(a,async i=>{try{await u(e,ts,{input:{id:r,name:i}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created consent partition: ${i}!`))}catch(p){_chunkZUNVPK23cjs.a.error(_colors2.default.red(`Failed to create consent partition: ${i}! - ${p.message}`)),n=!0}}),!n}var gn=20;async function ro(e,{includeDeleted:t=!1}={}){let r=[],n=0,o=!1;do{let{purposes:{nodes:a}}=await u(e,Zi,{first:gn,offset:n,input:{includeDeleted:t}});r.push(...a),n+=gn,o=a.length===gn}while(o);return r.sort((a,i)=>a.trackingType.localeCompare(i.trackingType))}var _airgapjstypes = require('@transcend-io/airgap.js-types');var tm="https://app.transcend.io/consent-manager/regional-experiences/purposes";async function dA(e,t){let r=await Zr(e),n=x(r,"name"),o=await ro(e),a=x(o,"trackingType");await B(t,async(i,p)=>{let m=_optionalChain([i, 'access', _30 => _30.purposes, 'optionalAccess', _31 => _31.map, 'call', _32 => _32((f,d)=>{let C=a[f.trackingType];if(!C)throw new Error(`Invalid purpose trackingType provided at consentManager.experiences[${p}].purposes[${d}]: ${f.trackingType}. See list of valid purposes ${tm}`);return C.id})]),l=_optionalChain([i, 'access', _33 => _33.optedOutPurposes, 'optionalAccess', _34 => _34.map, 'call', _35 => _35((f,d)=>{let C=a[f.trackingType];if(!C)throw new Error(`Invalid purpose trackingType provided at consentManager.experiences[${p}].optedOutPurposes[${d}]: ${f.trackingType}. See list of valid purposes ${tm}`);return C.id})]),c=n[i.name];c?(await u(e,Xa,{input:{id:c.id,name:i.displayName,regions:i.regions,operator:i.operator,onConsentExpiry:i.onConsentExpiry,consentExpiry:i.consentExpiry,displayPriority:i.displayPriority!==c.displayPriority?i.displayPriority:void 0,viewState:i.viewState,purposes:m,optedOutPurposes:l,browserLanguages:i.browserLanguages,browserTimeZones:i.browserTimeZones}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced consent experience "${i.name}"!`))):(await u(e,es,{input:{name:i.name,displayName:i.displayName,regions:i.regions,operator:i.operator,onConsentExpiry:i.onConsentExpiry||_airgapjstypes.OnConsentExpiry.Prompt,consentExpiry:i.consentExpiry,displayPriority:i.displayPriority,viewState:i.viewState||_airgapjstypes.InitialViewState.Hidden,purposes:m||[],optedOutPurposes:l||[],browserLanguages:i.browserLanguages,browserTimeZones:i.browserTimeZones}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created consent experience "${i.name}"!`)))},{concurrency:10})}async function rm(e,t){let r;try{r=await fe(e,1)}catch(n){if(n.message.includes("AirgapBundle not found")){let o=await Ft(e),{createConsentManager:a}=await u(e,Fa,{domains:t.domains,privacyCenterId:o});r=a.consentManager.id}else throw n}if(t.domains&&await u(e,Va,{domains:t.domains,airgapBundleId:r}),t.partition){let o=(await hr(e)).find(a=>a.name===t.partition);if(!o)throw new Error(`Partition "${t.partition}" not found. Please create the partition first.`);await u(e,ja,{partitionId:o.id,airgapBundleId:r})}t.version&&await u(e,Ba,{airgapBundleId:r,version:t.version}),t.signedIabAgreement&&await u(e,Wa,{input:{id:r,...t.signedIabAgreement?{signedIabAgreement:t.signedIabAgreement}:{}}}),t.unknownRequestPolicy&&await u(e,Ha,{input:{id:r,unknownRequestPolicy:t.unknownRequestPolicy}}),t.unknownRequestPolicy&&await u(e,Za,{input:{id:r,unknownCookiePolicy:t.unknownCookiePolicy}}),t.telemetryPartitioning&&await u(e,Ya,{input:{id:r,strategy:t.telemetryPartitioning}}),t.consentPrecedence&&await u(e,za,{input:{id:r,consentPrecedence:t.consentPrecedence}}),t.experiences&&await dA(e,t.experiences),t.theme&&await u(e,Ja,{input:{airgapBundleId:r,...t.theme}})}var Bt=100;async function gA(e,t){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetching all attribute values for ${t}...`));let r=[],n=0,o=!1;do{let{attributeValues:{nodes:a}}=await u(e,wa,{first:Bt,offset:n,attributeKeyId:t});r.push(...a),n+=Bt,o=a.length===Bt}while(o);return r.sort((a,i)=>a.name.localeCompare(i.name))}var yA=[_privacytypes.AttributeKeyType.MultiSelect,_privacytypes.AttributeKeyType.SingleSelect];async function Qt(e){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Fetching all attributes..."));let t=[],r=0,n=!1;do{let{attributeKeys:{nodes:o}}=await u(e,Sa,{first:Bt,offset:r});t.push(...await Promise.all(o.map(async a=>({...a,values:yA.includes(a.type)?await gA(e,a.id):[]})))),r+=Bt,n=o.length===Bt}while(n);return t.sort((o,a)=>o.name.localeCompare(a.name))}var yn=20;async function oo(e){let t=[],r=0,n=!1;do{let{businessEntities:{nodes:o}}=await u(e,os,{first:yn,offset:r});t.push(...o),r+=yn,n=o.length===yn}while(n);return t.sort((o,a)=>o.title.localeCompare(a.title))}async function hA(e,t){let r={title:t.title,description:t.description,address:t.address,headquarterCountry:t.headquarterCountry,headquarterSubDivision:t.headquarterSubDivision,dataProtectionOfficerName:t.dataProtectionOfficerName,dataProtectionOfficerEmail:t.dataProtectionOfficerEmail,attributes:t.attributes,teamNames:t.teams,ownerEmails:t.owners},{createBusinessEntity:n}=await u(e,ns,{input:r});return n.businessEntity}async function CA(e,t){let r=Q(t,100);await T(r,async n=>{await u(e,is,{input:n.map(([o,a])=>({id:a,title:o.title,description:o.description,address:o.address,headquarterCountry:o.headquarterCountry,headquarterSubDivision:o.headquarterSubDivision,dataProtectionOfficerName:o.dataProtectionOfficerName,dataProtectionOfficerEmail:o.dataProtectionOfficerEmail,attributes:o.attributes,teamNames:o.teams,ownerEmails:o.owners}))})})}async function im(e,t){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${t.length}" business entities...`));let r=!1,n=await oo(e),o=x(n,"title"),a=t.filter(i=>!o[i.title]);await T(a,async i=>{try{let p=await hA(e,i);o[p.title]=p,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced business entity "${i.title}"!`))}catch(p){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync business entity "${i.title}"! - ${p.message}`))}});try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${t.length}" business entities!`)),await CA(e,t.map(i=>[i,o[i.title].id])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced "${t.length}" business entities!`))}catch(i){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync "${t.length}" business entities ! - ${i.message}`))}return!r}var hn=20;async function Vt(e,t=_privacytypes.ConsentTrackerStatus.Live){let r=[],n=0,o=await fe(e),a=!1;do{let{dataFlows:{nodes:i}}=await u(e,Ga,{first:hn,offset:n,airgapBundleId:o,status:t,...t===_privacytypes.ConsentTrackerStatus.NeedsReview?{showZeroActivity:!0}:{}});r.push(...i),n+=hn,a=i.length===hn}while(a);return r.sort((i,p)=>i.value.localeCompare(p.value))}var pm=100;async function AA(e,t,r=!1){let n=await fe(e);await T(Q(t,pm),async o=>{await u(e,Oa,{airgapBundleId:n,dataFlows:o.map(([a,i])=>({id:i,value:a.value,type:a.type,trackingType:a.trackingPurposes&&a.trackingPurposes.length>0?a.trackingPurposes:void 0,description:a.description,service:a.service,status:a.status,attributes:a.attributes})),classifyService:r})})}async function IA(e,t,r=!1){let n=await fe(e);await T(Q(t,pm),async o=>{await u(e,va,{airgapBundleId:n,dataFlows:o.map(a=>({value:a.value,type:a.type,trackingType:a.trackingPurposes&&a.trackingPurposes.length>0?a.trackingPurposes:void 0,description:a.description,service:a.service,status:a.status,attributes:a.attributes})),dropMatchingDataFlowsInTriage:!0,classifyService:r})})}async function um(e,t,r){let n=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${t.length}" data flows...`));let o=t.filter(f=>t.filter(d=>f.value===d.value&&f.type===d.type).length>1);if(o.length>0)throw new Error(`Failed to upload data flows as there were non-unique entries found: ${o.map(({value:f})=>f).join(",")}`);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Fetching data flows..."));let[a,i]=await Promise.all([Vt(e,_privacytypes.ConsentTrackerStatus.Live),Vt(e,_privacytypes.ConsentTrackerStatus.NeedsReview)]),p=[...a,...i],m=t.map(f=>[f,_optionalChain([p, 'access', _36 => _36.find, 'call', _37 => _37(d=>f.value===d.value&&f.type===d.type), 'optionalAccess', _38 => _38.id])]),l=m.filter(([,f])=>!f).map(([f])=>f);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${l.length}" new data flows...`)),await IA(e,l,r),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced ${l.length} data flows!`))}catch(f){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create data flows! - ${f.message}`))}let c=m.filter(f=>!!f[1]);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${c.length}" data flows...`)),await AA(e,c,r),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated "${c.length}" data flows!`))}catch(f){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create data flows! - ${f.message}`))}return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${t.length}" data flows!`)),!n}var SA=[...Object.values(_privacytypes.IsoCountryCode),...Object.values(_privacytypes.IsoCountrySubdivisionCode)];async function lm(e,{action:t,actionId:r,skipPublish:n=!1}){await u(e,ps,{input:{id:r,skipSecondaryIfNoFiles:t.skipSecondaryIfNoFiles,skipDownloadableStep:t.skipDownloadableStep,requiresReview:t.requiresReview,waitingPeriod:t.waitingPeriod,skipPublish:n,regionList:t.regionBlockList?me(SA,t.regionBlockList):t.regionList,regionDetectionMethod:t.regionDetectionMethod}})}var Cn=20;async function An(e,t){let r=[],n=0,o=!1;do{let{templates:{nodes:a}}=await u(e,wi,{first:Cn,offset:n,title:t});r.push(...a),n+=Cn,o=a.length===Cn}while(o);return r.sort((a,i)=>a.title.localeCompare(i.title))}async function mm(e,t){(await An(t,e.title)).find(({title:o})=>o===e.title)||await u(t,Ri,{title:e.title})}var In=20;async function no(e){let t=[],r=0,n=!1;do{let{actions:{nodes:o}}=await u(e,ss,{first:In,offset:r});t.push(...o),r+=In,n=o.length===In}while(n);return t.sort((o,a)=>o.type.localeCompare(a.type))}var xn=20;async function io(e){let t=[],r=0,n=!1;do{let{promptPartials:{nodes:o}}=await u(e,Xi,{first:xn,offset:r});t.push(...o),r+=xn,n=o.length===xn}while(n);return t.sort((o,a)=>o.title.localeCompare(a.title))}var Tn=20;async function ao(e){let t=[],r=0,n=!1;do{let{promptGroups:{nodes:o}}=await u(e,ea,{first:Tn,offset:r});t.push(...o),r+=Tn,n=o.length===Tn}while(n);return t.sort((o,a)=>o.title.localeCompare(a.title))}var Sn=20;async function so(e,t={}){let r=[],n=0,o=!1;do{let{agents:{nodes:a}}=await u(e,Cs,{first:Sn,offset:n,filterBy:t});r.push(...a),n+=Sn,o=a.length===Sn}while(o);return r.sort((a,i)=>a.name.localeCompare(i.name))}async function PA(e,t){let r={name:t.name,description:t.description,codeInterpreterEnabled:t.codeInterpreterEnabled,retrievalEnabled:t.retrievalEnabled,promptTitle:t.prompt,largeLanguageModelName:t["large-language-model"].name,largeLanguageModelClient:t["large-language-model"].client},{createAgent:n}=await u(e,As,{input:r});return n.agent}async function EA(e,t){await u(e,Is,{input:{agents:t.map(([r,n])=>({id:n,name:r.name,description:r.description,codeInterpreterEnabled:r.codeInterpreterEnabled,retrievalEnabled:r.retrievalEnabled}))}})}async function fm(e,t){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${t.length}" agents...`));let r=!1,n=await so(e),o=x(n,"name"),a=t.filter(i=>!o[i.name]);await T(a,async i=>{try{let p=await PA(e,i);o[p.name]=p,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced agent "${i.name}"!`))}catch(p){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync agent "${i.name}"! - ${p.message}`))}});try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${t.length}" agents!`)),await EA(e,t.map(i=>[i,o[i.name].id])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced "${t.length}" agents!`))}catch(i){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync "${t.length}" agents ! - ${i.message}`))}return!r}async function Wt(e,t={}){let{globalActionItemCollections:{nodes:r}}=await u(e,Ia,{filterBy:{...t}});return r}async function bA(e,t){let r={title:t.title,description:t.description||"",hidden:t.hidden||!1,productLine:t.productLine},{createActionItemCollection:n}=await u(e,xa,{input:r});return n.created}async function wA(e,t,r){await u(e,Ta,{input:{id:r,title:t.title,description:t.description,hidden:t.hidden,productLine:t.productLine}})}async function cm(e,t){let r=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${t.length}" action item collections...`));let n=await Wt(e),o=x(n,"title"),a=t.filter(p=>!o[p.title]);await T(a,async p=>{try{await bA(e,p),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created action item collection "${p.title}"!`))}catch(m){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create action item collection "${p.title}"! - ${m.message}`))}});let i=t.map(p=>[p,_optionalChain([o, 'access', _39 => _39[p.title], 'optionalAccess', _40 => _40.id])]).filter(p=>!!p[1]);return await T(i,async([p,m])=>{try{await wA(e,p,m),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced action item collection "${p.title}"!`))}catch(l){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync action item collection "${p.title}"! - ${l.message}`))}}),!r}var Pn=20;async function po(e,t={}){let r=[],n=0,o=!1;do{let{globalActionItems:{nodes:a}}=await u(e,us,{first:Pn,offset:n,filterBy:{...t,...t.startDueDate?{startDueDate:t.startDueDate.toISOString()}:{},...t.endDueDate?{endDueDate:t.endDueDate.toISOString()}:{}}});r.push(...a.map(i=>({...i,id:i.ids[0],title:i.titles[0],notes:i.notes[0],link:i.links[0]}))),n+=Pn,o=a.length===Pn}while(o);return r}async function RA(e,t,r,n={}){let o=Q(t,100);await T(o,async a=>{await u(e,ms,{input:a.map(i=>({title:i.title,type:i.type,priorityOverride:i.priority,dueDate:i.dueDate,customerExperienceActionItemId:i.customerExperienceActionItemId,resolved:i.resolved,notes:i.notes,link:i.link,assigneesUserEmails:i.users,assigneesTeamNames:i.teams,...i.attributes?{}:{},collectionIds:i.collections.map(p=>r[p].id)}))})})}async function $A(e,t,r,n={}){let o=a=>{let i=n[a];if(!i)throw new Error(`Attribute key "${a}" does not exist!`);return i.id};await u(e,ls,{input:{ids:[r],title:t.title,priorityOverride:t.priority,dueDate:t.dueDate,resolved:t.resolved,customerExperienceActionItemId:t.customerExperienceActionItemId,notes:t.notes,link:t.link,assigneesUserEmails:t.users,assigneesTeamNames:t.teams,...t.attributes?{attributes:t.attributes.map(({key:a,values:i})=>({attributeKeyId:o(a),attributeValueNames:i}))}:{}}})}function DA({title:e,collections:t}){return`${e}-${t.map(r=>r.title).sort().join("-")}`}function dm({title:e,collections:t}){return`${e}-${t.sort().join("-")}`}async function gm(e,t){let r=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${t.length}" actionItems...`));let n=t.some(h=>h.attributes&&h.attributes.length>0),[o,a,i]=await Promise.all([po(e),Wt(e),n?Qt(e):[]]),p=x(a,"title"),m=x(o,DA),l=x(i,"name"),c=x(o.filter(h=>!!h.customerExperienceActionItemIds),({customerExperienceActionItemIds:h})=>h[0]),f=de(t.map(h=>h.collections).flat()).filter(h=>!p[h]);if(f.length>0)return _chunkZUNVPK23cjs.a.info(_colors2.default.red(`Missing action item collections: "${f.join('", "')}" - please create them first!`)),!1;let d=t.filter(h=>!m[dm(h)]&&!c[h.customerExperienceActionItemId]);if(d.length>0)try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${d.length}" actionItems...`)),await RA(e,d,p,l),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created "${d.length}" actionItems!`))}catch(h){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create action items! - ${h.message}`))}let C=t.map(h=>[h,_optionalChain([m, 'access', _41 => _41[dm(h)], 'optionalAccess', _42 => _42.id])||_optionalChain([c, 'access', _43 => _43[h.customerExperienceActionItemId], 'optionalAccess', _44 => _44.id])]).filter(h=>!!h[1]);return await T(C,async([h,v])=>{try{await $A(e,h,v,l),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced action item "${h.title}"!`))}catch(K){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync action item "${h.title}"! - ${K.message}`))}}),!r}var En=20;async function uo(e){let t=[],r=0,n=!1;do{let{agentFunctions:{nodes:o}}=await u(e,Ps,{first:En,offset:r});t.push(...o.map(a=>({...a,parameters:JSON.parse(a.parameters)}))),r+=En,n=o.length===En}while(n);return t.sort((o,a)=>o.name.localeCompare(a.name))}async function _A(e,t){let r={name:t.name,description:t.description,parameters:t.parameters,agentIds:[]},{createAgentFunction:n}=await u(e,Es,{input:r});return n.agentFunction}async function LA(e,t){await u(e,bs,{input:{agentFunctions:t.map(([r,n])=>({id:n,name:r.name,description:r.description,parameters:r.parameters}))}})}async function ym(e,t){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${t.length}" agent functions...`));let r=!1,n=await uo(e),o=x(n,"name"),a=t.filter(i=>!o[i.name]);await T(a,async i=>{try{let p=await _A(e,i);o[p.name]=p,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced agent function "${i.name}"!`))}catch(p){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync agent function "${i.name}"! - ${p.message}`))}});try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${t.length}" agent functions!`)),await LA(e,t.map(i=>[i,o[i.name].id])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced "${t.length}" agent functions!`))}catch(i){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync "${t.length}" agent functions! - ${i.message}`))}return!r}var bn=20;async function lo(e,t={}){let r=[],n=0,o=!1;do{let{agentFiles:{nodes:a}}=await u(e,xs,{first:bn,offset:n,filterBy:t});r.push(...a),n+=bn,o=a.length===bn}while(o);return r.sort((a,i)=>a.name.localeCompare(i.name))}async function vA(e,t){let r={name:t.name,description:t.description,fileId:t.fileId,size:t.size,purpose:t.purpose,fileUploadedAt:new Date,agentIds:[]},{createAgentFile:n}=await u(e,Ts,{input:r});return n.agentFile}async function OA(e,t){await u(e,Ss,{input:{agentFiles:t.map(([r,n])=>({id:n,name:r.name,description:r.description,fileId:r.fileId,size:r.size,purpose:r.purpose}))}})}async function hm(e,t){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${t.length}" agent files...`));let r=!1,n=await lo(e),o=x(n,"name"),a=t.filter(i=>!o[i.name]);await T(a,async i=>{try{let p=await vA(e,i);o[p.name]=p,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced agent file "${i.name}"!`))}catch(p){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync agent file "${i.name}"! - ${p.message}`))}});try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${t.length}" agent files!`)),await OA(e,t.map(i=>[i,o[i.name].id])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced "${t.length}" agent files!`))}catch(i){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync "${t.length}" agent files! - ${i.message}`))}return!r}var wn=20;async function mo(e){let t=[],r=0,n=!1;do{let{vendors:{nodes:o}}=await u(e,ws,{first:wn,offset:r});t.push(...o),r+=wn,n=o.length===wn}while(n);return t.sort((o,a)=>o.title.localeCompare(a.title))}async function kA(e,t){let r={title:t.title,description:t.description,address:t.address,headquarterCountry:t.headquarterCountry,headquarterSubDivision:t.headquarterSubDivision,dataProcessingAgreementLink:t.dataProcessingAgreementLink,contactName:t.contactName,contactPhone:t.contactPhone,websiteUrl:t.websiteUrl},{createVendor:n}=await u(e,Rs,{input:r});return n.vendor}async function GA(e,t){await u(e,$s,{input:{vendors:t.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 Cm(e,t){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${t.length}" vendors...`));let r=!1,n=await mo(e),o=x(n,"title"),a=t.filter(i=>!o[i.title]);await T(a,async i=>{try{let p=await kA(e,i);o[p.title]=p,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced vendor "${i.title}"!`))}catch(p){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync vendor "${i.title}"! - ${p.message}`))}});try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${t.length}" vendors!`)),await GA(e,t.map(i=>[i,o[i.title].id])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced "${t.length}" vendors!`))}catch(i){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync "${t.length}" vendors ! - ${i.message}`))}return!r}var Rn=20;async function fo(e){let t=[],r=0,n=!1;do{let{dataSubCategories:{nodes:o}}=await u(e,Ds,{first:Rn,offset:r});t.push(...o),r+=Rn,n=o.length===Rn}while(n);return t.sort((o,a)=>o.name.localeCompare(a.name))}async function MA(e,t){let r={name:t.name,category:t.category,description:t.description},{createDataCategory:n}=await u(e,_s,{input:r});return n.dataCategory}async function qA(e,t){await u(e,Ls,{input:{dataSubCategories:t.map(([r,n])=>({id:n,description:r.description,attributes:r.attributes}))}})}async function Am(e,t){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${t.length}" data categories...`));let r=!1,n=await fo(e),o=x(n,({name:i,category:p})=>`${i}:${p}`),a=t.filter(i=>!o[`${i.name}:${i.category}`]);await T(a,async i=>{try{let p=await MA(e,i);o[`${p.name}:${p.category}`]=p,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced data category "${i.name}"!`))}catch(p){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync data category "${i.name}"! - ${p.message}`))}});try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${t.length}" data categories!`)),await qA(e,t.map(i=>[i,o[`${i.name}:${i.category}`].id])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced "${t.length}" data categories!`))}catch(i){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync "${t.length}" data categories ! - ${i.message}`))}return!r}var $n=20;async function co(e){let t=[],r=0,n=!1;do{let{processingPurposeSubCategories:{nodes:o}}=await u(e,vs,{first:$n,offset:r});t.push(...o),r+=$n,n=o.length===$n}while(n);return t.sort((o,a)=>o.name.localeCompare(a.name))}async function NA(e,t){let r={name:t.name,purpose:t.purpose,description:t.description},{createProcessingPurposeSubCategory:n}=await u(e,Os,{input:r});return n.processingPurposeSubCategory}async function UA(e,t){await u(e,ks,{input:{processingPurposeSubCategories:t.map(([r,n])=>({id:n,description:r.description,attributes:r.attributes}))}})}async function Im(e,t){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${t.length}" processing purposes...`));let r=!1,n=await co(e),o=x(n,({name:i,purpose:p})=>`${i}:${p}`),a=t.filter(i=>!o[`${i.name}:${i.purpose}`]);await T(a,async i=>{try{let p=await NA(e,i);o[`${p.name}:${p.purpose}`]=p,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced processing purpose "${i.name}"!`))}catch(p){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync processing purpose "${i.name}"! - ${p.message}`))}});try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${t.length}" processing purposes!`)),await UA(e,t.map(i=>[i,o[`${i.name}:${i.purpose}`].id])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced "${t.length}" processing purposes!`))}catch(i){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync "${t.length}" processing purposes ! - ${i.message}`))}return!r}async function FA(e,t){let r={name:t.name,description:t.description,ssoTitle:t["sso-title"],ssoDepartment:t["sso-department"],ssoGroup:t["sso-group"],scopes:t.scopes,userEmails:t.users},{createTeam:n}=await u(e,ma,{input:r});return n.team}async function BA(e,t,r){let{updateTeam:n}=await u(e,fa,{input:{id:r,name:t.name,description:t.description,ssoTitle:t["sso-title"],ssoDepartment:t["sso-department"],ssoGroup:t["sso-group"],scopes:t.scopes,userEmails:t.users}});return n.team}async function xm(e,t){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${t.length}" teams...`));let r=!1,n=await zr(e),o=x(n,"name"),a=t.filter(p=>!o[p.name]),i=t.filter(p=>!!o[p.name]);return await T(a,async p=>{try{let m=await FA(e,p);o[m.name]=m,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created team "${p.name}"!`))}catch(m){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync team "${p.name}"! - ${m.message}`))}}),await T(i,async p=>{try{let m=await BA(e,p,o[p.name].id);o[m.name]=m,_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated team "${p.name}"!`))}catch(m){r=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync team "${p.name}"! - ${m.message}`))}}),!r}async function QA(e,t){let{createPromptPartial:{promptPartial:r}}=await u(e,ia,{input:t});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created prompt partial "${t.title}"!`)),r.id}async function KA(e,t){await u(e,na,{input:{promptPartials:t.map(([r,n])=>({...r,id:n}))}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated ${t.length} prompt partials!`))}async function Tm(e,t,r=20){let n=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${t.length}" prompt partials...`));let o=await io(e),a=x(o,"title"),i=t.map(l=>[l,_optionalChain([a, 'access', _45 => _45[l.title], 'optionalAccess', _46 => _46.id])]),p=i.filter(([,l])=>!l).map(([l])=>l);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${p.length}" new prompt partials...`)),await B(p,async l=>{await QA(e,l)},{concurrency:r}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced ${p.length} prompt partials!`))}catch(l){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create prompt partials! - ${l.message}`))}let m=i.filter(l=>!!l[1]);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${m.length}" prompt partials...`)),await KA(e,m),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated "${m.length}" prompt partials!`))}catch(l){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create prompt partials! - ${l.message}`))}return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${t.length}" prompt partials!`)),!n}async function VA(e,t){let{createPromptGroup:{promptGroup:r}}=await u(e,sa,{input:t});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created prompt group "${t.title}"!`)),r.id}async function jA(e,t){await u(e,aa,{input:{promptGroups:t.map(([r,n])=>({...r,id:n}))}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated ${t.length} prompt groups!`))}async function Sm(e,t,r=20){let n=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${t.length}" prompt groups...`));let o=await ao(e),a=await Ut(e),i=x(a,"title"),p=x(o,"title"),m=t.map(f=>[f,_optionalChain([p, 'access', _47 => _47[f.title], 'optionalAccess', _48 => _48.id])]),l=m.filter(([,f])=>!f).map(([f])=>f);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${l.length}" new prompt groups...`)),await B(l,async f=>{await VA(e,{...f,promptIds:f.prompts.map(d=>{let C=i[d];if(!C)throw new Error(`Failed to find prompt with title: "${d}"`);return C.id})})},{concurrency:r}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced ${l.length} prompt groups!`))}catch(f){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create prompt groups! - ${f.message}`))}let c=m.filter(f=>!!f[1]);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${c.length}" prompt groups...`)),await jA(e,c.map(([{prompts:f,...d},C])=>[{...d,promptIds:f.map(h=>{let v=i[h];if(!v)throw new Error(`Failed to find prompt with title: "${h}"`);return v.id})},C])),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated "${c.length}" prompt groups!`))}catch(f){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create prompt groups! - ${f.message}`))}return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${t.length}" prompt groups!`)),!n}var Xt=10;async function xq(e,t,{pageSize:r=50,publishToPrivacyCenter:n=!0,classifyService:o=!1,deleteExtraAttributeValues:a=!1}){let i=!1;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetching data with page size ${r}...`));let{templates:p,attributes:m,actions:l,identifiers:c,"data-subjects":f,"business-entities":d,enrichers:C,cookies:h,"consent-manager":v,"data-silos":K,"data-flows":R,prompts:M,"prompt-groups":I,"prompt-partials":V,agents:j,"agent-functions":it,"agent-files":Fe,vendors:ne,"data-categories":ge,"processing-purposes":Be,"action-items":Qe,"action-item-collections":at,teams:Ke,"privacy-center":ye,messages:rr,policies:or,partitions:nr}=e,[ir,ht,Ir]=await Promise.all([C||c?Dl(e,t,!n):{},K||f||C?kl(e,t):{},K&&K.map(y=>y["api-key-title"]||[]).reduce((y,k)=>y+k.length,0)>0?Jr(e,t):{}]);if(v){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Syncing consent manager..."));try{await rm(t,v),_chunkZUNVPK23cjs.a.info(_colors2.default.green("Successfully synced consent manager!"))}catch(y){i=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync consent manager! - ${y.message}`))}}if(M){let y=await Hl(t,M);i=i||!y}if(V){let y=await Tm(t,V);i=i||!y}if(I){let y=await Sm(t,I);i=i||!y}if(Ke){let y=await xm(t,Ke);i=i||!y}if(p&&(_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${p.length}" email templates...`)),await B(p,async y=>{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing template "${y.title}"...`));try{await mm(y,t),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced template "${y.title}"!`))}catch(k){i=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync template "${y.title}"! - ${k.message}`))}},{concurrency:Xt}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${p.length}" email templates!`))),d){let y=await im(t,d);i=i||!y}if(ne){let y=await Cm(t,ne);i=i||!y}if(ge){let y=await Am(t,ge);i=i||!y}if(Be){let y=await Im(t,Be);i=i||!y}if(nr){let y=await Xl(t,nr);i=i||!y}if(j){let y=await fm(t,j);i=i||!y}if(it){let y=await ym(t,it);i=i||!y}if(Fe){let y=await hm(t,Fe);i=i||!y}if(h){let y=await Vl(t,h);i=i||!y}if(at){let y=await cm(t,at);i=i||!y}if(m){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${m.length}" attributes...`));let y=await Qt(t);await B(m,async k=>{let te=y.find(ae=>ae.name===k.name);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing attribute "${k.name}"...`));try{await Ol(t,k,{existingAttribute:te,deleteExtraAttributeValues:a}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced attribute "${k.name}"!`))}catch(ae){i=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync attribute "${k.name}"! - ${ae.message}`))}},{concurrency:Xt}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${m.length}" attributes!`))}if(Qe){let y=await gm(t,Qe);i=i||!y}if(C&&(_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${C.length}" enrichers...`)),await B(C,async y=>{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing enricher "${y.title}"...`));try{await vl(t,{enricher:y,identifierByName:ir,dataSubjectsByName:ht}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced enricher "${y.title}"!`))}catch(k){i=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync enricher "${y.title}"! - ${k.message}`))}},{concurrency:Xt}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${C.length}" enrichers!`))),c&&(_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${c.length}" identifiers...`)),await B(c,async y=>{let k=ir[y.name];if(!k)throw new Error(`Failed to find identifier with name: ${y.type}. Should have been auto-created by cli.`);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing identifier "${y.type}"...`));try{await _l(t,{identifier:y,dataSubjectsByName:ht,identifierId:k.id,skipPublish:!n}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced identifier "${y.type}"!`))}catch(te){i=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync identifier "${y.type}"! - ${te.message}`))}},{concurrency:Xt}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${c.length}" identifiers!`))),l){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${l.length}" actions...`));let y=await no(t);await B(l,async k=>{let te=y.find(ae=>ae.type===k.type);if(!te)throw new Error(`Failed to find action with type: ${k.type}. Should have already existing in the organization.`);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing action "${k.type}"...`));try{await lm(t,{action:k,actionId:te.id,skipPublish:!n}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced action "${k.type}"!`))}catch(ae){i=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync action "${k.type}"! - ${ae.message}`))}},{concurrency:Xt}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${l.length}" actions!`))}if(f){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing "${f.length}" data subjects...`));let y=await gr(t);await B(f,async k=>{let te=y.find(ae=>ae.type===k.type);if(!te)throw new Error(`Failed to find data subject with type: ${k.type}. Should have already existing in the organization.`);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Syncing data subject "${k.type}"...`));try{await jl(t,{dataSubject:k,dataSubjectId:te.id,skipPublish:!n}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced data subject "${k.type}"!`))}catch(ae){i=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to sync data subject "${k.type}"! - ${ae.message}`))}},{concurrency:Xt}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${f.length}" data subjects!`))}if(R){let y=await um(t,R,o);i=i||!y}if(ye){let y=await zl(t,ye);i=i||!y}if(rr){let y=await Yl(t,rr);i=i||!y}if(or){let y=await Zl(t,or);i=i||!y}let Ct=[];if(K){let{success:y,dataSiloTitleToId:k}=await Fl(K,t,{dataSubjectsByName:ht,apiKeysByTitle:Ir,pageSize:r});_optionalChain([K, 'optionalAccess', _49 => _49.forEach, 'call', _50 => _50(te=>{te["deletion-dependencies"]&&Ct.push([k[te.title],te["deletion-dependencies"]])})]),i=i||!y}return Ct.length>0&&await Bl(t,Ct),i}async function bq(e,t){let r=await u(e,Ei,{dataSiloId:t,type:"DATA_SILO_DISCOVERY"}),{plugins:n,totalCount:o}=r.plugins;return o===0&&(_chunkZUNVPK23cjs.a.error("No active data silo plugins found for this data silo."),process.exit(1)),n[0]}async function Pm(e){let t=await yr(e),{privacyCenter:{themeStr:r,...n}}=await u(e,ds,{url:t});return[{...n,theme:JSON.parse(r)}]}async function Em(e){let{translatedMessages:t}=await u(e,Qi,{});return t}var Dn=20;async function _n(e,t=_privacytypes.ConsentTrackerStatus.Live){let r=[],n=0,o=await fe(e),a=!1;do{let{cookies:{nodes:i}}=await u(e,Ma,{first:Dn,offset:n,airgapBundleId:o,status:t});r.push(...i),n+=Dn,a=i.length===Dn}while(a);return r.sort((i,p)=>i.name.localeCompare(p.name))}var Ln=20;async function bm(e){let t=[],r=0,n=!1;do{let{assessmentForms:{nodes:o}}=await u(e,Hi,{first:Ln,offset:r});t.push(...o),r+=Ln,n=o.length===Ln}while(n);return t.sort((o,a)=>o.title.localeCompare(a.title))}var vn=20;async function wm(e){let t=[],r=0,n=!1;do{let{assessmentFormTemplates:{nodes:o}}=await u(e,zi,{first:vn,offset:r});t.push(...o),r+=vn,n=o.length===vn}while(n);return t.sort((o,a)=>o.title.localeCompare(a.title))}var _iots = require('io-ts'); var ee = _interopRequireWildcard(_iots); var pe = _interopRequireWildcard(_iots); var L = _interopRequireWildcard(_iots); var Ue = _interopRequireWildcard(_iots);var Rm=ee.type({dependsOnQuestionReferenceId:ee.string,comparisonOperator:_typeutils.valuesOf.call(void 0, _privacytypes.ComparisonOperator),comparisonOperands:ee.array(ee.string)}),JA= exports.be =ee.recursion("AssessmentNestedRule",e=>ee.intersection([ee.type({logicOperator:_typeutils.valuesOf.call(void 0, _privacytypes.LogicOperator)}),ee.partial({rules:ee.array(Rm),nestedRules:ee.array(e)})])),XA= exports.ce =ee.partial({action:_typeutils.valuesOf.call(void 0, _privacytypes.AssessmentsDisplayLogicAction),rule:Rm,nestedRule:JA});function kn(e){return _typeutils.decodeCodec.call(void 0, XA,e)}var oI=pe.intersection([pe.partial({riskAssignment:pe.partial({riskLevelId:pe.string,riskMatrixRowId:pe.string,riskMatrixColumnId:pe.string})}),pe.type({comparisonOperands:pe.array(pe.string),comparisonOperator:_typeutils.valuesOf.call(void 0, _privacytypes.ComparisonOperator)})]);function Gn(e){return _typeutils.decodeCodec.call(void 0, oI,e)}var Mn=20;async function $m(e){let t=[],r=0,n=!1;do{let{preferenceTopics:{nodes:o}}=await u(e,Yi,{first:Mn,offset:r});t.push(...o),r+=Mn,n=o.length===Mn}while(n);return t.sort((o,a)=>`${o.slug}:${o.purpose.trackingType}`.localeCompare(`${a.slug}:${a.purpose.trackingType}`))}async function Dm(e){let[t,r]=await Promise.all([ro(e),$m(e)]);return t.map(n=>{let o=r.filter(a=>a.purpose.trackingType===n.trackingType);return{...n,topics:o}})}function Se(e){let t=[];return e.map(r=>{let n=t.find(o=>o.key===r.attributeKey.name);return n===void 0?(n={key:r.attributeKey.name,values:[r.name]},t.push(n)):n.values.push(r.name),t}),t}var aI=["dataSilos","enrichers","templates","apiKeys"];async function ZN(e,{dataSiloIds:t,integrationNames:r,debug:n,resources:o=aI,pageSize:a,skipDatapoints:i,includeGuessedCategories:p,skipSubDatapoints:m,trackerStatuses:l=Object.values(_privacytypes.ConsentTrackerStatus)}){if(t.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 ${a}...`));let[c,f,d,C,h,v,K,R,M,I,V,j,it,Fe,ne,ge,Be,Qe,at,Ke,ye,rr,or,nr,ir,ht,Ir,Ct,y,k,te,ae]=await Promise.all([o.includes("dataSilos")||o.includes("dataSubjects")?gr(e):[],o.includes("apiKeys")?Jr({},e,!0):[],o.includes("dataSilos")?Ul(e,{ids:t,integrationNames:r,pageSize:a,debug:n,includeGuessedCategories:p,skipDatapoints:i,skipSubDatapoints:m}):[],o.includes("enrichers")?nn(e):[],o.includes("dataFlows")?[...l.includes(_privacytypes.ConsentTrackerStatus.Live)?await Vt(e,_privacytypes.ConsentTrackerStatus.Live):[],...l.includes(_privacytypes.ConsentTrackerStatus.NeedsReview)?await Vt(e,_privacytypes.ConsentTrackerStatus.NeedsReview):[]]:[],o.includes("cookies")?[...l.includes(_privacytypes.ConsentTrackerStatus.Live)?await _n(e,_privacytypes.ConsentTrackerStatus.Live):[],...l.includes(_privacytypes.ConsentTrackerStatus.NeedsReview)?await _n(e,_privacytypes.ConsentTrackerStatus.NeedsReview):[]]:[],o.includes("customFields")?Qt(e):[],o.includes("templates")?An(e):[],o.includes("identifiers")?rn(e):[],o.includes("actions")?no(e):[],o.includes("businessEntities")?oo(e):[],o.includes("consentManager")?Ql(e):void 0,o.includes("consentManager")?Zr(e):[],o.includes("prompts")?Ut(e):[],o.includes("promptPartials")?io(e):[],o.includes("promptGroups")?ao(e):[],o.includes("agents")?so(e):[],o.includes("agentFunctions")?uo(e):[],o.includes("agentFiles")?lo(e):[],o.includes("vendors")?mo(e):[],o.includes("dataCategories")?fo(e):[],o.includes("processingPurposes")?co(e):[],o.includes("actionItems")?po(e,{type:[_privacytypes.ActionItemCode.Onboarding]}):[],o.includes("actionItemCollections")?Wt(e):[],o.includes("teams")?zr(e):[],o.includes("policies")?Xr(e):[],o.includes("privacyCenters")?Pm(e):[],o.includes("messages")?Em(e):[],o.includes("partitions")?hr(e):[],o.includes("assessments")?bm(e):[],o.includes("assessmentTemplates")?wm(e):[],o.includes("purposes")?Dm(e):[]]),ar=o.includes("consentManager")&&j?await Kl(e,j.id):void 0,G={},Bm=ke(d.map(([{apiKeys:g}])=>g.map(({title:A})=>A))),Zn=Object.values(f).filter(({title:g})=>o.includes("apiKeys")?!0:Bm.includes(g));if(Zn.length>0&&o.includes("apiKeys")&&(G["api-keys"]=Zn.map(({title:g})=>({title:g}))),y.length>0&&o.includes("partitions")&&(G.partitions=y.map(({name:g,partition:A})=>({name:g,partition:A}))),j&&o.includes("consentManager")&&(G["consent-manager"]={bundleUrls:{TEST:j.testBundleURL,PRODUCTION:j.bundleURL},domains:j.configuration.domains||void 0,partition:j.configuration.partition||void 0,consentPrecedence:j.configuration.consentPrecedence||void 0,unknownRequestPolicy:j.configuration.unknownRequestPolicy||void 0,unknownCookiePolicy:j.configuration.unknownCookiePolicy||void 0,syncEndpoint:j.configuration.syncEndpoint||void 0,telemetryPartitioning:j.configuration.telemetryPartitioning||void 0,signedIabAgreement:j.configuration.signedIabAgreement||void 0,syncGroups:j.configuration.syncGroups||void 0,theme:ar?{primaryColor:ar.primaryColor||void 0,fontColor:ar.fontColor||void 0,privacyPolicy:ar.privacyPolicy||void 0,prompt:ar.prompt}:void 0,experiences:it.map(g=>({name:g.name,displayName:g.displayName||void 0,regions:g.regions.map(A=>({countrySubDivision:A.countrySubDivision||void 0,country:A.country||void 0})),onConsentExpiry:g.onConsentExpiry,consentExpiry:g.consentExpiry,operator:g.operator,displayPriority:g.displayPriority,viewState:g.viewState,purposes:g.purposes.map(A=>({trackingType:A.trackingType})),optedOutPurposes:g.optedOutPurposes.map(A=>({trackingType:A.trackingType})),browserLanguages:g.browserLanguages,browserTimeZones:g.browserTimeZones}))}),k.length>0&&o.includes("assessments")&&(G.assessments=k.map(({title:g,assessmentGroup:A,sections:S,creator:P,description:E,status:w,assignees:$,externalAssignees:D,reviewers:N,isLocked:q,isArchived:z,isExternallyCreated:W,dueDate:U,createdAt:re,assignedAt:Ve,submittedAt:st,approvedAt:pt,rejectedAt:ut,titleIsInternal:je,retentionSchedule:he,attributeValues:Le,resources:sr,syncedRows:lt})=>({title:g,group:A.title,sections:S.map(({title:oe,status:Pe,questions:ue,assignees:b,isReviewed:_,externalAssignees:J})=>({title:oe,status:Pe,questions:ue.map(({title:mt,type:Co,subType:ce,placeholder:Ce,description:ft,isRequired:Qm,referenceId:Km,displayLogic:Yn,riskLogic:Vm,riskCategories:jm,riskFramework:Wm,answerOptions:Hm,selectedAnswers:Zm,allowedMimeTypes:Ym,allowSelectOther:zm,syncModel:Jm,syncColumn:Xm,attributeKey:ef,requireRiskEvaluation:tf,requireRiskMatrixEvaluation:rf})=>{let Ee=Yn?kn(Yn):void 0;return{title:mt,type:Co,"sub-type":ce,placeholder:Ce,description:ft,"is-required":Qm,"reference-id":Km,"display-logic":Ee&&Object.keys(Ee).length>0?{action:Ee.action,rule:Ee.rule?{"depends-on-question-reference-id":Ee.rule.dependsOnQuestionReferenceId,"comparison-operator":Ee.rule.comparisonOperator,"comparison-operands":Ee.rule.comparisonOperands}:void 0,"nested-rule":Ee.nestedRule?{"logic-operator":Ee.nestedRule.logicOperator,rules:(Ee.nestedRule.rules||[]).map(Ae=>({"depends-on-question-reference-id":Ae.dependsOnQuestionReferenceId,"comparison-operator":Ae.comparisonOperator,"comparison-operands":Ae.comparisonOperands}))}:void 0}:void 0,"risk-logic":Vm.map(Ae=>{let Ao=Gn(Ae);return{"risk-level":_optionalChain([Ao, 'access', _51 => _51.riskAssignment, 'optionalAccess', _52 => _52.riskLevelId]),"comparison-operands":Ao.comparisonOperands,"comparison-operator":Ao.comparisonOperator}}),"risk-categories":jm.map(({title:Ae})=>Ae),"risk-framework":_optionalChain([Wm, 'optionalAccess', _53 => _53.title]),"answer-options":Hm.map(({value:Ae})=>({value:Ae})),"selected-answers":Zm.map(({value:Ae})=>Ae),"allowed-mime-types":Ym,"allow-select-other":zm,"sync-model":Jm||void 0,"sync-column":Xm||void 0,"attribute-key":_optionalChain([ef, 'optionalAccess', _54 => _54.name]),"require-risk-evaluation":tf,"require-risk-matrix-evaluation":rf}}),assignees:b.map(({email:mt})=>mt),"external-assignees":J.map(({email:mt})=>mt),"is-reviewed":_})),creator:_optionalChain([P, 'optionalAccess', _55 => _55.email]),description:E,status:w,assignees:$.map(({email:oe})=>oe),"external-assignees":D.map(({email:oe})=>oe),reviewers:N.map(({email:oe})=>oe),locked:q,archived:z,external:W,"title-is-internal":je,"due-date":U||void 0,"created-at":re||void 0,"assigned-at":Ve||void 0,"submitted-at":st||void 0,"approved-at":pt||void 0,"rejected-at":ut||void 0,"retention-schedule":he?{type:he.type,"duration-days":he.durationDays,operand:he.operation}:void 0,attributes:Le!==void 0&&Le.length>0?Se(Le):void 0,resources:sr.map(({resourceType:oe,title:Pe,name:ue,category:b,type:_,purpose:J})=>({type:oe,title:b?`${b} - ${ue}`:J?`${J} - ${ue}`:Pe||ue||_||""})),rows:lt.map(({resourceType:oe,title:Pe,name:ue,category:b,type:_,purpose:J})=>({type:oe,title:b?`${b} - ${ue}`:J?`${J} - ${ue}`:Pe||ue||_||""}))}))),te.length>0&&o.includes("assessmentTemplates")&&(G["assessment-templates"]=te.map(({title:g,description:A,sections:S,status:P,source:E,creator:w,isLocked:$,isArchived:D,createdAt:N,retentionSchedule:q})=>({title:g,description:A,sections:S.map(({title:z,questions:W})=>({title:z,questions:W.map(({title:U,type:re,subType:Ve,placeholder:st,description:pt,isRequired:ut,referenceId:je,displayLogic:he,riskLogic:Le,riskCategories:sr,riskFramework:lt,answerOptions:oe,allowedMimeTypes:Pe,allowSelectOther:ue,syncModel:b,syncColumn:_,attributeKey:J,requireRiskEvaluation:mt,requireRiskMatrixEvaluation:Co})=>{let ce=he?kn(he):void 0;return{title:U,type:re,"sub-type":Ve,placeholder:st,description:pt,"is-required":ut,"reference-id":je,"display-logic":ce&&Object.keys(ce).length>0?{action:ce.action,rule:ce.rule?{"depends-on-question-reference-id":ce.rule.dependsOnQuestionReferenceId,"comparison-operator":ce.rule.comparisonOperator,"comparison-operands":ce.rule.comparisonOperands}:void 0,"nested-rule":ce.nestedRule?{"logic-operator":ce.nestedRule.logicOperator,rules:(ce.nestedRule.rules||[]).map(Ce=>({"depends-on-question-reference-id":Ce.dependsOnQuestionReferenceId,"comparison-operator":Ce.comparisonOperator,"comparison-operands":Ce.comparisonOperands}))}:void 0}:void 0,"risk-logic":Le.map(Ce=>{let ft=Gn(Ce);return{"risk-level":_optionalChain([ft, 'access', _56 => _56.riskAssignment, 'optionalAccess', _57 => _57.riskLevelId]),"risk-matrix-row":_optionalChain([ft, 'access', _58 => _58.riskAssignment, 'optionalAccess', _59 => _59.riskMatrixRowId]),"risk-matrix-column":_optionalChain([ft, 'access', _60 => _60.riskAssignment, 'optionalAccess', _61 => _61.riskMatrixColumnId]),"comparison-operands":ft.comparisonOperands,"comparison-operator":ft.comparisonOperator}}),"risk-categories":sr.map(({title:Ce})=>Ce),"risk-framework":_optionalChain([lt, 'optionalAccess', _62 => _62.title]),"answer-options":oe.map(({value:Ce})=>({value:Ce})),"allowed-mime-types":Pe,"allow-select-other":ue,"sync-model":b||void 0,"sync-column":_||void 0,"attribute-key":_optionalChain([J, 'optionalAccess', _63 => _63.name]),"require-risk-evaluation":mt,"require-risk-matrix-evaluation":Co}})})),status:P,source:E,creator:_optionalChain([w, 'optionalAccess', _64 => _64.email]),locked:$,archived:D,"created-at":N||void 0,"retention-schedule":q?{type:q.type,"duration-days":q.durationDays,operand:q.operation}:void 0}))),Fe.length>0&&o.includes("prompts")&&(G.prompts=Fe.map(({title:g,content:A})=>({title:g,content:A}))),ne.length>0&&o.includes("promptPartials")&&(G["prompt-partials"]=ne.map(({title:g,content:A})=>({title:g,content:A}))),ge.length>0&&o.includes("promptGroups")&&(G["prompt-groups"]=ge.map(({title:g,description:A,prompts:S})=>({title:g,description:A,prompts:S.map(({title:P})=>P)}))),ir.length>0&&o.includes("teams")&&(G.teams=ir.map(({name:g,description:A,ssoDepartment:S,ssoGroup:P,ssoTitle:E,users:w,scopes:$})=>({name:g,description:A,"sso-department":S||void 0,"sso-group":P||void 0,"sso-title":E||void 0,users:w.map(({email:D})=>D),scopes:$.map(({name:D})=>D)}))),c.length>0&&o.includes("dataSubjects")&&(G["data-subjects"]=c.map(({type:g,title:A,active:S,adminDashboardDefaultSilentMode:P,actions:E})=>({type:g,title:_optionalChain([A, 'optionalAccess', _65 => _65.defaultMessage]),active:S,adminDashboardDefaultSilentMode:P,actions:E.map(({type:w})=>w)}))),ht.length>0&&(G.policies=ht.map(({title:g,versions:A,disabledLocales:S})=>({title:_optionalChain([g, 'optionalAccess', _66 => _66.defaultMessage]),content:_optionalChain([A, 'optionalAccess', _67 => _67[0], 'optionalAccess', _68 => _68.content, 'optionalAccess', _69 => _69.defaultMessage]),disabledLocales:S}))),Ct.length>0&&(G.messages=Ct.map(({id:g,defaultMessage:A,targetReactIntlId:S,translations:P})=>({id:g,defaultMessage:A,targetReactIntlId:S||void 0,translations:P.reduce((E,{locale:w,value:$})=>Object.assign(E,{[w]:$}),{})}))),Ir.length>0){let g=Ir[0];G["privacy-center"]={isDisabled:g.isDisabled,showPrivacyRequestButton:g.showPrivacyRequestButton,showPolicies:g.showPolicies,showTrackingTechnologies:g.showTrackingTechnologies,showCookies:g.showCookies,showDataFlows:g.showDataFlows,showConsentManager:g.showConsentManager,showManageYourPrivacy:g.showManageYourPrivacy,showMarketingPreferences:g.showMarketingPreferences,locales:g.locales,defaultLocale:g.defaultLocale,preferBrowserDefaultLocale:g.preferBrowserDefaultLocale,supportEmail:g.supportEmail||void 0,replyToEmail:g.replyToEmail||void 0,useNoReplyEmailAddress:g.useNoReplyEmailAddress,useCustomEmailDomain:g.useCustomEmailDomain,transformAccessReportJsonToCsv:g.transformAccessReportJsonToCsv,theme:g.theme}}if(V.length>0&&o.includes("businessEntities")&&(G["business-entities"]=V.map(({title:g,description:A,address:S,headquarterCountry:P,headquarterSubDivision:E,dataProtectionOfficerName:w,dataProtectionOfficerEmail:$,attributeValues:D})=>({title:g,description:A||void 0,address:S||void 0,headquarterCountry:P||void 0,headquarterSubDivision:E||void 0,dataProtectionOfficerName:w||void 0,dataProtectionOfficerEmail:$||void 0,attributes:D!==void 0&&D.length>0?Se(D):void 0}))),I.length>0&&o.includes("actions")&&(G.actions=I.map(({type:g,skipSecondaryIfNoFiles:A,skipDownloadableStep:S,requiresReview:P,regionList:E,regionDetectionMethod:w,waitingPeriod:$})=>({type:g,...g===_privacytypes.RequestAction.Erasure?{skipSecondaryIfNoFiles:A,skipDownloadableStep:S}:{},requiresReview:P,waitingPeriod:$,regionDetectionMethod:w,regionList:E.length>0?E:void 0}))),M.length>0&&o.includes("identifiers")&&(G.identifiers=M.map(({name:g,type:A,regex:S,selectOptions:P,privacyCenterVisibility:E,isRequiredInForm:w,placeholder:$,displayTitle:D,dataSubjects:N,displayDescription:q,displayOrder:z})=>({name:g,type:A,regex:S,selectOptions:P.length>0?P:void 0,privacyCenterVisibility:E.length>0?E:void 0,isRequiredInForm:w,placeholder:$||void 0,dataSubjects:N.length>0?N.map(({type:W})=>W):void 0,displayTitle:_optionalChain([D, 'optionalAccess', _70 => _70.defaultMessage]),displayDescription:_optionalChain([q, 'optionalAccess', _71 => _71.defaultMessage]),displayOrder:z}))),Be.length>0&&o.includes("agents")&&(G.agents=Be.map(({name:g,agentId:A,description:S,instructions:P,codeInterpreterEnabled:E,retrievalEnabled:w,prompt:$,largeLanguageModel:D,teams:N,owners:q,agentFunctions:z,agentFiles:W})=>({name:g,agentId:A,description:S||void 0,instructions:P,codeInterpreterEnabled:E,retrievalEnabled:w,prompt:_optionalChain([$, 'optionalAccess', _72 => _72.title]),"large-language-model":{name:D.name,client:D.client},teams:N&&N.length>0?N.map(({name:U})=>U):void 0,owners:q&&q.length>0?q.map(({email:U})=>U):void 0,"agent-functions":z&&z.length>0?z.map(({name:U})=>U):void 0,"agent-files":W&&W.length>0?W.map(({name:U})=>U):void 0}))),or.length>0&&o.includes("actionItems")&&(G["action-items"]=or.map(({teams:g,users:A,customerExperienceActionItemIds:[S],dueDate:P,priority:E,resolved:w,collections:$,notes:D,link:N,title:q,type:z,attributeValues:W})=>({teams:g.map(({name:U})=>U),users:A.map(({email:U})=>U),dueDate:P||void 0,title:q,notes:D,customerExperienceActionItemId:S,collections:$.map(({title:U})=>U),link:N,priority:E||void 0,resolved:w,type:z,attributes:W!==void 0&&W.length>0?Se(W):void 0}))),nr.length>0&&o.includes("actionItemCollections")&&(G["action-item-collections"]=nr.map(({title:g,description:A,hidden:S,productLine:P})=>({title:g,description:A||void 0,hidden:S,productLine:P}))),Qe.length>0&&o.includes("agentFunctions")&&(G["agent-functions"]=Qe.map(({name:g,description:A,parameters:S})=>({name:g,description:A,parameters:JSON.stringify(S)}))),at.length>0&&o.includes("agentFiles")&&(G["agent-files"]=at.map(({name:g,description:A,fileId:S,size:P,purpose:E})=>({name:g,description:A,fileId:S,size:P,purpose:E}))),Ke.length>0&&o.includes("vendors")&&(G.vendors=Ke.map(({title:g,description:A,dataProcessingAgreementLink:S,contactName:P,contactPhone:E,address:w,headquarterCountry:$,headquarterSubDivision:D,websiteUrl:N,businessEntity:q,teams:z,owners:W,attributeValues:U})=>({title:g,description:A||void 0,dataProcessingAgreementLink:S||void 0,contactName:P||void 0,contactPhone:E||void 0,address:w||void 0,headquarterCountry:$||void 0,headquarterSubDivision:D||void 0,websiteUrl:N||void 0,businessEntity:_optionalChain([q, 'optionalAccess', _73 => _73.title]),teams:z&&z.length>0?z.map(({name:re})=>re):void 0,owners:W&&W.length>0?W.map(({email:re})=>re):void 0,attributes:U!==void 0&&U.length>0?Se(U):void 0}))),ye.length>0&&o.includes("dataCategories")&&(G["data-categories"]=ye.map(({name:g,category:A,description:S,regex:P,owners:E,teams:w,attributeValues:$})=>({name:g,category:A,description:S||void 0,regex:P||void 0,owners:E&&E.length>0?E.map(({email:D})=>D):void 0,teams:w&&w.length>0?w.map(({name:D})=>D):void 0,attributes:$!==void 0&&$.length>0?Se($):void 0}))),rr.length>0&&o.includes("processingPurposes")&&(G["processing-purposes"]=rr.map(({name:g,purpose:A,description:S,owners:P,teams:E,attributeValues:w})=>({name:g,purpose:A,description:S||void 0,owners:P&&P.length>0?P.map(({email:$})=>$):void 0,teams:E&&E.length>0?E.map(({name:$})=>$):void 0,attributes:w!==void 0&&w.length>0?Se(w):void 0}))),h.length>0&&o.includes("dataFlows")&&(G["data-flows"]=h.map(({value:g,type:A,description:S,trackingType:P,service:E,status:w,owners:$,teams:D,attributeValues:N})=>({value:g,type:A,description:S||void 0,trackingPurposes:P,status:w,service:_optionalChain([E, 'optionalAccess', _74 => _74.integrationName]),owners:$.map(({email:q})=>q),teams:D.map(({name:q})=>q),attributes:N!==void 0&&N.length>0?Se(N):void 0}))),v.length>0&&o.includes("cookies")&&(G.cookies=v.map(({name:g,isRegex:A,description:S,trackingPurposes:P,service:E,status:w,owners:$,teams:D,attributeValues:N})=>({name:g,isRegex:A,description:S||void 0,trackingPurposes:P,status:w,service:_optionalChain([E, 'optionalAccess', _75 => _75.integrationName]),owners:$.map(({email:q})=>q),teams:D.map(({name:q})=>q),attributes:N!==void 0&&N.length>0?Se(N):void 0}))),K.length>0&&o.includes("customFields")&&(G.attributes=K.map(({description:g,name:A,type:S,values:P,enabledOn:E=[]})=>({description:g||void 0,resources:E,name:A,type:S,values:P.map(({name:w,color:$,description:D})=>({name:w,color:$||void 0,description:D}))}))),ae.length>0&&(G.purposes=ae.map(({name:g,description:A,trackingType:S,defaultConsent:P,configurable:E,showInConsentManager:w,isActive:$,displayOrder:D,optOutSignals:N,authLevel:q,topics:z,showInPrivacyCenter:W,title:U})=>({name:g,title:U,description:A||void 0,trackingType:S,"default-consent":P,configurable:E,"show-in-consent-manager":w,"show-in-privacy-center":W,"is-active":$,"display-order":D,"opt-out-signals":N.length>0?N:void 0,"auth-level":q||void 0,"preference-topics":z.map(({title:re,type:Ve,displayDescription:st,defaultConfiguration:pt,showInPrivacyCenter:ut,preferenceOptionValues:je})=>({title:re.defaultMessage,type:Ve,description:st.defaultMessage,"default-configuration":pt,"show-in-privacy-center":ut,...je.length>0?{options:je.map(({title:he,slug:Le})=>({title:he.defaultMessage,slug:Le}))}:{}}))}))),t.length===0&&R.length>0&&o.includes("templates")&&(G.templates=R.map(({title:g})=>({title:g}))),C.length>0&&o.includes("enrichers")&&(G.enrichers=C.map(({title:g,url:A,type:S,inputIdentifier:P,identifiers:E,actions:w,testRegex:$,dataSubjects:D,expirationDuration:N,lookerQueryTitle:q,transitionRequestStatus:z,phoneNumbers:W,regionList:U})=>({title:g,url:A||void 0,type:S,"input-identifier":_optionalChain([P, 'optionalAccess', _76 => _76.name]),"output-identifiers":E.map(({name:re})=>re),"privacy-actions":Object.values(_privacytypes.RequestAction).length===w.length?void 0:w,testRegex:$||void 0,lookerQueryTitle:q||void 0,expirationDuration:parseInt(N,10),transitionRequestStatus:z||void 0,phoneNumbers:W&&W.length>0?W:void 0,regionList:U&&U.length>0?U:void 0,"data-subjects":D.map(({type:re})=>re)}))),d.length>0&&o.includes("dataSilos")){let g=x(c,"type");G["data-silos"]=d.map(([{title:A,description:S,url:P,type:E,outerType:w,apiKeys:$,notifyEmailAddress:D,identifiers:N,dependentDataSilos:q,owners:z,country:W,countrySubDivision:U,teams:re,subjectBlocklist:Ve,isLive:st,promptAVendorEmailSendFrequency:pt,promptAVendorEmailSendType:ut,promptAVendorEmailIncludeIdentifiersAttachment:je,promptAVendorEmailCompletionLinkType:he,manualWorkRetryFrequency:Le,catalog:sr,attributeValues:lt,discoveredBy:oe,businessEntities:Pe},ue])=>({title:A,description:S,integrationName:E,"outer-type":w||void 0,url:P||void 0,"api-key-title":_optionalChain([$, 'access', _77 => _77[0], 'optionalAccess', _78 => _78.title]),"identity-keys":N.filter(({isConnected:b})=>b).map(({name:b})=>b),...q.length>0?{"deletion-dependencies":q.map(({title:b})=>b)}:{},...z.length>0?{owners:z.map(({email:b})=>b)}:{},...re.length>0?{teams:re.map(({name:b})=>b)}:{},...oe.length>0?{discoveredBy:oe.map(({title:b})=>b)}:{},...Pe.length>0?{businessEntities:Pe.map(({title:b})=>b)}:{},country:W||void 0,countrySubDivision:U||void 0,disabled:!st,"data-subjects":Ve.length>0?Ml(Ve.map(({type:b})=>b),g):void 0,...sr.hasAvcFunctionality?{"email-settings":{"notify-email-address":D||void 0,"send-frequency":pt,"send-type":ut,"include-identifiers-attachment":je,"completion-link-type":he,"manual-work-retry-frequency":Le}}:{},attributes:lt!==void 0&&lt.length>0?Se(lt):void 0,datapoints:ue.map(b=>({key:b.name,title:_optionalChain([b, 'access', _79 => _79.title, 'optionalAccess', _80 => _80.defaultMessage]),description:_optionalChain([b, 'access', _81 => _81.description, 'optionalAccess', _82 => _82.defaultMessage]),owners:b.owners.map(({email:_})=>_),teams:b.teams.map(({name:_})=>_),...b.path.length>0?{path:b.path}:{},..._optionalChain([b, 'access', _83 => _83.dataCollection, 'optionalAccess', _84 => _84.title])?{"data-collection-tag":b.dataCollection.title.defaultMessage}:{},...b.dbIntegrationQueries.length>0?{"privacy-action-queries":zo(x(b.dbIntegrationQueries,"requestType"),_=>_.suggestedQuery||_.query||void 0)}:{},...b.subDataPoints.length>0?{fields:b.subDataPoints.map(_=>({key:_.name,description:_.description,purposes:_.purposes,categories:_.categories,...p&&_.pendingCategoryGuesses?{"guessed-categories":_.pendingCategoryGuesses.filter(J=>J.status==="PENDING").map(J=>({category:{name:J.category.name,category:J.category.category},status:J.status,confidence:J.confidence,classifierVersion:J.classifierVersion||void 0}))}:{},"access-request-visibility-enabled":_.accessRequestVisibilityEnabled,"erasure-request-redaction-enabled":_.erasureRequestRedactionEnabled,attributes:_.attributeValues!==void 0&&_.attributeValues.length>0?Se(_.attributeValues):void 0})).sort((_,J)=>_.key.localeCompare(J.key))}:{},"privacy-actions":b.actionSettings.filter(({active:_})=>_).map(({type:_})=>_)})).sort((b,_)=>[..._nullishCoalesce(b.path, () => ([])),b.key].join(".").localeCompare([..._nullishCoalesce(_.path, () => ([])),_.key].join(".")))}))}return G}var qn=20;async function Lm(e){let t=[],r=0,n=!1;do{let{softwareDevelopmentKits:{nodes:o}}=await u(e,_i,{first:qn,offset:r});t.push(...o),r+=qn,n=o.length===qn}while(n);return t.sort((o,a)=>o.name.localeCompare(a.name))}var sI=100;async function pI(e,t){let{createSoftwareDevelopmentKit:{softwareDevelopmentKit:r}}=await u(e,vi,{input:t});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created software development kit "${t.name}"!`)),r}async function uI(e,t){let{updateSoftwareDevelopmentKits:{softwareDevelopmentKits:r}}=await u(e,Li,{input:{softwareDevelopmentKits:t}});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated ${t.length} software development kits!`)),r}async function vm(e,t,r=20){let n=!1,o=[];_chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Syncing software development kits..."));let a=await Lm(e),i=x(a,({name:f,codePackageType:d})=>JSON.stringify({name:f,codePackageType:d})),p=t.map(f=>[f,_optionalChain([i, 'access', _85 => _85[JSON.stringify({name:f.name,codePackageType:f.codePackageType})], 'optionalAccess', _86 => _86.id])]),m=p.filter(([,f])=>!f).map(([f])=>f);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${m.length}" new software development kits...`)),await B(m,async f=>{let d=await pI(e,f);o.push(d)},{concurrency:r}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced ${m.length} software development kits!`))}catch(f){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create software development kits! - ${f.message}`))}let l=p.filter(f=>!!f[1]),c=Q(l,sI);return _chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${l.length}" software development kits...`)),await T(c,async f=>{try{let d=await uI(e,f.map(([{codePackageType:C,...h},v])=>({...h,id:v})));o.push(...d),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated "${l.length}" software development kits!`))}catch(d){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to update software development kits! - ${d.message}`))}_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${t.length}" software development kits!`))}),{softwareDevelopmentKits:o,success:!n}}var Nn=20;async function Om(e){let t=[],r=0,n=!1;do{let{repositories:{nodes:o}}=await u(e,hi,{first:Nn,offset:r});t.push(...o),r+=Nn,n=o.length===Nn}while(n);return t.sort((o,a)=>o.name.localeCompare(a.name))}var lI=100;async function mI(e,t){let{createRepository:{repository:r}}=await u(e,Ai,{input:t});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created repository "${t.name}"!`)),r}async function fI(e,t){let{updateRepositories:{repositories:r}}=await u(e,Ci,{input:{repositories:t}});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated ${t.length} repositories!`)),r}async function km(e,t,r=20){let n=!1,o=[],a=await Om(e),i=x(a,"name"),p=t.map(f=>[f,_optionalChain([i, 'access', _87 => _87[f.name], 'optionalAccess', _88 => _88.id])]),m=p.filter(([,f])=>!f).map(([f])=>f);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${m.length}" new repositories...`)),await B(m,async f=>{let d=await mI(e,f);o.push(d)},{concurrency:r}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced ${m.length} repositories!`))}catch(f){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create repositories! - ${f.message}`))}let l=p.filter(f=>!!f[1]),c=Q(l,lI);return _chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${l.length}" repositories...`)),await T(c,async f=>{try{let d=await fI(e,f.map(([C,h])=>({...C,id:h})));o.push(...d),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated "${l.length}" repositories!`))}catch(d){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to update repositories! - ${d.message}`))}_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${t.length}" repositories!`))}),{repositories:o,success:!n}}var Un=20;async function Gm(e){let t=[],r=0,n=!1;do{let{codePackages:{nodes:o}}=await u(e,Oi,{first:Un,offset:r});t.push(...o),r+=Un,n=o.length===Un}while(n);return t.sort((o,a)=>o.name.localeCompare(a.name))}var cI=100,er="%%%%";async function dI(e,t){let{createCodePackage:{codePackage:r}}=await u(e,Gi,{input:t});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully created code package "${t.name}"!`)),r}async function gI(e,t){let{updateCodePackages:{codePackages:r}}=await u(e,ki,{input:{codePackages:t}});return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated ${t.length} code packages!`)),r}async function OU(e,t,r=20){let n=!1,[o,{softwareDevelopmentKits:a}]=await Promise.all([Gm(e),vm(e,Hr(t.map(({type:d,softwareDevelopmentKits:C=[]})=>C.map(({name:h})=>({name:h,codePackageType:d}))).flat(),({name:d,codePackageType:C})=>`${d}${er}${C}`),r),km(e,Hr(t,"repositoryName").map(({repositoryName:d})=>({name:d,url:`https://github.com/${d}`})))]),i=x(a,({name:d,codePackageType:C})=>`${d}${er}${C}`),p=x(o,({name:d,type:C})=>`${d}${er}${C}`),m=t.map(d=>[d,_optionalChain([p, 'access', _89 => _89[`${d.name}${er}${d.type}`], 'optionalAccess', _90 => _90.id])]),l=m.filter(([,d])=>!d).map(([d])=>d);try{_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Creating "${l.length}" new code packages...`)),await B(l,async({softwareDevelopmentKits:d,...C})=>{await dI(e,{...C,...d?{softwareDevelopmentKitIds:de(d.map(({name:h})=>{let v=i[`${h}${er}${C.type}`];if(!v)throw new Error(`Failed to find SDK with name: "${h}"`);return v.id}))}:{}})},{concurrency:r}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced ${l.length} code packages!`))}catch(d){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to create code packages! - ${d.message}`))}let c=m.filter(d=>!!d[1]);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Updating "${c.length}" code packages...`));let f=Q(c,cI);return await T(f,async d=>{try{await gI(e,d.map(([{softwareDevelopmentKits:C,repositoryName:h,...v},K])=>({...v,...C?{softwareDevelopmentKitIds:de(C.map(({name:R})=>{let M=i[`${R}${er}${v.type}`];if(!M)throw new Error(`Failed to find SDK with name: "${R}"`);return M.id}))}:{},id:K}))),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully updated "${d.length}" code packages!`))}catch(C){n=!0,_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Failed to update code packages! - ${C.message}`))}}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Synced "${t.length}" code packages!`)),!n}var yI=1e3;async function UU(e,t,r){let n=Q(r,yI);await T(n,async o=>{await u(e,Pi,{pluginId:t,rawResults:o})})}var Fn=100;async function hI(e){let t=[],r=0,n=!1;do{let{catalogs:{nodes:o}}=await u(e,pi,{first:Fn,offset:r});t.push(...o),r+=Fn,n=o.length===Fn}while(n);return t.sort((o,a)=>o.integrationName.localeCompare(a.integrationName))}async function KU(e){let t=await hI(e),r=t.reduce((o,a)=>Object.assign(o,{[a.integrationName]:a.title}),{}),n=t.reduce((o,a)=>Object.assign(o,{[a.integrationName]:a.hasApiFunctionality}),{});return{catalogs:t,serviceToTitle:r,serviceToSupportedIntegration:n}}function AI(e,t){return new (0, _graphqlrequest.GraphQLClient)(`${e}/graphql`,{headers:{...t,version:_chunkFPTEK7BGcjs.b}})}function Mm(e,t){return AI(e,{Authorization:`Bearer ${t}`})}var _got = require('got'); var _got2 = _interopRequireDefault(_got);async function eF(e,t,r){let n=Mm(e,t),{organization:o}=await u(n,$i);return _got2.default.extend({prefixUrl:o.sombra.customerUrl,headers:{Authorization:`Bearer ${t}`,...r?{"X-Sombra-Authorization":`Bearer ${r}`}:{}}})}async function nF(e,t){await u(e,Da,{input:t})}async function pF(e,t){await u(e,ji,{requestEnricherId:t})}var Bn=20;async function fF(e,t){let r=[],n=0,o=!1;do{let{promptThreads:{nodes:a}}=await u(e,Mi,{first:Bn,offset:n,filterBy:t});r.push(...a),n+=Bn,o=a.length===Bn}while(o);return r.sort((a,i)=>a.threadId.localeCompare(i.threadId))}var Qn=50;async function yF(e,{requestId:t}){let r=[],n=0,o=!1;do{let{requestIdentifiers:{nodes:a}}=await u(e,da,{first:Qn,offset:n,requestIds:[t]});r.push(...a),n+=Qn,o=a.length===Qn}while(o);return r}async function IF(e,{dataSiloId:t}){let{listReducedRequestsForDataSilo:{totalCount:r}}=await u(e,ua,{input:{dataSiloId:t,isResolved:!1}});return r}var Kn=20;async function PF(e){let t=[],r=0,n=!1;do{let{attributeKeys:{nodes:o}}=await u(e,Di,{first:Kn,offset:r});t.push(...o),r+=Kn,n=o.length===Kn}while(n);return t.sort((o,a)=>o.name.localeCompare(a.name))}var _internationalization = require('@transcend-io/internationalization');var OF=L.intersection([L.type({id:L.string,createdAt:L.string,email:L.string,type:_typeutils.valuesOf.call(void 0, _privacytypes.RequestAction),link:L.string,isSilent:L.boolean,origin:_typeutils.valuesOf.call(void 0, _privacytypes.RequestOrigin),isTest:L.boolean,coreIdentifier:L.string,details:L.string,locale:_typeutils.valuesOf.call(void 0, _internationalization.LanguageKey),status:_typeutils.valuesOf.call(void 0, _privacytypes.RequestStatus),subjectType:L.string,country:L.union([L.null,_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountryCode)]),countrySubDivision:L.union([L.null,_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountrySubdivisionCode)]),attributeValues:L.array(L.type({id:L.string,attributeKey:L.type({name:L.string,id:L.string}),name:L.string}))}),L.partial({daysRemaining:L.union([L.null,L.number])})]),yo=50;async function kF(e,{actions:t=[],statuses:r=[],origins:n=[],text:o,createdAtBefore:a,createdAtAfter:i,isTest:p,isSilent:m,isClosed:l,requestIds:c=[]}={}){_chunkZUNVPK23cjs.a.info(_colors2.default.magenta("Fetching requests..."));let f=new Date().getTime(),d=new _cliprogress2.default.SingleBar({},_cliprogress2.default.Presets.shades_classic),C=[],h=0,v=!1;do{let{requests:{nodes:I,totalCount:V}}=await u(e,Fi,{first:yo,offset:h,filterBy:{text:o,type:t.length>0?t:void 0,status:r.length>0?r:void 0,origin:n.length>0?n:void 0,isTest:p,isSilent:m,isClosed:l,createdAtBefore:a?a.toISOString():void 0,createdAtAfter:i?i.toISOString():void 0}});h===0&&V>yo&&(_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetching ${V} requests`)),d.start(V,0)),C.push(...I),h+=yo,d.update(h),v=I.length===yo}while(v);d.stop();let R=new Date().getTime()-f;_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Completed fetching of ${C.length} request in "${R/1e3}" seconds.`));let M=C;return c&&c.length>0&&(M=M.filter(I=>c.includes(I.id)),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Filtered down to ${M.length} requests based on ${c.length} provided IDs.`))),M}var _semver = require('semver'); var _semver2 = _interopRequireDefault(_semver);var Nm="7.180",_I=Ue.type({id:Ue.string,name:Ue.string,value:Ue.string,type:_typeutils.valuesOf.call(void 0, _privacytypes.IdentifierType)}),Vn=50,LI= exports.He =Ue.type({identifiers:Ue.array(_I)});async function BF(e,t,{requestId:r}){let n=[],o=0,a=!1,{organization:{sombra:{version:i}}}=await u(e,Gs);if(i&&_semver2.default.lt(i,Nm))throw new Error(`Please upgrade Sombra to ${Nm} or greater to use this command.`);do{let p;try{p=await t.post("v1/request-identifiers",{json:{first:Vn,offset:o,requestId:r}}).json()}catch(l){throw new Error(`Failed to fetch request identifiers: ${_optionalChain([l, 'optionalAccess', _91 => _91.response, 'optionalAccess', _92 => _92.body])||_optionalChain([l, 'optionalAccess', _93 => _93.message])}`)}let{identifiers:m}=_typeutils.decodeCodec.call(void 0, LI,p);n.push(...m),o+=Vn,a=m.length===Vn}while(a);return n}var jn=50;async function jF(e,{requestId:t}){let r=[],n=0,o=!1;do{let{requestEnrichers:{nodes:a}}=await u(e,Vi,{first:jn,offset:n,requestId:t});r.push(...a),n+=jn,o=a.length===jn}while(o);return r}var ho=100;async function vI(e,{requestId:t,dataSiloId:r,requestStatuses:n,statuses:o,skipLog:a=!1}){let i=new Date().getTime(),p=new _cliprogress2.default.SingleBar({},_cliprogress2.default.Presets.shades_classic),m=[],l=0,c=!1;do{let{requestDataSilos:{nodes:C,totalCount:h}}=await u(e,pa,{first:ho,offset:l,filterBy:{dataSiloId:r,requestId:t,status:o,requestStatus:n}});m.push(...C),l===0&&h>ho&&(_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Fetching ${h} requests`)),p.start(h,0)),l+=ho,c=C.length===ho,p.update(l)}while(c);p.stop();let d=new Date().getTime()-i;return a||_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Completed fetching of ${m.length} request data silos in "${d/1e3}" seconds.`)),m}async function XF(e,{requestId:t,dataSiloId:r}){let n=await vI(e,{requestId:t,dataSiloId:r,skipLog:!0});if(n.length!==1)throw new Error(`Failed to find RequestDataSilo with requestId:${t},dataSiloId:${r}`);return n[0]}function oB(e){return _got2.default.extend({prefixUrl:e})}async function sB(e,{email:t,password:r}){let{determineLoginMethod:{loginMethod:n}}=await u(e,Lo,{email:t}),o=await e.rawRequest(ys,{email:t,password:r,publicKey:n.sombraPublicKey}),{login:{user:a}}=o.data,i=o.headers.get("set-cookie");if(!i||!i.includes("laravel"))throw new Error("Failed to get login cookie in response");return{roles:a.roles,loginCookie:i}}async function pB(e,{email:t,roleId:r}){let{determineLoginMethod:{loginMethod:n}}=await u(e,Lo,{email:t,userId:r});await e.rawRequest(hs,{id:r,publicKey:n.sombraPublicKey})}var Wn=20;async function fB(e){let t=[],r=0,n=!1;do{let{users:{nodes:o}}=await u(e,ga,{first:Wn,offset:r});t.push(...o),r+=Wn,n=o.length===Wn}while(n);return t.sort((o,a)=>o.email.localeCompare(a.email))}async function yB(e,t){let{createApiKey:{apiKey:r}}=await u(e,xi,{input:t});return r}async function hB(e,t){await u(e,Ti,{id:t})}var Hn=20;async function xB(e,t){let r=[],n=0,o=!1;do{let{requestFiles:{nodes:a}}=await u(e,ya,{first:Hn,offset:n,filterBy:t});r.push(...a),n+=Hn,o=a.length===Hn}while(o);return r.sort((a,i)=>a.remoteId.localeCompare(i.remoteId))}async function EB(e,{id:t,bundleType:r}){await u(e,Ka,{airgapBundleId:t,bundleType:r})}async function bB(e,{id:t,bundleType:r}){await u(e,Qa,{airgapBundleId:t,bundleType:r})}async function DB(e,t){let{reportPromptRun:{promptRun:r}}=await u(e,Ca,{input:{...t,promptRunMessages:t.promptRunMessages.map(({content:n,...o})=>({...o,message:n}))}});return r.id}async function OB(e,{promptRunId:t,promptRunMessages:r=[],...n}){let{addMessagesToPromptRun:{promptRun:o}}=await u(e,Aa,{input:{...n,...t,promptRunMessages:r.map(({content:a,...i})=>({...i,message:a}))}});return o.id}exports.a = T; exports.b = B; exports.c = Jn; exports.d = MI; exports.e = Xn; exports.f = qI; exports.g = ei; exports.h = ti; exports.i = NI; exports.j = BI; exports.k = ri; exports.l = VI; exports.m = oi; exports.n = Io; exports.o = ni; exports.p = ii; exports.q = HI; exports.r = ai; exports.s = si; exports.t = pi; exports.u = ui; exports.v = li; exports.w = mi; exports.x = fi; exports.y = ci; exports.z = di; exports.A = gi; exports.B = yi; exports.C = hi; exports.D = Ci; exports.E = Ai; exports.F = Ii; exports.G = xi; exports.H = Ti; exports.I = Pi; exports.J = Ei; exports.K = wi; exports.L = Ri; exports.M = $i; exports.N = Di; exports.O = _i; exports.P = Li; exports.Q = vi; exports.R = Oi; exports.S = ki; exports.T = Gi; exports.U = Mi; exports.V = Ni; exports.W = Ui; exports.X = Fi; exports.Y = Sx; exports.Z = Px; exports._ = Ex; exports.$ = bx; exports.aa = Qi; exports.ba = Ki; exports.ca = Vi; exports.da = ji; exports.ea = _x; exports.fa = bo; exports.ga = Hi; exports.ha = Ox; exports.ia = Zi; exports.ja = Yi; exports.ka = zi; exports.la = Ji; exports.ma = Xi; exports.na = ea; exports.oa = ta; exports.pa = ra; exports.qa = oa; exports.ra = na; exports.sa = ia; exports.ta = aa; exports.ua = sa; exports.va = pa; exports.wa = jx; exports.xa = Wx; exports.ya = ua; exports.za = la; exports.Aa = ma; exports.Ba = fa; exports.Ca = Jx; exports.Da = da; exports.Ea = ga; exports.Fa = ya; exports.Ga = Ca; exports.Ha = Aa; exports.Ia = Ia; exports.Ja = xa; exports.Ka = Ta; exports.La = Sa; exports.Ma = Pa; exports.Na = Ea; exports.Oa = ba; exports.Pa = wa; exports.Qa = Ra; exports.Ra = $a; exports.Sa = Da; exports.Ta = _a; exports.Ua = La; exports.Va = va; exports.Wa = Oa; exports.Xa = ka; exports.Ya = Ga; exports.Za = Ma; exports._a = qa; exports.$a = Na; exports.ab = Ua; exports.bb = Fa; exports.cb = Ba; exports.db = Qa; exports.eb = Ka; exports.fb = Va; exports.gb = ja; exports.hb = Wa; exports.ib = Ha; exports.jb = Za; exports.kb = Ya; exports.lb = za; exports.mb = Ja; exports.nb = Xa; exports.ob = es; exports.pb = ts; exports.qb = rs; exports.rb = os; exports.sb = ns; exports.tb = is; exports.ub = ss; exports.vb = ps; exports.wb = us; exports.xb = ls; exports.yb = ms; exports.zb = fs; exports.Ab = cs; exports.Bb = ds; exports.Cb = gs; exports.Db = Lo; exports.Eb = ys; exports.Fb = hs; exports.Gb = ET; exports.Hb = Cs; exports.Ib = As; exports.Jb = Is; exports.Kb = xs; exports.Lb = Ts; exports.Mb = Ss; exports.Nb = Ps; exports.Ob = Es; exports.Pb = bs; exports.Qb = ws; exports.Rb = Rs; exports.Sb = $s; exports.Tb = Ds; exports.Ub = _s; exports.Vb = Ls; exports.Wb = vs; exports.Xb = Os; exports.Yb = ks; exports.Zb = Gs; exports._b = Q; exports.$b = me; exports.ac = Ho; exports.bc = x; exports.cc = Jo; exports.dc = KC; exports.ec = jC; exports.fc = de; exports.gc = u; exports.hc = rn; exports.ic = Dl; exports.jc = _l; exports.kc = nn; exports.lc = vl; exports.mc = Ol; exports.nc = gr; exports.oc = kl; exports.pc = Gl; exports.qc = Ml; exports.rc = Nl; exports.sc = XC; exports.tc = eA; exports.uc = Ul; exports.vc = Fl; exports.wc = Bl; exports.xc = Ql; exports.yc = fe; exports.zc = Zr; exports.Ac = tA; exports.Bc = Kv; exports.Cc = Kl; exports.Dc = oA; exports.Ec = Vl; exports.Fc = zr; exports.Gc = jl; exports.Hc = iA; exports.Ic = Jr; exports.Jc = Ut; exports.Kc = dO; exports.Lc = aA; exports.Mc = sA; exports.Nc = Hl; exports.Oc = yr; exports.Pc = Ft; exports.Qc = Xr; exports.Rc = uA; exports.Sc = Zl; exports.Tc = mA; exports.Uc = Yl; exports.Vc = zl; exports.Wc = hr; exports.Xc = Xl; exports.Yc = ro; exports.Zc = dA; exports._c = rm; exports.$c = gA; exports.ad = yA; exports.bd = Qt; exports.cd = oo; exports.dd = hA; exports.ed = CA; exports.fd = im; exports.gd = Vt; exports.hd = AA; exports.id = IA; exports.jd = um; exports.kd = lm; exports.ld = An; exports.md = mm; exports.nd = no; exports.od = io; exports.pd = ao; exports.qd = so; exports.rd = PA; exports.sd = EA; exports.td = fm; exports.ud = bA; exports.vd = wA; exports.wd = cm; exports.xd = po; exports.yd = RA; exports.zd = $A; exports.Ad = gm; exports.Bd = uo; exports.Cd = _A; exports.Dd = LA; exports.Ed = ym; exports.Fd = lo; exports.Gd = vA; exports.Hd = OA; exports.Id = hm; exports.Jd = mo; exports.Kd = kA; exports.Ld = GA; exports.Md = Cm; exports.Nd = fo; exports.Od = MA; exports.Pd = qA; exports.Qd = Am; exports.Rd = co; exports.Sd = NA; exports.Td = UA; exports.Ud = Im; exports.Vd = xq; exports.Wd = bq; exports.Xd = Pm; exports.Yd = Em; exports.Zd = _n; exports._d = bm; exports.$d = wm; exports.ae = Rm; exports.be = JA; exports.ce = XA; exports.de = kn; exports.ee = oI; exports.fe = Gn; exports.ge = $m; exports.he = Dm; exports.ie = aI; exports.je = ZN; exports.ke = pI; exports.le = uI; exports.me = vm; exports.ne = mI; exports.oe = fI; exports.pe = km; exports.qe = dI; exports.re = gI; exports.se = OU; exports.te = UU; exports.ue = hI; exports.ve = KU; exports.we = AI; exports.xe = Mm; exports.ye = eF; exports.ze = nF; exports.Ae = pF; exports.Be = fF; exports.Ce = yF; exports.De = IF; exports.Ee = PF; exports.Fe = OF; exports.Ge = kF; exports.He = LI; exports.Ie = BF; exports.Je = jF; exports.Ke = vI; exports.Le = XF; exports.Me = oB; exports.Ne = sB; exports.Oe = pB; exports.Pe = fB; exports.Qe = yB; exports.Re = hB; exports.Se = xB; exports.Te = EB; exports.Ue = bB; exports.Ve = DB; exports.We = OB;
2830
- /*! Bundled license information:
2831
-
2832
- lodash-es/lodash.js:
2833
- (**
2834
- * @license
2835
- * Lodash (Custom Build) <https://lodash.com/>
2836
- * Build: `lodash modularize exports="es" -o ./`
2837
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
2838
- * Released under MIT license <https://lodash.com/license>
2839
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
2840
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
2841
- *)
2842
- */
2843
- //# sourceMappingURL=chunk-NOF6QHE4.cjs.map