@transcend-io/cli 8.26.3 → 8.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- 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-IXJG6NAC.cjs → chunk-4PQ4RHUG.cjs} +4 -4
- package/dist/{chunk-IXJG6NAC.cjs.map → chunk-4PQ4RHUG.cjs.map} +1 -1
- package/dist/{chunk-PZLVJBQM.cjs → chunk-7PF5VVAF.cjs} +2 -2
- package/dist/{chunk-PZLVJBQM.cjs.map → chunk-7PF5VVAF.cjs.map} +1 -1
- package/dist/{chunk-4LHXA6MV.cjs → chunk-AEL3DOYI.cjs} +2 -2
- package/dist/{chunk-4LHXA6MV.cjs.map → chunk-AEL3DOYI.cjs.map} +1 -1
- package/dist/{chunk-YPUEGXPW.cjs → chunk-CQT5QQ3U.cjs} +2 -2
- package/dist/{chunk-YPUEGXPW.cjs.map → chunk-CQT5QQ3U.cjs.map} +1 -1
- package/dist/{chunk-5UBGZNDC.cjs → chunk-ECGHWDVP.cjs} +2 -2
- package/dist/chunk-ECGHWDVP.cjs.map +1 -0
- package/dist/{chunk-MGIVF74Z.cjs → chunk-EYOQLGDV.cjs} +2 -2
- package/dist/{chunk-MGIVF74Z.cjs.map → chunk-EYOQLGDV.cjs.map} +1 -1
- package/dist/{chunk-HPU3KPV4.cjs → chunk-FER7XKVN.cjs} +2 -2
- package/dist/{chunk-HPU3KPV4.cjs.map → chunk-FER7XKVN.cjs.map} +1 -1
- package/dist/{chunk-SBCX6SDE.cjs → chunk-I7PFP5VB.cjs} +2 -2
- package/dist/{chunk-SBCX6SDE.cjs.map → chunk-I7PFP5VB.cjs.map} +1 -1
- package/dist/{chunk-RE5YALEO.cjs → chunk-JFZPP4VV.cjs} +3 -3
- package/dist/{chunk-RE5YALEO.cjs.map → chunk-JFZPP4VV.cjs.map} +1 -1
- package/dist/{chunk-UAO3IAO3.cjs → chunk-K4TIJ3VM.cjs} +2 -2
- package/dist/{chunk-UAO3IAO3.cjs.map → chunk-K4TIJ3VM.cjs.map} +1 -1
- package/dist/{chunk-X6CJEYOA.cjs → chunk-KUBXRT3V.cjs} +5 -4
- package/dist/chunk-KUBXRT3V.cjs.map +1 -0
- package/dist/{chunk-ZOVKGQJQ.cjs → chunk-L7Z4PFRC.cjs} +2 -2
- package/dist/{chunk-ZOVKGQJQ.cjs.map → chunk-L7Z4PFRC.cjs.map} +1 -1
- package/dist/{chunk-PP4YLOQE.cjs → chunk-RNZ72QMS.cjs} +2 -2
- package/dist/{chunk-PP4YLOQE.cjs.map → chunk-RNZ72QMS.cjs.map} +1 -1
- package/dist/{chunk-LMUWS7HI.cjs → chunk-THOOR2KA.cjs} +4 -4
- package/dist/{chunk-LMUWS7HI.cjs.map → chunk-THOOR2KA.cjs.map} +1 -1
- package/dist/{chunk-S5MX7XJL.cjs → chunk-Y35YHYXP.cjs} +21 -21
- package/dist/{chunk-S5MX7XJL.cjs.map → chunk-Y35YHYXP.cjs.map} +1 -1
- package/dist/{chunk-EBEILTRR.cjs → chunk-YKGS253B.cjs} +6 -6
- package/dist/{chunk-EBEILTRR.cjs.map → chunk-YKGS253B.cjs.map} +1 -1
- package/dist/{impl-XW4UTUBW.cjs → impl-3YAJ7ZV3.cjs} +2 -2
- package/dist/{impl-XW4UTUBW.cjs.map → impl-3YAJ7ZV3.cjs.map} +1 -1
- package/dist/{impl-UHCILICE.cjs → impl-55NL4KOI.cjs} +2 -2
- package/dist/{impl-UHCILICE.cjs.map → impl-55NL4KOI.cjs.map} +1 -1
- package/dist/{impl-NAITRZS5.cjs → impl-7B7QDZZJ.cjs} +2 -2
- package/dist/{impl-NAITRZS5.cjs.map → impl-7B7QDZZJ.cjs.map} +1 -1
- package/dist/{impl-ZAKD7OF2.cjs → impl-A6W2KTYL.cjs} +2 -2
- package/dist/{impl-ZAKD7OF2.cjs.map → impl-A6W2KTYL.cjs.map} +1 -1
- package/dist/{impl-MNMSXIYH.cjs → impl-ALROZNDJ.cjs} +2 -2
- package/dist/{impl-MNMSXIYH.cjs.map → impl-ALROZNDJ.cjs.map} +1 -1
- package/dist/{impl-65UAYE4Y.cjs → impl-ANXIZT7S.cjs} +2 -2
- package/dist/{impl-65UAYE4Y.cjs.map → impl-ANXIZT7S.cjs.map} +1 -1
- package/dist/{impl-RIR5ANXH.cjs → impl-AP2ZTYJK.cjs} +2 -2
- package/dist/{impl-RIR5ANXH.cjs.map → impl-AP2ZTYJK.cjs.map} +1 -1
- package/dist/{impl-HNW6B2DU.cjs → impl-AZYBYV3X.cjs} +2 -2
- package/dist/{impl-HNW6B2DU.cjs.map → impl-AZYBYV3X.cjs.map} +1 -1
- package/dist/impl-B7ODYIUX.cjs +2 -0
- package/dist/{impl-6DHYOTA2.cjs.map → impl-B7ODYIUX.cjs.map} +1 -1
- package/dist/{impl-TNSZ6LTO.cjs → impl-BDPD5CCN.cjs} +2 -2
- package/dist/{impl-TNSZ6LTO.cjs.map → impl-BDPD5CCN.cjs.map} +1 -1
- package/dist/{impl-3BHV7STJ.cjs → impl-BL4XQEFX.cjs} +2 -2
- package/dist/{impl-3BHV7STJ.cjs.map → impl-BL4XQEFX.cjs.map} +1 -1
- package/dist/{impl-JBFNOZXK.cjs → impl-D7R3HZEC.cjs} +5 -5
- package/dist/{impl-JBFNOZXK.cjs.map → impl-D7R3HZEC.cjs.map} +1 -1
- package/dist/{impl-WTLPP6WJ.cjs → impl-DDQQGOQ3.cjs} +2 -2
- package/dist/{impl-WTLPP6WJ.cjs.map → impl-DDQQGOQ3.cjs.map} +1 -1
- package/dist/{impl-5FLGACAD.cjs → impl-DT5KLE2G.cjs} +3 -3
- package/dist/{impl-5FLGACAD.cjs.map → impl-DT5KLE2G.cjs.map} +1 -1
- package/dist/{impl-PBEQHLIJ.cjs → impl-DVE332P5.cjs} +2 -2
- package/dist/{impl-PBEQHLIJ.cjs.map → impl-DVE332P5.cjs.map} +1 -1
- package/dist/{impl-Z5MFXC4Y.cjs → impl-DXAKJNLZ.cjs} +2 -2
- package/dist/{impl-Z5MFXC4Y.cjs.map → impl-DXAKJNLZ.cjs.map} +1 -1
- package/dist/{impl-BFSDPXDV.cjs → impl-H2BRV4GP.cjs} +2 -2
- package/dist/{impl-BFSDPXDV.cjs.map → impl-H2BRV4GP.cjs.map} +1 -1
- package/dist/{impl-CSTT5HQH.cjs → impl-IFDUZGZM.cjs} +2 -2
- package/dist/{impl-CSTT5HQH.cjs.map → impl-IFDUZGZM.cjs.map} +1 -1
- package/dist/{impl-KAWZ42M5.cjs → impl-IIIT5MSV.cjs} +2 -2
- package/dist/{impl-KAWZ42M5.cjs.map → impl-IIIT5MSV.cjs.map} +1 -1
- package/dist/{impl-5K2UCOJJ.cjs → impl-JPVEFSJB.cjs} +2 -2
- package/dist/{impl-5K2UCOJJ.cjs.map → impl-JPVEFSJB.cjs.map} +1 -1
- package/dist/{impl-LVHX32GS.cjs → impl-LDOILOAQ.cjs} +2 -2
- package/dist/{impl-LVHX32GS.cjs.map → impl-LDOILOAQ.cjs.map} +1 -1
- package/dist/{impl-6YB36EZH.cjs → impl-LKJFVX7E.cjs} +2 -2
- package/dist/{impl-6YB36EZH.cjs.map → impl-LKJFVX7E.cjs.map} +1 -1
- package/dist/{impl-3DHFXZRO.cjs → impl-LQEYNOZS.cjs} +2 -2
- package/dist/{impl-3DHFXZRO.cjs.map → impl-LQEYNOZS.cjs.map} +1 -1
- package/dist/{impl-WP2EKZ6C.cjs → impl-M5QGTDLF.cjs} +2 -2
- package/dist/{impl-WP2EKZ6C.cjs.map → impl-M5QGTDLF.cjs.map} +1 -1
- package/dist/{impl-BJRSLU3V.cjs → impl-MBEVWSPX.cjs} +2 -2
- package/dist/{impl-BJRSLU3V.cjs.map → impl-MBEVWSPX.cjs.map} +1 -1
- package/dist/{impl-F4B6PYAE.cjs → impl-NCUMPL6B.cjs} +4 -4
- package/dist/{impl-F4B6PYAE.cjs.map → impl-NCUMPL6B.cjs.map} +1 -1
- package/dist/{impl-DHAB5PO6.cjs → impl-NISL4HZY.cjs} +2 -2
- package/dist/{impl-DHAB5PO6.cjs.map → impl-NISL4HZY.cjs.map} +1 -1
- package/dist/{impl-KWAOGILY.cjs → impl-OFRMKTX5.cjs} +2 -2
- package/dist/{impl-KWAOGILY.cjs.map → impl-OFRMKTX5.cjs.map} +1 -1
- package/dist/impl-PE52QYSI.cjs +2 -0
- package/dist/{impl-5G2I4YXV.cjs.map → impl-PE52QYSI.cjs.map} +1 -1
- package/dist/{impl-ZJFIQ3WO.cjs → impl-PXT7QNSR.cjs} +2 -2
- package/dist/{impl-ZJFIQ3WO.cjs.map → impl-PXT7QNSR.cjs.map} +1 -1
- package/dist/{impl-N7KXTUQ5.cjs → impl-SDQ6LUZD.cjs} +2 -2
- package/dist/{impl-N7KXTUQ5.cjs.map → impl-SDQ6LUZD.cjs.map} +1 -1
- package/dist/{impl-HFNH2244.cjs → impl-SVEK74IU.cjs} +2 -2
- package/dist/{impl-HFNH2244.cjs.map → impl-SVEK74IU.cjs.map} +1 -1
- package/dist/{impl-3WNATSXH.cjs → impl-SVPD3IHV.cjs} +2 -2
- package/dist/{impl-3WNATSXH.cjs.map → impl-SVPD3IHV.cjs.map} +1 -1
- package/dist/{impl-AH7B2B24.cjs → impl-UC5CCT6E.cjs} +3 -3
- package/dist/{impl-AH7B2B24.cjs.map → impl-UC5CCT6E.cjs.map} +1 -1
- package/dist/{impl-ZBPQU55V.cjs → impl-UZPP5VK5.cjs} +2 -2
- package/dist/{impl-ZBPQU55V.cjs.map → impl-UZPP5VK5.cjs.map} +1 -1
- package/dist/{impl-72IBK3I6.cjs → impl-VZ6NJDAV.cjs} +2 -2
- package/dist/{impl-72IBK3I6.cjs.map → impl-VZ6NJDAV.cjs.map} +1 -1
- package/dist/{impl-IG2OR2JL.cjs → impl-W35DMTQV.cjs} +2 -2
- package/dist/{impl-IG2OR2JL.cjs.map → impl-W35DMTQV.cjs.map} +1 -1
- package/dist/{impl-QUYKNAFP.cjs → impl-XHO6WQ2I.cjs} +2 -2
- package/dist/{impl-QUYKNAFP.cjs.map → impl-XHO6WQ2I.cjs.map} +1 -1
- package/dist/{impl-V2RBWUPL.cjs → impl-YHBNKYSL.cjs} +2 -2
- package/dist/{impl-V2RBWUPL.cjs.map → impl-YHBNKYSL.cjs.map} +1 -1
- package/dist/{impl-O7I2KRJ7.cjs → impl-YJ6UUT4D.cjs} +2 -2
- package/dist/{impl-O7I2KRJ7.cjs.map → impl-YJ6UUT4D.cjs.map} +1 -1
- package/dist/{impl-TXK727IK.cjs → impl-YWJCIRTP.cjs} +2 -2
- package/dist/{impl-TXK727IK.cjs.map → impl-YWJCIRTP.cjs.map} +1 -1
- package/dist/{impl-K6XHDMZZ.cjs → impl-ZTZHVQYY.cjs} +2 -2
- package/dist/{impl-K6XHDMZZ.cjs.map → impl-ZTZHVQYY.cjs.map} +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.d.cts +18 -1
- package/package.json +3 -3
- package/dist/chunk-5UBGZNDC.cjs.map +0 -1
- package/dist/chunk-X6CJEYOA.cjs.map +0 -1
- package/dist/impl-5G2I4YXV.cjs +0 -2
- package/dist/impl-6DHYOTA2.cjs +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/cli/cli/dist/chunk-PZLVJBQM.cjs","../src/lib/code-scanning/integrations/cocoaPods.ts","../src/lib/code-scanning/integrations/gradle.ts","../src/lib/code-scanning/integrations/pubspec.ts","../src/lib/code-scanning/integrations/kotlin.ts"],"names":["POD_TARGET_REGEX","POD_PACKAGE_REGEX","cocoaPods","filePath","fileContents","readFileSync","targets","findAllWithRegex","packages","target","ind","CodePackageType","pkg","GRADLE_IMPLEMENTATION_REGEX","GRADLE_PLUGIN_REGEX","GRADLE_IMPLEMENTATION_GROUP_REGEX","GRADLE_APPLICATION_NAME_REGEX","gradle","directory","dirname","targetPlugins","targetG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,CAAAA,CAA+B,GAAG,CAAA,CACpD,OAAA,CAAS,CAAC,OAAA,CAAS,MAAM,CAC3B,CAAA,CACAZ,CACF,CAAA,CACA,EAAA,CAAIkB,CAAAA,CAAa,MAAA,CAAS,CAAA,CACxB,MAAM,IAAI,KAAA,CAAM,CAAA,0CAAA,EAA6CnB,CAAQ,CAAA,CAAA;AC/CjE;AC3BD","file":"/home/runner/work/cli/cli/dist/chunk-PZLVJBQM.cjs","sourcesContent":[null,"import { readFileSync } from 'node:fs';\nimport { CodeScanningConfig } from '../types';\nimport { CodePackageSdk } from '../../../codecs';\nimport { findAllWithRegex } from '@transcend-io/type-utils';\nimport { CodePackageType } from '@transcend-io/privacy-types';\n\nconst POD_TARGET_REGEX = /target ('|\")(.*?)('|\")/;\nconst POD_PACKAGE_REGEX = /pod ('|\")(.*?)('|\")(, ('|\")~> (.+?)('|\")|)/;\n\nexport const cocoaPods: CodeScanningConfig = {\n supportedFiles: ['Podfile'],\n ignoreDirs: ['Pods'],\n scanFunction: (filePath) => {\n const fileContents = readFileSync(filePath, 'utf-8');\n\n const targets = findAllWithRegex(\n {\n value: new RegExp(POD_TARGET_REGEX, 'g'),\n matches: ['quote1', 'name', 'quote2'],\n },\n fileContents,\n );\n const packages = findAllWithRegex(\n {\n value: new RegExp(POD_PACKAGE_REGEX, 'g'),\n matches: [\n 'quote1',\n 'name',\n 'quote2',\n 'extra',\n 'quote3',\n 'version',\n 'quote4',\n ],\n },\n fileContents,\n );\n\n const deps: CodePackageSdk[] = targets.map((target, ind) => ({\n name: target.name,\n type: CodePackageType.CocoaPods,\n softwareDevelopmentKits: packages\n .filter(\n (pkg) =>\n pkg.matchIndex > target.matchIndex &&\n (!targets[ind + 1] || pkg.matchIndex < targets[ind + 1].matchIndex),\n )\n .map((pkg) => ({\n name: pkg.name,\n version: pkg.version,\n })),\n }));\n\n return deps;\n },\n};\n","import { readFileSync } from 'node:fs';\nimport { CodeScanningConfig } from '../types';\nimport { findAllWithRegex } from '@transcend-io/type-utils';\nimport { dirname } from 'node:path';\n\nconst GRADLE_IMPLEMENTATION_REGEX =\n /implementation( *)('|\")(.+?):(.+?):(.+?|)('|\")/;\nconst GRADLE_PLUGIN_REGEX = /apply plugin: *('|\")(.+?)(:(.+?)|)('|\")/;\nconst GRADLE_IMPLEMENTATION_GROUP_REGEX =\n /implementation group:( *)('|\")(.+?)('|\"),( *)name:( *)('|\")(.+?)('|\"),( *)version:( *)('|\")(.+?)('|\")/;\nconst GRADLE_APPLICATION_NAME_REGEX = /applicationId( *)\"(.+?)\"/;\n\n/**\n * So far, there are three ways of defining dependencies that is supported\n * implementation group: 'org.eclipse.jdt', name: 'org.eclipse.jdt.core', version: '3.28.0'\n * or\n * implementation 'com.google.firebase:firebase-analytics:18.0.0'\n * or\n * apply plugin: 'com.google.gms.google-services'\n *\n * single and double quotes are both recognized\n */\nexport const gradle: CodeScanningConfig = {\n supportedFiles: ['build.gradle**'],\n ignoreDirs: [\n 'gradle-app.setting',\n 'gradle-wrapper.jar',\n 'gradle-wrapper.properties',\n ],\n scanFunction: (filePath) => {\n const fileContents = readFileSync(filePath, 'utf-8');\n const directory = dirname(filePath);\n\n const targets = findAllWithRegex(\n {\n value: new RegExp(GRADLE_IMPLEMENTATION_REGEX, 'g'),\n matches: ['space', 'quote1', 'name', 'path', 'version', 'quote2'],\n },\n fileContents,\n );\n const targetPlugins = findAllWithRegex(\n {\n value: new RegExp(GRADLE_PLUGIN_REGEX, 'g'),\n matches: ['quote1', 'name', 'group', 'version', 'quote2'],\n },\n fileContents,\n );\n const targetGroups = findAllWithRegex(\n {\n value: new RegExp(GRADLE_IMPLEMENTATION_GROUP_REGEX, 'g'),\n matches: [\n 'space1',\n 'quote1',\n 'group',\n 'quote2',\n 'space2',\n 'space3',\n 'quote3',\n 'name',\n 'quote4',\n 'space4',\n 'space5',\n 'quote5',\n 'version',\n 'quote6',\n ],\n },\n fileContents,\n );\n const applications = findAllWithRegex(\n {\n value: new RegExp(GRADLE_APPLICATION_NAME_REGEX, 'g'),\n matches: ['space', 'name'],\n },\n fileContents,\n );\n if (applications.length > 1) {\n throw new Error(`Expected only one applicationId per file: ${filePath}`);\n }\n\n return [\n {\n name: applications[0]?.name || directory.split('/').pop()!,\n softwareDevelopmentKits: [\n ...targets,\n ...targetGroups,\n ...targetPlugins,\n ].map((target) => ({\n name: target.name,\n version: target.version || undefined,\n })),\n },\n ];\n },\n};\n","import { readFileSync } from 'node:fs';\nimport { CodeScanningConfig } from '../types';\nimport { CodePackageType } from '@transcend-io/privacy-types';\nimport yaml from 'js-yaml';\nimport { dirname } from 'node:path';\n\n/**\n * Remove YAML comments from a string\n *\n * @param yamlString - YAML string\n * @returns String without comments\n */\nfunction removeYAMLComments(yamlString: string): string {\n return yamlString\n .split('\\n')\n .map((line) => {\n // Remove inline comments\n const commentIndex = line.indexOf('#');\n if (commentIndex > -1) {\n // Check if '#' is not inside a string\n if (\n !line.substring(0, commentIndex).includes('\"') &&\n !line.substring(0, commentIndex).includes(\"'\")\n ) {\n return line.substring(0, commentIndex).trim();\n }\n }\n return line;\n })\n .filter((line) => line.length > 0)\n .join('\\n');\n}\n\nexport const pubspec: CodeScanningConfig = {\n supportedFiles: ['pubspec.yml'],\n ignoreDirs: ['build'],\n scanFunction: (filePath) => {\n const directory = dirname(filePath);\n const fileContents = readFileSync(filePath, 'utf-8');\n const {\n name,\n description,\n dev_dependencies = {},\n dependencies = {},\n } = yaml.load(removeYAMLComments(fileContents)) as {\n /** Name */\n name?: string;\n /** Description */\n description?: string;\n /** Dev dependencies */\n dev_dependencies?: { [k in string]: number | Record<string, string> };\n /** Dependencies */\n dependencies?: { [k in string]: number | Record<string, string> };\n };\n return [\n {\n name: name || directory.split('/').pop()!,\n description,\n type: CodePackageType.RequirementsTxt,\n softwareDevelopmentKits: [\n ...Object.entries(dependencies).map(([name, version]) => ({\n name,\n version:\n typeof version === 'string'\n ? version\n : typeof version === 'number'\n ? version.toString()\n : version?.sdk,\n })),\n ...Object.entries(dev_dependencies).map(([name, version]) => ({\n name,\n version:\n typeof version === 'string'\n ? version\n : typeof version === 'number'\n ? version.toString()\n : version?.sdk,\n isDevDependency: true,\n })),\n ],\n },\n ];\n },\n};\n","import { readFileSync } from 'node:fs';\nimport { dirname } from 'node:path';\nimport { CodeScanningConfig } from '../types';\nimport { findAllWithRegex } from '@transcend-io/type-utils';\n\n/**\n * Kotlin DSL (build.gradle.kts) dependency & plugin parsing\n */\n\nconst KTS_DEP_CONFIGS =\n // eslint-disable-next-line max-len\n '(implementation|api|kapt|ksp|debugImplementation|releaseImplementation|androidTestImplementation|testImplementation|compileOnly|runtimeOnly)';\n\n// e.g. implementation(\"com.google.firebase:firebase-analytics:18.0.0\")\nconst KTS_DEP_STRING_COORDS_REGEX = new RegExp(\n `${KTS_DEP_CONFIGS}\\\\s*\\\\(\\\\s*[\"']([^\"':\\\\s]+):([^\"':\\\\s]+):?([^\"']*)[\"']\\\\s*\\\\)`,\n 'g',\n);\n// captures: [1]=config, [2]=group, [3]=artifact, [4]=version (may be '')\n\n// e.g. implementation(platform(\"com.google.firebase:firebase-bom:33.1.2\"))\nconst KTS_DEP_PLATFORM_REGEX = new RegExp(\n `${KTS_DEP_CONFIGS}\\\\s*\\\\(\\\\s*platform\\\\(\\\\s*[\"']([^\"':\\\\s]+):([^\"':\\\\s]+):?([^\"']*)[\"']\\\\s*\\\\)\\\\s*\\\\)`,\n 'g',\n);\n\n// e.g. implementation(libs.androidx.appcompat) / implementation(libs[\"androidx-core-ktx\"])\nconst KTS_DEP_LIBS_ALIAS_REGEX = new RegExp(\n `${KTS_DEP_CONFIGS}\\\\s*\\\\(\\\\s*libs(?:\\\\.[\\\\w\\\\-\\\\.]+|\\\\[[\"'][^\"']+[\"']\\\\])\\\\s*\\\\)`,\n 'g',\n);\n\n// Plugins:\n// plugins { id(\"com.google.gms.google-services\") version \"4.4.2\" apply false }\n// plugins { id(\"org.jetbrains.kotlin.android\") }\n// apply(plugin = \"newrelic\")\n// plugins { alias(libs.plugins.kotlin.android) }\nconst KTS_PLUGIN_ID_REGEX =\n /id\\s*\\(\\s*[\"']([^\"']+)[\"']\\s*\\)(?:\\s*version\\s*[\"']([^\"']+)[\"'])?/g;\nconst KTS_PLUGIN_APPLY_REGEX =\n /apply\\s*\\(\\s*plugin\\s*=\\s*[\"']([^\"']+)[\"']\\s*\\)/g;\nconst KTS_PLUGIN_ALIAS_REGEX =\n /plugins\\s*\\{[^}]*alias\\s*\\(\\s*libs(?:\\.plugins)?(?:\\.[\\w\\-.]+|\\[[\"'][^\"']+[\"']\\])\\s*\\)[^}]*\\}/g;\n\n// applicationId in Kotlin DSL:\n// applicationId = \"com.foo.bar\"\n// applicationId(\"com.foo.bar\")\nconst KTS_APPLICATION_ID_EQ_REGEX = /applicationId\\s*=\\s*[\"']([^\"']+)[\"']/g;\nconst KTS_APPLICATION_ID_CALL_REGEX =\n /applicationId\\s*\\(\\s*[\"']([^\"']+)[\"']\\s*\\)/g;\n\n/**\n * Input dep entry (partial)\n */\ntype DepInput = {\n /** Name of the dependency */\n name: string;\n /** Version of the dependency */\n version?: string;\n};\n\n/**\n * Helper to normalize a parsed dep entry\n *\n * @param name - name\n * @param version - version\n * @returns normalized entry\n */\nfunction depEntry(name: string, version?: string): DepInput {\n const v =\n version && version.trim().length > 0 && version !== '_'\n ? version.trim()\n : undefined;\n return { name, version: v };\n}\n\nexport const kotlin: CodeScanningConfig = {\n supportedFiles: ['**/build.gradle.kts', '**/*.gradle.kts'],\n ignoreDirs: [\n 'gradle-app.setting',\n 'gradle-wrapper.jar',\n 'gradle-wrapper.properties',\n ],\n scanFunction: (filePath) => {\n const fileContents = readFileSync(filePath, 'utf-8');\n const directory = dirname(filePath);\n\n // ---------- applicationId ----------\n const appIds = [\n ...findAllWithRegex(\n { value: KTS_APPLICATION_ID_EQ_REGEX, matches: ['name'] },\n fileContents,\n ),\n ...findAllWithRegex(\n { value: KTS_APPLICATION_ID_CALL_REGEX, matches: ['name'] },\n fileContents,\n ),\n ];\n if (appIds.length > 1) {\n throw new Error(`Expected only one applicationId per file: ${filePath}`);\n }\n const appName = appIds[0]?.name || directory.split('/').pop()!;\n\n // ---------- dependencies ----------\n const deps: Array<DepInput> = [];\n\n // \"group:artifact:version\"\n for (const m of fileContents.matchAll(KTS_DEP_STRING_COORDS_REGEX)) {\n const [, , group, artifact, version] = m;\n deps.push(depEntry(`${group}:${artifact}`, version));\n }\n\n // platform(\"group:artifact:version\")\n for (const m of fileContents.matchAll(KTS_DEP_PLATFORM_REGEX)) {\n const [, , group, artifact, version] = m;\n // Record as regular coord (you may prefer to tag as BoM separately)\n deps.push(depEntry(`${group}:${artifact}`, version));\n }\n\n // libs aliases (version catalogs) — keep alias as name, unknown version\n for (const m of fileContents.matchAll(KTS_DEP_LIBS_ALIAS_REGEX)) {\n // Grab the exact token as name (best-effort)\n const token = m[0]\n .replace(/^[^(]+\\(\\s*/, '')\n .replace(/\\)\\s*$/, '')\n .trim(); // e.g., libs.androidx.appcompat or libs[\"androidx-core-ktx\"]\n deps.push(depEntry(token));\n }\n\n // ---------- plugins ----------\n const plugins: Array<DepInput> = [];\n\n for (const m of fileContents.matchAll(KTS_PLUGIN_ID_REGEX)) {\n const [, pid, pver] = m;\n plugins.push(depEntry(pid, pver));\n }\n\n for (const m of fileContents.matchAll(KTS_PLUGIN_APPLY_REGEX)) {\n const [, pid] = m;\n plugins.push(depEntry(pid));\n }\n\n // alias(libs.plugins...) — keep alias token (no version)\n if (KTS_PLUGIN_ALIAS_REGEX.test(fileContents)) {\n // Collect all alias lines to preserve identifiers; light parse:\n const aliasMatches = fileContents.matchAll(\n /alias\\s*\\(\\s*(libs(?:\\.plugins)?(?:\\.[\\w\\-.]+|\\[[\"'][^\"']+[\"']\\]))\\s*\\)/g,\n );\n for (const m of aliasMatches) {\n plugins.push(depEntry(m[1]));\n }\n }\n\n // ---------- compose final list ----------\n // Merge deps + plugins as \"softwareDevelopmentKits\"\n const softwareDevelopmentKits = [...deps, ...plugins]\n // de-dup by name+version\n .reduce(\n (acc, cur) => {\n const key = `${cur.name}@@${cur.version || ''}`;\n if (!acc.map.has(key)) {\n acc.map.set(key, cur);\n acc.list.push(cur);\n }\n return acc;\n },\n {\n map: new Map<string, DepInput>(),\n list: [] as Array<DepInput>,\n },\n ).list;\n\n return [\n {\n name: appName,\n softwareDevelopmentKits,\n },\n ];\n },\n};\n"]}
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/cli/cli/dist/chunk-7PF5VVAF.cjs","../src/lib/code-scanning/integrations/cocoaPods.ts","../src/lib/code-scanning/integrations/gradle.ts","../src/lib/code-scanning/integrations/pubspec.ts","../src/lib/code-scanning/integrations/kotlin.ts"],"names":["POD_TARGET_REGEX","POD_PACKAGE_REGEX","cocoaPods","filePath","fileContents","readFileSync","targets","findAllWithRegex","packages","target","ind","CodePackageType","pkg","GRADLE_IMPLEMENTATION_REGEX","GRADLE_PLUGIN_REGEX","GRADLE_IMPLEMENTATION_GROUP_REGEX","GRADLE_APPLICATION_NAME_REGEX","gradle","directory","dirname","targetPlugins","targetGroups","applications"],"mappings":"AAAA,u/BAAwC,wDAAyC,wBCApD,qDAGI,2DACD,IAE1BA,CAAAA,CAAmB,wBAAA,CACnBC,CAAAA,CAAoB,4CAAA,CAEbC,CAAAA,CAAgC,CAC3C,cAAA,CAAgB,CAAC,SAAS,CAAA,CAC1B,UAAA,CAAY,CAAC,MAAM,CAAA,CACnB,YAAA,CAAeC,CAAAA,EAAa,CAC1B,IAAMC,CAAAA,CAAeC,8BAAAA,CAAaF,CAAU,OAAO,CAAA,CAE7CG,CAAAA,CAAUC,yCAAAA,CAEZ,KAAA,CAAO,IAAI,MAAA,CAAOP,CAAAA,CAAkB,GAAG,CAAA,CACvC,OAAA,CAAS,CAAC,QAAA,CAAU,MAAA,CAAQ,QAAQ,CACtC,CAAA,CACAI,CACF,CAAA,CACMI,CAAAA,CAAWD,yCAAAA,CAEb,KAAA,CAAO,IAAI,MAAA,CAAON,CAAAA,CAAmB,GAAG,C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,QAAA,CAAU,MAAA,CAAQ,MAAA,CAAQ,SAAA,CAAW,QAAQ,CAClE,CAAA,CACAT,CACF,CAAA,CACMgB,CAAAA,CAAgBb,yCAAAA,CAElB,KAAA,CAAO,IAAI,MAAA,CAAOO,CAAAA,CAAqB,GAAG,CAAA,CAC1C,OAAA,CAAS,CAAC,QAAA,CAAU,MAAA,CAAQ,OAAA,CAAS,SAAA,CAAW,QAAQ,CAC1D,CAAA,CACAV,CACF,CAAA,CACMiB,CAAAA,CAAed,yCAAAA,CAEjB,KAAA,CAAO,IAAI,MAAA,CAAOQ,CAAAA,CAAmC,GAAG,CAAA,CACxD,OAAA,CAAS,CACP,QAAA,CACA,QAAA,CACA,OAAA,CACA,QAAA,CACA,QAAA,CACA,QAAA,CACA,QAAA,CACA,MAAA,CACA,QAAA,CACA,QAAA,CACA,QAAA,CACA,QAAA,CACA,SAAA,CACA,QACF,CACF,CAAA,CACAX,CACF,CAAA,CACMkB,CAAAA,CAAef,yCAAAA,CAEjB,KAAA,CAAO,IAAI,MAAA,CAAOS,CAAAA,CAA+B,GAAG,CAAA,CACpD,OAAA,CAAS,CAAC,OAAA,CAAS,MAAM,CAC3B,CAAA,CACAZ,CACF,CAAA,CACA,EAAA,CAAIkB,CAAAA,CAAa,MAAA,CAAS,CAAA,CACxB,MAAM,IAAI,KAAA,CAAM,CAAA,0CAAA,EAA6CnB,CAAQ,CAAA,CAAA;AC/CjE;AC3BD","file":"/home/runner/work/cli/cli/dist/chunk-7PF5VVAF.cjs","sourcesContent":[null,"import { readFileSync } from 'node:fs';\nimport { CodeScanningConfig } from '../types';\nimport { CodePackageSdk } from '../../../codecs';\nimport { findAllWithRegex } from '@transcend-io/type-utils';\nimport { CodePackageType } from '@transcend-io/privacy-types';\n\nconst POD_TARGET_REGEX = /target ('|\")(.*?)('|\")/;\nconst POD_PACKAGE_REGEX = /pod ('|\")(.*?)('|\")(, ('|\")~> (.+?)('|\")|)/;\n\nexport const cocoaPods: CodeScanningConfig = {\n supportedFiles: ['Podfile'],\n ignoreDirs: ['Pods'],\n scanFunction: (filePath) => {\n const fileContents = readFileSync(filePath, 'utf-8');\n\n const targets = findAllWithRegex(\n {\n value: new RegExp(POD_TARGET_REGEX, 'g'),\n matches: ['quote1', 'name', 'quote2'],\n },\n fileContents,\n );\n const packages = findAllWithRegex(\n {\n value: new RegExp(POD_PACKAGE_REGEX, 'g'),\n matches: [\n 'quote1',\n 'name',\n 'quote2',\n 'extra',\n 'quote3',\n 'version',\n 'quote4',\n ],\n },\n fileContents,\n );\n\n const deps: CodePackageSdk[] = targets.map((target, ind) => ({\n name: target.name,\n type: CodePackageType.CocoaPods,\n softwareDevelopmentKits: packages\n .filter(\n (pkg) =>\n pkg.matchIndex > target.matchIndex &&\n (!targets[ind + 1] || pkg.matchIndex < targets[ind + 1].matchIndex),\n )\n .map((pkg) => ({\n name: pkg.name,\n version: pkg.version,\n })),\n }));\n\n return deps;\n },\n};\n","import { readFileSync } from 'node:fs';\nimport { CodeScanningConfig } from '../types';\nimport { findAllWithRegex } from '@transcend-io/type-utils';\nimport { dirname } from 'node:path';\n\nconst GRADLE_IMPLEMENTATION_REGEX =\n /implementation( *)('|\")(.+?):(.+?):(.+?|)('|\")/;\nconst GRADLE_PLUGIN_REGEX = /apply plugin: *('|\")(.+?)(:(.+?)|)('|\")/;\nconst GRADLE_IMPLEMENTATION_GROUP_REGEX =\n /implementation group:( *)('|\")(.+?)('|\"),( *)name:( *)('|\")(.+?)('|\"),( *)version:( *)('|\")(.+?)('|\")/;\nconst GRADLE_APPLICATION_NAME_REGEX = /applicationId( *)\"(.+?)\"/;\n\n/**\n * So far, there are three ways of defining dependencies that is supported\n * implementation group: 'org.eclipse.jdt', name: 'org.eclipse.jdt.core', version: '3.28.0'\n * or\n * implementation 'com.google.firebase:firebase-analytics:18.0.0'\n * or\n * apply plugin: 'com.google.gms.google-services'\n *\n * single and double quotes are both recognized\n */\nexport const gradle: CodeScanningConfig = {\n supportedFiles: ['build.gradle**'],\n ignoreDirs: [\n 'gradle-app.setting',\n 'gradle-wrapper.jar',\n 'gradle-wrapper.properties',\n ],\n scanFunction: (filePath) => {\n const fileContents = readFileSync(filePath, 'utf-8');\n const directory = dirname(filePath);\n\n const targets = findAllWithRegex(\n {\n value: new RegExp(GRADLE_IMPLEMENTATION_REGEX, 'g'),\n matches: ['space', 'quote1', 'name', 'path', 'version', 'quote2'],\n },\n fileContents,\n );\n const targetPlugins = findAllWithRegex(\n {\n value: new RegExp(GRADLE_PLUGIN_REGEX, 'g'),\n matches: ['quote1', 'name', 'group', 'version', 'quote2'],\n },\n fileContents,\n );\n const targetGroups = findAllWithRegex(\n {\n value: new RegExp(GRADLE_IMPLEMENTATION_GROUP_REGEX, 'g'),\n matches: [\n 'space1',\n 'quote1',\n 'group',\n 'quote2',\n 'space2',\n 'space3',\n 'quote3',\n 'name',\n 'quote4',\n 'space4',\n 'space5',\n 'quote5',\n 'version',\n 'quote6',\n ],\n },\n fileContents,\n );\n const applications = findAllWithRegex(\n {\n value: new RegExp(GRADLE_APPLICATION_NAME_REGEX, 'g'),\n matches: ['space', 'name'],\n },\n fileContents,\n );\n if (applications.length > 1) {\n throw new Error(`Expected only one applicationId per file: ${filePath}`);\n }\n\n return [\n {\n name: applications[0]?.name || directory.split('/').pop()!,\n softwareDevelopmentKits: [\n ...targets,\n ...targetGroups,\n ...targetPlugins,\n ].map((target) => ({\n name: target.name,\n version: target.version || undefined,\n })),\n },\n ];\n },\n};\n","import { readFileSync } from 'node:fs';\nimport { CodeScanningConfig } from '../types';\nimport { CodePackageType } from '@transcend-io/privacy-types';\nimport yaml from 'js-yaml';\nimport { dirname } from 'node:path';\n\n/**\n * Remove YAML comments from a string\n *\n * @param yamlString - YAML string\n * @returns String without comments\n */\nfunction removeYAMLComments(yamlString: string): string {\n return yamlString\n .split('\\n')\n .map((line) => {\n // Remove inline comments\n const commentIndex = line.indexOf('#');\n if (commentIndex > -1) {\n // Check if '#' is not inside a string\n if (\n !line.substring(0, commentIndex).includes('\"') &&\n !line.substring(0, commentIndex).includes(\"'\")\n ) {\n return line.substring(0, commentIndex).trim();\n }\n }\n return line;\n })\n .filter((line) => line.length > 0)\n .join('\\n');\n}\n\nexport const pubspec: CodeScanningConfig = {\n supportedFiles: ['pubspec.yml'],\n ignoreDirs: ['build'],\n scanFunction: (filePath) => {\n const directory = dirname(filePath);\n const fileContents = readFileSync(filePath, 'utf-8');\n const {\n name,\n description,\n dev_dependencies = {},\n dependencies = {},\n } = yaml.load(removeYAMLComments(fileContents)) as {\n /** Name */\n name?: string;\n /** Description */\n description?: string;\n /** Dev dependencies */\n dev_dependencies?: { [k in string]: number | Record<string, string> };\n /** Dependencies */\n dependencies?: { [k in string]: number | Record<string, string> };\n };\n return [\n {\n name: name || directory.split('/').pop()!,\n description,\n type: CodePackageType.RequirementsTxt,\n softwareDevelopmentKits: [\n ...Object.entries(dependencies).map(([name, version]) => ({\n name,\n version:\n typeof version === 'string'\n ? version\n : typeof version === 'number'\n ? version.toString()\n : version?.sdk,\n })),\n ...Object.entries(dev_dependencies).map(([name, version]) => ({\n name,\n version:\n typeof version === 'string'\n ? version\n : typeof version === 'number'\n ? version.toString()\n : version?.sdk,\n isDevDependency: true,\n })),\n ],\n },\n ];\n },\n};\n","import { readFileSync } from 'node:fs';\nimport { dirname } from 'node:path';\nimport { CodeScanningConfig } from '../types';\nimport { findAllWithRegex } from '@transcend-io/type-utils';\n\n/**\n * Kotlin DSL (build.gradle.kts) dependency & plugin parsing\n */\n\nconst KTS_DEP_CONFIGS =\n // eslint-disable-next-line max-len\n '(implementation|api|kapt|ksp|debugImplementation|releaseImplementation|androidTestImplementation|testImplementation|compileOnly|runtimeOnly)';\n\n// e.g. implementation(\"com.google.firebase:firebase-analytics:18.0.0\")\nconst KTS_DEP_STRING_COORDS_REGEX = new RegExp(\n `${KTS_DEP_CONFIGS}\\\\s*\\\\(\\\\s*[\"']([^\"':\\\\s]+):([^\"':\\\\s]+):?([^\"']*)[\"']\\\\s*\\\\)`,\n 'g',\n);\n// captures: [1]=config, [2]=group, [3]=artifact, [4]=version (may be '')\n\n// e.g. implementation(platform(\"com.google.firebase:firebase-bom:33.1.2\"))\nconst KTS_DEP_PLATFORM_REGEX = new RegExp(\n `${KTS_DEP_CONFIGS}\\\\s*\\\\(\\\\s*platform\\\\(\\\\s*[\"']([^\"':\\\\s]+):([^\"':\\\\s]+):?([^\"']*)[\"']\\\\s*\\\\)\\\\s*\\\\)`,\n 'g',\n);\n\n// e.g. implementation(libs.androidx.appcompat) / implementation(libs[\"androidx-core-ktx\"])\nconst KTS_DEP_LIBS_ALIAS_REGEX = new RegExp(\n `${KTS_DEP_CONFIGS}\\\\s*\\\\(\\\\s*libs(?:\\\\.[\\\\w\\\\-\\\\.]+|\\\\[[\"'][^\"']+[\"']\\\\])\\\\s*\\\\)`,\n 'g',\n);\n\n// Plugins:\n// plugins { id(\"com.google.gms.google-services\") version \"4.4.2\" apply false }\n// plugins { id(\"org.jetbrains.kotlin.android\") }\n// apply(plugin = \"newrelic\")\n// plugins { alias(libs.plugins.kotlin.android) }\nconst KTS_PLUGIN_ID_REGEX =\n /id\\s*\\(\\s*[\"']([^\"']+)[\"']\\s*\\)(?:\\s*version\\s*[\"']([^\"']+)[\"'])?/g;\nconst KTS_PLUGIN_APPLY_REGEX =\n /apply\\s*\\(\\s*plugin\\s*=\\s*[\"']([^\"']+)[\"']\\s*\\)/g;\nconst KTS_PLUGIN_ALIAS_REGEX =\n /plugins\\s*\\{[^}]*alias\\s*\\(\\s*libs(?:\\.plugins)?(?:\\.[\\w\\-.]+|\\[[\"'][^\"']+[\"']\\])\\s*\\)[^}]*\\}/g;\n\n// applicationId in Kotlin DSL:\n// applicationId = \"com.foo.bar\"\n// applicationId(\"com.foo.bar\")\nconst KTS_APPLICATION_ID_EQ_REGEX = /applicationId\\s*=\\s*[\"']([^\"']+)[\"']/g;\nconst KTS_APPLICATION_ID_CALL_REGEX =\n /applicationId\\s*\\(\\s*[\"']([^\"']+)[\"']\\s*\\)/g;\n\n/**\n * Input dep entry (partial)\n */\ntype DepInput = {\n /** Name of the dependency */\n name: string;\n /** Version of the dependency */\n version?: string;\n};\n\n/**\n * Helper to normalize a parsed dep entry\n *\n * @param name - name\n * @param version - version\n * @returns normalized entry\n */\nfunction depEntry(name: string, version?: string): DepInput {\n const v =\n version && version.trim().length > 0 && version !== '_'\n ? version.trim()\n : undefined;\n return { name, version: v };\n}\n\nexport const kotlin: CodeScanningConfig = {\n supportedFiles: ['**/build.gradle.kts', '**/*.gradle.kts'],\n ignoreDirs: [\n 'gradle-app.setting',\n 'gradle-wrapper.jar',\n 'gradle-wrapper.properties',\n ],\n scanFunction: (filePath) => {\n const fileContents = readFileSync(filePath, 'utf-8');\n const directory = dirname(filePath);\n\n // ---------- applicationId ----------\n const appIds = [\n ...findAllWithRegex(\n { value: KTS_APPLICATION_ID_EQ_REGEX, matches: ['name'] },\n fileContents,\n ),\n ...findAllWithRegex(\n { value: KTS_APPLICATION_ID_CALL_REGEX, matches: ['name'] },\n fileContents,\n ),\n ];\n if (appIds.length > 1) {\n throw new Error(`Expected only one applicationId per file: ${filePath}`);\n }\n const appName = appIds[0]?.name || directory.split('/').pop()!;\n\n // ---------- dependencies ----------\n const deps: Array<DepInput> = [];\n\n // \"group:artifact:version\"\n for (const m of fileContents.matchAll(KTS_DEP_STRING_COORDS_REGEX)) {\n const [, , group, artifact, version] = m;\n deps.push(depEntry(`${group}:${artifact}`, version));\n }\n\n // platform(\"group:artifact:version\")\n for (const m of fileContents.matchAll(KTS_DEP_PLATFORM_REGEX)) {\n const [, , group, artifact, version] = m;\n // Record as regular coord (you may prefer to tag as BoM separately)\n deps.push(depEntry(`${group}:${artifact}`, version));\n }\n\n // libs aliases (version catalogs) — keep alias as name, unknown version\n for (const m of fileContents.matchAll(KTS_DEP_LIBS_ALIAS_REGEX)) {\n // Grab the exact token as name (best-effort)\n const token = m[0]\n .replace(/^[^(]+\\(\\s*/, '')\n .replace(/\\)\\s*$/, '')\n .trim(); // e.g., libs.androidx.appcompat or libs[\"androidx-core-ktx\"]\n deps.push(depEntry(token));\n }\n\n // ---------- plugins ----------\n const plugins: Array<DepInput> = [];\n\n for (const m of fileContents.matchAll(KTS_PLUGIN_ID_REGEX)) {\n const [, pid, pver] = m;\n plugins.push(depEntry(pid, pver));\n }\n\n for (const m of fileContents.matchAll(KTS_PLUGIN_APPLY_REGEX)) {\n const [, pid] = m;\n plugins.push(depEntry(pid));\n }\n\n // alias(libs.plugins...) — keep alias token (no version)\n if (KTS_PLUGIN_ALIAS_REGEX.test(fileContents)) {\n // Collect all alias lines to preserve identifiers; light parse:\n const aliasMatches = fileContents.matchAll(\n /alias\\s*\\(\\s*(libs(?:\\.plugins)?(?:\\.[\\w\\-.]+|\\[[\"'][^\"']+[\"']\\]))\\s*\\)/g,\n );\n for (const m of aliasMatches) {\n plugins.push(depEntry(m[1]));\n }\n }\n\n // ---------- compose final list ----------\n // Merge deps + plugins as \"softwareDevelopmentKits\"\n const softwareDevelopmentKits = [...deps, ...plugins]\n // de-dup by name+version\n .reduce(\n (acc, cur) => {\n const key = `${cur.name}@@${cur.version || ''}`;\n if (!acc.map.has(key)) {\n acc.map.set(key, cur);\n acc.list.push(cur);\n }\n return acc;\n },\n {\n map: new Map<string, DepInput>(),\n list: [] as Array<DepInput>,\n },\n ).list;\n\n return [\n {\n name: appName,\n softwareDevelopmentKits,\n },\n ];\n },\n};\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkEYOQLGDVcjs = require('./chunk-EYOQLGDV.cjs');function f(p,{adTechPurposes:m=["SaleOfInfo"],serviceToTitle:s,serviceToSupportedIntegration:r}){let e=[],i=[],n={};p.forEach(t=>{let{service:a,attributes:c=[]}=t;if(!a||a==="internalService")return;let u=c.find(o=>o.key==="Found on Domain");u&&(n[a]||(n[a]=[]),n[a].push(...u.values.map(o=>o.replace("https://","").replace("http://",""))),n[a]=[...new Set(n[a])]),_chunkEYOQLGDVcjs.i.call(void 0, t.trackingPurposes,m).length>0?(i.push(a),e.includes(a)&&(e=e.filter(o=>o!==a))):i.includes(a)||e.push(a)});let h=[...new Set(i)].map(t=>({title:s[t],...r[t]?{integrationName:t}:{integrationName:"promptAPerson","outer-type":t},attributes:[{key:"Tech Type",values:["Ad Tech"]},{key:"Found On Domain",values:n[t]||[]}]}));return{siteTechDataSilos:[...new Set(e)].map(t=>({title:s[t],...r[t]?{integrationName:t}:{integrationName:"promptAPerson",outerType:t},attributes:[{key:"Tech Type",values:["Site Tech"]},{key:"Found On Domain",values:n[t]||[]}]})),adTechDataSilos:h}}exports.a = f;
|
|
2
|
+
//# sourceMappingURL=chunk-AEL3DOYI.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/cli/cli/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/cli/cli/dist/chunk-AEL3DOYI.cjs","../src/lib/consent-manager/dataFlowsToDataSilos.ts"],"names":["dataFlowsToDataSilos","inputs","adTechPurposes","serviceToTitle","serviceToSupportedIntegration","siteTechIntegrations","adTechIntegrations","serviceToFoundOnDomain","flow","service","attributes","foundOnDomain","attr","v","union_default","s","adTechDataSilos"],"mappings":"AAAA,iIAAwC,SCWxBA,CAAAA,CACdC,CAAAA,CACA,CACE,cAAA,CAAAC,CAAAA,CAAiB,CAAC,YAAY,CAAA,CAC9B,cAAA,CAAAC,CAAAA,CACA,6BAAA,CAAAC,CACF,CAAA,CASA,CAEA,IAAIC,CAAAA,CAAiC,CAAC,CAAA,CAGhCC,CAAAA,CAA+B,CAAC,CAAA,CAGhCC,CAAAA,CAAsD,CAAC,CAAA,CAG7DN,CAAAA,CAAO,OAAA,CAASO,CAAAA,EAAS,CAEvB,GAAM,CAAE,OAAA,CAAAC,CAAAA,CAAS,U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AAAA,CAAeM,CAAO,CAAA,CAC7B,GAAIL,CAAAA,CAA8BK,CAAO,CAAA,CACrC,CAAE,eAAA,CAAiBA,CAAQ,CAAA,CAC3B,CAAE,eAAA,CAAiB,eAAA,CAAiB,YAAA,CAAcA,CAAQ,CAAA,CAC9D,UAAA,CAAY,CACV,CACE,GAAA,CAAK,WAAA,CACL,MAAA,CAAQ,CAAC,SAAS,CACpB,CAAA,CACA,CACE,GAAA,CAAK,iBAAA,CACL,MAAA,CAAQF,CAAAA,CAAuBE,CAAO,CAAA,EAAK,CAAC,CAC9C,CACF,CACF,CAAA,CAAE,CAAA,CAsBF,MAAO,CACL,iBAAA,CApBwB,CAAC,GAAG,IAAI,GAAA,CAAIJ,CAAoB,CAAC,CAAA,CAAE,GAAA,CAC1DI,CAAAA,EAAAA,CAAa,CACZ,KAAA,CAAON,CAAAA,CAAeM,CAAO,CAAA,CAC7B,GAAIL,CAAAA,CAA8BK,CAAO,CAAA,CACrC,CAAE,eAAA,CAAiBA,CAAQ,CAAA,CAC3B,CAAE,eAAA,CAAiB,eAAA,CAAiB,SAAA,CAAWA,CAAQ,CAAA,CAC3D,UAAA,CAAY,CACV,CACE,GAAA,CAAK,WAAA,CACL,MAAA,CAAQ,CAAC,WAAW,CACtB,CAAA,CACA,CACE,GAAA,CAAK,iBAAA,CACL,MAAA,CAAQF,CAAAA,CAAuBE,CAAO,CAAA,EAAK,CAAC,CAC9C,CACF,CACF,CAAA,CACF,CAAA,CAIE,eAAA,CAAAO,CACF,CACF,CAAA,cAAA","file":"/home/runner/work/cli/cli/dist/chunk-AEL3DOYI.cjs","sourcesContent":[null,"import { DataFlowInput, DataSiloInput } from '../../codecs';\nimport { union } from 'lodash-es';\nimport { IndexedCatalogs } from '../graphql';\n\n/**\n * Convert data flow configurations into a set of data silo configurations\n *\n * @param inputs - Data flow input to convert to data silos\n * @param options - Additional options\n * @returns Business entity configuration input\n */\nexport function dataFlowsToDataSilos(\n inputs: DataFlowInput[],\n {\n adTechPurposes = ['SaleOfInfo'],\n serviceToTitle,\n serviceToSupportedIntegration,\n }: IndexedCatalogs & {\n /** List of purposes that are considered \"Ad Tech\" */\n adTechPurposes?: string[];\n },\n): {\n /** List of data silo configurations for site-tech services */\n siteTechDataSilos: DataSiloInput[];\n /** List of data silo configurations for ad-tech services */\n adTechDataSilos: DataSiloInput[];\n} {\n // List of site tech integrations\n let siteTechIntegrations: string[] = [];\n\n // List of ad tech integrations\n const adTechIntegrations: string[] = [];\n\n // Mapping from service name to list of\n const serviceToFoundOnDomain: { [k in string]: string[] } = {};\n\n // iterate over each flow\n inputs.forEach((flow) => {\n // process data flows with services\n const { service, attributes = [] } = flow;\n if (!service || service === 'internalService') {\n return;\n }\n\n // create mapping to found on domain\n const foundOnDomain = attributes.find(\n (attr) => attr.key === 'Found on Domain',\n );\n\n // Create a list of all domains where the data flow was found\n if (foundOnDomain) {\n if (!serviceToFoundOnDomain[service]) {\n serviceToFoundOnDomain[service] = [];\n }\n serviceToFoundOnDomain[service]!.push(\n ...foundOnDomain.values.map((v) =>\n v.replace('https://', '').replace('http://', ''),\n ),\n );\n serviceToFoundOnDomain[service] = [\n ...new Set(serviceToFoundOnDomain[service]),\n ];\n }\n\n // Keep track of ad tech\n if (union(flow.trackingPurposes, adTechPurposes).length > 0) {\n // add service to ad tech list\n adTechIntegrations.push(service);\n\n // remove from site tech list\n if (siteTechIntegrations.includes(service)) {\n siteTechIntegrations = siteTechIntegrations.filter(\n (s) => s !== service,\n );\n }\n } else if (!adTechIntegrations.includes(service)) {\n // add to site tech list\n siteTechIntegrations.push(service);\n }\n });\n\n // create the list of ad tech integrations\n const adTechDataSilos = [...new Set(adTechIntegrations)].map((service) => ({\n title: serviceToTitle[service],\n ...(serviceToSupportedIntegration[service]\n ? { integrationName: service }\n : { integrationName: 'promptAPerson', 'outer-type': service }),\n attributes: [\n {\n key: 'Tech Type',\n values: ['Ad Tech'],\n },\n {\n key: 'Found On Domain',\n values: serviceToFoundOnDomain[service] || [],\n },\n ],\n }));\n\n // create the list of site tech integrations\n const siteTechDataSilos = [...new Set(siteTechIntegrations)].map(\n (service) => ({\n title: serviceToTitle[service],\n ...(serviceToSupportedIntegration[service]\n ? { integrationName: service }\n : { integrationName: 'promptAPerson', outerType: service }),\n attributes: [\n {\n key: 'Tech Type',\n values: ['Site Tech'],\n },\n {\n key: 'Found On Domain',\n values: serviceToFoundOnDomain[service] || [],\n },\n ],\n }),\n );\n\n return {\n siteTechDataSilos,\n adTechDataSilos,\n };\n}\n"]}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _chunkKUBXRT3Vcjs = require('./chunk-KUBXRT3V.cjs');var _chunkZUNVPK23cjs = require('./chunk-ZUNVPK23.cjs');var _chunkEYOQLGDVcjs = require('./chunk-EYOQLGDV.cjs');var _privacytypes = require('@transcend-io/privacy-types');var _bluebird = require('bluebird');var _colors = require('colors'); var _colors2 = _interopRequireDefault(_colors);async function te({file:u,auth:s,sombraAuth:g,requestActions:f=[],concurrency:p=100,transcendUrl:n=_chunkEYOQLGDVcjs.r}){let o=_chunkKUBXRT3Vcjs.wc.call(void 0, n,s),e=await _chunkKUBXRT3Vcjs.xc.call(void 0, n,s,g);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Pulling manual enrichment requests, filtered for actions: ${f.join(",")}`));let d=await _chunkKUBXRT3Vcjs.nd.call(void 0, o,{actions:f,statuses:[_privacytypes.RequestStatus.Enriching]}),i=[];await _bluebird.map.call(void 0, d,async t=>{let c=await _chunkKUBXRT3Vcjs.hd.call(void 0, o,{requestId:t.id});if(c.filter(({status:m})=>m==="ACTION_REQUIRED")){let m=await _chunkKUBXRT3Vcjs.kd.call(void 0, o,e,{requestId:t.id});i.push({...t,requestIdentifiers:m,requestEnrichers:c})}},{concurrency:p});let l=i.map(({attributeValues:t,requestIdentifiers:c,requestEnrichers:w,...m})=>({...m,...Object.entries(_chunkEYOQLGDVcjs.d.call(void 0, c,"name")).reduce((I,[P,$])=>Object.assign(I,{[P]:$.map(({value:C})=>C).join(",")}),{}),...Object.entries(_chunkEYOQLGDVcjs.d.call(void 0, t,"attributeKey.name")).reduce((I,[P,$])=>Object.assign(I,{[P]:$.map(({name:C})=>C).join(",")}),{})})),a=_chunkEYOQLGDVcjs.j.call(void 0, l.map(t=>Object.keys(t)).flat());return await _chunkKUBXRT3Vcjs.pg.call(void 0, u,l,a),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully wrote ${i.length} requests to file "${u}"`)),i}var _iots = require('io-ts'); var R = _interopRequireWildcard(_iots);var T="https://app.transcend.io/privacy-requests/incoming-requests/",F= exports.b =R.record(R.string,R.string);async function M(u,{id:s,...g},f,p){if(!s){let e=`Request ID must be provided to enricher request.${p?` Found error in row: ${p}`:""}`;throw _chunkZUNVPK23cjs.a.error(_colors2.default.red(e)),new Error(e)}let n=s.toLowerCase(),o=Object.entries(g).reduce((e,[d,i])=>_chunkEYOQLGDVcjs.j.call(void 0, _chunkKUBXRT3Vcjs.oc.call(void 0, i)).length===0?e:Object.assign(e,{[d]:_chunkEYOQLGDVcjs.j.call(void 0, _chunkKUBXRT3Vcjs.oc.call(void 0, i)).map(a=>({value:d==="email"?a.toLowerCase():a}))}),{});try{return await u.post("v1/enrich-identifiers",{headers:{"x-transcend-request-id":n,"x-transcend-enricher-id":f},json:{enrichedIdentifiers:o}}).json(),_chunkZUNVPK23cjs.a.error(_colors2.default.green(`Successfully enriched request: ${T}${n}`)),!0}catch(e){if(typeof e.response.body=="string"&&e.response.body.includes("Cannot update a resolved RequestEnricher"))return _chunkZUNVPK23cjs.a.warn(_colors2.default.magenta(`Skipped enrichment for request: ${T}${n}, request is no longer in the enriching phase.`)),!1;throw _chunkZUNVPK23cjs.a.error(_colors2.default.red(`Failed to enricher identifiers for request with id: ${T}${n} - ${e.message} - ${e.response.body}`)),e}}async function ge({file:u,auth:s,sombraAuth:g,enricherId:f,markSilent:p,concurrency:n=100,transcendUrl:o=_chunkEYOQLGDVcjs.r}){let e=await _chunkKUBXRT3Vcjs.xc.call(void 0, o,s,g),d=_chunkKUBXRT3Vcjs.wc.call(void 0, o,s);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Reading "${u}" from disk`));let i=_chunkKUBXRT3Vcjs.rc.call(void 0, u,F);_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Enriching "${i.length}" privacy requests.`));let l=0,a=0,t=0;if(await _bluebird.map.call(void 0, i,async(c,w)=>{try{p&&(await _chunkKUBXRT3Vcjs.sg.call(void 0, d,_chunkKUBXRT3Vcjs.Z,{input:{id:c.id,isSilent:!0}}),_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Mark request as silent mode - ${c.id}`))),await M(e,c,f,w)?l+=1:a+=1}catch (e2){t+=1}},{concurrency:n}),_chunkZUNVPK23cjs.a.info(_colors2.default.green(`Successfully notified Transcend!
|
|
2
2
|
Success count: ${l}.`)),a>0&&_chunkZUNVPK23cjs.a.info(_colors2.default.magenta(`Skipped count: ${a}.`)),t>0)throw _chunkZUNVPK23cjs.a.info(_colors2.default.red(`Error Count: ${t}.`)),new Error(`Failed to enrich: ${t} requests.`);return i.length}exports.a = te; exports.b = F; exports.c = M; exports.d = ge;
|
|
3
|
-
//# sourceMappingURL=chunk-
|
|
3
|
+
//# sourceMappingURL=chunk-CQT5QQ3U.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/cli/cli/dist/chunk-
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/cli/cli/dist/chunk-CQT5QQ3U.cjs","../src/lib/manual-enrichment/pullManualEnrichmentIdentifiersToCsv.ts","../src/lib/manual-enrichment/pushManualEnrichmentIdentifiersFromCsv.ts"],"names":["pullManualEnrichmentIdentifiersToCsv","file","auth","sombraAuth","requestActions","concurrency","transcendUrl","DEFAULT_TRANSCEND_API","client","buildTranscendGraphQLClient","sombra","createSombraGotInstance","logger","colors"],"mappings":"AAAA,mfAAgH,wDAAyC,wDAAuD,2DCAnK,oCACzB,gFACD,MA6BnB,SAAsBA,EAAAA,CAAqC,CACzD,IAAA,CAAAC,CAAAA,CACA,IAAA,CAAAC,CAAAA,CACA,UAAA,CAAAC,CAAAA,CACA,cAAA,CAAAC,CAAAA,CAAiB,CAAC,CAAA,CAClB,WAAA,CAAAC,CAAAA,CAAc,GAAA,CACd,YAAA,CAAAC,CAAAA,CAAeC,mBACjB,CAAA,CAa6C,CAE3C,IAAMC,CAAAA,CAASC,kCAAAA,CAA4BH,CAAcJ,CAAI,CAAA,CACvDQ,CAAAA,CAAS,MAAMC,kCAAAA,CAAwBL,CAAcJ,CAAAA,CAAMC,CAAU,CAAA,CAE3ES,mBAAAA,CAAO,IAAA,CACLC,gBAAAA,CAAO,OAAA,CACL,CAAA,0DAAA,EAA6DT,CAAAA,CAAe,IAAA,CAC1E,GACF,CAAC,CAAA,CAAA;ACuDP,gBAAA","file":"/home/runner/work/cli/cli/dist/chunk-CQT5QQ3U.cjs","sourcesContent":[null,"import { RequestAction, RequestStatus } from '@transcend-io/privacy-types';\nimport { map } from 'bluebird';\nimport colors from 'colors';\nimport { groupBy, uniq } from 'lodash-es';\nimport { DEFAULT_TRANSCEND_API } from '../../constants';\nimport { writeCsv } from '../helpers/writeCsv';\nimport {\n PrivacyRequest,\n RequestEnricher,\n RequestIdentifier,\n buildTranscendGraphQLClient,\n createSombraGotInstance,\n fetchAllRequestEnrichers,\n fetchAllRequestIdentifiers,\n fetchAllRequests,\n} from '../graphql';\nimport { logger } from '../../logger';\n\nexport interface PrivacyRequestWithIdentifiers extends PrivacyRequest {\n /** Request Enrichers */\n requestEnrichers: RequestEnricher[];\n /** Request Identifiers */\n requestIdentifiers: RequestIdentifier[];\n}\n\n/**\n * Pull the set of manual enrichment jobs to CSV\n *\n * @param options - Options\n * @returns List of requests with identifiers\n */\nexport async function pullManualEnrichmentIdentifiersToCsv({\n file,\n auth,\n sombraAuth,\n requestActions = [],\n concurrency = 100,\n transcendUrl = DEFAULT_TRANSCEND_API,\n}: {\n /** CSV file path */\n file: string;\n /** Transcend API key authentication */\n auth: string;\n /** Sombra API key */\n sombraAuth?: string;\n /** Concurrency */\n concurrency?: number;\n /** The request actions to fetch */\n requestActions?: RequestAction[];\n /** API URL for Transcend backend */\n transcendUrl?: string;\n}): Promise<PrivacyRequestWithIdentifiers[]> {\n // Find all requests made before createdAt that are in a removing data state\n const client = buildTranscendGraphQLClient(transcendUrl, auth);\n const sombra = await createSombraGotInstance(transcendUrl, auth, sombraAuth);\n\n logger.info(\n colors.magenta(\n `Pulling manual enrichment requests, filtered for actions: ${requestActions.join(\n ',',\n )}`,\n ),\n );\n\n // Pull all privacy requests\n const allRequests = await fetchAllRequests(client, {\n actions: requestActions,\n statuses: [RequestStatus.Enriching],\n });\n\n // Requests to save\n const savedRequests: PrivacyRequestWithIdentifiers[] = [];\n\n // Filter down requests to what is needed\n await map(\n allRequests,\n async (request) => {\n // Fetch enrichers\n const requestEnrichers = await fetchAllRequestEnrichers(client, {\n requestId: request.id,\n });\n\n // Check if manual enrichment exists for that request\n const hasManualEnrichment = requestEnrichers.filter(\n ({ status }) => status === 'ACTION_REQUIRED',\n );\n\n // Save request to queue\n if (hasManualEnrichment) {\n const requestIdentifiers = await fetchAllRequestIdentifiers(\n client,\n sombra,\n {\n requestId: request.id,\n },\n );\n savedRequests.push({\n ...request,\n requestIdentifiers,\n requestEnrichers,\n });\n }\n },\n {\n concurrency,\n },\n );\n\n const data = savedRequests.map(\n ({\n attributeValues,\n requestIdentifiers,\n requestEnrichers, // eslint-disable-line @typescript-eslint/no-unused-vars\n ...request\n }) => ({\n ...request,\n // flatten identifiers\n ...Object.entries(groupBy(requestIdentifiers, 'name')).reduce(\n (acc, [key, values]) =>\n Object.assign(acc, {\n [key]: values.map(({ value }) => value).join(','),\n }),\n {},\n ),\n // flatten attributes\n ...Object.entries(groupBy(attributeValues, 'attributeKey.name')).reduce(\n (acc, [key, values]) =>\n Object.assign(acc, {\n [key]: values.map(({ name }) => name).join(','),\n }),\n {},\n ),\n }),\n );\n\n // Write out to CSV\n const headers = uniq(data.map((d) => Object.keys(d)).flat());\n await writeCsv(file, data, headers);\n\n logger.info(\n colors.green(\n `Successfully wrote ${savedRequests.length} requests to file \"${file}\"`,\n ),\n );\n\n return savedRequests;\n}\n","import colors from 'colors';\nimport { map } from 'bluebird';\nimport { logger } from '../../logger';\nimport {\n UPDATE_PRIVACY_REQUEST,\n buildTranscendGraphQLClient,\n createSombraGotInstance,\n makeGraphQLRequest,\n} from '../graphql';\nimport {\n enrichPrivacyRequest,\n EnrichPrivacyRequest,\n} from './enrichPrivacyRequest';\nimport { readCsv } from '../requests';\nimport { DEFAULT_TRANSCEND_API } from '../../constants';\n\n/**\n * Push a CSV of enriched requests back into Transcend\n *\n * @param options - Options\n * @returns Number of items processed\n */\nexport async function pushManualEnrichmentIdentifiersFromCsv({\n file,\n auth,\n sombraAuth,\n enricherId,\n markSilent,\n concurrency = 100,\n transcendUrl = DEFAULT_TRANSCEND_API,\n}: {\n /** CSV file path */\n file: string;\n /** Transcend API key authentication */\n auth: string;\n /** ID of enricher being uploaded to */\n enricherId: string;\n /** Sombra API key authentication */\n sombraAuth?: string;\n /** Concurrency */\n concurrency?: number;\n /** API URL for Transcend backend */\n transcendUrl?: string;\n /** Mark requests in silent mode before enriching */\n markSilent?: boolean;\n}): Promise<number> {\n // Create sombra instance to communicate with\n const sombra = await createSombraGotInstance(transcendUrl, auth, sombraAuth);\n const client = buildTranscendGraphQLClient(transcendUrl, auth);\n\n // Read from CSV\n logger.info(colors.magenta(`Reading \"${file}\" from disk`));\n const activeResults = readCsv(file, EnrichPrivacyRequest);\n\n // Notify Transcend\n logger.info(\n colors.magenta(`Enriching \"${activeResults.length}\" privacy requests.`),\n );\n\n let successCount = 0;\n let skippedCount = 0;\n let errorCount = 0;\n\n await map(\n activeResults,\n async (request, index) => {\n try {\n // Mark requests in silent mode before a certain date\n if (markSilent) {\n await makeGraphQLRequest(client, UPDATE_PRIVACY_REQUEST, {\n input: {\n id: request.id,\n isSilent: true,\n },\n });\n\n logger.info(\n colors.magenta(`Mark request as silent mode - ${request.id}`),\n );\n }\n\n const result = await enrichPrivacyRequest(\n sombra,\n request,\n enricherId,\n index,\n );\n if (result) {\n successCount += 1;\n } else {\n skippedCount += 1;\n }\n } catch (err) {\n errorCount += 1;\n }\n },\n { concurrency },\n );\n\n logger.info(\n colors.green(\n `Successfully notified Transcend! \\n Success count: ${successCount}.`,\n ),\n );\n\n if (skippedCount > 0) {\n logger.info(colors.magenta(`Skipped count: ${skippedCount}.`));\n }\n\n if (errorCount > 0) {\n logger.info(colors.red(`Error Count: ${errorCount}.`));\n throw new Error(`Failed to enrich: ${errorCount} requests.`);\n }\n\n return activeResults.length;\n}\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _chunkLCDYXJN6cjs = require('./chunk-LCDYXJN6.cjs');var _chunkQ7I37FJVcjs = require('./chunk-Q7I37FJV.cjs');var _iots = require('io-ts'); var t = _interopRequireWildcard(_iots);var _typeutils = require('@transcend-io/type-utils');var _privacytypes = require('@transcend-io/privacy-types');var _airgapjstypes = require('@transcend-io/airgap.js-types');var _internationalization = require('@transcend-io/internationalization');var Tt=t.type({title:t.string}),C= exports.b =t.intersection([t.type({name:t.string,value:t.string}),t.partial({isSecret:t.boolean})]),Pt= exports.c =t.type({title:t.string}),At= exports.d =t.intersection([t.type({name:t.string,description:t.string}),t.partial({"sso-department":t.string,"sso-group":t.string,"sso-title":t.string,users:t.array(t.string),scopes:t.array(_typeutils.valuesOf.call(void 0, _privacytypes.ScopeName))})]),Ot= exports.e =t.intersection([t.type({title:t.string,"output-identifiers":t.array(t.string)}),t.partial({description:t.string,url:t.string,type:_typeutils.valuesOf.call(void 0, _privacytypes.EnricherType),"input-identifier":t.string,testRegex:t.string,lookerQueryTitle:t.string,expirationDuration:t.number,transitionRequestStatus:_typeutils.valuesOf.call(void 0, _privacytypes.PreflightRequestStatus),phoneNumbers:t.array(t.string),regionList:t.array(_typeutils.valuesOf.call(void 0, {..._privacytypes.IsoCountryCode,..._privacytypes.IsoCountrySubdivisionCode})),"data-subjects":t.array(t.string),headers:t.array(C),"privacy-actions":t.array(_typeutils.valuesOf.call(void 0, _privacytypes.RequestAction))})]),v= exports.f =t.intersection([t.type({purpose:_typeutils.valuesOf.call(void 0, _privacytypes.ProcessingPurpose)}),t.partial({name:t.string})]),p= exports.g =t.intersection([t.type({category:_typeutils.valuesOf.call(void 0, _privacytypes.DataCategoryType)}),t.partial({name:t.string})]),Ct= exports.h =t.intersection([t.type({category:p,status:_typeutils.valuesOf.call(void 0, _privacytypes.SubDataPointDataSubCategoryGuessStatus),confidence:t.number}),t.partial({classifierVersion:t.number})]),Ce= exports.i =t.intersection([t.type({category:p,status:_typeutils.valuesOf.call(void 0, _privacytypes.UnstructuredSubDataPointRecommendationStatus),confidence:t.number}),t.partial({classifierVersion:t.number})]),vt= exports.j =t.intersection([t.type({name:t.string}),t.partial({description:t.string,color:t.string})]),St= exports.k =t.intersection([t.type({name:t.string,type:_typeutils.valuesOf.call(void 0, _privacytypes.AttributeKeyType)}),t.partial({description:t.string,resources:t.array(_typeutils.valuesOf.call(void 0, _privacytypes.AttributeSupportedResourceType)),values:t.array(vt)})]),r= exports.l =t.type({key:t.string,values:t.array(t.string)}),kt= exports.m =t.intersection([t.type({name:t.string,instructions:t.string,agentId:t.string,codeInterpreterEnabled:t.boolean,retrievalEnabled:t.boolean,"large-language-model":t.type({name:t.string,client:_typeutils.valuesOf.call(void 0, _privacytypes.LargeLanguageModelClient)})}),t.partial({description:t.string,prompt:t.string,owners:t.array(t.string),teams:t.array(t.string),"agent-functions":t.array(t.string),"agent-files":t.array(t.string)})]),Rt= exports.n =t.type({name:t.string,description:t.string,parameters:t.string}),wt= exports.o =t.intersection([t.type({name:t.string,fileId:t.string,size:t.number,purpose:_typeutils.valuesOf.call(void 0, _privacytypes.PromptFilePurpose)}),t.partial({description:t.string})]),ht= exports.p =t.intersection([t.type({title:t.string}),t.partial({description:t.string,dataProcessingAgreementLink:t.string,contactName:t.string,contactPhone:t.string,address:t.string,headquarterCountry:_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountryCode),headquarterSubDivision:_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountrySubdivisionCode),websiteUrl:t.string,businessEntity:t.string,owners:t.array(t.string),teams:t.array(t.string),attributes:t.array(r)})]),Dt= exports.q =t.intersection([t.type({name:t.string,category:_typeutils.valuesOf.call(void 0, _privacytypes.DataCategoryType)}),t.partial({description:t.string,regex:t.string,owners:t.array(t.string),teams:t.array(t.string),attributes:t.array(r)})]),Et= exports.r =t.intersection([t.type({name:t.string,purpose:_typeutils.valuesOf.call(void 0, _privacytypes.ProcessingPurpose)}),t.partial({description:t.string,owners:t.array(t.string),teams:t.array(t.string),attributes:t.array(r)})]),Nt= exports.s =t.type({title:t.string,content:t.string}),Mt= exports.t =t.type({title:t.string,content:t.string}),Lt= exports.u =t.type({title:t.string,description:t.string,prompts:t.array(t.string)}),qt= exports.v =t.intersection([t.type({key:t.string}),t.partial({title:t.string,description:t.union([t.string,t.null]),purposes:t.array(v),categories:t.array(p),"guessed-categories":t.array(Ct),"access-request-visibility-enabled":t.boolean,"erasure-request-redaction-enabled":t.boolean,attributes:t.array(r)})]),Ft= exports.w =t.intersection([t.type({key:t.string}),t.partial({path:t.array(t.string),title:t.string,description:t.string,"data-collection-tag":t.string,"privacy-action-queries":t.partial(_typeutils.applyEnum.call(void 0, _privacytypes.RequestActionObjectResolver,()=>t.string)),"privacy-actions":t.array(_typeutils.valuesOf.call(void 0, _privacytypes.RequestActionObjectResolver)),fields:t.array(qt),owners:t.array(t.string),teams:t.array(t.string)})]),Vt= exports.x =t.partial({"notify-email-address":t.string,"send-frequency":t.number,"send-type":_typeutils.valuesOf.call(void 0, _privacytypes.PromptAVendorEmailSendType),"include-identifiers-attachment":t.boolean,"completion-link-type":_typeutils.valuesOf.call(void 0, _privacytypes.PromptAVendorEmailCompletionLinkType),"manual-work-retry-frequency":t.string}),Kt= exports.y =t.intersection([t.type({title:t.string}),t.partial({description:t.string,address:t.string,headquarterCountry:_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountryCode),headquarterSubDivision:_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountrySubdivisionCode),dataProtectionOfficerName:t.string,dataProtectionOfficerEmail:t.string,attributes:t.array(r),owners:t.array(t.string),teams:t.array(t.string)})]),u= exports.z =t.partial({country:_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountryCode),countrySubDivision:_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountrySubdivisionCode)}),jt= exports.A =t.intersection([t.type({title:t.string}),t.partial({description:t.string,securityMeasureDetails:t.string,controllerships:t.array(_typeutils.valuesOf.call(void 0, _privacytypes.Controllership)),storageRegions:t.array(u),transferRegions:t.array(u),retentionType:_typeutils.valuesOf.call(void 0, _privacytypes.RetentionType),retentionPeriod:t.number,dataProtectionImpactAssessmentLink:t.string,dataProtectionImpactAssessmentStatus:_typeutils.valuesOf.call(void 0, _privacytypes.DataProtectionImpactAssessmentStatus),attributes:t.array(r),dataSiloTitles:t.array(t.string),dataSubjectTypes:t.array(t.string),teamNames:t.array(t.string),ownerEmails:t.array(t.string),processingSubPurposes:t.array(v),dataSubCategories:t.array(p),saaSCategories:t.array(t.string)})]),ve= exports.B =t.intersection([t.type({name:t.string,codePackageType:_typeutils.valuesOf.call(void 0, _privacytypes.CodePackageType)}),t.partial({description:t.string,repositoryUrl:t.string,catalogIntegrationName:t.string,documentationLinks:t.array(t.string),ownerEmails:t.array(t.string),teamNames:t.array(t.string)})]),Bt= exports.C =t.intersection([t.type({name:t.string}),t.partial({version:t.string,isDevDependency:t.boolean})]),Se= exports.D =t.intersection([t.type({name:t.string,type:_typeutils.valuesOf.call(void 0, _privacytypes.CodePackageType),relativePath:t.string,repositoryName:t.string}),t.partial({description:t.string,softwareDevelopmentKits:t.array(Bt),teamNames:t.array(t.string),ownerEmails:t.array(t.string)})]),ke= exports.E =t.intersection([t.type({name:t.string,url:t.string}),t.partial({description:t.string,teamNames:t.array(t.string),ownerEmails:t.array(t.string)})]),Gt= exports.F =t.intersection([t.type({type:t.string}),t.partial({active:t.boolean,title:t.string,adminDashboardDefaultSilentMode:t.boolean,actions:t.array(_typeutils.valuesOf.call(void 0, _privacytypes.RequestAction))})]),Ut= exports.G =t.intersection([t.type({type:_typeutils.valuesOf.call(void 0, _privacytypes.RequestAction)}),t.partial({skipSecondaryIfNoFiles:t.boolean,skipDownloadableStep:t.boolean,requiresReview:t.boolean,waitingPeriod:t.number,regionDetectionMethod:_typeutils.valuesOf.call(void 0, _privacytypes.RegionDetectionMethod),regionList:t.array(_typeutils.valuesOf.call(void 0, {..._privacytypes.IsoCountryCode,..._privacytypes.IsoCountrySubdivisionCode})),regionBlockList:t.array(_typeutils.valuesOf.call(void 0, {..._privacytypes.IsoCountryCode,..._privacytypes.IsoCountrySubdivisionCode}))})]),Qt= exports.H =t.intersection([t.type({name:t.string,type:t.string}),t.partial({regex:t.string,selectOptions:t.array(t.string),privacyCenterVisibility:t.array(_typeutils.valuesOf.call(void 0, _privacytypes.RequestAction)),dataSubjects:t.array(t.string),isRequiredInForm:t.boolean,placeholder:t.string,displayTitle:t.string,displayDescription:t.string,displayOrder:t.number,isUniqueOnPreferenceStore:t.boolean})]),zt= exports.I =t.intersection([t.type({value:t.string,type:_typeutils.valuesOf.call(void 0, _privacytypes.DataFlowScope)}),t.partial({description:t.string,trackingPurposes:t.array(t.string),service:t.string,status:_typeutils.valuesOf.call(void 0, _privacytypes.ConsentTrackerStatus),owners:t.array(t.string),teams:t.array(t.string),attributes:t.array(r)})]),Ht= exports.J =t.intersection([t.type({name:t.string}),t.partial({isRegex:t.boolean,description:t.string,trackingPurposes:t.array(t.string),service:t.string,status:_typeutils.valuesOf.call(void 0, _privacytypes.ConsentTrackerStatus),owners:t.array(t.string),teams:t.array(t.string),attributes:t.array(r)})]),Wt= exports.K =t.intersection([t.type({name:t.string}),t.partial({displayName:t.string,regions:t.array(u),onConsentExpiry:_typeutils.valuesOf.call(void 0, _airgapjstypes.OnConsentExpiry),consentExpiry:t.number,operator:_typeutils.valuesOf.call(void 0, _privacytypes.RegionsOperator),displayPriority:t.number,viewState:_typeutils.valuesOf.call(void 0, _airgapjstypes.InitialViewState),purposes:t.array(t.type({trackingType:t.string})),optedOutPurposes:t.array(t.type({trackingType:t.string})),browserLanguages:t.array(_typeutils.valuesOf.call(void 0, _airgapjstypes.BrowserLanguage)),browserTimeZones:t.array(_typeutils.valuesOf.call(void 0, _privacytypes.BrowserTimeZone))})]),Yt= exports.L =t.intersection([t.type({name:t.string}),t.partial({partition:t.string})]),Zt= exports.M =t.partial({version:t.string,bundleUrls:t.record(_typeutils.valuesOf.call(void 0, _privacytypes.ConsentBundleType),t.string),domains:t.array(t.string),partition:t.string,consentPrecedence:_typeutils.valuesOf.call(void 0, _privacytypes.ConsentPrecedenceOption),unknownRequestPolicy:_typeutils.valuesOf.call(void 0, _privacytypes.UnknownRequestPolicy),unknownCookiePolicy:_typeutils.valuesOf.call(void 0, _privacytypes.UnknownRequestPolicy),syncEndpoint:t.string,telemetryPartitioning:_typeutils.valuesOf.call(void 0, _privacytypes.TelemetryPartitionStrategy),signedIabAgreement:_typeutils.valuesOf.call(void 0, _privacytypes.SignedIabAgreementOption),experiences:t.array(Wt),theme:t.partial({primaryColor:t.string,fontColor:t.string,privacyPolicy:t.string,prompt:t.number}),syncGroups:t.string}),Jt= exports.N =t.partial({isDisabled:t.boolean,showPrivacyRequestButton:t.boolean,showDataPractices:t.boolean,showPolicies:t.boolean,showTrackingTechnologies:t.boolean,showCookies:t.boolean,showDataFlows:t.boolean,showConsentManager:t.boolean,showManageYourPrivacy:t.boolean,showMarketingPreferences:t.boolean,locales:t.array(_typeutils.valuesOf.call(void 0, _internationalization.LOCALE_KEY)),defaultLocale:_typeutils.valuesOf.call(void 0, _internationalization.LOCALE_KEY),preferBrowserDefaultLocale:t.boolean,supportEmail:t.string,replyToEmail:t.string,useNoReplyEmailAddress:t.boolean,useCustomEmailDomain:t.boolean,transformAccessReportJsonToCsv:t.boolean,theme:t.partial({colors:t.partial(_typeutils.applyEnum.call(void 0, _privacytypes.ConfigurableColorPaletteColor,()=>t.string)),componentStyles:_privacytypes.PrivacyCenterComponentStyles,textStyles:_privacytypes.PrivacyCenterTextStyles})}),_t= exports.O =t.intersection([t.type({title:t.string}),t.partial({effectiveOn:t.string,disableEffectiveOn:t.boolean,content:t.string,disabledLocales:t.array(_typeutils.valuesOf.call(void 0, _internationalization.LOCALE_KEY))})]),Xt= exports.P =t.intersection([t.type({id:t.string}),t.partial({targetReactIntlId:t.string,defaultMessage:t.string,translations:t.partial(_typeutils.applyEnum.call(void 0, _internationalization.LOCALE_KEY,()=>t.string))})]),$t= exports.Q =t.intersection([t.type({title:t.string,integrationName:t.string}),t.partial({"outer-type":t.string,description:t.string,url:t.string,"api-key-title":t.string,headers:t.array(C),"data-subjects":t.array(t.string),"identity-keys":t.array(t.string),"deletion-dependencies":t.array(t.string),owners:t.array(t.string),teams:t.array(t.string),disabled:t.boolean,datapoints:t.array(Ft),"email-settings":Vt,country:_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountryCode),countrySubDivision:_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountrySubdivisionCode),attributes:t.array(r),businessEntityTitles:t.array(t.string)})]),te= exports.R =t.intersection([t.type({title:t.string,productLine:_typeutils.valuesOf.call(void 0, _privacytypes.TranscendProduct)}),t.partial({description:t.string,hidden:t.boolean})]),ee= exports.S =t.intersection([t.type({title:t.string,type:_typeutils.valuesOf.call(void 0, _privacytypes.ActionItemCode),collections:t.array(t.string)}),t.partial({priority:_typeutils.valuesOf.call(void 0, _privacytypes.ActionItemPriorityOverride),customerExperienceActionItemId:t.string,dueDate:t.string,resolved:t.boolean,notes:t.string,link:t.string,users:t.array(t.string),teams:t.array(t.string),attributes:t.array(r)})]),S= exports.T =t.intersection([t.type({"depends-on-question-reference-id":t.string,"comparison-operator":_typeutils.valuesOf.call(void 0, _privacytypes.ComparisonOperator)}),t.partial({"comparison-operands":t.array(t.string)})]),re= exports.U =t.recursion("AssessmentNestedRuleInput",w=>t.intersection([t.type({"logic-operator":_typeutils.valuesOf.call(void 0, _privacytypes.LogicOperator)}),t.partial({rules:t.array(S),"nested-rules":t.array(w)})])),ne= exports.V =t.intersection([t.type({action:_typeutils.valuesOf.call(void 0, _privacytypes.AssessmentsDisplayLogicAction)}),t.partial({rule:S,"nested-rule":re})]),Re= exports.W =t.partial({"risk-level":t.string,"risk-matrix-column":t.string,"risk-matrix-row":t.string}),se= exports.X =t.intersection([t.type({"comparison-operands":t.array(t.string),"comparison-operator":_typeutils.valuesOf.call(void 0, _privacytypes.ComparisonOperator)}),t.partial({"risk-level":t.string,"risk-matrix-column":t.string,"risk-matrix-row":t.string})]),ie= exports.Y =t.type({value:t.string}),oe= exports.Z =t.intersection([t.type({title:t.string,type:_typeutils.valuesOf.call(void 0, _privacytypes.AssessmentQuestionType)}),t.partial({"sub-type":_typeutils.valuesOf.call(void 0, _privacytypes.AssessmentQuestionSubType),placeholder:t.string,description:t.string,"is-required":t.boolean,"reference-id":t.string,"display-logic":ne,"risk-logic":t.array(se),"risk-categories":t.array(t.string),"risk-framework":t.string,"answer-options":t.array(ie),"selected-answers":t.array(t.string),"allowed-mime-types":t.array(t.string),"allow-select-other":t.boolean,"sync-model":_typeutils.valuesOf.call(void 0, _privacytypes.AssessmentSyncModel),"sync-column":_typeutils.valuesOf.call(void 0, _privacytypes.AssessmentSyncColumn),"attribute-key":t.string,"require-risk-evaluation":t.boolean,"require-risk-matrix-evaluation":t.boolean})]),k= exports._ =t.intersection([t.type({title:t.string,questions:t.array(oe)}),t.partial({assignees:t.array(t.string),"external-assignees":t.array(t.string),status:t.string,"is-reviewed":t.boolean})]),R= exports.$ =t.type({type:_typeutils.valuesOf.call(void 0, _privacytypes.RetentionScheduleType),"duration-days":t.number,operand:_typeutils.valuesOf.call(void 0, _privacytypes.RetentionScheduleOperation)}),ae= exports.aa =t.intersection([t.type({title:t.string}),t.partial({sections:t.array(k),description:t.string,status:_typeutils.valuesOf.call(void 0, _privacytypes.AssessmentFormTemplateStatus),source:_typeutils.valuesOf.call(void 0, _privacytypes.AssessmentFormTemplateSource),creator:t.string,locked:t.boolean,"parent-id":t.string,archived:t.boolean,"created-at":t.string,"attribute-keys":t.array(t.string),"retention-schedule":R,templates:t.array(t.string)})]),x= exports.ba =t.type({title:t.string,type:_typeutils.valuesOf.call(void 0, _privacytypes.AttributeSupportedResourceType)}),pe= exports.ca =t.intersection([t.type({title:t.string,group:t.string}),t.partial({sections:t.array(k),creator:t.string,description:t.string,status:_typeutils.valuesOf.call(void 0, _privacytypes.AssessmentFormStatus),assignees:t.array(t.string),"external-assignees":t.array(t.string),reviewers:t.array(t.string),locked:t.boolean,archived:t.boolean,external:t.boolean,"title-is-internal":t.boolean,"due-date":t.string,"created-at":t.string,"assigned-at":t.string,"submitted-at":t.string,"approved-at":t.string,"rejected-at":t.string,resources:t.array(x),rows:t.array(x),"retention-schedule":R,attributes:t.array(r)})]),ye= exports.da =t.type({title:t.string,slug:t.string}),ue= exports.ea =t.intersection([t.type({type:_typeutils.valuesOf.call(void 0, _privacytypes.PreferenceTopicType),title:t.string,description:t.string}),t.partial({"default-configuration":t.string,"show-in-privacy-center":t.boolean,options:t.array(ye)})]),ce= exports.fa =t.intersection([t.type({trackingType:t.string,title:t.string,name:t.string}),t.partial({description:t.string,"is-active":t.boolean,configurable:t.boolean,"display-order":t.number,"show-in-privacy-center":t.boolean,"show-in-consent-manager":t.boolean,"preference-topics":t.array(ue),"auth-level":_typeutils.valuesOf.call(void 0, _privacytypes.PreferenceStoreAuthLevel),"opt-out-signals":t.array(_typeutils.valuesOf.call(void 0, _airgapjstypes.UserPrivacySignalEnum)),"default-consent":_typeutils.valuesOf.call(void 0, _privacytypes.DefaultConsentOption)})]),we= exports.ga =t.partial({"action-items":t.array(ee),"action-item-collections":t.array(te),"api-keys":t.array(Pt),teams:t.array(At),templates:t.array(Tt),enrichers:t.array(Ot),attributes:t.array(St),"business-entities":t.array(Kt),vendors:t.array(ht),"data-categories":t.array(Dt),"processing-purposes":t.array(Et),"data-subjects":t.array(Gt),actions:t.array(Ut),identifiers:t.array(Qt),"data-silos":t.array($t),"data-flows":t.array(zt),cookies:t.array(Ht),"consent-manager":Zt,prompts:t.array(Nt),"prompt-partials":t.array(Mt),"prompt-groups":t.array(Lt),agents:t.array(kt),"agent-functions":t.array(Rt),"agent-files":t.array(wt),"privacy-center":Jt,policies:t.array(_t),messages:t.array(Xt),partitions:t.array(Yt),"assessment-templates":t.array(ae),assessments:t.array(pe),"processing-activities":t.array(jt),purposes:t.array(ce)}),he= exports.ha =t.type({organizationName:t.string,apiKey:t.string,organizationId:t.string}),De= exports.ia =t.intersection([t.type({"Connections Made To":t.string,Type:_typeutils.valuesOf.call(void 0, _privacytypes.DataFlowScope),Purpose:t.string}),t.partial({Service:t.string,Notes:t.string,Owners:t.string,Teams:t.string,Status:_typeutils.valuesOf.call(void 0, _privacytypes.ConsentTrackerStatus)}),t.record(t.string,t.string)]),Ee= exports.ja =t.intersection([t.type({Name:t.string,Purpose:t.string}),t.partial({Service:t.string,Notes:t.string,Owners:t.string,Teams:t.string,Status:_typeutils.valuesOf.call(void 0, _privacytypes.ConsentTrackerStatus)}),t.record(t.string,t.string)]),Ne= exports.ka =t.type({title:t.string,description:t.string,cookies:t.array(t.type({name:t.string,trackingPurposes:t.array(t.string)})),dataFlows:t.array(t.type({value:t.string,type:_typeutils.valuesOf.call(void 0, _privacytypes.DataFlowScope),trackingPurposes:t.array(t.string)}))}),Me= exports.la =_typeutils.valuesOf.call(void 0, _chunkQ7I37FJVcjs.e),ge= exports.ma =_chunkLCDYXJN6cjs.a.call(void 0, {TRouteName:_typeutils.valuesOf.call(void 0, _chunkQ7I37FJVcjs.f)}),Le=_typeutils.valuesOf.call(void 0, _chunkQ7I37FJVcjs.f),le= exports.na =t.array(ge),me= exports.oa =_chunkLCDYXJN6cjs.b.call(void 0, {TEnabledRoutes:le}),qe= exports.pa =t.partial({enabledIntegrations:t.partial({openAI:me})}),Fe= exports.qa =t.partial({promptRunName:t.string,promptId:t.string,promptTitle:t.string,promptGroupId:t.string,promptGroupTitle:t.string,runByEmployeeEmail:t.string,applicationId:t.string,applicationName:t.string,codePackageName:t.string,repositoryName:t.string,applicationUserCoreIdentifier:t.string,applicationUserName:t.string,slackMessageTs:t.string,slackTeamId:t.string,slackChannelId:t.string,slackChannelName:t.string}),de=t.intersection([t.type({title:t.string}),t.partial({value:t.string})]),Ie=t.type({columns:t.array(de)}),Ve= exports.ra =t.partial({rows:t.array(Ie),json:t.string});exports.a = Tt; exports.b = C; exports.c = Pt; exports.d = At; exports.e = Ot; exports.f = v; exports.g = p; exports.h = Ct; exports.i = Ce; exports.j = vt; exports.k = St; exports.l = r; exports.m = kt; exports.n = Rt; exports.o = wt; exports.p = ht; exports.q = Dt; exports.r = Et; exports.s = Nt; exports.t = Mt; exports.u = Lt; exports.v = qt; exports.w = Ft; exports.x = Vt; exports.y = Kt; exports.z = u; exports.A = jt; exports.B = ve; exports.C = Bt; exports.D = Se; exports.E = ke; exports.F = Gt; exports.G = Ut; exports.H = Qt; exports.I = zt; exports.J = Ht; exports.K = Wt; exports.L = Yt; exports.M = Zt; exports.N = Jt; exports.O = _t; exports.P = Xt; exports.Q = $t; exports.R = te; exports.S = ee; exports.T = S; exports.U = re; exports.V = ne; exports.W = Re; exports.X = se; exports.Y = ie; exports.Z = oe; exports._ = k; exports.$ = R; exports.aa = ae; exports.ba = x; exports.ca = pe; exports.da = ye; exports.ea = ue; exports.fa = ce; exports.ga = we; exports.ha = he; exports.ia = De; exports.ja = Ee; exports.ka = Ne; exports.la = Me; exports.ma = ge; exports.na = le; exports.oa = me; exports.pa = qe; exports.qa = Fe; exports.ra = Ve;
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } }var _chunkLCDYXJN6cjs = require('./chunk-LCDYXJN6.cjs');var _chunkQ7I37FJVcjs = require('./chunk-Q7I37FJV.cjs');var _iots = require('io-ts'); var t = _interopRequireWildcard(_iots);var _typeutils = require('@transcend-io/type-utils');var _privacytypes = require('@transcend-io/privacy-types');var _airgapjstypes = require('@transcend-io/airgap.js-types');var _internationalization = require('@transcend-io/internationalization');var Tt=t.type({title:t.string}),C= exports.b =t.intersection([t.type({name:t.string,value:t.string}),t.partial({isSecret:t.boolean})]),Pt= exports.c =t.type({title:t.string}),At= exports.d =t.intersection([t.type({name:t.string,description:t.string}),t.partial({"sso-department":t.string,"sso-group":t.string,"sso-title":t.string,users:t.array(t.string),scopes:t.array(_typeutils.valuesOf.call(void 0, _privacytypes.ScopeName))})]),Ot= exports.e =t.intersection([t.type({title:t.string,"output-identifiers":t.array(t.string)}),t.partial({description:t.string,url:t.string,type:_typeutils.valuesOf.call(void 0, _privacytypes.EnricherType),"input-identifier":t.string,testRegex:t.string,lookerQueryTitle:t.string,expirationDuration:t.number,transitionRequestStatus:_typeutils.valuesOf.call(void 0, _privacytypes.PreflightRequestStatus),phoneNumbers:t.array(t.string),regionList:t.array(_typeutils.valuesOf.call(void 0, {..._privacytypes.IsoCountryCode,..._privacytypes.IsoCountrySubdivisionCode})),"data-subjects":t.array(t.string),headers:t.array(C),"privacy-actions":t.array(_typeutils.valuesOf.call(void 0, _privacytypes.RequestAction))})]),v= exports.f =t.intersection([t.type({purpose:_typeutils.valuesOf.call(void 0, _privacytypes.ProcessingPurpose)}),t.partial({name:t.string})]),p= exports.g =t.intersection([t.type({category:_typeutils.valuesOf.call(void 0, _privacytypes.DataCategoryType)}),t.partial({name:t.string})]),Ct= exports.h =t.intersection([t.type({category:p,status:_typeutils.valuesOf.call(void 0, _privacytypes.SubDataPointDataSubCategoryGuessStatus),confidence:t.number}),t.partial({classifierVersion:t.number})]),Ce= exports.i =t.intersection([t.type({category:p,status:_typeutils.valuesOf.call(void 0, _privacytypes.UnstructuredSubDataPointRecommendationStatus),confidence:t.number}),t.partial({classifierVersion:t.number})]),vt= exports.j =t.intersection([t.type({name:t.string}),t.partial({description:t.string,color:t.string})]),St= exports.k =t.intersection([t.type({name:t.string,type:_typeutils.valuesOf.call(void 0, _privacytypes.AttributeKeyType)}),t.partial({description:t.string,resources:t.array(_typeutils.valuesOf.call(void 0, _privacytypes.AttributeSupportedResourceType)),values:t.array(vt)})]),r= exports.l =t.type({key:t.string,values:t.array(t.string)}),kt= exports.m =t.intersection([t.type({name:t.string,instructions:t.string,agentId:t.string,codeInterpreterEnabled:t.boolean,retrievalEnabled:t.boolean,"large-language-model":t.type({name:t.string,client:_typeutils.valuesOf.call(void 0, _privacytypes.LargeLanguageModelClient)})}),t.partial({description:t.string,prompt:t.string,owners:t.array(t.string),teams:t.array(t.string),"agent-functions":t.array(t.string),"agent-files":t.array(t.string)})]),Rt= exports.n =t.type({name:t.string,description:t.string,parameters:t.string}),wt= exports.o =t.intersection([t.type({name:t.string,fileId:t.string,size:t.number,purpose:_typeutils.valuesOf.call(void 0, _privacytypes.PromptFilePurpose)}),t.partial({description:t.string})]),ht= exports.p =t.intersection([t.type({title:t.string}),t.partial({description:t.string,dataProcessingAgreementLink:t.string,contactName:t.string,contactPhone:t.string,address:t.string,headquarterCountry:_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountryCode),headquarterSubDivision:_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountrySubdivisionCode),websiteUrl:t.string,businessEntity:t.string,owners:t.array(t.string),teams:t.array(t.string),attributes:t.array(r)})]),Dt= exports.q =t.intersection([t.type({name:t.string,category:_typeutils.valuesOf.call(void 0, _privacytypes.DataCategoryType)}),t.partial({description:t.string,regex:t.string,owners:t.array(t.string),teams:t.array(t.string),attributes:t.array(r)})]),Et= exports.r =t.intersection([t.type({name:t.string,purpose:_typeutils.valuesOf.call(void 0, _privacytypes.ProcessingPurpose)}),t.partial({description:t.string,owners:t.array(t.string),teams:t.array(t.string),attributes:t.array(r)})]),Nt= exports.s =t.type({title:t.string,content:t.string}),Mt= exports.t =t.type({title:t.string,content:t.string}),Lt= exports.u =t.type({title:t.string,description:t.string,prompts:t.array(t.string)}),qt= exports.v =t.intersection([t.type({key:t.string}),t.partial({title:t.string,description:t.union([t.string,t.null]),purposes:t.array(v),categories:t.array(p),"guessed-categories":t.array(Ct),"access-request-visibility-enabled":t.boolean,"erasure-request-redaction-enabled":t.boolean,attributes:t.array(r)})]),Ft= exports.w =t.intersection([t.type({key:t.string}),t.partial({path:t.array(t.string),title:t.string,description:t.string,"data-collection-tag":t.string,"privacy-action-queries":t.partial(_typeutils.applyEnum.call(void 0, _privacytypes.RequestActionObjectResolver,()=>t.string)),"privacy-actions":t.array(_typeutils.valuesOf.call(void 0, _privacytypes.RequestActionObjectResolver)),fields:t.array(qt),owners:t.array(t.string),teams:t.array(t.string)})]),Vt= exports.x =t.partial({"notify-email-address":t.string,"send-frequency":t.number,"send-type":_typeutils.valuesOf.call(void 0, _privacytypes.PromptAVendorEmailSendType),"include-identifiers-attachment":t.boolean,"completion-link-type":_typeutils.valuesOf.call(void 0, _privacytypes.PromptAVendorEmailCompletionLinkType),"manual-work-retry-frequency":t.string}),Kt= exports.y =t.intersection([t.type({title:t.string}),t.partial({description:t.string,address:t.string,headquarterCountry:_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountryCode),headquarterSubDivision:_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountrySubdivisionCode),dataProtectionOfficerName:t.string,dataProtectionOfficerEmail:t.string,attributes:t.array(r),owners:t.array(t.string),teams:t.array(t.string)})]),u= exports.z =t.partial({country:_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountryCode),countrySubDivision:_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountrySubdivisionCode)}),jt= exports.A =t.intersection([t.type({title:t.string}),t.partial({description:t.string,securityMeasureDetails:t.string,controllerships:t.array(_typeutils.valuesOf.call(void 0, _privacytypes.Controllership)),storageRegions:t.array(u),transferRegions:t.array(u),retentionType:_typeutils.valuesOf.call(void 0, _privacytypes.RetentionType),retentionPeriod:t.number,dataProtectionImpactAssessmentLink:t.string,dataProtectionImpactAssessmentStatus:_typeutils.valuesOf.call(void 0, _privacytypes.DataProtectionImpactAssessmentStatus),attributes:t.array(r),dataSiloTitles:t.array(t.string),dataSubjectTypes:t.array(t.string),teamNames:t.array(t.string),ownerEmails:t.array(t.string),processingSubPurposes:t.array(v),dataSubCategories:t.array(p),saaSCategories:t.array(t.string)})]),ve= exports.B =t.intersection([t.type({name:t.string,codePackageType:_typeutils.valuesOf.call(void 0, _privacytypes.CodePackageType)}),t.partial({description:t.string,repositoryUrl:t.string,catalogIntegrationName:t.string,documentationLinks:t.array(t.string),ownerEmails:t.array(t.string),teamNames:t.array(t.string)})]),Bt= exports.C =t.intersection([t.type({name:t.string}),t.partial({version:t.string,isDevDependency:t.boolean})]),Se= exports.D =t.intersection([t.type({name:t.string,type:_typeutils.valuesOf.call(void 0, _privacytypes.CodePackageType),relativePath:t.string,repositoryName:t.string}),t.partial({description:t.string,softwareDevelopmentKits:t.array(Bt),teamNames:t.array(t.string),ownerEmails:t.array(t.string)})]),ke= exports.E =t.intersection([t.type({name:t.string,url:t.string}),t.partial({description:t.string,teamNames:t.array(t.string),ownerEmails:t.array(t.string)})]),Gt= exports.F =t.intersection([t.type({type:t.string}),t.partial({active:t.boolean,title:t.string,adminDashboardDefaultSilentMode:t.boolean,actions:t.array(_typeutils.valuesOf.call(void 0, _privacytypes.RequestAction))})]),Ut= exports.G =t.intersection([t.type({type:_typeutils.valuesOf.call(void 0, _privacytypes.RequestAction)}),t.partial({skipSecondaryIfNoFiles:t.boolean,skipDownloadableStep:t.boolean,requiresReview:t.boolean,waitingPeriod:t.number,regionDetectionMethod:_typeutils.valuesOf.call(void 0, _privacytypes.RegionDetectionMethod),regionList:t.array(_typeutils.valuesOf.call(void 0, {..._privacytypes.IsoCountryCode,..._privacytypes.IsoCountrySubdivisionCode})),regionBlockList:t.array(_typeutils.valuesOf.call(void 0, {..._privacytypes.IsoCountryCode,..._privacytypes.IsoCountrySubdivisionCode}))})]),Qt= exports.H =t.intersection([t.type({name:t.string,type:t.string}),t.partial({regex:t.string,selectOptions:t.array(t.string),privacyCenterVisibility:t.array(_typeutils.valuesOf.call(void 0, _privacytypes.RequestAction)),dataSubjects:t.array(t.string),isRequiredInForm:t.boolean,placeholder:t.string,displayTitle:t.string,displayDescription:t.string,displayOrder:t.number,isUniqueOnPreferenceStore:t.boolean})]),zt= exports.I =t.intersection([t.type({value:t.string,type:_typeutils.valuesOf.call(void 0, _privacytypes.DataFlowScope)}),t.partial({description:t.string,trackingPurposes:t.array(t.string),service:t.string,status:_typeutils.valuesOf.call(void 0, _privacytypes.ConsentTrackerStatus),owners:t.array(t.string),teams:t.array(t.string),attributes:t.array(r)})]),Ht= exports.J =t.intersection([t.type({name:t.string}),t.partial({isRegex:t.boolean,description:t.string,trackingPurposes:t.array(t.string),service:t.string,status:_typeutils.valuesOf.call(void 0, _privacytypes.ConsentTrackerStatus),owners:t.array(t.string),teams:t.array(t.string),attributes:t.array(r)})]),Wt= exports.K =t.intersection([t.type({name:t.string}),t.partial({displayName:t.string,regions:t.array(u),onConsentExpiry:_typeutils.valuesOf.call(void 0, _airgapjstypes.OnConsentExpiry),consentExpiry:t.number,operator:_typeutils.valuesOf.call(void 0, _privacytypes.RegionsOperator),displayPriority:t.number,viewState:_typeutils.valuesOf.call(void 0, _airgapjstypes.InitialViewState),purposes:t.array(t.type({trackingType:t.string})),optedOutPurposes:t.array(t.type({trackingType:t.string})),browserLanguages:t.array(_typeutils.valuesOf.call(void 0, _airgapjstypes.BrowserLanguage)),browserTimeZones:t.array(_typeutils.valuesOf.call(void 0, _privacytypes.BrowserTimeZone))})]),Yt= exports.L =t.intersection([t.type({name:t.string}),t.partial({partition:t.string})]),Zt= exports.M =t.partial({version:t.string,bundleUrls:t.record(_typeutils.valuesOf.call(void 0, _privacytypes.ConsentBundleType),t.string),domains:t.array(t.string),partition:t.string,consentPrecedence:_typeutils.valuesOf.call(void 0, _privacytypes.ConsentPrecedenceOption),unknownRequestPolicy:_typeutils.valuesOf.call(void 0, _privacytypes.UnknownRequestPolicy),unknownCookiePolicy:_typeutils.valuesOf.call(void 0, _privacytypes.UnknownRequestPolicy),syncEndpoint:t.string,telemetryPartitioning:_typeutils.valuesOf.call(void 0, _privacytypes.TelemetryPartitionStrategy),signedIabAgreement:_typeutils.valuesOf.call(void 0, _privacytypes.SignedIabAgreementOption),experiences:t.array(Wt),theme:t.partial({primaryColor:t.string,fontColor:t.string,privacyPolicy:t.string,prompt:t.number}),syncGroups:t.string}),Jt= exports.N =t.partial({isDisabled:t.boolean,showPrivacyRequestButton:t.boolean,showDataPractices:t.boolean,showPolicies:t.boolean,showTrackingTechnologies:t.boolean,showCookies:t.boolean,showDataFlows:t.boolean,showConsentManager:t.boolean,showManageYourPrivacy:t.boolean,showMarketingPreferences:t.boolean,locales:t.array(_typeutils.valuesOf.call(void 0, _internationalization.LOCALE_KEY)),defaultLocale:_typeutils.valuesOf.call(void 0, _internationalization.LOCALE_KEY),preferBrowserDefaultLocale:t.boolean,supportEmail:t.string,replyToEmail:t.string,useNoReplyEmailAddress:t.boolean,useCustomEmailDomain:t.boolean,transformAccessReportJsonToCsv:t.boolean,theme:t.partial({colors:t.partial(_typeutils.applyEnum.call(void 0, _privacytypes.ConfigurableColorPaletteColor,()=>t.string)),componentStyles:_privacytypes.PrivacyCenterComponentStyles,textStyles:_privacytypes.PrivacyCenterTextStyles})}),_t= exports.O =t.intersection([t.type({title:t.string}),t.partial({effectiveOn:t.string,disableEffectiveOn:t.boolean,content:t.string,disabledLocales:t.array(_typeutils.valuesOf.call(void 0, _internationalization.LOCALE_KEY))})]),Xt= exports.P =t.intersection([t.type({id:t.string}),t.partial({targetReactIntlId:t.string,description:t.string,defaultMessage:t.string,translations:t.partial(_typeutils.applyEnum.call(void 0, _internationalization.LOCALE_KEY,()=>t.string))})]),$t= exports.Q =t.intersection([t.type({title:t.string,integrationName:t.string}),t.partial({"outer-type":t.string,description:t.string,url:t.string,"api-key-title":t.string,headers:t.array(C),"data-subjects":t.array(t.string),"identity-keys":t.array(t.string),"deletion-dependencies":t.array(t.string),owners:t.array(t.string),teams:t.array(t.string),disabled:t.boolean,datapoints:t.array(Ft),"email-settings":Vt,country:_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountryCode),countrySubDivision:_typeutils.valuesOf.call(void 0, _privacytypes.IsoCountrySubdivisionCode),attributes:t.array(r),businessEntityTitles:t.array(t.string)})]),te= exports.R =t.intersection([t.type({title:t.string,productLine:_typeutils.valuesOf.call(void 0, _privacytypes.TranscendProduct)}),t.partial({description:t.string,hidden:t.boolean})]),ee= exports.S =t.intersection([t.type({title:t.string,type:_typeutils.valuesOf.call(void 0, _privacytypes.ActionItemCode),collections:t.array(t.string)}),t.partial({priority:_typeutils.valuesOf.call(void 0, _privacytypes.ActionItemPriorityOverride),customerExperienceActionItemId:t.string,dueDate:t.string,resolved:t.boolean,notes:t.string,link:t.string,users:t.array(t.string),teams:t.array(t.string),attributes:t.array(r)})]),S= exports.T =t.intersection([t.type({"depends-on-question-reference-id":t.string,"comparison-operator":_typeutils.valuesOf.call(void 0, _privacytypes.ComparisonOperator)}),t.partial({"comparison-operands":t.array(t.string)})]),re= exports.U =t.recursion("AssessmentNestedRuleInput",w=>t.intersection([t.type({"logic-operator":_typeutils.valuesOf.call(void 0, _privacytypes.LogicOperator)}),t.partial({rules:t.array(S),"nested-rules":t.array(w)})])),ne= exports.V =t.intersection([t.type({action:_typeutils.valuesOf.call(void 0, _privacytypes.AssessmentsDisplayLogicAction)}),t.partial({rule:S,"nested-rule":re})]),Re= exports.W =t.partial({"risk-level":t.string,"risk-matrix-column":t.string,"risk-matrix-row":t.string}),se= exports.X =t.intersection([t.type({"comparison-operands":t.array(t.string),"comparison-operator":_typeutils.valuesOf.call(void 0, _privacytypes.ComparisonOperator)}),t.partial({"risk-level":t.string,"risk-matrix-column":t.string,"risk-matrix-row":t.string})]),ie= exports.Y =t.type({value:t.string}),oe= exports.Z =t.intersection([t.type({title:t.string,type:_typeutils.valuesOf.call(void 0, _privacytypes.AssessmentQuestionType)}),t.partial({"sub-type":_typeutils.valuesOf.call(void 0, _privacytypes.AssessmentQuestionSubType),placeholder:t.string,description:t.string,"is-required":t.boolean,"reference-id":t.string,"display-logic":ne,"risk-logic":t.array(se),"risk-categories":t.array(t.string),"risk-framework":t.string,"answer-options":t.array(ie),"selected-answers":t.array(t.string),"allowed-mime-types":t.array(t.string),"allow-select-other":t.boolean,"sync-model":_typeutils.valuesOf.call(void 0, _privacytypes.AssessmentSyncModel),"sync-column":_typeutils.valuesOf.call(void 0, _privacytypes.AssessmentSyncColumn),"attribute-key":t.string,"require-risk-evaluation":t.boolean,"require-risk-matrix-evaluation":t.boolean})]),k= exports._ =t.intersection([t.type({title:t.string,questions:t.array(oe)}),t.partial({assignees:t.array(t.string),"external-assignees":t.array(t.string),status:t.string,"is-reviewed":t.boolean})]),R= exports.$ =t.type({type:_typeutils.valuesOf.call(void 0, _privacytypes.RetentionScheduleType),"duration-days":t.number,operand:_typeutils.valuesOf.call(void 0, _privacytypes.RetentionScheduleOperation)}),ae= exports.aa =t.intersection([t.type({title:t.string}),t.partial({sections:t.array(k),description:t.string,status:_typeutils.valuesOf.call(void 0, _privacytypes.AssessmentFormTemplateStatus),source:_typeutils.valuesOf.call(void 0, _privacytypes.AssessmentFormTemplateSource),creator:t.string,locked:t.boolean,"parent-id":t.string,archived:t.boolean,"created-at":t.string,"attribute-keys":t.array(t.string),"retention-schedule":R,templates:t.array(t.string)})]),x= exports.ba =t.type({title:t.string,type:_typeutils.valuesOf.call(void 0, _privacytypes.AttributeSupportedResourceType)}),pe= exports.ca =t.intersection([t.type({title:t.string,group:t.string}),t.partial({sections:t.array(k),creator:t.string,description:t.string,status:_typeutils.valuesOf.call(void 0, _privacytypes.AssessmentFormStatus),assignees:t.array(t.string),"external-assignees":t.array(t.string),reviewers:t.array(t.string),locked:t.boolean,archived:t.boolean,external:t.boolean,"title-is-internal":t.boolean,"due-date":t.string,"created-at":t.string,"assigned-at":t.string,"submitted-at":t.string,"approved-at":t.string,"rejected-at":t.string,resources:t.array(x),rows:t.array(x),"retention-schedule":R,attributes:t.array(r)})]),ye= exports.da =t.type({title:t.string,slug:t.string}),ue= exports.ea =t.intersection([t.type({type:_typeutils.valuesOf.call(void 0, _privacytypes.PreferenceTopicType),title:t.string,description:t.string}),t.partial({"default-configuration":t.string,"show-in-privacy-center":t.boolean,options:t.array(ye)})]),ce= exports.fa =t.intersection([t.type({trackingType:t.string,title:t.string,name:t.string}),t.partial({description:t.string,"is-active":t.boolean,configurable:t.boolean,"display-order":t.number,"show-in-privacy-center":t.boolean,"show-in-consent-manager":t.boolean,"preference-topics":t.array(ue),"auth-level":_typeutils.valuesOf.call(void 0, _privacytypes.PreferenceStoreAuthLevel),"opt-out-signals":t.array(_typeutils.valuesOf.call(void 0, _airgapjstypes.UserPrivacySignalEnum)),"default-consent":_typeutils.valuesOf.call(void 0, _privacytypes.DefaultConsentOption)})]),we= exports.ga =t.partial({"action-items":t.array(ee),"action-item-collections":t.array(te),"api-keys":t.array(Pt),teams:t.array(At),templates:t.array(Tt),enrichers:t.array(Ot),attributes:t.array(St),"business-entities":t.array(Kt),vendors:t.array(ht),"data-categories":t.array(Dt),"processing-purposes":t.array(Et),"data-subjects":t.array(Gt),actions:t.array(Ut),identifiers:t.array(Qt),"data-silos":t.array($t),"data-flows":t.array(zt),cookies:t.array(Ht),"consent-manager":Zt,prompts:t.array(Nt),"prompt-partials":t.array(Mt),"prompt-groups":t.array(Lt),agents:t.array(kt),"agent-functions":t.array(Rt),"agent-files":t.array(wt),"privacy-center":Jt,policies:t.array(_t),messages:t.array(Xt),partitions:t.array(Yt),"assessment-templates":t.array(ae),assessments:t.array(pe),"processing-activities":t.array(jt),purposes:t.array(ce)}),he= exports.ha =t.type({organizationName:t.string,apiKey:t.string,organizationId:t.string}),De= exports.ia =t.intersection([t.type({"Connections Made To":t.string,Type:_typeutils.valuesOf.call(void 0, _privacytypes.DataFlowScope),Purpose:t.string}),t.partial({Service:t.string,Notes:t.string,Owners:t.string,Teams:t.string,Status:_typeutils.valuesOf.call(void 0, _privacytypes.ConsentTrackerStatus)}),t.record(t.string,t.string)]),Ee= exports.ja =t.intersection([t.type({Name:t.string,Purpose:t.string}),t.partial({Service:t.string,Notes:t.string,Owners:t.string,Teams:t.string,Status:_typeutils.valuesOf.call(void 0, _privacytypes.ConsentTrackerStatus)}),t.record(t.string,t.string)]),Ne= exports.ka =t.type({title:t.string,description:t.string,cookies:t.array(t.type({name:t.string,trackingPurposes:t.array(t.string)})),dataFlows:t.array(t.type({value:t.string,type:_typeutils.valuesOf.call(void 0, _privacytypes.DataFlowScope),trackingPurposes:t.array(t.string)}))}),Me= exports.la =_typeutils.valuesOf.call(void 0, _chunkQ7I37FJVcjs.e),ge= exports.ma =_chunkLCDYXJN6cjs.a.call(void 0, {TRouteName:_typeutils.valuesOf.call(void 0, _chunkQ7I37FJVcjs.f)}),Le=_typeutils.valuesOf.call(void 0, _chunkQ7I37FJVcjs.f),le= exports.na =t.array(ge),me= exports.oa =_chunkLCDYXJN6cjs.b.call(void 0, {TEnabledRoutes:le}),qe= exports.pa =t.partial({enabledIntegrations:t.partial({openAI:me})}),Fe= exports.qa =t.partial({promptRunName:t.string,promptId:t.string,promptTitle:t.string,promptGroupId:t.string,promptGroupTitle:t.string,runByEmployeeEmail:t.string,applicationId:t.string,applicationName:t.string,codePackageName:t.string,repositoryName:t.string,applicationUserCoreIdentifier:t.string,applicationUserName:t.string,slackMessageTs:t.string,slackTeamId:t.string,slackChannelId:t.string,slackChannelName:t.string}),de=t.intersection([t.type({title:t.string}),t.partial({value:t.string})]),Ie=t.type({columns:t.array(de)}),Ve= exports.ra =t.partial({rows:t.array(Ie),json:t.string});exports.a = Tt; exports.b = C; exports.c = Pt; exports.d = At; exports.e = Ot; exports.f = v; exports.g = p; exports.h = Ct; exports.i = Ce; exports.j = vt; exports.k = St; exports.l = r; exports.m = kt; exports.n = Rt; exports.o = wt; exports.p = ht; exports.q = Dt; exports.r = Et; exports.s = Nt; exports.t = Mt; exports.u = Lt; exports.v = qt; exports.w = Ft; exports.x = Vt; exports.y = Kt; exports.z = u; exports.A = jt; exports.B = ve; exports.C = Bt; exports.D = Se; exports.E = ke; exports.F = Gt; exports.G = Ut; exports.H = Qt; exports.I = zt; exports.J = Ht; exports.K = Wt; exports.L = Yt; exports.M = Zt; exports.N = Jt; exports.O = _t; exports.P = Xt; exports.Q = $t; exports.R = te; exports.S = ee; exports.T = S; exports.U = re; exports.V = ne; exports.W = Re; exports.X = se; exports.Y = ie; exports.Z = oe; exports._ = k; exports.$ = R; exports.aa = ae; exports.ba = x; exports.ca = pe; exports.da = ye; exports.ea = ue; exports.fa = ce; exports.ga = we; exports.ha = he; exports.ia = De; exports.ja = Ee; exports.ka = Ne; exports.la = Me; exports.ma = ge; exports.na = le; exports.oa = me; exports.pa = qe; exports.qa = Fe; exports.ra = Ve;
|
|
2
|
+
//# sourceMappingURL=chunk-ECGHWDVP.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/cli/cli/dist/chunk-ECGHWDVP.cjs","../src/codecs.ts"],"names":["TemplateInput","WebhookHeader","ApiKeyInput","TeamInput","valuesOf","EnricherInput","IsoCountryCode","IsoCountrySubdivisionCode","ProcessingPurposePreviewInput","DataCategoryPreviewInput","DataCategoryGuessInput","DataCategoryRecommendationInput","AttributeValueInput","AttributeInput","AttributePreview","AgentInput","AgentFunctionInput","AgentFileInput","VendorInput","DataCategoryInput","ProcessingPurposeInput","PromptInput","PromptPartialInput","PromptGroupInput","FieldInput","DatapointInput","applyEnum","RequestActionObjectResolver","PromptAVendorEmailSettings","BusinessEntityInput","RegionInput","ProcessingActivityInput","SoftwareDevelopmentKitInput","CodePackageSdk","CodePackageInput","RepositoryInput","DataSubjectInput","ActionInput","IdentifierInput","DataFlowInput","CookieInput","ConsentManageExperienceInput","PartitionInput","ConsentManagerInput","PrivacyCenterInput","ConfigurableColorPaletteColor","PrivacyCenterComponentStyles","PrivacyCenterTextStyles","PolicyInput","IntlMessageInput","LOCALE_KEY","DataSiloInput","ActionItemCollectionInput","ActionItemInput","AssessmentRuleInput","AssessmentNestedRuleInput","self","AssessmentDisplayLogicInput","RiskAssignmentInput","RiskLogicInput","AssessmentAnswerOptionInput","AssessmentSectionQuestionInput","AssessmentSectionInput","AssessmentRetentionScheduleInput","AssessmentTemplateInput","AssessmentResourceInput","AssessmentInput","ConsentPreferenceTopicOptionValue","ConsentPreferenceTopic","ConsentPurpose","TranscendInput","StoredApiKey","DataFlowCsvInput","CookieCsvInput","ConsentManagerServiceMetadata","PathfinderPolicyNameC","OpenAIEnabledRoute","buildEnabledRouteType","OpenAIRouteNameC","OpenAIEnabledRoutes","OpenAIIntegration","buildAIIntegrationType","PathfinderPolicy","PathfinderPromptRunMetadata","OneTrustAssessmentColumnInput","OneTrustAssessmentRowInput","ImportOnetrustAssessmentsInput"],"mappings":"AAAA,mZAA+C,wDAAgD,qECE5E,qDACiB,2DAsD7B,8DAMA,0EAIoB,IAQdA,EAAAA,CAAkB,CAAA,CAAA,IAAA,CAAK,CAElC,KAAA,CAAS,CAAA,CAAA,MACX,CAAC,CAAA,CAKYC,CAAAA,aAAkB,CAAA,CAAA,YAAA,CAAa,CACxC,CAAA,CAAA,IAAA,CAAK,CAEL,IAAA,CAAQ,CAAA,CAAA,MAAA,CAER,KAAA,CAAS,CAAA,CAAA,MACX,CAAC,CAAA,CACC,CAAA,CAAA,OAAA,CAAQ,CAER,QAAA,CAAY,CAAA,CAAA,OACd,CAAC,CACH,CAAC,CAAA,CAaYC,EAAAA,aAAgB,CAAA,CAAA,IAAA,CAAK,CAEhC,KAAA,CAAS,CAAA,CAAA,MACX,CAAC,CAAA,CAWYC,EAAAA,aAAc,CAAA,CAAA,YAAA,CAAa,CACpC,CAAA,CAAA,IAAA,CAAK,CAEL,IAAA,CAAQ,CAAA,CAAA,MAAA,CAER,WAAA,CAAe,CAAA,CAAA,MACjB,CAAC,CAAA,CACC,CAAA,CAAA,OAAA,CAAQ,CAER,gBAAA,CAAoB,CAAA,CAAA,MAAA,CAEpB,WAAA,CAAe,CAAA,CAAA,MAAA,CAEf,WAAA,CAAe,CAAA,CAAA,MAAA,CAEf,KAAA,CAAS,CAAA,CAAA,KAAA,CAAQ,CAAA,CAAA,MAAM,CAAA,CAEvB,MAAA,CAAU,CAAA,CAAA,KAAA,CAAMC,iCAAAA,uBAAkB,CAAC,CACrC,CAAC,CACH,CAAC,CAAA,CAiBYC,EAAAA,aAAkB,CAAA,CAAA,YAA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CAAiB,CAAA,CAAA,MAAA,CAEjB,gBAAA,CAAoB,CAAA,CAAA,MAAA,CAEpB,kBAAA,CAAsB,CAAA,CAAA,MAAA,CAEtB,aAAA,CAAiB,CAAA,CAAA,MAAA,CAEjB,eAAA,CAAmB,CAAA,CAAA,MAAA,CAEnB,eAAA,CAAmB,CAAA,CAAA,MAAA,CAEnB,cAAA,CAAkB,CAAA,CAAA,MAAA,CAElB,6BAAA,CAAiC,CAAA,CAAA,MAAA,CAEjC,mBAAA,CAAuB,CAAA,CAAA,MAAA,CAEvB,cAAA,CAAkB,CAAA,CAAA,MAAA,CAElB,WAAA,CAAe,CAAA,CAAA,MAAA,CAEf,cAAA,CAAkB,CAAA,CAAA,MAAA,CAElB,gBAAA,CAAoB,CAAA,CAAA,MACtB,CAAC,CAAA,CAQKC,EAAAA,CAAkC,CAAA,CAAA,YAAA,CAAa,CACjD,CAAA,CAAA,IAAA,CAAK,CAEL,KAAA,CAAS,CAAA,CAAA,MACX,CAAC,CAAA,CACC,CAAA,CAAA,OAAA,CAAQ,CAER,KAAA,CAAS,CAAA,CAAA,MACX,CAAC,CACH,CAAC,CAAA,CAGKC,EAAAA,CAA+B,CAAA,CAAA,IAAA,CAAK,CAExC,OAAA,CAAW,CAAA,CAAA,KAAA,CAAMD,EAA6B,CAChD,CAAC,CAAA,CAGYE,EAAAA,cAAmC,CAAA,CAAA,OAAA,CAAQ,CAEtD,IAAA,CAAQ,CAAA,CAAA,KAAA,CAAMD,EAA0B,CAAA,CAExC,IAAA,CAAQ,CAAA,CAAA,MACV,CAAC,CAAA,CAAA,woCAAA","file":"/home/runner/work/cli/cli/dist/chunk-ECGHWDVP.cjs","sourcesContent":[null,"// eslint-disable-next-line eslint-comments/disable-enable-pair\n/* eslint-disable max-lines */\nimport * as t from 'io-ts';\nimport { applyEnum, valuesOf } from '@transcend-io/type-utils';\nimport {\n DataCategoryType,\n ConsentBundleType,\n EnricherType,\n ProcessingPurpose,\n RequestAction,\n ComparisonOperator,\n RequestActionObjectResolver,\n AssessmentSyncColumn,\n RetentionScheduleType,\n AssessmentQuestionType,\n DataFlowScope,\n PromptAVendorEmailSendType,\n RetentionScheduleOperation,\n AssessmentsDisplayLogicAction,\n DefaultConsentOption,\n LogicOperator,\n ConsentPrecedenceOption,\n AssessmentSyncModel,\n AssessmentQuestionSubType,\n IsoCountryCode,\n BrowserTimeZone,\n IsoCountrySubdivisionCode,\n ConsentTrackerStatus,\n AttributeKeyType,\n PromptAVendorEmailCompletionLinkType,\n RegionsOperator,\n UnknownRequestPolicy,\n TelemetryPartitionStrategy,\n SignedIabAgreementOption,\n RegionDetectionMethod,\n PreflightRequestStatus,\n AttributeSupportedResourceType,\n SubDataPointDataSubCategoryGuessStatus,\n LargeLanguageModelClient,\n PromptFilePurpose,\n CodePackageType,\n ActionItemPriorityOverride,\n ActionItemCode,\n ScopeName,\n TranscendProduct,\n PrivacyCenterComponentStyles,\n PrivacyCenterTextStyles,\n PreferenceStoreAuthLevel,\n ConfigurableColorPaletteColor,\n AssessmentFormTemplateStatus,\n AssessmentFormStatus,\n AssessmentFormTemplateSource,\n UnstructuredSubDataPointRecommendationStatus,\n PreferenceTopicType,\n Controllership,\n RetentionType,\n DataProtectionImpactAssessmentStatus,\n} from '@transcend-io/privacy-types';\nimport {\n InitialViewState,\n BrowserLanguage,\n UserPrivacySignalEnum,\n OnConsentExpiry,\n} from '@transcend-io/airgap.js-types';\nimport { buildEnabledRouteType } from './lib/helpers/buildEnabledRouteType';\nimport { buildAIIntegrationType } from './lib/helpers/buildAIIntegrationType';\nimport { OpenAIRouteName, PathfinderPolicyName } from './enums';\nimport { LOCALE_KEY } from '@transcend-io/internationalization';\n\n/**\n * Input to define email templates that can be used to communicate to end-users\n * about the status of their requests\n *\n * @see https://docs.transcend.io/docs/privacy-requests/configuring-requests/email-templates\n */\nexport const TemplateInput = t.type({\n /** The title of the template */\n title: t.string,\n});\n\n/** Type override */\nexport type TemplateInput = t.TypeOf<typeof TemplateInput>;\n\nexport const WebhookHeader = t.intersection([\n t.type({\n /** The name of the header to set. */\n name: t.string,\n /** The value of the header. */\n value: t.string,\n }),\n t.partial({\n /** The header contains a secret */\n isSecret: t.boolean,\n }),\n]);\n\n/** Type override */\nexport type WebhookHeader = t.TypeOf<typeof WebhookHeader>;\n\n/**\n * Input to define API keys that may be shared across data silos\n * in the data map. When creating new data silos through the yaml\n * cli, it is possible to specify which API key should be associated\n * with the newly created data silo.\n *\n * @see https://docs.transcend.io/docs/authentication\n */\nexport const ApiKeyInput = t.type({\n /** The display title of the enricher */\n title: t.string,\n});\n\n/** Type override */\nexport type ApiKeyInput = t.TypeOf<typeof ApiKeyInput>;\n\n/**\n * Input to define teams in Transcend\n * Users belong to teams and teams can be assigned to various resources\n *\n * @see https://docs.transcend.io/docs/security/access-control\n */\nexport const TeamInput = t.intersection([\n t.type({\n /** The display name of the team */\n name: t.string,\n /** Team description */\n description: t.string,\n }),\n t.partial({\n /** SSO department for automated provisioning */\n 'sso-department': t.string,\n /** SSO group name for automated provisioning */\n 'sso-group': t.string,\n /** SSO title mapping for automated provisioning */\n 'sso-title': t.string,\n /** List of user emails on the team */\n users: t.array(t.string),\n /** List of scopes that the team should have */\n scopes: t.array(valuesOf(ScopeName)),\n }),\n]);\n\n/** Type override */\nexport type TeamInput = t.TypeOf<typeof TeamInput>;\n\n/**\n * Input to define an enricher\n *\n * Define enricher or pre-flight check webhooks that will be executed\n * prior to privacy request workflows. Some examples may include:\n * - identity enrichment: look up additional identifiers for that user.\n * i.e. map an email address to a user ID\n * - fraud check: auto-cancel requests if the user is flagged for fraudulent behavior\n * - customer check: auto-cancel request for some custom business criteria\n *\n * @see https://docs.transcend.io/docs/identity-enrichment\n */\nexport const EnricherInput = t.intersection([\n t.type({\n /** The display title of the enricher */\n title: t.string,\n\n /**\n * The names of the identifiers that can be resolved by this enricher.\n * i.e. email -> [userId, phone, advertisingId]\n */\n 'output-identifiers': t.array(t.string),\n }),\n t.partial({\n /** Internal description for why the enricher is needed */\n description: t.string,\n /** The URL of the enricher */\n url: t.string,\n /** The type of enricher */\n type: valuesOf(EnricherType),\n /**\n * The name of the identifier that will be the input to this enricher.\n * Whenever a privacy request contains this identifier, the webhook will\n * be called with the value of that identifier as input\n */\n 'input-identifier': t.string,\n /**\n * A regular expression that can be used to match on for cancelation\n */\n testRegex: t.string,\n /**\n * For looker integration - the title of the looker query to run\n */\n lookerQueryTitle: t.string,\n /**\n * The duration (in ms) that the enricher should take to execute.\n */\n expirationDuration: t.number,\n /**\n * The status that the enricher should transfer to when condition is met.\n */\n transitionRequestStatus: valuesOf(PreflightRequestStatus),\n /**\n * For twilio integration - the phone numbers that can be used to send text codes\n */\n phoneNumbers: t.array(t.string),\n /** The list of regions that should trigger the preflight check */\n regionList: t.array(\n valuesOf({ ...IsoCountryCode, ...IsoCountrySubdivisionCode }),\n ),\n /**\n * Specify which data subjects the enricher should run for\n */\n 'data-subjects': t.array(t.string),\n /** Headers to include in the webhook */\n headers: t.array(WebhookHeader),\n /** The privacy actions that the enricher should run against */\n 'privacy-actions': t.array(valuesOf(RequestAction)),\n }),\n]);\n\n/** Type override */\nexport type EnricherInput = t.TypeOf<typeof EnricherInput>;\n\n/**\n * The processing purpose for a field\n */\nexport const ProcessingPurposePreviewInput = t.intersection([\n t.type({\n /** The parent purpose */\n purpose: valuesOf(ProcessingPurpose),\n }),\n t.partial({\n /** User-defined name for this processing purpose sub category */\n name: t.string,\n }),\n]);\n\n/** Type override */\nexport type ProcessingPurposePreviewInput = t.TypeOf<\n typeof ProcessingPurposePreviewInput\n>;\n\n/**\n * The data category for a field\n */\nexport const DataCategoryPreviewInput = t.intersection([\n t.type({\n /** The parent category */\n category: valuesOf(DataCategoryType),\n }),\n t.partial({\n /** User-defined name for this sub category */\n name: t.string,\n }),\n]);\n\n/** Type override */\nexport type DataCategoryPreviewInput = t.TypeOf<\n typeof DataCategoryPreviewInput\n>;\n\n/**\n * A guessed data category from the content classifier\n */\nexport const DataCategoryGuessInput = t.intersection([\n t.type({\n /** The parent category */\n category: DataCategoryPreviewInput,\n /** Status of guess */\n status: valuesOf(SubDataPointDataSubCategoryGuessStatus),\n /** Confidence level of guess */\n confidence: t.number,\n }),\n t.partial({\n /** classifier version that produced the guess */\n classifierVersion: t.number,\n }),\n]);\n\n/** Type override */\nexport type DataCategoryGuessInput = t.TypeOf<typeof DataCategoryGuessInput>;\n\n/**\n * A guessed data category from the content classifier\n */\nexport const DataCategoryRecommendationInput = t.intersection([\n t.type({\n /** The parent category */\n category: DataCategoryPreviewInput,\n /** Status of guess */\n status: valuesOf(UnstructuredSubDataPointRecommendationStatus),\n /** Confidence level of guess */\n confidence: t.number,\n }),\n t.partial({\n /** classifier version that produced the guess */\n classifierVersion: t.number,\n }),\n]);\n\n/** Type override */\nexport type DataCategoryRecommendationInput = t.TypeOf<\n typeof DataCategoryRecommendationInput\n>;\n\nexport const AttributeValueInput = t.intersection([\n t.type({\n /** Name of attribute value */\n name: t.string,\n }),\n t.partial({\n /** Description */\n description: t.string,\n /** Color */\n color: t.string,\n }),\n]);\n\n/** Type override */\nexport type AttributeValueInput = t.TypeOf<typeof AttributeValueInput>;\n\nexport const AttributeInput = t.intersection([\n t.type({\n /** Name of attribute */\n name: t.string,\n /** Type of attribute */\n type: valuesOf(AttributeKeyType),\n }),\n t.partial({\n /** Description of attribute */\n description: t.string,\n /** Resource types that the attribute is enabled on */\n resources: t.array(valuesOf(AttributeSupportedResourceType)),\n /** Values of attribute */\n values: t.array(AttributeValueInput),\n }),\n]);\n\n/** Type override */\nexport type AttributeInput = t.TypeOf<typeof AttributeInput>;\n\nexport const AttributePreview = t.type({\n /** Attribute key */\n key: t.string,\n /** Attribute values */\n values: t.array(t.string),\n});\n\n/** Type override */\nexport type AttributePreview = t.TypeOf<typeof AttributePreview>;\n\n/**\n * Agent type definition.\n */\nexport const AgentInput = t.intersection([\n t.type({\n /** The name of the agent. */\n name: t.string,\n /** The instructions of the agent. */\n instructions: t.string,\n /** The ID of the agent */\n agentId: t.string,\n /** Whether the agent has code interpreter enabled */\n codeInterpreterEnabled: t.boolean,\n /** Whether the agent has retrieval enabled */\n retrievalEnabled: t.boolean,\n /** Large language model powering the agent */\n 'large-language-model': t.type({\n /** Name of the model */\n name: t.string,\n /** Client of the model */\n client: valuesOf(LargeLanguageModelClient),\n }),\n }),\n t.partial({\n /** The description of the agent. */\n description: t.string,\n /** The title of the prompt that the agent is based on */\n prompt: t.string,\n /**\n * The email addresses of the employees within your company that are the go-to individuals\n * for managing this agent\n */\n owners: t.array(t.string),\n /**\n * The names of teams within your Transcend instance that should be responsible\n * for managing this agent\n *\n * @see https://docs.transcend.io/docs/security/access-control#teams\n * for more information about how to create and manage teams\n */\n teams: t.array(t.string),\n /**\n * The names of the functions that the agent has access to\n */\n 'agent-functions': t.array(t.string),\n /**\n * The names of the files that the agent has access to for retrieval\n */\n 'agent-files': t.array(t.string),\n }),\n]);\n\n/**\n * Type override\n */\nexport type AgentInput = t.TypeOf<typeof AgentInput>;\n\n/**\n * AgentFunction type definition.\n */\nexport const AgentFunctionInput = t.type({\n /** Name of the agentFunction */\n name: t.string,\n /** Description of the agentFunction */\n description: t.string,\n /** The JSON schema */\n parameters: t.string,\n});\n\n/**\n * Type override\n */\nexport type AgentFunctionInput = t.TypeOf<typeof AgentFunctionInput>;\n\n/**\n * AgentFile type definition.\n */\nexport const AgentFileInput = t.intersection([\n t.type({\n /** Name of the agentFile */\n name: t.string,\n /** File ID */\n fileId: t.string,\n /** File size */\n size: t.number,\n /** File purpose */\n purpose: valuesOf(PromptFilePurpose),\n }),\n t.partial({\n /** Description of the agentFile */\n description: t.string,\n }),\n]);\n\n/**\n * Type override\n */\nexport type AgentFileInput = t.TypeOf<typeof AgentFileInput>;\n\n/**\n * Vendor type definition.\n */\nexport const VendorInput = t.intersection([\n t.type({\n /** Title of vendor */\n title: t.string,\n }),\n t.partial({\n /** Description of vendor */\n description: t.string,\n /** DPA link */\n dataProcessingAgreementLink: t.string,\n /** Contract email */\n contactName: t.string,\n /** Contract phone */\n contactPhone: t.string,\n /** Address */\n address: t.string,\n /** Headquarters country */\n headquarterCountry: valuesOf(IsoCountryCode),\n /** Headquarters subdivision */\n headquarterSubDivision: valuesOf(IsoCountrySubdivisionCode),\n /** Website URL */\n websiteUrl: t.string,\n /** Business entity */\n businessEntity: t.string,\n /**\n * The email addresses of the employees within your company that are the go-to individuals\n * for managing this vendor\n */\n owners: t.array(t.string),\n /**\n * The names of teams within your Transcend instance that should be responsible\n * for managing this vendor\n *\n * @see https://docs.transcend.io/docs/security/access-control#teams\n * for more information about how to create and manage teams\n */\n teams: t.array(t.string),\n /**\n * Attribute value and its corresponding attribute key\n */\n attributes: t.array(AttributePreview),\n }),\n]);\n\n/**\n * Type override\n */\nexport type VendorInput = t.TypeOf<typeof VendorInput>;\n\n/**\n * DataCategory type definition.\n */\nexport const DataCategoryInput = t.intersection([\n t.type({\n /** Name of data category */\n name: t.string,\n /** Type of data category */\n category: valuesOf(DataCategoryType),\n }),\n t.partial({\n /** Description of data category */\n description: t.string,\n /** Regex for data category */\n regex: t.string,\n /**\n * The email addresses of the employees within your company that are the go-to individuals\n * for managing this data category\n */\n owners: t.array(t.string),\n /**\n * The names of teams within your Transcend instance that should be responsible\n * for managing this data category.\n *\n * @see https://docs.transcend.io/docs/security/access-control#teams\n * for more information about how to create and manage teams\n */\n teams: t.array(t.string),\n /**\n * Attribute value and its corresponding attribute key\n */\n attributes: t.array(AttributePreview),\n }),\n]);\n\n/**\n * Type override\n */\nexport type DataCategoryInput = t.TypeOf<typeof DataCategoryInput>;\n\n/**\n * ProcessingPurpose type definition.\n */\nexport const ProcessingPurposeInput = t.intersection([\n t.type({\n /** Name of processing purpose */\n name: t.string,\n /** Type of processing purpose */\n purpose: valuesOf(ProcessingPurpose),\n }),\n t.partial({\n /** Description of processing purpose */\n description: t.string,\n /**\n * The email addresses of the employees within your company that are the go-to individuals\n * for managing this processing purpose\n */\n owners: t.array(t.string),\n /**\n * The names of teams within your Transcend instance that should be responsible\n * for managing this processing purpose.\n *\n * @see https://docs.transcend.io/docs/security/access-control#teams\n * for more information about how to create and manage teams\n */\n teams: t.array(t.string),\n /**\n * Attribute value and its corresponding attribute key\n */\n attributes: t.array(AttributePreview),\n }),\n]);\n\n/**\n * Type override\n */\nexport type ProcessingPurposeInput = t.TypeOf<typeof ProcessingPurposeInput>;\n\n/**\n * Prompt definition inputs\n */\nexport const PromptInput = t.type({\n /** The title of the prompt. */\n title: t.string,\n /** The content of the prompt. */\n content: t.string,\n});\n\n/**\n * Type override\n */\nexport type PromptInput = t.TypeOf<typeof PromptInput>;\n\n/**\n * Prompt partial definition inputs\n */\nexport const PromptPartialInput = t.type({\n /** The title of the prompt partial. */\n title: t.string,\n /** The content of the prompt partial. */\n content: t.string,\n});\n\n/**\n * Type override\n */\nexport type PromptPartialInput = t.TypeOf<typeof PromptPartialInput>;\n\n/**\n * Prompt partial definition inputs\n */\nexport const PromptGroupInput = t.type({\n /** The title of the prompt group. */\n title: t.string,\n /** The description of the prompt group. */\n description: t.string,\n /** The titles of the prompts included. */\n prompts: t.array(t.string),\n});\n\n/**\n * Type override\n */\nexport type PromptGroupInput = t.TypeOf<typeof PromptGroupInput>;\n\n/**\n * Annotate specific fields within a datapoint. These are often database table columns.\n * Fields can also be a JSON object or separate file.\n */\nexport const FieldInput = t.intersection([\n t.type({\n /** The unique key of the field. When a database, this is the column name. */\n key: t.string,\n }),\n t.partial({\n /** The display title of the field */\n title: t.string,\n /** Description of the field */\n description: t.union([t.string, t.null]),\n /**\n * What is the purpose of processing for this datapoint/table?\n *\n * @see https://github.com/transcend-io/privacy-types/blob/main/src/objects.ts\n */\n purposes: t.array(ProcessingPurposePreviewInput),\n /**\n * The category of personal data for this datapoint\n *\n * @see https://github.com/transcend-io/privacy-types/blob/main/src/objects.ts\n */\n categories: t.array(DataCategoryPreviewInput),\n /**\n * The category of personal data that have been guessed by the classifier this datapoint\n *\n * @see https://github.com/transcend-io/privacy-types/blob/main/src/objects.ts\n */\n 'guessed-categories': t.array(DataCategoryGuessInput),\n /**\n * When true, this subdatapoint should be revealed in a data access request.\n * When false, this field should be redacted\n */\n 'access-request-visibility-enabled': t.boolean,\n /**\n * When true, this subdatapoint should be redacted during an erasure request.\n * There normally is a choice of enabling hard deletion or redaction at the\n * datapoint level, but if redaction is enabled, this column can be used\n * to define which fields should be redacted.\n */\n 'erasure-request-redaction-enabled': t.boolean,\n /** Attributes tagged to subdatapoint */\n attributes: t.array(AttributePreview),\n }),\n]);\n\n/** Type override */\nexport type FieldInput = t.TypeOf<typeof FieldInput>;\n\n/**\n * Datapoints are the different types of data models that existing within your data silo.\n * If the data silo is a database, these would be your tables.\n * Note: These are currently called \"datapoints\" in the Transcend UI and documentation.\n *\n * @see https://docs.transcend.io/docs/the-data-map#datapoints\n */\nexport const DatapointInput = t.intersection([\n t.type({\n /** The unique key of the datapoint. For a database, this is the table name. */\n key: t.string,\n }),\n t.partial({\n /**\n * Usually only relevant for databases,\n * this field should include any schema information for a given datapoint.\n *\n * Examples:\n * - In postgres, it's possible to have multiple tables with the same name under\n * different schemas. e.g., \"public\", \"test\". So here you'd specify [\"public\"] or [\"test\"]\n * - In Snowflake, it's possible to have different databases with different schemas,\n * so you can specify [\"ANALYTICS\", \"public\"] to indicate that the datapoint belongs to\n * the \"public\" schema of the \"ANALYTICS\" database.\n */\n path: t.array(t.string),\n /** The display title of the enricher */\n title: t.string,\n /** Internal description for why the enricher is needed */\n description: t.string,\n /**\n * Configure the category of data that this datapoint should be grouped by in a data access request.\n *\n * @see https://docs.transcend.io/docs/privacy-requests/connecting-data-silos/saas-tools#configuring-an-integration\n */\n 'data-collection-tag': t.string,\n /**\n * The SQL queries that should be run for that datapoint in a privacy request.\n *\n * @see https://github.com/transcend-io/privacy-types/blob/main/src/actions.ts\n */\n 'privacy-action-queries': t.partial(\n applyEnum(RequestActionObjectResolver, () => t.string),\n ),\n /**\n * The types of privacy actions that this datapoint can implement\n *\n * @see https://github.com/transcend-io/privacy-types/blob/main/src/actions.ts\n */\n 'privacy-actions': t.array(valuesOf(RequestActionObjectResolver)),\n /**\n * Provide field-level metadata for this datapoint.\n * This is often the column metadata\n */\n fields: t.array(FieldInput),\n /**\n * The email addresses of the employees within your company that are the go-to individuals\n * for managing this datapoint\n */\n owners: t.array(t.string),\n /**\n * The names of teams within your Transcend instance that should be responsible\n * for managing this datapoint\n *\n * @see https://docs.transcend.io/docs/security/access-control#teams\n * for more information about how to create and manage teams\n */\n teams: t.array(t.string),\n }),\n]);\n\n/** Type override */\nexport type DatapointInput = t.TypeOf<typeof DatapointInput>;\n\nexport const PromptAVendorEmailSettings = t.partial({\n /** The email address of the user to notify when a promptAPerson integration */\n 'notify-email-address': t.string,\n /**\n * The frequency with which we should be sending emails for this data silo, in milliseconds.\n */\n 'send-frequency': t.number,\n /**\n * The type of emails to send for this data silo, i.e. send an email for each DSR, across all open DSRs,\n * or per profile in a DSR.\n */\n 'send-type': valuesOf(PromptAVendorEmailSendType),\n /**\n * Indicates whether prompt-a-vendor emails should include a list of identifiers\n * in addition to a link to the bulk processing UI.\n */\n 'include-identifiers-attachment': t.boolean,\n /**\n * Indicates what kind of link to generate as part of the emails sent out for this Prompt-a-Vendor silo.\n */\n 'completion-link-type': valuesOf(PromptAVendorEmailCompletionLinkType),\n /**\n * The frequency with which we should retry sending emails for this data silo, in milliseconds.\n * Needs to be a string because the number can be larger than the MAX_INT\n */\n 'manual-work-retry-frequency': t.string,\n});\n\n/** Type override */\nexport type PromptAVendorEmailSettings = t.TypeOf<\n typeof PromptAVendorEmailSettings\n>;\n\n/**\n * Input to define a business entity\n *\n * @see https://app.transcend.io/data-map/data-inventory/business-entities\n */\nexport const BusinessEntityInput = t.intersection([\n t.type({\n /** The title of the business entity */\n title: t.string,\n }),\n t.partial({\n /** Description of the business entity */\n description: t.string,\n /** Address of the business entity */\n address: t.string,\n /** Country of headquarters */\n headquarterCountry: valuesOf(IsoCountryCode),\n /** Subdivision of headquarters */\n headquarterSubDivision: valuesOf(IsoCountrySubdivisionCode),\n /** Data protection officer name for the business entity */\n dataProtectionOfficerName: t.string,\n /** Data protection officer email for the business entity */\n dataProtectionOfficerEmail: t.string,\n /**\n * Attribute value and its corresponding attribute key\n */\n attributes: t.array(AttributePreview),\n /**\n * The email addresses of the employees within your company that are the go-to individuals\n * for managing this data silo\n */\n owners: t.array(t.string),\n /**\n * The names of teams within your Transcend instance that should be responsible\n * for managing this data silo.\n *\n * @see https://docs.transcend.io/docs/security/access-control#teams\n * for more information about how to create and manage teams\n */\n teams: t.array(t.string),\n }),\n]);\n\n/** Type override */\nexport type BusinessEntityInput = t.TypeOf<typeof BusinessEntityInput>;\n\nexport const RegionInput = t.partial({\n /** The country */\n country: valuesOf(IsoCountryCode),\n /** The country subdivision */\n countrySubDivision: valuesOf(IsoCountrySubdivisionCode),\n});\n\n/** Type override */\nexport type RegionInput = t.TypeOf<typeof RegionInput>;\n\n/**\n * Input to define a processing activity\n *\n * @see https://app.transcend.io/data-map/data-inventory/processing-activities\n */\nexport const ProcessingActivityInput = t.intersection([\n t.type({\n /** The title of the processing activity */\n title: t.string,\n }),\n t.partial({\n /** Description of the processing activity */\n description: t.string,\n /** Security measure details */\n securityMeasureDetails: t.string,\n /**\n * Controllerships\n *\n * @see https://github.com/transcend-io/privacy-types/blob/main/src/datapoint.ts\n */\n controllerships: t.array(valuesOf(Controllership)),\n /** Storage regions */\n storageRegions: t.array(RegionInput),\n /** Transfer regions */\n transferRegions: t.array(RegionInput),\n /**\n * Retention type\n *\n * @see https://github.com/transcend-io/privacy-types/blob/main/src/datapoint.ts\n */\n retentionType: valuesOf(RetentionType),\n /** Retention period in days */\n retentionPeriod: t.number,\n /** Data protection impact assessment link */\n dataProtectionImpactAssessmentLink: t.string,\n /**\n * Data protection impact assessment status\n *\n * @see https://github.com/transcend-io/privacy-types/blob/main/src/processingActivity.ts.ts\n */\n dataProtectionImpactAssessmentStatus: valuesOf(\n DataProtectionImpactAssessmentStatus,\n ),\n /**\n * Attribute value and its corresponding attribute key\n */\n attributes: t.array(AttributePreview),\n /** Data silo titles */\n dataSiloTitles: t.array(t.string),\n /** Data subject types */\n dataSubjectTypes: t.array(t.string),\n /** Team names */\n teamNames: t.array(t.string),\n /** Owner emails */\n ownerEmails: t.array(t.string),\n /**\n * The purposes of processing for this processing activity\n *\n * @see https://github.com/transcend-io/privacy-types/blob/main/src/objects.ts\n */\n processingSubPurposes: t.array(ProcessingPurposePreviewInput),\n /**\n * The categories of personal data for this processing activity\n *\n * @see https://github.com/transcend-io/privacy-types/blob/main/src/objects.ts\n */\n dataSubCategories: t.array(DataCategoryPreviewInput),\n /** SaaS category titles */\n saaSCategories: t.array(t.string),\n }),\n]);\n\n/** Type override */\nexport type ProcessingActivityInput = t.TypeOf<typeof ProcessingActivityInput>;\n\n/**\n * Software development kit inputs\n *\n * @see https://app.transcend.io/code-scanning/sdks\n */\nexport const SoftwareDevelopmentKitInput = t.intersection([\n t.type({\n /** Title of software development kit */\n name: t.string,\n /** Code package type */\n codePackageType: valuesOf(CodePackageType),\n }),\n t.partial({\n /** Description of the SDK */\n description: t.string,\n /** Github repository */\n repositoryUrl: t.string,\n /** Integration name */\n catalogIntegrationName: t.string,\n /** Doc links */\n documentationLinks: t.array(t.string),\n /** Emails of owners */\n ownerEmails: t.array(t.string),\n /** Team names */\n teamNames: t.array(t.string),\n }),\n]);\n\n/** Type override */\nexport type SoftwareDevelopmentKitInput = t.TypeOf<\n typeof SoftwareDevelopmentKitInput\n>;\n\n/**\n * SDK defined for a code package\n */\nexport const CodePackageSdk = t.intersection([\n t.type({\n /** Name of SDK */\n name: t.string,\n }),\n t.partial({\n /** Version of SDK */\n version: t.string,\n /** Indicate if dependency is a dev dependency */\n isDevDependency: t.boolean,\n }),\n]);\n\n/** Type override */\nexport type CodePackageSdk = t.TypeOf<typeof CodePackageSdk>;\n\n/**\n * Input to define a code package\n *\n * @see https://app.transcend.io/code-scanning/code-packages\n */\nexport const CodePackageInput = t.intersection([\n t.type({\n /** The name of the package */\n name: t.string,\n /** Type of code package */\n type: valuesOf(CodePackageType),\n /** Relative path to code package within the repository */\n relativePath: t.string,\n /** Name of repository that the code packages are being uploaded to */\n repositoryName: t.string,\n }),\n t.partial({\n /** Description of the code package */\n description: t.string,\n /** Software development kits in the repository */\n softwareDevelopmentKits: t.array(CodePackageSdk),\n /** Names of the teams that manage the code package */\n teamNames: t.array(t.string),\n /** Names of the owner emails that manage the code package */\n ownerEmails: t.array(t.string),\n }),\n]);\n\n/** Type override */\nexport type CodePackageInput = t.TypeOf<typeof CodePackageInput>;\n\n/**\n * Input to define a repository\n *\n * @see https://app.transcend.io/code-scanning/repositories\n */\nexport const RepositoryInput = t.intersection([\n t.type({\n /** The name of the repo */\n name: t.string,\n /** URL of repository */\n url: t.string,\n }),\n t.partial({\n /** Description of the repository */\n description: t.string,\n /** Names of the teams that manage the repository */\n teamNames: t.array(t.string),\n /** Names of the owner emails that manage the repository */\n ownerEmails: t.array(t.string),\n }),\n]);\n\n/** Type override */\nexport type RepositoryInput = t.TypeOf<typeof RepositoryInput>;\n\n/**\n * Input to define a data subject\n *\n * @see https://app.transcend.io/privacy-requests/settings\n */\nexport const DataSubjectInput = t.intersection([\n t.type({\n /** The type of the data subject */\n type: t.string,\n }),\n t.partial({\n /** Whether the data subject is active on the Privacy Center & DSR API */\n active: t.boolean,\n /** The title of the data subject */\n title: t.string,\n /** Whether or not to default new requests made in the admin dashboard to silent mode */\n adminDashboardDefaultSilentMode: t.boolean,\n /** Enabled request actions for the data subject */\n actions: t.array(valuesOf(RequestAction)),\n }),\n]);\n\n/** Type override */\nexport type DataSubjectInput = t.TypeOf<typeof DataSubjectInput>;\n\n/**\n * Input to define an action\n *\n * @see https://app.transcend.io/privacy-requests/settings\n */\nexport const ActionInput = t.intersection([\n t.type({\n /** The type of the data subject */\n type: valuesOf(RequestAction),\n }),\n t.partial({\n /** Whether or not to skip deletion phase when no data is found */\n skipSecondaryIfNoFiles: t.boolean,\n /** Whether to skip the downloadable step */\n skipDownloadableStep: t.boolean,\n /** Whether the request action requires review */\n requiresReview: t.boolean,\n /** The wait period for the action */\n waitingPeriod: t.number,\n /** The method in which the data subject's region is detected */\n regionDetectionMethod: valuesOf(RegionDetectionMethod),\n /** The list of regions to show in the form */\n regionList: t.array(\n valuesOf({ ...IsoCountryCode, ...IsoCountrySubdivisionCode }),\n ),\n /** The list of regions NOT to show in the form */\n regionBlockList: t.array(\n valuesOf({ ...IsoCountryCode, ...IsoCountrySubdivisionCode }),\n ),\n }),\n]);\n\n/** Type override */\nexport type ActionInput = t.TypeOf<typeof ActionInput>;\n\n/**\n * Input to define an identifier\n *\n * @see https://app.transcend.io/privacy-requests/identifiers\n */\nexport const IdentifierInput = t.intersection([\n t.type({\n /** The name of the identifier */\n name: t.string,\n /** The type of the identifier */\n type: t.string,\n }),\n t.partial({\n /** Regular expression to verify the identifier */\n regex: t.string,\n /** The fixed set of options that an identifier can take on */\n selectOptions: t.array(t.string),\n /** Whether or not the identifier is shown in the privacy center form */\n privacyCenterVisibility: t.array(valuesOf(RequestAction)),\n /** The set of data subjects that this identifier is enabled for */\n dataSubjects: t.array(t.string),\n /** When true, the identifier is a required field on the privacy center form */\n isRequiredInForm: t.boolean,\n /** Placeholder message for identifier */\n placeholder: t.string,\n /** Display title for identifier */\n displayTitle: t.string,\n /** Display description for identifier */\n displayDescription: t.string,\n /** The display order for the identifier */\n displayOrder: t.number,\n /** Whether or not the identifier is unique on the preference store */\n isUniqueOnPreferenceStore: t.boolean,\n }),\n]);\n\n/** Type override */\nexport type IdentifierInput = t.TypeOf<typeof IdentifierInput>;\n\n/**\n * Input to define a data flow\n *\n * @see https://app.transcend.io/consent-manager/data-flows/approved\n */\nexport const DataFlowInput = t.intersection([\n t.type({\n /** Value of data flow */\n value: t.string,\n /** Type of data flow */\n type: valuesOf(DataFlowScope),\n }),\n t.partial({\n /** Description of data flow */\n description: t.string,\n /** The tracking purposes that are required to be opted in for this data flow */\n trackingPurposes: t.array(t.string),\n /**\n * Name of the consent service attached\n */\n service: t.string,\n /**\n * Status of the tracker (approved vs triage)\n */\n status: valuesOf(ConsentTrackerStatus),\n /**\n * The email addresses of the employees within your company that are the go-to individuals\n * for managing this data silo\n */\n owners: t.array(t.string),\n /**\n * The names of teams within your Transcend instance that should be responsible\n * for managing this data silo.\n *\n * @see https://docs.transcend.io/docs/security/access-control#teams\n * for more information about how to create and manage teams\n */\n teams: t.array(t.string),\n /**\n * Attribute value and its corresponding attribute key\n */\n attributes: t.array(AttributePreview),\n }),\n]);\n\n/** Type override */\nexport type DataFlowInput = t.TypeOf<typeof DataFlowInput>;\n\nexport const CookieInput = t.intersection([\n t.type({\n /** Name of data flow */\n name: t.string,\n }),\n t.partial({\n /** Whether or not the cookie is a regular expression */\n isRegex: t.boolean,\n /** Description of data flow */\n description: t.string,\n /** The tracking purposes that are required to be opted in for this data flow */\n trackingPurposes: t.array(t.string),\n /**\n * Name of the consent service attached\n */\n service: t.string,\n /**\n * Status of the tracker (approved vs triage)\n */\n status: valuesOf(ConsentTrackerStatus),\n /**\n * The email addresses of the employees within your company that are the go-to individuals\n * for managing this data silo\n */\n owners: t.array(t.string),\n /**\n * The names of teams within your Transcend instance that should be responsible\n * for managing this data silo.\n *\n * @see https://docs.transcend.io/docs/security/access-control#teams\n * for more information about how to create and manage teams\n */\n teams: t.array(t.string),\n /**\n * Attribute value and its corresponding attribute key\n */\n attributes: t.array(AttributePreview),\n }),\n]);\n\n/** Type override */\nexport type CookieInput = t.TypeOf<typeof CookieInput>;\n\nexport const ConsentManageExperienceInput = t.intersection([\n t.type({\n /** Name of experience */\n name: t.string,\n }),\n t.partial({\n /** Name of experience */\n displayName: t.string,\n /** Region that define this regional experience */\n regions: t.array(RegionInput),\n /** How to handle consent expiry */\n onConsentExpiry: valuesOf(OnConsentExpiry),\n /** Consent expiration lever */\n consentExpiry: t.number,\n /** In vs not in operator */\n operator: valuesOf(RegionsOperator),\n /** Priority of experience */\n displayPriority: t.number,\n /** View state to prompt when auto prompting is enabled */\n viewState: valuesOf(InitialViewState),\n /** Purposes that can be opted out of in a particular experience */\n purposes: t.array(\n t.type({\n /** Slug of purpose */\n trackingType: t.string,\n }),\n ),\n /** Purposes that are opted out by default in a particular experience */\n optedOutPurposes: t.array(\n t.type({\n /** Slug of purpose */\n trackingType: t.string,\n }),\n ),\n /**\n * Browser languages that define this regional experience\n */\n browserLanguages: t.array(valuesOf(BrowserLanguage)),\n /** Browser time zones that define this regional experience */\n browserTimeZones: t.array(valuesOf(BrowserTimeZone)),\n }),\n]);\n\n/** Type override */\nexport type ConsentManageExperienceInput = t.TypeOf<\n typeof ConsentManageExperienceInput\n>;\n\nexport const PartitionInput = t.intersection([\n t.type({\n /** Name of partition */\n name: t.string,\n }),\n t.partial({\n /** Value of partition, cannot be pushed, can only be pulled */\n partition: t.string,\n }),\n]);\n\n/** Type override */\nexport type PartitionInput = t.TypeOf<typeof PartitionInput>;\n\nexport const ConsentManagerInput = t.partial({\n /** Airgap version */\n version: t.string,\n /** The consent manager domains in the instance */\n bundleUrls: t.record(valuesOf(ConsentBundleType), t.string),\n /** The consent manager domains in the instance */\n domains: t.array(t.string),\n /** Key used to partition consent records */\n partition: t.string,\n /** Precedence of signals vs user input */\n consentPrecedence: valuesOf(ConsentPrecedenceOption),\n /** The consent manager unknown request policy */\n unknownRequestPolicy: valuesOf(UnknownRequestPolicy),\n /** The consent manager unknown cookie policy */\n unknownCookiePolicy: valuesOf(UnknownRequestPolicy),\n /** The XDI sync endpoint for this airgap bundle */\n syncEndpoint: t.string,\n /** The telemetry partitioning strategy */\n telemetryPartitioning: valuesOf(TelemetryPartitionStrategy),\n /** Whether the site owner has signed the IAB agreement */\n signedIabAgreement: valuesOf(SignedIabAgreementOption),\n /** Regional experience configurations */\n experiences: t.array(ConsentManageExperienceInput),\n /** Theme config */\n theme: t.partial({\n /** Primary color */\n primaryColor: t.string,\n /** Font color */\n fontColor: t.string,\n /** Privacy policy URL */\n privacyPolicy: t.string,\n /** Auto-prompt setting */\n prompt: t.number,\n }),\n // TODO: https://transcend.height.app/T-23919 - reconsider simpler yml shape\n /** The Shared XDI host sync groups config (JSON) for this airgap bundle */\n syncGroups: t.string,\n});\n\n/** Type override */\nexport type ConsentManagerInput = t.TypeOf<typeof ConsentManagerInput>;\n\n/**\n * Input to define a privacy center\n */\nexport const PrivacyCenterInput = t.partial({\n /** Whether or not the entire privacy center is enabled or disabled */\n isDisabled: t.boolean,\n /** Whether or not to show the privacy requests button */\n showPrivacyRequestButton: t.boolean,\n /** Whether or not to show the data practices page */\n showDataPractices: t.boolean,\n /** Whether or not to show the policies page */\n showPolicies: t.boolean,\n /** Whether or not to show the tracking technologies page */\n showTrackingTechnologies: t.boolean,\n /** Whether or not to show the cookies on the tracking technologies page */\n showCookies: t.boolean,\n /** Whether or not to show the data flows on the tracking technologies page */\n showDataFlows: t.boolean,\n /** Whether or not to show the consent manager opt out options on the tracking technologies page */\n showConsentManager: t.boolean,\n /** Whether or not to show the manage your privacy page */\n showManageYourPrivacy: t.boolean,\n /** Whether or not to show the marketing preferences page */\n showMarketingPreferences: t.boolean,\n /** What languages are supported for the privacy center */\n locales: t.array(valuesOf(LOCALE_KEY)),\n /** The default locale for the privacy center */\n defaultLocale: valuesOf(LOCALE_KEY),\n /** Whether or not to prefer the browser default locale */\n preferBrowserDefaultLocale: t.boolean,\n /** The email addresses of the employees within your company that are the go-to individuals for managing this privacy center */\n supportEmail: t.string,\n /** The email addresses of the employees within your company that are the go-to individuals for managing this privacy center */\n replyToEmail: t.string,\n /** Whether or not to send emails from a no reply email */\n useNoReplyEmailAddress: t.boolean,\n /** Whether or not to use a custom email domain */\n useCustomEmailDomain: t.boolean,\n /** Whether or not to transcend access requests from JSON to CSV */\n transformAccessReportJsonToCsv: t.boolean,\n /** The theme object of colors to display on the privacy center */\n theme: t.partial({\n /** The theme colors */\n colors: t.partial(applyEnum(ConfigurableColorPaletteColor, () => t.string)),\n /** Styles to apply to components */\n componentStyles: PrivacyCenterComponentStyles,\n /** Override styles */\n textStyles: PrivacyCenterTextStyles,\n }),\n});\n\n/** Type override */\nexport type PrivacyCenterInput = t.TypeOf<typeof PrivacyCenterInput>;\n\n/**\n * Input to define a policy\n */\nexport const PolicyInput = t.intersection([\n t.type({\n /** The title of the policy */\n title: t.string,\n }),\n t.partial({\n /** Effective date of policy */\n effectiveOn: t.string,\n /** Whether or not to disable the effective date */\n disableEffectiveOn: t.boolean,\n /** Content of the policy */\n content: t.string,\n /** The languages for which the policy is disabled for */\n disabledLocales: t.array(valuesOf(LOCALE_KEY)),\n }),\n]);\n\n/** Type override */\nexport type PolicyInput = t.TypeOf<typeof PolicyInput>;\n\n/**\n * Input to define an internationalized message defined in Transcend\n */\nexport const IntlMessageInput = t.intersection([\n t.type({\n /** The ID of the message */\n id: t.string,\n }),\n t.partial({\n /** The hard-coded ID that the message refers to in the Privacy Center or Consent Manager UI, null if message is dynamic */\n targetReactIntlId: t.string,\n /** The description of the message */\n description: t.string,\n /** The default message to use */\n defaultMessage: t.string,\n /** The translations */\n translations: t.partial(applyEnum(LOCALE_KEY, () => t.string)),\n }),\n]);\n\n/** Type override */\nexport type IntlMessageInput = t.TypeOf<typeof IntlMessageInput>;\n\n/**\n * Input to define a data silo\n *\n * Define the data silos in your data map. A data silo can be a database,\n * or a web service that may use a collection of different data stores under the hood.\n *\n * @see https://docs.transcend.io/docs/the-data-map#data-silos\n */\nexport const DataSiloInput = t.intersection([\n t.type({\n /** The display title of the data silo */\n title: t.string,\n /**\n * The type of integration. Common internal system types:\n * server | database | cron | promptAPerson\n */\n integrationName: t.string,\n }),\n t.partial({\n /** For prompt a person or database integrations, the underlying integration name */\n 'outer-type': t.string,\n /** A description for that data silo */\n description: t.string,\n /** The webhook URL to notify for data privacy requests */\n url: t.string,\n /** The title of the API key that will be used to respond to privacy requests */\n 'api-key-title': t.string,\n /** Custom headers to include in outbound webhook */\n headers: t.array(WebhookHeader),\n /**\n * Specify which data subjects may have personally-identifiable-information (PII) within this system\n * This field can be omitted, and the default assumption will be that the system may potentially\n * contain PII for any potential data subject type.\n */\n 'data-subjects': t.array(t.string),\n /**\n * When this data silo implements a privacy request, these are the identifiers\n * that should be looked up within this system.\n */\n 'identity-keys': t.array(t.string),\n /**\n * When a data erasure request is being performed, this data silo should not be deleted from\n * until all of the following data silos were deleted first. This list can contain other internal\n * systems defined in this file, as well as any of the SaaS tools connected in your Transcend instance.\n */\n 'deletion-dependencies': t.array(t.string),\n /**\n * The email addresses of the employees within your company that are the go-to individuals\n * for managing this data silo\n */\n owners: t.array(t.string),\n /**\n * The names of teams within your Transcend instance that should be responsible\n * for managing this data silo.\n *\n * @see https://docs.transcend.io/docs/security/access-control#teams\n * for more information about how to create and manage teams\n */\n teams: t.array(t.string),\n /**\n * Specify this flag if the data silo is under development and should not be included\n * in production privacy request workflows. Will still sync metadata to app.transcend.io.\n */\n disabled: t.boolean,\n /**\n * Datapoints defined within this data silo, see comment of `DatapointInput`\n * for further details.\n */\n datapoints: t.array(DatapointInput),\n /**\n * Configure email notification settings for privacy requests\n */\n 'email-settings': PromptAVendorEmailSettings,\n /** Country of data silo hosting */\n country: valuesOf(IsoCountryCode),\n /** Sub-division of data silo hosting */\n countrySubDivision: valuesOf(IsoCountrySubdivisionCode),\n /**\n * Attribute value and its corresponding attribute key\n */\n attributes: t.array(AttributePreview),\n /**\n * The business entities associated with this data silo\n */\n businessEntityTitles: t.array(t.string),\n }),\n]);\n\n/** Type override */\nexport type DataSiloInput = t.TypeOf<typeof DataSiloInput>;\n\nexport const ActionItemCollectionInput = t.intersection([\n t.type({\n /** The display title of the enricher */\n title: t.string,\n /** Locations where collection is shown */\n productLine: valuesOf(TranscendProduct),\n }),\n t.partial({\n /** Description of collection */\n description: t.string,\n /** Whether hidden */\n hidden: t.boolean,\n }),\n]);\n\n/** Type override */\nexport type ActionItemCollectionInput = t.TypeOf<\n typeof ActionItemCollectionInput\n>;\n\n/**\n * Input to define an action item\n */\nexport const ActionItemInput = t.intersection([\n t.type({\n /** The display title of the enricher */\n title: t.string,\n /** Action item type */\n type: valuesOf(ActionItemCode),\n /** The titles of the collections that the action item is grouped within */\n collections: t.array(t.string),\n }),\n t.partial({\n /** Priority of the action item */\n priority: valuesOf(ActionItemPriorityOverride),\n /** Customer experience action item key */\n customerExperienceActionItemId: t.string,\n /** Due date of the action item */\n dueDate: t.string,\n /** Whether action item has been resolved */\n resolved: t.boolean,\n /** Notes */\n notes: t.string,\n /** Links to action items */\n link: t.string,\n /**\n * The email addresses of the employees assigned to the action item\n */\n users: t.array(t.string),\n /**\n * The names of teams assigned to the action item\n *\n * @see https://docs.transcend.io/docs/security/access-control#teams\n * for more information about how to create and manage teams\n */\n teams: t.array(t.string),\n /**\n * Attribute value and its corresponding attribute key\n */\n attributes: t.array(AttributePreview),\n }),\n]);\n\n/** Type override */\nexport type ActionItemInput = t.TypeOf<typeof ActionItemInput>;\n\nexport const AssessmentRuleInput = t.intersection([\n t.type({\n /** The reference id of the question whose answer is compared by this rule */\n 'depends-on-question-reference-id': t.string,\n /** The operator to use when comparing the question answer to the operands */\n 'comparison-operator': valuesOf(ComparisonOperator),\n }),\n t.partial({\n /** The values to compare the question answer to */\n 'comparison-operands': t.array(t.string),\n }),\n]);\n\n/** Type override */\nexport type AssessmentRuleInput = t.TypeOf<typeof AssessmentRuleInput>;\n\nexport interface AssessmentNestedRuleInput {\n /** The operator to use when comparing the nested rules */\n 'logic-operator': LogicOperator;\n /** The rules to evaluate and be compared with to other using the LogicOperator */\n rules?: AssessmentRuleInput[];\n /** The nested rules to add one more level of nesting to the rules. They are also compared to each other. */\n 'nested-rules'?: AssessmentNestedRuleInput[];\n}\n\nexport const AssessmentNestedRuleInput: t.RecursiveType<\n t.Type<AssessmentNestedRuleInput>\n> = t.recursion('AssessmentNestedRuleInput', (self) =>\n t.intersection([\n t.type({\n /** The operator to use when comparing the nested rules */\n 'logic-operator': valuesOf(LogicOperator),\n }),\n t.partial({\n /** The rules to evaluate and be compared with to other using the LogicOperator */\n rules: t.array(AssessmentRuleInput),\n /** The nested rules to add one more level of nesting to the rules. They are also compared to each other. */\n 'nested-rules': t.array(self),\n }),\n ]),\n);\n\nexport const AssessmentDisplayLogicInput = t.intersection([\n t.type({\n /** The display logic type */\n action: valuesOf(AssessmentsDisplayLogicAction),\n }),\n t.partial({\n /** The rule to evaluate */\n rule: AssessmentRuleInput,\n /** The nested rule to evaluate */\n 'nested-rule': AssessmentNestedRuleInput,\n }),\n]);\n\n/** Type override */\nexport type AssessmentDisplayLogicInput = t.TypeOf<\n typeof AssessmentDisplayLogicInput\n>;\n\nexport const RiskAssignmentInput = t.partial({\n /** The risk level to assign to the question */\n 'risk-level': t.string,\n /** The risk matrix column to assign to a question. */\n 'risk-matrix-column': t.string,\n /** The risk matrix row to assign to a question. */\n 'risk-matrix-row': t.string,\n});\n\n/** Type override */\nexport type RiskAssignmentInput = t.TypeOf<typeof RiskAssignmentInput>;\n\nexport const RiskLogicInput = t.intersection([\n t.type({\n /** The values to compare */\n 'comparison-operands': t.array(t.string),\n /** The operator */\n 'comparison-operator': valuesOf(ComparisonOperator),\n }),\n t.partial({\n /** The risk level to assign to the question */\n 'risk-level': t.string,\n /** The risk matrix column to assign to a question. */\n 'risk-matrix-column': t.string,\n /** The risk matrix row to assign to a question. */\n 'risk-matrix-row': t.string,\n }),\n]);\n\n/** Type override */\nexport type RiskLogicInput = t.TypeOf<typeof RiskLogicInput>;\n\nexport const AssessmentAnswerOptionInput = t.type({\n /** Value of answer */\n value: t.string,\n});\n\n/** Type override */\nexport type AssessmentAnswerOptionInput = t.TypeOf<\n typeof AssessmentAnswerOptionInput\n>;\n\nexport const AssessmentSectionQuestionInput = t.intersection([\n t.type({\n /** The title of the assessment section question */\n title: t.string,\n /** The question type */\n type: valuesOf(AssessmentQuestionType),\n }),\n t.partial({\n /** The sub-type of the assessment question */\n 'sub-type': valuesOf(AssessmentQuestionSubType),\n /** The question placeholder */\n placeholder: t.string,\n /** The question description */\n description: t.string,\n /** Whether an answer is required */\n 'is-required': t.boolean,\n /** Used to identify the question within a form or template so it can be referenced in conditional logic. */\n 'reference-id': t.string,\n /** Display logic for the question */\n 'display-logic': AssessmentDisplayLogicInput,\n /** Risk logic for the question */\n 'risk-logic': t.array(RiskLogicInput),\n /** Risk category titles for the question */\n 'risk-categories': t.array(t.string),\n /** Risk framework titles for the question */\n 'risk-framework': t.string,\n /** Answer options for the question */\n 'answer-options': t.array(AssessmentAnswerOptionInput),\n /** The selected answers to the assessments */\n 'selected-answers': t.array(t.string),\n /** Allowed MIME types for the question */\n 'allowed-mime-types': t.array(t.string),\n /** Allow selecting other options */\n 'allow-select-other': t.boolean,\n /** Sync model for the question */\n 'sync-model': valuesOf(AssessmentSyncModel),\n /** Sync column for the question */\n 'sync-column': valuesOf(AssessmentSyncColumn),\n /** Attribute key / custom field name for the question */\n 'attribute-key': t.string,\n /** Require risk evaluation for the question */\n 'require-risk-evaluation': t.boolean,\n /** Require risk matrix evaluation for the question */\n 'require-risk-matrix-evaluation': t.boolean,\n }),\n]);\n\n/** Type override */\nexport type AssessmentSectionQuestionInput = t.TypeOf<\n typeof AssessmentSectionQuestionInput\n>;\n\nexport const AssessmentSectionInput = t.intersection([\n t.type({\n /** The title of the assessment section */\n title: t.string,\n /** The questions in the assessment section */\n questions: t.array(AssessmentSectionQuestionInput),\n }),\n t.partial({\n /** Email address of those assigned */\n assignees: t.array(t.string),\n /** Email address of those externally assigned */\n 'external-assignees': t.array(t.string),\n /** Status of section */\n status: t.string,\n /** Whether assessment is reviewed */\n 'is-reviewed': t.boolean,\n }),\n]);\n\n/** Type override */\nexport type AssessmentSectionInput = t.TypeOf<typeof AssessmentSectionInput>;\n\nexport const AssessmentRetentionScheduleInput = t.type({\n /** The retention schedule type */\n type: valuesOf(RetentionScheduleType),\n /** The duration of the retention schedule in days */\n 'duration-days': t.number,\n /** The operation to perform on the retention schedule */\n operand: valuesOf(RetentionScheduleOperation),\n});\n\n/** Type override */\nexport type AssessmentRetentionScheduleInput = t.TypeOf<\n typeof AssessmentRetentionScheduleInput\n>;\n\nexport const AssessmentTemplateInput = t.intersection([\n t.type({\n /** The title of the assessment template */\n title: t.string,\n }),\n t.partial({\n /** The Assessment sections under this assessment template */\n sections: t.array(AssessmentSectionInput),\n /** Description of assessment template */\n description: t.string,\n /** The status of the assessment */\n status: valuesOf(AssessmentFormTemplateStatus),\n /** The source of the assessment */\n source: valuesOf(AssessmentFormTemplateSource),\n /** The email of the user that created the assessment */\n creator: t.string,\n /** Whether the template is in a locked status */\n locked: t.boolean,\n /** ID of parent template this was cloned from */\n 'parent-id': t.string,\n /** Whether the template is archived */\n archived: t.boolean,\n /** The date that the assessment was created */\n 'created-at': t.string,\n /** The names of the custom fields associated to this assessment template */\n 'attribute-keys': t.array(t.string),\n /** The retention schedule configuration */\n 'retention-schedule': AssessmentRetentionScheduleInput,\n /** The titles of the email templates used in the assessment template */\n templates: t.array(t.string),\n }),\n]);\n\n/** Type override */\nexport type AssessmentTemplateInput = t.TypeOf<typeof AssessmentTemplateInput>;\n\nexport const AssessmentResourceInput = t.type({\n /** The title of the resource */\n title: t.string,\n /** The type of the resource */\n type: valuesOf(AttributeSupportedResourceType),\n});\n\n/** Type override */\nexport type AssessmentResourceInput = t.TypeOf<typeof AssessmentResourceInput>;\n\nexport const AssessmentInput = t.intersection([\n t.type({\n /** The title of the assessment */\n title: t.string,\n /** The title of the assessment group */\n group: t.string,\n }),\n t.partial({\n /** The assessment sections */\n sections: t.array(AssessmentSectionInput),\n /** The email of the user that created the assessment */\n creator: t.string,\n /** The description of the assessment */\n description: t.string,\n /** The status of the assessment */\n status: valuesOf(AssessmentFormStatus),\n /** The emails of the transcend users assigned to the assessment */\n assignees: t.array(t.string),\n /** The emails of the external emails assigned to the assessment */\n 'external-assignees': t.array(t.string),\n /** The emails of the assessment reviewers */\n reviewers: t.array(t.string),\n /** Whether the assessment is in a locked status */\n locked: t.boolean,\n /** Whether the assessment is archived */\n archived: t.boolean,\n /** Whether the form is created by an external user */\n external: t.boolean,\n /**\n * Whether the form title is an internal label only, and the group title should be used in communications with assignees\n */\n 'title-is-internal': t.boolean,\n /** The date that the assessment is due */\n 'due-date': t.string,\n /** The date that the assessment was created */\n 'created-at': t.string,\n /** The date that the assessment was assigned at */\n 'assigned-at': t.string,\n /** The date that the assessment was submitted at */\n 'submitted-at': t.string,\n /** The date that the assessment was approved at */\n 'approved-at': t.string,\n /** The date that the assessment was rejected at */\n 'rejected-at': t.string,\n /** The linked data inventory resources */\n resources: t.array(AssessmentResourceInput),\n /** The linked data inventory synced rows */\n rows: t.array(AssessmentResourceInput),\n /** The assessment retention schedule */\n 'retention-schedule': AssessmentRetentionScheduleInput,\n /** The assessment custom fields */\n attributes: t.array(AttributePreview),\n }),\n]);\n\n/** Type override */\nexport type AssessmentInput = t.TypeOf<typeof AssessmentInput>;\n\nexport const ConsentPreferenceTopicOptionValue = t.type({\n /** Title of option value */\n title: t.string,\n /** API slug */\n slug: t.string,\n});\n\n/** Type override */\nexport type ConsentPreferenceTopicOptionValue = t.TypeOf<\n typeof ConsentPreferenceTopicOptionValue\n>;\n\nexport const ConsentPreferenceTopic = t.intersection([\n t.type({\n /** The type of the preference topic */\n type: valuesOf(PreferenceTopicType),\n /** The title of the preference topic */\n title: t.string,\n /** The description of the preference topic */\n description: t.string,\n }),\n t.partial({\n /** Default value */\n 'default-configuration': t.string,\n /** Whether the preference topic is shown in privacy center */\n 'show-in-privacy-center': t.boolean,\n /** The options when type is single or multi select */\n options: t.array(ConsentPreferenceTopicOptionValue),\n }),\n]);\n\n/** Type override */\nexport type ConsentPreferenceTopic = t.TypeOf<typeof ConsentPreferenceTopic>;\n\nexport const ConsentPurpose = t.intersection([\n t.type({\n /** Consent purpose slug */\n trackingType: t.string,\n /** The title of the tracking purpose that appears in Consent Management and Privacy Center UIs */\n title: t.string,\n /** The display name of this tracking purpose */\n name: t.string,\n }),\n t.partial({\n /** Description of purpose */\n description: t.string,\n /** Whether purpose is active */\n 'is-active': t.boolean,\n /** Whether purpose is configurable */\n configurable: t.boolean,\n /** Display order of purpose for privacy center */\n 'display-order': t.number,\n /** Whether purpose is shown in privacy center */\n 'show-in-privacy-center': t.boolean,\n /** Whether purpose is show in consent manger */\n 'show-in-consent-manager': t.boolean,\n /** The preference topics configured for the purpose */\n 'preference-topics': t.array(ConsentPreferenceTopic),\n /** Authentication level for purpose on privacy center */\n 'auth-level': valuesOf(PreferenceStoreAuthLevel),\n /** Opt out signals that should instantly opt out of this purpose */\n 'opt-out-signals': t.array(valuesOf(UserPrivacySignalEnum)),\n /** Default consent value */\n 'default-consent': valuesOf(DefaultConsentOption),\n }),\n]);\n\n/** Type override */\nexport type ConsentPurpose = t.TypeOf<typeof ConsentPurpose>;\n\nexport const TranscendInput = t.partial({\n /**\n * Action items\n */\n 'action-items': t.array(ActionItemInput),\n /**\n * Action item collections\n */\n 'action-item-collections': t.array(ActionItemCollectionInput),\n /**\n * API key definitions\n */\n 'api-keys': t.array(ApiKeyInput),\n /** Team definitions */\n teams: t.array(TeamInput),\n /**\n * Email template definitions\n */\n templates: t.array(TemplateInput),\n /**\n * Enricher definitions\n */\n enrichers: t.array(EnricherInput),\n /**\n * Attribute definitions\n */\n attributes: t.array(AttributeInput),\n /**\n * Business entity definitions\n */\n 'business-entities': t.array(BusinessEntityInput),\n /**\n * Vendor definitions\n */\n vendors: t.array(VendorInput),\n /**\n * Data categories definitions\n */\n 'data-categories': t.array(DataCategoryInput),\n /**\n * Vendor definitions\n */\n 'processing-purposes': t.array(ProcessingPurposeInput),\n /**\n * Data subject definitions\n */\n 'data-subjects': t.array(DataSubjectInput),\n /**\n * Action definitions\n */\n actions: t.array(ActionInput),\n /**\n * Identifier definitions\n */\n identifiers: t.array(IdentifierInput),\n /**\n * Data silo definitions\n */\n 'data-silos': t.array(DataSiloInput),\n /**\n * Data flow definitions\n */\n 'data-flows': t.array(DataFlowInput),\n /**\n * Cookie definitions\n */\n cookies: t.array(CookieInput),\n /**\n * Consent manager definition\n */\n 'consent-manager': ConsentManagerInput,\n /**\n * Prompt definitions\n */\n prompts: t.array(PromptInput),\n /**\n * Prompt partial definitions\n */\n 'prompt-partials': t.array(PromptPartialInput),\n /**\n * Prompt group definitions\n */\n 'prompt-groups': t.array(PromptGroupInput),\n /**\n * Agent definitions\n */\n agents: t.array(AgentInput),\n /**\n * Agent function definitions\n */\n 'agent-functions': t.array(AgentFunctionInput),\n /**\n * Agent file definitions\n */\n 'agent-files': t.array(AgentFileInput),\n /**\n * The privacy center configuration\n */\n 'privacy-center': PrivacyCenterInput,\n /**\n * The policies configuration\n */\n policies: t.array(PolicyInput),\n /**\n * The internationalized messages configuration\n */\n messages: t.array(IntlMessageInput),\n /** The full list of consent manager partitions (e.g. dev vs staging vs prod) */\n partitions: t.array(PartitionInput),\n /**\n * The full list of assessment templates\n */\n 'assessment-templates': t.array(AssessmentTemplateInput),\n /**\n * The full list of assessment results\n */\n assessments: t.array(AssessmentInput),\n /**\n * Processing activity definitions\n */\n 'processing-activities': t.array(ProcessingActivityInput),\n /**\n * Consent and preference management purposes\n */\n purposes: t.array(ConsentPurpose),\n});\n\n/** Type override */\nexport type TranscendInput = t.TypeOf<typeof TranscendInput>;\n\n/**\n * The output of `tr-generate-api-keys` that can be provided to `tr-push`\n */\nexport const StoredApiKey = t.type({\n /** Name of instance */\n organizationName: t.string,\n /** API key */\n apiKey: t.string,\n /** Organization ID API key is for */\n organizationId: t.string,\n});\n\n/** Type override */\nexport type StoredApiKey = t.TypeOf<typeof StoredApiKey>;\n\n/**\n * Minimal set required to mark as completed\n */\nexport const DataFlowCsvInput = t.intersection([\n t.type({\n /** The value of the data flow (host or regex) */\n 'Connections Made To': t.string,\n /** The type of the data flow */\n Type: valuesOf(DataFlowScope),\n /** The CSV of purposes mapped to that data flow */\n Purpose: t.string,\n }),\n t.partial({\n /** The service that the data flow relates to */\n Service: t.string,\n /** Notes and descriptions for the data flow */\n Notes: t.string,\n /** Set of data flow owners */\n Owners: t.string,\n /** Set of data flow team owners */\n Teams: t.string,\n /** LIVE vs NEEDS_REVIEW aka Approved vs Triage */\n Status: valuesOf(ConsentTrackerStatus),\n }),\n // Custom attributes\n t.record(t.string, t.string),\n]);\n\n/** Type override */\nexport type DataFlowCsvInput = t.TypeOf<typeof DataFlowCsvInput>;\n\nexport const CookieCsvInput = t.intersection([\n t.type({\n /** The value of the cookie */\n Name: t.string,\n /** The CSV of purposes mapped to that cookie */\n Purpose: t.string,\n }),\n t.partial({\n /** The service that the cookie relates to */\n Service: t.string,\n /** Notes and descriptions for the cookie */\n Notes: t.string,\n /** Set of cookie owners */\n Owners: t.string,\n /** Set of cookie team owners */\n Teams: t.string,\n /** LIVE vs NEEDS_REVIEW aka Approved vs Triage */\n Status: valuesOf(ConsentTrackerStatus),\n }),\n // Custom attributes\n t.record(t.string, t.string),\n]);\n\n/** Type override */\nexport type CookieCsvInput = t.TypeOf<typeof CookieCsvInput>;\n\n/**\n * Export of (await airgap.getMetadata()).services\n */\nexport const ConsentManagerServiceMetadata = t.type({\n /** The title of the service */\n title: t.string,\n /** The description */\n description: t.string,\n /** Cookies */\n cookies: t.array(\n t.type({\n /** Name of cookie */\n name: t.string,\n /** Allowed purposes */\n trackingPurposes: t.array(t.string),\n }),\n ),\n /** Data Flows */\n dataFlows: t.array(\n t.type({\n /** Value of data flow */\n value: t.string,\n /** Type of data flow */\n type: valuesOf(DataFlowScope),\n /** Allowed purposes */\n trackingPurposes: t.array(t.string),\n }),\n ),\n});\n\n/** Type override */\nexport type ConsentManagerServiceMetadata = t.TypeOf<\n typeof ConsentManagerServiceMetadata\n>;\n/// //////////////////////////////////////\n// Pathfinder policies //\n/// //////////////////////////////////////\n\nexport const PathfinderPolicyNameC = valuesOf(PathfinderPolicyName);\n\n/** the codec of a route enabled in an AI integration */\nexport type EnabledRouteC<T extends t.Mixed> = t.TypeC<{\n /** the name of the enabled route */\n routeName: T;\n /** the enabled policies */\n enabledPolicies: t.ArrayC<typeof PathfinderPolicyNameC>;\n}>;\n\n/** the codec of routes enabled in an AI integration */\nexport type EnabledRoutesC<T extends t.Mixed> = t.ArrayC<EnabledRouteC<T>>;\n\n/** the codec of an AI Integration */\nexport type AIIntegrationC<T extends t.Mixed> = t.TypeC<{\n /** the routes enabled in the AI integration */\n enabledRoutes: EnabledRoutesC<T>;\n}>;\n\nexport const OpenAIEnabledRoute = buildEnabledRouteType({\n TRouteName: valuesOf(OpenAIRouteName),\n});\n\n/** Type override */\nexport type OpenAIEnabledRoute = t.TypeOf<typeof OpenAIEnabledRoute>;\n\nconst OpenAIRouteNameC = valuesOf(OpenAIRouteName);\n\n/** The enabled routes for OpenAI */\nexport const OpenAIEnabledRoutes: EnabledRoutesC<typeof OpenAIRouteNameC> =\n t.array(OpenAIEnabledRoute);\n\n/** Type override */\nexport type OpenAIEnabledRoutes = t.TypeOf<typeof OpenAIEnabledRoutes>;\n\nexport const OpenAIIntegration = buildAIIntegrationType<\n typeof OpenAIRouteNameC,\n EnabledRoutesC<typeof OpenAIRouteNameC>\n>({\n TEnabledRoutes: OpenAIEnabledRoutes,\n});\n\n/** Type override */\nexport type OpenAIIntegration = t.TypeOf<typeof OpenAIIntegration>;\n\nexport const PathfinderPolicy = t.partial({\n enabledIntegrations: t.partial({\n openAI: OpenAIIntegration,\n }),\n});\n\n/** Type override */\nexport type PathfinderPolicy = t.TypeOf<typeof PathfinderPolicy>;\n\n/**\n * Interface of metadata that can be passed for logging purposes\n * via the Transcend Pathfinder\n */\nexport const PathfinderPromptRunMetadata = t.partial({\n /** Unique name for the current prompt run */\n promptRunName: t.string,\n /** ID of the Transcend prompt being reported */\n promptId: t.string,\n /** Title of the prompt being reported on */\n promptTitle: t.string,\n /** The ID of the prompt group being reported */\n promptGroupId: t.string,\n /** The title of the prompt group being reported */\n promptGroupTitle: t.string,\n /** Employee email that is executing the request */\n runByEmployeeEmail: t.string,\n /** ID of the application calling pathfinder */\n applicationId: t.string,\n /** Name of the application calling pathfinder */\n applicationName: t.string,\n /** Name of the code package calling pathfinder */\n codePackageName: t.string,\n /** Name of the repository calling pathfinder */\n repositoryName: t.string,\n /** Core identifier of the application user being reported on */\n applicationUserCoreIdentifier: t.string,\n /** Name of the application user being reported on */\n applicationUserName: t.string,\n /** Slack message ts that is in context of the API call */\n slackMessageTs: t.string,\n /** Slack team ID in context of the API call */\n slackTeamId: t.string,\n /** Slack channel ID in context of the API call */\n slackChannelId: t.string,\n /** Slack channel name in context of the API call */\n slackChannelName: t.string,\n});\n\n/** Type override */\nexport type PathfinderPromptRunMetadata = t.TypeOf<\n typeof PathfinderPromptRunMetadata\n>;\n\n/** The columns of a row of a OneTrust Assessment form to import into Transcend. */\nconst OneTrustAssessmentColumnInput = t.intersection([\n t.type({\n /** The title of the column */\n title: t.string,\n }),\n t.partial({\n /** The optional value of the column */\n value: t.string,\n }),\n]);\n\n/** A row with information of the OneTrust assessment form to import into Transcend */\nconst OneTrustAssessmentRowInput = t.type({\n /** A list of columns within this row. */\n columns: t.array(OneTrustAssessmentColumnInput),\n});\n\n/** Input for importing multiple OneTrust assessment forms into Transcend */\nexport const ImportOnetrustAssessmentsInput = t.partial({\n /** 'The rows of the CSV file.' */\n rows: t.array(OneTrustAssessmentRowInput),\n /** 'The json record representing the assessment.' */\n json: t.string,\n});\n/** Type override */\nexport type ImportOnetrustAssessmentsInput = t.TypeOf<\n typeof ImportOnetrustAssessmentsInput\n>;\n"]}
|