@transcend-io/cli 7.0.0-alpha.1 → 7.0.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
- import{a as s}from"../chunk-CG4A43HM.mjs";import{a as o}from"../chunk-RTBRALWU.mjs";import"../chunk-N4KHG2LT.mjs";import"../chunk-BWXKSYTY.mjs";import"../chunk-BGXZA4EM.mjs";import"../chunk-WVOQBBD4.mjs";import{proposeCompletions as r}from"@stricli/core";var t=process.argv.slice(3);process.env.COMP_LINE?.endsWith(" ")&&t.push("");await r(o,t,s(process));try{for(let{completion:p}of await r(o,t,s(process)))process.stdout.write(`${p}
2
+ import{a as s}from"../chunk-CG4A43HM.mjs";import{a as o}from"../chunk-BMTAHJH3.mjs";import"../chunk-N4KHG2LT.mjs";import"../chunk-DWNKFQ7U.mjs";import"../chunk-BGXZA4EM.mjs";import"../chunk-WVOQBBD4.mjs";import{proposeCompletions as r}from"@stricli/core";var t=process.argv.slice(3);process.env.COMP_LINE?.endsWith(" ")&&t.push("");await r(o,t,s(process));try{for(let{completion:p}of await r(o,t,s(process)))process.stdout.write(`${p}
3
3
  `)}catch{}
package/dist/bin/cli.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{a as o}from"../chunk-CG4A43HM.mjs";import{a as r}from"../chunk-RTBRALWU.mjs";import"../chunk-N4KHG2LT.mjs";import"../chunk-BWXKSYTY.mjs";import"../chunk-BGXZA4EM.mjs";import"../chunk-WVOQBBD4.mjs";import{run as i}from"@stricli/core";await i(r,process.argv.slice(2),o(process));
2
+ import{a as o}from"../chunk-CG4A43HM.mjs";import{a as r}from"../chunk-BMTAHJH3.mjs";import"../chunk-N4KHG2LT.mjs";import"../chunk-DWNKFQ7U.mjs";import"../chunk-BGXZA4EM.mjs";import"../chunk-WVOQBBD4.mjs";import{run as i}from"@stricli/core";await i(r,process.argv.slice(2),o(process));
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import{a as r}from"../chunk-RTBRALWU.mjs";import"../chunk-N4KHG2LT.mjs";import"../chunk-BWXKSYTY.mjs";import"../chunk-BGXZA4EM.mjs";import"../chunk-WVOQBBD4.mjs";import{generateHelpTextForAllCommands as d}from"@stricli/core";var s={"tr-build-xdi-sync-endpoint":["consent","build-xdi-sync-endpoint"],"tr-consent-manager-service-json-to-yml":["consent","consent-manager-service-json-to-yml"],"tr-consent-managers-to-business-entities":["consent","consent-managers-to-business-entities"],"tr-cron-mark-identifiers-completed":["request","cron","mark-identifiers-completed"],"tr-cron-pull-identifiers":["request","cron","pull-identifiers"],"tr-derive-data-silos-from-data-flows":["inventory","derive-data-silos-from-data-flows"],"tr-derive-data-silos-from-data-flows-cross-instance":["inventory","derive-data-silos-from-data-flows-cross-instance"],"tr-discover-silos":["inventory","discover-silos"],"tr-generate-api-keys":["admin","generate-api-keys"],"tr-manual-enrichment-pull-identifiers":["request","preflight","pull-identifiers"],"tr-manual-enrichment-push-identifiers":["request","preflight","push-identifiers"],"tr-mark-request-data-silos-completed":["request","system","mark-request-data-silos-completed"],"tr-pull":["inventory","pull"],"tr-pull-consent-metrics":["consent","pull-consent-metrics"],"tr-pull-consent-preferences":["consent","pull-consent-preferences"],"tr-pull-datapoints":["inventory","pull-datapoints"],"tr-pull-pull-unstructured-discovery-files":["inventory","pull-unstructured-discovery-files"],"tr-push":["inventory","push"],"tr-request-approve":["request","approve"],"tr-request-cancel":["request","cancel"],"tr-request-download-files":["request","download-files"],"tr-request-enricher-restart":["request","enricher-restart"],"tr-request-export":["request","export"],"tr-request-mark-silent":["request","mark-silent"],"tr-request-notify-additional-time":["request","notify-additional-time"],"tr-request-reject-unverified-identifiers":["request","reject-unverified-identifiers"],"tr-request-restart":["request","restart"],"tr-request-upload":["request","upload"],"tr-retry-request-data-silos":["request","system","retry-request-data-silos"],"tr-scan-packages":["inventory","scan-packages"],"tr-skip-preflight-jobs":["request","skip-preflight-jobs"],"tr-skip-request-data-silos":["request","system","skip-request-data-silos"],"tr-sync-ot":["migration","sync-ot"],"tr-update-consent-manager":["consent","update-consent-manager"],"tr-upload-consent-preferences":["consent","upload-consent-preferences"],"tr-upload-cookies-from-csv":["consent","upload-cookies-from-csv"],"tr-upload-data-flows-from-csv":["consent","upload-data-flows-from-csv"],"tr-upload-preferences":["consent","upload-preferences"]};function c(t){return d(r).find(n=>n[0]===`${r.config.name} ${t.join(" ")}`)?.[1]}function o(t){console.log("[DEPRECATION NOTICE]");let e=s[t];if(!e){let i=Object.entries(s).map(([a,l])=>`\`${a}\` -> \`${r.config.name} ${l.join(" ")}\``).join(`
2
+ import{a as r}from"../chunk-BMTAHJH3.mjs";import"../chunk-N4KHG2LT.mjs";import"../chunk-DWNKFQ7U.mjs";import"../chunk-BGXZA4EM.mjs";import"../chunk-WVOQBBD4.mjs";import{generateHelpTextForAllCommands as d}from"@stricli/core";var s={"tr-build-xdi-sync-endpoint":["consent","build-xdi-sync-endpoint"],"tr-consent-manager-service-json-to-yml":["consent","consent-manager-service-json-to-yml"],"tr-consent-managers-to-business-entities":["consent","consent-managers-to-business-entities"],"tr-cron-mark-identifiers-completed":["request","cron","mark-identifiers-completed"],"tr-cron-pull-identifiers":["request","cron","pull-identifiers"],"tr-derive-data-silos-from-data-flows":["inventory","derive-data-silos-from-data-flows"],"tr-derive-data-silos-from-data-flows-cross-instance":["inventory","derive-data-silos-from-data-flows-cross-instance"],"tr-discover-silos":["inventory","discover-silos"],"tr-generate-api-keys":["admin","generate-api-keys"],"tr-manual-enrichment-pull-identifiers":["request","preflight","pull-identifiers"],"tr-manual-enrichment-push-identifiers":["request","preflight","push-identifiers"],"tr-mark-request-data-silos-completed":["request","system","mark-request-data-silos-completed"],"tr-pull":["inventory","pull"],"tr-pull-consent-metrics":["consent","pull-consent-metrics"],"tr-pull-consent-preferences":["consent","pull-consent-preferences"],"tr-pull-datapoints":["inventory","pull-datapoints"],"tr-pull-pull-unstructured-discovery-files":["inventory","pull-unstructured-discovery-files"],"tr-push":["inventory","push"],"tr-request-approve":["request","approve"],"tr-request-cancel":["request","cancel"],"tr-request-download-files":["request","download-files"],"tr-request-enricher-restart":["request","enricher-restart"],"tr-request-export":["request","export"],"tr-request-mark-silent":["request","mark-silent"],"tr-request-notify-additional-time":["request","notify-additional-time"],"tr-request-reject-unverified-identifiers":["request","reject-unverified-identifiers"],"tr-request-restart":["request","restart"],"tr-request-upload":["request","upload"],"tr-retry-request-data-silos":["request","system","retry-request-data-silos"],"tr-scan-packages":["inventory","scan-packages"],"tr-skip-preflight-jobs":["request","skip-preflight-jobs"],"tr-skip-request-data-silos":["request","system","skip-request-data-silos"],"tr-sync-ot":["migration","sync-ot"],"tr-update-consent-manager":["consent","update-consent-manager"],"tr-upload-consent-preferences":["consent","upload-consent-preferences"],"tr-upload-cookies-from-csv":["consent","upload-cookies-from-csv"],"tr-upload-data-flows-from-csv":["consent","upload-data-flows-from-csv"],"tr-upload-preferences":["consent","upload-preferences"]};function c(t){return d(r).find(n=>n[0]===`${r.config.name} ${t.join(" ")}`)?.[1]}function o(t){console.log("[DEPRECATION NOTICE]");let e=s[t];if(!e){let i=Object.entries(s).map(([a,l])=>`\`${a}\` -> \`${r.config.name} ${l.join(" ")}\``).join(`
3
3
  `);console.log(`This command is deprecated as of v7.0.0. Here is a list of new commands, mapped to their legacy command names:
4
4
  ${i}`);return}console.log(`\`${t}\` is deprecated as of v7.0.0.
5
5
  Use \`${r.config.name} ${e.join(" ")}\` instead.
@@ -1,4 +1,4 @@
1
- import{a as s,b as l,c as i,d as a,e as r,f as t,g as o,j as h}from"./chunk-N4KHG2LT.mjs";import{b as n,k as d}from"./chunk-BWXKSYTY.mjs";import{buildInstallCommand as Fr,buildUninstallCommand as Er}from"@stricli/auto-complete";import{buildApplication as Or,buildRouteMap as Br}from"@stricli/core";import{buildRouteMap as he}from"@stricli/core";import{buildCommand as fe}from"@stricli/core";var b=fe({loader:async()=>{let{generateApiKeys:e}=await import("./impl-BUP5GVYQ.mjs");return e},parameters:{flags:{email:{kind:"parsed",parse:String,brief:"The email address that you use to log into Transcend"},password:{kind:"parsed",parse:String,brief:"The password for your account login"},apiKeyTitle:{kind:"parsed",parse:String,brief:"The title of the API key being generated or destroyed"},file:{kind:"parsed",parse:String,brief:"The file where API keys should be written to"},scopes:{kind:"parsed",parse:String,variadic:",",brief:"The list of scopes that should be given to the API key"},deleteExistingApiKey:{kind:"boolean",brief:"When true, if an API key exists with the specified apiKeyTitle, the existing API key is deleted",default:!0},createNewApiKey:{kind:"boolean",brief:"When true, new API keys will be created. Set to false if you simply want to delete all API keys with a title",default:!0},parentOrganizationId:{kind:"parsed",parse:s,brief:"Filter for only a specific organization by ID, returning all child accounts associated with that organization",optional:!0},transcendUrl:t()}},docs:{brief:"Generate API keys",fullDescription:`This command allows for creating API keys across multiple Transcend instances. This is useful for customers that are managing many Transcend instances and need to regularly create, cycle or delete API keys across all of their instances.
1
+ import{a as s,b as l,c as i,d as a,e as r,f as t,g as o,j as h}from"./chunk-N4KHG2LT.mjs";import{b as n,k as d}from"./chunk-DWNKFQ7U.mjs";import{buildInstallCommand as Fr,buildUninstallCommand as Er}from"@stricli/auto-complete";import{buildApplication as Or,buildRouteMap as Br}from"@stricli/core";import{buildRouteMap as he}from"@stricli/core";import{buildCommand as fe}from"@stricli/core";var b=fe({loader:async()=>{let{generateApiKeys:e}=await import("./impl-BUP5GVYQ.mjs");return e},parameters:{flags:{email:{kind:"parsed",parse:String,brief:"The email address that you use to log into Transcend"},password:{kind:"parsed",parse:String,brief:"The password for your account login"},apiKeyTitle:{kind:"parsed",parse:String,brief:"The title of the API key being generated or destroyed"},file:{kind:"parsed",parse:String,brief:"The file where API keys should be written to"},scopes:{kind:"parsed",parse:String,variadic:",",brief:"The list of scopes that should be given to the API key"},deleteExistingApiKey:{kind:"boolean",brief:"When true, if an API key exists with the specified apiKeyTitle, the existing API key is deleted",default:!0},createNewApiKey:{kind:"boolean",brief:"When true, new API keys will be created. Set to false if you simply want to delete all API keys with a title",default:!0},parentOrganizationId:{kind:"parsed",parse:s,brief:"Filter for only a specific organization by ID, returning all child accounts associated with that organization",optional:!0},transcendUrl:t()}},docs:{brief:"Generate API keys",fullDescription:`This command allows for creating API keys across multiple Transcend instances. This is useful for customers that are managing many Transcend instances and need to regularly create, cycle or delete API keys across all of their instances.
2
2
 
3
3
  Unlike the other commands that rely on API key authentication, this command relies upon username/password authentication. This command will spit out the API keys into a JSON file, and that JSON file can be used in subsequent cli commands.
4
4
 
@@ -1 +1 @@
1
- import{b as a,c as i}from"./chunk-WVOQBBD4.mjs";var t=a((o,r)=>{r.exports={author:"Transcend Inc.",name:"@transcend-io/cli",description:"Small package containing useful typescript utilities.",version:"7.0.0-alpha.1",homepage:"https://github.com/transcend-io/cli",repository:{type:"git",url:"https://github.com/transcend-io/cli.git"},license:"UNLICENSED",main:"dist/index.mjs",bin:{"@transcend-io/transcend":"dist/bin/cli.mjs","__@transcend-io/cli_bash_complete":"dist/bin/bash-complete.mjs","__@transcend-io/tr-build-xdi-sync-endpoint":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-consent-manager-service-json-to-yml":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-consent-managers-to-business-entities":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-cron-mark-identifiers-completed":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-cron-pull-identifiers":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-cron-pull-profiles":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-derive-data-silos-from-data-flows":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-derive-data-silos-from-data-flows-cross-instance":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-discover-silos":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-generate-api-keys":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-manual-enrichment-pull-identifiers":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-manual-enrichment-push-identifiers":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-mark-request-data-silos-completed":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-pull":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-pull-consent-metrics":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-pull-consent-preferences":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-pull-datapoints":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-pull-unstructured-discovery-files":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-push":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-request-approve":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-request-cancel":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-request-download-files":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-request-enricher-restart":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-request-export":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-request-mark-silent":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-request-notify-additional-time":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-request-reject-unverified-identifiers":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-request-restart":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-request-upload":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-retry-request-data-silos":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-scan-packages":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-skip-request-data-silos":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-sync-ot":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-update-consent-manager":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-upload-consent-preferences":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-upload-cookies-from-csv":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-upload-data-flows-from-csv":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-upload-preferences":"dist/bin/deprecated-command.mjs"},engines:{node:">=18"},files:["dist"],scripts:{start:"./dist/cli.mjs",prebuild:"tsc -p tsconfig.json",build:"tsup","build:watch":"tsup --watch",prepublishOnly:"pnpm lint && pnpm build && pnpm test && pnpm publint",lint:'pnpm run --parallel --aggregate-output "/^lint:*/"',"lint:prettier":"prettier --check . --log-level warn","lint:types":"tsc --noEmit","lint:eslint":"eslint .",format:"prettier --write .",test:"vitest run","script:transcend-json-schema":"ts-node --transpile-only scripts/buildTranscendJsonSchema.ts && prettier ./transcend-yml-schema-v6.json --write","script:pathfinder-json-schema":"ts-node --transpile-only scripts/buildPathfinderJsonSchema.ts && prettier ./pathfinder-policy-yml-schema.json --write"},tsup:{entry:["src/bin/cli.ts","src/bin/bash-complete.ts","src/bin/deprecated-command.ts","src/index.ts"],format:["esm"],tsconfig:"tsconfig.json",clean:!0,splitting:!0,minify:!0},dependencies:{"@stricli/auto-complete":"^1.2.0","@stricli/core":"^1.2.0","@transcend-io/airgap.js-types":"^12.12.1","@transcend-io/handlebars-utils":"^1.1.0","@transcend-io/internationalization":"^1.6.0","@transcend-io/persisted-state":"^1.0.4","@transcend-io/privacy-types":"^4.124.1","@transcend-io/secret-value":"^1.2.0","@transcend-io/type-utils":"^1.8.0",JSONStream:"^1.3.5",bluebird:"^3.7.2","cli-progress":"^3.11.2",colors:"^1.4.0","csv-parse":"=4.9.1","fast-csv":"^4.3.6","fast-glob":"^3.2.12","fp-ts":"^2.16.1",fuzzysearch:"^1.0.3","global-agent":"^3.0.0",got:"^11.8.5",graphql:"^16.6.0","graphql-request":"^5.0.0",inquirer:"=7.3.3","inquirer-autocomplete-prompt":"=1.3.0","io-ts":"^2.2.21","io-ts-types":"^0.5.16","js-yaml":"^4.1.0",json2csv:"^6.0.0-alpha.2",jsonwebtoken:"^9.0.2",lodash:"^4.17.21","query-string":"=7.0.0",semver:"^7.6.0",undici:"^5.22.1","yargs-parser":"^21.1.1"},devDependencies:{"@types/JSONStream":"npm:@types/jsonstream@^0.8.33","@types/bluebird":"^3.5.38","@types/cli-progress":"^3.11.0","@types/colors":"^1.2.1","@types/fuzzysearch":"^1.0.0","@types/global-agent":"^2.1.1","@types/inquirer":"^7.3.1","@types/inquirer-autocomplete-prompt":"^3.0.0","@types/js-yaml":"^4.0.5","@types/json-schema":"^7.0.15","@types/jsonwebtoken":"^9","@types/lodash":"^4.14.186","@types/node":"^18.15.11","@types/semver":"^7","@types/yargs-parser":"^21.0.0","@typescript-eslint/eslint-plugin":"^5.58.0","@typescript-eslint/parser":"^5.58.0",depcheck:"^1.4.3",eslint:"^8.38.0","eslint-config-airbnb-base":"^15.0.0","eslint-import-resolver-typescript":"^3.5.5","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-import":"2.27.5","eslint-plugin-jsdoc":"^41.1.1",prettier:"^2.8.7",publint:"^0.3.12","ts-node":"10.9.1",tsup:"^8.5.0",typescript:"^5.0.4",vitest:"^3.2.4"},packageManager:"pnpm@10.12.4+sha512.5ea8b0deed94ed68691c9bad4c955492705c5eeb8a87ef86bc62c74a26b037b08ff9570f108b2e4dbd1dd1a9186fea925e527f141c648e85af45631074680184"}});import{ScopeName as e}from"@transcend-io/privacy-types";var n=i(t()),m="transcend",s="https://app.transcend.io",l=`${s}/infrastructure/integrations`,u=`${s}/data-map/data-inventory/data-points`,g=process.env.TRANSCEND_API_URL||"https://api.transcend.io",_=process.env.TRANSCEND_CONSENT_API_URL||"https://consent.transcend.io",b={apiKeys:[e.ViewApiKeys],templates:[e.ManageEmailTemplates],dataSilos:[e.ManageDataMap,e.ConnectDataSilos],enrichers:[e.ManageRequestIdentities],businessEntities:[e.ManageDataInventory],identifiers:[e.ManageRequestIdentities],customFields:[e.ManageGlobalAttributes],dataFlows:[e.ManageDataFlow],cookies:[e.ManageDataFlow],consentManager:[e.ManageConsentManagerDeveloperSettings],partitions:[e.ManageConsentManagerDeveloperSettings],actions:[e.ManageDataSubjectRequestSettings],dataSubjects:[e.ManageDataSubjectRequestSettings],prompts:[e.ManagePrompts],promptPartials:[e.ManagePrompts],promptGroups:[e.ManagePrompts],agents:[e.ManagePathfinder],agentFunctions:[e.ManagePathfinder],agentFiles:[e.ManagePathfinder],vendors:[e.ManageDataInventory],dataCategories:[e.ManageDataInventory],processingPurposes:[e.ManageDataInventory],actionItems:[e.ManageAllActionItems,e.ViewGlobalAttributes],actionItemCollections:[e.ManageActionItemCollections],teams:[e.ManageAccessControl],messages:[e.ManageIntlMessages],privacyCenters:[e.ManagePrivacyCenter],policies:[e.ManagePolicies],assessments:[e.ManageAssessments],assessmentTemplates:[e.ManageAssessments],purposes:[e.ManageConsentManager,e.ManagePreferenceStoreSettings]},y={apiKeys:[e.ViewApiKeys],templates:[e.ViewEmailTemplates],dataSilos:[e.ViewDataMap,e.ViewDataSubjectRequestSettings],enrichers:[e.ViewRequestIdentitySettings],businessEntities:[e.ViewDataInventory],identifiers:[e.ViewRequestIdentitySettings],customFields:[e.ViewGlobalAttributes],dataFlows:[e.ViewDataFlow],cookies:[e.ViewDataFlow],consentManager:[e.ViewConsentManager],partitions:[e.ViewConsentManager],actions:[e.ViewDataSubjectRequestSettings],dataSubjects:[e.ViewDataSubjectRequestSettings],prompts:[e.ViewPrompts],promptPartials:[e.ViewPrompts],promptGroups:[e.ViewPrompts],agents:[e.ViewPathfinder],agentFunctions:[e.ViewPathfinder],agentFiles:[e.ViewPathfinder],vendors:[e.ViewDataInventory],dataCategories:[e.ViewDataInventory],processingPurposes:[e.ViewDataInventory],actionItemCollections:[e.ViewAllActionItems],actionItems:[e.ViewAllActionItems],teams:[e.ViewScopes],messages:[e.ViewIntlMessages],privacyCenters:[e.ViewPrivacyCenter],policies:[e.ViewPolicies],assessments:[e.ViewAssessments],assessmentTemplates:[e.ViewAssessments],purposes:[e.ViewConsentManager,e.ViewPreferenceStoreSettings]},A={apiKeys:"api-keys",customFields:"attributes",dataFlows:"data-flows",cookies:"cookies",consentManager:"consent-manager",partitions:"partitions",actions:"actions",dataSubjects:"data-subjects",businessEntities:"business-entities",identifiers:"identifiers",enrichers:"enrichers",dataSilos:"data-silos",templates:"templates",prompts:"prompts",promptPartials:"prompt-partials",promptGroups:"prompt-groups",agents:"agents",agentFunctions:"agent-functions",agentFiles:"agent-files",vendors:"vendors",dataCategories:"data-categories",processingPurposes:"processing-purposes",actionItems:"action-items",actionItemCollections:"action-item-collections",teams:"teams",messages:"messages",privacyCenters:"privacy-center",policies:"policies",assessments:"assessments",assessmentTemplates:"assessment-templates",purposes:"purposes"};export{t as a,m as b,s as c,l as d,u as e,g as f,_ as g,b as h,y as i,A as j,n as k};
1
+ import{b as a,c as i}from"./chunk-WVOQBBD4.mjs";var t=a((o,r)=>{r.exports={author:"Transcend Inc.",name:"@transcend-io/cli",description:"Small package containing useful typescript utilities.",version:"7.0.0-alpha.2",homepage:"https://github.com/transcend-io/cli",repository:{type:"git",url:"https://github.com/transcend-io/cli.git"},license:"UNLICENSED",main:"dist/index.mjs",bin:{"@transcend-io/transcend":"dist/bin/cli.mjs","__@transcend-io/cli_bash_complete":"dist/bin/bash-complete.mjs","__@transcend-io/tr-build-xdi-sync-endpoint":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-consent-manager-service-json-to-yml":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-consent-managers-to-business-entities":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-cron-mark-identifiers-completed":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-cron-pull-identifiers":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-cron-pull-profiles":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-derive-data-silos-from-data-flows":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-derive-data-silos-from-data-flows-cross-instance":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-discover-silos":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-generate-api-keys":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-manual-enrichment-pull-identifiers":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-manual-enrichment-push-identifiers":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-mark-request-data-silos-completed":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-pull":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-pull-consent-metrics":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-pull-consent-preferences":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-pull-datapoints":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-pull-unstructured-discovery-files":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-push":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-request-approve":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-request-cancel":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-request-download-files":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-request-enricher-restart":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-request-export":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-request-mark-silent":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-request-notify-additional-time":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-request-reject-unverified-identifiers":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-request-restart":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-request-upload":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-retry-request-data-silos":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-scan-packages":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-skip-request-data-silos":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-sync-ot":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-update-consent-manager":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-upload-consent-preferences":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-upload-cookies-from-csv":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-upload-data-flows-from-csv":"dist/bin/deprecated-command.mjs","__@transcend-io/tr-upload-preferences":"dist/bin/deprecated-command.mjs"},engines:{node:">=18"},files:["dist"],scripts:{start:"./dist/cli.mjs",prebuild:"tsc -p tsconfig.json",build:"tsup","build:watch":"tsup --watch",prepublishOnly:"pnpm lint && pnpm build && pnpm test && pnpm publint",lint:'pnpm run --parallel --aggregate-output "/^lint:*/"',"lint:prettier":"prettier --check . --log-level warn","lint:types":"tsc --noEmit","lint:eslint":"eslint .",format:"prettier --write .",test:"vitest run","script:transcend-json-schema":"ts-node --transpile-only scripts/buildTranscendJsonSchema.ts && prettier ./transcend-yml-schema-v6.json --write","script:pathfinder-json-schema":"ts-node --transpile-only scripts/buildPathfinderJsonSchema.ts && prettier ./pathfinder-policy-yml-schema.json --write"},tsup:{entry:["src/bin/cli.ts","src/bin/bash-complete.ts","src/bin/deprecated-command.ts","src/index.ts"],format:["esm"],tsconfig:"tsconfig.json",clean:!0,splitting:!0,minify:!0},dependencies:{"@stricli/auto-complete":"^1.2.0","@stricli/core":"^1.2.0","@transcend-io/airgap.js-types":"^12.12.1","@transcend-io/handlebars-utils":"^1.1.0","@transcend-io/internationalization":"^1.6.0","@transcend-io/persisted-state":"^1.0.4","@transcend-io/privacy-types":"^4.124.1","@transcend-io/secret-value":"^1.2.0","@transcend-io/type-utils":"^1.8.0",JSONStream:"^1.3.5",bluebird:"^3.7.2","cli-progress":"^3.11.2",colors:"^1.4.0","csv-parse":"=4.9.1","fast-csv":"^4.3.6","fast-glob":"^3.2.12","fp-ts":"^2.16.1",fuzzysearch:"^1.0.3","global-agent":"^3.0.0",got:"^11.8.5",graphql:"^16.6.0","graphql-request":"^5.0.0",inquirer:"=7.3.3","inquirer-autocomplete-prompt":"=1.3.0","io-ts":"^2.2.21","io-ts-types":"^0.5.16","js-yaml":"^4.1.0",json2csv:"^6.0.0-alpha.2",jsonwebtoken:"^9.0.2",lodash:"^4.17.21","query-string":"=7.0.0",semver:"^7.6.0",undici:"^5.22.1","yargs-parser":"^21.1.1"},devDependencies:{"@types/JSONStream":"npm:@types/jsonstream@^0.8.33","@types/bluebird":"^3.5.38","@types/cli-progress":"^3.11.0","@types/colors":"^1.2.1","@types/fuzzysearch":"^1.0.0","@types/global-agent":"^2.1.1","@types/inquirer":"^7.3.1","@types/inquirer-autocomplete-prompt":"^3.0.0","@types/js-yaml":"^4.0.5","@types/json-schema":"^7.0.15","@types/jsonwebtoken":"^9","@types/lodash":"^4.14.186","@types/node":"^18.15.11","@types/semver":"^7","@types/yargs-parser":"^21.0.0","@typescript-eslint/eslint-plugin":"^5.58.0","@typescript-eslint/parser":"^5.58.0",depcheck:"^1.4.3",eslint:"^8.38.0","eslint-config-airbnb-base":"^15.0.0","eslint-import-resolver-typescript":"^3.5.5","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-import":"2.27.5","eslint-plugin-jsdoc":"^41.1.1",prettier:"^2.8.7",publint:"^0.3.12","ts-node":"10.9.1",tsup:"^8.5.0",typescript:"^5.0.4",vitest:"^3.2.4"},packageManager:"pnpm@10.12.4+sha512.5ea8b0deed94ed68691c9bad4c955492705c5eeb8a87ef86bc62c74a26b037b08ff9570f108b2e4dbd1dd1a9186fea925e527f141c648e85af45631074680184"}});import{ScopeName as e}from"@transcend-io/privacy-types";var n=i(t()),m="transcend",s="https://app.transcend.io",l=`${s}/infrastructure/integrations`,u=`${s}/data-map/data-inventory/data-points`,g=process.env.TRANSCEND_API_URL||"https://api.transcend.io",_=process.env.TRANSCEND_CONSENT_API_URL||"https://consent.transcend.io",b={apiKeys:[e.ViewApiKeys],templates:[e.ManageEmailTemplates],dataSilos:[e.ManageDataMap,e.ConnectDataSilos],enrichers:[e.ManageRequestIdentities],businessEntities:[e.ManageDataInventory],identifiers:[e.ManageRequestIdentities],customFields:[e.ManageGlobalAttributes],dataFlows:[e.ManageDataFlow],cookies:[e.ManageDataFlow],consentManager:[e.ManageConsentManagerDeveloperSettings],partitions:[e.ManageConsentManagerDeveloperSettings],actions:[e.ManageDataSubjectRequestSettings],dataSubjects:[e.ManageDataSubjectRequestSettings],prompts:[e.ManagePrompts],promptPartials:[e.ManagePrompts],promptGroups:[e.ManagePrompts],agents:[e.ManagePathfinder],agentFunctions:[e.ManagePathfinder],agentFiles:[e.ManagePathfinder],vendors:[e.ManageDataInventory],dataCategories:[e.ManageDataInventory],processingPurposes:[e.ManageDataInventory],actionItems:[e.ManageAllActionItems,e.ViewGlobalAttributes],actionItemCollections:[e.ManageActionItemCollections],teams:[e.ManageAccessControl],messages:[e.ManageIntlMessages],privacyCenters:[e.ManagePrivacyCenter],policies:[e.ManagePolicies],assessments:[e.ManageAssessments],assessmentTemplates:[e.ManageAssessments],purposes:[e.ManageConsentManager,e.ManagePreferenceStoreSettings]},y={apiKeys:[e.ViewApiKeys],templates:[e.ViewEmailTemplates],dataSilos:[e.ViewDataMap,e.ViewDataSubjectRequestSettings],enrichers:[e.ViewRequestIdentitySettings],businessEntities:[e.ViewDataInventory],identifiers:[e.ViewRequestIdentitySettings],customFields:[e.ViewGlobalAttributes],dataFlows:[e.ViewDataFlow],cookies:[e.ViewDataFlow],consentManager:[e.ViewConsentManager],partitions:[e.ViewConsentManager],actions:[e.ViewDataSubjectRequestSettings],dataSubjects:[e.ViewDataSubjectRequestSettings],prompts:[e.ViewPrompts],promptPartials:[e.ViewPrompts],promptGroups:[e.ViewPrompts],agents:[e.ViewPathfinder],agentFunctions:[e.ViewPathfinder],agentFiles:[e.ViewPathfinder],vendors:[e.ViewDataInventory],dataCategories:[e.ViewDataInventory],processingPurposes:[e.ViewDataInventory],actionItemCollections:[e.ViewAllActionItems],actionItems:[e.ViewAllActionItems],teams:[e.ViewScopes],messages:[e.ViewIntlMessages],privacyCenters:[e.ViewPrivacyCenter],policies:[e.ViewPolicies],assessments:[e.ViewAssessments],assessmentTemplates:[e.ViewAssessments],purposes:[e.ViewConsentManager,e.ViewPreferenceStoreSettings]},A={apiKeys:"api-keys",customFields:"attributes",dataFlows:"data-flows",cookies:"cookies",consentManager:"consent-manager",partitions:"partitions",actions:"actions",dataSubjects:"data-subjects",businessEntities:"business-entities",identifiers:"identifiers",enrichers:"enrichers",dataSilos:"data-silos",templates:"templates",prompts:"prompts",promptPartials:"prompt-partials",promptGroups:"prompt-groups",agents:"agents",agentFunctions:"agent-functions",agentFiles:"agent-files",vendors:"vendors",dataCategories:"data-categories",processingPurposes:"processing-purposes",actionItems:"action-items",actionItemCollections:"action-item-collections",teams:"teams",messages:"messages",privacyCenters:"privacy-center",policies:"policies",assessments:"assessments",assessmentTemplates:"assessment-templates",purposes:"purposes"};export{t as a,m as b,s as c,l as d,u as e,g as f,_ as g,b as h,y as i,A as j,n as k};
package/dist/index.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import{a as nm,b as VI,c as KI,d as jI,e as YI,f as x,g as to,h as zI,i as HI,j as ZI,k as WI}from"./chunk-BWXKSYTY.mjs";import{a as UI,b as BI,c as QI,d as rm,e as gr,f as gn}from"./chunk-BGXZA4EM.mjs";import{a as em}from"./chunk-WVOQBBD4.mjs";import*as e from"io-ts";import{applyEnum as yn,valuesOf as S}from"@transcend-io/type-utils";import{DataCategoryType as ao,ConsentBundleType as om,EnricherType as sm,ProcessingPurpose as po,RequestAction as Cr,ComparisonOperator as lo,RequestActionObjectResolver as io,AssessmentSyncColumn as am,RetentionScheduleType as pm,AssessmentQuestionType as lm,UspapiOption as cm,DataFlowScope as hn,PromptAVendorEmailSendType as um,RetentionScheduleOperation as mm,AssessmentsDisplayLogicAction as dm,DefaultConsentOption as fm,LogicOperator as gm,ConsentPrecedenceOption as ym,AssessmentSyncModel as hm,AssessmentQuestionSubType as Cm,IsoCountryCode as Ce,BrowserTimeZone as Im,IsoCountrySubdivisionCode as Ie,ConsentTrackerStatus as Ir,AttributeKeyType as Am,PromptAVendorEmailCompletionLinkType as Tm,RegionsOperator as Sm,UnknownRequestPolicy as oo,TelemetryPartitionStrategy as Pm,SignedIabAgreementOption as Em,RegionDetectionMethod as Rm,PreflightRequestStatus as bm,AttributeSupportedResourceType as co,SubDataPointDataSubCategoryGuessStatus as wm,LargeLanguageModelClient as xm,PromptFilePurpose as $m,CodePackageType as uo,ActionItemPriorityOverride as Dm,ActionItemCode as qm,ScopeName as vm,TranscendProduct as Lm,PrivacyCenterComponentStyles as km,PrivacyCenterTextStyles as Om,PreferenceStoreAuthLevel as Nm,ConfigurableColorPaletteColor as _m,AssessmentFormTemplateStatus as Gm,AssessmentFormStatus as Mm,AssessmentFormTemplateSource as Fm,UnstructuredSubDataPointRecommendationStatus as Um,PreferenceTopicType as Bm}from"@transcend-io/privacy-types";import{InitialViewState as Qm,BrowserLanguage as Vm,UserPrivacySignalEnum as Km,OnConsentExpiry as jm}from"@transcend-io/airgap.js-types";import*as yr from"io-ts";import{valuesOf as im}from"@transcend-io/type-utils";var eo=({TRouteName:r})=>yr.type({routeName:r,enabledPolicies:yr.array(im(gr))});import*as ro from"io-ts";var no=({TEnabledRoutes:r})=>ro.type({enabledRoutes:r});import{LanguageKey as hr}from"@transcend-io/internationalization";var Ym=e.type({title:e.string}),mo=e.intersection([e.type({name:e.string,value:e.string}),e.partial({isSecret:e.boolean})]),zm=e.type({title:e.string}),Hm=e.intersection([e.type({name:e.string,description:e.string}),e.partial({"sso-department":e.string,"sso-group":e.string,"sso-title":e.string,users:e.array(e.string),scopes:e.array(S(vm))})]),Zm=e.intersection([e.type({title:e.string,"output-identifiers":e.array(e.string)}),e.partial({description:e.string,url:e.string,type:S(sm),"input-identifier":e.string,testRegex:e.string,lookerQueryTitle:e.string,expirationDuration:e.number,transitionRequestStatus:S(bm),phoneNumbers:e.array(e.string),regionList:e.array(S({...Ce,...Ie})),"data-subjects":e.array(e.string),headers:e.array(mo),"privacy-actions":e.array(S(Cr))})]),Wm=e.type({purpose:S(po),name:e.string}),Cn=e.intersection([e.type({category:S(ao)}),e.partial({name:e.string})]),Jm=e.intersection([e.type({category:Cn,status:S(wm),confidence:e.number}),e.partial({classifierVersion:e.number})]),lA=e.intersection([e.type({category:Cn,status:S(Um),confidence:e.number}),e.partial({classifierVersion:e.number})]),Xm=e.intersection([e.type({name:e.string}),e.partial({description:e.string,color:e.string})]),td=e.intersection([e.type({name:e.string,type:S(Am)}),e.partial({description:e.string,resources:e.array(S(co)),values:e.array(Xm)})]),Bt=e.type({key:e.string,values:e.array(e.string)}),ed=e.intersection([e.type({name:e.string,instructions:e.string,agentId:e.string,codeInterpreterEnabled:e.boolean,retrievalEnabled:e.boolean,"large-language-model":e.type({name:e.string,client:S(xm)})}),e.partial({description:e.string,prompt:e.string,owners:e.array(e.string),teams:e.array(e.string),"agent-functions":e.array(e.string),"agent-files":e.array(e.string)})]),rd=e.type({name:e.string,description:e.string,parameters:e.string}),nd=e.intersection([e.type({name:e.string,fileId:e.string,size:e.number,purpose:S($m)}),e.partial({description:e.string})]),id=e.intersection([e.type({title:e.string}),e.partial({description:e.string,dataProcessingAgreementLink:e.string,contactName:e.string,contactPhone:e.string,address:e.string,headquarterCountry:S(Ce),headquarterSubDivision:S(Ie),websiteUrl:e.string,businessEntity:e.string,owners:e.array(e.string),teams:e.array(e.string),attributes:e.array(Bt)})]),od=e.intersection([e.type({name:e.string,category:S(ao)}),e.partial({description:e.string,regex:e.string,owners:e.array(e.string),teams:e.array(e.string),attributes:e.array(Bt)})]),sd=e.intersection([e.type({name:e.string,purpose:S(po)}),e.partial({description:e.string,owners:e.array(e.string),teams:e.array(e.string),attributes:e.array(Bt)})]),ad=e.type({title:e.string,content:e.string}),pd=e.type({title:e.string,content:e.string}),ld=e.type({title:e.string,description:e.string,prompts:e.array(e.string)}),cd=e.intersection([e.type({key:e.string}),e.partial({title:e.string,description:e.union([e.string,e.null]),purposes:e.array(Wm),categories:e.array(Cn),"guessed-categories":e.array(Jm),"access-request-visibility-enabled":e.boolean,"erasure-request-redaction-enabled":e.boolean,attributes:e.array(Bt)})]),ud=e.intersection([e.type({key:e.string}),e.partial({path:e.array(e.string),title:e.string,description:e.string,"data-collection-tag":e.string,"privacy-action-queries":e.partial(yn(io,()=>e.string)),"privacy-actions":e.array(S(io)),fields:e.array(cd),owners:e.array(e.string),teams:e.array(e.string)})]),md=e.partial({"notify-email-address":e.string,"send-frequency":e.number,"send-type":S(um),"include-identifiers-attachment":e.boolean,"completion-link-type":S(Tm),"manual-work-retry-frequency":e.string}),dd=e.intersection([e.type({title:e.string}),e.partial({description:e.string,address:e.string,headquarterCountry:S(Ce),headquarterSubDivision:S(Ie),dataProtectionOfficerName:e.string,dataProtectionOfficerEmail:e.string,attributes:e.array(Bt),owners:e.array(e.string),teams:e.array(e.string)})]),cA=e.intersection([e.type({name:e.string,codePackageType:S(uo)}),e.partial({description:e.string,repositoryUrl:e.string,catalogIntegrationName:e.string,documentationLinks:e.array(e.string),ownerEmails:e.array(e.string),teamNames:e.array(e.string)})]),fd=e.intersection([e.type({name:e.string}),e.partial({version:e.string,isDevDependency:e.boolean})]),uA=e.intersection([e.type({name:e.string,type:S(uo),relativePath:e.string,repositoryName:e.string}),e.partial({description:e.string,softwareDevelopmentKits:e.array(fd),teamNames:e.array(e.string),ownerEmails:e.array(e.string)})]),mA=e.intersection([e.type({name:e.string,url:e.string}),e.partial({description:e.string,teamNames:e.array(e.string),ownerEmails:e.array(e.string)})]),gd=e.intersection([e.type({type:e.string}),e.partial({active:e.boolean,title:e.string,adminDashboardDefaultSilentMode:e.boolean,actions:e.array(S(Cr))})]),yd=e.intersection([e.type({type:S(Cr)}),e.partial({skipSecondaryIfNoFiles:e.boolean,skipDownloadableStep:e.boolean,requiresReview:e.boolean,waitingPeriod:e.number,regionDetectionMethod:S(Rm),regionList:e.array(S({...Ce,...Ie})),regionBlockList:e.array(S({...Ce,...Ie}))})]),hd=e.intersection([e.type({name:e.string,type:e.string}),e.partial({regex:e.string,selectOptions:e.array(e.string),privacyCenterVisibility:e.array(S(Cr)),dataSubjects:e.array(e.string),isRequiredInForm:e.boolean,placeholder:e.string,displayTitle:e.string,displayDescription:e.string,displayOrder:e.number})]),Cd=e.intersection([e.type({value:e.string,type:S(hn)}),e.partial({description:e.string,trackingPurposes:e.array(e.string),service:e.string,status:S(Ir),owners:e.array(e.string),teams:e.array(e.string),attributes:e.array(Bt)})]),Id=e.intersection([e.type({name:e.string}),e.partial({isRegex:e.boolean,description:e.string,trackingPurposes:e.array(e.string),service:e.string,status:S(Ir),owners:e.array(e.string),teams:e.array(e.string),attributes:e.array(Bt)})]),Ad=e.intersection([e.type({name:e.string}),e.partial({displayName:e.string,regions:e.array(e.partial({countrySubDivision:S(Ie),country:S(Ce)})),onConsentExpiry:S(jm),consentExpiry:e.number,operator:S(Sm),displayPriority:e.number,viewState:S(Qm),purposes:e.array(e.type({trackingType:e.string})),optedOutPurposes:e.array(e.type({trackingType:e.string})),browserLanguages:e.array(S(Vm)),browserTimeZones:e.array(S(Im))})]),Td=e.intersection([e.type({name:e.string}),e.partial({partition:e.string})]),Sd=e.partial({version:e.string,bundleUrls:e.record(S(om),e.string),domains:e.array(e.string),partition:e.string,consentPrecedence:S(ym),unknownRequestPolicy:S(oo),unknownCookiePolicy:S(oo),syncEndpoint:e.string,telemetryPartitioning:S(Pm),signedIabAgreement:S(Em),uspapi:S(cm),experiences:e.array(Ad),theme:e.partial({primaryColor:e.string,fontColor:e.string,privacyPolicy:e.string,prompt:e.number}),syncGroups:e.string}),Pd=e.partial({isDisabled:e.boolean,showPrivacyRequestButton:e.boolean,showDataPractices:e.boolean,showPolicies:e.boolean,showTrackingTechnologies:e.boolean,showCookies:e.boolean,showDataFlows:e.boolean,showConsentManager:e.boolean,showManageYourPrivacy:e.boolean,showMarketingPreferences:e.boolean,locales:e.array(S(hr)),defaultLocale:S(hr),preferBrowserDefaultLocale:e.boolean,supportEmail:e.string,replyToEmail:e.string,useNoReplyEmailAddress:e.boolean,useCustomEmailDomain:e.boolean,transformAccessReportJsonToCsv:e.boolean,theme:e.partial({colors:e.partial(yn(_m,()=>e.string)),componentStyles:km,textStyles:Om})}),Ed=e.intersection([e.type({title:e.string}),e.partial({effectiveOn:e.string,disableEffectiveOn:e.boolean,content:e.string,disabledLocales:e.array(S(hr))})]),Rd=e.intersection([e.type({id:e.string}),e.partial({targetReactIntlId:e.string,defaultMessage:e.string,translations:e.partial(yn(hr,()=>e.string))})]),bd=e.intersection([e.type({title:e.string,integrationName:e.string}),e.partial({"outer-type":e.string,description:e.string,url:e.string,"api-key-title":e.string,headers:e.array(mo),"data-subjects":e.array(e.string),"identity-keys":e.array(e.string),"deletion-dependencies":e.array(e.string),owners:e.array(e.string),teams:e.array(e.string),disabled:e.boolean,datapoints:e.array(ud),"email-settings":md,country:S(Ce),countrySubDivision:S(Ie),attributes:e.array(Bt),businessEntityTitles:e.array(e.string)})]),wd=e.intersection([e.type({title:e.string,productLine:S(Lm)}),e.partial({description:e.string,hidden:e.boolean})]),xd=e.intersection([e.type({title:e.string,type:S(qm),collections:e.array(e.string)}),e.partial({priority:S(Dm),customerExperienceActionItemId:e.string,dueDate:e.string,resolved:e.boolean,notes:e.string,link:e.string,users:e.array(e.string),teams:e.array(e.string),attributes:e.array(Bt)})]),fo=e.intersection([e.type({"depends-on-question-reference-id":e.string,"comparison-operator":S(lo)}),e.partial({"comparison-operands":e.array(e.string)})]),$d=e.recursion("AssessmentNestedRuleInput",r=>e.intersection([e.type({"logic-operator":S(gm)}),e.partial({rules:e.array(fo),"nested-rules":e.array(r)})])),Dd=e.intersection([e.type({action:S(dm)}),e.partial({rule:fo,"nested-rule":$d})]),dA=e.partial({"risk-level":e.string,"risk-matrix-column":e.string,"risk-matrix-row":e.string}),qd=e.intersection([e.type({"comparison-operands":e.array(e.string),"comparison-operator":S(lo)}),e.partial({"risk-level":e.string,"risk-matrix-column":e.string,"risk-matrix-row":e.string})]),vd=e.type({value:e.string}),Ld=e.intersection([e.type({title:e.string,type:S(lm)}),e.partial({"sub-type":S(Cm),placeholder:e.string,description:e.string,"is-required":e.boolean,"reference-id":e.string,"display-logic":Dd,"risk-logic":e.array(qd),"risk-categories":e.array(e.string),"risk-framework":e.string,"answer-options":e.array(vd),"selected-answers":e.array(e.string),"allowed-mime-types":e.array(e.string),"allow-select-other":e.boolean,"sync-model":S(hm),"sync-column":S(am),"attribute-key":e.string,"require-risk-evaluation":e.boolean,"require-risk-matrix-evaluation":e.boolean})]),go=e.intersection([e.type({title:e.string,questions:e.array(Ld)}),e.partial({assignees:e.array(e.string),"external-assignees":e.array(e.string),status:e.string,"is-reviewed":e.boolean})]),yo=e.type({type:S(pm),"duration-days":e.number,operand:S(mm)}),kd=e.intersection([e.type({title:e.string}),e.partial({sections:e.array(go),description:e.string,status:S(Gm),source:S(Fm),creator:e.string,locked:e.boolean,"parent-id":e.string,archived:e.boolean,"created-at":e.string,"attribute-keys":e.array(e.string),"retention-schedule":yo,templates:e.array(e.string)})]),so=e.type({title:e.string,type:S(co)}),Od=e.intersection([e.type({title:e.string,group:e.string}),e.partial({sections:e.array(go),creator:e.string,description:e.string,status:S(Mm),assignees:e.array(e.string),"external-assignees":e.array(e.string),reviewers:e.array(e.string),locked:e.boolean,archived:e.boolean,external:e.boolean,"title-is-internal":e.boolean,"due-date":e.string,"created-at":e.string,"assigned-at":e.string,"submitted-at":e.string,"approved-at":e.string,"rejected-at":e.string,resources:e.array(so),rows:e.array(so),"retention-schedule":yo,attributes:e.array(Bt)})]),Nd=e.type({title:e.string,slug:e.string}),_d=e.intersection([e.type({type:S(Bm),title:e.string,description:e.string}),e.partial({"default-configuration":e.string,"show-in-privacy-center":e.boolean,options:e.array(Nd)})]),Gd=e.intersection([e.type({trackingType:e.string,title:e.string,name:e.string}),e.partial({description:e.string,"is-active":e.boolean,configurable:e.boolean,"display-order":e.number,"show-in-privacy-center":e.boolean,"show-in-consent-manager":e.boolean,"preference-topics":e.array(_d),"auth-level":S(Nm),"opt-out-signals":e.array(S(Km)),"default-consent":S(fm)})]),In=e.partial({"action-items":e.array(xd),"action-item-collections":e.array(wd),"api-keys":e.array(zm),teams:e.array(Hm),templates:e.array(Ym),enrichers:e.array(Zm),attributes:e.array(td),"business-entities":e.array(dd),vendors:e.array(id),"data-categories":e.array(od),"processing-purposes":e.array(sd),"data-subjects":e.array(gd),actions:e.array(yd),identifiers:e.array(hd),"data-silos":e.array(bd),"data-flows":e.array(Cd),cookies:e.array(Id),"consent-manager":Sd,prompts:e.array(ad),"prompt-partials":e.array(pd),"prompt-groups":e.array(ld),agents:e.array(ed),"agent-functions":e.array(rd),"agent-files":e.array(nd),"privacy-center":Pd,policies:e.array(Ed),messages:e.array(Rd),partitions:e.array(Td),"assessment-templates":e.array(kd),assessments:e.array(Od),purposes:e.array(Gd)}),ho=e.type({organizationName:e.string,apiKey:e.string,organizationId:e.string}),Co=e.intersection([e.type({"Connections Made To":e.string,Type:S(hn),Purpose:e.string}),e.partial({Service:e.string,Notes:e.string,Owners:e.string,Teams:e.string,Status:S(Ir)}),e.record(e.string,e.string)]),Io=e.intersection([e.type({Name:e.string,Purpose:e.string}),e.partial({Service:e.string,Notes:e.string,Owners:e.string,Teams:e.string,Status:S(Ir)}),e.record(e.string,e.string)]),fA=e.type({title:e.string,description:e.string,cookies:e.array(e.type({name:e.string,trackingPurposes:e.array(e.string)})),dataFlows:e.array(e.type({value:e.string,type:S(hn),trackingPurposes:e.array(e.string)}))}),gA=S(gr),Md=eo({TRouteName:S(gn)}),yA=S(gn),Fd=e.array(Md),Ud=no({TEnabledRoutes:Fd}),hA=e.partial({enabledIntegrations:e.partial({openAI:Ud})}),CA=e.partial({promptRunName:e.string,promptId:e.string,promptTitle:e.string,promptGroupId:e.string,promptGroupTitle:e.string,runByEmployeeEmail:e.string,applicationId:e.string,applicationName:e.string,codePackageName:e.string,repositoryName:e.string,applicationUserCoreIdentifier:e.string,applicationUserName:e.string,slackMessageTs:e.string,slackTeamId:e.string,slackChannelId:e.string,slackChannelName:e.string}),Bd=e.intersection([e.type({title:e.string}),e.partial({value:e.string})]),Qd=e.type({columns:e.array(Bd)}),IA=e.partial({rows:e.array(Qd),json:e.string});import{decodeCodec as So}from"@transcend-io/type-utils";import Po from"js-yaml";import{readFileSync as Vd,writeFileSync as Kd}from"fs";var Ao=/<<parameters\.(.+?)>>/,To="parameters";function jd(r,t,n=""){let o=r;if(Object.entries(t).forEach(([i,a])=>{o=o.split(`<<${To}.${i}>>`).join(a)}),Ao.test(o)){let[,i]=Ao.exec(o)||[];throw new Error(`Found variable that was not set: ${i}.
1
+ import{a as nm,b as VI,c as KI,d as jI,e as YI,f as x,g as to,h as zI,i as HI,j as ZI,k as WI}from"./chunk-DWNKFQ7U.mjs";import{a as UI,b as BI,c as QI,d as rm,e as gr,f as gn}from"./chunk-BGXZA4EM.mjs";import{a as em}from"./chunk-WVOQBBD4.mjs";import*as e from"io-ts";import{applyEnum as yn,valuesOf as S}from"@transcend-io/type-utils";import{DataCategoryType as ao,ConsentBundleType as om,EnricherType as sm,ProcessingPurpose as po,RequestAction as Cr,ComparisonOperator as lo,RequestActionObjectResolver as io,AssessmentSyncColumn as am,RetentionScheduleType as pm,AssessmentQuestionType as lm,UspapiOption as cm,DataFlowScope as hn,PromptAVendorEmailSendType as um,RetentionScheduleOperation as mm,AssessmentsDisplayLogicAction as dm,DefaultConsentOption as fm,LogicOperator as gm,ConsentPrecedenceOption as ym,AssessmentSyncModel as hm,AssessmentQuestionSubType as Cm,IsoCountryCode as Ce,BrowserTimeZone as Im,IsoCountrySubdivisionCode as Ie,ConsentTrackerStatus as Ir,AttributeKeyType as Am,PromptAVendorEmailCompletionLinkType as Tm,RegionsOperator as Sm,UnknownRequestPolicy as oo,TelemetryPartitionStrategy as Pm,SignedIabAgreementOption as Em,RegionDetectionMethod as Rm,PreflightRequestStatus as bm,AttributeSupportedResourceType as co,SubDataPointDataSubCategoryGuessStatus as wm,LargeLanguageModelClient as xm,PromptFilePurpose as $m,CodePackageType as uo,ActionItemPriorityOverride as Dm,ActionItemCode as qm,ScopeName as vm,TranscendProduct as Lm,PrivacyCenterComponentStyles as km,PrivacyCenterTextStyles as Om,PreferenceStoreAuthLevel as Nm,ConfigurableColorPaletteColor as _m,AssessmentFormTemplateStatus as Gm,AssessmentFormStatus as Mm,AssessmentFormTemplateSource as Fm,UnstructuredSubDataPointRecommendationStatus as Um,PreferenceTopicType as Bm}from"@transcend-io/privacy-types";import{InitialViewState as Qm,BrowserLanguage as Vm,UserPrivacySignalEnum as Km,OnConsentExpiry as jm}from"@transcend-io/airgap.js-types";import*as yr from"io-ts";import{valuesOf as im}from"@transcend-io/type-utils";var eo=({TRouteName:r})=>yr.type({routeName:r,enabledPolicies:yr.array(im(gr))});import*as ro from"io-ts";var no=({TEnabledRoutes:r})=>ro.type({enabledRoutes:r});import{LanguageKey as hr}from"@transcend-io/internationalization";var Ym=e.type({title:e.string}),mo=e.intersection([e.type({name:e.string,value:e.string}),e.partial({isSecret:e.boolean})]),zm=e.type({title:e.string}),Hm=e.intersection([e.type({name:e.string,description:e.string}),e.partial({"sso-department":e.string,"sso-group":e.string,"sso-title":e.string,users:e.array(e.string),scopes:e.array(S(vm))})]),Zm=e.intersection([e.type({title:e.string,"output-identifiers":e.array(e.string)}),e.partial({description:e.string,url:e.string,type:S(sm),"input-identifier":e.string,testRegex:e.string,lookerQueryTitle:e.string,expirationDuration:e.number,transitionRequestStatus:S(bm),phoneNumbers:e.array(e.string),regionList:e.array(S({...Ce,...Ie})),"data-subjects":e.array(e.string),headers:e.array(mo),"privacy-actions":e.array(S(Cr))})]),Wm=e.type({purpose:S(po),name:e.string}),Cn=e.intersection([e.type({category:S(ao)}),e.partial({name:e.string})]),Jm=e.intersection([e.type({category:Cn,status:S(wm),confidence:e.number}),e.partial({classifierVersion:e.number})]),lA=e.intersection([e.type({category:Cn,status:S(Um),confidence:e.number}),e.partial({classifierVersion:e.number})]),Xm=e.intersection([e.type({name:e.string}),e.partial({description:e.string,color:e.string})]),td=e.intersection([e.type({name:e.string,type:S(Am)}),e.partial({description:e.string,resources:e.array(S(co)),values:e.array(Xm)})]),Bt=e.type({key:e.string,values:e.array(e.string)}),ed=e.intersection([e.type({name:e.string,instructions:e.string,agentId:e.string,codeInterpreterEnabled:e.boolean,retrievalEnabled:e.boolean,"large-language-model":e.type({name:e.string,client:S(xm)})}),e.partial({description:e.string,prompt:e.string,owners:e.array(e.string),teams:e.array(e.string),"agent-functions":e.array(e.string),"agent-files":e.array(e.string)})]),rd=e.type({name:e.string,description:e.string,parameters:e.string}),nd=e.intersection([e.type({name:e.string,fileId:e.string,size:e.number,purpose:S($m)}),e.partial({description:e.string})]),id=e.intersection([e.type({title:e.string}),e.partial({description:e.string,dataProcessingAgreementLink:e.string,contactName:e.string,contactPhone:e.string,address:e.string,headquarterCountry:S(Ce),headquarterSubDivision:S(Ie),websiteUrl:e.string,businessEntity:e.string,owners:e.array(e.string),teams:e.array(e.string),attributes:e.array(Bt)})]),od=e.intersection([e.type({name:e.string,category:S(ao)}),e.partial({description:e.string,regex:e.string,owners:e.array(e.string),teams:e.array(e.string),attributes:e.array(Bt)})]),sd=e.intersection([e.type({name:e.string,purpose:S(po)}),e.partial({description:e.string,owners:e.array(e.string),teams:e.array(e.string),attributes:e.array(Bt)})]),ad=e.type({title:e.string,content:e.string}),pd=e.type({title:e.string,content:e.string}),ld=e.type({title:e.string,description:e.string,prompts:e.array(e.string)}),cd=e.intersection([e.type({key:e.string}),e.partial({title:e.string,description:e.union([e.string,e.null]),purposes:e.array(Wm),categories:e.array(Cn),"guessed-categories":e.array(Jm),"access-request-visibility-enabled":e.boolean,"erasure-request-redaction-enabled":e.boolean,attributes:e.array(Bt)})]),ud=e.intersection([e.type({key:e.string}),e.partial({path:e.array(e.string),title:e.string,description:e.string,"data-collection-tag":e.string,"privacy-action-queries":e.partial(yn(io,()=>e.string)),"privacy-actions":e.array(S(io)),fields:e.array(cd),owners:e.array(e.string),teams:e.array(e.string)})]),md=e.partial({"notify-email-address":e.string,"send-frequency":e.number,"send-type":S(um),"include-identifiers-attachment":e.boolean,"completion-link-type":S(Tm),"manual-work-retry-frequency":e.string}),dd=e.intersection([e.type({title:e.string}),e.partial({description:e.string,address:e.string,headquarterCountry:S(Ce),headquarterSubDivision:S(Ie),dataProtectionOfficerName:e.string,dataProtectionOfficerEmail:e.string,attributes:e.array(Bt),owners:e.array(e.string),teams:e.array(e.string)})]),cA=e.intersection([e.type({name:e.string,codePackageType:S(uo)}),e.partial({description:e.string,repositoryUrl:e.string,catalogIntegrationName:e.string,documentationLinks:e.array(e.string),ownerEmails:e.array(e.string),teamNames:e.array(e.string)})]),fd=e.intersection([e.type({name:e.string}),e.partial({version:e.string,isDevDependency:e.boolean})]),uA=e.intersection([e.type({name:e.string,type:S(uo),relativePath:e.string,repositoryName:e.string}),e.partial({description:e.string,softwareDevelopmentKits:e.array(fd),teamNames:e.array(e.string),ownerEmails:e.array(e.string)})]),mA=e.intersection([e.type({name:e.string,url:e.string}),e.partial({description:e.string,teamNames:e.array(e.string),ownerEmails:e.array(e.string)})]),gd=e.intersection([e.type({type:e.string}),e.partial({active:e.boolean,title:e.string,adminDashboardDefaultSilentMode:e.boolean,actions:e.array(S(Cr))})]),yd=e.intersection([e.type({type:S(Cr)}),e.partial({skipSecondaryIfNoFiles:e.boolean,skipDownloadableStep:e.boolean,requiresReview:e.boolean,waitingPeriod:e.number,regionDetectionMethod:S(Rm),regionList:e.array(S({...Ce,...Ie})),regionBlockList:e.array(S({...Ce,...Ie}))})]),hd=e.intersection([e.type({name:e.string,type:e.string}),e.partial({regex:e.string,selectOptions:e.array(e.string),privacyCenterVisibility:e.array(S(Cr)),dataSubjects:e.array(e.string),isRequiredInForm:e.boolean,placeholder:e.string,displayTitle:e.string,displayDescription:e.string,displayOrder:e.number})]),Cd=e.intersection([e.type({value:e.string,type:S(hn)}),e.partial({description:e.string,trackingPurposes:e.array(e.string),service:e.string,status:S(Ir),owners:e.array(e.string),teams:e.array(e.string),attributes:e.array(Bt)})]),Id=e.intersection([e.type({name:e.string}),e.partial({isRegex:e.boolean,description:e.string,trackingPurposes:e.array(e.string),service:e.string,status:S(Ir),owners:e.array(e.string),teams:e.array(e.string),attributes:e.array(Bt)})]),Ad=e.intersection([e.type({name:e.string}),e.partial({displayName:e.string,regions:e.array(e.partial({countrySubDivision:S(Ie),country:S(Ce)})),onConsentExpiry:S(jm),consentExpiry:e.number,operator:S(Sm),displayPriority:e.number,viewState:S(Qm),purposes:e.array(e.type({trackingType:e.string})),optedOutPurposes:e.array(e.type({trackingType:e.string})),browserLanguages:e.array(S(Vm)),browserTimeZones:e.array(S(Im))})]),Td=e.intersection([e.type({name:e.string}),e.partial({partition:e.string})]),Sd=e.partial({version:e.string,bundleUrls:e.record(S(om),e.string),domains:e.array(e.string),partition:e.string,consentPrecedence:S(ym),unknownRequestPolicy:S(oo),unknownCookiePolicy:S(oo),syncEndpoint:e.string,telemetryPartitioning:S(Pm),signedIabAgreement:S(Em),uspapi:S(cm),experiences:e.array(Ad),theme:e.partial({primaryColor:e.string,fontColor:e.string,privacyPolicy:e.string,prompt:e.number}),syncGroups:e.string}),Pd=e.partial({isDisabled:e.boolean,showPrivacyRequestButton:e.boolean,showDataPractices:e.boolean,showPolicies:e.boolean,showTrackingTechnologies:e.boolean,showCookies:e.boolean,showDataFlows:e.boolean,showConsentManager:e.boolean,showManageYourPrivacy:e.boolean,showMarketingPreferences:e.boolean,locales:e.array(S(hr)),defaultLocale:S(hr),preferBrowserDefaultLocale:e.boolean,supportEmail:e.string,replyToEmail:e.string,useNoReplyEmailAddress:e.boolean,useCustomEmailDomain:e.boolean,transformAccessReportJsonToCsv:e.boolean,theme:e.partial({colors:e.partial(yn(_m,()=>e.string)),componentStyles:km,textStyles:Om})}),Ed=e.intersection([e.type({title:e.string}),e.partial({effectiveOn:e.string,disableEffectiveOn:e.boolean,content:e.string,disabledLocales:e.array(S(hr))})]),Rd=e.intersection([e.type({id:e.string}),e.partial({targetReactIntlId:e.string,defaultMessage:e.string,translations:e.partial(yn(hr,()=>e.string))})]),bd=e.intersection([e.type({title:e.string,integrationName:e.string}),e.partial({"outer-type":e.string,description:e.string,url:e.string,"api-key-title":e.string,headers:e.array(mo),"data-subjects":e.array(e.string),"identity-keys":e.array(e.string),"deletion-dependencies":e.array(e.string),owners:e.array(e.string),teams:e.array(e.string),disabled:e.boolean,datapoints:e.array(ud),"email-settings":md,country:S(Ce),countrySubDivision:S(Ie),attributes:e.array(Bt),businessEntityTitles:e.array(e.string)})]),wd=e.intersection([e.type({title:e.string,productLine:S(Lm)}),e.partial({description:e.string,hidden:e.boolean})]),xd=e.intersection([e.type({title:e.string,type:S(qm),collections:e.array(e.string)}),e.partial({priority:S(Dm),customerExperienceActionItemId:e.string,dueDate:e.string,resolved:e.boolean,notes:e.string,link:e.string,users:e.array(e.string),teams:e.array(e.string),attributes:e.array(Bt)})]),fo=e.intersection([e.type({"depends-on-question-reference-id":e.string,"comparison-operator":S(lo)}),e.partial({"comparison-operands":e.array(e.string)})]),$d=e.recursion("AssessmentNestedRuleInput",r=>e.intersection([e.type({"logic-operator":S(gm)}),e.partial({rules:e.array(fo),"nested-rules":e.array(r)})])),Dd=e.intersection([e.type({action:S(dm)}),e.partial({rule:fo,"nested-rule":$d})]),dA=e.partial({"risk-level":e.string,"risk-matrix-column":e.string,"risk-matrix-row":e.string}),qd=e.intersection([e.type({"comparison-operands":e.array(e.string),"comparison-operator":S(lo)}),e.partial({"risk-level":e.string,"risk-matrix-column":e.string,"risk-matrix-row":e.string})]),vd=e.type({value:e.string}),Ld=e.intersection([e.type({title:e.string,type:S(lm)}),e.partial({"sub-type":S(Cm),placeholder:e.string,description:e.string,"is-required":e.boolean,"reference-id":e.string,"display-logic":Dd,"risk-logic":e.array(qd),"risk-categories":e.array(e.string),"risk-framework":e.string,"answer-options":e.array(vd),"selected-answers":e.array(e.string),"allowed-mime-types":e.array(e.string),"allow-select-other":e.boolean,"sync-model":S(hm),"sync-column":S(am),"attribute-key":e.string,"require-risk-evaluation":e.boolean,"require-risk-matrix-evaluation":e.boolean})]),go=e.intersection([e.type({title:e.string,questions:e.array(Ld)}),e.partial({assignees:e.array(e.string),"external-assignees":e.array(e.string),status:e.string,"is-reviewed":e.boolean})]),yo=e.type({type:S(pm),"duration-days":e.number,operand:S(mm)}),kd=e.intersection([e.type({title:e.string}),e.partial({sections:e.array(go),description:e.string,status:S(Gm),source:S(Fm),creator:e.string,locked:e.boolean,"parent-id":e.string,archived:e.boolean,"created-at":e.string,"attribute-keys":e.array(e.string),"retention-schedule":yo,templates:e.array(e.string)})]),so=e.type({title:e.string,type:S(co)}),Od=e.intersection([e.type({title:e.string,group:e.string}),e.partial({sections:e.array(go),creator:e.string,description:e.string,status:S(Mm),assignees:e.array(e.string),"external-assignees":e.array(e.string),reviewers:e.array(e.string),locked:e.boolean,archived:e.boolean,external:e.boolean,"title-is-internal":e.boolean,"due-date":e.string,"created-at":e.string,"assigned-at":e.string,"submitted-at":e.string,"approved-at":e.string,"rejected-at":e.string,resources:e.array(so),rows:e.array(so),"retention-schedule":yo,attributes:e.array(Bt)})]),Nd=e.type({title:e.string,slug:e.string}),_d=e.intersection([e.type({type:S(Bm),title:e.string,description:e.string}),e.partial({"default-configuration":e.string,"show-in-privacy-center":e.boolean,options:e.array(Nd)})]),Gd=e.intersection([e.type({trackingType:e.string,title:e.string,name:e.string}),e.partial({description:e.string,"is-active":e.boolean,configurable:e.boolean,"display-order":e.number,"show-in-privacy-center":e.boolean,"show-in-consent-manager":e.boolean,"preference-topics":e.array(_d),"auth-level":S(Nm),"opt-out-signals":e.array(S(Km)),"default-consent":S(fm)})]),In=e.partial({"action-items":e.array(xd),"action-item-collections":e.array(wd),"api-keys":e.array(zm),teams:e.array(Hm),templates:e.array(Ym),enrichers:e.array(Zm),attributes:e.array(td),"business-entities":e.array(dd),vendors:e.array(id),"data-categories":e.array(od),"processing-purposes":e.array(sd),"data-subjects":e.array(gd),actions:e.array(yd),identifiers:e.array(hd),"data-silos":e.array(bd),"data-flows":e.array(Cd),cookies:e.array(Id),"consent-manager":Sd,prompts:e.array(ad),"prompt-partials":e.array(pd),"prompt-groups":e.array(ld),agents:e.array(ed),"agent-functions":e.array(rd),"agent-files":e.array(nd),"privacy-center":Pd,policies:e.array(Ed),messages:e.array(Rd),partitions:e.array(Td),"assessment-templates":e.array(kd),assessments:e.array(Od),purposes:e.array(Gd)}),ho=e.type({organizationName:e.string,apiKey:e.string,organizationId:e.string}),Co=e.intersection([e.type({"Connections Made To":e.string,Type:S(hn),Purpose:e.string}),e.partial({Service:e.string,Notes:e.string,Owners:e.string,Teams:e.string,Status:S(Ir)}),e.record(e.string,e.string)]),Io=e.intersection([e.type({Name:e.string,Purpose:e.string}),e.partial({Service:e.string,Notes:e.string,Owners:e.string,Teams:e.string,Status:S(Ir)}),e.record(e.string,e.string)]),fA=e.type({title:e.string,description:e.string,cookies:e.array(e.type({name:e.string,trackingPurposes:e.array(e.string)})),dataFlows:e.array(e.type({value:e.string,type:S(hn),trackingPurposes:e.array(e.string)}))}),gA=S(gr),Md=eo({TRouteName:S(gn)}),yA=S(gn),Fd=e.array(Md),Ud=no({TEnabledRoutes:Fd}),hA=e.partial({enabledIntegrations:e.partial({openAI:Ud})}),CA=e.partial({promptRunName:e.string,promptId:e.string,promptTitle:e.string,promptGroupId:e.string,promptGroupTitle:e.string,runByEmployeeEmail:e.string,applicationId:e.string,applicationName:e.string,codePackageName:e.string,repositoryName:e.string,applicationUserCoreIdentifier:e.string,applicationUserName:e.string,slackMessageTs:e.string,slackTeamId:e.string,slackChannelId:e.string,slackChannelName:e.string}),Bd=e.intersection([e.type({title:e.string}),e.partial({value:e.string})]),Qd=e.type({columns:e.array(Bd)}),IA=e.partial({rows:e.array(Qd),json:e.string});import{decodeCodec as So}from"@transcend-io/type-utils";import Po from"js-yaml";import{readFileSync as Vd,writeFileSync as Kd}from"fs";var Ao=/<<parameters\.(.+?)>>/,To="parameters";function jd(r,t,n=""){let o=r;if(Object.entries(t).forEach(([i,a])=>{o=o.split(`<<${To}.${i}>>`).join(a)}),Ao.test(o)){let[,i]=Ao.exec(o)||[];throw new Error(`Found variable that was not set: ${i}.
2
2
  Make sure you are passing all parameters through the --${To}=${i}:value-for-param flag.
3
3
  ${n}`)}return o}function bA(r,t={}){let n=Vd(r,"utf-8"),o=jd(n,t,`Also check that there are no extra variables defined in your yaml: ${r}`);return So(In,Po.load(o))}function wA(r,t){Kd(r,Po.dump(So(In,t)))}import Yd from"colors";import{bootstrap as zd}from"global-agent";import{ProxyAgent as Hd,setGlobalDispatcher as Zd}from"undici";import Wd from"yargs-parser";var p=console,{httpProxy:Ar=process.env.http_proxy}=Wd(process.argv.slice(2));Ar&&(p.info(Yd.green(`Initializing proxy: ${Ar}`)),process.env.GLOBAL_AGENT_HTTP_PROXY=Ar,zd(),Zd(new Hd(Ar)));import V from"colors";import{map as Fe}from"bluebird";import{gql as Ae}from"graphql-request";var Eo=Ae`
4
4
  query TranscendCliDataPoints(
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "author": "Transcend Inc.",
3
3
  "name": "@transcend-io/cli",
4
4
  "description": "Small package containing useful typescript utilities.",
5
- "version": "7.0.0-alpha.1",
5
+ "version": "7.0.0-alpha.2",
6
6
  "homepage": "https://github.com/transcend-io/cli",
7
7
  "repository": {
8
8
  "type": "git",