@transcend-io/cli 8.25.0 → 8.25.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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-HRNCQV6G.cjs → chunk-25SEXRNA.cjs} +4 -4
- package/dist/{chunk-HRNCQV6G.cjs.map → chunk-25SEXRNA.cjs.map} +1 -1
- package/dist/{chunk-7ZGJ4MJF.cjs → chunk-3R32U46U.cjs} +2 -2
- package/dist/{chunk-7ZGJ4MJF.cjs.map → chunk-3R32U46U.cjs.map} +1 -1
- package/dist/{chunk-MOWFESXN.cjs → chunk-5YELAKPF.cjs} +2 -2
- package/dist/{chunk-MOWFESXN.cjs.map → chunk-5YELAKPF.cjs.map} +1 -1
- package/dist/{chunk-NI434OII.cjs → chunk-72KHFLMF.cjs} +2 -2
- package/dist/{chunk-NI434OII.cjs.map → chunk-72KHFLMF.cjs.map} +1 -1
- package/dist/chunk-BXWDS6YN.cjs +3 -0
- package/dist/chunk-BXWDS6YN.cjs.map +1 -0
- package/dist/{chunk-MPMKY5NF.cjs → chunk-H2QTOH7O.cjs} +21 -21
- package/dist/{chunk-MPMKY5NF.cjs.map → chunk-H2QTOH7O.cjs.map} +1 -1
- package/dist/{chunk-RGBVP433.cjs → chunk-IUTV36HH.cjs} +2 -2
- package/dist/{chunk-RGBVP433.cjs.map → chunk-IUTV36HH.cjs.map} +1 -1
- package/dist/{chunk-COKHIMLO.cjs → chunk-JI7R6PYD.cjs} +2 -2
- package/dist/{chunk-COKHIMLO.cjs.map → chunk-JI7R6PYD.cjs.map} +1 -1
- package/dist/{chunk-F3BRFYKD.cjs → chunk-NDHQBERA.cjs} +2 -2
- package/dist/{chunk-F3BRFYKD.cjs.map → chunk-NDHQBERA.cjs.map} +1 -1
- package/dist/{chunk-WWJHUHSQ.cjs → chunk-PK4AADUH.cjs} +7 -7
- package/dist/{chunk-WWJHUHSQ.cjs.map → chunk-PK4AADUH.cjs.map} +1 -1
- package/dist/{chunk-KYVDLURL.cjs → chunk-PTAFCUJK.cjs} +4 -4
- package/dist/{chunk-KYVDLURL.cjs.map → chunk-PTAFCUJK.cjs.map} +1 -1
- package/dist/{chunk-BGZ6TA6C.cjs → chunk-QJPM4NU4.cjs} +2 -2
- package/dist/{chunk-BGZ6TA6C.cjs.map → chunk-QJPM4NU4.cjs.map} +1 -1
- package/dist/{chunk-5PTFTN6J.cjs → chunk-SE3D4DHA.cjs} +163 -159
- package/dist/chunk-SE3D4DHA.cjs.map +1 -0
- package/dist/{chunk-2Q7ADV5Y.cjs → chunk-SPUSV4WV.cjs} +2 -2
- package/dist/{chunk-2Q7ADV5Y.cjs.map → chunk-SPUSV4WV.cjs.map} +1 -1
- package/dist/{impl-JREQ3SEN.cjs → impl-36LMHOGP.cjs} +2 -2
- package/dist/{impl-JREQ3SEN.cjs.map → impl-36LMHOGP.cjs.map} +1 -1
- package/dist/{impl-SYXFCDZC.cjs → impl-3G6SJP56.cjs} +4 -4
- package/dist/{impl-SYXFCDZC.cjs.map → impl-3G6SJP56.cjs.map} +1 -1
- package/dist/{impl-AI276JNQ.cjs → impl-3L45ZJPD.cjs} +2 -2
- package/dist/{impl-AI276JNQ.cjs.map → impl-3L45ZJPD.cjs.map} +1 -1
- package/dist/impl-4EPMRARD.cjs +2 -0
- package/dist/{impl-PZ3JDEQN.cjs.map → impl-4EPMRARD.cjs.map} +1 -1
- package/dist/{impl-YIYW7STX.cjs → impl-5PP6MFIG.cjs} +2 -2
- package/dist/{impl-YIYW7STX.cjs.map → impl-5PP6MFIG.cjs.map} +1 -1
- package/dist/{impl-EQ4EH4QJ.cjs → impl-6C2PGA3G.cjs} +2 -2
- package/dist/{impl-EQ4EH4QJ.cjs.map → impl-6C2PGA3G.cjs.map} +1 -1
- package/dist/{impl-MH7OR57S.cjs → impl-6EFNGIZ6.cjs} +2 -2
- package/dist/{impl-MH7OR57S.cjs.map → impl-6EFNGIZ6.cjs.map} +1 -1
- package/dist/impl-6KC3UYCW.cjs +2 -0
- package/dist/impl-6KC3UYCW.cjs.map +1 -0
- package/dist/impl-AAMGOCHX.cjs +2 -0
- package/dist/impl-AAMGOCHX.cjs.map +1 -0
- package/dist/{impl-GIPZ5EW5.cjs → impl-ADIEOCIZ.cjs} +2 -2
- package/dist/{impl-GIPZ5EW5.cjs.map → impl-ADIEOCIZ.cjs.map} +1 -1
- package/dist/{impl-QSTK5NYY.cjs → impl-AK66C3RE.cjs} +3 -3
- package/dist/{impl-QSTK5NYY.cjs.map → impl-AK66C3RE.cjs.map} +1 -1
- package/dist/{impl-FD5CDY7Y.cjs → impl-AKXA3SNM.cjs} +2 -2
- package/dist/{impl-FD5CDY7Y.cjs.map → impl-AKXA3SNM.cjs.map} +1 -1
- package/dist/{impl-7ZGTTYG5.cjs → impl-B6DL3OER.cjs} +2 -2
- package/dist/{impl-7ZGTTYG5.cjs.map → impl-B6DL3OER.cjs.map} +1 -1
- package/dist/impl-COXG2MLZ.cjs +2 -0
- package/dist/impl-COXG2MLZ.cjs.map +1 -0
- package/dist/{impl-LGUMGRRA.cjs → impl-CSTSSSRT.cjs} +2 -2
- package/dist/{impl-LGUMGRRA.cjs.map → impl-CSTSSSRT.cjs.map} +1 -1
- package/dist/{impl-HCY5MWEP.cjs → impl-DTDRKSXP.cjs} +2 -2
- package/dist/{impl-HCY5MWEP.cjs.map → impl-DTDRKSXP.cjs.map} +1 -1
- package/dist/impl-EIF6Y56H.cjs +9 -0
- package/dist/impl-EIF6Y56H.cjs.map +1 -0
- package/dist/{impl-G6WAGNDN.cjs → impl-G6XAXXID.cjs} +2 -2
- package/dist/{impl-G6WAGNDN.cjs.map → impl-G6XAXXID.cjs.map} +1 -1
- package/dist/{impl-7WCN5RAN.cjs → impl-I4K6WNKI.cjs} +2 -2
- package/dist/{impl-7WCN5RAN.cjs.map → impl-I4K6WNKI.cjs.map} +1 -1
- package/dist/impl-IOA4XKKN.cjs +2 -0
- package/dist/impl-IOA4XKKN.cjs.map +1 -0
- package/dist/{impl-OIXVXSLU.cjs → impl-ISN3FV2W.cjs} +2 -2
- package/dist/{impl-OIXVXSLU.cjs.map → impl-ISN3FV2W.cjs.map} +1 -1
- package/dist/{impl-CP2GLGVZ.cjs → impl-JWWXO2SS.cjs} +2 -2
- package/dist/{impl-CP2GLGVZ.cjs.map → impl-JWWXO2SS.cjs.map} +1 -1
- package/dist/impl-L66H3XNN.cjs +2 -0
- package/dist/impl-L66H3XNN.cjs.map +1 -0
- package/dist/{impl-AQY6F4SC.cjs → impl-LHHWEC3W.cjs} +2 -2
- package/dist/{impl-AQY6F4SC.cjs.map → impl-LHHWEC3W.cjs.map} +1 -1
- package/dist/{impl-6S3K72GP.cjs → impl-LHRRG36K.cjs} +2 -2
- package/dist/{impl-6S3K72GP.cjs.map → impl-LHRRG36K.cjs.map} +1 -1
- package/dist/{impl-OXOU2A27.cjs → impl-LIGRSBNG.cjs} +2 -2
- package/dist/{impl-OXOU2A27.cjs.map → impl-LIGRSBNG.cjs.map} +1 -1
- package/dist/{impl-VGOV6N6A.cjs → impl-MPXVY2UH.cjs} +2 -2
- package/dist/{impl-VGOV6N6A.cjs.map → impl-MPXVY2UH.cjs.map} +1 -1
- package/dist/{impl-CLA7WK6U.cjs → impl-O3GIWK53.cjs} +2 -2
- package/dist/{impl-CLA7WK6U.cjs.map → impl-O3GIWK53.cjs.map} +1 -1
- package/dist/{impl-FJ4XWHLE.cjs → impl-ODYD4SZP.cjs} +2 -2
- package/dist/{impl-FJ4XWHLE.cjs.map → impl-ODYD4SZP.cjs.map} +1 -1
- package/dist/impl-P7UN5WAL.cjs +2 -0
- package/dist/impl-P7UN5WAL.cjs.map +1 -0
- package/dist/{impl-KPZSEHQG.cjs → impl-PSI4HEVC.cjs} +2 -2
- package/dist/{impl-KPZSEHQG.cjs.map → impl-PSI4HEVC.cjs.map} +1 -1
- package/dist/impl-PSOKEHCV.cjs +2 -0
- package/dist/impl-PSOKEHCV.cjs.map +1 -0
- package/dist/impl-QRRBJ7TJ.cjs +2 -0
- package/dist/impl-QRRBJ7TJ.cjs.map +1 -0
- package/dist/{impl-TFAARXUG.cjs → impl-RWI24HQX.cjs} +2 -2
- package/dist/{impl-TFAARXUG.cjs.map → impl-RWI24HQX.cjs.map} +1 -1
- package/dist/impl-T43D4RDV.cjs +2 -0
- package/dist/impl-T43D4RDV.cjs.map +1 -0
- package/dist/{impl-3VTN6SPE.cjs → impl-TR52IKLJ.cjs} +3 -3
- package/dist/{impl-3VTN6SPE.cjs.map → impl-TR52IKLJ.cjs.map} +1 -1
- package/dist/{impl-VAQF5Y6W.cjs → impl-ULSJ77P4.cjs} +2 -2
- package/dist/{impl-VAQF5Y6W.cjs.map → impl-ULSJ77P4.cjs.map} +1 -1
- package/dist/{impl-K5LDQF7V.cjs → impl-VAQDWFBI.cjs} +2 -2
- package/dist/{impl-K5LDQF7V.cjs.map → impl-VAQDWFBI.cjs.map} +1 -1
- package/dist/impl-WTX7DJCA.cjs +2 -0
- package/dist/impl-WTX7DJCA.cjs.map +1 -0
- package/dist/impl-Z2NWFPPS.cjs +2 -0
- package/dist/impl-Z2NWFPPS.cjs.map +1 -0
- package/dist/{impl-HEPMD6RG.cjs → impl-Z43DTT4U.cjs} +2 -2
- package/dist/{impl-HEPMD6RG.cjs.map → impl-Z43DTT4U.cjs.map} +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +47 -48
- package/package.json +1 -1
- package/dist/chunk-5PTFTN6J.cjs.map +0 -1
- package/dist/chunk-GG7P2RO6.cjs +0 -3
- package/dist/chunk-GG7P2RO6.cjs.map +0 -1
- package/dist/chunk-LR3CPNDM.cjs +0 -6
- package/dist/chunk-LR3CPNDM.cjs.map +0 -1
- package/dist/impl-32ZRDOCN.cjs +0 -9
- package/dist/impl-32ZRDOCN.cjs.map +0 -1
- package/dist/impl-4YI4ERPI.cjs +0 -2
- package/dist/impl-4YI4ERPI.cjs.map +0 -1
- package/dist/impl-5H724WN5.cjs +0 -2
- package/dist/impl-5H724WN5.cjs.map +0 -1
- package/dist/impl-7G2TDJGL.cjs +0 -2
- package/dist/impl-7G2TDJGL.cjs.map +0 -1
- package/dist/impl-CRQ4DYII.cjs +0 -2
- package/dist/impl-CRQ4DYII.cjs.map +0 -1
- package/dist/impl-LI3SHHAQ.cjs +0 -2
- package/dist/impl-LI3SHHAQ.cjs.map +0 -1
- package/dist/impl-PZ3JDEQN.cjs +0 -2
- package/dist/impl-QZHQCQ3B.cjs +0 -2
- package/dist/impl-QZHQCQ3B.cjs.map +0 -1
- package/dist/impl-TCN6BRVK.cjs +0 -2
- package/dist/impl-TCN6BRVK.cjs.map +0 -1
- package/dist/impl-VGJPIZZY.cjs +0 -2
- package/dist/impl-VGJPIZZY.cjs.map +0 -1
- package/dist/impl-X6Z7MKVJ.cjs +0 -2
- package/dist/impl-X6Z7MKVJ.cjs.map +0 -1
- package/dist/impl-ZGACCLWF.cjs +0 -2
- package/dist/impl-ZGACCLWF.cjs.map +0 -1
- package/dist/impl-ZV4VREIU.cjs +0 -2
- package/dist/impl-ZV4VREIU.cjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/cli/cli/dist/impl-P7UN5WAL.cjs","../src/commands/consent/generate-access-tokens/impl.ts"],"names":["generateAccessTokens","auth","file","transcendUrl","duration","subjectType","emailColumnName","coreIdentifierColumnName","doneInputValidation","existsSync","logger","colors","client","buildTranscendGraphQLClient","codec","rows","readCsv","missingEmail","r","i","rowNumbers"],"mappings":"AAAA,u/BAAwC,wDAAkE,gCAA6B,wDAAyC,gCAA6B,gCAA6B,qECCvN,gFACA,wBAGQ,qGACH,2DAOY,MA4BpC,SAAsBA,CAAAA,CAEpB,CACE,IAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,wBAAA,CAAAC,CACF,CAAA,CACe,CACfC,iCAAAA,IAAoB,CAAK,OAAA,CAAQ,IAAI,CAAA,CAChCC,4BAAAA,CAAe,CAAA,EAAA,CAClBC,mBAAAA,CAAO,KAAA,CACLC,gBAAAA,CAAO,GAAA,CACL,CAAA,sBAAA,EAAyBT,CAAI,CAAA,6CAAA,CAC/B,CACF,CAAA,CACA,IAAA,CAAK,OAAA,CAAQ,IAAA,CAAK,CAAC,CAAA,CAAA,CAGrB,GAAI,CAEF,IAAMU,CAAAA,CAASC,kCAAAA,CAA4BV,CAAcF,CAAI,CAAA,CAGvDa,CAAAA,CAAU,CAAA,CAAA,IAAA,CAAK,CACnB,CAACR,CAAe,CAAA,CAAK,CAAA,CAAA,MAAA,CACrB,GAAIC,CAAAA,CACA,CAAE,CAACA,CAAwB,CAAA,CAAK,CAAA,CAAA,MAAO,CAAA,CACvC,CAAC,CACP,CAAC,CAAA,CACKQ,CAAAA,CAAsCC,kCAAAA,CAAQd,CAAMY,CAAK,CAAA,CAC/D,EAAA,CAAI,CAACC,CAAAA,CAAK,MAAA,CACR,MAAM,IAAI,KAAA,CAAM,qBAAqB,CAAA,CAIvC,IAAME,CAAAA,CAAeF,CAAAA,CAClB,GAAA,CAAI,CAACG,CAAAA,CAAGC,CAAAA,CAAAA,EAAM,CAACD,CAAAA,CAAGC,CAAC,CAAU,CAAA,CAC7B,MAAA,CAAO,CAAC,CAACD,CAAC,CAAA,CAAA,EAAM,iBAACA,CAAAA,mBAAEZ,CAAe,CAAA,6BAAG,IAAA,mBAAK,GAAC,CAAA,CAC9C,EAAA,CAAIW,CAAAA,CAAa,MAAA,CAAQ,CACvB,IAAMG,CAAAA,CAAaH,CAAAA,CAChB,GAAA,CAAI,CAAC,CAAC,CAAEE,CAAC,CAAA,CAAA,EAAMA,CAAAA,CAAI,CAAC,CAAA,CACpB,IAAA,CAAK,IAAI,CAAA,CACZ,MAAM,IAAI,KAAA,CACR,CAAA,6CAAA,EAAgDb,CAAe,CAAA,UAAA,EAAac,CAAU,CAAA,CAAA","file":"/home/runner/work/cli/cli/dist/impl-P7UN5WAL.cjs","sourcesContent":[null,"import type { LocalContext } from '../../../context';\nimport * as t from 'io-ts';\nimport colors from 'colors';\nimport { logger } from '../../../logger';\nimport { doneInputValidation } from '../../../lib/cli/done-input-validation';\nimport { existsSync } from 'node:fs';\nimport cliProgress from 'cli-progress';\nimport {\n buildTranscendGraphQLClient,\n createPreferenceAccessTokens,\n PreferenceAccessTokenInput,\n} from '../../../lib/graphql';\nimport { readCsv } from '../../../lib/requests';\nimport { SombraStandardScope } from '@transcend-io/privacy-types';\nimport { writeCsv } from '../../../lib/helpers';\n\n/**\n * CLI flags accepted by the `generate-access-tokens` command.\n *\n * These are passed down from the CLI parser into the parent process.\n */\nexport type GenerateAccessTokenCommandFlags = {\n auth: string;\n file: string;\n duration: number;\n transcendUrl: string;\n subjectType: string;\n emailColumnName: string;\n coreIdentifierColumnName?: string;\n};\n\n/**\n * Take in a CSV of user identifiers and generate access tokens for each user.\n *\n * Expected CSV columns:\n * - [emailColumnName] (required)\n * - [coreIdentifierColumnName] (optional)\n *\n * @param this - Bound CLI context (provides process exit + logging).\n * @param flags - CLI options for the run.\n */\nexport async function generateAccessTokens(\n this: LocalContext,\n {\n auth,\n file,\n transcendUrl,\n duration,\n subjectType,\n emailColumnName,\n coreIdentifierColumnName,\n }: GenerateAccessTokenCommandFlags,\n): Promise<void> {\n doneInputValidation(this.process.exit);\n if (!existsSync(file)) {\n logger.error(\n colors.red(\n `File does not exist: \"${file}\". Please provide a valid path to a CSV file.`,\n ),\n );\n this.process.exit(1);\n }\n\n try {\n // Create a GraphQL client\n const client = buildTranscendGraphQLClient(transcendUrl, auth);\n\n // Read + parse CSV\n const codec = t.type({\n [emailColumnName]: t.string,\n ...(coreIdentifierColumnName\n ? { [coreIdentifierColumnName]: t.string }\n : {}),\n });\n const rows: Array<Record<string, string>> = readCsv(file, codec);\n if (!rows.length) {\n throw new Error('Input CSV is empty.');\n }\n\n // Ensure emails and core identifiers exist\n const missingEmail = rows\n .map((r, i) => [r, i] as const)\n .filter(([r]) => !r[emailColumnName]?.trim());\n if (missingEmail.length) {\n const rowNumbers = missingEmail\n .map(([, i]) => i + 2) // +2 to account for header row and 0-indexing\n .join(', ');\n throw new Error(\n `The following rows are missing the required \"${emailColumnName}\" column: ${rowNumbers}`,\n );\n }\n if (coreIdentifierColumnName) {\n const missingCoreId = rows\n .map((r, i) => [r, i] as const)\n .filter(([r]) => !r[coreIdentifierColumnName]?.trim());\n if (missingCoreId.length) {\n const rowNumbers = missingCoreId\n .map(([, i]) => i + 2) // +2 to account for header row and 0-indexing\n .join(', ');\n throw new Error(\n `The following rows are missing the required \"${coreIdentifierColumnName}\" column: ${rowNumbers}`,\n );\n }\n }\n\n // Duration provided by CLI is in ms; GraphQL expects seconds\n const expiresInSeconds = Math.max(1, Math.floor(duration / 1000));\n\n // Build inputs for GraphQL\n const inputs = rows.map((r): PreferenceAccessTokenInput => {\n const email = r[emailColumnName].trim();\n const coreIdentifier = coreIdentifierColumnName\n ? r[coreIdentifierColumnName]?.trim()\n : undefined;\n const scopes = [SombraStandardScope.PreferenceManagement];\n return {\n subjectType,\n scopes,\n expiresIn: expiresInSeconds,\n email,\n ...(coreIdentifier ? { coreIdentifier } : {}),\n };\n });\n\n // Progress bar\n const progressBar = new cliProgress.SingleBar(\n {},\n cliProgress.Presets.shades_classic,\n );\n progressBar.start(inputs.length, 0);\n\n // Kick off token creation (batched internally)\n const t0 = Date.now();\n const results = await createPreferenceAccessTokens(\n client,\n inputs,\n (progress) => {\n progressBar.update(progress);\n },\n );\n progressBar.update(inputs.length);\n progressBar.stop();\n\n // Prepare output CSV rows\n const outputRows = results.map(({ accessToken }, ind) => ({\n ...rows[ind],\n token: accessToken,\n }));\n\n logger.info(colors.magenta(`Writing access tokens to file \"${file}\"...`));\n await writeCsv(file, outputRows, true);\n\n const totalTimeSec = Math.round((Date.now() - t0) / 1000);\n logger.info(\n colors.green(\n `Successfully generated ${results.length} access tokens to \"${file}\" in ${totalTimeSec}s!`,\n ),\n );\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n } catch (err: any) {\n logger.error(\n colors.red(\n `An error occurred while generating access tokens: ${\n err?.message || String(err)\n }`,\n ),\n );\n this.process.exit(1);\n }\n}\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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
|
|
2
|
-
//# sourceMappingURL=impl-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunk25SEXRNAcjs = require('./chunk-25SEXRNA.cjs');var _chunkWKCTKYN4cjs = require('./chunk-WKCTKYN4.cjs');var _chunkSE3D4DHAcjs = require('./chunk-SE3D4DHA.cjs');require('./chunk-LCDYXJN6.cjs');var _chunkZUNVPK23cjs = require('./chunk-ZUNVPK23.cjs');require('./chunk-72KHFLMF.cjs');require('./chunk-Q7I37FJV.cjs');var _colors = require('colors'); var _colors2 = _interopRequireDefault(_colors);async function q(){let e=Number(process.env.WORKER_ID||"0");_chunkZUNVPK23cjs.a.info(`[w${e}] ready pid=${process.pid}`),_optionalChain([process, 'access', _ => _.send, 'optionalCall', _2 => _2({type:"ready"})]),process.on("message",async o=>{if(!o||typeof o!="object"||(o.type==="shutdown"&&process.exit(0),o.type!=="task"))return;let{filePath:t,options:p}=o.payload,{outputDir:u,clearOutputDir:i}=p;try{_chunkZUNVPK23cjs.a.info(`[w${e}] processing ${t}`),await _chunkSE3D4DHAcjs.cg.call(void 0, {filePath:t,outputDir:u,clearOutputDir:i,onProgress:(s,n)=>_optionalChain([process, 'access', _3 => _3.send, 'optionalCall', _4 => _4({type:"progress",payload:{filePath:t,processed:s,total:n}})])}),_optionalChain([process, 'access', _5 => _5.send, 'optionalCall', _6 => _6({type:"result",payload:{ok:!0,filePath:t}})])}catch(s){let n=_chunkSE3D4DHAcjs.Wf.call(void 0, s);_chunkZUNVPK23cjs.a.error(`[w${e}] ERROR ${t}: ${s.stack||n}`),_optionalChain([process, 'access', _7 => _7.send, 'optionalCall', _8 => _8({type:"result",payload:{ok:!1,filePath:t,error:n}})])}}),await new Promise(()=>{})}function R(e){return _chunk25SEXRNAcjs.d.call(void 0, e)}function $(e){return _chunk25SEXRNAcjs.e.call(void 0, e)}var v={renderHeader:R,renderWorkers:$};function O(){return typeof __filename<"u"?__filename:process.argv[1]}async function N(e){_chunkWKCTKYN4cjs.a.call(void 0, this.process.exit);let{directory:o,outputDir:t,clearOutputDir:p,concurrency:u,viewerMode:i}=e,s=_chunkSE3D4DHAcjs.bg.call(void 0, o,this),{poolSize:n,cpuCount:d}=_chunk25SEXRNAcjs.a.call(void 0, u,s.length);_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Converting ${s.length} Parquet file(s) \u2192 CSV with pool size ${n} (CPU=${d})`));let w=s.map(r=>({filePath:r,options:{outputDir:t,clearOutputDir:p}})),b={nextTask:()=>w.shift(),taskLabel:r=>r.filePath,initTotals:()=>({}),initSlotProgress:()=>{},onProgress:r=>r,onResult:(r,l)=>({totals:r,ok:!!l.ok}),postProcess:async()=>{}};await _chunk25SEXRNAcjs.f.call(void 0, {title:`Parquet \u2192 CSV - ${o}`,baseDir:o||t||process.cwd(),childFlag:_chunk25SEXRNAcjs.b,childModulePath:O(),poolSize:n,cpuCount:d,filesTotal:s.length,hooks:b,viewerMode:i,render:r=>_chunk25SEXRNAcjs.c.call(void 0, r,v,i),extraKeyHandler:({logsBySlot:r,repaint:l,setPaused:D})=>_chunk25SEXRNAcjs.g.call(void 0, {logsBySlot:r,repaint:l,setPaused:D})})}process.argv.includes(_chunk25SEXRNAcjs.b)&&q().catch(e=>{_chunkZUNVPK23cjs.a.error(e),process.exit(1)});exports.parquetToCsv = N;
|
|
2
|
+
//# sourceMappingURL=impl-PSI4HEVC.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/cli/cli/dist/impl-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/cli/cli/dist/impl-PSI4HEVC.cjs","../src/commands/admin/parquet-to-csv/impl.ts","../src/commands/admin/parquet-to-csv/worker.ts"],"names":["runChild","workerId","logger"],"mappings":"AAAA,quBAAkF,wDAAyC,wDAA0D,gCAA6B,wDAAoC,gCAA6B,gCAA6B,gFCC7R,MCgCnB,SAAsBA,CAAAA,CAAAA,CAA0B,CAC9C,IAAMC,CAAAA,CAAW,MAAA,CAAO,OAAA,CAAQ,GAAA,CAAI,SAAA,EAAa,GAAG,CAAA,CACpDC,mBAAAA,CAAO,IAAA,CAAK,CAAA,EAAA,EAAKD,CAAQ,CAAA,YAAA,EAAe,OAAA,CAAQ,GAAG,CAAA,CAAA","file":"/home/runner/work/cli/cli/dist/impl-PSI4HEVC.cjs","sourcesContent":[null,"import type { LocalContext } from '../../../context';\nimport colors from 'colors';\nimport { logger } from '../../../logger';\nimport { collectParquetFilesOrExit } from '../../../lib/helpers';\nimport {\n computePoolSize,\n createExtraKeyHandler,\n CHILD_FLAG,\n type PoolHooks,\n runPool,\n dashboardPlugin,\n} from '../../../lib/pooling';\nimport {\n runChild,\n type ParquetProgress,\n type ParquetResult,\n type ParquetTask,\n} from './worker';\nimport { parquetToCsvPlugin } from './ui';\nimport { doneInputValidation } from '../../../lib/cli/done-input-validation';\n\n/**\n * Returns the current module's path so the worker pool knows what file to re-exec.\n * In Node ESM, __filename is undefined, so we fall back to argv[1].\n *\n * @returns The current module's path.\n */\nfunction getCurrentModulePath(): string {\n if (typeof __filename !== 'undefined') {\n return __filename as unknown as string;\n }\n return process.argv[1];\n}\n\n/** No custom totals for the header; the runner’s built-ins suffice. */\ntype Totals = Record<string, never>;\n\nexport type ParquetToCsvCommandFlags = {\n directory: string;\n outputDir?: string;\n clearOutputDir: boolean;\n concurrency?: number;\n viewerMode: boolean;\n};\n\n/**\n * Convert all Parquet files in a directory to CSV, in parallel.\n *\n * @param flags - The command flags.\n */\nexport async function parquetToCsv(\n this: LocalContext,\n flags: ParquetToCsvCommandFlags,\n): Promise<void> {\n doneInputValidation(this.process.exit);\n\n const { directory, outputDir, clearOutputDir, concurrency, viewerMode } =\n flags;\n\n /* 1) Discover .parquet inputs */\n const files = collectParquetFilesOrExit(directory, this);\n\n /* 2) Size the pool */\n const { poolSize, cpuCount } = computePoolSize(concurrency, files.length);\n\n logger.info(\n colors.green(\n `Converting ${files.length} Parquet file(s) → CSV with pool size ${poolSize} (CPU=${cpuCount})`,\n ),\n );\n\n /* 3) Build FIFO queue of tasks (one per file) */\n const queue = files.map<ParquetTask>((filePath) => ({\n filePath,\n options: { outputDir, clearOutputDir },\n }));\n\n /* 4) Pool hooks */\n const hooks: PoolHooks<ParquetTask, ParquetProgress, ParquetResult, Totals> =\n {\n nextTask: () => queue.shift(),\n taskLabel: (t) => t.filePath,\n initTotals: () => ({} as Totals),\n initSlotProgress: () => undefined,\n onProgress: (totals) => totals,\n onResult: (totals, res) => ({ totals, ok: !!res.ok }),\n postProcess: async () => {\n // nothing special post-run\n },\n };\n\n /* 5) Launch the pool runner with custom dashboard plugin */\n await runPool({\n title: `Parquet → CSV - ${directory}`,\n baseDir: directory || outputDir || process.cwd(),\n childFlag: CHILD_FLAG,\n childModulePath: getCurrentModulePath(),\n poolSize,\n cpuCount,\n filesTotal: files.length,\n hooks,\n viewerMode,\n render: (input) => dashboardPlugin(input, parquetToCsvPlugin, viewerMode),\n extraKeyHandler: ({ logsBySlot, repaint, setPaused }) =>\n createExtraKeyHandler({ logsBySlot, repaint, setPaused }),\n });\n}\n\n/* -------------------------------------------------------------------------------------------------\n * If invoked directly as a child process, enter worker loop\n * ------------------------------------------------------------------------------------------------- */\nif (process.argv.includes(CHILD_FLAG)) {\n runChild().catch((err) => {\n logger.error(err);\n process.exit(1);\n });\n}\n","import { parquetToCsvOneFile, extractErrorMessage } from '../../../lib/helpers';\nimport type { ToWorker } from '../../../lib/pooling';\nimport { logger } from '../../../logger';\n\nexport type ParquetTask = {\n /** Absolute path of the Parquet file to convert. */\n filePath: string;\n options: {\n /** Optional directory where CSV output files should be written. */\n outputDir?: string;\n /** Whether to clear any pre-existing output before writing new ones. */\n clearOutputDir: boolean;\n };\n};\n\nexport type ParquetProgress = {\n /** File being processed by the worker. */\n filePath: string;\n /** Rows processed so far. */\n processed: number;\n /** Optional known total rows (not always available). */\n total?: number;\n};\n\nexport type ParquetResult = {\n ok: boolean;\n filePath: string;\n error?: string;\n};\n\n/**\n * Worker loop: convert a single Parquet file to one or more CSV files.\n */\nexport async function runChild(): Promise<void> {\n const workerId = Number(process.env.WORKER_ID || '0');\n logger.info(`[w${workerId}] ready pid=${process.pid}`);\n process.send?.({ type: 'ready' });\n\n process.on('message', async (msg: ToWorker<ParquetTask>) => {\n if (!msg || typeof msg !== 'object') return;\n\n if (msg.type === 'shutdown') {\n process.exit(0);\n }\n if (msg.type !== 'task') return;\n\n const { filePath, options } = msg.payload;\n const { outputDir, clearOutputDir } = options;\n\n try {\n logger.info(`[w${workerId}] processing ${filePath}`);\n await parquetToCsvOneFile({\n filePath,\n outputDir,\n clearOutputDir,\n onProgress: (processed, total) =>\n process.send?.({\n type: 'progress',\n payload: { filePath, processed, total },\n }),\n });\n\n process.send?.({\n type: 'result',\n payload: { ok: true, filePath },\n });\n } catch (err) {\n const message = extractErrorMessage(err);\n logger.error(`[w${workerId}] ERROR ${filePath}: ${err.stack || message}`);\n process.send?.({\n type: 'result',\n payload: { ok: false, filePath, error: message },\n });\n }\n });\n\n // keep alive until shutdown\n await new Promise<never>(() => {\n // Do nothing\n });\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkBXWDS6YNcjs = require('./chunk-BXWDS6YN.cjs');var _chunkWKCTKYN4cjs = require('./chunk-WKCTKYN4.cjs');require('./chunk-SE3D4DHA.cjs');require('./chunk-LCDYXJN6.cjs');require('./chunk-ZUNVPK23.cjs');require('./chunk-72KHFLMF.cjs');require('./chunk-Q7I37FJV.cjs');async function m({auth:i,transcendUrl:n,file:o,concurrency:r,actions:s,sombraAuth:a}){_chunkWKCTKYN4cjs.a.call(void 0, this.process.exit),await _chunkBXWDS6YNcjs.a.call(void 0, {file:o,transcendUrl:n,concurrency:r,requestActions:s,auth:i,sombraAuth:a})}exports.pullIdentifiers = m;
|
|
2
|
+
//# sourceMappingURL=impl-PSOKEHCV.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/cli/cli/dist/impl-PSOKEHCV.cjs","../src/commands/request/preflight/pull-identifiers/impl.ts"],"names":["pullIdentifiers","auth","transcendUrl","file","concurrency","actions","sombraAuth","doneInputValidation","pullManualEnrichmentIdentifiersToCsv"],"mappings":"AAAA,iIAAwC,wDAAyC,gCAA6B,gCAA6B,gCAA6B,gCAA6B,gCAA6B,MCclO,SAAsBA,CAAAA,CAEpB,CACE,IAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CACF,CAAA,CACe,CACfC,iCAAAA,IAAoB,CAAK,OAAA,CAAQ,IAAI,CAAA,CAErC,MAAMC,iCAAAA,CACJ,IAAA,CAAAL,CAAAA,CACA,YAAA,CAAAD,CAAAA,CACA,WAAA,CAAAE,CAAAA,CACA,cAAA,CAAgBC,CAAAA,CAChB,IAAA,CAAAJ,CAAAA,CACA,UAAA,CAAAK,CACF,CAAC,CACH,CAAA,4BAAA","file":"/home/runner/work/cli/cli/dist/impl-PSOKEHCV.cjs","sourcesContent":[null,"import type { LocalContext } from '../../../../context';\nimport { pullManualEnrichmentIdentifiersToCsv } from '../../../../lib/manual-enrichment';\nimport type { RequestAction } from '@transcend-io/privacy-types';\nimport { doneInputValidation } from '../../../../lib/cli/done-input-validation';\n\nexport interface PullIdentifiersCommandFlags {\n auth: string;\n sombraAuth?: string;\n transcendUrl: string;\n file: string;\n actions?: RequestAction[];\n concurrency: number;\n}\n\nexport async function pullIdentifiers(\n this: LocalContext,\n {\n auth,\n transcendUrl,\n file,\n concurrency,\n actions,\n sombraAuth,\n }: PullIdentifiersCommandFlags,\n): Promise<void> {\n doneInputValidation(this.process.exit);\n\n await pullManualEnrichmentIdentifiersToCsv({\n file,\n transcendUrl,\n concurrency,\n requestActions: actions,\n auth,\n sombraAuth,\n });\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkBXWDS6YNcjs = require('./chunk-BXWDS6YN.cjs');var _chunkWKCTKYN4cjs = require('./chunk-WKCTKYN4.cjs');require('./chunk-SE3D4DHA.cjs');require('./chunk-LCDYXJN6.cjs');require('./chunk-ZUNVPK23.cjs');require('./chunk-72KHFLMF.cjs');require('./chunk-Q7I37FJV.cjs');async function u({auth:r,transcendUrl:i,file:e,enricherId:o,concurrency:s,markSilent:a,sombraAuth:m}){_chunkWKCTKYN4cjs.a.call(void 0, this.process.exit),await _chunkBXWDS6YNcjs.d.call(void 0, {file:e,transcendUrl:i,enricherId:o,concurrency:s,markSilent:a,auth:r,sombraAuth:m})}exports.pushIdentifiers = u;
|
|
2
|
+
//# sourceMappingURL=impl-QRRBJ7TJ.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/cli/cli/dist/impl-QRRBJ7TJ.cjs","../src/commands/request/preflight/push-identifiers/impl.ts"],"names":["pushIdentifiers","auth","transcendUrl","file","enricherId","concurrency","markSilent","sombraAuth","doneInputValidation","pushManualEnrichmentIdentifiersFromCsv"],"mappings":"AAAA,iIAAwC,wDAAyC,gCAA6B,gCAA6B,gCAA6B,gCAA6B,gCAA6B,MCclO,SAAsBA,CAAAA,CAEpB,CACE,IAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CACF,CAAA,CACe,CACfC,iCAAAA,IAAoB,CAAK,OAAA,CAAQ,IAAI,CAAA,CAErC,MAAMC,iCAAAA,CACJ,IAAA,CAAAN,CAAAA,CACA,YAAA,CAAAD,CAAAA,CACA,UAAA,CAAAE,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,IAAA,CAAAL,CAAAA,CACA,UAAA,CAAAM,CACF,CAAC,CACH,CAAA,4BAAA","file":"/home/runner/work/cli/cli/dist/impl-QRRBJ7TJ.cjs","sourcesContent":[null,"import type { LocalContext } from '../../../../context';\nimport { pushManualEnrichmentIdentifiersFromCsv } from '../../../../lib/manual-enrichment';\nimport { doneInputValidation } from '../../../../lib/cli/done-input-validation';\n\nexport interface PushIdentifiersCommandFlags {\n auth: string;\n enricherId: string;\n sombraAuth?: string;\n transcendUrl: string;\n file: string;\n markSilent: boolean;\n concurrency: number;\n}\n\nexport async function pushIdentifiers(\n this: LocalContext,\n {\n auth,\n transcendUrl,\n file,\n enricherId,\n concurrency,\n markSilent,\n sombraAuth,\n }: PushIdentifiersCommandFlags,\n): Promise<void> {\n doneInputValidation(this.process.exit);\n\n await pushManualEnrichmentIdentifiersFromCsv({\n file,\n transcendUrl,\n enricherId,\n concurrency,\n markSilent,\n auth,\n sombraAuth,\n });\n}\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkWKCTKYN4cjs = require('./chunk-WKCTKYN4.cjs');var
|
|
2
|
-
//# sourceMappingURL=impl-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkWKCTKYN4cjs = require('./chunk-WKCTKYN4.cjs');var _chunkSE3D4DHAcjs = require('./chunk-SE3D4DHA.cjs');require('./chunk-LCDYXJN6.cjs');require('./chunk-ZUNVPK23.cjs');require('./chunk-72KHFLMF.cjs');require('./chunk-Q7I37FJV.cjs');async function p({auth:r,actions:s,statuses:i=[],requestIds:c,silentModeBefore:e,createdAtBefore:t,createdAtAfter:n,cancellationTitle:u,transcendUrl:d,concurrency:l}){_chunkWKCTKYN4cjs.a.call(void 0, this.process.exit),await _chunkSE3D4DHAcjs.Ff.call(void 0, {transcendUrl:d,requestActions:s,auth:r,cancellationTitle:u,requestIds:c,statuses:i,concurrency:l,silentModeBefore:e?new Date(e):void 0,createdAtBefore:t?new Date(t):void 0,createdAtAfter:n?new Date(n):void 0})}exports.cancel = p;
|
|
2
|
+
//# sourceMappingURL=impl-RWI24HQX.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/cli/cli/dist/impl-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/cli/cli/dist/impl-RWI24HQX.cjs","../src/commands/request/cancel/impl.ts"],"names":["cancel","auth","actions","statuses","requestIds","silentModeBefore","createdAtBefore","createdAtAfter","cancellationTitle","transcendUrl","concurrency","doneInputValidation","cancelPrivacyRequests"],"mappings":"AAAA,iIAAwC,wDAA0C,gCAA6B,gCAA6B,gCAA6B,gCAA6B,MCkBtM,SAAsBA,CAAAA,CAEpB,CACE,IAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CAAW,CAAC,CAAA,CACZ,UAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,iBAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CACF,CAAA,CACe,CACfC,iCAAAA,IAAoB,CAAK,OAAA,CAAQ,IAAI,CAAA,CAErC,MAAMC,kCAAAA,CACJ,YAAA,CAAAH,CAAAA,CACA,cAAA,CAAgBP,CAAAA,CAChB,IAAA,CAAAD,CAAAA,CACA,iBAAA,CAAAO,CAAAA,CACA,UAAA,CAAAJ,CAAAA,CACA,QAAA,CAAAD,CAAAA,CACA,WAAA,CAAAO,CAAAA,CACA,gBAAA,CAAkBL,CAAAA,CAAmB,IAAI,IAAA,CAAKA,CAAgB,CAAA,CAAI,KAAA,CAAA,CAClE,eAAA,CAAiBC,CAAAA,CAAkB,IAAI,IAAA,CAAKA,CAAe,CAAA,CAAI,KAAA,CAAA,CAC/D,cAAA,CAAgBC,CAAAA,CAAiB,IAAI,IAAA,CAAKA,CAAc,CAAA,CAAI,KAAA,CAC9D,CAAC,CACH,CAAA,mBAAA","file":"/home/runner/work/cli/cli/dist/impl-RWI24HQX.cjs","sourcesContent":[null,"import type { LocalContext } from '../../../context';\nimport { RequestAction, RequestStatus } from '@transcend-io/privacy-types';\nimport { cancelPrivacyRequests } from '../../../lib/requests';\nimport { doneInputValidation } from '../../../lib/cli/done-input-validation';\n\nexport interface CancelCommandFlags {\n auth: string;\n actions: RequestAction[];\n statuses?: RequestStatus[];\n requestIds?: string[];\n silentModeBefore?: Date;\n createdAtBefore?: Date;\n createdAtAfter?: Date;\n cancellationTitle: string;\n transcendUrl: string;\n concurrency: number;\n}\n\nexport async function cancel(\n this: LocalContext,\n {\n auth,\n actions,\n statuses = [],\n requestIds,\n silentModeBefore,\n createdAtBefore,\n createdAtAfter,\n cancellationTitle,\n transcendUrl,\n concurrency,\n }: CancelCommandFlags,\n): Promise<void> {\n doneInputValidation(this.process.exit);\n\n await cancelPrivacyRequests({\n transcendUrl,\n requestActions: actions,\n auth,\n cancellationTitle,\n requestIds,\n statuses,\n concurrency,\n silentModeBefore: silentModeBefore ? new Date(silentModeBefore) : undefined,\n createdAtBefore: createdAtBefore ? new Date(createdAtBefore) : undefined,\n createdAtAfter: createdAtAfter ? new Date(createdAtAfter) : undefined,\n });\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunkPK4AADUHcjs = require('./chunk-PK4AADUH.cjs');var _chunkWKCTKYN4cjs = require('./chunk-WKCTKYN4.cjs');var _chunkSE3D4DHAcjs = require('./chunk-SE3D4DHA.cjs');require('./chunk-LCDYXJN6.cjs');var _chunkZUNVPK23cjs = require('./chunk-ZUNVPK23.cjs');require('./chunk-72KHFLMF.cjs');require('./chunk-Q7I37FJV.cjs');var _colors = require('colors'); var _colors2 = _interopRequireDefault(_colors);async function A({auth:C,partition:t,sombraAuth:S,file:r,transcendUrl:P,timestampBefore:a,timestampAfter:c,updatedBefore:n,updatedAfter:o,identifiers:h=[],concurrency:I}){_chunkWKCTKYN4cjs.a.call(void 0, this.process.exit);let y=await _chunkSE3D4DHAcjs.xc.call(void 0, P,C,S),m=h.map(i=>{if(!i.includes(":"))return{name:"email",value:i};let[v,w]=i.split(":");return{name:v,value:w}}),x={...a?{timestampBefore:a.toISOString()}:{},...c?{timestampAfter:c.toISOString()}:{},...o||n?{system:{...n?{updatedBefore:n.toISOString()}:{},...o?{updatedAfter:o.toISOString()}:{}}}:{},...m.length>0?{identifiers:m}:{}};_chunkZUNVPK23cjs.a.info(`Fetching consent preferences from partition ${t}...`);let f=await _chunkPK4AADUHcjs.c.call(void 0, y,{partition:t,filterBy:x,limit:I});_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Fetched ${f.length} consent preference records from partition ${t}. `)),_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Writing preferences to CSV file at: ${r}`)),await _chunkSE3D4DHAcjs.og.call(void 0, r,f.map(_chunkPK4AADUHcjs.b)),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully wrote preferences to ${r}`))}exports.pullConsentPreferences = A;
|
|
2
|
+
//# sourceMappingURL=impl-T43D4RDV.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/cli/cli/dist/impl-T43D4RDV.cjs","../src/commands/consent/pull-consent-preferences/impl.ts"],"names":["pullConsentPreferences","auth","partition","sombraAuth","file","transcendUrl","timestampBefore","timestampAfter","updatedBefore","updatedAfter","identifiers","concurrency","doneInputValidation","sombra","createSombraGotInstance","parsedIdentifiers","identifier","name","value","filterBy","logger","preferences","fetchConsentPreferences","colors"],"mappings":"AAAA,iOAA+C,wDAAyC,wDAAkD,gCAA6B,wDAAyC,gCAA6B,gCAA6B,gFCCvP,MA0BnB,SAAsBA,CAAAA,CAEpB,CACE,IAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,aAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CAAc,CAAC,CAAA,CACf,WAAA,CAAAC,CACF,CAAA,CACe,CACfC,iCAAAA,IAAoB,CAAK,OAAA,CAAQ,IAAI,CAAA,CAGrC,IAAMC,CAAAA,CAAS,MAAMC,kCAAAA,CAAwBT,CAAcJ,CAAAA,CAAME,CAAU,CAAA,CAGrEY,CAAAA,CAAoBL,CAAAA,CAAY,GAAA,CACnCM,CAAAA,EAAqC,CACpC,EAAA,CAAI,CAACA,CAAAA,CAAW,QAAA,CAAS,GAAG,CAAA,CAC1B,MAAO,CACL,IAAA,CAAM,OAAA,CACN,KAAA,CAAOA,CACT,CAAA,CAEF,GAAM,CAACC,CAAAA,CAAMC,CAAK,CAAA,CAAIF,CAAAA,CAAW,KAAA,CAAM,GAAG,CAAA,CAC1C,MAAO,CAAE,IAAA,CAAAC,CAAAA,CAAM,KAAA,CAAAC,CAAM,CACvB,CACF,CAAA,CAGMC,CAAAA,CAAW,CACf,GAAIb,CAAAA,CACA,CAAE,eAAA,CAAiBA,CAAAA,CAAgB,WAAA,CAAY,CAAE,CAAA,CACjD,CAAC,CAAA,CACL,GAAIC,CAAAA,CAAiB,CAAE,cAAA,CAAgBA,CAAAA,CAAe,WAAA,CAAY,CAAE,CAAA,CAAI,CAAC,CAAA,CACzE,GAAIE,CAAAA,EAAgBD,CAAAA,CAChB,CACE,MAAA,CAAQ,CACN,GAAIA,CAAAA,CACA,CAAE,aAAA,CAAeA,CAAAA,CAAc,WAAA,CAAY,CAAE,CAAA,CAC7C,CAAC,CAAA,CACL,GAAIC,CAAAA,CACA,CAAE,YAAA,CAAcA,CAAAA,CAAa,WAAA,CAAY,CAAE,CAAA,CAC3C,CAAC,CACP,CACF,CAAA,CACA,CAAC,CAAA,CACL,GAAIM,CAAAA,CAAkB,MAAA,CAAS,CAAA,CAAI,CAAE,WAAA,CAAaA,CAAkB,CAAA,CAAI,CAAC,CAC3E,CAAA,CAEAK,mBAAAA,CAAO,IAAA,CAAK,CAAA,4CAAA,EAA+ClB,CAAS,CAAA,GAAA,CAAK,CAAA,CAEzE,IAAMmB,CAAAA,CAAc,MAAMC,iCAAAA,CAAwBT,CAAQ,CACxD,SAAA,CAAAX,CAAAA,CACA,QAAA,CAAAiB,CAAAA,CACA,KAAA,CAAOR,CACT,CAAC,CAAA,CAEDS,mBAAAA,CAAO,IAAA,CACLG,gBAAAA,CAAO,KAAA,CACL,CAAA,QAAA,EAAWF,CAAAA,CAAY,MAAM,CAAA,2CAAA,EAA8CnB,CAAS,CAAA,EAAA,CACtF,CACF,CAAA,CAEAkB,mBAAAA,CAAO,IAAA,CAAKG,gBAAAA,CAAO,OAAA,CAAQ,CAAA,oCAAA,EAAuCnB,CAAI,CAAA,CAAA","file":"/home/runner/work/cli/cli/dist/impl-T43D4RDV.cjs","sourcesContent":[null,"import type { LocalContext } from '../../../context';\nimport colors from 'colors';\n\nimport {\n fetchConsentPreferences,\n transformPreferenceRecordToCsv,\n type PreferenceIdentifier,\n} from '../../../lib/preference-management';\nimport { createSombraGotInstance } from '../../../lib/graphql';\nimport { doneInputValidation } from '../../../lib/cli/done-input-validation';\nimport { logger } from '../../../logger';\nimport { writeLargeCsv } from '../../../lib/helpers';\n\nexport interface PullConsentPreferencesCommandFlags {\n auth: string;\n partition: string;\n sombraAuth?: string;\n file: string;\n transcendUrl: string;\n timestampBefore?: Date;\n timestampAfter?: Date;\n updatedBefore?: Date;\n updatedAfter?: Date;\n identifiers?: string[];\n concurrency: number;\n}\n\nexport async function pullConsentPreferences(\n this: LocalContext,\n {\n auth,\n partition,\n sombraAuth,\n file,\n transcendUrl,\n timestampBefore,\n timestampAfter,\n updatedBefore,\n updatedAfter,\n identifiers = [],\n concurrency,\n }: PullConsentPreferencesCommandFlags,\n): Promise<void> {\n doneInputValidation(this.process.exit);\n\n // Create sombra instance to communicate with\n const sombra = await createSombraGotInstance(transcendUrl, auth, sombraAuth);\n\n // Identifiers are key:value, parse to PreferenceIdentifier[]\n const parsedIdentifiers = identifiers.map(\n (identifier): PreferenceIdentifier => {\n if (!identifier.includes(':')) {\n return {\n name: 'email',\n value: identifier,\n };\n }\n const [name, value] = identifier.split(':');\n return { name, value };\n },\n );\n\n // Fetch preferences\n const filterBy = {\n ...(timestampBefore\n ? { timestampBefore: timestampBefore.toISOString() }\n : {}),\n ...(timestampAfter ? { timestampAfter: timestampAfter.toISOString() } : {}),\n ...(updatedAfter || updatedBefore\n ? {\n system: {\n ...(updatedBefore\n ? { updatedBefore: updatedBefore.toISOString() }\n : {}),\n ...(updatedAfter\n ? { updatedAfter: updatedAfter.toISOString() }\n : {}),\n },\n }\n : {}),\n ...(parsedIdentifiers.length > 0 ? { identifiers: parsedIdentifiers } : {}),\n };\n\n logger.info(`Fetching consent preferences from partition ${partition}...`);\n\n const preferences = await fetchConsentPreferences(sombra, {\n partition,\n filterBy,\n limit: concurrency,\n });\n\n logger.info(\n colors.green(\n `Fetched ${preferences.length} consent preference records from partition ${partition}. `,\n ),\n );\n\n logger.info(colors.magenta(`Writing preferences to CSV file at: ${file}`));\n\n // Write to disk\n await writeLargeCsv(file, preferences.map(transformPreferenceRecordToCsv));\n\n logger.info(colors.green(`Successfully wrote preferences to ${file}`));\n}\n"]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkIBTP5OXEcjs = require('./chunk-IBTP5OXE.cjs');var _chunkRE5YALEOcjs = require('./chunk-RE5YALEO.cjs');var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkIBTP5OXEcjs = require('./chunk-IBTP5OXE.cjs');var _chunkRE5YALEOcjs = require('./chunk-RE5YALEO.cjs');var _chunk5YELAKPFcjs = require('./chunk-5YELAKPF.cjs');require('./chunk-5UBGZNDC.cjs');var _chunkWKCTKYN4cjs = require('./chunk-WKCTKYN4.cjs');var _chunkSE3D4DHAcjs = require('./chunk-SE3D4DHA.cjs');require('./chunk-LCDYXJN6.cjs');var _chunkZUNVPK23cjs = require('./chunk-ZUNVPK23.cjs');var _chunk72KHFLMFcjs = require('./chunk-72KHFLMF.cjs');require('./chunk-Q7I37FJV.cjs');var _bluebird = require('bluebird');var _fs = require('fs');var _path = require('path');var _colors = require('colors'); var _colors2 = _interopRequireDefault(_colors);async function I({transcendUrl:i,auth:c,pageSize:h,publishToPrivacyCenter:y,contents:l,deleteExtraAttributeValues:m=!1,classifyService:f=!1}){let u=_chunkSE3D4DHAcjs.wc.call(void 0, i,c);try{return!await _chunkSE3D4DHAcjs.sg.call(void 0, l,u,{pageSize:h,publishToPrivacyCenter:y,classifyService:f,deleteExtraAttributeValues:m})}catch(o){return _chunkZUNVPK23cjs.a.error(_colors2.default.red(`An unexpected error occurred syncing the schema: ${o.message}`)),!1}}async function U({file:i="./transcend.yml",transcendUrl:c,auth:h,variables:y,pageSize:l,publishToPrivacyCenter:m,classifyService:f,deleteExtraAttributeValues:u}){_chunkWKCTKYN4cjs.a.call(void 0, this.process.exit);let o=await _chunk5YELAKPFcjs.b.call(void 0, h),N=_chunkSE3D4DHAcjs.Uf.call(void 0, y),p;if(Array.isArray(o)&&_fs.lstatSync.call(void 0, i).isDirectory()?p=_chunk5YELAKPFcjs.c.call(void 0, i).map(e=>_path.join.call(void 0, i,e)):p=i.split(","),p.length<1)throw new Error("No file specified!");let s=p.map(e=>{_fs.existsSync.call(void 0, e)?_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Reading file "${e}"...`)):(_chunkZUNVPK23cjs.a.error(_colors2.default.red(`The file path does not exist on disk: ${e}. You can specify the filepath using --file=./examples/transcend.yml`)),this.process.exit(1));try{let r=_chunkRE5YALEOcjs.d.call(void 0, e,N);return _chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully read in "${e}"`)),{content:r,name:e.split("/").pop().replace(".yml","")}}catch(r){_chunkZUNVPK23cjs.a.error(_colors2.default.red(`The shape of your yaml file is invalid with the following errors: ${r.message}`)),this.process.exit(1)}});if(typeof o=="string"){let[e,...r]=s.map(({content:d})=>d),$=_chunkIBTP5OXEcjs.a.call(void 0, e,...r);await I({transcendUrl:c,auth:o,contents:$,publishToPrivacyCenter:m,deleteExtraAttributeValues:u,pageSize:l,classifyService:!!f})||(_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Sync encountered errors. View output above for more information, or check out ${_chunk72KHFLMFcjs.p}`)),this.process.exit(1))}else{if(s.length!==1&&s.length!==o.length)throw new Error(`Expected list of yml files to be equal to the list of API keys.Got ${s.length} YML file${s.length===1?"":"s"} and ${o.length} API key${o.length===1?"":"s"}`);let e=[];await _bluebird.mapSeries.call(void 0, o,async(r,$)=>{let a=`[${$+1}/${o.length}][${r.organizationName}] `;_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`~~~
|
|
2
2
|
|
|
3
3
|
${a}Attempting to push configuration...
|
|
4
4
|
|
|
5
|
-
~~~`));let d=s.length===1?s[0].content:_optionalChain([s, 'access', _ => _.find, 'call', _2 => _2(E=>E.name===r.organizationName), 'optionalAccess', _3 => _3.content]);if(!d){_chunkZUNVPK23cjs.a.error(_colors2.default.red(`${a}Failed to find transcend.yml file for organization: "${r.organizationName}".`)),e.push(r.organizationName);return}await I({transcendUrl:c,auth:r.apiKey,contents:d,pageSize:l,publishToPrivacyCenter:m,deleteExtraAttributeValues:u,classifyService:f})?_chunkZUNVPK23cjs.a.info(_colors2.default.green(`${a}Successfully pushed configuration!`)):(_chunkZUNVPK23cjs.a.error(_colors2.default.red(`${a}Failed to sync configuration.`)),e.push(r.organizationName))}),e.length>0&&(_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Sync encountered errors for "${e.join(",")}". View output above for more information, or check out ${
|
|
6
|
-
//# sourceMappingURL=impl-
|
|
5
|
+
~~~`));let d=s.length===1?s[0].content:_optionalChain([s, 'access', _ => _.find, 'call', _2 => _2(E=>E.name===r.organizationName), 'optionalAccess', _3 => _3.content]);if(!d){_chunkZUNVPK23cjs.a.error(_colors2.default.red(`${a}Failed to find transcend.yml file for organization: "${r.organizationName}".`)),e.push(r.organizationName);return}await I({transcendUrl:c,auth:r.apiKey,contents:d,pageSize:l,publishToPrivacyCenter:m,deleteExtraAttributeValues:u,classifyService:f})?_chunkZUNVPK23cjs.a.info(_colors2.default.green(`${a}Successfully pushed configuration!`)):(_chunkZUNVPK23cjs.a.error(_colors2.default.red(`${a}Failed to sync configuration.`)),e.push(r.organizationName))}),e.length>0&&(_chunkZUNVPK23cjs.a.info(_colors2.default.red(`Sync encountered errors for "${e.join(",")}". View output above for more information, or check out ${_chunk72KHFLMFcjs.p}`)),this.process.exit(1))}_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced yaml file to Transcend! View at ${_chunk72KHFLMFcjs.p}`))}exports.push = U;
|
|
6
|
+
//# sourceMappingURL=impl-TR52IKLJ.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/cli/cli/dist/impl-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/cli/cli/dist/impl-TR52IKLJ.cjs","../src/commands/inventory/push/impl.ts"],"names":["syncConfiguration","transcendUrl","auth","pageSize","publishToPrivacyCenter","contents","deleteExtraAttributeValues","classifyService","client","buildTranscendGraphQLClient","syncConfigurationToTranscend","err","logger","colors"],"mappings":"AAAA,quBAAwC,wDAAyC,wDAAgD,gCAA6B,wDAAyC,wDAA0D,gCAA6B,wDAAyC,wDAAyC,gCAA6B,oCCGnX,wBACY,4BACjB,gFAEF,MAmBnB,SAAeA,CAAAA,CAAkB,CAC/B,YAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,sBAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,0BAAA,CAAAC,CAAAA,CAA6B,CAAA,CAAA,CAC7B,eAAA,CAAAC,CAAAA,CAAkB,CAAA,CACpB,CAAA,CAeqB,CACnB,IAAMC,CAAAA,CAASC,kCAAAA,CAA4BR,CAAcC,CAAI,CAAA,CAG7D,GAAI,CAWF,MAAO,CAVkB,MAAMQ,kCAAAA,CAC7BL,CACAG,CAAAA,CACA,CACE,QAAA,CAAAL,CAAAA,CACA,sBAAA,CAAAC,CAAAA,CACA,eAAA,CAAAG,CAAAA,CACA,0BAAA,CAAAD,CACF,CACF,CAEF,CAAA,KAAA,CAASK,CAAAA,CAAK,CACZ,OAAAC,mBAAAA,CAAO,KAAA,CACLC,gBAAAA,CAAO,GAAA,CACL,CAAA,iDAAA,EAAoDF,CAAAA,CAAI,OAAO,CAAA,CAAA;AAsI7D;AAAgB;AAAA;AA8D1B,GAAA","file":"/home/runner/work/cli/cli/dist/impl-TR52IKLJ.cjs","sourcesContent":[null,"import type { LocalContext } from '../../../context';\n\nimport { logger } from '../../../logger';\nimport { mapSeries } from 'bluebird';\nimport { existsSync, lstatSync } from 'node:fs';\nimport { join } from 'node:path';\nimport { readTranscendYaml } from '../../../lib/readTranscendYaml';\nimport colors from 'colors';\nimport {\n buildTranscendGraphQLClient,\n syncConfigurationToTranscend,\n} from '../../../lib/graphql';\n\nimport { ADMIN_DASH_INTEGRATIONS } from '../../../constants';\nimport { TranscendInput } from '../../../codecs';\nimport { validateTranscendAuth, listFiles } from '../../../lib/api-keys';\nimport { mergeTranscendInputs } from '../../../lib/mergeTranscendInputs';\nimport { parseVariablesFromString } from '../../../lib/helpers/parseVariablesFromString';\nimport { doneInputValidation } from '../../../lib/cli/done-input-validation';\n\n/**\n * Sync configuration to Transcend\n *\n * @param options - Options\n * @returns True if synced successfully, false if error occurs\n */\nasync function syncConfiguration({\n transcendUrl,\n auth,\n pageSize,\n publishToPrivacyCenter,\n contents,\n deleteExtraAttributeValues = false,\n classifyService = false,\n}: {\n /** Transcend YAML */\n contents: TranscendInput;\n /** Transcend URL */\n transcendUrl: string;\n /** API key */\n auth: string;\n /** Page size */\n pageSize: number;\n /** Skip privacy center publish step */\n publishToPrivacyCenter: boolean;\n /** classify data flow service if missing */\n classifyService?: boolean;\n /** Delete attributes when syncing */\n deleteExtraAttributeValues?: boolean;\n}): Promise<boolean> {\n const client = buildTranscendGraphQLClient(transcendUrl, auth);\n\n // Sync to Transcend\n try {\n const encounteredError = await syncConfigurationToTranscend(\n contents,\n client,\n {\n pageSize,\n publishToPrivacyCenter,\n classifyService,\n deleteExtraAttributeValues,\n },\n );\n return !encounteredError;\n } catch (err) {\n logger.error(\n colors.red(\n `An unexpected error occurred syncing the schema: ${err.message}`,\n ),\n );\n return false;\n }\n}\n\nexport interface PushCommandFlags {\n auth: string;\n file: string;\n transcendUrl: string;\n pageSize: number;\n variables: string;\n publishToPrivacyCenter: boolean;\n classifyService: boolean;\n deleteExtraAttributeValues: boolean;\n}\n\nexport async function push(\n this: LocalContext,\n {\n file = './transcend.yml',\n transcendUrl,\n auth,\n variables,\n pageSize,\n publishToPrivacyCenter,\n classifyService,\n deleteExtraAttributeValues,\n }: PushCommandFlags,\n): Promise<void> {\n doneInputValidation(this.process.exit);\n\n // Parse authentication as API key or path to list of API keys\n const apiKeyOrList = await validateTranscendAuth(auth);\n\n // Parse out the variables\n const vars = parseVariablesFromString(variables);\n\n // check if we are being passed a list of API keys and a list of files\n let fileList: string[];\n if (Array.isArray(apiKeyOrList) && lstatSync(file).isDirectory()) {\n fileList = listFiles(file).map((filePath) => join(file, filePath));\n } else {\n fileList = file.split(',');\n }\n\n // Ensure at least one file is parsed\n if (fileList.length < 1) {\n throw new Error('No file specified!');\n }\n\n // eslint-disable-next-line array-callback-return,consistent-return\n const transcendInputs = fileList.map((filePath) => {\n // Ensure yaml file exists on disk\n if (!existsSync(filePath)) {\n logger.error(\n colors.red(\n `The file path does not exist on disk: ${filePath}. You can specify the filepath using --file=./examples/transcend.yml`,\n ),\n );\n this.process.exit(1);\n } else {\n logger.info(colors.magenta(`Reading file \"${filePath}\"...`));\n }\n\n try {\n // Read in the yaml file and validate it's shape\n const newContents = readTranscendYaml(filePath, vars);\n logger.info(colors.green(`Successfully read in \"${filePath}\"`));\n return {\n content: newContents,\n name: filePath.split('/').pop()!.replace('.yml', ''),\n };\n } catch (err) {\n logger.error(\n colors.red(\n `The shape of your yaml file is invalid with the following errors: ${err.message}`,\n ),\n );\n this.process.exit(1);\n }\n });\n\n // process a single API key\n if (typeof apiKeyOrList === 'string') {\n // if passed multiple inputs, merge them together\n const [base, ...rest] = transcendInputs.map(({ content }) => content);\n const contents = mergeTranscendInputs(base, ...rest);\n\n // sync the configuration\n const success = await syncConfiguration({\n transcendUrl,\n auth: apiKeyOrList,\n contents,\n publishToPrivacyCenter,\n deleteExtraAttributeValues,\n pageSize,\n classifyService: !!classifyService,\n });\n\n // exist with error code\n if (!success) {\n logger.info(\n colors.red(\n `Sync encountered errors. View output above for more information, or check out ${ADMIN_DASH_INTEGRATIONS}`,\n ),\n );\n\n this.process.exit(1);\n }\n } else {\n // if passed multiple inputs, expect them to be one per instance\n if (\n transcendInputs.length !== 1 &&\n transcendInputs.length !== apiKeyOrList.length\n ) {\n throw new Error(\n 'Expected list of yml files to be equal to the list of API keys.' +\n `Got ${transcendInputs.length} YML file${\n transcendInputs.length === 1 ? '' : 's'\n } and ${apiKeyOrList.length} API key${\n apiKeyOrList.length === 1 ? '' : 's'\n }`,\n );\n }\n\n const encounteredErrors: string[] = [];\n await mapSeries(apiKeyOrList, async (apiKey, ind) => {\n const prefix = `[${ind + 1}/${apiKeyOrList.length}][${\n apiKey.organizationName\n }] `;\n logger.info(\n colors.magenta(\n `~~~\\n\\n${prefix}Attempting to push configuration...\\n\\n~~~`,\n ),\n );\n\n // use the merged contents if 1 yml passed, else use the contents that map to that organization\n const useContents =\n transcendInputs.length === 1\n ? transcendInputs[0].content\n : transcendInputs.find(\n (input) => input.name === apiKey.organizationName,\n )?.content;\n\n // Throw error if cannot find a yml file matching that organization name\n if (!useContents) {\n logger.error(\n colors.red(\n `${prefix}Failed to find transcend.yml file for organization: \"${apiKey.organizationName}\".`,\n ),\n );\n encounteredErrors.push(apiKey.organizationName);\n return;\n }\n\n const success = await syncConfiguration({\n transcendUrl,\n auth: apiKey.apiKey,\n contents: useContents,\n pageSize,\n publishToPrivacyCenter,\n deleteExtraAttributeValues,\n classifyService,\n });\n\n if (success) {\n logger.info(\n colors.green(`${prefix}Successfully pushed configuration!`),\n );\n } else {\n logger.error(colors.red(`${prefix}Failed to sync configuration.`));\n encounteredErrors.push(apiKey.organizationName);\n }\n });\n\n if (encounteredErrors.length > 0) {\n logger.info(\n colors.red(\n `Sync encountered errors for \"${encounteredErrors.join(\n ',',\n )}\". View output above for more information, or check out ${ADMIN_DASH_INTEGRATIONS}`,\n ),\n );\n\n this.process.exit(1);\n }\n }\n\n // Indicate success\n logger.info(\n colors.green(\n `Successfully synced yaml file to Transcend! View at ${ADMIN_DASH_INTEGRATIONS}`,\n ),\n );\n}\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var
|
|
2
|
-
//# sourceMappingURL=impl-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunk3R32U46Ucjs = require('./chunk-3R32U46U.cjs');require('./chunk-NDHQBERA.cjs');var _chunk5YELAKPFcjs = require('./chunk-5YELAKPF.cjs');require('./chunk-5UBGZNDC.cjs');var _chunkWKCTKYN4cjs = require('./chunk-WKCTKYN4.cjs');require('./chunk-SE3D4DHA.cjs');require('./chunk-LCDYXJN6.cjs');var _chunkZUNVPK23cjs = require('./chunk-ZUNVPK23.cjs');require('./chunk-72KHFLMF.cjs');require('./chunk-Q7I37FJV.cjs');var _colors = require('colors'); var _colors2 = _interopRequireDefault(_colors);var _fs = require('fs');async function L({auth:d,xdiLocation:c,file:o,removeIpAddresses:l,domainBlockList:i,xdiAllowedCommands:a,transcendUrl:m}){_chunkWKCTKYN4cjs.a.call(void 0, this.process.exit);let p=await _chunk5YELAKPFcjs.b.call(void 0, d),{syncGroups:f,html:u}=await _chunk3R32U46Ucjs.g.call(void 0, p,{xdiLocation:c,transcendUrl:m,removeIpAddresses:l,domainBlockList:i.length>0?i:void 0,xdiAllowedCommands:a});_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully constructed sync endpoint for sync groups: ${JSON.stringify(f,null,2)}`)),_fs.writeFileSync.call(void 0, o,u),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Wrote configuration to file "${o}"!`))}exports.buildXdiSyncEndpoint = L;
|
|
2
|
+
//# sourceMappingURL=impl-ULSJ77P4.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/cli/cli/dist/impl-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/cli/cli/dist/impl-ULSJ77P4.cjs","../src/commands/consent/build-xdi-sync-endpoint/impl.ts"],"names":["buildXdiSyncEndpoint","auth","xdiLocation","file","removeIpAddresses","domainBlockList","xdiAllowedCommands","transcendUrl","doneInputValidation","apiKeyOrList","validateTranscendAuth","syncGroups","html","logger","colors"],"mappings":"AAAA,iOAAwC,gCAA6B,wDAAyC,gCAA6B,wDAAyC,gCAA6B,gCAA6B,wDAAyC,gCAA6B,gCAA6B,gFCE9T,wBACW,MAe9B,SAAsBA,CAAAA,CAEpB,CACE,IAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,iBAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,kBAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CACF,CAAA,CACe,CACfC,iCAAAA,IAAoB,CAAK,OAAA,CAAQ,IAAI,CAAA,CAGrC,IAAMC,CAAAA,CAAe,MAAMC,iCAAAA,CAA0B,CAAA,CAG/C,CAAE,UAAA,CAAAC,CAAAA,CAAY,IAAA,CAAAC,CAAK,CAAA,CAAI,MAAMZ,iCAAAA,CAA2BS,CAAc,CAC1E,WAAA,CAAAP,CAAAA,CACA,YAAA,CAAAK,CAAAA,CACA,iBAAA,CAAAH,CAAAA,CACA,eAAA,CAAiBC,CAAAA,CAAgB,MAAA,CAAS,CAAA,CAAIA,CAAAA,CAAkB,KAAA,CAAA,CAChE,kBAAA,CAAAC,CACF,CAAC,CAAA,CAGDO,mBAAAA,CAAO,IAAA,CACLC,gBAAAA,CAAO,KAAA,CACL,CAAA,wDAAA,EAA2D,IAAA,CAAK,SAAA,CAC9DH,CAAAA,CACA,IAAA,CACA,CACF,CAAC,CAAA,CAAA","file":"/home/runner/work/cli/cli/dist/impl-ULSJ77P4.cjs","sourcesContent":[null,"import type { LocalContext } from '../../../context';\nimport { logger } from '../../../logger';\nimport colors from 'colors';\nimport { writeFileSync } from 'node:fs';\nimport { validateTranscendAuth } from '../../../lib/api-keys';\nimport { buildXdiSyncEndpoint as buildXdiSyncEndpointHelper } from '../../../lib/consent-manager';\nimport { doneInputValidation } from '../../../lib/cli/done-input-validation';\n\nexport interface BuildXdiSyncEndpointCommandFlags {\n auth: string;\n xdiLocation: string;\n file: string;\n removeIpAddresses: boolean;\n domainBlockList: string[];\n xdiAllowedCommands: string;\n transcendUrl: string;\n}\n\nexport async function buildXdiSyncEndpoint(\n this: LocalContext,\n {\n auth,\n xdiLocation,\n file,\n removeIpAddresses,\n domainBlockList,\n xdiAllowedCommands,\n transcendUrl,\n }: BuildXdiSyncEndpointCommandFlags,\n): Promise<void> {\n doneInputValidation(this.process.exit);\n\n // Parse authentication as API key or path to list of API keys\n const apiKeyOrList = await validateTranscendAuth(auth);\n\n // Build the sync endpoint\n const { syncGroups, html } = await buildXdiSyncEndpointHelper(apiKeyOrList, {\n xdiLocation,\n transcendUrl,\n removeIpAddresses,\n domainBlockList: domainBlockList.length > 0 ? domainBlockList : undefined,\n xdiAllowedCommands,\n });\n\n // Log success\n logger.info(\n colors.green(\n `Successfully constructed sync endpoint for sync groups: ${JSON.stringify(\n syncGroups,\n null,\n 2,\n )}`,\n ),\n );\n\n // Write to disk\n writeFileSync(file, html);\n logger.info(colors.green(`Wrote configuration to file \"${file}\"!`));\n}\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
2
|
-
//# sourceMappingURL=impl-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk3R32U46Ucjs = require('./chunk-3R32U46U.cjs');require('./chunk-NDHQBERA.cjs');require('./chunk-5UBGZNDC.cjs');var _chunkWKCTKYN4cjs = require('./chunk-WKCTKYN4.cjs');require('./chunk-SE3D4DHA.cjs');require('./chunk-LCDYXJN6.cjs');require('./chunk-ZUNVPK23.cjs');require('./chunk-72KHFLMF.cjs');require('./chunk-Q7I37FJV.cjs');async function m({auth:a,trackerStatus:r,file:s,classifyService:e,transcendUrl:n}){_chunkWKCTKYN4cjs.a.call(void 0, this.process.exit),await _chunk3R32U46Ucjs.b.call(void 0, {auth:a,trackerStatus:r,file:s,classifyService:e,transcendUrl:n})}exports.uploadDataFlowsFromCsv = m;
|
|
2
|
+
//# sourceMappingURL=impl-VAQDWFBI.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/cli/cli/dist/impl-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/cli/cli/dist/impl-VAQDWFBI.cjs","../src/commands/consent/upload-data-flows-from-csv/impl.ts"],"names":["uploadDataFlowsFromCsv","auth","trackerStatus","file","classifyService","transcendUrl","doneInputValidation"],"mappings":"AAAA,iIAAwC,gCAA6B,gCAA6B,wDAAyC,gCAA6B,gCAA6B,gCAA6B,gCAA6B,gCAA6B,MCa5R,SAAsBA,CAAAA,CAEpB,CACE,IAAA,CAAAC,CAAAA,CACA,aAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CACF,CAAA,CACe,CACfC,iCAAAA,IAAoB,CAAK,OAAA,CAAQ,IAAI,CAAA,CAErC,MAAMN,iCAAAA,CACJ,IAAA,CAAAC,CAAAA,CACA,aAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CACF,CAAC,CACH,CAAA,mCAAA","file":"/home/runner/work/cli/cli/dist/impl-VAQDWFBI.cjs","sourcesContent":[null,"import type { LocalContext } from '../../../context';\nimport { uploadDataFlowsFromCsv as uploadDataFlowsFromCsvHelper } from '../../../lib/consent-manager';\nimport { ConsentTrackerStatus } from '@transcend-io/privacy-types';\nimport { doneInputValidation } from '../../../lib/cli/done-input-validation';\n\nexport interface UploadDataFlowsFromCsvCommandFlags {\n auth: string;\n trackerStatus: ConsentTrackerStatus;\n file: string;\n classifyService: boolean;\n transcendUrl: string;\n}\n\nexport async function uploadDataFlowsFromCsv(\n this: LocalContext,\n {\n auth,\n trackerStatus,\n file,\n classifyService,\n transcendUrl,\n }: UploadDataFlowsFromCsvCommandFlags,\n): Promise<void> {\n doneInputValidation(this.process.exit);\n\n await uploadDataFlowsFromCsvHelper({\n auth,\n trackerStatus,\n file,\n classifyService,\n transcendUrl,\n });\n}\n"]}
|
|
@@ -0,0 +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; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunkJI7R6PYDcjs = require('./chunk-JI7R6PYD.cjs');var _chunkWKCTKYN4cjs = require('./chunk-WKCTKYN4.cjs');var _chunkSE3D4DHAcjs = require('./chunk-SE3D4DHA.cjs');require('./chunk-LCDYXJN6.cjs');var _chunkZUNVPK23cjs = require('./chunk-ZUNVPK23.cjs');require('./chunk-72KHFLMF.cjs');require('./chunk-Q7I37FJV.cjs');var _colors = require('colors'); var _colors2 = _interopRequireDefault(_colors);var _iots = require('io-ts'); var t = _interopRequireWildcard(_iots);var c=t.type({"Request Id":t.string});async function q({auth:i,dataSiloId:m,file:o,transcendUrl:n}){_chunkWKCTKYN4cjs.a.call(void 0, this.process.exit),_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Reading "${o}" from disk`));let d=_chunkSE3D4DHAcjs.rc.call(void 0, o,c);await _chunkJI7R6PYDcjs.f.call(void 0, {requestIds:d.map(l=>l["Request Id"]),transcendUrl:n,auth:i,dataSiloId:m})}exports.markRequestDataSilosCompleted = q;
|
|
2
|
+
//# sourceMappingURL=impl-WTX7DJCA.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/cli/cli/dist/impl-WTX7DJCA.cjs","../src/commands/request/system/mark-request-data-silos-completed/impl.ts"],"names":["RequestIdRow","markRequestDataSilosCompleted","auth","dataSiloId","file","transcendUrl","doneInputValidation","logger","colors","activeResults","readCsv","markRequestDataSiloIdsCompleted","request"],"mappings":"AAAA,mfAAwC,wDAAyC,wDAA0C,gCAA6B,wDAAyC,gCAA6B,gCAA6B,gFCCxO,qEACA,IAObA,CAAAA,CAAiB,CAAA,CAAA,IAAA,CAAK,CAC1B,YAAA,CAAgB,CAAA,CAAA,MAClB,CAAC,CAAA,CASD,MAAA,SAAsBC,CAAAA,CAEpB,CACE,IAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CACF,CAAA,CACe,CACfC,iCAAAA,IAAoB,CAAK,OAAA,CAAQ,IAAI,CAAA,CAErCC,mBAAAA,CAAO,IAAA,CAAKC,gBAAAA,CAAO,OAAA,CAAQ,CAAA,SAAA,EAAYJ,CAAI,CAAA,WAAA,CAAa,CAAC,CAAA,CACzD,IAAMK,CAAAA,CAAgBC,kCAAAA,CAAQN,CAAMJ,CAAY,CAAA,CAEhD,MAAMW,iCAAAA,CACJ,UAAA,CAAYF,CAAAA,CAAc,GAAA,CAAKG,CAAAA,EAAYA,CAAAA,CAAQ,YAAY,CAAC,CAAA,CAChE,YAAA,CAAAP,CAAAA,CACA,IAAA,CAAAH,CAAAA,CACA,UAAA,CAAAC,CACF,CAAC,CACH,CAAA,0CAAA","file":"/home/runner/work/cli/cli/dist/impl-WTX7DJCA.cjs","sourcesContent":[null,"import type { LocalContext } from '../../../../context';\nimport colors from 'colors';\nimport * as t from 'io-ts';\n\nimport { logger } from '../../../../logger';\nimport { markRequestDataSiloIdsCompleted } from '../../../../lib/cron';\nimport { readCsv } from '../../../../lib/requests';\nimport { doneInputValidation } from '../../../../lib/cli/done-input-validation';\n\nconst RequestIdRow = t.type({\n 'Request Id': t.string,\n});\n\nexport interface MarkRequestDataSilosCompletedCommandFlags {\n auth: string;\n dataSiloId: string;\n file: string;\n transcendUrl: string;\n}\n\nexport async function markRequestDataSilosCompleted(\n this: LocalContext,\n {\n auth,\n dataSiloId,\n file,\n transcendUrl,\n }: MarkRequestDataSilosCompletedCommandFlags,\n): Promise<void> {\n doneInputValidation(this.process.exit);\n\n logger.info(colors.magenta(`Reading \"${file}\" from disk`));\n const activeResults = readCsv(file, RequestIdRow);\n\n await markRequestDataSiloIdsCompleted({\n requestIds: activeResults.map((request) => request['Request Id']),\n transcendUrl,\n auth,\n dataSiloId,\n });\n}\n"]}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunkPTAFCUJKcjs = require('./chunk-PTAFCUJK.cjs');var _chunkWKCTKYN4cjs = require('./chunk-WKCTKYN4.cjs');var _chunkSE3D4DHAcjs = require('./chunk-SE3D4DHA.cjs');require('./chunk-LCDYXJN6.cjs');var _chunkZUNVPK23cjs = require('./chunk-ZUNVPK23.cjs');var _chunk72KHFLMFcjs = require('./chunk-72KHFLMF.cjs');require('./chunk-Q7I37FJV.cjs');var _colors = require('colors'); var _colors2 = _interopRequireDefault(_colors);async function j({auth:p,file:o,transcendUrl:f,dataSiloIds:g,subCategories:C,status:S,includeEncryptedSnippets:a}){_chunkWKCTKYN4cjs.a.call(void 0, this.process.exit);try{let i=_chunkSE3D4DHAcjs.wc.call(void 0, f,p),b=await _chunkPTAFCUJKcjs.b.call(void 0, i,{dataSiloIds:g,subCategories:C,status:S,includeEncryptedSnippets:a});_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Writing unstructured discovery files to file "${o}"...`));let s=[],h=b.map(t=>{let n={"Entry ID":t.id,"Data Silo ID":t.dataSiloId,"Object Path ID":t.scannedObjectPathId,"Object ID":t.scannedObjectId,...a?{Entry:t.name,"Context Snippet":t.contextSnippet}:{},"Data Category":`${t.dataSubCategory.category}:${t.dataSubCategory.name}`,"Classification Status":t.status,"Confidence Score":t.confidence,"Classification Method":t.classificationMethod,"Classifier Version":t.classifierVersion};return s=_chunk72KHFLMFcjs.j.call(void 0, [...s,...Object.keys(n)]),n});await _chunkSE3D4DHAcjs.og.call(void 0, o,h,s)}catch(i){_chunkZUNVPK23cjs.a.error(_colors2.default.red(`An error occurred syncing the unstructured discovery files: ${i.message}`)),this.process.exit(1)}_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully synced unstructured discovery files to disk at ${o}!`))}exports.pullUnstructuredDiscoveryFiles = j;
|
|
2
|
+
//# sourceMappingURL=impl-Z2NWFPPS.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/cli/cli/dist/impl-Z2NWFPPS.cjs","../src/commands/inventory/pull-unstructured-discovery-files/impl.ts"],"names":["pullUnstructuredDiscoveryFiles","auth","file","transcendUrl","dataSiloIds","subCategories","status","includeEncryptedSnippets","doneInputValidation","client","buildTranscendGraphQLClient","entries","pullUnstructuredSubDataPointRecommendations","logger","colors","headers","inputs","entry","result"],"mappings":"AAAA,iOAAwC,wDAAyC,wDAAkD,gCAA6B,wDAAyC,wDAAyC,gCAA6B,gFCE5P,MAkBnB,SAAsBA,CAAAA,CAEpB,CACE,IAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,aAAA,CAAAC,CAAAA,CACA,MAAA,CAAAC,CAAAA,CACA,wBAAA,CAAAC,CACF,CAAA,CACe,CACfC,iCAAAA,IAAoB,CAAK,OAAA,CAAQ,IAAI,CAAA,CAErC,GAAI,CAEF,IAAMC,CAAAA,CAASC,kCAAAA,CAA4BP,CAAcF,CAAI,CAAA,CAEvDU,CAAAA,CAAU,MAAMC,iCAAAA,CAA4CH,CAAQ,CACxE,WAAA,CAAAL,CAAAA,CACA,aAAA,CAAAC,CAAAA,CACA,MAAA,CAAAC,CAAAA,CACA,wBAAA,CAAAC,CACF,CAAC,CAAA,CAEDM,mBAAAA,CAAO,IAAA,CACLC,gBAAAA,CAAO,OAAA,CACL,CAAA,8CAAA,EAAiDZ,CAAI,CAAA,IAAA,CACvD,CACF,CAAA,CACA,IAAIa,CAAAA,CAAoB,CAAC,CAAA,CACnBC,CAAAA,CAASL,CAAAA,CAAQ,GAAA,CAAKM,CAAAA,EAAU,CACpC,IAAMC,CAAAA,CAAS,CACb,UAAA,CAAYD,CAAAA,CAAM,EAAA,CAClB,cAAA,CAAgBA,CAAAA,CAAM,UAAA,CACtB,gBAAA,CAAkBA,CAAAA,CAAM,mBAAA,CACxB,WAAA,CAAaA,CAAAA,CAAM,eAAA,CACnB,GAAIV,CAAAA,CACA,CAAE,KAAA,CAAOU,CAAAA,CAAM,IAAA,CAAM,iBAAA,CAAmBA,CAAAA,CAAM,cAAe,CAAA,CAC7D,CAAC,CAAA,CACL,eAAA,CAAiB,CAAA,EAAA","file":"/home/runner/work/cli/cli/dist/impl-Z2NWFPPS.cjs","sourcesContent":[null,"import type { LocalContext } from '../../../context';\nimport type { UnstructuredSubDataPointRecommendationStatus } from '@transcend-io/privacy-types';\nimport colors from 'colors';\nimport { uniq } from 'lodash-es';\nimport { pullUnstructuredSubDataPointRecommendations } from '../../../lib/data-inventory';\nimport { buildTranscendGraphQLClient } from '../../../lib/graphql';\nimport { logger } from '../../../logger';\nimport { doneInputValidation } from '../../../lib/cli/done-input-validation';\nimport { writeLargeCsv } from '../../../lib/helpers';\n\nexport interface PullUnstructuredDiscoveryFilesCommandFlags {\n auth: string;\n file: string;\n transcendUrl: string;\n dataSiloIds?: string[];\n subCategories?: string[];\n status?: UnstructuredSubDataPointRecommendationStatus[];\n includeEncryptedSnippets: boolean;\n}\n\nexport async function pullUnstructuredDiscoveryFiles(\n this: LocalContext,\n {\n auth,\n file,\n transcendUrl,\n dataSiloIds,\n subCategories,\n status,\n includeEncryptedSnippets,\n }: PullUnstructuredDiscoveryFilesCommandFlags,\n): Promise<void> {\n doneInputValidation(this.process.exit);\n\n try {\n // Create a GraphQL client\n const client = buildTranscendGraphQLClient(transcendUrl, auth);\n\n const entries = await pullUnstructuredSubDataPointRecommendations(client, {\n dataSiloIds,\n subCategories, // TODO: https://transcend.height.app/T-40482 - do by name not ID\n status,\n includeEncryptedSnippets,\n });\n\n logger.info(\n colors.magenta(\n `Writing unstructured discovery files to file \"${file}\"...`,\n ),\n );\n let headers: string[] = [];\n const inputs = entries.map((entry) => {\n const result = {\n 'Entry ID': entry.id,\n 'Data Silo ID': entry.dataSiloId,\n 'Object Path ID': entry.scannedObjectPathId,\n 'Object ID': entry.scannedObjectId,\n ...(includeEncryptedSnippets\n ? { Entry: entry.name, 'Context Snippet': entry.contextSnippet }\n : {}),\n 'Data Category': `${entry.dataSubCategory.category}:${entry.dataSubCategory.name}`,\n 'Classification Status': entry.status,\n 'Confidence Score': entry.confidence,\n 'Classification Method': entry.classificationMethod,\n 'Classifier Version': entry.classifierVersion,\n };\n headers = uniq([...headers, ...Object.keys(result)]);\n return result;\n });\n await writeLargeCsv(file, inputs, headers);\n } catch (err) {\n logger.error(\n colors.red(\n `An error occurred syncing the unstructured discovery files: ${err.message}`,\n ),\n );\n this.process.exit(1);\n }\n\n // Indicate success\n logger.info(\n colors.green(\n `Successfully synced unstructured discovery files to disk at ${file}!`,\n ),\n );\n}\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkWKCTKYN4cjs = require('./chunk-WKCTKYN4.cjs');var
|
|
2
|
-
//# sourceMappingURL=impl-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkWKCTKYN4cjs = require('./chunk-WKCTKYN4.cjs');var _chunkSE3D4DHAcjs = require('./chunk-SE3D4DHA.cjs');require('./chunk-LCDYXJN6.cjs');require('./chunk-ZUNVPK23.cjs');require('./chunk-72KHFLMF.cjs');require('./chunk-Q7I37FJV.cjs');async function y({auth:s,requestReceiptFolder:r,sombraAuth:o,actions:a,statuses:i,requestIds:n,createdAt:c,emailIsVerified:u,silentModeBefore:d,sendEmailReceipt:m,copyIdentifiers:p,skipWaitingPeriod:l,createdAtBefore:f,createdAtAfter:R,concurrency:q,transcendUrl:g}){_chunkWKCTKYN4cjs.a.call(void 0, this.process.exit),await _chunkSE3D4DHAcjs.Kf.call(void 0, {requestReceiptFolder:r,auth:s,sombraAuth:o,requestActions:a,requestStatuses:i,requestIds:n,createdAt:c,emailIsVerified:u,silentModeBefore:d,sendEmailReceipt:m,copyIdentifiers:p,skipWaitingPeriod:l,createdAtBefore:f,createdAtAfter:R,concurrency:q,transcendUrl:g})}exports.restart = y;
|
|
2
|
+
//# sourceMappingURL=impl-Z43DTT4U.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/cli/cli/dist/impl-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/cli/cli/dist/impl-Z43DTT4U.cjs","../src/commands/request/restart/impl.ts"],"names":["restart","auth","requestReceiptFolder","sombraAuth","actions","statuses","requestIds","createdAt","emailIsVerified","silentModeBefore","sendEmailReceipt","copyIdentifiers","skipWaitingPeriod","createdAtBefore","createdAtAfter","concurrency","transcendUrl","doneInputValidation","bulkRestartRequests"],"mappings":"AAAA,iIAAwC,wDAA0C,gCAA6B,gCAA6B,gCAA6B,gCAA6B,MCwBtM,SAAsBA,CAAAA,CAEpB,CACE,IAAA,CAAAC,CAAAA,CACA,oBAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,OAAA,CAAAC,CAAAA,CACA,QAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,iBAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CACF,CAAA,CACe,CACfC,iCAAAA,IAAoB,CAAK,OAAA,CAAQ,IAAI,CAAA,CAErC,MAAMC,kCAAAA,CACJ,oBAAA,CAAAhB,CAAAA,CACA,IAAA,CAAAD,CAAAA,CACA,UAAA,CAAAE,CAAAA,CACA,cAAA,CAAgBC,CAAAA,CAChB,eAAA,CAAiBC,CAAAA,CACjB,UAAA,CAAAC,CAAAA,CACA,SAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CACA,gBAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,iBAAA,CAAAC,CAAAA,CACA,eAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CACA,WAAA,CAAAC,CAAAA,CACA,YAAA,CAAAC,CACF,CAAC,CACH,CAAA,oBAAA","file":"/home/runner/work/cli/cli/dist/impl-Z43DTT4U.cjs","sourcesContent":[null,"import type { LocalContext } from '../../../context';\nimport { bulkRestartRequests } from '../../../lib/requests';\nimport type { RequestAction, RequestStatus } from '@transcend-io/privacy-types';\nimport { doneInputValidation } from '../../../lib/cli/done-input-validation';\n\nexport interface RestartCommandFlags {\n auth: string;\n actions: RequestAction[];\n statuses: RequestStatus[];\n transcendUrl: string;\n requestReceiptFolder: string;\n sombraAuth?: string;\n concurrency: number;\n requestIds?: string[];\n emailIsVerified: boolean;\n createdAt?: Date;\n silentModeBefore?: Date;\n createdAtBefore?: Date;\n createdAtAfter?: Date;\n sendEmailReceipt: boolean;\n copyIdentifiers: boolean;\n skipWaitingPeriod: boolean;\n}\n\nexport async function restart(\n this: LocalContext,\n {\n auth,\n requestReceiptFolder,\n sombraAuth,\n actions,\n statuses,\n requestIds,\n createdAt,\n emailIsVerified,\n silentModeBefore,\n sendEmailReceipt,\n copyIdentifiers,\n skipWaitingPeriod,\n createdAtBefore,\n createdAtAfter,\n concurrency,\n transcendUrl,\n }: RestartCommandFlags,\n): Promise<void> {\n doneInputValidation(this.process.exit);\n\n await bulkRestartRequests({\n requestReceiptFolder,\n auth,\n sombraAuth,\n requestActions: actions,\n requestStatuses: statuses,\n requestIds,\n createdAt,\n emailIsVerified,\n silentModeBefore,\n sendEmailReceipt,\n copyIdentifiers,\n skipWaitingPeriod,\n createdAtBefore,\n createdAtAfter,\n concurrency,\n transcendUrl,\n });\n}\n"]}
|
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var _class;var _chunkGG7P2RO6cjs = require('./chunk-GG7P2RO6.cjs');var _chunkKYVDLURLcjs = require('./chunk-KYVDLURL.cjs');var _chunkIBTP5OXEcjs = require('./chunk-IBTP5OXE.cjs');var _chunkRE5YALEOcjs = require('./chunk-RE5YALEO.cjs');var _chunkCOKHIMLOcjs = require('./chunk-COKHIMLO.cjs');var _chunkLR3CPNDMcjs = require('./chunk-LR3CPNDM.cjs');var _chunk7ZGJ4MJFcjs = require('./chunk-7ZGJ4MJF.cjs');var _chunkF3BRFYKDcjs = require('./chunk-F3BRFYKD.cjs');var _chunkMOWFESXNcjs = require('./chunk-MOWFESXN.cjs');var _chunk5UBGZNDCcjs = require('./chunk-5UBGZNDC.cjs');var _chunk5PTFTN6Jcjs = require('./chunk-5PTFTN6J.cjs');var _chunkLCDYXJN6cjs = require('./chunk-LCDYXJN6.cjs');require('./chunk-ZUNVPK23.cjs');var _chunkNI434OIIcjs = require('./chunk-NI434OII.cjs');var _chunkQ7I37FJVcjs = require('./chunk-Q7I37FJV.cjs');var _typeutils = require('@transcend-io/type-utils');var _handlebarsutils = require('@transcend-io/handlebars-utils');var _privacytypes = require('@transcend-io/privacy-types');var T=20;async function D(a){let e=[],r=0,t=!1;do{let{largeLanguageModels:{nodes:s}}=await _chunk5PTFTN6Jcjs.kg.call(void 0, a,_chunk5PTFTN6Jcjs.Gb,{first:T,offset:r});e.push(...s),r+=T,t=s.length===T}while(t);return e.sort((s,o)=>s.name.localeCompare(o.name))}var _bluebird = require('bluebird');function j(a){return new RegExp(`<${a}>([\\s\\S]+?)<\\/${a}>`)}function Wm(a){return a}var H=a=>{try{return JSON.parse(a)}catch (e2){return a}},B= exports.TranscendPromptManager = (_class =class{__init() {this.largeLanguageModels=[]}__init2() {this.agentsByName={}}__init3() {this.agentsByAgentId={}}constructor({prompts:e,handlebarsOptions:r={},transcendUrl:t=_chunkNI434OIIcjs.r,transcendApiKey:s,requireApproval:o=!0,cacheDuration:i,defaultVariables:p={}}){;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);this.prompts=e,this.transcendUrl=t,this.transcendApiKey=s,this.variables=p,this.defaultVariables=p,this.graphQLClient=_chunk5PTFTN6Jcjs.wc.call(void 0, t,typeof s=="object"?s.release():s),this.requireApproval=o,this.cacheDuration=i,this.handlebarsOptions=r,this.handlebars=_handlebarsutils.createHandlebarsWithHelpers.call(void 0, r)}async fetchPromptsAndMetadata(){let e=_typeutils.getValues.call(void 0, this.prompts),r=e.map(({id:n})=>n).filter(n=>!!n),t=e.map(({title:n})=>n).filter(n=>!!n),s=_chunkNI434OIIcjs.j.call(void 0, e.map(({agentNames:n})=>n||[]).flat()),[o,i,p]=await Promise.all([_chunk5PTFTN6Jcjs.Cd.call(void 0, this.graphQLClient,{promptIds:r,promptTitles:t}),D(this.graphQLClient),_chunk5PTFTN6Jcjs.Gc.call(void 0, this.graphQLClient,{names:s})]);this.agentsByName=_chunkNI434OIIcjs.e.call(void 0, p,"name"),this.agentsByAgentId=_chunkNI434OIIcjs.e.call(void 0, p,"agentId"),this.largeLanguageModels=i.filter(n=>n.isTranscendHosted===!1);let m=_chunkNI434OIIcjs.e.call(void 0, o.prompts,"title"),c=_chunkNI434OIIcjs.e.call(void 0, o.prompts,"id");return this.variables={...o.calculatedVariables.reduce((n,g)=>Object.assign(n,{[g.name]:g.data?JSON.parse(g.data):g.data}),{}),...this.defaultVariables},this.handlebars=_handlebarsutils.createHandlebarsWithHelpers.call(void 0, {...this.handlebarsOptions,templates:[...this.handlebarsOptions.templates||[],...o.promptPartials.map(n=>({name:n.slug,content:n.content}))]}),this.promptContentMap=_typeutils.apply.call(void 0, this.prompts,({id:n,title:g})=>{let d=n?c[n]:g?m[g]:void 0;if(!d)throw new Error(`Failed to find prompt with title: "${g}" and id: "${n}"`);return d}),this.lastUpdatedAt=new Date,o}async getAgentByName(e){let r=this.agentsByName[e];if(r)return r;let[t]=await _chunk5PTFTN6Jcjs.Gc.call(void 0, this.graphQLClient,{names:[e]});if(t)return this.agentsByName[t.name]=t,this.agentsByAgentId[t.agentId]=t,t}async getPromptThreadBySlackTs(e){let[r]=await _chunk5PTFTN6Jcjs.Dd.call(void 0, this.graphQLClient,{slackMessageTs:[e]});return r}async getAgentsByName(e){if(e.length<1)throw new Error("Expected at least one name to be provided");let{hasCache:r=[],missingCache:t=[]}=_chunkNI434OIIcjs.d.call(void 0, e,p=>this.agentsByName[p]?"hasCache":"missingCache"),s=r.map(p=>this.agentsByName[p]);if(t.length===0)return s;let o=_chunkNI434OIIcjs.b.call(void 0, t,50),i=[];return await _bluebird.mapSeries.call(void 0, o,async p=>{let m=await _chunk5PTFTN6Jcjs.Gc.call(void 0, this.graphQLClient,{names:p});m.forEach(c=>{this.agentsByName[c.name]=c,this.agentsByAgentId[c.agentId]=c}),i.push(...m)}),[...s,...i]}getAgentFiles(e){return _chunk5PTFTN6Jcjs.Ec.call(void 0, this.graphQLClient,e)}getLargeLanguageModel(e){let r=this.largeLanguageModels.find(t=>typeof e=="string"?t.id===e:t.name===e.name&&t.client===e.client);if(!r)throw new Error(`Failed to find model matching: ${typeof e=="string"?e:JSON.stringify(e)}`);return r}async getPromptDefinition(e){(!this.lastUpdatedAt||this.cacheDuration===0||this.cacheDuration&&Date.now()-this.lastUpdatedAt.getTime()>this.cacheDuration)&&await this.fetchPromptsAndMetadata();let{promptContentMap:r}=this;if(!r)throw new Error("Expected this.promptContentMap to be defined");let t=r[e];if(!t)throw new Error(`Expected this.promptContentMap[${e}] to be defined`);return t}async compilePrompt(e,r){let t=await this.getPromptDefinition(e),s=this.prompts[e];if(!s)throw new Error(`Expected this.prompts[${e}] to be defined`);if(this.requireApproval&&t.status!==_privacytypes.PromptStatus.Approved)throw new Error(`Assessment "${t.title}" cannot be used because its in status: "${t.status}"`);if(t.status===_privacytypes.PromptStatus.Rejected)throw new Error(`Assessment "${t.title}" cannot be used because it's in status: "${t.status}"`);return _typeutils.decodeCodec.call(void 0, s.paramCodec,r),this.handlebars.compile(t.content)({currentDate:new Date().toISOString(),...this.variables,...r})}parseAiResponse(e,r){let t=this.prompts[e];if(!t)throw new Error(`Expected this.prompts[${e}] to be defined`);let s=t.extractFromTag&&(j(t.extractFromTag).exec(r)||[])[1]||r;return _typeutils.decodeCodec.call(void 0, t.outputCodec,H(s),!1)}async reportAndParsePromptRun(e,{largeLanguageModel:r,...t}){(!this.lastUpdatedAt||this.cacheDuration===0||this.cacheDuration&&Date.now()-this.lastUpdatedAt.getTime()>this.cacheDuration)&&await this.fetchPromptsAndMetadata();let s=t.name||`@transcend-io/cli-prompt-run-${new Date().toISOString()}`;if(!this.promptContentMap)throw new Error("Expected this.promptContentMap to be defined");let o=this.promptContentMap[e];if(!o)throw new Error(`Expected this.prompts[${e}] to be defined`);if(t.promptRunMessages.length===0)throw new Error("promptRunMessages is expected to have length > 0");if(t.promptRunMessages[0].role!==_privacytypes.ChatCompletionRole.System)throw new Error(`promptRunMessages[0].role is expected to be = ${_privacytypes.ChatCompletionRole.System}`);if(t.promptRunMessages[t.promptRunMessages.length-1].role!==_privacytypes.ChatCompletionRole.Assistant)throw new Error(`promptRunMessages[${t.promptRunMessages.length-1}].role is expected to be = ${_privacytypes.ChatCompletionRole.Assistant}`);let i=t.promptRunMessages[t.promptRunMessages.length-1].content,p;try{p=this.parseAiResponse(e,i)}catch(c){throw await _chunk5PTFTN6Jcjs.he.call(void 0, this.graphQLClient,{productArea:_privacytypes.PromptRunProductArea.PromptManager,...t,name:s,error:c.message,status:_privacytypes.QueueStatus.Error,...typeof r=="string"?{largeLanguageModelId:r}:{largeLanguageModelName:r.name,largeLanguageModelClient:r.client},promptId:o.id,promptRunMessages:t.promptRunMessages.map((n,g)=>({...n,...g===0?{template:o.content}:{}}))}),c}let m=await _chunk5PTFTN6Jcjs.he.call(void 0, this.graphQLClient,{productArea:_privacytypes.PromptRunProductArea.PromptManager,...t,name:s,status:_privacytypes.QueueStatus.Resolved,...typeof r=="string"?{largeLanguageModelId:r}:{largeLanguageModelName:r.name,largeLanguageModelClient:r.client},promptId:o.id,promptRunMessages:t.promptRunMessages.map((c,n)=>({...c,...n===0?{template:o.content}:{}}))});return{result:p,promptRunId:m,promptRunUrl:`https://app.transcend.io/prompts/runs/${m}`}}async reportPromptRunError(e,{largeLanguageModel:r,...t}){(!this.lastUpdatedAt||this.cacheDuration===0||this.cacheDuration&&Date.now()-this.lastUpdatedAt.getTime()>this.cacheDuration)&&await this.fetchPromptsAndMetadata();let s=t.name||`@transcend-io/cli-prompt-run-${new Date().toISOString()}`;if(!this.promptContentMap)throw new Error("Expected this.promptContentMap to be defined");let o=this.promptContentMap[e];if(!o)throw new Error(`Expected this.prompts[${e}] to be defined`);if(t.promptRunMessages.length===0)throw new Error("promptRunMessages is expected to have length > 0");if(t.promptRunMessages[0].role!==_privacytypes.ChatCompletionRole.System)throw new Error(`promptRunMessages[0].role is expected to be = ${_privacytypes.ChatCompletionRole.System}`);let i=await _chunk5PTFTN6Jcjs.he.call(void 0, this.graphQLClient,{productArea:_privacytypes.PromptRunProductArea.PromptManager,...t,name:s,status:_privacytypes.QueueStatus.Error,...typeof r=="string"?{largeLanguageModelId:r}:{largeLanguageModelName:r.name,largeLanguageModelClient:r.client},promptId:o.id,promptRunMessages:t.promptRunMessages.map((p,m)=>({...p,...m===0?{template:o.content}:{}}))});return{promptRunId:i,promptRunUrl:`https://app.transcend.io/prompts/runs/${i}`}}}, _class);function Km(a){let e=/(https?:\/\/[^\s]+)/g;return a.replace(e,"<link-omitted>")}function Ym(a){return Object.entries(a).reduce((e,[r,t])=>t!=null&&t!==""&&!(Array.isArray(t)&&t.length===0)&&!(typeof t=="object"&&Object.keys(t).length===0)?Object.assign(e,{[r]:t}):e,{})}var _fastglob = require('fast-glob'); var _fastglob2 = _interopRequireDefault(_fastglob);var _child_process = require('child_process');function sc({baseBranch:a,rootDirectory:e,githubRepo:r,excludedGlob:t=[],fileBlockList:s=[]}){_child_process.execSync.call(void 0, `git fetch origin ${a}`);let o=_child_process.execSync.call(void 0, `git ls-remote ${r} "refs/heads/${a}" | cut -f 1`,{encoding:"utf-8"}).split(`
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var _class;var _chunkBXWDS6YNcjs = require('./chunk-BXWDS6YN.cjs');var _chunkJI7R6PYDcjs = require('./chunk-JI7R6PYD.cjs');var _chunkPTAFCUJKcjs = require('./chunk-PTAFCUJK.cjs');var _chunkIBTP5OXEcjs = require('./chunk-IBTP5OXE.cjs');var _chunkRE5YALEOcjs = require('./chunk-RE5YALEO.cjs');var _chunk3R32U46Ucjs = require('./chunk-3R32U46U.cjs');var _chunkNDHQBERAcjs = require('./chunk-NDHQBERA.cjs');var _chunk5YELAKPFcjs = require('./chunk-5YELAKPF.cjs');var _chunk5UBGZNDCcjs = require('./chunk-5UBGZNDC.cjs');var _chunkSE3D4DHAcjs = require('./chunk-SE3D4DHA.cjs');var _chunkLCDYXJN6cjs = require('./chunk-LCDYXJN6.cjs');require('./chunk-ZUNVPK23.cjs');var _chunk72KHFLMFcjs = require('./chunk-72KHFLMF.cjs');var _chunkQ7I37FJVcjs = require('./chunk-Q7I37FJV.cjs');var _typeutils = require('@transcend-io/type-utils');var _handlebarsutils = require('@transcend-io/handlebars-utils');var _privacytypes = require('@transcend-io/privacy-types');var T=20;async function D(a){let e=[],r=0,t=!1;do{let{largeLanguageModels:{nodes:s}}=await _chunkSE3D4DHAcjs.pg.call(void 0, a,_chunkSE3D4DHAcjs.Gb,{first:T,offset:r});e.push(...s),r+=T,t=s.length===T}while(t);return e.sort((s,o)=>s.name.localeCompare(o.name))}var _bluebird = require('bluebird');function j(a){return new RegExp(`<${a}>([\\s\\S]+?)<\\/${a}>`)}function Wm(a){return a}var H=a=>{try{return JSON.parse(a)}catch (e2){return a}},B= exports.TranscendPromptManager = (_class =class{__init() {this.largeLanguageModels=[]}__init2() {this.agentsByName={}}__init3() {this.agentsByAgentId={}}constructor({prompts:e,handlebarsOptions:r={},transcendUrl:t=_chunk72KHFLMFcjs.r,transcendApiKey:s,requireApproval:o=!0,cacheDuration:i,defaultVariables:p={}}){;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);this.prompts=e,this.transcendUrl=t,this.transcendApiKey=s,this.variables=p,this.defaultVariables=p,this.graphQLClient=_chunkSE3D4DHAcjs.wc.call(void 0, t,typeof s=="object"?s.release():s),this.requireApproval=o,this.cacheDuration=i,this.handlebarsOptions=r,this.handlebars=_handlebarsutils.createHandlebarsWithHelpers.call(void 0, r)}async fetchPromptsAndMetadata(){let e=_typeutils.getValues.call(void 0, this.prompts),r=e.map(({id:n})=>n).filter(n=>!!n),t=e.map(({title:n})=>n).filter(n=>!!n),s=_chunk72KHFLMFcjs.j.call(void 0, e.map(({agentNames:n})=>n||[]).flat()),[o,i,p]=await Promise.all([_chunkSE3D4DHAcjs.Cd.call(void 0, this.graphQLClient,{promptIds:r,promptTitles:t}),D(this.graphQLClient),_chunkSE3D4DHAcjs.Gc.call(void 0, this.graphQLClient,{names:s})]);this.agentsByName=_chunk72KHFLMFcjs.e.call(void 0, p,"name"),this.agentsByAgentId=_chunk72KHFLMFcjs.e.call(void 0, p,"agentId"),this.largeLanguageModels=i.filter(n=>n.isTranscendHosted===!1);let m=_chunk72KHFLMFcjs.e.call(void 0, o.prompts,"title"),c=_chunk72KHFLMFcjs.e.call(void 0, o.prompts,"id");return this.variables={...o.calculatedVariables.reduce((n,g)=>Object.assign(n,{[g.name]:g.data?JSON.parse(g.data):g.data}),{}),...this.defaultVariables},this.handlebars=_handlebarsutils.createHandlebarsWithHelpers.call(void 0, {...this.handlebarsOptions,templates:[...this.handlebarsOptions.templates||[],...o.promptPartials.map(n=>({name:n.slug,content:n.content}))]}),this.promptContentMap=_typeutils.apply.call(void 0, this.prompts,({id:n,title:g})=>{let d=n?c[n]:g?m[g]:void 0;if(!d)throw new Error(`Failed to find prompt with title: "${g}" and id: "${n}"`);return d}),this.lastUpdatedAt=new Date,o}async getAgentByName(e){let r=this.agentsByName[e];if(r)return r;let[t]=await _chunkSE3D4DHAcjs.Gc.call(void 0, this.graphQLClient,{names:[e]});if(t)return this.agentsByName[t.name]=t,this.agentsByAgentId[t.agentId]=t,t}async getPromptThreadBySlackTs(e){let[r]=await _chunkSE3D4DHAcjs.Dd.call(void 0, this.graphQLClient,{slackMessageTs:[e]});return r}async getAgentsByName(e){if(e.length<1)throw new Error("Expected at least one name to be provided");let{hasCache:r=[],missingCache:t=[]}=_chunk72KHFLMFcjs.d.call(void 0, e,p=>this.agentsByName[p]?"hasCache":"missingCache"),s=r.map(p=>this.agentsByName[p]);if(t.length===0)return s;let o=_chunk72KHFLMFcjs.b.call(void 0, t,50),i=[];return await _bluebird.mapSeries.call(void 0, o,async p=>{let m=await _chunkSE3D4DHAcjs.Gc.call(void 0, this.graphQLClient,{names:p});m.forEach(c=>{this.agentsByName[c.name]=c,this.agentsByAgentId[c.agentId]=c}),i.push(...m)}),[...s,...i]}getAgentFiles(e){return _chunkSE3D4DHAcjs.Ec.call(void 0, this.graphQLClient,e)}getLargeLanguageModel(e){let r=this.largeLanguageModels.find(t=>typeof e=="string"?t.id===e:t.name===e.name&&t.client===e.client);if(!r)throw new Error(`Failed to find model matching: ${typeof e=="string"?e:JSON.stringify(e)}`);return r}async getPromptDefinition(e){(!this.lastUpdatedAt||this.cacheDuration===0||this.cacheDuration&&Date.now()-this.lastUpdatedAt.getTime()>this.cacheDuration)&&await this.fetchPromptsAndMetadata();let{promptContentMap:r}=this;if(!r)throw new Error("Expected this.promptContentMap to be defined");let t=r[e];if(!t)throw new Error(`Expected this.promptContentMap[${e}] to be defined`);return t}async compilePrompt(e,r){let t=await this.getPromptDefinition(e),s=this.prompts[e];if(!s)throw new Error(`Expected this.prompts[${e}] to be defined`);if(this.requireApproval&&t.status!==_privacytypes.PromptStatus.Approved)throw new Error(`Assessment "${t.title}" cannot be used because its in status: "${t.status}"`);if(t.status===_privacytypes.PromptStatus.Rejected)throw new Error(`Assessment "${t.title}" cannot be used because it's in status: "${t.status}"`);return _typeutils.decodeCodec.call(void 0, s.paramCodec,r),this.handlebars.compile(t.content)({currentDate:new Date().toISOString(),...this.variables,...r})}parseAiResponse(e,r){let t=this.prompts[e];if(!t)throw new Error(`Expected this.prompts[${e}] to be defined`);let s=t.extractFromTag&&(j(t.extractFromTag).exec(r)||[])[1]||r;return _typeutils.decodeCodec.call(void 0, t.outputCodec,H(s),!1)}async reportAndParsePromptRun(e,{largeLanguageModel:r,...t}){(!this.lastUpdatedAt||this.cacheDuration===0||this.cacheDuration&&Date.now()-this.lastUpdatedAt.getTime()>this.cacheDuration)&&await this.fetchPromptsAndMetadata();let s=t.name||`@transcend-io/cli-prompt-run-${new Date().toISOString()}`;if(!this.promptContentMap)throw new Error("Expected this.promptContentMap to be defined");let o=this.promptContentMap[e];if(!o)throw new Error(`Expected this.prompts[${e}] to be defined`);if(t.promptRunMessages.length===0)throw new Error("promptRunMessages is expected to have length > 0");if(t.promptRunMessages[0].role!==_privacytypes.ChatCompletionRole.System)throw new Error(`promptRunMessages[0].role is expected to be = ${_privacytypes.ChatCompletionRole.System}`);if(t.promptRunMessages[t.promptRunMessages.length-1].role!==_privacytypes.ChatCompletionRole.Assistant)throw new Error(`promptRunMessages[${t.promptRunMessages.length-1}].role is expected to be = ${_privacytypes.ChatCompletionRole.Assistant}`);let i=t.promptRunMessages[t.promptRunMessages.length-1].content,p;try{p=this.parseAiResponse(e,i)}catch(c){throw await _chunkSE3D4DHAcjs.he.call(void 0, this.graphQLClient,{productArea:_privacytypes.PromptRunProductArea.PromptManager,...t,name:s,error:c.message,status:_privacytypes.QueueStatus.Error,...typeof r=="string"?{largeLanguageModelId:r}:{largeLanguageModelName:r.name,largeLanguageModelClient:r.client},promptId:o.id,promptRunMessages:t.promptRunMessages.map((n,g)=>({...n,...g===0?{template:o.content}:{}}))}),c}let m=await _chunkSE3D4DHAcjs.he.call(void 0, this.graphQLClient,{productArea:_privacytypes.PromptRunProductArea.PromptManager,...t,name:s,status:_privacytypes.QueueStatus.Resolved,...typeof r=="string"?{largeLanguageModelId:r}:{largeLanguageModelName:r.name,largeLanguageModelClient:r.client},promptId:o.id,promptRunMessages:t.promptRunMessages.map((c,n)=>({...c,...n===0?{template:o.content}:{}}))});return{result:p,promptRunId:m,promptRunUrl:`https://app.transcend.io/prompts/runs/${m}`}}async reportPromptRunError(e,{largeLanguageModel:r,...t}){(!this.lastUpdatedAt||this.cacheDuration===0||this.cacheDuration&&Date.now()-this.lastUpdatedAt.getTime()>this.cacheDuration)&&await this.fetchPromptsAndMetadata();let s=t.name||`@transcend-io/cli-prompt-run-${new Date().toISOString()}`;if(!this.promptContentMap)throw new Error("Expected this.promptContentMap to be defined");let o=this.promptContentMap[e];if(!o)throw new Error(`Expected this.prompts[${e}] to be defined`);if(t.promptRunMessages.length===0)throw new Error("promptRunMessages is expected to have length > 0");if(t.promptRunMessages[0].role!==_privacytypes.ChatCompletionRole.System)throw new Error(`promptRunMessages[0].role is expected to be = ${_privacytypes.ChatCompletionRole.System}`);let i=await _chunkSE3D4DHAcjs.he.call(void 0, this.graphQLClient,{productArea:_privacytypes.PromptRunProductArea.PromptManager,...t,name:s,status:_privacytypes.QueueStatus.Error,...typeof r=="string"?{largeLanguageModelId:r}:{largeLanguageModelName:r.name,largeLanguageModelClient:r.client},promptId:o.id,promptRunMessages:t.promptRunMessages.map((p,m)=>({...p,...m===0?{template:o.content}:{}}))});return{promptRunId:i,promptRunUrl:`https://app.transcend.io/prompts/runs/${i}`}}}, _class);function Km(a){let e=/(https?:\/\/[^\s]+)/g;return a.replace(e,"<link-omitted>")}function Ym(a){return Object.entries(a).reduce((e,[r,t])=>t!=null&&t!==""&&!(Array.isArray(t)&&t.length===0)&&!(typeof t=="object"&&Object.keys(t).length===0)?Object.assign(e,{[r]:t}):e,{})}var _fastglob = require('fast-glob'); var _fastglob2 = _interopRequireDefault(_fastglob);var _child_process = require('child_process');function sc({baseBranch:a,rootDirectory:e,githubRepo:r,excludedGlob:t=[],fileBlockList:s=[]}){_child_process.execSync.call(void 0, `git fetch origin ${a}`);let o=_child_process.execSync.call(void 0, `git ls-remote ${r} "refs/heads/${a}" | cut -f 1`,{encoding:"utf-8"}).split(`
|
|
2
2
|
`)[0],i=_child_process.execSync.call(void 0, "git rev-parse HEAD",{encoding:"utf-8"}).split(`
|
|
3
|
-
`)[0];if(!o||!i)throw new Error("FAILED TO FIND COMMIT RANGE");let p=_child_process.execSync.call(void 0, `git fetch && git diff --name-only "${a||o}...${i}" -- ${e}`,{encoding:"utf-8"}),m=
|
|
4
|
-
`).filter(d=>d),s),c=t.length>0?_fastglob2.default.sync(m,{ignore:t}):m,n={};c.forEach(d=>{let F=_child_process.execSync.call(void 0, `git show ${i}:${d}`,{encoding:"utf-8"});n[d]=F});let g=r.split("/").pop().split(".")[0];return{changedFiles:m,fileDiffs:n,repoName:g,commit:i}}exports.ACTIONS = _chunk5PTFTN6Jcjs.ub; exports.ADD_MESSAGES_TO_PROMPT_RUN = _chunk5PTFTN6Jcjs.Ha; exports.ADD_SILO_DISCOVERY_RESULTS = _chunk5PTFTN6Jcjs.H; exports.ADMIN_DASH = _chunkNI434OIIcjs.o; exports.ADMIN_DASH_DATAPOINTS = _chunkNI434OIIcjs.q; exports.ADMIN_DASH_INTEGRATIONS = _chunkNI434OIIcjs.p; exports.AGENTS = _chunk5PTFTN6Jcjs.Hb; exports.AGENT_FILES = _chunk5PTFTN6Jcjs.Kb; exports.AGENT_FUNCTIONS = _chunk5PTFTN6Jcjs.Nb; exports.API_KEYS = _chunk5PTFTN6Jcjs.D; exports.APPROVE_PRIVACY_REQUEST = _chunk5PTFTN6Jcjs.X; exports.ASSESSMENTS = _chunk5PTFTN6Jcjs.fa; exports.ASSESSMENT_SECTION_FIELDS = _chunk5PTFTN6Jcjs.ea; exports.ASSESSMENT_TEMPLATES = _chunk5PTFTN6Jcjs.ja; exports.ASSUME_ROLE = _chunk5PTFTN6Jcjs.Fb; exports.ATTRIBUTES = _chunk5PTFTN6Jcjs.La; exports.ATTRIBUTE_KEYS_REQUESTS = _chunk5PTFTN6Jcjs.M; exports.ATTRIBUTE_VALUES = _chunk5PTFTN6Jcjs.Pa; exports.ActionInput = _chunk5UBGZNDCcjs.G; exports.ActionItemCollectionInput = _chunk5UBGZNDCcjs.R; exports.ActionItemInput = _chunk5UBGZNDCcjs.S; exports.AgentFileInput = _chunk5UBGZNDCcjs.o; exports.AgentFunctionInput = _chunk5UBGZNDCcjs.n; exports.AgentInput = _chunk5UBGZNDCcjs.m; exports.ApiKeyInput = _chunk5UBGZNDCcjs.c; exports.AssessmentAction = _chunk5PTFTN6Jcjs.Rd; exports.AssessmentAnswerOptionInput = _chunk5UBGZNDCcjs.Y; exports.AssessmentDisplayLogicInput = _chunk5UBGZNDCcjs.V; exports.AssessmentInput = _chunk5UBGZNDCcjs.ca; exports.AssessmentNestedRule = _chunk5PTFTN6Jcjs.Qd; exports.AssessmentNestedRuleInput = _chunk5UBGZNDCcjs.U; exports.AssessmentResourceInput = _chunk5UBGZNDCcjs.ba; exports.AssessmentRetentionScheduleInput = _chunk5UBGZNDCcjs.$; exports.AssessmentRiskLogic = _chunk5PTFTN6Jcjs.Td; exports.AssessmentRule = _chunk5PTFTN6Jcjs.Pd; exports.AssessmentRuleInput = _chunk5UBGZNDCcjs.T; exports.AssessmentRuleWithOperands = _chunk5PTFTN6Jcjs.Nd; exports.AssessmentRuleWithoutOperands = _chunk5PTFTN6Jcjs.Od; exports.AssessmentSectionInput = _chunk5UBGZNDCcjs._; exports.AssessmentSectionQuestionInput = _chunk5UBGZNDCcjs.Z; exports.AssessmentTemplateInput = _chunk5UBGZNDCcjs.aa; exports.AttestedExtraIdentifiers = _chunk5PTFTN6Jcjs.qf; exports.AttributeInput = _chunk5UBGZNDCcjs.k; exports.AttributePreview = _chunk5UBGZNDCcjs.l; exports.AttributeValueInput = _chunk5UBGZNDCcjs.j; exports.BLANK = _chunk5PTFTN6Jcjs.dc; exports.BULK_APPLY = _chunk5PTFTN6Jcjs.cc; exports.BULK_REQUEST_FILES = _chunk5PTFTN6Jcjs.Fa; exports.BUSINESS_ENTITIES = _chunk5PTFTN6Jcjs.rb; exports.BusinessEntityInput = _chunk5UBGZNDCcjs.y; exports.CANCEL_PRIVACY_REQUEST = _chunk5PTFTN6Jcjs.Y; exports.CAN_APPLY_IN_BULK = _chunk5PTFTN6Jcjs.hc; exports.CATALOGS = _chunk5PTFTN6Jcjs.r; exports.CHANGE_REQUEST_DATA_SILO_STATUS = _chunk5PTFTN6Jcjs.va; exports.CODE_PACKAGES = _chunk5PTFTN6Jcjs.Q; exports.CONSENT_MANAGER_ANALYTICS_DATA = _chunk5PTFTN6Jcjs.qb; exports.CONSENT_PARTITIONS = _chunk5PTFTN6Jcjs.Ua; exports.COOKIES = _chunk5PTFTN6Jcjs.Za; exports.CREATE_ACTION_ITEMS = _chunk5PTFTN6Jcjs.yb; exports.CREATE_ACTION_ITEM_COLLECTION = _chunk5PTFTN6Jcjs.Ja; exports.CREATE_AGENT = _chunk5PTFTN6Jcjs.Ib; exports.CREATE_AGENT_FILE = _chunk5PTFTN6Jcjs.Lb; exports.CREATE_AGENT_FUNCTION = _chunk5PTFTN6Jcjs.Ob; exports.CREATE_API_KEY = _chunk5PTFTN6Jcjs.E; exports.CREATE_ATTRIBUTE = _chunk5PTFTN6Jcjs.Qa; exports.CREATE_ATTRIBUTE_VALUES = _chunk5PTFTN6Jcjs.Ma; exports.CREATE_BUSINESS_ENTITY = _chunk5PTFTN6Jcjs.sb; exports.CREATE_CODE_PACKAGE = _chunk5PTFTN6Jcjs.S; exports.CREATE_CONSENT_EXPERIENCE = _chunk5PTFTN6Jcjs.ob; exports.CREATE_CONSENT_MANAGER = _chunk5PTFTN6Jcjs.bb; exports.CREATE_CONSENT_PARTITION = _chunk5PTFTN6Jcjs.pb; exports.CREATE_DATA_FLOWS = _chunk5PTFTN6Jcjs.Va; exports.CREATE_DATA_SILOS = _chunk5PTFTN6Jcjs.m; exports.CREATE_DATA_SUBJECT = _chunk5PTFTN6Jcjs.x; exports.CREATE_DATA_SUB_CATEGORY = _chunk5PTFTN6Jcjs.Ub; exports.CREATE_ENRICHER = _chunk5PTFTN6Jcjs.p; exports.CREATE_IDENTIFIER = _chunk5PTFTN6Jcjs.u; exports.CREATE_PREFERENCE_ACCESS_TOKENS = _chunk5PTFTN6Jcjs.G; exports.CREATE_PROCESSING_ACTIVITY = _chunk5PTFTN6Jcjs._b; exports.CREATE_PROCESSING_PURPOSE_SUB_CATEGORY = _chunk5PTFTN6Jcjs.Xb; exports.CREATE_PROMPT = _chunk5PTFTN6Jcjs.pa; exports.CREATE_PROMPT_GROUP = _chunk5PTFTN6Jcjs.ta; exports.CREATE_PROMPT_PARTIAL = _chunk5PTFTN6Jcjs.ra; exports.CREATE_REPOSITORY = _chunk5PTFTN6Jcjs.C; exports.CREATE_SOFTWARE_DEVELOPMENT_KIT = _chunk5PTFTN6Jcjs.P; exports.CREATE_TEAM = _chunk5PTFTN6Jcjs.za; exports.CREATE_TEMPLATE = _chunk5PTFTN6Jcjs.K; exports.CREATE_VENDOR = _chunk5PTFTN6Jcjs.Rb; exports.CachedFileState = _chunk5PTFTN6Jcjs.ic; exports.CachedRequestState = _chunk5PTFTN6Jcjs.kc; exports.CodePackageInput = _chunk5UBGZNDCcjs.D; exports.CodePackageSdk = _chunk5UBGZNDCcjs.C; exports.ColumnName = _chunk5PTFTN6Jcjs.fc; exports.ConsentManageExperienceInput = _chunk5UBGZNDCcjs.K; exports.ConsentManagerInput = _chunk5UBGZNDCcjs.M; exports.ConsentManagerMetricBin = _chunk5PTFTN6Jcjs.Sc; exports.ConsentManagerServiceMetadata = _chunk5UBGZNDCcjs.ka; exports.ConsentPreferenceTopic = _chunk5UBGZNDCcjs.ea; exports.ConsentPreferenceTopicOptionValue = _chunk5UBGZNDCcjs.da; exports.ConsentPurpose = _chunk5UBGZNDCcjs.fa; exports.CookieCsvInput = _chunk5UBGZNDCcjs.ja; exports.CookieInput = _chunk5UBGZNDCcjs.J; exports.CronIdentifier = _chunkCOKHIMLOcjs.a; exports.CronIdentifierPush = _chunkCOKHIMLOcjs.c; exports.DATAPOINT_EXPORT = _chunk5PTFTN6Jcjs.g; exports.DATA_FLOWS = _chunk5PTFTN6Jcjs.Ya; exports.DATA_POINTS = _chunk5PTFTN6Jcjs.a; exports.DATA_POINT_COUNT = _chunk5PTFTN6Jcjs.b; exports.DATA_SILOS = _chunk5PTFTN6Jcjs.i; exports.DATA_SILOS_ENRICHED = _chunk5PTFTN6Jcjs.k; exports.DATA_SILO_EXPORT = _chunk5PTFTN6Jcjs.j; exports.DATA_SUBJECTS = _chunk5PTFTN6Jcjs.w; exports.DATA_SUB_CATEGORIES = _chunk5PTFTN6Jcjs.Tb; exports.DAY_MS = _chunk5PTFTN6Jcjs.dg; exports.DEBUG = _chunkNI434OIIcjs.z; exports.DEFAULT_TRANSCEND_API = _chunkNI434OIIcjs.r; exports.DEFAULT_TRANSCEND_CONSENT_API = _chunkNI434OIIcjs.s; exports.DEFAULT_TRANSCEND_PULL_RESOURCES = _chunk5PTFTN6Jcjs.fe; exports.DELETE_API_KEY = _chunk5PTFTN6Jcjs.F; exports.DELETE_ATTRIBUTE_VALUE = _chunk5PTFTN6Jcjs.Oa; exports.DEPLOYED_PRIVACY_CENTER_URL = _chunk5PTFTN6Jcjs.Ab; exports.DEPLOY_CONSENT_MANAGER = _chunk5PTFTN6Jcjs.eb; exports.DETERMINE_LOGIN_METHOD = _chunk5PTFTN6Jcjs.Db; exports.DataCategoryGuessInput = _chunk5UBGZNDCcjs.h; exports.DataCategoryInput = _chunk5UBGZNDCcjs.q; exports.DataCategoryPreviewInput = _chunk5UBGZNDCcjs.g; exports.DataCategoryRecommendationInput = _chunk5UBGZNDCcjs.i; exports.DataFlowCsvInput = _chunk5UBGZNDCcjs.ia; exports.DataFlowInput = _chunk5UBGZNDCcjs.I; exports.DataSiloInput = _chunk5UBGZNDCcjs.Q; exports.DataSubjectInput = _chunk5UBGZNDCcjs.F; exports.DatapointInput = _chunk5UBGZNDCcjs.w; exports.ENABLED_PLUGINS = _chunk5PTFTN6Jcjs.I; exports.ENRICHERS = _chunk5PTFTN6Jcjs.n; exports.ENTRY_COUNT = _chunk5PTFTN6Jcjs.h; exports.EXPERIENCES = _chunk5PTFTN6Jcjs.Ta; exports.EnrichPrivacyRequest = _chunkGG7P2RO6cjs.b; exports.EnricherInput = _chunk5UBGZNDCcjs.e; exports.FETCH_CONSENT_MANAGER = _chunk5PTFTN6Jcjs.$a; exports.FETCH_CONSENT_MANAGER_ID = _chunk5PTFTN6Jcjs._a; exports.FETCH_CONSENT_MANAGER_THEME = _chunk5PTFTN6Jcjs.ab; exports.FETCH_PRIVACY_CENTER_ID = _chunk5PTFTN6Jcjs.zb; exports.FieldInput = _chunk5UBGZNDCcjs.v; exports.GLOBAL_ACTION_ITEMS = _chunk5PTFTN6Jcjs.wb; exports.GLOBAL_ACTION_ITEM_COLLECTIONS = _chunk5PTFTN6Jcjs.Ia; exports.HOUR_MS = _chunk5PTFTN6Jcjs.eg; exports.IDENTIFIERS = _chunk5PTFTN6Jcjs.s; exports.IDENTIFIER_BLOCK_LIST = _chunk5PTFTN6Jcjs.ec; exports.IMPORT_ONE_TRUST_ASSESSMENT_FORMS = _chunk5PTFTN6Jcjs.ga; exports.INITIALIZER = _chunk5PTFTN6Jcjs.o; exports.IP_ADDRESS_REGEX = _chunk7ZGJ4MJFcjs.f; exports.IS_REQUIRED = _chunk5PTFTN6Jcjs.gc; exports.IdentifierInput = _chunk5UBGZNDCcjs.H; exports.ImportOnetrustAssessmentsInput = _chunk5UBGZNDCcjs.ra; exports.IntlMessage = _chunk5PTFTN6Jcjs.uf; exports.IntlMessageInput = _chunk5UBGZNDCcjs.P; exports.LARGE_LANGUAGE_MODELS = _chunk5PTFTN6Jcjs.Gb; exports.LOGIN = _chunk5PTFTN6Jcjs.Eb; exports.MESSAGES = _chunk5PTFTN6Jcjs.$; exports.NEW_IDENTIFIER_TYPES = _chunk5PTFTN6Jcjs.t; exports.NONE = _chunk5PTFTN6Jcjs.bc; exports.NOTIFY_ADDITIONAL_TIME = _chunk5PTFTN6Jcjs._; exports.ORGANIZATION = _chunk5PTFTN6Jcjs.L; exports.OneTrustFileFormat = _chunkQ7I37FJVcjs.a; exports.OneTrustPullResource = _chunkQ7I37FJVcjs.b; exports.OneTrustPullSource = _chunkQ7I37FJVcjs.c; exports.OpenAIEnabledRoute = _chunk5UBGZNDCcjs.ma; exports.OpenAIEnabledRoutes = _chunk5UBGZNDCcjs.na; exports.OpenAIIntegration = _chunk5UBGZNDCcjs.oa; exports.OpenAIRouteName = _chunkQ7I37FJVcjs.f; exports.POLICIES = _chunk5PTFTN6Jcjs.U; exports.PREFERENCE_TOPICS = _chunk5PTFTN6Jcjs.ia; exports.PRIVACY_CENTER = _chunk5PTFTN6Jcjs.Bb; exports.PROCESSING_ACTIVITIES = _chunk5PTFTN6Jcjs.Zb; exports.PROCESSING_PURPOSE_SUB_CATEGORIES = _chunk5PTFTN6Jcjs.Wb; exports.PROMPTS = _chunk5PTFTN6Jcjs.ka; exports.PROMPTS_WITH_VARIABLES = _chunk5PTFTN6Jcjs.na; exports.PROMPT_GROUPS = _chunk5PTFTN6Jcjs.ma; exports.PROMPT_PARTIALS = _chunk5PTFTN6Jcjs.la; exports.PROMPT_THREADS = _chunk5PTFTN6Jcjs.T; exports.PURPOSES = _chunk5PTFTN6Jcjs.ha; exports.ParsedAttributeInput = _chunk5PTFTN6Jcjs.pc; exports.PartitionInput = _chunk5UBGZNDCcjs.L; exports.PathfinderPolicy = _chunk5UBGZNDCcjs.pa; exports.PathfinderPolicyName = _chunkQ7I37FJVcjs.e; exports.PathfinderPolicyNameC = _chunk5UBGZNDCcjs.la; exports.PathfinderPromptRunMetadata = _chunk5UBGZNDCcjs.qa; exports.PolicyInput = _chunk5UBGZNDCcjs.O; exports.PrivacyCenterInput = _chunk5UBGZNDCcjs.N; exports.PrivacyRequest = _chunk5PTFTN6Jcjs.md; exports.PrivacyRequestInput = _chunk5PTFTN6Jcjs.rf; exports.PrivacyRequestResponse = _chunk5PTFTN6Jcjs.Af; exports.ProcessingActivityInput = _chunk5UBGZNDCcjs.A; exports.ProcessingPurposeInput = _chunk5UBGZNDCcjs.r; exports.ProcessingPurposePreviewInput = _chunk5UBGZNDCcjs.f; exports.PromptAVendorEmailSettings = _chunk5UBGZNDCcjs.x; exports.PromptGroupInput = _chunk5UBGZNDCcjs.u; exports.PromptInput = _chunk5UBGZNDCcjs.s; exports.PromptPartialInput = _chunk5UBGZNDCcjs.t; exports.PurposeMap = _chunkF3BRFYKDcjs.c; exports.REDUCED_REQUESTS_FOR_DATA_SILO_COUNT = _chunk5PTFTN6Jcjs.xa; exports.REMOVE_REQUEST_IDENTIFIERS = _chunk5PTFTN6Jcjs.Ba; exports.REPORT_PROMPT_RUN = _chunk5PTFTN6Jcjs.Ga; exports.REPOSITORIES = _chunk5PTFTN6Jcjs.A; exports.REQUESTS = _chunk5PTFTN6Jcjs.W; exports.REQUEST_DATA_SILOS = _chunk5PTFTN6Jcjs.ua; exports.REQUEST_ENRICHERS = _chunk5PTFTN6Jcjs.ba; exports.REQUEST_FILES = _chunk5PTFTN6Jcjs.Ea; exports.REQUEST_IDENTIFIERS = _chunk5PTFTN6Jcjs.Ca; exports.RETRYABLE_BATCH_STATUSES = _chunkNI434OIIcjs.y; exports.RETRY_REQUEST_DATA_SILO = _chunk5PTFTN6Jcjs.wa; exports.RETRY_REQUEST_ENRICHER = _chunk5PTFTN6Jcjs.ca; exports.RateCounter = _chunk5PTFTN6Jcjs.$f; exports.RegionInput = _chunk5UBGZNDCcjs.z; exports.RepositoryInput = _chunk5UBGZNDCcjs.E; exports.RequestFileMetadata = _chunk5PTFTN6Jcjs.vf; exports.RequestFileMetadataResponse = _chunk5PTFTN6Jcjs.wf; exports.RequestIdentifiersResponse = _chunk5PTFTN6Jcjs.jd; exports.RequestPurposeTrigger = _chunk5PTFTN6Jcjs.ld; exports.RiskAssignmentInput = _chunk5UBGZNDCcjs.W; exports.RiskLogicInput = _chunk5UBGZNDCcjs.X; exports.SCOPES_BY_TITLE = _chunkNI434OIIcjs.w; exports.SCOPE_TITLES = _chunkNI434OIIcjs.x; exports.SET_RESOURCE_ATTRIBUTES = _chunk5PTFTN6Jcjs.Sa; exports.SKIP_REQUEST_ENRICHER = _chunk5PTFTN6Jcjs.da; exports.SOFTWARE_DEVELOPMENT_KITS = _chunk5PTFTN6Jcjs.N; exports.SOMBRA_VERSION = _chunk5PTFTN6Jcjs.ac; exports.SUB_DATA_POINTS = _chunk5PTFTN6Jcjs.c; exports.SUB_DATA_POINTS_COUNT = _chunk5PTFTN6Jcjs.d; exports.SUB_DATA_POINTS_WITH_GUESSES = _chunk5PTFTN6Jcjs.e; exports.SYNC_ATTRIBUTE_TYPES = _chunk5PTFTN6Jcjs.Mc; exports.SoftwareDevelopmentKitInput = _chunk5UBGZNDCcjs.B; exports.StoredApiKey = _chunk5UBGZNDCcjs.ha; exports.SuccessfulRequest = _chunk5PTFTN6Jcjs.jc; exports.TEAMS = _chunk5PTFTN6Jcjs.ya; exports.TEMPLATES = _chunk5PTFTN6Jcjs.J; exports.TOGGLE_CONSENT_PRECEDENCE = _chunk5PTFTN6Jcjs.lb; exports.TOGGLE_DATA_SUBJECT = _chunk5PTFTN6Jcjs.z; exports.TOGGLE_TELEMETRY_PARTITION_STRATEGY = _chunk5PTFTN6Jcjs.kb; exports.TOGGLE_UNKNOWN_COOKIE_POLICY = _chunk5PTFTN6Jcjs.jb; exports.TOGGLE_UNKNOWN_REQUEST_POLICY = _chunk5PTFTN6Jcjs.ib; exports.TR_PULL_RESOURCE_SCOPE_MAP = _chunkNI434OIIcjs.u; exports.TR_PUSH_RESOURCE_SCOPE_MAP = _chunkNI434OIIcjs.t; exports.TR_YML_RESOURCE_TO_FIELD_NAME = _chunkNI434OIIcjs.v; exports.TeamInput = _chunk5UBGZNDCcjs.d; exports.TemplateInput = _chunk5UBGZNDCcjs.a; exports.TranscendInput = _chunk5UBGZNDCcjs.ga; exports.TranscendPromptManager = B; exports.TranscendPullResource = _chunkQ7I37FJVcjs.d; exports.UPDATE_ACTION = _chunk5PTFTN6Jcjs.vb; exports.UPDATE_ACTION_ITEMS = _chunk5PTFTN6Jcjs.xb; exports.UPDATE_ACTION_ITEM_COLLECTION = _chunk5PTFTN6Jcjs.Ka; exports.UPDATE_AGENTS = _chunk5PTFTN6Jcjs.Jb; exports.UPDATE_AGENT_FILES = _chunk5PTFTN6Jcjs.Mb; exports.UPDATE_AGENT_FUNCTIONS = _chunk5PTFTN6Jcjs.Pb; exports.UPDATE_ATTRIBUTE = _chunk5PTFTN6Jcjs.Ra; exports.UPDATE_ATTRIBUTE_VALUES = _chunk5PTFTN6Jcjs.Na; exports.UPDATE_BUSINESS_ENTITIES = _chunk5PTFTN6Jcjs.tb; exports.UPDATE_CODE_PACKAGES = _chunk5PTFTN6Jcjs.R; exports.UPDATE_CONSENT_EXPERIENCE = _chunk5PTFTN6Jcjs.nb; exports.UPDATE_CONSENT_MANAGER_DOMAINS = _chunk5PTFTN6Jcjs.fb; exports.UPDATE_CONSENT_MANAGER_PARTITION = _chunk5PTFTN6Jcjs.gb; exports.UPDATE_CONSENT_MANAGER_THEME = _chunk5PTFTN6Jcjs.mb; exports.UPDATE_CONSENT_MANAGER_TO_LATEST = _chunk5PTFTN6Jcjs.db; exports.UPDATE_CONSENT_MANAGER_VERSION = _chunk5PTFTN6Jcjs.cb; exports.UPDATE_DATA_FLOWS = _chunk5PTFTN6Jcjs.Wa; exports.UPDATE_DATA_SILOS = _chunk5PTFTN6Jcjs.l; exports.UPDATE_DATA_SUBJECT = _chunk5PTFTN6Jcjs.y; exports.UPDATE_DATA_SUB_CATEGORIES = _chunk5PTFTN6Jcjs.Vb; exports.UPDATE_ENRICHER = _chunk5PTFTN6Jcjs.q; exports.UPDATE_IDENTIFIER = _chunk5PTFTN6Jcjs.v; exports.UPDATE_INTL_MESSAGES = _chunk5PTFTN6Jcjs.aa; exports.UPDATE_LOAD_OPTIONS = _chunk5PTFTN6Jcjs.hb; exports.UPDATE_OR_CREATE_COOKIES = _chunk5PTFTN6Jcjs.Xa; exports.UPDATE_OR_CREATE_DATA_POINT = _chunk5PTFTN6Jcjs.f; exports.UPDATE_POLICIES = _chunk5PTFTN6Jcjs.V; exports.UPDATE_PRIVACY_CENTER = _chunk5PTFTN6Jcjs.Cb; exports.UPDATE_PRIVACY_REQUEST = _chunk5PTFTN6Jcjs.Z; exports.UPDATE_PROCESSING_ACTIVITIES = _chunk5PTFTN6Jcjs.$b; exports.UPDATE_PROCESSING_PURPOSE_SUB_CATEGORIES = _chunk5PTFTN6Jcjs.Yb; exports.UPDATE_PROMPTS = _chunk5PTFTN6Jcjs.oa; exports.UPDATE_PROMPT_GROUPS = _chunk5PTFTN6Jcjs.sa; exports.UPDATE_PROMPT_PARTIALS = _chunk5PTFTN6Jcjs.qa; exports.UPDATE_REPOSITORIES = _chunk5PTFTN6Jcjs.B; exports.UPDATE_SOFTWARE_DEVELOPMENT_KITS = _chunk5PTFTN6Jcjs.O; exports.UPDATE_TEAM = _chunk5PTFTN6Jcjs.Aa; exports.UPDATE_VENDORS = _chunk5PTFTN6Jcjs.Sb; exports.USERS = _chunk5PTFTN6Jcjs.Da; exports.USP_STRING_REGEX = _chunkF3BRFYKDcjs.b; exports.VARIABLE_PARAMETERS_NAME = _chunkRE5YALEOcjs.b; exports.VARIABLE_PARAMETERS_REGEXP = _chunkRE5YALEOcjs.a; exports.VENDORS = _chunk5PTFTN6Jcjs.Qb; exports.VendorInput = _chunk5UBGZNDCcjs.p; exports.WebhookHeader = _chunk5UBGZNDCcjs.b; exports.addDaysUtc = _chunk5PTFTN6Jcjs.jg; exports.addMessagesToPromptRun = _chunk5PTFTN6Jcjs.uc; exports.addMs = _chunk5PTFTN6Jcjs.ig; exports.appendCsvSync = _chunkLR3CPNDMcjs.b; exports.approvePrivacyRequests = _chunk5PTFTN6Jcjs.Cf; exports.assumeRole = _chunk5PTFTN6Jcjs.Kd; exports.buildAIIntegrationType = _chunkLCDYXJN6cjs.b; exports.buildEnabledRouteType = _chunkLCDYXJN6cjs.a; exports.buildTranscendGraphQLClient = _chunk5PTFTN6Jcjs.wc; exports.buildTranscendGraphQLClientGeneric = _chunk5PTFTN6Jcjs.vc; exports.buildXdiSyncEndpoint = _chunk7ZGJ4MJFcjs.g; exports.bulkRestartRequests = _chunk5PTFTN6Jcjs.Kf; exports.bulkRetryEnrichers = _chunk5PTFTN6Jcjs.Mf; exports.cancelPrivacyRequests = _chunk5PTFTN6Jcjs.Ff; exports.clampPageSize = _chunk5PTFTN6Jcjs.fg; exports.collectParquetFilesOrExit = _chunk5PTFTN6Jcjs.bg; exports.consentManagersToBusinessEntities = _chunk7ZGJ4MJFcjs.h; exports.convertToDataSubjectAllowlist = _chunk5PTFTN6Jcjs.yd; exports.convertToDataSubjectBlockList = _chunk5PTFTN6Jcjs.xd; exports.createActionItemCollection = _chunk5PTFTN6Jcjs.le; exports.createActionItems = _chunk5PTFTN6Jcjs.oe; exports.createAgent = _chunk5PTFTN6Jcjs.xe; exports.createAgentFile = _chunk5PTFTN6Jcjs.re; exports.createAgentFunction = _chunk5PTFTN6Jcjs.ue; exports.createApiKey = _chunk5PTFTN6Jcjs.Ld; exports.createBusinessEntity = _chunk5PTFTN6Jcjs.Be; exports.createCodePackage = _chunk5PTFTN6Jcjs.Ke; exports.createConsentToken = _chunkF3BRFYKDcjs.a; exports.createDataCategory = _chunk5PTFTN6Jcjs.Re; exports.createDataFlows = _chunk5PTFTN6Jcjs.Ve; exports.createPreferenceAccessTokens = _chunk5PTFTN6Jcjs.Jc; exports.createProcessingPurpose = _chunk5PTFTN6Jcjs.df; exports.createPrompt = _chunk5PTFTN6Jcjs.gf; exports.createRegexForTag = j; exports.createRepository = _chunk5PTFTN6Jcjs.He; exports.createSoftwareDevelopmentKit = _chunk5PTFTN6Jcjs.Ee; exports.createSombraGotInstance = _chunk5PTFTN6Jcjs.xc; exports.createTranscendConsentGotInstance = _chunk5PTFTN6Jcjs.yc; exports.createVendor = _chunk5PTFTN6Jcjs.jf; exports.defineTranscendPrompts = Wm; exports.deleteApiKey = _chunk5PTFTN6Jcjs.Md; exports.deployConsentManager = _chunk5PTFTN6Jcjs.zc; exports.description = _chunkNI434OIIcjs.l; exports.domainToHost = _chunk7ZGJ4MJFcjs.e; exports.downloadPrivacyRequestFiles = _chunk5PTFTN6Jcjs.zf; exports.enrichPrivacyRequest = _chunkGG7P2RO6cjs.c; exports.ensureAllDataSubjectsExist = _chunk5PTFTN6Jcjs.wd; exports.extractClientError = _chunk5PTFTN6Jcjs.Hf; exports.extractErrorMessage = _chunk5PTFTN6Jcjs.Wf; exports.fetchActiveSiloDiscoPlugin = _chunk5PTFTN6Jcjs.Bc; exports.fetchAllActionItems = _chunk5PTFTN6Jcjs.Cc; exports.fetchAllActions = _chunk5PTFTN6Jcjs.Dc; exports.fetchAllAgentFiles = _chunk5PTFTN6Jcjs.Ec; exports.fetchAllAgentFunctions = _chunk5PTFTN6Jcjs.Fc; exports.fetchAllAgents = _chunk5PTFTN6Jcjs.Gc; exports.fetchAllApiKeys = _chunk5PTFTN6Jcjs.rd; exports.fetchAllAssessmentTemplates = _chunk5PTFTN6Jcjs.Ic; exports.fetchAllAssessments = _chunk5PTFTN6Jcjs.Hc; exports.fetchAllAttributeValues = _chunk5PTFTN6Jcjs.Lc; exports.fetchAllAttributes = _chunk5PTFTN6Jcjs.Nc; exports.fetchAllBusinessEntities = _chunk5PTFTN6Jcjs.Oc; exports.fetchAllCatalogs = _chunk5PTFTN6Jcjs.td; exports.fetchAllCookies = _chunk5PTFTN6Jcjs.Vc; exports.fetchAllDataCategories = _chunk5PTFTN6Jcjs.Wc; exports.fetchAllDataFlows = _chunk5PTFTN6Jcjs.Xc; exports.fetchAllDataPoints = _chunk5PTFTN6Jcjs.Xd; exports.fetchAllDataSilos = _chunk5PTFTN6Jcjs.Vd; exports.fetchAllDataSubjects = _chunk5PTFTN6Jcjs.vd; exports.fetchAllEnrichers = _chunk5PTFTN6Jcjs.$d; exports.fetchAllIdentifiers = _chunk5PTFTN6Jcjs.lg; exports.fetchAllMessages = _chunk5PTFTN6Jcjs.Yc; exports.fetchAllPolicies = _chunk5PTFTN6Jcjs.$c; exports.fetchAllPreferenceTopics = _chunk5PTFTN6Jcjs.bd; exports.fetchAllPrivacyCenters = _chunk5PTFTN6Jcjs.cd; exports.fetchAllProcessingActivities = _chunk5PTFTN6Jcjs.dd; exports.fetchAllProcessingPurposes = _chunk5PTFTN6Jcjs.ed; exports.fetchAllPromptGroups = _chunk5PTFTN6Jcjs.zd; exports.fetchAllPromptPartials = _chunk5PTFTN6Jcjs.Ad; exports.fetchAllPromptThreads = _chunk5PTFTN6Jcjs.Dd; exports.fetchAllPrompts = _chunk5PTFTN6Jcjs.Bd; exports.fetchAllPurposes = _chunk5PTFTN6Jcjs.fd; exports.fetchAllPurposesAndPreferences = _chunk5PTFTN6Jcjs.gd; exports.fetchAllRequestAttributeKeys = _chunk5PTFTN6Jcjs.Kc; exports.fetchAllRequestEnrichers = _chunk5PTFTN6Jcjs.hd; exports.fetchAllRequestIdentifierMetadata = _chunk5PTFTN6Jcjs.id; exports.fetchAllRequestIdentifiers = _chunk5PTFTN6Jcjs.kd; exports.fetchAllRequests = _chunk5PTFTN6Jcjs.nd; exports.fetchAllSubDataPoints = _chunk5PTFTN6Jcjs.Wd; exports.fetchAllTeams = _chunk5PTFTN6Jcjs.od; exports.fetchAllTemplates = _chunk5PTFTN6Jcjs.be; exports.fetchAllUsers = _chunk5PTFTN6Jcjs.pd; exports.fetchAllVendors = _chunk5PTFTN6Jcjs.qd; exports.fetchAndIndexCatalogs = _chunk5PTFTN6Jcjs.ud; exports.fetchApiKeys = _chunk5PTFTN6Jcjs.sd; exports.fetchConsentManager = _chunk5PTFTN6Jcjs.Pc; exports.fetchConsentManagerAnalyticsData = _chunk5PTFTN6Jcjs.Tc; exports.fetchConsentManagerExperiences = _chunk5PTFTN6Jcjs.Rc; exports.fetchConsentManagerId = _chunk5PTFTN6Jcjs.Qc; exports.fetchConsentManagerTheme = _chunk5PTFTN6Jcjs.Uc; exports.fetchEnrichedDataSilos = _chunk5PTFTN6Jcjs.Yd; exports.fetchIdentifiersAndCreateMissing = _chunk5PTFTN6Jcjs.mg; exports.fetchPartitions = _chunk5PTFTN6Jcjs.de; exports.fetchPrivacyCenterId = _chunk5PTFTN6Jcjs._c; exports.fetchPrivacyCenterUrl = _chunk5PTFTN6Jcjs.Zc; exports.fetchPromptsWithVariables = _chunk5PTFTN6Jcjs.Cd; exports.fetchRequestDataSilo = _chunk5PTFTN6Jcjs.Gd; exports.fetchRequestDataSiloActiveCount = _chunk5PTFTN6Jcjs.Hd; exports.fetchRequestDataSilos = _chunk5PTFTN6Jcjs.Fd; exports.fetchRequestDataSilosCount = _chunk5PTFTN6Jcjs.Ed; exports.fetchRequestFilesForRequest = _chunk5PTFTN6Jcjs.Id; exports.filterNullishValuesFromObject = Ym; exports.filterRows = _chunk5PTFTN6Jcjs.tc; exports.formatAttributeValues = _chunk5PTFTN6Jcjs.ad; exports.fuzzyMatchColumns = _chunk5PTFTN6Jcjs.mc; exports.fuzzySearch = _chunk5PTFTN6Jcjs.lc; exports.generateCrossAccountApiKeys = _chunkMOWFESXNcjs.a; exports.getErrorStatus = _chunk5PTFTN6Jcjs.Vf; exports.getFileMetadataForPrivacyRequests = _chunk5PTFTN6Jcjs.xf; exports.getGitFilesThatChanged = sc; exports.getUniqueValuesForColumn = _chunk5PTFTN6Jcjs.sc; exports.inquirerAutoComplete = _chunk5PTFTN6Jcjs.Tf; exports.inquirerConfirmBoolean = _chunk5PTFTN6Jcjs.Rf; exports.inquirerConfirmText = _chunk5PTFTN6Jcjs.Sf; exports.limitRecords = _chunk5PTFTN6Jcjs._f; exports.listDirectories = _chunkMOWFESXNcjs.d; exports.listFiles = _chunkMOWFESXNcjs.c; exports.loginUser = _chunk5PTFTN6Jcjs.Jd; exports.makeGraphQLRequest = _chunk5PTFTN6Jcjs.kg; exports.mapColumnsToAttributes = _chunk5PTFTN6Jcjs.Gf; exports.mapColumnsToIdentifiers = _chunk5PTFTN6Jcjs.Ef; exports.mapCsvColumnsToApi = _chunk5PTFTN6Jcjs.of; exports.mapCsvRowsToRequestInputs = _chunk5PTFTN6Jcjs.tf; exports.mapEnumValues = _chunk5PTFTN6Jcjs.nc; exports.mapRequestEnumValues = _chunk5PTFTN6Jcjs.pf; exports.markCronIdentifierCompleted = _chunkCOKHIMLOcjs.d; exports.markRequestDataSiloIdsCompleted = _chunkCOKHIMLOcjs.f; exports.markSilentPrivacyRequests = _chunk5PTFTN6Jcjs.nf; exports.mergeTranscendInputs = _chunkIBTP5OXEcjs.a; exports.name = _chunkNI434OIIcjs.n; exports.normalizeIdentifierValue = _chunk5PTFTN6Jcjs.sf; exports.notifyPrivacyRequestsAdditionalTime = _chunk5PTFTN6Jcjs.Df; exports.parquetToCsvOneFile = _chunk5PTFTN6Jcjs.cg; exports.parseAssessmentDisplayLogic = _chunk5PTFTN6Jcjs.Sd; exports.parseAssessmentRiskLogic = _chunk5PTFTN6Jcjs.Ud; exports.parseAttributesFromString = _chunk5PTFTN6Jcjs.qc; exports.parseFilePath = _chunkLR3CPNDMcjs.d; exports.parseVariablesFromString = _chunk5PTFTN6Jcjs.Uf; exports.pullAllDatapoints = _chunkKYVDLURLcjs.a; exports.pullChunkedCustomSiloOutstandingIdentifiers = _chunkCOKHIMLOcjs.g; exports.pullConsentManagerMetrics = _chunk7ZGJ4MJFcjs.d; exports.pullCronPageOfIdentifiers = _chunkCOKHIMLOcjs.b; exports.pullManualEnrichmentIdentifiersToCsv = _chunkGG7P2RO6cjs.a; exports.pullPrivacyRequests = _chunk5PTFTN6Jcjs.Of; exports.pullTranscendConfiguration = _chunk5PTFTN6Jcjs.ge; exports.pullUnstructuredSubDataPointRecommendations = _chunkKYVDLURLcjs.b; exports.pushCronIdentifiersFromCsv = _chunkCOKHIMLOcjs.e; exports.pushManualEnrichmentIdentifiersFromCsv = _chunkGG7P2RO6cjs.d; exports.readCsv = _chunk5PTFTN6Jcjs.rc; exports.readSafe = _chunk5PTFTN6Jcjs.ag; exports.readTranscendYaml = _chunkRE5YALEOcjs.d; exports.removeLinks = Km; exports.removeUnverifiedRequestIdentifiers = _chunk5PTFTN6Jcjs.Qf; exports.replaceVariablesInYaml = _chunkRE5YALEOcjs.c; exports.reportPromptRun = _chunk5PTFTN6Jcjs.he; exports.restartPrivacyRequest = _chunk5PTFTN6Jcjs.Jf; exports.retryRequestDataSilos = _chunk5PTFTN6Jcjs.Nf; exports.retryRequestEnricher = _chunk5PTFTN6Jcjs.ie; exports.retrySamePromise = _chunk5PTFTN6Jcjs.Zf; exports.setResourceAttributes = _chunk5PTFTN6Jcjs.je; exports.skipPreflightJobs = _chunk5PTFTN6Jcjs.Lf; exports.skipRequestDataSilos = _chunk5PTFTN6Jcjs.Pf; exports.sleepPromise = _chunk5PTFTN6Jcjs.Xf; exports.splitCsvToList = _chunk5PTFTN6Jcjs.oc; exports.splitInHalf = _chunk5PTFTN6Jcjs.Yf; exports.startOfHour = _chunk5PTFTN6Jcjs.hg; exports.startOfUtcDay = _chunk5PTFTN6Jcjs.gg; exports.streamPrivacyRequestFiles = _chunk5PTFTN6Jcjs.yf; exports.submitPrivacyRequest = _chunk5PTFTN6Jcjs.Bf; exports.syncAction = _chunk5PTFTN6Jcjs.ke; exports.syncActionItemCollections = _chunk5PTFTN6Jcjs.ne; exports.syncActionItems = _chunk5PTFTN6Jcjs.qe; exports.syncAgentFiles = _chunk5PTFTN6Jcjs.te; exports.syncAgentFunctions = _chunk5PTFTN6Jcjs.we; exports.syncAgents = _chunk5PTFTN6Jcjs.ze; exports.syncAttribute = _chunk5PTFTN6Jcjs.Ae; exports.syncBusinessEntities = _chunk5PTFTN6Jcjs.De; exports.syncCodePackages = _chunk5PTFTN6Jcjs.Me; exports.syncConfigurationToTranscend = _chunk5PTFTN6Jcjs.ng; exports.syncConsentManager = _chunk5PTFTN6Jcjs.Oe; exports.syncConsentManagerExperiences = _chunk5PTFTN6Jcjs.Ne; exports.syncCookies = _chunk5PTFTN6Jcjs.Qe; exports.syncDataCategories = _chunk5PTFTN6Jcjs.Te; exports.syncDataFlows = _chunk5PTFTN6Jcjs.We; exports.syncDataSiloDependencies = _chunk5PTFTN6Jcjs._d; exports.syncDataSilos = _chunk5PTFTN6Jcjs.Zd; exports.syncDataSubject = _chunk5PTFTN6Jcjs.Xe; exports.syncEnricher = _chunk5PTFTN6Jcjs.ae; exports.syncIdentifier = _chunk5PTFTN6Jcjs.Ye; exports.syncIntlMessages = _chunk5PTFTN6Jcjs._e; exports.syncPartitions = _chunk5PTFTN6Jcjs.ee; exports.syncPolicies = _chunk5PTFTN6Jcjs.af; exports.syncPrivacyCenter = _chunk5PTFTN6Jcjs.bf; exports.syncProcessingActivities = _chunk5PTFTN6Jcjs.cf; exports.syncProcessingPurposes = _chunk5PTFTN6Jcjs.ff; exports.syncPrompts = _chunk5PTFTN6Jcjs.if; exports.syncRepositories = _chunk5PTFTN6Jcjs.Je; exports.syncSoftwareDevelopmentKits = _chunk5PTFTN6Jcjs.Ge; exports.syncTemplate = _chunk5PTFTN6Jcjs.ce; exports.syncVendors = _chunk5PTFTN6Jcjs.lf; exports.updateActionItem = _chunk5PTFTN6Jcjs.pe; exports.updateActionItemCollection = _chunk5PTFTN6Jcjs.me; exports.updateAgentFiles = _chunk5PTFTN6Jcjs.se; exports.updateAgentFunctions = _chunk5PTFTN6Jcjs.ve; exports.updateAgents = _chunk5PTFTN6Jcjs.ye; exports.updateBusinessEntities = _chunk5PTFTN6Jcjs.Ce; exports.updateCodePackages = _chunk5PTFTN6Jcjs.Le; exports.updateConsentManagerToLatest = _chunk5PTFTN6Jcjs.Ac; exports.updateConsentManagerVersionToLatest = _chunk7ZGJ4MJFcjs.a; exports.updateDataCategories = _chunk5PTFTN6Jcjs.Se; exports.updateDataFlows = _chunk5PTFTN6Jcjs.Ue; exports.updateIntlMessages = _chunk5PTFTN6Jcjs.Ze; exports.updateOrCreateCookies = _chunk5PTFTN6Jcjs.Pe; exports.updatePolicies = _chunk5PTFTN6Jcjs.$e; exports.updateProcessingPurposes = _chunk5PTFTN6Jcjs.ef; exports.updatePrompts = _chunk5PTFTN6Jcjs.hf; exports.updateRepositories = _chunk5PTFTN6Jcjs.Ie; exports.updateSoftwareDevelopmentKits = _chunk5PTFTN6Jcjs.Fe; exports.updateVendors = _chunk5PTFTN6Jcjs.kf; exports.uploadConsents = _chunkF3BRFYKDcjs.d; exports.uploadCookiesFromCsv = _chunk7ZGJ4MJFcjs.c; exports.uploadDataFlowsFromCsv = _chunk7ZGJ4MJFcjs.b; exports.uploadPrivacyRequestsFromCsv = _chunk5PTFTN6Jcjs.If; exports.uploadSiloDiscoveryResults = _chunk5PTFTN6Jcjs.mf; exports.validateTranscendAuth = _chunkMOWFESXNcjs.b; exports.version = _chunkNI434OIIcjs.m; exports.writeCsv = _chunkLR3CPNDMcjs.c; exports.writeCsvSync = _chunkLR3CPNDMcjs.a; exports.writeLargeCsv = _chunkLR3CPNDMcjs.e; exports.writeTranscendYaml = _chunkRE5YALEOcjs.e;
|
|
3
|
+
`)[0];if(!o||!i)throw new Error("FAILED TO FIND COMMIT RANGE");let p=_child_process.execSync.call(void 0, `git fetch && git diff --name-only "${a||o}...${i}" -- ${e}`,{encoding:"utf-8"}),m=_chunk72KHFLMFcjs.c.call(void 0, p.split(`
|
|
4
|
+
`).filter(d=>d),s),c=t.length>0?_fastglob2.default.sync(m,{ignore:t}):m,n={};c.forEach(d=>{let F=_child_process.execSync.call(void 0, `git show ${i}:${d}`,{encoding:"utf-8"});n[d]=F});let g=r.split("/").pop().split(".")[0];return{changedFiles:m,fileDiffs:n,repoName:g,commit:i}}exports.ACTIONS = _chunkSE3D4DHAcjs.ub; exports.ADD_MESSAGES_TO_PROMPT_RUN = _chunkSE3D4DHAcjs.Ha; exports.ADD_SILO_DISCOVERY_RESULTS = _chunkSE3D4DHAcjs.H; exports.ADMIN_DASH = _chunk72KHFLMFcjs.o; exports.ADMIN_DASH_DATAPOINTS = _chunk72KHFLMFcjs.q; exports.ADMIN_DASH_INTEGRATIONS = _chunk72KHFLMFcjs.p; exports.AGENTS = _chunkSE3D4DHAcjs.Hb; exports.AGENT_FILES = _chunkSE3D4DHAcjs.Kb; exports.AGENT_FUNCTIONS = _chunkSE3D4DHAcjs.Nb; exports.API_KEYS = _chunkSE3D4DHAcjs.D; exports.APPROVE_PRIVACY_REQUEST = _chunkSE3D4DHAcjs.X; exports.ASSESSMENTS = _chunkSE3D4DHAcjs.fa; exports.ASSESSMENT_SECTION_FIELDS = _chunkSE3D4DHAcjs.ea; exports.ASSESSMENT_TEMPLATES = _chunkSE3D4DHAcjs.ja; exports.ASSUME_ROLE = _chunkSE3D4DHAcjs.Fb; exports.ATTRIBUTES = _chunkSE3D4DHAcjs.La; exports.ATTRIBUTE_KEYS_REQUESTS = _chunkSE3D4DHAcjs.M; exports.ATTRIBUTE_VALUES = _chunkSE3D4DHAcjs.Pa; exports.ActionInput = _chunk5UBGZNDCcjs.G; exports.ActionItemCollectionInput = _chunk5UBGZNDCcjs.R; exports.ActionItemInput = _chunk5UBGZNDCcjs.S; exports.AgentFileInput = _chunk5UBGZNDCcjs.o; exports.AgentFunctionInput = _chunk5UBGZNDCcjs.n; exports.AgentInput = _chunk5UBGZNDCcjs.m; exports.ApiKeyInput = _chunk5UBGZNDCcjs.c; exports.AssessmentAction = _chunkSE3D4DHAcjs.Rd; exports.AssessmentAnswerOptionInput = _chunk5UBGZNDCcjs.Y; exports.AssessmentDisplayLogicInput = _chunk5UBGZNDCcjs.V; exports.AssessmentInput = _chunk5UBGZNDCcjs.ca; exports.AssessmentNestedRule = _chunkSE3D4DHAcjs.Qd; exports.AssessmentNestedRuleInput = _chunk5UBGZNDCcjs.U; exports.AssessmentResourceInput = _chunk5UBGZNDCcjs.ba; exports.AssessmentRetentionScheduleInput = _chunk5UBGZNDCcjs.$; exports.AssessmentRiskLogic = _chunkSE3D4DHAcjs.Td; exports.AssessmentRule = _chunkSE3D4DHAcjs.Pd; exports.AssessmentRuleInput = _chunk5UBGZNDCcjs.T; exports.AssessmentRuleWithOperands = _chunkSE3D4DHAcjs.Nd; exports.AssessmentRuleWithoutOperands = _chunkSE3D4DHAcjs.Od; exports.AssessmentSectionInput = _chunk5UBGZNDCcjs._; exports.AssessmentSectionQuestionInput = _chunk5UBGZNDCcjs.Z; exports.AssessmentTemplateInput = _chunk5UBGZNDCcjs.aa; exports.AttestedExtraIdentifiers = _chunkSE3D4DHAcjs.qf; exports.AttributeInput = _chunk5UBGZNDCcjs.k; exports.AttributePreview = _chunk5UBGZNDCcjs.l; exports.AttributeValueInput = _chunk5UBGZNDCcjs.j; exports.BLANK = _chunkSE3D4DHAcjs.dc; exports.BULK_APPLY = _chunkSE3D4DHAcjs.cc; exports.BULK_REQUEST_FILES = _chunkSE3D4DHAcjs.Fa; exports.BUSINESS_ENTITIES = _chunkSE3D4DHAcjs.rb; exports.BusinessEntityInput = _chunk5UBGZNDCcjs.y; exports.CANCEL_PRIVACY_REQUEST = _chunkSE3D4DHAcjs.Y; exports.CAN_APPLY_IN_BULK = _chunkSE3D4DHAcjs.hc; exports.CATALOGS = _chunkSE3D4DHAcjs.r; exports.CHANGE_REQUEST_DATA_SILO_STATUS = _chunkSE3D4DHAcjs.va; exports.CODE_PACKAGES = _chunkSE3D4DHAcjs.Q; exports.CONSENT_MANAGER_ANALYTICS_DATA = _chunkSE3D4DHAcjs.qb; exports.CONSENT_PARTITIONS = _chunkSE3D4DHAcjs.Ua; exports.COOKIES = _chunkSE3D4DHAcjs.Za; exports.CREATE_ACTION_ITEMS = _chunkSE3D4DHAcjs.yb; exports.CREATE_ACTION_ITEM_COLLECTION = _chunkSE3D4DHAcjs.Ja; exports.CREATE_AGENT = _chunkSE3D4DHAcjs.Ib; exports.CREATE_AGENT_FILE = _chunkSE3D4DHAcjs.Lb; exports.CREATE_AGENT_FUNCTION = _chunkSE3D4DHAcjs.Ob; exports.CREATE_API_KEY = _chunkSE3D4DHAcjs.E; exports.CREATE_ATTRIBUTE = _chunkSE3D4DHAcjs.Qa; exports.CREATE_ATTRIBUTE_VALUES = _chunkSE3D4DHAcjs.Ma; exports.CREATE_BUSINESS_ENTITY = _chunkSE3D4DHAcjs.sb; exports.CREATE_CODE_PACKAGE = _chunkSE3D4DHAcjs.S; exports.CREATE_CONSENT_EXPERIENCE = _chunkSE3D4DHAcjs.ob; exports.CREATE_CONSENT_MANAGER = _chunkSE3D4DHAcjs.bb; exports.CREATE_CONSENT_PARTITION = _chunkSE3D4DHAcjs.pb; exports.CREATE_DATA_FLOWS = _chunkSE3D4DHAcjs.Va; exports.CREATE_DATA_SILOS = _chunkSE3D4DHAcjs.m; exports.CREATE_DATA_SUBJECT = _chunkSE3D4DHAcjs.x; exports.CREATE_DATA_SUB_CATEGORY = _chunkSE3D4DHAcjs.Ub; exports.CREATE_ENRICHER = _chunkSE3D4DHAcjs.p; exports.CREATE_IDENTIFIER = _chunkSE3D4DHAcjs.u; exports.CREATE_PREFERENCE_ACCESS_TOKENS = _chunkSE3D4DHAcjs.G; exports.CREATE_PROCESSING_ACTIVITY = _chunkSE3D4DHAcjs._b; exports.CREATE_PROCESSING_PURPOSE_SUB_CATEGORY = _chunkSE3D4DHAcjs.Xb; exports.CREATE_PROMPT = _chunkSE3D4DHAcjs.pa; exports.CREATE_PROMPT_GROUP = _chunkSE3D4DHAcjs.ta; exports.CREATE_PROMPT_PARTIAL = _chunkSE3D4DHAcjs.ra; exports.CREATE_REPOSITORY = _chunkSE3D4DHAcjs.C; exports.CREATE_SOFTWARE_DEVELOPMENT_KIT = _chunkSE3D4DHAcjs.P; exports.CREATE_TEAM = _chunkSE3D4DHAcjs.za; exports.CREATE_TEMPLATE = _chunkSE3D4DHAcjs.K; exports.CREATE_VENDOR = _chunkSE3D4DHAcjs.Rb; exports.CachedFileState = _chunkSE3D4DHAcjs.ic; exports.CachedRequestState = _chunkSE3D4DHAcjs.kc; exports.CodePackageInput = _chunk5UBGZNDCcjs.D; exports.CodePackageSdk = _chunk5UBGZNDCcjs.C; exports.ColumnName = _chunkSE3D4DHAcjs.fc; exports.ConsentManageExperienceInput = _chunk5UBGZNDCcjs.K; exports.ConsentManagerInput = _chunk5UBGZNDCcjs.M; exports.ConsentManagerMetricBin = _chunkSE3D4DHAcjs.Sc; exports.ConsentManagerServiceMetadata = _chunk5UBGZNDCcjs.ka; exports.ConsentPreferenceTopic = _chunk5UBGZNDCcjs.ea; exports.ConsentPreferenceTopicOptionValue = _chunk5UBGZNDCcjs.da; exports.ConsentPurpose = _chunk5UBGZNDCcjs.fa; exports.CookieCsvInput = _chunk5UBGZNDCcjs.ja; exports.CookieInput = _chunk5UBGZNDCcjs.J; exports.CronIdentifier = _chunkJI7R6PYDcjs.a; exports.CronIdentifierPush = _chunkJI7R6PYDcjs.c; exports.DATAPOINT_EXPORT = _chunkSE3D4DHAcjs.g; exports.DATA_FLOWS = _chunkSE3D4DHAcjs.Ya; exports.DATA_POINTS = _chunkSE3D4DHAcjs.a; exports.DATA_POINT_COUNT = _chunkSE3D4DHAcjs.b; exports.DATA_SILOS = _chunkSE3D4DHAcjs.i; exports.DATA_SILOS_ENRICHED = _chunkSE3D4DHAcjs.k; exports.DATA_SILO_EXPORT = _chunkSE3D4DHAcjs.j; exports.DATA_SUBJECTS = _chunkSE3D4DHAcjs.w; exports.DATA_SUB_CATEGORIES = _chunkSE3D4DHAcjs.Tb; exports.DAY_MS = _chunkSE3D4DHAcjs.dg; exports.DEBUG = _chunk72KHFLMFcjs.z; exports.DEFAULT_TRANSCEND_API = _chunk72KHFLMFcjs.r; exports.DEFAULT_TRANSCEND_CONSENT_API = _chunk72KHFLMFcjs.s; exports.DEFAULT_TRANSCEND_PULL_RESOURCES = _chunkSE3D4DHAcjs.fe; exports.DELETE_API_KEY = _chunkSE3D4DHAcjs.F; exports.DELETE_ATTRIBUTE_VALUE = _chunkSE3D4DHAcjs.Oa; exports.DEPLOYED_PRIVACY_CENTER_URL = _chunkSE3D4DHAcjs.Ab; exports.DEPLOY_CONSENT_MANAGER = _chunkSE3D4DHAcjs.eb; exports.DETERMINE_LOGIN_METHOD = _chunkSE3D4DHAcjs.Db; exports.DataCategoryGuessInput = _chunk5UBGZNDCcjs.h; exports.DataCategoryInput = _chunk5UBGZNDCcjs.q; exports.DataCategoryPreviewInput = _chunk5UBGZNDCcjs.g; exports.DataCategoryRecommendationInput = _chunk5UBGZNDCcjs.i; exports.DataFlowCsvInput = _chunk5UBGZNDCcjs.ia; exports.DataFlowInput = _chunk5UBGZNDCcjs.I; exports.DataSiloInput = _chunk5UBGZNDCcjs.Q; exports.DataSubjectInput = _chunk5UBGZNDCcjs.F; exports.DatapointInput = _chunk5UBGZNDCcjs.w; exports.ENABLED_PLUGINS = _chunkSE3D4DHAcjs.I; exports.ENRICHERS = _chunkSE3D4DHAcjs.n; exports.ENTRY_COUNT = _chunkSE3D4DHAcjs.h; exports.EXPERIENCES = _chunkSE3D4DHAcjs.Ta; exports.EnrichPrivacyRequest = _chunkBXWDS6YNcjs.b; exports.EnricherInput = _chunk5UBGZNDCcjs.e; exports.FETCH_CONSENT_MANAGER = _chunkSE3D4DHAcjs.$a; exports.FETCH_CONSENT_MANAGER_ID = _chunkSE3D4DHAcjs._a; exports.FETCH_CONSENT_MANAGER_THEME = _chunkSE3D4DHAcjs.ab; exports.FETCH_PRIVACY_CENTER_ID = _chunkSE3D4DHAcjs.zb; exports.FieldInput = _chunk5UBGZNDCcjs.v; exports.GLOBAL_ACTION_ITEMS = _chunkSE3D4DHAcjs.wb; exports.GLOBAL_ACTION_ITEM_COLLECTIONS = _chunkSE3D4DHAcjs.Ia; exports.HOUR_MS = _chunkSE3D4DHAcjs.eg; exports.IDENTIFIERS = _chunkSE3D4DHAcjs.s; exports.IDENTIFIER_BLOCK_LIST = _chunkSE3D4DHAcjs.ec; exports.IMPORT_ONE_TRUST_ASSESSMENT_FORMS = _chunkSE3D4DHAcjs.ga; exports.INITIALIZER = _chunkSE3D4DHAcjs.o; exports.IP_ADDRESS_REGEX = _chunk3R32U46Ucjs.f; exports.IS_REQUIRED = _chunkSE3D4DHAcjs.gc; exports.IdentifierInput = _chunk5UBGZNDCcjs.H; exports.ImportOnetrustAssessmentsInput = _chunk5UBGZNDCcjs.ra; exports.IntlMessage = _chunkSE3D4DHAcjs.uf; exports.IntlMessageInput = _chunk5UBGZNDCcjs.P; exports.LARGE_LANGUAGE_MODELS = _chunkSE3D4DHAcjs.Gb; exports.LOGIN = _chunkSE3D4DHAcjs.Eb; exports.MESSAGES = _chunkSE3D4DHAcjs.$; exports.NEW_IDENTIFIER_TYPES = _chunkSE3D4DHAcjs.t; exports.NONE = _chunkSE3D4DHAcjs.bc; exports.NOTIFY_ADDITIONAL_TIME = _chunkSE3D4DHAcjs._; exports.ORGANIZATION = _chunkSE3D4DHAcjs.L; exports.OneTrustFileFormat = _chunkQ7I37FJVcjs.a; exports.OneTrustPullResource = _chunkQ7I37FJVcjs.b; exports.OneTrustPullSource = _chunkQ7I37FJVcjs.c; exports.OpenAIEnabledRoute = _chunk5UBGZNDCcjs.ma; exports.OpenAIEnabledRoutes = _chunk5UBGZNDCcjs.na; exports.OpenAIIntegration = _chunk5UBGZNDCcjs.oa; exports.OpenAIRouteName = _chunkQ7I37FJVcjs.f; exports.POLICIES = _chunkSE3D4DHAcjs.U; exports.PREFERENCE_TOPICS = _chunkSE3D4DHAcjs.ia; exports.PRIVACY_CENTER = _chunkSE3D4DHAcjs.Bb; exports.PROCESSING_ACTIVITIES = _chunkSE3D4DHAcjs.Zb; exports.PROCESSING_PURPOSE_SUB_CATEGORIES = _chunkSE3D4DHAcjs.Wb; exports.PROMPTS = _chunkSE3D4DHAcjs.ka; exports.PROMPTS_WITH_VARIABLES = _chunkSE3D4DHAcjs.na; exports.PROMPT_GROUPS = _chunkSE3D4DHAcjs.ma; exports.PROMPT_PARTIALS = _chunkSE3D4DHAcjs.la; exports.PROMPT_THREADS = _chunkSE3D4DHAcjs.T; exports.PURPOSES = _chunkSE3D4DHAcjs.ha; exports.ParsedAttributeInput = _chunkSE3D4DHAcjs.pc; exports.PartitionInput = _chunk5UBGZNDCcjs.L; exports.PathfinderPolicy = _chunk5UBGZNDCcjs.pa; exports.PathfinderPolicyName = _chunkQ7I37FJVcjs.e; exports.PathfinderPolicyNameC = _chunk5UBGZNDCcjs.la; exports.PathfinderPromptRunMetadata = _chunk5UBGZNDCcjs.qa; exports.PolicyInput = _chunk5UBGZNDCcjs.O; exports.PrivacyCenterInput = _chunk5UBGZNDCcjs.N; exports.PrivacyRequest = _chunkSE3D4DHAcjs.md; exports.PrivacyRequestInput = _chunkSE3D4DHAcjs.rf; exports.PrivacyRequestResponse = _chunkSE3D4DHAcjs.Af; exports.ProcessingActivityInput = _chunk5UBGZNDCcjs.A; exports.ProcessingPurposeInput = _chunk5UBGZNDCcjs.r; exports.ProcessingPurposePreviewInput = _chunk5UBGZNDCcjs.f; exports.PromptAVendorEmailSettings = _chunk5UBGZNDCcjs.x; exports.PromptGroupInput = _chunk5UBGZNDCcjs.u; exports.PromptInput = _chunk5UBGZNDCcjs.s; exports.PromptPartialInput = _chunk5UBGZNDCcjs.t; exports.PurposeMap = _chunkNDHQBERAcjs.c; exports.REDUCED_REQUESTS_FOR_DATA_SILO_COUNT = _chunkSE3D4DHAcjs.xa; exports.REMOVE_REQUEST_IDENTIFIERS = _chunkSE3D4DHAcjs.Ba; exports.REPORT_PROMPT_RUN = _chunkSE3D4DHAcjs.Ga; exports.REPOSITORIES = _chunkSE3D4DHAcjs.A; exports.REQUESTS = _chunkSE3D4DHAcjs.W; exports.REQUEST_DATA_SILOS = _chunkSE3D4DHAcjs.ua; exports.REQUEST_ENRICHERS = _chunkSE3D4DHAcjs.ba; exports.REQUEST_FILES = _chunkSE3D4DHAcjs.Ea; exports.REQUEST_IDENTIFIERS = _chunkSE3D4DHAcjs.Ca; exports.RETRYABLE_BATCH_STATUSES = _chunk72KHFLMFcjs.y; exports.RETRY_REQUEST_DATA_SILO = _chunkSE3D4DHAcjs.wa; exports.RETRY_REQUEST_ENRICHER = _chunkSE3D4DHAcjs.ca; exports.RateCounter = _chunkSE3D4DHAcjs.$f; exports.RegionInput = _chunk5UBGZNDCcjs.z; exports.RepositoryInput = _chunk5UBGZNDCcjs.E; exports.RequestFileMetadata = _chunkSE3D4DHAcjs.vf; exports.RequestFileMetadataResponse = _chunkSE3D4DHAcjs.wf; exports.RequestIdentifiersResponse = _chunkSE3D4DHAcjs.jd; exports.RequestPurposeTrigger = _chunkSE3D4DHAcjs.ld; exports.RiskAssignmentInput = _chunk5UBGZNDCcjs.W; exports.RiskLogicInput = _chunk5UBGZNDCcjs.X; exports.SCOPES_BY_TITLE = _chunk72KHFLMFcjs.w; exports.SCOPE_TITLES = _chunk72KHFLMFcjs.x; exports.SET_RESOURCE_ATTRIBUTES = _chunkSE3D4DHAcjs.Sa; exports.SKIP_REQUEST_ENRICHER = _chunkSE3D4DHAcjs.da; exports.SOFTWARE_DEVELOPMENT_KITS = _chunkSE3D4DHAcjs.N; exports.SOMBRA_VERSION = _chunkSE3D4DHAcjs.ac; exports.SUB_DATA_POINTS = _chunkSE3D4DHAcjs.c; exports.SUB_DATA_POINTS_COUNT = _chunkSE3D4DHAcjs.d; exports.SUB_DATA_POINTS_WITH_GUESSES = _chunkSE3D4DHAcjs.e; exports.SYNC_ATTRIBUTE_TYPES = _chunkSE3D4DHAcjs.Mc; exports.SoftwareDevelopmentKitInput = _chunk5UBGZNDCcjs.B; exports.StoredApiKey = _chunk5UBGZNDCcjs.ha; exports.SuccessfulRequest = _chunkSE3D4DHAcjs.jc; exports.TEAMS = _chunkSE3D4DHAcjs.ya; exports.TEMPLATES = _chunkSE3D4DHAcjs.J; exports.TOGGLE_CONSENT_PRECEDENCE = _chunkSE3D4DHAcjs.lb; exports.TOGGLE_DATA_SUBJECT = _chunkSE3D4DHAcjs.z; exports.TOGGLE_TELEMETRY_PARTITION_STRATEGY = _chunkSE3D4DHAcjs.kb; exports.TOGGLE_UNKNOWN_COOKIE_POLICY = _chunkSE3D4DHAcjs.jb; exports.TOGGLE_UNKNOWN_REQUEST_POLICY = _chunkSE3D4DHAcjs.ib; exports.TR_PULL_RESOURCE_SCOPE_MAP = _chunk72KHFLMFcjs.u; exports.TR_PUSH_RESOURCE_SCOPE_MAP = _chunk72KHFLMFcjs.t; exports.TR_YML_RESOURCE_TO_FIELD_NAME = _chunk72KHFLMFcjs.v; exports.TeamInput = _chunk5UBGZNDCcjs.d; exports.TemplateInput = _chunk5UBGZNDCcjs.a; exports.TranscendInput = _chunk5UBGZNDCcjs.ga; exports.TranscendPromptManager = B; exports.TranscendPullResource = _chunkQ7I37FJVcjs.d; exports.UPDATE_ACTION = _chunkSE3D4DHAcjs.vb; exports.UPDATE_ACTION_ITEMS = _chunkSE3D4DHAcjs.xb; exports.UPDATE_ACTION_ITEM_COLLECTION = _chunkSE3D4DHAcjs.Ka; exports.UPDATE_AGENTS = _chunkSE3D4DHAcjs.Jb; exports.UPDATE_AGENT_FILES = _chunkSE3D4DHAcjs.Mb; exports.UPDATE_AGENT_FUNCTIONS = _chunkSE3D4DHAcjs.Pb; exports.UPDATE_ATTRIBUTE = _chunkSE3D4DHAcjs.Ra; exports.UPDATE_ATTRIBUTE_VALUES = _chunkSE3D4DHAcjs.Na; exports.UPDATE_BUSINESS_ENTITIES = _chunkSE3D4DHAcjs.tb; exports.UPDATE_CODE_PACKAGES = _chunkSE3D4DHAcjs.R; exports.UPDATE_CONSENT_EXPERIENCE = _chunkSE3D4DHAcjs.nb; exports.UPDATE_CONSENT_MANAGER_DOMAINS = _chunkSE3D4DHAcjs.fb; exports.UPDATE_CONSENT_MANAGER_PARTITION = _chunkSE3D4DHAcjs.gb; exports.UPDATE_CONSENT_MANAGER_THEME = _chunkSE3D4DHAcjs.mb; exports.UPDATE_CONSENT_MANAGER_TO_LATEST = _chunkSE3D4DHAcjs.db; exports.UPDATE_CONSENT_MANAGER_VERSION = _chunkSE3D4DHAcjs.cb; exports.UPDATE_DATA_FLOWS = _chunkSE3D4DHAcjs.Wa; exports.UPDATE_DATA_SILOS = _chunkSE3D4DHAcjs.l; exports.UPDATE_DATA_SUBJECT = _chunkSE3D4DHAcjs.y; exports.UPDATE_DATA_SUB_CATEGORIES = _chunkSE3D4DHAcjs.Vb; exports.UPDATE_ENRICHER = _chunkSE3D4DHAcjs.q; exports.UPDATE_IDENTIFIER = _chunkSE3D4DHAcjs.v; exports.UPDATE_INTL_MESSAGES = _chunkSE3D4DHAcjs.aa; exports.UPDATE_LOAD_OPTIONS = _chunkSE3D4DHAcjs.hb; exports.UPDATE_OR_CREATE_COOKIES = _chunkSE3D4DHAcjs.Xa; exports.UPDATE_OR_CREATE_DATA_POINT = _chunkSE3D4DHAcjs.f; exports.UPDATE_POLICIES = _chunkSE3D4DHAcjs.V; exports.UPDATE_PRIVACY_CENTER = _chunkSE3D4DHAcjs.Cb; exports.UPDATE_PRIVACY_REQUEST = _chunkSE3D4DHAcjs.Z; exports.UPDATE_PROCESSING_ACTIVITIES = _chunkSE3D4DHAcjs.$b; exports.UPDATE_PROCESSING_PURPOSE_SUB_CATEGORIES = _chunkSE3D4DHAcjs.Yb; exports.UPDATE_PROMPTS = _chunkSE3D4DHAcjs.oa; exports.UPDATE_PROMPT_GROUPS = _chunkSE3D4DHAcjs.sa; exports.UPDATE_PROMPT_PARTIALS = _chunkSE3D4DHAcjs.qa; exports.UPDATE_REPOSITORIES = _chunkSE3D4DHAcjs.B; exports.UPDATE_SOFTWARE_DEVELOPMENT_KITS = _chunkSE3D4DHAcjs.O; exports.UPDATE_TEAM = _chunkSE3D4DHAcjs.Aa; exports.UPDATE_VENDORS = _chunkSE3D4DHAcjs.Sb; exports.USERS = _chunkSE3D4DHAcjs.Da; exports.USP_STRING_REGEX = _chunkNDHQBERAcjs.b; exports.VARIABLE_PARAMETERS_NAME = _chunkRE5YALEOcjs.b; exports.VARIABLE_PARAMETERS_REGEXP = _chunkRE5YALEOcjs.a; exports.VENDORS = _chunkSE3D4DHAcjs.Qb; exports.VendorInput = _chunk5UBGZNDCcjs.p; exports.WebhookHeader = _chunk5UBGZNDCcjs.b; exports.addDaysUtc = _chunkSE3D4DHAcjs.jg; exports.addMessagesToPromptRun = _chunkSE3D4DHAcjs.uc; exports.addMs = _chunkSE3D4DHAcjs.ig; exports.appendCsvSync = _chunkSE3D4DHAcjs.lg; exports.approvePrivacyRequests = _chunkSE3D4DHAcjs.Cf; exports.assumeRole = _chunkSE3D4DHAcjs.Kd; exports.buildAIIntegrationType = _chunkLCDYXJN6cjs.b; exports.buildEnabledRouteType = _chunkLCDYXJN6cjs.a; exports.buildTranscendGraphQLClient = _chunkSE3D4DHAcjs.wc; exports.buildTranscendGraphQLClientGeneric = _chunkSE3D4DHAcjs.vc; exports.buildXdiSyncEndpoint = _chunk3R32U46Ucjs.g; exports.bulkRestartRequests = _chunkSE3D4DHAcjs.Kf; exports.bulkRetryEnrichers = _chunkSE3D4DHAcjs.Mf; exports.cancelPrivacyRequests = _chunkSE3D4DHAcjs.Ff; exports.clampPageSize = _chunkSE3D4DHAcjs.fg; exports.collectParquetFilesOrExit = _chunkSE3D4DHAcjs.bg; exports.consentManagersToBusinessEntities = _chunk3R32U46Ucjs.h; exports.convertToDataSubjectAllowlist = _chunkSE3D4DHAcjs.yd; exports.convertToDataSubjectBlockList = _chunkSE3D4DHAcjs.xd; exports.createActionItemCollection = _chunkSE3D4DHAcjs.le; exports.createActionItems = _chunkSE3D4DHAcjs.oe; exports.createAgent = _chunkSE3D4DHAcjs.xe; exports.createAgentFile = _chunkSE3D4DHAcjs.re; exports.createAgentFunction = _chunkSE3D4DHAcjs.ue; exports.createApiKey = _chunkSE3D4DHAcjs.Ld; exports.createBusinessEntity = _chunkSE3D4DHAcjs.Be; exports.createCodePackage = _chunkSE3D4DHAcjs.Ke; exports.createConsentToken = _chunkNDHQBERAcjs.a; exports.createDataCategory = _chunkSE3D4DHAcjs.Re; exports.createDataFlows = _chunkSE3D4DHAcjs.Ve; exports.createPreferenceAccessTokens = _chunkSE3D4DHAcjs.Jc; exports.createProcessingPurpose = _chunkSE3D4DHAcjs.df; exports.createPrompt = _chunkSE3D4DHAcjs.gf; exports.createRegexForTag = j; exports.createRepository = _chunkSE3D4DHAcjs.He; exports.createSoftwareDevelopmentKit = _chunkSE3D4DHAcjs.Ee; exports.createSombraGotInstance = _chunkSE3D4DHAcjs.xc; exports.createTranscendConsentGotInstance = _chunkSE3D4DHAcjs.yc; exports.createVendor = _chunkSE3D4DHAcjs.jf; exports.defineTranscendPrompts = Wm; exports.deleteApiKey = _chunkSE3D4DHAcjs.Md; exports.deployConsentManager = _chunkSE3D4DHAcjs.zc; exports.description = _chunk72KHFLMFcjs.l; exports.domainToHost = _chunk3R32U46Ucjs.e; exports.downloadPrivacyRequestFiles = _chunkSE3D4DHAcjs.zf; exports.enrichPrivacyRequest = _chunkBXWDS6YNcjs.c; exports.ensureAllDataSubjectsExist = _chunkSE3D4DHAcjs.wd; exports.extractClientError = _chunkSE3D4DHAcjs.Hf; exports.extractErrorMessage = _chunkSE3D4DHAcjs.Wf; exports.fetchActiveSiloDiscoPlugin = _chunkSE3D4DHAcjs.Bc; exports.fetchAllActionItems = _chunkSE3D4DHAcjs.Cc; exports.fetchAllActions = _chunkSE3D4DHAcjs.Dc; exports.fetchAllAgentFiles = _chunkSE3D4DHAcjs.Ec; exports.fetchAllAgentFunctions = _chunkSE3D4DHAcjs.Fc; exports.fetchAllAgents = _chunkSE3D4DHAcjs.Gc; exports.fetchAllApiKeys = _chunkSE3D4DHAcjs.rd; exports.fetchAllAssessmentTemplates = _chunkSE3D4DHAcjs.Ic; exports.fetchAllAssessments = _chunkSE3D4DHAcjs.Hc; exports.fetchAllAttributeValues = _chunkSE3D4DHAcjs.Lc; exports.fetchAllAttributes = _chunkSE3D4DHAcjs.Nc; exports.fetchAllBusinessEntities = _chunkSE3D4DHAcjs.Oc; exports.fetchAllCatalogs = _chunkSE3D4DHAcjs.td; exports.fetchAllCookies = _chunkSE3D4DHAcjs.Vc; exports.fetchAllDataCategories = _chunkSE3D4DHAcjs.Wc; exports.fetchAllDataFlows = _chunkSE3D4DHAcjs.Xc; exports.fetchAllDataPoints = _chunkSE3D4DHAcjs.Xd; exports.fetchAllDataSilos = _chunkSE3D4DHAcjs.Vd; exports.fetchAllDataSubjects = _chunkSE3D4DHAcjs.vd; exports.fetchAllEnrichers = _chunkSE3D4DHAcjs.$d; exports.fetchAllIdentifiers = _chunkSE3D4DHAcjs.qg; exports.fetchAllMessages = _chunkSE3D4DHAcjs.Yc; exports.fetchAllPolicies = _chunkSE3D4DHAcjs.$c; exports.fetchAllPreferenceTopics = _chunkSE3D4DHAcjs.bd; exports.fetchAllPrivacyCenters = _chunkSE3D4DHAcjs.cd; exports.fetchAllProcessingActivities = _chunkSE3D4DHAcjs.dd; exports.fetchAllProcessingPurposes = _chunkSE3D4DHAcjs.ed; exports.fetchAllPromptGroups = _chunkSE3D4DHAcjs.zd; exports.fetchAllPromptPartials = _chunkSE3D4DHAcjs.Ad; exports.fetchAllPromptThreads = _chunkSE3D4DHAcjs.Dd; exports.fetchAllPrompts = _chunkSE3D4DHAcjs.Bd; exports.fetchAllPurposes = _chunkSE3D4DHAcjs.fd; exports.fetchAllPurposesAndPreferences = _chunkSE3D4DHAcjs.gd; exports.fetchAllRequestAttributeKeys = _chunkSE3D4DHAcjs.Kc; exports.fetchAllRequestEnrichers = _chunkSE3D4DHAcjs.hd; exports.fetchAllRequestIdentifierMetadata = _chunkSE3D4DHAcjs.id; exports.fetchAllRequestIdentifiers = _chunkSE3D4DHAcjs.kd; exports.fetchAllRequests = _chunkSE3D4DHAcjs.nd; exports.fetchAllSubDataPoints = _chunkSE3D4DHAcjs.Wd; exports.fetchAllTeams = _chunkSE3D4DHAcjs.od; exports.fetchAllTemplates = _chunkSE3D4DHAcjs.be; exports.fetchAllUsers = _chunkSE3D4DHAcjs.pd; exports.fetchAllVendors = _chunkSE3D4DHAcjs.qd; exports.fetchAndIndexCatalogs = _chunkSE3D4DHAcjs.ud; exports.fetchApiKeys = _chunkSE3D4DHAcjs.sd; exports.fetchConsentManager = _chunkSE3D4DHAcjs.Pc; exports.fetchConsentManagerAnalyticsData = _chunkSE3D4DHAcjs.Tc; exports.fetchConsentManagerExperiences = _chunkSE3D4DHAcjs.Rc; exports.fetchConsentManagerId = _chunkSE3D4DHAcjs.Qc; exports.fetchConsentManagerTheme = _chunkSE3D4DHAcjs.Uc; exports.fetchEnrichedDataSilos = _chunkSE3D4DHAcjs.Yd; exports.fetchIdentifiersAndCreateMissing = _chunkSE3D4DHAcjs.rg; exports.fetchPartitions = _chunkSE3D4DHAcjs.de; exports.fetchPrivacyCenterId = _chunkSE3D4DHAcjs._c; exports.fetchPrivacyCenterUrl = _chunkSE3D4DHAcjs.Zc; exports.fetchPromptsWithVariables = _chunkSE3D4DHAcjs.Cd; exports.fetchRequestDataSilo = _chunkSE3D4DHAcjs.Gd; exports.fetchRequestDataSiloActiveCount = _chunkSE3D4DHAcjs.Hd; exports.fetchRequestDataSilos = _chunkSE3D4DHAcjs.Fd; exports.fetchRequestDataSilosCount = _chunkSE3D4DHAcjs.Ed; exports.fetchRequestFilesForRequest = _chunkSE3D4DHAcjs.Id; exports.filterNullishValuesFromObject = Ym; exports.filterRows = _chunkSE3D4DHAcjs.tc; exports.formatAttributeValues = _chunkSE3D4DHAcjs.ad; exports.fuzzyMatchColumns = _chunkSE3D4DHAcjs.mc; exports.fuzzySearch = _chunkSE3D4DHAcjs.lc; exports.generateCrossAccountApiKeys = _chunk5YELAKPFcjs.a; exports.getErrorStatus = _chunkSE3D4DHAcjs.Vf; exports.getFileMetadataForPrivacyRequests = _chunkSE3D4DHAcjs.xf; exports.getGitFilesThatChanged = sc; exports.getUniqueValuesForColumn = _chunkSE3D4DHAcjs.sc; exports.inquirerAutoComplete = _chunkSE3D4DHAcjs.Tf; exports.inquirerConfirmBoolean = _chunkSE3D4DHAcjs.Rf; exports.inquirerConfirmText = _chunkSE3D4DHAcjs.Sf; exports.limitRecords = _chunkSE3D4DHAcjs._f; exports.listDirectories = _chunk5YELAKPFcjs.d; exports.listFiles = _chunk5YELAKPFcjs.c; exports.loginUser = _chunkSE3D4DHAcjs.Jd; exports.makeGraphQLRequest = _chunkSE3D4DHAcjs.pg; exports.mapColumnsToAttributes = _chunkSE3D4DHAcjs.Gf; exports.mapColumnsToIdentifiers = _chunkSE3D4DHAcjs.Ef; exports.mapCsvColumnsToApi = _chunkSE3D4DHAcjs.of; exports.mapCsvRowsToRequestInputs = _chunkSE3D4DHAcjs.tf; exports.mapEnumValues = _chunkSE3D4DHAcjs.nc; exports.mapRequestEnumValues = _chunkSE3D4DHAcjs.pf; exports.markCronIdentifierCompleted = _chunkJI7R6PYDcjs.d; exports.markRequestDataSiloIdsCompleted = _chunkJI7R6PYDcjs.f; exports.markSilentPrivacyRequests = _chunkSE3D4DHAcjs.nf; exports.mergeTranscendInputs = _chunkIBTP5OXEcjs.a; exports.name = _chunk72KHFLMFcjs.n; exports.normalizeIdentifierValue = _chunkSE3D4DHAcjs.sf; exports.notifyPrivacyRequestsAdditionalTime = _chunkSE3D4DHAcjs.Df; exports.parquetToCsvOneFile = _chunkSE3D4DHAcjs.cg; exports.parseAssessmentDisplayLogic = _chunkSE3D4DHAcjs.Sd; exports.parseAssessmentRiskLogic = _chunkSE3D4DHAcjs.Ud; exports.parseAttributesFromString = _chunkSE3D4DHAcjs.qc; exports.parseFilePath = _chunkSE3D4DHAcjs.ng; exports.parseVariablesFromString = _chunkSE3D4DHAcjs.Uf; exports.pullAllDatapoints = _chunkPTAFCUJKcjs.a; exports.pullChunkedCustomSiloOutstandingIdentifiers = _chunkJI7R6PYDcjs.g; exports.pullConsentManagerMetrics = _chunk3R32U46Ucjs.d; exports.pullCronPageOfIdentifiers = _chunkJI7R6PYDcjs.b; exports.pullManualEnrichmentIdentifiersToCsv = _chunkBXWDS6YNcjs.a; exports.pullPrivacyRequests = _chunkSE3D4DHAcjs.Of; exports.pullTranscendConfiguration = _chunkSE3D4DHAcjs.ge; exports.pullUnstructuredSubDataPointRecommendations = _chunkPTAFCUJKcjs.b; exports.pushCronIdentifiersFromCsv = _chunkJI7R6PYDcjs.e; exports.pushManualEnrichmentIdentifiersFromCsv = _chunkBXWDS6YNcjs.d; exports.readCsv = _chunkSE3D4DHAcjs.rc; exports.readSafe = _chunkSE3D4DHAcjs.ag; exports.readTranscendYaml = _chunkRE5YALEOcjs.d; exports.removeLinks = Km; exports.removeUnverifiedRequestIdentifiers = _chunkSE3D4DHAcjs.Qf; exports.replaceVariablesInYaml = _chunkRE5YALEOcjs.c; exports.reportPromptRun = _chunkSE3D4DHAcjs.he; exports.restartPrivacyRequest = _chunkSE3D4DHAcjs.Jf; exports.retryRequestDataSilos = _chunkSE3D4DHAcjs.Nf; exports.retryRequestEnricher = _chunkSE3D4DHAcjs.ie; exports.retrySamePromise = _chunkSE3D4DHAcjs.Zf; exports.setResourceAttributes = _chunkSE3D4DHAcjs.je; exports.skipPreflightJobs = _chunkSE3D4DHAcjs.Lf; exports.skipRequestDataSilos = _chunkSE3D4DHAcjs.Pf; exports.sleepPromise = _chunkSE3D4DHAcjs.Xf; exports.splitCsvToList = _chunkSE3D4DHAcjs.oc; exports.splitInHalf = _chunkSE3D4DHAcjs.Yf; exports.startOfHour = _chunkSE3D4DHAcjs.hg; exports.startOfUtcDay = _chunkSE3D4DHAcjs.gg; exports.streamPrivacyRequestFiles = _chunkSE3D4DHAcjs.yf; exports.submitPrivacyRequest = _chunkSE3D4DHAcjs.Bf; exports.syncAction = _chunkSE3D4DHAcjs.ke; exports.syncActionItemCollections = _chunkSE3D4DHAcjs.ne; exports.syncActionItems = _chunkSE3D4DHAcjs.qe; exports.syncAgentFiles = _chunkSE3D4DHAcjs.te; exports.syncAgentFunctions = _chunkSE3D4DHAcjs.we; exports.syncAgents = _chunkSE3D4DHAcjs.ze; exports.syncAttribute = _chunkSE3D4DHAcjs.Ae; exports.syncBusinessEntities = _chunkSE3D4DHAcjs.De; exports.syncCodePackages = _chunkSE3D4DHAcjs.Me; exports.syncConfigurationToTranscend = _chunkSE3D4DHAcjs.sg; exports.syncConsentManager = _chunkSE3D4DHAcjs.Oe; exports.syncConsentManagerExperiences = _chunkSE3D4DHAcjs.Ne; exports.syncCookies = _chunkSE3D4DHAcjs.Qe; exports.syncDataCategories = _chunkSE3D4DHAcjs.Te; exports.syncDataFlows = _chunkSE3D4DHAcjs.We; exports.syncDataSiloDependencies = _chunkSE3D4DHAcjs._d; exports.syncDataSilos = _chunkSE3D4DHAcjs.Zd; exports.syncDataSubject = _chunkSE3D4DHAcjs.Xe; exports.syncEnricher = _chunkSE3D4DHAcjs.ae; exports.syncIdentifier = _chunkSE3D4DHAcjs.Ye; exports.syncIntlMessages = _chunkSE3D4DHAcjs._e; exports.syncPartitions = _chunkSE3D4DHAcjs.ee; exports.syncPolicies = _chunkSE3D4DHAcjs.af; exports.syncPrivacyCenter = _chunkSE3D4DHAcjs.bf; exports.syncProcessingActivities = _chunkSE3D4DHAcjs.cf; exports.syncProcessingPurposes = _chunkSE3D4DHAcjs.ff; exports.syncPrompts = _chunkSE3D4DHAcjs.if; exports.syncRepositories = _chunkSE3D4DHAcjs.Je; exports.syncSoftwareDevelopmentKits = _chunkSE3D4DHAcjs.Ge; exports.syncTemplate = _chunkSE3D4DHAcjs.ce; exports.syncVendors = _chunkSE3D4DHAcjs.lf; exports.updateActionItem = _chunkSE3D4DHAcjs.pe; exports.updateActionItemCollection = _chunkSE3D4DHAcjs.me; exports.updateAgentFiles = _chunkSE3D4DHAcjs.se; exports.updateAgentFunctions = _chunkSE3D4DHAcjs.ve; exports.updateAgents = _chunkSE3D4DHAcjs.ye; exports.updateBusinessEntities = _chunkSE3D4DHAcjs.Ce; exports.updateCodePackages = _chunkSE3D4DHAcjs.Le; exports.updateConsentManagerToLatest = _chunkSE3D4DHAcjs.Ac; exports.updateConsentManagerVersionToLatest = _chunk3R32U46Ucjs.a; exports.updateDataCategories = _chunkSE3D4DHAcjs.Se; exports.updateDataFlows = _chunkSE3D4DHAcjs.Ue; exports.updateIntlMessages = _chunkSE3D4DHAcjs.Ze; exports.updateOrCreateCookies = _chunkSE3D4DHAcjs.Pe; exports.updatePolicies = _chunkSE3D4DHAcjs.$e; exports.updateProcessingPurposes = _chunkSE3D4DHAcjs.ef; exports.updatePrompts = _chunkSE3D4DHAcjs.hf; exports.updateRepositories = _chunkSE3D4DHAcjs.Ie; exports.updateSoftwareDevelopmentKits = _chunkSE3D4DHAcjs.Fe; exports.updateVendors = _chunkSE3D4DHAcjs.kf; exports.uploadConsents = _chunkNDHQBERAcjs.d; exports.uploadCookiesFromCsv = _chunk3R32U46Ucjs.c; exports.uploadDataFlowsFromCsv = _chunk3R32U46Ucjs.b; exports.uploadPrivacyRequestsFromCsv = _chunkSE3D4DHAcjs.If; exports.uploadSiloDiscoveryResults = _chunkSE3D4DHAcjs.mf; exports.validateTranscendAuth = _chunk5YELAKPFcjs.b; exports.version = _chunk72KHFLMFcjs.m; exports.writeCsv = _chunkSE3D4DHAcjs.mg; exports.writeCsvSync = _chunkSE3D4DHAcjs.kg; exports.writeLargeCsv = _chunkSE3D4DHAcjs.og; exports.writeTranscendYaml = _chunkRE5YALEOcjs.e;
|
|
5
5
|
//# sourceMappingURL=index.cjs.map
|