@transcend-io/cli 8.28.0 → 8.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -2
- package/dist/bin/bash-complete.cjs +1 -1
- package/dist/bin/cli.cjs +1 -1
- package/dist/bin/deprecated-command.cjs +2 -2
- package/dist/{chunk-THOOR2KA.cjs → chunk-4WBBQCOV.cjs} +4 -4
- package/dist/{chunk-THOOR2KA.cjs.map → chunk-4WBBQCOV.cjs.map} +1 -1
- package/dist/{chunk-I7PFP5VB.cjs → chunk-4Y7PZGF3.cjs} +2 -2
- package/dist/{chunk-I7PFP5VB.cjs.map → chunk-4Y7PZGF3.cjs.map} +1 -1
- package/dist/chunk-56COHDFT.cjs +3001 -0
- package/dist/chunk-56COHDFT.cjs.map +1 -0
- package/dist/{chunk-K4TIJ3VM.cjs → chunk-5IHV6OHB.cjs} +2 -2
- package/dist/{chunk-K4TIJ3VM.cjs.map → chunk-5IHV6OHB.cjs.map} +1 -1
- package/dist/{chunk-EYOQLGDV.cjs → chunk-A3GRLGNU.cjs} +2 -2
- package/dist/{chunk-EYOQLGDV.cjs.map → chunk-A3GRLGNU.cjs.map} +1 -1
- package/dist/{chunk-AEL3DOYI.cjs → chunk-BAQ45VZI.cjs} +2 -2
- package/dist/{chunk-AEL3DOYI.cjs.map → chunk-BAQ45VZI.cjs.map} +1 -1
- package/dist/{chunk-FER7XKVN.cjs → chunk-BKPEELIQ.cjs} +2 -2
- package/dist/{chunk-FER7XKVN.cjs.map → chunk-BKPEELIQ.cjs.map} +1 -1
- package/dist/{chunk-JFZPP4VV.cjs → chunk-BQSBPO63.cjs} +3 -3
- package/dist/{chunk-JFZPP4VV.cjs.map → chunk-BQSBPO63.cjs.map} +1 -1
- package/dist/{chunk-LCDYXJN6.cjs → chunk-FHUHBSLE.cjs} +2 -2
- package/dist/{chunk-LCDYXJN6.cjs.map → chunk-FHUHBSLE.cjs.map} +1 -1
- package/dist/{chunk-CQT5QQ3U.cjs → chunk-GNEZHNUR.cjs} +2 -2
- package/dist/{chunk-CQT5QQ3U.cjs.map → chunk-GNEZHNUR.cjs.map} +1 -1
- package/dist/chunk-J5ZSDYK2.cjs +4 -0
- package/dist/chunk-J5ZSDYK2.cjs.map +1 -0
- package/dist/{chunk-ECGHWDVP.cjs → chunk-LU3DKRNK.cjs} +2 -2
- package/dist/chunk-LU3DKRNK.cjs.map +1 -0
- package/dist/{chunk-4PQ4RHUG.cjs → chunk-OSRNUQQ5.cjs} +4 -4
- package/dist/{chunk-4PQ4RHUG.cjs.map → chunk-OSRNUQQ5.cjs.map} +1 -1
- package/dist/{chunk-Q7I37FJV.cjs → chunk-T3BBQIRY.cjs} +2 -2
- package/dist/chunk-T3BBQIRY.cjs.map +1 -0
- package/dist/{chunk-Y35YHYXP.cjs → chunk-U7B2ZKV5.cjs} +21 -21
- package/dist/{chunk-Y35YHYXP.cjs.map → chunk-U7B2ZKV5.cjs.map} +1 -1
- package/dist/{chunk-YKGS253B.cjs → chunk-XSKGXUIG.cjs} +6 -6
- package/dist/{chunk-YKGS253B.cjs.map → chunk-XSKGXUIG.cjs.map} +1 -1
- package/dist/{chunk-RNZ72QMS.cjs → chunk-XURR4JGE.cjs} +2 -2
- package/dist/{chunk-RNZ72QMS.cjs.map → chunk-XURR4JGE.cjs.map} +1 -1
- package/dist/{chunk-L7Z4PFRC.cjs → chunk-ZPCV7RA2.cjs} +2 -2
- package/dist/{chunk-L7Z4PFRC.cjs.map → chunk-ZPCV7RA2.cjs.map} +1 -1
- package/dist/{impl-YWJCIRTP.cjs → impl-5IZGOLMG.cjs} +2 -2
- package/dist/{impl-YWJCIRTP.cjs.map → impl-5IZGOLMG.cjs.map} +1 -1
- package/dist/impl-5KE7PF4S.cjs +2 -0
- package/dist/{impl-PXT7QNSR.cjs.map → impl-5KE7PF4S.cjs.map} +1 -1
- package/dist/{impl-ZTZHVQYY.cjs → impl-63RUFEPF.cjs} +2 -2
- package/dist/{impl-ZTZHVQYY.cjs.map → impl-63RUFEPF.cjs.map} +1 -1
- package/dist/{impl-MBEVWSPX.cjs → impl-CYS34PCP.cjs} +2 -2
- package/dist/{impl-MBEVWSPX.cjs.map → impl-CYS34PCP.cjs.map} +1 -1
- package/dist/{impl-IIIT5MSV.cjs → impl-DFC7R4VO.cjs} +2 -2
- package/dist/{impl-IIIT5MSV.cjs.map → impl-DFC7R4VO.cjs.map} +1 -1
- package/dist/{impl-55NL4KOI.cjs → impl-DLADC4DX.cjs} +2 -2
- package/dist/{impl-55NL4KOI.cjs.map → impl-DLADC4DX.cjs.map} +1 -1
- package/dist/{impl-W35DMTQV.cjs → impl-EA6F65XG.cjs} +2 -2
- package/dist/{impl-W35DMTQV.cjs.map → impl-EA6F65XG.cjs.map} +1 -1
- package/dist/{impl-ANXIZT7S.cjs → impl-ECHPUQTL.cjs} +2 -2
- package/dist/{impl-ANXIZT7S.cjs.map → impl-ECHPUQTL.cjs.map} +1 -1
- package/dist/{impl-3YAJ7ZV3.cjs → impl-EE3BM53W.cjs} +2 -2
- package/dist/{impl-3YAJ7ZV3.cjs.map → impl-EE3BM53W.cjs.map} +1 -1
- package/dist/{impl-SVEK74IU.cjs → impl-FLUPS5AF.cjs} +2 -2
- package/dist/{impl-SVEK74IU.cjs.map → impl-FLUPS5AF.cjs.map} +1 -1
- package/dist/{impl-NCUMPL6B.cjs → impl-HMJ3RSYJ.cjs} +4 -4
- package/dist/{impl-NCUMPL6B.cjs.map → impl-HMJ3RSYJ.cjs.map} +1 -1
- package/dist/impl-HS3DVOVZ.cjs +2 -0
- package/dist/{impl-AP2ZTYJK.cjs.map → impl-HS3DVOVZ.cjs.map} +1 -1
- package/dist/{impl-NISL4HZY.cjs → impl-J4AIXCOM.cjs} +2 -2
- package/dist/{impl-NISL4HZY.cjs.map → impl-J4AIXCOM.cjs.map} +1 -1
- package/dist/{impl-SDQ6LUZD.cjs → impl-KGPFOOKN.cjs} +2 -2
- package/dist/{impl-SDQ6LUZD.cjs.map → impl-KGPFOOKN.cjs.map} +1 -1
- package/dist/{impl-DDQQGOQ3.cjs → impl-L5C2RKOS.cjs} +2 -2
- package/dist/{impl-DDQQGOQ3.cjs.map → impl-L5C2RKOS.cjs.map} +1 -1
- package/dist/{impl-7B7QDZZJ.cjs → impl-MLVDLR4J.cjs} +2 -2
- package/dist/{impl-7B7QDZZJ.cjs.map → impl-MLVDLR4J.cjs.map} +1 -1
- package/dist/impl-NA2AMJMD.cjs +2 -0
- package/dist/{impl-PE52QYSI.cjs.map → impl-NA2AMJMD.cjs.map} +1 -1
- package/dist/impl-NNSUFZJQ.cjs +3 -0
- package/dist/{impl-LDOILOAQ.cjs.map → impl-NNSUFZJQ.cjs.map} +1 -1
- package/dist/{impl-A6W2KTYL.cjs → impl-O752JHWB.cjs} +2 -2
- package/dist/{impl-A6W2KTYL.cjs.map → impl-O752JHWB.cjs.map} +1 -1
- package/dist/{impl-YJ6UUT4D.cjs → impl-P2XOCDM2.cjs} +2 -2
- package/dist/{impl-YJ6UUT4D.cjs.map → impl-P2XOCDM2.cjs.map} +1 -1
- package/dist/{impl-UC5CCT6E.cjs → impl-PC5SSKN6.cjs} +3 -3
- package/dist/{impl-UC5CCT6E.cjs.map → impl-PC5SSKN6.cjs.map} +1 -1
- package/dist/impl-QHSBTADS.cjs +2 -0
- package/dist/{impl-LQEYNOZS.cjs.map → impl-QHSBTADS.cjs.map} +1 -1
- package/dist/{impl-DT5KLE2G.cjs → impl-QZYAF6M6.cjs} +3 -3
- package/dist/{impl-DT5KLE2G.cjs.map → impl-QZYAF6M6.cjs.map} +1 -1
- package/dist/{impl-D7R3HZEC.cjs → impl-R4LLNQUP.cjs} +5 -5
- package/dist/{impl-D7R3HZEC.cjs.map → impl-R4LLNQUP.cjs.map} +1 -1
- package/dist/{impl-YHBNKYSL.cjs → impl-SHD5SUBY.cjs} +2 -2
- package/dist/{impl-YHBNKYSL.cjs.map → impl-SHD5SUBY.cjs.map} +1 -1
- package/dist/{impl-DVE332P5.cjs → impl-THXX4NLG.cjs} +2 -2
- package/dist/{impl-DVE332P5.cjs.map → impl-THXX4NLG.cjs.map} +1 -1
- package/dist/{impl-XHO6WQ2I.cjs → impl-TMXHKQO3.cjs} +2 -2
- package/dist/{impl-XHO6WQ2I.cjs.map → impl-TMXHKQO3.cjs.map} +1 -1
- package/dist/{impl-AZYBYV3X.cjs → impl-TPG3AZ2K.cjs} +2 -2
- package/dist/{impl-AZYBYV3X.cjs.map → impl-TPG3AZ2K.cjs.map} +1 -1
- package/dist/{impl-SVPD3IHV.cjs → impl-TR2HDZHR.cjs} +2 -2
- package/dist/{impl-SVPD3IHV.cjs.map → impl-TR2HDZHR.cjs.map} +1 -1
- package/dist/{impl-LKJFVX7E.cjs → impl-ULIJEGGC.cjs} +2 -2
- package/dist/{impl-LKJFVX7E.cjs.map → impl-ULIJEGGC.cjs.map} +1 -1
- package/dist/{impl-BL4XQEFX.cjs → impl-UNS2BXR7.cjs} +2 -2
- package/dist/{impl-BL4XQEFX.cjs.map → impl-UNS2BXR7.cjs.map} +1 -1
- package/dist/impl-VUTJ4QIY.cjs +2 -0
- package/dist/{impl-ALROZNDJ.cjs.map → impl-VUTJ4QIY.cjs.map} +1 -1
- package/dist/{impl-DXAKJNLZ.cjs → impl-WX2ULFZZ.cjs} +2 -2
- package/dist/{impl-DXAKJNLZ.cjs.map → impl-WX2ULFZZ.cjs.map} +1 -1
- package/dist/impl-XDFFTHEP.cjs +2 -0
- package/dist/{impl-M5QGTDLF.cjs.map → impl-XDFFTHEP.cjs.map} +1 -1
- package/dist/{impl-VZ6NJDAV.cjs → impl-XGCU7DCJ.cjs} +2 -2
- package/dist/{impl-VZ6NJDAV.cjs.map → impl-XGCU7DCJ.cjs.map} +1 -1
- package/dist/{impl-OFRMKTX5.cjs → impl-XPEPCZ67.cjs} +2 -2
- package/dist/{impl-OFRMKTX5.cjs.map → impl-XPEPCZ67.cjs.map} +1 -1
- package/dist/impl-XTRGFE33.cjs +2 -0
- package/dist/{impl-B7ODYIUX.cjs.map → impl-XTRGFE33.cjs.map} +1 -1
- package/dist/impl-XZYXPW67.cjs +2 -0
- package/dist/{impl-BDPD5CCN.cjs.map → impl-XZYXPW67.cjs.map} +1 -1
- package/dist/{impl-IFDUZGZM.cjs → impl-YLR5VYIP.cjs} +2 -2
- package/dist/{impl-IFDUZGZM.cjs.map → impl-YLR5VYIP.cjs.map} +1 -1
- package/dist/{impl-H2BRV4GP.cjs → impl-YTBJQDU6.cjs} +2 -2
- package/dist/{impl-H2BRV4GP.cjs.map → impl-YTBJQDU6.cjs.map} +1 -1
- package/dist/{impl-UZPP5VK5.cjs → impl-ZAXHTVRF.cjs} +2 -2
- package/dist/{impl-UZPP5VK5.cjs.map → impl-ZAXHTVRF.cjs.map} +1 -1
- package/dist/{impl-JPVEFSJB.cjs → impl-ZXJQNHSF.cjs} +2 -2
- package/dist/{impl-JPVEFSJB.cjs.map → impl-ZXJQNHSF.cjs.map} +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10867 -5
- package/package.json +1 -1
- package/dist/chunk-7PF5VVAF.cjs +0 -4
- package/dist/chunk-7PF5VVAF.cjs.map +0 -1
- package/dist/chunk-ECGHWDVP.cjs.map +0 -1
- package/dist/chunk-KUBXRT3V.cjs +0 -2979
- package/dist/chunk-KUBXRT3V.cjs.map +0 -1
- package/dist/chunk-Q7I37FJV.cjs.map +0 -1
- package/dist/impl-ALROZNDJ.cjs +0 -2
- package/dist/impl-AP2ZTYJK.cjs +0 -2
- package/dist/impl-B7ODYIUX.cjs +0 -2
- package/dist/impl-BDPD5CCN.cjs +0 -2
- package/dist/impl-LDOILOAQ.cjs +0 -3
- package/dist/impl-LQEYNOZS.cjs +0 -2
- package/dist/impl-M5QGTDLF.cjs +0 -2
- package/dist/impl-PE52QYSI.cjs +0 -2
- package/dist/impl-PXT7QNSR.cjs +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkA3GRLGNUcjs = require('./chunk-A3GRLGNU.cjs');function f(p,{adTechPurposes:m=["SaleOfInfo"],serviceToTitle:s,serviceToSupportedIntegration:r}){let e=[],i=[],n={};p.forEach(t=>{let{service:a,attributes:c=[]}=t;if(!a||a==="internalService")return;let u=c.find(o=>o.key==="Found on Domain");u&&(n[a]||(n[a]=[]),n[a].push(...u.values.map(o=>o.replace("https://","").replace("http://",""))),n[a]=[...new Set(n[a])]),_chunkA3GRLGNUcjs.i.call(void 0, t.trackingPurposes,m).length>0?(i.push(a),e.includes(a)&&(e=e.filter(o=>o!==a))):i.includes(a)||e.push(a)});let h=[...new Set(i)].map(t=>({title:s[t],...r[t]?{integrationName:t}:{integrationName:"promptAPerson","outer-type":t},attributes:[{key:"Tech Type",values:["Ad Tech"]},{key:"Found On Domain",values:n[t]||[]}]}));return{siteTechDataSilos:[...new Set(e)].map(t=>({title:s[t],...r[t]?{integrationName:t}:{integrationName:"promptAPerson",outerType:t},attributes:[{key:"Tech Type",values:["Site Tech"]},{key:"Found On Domain",values:n[t]||[]}]})),adTechDataSilos:h}}exports.a = f;
|
|
2
|
+
//# sourceMappingURL=chunk-BAQ45VZI.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/cli/cli/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/cli/cli/dist/chunk-BAQ45VZI.cjs","../src/lib/consent-manager/dataFlowsToDataSilos.ts"],"names":["dataFlowsToDataSilos","inputs","adTechPurposes","serviceToTitle","serviceToSupportedIntegration","siteTechIntegrations","adTechIntegrations","serviceToFoundOnDomain","flow","service","attributes","foundOnDomain","attr","v","union_default","s","adTechDataSilos"],"mappings":"AAAA,iIAAwC,SCWxBA,CAAAA,CACdC,CAAAA,CACA,CACE,cAAA,CAAAC,CAAAA,CAAiB,CAAC,YAAY,CAAA,CAC9B,cAAA,CAAAC,CAAAA,CACA,6BAAA,CAAAC,CACF,CAAA,CASA,CAEA,IAAIC,CAAAA,CAAiC,CAAC,CAAA,CAGhCC,CAAAA,CAA+B,CAAC,CAAA,CAGhCC,CAAAA,CAAsD,CAAC,CAAA,CAG7DN,CAAAA,CAAO,OAAA,CAASO,CAAAA,EAAS,CAEvB,GAAM,CAAE,OAAA,CAAAC,CAAAA,CAAS,UAAA,CAAAC,CAAAA,CAAa,CAAC,CAAE,CAAA,CAAIF,CAAAA,CACrC,EAAA,CAAI,CAACC,CAAAA,EAAWA,CAAAA,GAAY,iBAAA,CAC1B,MAAA,CAIF,IAAME,CAAAA,CAAgBD,CAAAA,CAAW,IAAA,CAC9BE,CAAAA,EAASA,CAAAA,CAAK,GAAA,GAAQ,iBACzB,CAAA,CAGID,CAAAA,EAAAA,CACGJ,CAAAA,CAAuBE,CAAO,CAAA,EAAA,CACjCF,CAAAA,CAAuBE,CAAO,CAAA,CAAI,CAAC,CAAA,CAAA,CAErCF,CAAAA,CAAuBE,CAAO,CAAA,CAAG,IAAA,CAC/B,GAAGE,CAAAA,CAAc,MAAA,CAAO,GAAA,CAAKE,CAAAA,EAC3BA,CAAAA,CAAE,OAAA,CAAQ,UAAA,CAAY,EAAE,CAAA,CAAE,OAAA,CAAQ,SAAA,CAAW,EAAE,CACjD,CACF,CAAA,CACAN,CAAAA,CAAuBE,CAAO,CAAA,CAAI,CAChC,GAAG,IAAI,GAAA,CAAIF,CAAAA,CAAuBE,CAAO,CAAC,CAC5C,CAAA,CAAA,CAIEK,iCAAAA,CAAMN,CAAK,gBAAA,CAAkBN,CAAc,CAAA,CAAE,MAAA,CAAS,CAAA,CAAA,CAExDI,CAAAA,CAAmB,IAAA,CAAKG,CAAO,CAAA,CAG3BJ,CAAAA,CAAqB,QAAA,CAASI,CAAO,CAAA,EAAA,CACvCJ,CAAAA,CAAuBA,CAAAA,CAAqB,MAAA,CACzCU,CAAAA,EAAMA,CAAAA,GAAMN,CACf,CAAA,CAAA,CAAA,CAEQH,CAAAA,CAAmB,QAAA,CAASG,CAAO,CAAA,EAE7CJ,CAAAA,CAAqB,IAAA,CAAKI,CAAO,CAErC,CAAC,CAAA,CAGD,IAAMO,CAAAA,CAAkB,CAAC,GAAG,IAAI,GAAA,CAAIV,CAAkB,CAAC,CAAA,CAAE,GAAA,CAAKG,CAAAA,EAAAA,CAAa,CACzE,KAAA,CAAON,CAAAA,CAAeM,CAAO,CAAA,CAC7B,GAAIL,CAAAA,CAA8BK,CAAO,CAAA,CACrC,CAAE,eAAA,CAAiBA,CAAQ,CAAA,CAC3B,CAAE,eAAA,CAAiB,eAAA,CAAiB,YAAA,CAAcA,CAAQ,CAAA,CAC9D,UAAA,CAAY,CACV,CACE,GAAA,CAAK,WAAA,CACL,MAAA,CAAQ,CAAC,SAAS,CACpB,CAAA,CACA,CACE,GAAA,CAAK,iBAAA,CACL,MAAA,CAAQF,CAAAA,CAAuBE,CAAO,CAAA,EAAK,CAAC,CAC9C,CACF,CACF,CAAA,CAAE,CAAA,CAsBF,MAAO,CACL,iBAAA,CApBwB,CAAC,GAAG,IAAI,GAAA,CAAIJ,CAAoB,CAAC,CAAA,CAAE,GAAA,CAC1DI,CAAAA,EAAAA,CAAa,CACZ,KAAA,CAAON,CAAAA,CAAeM,CAAO,CAAA,CAC7B,GAAIL,CAAAA,CAA8BK,CAAO,CAAA,CACrC,CAAE,eAAA,CAAiBA,CAAQ,CAAA,CAC3B,CAAE,eAAA,CAAiB,eAAA,CAAiB,SAAA,CAAWA,CAAQ,CAAA,CAC3D,UAAA,CAAY,CACV,CACE,GAAA,CAAK,WAAA,CACL,MAAA,CAAQ,CAAC,WAAW,CACtB,CAAA,CACA,CACE,GAAA,CAAK,iBAAA,CACL,MAAA,CAAQF,CAAAA,CAAuBE,CAAO,CAAA,EAAK,CAAC,CAC9C,CACF,CACF,CAAA,CACF,CAAA,CAIE,eAAA,CAAAO,CACF,CACF,CAAA,cAAA","file":"/home/runner/work/cli/cli/dist/chunk-BAQ45VZI.cjs","sourcesContent":[null,"import { DataFlowInput, DataSiloInput } from '../../codecs';\nimport { union } from 'lodash-es';\nimport { IndexedCatalogs } from '../graphql';\n\n/**\n * Convert data flow configurations into a set of data silo configurations\n *\n * @param inputs - Data flow input to convert to data silos\n * @param options - Additional options\n * @returns Business entity configuration input\n */\nexport function dataFlowsToDataSilos(\n inputs: DataFlowInput[],\n {\n adTechPurposes = ['SaleOfInfo'],\n serviceToTitle,\n serviceToSupportedIntegration,\n }: IndexedCatalogs & {\n /** List of purposes that are considered \"Ad Tech\" */\n adTechPurposes?: string[];\n },\n): {\n /** List of data silo configurations for site-tech services */\n siteTechDataSilos: DataSiloInput[];\n /** List of data silo configurations for ad-tech services */\n adTechDataSilos: DataSiloInput[];\n} {\n // List of site tech integrations\n let siteTechIntegrations: string[] = [];\n\n // List of ad tech integrations\n const adTechIntegrations: string[] = [];\n\n // Mapping from service name to list of\n const serviceToFoundOnDomain: { [k in string]: string[] } = {};\n\n // iterate over each flow\n inputs.forEach((flow) => {\n // process data flows with services\n const { service, attributes = [] } = flow;\n if (!service || service === 'internalService') {\n return;\n }\n\n // create mapping to found on domain\n const foundOnDomain = attributes.find(\n (attr) => attr.key === 'Found on Domain',\n );\n\n // Create a list of all domains where the data flow was found\n if (foundOnDomain) {\n if (!serviceToFoundOnDomain[service]) {\n serviceToFoundOnDomain[service] = [];\n }\n serviceToFoundOnDomain[service]!.push(\n ...foundOnDomain.values.map((v) =>\n v.replace('https://', '').replace('http://', ''),\n ),\n );\n serviceToFoundOnDomain[service] = [\n ...new Set(serviceToFoundOnDomain[service]),\n ];\n }\n\n // Keep track of ad tech\n if (union(flow.trackingPurposes, adTechPurposes).length > 0) {\n // add service to ad tech list\n adTechIntegrations.push(service);\n\n // remove from site tech list\n if (siteTechIntegrations.includes(service)) {\n siteTechIntegrations = siteTechIntegrations.filter(\n (s) => s !== service,\n );\n }\n } else if (!adTechIntegrations.includes(service)) {\n // add to site tech list\n siteTechIntegrations.push(service);\n }\n });\n\n // create the list of ad tech integrations\n const adTechDataSilos = [...new Set(adTechIntegrations)].map((service) => ({\n title: serviceToTitle[service],\n ...(serviceToSupportedIntegration[service]\n ? { integrationName: service }\n : { integrationName: 'promptAPerson', 'outer-type': service }),\n attributes: [\n {\n key: 'Tech Type',\n values: ['Ad Tech'],\n },\n {\n key: 'Found On Domain',\n values: serviceToFoundOnDomain[service] || [],\n },\n ],\n }));\n\n // create the list of site tech integrations\n const siteTechDataSilos = [...new Set(siteTechIntegrations)].map(\n (service) => ({\n title: serviceToTitle[service],\n ...(serviceToSupportedIntegration[service]\n ? { integrationName: service }\n : { integrationName: 'promptAPerson', outerType: service }),\n attributes: [\n {\n key: 'Tech Type',\n values: ['Site Tech'],\n },\n {\n key: 'Found On Domain',\n values: serviceToFoundOnDomain[service] || [],\n },\n ],\n }),\n );\n\n return {\n siteTechDataSilos,\n adTechDataSilos,\n };\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunkA3GRLGNUcjs = require('./chunk-A3GRLGNU.cjs');var _chunkT3BBQIRYcjs = require('./chunk-T3BBQIRY.cjs');var _core = require('@stricli/core');var _privacytypes = require('@transcend-io/privacy-types');var _ms = require('ms'); var _ms2 = _interopRequireDefault(_ms);function S(e){if(!/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e))throw new Error(`Invalid UUID format: ${e}`);return e}function n(e){try{return new URL(e).toString().replace(/\/$/,"")}catch (e2){throw new Error(`Invalid URL format: ${e}`)}}function T(e){return e.split(",").map(r=>r.trim()).filter(r=>r.length>0)}function y(e){let r=new Date(e);if(Number.isNaN(r.getTime()))throw new TypeError(`Invalid date: ${e}. Try using the ISO 8601 format (YYYY-MM-DDTHH:MM:SS.SSSZ)`);return r}function k(e){if(typeof e=="number"&&Number.isFinite(e))return Math.round(e*1e3);if(typeof e=="string"){let r=e.trim();if(r==="")throw new Error('Invalid duration. Examples: "45", "2d", "1h", "90 minutes", "10s".');let t=Number(r);if(r!==""&&Number.isFinite(t))return Math.round(t*1e3);let a;try{a=_ms2.default.call(void 0, r)}catch (e3){throw new Error('Invalid duration. Examples: "45", "2d", "1h", "90 minutes", "10s".')}if(typeof a=="number"&&Number.isFinite(a))return a}throw new Error('Invalid duration. Examples: "45", "2d", "1h", "90 minutes", "10s".')}var d=({scopes:e,requiresSiloScope:r=!1})=>{let t={kind:"parsed",parse:String,brief:"The Transcend API key."};return r&&(t.brief+=" This key must be associated with the data silo(s) being operated on."),e==="Varies"?{...t,brief:`${t.brief} The scopes required will vary depending on the operation performed. If in doubt, the ${_privacytypes.TRANSCEND_SCOPES[_privacytypes.ScopeName.FullAdmin].title} scope will always work.`}:e.length===0?{...t,brief:`${t.brief} No scopes are required for this command.`}:{...t,brief:`${t.brief} Requires scopes: ${e.map(a=>`"${_privacytypes.TRANSCEND_SCOPES[a].title}"`).join(", ")}`}},u= exports.f =(e=_chunkA3GRLGNUcjs.r)=>({kind:"parsed",parse:n,brief:"URL of the Transcend backend. Use https://api.us.transcend.io for US hosting",default:e}),x= exports.g =(e=_chunkA3GRLGNUcjs.s)=>({kind:"parsed",parse:n,brief:"URL of the Transcend consent backend. Use https://consent.us.transcend.io for US hosting",default:e}),A= exports.h =()=>({kind:"parsed",parse:String,brief:"The Sombra internal key, use for additional authentication when self-hosting Sombra",optional:!0});var g=["dataSilos","enrichers","templates","apiKeys"],I= exports.j =Object.values(_privacytypes.ConsentTrackerStatus),R= exports.k =_core.buildCommand.call(void 0, {loader:async()=>{let{pull:e}=await Promise.resolve().then(() => _interopRequireWildcard(require("./impl-QZYAF6M6.cjs")));return e},parameters:{flags:{auth:d({scopes:"Varies"}),resources:{kind:"enum",values:["all",...Object.values(_chunkT3BBQIRYcjs.d)],brief:`The different resource types to pull in. Defaults to ${g.join(",")}.`,variadic:",",optional:!0},file:{kind:"parsed",parse:String,brief:"Path to the YAML file to pull into",default:"./transcend.yml"},transcendUrl:u(),dataSiloIds:{kind:"parsed",parse:String,variadic:",",brief:"The UUIDs of the data silos that should be pulled into the YAML file",optional:!0},integrationNames:{kind:"parsed",parse:String,variadic:",",brief:"The types of integrations to pull down",optional:!0},trackerStatuses:{kind:"enum",values:Object.values(_privacytypes.ConsentTrackerStatus),variadic:",",brief:"The statuses of consent manager trackers to pull down. Defaults to all statuses.",optional:!0},pageSize:{kind:"parsed",parse:_core.numberParser,brief:"The page size to use when paginating over the API",default:"50"},skipDatapoints:{kind:"boolean",brief:"When true, skip pulling in datapoints alongside data silo resource",default:!1},skipSubDatapoints:{kind:"boolean",brief:"When true, skip pulling in subDatapoints alongside data silo resource",default:!1},includeGuessedCategories:{kind:"boolean",brief:"When true, included guessed data categories that came from the content classifier",default:!1},debug:{kind:"boolean",brief:"Set to true to include debug logs while pulling the configuration",default:!1}}},docs:{brief:"Pull metadata from Transcend into transcend.yml",fullDescription:`Generates a transcend.yml by pulling the configuration from your Transcend instance.
|
|
2
2
|
|
|
3
3
|
The API key needs various scopes depending on the resources being pulled (see the CLI's README for more details).
|
|
4
4
|
|
|
@@ -6,4 +6,4 @@ This command can be helpful if you are looking to:
|
|
|
6
6
|
|
|
7
7
|
- Copy your data into another instance
|
|
8
8
|
- Generate a transcend.yml file as a starting point to maintain parts of your data inventory in code.`}});exports.a = S; exports.b = T; exports.c = y; exports.d = k; exports.e = d; exports.f = u; exports.g = x; exports.h = A; exports.i = g; exports.j = I; exports.k = R;
|
|
9
|
-
//# sourceMappingURL=chunk-
|
|
9
|
+
//# sourceMappingURL=chunk-BKPEELIQ.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/cli/cli/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/cli/cli/dist/chunk-BKPEELIQ.cjs","../src/commands/inventory/pull/command.ts","../src/lib/cli/parsers.ts"],"names":["uuidParser","input"],"mappings":"AAAA,mfAA0C,wDAAyC,qCCAxC,2DACN,gECDiB,SAStCA,CAAAA,CAAWC,CAAAA,CAAuB,CAGhD,EAAA,CAAI,CADF,4EAAA,CACa,IAAA,CAAKA,CAAK,CAAA,CACvB,MAAM,IAAI,KAAA,CAAM,CAAA,qBAAA,EAAwBA,CAAK,CAAA,CAAA;ADwF5B;AAAA;AAAA;AAAA;AAAA;AAAA;AASpB,qGAAA","file":"/home/runner/work/cli/cli/dist/chunk-BKPEELIQ.cjs","sourcesContent":[null,"import { buildCommand, numberParser } from '@stricli/core';\nimport { ConsentTrackerStatus } from '@transcend-io/privacy-types';\nimport {\n createAuthParameter,\n createTranscendUrlParameter,\n} from '../../../lib/cli/common-parameters';\nimport { TranscendPullResource } from '../../../enums';\n\nexport const DEFAULT_TRANSCEND_PULL_RESOURCES = [\n TranscendPullResource.DataSilos,\n TranscendPullResource.Enrichers,\n TranscendPullResource.Templates,\n TranscendPullResource.ApiKeys,\n];\n\nexport const DEFAULT_CONSENT_TRACKER_STATUSES =\n Object.values(ConsentTrackerStatus);\n\nexport const pullCommand = buildCommand({\n loader: async () => {\n const { pull } = await import('./impl');\n return pull;\n },\n parameters: {\n flags: {\n auth: createAuthParameter({\n scopes: 'Varies',\n }),\n resources: {\n kind: 'enum',\n values: ['all', ...Object.values(TranscendPullResource)],\n brief: `The different resource types to pull in. Defaults to ${DEFAULT_TRANSCEND_PULL_RESOURCES.join(\n ',',\n )}.`,\n variadic: ',',\n optional: true,\n },\n file: {\n kind: 'parsed',\n parse: String,\n brief: 'Path to the YAML file to pull into',\n default: './transcend.yml',\n },\n transcendUrl: createTranscendUrlParameter(),\n dataSiloIds: {\n kind: 'parsed',\n parse: String,\n variadic: ',',\n brief:\n 'The UUIDs of the data silos that should be pulled into the YAML file',\n optional: true,\n },\n integrationNames: {\n kind: 'parsed',\n parse: String,\n variadic: ',',\n brief: 'The types of integrations to pull down',\n optional: true,\n },\n trackerStatuses: {\n kind: 'enum',\n values: Object.values(ConsentTrackerStatus),\n variadic: ',',\n brief:\n 'The statuses of consent manager trackers to pull down. Defaults to all statuses.',\n optional: true,\n },\n pageSize: {\n kind: 'parsed',\n parse: numberParser,\n brief: 'The page size to use when paginating over the API',\n default: '50',\n },\n skipDatapoints: {\n kind: 'boolean',\n brief:\n 'When true, skip pulling in datapoints alongside data silo resource',\n default: false,\n },\n skipSubDatapoints: {\n kind: 'boolean',\n brief:\n 'When true, skip pulling in subDatapoints alongside data silo resource',\n default: false,\n },\n includeGuessedCategories: {\n kind: 'boolean',\n brief:\n 'When true, included guessed data categories that came from the content classifier',\n default: false,\n },\n debug: {\n kind: 'boolean',\n brief:\n 'Set to true to include debug logs while pulling the configuration',\n default: false,\n },\n },\n },\n docs: {\n brief: 'Pull metadata from Transcend into transcend.yml',\n fullDescription: `Generates a transcend.yml by pulling the configuration from your Transcend instance.\n\nThe API key needs various scopes depending on the resources being pulled (see the CLI's README for more details).\n\nThis command can be helpful if you are looking to:\n\n- Copy your data into another instance\n- Generate a transcend.yml file as a starting point to maintain parts of your data inventory in code.`,\n },\n});\n","import ms, { type StringValue as MsStringValue } from 'ms';\n\n/**\n * Validates and returns a UUID string.\n *\n * @param input - The input string to validate as UUID\n * @returns The validated UUID string\n * @throws Error if input is not a valid UUID\n */\nexport function uuidParser(input: string): string {\n const uuidRegex =\n /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;\n if (!uuidRegex.test(input)) {\n throw new Error(`Invalid UUID format: ${input}`);\n }\n return input;\n}\n\n/**\n * Validates and returns a URL string.\n *\n * @param input - The input string to validate as URL\n * @returns The validated URL string\n * @throws Error if input is not a valid URL\n */\nexport function urlParser(input: string): string {\n try {\n const url = new URL(input);\n return url.toString().replace(/\\/$/, '');\n } catch {\n throw new Error(`Invalid URL format: ${input}`);\n }\n}\n\n/**\n * Parse a comma-separated string to array.\n * NOTE: Prefer using `variadic` for list arguments instead of this function. This should only be used for arguments which have a default value.\n *\n * @param input - The comma-separated string to parse\n * @returns Array of trimmed, non-empty strings\n */\nexport function arrayParser(input: string): string[] {\n return input\n .split(',')\n .map((s) => s.trim())\n .filter((s) => s.length > 0);\n}\n\n/**\n * Parse a date string to a Date object.\n *\n * @param input - The date string to parse\n * @returns The parsed Date object\n * @throws TypeError if input is not a valid date\n */\nexport function dateParser(input: string): Date {\n const date = new Date(input);\n if (Number.isNaN(date.getTime())) {\n throw new TypeError(\n `Invalid date: ${input}. Try using the ISO 8601 format (YYYY-MM-DDTHH:MM:SS.SSSZ)`,\n );\n }\n return date;\n}\n\n/**\n * Parse a duration string to milliseconds.\n * Accepts concise/natural-ish strings (powered by `ms`) and returns milliseconds.\n * Examples: \"3600\", \"2d\", \"1h\", \"90 minutes\", \"10s\".\n *\n * @param input - The duration to parse\n * @returns The parsed duration in milliseconds\n * @throws Error if input is not a valid duration\n */\nexport function parseDurationToMs(input: unknown): number {\n if (typeof input === 'number' && Number.isFinite(input)) {\n // backward-compat: numbers => seconds\n return Math.round(input * 1000);\n }\n\n if (typeof input === 'string') {\n const trimmed = input.trim();\n // empty string → our standardized error (avoid ms throwing its own)\n if (trimmed === '') {\n throw new Error(\n 'Invalid duration. Examples: \"45\", \"2d\", \"1h\", \"90 minutes\", \"10s\".',\n );\n }\n\n // bare numeric string => seconds (backward-compat)\n const asNumber = Number(trimmed);\n if (trimmed !== '' && Number.isFinite(asNumber)) {\n return Math.round(asNumber * 1000);\n }\n\n // let ms parse human strings\n let parsed: number | undefined;\n try {\n parsed = ms(trimmed as MsStringValue);\n } catch {\n // normalize ms' error to ours\n throw new Error(\n 'Invalid duration. Examples: \"45\", \"2d\", \"1h\", \"90 minutes\", \"10s\".',\n );\n }\n if (typeof parsed === 'number' && Number.isFinite(parsed)) {\n return parsed;\n }\n }\n\n throw new Error(\n 'Invalid duration. Examples: \"45\", \"2d\", \"1h\", \"90 minutes\", \"10s\".',\n );\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunkLU3DKRNKcjs = require('./chunk-LU3DKRNK.cjs');var _typeutils = require('@transcend-io/type-utils');var _jsyaml = require('js-yaml'); var _jsyaml2 = _interopRequireDefault(_jsyaml);var _fs = require('fs');var s=/<<parameters\.(.+?)>>/,i= exports.b ="parameters";function u(e,t,a=""){let r=e;if(Object.entries(t).forEach(([n,p])=>{r=r.split(`<<${i}.${n}>>`).join(p)}),s.test(r)){let[,n]=s.exec(r)||[];throw new Error(`Found variable that was not set: ${n}.
|
|
2
2
|
Make sure you are passing all parameters through the --${i}=${n}:value-for-param flag.
|
|
3
|
-
${a}`)}return r}function b(e,t={}){let a=_fs.readFileSync.call(void 0, e,"utf-8"),r=u(a,t,`Also check that there are no extra variables defined in your yaml: ${e}`);return _typeutils.decodeCodec.call(void 0,
|
|
4
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
${a}`)}return r}function b(e,t={}){let a=_fs.readFileSync.call(void 0, e,"utf-8"),r=u(a,t,`Also check that there are no extra variables defined in your yaml: ${e}`);return _typeutils.decodeCodec.call(void 0, _chunkLU3DKRNKcjs.ha,_jsyaml2.default.load(r))}function h(e,t){_fs.writeFileSync.call(void 0, e,_jsyaml2.default.dump(_typeutils.decodeCodec.call(void 0, _chunkLU3DKRNKcjs.ha,t)))}exports.a = s; exports.b = i; exports.c = u; exports.d = b; exports.e = h;
|
|
4
|
+
//# sourceMappingURL=chunk-BQSBPO63.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/cli/cli/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/cli/cli/dist/chunk-BQSBPO63.cjs","../src/lib/readTranscendYaml.ts"],"names":["VARIABLE_PARAMETERS_REGEXP","VARIABLE_PARAMETERS_NAME","replaceVariablesInYaml","input","variables","extraErrorMessage","contents","name","value"],"mappings":"AAAA,iOAAyC,qDCAA,iFACxB,wBAC2B,IAG/BA,CAAAA,CAA6B,uBAAA,CAC7BC,CAAAA,aAA2B,YAAA,CAWjC,SAASC,CAAAA,CACdC,CAAAA,CACAC,CAAAA,CACAC,CAAAA,CAAoB,EAAA,CACZ,CACR,IAAIC,CAAAA,CAAWH,CAAAA,CASf,EAAA,CAPA,MAAA,CAAO,OAAA,CAAQC,CAAS,CAAA,CAAE,OAAA,CAAQ,CAAC,CAACG,CAAAA,CAAMC,CAAK,CAAA,CAAA,EAAM,CACnDF,CAAAA,CAAWA,CAAAA,CACR,KAAA,CAAM,CAAA,EAAA,EAAKL,CAAwB,CAAA,CAAA,EAAIM,CAAI,CAAA,EAAA,CAAI,CAAA,CAC/C,IAAA,CAAKC,CAAK,CACf,CAAC,CAAA,CAGGR,CAAAA,CAA2B,IAAA,CAAKM,CAAQ,CAAA,CAAG,CAC7C,GAAM,CAAC,CAAEC,CAAI,CAAA,CAAIP,CAAAA,CAA2B,IAAA,CAAKM,CAAQ,CAAA,EAAK,CAAC,CAAA,CAC/D,MAAM,IAAI,KAAA,CACR,CAAA,iCAAA,EAAoCC,CAAI,CAAA;AAAA,uDAAA,EACWN,CAAwB,CAAA,CAAA,EAAIM,CAAI,CAAA;AAAA,EACvFF,CAAiB,CAAA,CAAA","file":"/home/runner/work/cli/cli/dist/chunk-BQSBPO63.cjs","sourcesContent":[null,"import { decodeCodec, ObjByString } from '@transcend-io/type-utils';\nimport yaml from 'js-yaml';\nimport { readFileSync, writeFileSync } from 'node:fs';\nimport { TranscendInput } from '../codecs';\n\nexport const VARIABLE_PARAMETERS_REGEXP = /<<parameters\\.(.+?)>>/;\nexport const VARIABLE_PARAMETERS_NAME = 'parameters';\n\n/**\n * Function that replaces variables in a text file.\n * Throws error if there are variables that have not been replaced\n *\n * @param input - Input text\n * @param variables - Variables to replace\n * @param extraErrorMessage - Additional error message text\n * @returns Output text\n */\nexport function replaceVariablesInYaml(\n input: string,\n variables: ObjByString,\n extraErrorMessage = '',\n): string {\n let contents = input;\n // Replace variables\n Object.entries(variables).forEach(([name, value]) => {\n contents = contents\n .split(`<<${VARIABLE_PARAMETERS_NAME}.${name}>>`)\n .join(value);\n });\n\n // Throw error if unfilled variables\n if (VARIABLE_PARAMETERS_REGEXP.test(contents)) {\n const [, name] = VARIABLE_PARAMETERS_REGEXP.exec(contents) || [];\n throw new Error(\n `Found variable that was not set: ${name}.\nMake sure you are passing all parameters through the --${VARIABLE_PARAMETERS_NAME}=${name}:value-for-param flag.\n${extraErrorMessage}`,\n );\n }\n\n return contents;\n}\n\n/**\n * Read in the contents of a yaml file and validate that the shape\n * of the yaml file matches the codec API\n *\n * @param filePath - Path to yaml file\n * @param variables - Variables to fill in\n * @returns The contents of the yaml file, type-checked\n */\nexport function readTranscendYaml(\n filePath: string,\n variables: ObjByString = {},\n): TranscendInput {\n // Read in contents\n const fileContents = readFileSync(filePath, 'utf-8');\n\n // Replace variables\n const replacedVariables = replaceVariablesInYaml(\n fileContents,\n variables,\n `Also check that there are no extra variables defined in your yaml: ${filePath}`,\n );\n\n // Validate shape\n return decodeCodec(TranscendInput, yaml.load(replacedVariables));\n}\n\n/**\n * Write a Transcend configuration to disk\n *\n * @param filePath - Path to yaml file\n * @param input - The input to write out\n */\nexport function writeTranscendYaml(\n filePath: string,\n input: TranscendInput,\n): void {\n writeFileSync(filePath, yaml.dump(decodeCodec(TranscendInput, input)));\n}\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
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; } }var
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
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; } }var _chunkT3BBQIRYcjs = require('./chunk-T3BBQIRY.cjs');var _iots = require('io-ts'); var e = _interopRequireWildcard(_iots); var r = _interopRequireWildcard(_iots);var _typeutils = require('@transcend-io/type-utils');var d=({TRouteName:t})=>e.type({routeName:t,enabledPolicies:e.array(_typeutils.valuesOf.call(void 0, _chunkT3BBQIRYcjs.e))});var l=({TEnabledRoutes:t})=>r.type({enabledRoutes:t});exports.a = d; exports.b = l;
|
|
2
|
+
//# sourceMappingURL=chunk-FHUHBSLE.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/cli/cli/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/cli/cli/dist/chunk-FHUHBSLE.cjs","../src/lib/helpers/buildEnabledRouteType.ts","../src/lib/helpers/buildAIIntegrationType.ts"],"names":["buildEnabledRouteType","TRouteName","valuesOf","buildAIIntegrationType","TEnabledRoutes"],"mappings":"AAAA,mZAAwC,6GCArB,qDAEM,IASZA,CAAAA,CAAwB,CAAoB,CACvD,UAAA,CAAAC,CACF,CAAA,CAAA,EAII,CAAA,CAAA,IAAA,CAAK,CACL,SAAA,CAAWA,CAAAA,CACX,eAAA,CAAmB,CAAA,CAAA,KAAA,CAAMC,iCAAAA,mBAA6B,CAAC,CACzD,CAAC,CAAA,CCpBH,IASaC,CAAAA,CAAyB,CAGpC,CACA,cAAA,CAAAC,CACF,CAAA,CAAA,EAII,CAAA,CAAA,IAAA,CAAK,CACL,aAAA,CAAeA,CACjB,CAAC,CAAA,CAAA,6BAAA","file":"/home/runner/work/cli/cli/dist/chunk-FHUHBSLE.cjs","sourcesContent":[null,"import * as t from 'io-ts';\nimport { EnabledRouteC } from '../../codecs';\nimport { valuesOf } from '@transcend-io/type-utils';\nimport { PathfinderPolicyName } from '../../enums';\n\n/**\n * Builds a custom io-ts type that represents a route allowed by the proxy\n *\n * @param TRouteName - the string with the name of the allowed route\n * @returns custom io-ts AllowedRoute type\n */\nexport const buildEnabledRouteType = <T extends t.Mixed>({\n TRouteName,\n}: {\n /** the type of the routeName property */\n TRouteName: T;\n}): EnabledRouteC<T> =>\n t.type({\n routeName: TRouteName,\n enabledPolicies: t.array(valuesOf(PathfinderPolicyName)),\n });\n","import * as t from 'io-ts';\nimport { AIIntegrationC, EnabledRouteC } from '../../codecs';\n\n/**\n * Helper to build a custom io-ts type representing an AIIntegration\n *\n * @param TEnabledRoutes - the type of the enabledRoutes for the AIIntegration type\n * @returns an AIIntegration type\n */\nexport const buildAIIntegrationType = <\n T extends t.Mixed,\n P extends t.ArrayC<EnabledRouteC<T>>,\n>({\n TEnabledRoutes,\n}: {\n /** the type of the enabledRoutes property */\n TEnabledRoutes: P;\n}): AIIntegrationC<T> =>\n t.type({\n enabledRoutes: TEnabledRoutes,\n });\n"]}
|
|
@@ -1,3 +1,3 @@
|
|
|
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 }; }var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunk56COHDFTcjs = require('./chunk-56COHDFT.cjs');var _chunkZUNVPK23cjs = require('./chunk-ZUNVPK23.cjs');var _chunkA3GRLGNUcjs = require('./chunk-A3GRLGNU.cjs');var _privacytypes = require('@transcend-io/privacy-types');var _bluebird = require('bluebird');var _colors = require('colors'); var _colors2 = _interopRequireDefault(_colors);async function te({file:u,auth:s,sombraAuth:g,requestActions:f=[],concurrency:p=100,transcendUrl:n=_chunkA3GRLGNUcjs.r}){let o=_chunk56COHDFTcjs.xc.call(void 0, n,s),e=await _chunk56COHDFTcjs.yc.call(void 0, n,s,g);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Pulling manual enrichment requests, filtered for actions: ${f.join(",")}`));let d=await _chunk56COHDFTcjs.od.call(void 0, o,{actions:f,statuses:[_privacytypes.RequestStatus.Enriching]}),i=[];await _bluebird.map.call(void 0, d,async t=>{let c=await _chunk56COHDFTcjs.id.call(void 0, o,{requestId:t.id});if(c.filter(({status:m})=>m==="ACTION_REQUIRED")){let m=await _chunk56COHDFTcjs.ld.call(void 0, o,e,{requestId:t.id});i.push({...t,requestIdentifiers:m,requestEnrichers:c})}},{concurrency:p});let l=i.map(({attributeValues:t,requestIdentifiers:c,requestEnrichers:w,...m})=>({...m,...Object.entries(_chunkA3GRLGNUcjs.d.call(void 0, c,"name")).reduce((I,[P,$])=>Object.assign(I,{[P]:$.map(({value:C})=>C).join(",")}),{}),...Object.entries(_chunkA3GRLGNUcjs.d.call(void 0, t,"attributeKey.name")).reduce((I,[P,$])=>Object.assign(I,{[P]:$.map(({name:C})=>C).join(",")}),{})})),a=_chunkA3GRLGNUcjs.j.call(void 0, l.map(t=>Object.keys(t)).flat());return await _chunk56COHDFTcjs.rg.call(void 0, u,l,a),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully wrote ${i.length} requests to file "${u}"`)),i}var _iots = require('io-ts'); var R = _interopRequireWildcard(_iots);var T="https://app.transcend.io/privacy-requests/incoming-requests/",F= exports.b =R.record(R.string,R.string);async function M(u,{id:s,...g},f,p){if(!s){let e=`Request ID must be provided to enricher request.${p?` Found error in row: ${p}`:""}`;throw _chunkZUNVPK23cjs.a.error(_colors2.default.red(e)),new Error(e)}let n=s.toLowerCase(),o=Object.entries(g).reduce((e,[d,i])=>_chunkA3GRLGNUcjs.j.call(void 0, _chunk56COHDFTcjs.pc.call(void 0, i)).length===0?e:Object.assign(e,{[d]:_chunkA3GRLGNUcjs.j.call(void 0, _chunk56COHDFTcjs.pc.call(void 0, i)).map(a=>({value:d==="email"?a.toLowerCase():a}))}),{});try{return await u.post("v1/enrich-identifiers",{headers:{"x-transcend-request-id":n,"x-transcend-enricher-id":f},json:{enrichedIdentifiers:o}}).json(),_chunkZUNVPK23cjs.a.error(_colors2.default.green(`Successfully enriched request: ${T}${n}`)),!0}catch(e){if(typeof e.response.body=="string"&&e.response.body.includes("Cannot update a resolved RequestEnricher"))return _chunkZUNVPK23cjs.a.warn(_colors2.default.magenta(`Skipped enrichment for request: ${T}${n}, request is no longer in the enriching phase.`)),!1;throw _chunkZUNVPK23cjs.a.error(_colors2.default.red(`Failed to enricher identifiers for request with id: ${T}${n} - ${e.message} - ${e.response.body}`)),e}}async function ge({file:u,auth:s,sombraAuth:g,enricherId:f,markSilent:p,concurrency:n=100,transcendUrl:o=_chunkA3GRLGNUcjs.r}){let e=await _chunk56COHDFTcjs.yc.call(void 0, o,s,g),d=_chunk56COHDFTcjs.xc.call(void 0, o,s);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Reading "${u}" from disk`));let i=_chunk56COHDFTcjs.sc.call(void 0, u,F);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Enriching "${i.length}" privacy requests.`));let l=0,a=0,t=0;if(await _bluebird.map.call(void 0, i,async(c,w)=>{try{p&&(await _chunk56COHDFTcjs.ug.call(void 0, d,_chunk56COHDFTcjs.Z,{input:{id:c.id,isSilent:!0}}),_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Mark request as silent mode - ${c.id}`))),await M(e,c,f,w)?l+=1:a+=1}catch (e2){t+=1}},{concurrency:n}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully notified Transcend!
|
|
2
2
|
Success count: ${l}.`)),a>0&&_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Skipped count: ${a}.`)),t>0)throw _chunkZUNVPK23cjs.a.info(_colors2.default.red(`Error Count: ${t}.`)),new Error(`Failed to enrich: ${t} requests.`);return i.length}exports.a = te; exports.b = F; exports.c = M; exports.d = ge;
|
|
3
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
//# sourceMappingURL=chunk-GNEZHNUR.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/cli/cli/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/cli/cli/dist/chunk-GNEZHNUR.cjs","../src/lib/manual-enrichment/pullManualEnrichmentIdentifiersToCsv.ts","../src/lib/manual-enrichment/pushManualEnrichmentIdentifiersFromCsv.ts"],"names":["pullManualEnrichmentIdentifiersToCsv","file","auth","sombraAuth","requestActions","concurrency","transcendUrl","DEFAULT_TRANSCEND_API","client","buildTranscendGraphQLClient","sombra","createSombraGotInstance","logger","colors"],"mappings":"AAAA,mfAAgH,wDAAyC,wDAAuD,2DCAnK,oCACzB,gFACD,MA6BnB,SAAsBA,EAAAA,CAAqC,CACzD,IAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CAAiB,CAAC,CAAA,CAClB,WAAA,CAAAC,CAAAA,CAAc,GAAA,CACd,YAAA,CAAAC,CAAAA,CAAeC,mBACjB,CAAA,CAa6C,CAE3C,IAAMC,CAAAA,CAASC,kCAAAA,CAA4BH,CAAcJ,CAAI,CAAA,CACvDQ,CAAAA,CAAS,MAAMC,kCAAAA,CAAwBL,CAAcJ,CAAAA,CAAMC,CAAU,CAAA,CAE3ES,mBAAAA,CAAO,IAAA,CACLC,gBAAAA,CAAO,OAAA,CACL,CAAA,0DAAA,EAA6DT,CAAAA,CAAe,IAAA,CAC1E,GACF,CAAC,CAAA,CAAA;ACuDP,gBAAA","file":"/home/runner/work/cli/cli/dist/chunk-GNEZHNUR.cjs","sourcesContent":[null,"import { RequestAction, RequestStatus } from '@transcend-io/privacy-types';\nimport { map } from 'bluebird';\nimport colors from 'colors';\nimport { groupBy, uniq } from 'lodash-es';\nimport { DEFAULT_TRANSCEND_API } from '../../constants';\nimport { writeCsv } from '../helpers/writeCsv';\nimport {\n PrivacyRequest,\n RequestEnricher,\n RequestIdentifier,\n buildTranscendGraphQLClient,\n createSombraGotInstance,\n fetchAllRequestEnrichers,\n fetchAllRequestIdentifiers,\n fetchAllRequests,\n} from '../graphql';\nimport { logger } from '../../logger';\n\nexport interface PrivacyRequestWithIdentifiers extends PrivacyRequest {\n /** Request Enrichers */\n requestEnrichers: RequestEnricher[];\n /** Request Identifiers */\n requestIdentifiers: RequestIdentifier[];\n}\n\n/**\n * Pull the set of manual enrichment jobs to CSV\n *\n * @param options - Options\n * @returns List of requests with identifiers\n */\nexport async function pullManualEnrichmentIdentifiersToCsv({\n file,\n auth,\n sombraAuth,\n requestActions = [],\n concurrency = 100,\n transcendUrl = DEFAULT_TRANSCEND_API,\n}: {\n /** CSV file path */\n file: string;\n /** Transcend API key authentication */\n auth: string;\n /** Sombra API key */\n sombraAuth?: string;\n /** Concurrency */\n concurrency?: number;\n /** The request actions to fetch */\n requestActions?: RequestAction[];\n /** API URL for Transcend backend */\n transcendUrl?: string;\n}): Promise<PrivacyRequestWithIdentifiers[]> {\n // Find all requests made before createdAt that are in a removing data state\n const client = buildTranscendGraphQLClient(transcendUrl, auth);\n const sombra = await createSombraGotInstance(transcendUrl, auth, sombraAuth);\n\n logger.info(\n colors.magenta(\n `Pulling manual enrichment requests, filtered for actions: ${requestActions.join(\n ',',\n )}`,\n ),\n );\n\n // Pull all privacy requests\n const allRequests = await fetchAllRequests(client, {\n actions: requestActions,\n statuses: [RequestStatus.Enriching],\n });\n\n // Requests to save\n const savedRequests: PrivacyRequestWithIdentifiers[] = [];\n\n // Filter down requests to what is needed\n await map(\n allRequests,\n async (request) => {\n // Fetch enrichers\n const requestEnrichers = await fetchAllRequestEnrichers(client, {\n requestId: request.id,\n });\n\n // Check if manual enrichment exists for that request\n const hasManualEnrichment = requestEnrichers.filter(\n ({ status }) => status === 'ACTION_REQUIRED',\n );\n\n // Save request to queue\n if (hasManualEnrichment) {\n const requestIdentifiers = await fetchAllRequestIdentifiers(\n client,\n sombra,\n {\n requestId: request.id,\n },\n );\n savedRequests.push({\n ...request,\n requestIdentifiers,\n requestEnrichers,\n });\n }\n },\n {\n concurrency,\n },\n );\n\n const data = savedRequests.map(\n ({\n attributeValues,\n requestIdentifiers,\n requestEnrichers, // eslint-disable-line @typescript-eslint/no-unused-vars\n ...request\n }) => ({\n ...request,\n // flatten identifiers\n ...Object.entries(groupBy(requestIdentifiers, 'name')).reduce(\n (acc, [key, values]) =>\n Object.assign(acc, {\n [key]: values.map(({ value }) => value).join(','),\n }),\n {},\n ),\n // flatten attributes\n ...Object.entries(groupBy(attributeValues, 'attributeKey.name')).reduce(\n (acc, [key, values]) =>\n Object.assign(acc, {\n [key]: values.map(({ name }) => name).join(','),\n }),\n {},\n ),\n }),\n );\n\n // Write out to CSV\n const headers = uniq(data.map((d) => Object.keys(d)).flat());\n await writeCsv(file, data, headers);\n\n logger.info(\n colors.green(\n `Successfully wrote ${savedRequests.length} requests to file \"${file}\"`,\n ),\n );\n\n return savedRequests;\n}\n","import colors from 'colors';\nimport { map } from 'bluebird';\nimport { logger } from '../../logger';\nimport {\n UPDATE_PRIVACY_REQUEST,\n buildTranscendGraphQLClient,\n createSombraGotInstance,\n makeGraphQLRequest,\n} from '../graphql';\nimport {\n enrichPrivacyRequest,\n EnrichPrivacyRequest,\n} from './enrichPrivacyRequest';\nimport { readCsv } from '../requests';\nimport { DEFAULT_TRANSCEND_API } from '../../constants';\n\n/**\n * Push a CSV of enriched requests back into Transcend\n *\n * @param options - Options\n * @returns Number of items processed\n */\nexport async function pushManualEnrichmentIdentifiersFromCsv({\n file,\n auth,\n sombraAuth,\n enricherId,\n markSilent,\n concurrency = 100,\n transcendUrl = DEFAULT_TRANSCEND_API,\n}: {\n /** CSV file path */\n file: string;\n /** Transcend API key authentication */\n auth: string;\n /** ID of enricher being uploaded to */\n enricherId: string;\n /** Sombra API key authentication */\n sombraAuth?: string;\n /** Concurrency */\n concurrency?: number;\n /** API URL for Transcend backend */\n transcendUrl?: string;\n /** Mark requests in silent mode before enriching */\n markSilent?: boolean;\n}): Promise<number> {\n // Create sombra instance to communicate with\n const sombra = await createSombraGotInstance(transcendUrl, auth, sombraAuth);\n const client = buildTranscendGraphQLClient(transcendUrl, auth);\n\n // Read from CSV\n logger.info(colors.magenta(`Reading \"${file}\" from disk`));\n const activeResults = readCsv(file, EnrichPrivacyRequest);\n\n // Notify Transcend\n logger.info(\n colors.magenta(`Enriching \"${activeResults.length}\" privacy requests.`),\n );\n\n let successCount = 0;\n let skippedCount = 0;\n let errorCount = 0;\n\n await map(\n activeResults,\n async (request, index) => {\n try {\n // Mark requests in silent mode before a certain date\n if (markSilent) {\n await makeGraphQLRequest(client, UPDATE_PRIVACY_REQUEST, {\n input: {\n id: request.id,\n isSilent: true,\n },\n });\n\n logger.info(\n colors.magenta(`Mark request as silent mode - ${request.id}`),\n );\n }\n\n const result = await enrichPrivacyRequest(\n sombra,\n request,\n enricherId,\n index,\n );\n if (result) {\n successCount += 1;\n } else {\n skippedCount += 1;\n }\n } catch (err) {\n errorCount += 1;\n }\n },\n { concurrency },\n );\n\n logger.info(\n colors.green(\n `Successfully notified Transcend! \\n Success count: ${successCount}.`,\n ),\n );\n\n if (skippedCount > 0) {\n logger.info(colors.magenta(`Skipped count: ${skippedCount}.`));\n }\n\n if (errorCount > 0) {\n logger.info(colors.red(`Error Count: ${errorCount}.`));\n throw new Error(`Failed to enrich: ${errorCount} requests.`);\n }\n\n return activeResults.length;\n}\n"]}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _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 _chunk5IHV6OHBcjs = require('./chunk-5IHV6OHB.cjs');var _chunkZUNVPK23cjs = require('./chunk-ZUNVPK23.cjs');var _fs = require('fs');var _typeutils = require('@transcend-io/type-utils');var _privacytypes = require('@transcend-io/privacy-types');var M=/target ('|")(.*?)('|")/,j=/pod ('|")(.*?)('|")(, ('|")~> (.+?)('|")|)/,S={supportedFiles:["Podfile"],ignoreDirs:["Pods"],scanFunction:o=>{let e=_fs.readFileSync.call(void 0, o,"utf-8"),r=_typeutils.findAllWithRegex.call(void 0, {value:new RegExp(M,"g"),matches:["quote1","name","quote2"]},e),c=_typeutils.findAllWithRegex.call(void 0, {value:new RegExp(j,"g"),matches:["quote1","name","quote2","extra","quote3","version","quote4"]},e);return r.map((i,d)=>({name:i.name,type:_privacytypes.CodePackageType.CocoaPods,softwareDevelopmentKits:c.filter(p=>p.matchIndex>i.matchIndex&&(!r[d+1]||p.matchIndex<r[d+1].matchIndex)).map(p=>({name:p.name,version:p.version}))}))}};var _path = require('path');var U=/implementation( *)('|")(.+?):(.+?):(.+?|)('|")/,W=/apply plugin: *('|")(.+?)(:(.+?)|)('|")/,Y=/implementation group:( *)('|")(.+?)('|"),( *)name:( *)('|")(.+?)('|"),( *)version:( *)('|")(.+?)('|")/,V=/applicationId( *)"(.+?)"/,_={supportedFiles:["build.gradle**"],ignoreDirs:["gradle-app.setting","gradle-wrapper.jar","gradle-wrapper.properties"],scanFunction:o=>{let e=_fs.readFileSync.call(void 0, o,"utf-8"),r=_path.dirname.call(void 0, o),c=_typeutils.findAllWithRegex.call(void 0, {value:new RegExp(U,"g"),matches:["space","quote1","name","path","version","quote2"]},e),m=_typeutils.findAllWithRegex.call(void 0, {value:new RegExp(W,"g"),matches:["quote1","name","group","version","quote2"]},e),i=_typeutils.findAllWithRegex.call(void 0, {value:new RegExp(Y,"g"),matches:["space1","quote1","group","quote2","space2","space3","quote3","name","quote4","space4","space5","quote5","version","quote6"]},e),d=_typeutils.findAllWithRegex.call(void 0, {value:new RegExp(V,"g"),matches:["space","name"]},e);if(d.length>1)throw new Error(`Expected only one applicationId per file: ${o}`);return[{name:_optionalChain([d, 'access', _2 => _2[0], 'optionalAccess', _3 => _3.name])||r.split("/").pop(),softwareDevelopmentKits:[...c,...i,...m].map(p=>({name:p.name,version:p.version||void 0}))}]}};var I={supportedFiles:["package.json"],ignoreDirs:["node_modules","serverless-build","lambda-build"],scanFunction:o=>{let e=_fs.readFileSync.call(void 0, o,"utf-8"),r=_path.dirname.call(void 0, o),c=JSON.parse(e),{name:m,description:i,dependencies:d={},devDependencies:p={},optionalDependencies:n={}}=c;return[{name:m||r.split("/").pop(),description:i,softwareDevelopmentKits:[...Object.entries(d).map(([t,a])=>({name:t,version:typeof a=="string"?a:void 0})),...Object.entries(p).map(([t,a])=>({name:t,version:typeof a=="string"?a:void 0,isDevDependency:!0})),...Object.entries(n).map(([t,a])=>({name:t,version:typeof a=="string"?a:void 0}))]}]}};var ne=/(.+?)(=+)(.+)/,te=/name *= *('|")(.+?)('|")/,oe=/description *= *('|")(.+?)('|")/,x={supportedFiles:["requirements.txt"],ignoreDirs:["build","lib","lib64"],scanFunction:o=>{let e=_fs.readFileSync.call(void 0, o,"utf-8"),r=_path.dirname.call(void 0, o),m=_chunk5IHV6OHBcjs.c.call(void 0, r).find(t=>t==="setup.py"),i=m?_fs.readFileSync.call(void 0, _path.join.call(void 0, r,m),"utf-8"):void 0,d=i?(te.exec(i)||[])[2]:void 0,p=i?(oe.exec(i)||[])[2]:void 0,n=_typeutils.findAllWithRegex.call(void 0, {value:new RegExp(ne,"g"),matches:["name","equals","version"]},e);return[{name:d||r.split("/").pop(),description:p||void 0,type:_privacytypes.CodePackageType.RequirementsTxt,softwareDevelopmentKits:n.map(t=>({name:t.name,version:t.version}))}]}};var pe=/gem *('|")(.+?)('|")(, *('|")(.+?)('|")|)/,ae=/spec\.name *= *('|")(.+?)('|")/,ce=/spec\.description *= *('|")(.+?)('|")/,me=/spec\.summary *= *('|")(.+?)('|")/,D={supportedFiles:["Gemfile"],ignoreDirs:["bin"],scanFunction:o=>{let e=_fs.readFileSync.call(void 0, o,"utf-8"),r=_path.dirname.call(void 0, o),m=_chunk5IHV6OHBcjs.c.call(void 0, r).find(t=>t===".gemspec"),i=m?_fs.readFileSync.call(void 0, m,"utf-8"):void 0,d=i?(ae.exec(i)||[])[2]:void 0,p=i?(ce.exec(i)||me.exec(i)||[])[1]:void 0,n=_typeutils.findAllWithRegex.call(void 0, {value:new RegExp(pe,"g"),matches:["quote1","name","quote2","hasVersion","quote3","version","quote4"]},e);return[{name:d||r.split("/").pop(),description:p||void 0,type:_privacytypes.CodePackageType.RequirementsTxt,softwareDevelopmentKits:n.map(t=>({name:t.name,version:t.version}))}]}};var _jsyaml = require('js-yaml'); var _jsyaml2 = _interopRequireDefault(_jsyaml);function ue(o){return o.split(`
|
|
2
|
+
`).map(e=>{let r=e.indexOf("#");return r>-1&&!e.substring(0,r).includes('"')&&!e.substring(0,r).includes("'")?e.substring(0,r).trim():e}).filter(e=>e.length>0).join(`
|
|
3
|
+
`)}var v={supportedFiles:["pubspec.yml"],ignoreDirs:["build"],scanFunction:o=>{let e=_path.dirname.call(void 0, o),r=_fs.readFileSync.call(void 0, o,"utf-8"),{name:c,description:m,dev_dependencies:i={},dependencies:d={}}=_jsyaml2.default.load(ue(r));return[{name:c||e.split("/").pop(),description:m,type:_privacytypes.CodePackageType.RequirementsTxt,softwareDevelopmentKits:[...Object.entries(d).map(([p,n])=>({name:p,version:typeof n=="string"?n:typeof n=="number"?n.toString():_optionalChain([n, 'optionalAccess', _4 => _4.sdk])})),...Object.entries(i).map(([p,n])=>({name:p,version:typeof n=="string"?n:typeof n=="number"?n.toString():_optionalChain([n, 'optionalAccess', _5 => _5.sdk]),isDevDependency:!0}))]}]}};var F={supportedFiles:["composer.json"],ignoreDirs:["vendor","node_modules","cache","build","dist"],scanFunction:o=>{let e=_fs.readFileSync.call(void 0, o,"utf-8"),r=_path.dirname.call(void 0, o),c=JSON.parse(e),{name:m,description:i,require:d={},"require-dev":p={}}=c;return[{name:m||r.split("/").pop(),description:i,softwareDevelopmentKits:[...Object.entries(d).map(([n,t])=>({name:n,version:typeof t=="string"?t:void 0})),...Object.entries(p).map(([n,t])=>({name:n,version:typeof t=="string"?t:void 0,isDevDependency:!0}))]}]}};var _iots = require('io-ts'); var s = _interopRequireWildcard(_iots);var Se=s.type({pins:s.array(s.type({identity:s.string,kind:s.string,location:s.string,state:s.type({revision:s.string,version:s.string})})),version:s.number}),_e=s.type({object:s.type({pins:s.array(s.type({package:s.string,repositoryURL:s.string,state:s.type({branch:s.union([s.string,s.undefined,s.null]),revision:s.string,version:s.string})}))}),version:s.number}),A={supportedFiles:["Package.resolved"],ignoreDirs:[],scanFunction:o=>{let e=_fs.readFileSync.call(void 0, o,"utf-8");try{let r=_typeutils.decodeCodec.call(void 0, Se,e);return[{name:_path.dirname.call(void 0, o).split("/").pop()||"",type:_privacytypes.CodePackageType.Swift,softwareDevelopmentKits:r.pins.map(c=>({name:c.identity,version:c.state.version}))}]}catch(r){if(!_optionalChain([r, 'optionalAccess', _6 => _6.message, 'optionalAccess', _7 => _7.includes, 'call', _8 => _8("Failed to decode codec")]))throw r;try{let c=_typeutils.decodeCodec.call(void 0, _e,e);return[{name:_path.dirname.call(void 0, o).split("/").pop()||"",type:_privacytypes.CodePackageType.Swift,softwareDevelopmentKits:c.object.pins.map(m=>({name:m.package,version:m.state.version}))}]}catch(c){throw _optionalChain([c, 'optionalAccess', _9 => _9.message, 'optionalAccess', _10 => _10.includes, 'call', _11 => _11("Failed to decode codec")])?r:c}}}};var P="(implementation|api|kapt|ksp|debugImplementation|releaseImplementation|androidTestImplementation|testImplementation|compileOnly|runtimeOnly)",De=new RegExp(`${P}\\s*\\(\\s*["']([^"':\\s]+):([^"':\\s]+):?([^"']*)["']\\s*\\)`,"g"),ve=new RegExp(`${P}\\s*\\(\\s*platform\\(\\s*["']([^"':\\s]+):([^"':\\s]+):?([^"']*)["']\\s*\\)\\s*\\)`,"g"),Ae=new RegExp(`${P}\\s*\\(\\s*libs(?:\\.[\\w\\-\\.]+|\\[["'][^"']+["']\\])\\s*\\)`,"g"),Pe=/id\s*\(\s*["']([^"']+)["']\s*\)(?:\s*version\s*["']([^"']+)["'])?/g,Re=/apply\s*\(\s*plugin\s*=\s*["']([^"']+)["']\s*\)/g,ke=/plugins\s*\{[^}]*alias\s*\(\s*libs(?:\.plugins)?(?:\.[\w\-.]+|\[["'][^"']+["']\])\s*\)[^}]*\}/g,Ge=/applicationId\s*=\s*["']([^"']+)["']/g,Fe=/applicationId\s*\(\s*["']([^"']+)["']\s*\)/g;function u(o,e){let r=e&&e.trim().length>0&&e!=="_"?e.trim():void 0;return{name:o,version:r}}var N={supportedFiles:["**/build.gradle.kts","**/*.gradle.kts"],ignoreDirs:["gradle-app.setting","gradle-wrapper.jar","gradle-wrapper.properties"],scanFunction:o=>{let e=_fs.readFileSync.call(void 0, o,"utf-8"),r=_path.dirname.call(void 0, o),c=[..._typeutils.findAllWithRegex.call(void 0, {value:Ge,matches:["name"]},e),..._typeutils.findAllWithRegex.call(void 0, {value:Fe,matches:["name"]},e)];if(c.length>1)throw new Error(`Expected only one applicationId per file: ${o}`);let m=_optionalChain([c, 'access', _12 => _12[0], 'optionalAccess', _13 => _13.name])||r.split("/").pop(),i=[];for(let n of e.matchAll(De)){let[,,t,a,f]=n;i.push(u(`${t}:${a}`,f))}for(let n of e.matchAll(ve)){let[,,t,a,f]=n;i.push(u(`${t}:${a}`,f))}for(let n of e.matchAll(Ae)){let t=n[0].replace(/^[^(]+\(\s*/,"").replace(/\)\s*$/,"").trim();i.push(u(t))}let d=[];for(let n of e.matchAll(Pe)){let[,t,a]=n;d.push(u(t,a))}for(let n of e.matchAll(Re)){let[,t]=n;d.push(u(t))}if(ke.test(e)){let n=e.matchAll(/alias\s*\(\s*(libs(?:\.plugins)?(?:\.[\w\-.]+|\[["'][^"']+["']\]))\s*\)/g);for(let t of n)d.push(u(t[1]))}let p=[...i,...d].reduce((n,t)=>{let a=`${t.name}@@${t.version||""}`;return n.map.has(a)||(n.map.set(a,t),n.list.push(t)),n},{map:new Map,list:[]}).list;return[{name:m,softwareDevelopmentKits:p}]}};var hn={cocoaPods:S,gradle:_,javascriptPackageJson:I,pythonRequirementsTxt:x,gemfile:D,pubspec:v,swift:A},q={[_privacytypes.CodePackageType.CocoaPods]:S,[_privacytypes.CodePackageType.Gradle]:_,[_privacytypes.CodePackageType.PackageJson]:I,[_privacytypes.CodePackageType.RequirementsTxt]:x,[_privacytypes.CodePackageType.Gemfile]:D,[_privacytypes.CodePackageType.Pubspec]:v,[_privacytypes.CodePackageType.ComposerJson]:F,[_privacytypes.CodePackageType.Swift]:A,[_privacytypes.CodePackageType.Kotlin]:N};var _fastglob = require('fast-glob'); var _fastglob2 = _interopRequireDefault(_fastglob);var _colors = require('colors'); var _colors2 = _interopRequireDefault(_colors);async function Ln({scanPath:o,ignoreDirs:e=[],repositoryName:r}){return(await Promise.all(_typeutils.getEntries.call(void 0, q).map(async([m,i])=>{let{ignoreDirs:d,supportedFiles:p,scanFunction:n}=i,t=[...e,...d].filter(a=>a.length>0);try{let a=await _fastglob2.default.call(void 0, `${o}/**/${p.join("|")}`,{ignore:t.map(l=>`${o}/**/${l}`),unique:!0,onlyFiles:!0});_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Scanning: ${a.length} files of type ${m}`));let f=a.map(l=>n(l).map(K=>({...K,relativePath:l.replace(`${o}/`,"")}))).flat();return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Found: ${f.length} packages and ${f.map(({softwareDevelopmentKits:l=[]})=>l).flat().length} sdks`)),f.map(l=>({...l,type:m,repositoryName:r}))}catch(a){throw new Error(`Error scanning globs ${p} with error: ${a}`)}}))).flat()}exports.a = hn; exports.b = Ln;
|
|
4
|
+
//# sourceMappingURL=chunk-J5ZSDYK2.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/cli/cli/dist/chunk-J5ZSDYK2.cjs","../src/lib/code-scanning/integrations/cocoaPods.ts","../src/lib/code-scanning/integrations/gradle.ts","../src/lib/code-scanning/integrations/pubspec.ts","../src/lib/code-scanning/integrations/swift.ts"],"names":["POD_TARGET_REGEX","POD_PACKAGE_REGEX","cocoaPods","filePath","fileContents","readFileSync","targets","findAllWithRegex","packages","target","ind","CodePackageType","pkg","GRADLE_IMPLEMENTATION_REGEX","GRADLE_PLUGIN_REGEX","GRADLE_IMPLEMENTATION_GROUP_REGEX","GRADLE_APPLICATION_NAME_REGEX","gradle","directory","dirname","targetPlugins","targetGroups","applications"],"mappings":"AAAA,u/BAAwC,wDAAyC,wBCApD,qDAGI,2DACD,IAE1BA,CAAAA,CAAmB,wBAAA,CACnBC,CAAAA,CAAoB,4CAAA,CAEbC,CAAAA,CAAgC,CAC3C,cAAA,CAAgB,CAAC,SAAS,CAAA,CAC1B,UAAA,CAAY,CAAC,MAAM,CAAA,CACnB,YAAA,CAAeC,CAAAA,EAAa,CAC1B,IAAMC,CAAAA,CAAeC,8BAAAA,CAAaF,CAAU,OAAO,CAAA,CAE7CG,CAAAA,CAAUC,yCAAAA,CAEZ,KAAA,CAAO,IAAI,MAAA,CAAOP,CAAAA,CAAkB,GAAG,CAAA,CACvC,OAAA,CAAS,CAAC,QAAA,CAAU,MAAA,CAAQ,QAAQ,CACtC,CAAA,CACAI,CACF,CAAA,CACMI,CAAAA,CAAWD,yCAAAA,CAEb,KAAA,CAAO,IAAI,MAAA,CAAON,CAAAA,CAAmB,GAAG,CAAA,CACxC,OAAA,CAAS,CACP,QAAA,CACA,MAAA,CACA,QAAA,CACA,OAAA,CACA,QAAA,CACA,SAAA,CACA,QACF,CACF,CAAA,CACAG,CACF,CAAA,CAiBA,OAf+BE,CAAAA,CAAQ,GAAA,CAAI,CAACG,CAAAA,CAAQC,CAAAA,CAAAA,EAAAA,CAAS,CAC3D,IAAA,CAAMD,CAAAA,CAAO,IAAA,CACb,IAAA,CAAME,6BAAAA,CAAgB,SAAA,CACtB,uBAAA,CAAyBH,CAAAA,CACtB,MAAA,CACEI,CAAAA,EACCA,CAAAA,CAAI,UAAA,CAAaH,CAAAA,CAAO,UAAA,EAAA,CACvB,CAACH,CAAAA,CAAQI,CAAAA,CAAM,CAAC,CAAA,EAAKE,CAAAA,CAAI,UAAA,CAAaN,CAAAA,CAAQI,CAAAA,CAAM,CAAC,CAAA,CAAE,UAAA,CAC5D,CAAA,CACC,GAAA,CAAKE,CAAAA,EAAAA,CAAS,CACb,IAAA,CAAMA,CAAAA,CAAI,IAAA,CACV,OAAA,CAASA,CAAAA,CAAI,OACf,CAAA,CAAE,CACN,CAAA,CAAE,CAGJ,CACF,CAAA,CCvDA,4BAGwB,IAElBC,CAAAA,CACJ,gDAAA,CACIC,CAAAA,CAAsB,yCAAA,CACtBC,CAAAA,CACJ,uGAAA,CACIC,CAAAA,CAAgC,0BAAA,CAYzBC,CAAAA,CAA6B,CACxC,cAAA,CAAgB,CAAC,gBAAgB,CAAA,CACjC,UAAA,CAAY,CACV,oBAAA,CACA,oBAAA,CACA,2BACF,CAAA,CACA,YAAA,CAAed,CAAAA,EAAa,CAC1B,IAAMC,CAAAA,CAAeC,8BAAAA,CAAaF,CAAU,OAAO,CAAA,CAC7Ce,CAAAA,CAAYC,2BAAAA,CAAgB,CAAA,CAE5Bb,CAAAA,CAAUC,yCAAAA,CAEZ,KAAA,CAAO,IAAI,MAAA,CAAOM,CAAAA,CAA6B,GAAG,CAAA,CAClD,OAAA,CAAS,CAAC,OAAA,CAAS,QAAA,CAAU,MAAA,CAAQ,MAAA,CAAQ,SAAA,CAAW,QAAQ,CAClE,CAAA,CACAT,CACF,CAAA,CACMgB,CAAAA,CAAgBb,yCAAAA,CAElB,KAAA,CAAO,IAAI,MAAA,CAAOO,CAAAA,CAAqB,GAAG,CAAA,CAC1C,OAAA,CAAS,CAAC,QAAA,CAAU,MAAA,CAAQ,OAAA,CAAS,SAAA,CAAW,QAAQ,CAC1D,CAAA,CACAV,CACF,CAAA,CACMiB,CAAAA,CAAed,yCAAAA,CAEjB,KAAA,CAAO,IAAI,MAAA,CAAOQ,CAAAA,CAAmC,GAAG,CAAA,CACxD,OAAA,CAAS,CACP,QAAA,CACA,QAAA,CACA,OAAA,CACA,QAAA,CACA,QAAA,CACA,QAAA,CACA,QAAA,CACA,MAAA,CACA,QAAA,CACA,QAAA,CACA,QAAA,CACA,QAAA,CACA,SAAA,CACA,QACF,CACF,CAAA,CACAX,CACF,CAAA,CACMkB,CAAAA,CAAef,yCAAAA,CAEjB,KAAA,CAAO,IAAI,MAAA,CAAOS,CAAAA,CAA+B,GAAG,CAAA,CACpD,OAAA,CAAS,CAAC,OAAA,CAAS,MAAM,CAC3B,CAAA,CACAZ,CACF,CAAA,CACA,EAAA,CAAIkB,CAAAA,CAAa,MAAA,CAAS,CAAA,CACxB,MAAM,IAAI,KAAA,CAAM,CAAA,0CAAA,EAA6CnB,CAAQ,CAAA,CAAA;AC/CjE;ACqBsB","file":"/home/runner/work/cli/cli/dist/chunk-J5ZSDYK2.cjs","sourcesContent":[null,"import { readFileSync } from 'node:fs';\nimport { CodeScanningConfig } from '../types';\nimport { CodePackageSdk } from '../../../codecs';\nimport { findAllWithRegex } from '@transcend-io/type-utils';\nimport { CodePackageType } from '@transcend-io/privacy-types';\n\nconst POD_TARGET_REGEX = /target ('|\")(.*?)('|\")/;\nconst POD_PACKAGE_REGEX = /pod ('|\")(.*?)('|\")(, ('|\")~> (.+?)('|\")|)/;\n\nexport const cocoaPods: CodeScanningConfig = {\n supportedFiles: ['Podfile'],\n ignoreDirs: ['Pods'],\n scanFunction: (filePath) => {\n const fileContents = readFileSync(filePath, 'utf-8');\n\n const targets = findAllWithRegex(\n {\n value: new RegExp(POD_TARGET_REGEX, 'g'),\n matches: ['quote1', 'name', 'quote2'],\n },\n fileContents,\n );\n const packages = findAllWithRegex(\n {\n value: new RegExp(POD_PACKAGE_REGEX, 'g'),\n matches: [\n 'quote1',\n 'name',\n 'quote2',\n 'extra',\n 'quote3',\n 'version',\n 'quote4',\n ],\n },\n fileContents,\n );\n\n const deps: CodePackageSdk[] = targets.map((target, ind) => ({\n name: target.name,\n type: CodePackageType.CocoaPods,\n softwareDevelopmentKits: packages\n .filter(\n (pkg) =>\n pkg.matchIndex > target.matchIndex &&\n (!targets[ind + 1] || pkg.matchIndex < targets[ind + 1].matchIndex),\n )\n .map((pkg) => ({\n name: pkg.name,\n version: pkg.version,\n })),\n }));\n\n return deps;\n },\n};\n","import { readFileSync } from 'node:fs';\nimport { CodeScanningConfig } from '../types';\nimport { findAllWithRegex } from '@transcend-io/type-utils';\nimport { dirname } from 'node:path';\n\nconst GRADLE_IMPLEMENTATION_REGEX =\n /implementation( *)('|\")(.+?):(.+?):(.+?|)('|\")/;\nconst GRADLE_PLUGIN_REGEX = /apply plugin: *('|\")(.+?)(:(.+?)|)('|\")/;\nconst GRADLE_IMPLEMENTATION_GROUP_REGEX =\n /implementation group:( *)('|\")(.+?)('|\"),( *)name:( *)('|\")(.+?)('|\"),( *)version:( *)('|\")(.+?)('|\")/;\nconst GRADLE_APPLICATION_NAME_REGEX = /applicationId( *)\"(.+?)\"/;\n\n/**\n * So far, there are three ways of defining dependencies that is supported\n * implementation group: 'org.eclipse.jdt', name: 'org.eclipse.jdt.core', version: '3.28.0'\n * or\n * implementation 'com.google.firebase:firebase-analytics:18.0.0'\n * or\n * apply plugin: 'com.google.gms.google-services'\n *\n * single and double quotes are both recognized\n */\nexport const gradle: CodeScanningConfig = {\n supportedFiles: ['build.gradle**'],\n ignoreDirs: [\n 'gradle-app.setting',\n 'gradle-wrapper.jar',\n 'gradle-wrapper.properties',\n ],\n scanFunction: (filePath) => {\n const fileContents = readFileSync(filePath, 'utf-8');\n const directory = dirname(filePath);\n\n const targets = findAllWithRegex(\n {\n value: new RegExp(GRADLE_IMPLEMENTATION_REGEX, 'g'),\n matches: ['space', 'quote1', 'name', 'path', 'version', 'quote2'],\n },\n fileContents,\n );\n const targetPlugins = findAllWithRegex(\n {\n value: new RegExp(GRADLE_PLUGIN_REGEX, 'g'),\n matches: ['quote1', 'name', 'group', 'version', 'quote2'],\n },\n fileContents,\n );\n const targetGroups = findAllWithRegex(\n {\n value: new RegExp(GRADLE_IMPLEMENTATION_GROUP_REGEX, 'g'),\n matches: [\n 'space1',\n 'quote1',\n 'group',\n 'quote2',\n 'space2',\n 'space3',\n 'quote3',\n 'name',\n 'quote4',\n 'space4',\n 'space5',\n 'quote5',\n 'version',\n 'quote6',\n ],\n },\n fileContents,\n );\n const applications = findAllWithRegex(\n {\n value: new RegExp(GRADLE_APPLICATION_NAME_REGEX, 'g'),\n matches: ['space', 'name'],\n },\n fileContents,\n );\n if (applications.length > 1) {\n throw new Error(`Expected only one applicationId per file: ${filePath}`);\n }\n\n return [\n {\n name: applications[0]?.name || directory.split('/').pop()!,\n softwareDevelopmentKits: [\n ...targets,\n ...targetGroups,\n ...targetPlugins,\n ].map((target) => ({\n name: target.name,\n version: target.version || undefined,\n })),\n },\n ];\n },\n};\n","import { readFileSync } from 'node:fs';\nimport { CodeScanningConfig } from '../types';\nimport { CodePackageType } from '@transcend-io/privacy-types';\nimport yaml from 'js-yaml';\nimport { dirname } from 'node:path';\n\n/**\n * Remove YAML comments from a string\n *\n * @param yamlString - YAML string\n * @returns String without comments\n */\nfunction removeYAMLComments(yamlString: string): string {\n return yamlString\n .split('\\n')\n .map((line) => {\n // Remove inline comments\n const commentIndex = line.indexOf('#');\n if (commentIndex > -1) {\n // Check if '#' is not inside a string\n if (\n !line.substring(0, commentIndex).includes('\"') &&\n !line.substring(0, commentIndex).includes(\"'\")\n ) {\n return line.substring(0, commentIndex).trim();\n }\n }\n return line;\n })\n .filter((line) => line.length > 0)\n .join('\\n');\n}\n\nexport const pubspec: CodeScanningConfig = {\n supportedFiles: ['pubspec.yml'],\n ignoreDirs: ['build'],\n scanFunction: (filePath) => {\n const directory = dirname(filePath);\n const fileContents = readFileSync(filePath, 'utf-8');\n const {\n name,\n description,\n dev_dependencies = {},\n dependencies = {},\n } = yaml.load(removeYAMLComments(fileContents)) as {\n /** Name */\n name?: string;\n /** Description */\n description?: string;\n /** Dev dependencies */\n dev_dependencies?: { [k in string]: number | Record<string, string> };\n /** Dependencies */\n dependencies?: { [k in string]: number | Record<string, string> };\n };\n return [\n {\n name: name || directory.split('/').pop()!,\n description,\n type: CodePackageType.RequirementsTxt,\n softwareDevelopmentKits: [\n ...Object.entries(dependencies).map(([name, version]) => ({\n name,\n version:\n typeof version === 'string'\n ? version\n : typeof version === 'number'\n ? version.toString()\n : version?.sdk,\n })),\n ...Object.entries(dev_dependencies).map(([name, version]) => ({\n name,\n version:\n typeof version === 'string'\n ? version\n : typeof version === 'number'\n ? version.toString()\n : version?.sdk,\n isDevDependency: true,\n })),\n ],\n },\n ];\n },\n};\n","import { readFileSync } from 'node:fs';\nimport { CodeScanningConfig } from '../types';\nimport { CodePackageType } from '@transcend-io/privacy-types';\nimport { decodeCodec } from '@transcend-io/type-utils';\nimport * as t from 'io-ts';\nimport { dirname } from 'node:path';\n\nconst SwiftPackage = t.type({\n pins: t.array(\n t.type({\n identity: t.string,\n kind: t.string,\n location: t.string,\n state: t.type({\n revision: t.string,\n version: t.string,\n }),\n }),\n ),\n version: t.number,\n});\n\nconst SwiftPackageV1 = t.type({\n object: t.type({\n pins: t.array(\n t.type({\n package: t.string,\n repositoryURL: t.string,\n state: t.type({\n branch: t.union([t.string, t.undefined, t.null]),\n revision: t.string,\n version: t.string,\n }),\n }),\n ),\n }),\n version: t.number,\n});\n\nexport const swift: CodeScanningConfig = {\n supportedFiles: ['Package.resolved'],\n ignoreDirs: [],\n scanFunction: (filePath) => {\n const fileContents = readFileSync(filePath, 'utf-8');\n\n // Attempt latest version first\n try {\n const parsed = decodeCodec(SwiftPackage, fileContents);\n\n return [\n {\n name: dirname(filePath).split('/').pop() || '', // TODO pull from Package.swift ->> name if possible\n type: CodePackageType.Swift,\n softwareDevelopmentKits: parsed.pins.map((target) => ({\n name: target.identity,\n version: target.state.version,\n })),\n },\n ];\n } catch (e) {\n // Throw non codec errors\n if (!e?.message?.includes('Failed to decode codec')) {\n throw e;\n }\n\n // Attempt v1\n try {\n const parsed = decodeCodec(SwiftPackageV1, fileContents);\n return [\n {\n name: dirname(filePath).split('/').pop() || '', // TODO pull from Package.swift ->> name if possible\n type: CodePackageType.Swift,\n softwareDevelopmentKits: parsed.object.pins.map((target) => ({\n name: target.package,\n version: target.state.version,\n })),\n },\n ];\n } catch (e2) {\n if (!e2?.message?.includes('Failed to decode codec')) {\n throw e2;\n }\n throw e;\n }\n }\n },\n};\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
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; } }var _chunkLCDYXJN6cjs = require('./chunk-LCDYXJN6.cjs');var _chunkQ7I37FJVcjs = require('./chunk-Q7I37FJV.cjs');var _iots = require('io-ts'); var t = _interopRequireWildcard(_iots);var _typeutils = require('@transcend-io/type-utils');var _privacytypes = require('@transcend-io/privacy-types');var _airgapjstypes = require('@transcend-io/airgap.js-types');var _internationalization = require('@transcend-io/internationalization');var Tt=t.type({title:t.string}),C= exports.b =t.intersection([t.type({name:t.string,value:t.string}),t.partial({isSecret:t.boolean})]),Pt= exports.c =t.type({title:t.string}),At= exports.d =t.intersection([t.type({name:t.string,description:t.string}),t.partial({"sso-department":t.string,"sso-group":t.string,"sso-title":t.string,users:t.array(t.string),scopes:t.array(_typeutils.valuesOf.call(void 0, _privacytypes.ScopeName))})]),Ot= exports.e =t.intersection([t.type({title:t.string,"output-identifiers":t.array(t.string)}),t.partial({description:t.string,url:t.string,type:_typeutils.valuesOf.call(void 0, _privacytypes.EnricherType),"input-identifier":t.string,testRegex:t.string,lookerQueryTitle:t.string,expirationDuration:t.number,transitionRequestStatus:_typeutils.valuesOf.call(void 0, _privacytypes.PreflightRequestStatus),phoneNumbers:t.array(t.string),regionList:t.array(_typeutils.valuesOf.call(void 0, {..._privacytypes.IsoCountryCode,..._privacytypes.IsoCountrySubdivisionCode})),"data-subjects":t.array(t.string),headers:t.array(C),"privacy-actions":t.array(_typeutils.valuesOf.call(void 0, _privacytypes.RequestAction))})]),v= exports.f =t.intersection([t.type({purpose:_typeutils.valuesOf.call(void 0, _privacytypes.ProcessingPurpose)}),t.partial({name:t.string})]),p= exports.g =t.intersection([t.type({category:_typeutils.valuesOf.call(void 0, _privacytypes.DataCategoryType)}),t.partial({name:t.string})]),Ct= exports.h =t.intersection([t.type({category:p,status:_typeutils.valuesOf.call(void 0, _privacytypes.SubDataPointDataSubCategoryGuessStatus),confidence:t.number}),t.partial({classifierVersion:t.number})]),Ce= exports.i =t.intersection([t.type({category:p,status:_typeutils.valuesOf.call(void 0, _privacytypes.UnstructuredSubDataPointRecommendationStatus),confidence:t.number}),t.partial({classifierVersion:t.number})]),vt= exports.j =t.intersection([t.type({name:t.string}),t.partial({description:t.string,color:t.string})]),St= exports.k =t.intersection([t.type({name:t.string,type:_typeutils.valuesOf.call(void 0, _privacytypes.AttributeKeyType)}),t.partial({description:t.string,resources:t.array(_typeutils.valuesOf.call(void 0, _privacytypes.AttributeSupportedResourceType)),values:t.array(vt)})]),r= exports.l =t.type({key:t.string,values:t.array(t.string)}),kt= exports.m =t.intersection([t.type({name:t.string,instructions:t.string,agentId:t.string,codeInterpreterEnabled:t.boolean,retrievalEnabled:t.boolean,"large-language-model":t.type({name:t.string,client:_typeutils.valuesOf.call(void 0, _privacytypes.LargeLanguageModelClient)})}),t.partial({description:t.string,prompt:t.string,owners:t.array(t.string),teams:t.array(t.string),"agent-functions":t.array(t.string),"agent-files":t.array(t.string)})]),Rt= exports.n =t.type({name:t.string,description:t.string,parameters:t.string}),wt= exports.o =t.intersection([t.type({name:t.string,fileId:t.string,size:t.number,purpose:_typeutils.valuesOf.call(void 0, _privacytypes.PromptFilePurpose)}),t.partial({description:t.string})]),ht= exports.p =t.intersection([t.type({title:t.string}),t.partial({description:t.string,dataProcessingAgreementLink:t.string,contactName:t.string,contactPhone:t.string,address:t.string,headquarterCountry:_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountryCode),headquarterSubDivision:_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountrySubdivisionCode),websiteUrl:t.string,businessEntity:t.string,owners:t.array(t.string),teams:t.array(t.string),attributes:t.array(r)})]),Dt= exports.q =t.intersection([t.type({name:t.string,category:_typeutils.valuesOf.call(void 0, _privacytypes.DataCategoryType)}),t.partial({description:t.string,regex:t.string,owners:t.array(t.string),teams:t.array(t.string),attributes:t.array(r)})]),Et= exports.r =t.intersection([t.type({name:t.string,purpose:_typeutils.valuesOf.call(void 0, _privacytypes.ProcessingPurpose)}),t.partial({description:t.string,owners:t.array(t.string),teams:t.array(t.string),attributes:t.array(r)})]),Nt= exports.s =t.type({title:t.string,content:t.string}),Mt= exports.t =t.type({title:t.string,content:t.string}),Lt= exports.u =t.type({title:t.string,description:t.string,prompts:t.array(t.string)}),qt= exports.v =t.intersection([t.type({key:t.string}),t.partial({title:t.string,description:t.union([t.string,t.null]),purposes:t.array(v),categories:t.array(p),"guessed-categories":t.array(Ct),"access-request-visibility-enabled":t.boolean,"erasure-request-redaction-enabled":t.boolean,attributes:t.array(r)})]),Ft= exports.w =t.intersection([t.type({key:t.string}),t.partial({path:t.array(t.string),title:t.string,description:t.string,"data-collection-tag":t.string,"privacy-action-queries":t.partial(_typeutils.applyEnum.call(void 0, _privacytypes.RequestActionObjectResolver,()=>t.string)),"privacy-actions":t.array(_typeutils.valuesOf.call(void 0, _privacytypes.RequestActionObjectResolver)),fields:t.array(qt),owners:t.array(t.string),teams:t.array(t.string)})]),Vt= exports.x =t.partial({"notify-email-address":t.string,"send-frequency":t.number,"send-type":_typeutils.valuesOf.call(void 0, _privacytypes.PromptAVendorEmailSendType),"include-identifiers-attachment":t.boolean,"completion-link-type":_typeutils.valuesOf.call(void 0, _privacytypes.PromptAVendorEmailCompletionLinkType),"manual-work-retry-frequency":t.string}),Kt= exports.y =t.intersection([t.type({title:t.string}),t.partial({description:t.string,address:t.string,headquarterCountry:_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountryCode),headquarterSubDivision:_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountrySubdivisionCode),dataProtectionOfficerName:t.string,dataProtectionOfficerEmail:t.string,attributes:t.array(r),owners:t.array(t.string),teams:t.array(t.string)})]),u= exports.z =t.partial({country:_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountryCode),countrySubDivision:_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountrySubdivisionCode)}),jt= exports.A =t.intersection([t.type({title:t.string}),t.partial({description:t.string,securityMeasureDetails:t.string,controllerships:t.array(_typeutils.valuesOf.call(void 0, _privacytypes.Controllership)),storageRegions:t.array(u),transferRegions:t.array(u),retentionType:_typeutils.valuesOf.call(void 0, _privacytypes.RetentionType),retentionPeriod:t.number,dataProtectionImpactAssessmentLink:t.string,dataProtectionImpactAssessmentStatus:_typeutils.valuesOf.call(void 0, _privacytypes.DataProtectionImpactAssessmentStatus),attributes:t.array(r),dataSiloTitles:t.array(t.string),dataSubjectTypes:t.array(t.string),teamNames:t.array(t.string),ownerEmails:t.array(t.string),processingSubPurposes:t.array(v),dataSubCategories:t.array(p),saaSCategories:t.array(t.string)})]),ve= exports.B =t.intersection([t.type({name:t.string,codePackageType:_typeutils.valuesOf.call(void 0, _privacytypes.CodePackageType)}),t.partial({description:t.string,repositoryUrl:t.string,catalogIntegrationName:t.string,documentationLinks:t.array(t.string),ownerEmails:t.array(t.string),teamNames:t.array(t.string)})]),Bt= exports.C =t.intersection([t.type({name:t.string}),t.partial({version:t.string,isDevDependency:t.boolean})]),Se= exports.D =t.intersection([t.type({name:t.string,type:_typeutils.valuesOf.call(void 0, _privacytypes.CodePackageType),relativePath:t.string,repositoryName:t.string}),t.partial({description:t.string,softwareDevelopmentKits:t.array(Bt),teamNames:t.array(t.string),ownerEmails:t.array(t.string)})]),ke= exports.E =t.intersection([t.type({name:t.string,url:t.string}),t.partial({description:t.string,teamNames:t.array(t.string),ownerEmails:t.array(t.string)})]),Gt= exports.F =t.intersection([t.type({type:t.string}),t.partial({active:t.boolean,title:t.string,adminDashboardDefaultSilentMode:t.boolean,actions:t.array(_typeutils.valuesOf.call(void 0, _privacytypes.RequestAction))})]),Ut= exports.G =t.intersection([t.type({type:_typeutils.valuesOf.call(void 0, _privacytypes.RequestAction)}),t.partial({skipSecondaryIfNoFiles:t.boolean,skipDownloadableStep:t.boolean,requiresReview:t.boolean,waitingPeriod:t.number,regionDetectionMethod:_typeutils.valuesOf.call(void 0, _privacytypes.RegionDetectionMethod),regionList:t.array(_typeutils.valuesOf.call(void 0, {..._privacytypes.IsoCountryCode,..._privacytypes.IsoCountrySubdivisionCode})),regionBlockList:t.array(_typeutils.valuesOf.call(void 0, {..._privacytypes.IsoCountryCode,..._privacytypes.IsoCountrySubdivisionCode}))})]),Qt= exports.H =t.intersection([t.type({name:t.string,type:t.string}),t.partial({regex:t.string,selectOptions:t.array(t.string),privacyCenterVisibility:t.array(_typeutils.valuesOf.call(void 0, _privacytypes.RequestAction)),dataSubjects:t.array(t.string),isRequiredInForm:t.boolean,placeholder:t.string,displayTitle:t.string,displayDescription:t.string,displayOrder:t.number,isUniqueOnPreferenceStore:t.boolean})]),zt= exports.I =t.intersection([t.type({value:t.string,type:_typeutils.valuesOf.call(void 0, _privacytypes.DataFlowScope)}),t.partial({description:t.string,trackingPurposes:t.array(t.string),service:t.string,status:_typeutils.valuesOf.call(void 0, _privacytypes.ConsentTrackerStatus),owners:t.array(t.string),teams:t.array(t.string),attributes:t.array(r)})]),Ht= exports.J =t.intersection([t.type({name:t.string}),t.partial({isRegex:t.boolean,description:t.string,trackingPurposes:t.array(t.string),service:t.string,status:_typeutils.valuesOf.call(void 0, _privacytypes.ConsentTrackerStatus),owners:t.array(t.string),teams:t.array(t.string),attributes:t.array(r)})]),Wt= exports.K =t.intersection([t.type({name:t.string}),t.partial({displayName:t.string,regions:t.array(u),onConsentExpiry:_typeutils.valuesOf.call(void 0, _airgapjstypes.OnConsentExpiry),consentExpiry:t.number,operator:_typeutils.valuesOf.call(void 0, _privacytypes.RegionsOperator),displayPriority:t.number,viewState:_typeutils.valuesOf.call(void 0, _airgapjstypes.InitialViewState),purposes:t.array(t.type({trackingType:t.string})),optedOutPurposes:t.array(t.type({trackingType:t.string})),browserLanguages:t.array(_typeutils.valuesOf.call(void 0, _airgapjstypes.BrowserLanguage)),browserTimeZones:t.array(_typeutils.valuesOf.call(void 0, _privacytypes.BrowserTimeZone))})]),Yt= exports.L =t.intersection([t.type({name:t.string}),t.partial({partition:t.string})]),Zt= exports.M =t.partial({version:t.string,bundleUrls:t.record(_typeutils.valuesOf.call(void 0, _privacytypes.ConsentBundleType),t.string),domains:t.array(t.string),partition:t.string,consentPrecedence:_typeutils.valuesOf.call(void 0, _privacytypes.ConsentPrecedenceOption),unknownRequestPolicy:_typeutils.valuesOf.call(void 0, _privacytypes.UnknownRequestPolicy),unknownCookiePolicy:_typeutils.valuesOf.call(void 0, _privacytypes.UnknownRequestPolicy),syncEndpoint:t.string,telemetryPartitioning:_typeutils.valuesOf.call(void 0, _privacytypes.TelemetryPartitionStrategy),signedIabAgreement:_typeutils.valuesOf.call(void 0, _privacytypes.SignedIabAgreementOption),experiences:t.array(Wt),theme:t.partial({primaryColor:t.string,fontColor:t.string,privacyPolicy:t.string,prompt:t.number}),syncGroups:t.string}),Jt= exports.N =t.partial({isDisabled:t.boolean,showPrivacyRequestButton:t.boolean,showDataPractices:t.boolean,showPolicies:t.boolean,showTrackingTechnologies:t.boolean,showCookies:t.boolean,showDataFlows:t.boolean,showConsentManager:t.boolean,showManageYourPrivacy:t.boolean,showMarketingPreferences:t.boolean,locales:t.array(_typeutils.valuesOf.call(void 0, _internationalization.LOCALE_KEY)),defaultLocale:_typeutils.valuesOf.call(void 0, _internationalization.LOCALE_KEY),preferBrowserDefaultLocale:t.boolean,supportEmail:t.string,replyToEmail:t.string,useNoReplyEmailAddress:t.boolean,useCustomEmailDomain:t.boolean,transformAccessReportJsonToCsv:t.boolean,theme:t.partial({colors:t.partial(_typeutils.applyEnum.call(void 0, _privacytypes.ConfigurableColorPaletteColor,()=>t.string)),componentStyles:_privacytypes.PrivacyCenterComponentStyles,textStyles:_privacytypes.PrivacyCenterTextStyles})}),_t= exports.O =t.intersection([t.type({title:t.string}),t.partial({effectiveOn:t.string,disableEffectiveOn:t.boolean,content:t.string,disabledLocales:t.array(_typeutils.valuesOf.call(void 0, _internationalization.LOCALE_KEY))})]),Xt= exports.P =t.intersection([t.type({id:t.string}),t.partial({targetReactIntlId:t.string,description:t.string,defaultMessage:t.string,translations:t.partial(_typeutils.applyEnum.call(void 0, _internationalization.LOCALE_KEY,()=>t.string))})]),$t= exports.Q =t.intersection([t.type({title:t.string,integrationName:t.string}),t.partial({"outer-type":t.string,description:t.string,url:t.string,"api-key-title":t.string,headers:t.array(C),"data-subjects":t.array(t.string),"identity-keys":t.array(t.string),"deletion-dependencies":t.array(t.string),owners:t.array(t.string),teams:t.array(t.string),disabled:t.boolean,datapoints:t.array(Ft),"email-settings":Vt,country:_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountryCode),countrySubDivision:_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountrySubdivisionCode),attributes:t.array(r),businessEntityTitles:t.array(t.string)})]),te= exports.R =t.intersection([t.type({title:t.string,productLine:_typeutils.valuesOf.call(void 0, _privacytypes.TranscendProduct)}),t.partial({description:t.string,hidden:t.boolean})]),ee= exports.S =t.intersection([t.type({title:t.string,type:_typeutils.valuesOf.call(void 0, _privacytypes.ActionItemCode),collections:t.array(t.string)}),t.partial({priority:_typeutils.valuesOf.call(void 0, _privacytypes.ActionItemPriorityOverride),customerExperienceActionItemId:t.string,dueDate:t.string,resolved:t.boolean,notes:t.string,link:t.string,users:t.array(t.string),teams:t.array(t.string),attributes:t.array(r)})]),S= exports.T =t.intersection([t.type({"depends-on-question-reference-id":t.string,"comparison-operator":_typeutils.valuesOf.call(void 0, _privacytypes.ComparisonOperator)}),t.partial({"comparison-operands":t.array(t.string)})]),re= exports.U =t.recursion("AssessmentNestedRuleInput",w=>t.intersection([t.type({"logic-operator":_typeutils.valuesOf.call(void 0, _privacytypes.LogicOperator)}),t.partial({rules:t.array(S),"nested-rules":t.array(w)})])),ne= exports.V =t.intersection([t.type({action:_typeutils.valuesOf.call(void 0, _privacytypes.AssessmentsDisplayLogicAction)}),t.partial({rule:S,"nested-rule":re})]),Re= exports.W =t.partial({"risk-level":t.string,"risk-matrix-column":t.string,"risk-matrix-row":t.string}),se= exports.X =t.intersection([t.type({"comparison-operands":t.array(t.string),"comparison-operator":_typeutils.valuesOf.call(void 0, _privacytypes.ComparisonOperator)}),t.partial({"risk-level":t.string,"risk-matrix-column":t.string,"risk-matrix-row":t.string})]),ie= exports.Y =t.type({value:t.string}),oe= exports.Z =t.intersection([t.type({title:t.string,type:_typeutils.valuesOf.call(void 0, _privacytypes.AssessmentQuestionType)}),t.partial({"sub-type":_typeutils.valuesOf.call(void 0, _privacytypes.AssessmentQuestionSubType),placeholder:t.string,description:t.string,"is-required":t.boolean,"reference-id":t.string,"display-logic":ne,"risk-logic":t.array(se),"risk-categories":t.array(t.string),"risk-framework":t.string,"answer-options":t.array(ie),"selected-answers":t.array(t.string),"allowed-mime-types":t.array(t.string),"allow-select-other":t.boolean,"sync-model":_typeutils.valuesOf.call(void 0, _privacytypes.AssessmentSyncModel),"sync-column":_typeutils.valuesOf.call(void 0, _privacytypes.AssessmentSyncColumn),"attribute-key":t.string,"require-risk-evaluation":t.boolean,"require-risk-matrix-evaluation":t.boolean})]),k= exports._ =t.intersection([t.type({title:t.string,questions:t.array(oe)}),t.partial({assignees:t.array(t.string),"external-assignees":t.array(t.string),status:t.string,"is-reviewed":t.boolean})]),R= exports.$ =t.type({type:_typeutils.valuesOf.call(void 0, _privacytypes.RetentionScheduleType),"duration-days":t.number,operand:_typeutils.valuesOf.call(void 0, _privacytypes.RetentionScheduleOperation)}),ae= exports.aa =t.intersection([t.type({title:t.string}),t.partial({sections:t.array(k),description:t.string,status:_typeutils.valuesOf.call(void 0, _privacytypes.AssessmentFormTemplateStatus),source:_typeutils.valuesOf.call(void 0, _privacytypes.AssessmentFormTemplateSource),creator:t.string,locked:t.boolean,"parent-id":t.string,archived:t.boolean,"created-at":t.string,"attribute-keys":t.array(t.string),"retention-schedule":R,templates:t.array(t.string)})]),x= exports.ba =t.type({title:t.string,type:_typeutils.valuesOf.call(void 0, _privacytypes.AttributeSupportedResourceType)}),pe= exports.ca =t.intersection([t.type({title:t.string,group:t.string}),t.partial({sections:t.array(k),creator:t.string,description:t.string,status:_typeutils.valuesOf.call(void 0, _privacytypes.AssessmentFormStatus),assignees:t.array(t.string),"external-assignees":t.array(t.string),reviewers:t.array(t.string),locked:t.boolean,archived:t.boolean,external:t.boolean,"title-is-internal":t.boolean,"due-date":t.string,"created-at":t.string,"assigned-at":t.string,"submitted-at":t.string,"approved-at":t.string,"rejected-at":t.string,resources:t.array(x),rows:t.array(x),"retention-schedule":R,attributes:t.array(r)})]),ye= exports.da =t.type({title:t.string,slug:t.string}),ue= exports.ea =t.intersection([t.type({type:_typeutils.valuesOf.call(void 0, _privacytypes.PreferenceTopicType),title:t.string,description:t.string}),t.partial({"default-configuration":t.string,"show-in-privacy-center":t.boolean,options:t.array(ye)})]),ce= exports.fa =t.intersection([t.type({trackingType:t.string,title:t.string,name:t.string}),t.partial({description:t.string,"is-active":t.boolean,configurable:t.boolean,"display-order":t.number,"show-in-privacy-center":t.boolean,"show-in-consent-manager":t.boolean,"preference-topics":t.array(ue),"auth-level":_typeutils.valuesOf.call(void 0, _privacytypes.PreferenceStoreAuthLevel),"opt-out-signals":t.array(_typeutils.valuesOf.call(void 0, _airgapjstypes.UserPrivacySignalEnum)),"default-consent":_typeutils.valuesOf.call(void 0, _privacytypes.DefaultConsentOption)})]),we= exports.ga =t.partial({"action-items":t.array(ee),"action-item-collections":t.array(te),"api-keys":t.array(Pt),teams:t.array(At),templates:t.array(Tt),enrichers:t.array(Ot),attributes:t.array(St),"business-entities":t.array(Kt),vendors:t.array(ht),"data-categories":t.array(Dt),"processing-purposes":t.array(Et),"data-subjects":t.array(Gt),actions:t.array(Ut),identifiers:t.array(Qt),"data-silos":t.array($t),"data-flows":t.array(zt),cookies:t.array(Ht),"consent-manager":Zt,prompts:t.array(Nt),"prompt-partials":t.array(Mt),"prompt-groups":t.array(Lt),agents:t.array(kt),"agent-functions":t.array(Rt),"agent-files":t.array(wt),"privacy-center":Jt,policies:t.array(_t),messages:t.array(Xt),partitions:t.array(Yt),"assessment-templates":t.array(ae),assessments:t.array(pe),"processing-activities":t.array(jt),purposes:t.array(ce)}),he= exports.ha =t.type({organizationName:t.string,apiKey:t.string,organizationId:t.string}),De= exports.ia =t.intersection([t.type({"Connections Made To":t.string,Type:_typeutils.valuesOf.call(void 0, _privacytypes.DataFlowScope),Purpose:t.string}),t.partial({Service:t.string,Notes:t.string,Owners:t.string,Teams:t.string,Status:_typeutils.valuesOf.call(void 0, _privacytypes.ConsentTrackerStatus)}),t.record(t.string,t.string)]),Ee= exports.ja =t.intersection([t.type({Name:t.string,Purpose:t.string}),t.partial({Service:t.string,Notes:t.string,Owners:t.string,Teams:t.string,Status:_typeutils.valuesOf.call(void 0, _privacytypes.ConsentTrackerStatus)}),t.record(t.string,t.string)]),Ne= exports.ka =t.type({title:t.string,description:t.string,cookies:t.array(t.type({name:t.string,trackingPurposes:t.array(t.string)})),dataFlows:t.array(t.type({value:t.string,type:_typeutils.valuesOf.call(void 0, _privacytypes.DataFlowScope),trackingPurposes:t.array(t.string)}))}),Me= exports.la =_typeutils.valuesOf.call(void 0, _chunkQ7I37FJVcjs.e),ge= exports.ma =_chunkLCDYXJN6cjs.a.call(void 0, {TRouteName:_typeutils.valuesOf.call(void 0, _chunkQ7I37FJVcjs.f)}),Le=_typeutils.valuesOf.call(void 0, _chunkQ7I37FJVcjs.f),le= exports.na =t.array(ge),me= exports.oa =_chunkLCDYXJN6cjs.b.call(void 0, {TEnabledRoutes:le}),qe= exports.pa =t.partial({enabledIntegrations:t.partial({openAI:me})}),Fe= exports.qa =t.partial({promptRunName:t.string,promptId:t.string,promptTitle:t.string,promptGroupId:t.string,promptGroupTitle:t.string,runByEmployeeEmail:t.string,applicationId:t.string,applicationName:t.string,codePackageName:t.string,repositoryName:t.string,applicationUserCoreIdentifier:t.string,applicationUserName:t.string,slackMessageTs:t.string,slackTeamId:t.string,slackChannelId:t.string,slackChannelName:t.string}),de=t.intersection([t.type({title:t.string}),t.partial({value:t.string})]),Ie=t.type({columns:t.array(de)}),Ve= exports.ra =t.partial({rows:t.array(Ie),json:t.string});exports.a = Tt; exports.b = C; exports.c = Pt; exports.d = At; exports.e = Ot; exports.f = v; exports.g = p; exports.h = Ct; exports.i = Ce; exports.j = vt; exports.k = St; exports.l = r; exports.m = kt; exports.n = Rt; exports.o = wt; exports.p = ht; exports.q = Dt; exports.r = Et; exports.s = Nt; exports.t = Mt; exports.u = Lt; exports.v = qt; exports.w = Ft; exports.x = Vt; exports.y = Kt; exports.z = u; exports.A = jt; exports.B = ve; exports.C = Bt; exports.D = Se; exports.E = ke; exports.F = Gt; exports.G = Ut; exports.H = Qt; exports.I = zt; exports.J = Ht; exports.K = Wt; exports.L = Yt; exports.M = Zt; exports.N = Jt; exports.O = _t; exports.P = Xt; exports.Q = $t; exports.R = te; exports.S = ee; exports.T = S; exports.U = re; exports.V = ne; exports.W = Re; exports.X = se; exports.Y = ie; exports.Z = oe; exports._ = k; exports.$ = R; exports.aa = ae; exports.ba = x; exports.ca = pe; exports.da = ye; exports.ea = ue; exports.fa = ce; exports.ga = we; exports.ha = he; exports.ia = De; exports.ja = Ee; exports.ka = Ne; exports.la = Me; exports.ma = ge; exports.na = le; exports.oa = me; exports.pa = qe; exports.qa = Fe; exports.ra = Ve;
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
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; } }var _chunkFHUHBSLEcjs = require('./chunk-FHUHBSLE.cjs');var _chunkT3BBQIRYcjs = require('./chunk-T3BBQIRY.cjs');var _iots = require('io-ts'); var t = _interopRequireWildcard(_iots);var _typeutils = require('@transcend-io/type-utils');var _privacytypes = require('@transcend-io/privacy-types');var _airgapjstypes = require('@transcend-io/airgap.js-types');var _internationalization = require('@transcend-io/internationalization');var Tt=t.type({title:t.string}),C= exports.b =t.intersection([t.type({name:t.string,value:t.string}),t.partial({isSecret:t.boolean})]),Pt= exports.c =t.type({title:t.string}),At= exports.d =t.intersection([t.type({name:t.string,description:t.string}),t.partial({"sso-department":t.string,"sso-group":t.string,"sso-title":t.string,users:t.array(t.string),scopes:t.array(_typeutils.valuesOf.call(void 0, _privacytypes.ScopeName))})]),Ot= exports.e =t.intersection([t.type({title:t.string,"output-identifiers":t.array(t.string)}),t.partial({description:t.string,url:t.string,type:_typeutils.valuesOf.call(void 0, _privacytypes.EnricherType),"input-identifier":t.string,testRegex:t.string,lookerQueryTitle:t.string,expirationDuration:t.number,transitionRequestStatus:_typeutils.valuesOf.call(void 0, _privacytypes.PreflightRequestStatus),phoneNumbers:t.array(t.string),regionList:t.array(_typeutils.valuesOf.call(void 0, {..._privacytypes.IsoCountryCode,..._privacytypes.IsoCountrySubdivisionCode})),"data-subjects":t.array(t.string),headers:t.array(C),"privacy-actions":t.array(_typeutils.valuesOf.call(void 0, _privacytypes.RequestAction))})]),v= exports.f =t.intersection([t.type({purpose:_typeutils.valuesOf.call(void 0, _privacytypes.ProcessingPurpose)}),t.partial({name:t.string})]),p= exports.g =t.intersection([t.type({category:_typeutils.valuesOf.call(void 0, _privacytypes.DataCategoryType)}),t.partial({name:t.string})]),Ct= exports.h =t.intersection([t.type({category:p,status:_typeutils.valuesOf.call(void 0, _privacytypes.SubDataPointDataSubCategoryGuessStatus),confidence:t.number}),t.partial({classifierVersion:t.number})]),ve= exports.i =t.intersection([t.type({category:p,status:_typeutils.valuesOf.call(void 0, _privacytypes.UnstructuredSubDataPointRecommendationStatus),confidence:t.number}),t.partial({classifierVersion:t.number})]),vt= exports.j =t.intersection([t.type({name:t.string}),t.partial({description:t.string,color:t.string})]),St= exports.k =t.intersection([t.type({name:t.string,type:_typeutils.valuesOf.call(void 0, _privacytypes.AttributeKeyType)}),t.partial({description:t.string,resources:t.array(_typeutils.valuesOf.call(void 0, _privacytypes.AttributeSupportedResourceType)),values:t.array(vt)})]),r= exports.l =t.type({key:t.string,values:t.array(t.string)}),Rt= exports.m =t.intersection([t.type({name:t.string,instructions:t.string,agentId:t.string,codeInterpreterEnabled:t.boolean,retrievalEnabled:t.boolean,"large-language-model":t.type({name:t.string,client:_typeutils.valuesOf.call(void 0, _privacytypes.LargeLanguageModelClient)})}),t.partial({description:t.string,prompt:t.string,owners:t.array(t.string),teams:t.array(t.string),"agent-functions":t.array(t.string),"agent-files":t.array(t.string)})]),kt= exports.n =t.type({name:t.string,description:t.string,parameters:t.string}),wt= exports.o =t.intersection([t.type({name:t.string,fileId:t.string,size:t.number,purpose:_typeutils.valuesOf.call(void 0, _privacytypes.PromptFilePurpose)}),t.partial({description:t.string})]),Dt= exports.p =t.intersection([t.type({title:t.string}),t.partial({description:t.string,dataProcessingAgreementLink:t.string,contactName:t.string,contactPhone:t.string,address:t.string,headquarterCountry:_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountryCode),headquarterSubDivision:_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountrySubdivisionCode),websiteUrl:t.string,businessEntity:t.string,owners:t.array(t.string),teams:t.array(t.string),attributes:t.array(r)})]),ht= exports.q =t.intersection([t.type({name:t.string,category:_typeutils.valuesOf.call(void 0, _privacytypes.DataCategoryType)}),t.partial({description:t.string,regex:t.string,owners:t.array(t.string),teams:t.array(t.string),attributes:t.array(r)})]),Et= exports.r =t.intersection([t.type({name:t.string,purpose:_typeutils.valuesOf.call(void 0, _privacytypes.ProcessingPurpose)}),t.partial({description:t.string,owners:t.array(t.string),teams:t.array(t.string),attributes:t.array(r)})]),Nt= exports.s =t.type({title:t.string,content:t.string}),Mt= exports.t =t.type({title:t.string,content:t.string}),Lt= exports.u =t.type({title:t.string,description:t.string,prompts:t.array(t.string)}),qt= exports.v =t.intersection([t.type({key:t.string}),t.partial({title:t.string,description:t.union([t.string,t.null]),purposes:t.array(v),categories:t.array(p),"guessed-categories":t.array(Ct),"access-request-visibility-enabled":t.boolean,"erasure-request-redaction-enabled":t.boolean,attributes:t.array(r)})]),Ft= exports.w =t.intersection([t.type({key:t.string}),t.partial({path:t.array(t.string),title:t.string,description:t.string,"data-collection-tag":t.string,"privacy-action-queries":t.partial(_typeutils.applyEnum.call(void 0, _privacytypes.RequestActionObjectResolver,()=>t.string)),"privacy-actions":t.array(_typeutils.valuesOf.call(void 0, _privacytypes.RequestActionObjectResolver)),fields:t.array(qt),owners:t.array(t.string),teams:t.array(t.string)})]),Vt= exports.x =t.partial({"notify-email-address":t.string,"send-frequency":t.number,"send-type":_typeutils.valuesOf.call(void 0, _privacytypes.PromptAVendorEmailSendType),"include-identifiers-attachment":t.boolean,"completion-link-type":_typeutils.valuesOf.call(void 0, _privacytypes.PromptAVendorEmailCompletionLinkType),"manual-work-retry-frequency":t.string}),Kt= exports.y =t.intersection([t.type({title:t.string}),t.partial({description:t.string,address:t.string,headquarterCountry:_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountryCode),headquarterSubDivision:_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountrySubdivisionCode),dataProtectionOfficerName:t.string,dataProtectionOfficerEmail:t.string,attributes:t.array(r),owners:t.array(t.string),teams:t.array(t.string)})]),u= exports.z =t.partial({country:_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountryCode),countrySubDivision:_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountrySubdivisionCode)}),jt= exports.A =t.intersection([t.type({title:t.string}),t.partial({description:t.string,securityMeasureDetails:t.string,controllerships:t.array(_typeutils.valuesOf.call(void 0, _privacytypes.Controllership)),storageRegions:t.array(u),transferRegions:t.array(u),retentionType:_typeutils.valuesOf.call(void 0, _privacytypes.RetentionType),retentionPeriod:t.number,dataProtectionImpactAssessmentLink:t.string,dataProtectionImpactAssessmentStatus:_typeutils.valuesOf.call(void 0, _privacytypes.DataProtectionImpactAssessmentStatus),attributes:t.array(r),dataSiloTitles:t.array(t.string),dataSubjectTypes:t.array(t.string),teamNames:t.array(t.string),ownerEmails:t.array(t.string),processingSubPurposes:t.array(v),dataSubCategories:t.array(p),saaSCategories:t.array(t.string)})]),Se= exports.B =t.intersection([t.type({name:t.string,codePackageType:_typeutils.valuesOf.call(void 0, _privacytypes.CodePackageType)}),t.partial({description:t.string,repositoryUrl:t.string,catalogIntegrationName:t.string,documentationLinks:t.array(t.string),ownerEmails:t.array(t.string),teamNames:t.array(t.string)})]),Bt= exports.C =t.intersection([t.type({name:t.string}),t.partial({version:t.string,isDevDependency:t.boolean})]),Re= exports.D =t.intersection([t.type({name:t.string,type:_typeutils.valuesOf.call(void 0, _privacytypes.CodePackageType),relativePath:t.string,repositoryName:t.string}),t.partial({description:t.string,softwareDevelopmentKits:t.array(Bt),teamNames:t.array(t.string),ownerEmails:t.array(t.string)})]),ke= exports.E =t.intersection([t.type({name:t.string,url:t.string}),t.partial({description:t.string,teamNames:t.array(t.string),ownerEmails:t.array(t.string)})]),Gt= exports.F =t.intersection([t.type({type:t.string}),t.partial({active:t.boolean,title:t.string,adminDashboardDefaultSilentMode:t.boolean,actions:t.array(_typeutils.valuesOf.call(void 0, _privacytypes.RequestAction))})]),Ut= exports.G =t.intersection([t.type({type:_typeutils.valuesOf.call(void 0, _privacytypes.RequestAction)}),t.partial({skipSecondaryIfNoFiles:t.boolean,skipDownloadableStep:t.boolean,requiresReview:t.boolean,waitingPeriod:t.number,regionDetectionMethod:_typeutils.valuesOf.call(void 0, _privacytypes.RegionDetectionMethod),regionList:t.array(_typeutils.valuesOf.call(void 0, {..._privacytypes.IsoCountryCode,..._privacytypes.IsoCountrySubdivisionCode})),regionBlockList:t.array(_typeutils.valuesOf.call(void 0, {..._privacytypes.IsoCountryCode,..._privacytypes.IsoCountrySubdivisionCode}))})]),Qt= exports.H =t.intersection([t.type({name:t.string,type:t.string}),t.partial({regex:t.string,selectOptions:t.array(t.string),privacyCenterVisibility:t.array(_typeutils.valuesOf.call(void 0, _privacytypes.RequestAction)),dataSubjects:t.array(t.string),isRequiredInForm:t.boolean,placeholder:t.string,displayTitle:t.string,displayDescription:t.string,displayOrder:t.number,isUniqueOnPreferenceStore:t.boolean})]),zt= exports.I =t.intersection([t.type({value:t.string,type:_typeutils.valuesOf.call(void 0, _privacytypes.DataFlowScope)}),t.partial({description:t.string,trackingPurposes:t.array(t.string),service:t.string,status:_typeutils.valuesOf.call(void 0, _privacytypes.ConsentTrackerStatus),owners:t.array(t.string),teams:t.array(t.string),attributes:t.array(r)})]),Ht= exports.J =t.intersection([t.type({name:t.string}),t.partial({isRegex:t.boolean,description:t.string,trackingPurposes:t.array(t.string),service:t.string,status:_typeutils.valuesOf.call(void 0, _privacytypes.ConsentTrackerStatus),owners:t.array(t.string),teams:t.array(t.string),attributes:t.array(r)})]),Wt= exports.K =t.intersection([t.type({name:t.string}),t.partial({displayName:t.string,regions:t.array(u),onConsentExpiry:_typeutils.valuesOf.call(void 0, _airgapjstypes.OnConsentExpiry),consentExpiry:t.number,operator:_typeutils.valuesOf.call(void 0, _privacytypes.RegionsOperator),displayPriority:t.number,viewState:_typeutils.valuesOf.call(void 0, _airgapjstypes.InitialViewState),purposes:t.array(t.type({trackingType:t.string})),optedOutPurposes:t.array(t.type({trackingType:t.string})),browserLanguages:t.array(_typeutils.valuesOf.call(void 0, _airgapjstypes.BrowserLanguage)),browserTimeZones:t.array(_typeutils.valuesOf.call(void 0, _privacytypes.BrowserTimeZone))})]),Yt= exports.L =t.intersection([t.type({name:t.string}),t.partial({partition:t.string})]),Zt= exports.M =t.partial({version:t.string,bundleUrls:t.record(_typeutils.valuesOf.call(void 0, _privacytypes.ConsentBundleType),t.string),domains:t.array(t.string),partition:t.string,consentPrecedence:_typeutils.valuesOf.call(void 0, _privacytypes.ConsentPrecedenceOption),unknownRequestPolicy:_typeutils.valuesOf.call(void 0, _privacytypes.UnknownRequestPolicy),unknownCookiePolicy:_typeutils.valuesOf.call(void 0, _privacytypes.UnknownRequestPolicy),syncEndpoint:t.string,telemetryPartitioning:_typeutils.valuesOf.call(void 0, _privacytypes.TelemetryPartitionStrategy),signedIabAgreement:_typeutils.valuesOf.call(void 0, _privacytypes.SignedIabAgreementOption),experiences:t.array(Wt),theme:t.partial({primaryColor:t.string,fontColor:t.string,privacyPolicy:t.string,prompt:t.number}),syncGroups:t.string}),Jt= exports.N =t.partial({isDisabled:t.boolean,showPrivacyRequestButton:t.boolean,showDataPractices:t.boolean,showPolicies:t.boolean,showTrackingTechnologies:t.boolean,showCookies:t.boolean,showDataFlows:t.boolean,showConsentManager:t.boolean,showManageYourPrivacy:t.boolean,showMarketingPreferences:t.boolean,locales:t.array(_typeutils.valuesOf.call(void 0, _internationalization.LOCALE_KEY)),defaultLocale:_typeutils.valuesOf.call(void 0, _internationalization.LOCALE_KEY),preferBrowserDefaultLocale:t.boolean,supportEmail:t.string,replyToEmail:t.string,useNoReplyEmailAddress:t.boolean,useCustomEmailDomain:t.boolean,transformAccessReportJsonToCsv:t.boolean,theme:t.partial({colors:t.partial(_typeutils.applyEnum.call(void 0, _privacytypes.ConfigurableColorPaletteColor,()=>t.string)),componentStyles:_privacytypes.PrivacyCenterComponentStyles,textStyles:_privacytypes.PrivacyCenterTextStyles})}),_t= exports.O =t.intersection([t.type({title:t.string}),t.partial({effectiveOn:t.string,disableEffectiveOn:t.boolean,content:t.string,disabledLocales:t.array(_typeutils.valuesOf.call(void 0, _internationalization.LOCALE_KEY))})]),Xt= exports.P =t.intersection([t.type({id:t.string}),t.partial({targetReactIntlId:t.string,description:t.string,defaultMessage:t.string,translations:t.partial(_typeutils.applyEnum.call(void 0, _internationalization.LOCALE_KEY,()=>t.string))})]),$t= exports.Q =t.intersection([t.type({title:t.string,integrationName:t.string}),t.partial({"outer-type":t.string,description:t.string,url:t.string,"api-key-title":t.string,headers:t.array(C),"data-subjects":t.array(t.string),"identity-keys":t.array(t.string),"deletion-dependencies":t.array(t.string),owners:t.array(t.string),teams:t.array(t.string),disabled:t.boolean,datapoints:t.array(Ft),"email-settings":Vt,country:_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountryCode),countrySubDivision:_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountrySubdivisionCode),attributes:t.array(r),businessEntityTitles:t.array(t.string)})]),te= exports.R =t.intersection([t.type({title:t.string,productLine:_typeutils.valuesOf.call(void 0, _privacytypes.TranscendProduct)}),t.partial({description:t.string,hidden:t.boolean})]),ee= exports.S =t.intersection([t.type({title:t.string,type:_typeutils.valuesOf.call(void 0, _privacytypes.ActionItemCode),collections:t.array(t.string)}),t.partial({priority:_typeutils.valuesOf.call(void 0, _privacytypes.ActionItemPriorityOverride),customerExperienceActionItemId:t.string,dueDate:t.string,resolved:t.boolean,notes:t.string,link:t.string,users:t.array(t.string),teams:t.array(t.string),attributes:t.array(r)})]),S= exports.T =t.intersection([t.type({"depends-on-question-reference-id":t.string,"comparison-operator":_typeutils.valuesOf.call(void 0, _privacytypes.ComparisonOperator)}),t.partial({"comparison-operands":t.array(t.string)})]),re= exports.U =t.recursion("AssessmentNestedRuleInput",w=>t.intersection([t.type({"logic-operator":_typeutils.valuesOf.call(void 0, _privacytypes.LogicOperator)}),t.partial({rules:t.array(S),"nested-rules":t.array(w)})])),ne= exports.V =t.intersection([t.type({action:_typeutils.valuesOf.call(void 0, _privacytypes.AssessmentsDisplayLogicAction)}),t.partial({rule:S,"nested-rule":re})]),we= exports.W =t.partial({"risk-level":t.string,"risk-matrix-column":t.string,"risk-matrix-row":t.string}),se= exports.X =t.intersection([t.type({"comparison-operands":t.array(t.string),"comparison-operator":_typeutils.valuesOf.call(void 0, _privacytypes.ComparisonOperator)}),t.partial({"risk-level":t.string,"risk-matrix-column":t.string,"risk-matrix-row":t.string})]),ie= exports.Y =t.type({value:t.string}),oe= exports.Z =t.intersection([t.type({title:t.string,type:_typeutils.valuesOf.call(void 0, _privacytypes.AssessmentQuestionType)}),t.partial({"sub-type":_typeutils.valuesOf.call(void 0, _privacytypes.AssessmentQuestionSubType),placeholder:t.string,description:t.string,"is-required":t.boolean,"reference-id":t.string,"display-logic":ne,"risk-logic":t.array(se),"risk-categories":t.array(t.string),"risk-framework":t.string,"answer-options":t.array(ie),"selected-answers":t.array(t.string),"allowed-mime-types":t.array(t.string),"allow-select-other":t.boolean,"sync-model":_typeutils.valuesOf.call(void 0, _privacytypes.AssessmentSyncModel),"sync-column":_typeutils.valuesOf.call(void 0, _privacytypes.AssessmentSyncColumn),"attribute-key":t.string,"require-risk-evaluation":t.boolean,"require-risk-matrix-evaluation":t.boolean})]),R= exports._ =t.intersection([t.type({title:t.string,questions:t.array(oe)}),t.partial({assignees:t.array(t.string),"external-assignees":t.array(t.string),status:t.string,"is-reviewed":t.boolean})]),k= exports.$ =t.type({type:_typeutils.valuesOf.call(void 0, _privacytypes.RetentionScheduleType),"duration-days":t.number,operand:_typeutils.valuesOf.call(void 0, _privacytypes.RetentionScheduleOperation)}),ae= exports.aa =t.intersection([t.type({title:t.string}),t.partial({sections:t.array(R),description:t.string,status:_typeutils.valuesOf.call(void 0, _privacytypes.AssessmentFormTemplateStatus),source:_typeutils.valuesOf.call(void 0, _privacytypes.AssessmentFormTemplateSource),creator:t.string,locked:t.boolean,"parent-id":t.string,archived:t.boolean,"created-at":t.string,"attribute-keys":t.array(t.string),"retention-schedule":k,templates:t.array(t.string)})]),x= exports.ba =t.type({title:t.string,type:_typeutils.valuesOf.call(void 0, _privacytypes.AttributeSupportedResourceType)}),pe= exports.ca =t.intersection([t.type({title:t.string,group:t.string}),t.partial({sections:t.array(R),creator:t.string,description:t.string,status:_typeutils.valuesOf.call(void 0, _privacytypes.AssessmentFormStatus),assignees:t.array(t.string),"external-assignees":t.array(t.string),reviewers:t.array(t.string),locked:t.boolean,archived:t.boolean,external:t.boolean,"title-is-internal":t.boolean,"due-date":t.string,"created-at":t.string,"assigned-at":t.string,"submitted-at":t.string,"approved-at":t.string,"rejected-at":t.string,resources:t.array(x),rows:t.array(x),"retention-schedule":k,attributes:t.array(r)})]),ye= exports.da =t.type({title:t.string,slug:t.string}),ue= exports.ea =t.intersection([t.type({type:_typeutils.valuesOf.call(void 0, _privacytypes.PreferenceTopicType),title:t.string,description:t.string}),t.partial({"default-configuration":t.string,"show-in-privacy-center":t.boolean,options:t.array(ye)})]),ce= exports.fa =t.intersection([t.type({trackingType:t.string,title:t.string,name:t.string}),t.partial({description:t.string,"is-active":t.boolean,configurable:t.boolean,"display-order":t.number,"show-in-privacy-center":t.boolean,"show-in-consent-manager":t.boolean,"preference-topics":t.array(ue),"auth-level":_typeutils.valuesOf.call(void 0, _privacytypes.PreferenceStoreAuthLevel),"opt-out-signals":t.array(_typeutils.valuesOf.call(void 0, _airgapjstypes.UserPrivacySignalEnum)),"default-consent":_typeutils.valuesOf.call(void 0, _privacytypes.DefaultConsentOption)})]),ge= exports.ga =t.intersection([t.type({resourceId:t.string,plugin:t.string,suggestedCatalog:t.string,containsSensitiveData:t.string,status:t.string}),t.partial({country:_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountryCode),countrySubDivision:_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountrySubdivisionCode),plaintextContext:t.string,title:t.union([t.string,t.null])})]),De= exports.ha =t.partial({"action-items":t.array(ee),"action-item-collections":t.array(te),"api-keys":t.array(Pt),teams:t.array(At),templates:t.array(Tt),enrichers:t.array(Ot),attributes:t.array(St),"business-entities":t.array(Kt),vendors:t.array(Dt),"data-categories":t.array(ht),"processing-purposes":t.array(Et),"data-subjects":t.array(Gt),actions:t.array(Ut),identifiers:t.array(Qt),"data-silos":t.array($t),"data-flows":t.array(zt),cookies:t.array(Ht),"consent-manager":Zt,prompts:t.array(Nt),"prompt-partials":t.array(Mt),"prompt-groups":t.array(Lt),agents:t.array(Rt),"agent-functions":t.array(kt),"agent-files":t.array(wt),"privacy-center":Jt,policies:t.array(_t),messages:t.array(Xt),partitions:t.array(Yt),"assessment-templates":t.array(ae),assessments:t.array(pe),"processing-activities":t.array(jt),purposes:t.array(ce),siloDiscoveryResults:t.array(ge)}),he= exports.ia =t.type({organizationName:t.string,apiKey:t.string,organizationId:t.string}),Ee= exports.ja =t.intersection([t.type({"Connections Made To":t.string,Type:_typeutils.valuesOf.call(void 0, _privacytypes.DataFlowScope),Purpose:t.string}),t.partial({Service:t.string,Notes:t.string,Owners:t.string,Teams:t.string,Status:_typeutils.valuesOf.call(void 0, _privacytypes.ConsentTrackerStatus)}),t.record(t.string,t.string)]),Ne= exports.ka =t.intersection([t.type({Name:t.string,Purpose:t.string}),t.partial({Service:t.string,Notes:t.string,Owners:t.string,Teams:t.string,Status:_typeutils.valuesOf.call(void 0, _privacytypes.ConsentTrackerStatus)}),t.record(t.string,t.string)]),Me= exports.la =t.type({title:t.string,description:t.string,cookies:t.array(t.type({name:t.string,trackingPurposes:t.array(t.string)})),dataFlows:t.array(t.type({value:t.string,type:_typeutils.valuesOf.call(void 0, _privacytypes.DataFlowScope),trackingPurposes:t.array(t.string)}))}),Le= exports.ma =_typeutils.valuesOf.call(void 0, _chunkT3BBQIRYcjs.e),le= exports.na =_chunkFHUHBSLEcjs.a.call(void 0, {TRouteName:_typeutils.valuesOf.call(void 0, _chunkT3BBQIRYcjs.f)}),qe=_typeutils.valuesOf.call(void 0, _chunkT3BBQIRYcjs.f),me= exports.oa =t.array(le),de= exports.pa =_chunkFHUHBSLEcjs.b.call(void 0, {TEnabledRoutes:me}),Fe= exports.qa =t.partial({enabledIntegrations:t.partial({openAI:de})}),Ve= exports.ra =t.partial({promptRunName:t.string,promptId:t.string,promptTitle:t.string,promptGroupId:t.string,promptGroupTitle:t.string,runByEmployeeEmail:t.string,applicationId:t.string,applicationName:t.string,codePackageName:t.string,repositoryName:t.string,applicationUserCoreIdentifier:t.string,applicationUserName:t.string,slackMessageTs:t.string,slackTeamId:t.string,slackChannelId:t.string,slackChannelName:t.string}),Ie=t.intersection([t.type({title:t.string}),t.partial({value:t.string})]),fe=t.type({columns:t.array(Ie)}),Ke= exports.sa =t.partial({rows:t.array(fe),json:t.string});exports.a = Tt; exports.b = C; exports.c = Pt; exports.d = At; exports.e = Ot; exports.f = v; exports.g = p; exports.h = Ct; exports.i = ve; exports.j = vt; exports.k = St; exports.l = r; exports.m = Rt; exports.n = kt; exports.o = wt; exports.p = Dt; exports.q = ht; exports.r = Et; exports.s = Nt; exports.t = Mt; exports.u = Lt; exports.v = qt; exports.w = Ft; exports.x = Vt; exports.y = Kt; exports.z = u; exports.A = jt; exports.B = Se; exports.C = Bt; exports.D = Re; exports.E = ke; exports.F = Gt; exports.G = Ut; exports.H = Qt; exports.I = zt; exports.J = Ht; exports.K = Wt; exports.L = Yt; exports.M = Zt; exports.N = Jt; exports.O = _t; exports.P = Xt; exports.Q = $t; exports.R = te; exports.S = ee; exports.T = S; exports.U = re; exports.V = ne; exports.W = we; exports.X = se; exports.Y = ie; exports.Z = oe; exports._ = R; exports.$ = k; exports.aa = ae; exports.ba = x; exports.ca = pe; exports.da = ye; exports.ea = ue; exports.fa = ce; exports.ga = ge; exports.ha = De; exports.ia = he; exports.ja = Ee; exports.ka = Ne; exports.la = Me; exports.ma = Le; exports.na = le; exports.oa = me; exports.pa = de; exports.qa = Fe; exports.ra = Ve; exports.sa = Ke;
|
|
2
|
+
//# sourceMappingURL=chunk-LU3DKRNK.cjs.map
|