@transcend-io/cli 7.0.0-alpha.5 → 7.0.0-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/README.md +534 -2880
  2. package/dist/bin/bash-complete.js +1 -1
  3. package/dist/bin/cli.js +1 -1
  4. package/dist/bin/deprecated-command.js +2 -2
  5. package/dist/{chunk-XIARI2AK.js → chunk-4S2LOGFN.js} +1 -1
  6. package/dist/{chunk-VQCJGKAI.js → chunk-4ZV5X5DQ.js} +1 -1
  7. package/dist/{chunk-CS6MRI6K.js → chunk-7HDHUOTF.js} +145 -145
  8. package/dist/{chunk-PGK2CKUL.js → chunk-B45U2NAI.js} +1 -1
  9. package/dist/{chunk-WTUT47OZ.js → chunk-CZFGCIEO.js} +1 -1
  10. package/dist/{chunk-ZU3IU5OT.js → chunk-ELYPVDLC.js} +1 -1
  11. package/dist/{chunk-6RCR5ICJ.js → chunk-FI3PMXDN.js} +1 -1
  12. package/dist/chunk-FL3V7KJR.js +8 -0
  13. package/dist/{chunk-IKR6UVU4.js → chunk-HNMFVG75.js} +1 -1
  14. package/dist/chunk-NGVJ6L35.js +1 -0
  15. package/dist/chunk-P6Y4JJ7H.js +89 -0
  16. package/dist/chunk-RBOBI6B6.js +5 -0
  17. package/dist/{chunk-ILAP7QZC.js → chunk-T5XKXHEX.js} +1 -1
  18. package/dist/{chunk-ENFEJNL6.js → chunk-Z77MEZNJ.js} +1 -1
  19. package/dist/impl-27ZMTITY.js +5 -0
  20. package/dist/impl-4HVU2DPL.js +1 -0
  21. package/dist/{impl-DTTZJZP6.js → impl-4J5UT2YS.js} +1 -1
  22. package/dist/{impl-SK7Y2LHH.js → impl-4LDKW5YP.js} +1 -1
  23. package/dist/{impl-WOGVE6TG.js → impl-6QYOU3LQ.js} +1 -1
  24. package/dist/{impl-XRSPZZNB.js → impl-6XFLK23G.js} +1 -1
  25. package/dist/{impl-VMJNP54F.js → impl-6XIVNFHV.js} +1 -1
  26. package/dist/{impl-QTDYR7UU.js → impl-7SOARMNA.js} +1 -1
  27. package/dist/impl-ABUUSFBL.js +1 -0
  28. package/dist/{impl-SNMVE4PF.js → impl-BE2FBQB2.js} +1 -1
  29. package/dist/{impl-S5DCAN3C.js → impl-CFQR7ENW.js} +1 -1
  30. package/dist/{impl-3XRYCJFT.js → impl-CQWH2NIM.js} +1 -1
  31. package/dist/{impl-MDSL64U2.js → impl-CWRYQS7O.js} +1 -1
  32. package/dist/{impl-2YCE2D74.js → impl-ERKTUJJM.js} +1 -1
  33. package/dist/{impl-2JGCSM5O.js → impl-F3HANU3F.js} +1 -1
  34. package/dist/{impl-ARGVBVLO.js → impl-FAK3X2IM.js} +1 -1
  35. package/dist/impl-FJRPV5PJ.js +1 -0
  36. package/dist/{impl-7XM7ZTU2.js → impl-FWV53PHN.js} +1 -1
  37. package/dist/impl-FWVAOA62.js +1 -0
  38. package/dist/impl-GJK6YEB5.js +1 -0
  39. package/dist/{impl-Q6KORRPH.js → impl-H4UVNREH.js} +1 -1
  40. package/dist/{impl-3PQTSYDH.js → impl-IM4ZHNF7.js} +1 -1
  41. package/dist/{impl-H7IPYWZN.js → impl-J2EOVLOE.js} +1 -1
  42. package/dist/{impl-YGOTUBUV.js → impl-JA6H6ALC.js} +1 -1
  43. package/dist/impl-KE4S4ANH.js +1 -0
  44. package/dist/{impl-HTUHEZIA.js → impl-LAJLFEXD.js} +1 -1
  45. package/dist/{impl-XWLNP7GV.js → impl-M6PFOSZI.js} +1 -1
  46. package/dist/{impl-57NMZUTX.js → impl-SRQ3L7UZ.js} +1 -1
  47. package/dist/impl-SWXA6ZBI.js +1 -0
  48. package/dist/{impl-EFPJLZZR.js → impl-T22SYITP.js} +1 -1
  49. package/dist/impl-UCJD5FZ6.js +1 -0
  50. package/dist/impl-UIHX2POD.js +1 -0
  51. package/dist/{impl-U7CNU3TK.js → impl-UPRMABFX.js} +1 -1
  52. package/dist/{impl-J2IFOOJA.js → impl-WMDL5UOF.js} +1 -1
  53. package/dist/impl-XDCAAD6P.js +1 -0
  54. package/dist/{impl-KQWYFNW6.js → impl-XS4TFODP.js} +1 -1
  55. package/dist/impl-ZTS5VZXR.js +1 -0
  56. package/dist/index.js +2 -2
  57. package/package.json +3 -1
  58. package/dist/chunk-4AH7KIGL.js +0 -5
  59. package/dist/chunk-KV3K4JMM.js +0 -1
  60. package/dist/chunk-QYTCLNZ7.js +0 -48
  61. package/dist/chunk-TAH6ELB3.js +0 -3
  62. package/dist/impl-6ODC2EKH.js +0 -1
  63. package/dist/impl-7CNLLLYG.js +0 -1
  64. package/dist/impl-AUECLWIQ.js +0 -1
  65. package/dist/impl-FETIWTDE.js +0 -1
  66. package/dist/impl-GHND2SIW.js +0 -1
  67. package/dist/impl-GUPQO6QP.js +0 -1
  68. package/dist/impl-JG2FKNHG.js +0 -5
  69. package/dist/impl-M3H7IS5R.js +0 -1
  70. package/dist/impl-MX7XDUTI.js +0 -1
  71. package/dist/impl-TB3T5L3R.js +0 -1
  72. package/dist/impl-V2TQGX3T.js +0 -1
  73. package/dist/impl-W2HOHRDF.js +0 -1
  74. /package/dist/{impl-AQRJP63X.js → impl-NYB4YSNU.js} +0 -0
@@ -1,48 +0,0 @@
1
- import{a as o,b as n,c as g,d as a,e as t,f as r,g as s,j as k}from"./chunk-TAH6ELB3.js";import{a as i}from"./chunk-APA5PR4U.js";import{a as h,b}from"./chunk-VQCJGKAI.js";import{b as m,c as f}from"./chunk-EZCJGIOS.js";import{buildInstallCommand as ur,buildUninstallCommand as cr}from"@stricli/auto-complete";import{buildApplication as pr,buildRouteMap as mr}from"@stricli/core";import{buildRouteMap as ye}from"@stricli/core";import{buildCommand as ke}from"@stricli/core";var y=ke({loader:async()=>{let{generateApiKeys:e}=await import("./impl-DTTZJZP6.js");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:o,brief:"Filter for only a specific organization by ID, returning all child accounts associated with that organization",optional:!0},transcendUrl:r()}},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
-
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
-
5
- Authentication requires your email and password for the Transcend account. This command will only generate API keys for Transcend instances where you have the permission to "Manage API Keys".`}});var S=ye({routes:{"generate-api-keys":y},docs:{brief:"Admin commands"}});import{buildRouteMap as Le}from"@stricli/core";import{buildCommand as Se}from"@stricli/core";import{ScopeName as we}from"@transcend-io/privacy-types";var w=Se({loader:async()=>{let{buildXdiSyncEndpoint:e}=await import("./impl-WOGVE6TG.js");return e},parameters:{flags:{auth:t({scopes:[we.ViewConsentManager]}),xdiLocation:{kind:"parsed",parse:String,brief:"The location of the XDI that will be loaded by the generated sync endpoint"},file:{kind:"parsed",parse:String,brief:"The HTML file path where the sync endpoint should be written",default:"./sync-endpoint.html"},removeIpAddresses:{kind:"boolean",brief:"When true, remove IP addresses from the domain list",default:!0},domainBlockList:{kind:"parsed",parse:g,brief:"The set of domains that should be excluded from the sync endpoint. Comma-separated list.",default:"localhost"},xdiAllowedCommands:{kind:"parsed",parse:String,brief:"The allowed set of XDI commands",default:"ConsentManager:Sync"},transcendUrl:r()}},docs:{brief:"Build XDI sync endpoint",fullDescription:"This command allows for building of the XDI Sync Endpoint across a set of Transcend accounts."}});import{buildCommand as ve}from"@stricli/core";var v=ve({loader:async()=>{let{consentManagerServiceJsonToYml:e}=await import("./impl-AQRJP63X.js");return e},parameters:{flags:{file:{kind:"parsed",parse:String,brief:"Path to the services.json file, output of await airgap.getMetadata()",default:"./services.json"},output:{kind:"parsed",parse:String,brief:"Path to the output transcend.yml to write to",default:"./transcend.yml"}}},docs:{brief:"Convert consent manager service JSON to YML",fullDescription:"Import the services from an airgap.js file into a Transcend instance."}});import{buildCommand as Ce}from"@stricli/core";var C=Ce({loader:async()=>{let{consentManagersToBusinessEntities:e}=await import("./impl-HTUHEZIA.js");return e},parameters:{flags:{consentManagerYmlFolder:{kind:"parsed",parse:String,brief:"Path to the folder of Consent Manager transcend.yml files to combine"},output:{kind:"parsed",parse:String,brief:"Path to the output transcend.yml with business entity configuration",default:"./combined-business-entities.yml"}}},docs:{brief:"Convert consent managers to business entities",fullDescription:"This command allows for converting a folder or Consent Manager transcend.yml files into a single transcend.yml file where each consent manager configuration is a Business Entity in the data inventory."}});import{buildCommand as Te}from"@stricli/core";import{ScopeName as qe}from"@transcend-io/privacy-types";var T=Te({loader:async()=>{let{pullConsentMetrics:e}=await import("./impl-SK7Y2LHH.js");return e},parameters:{flags:{auth:t({scopes:[qe.ViewConsentManager]}),start:{kind:"parsed",parse:a,brief:"The start date to pull metrics from"},end:{kind:"parsed",parse:a,brief:"The end date to pull metrics until",optional:!0},folder:{kind:"parsed",parse:String,brief:"The folder to save metrics to",default:"./consent-metrics/"},bin:{kind:"parsed",parse:String,brief:"The bin metric when pulling data (1h or 1d)",default:"1d"},transcendUrl:r()}},docs:{brief:"Pull consent metrics",fullDescription:"This command allows for pulling consent manager metrics for a Transcend account, or a set of Transcend accounts."}});import{buildCommand as Pe,numberParser as Ae}from"@stricli/core";import{ScopeName as De}from"@transcend-io/privacy-types";var q=Pe({loader:async()=>{let{pullConsentPreferences:e}=await import("./impl-SNMVE4PF.js");return e},parameters:{flags:{auth:t({scopes:[De.ViewManagedConsentDatabaseAdminApi]}),partition:{kind:"parsed",parse:String,brief:"The partition key to download consent preferences to"},sombraAuth:s(),file:{kind:"parsed",parse:String,brief:"Path to the CSV file to save preferences to",default:"./preferences.csv"},transcendUrl:r(),timestampBefore:{kind:"parsed",parse:a,brief:"Filter for consents updated this time",optional:!0},timestampAfter:{kind:"parsed",parse:a,brief:"Filter for consents updated after this time",optional:!0},identifiers:{kind:"parsed",parse:String,variadic:",",brief:"Filter for specific identifiers",optional:!0},concurrency:{kind:"parsed",parse:Ae,brief:"The concurrency to use when downloading consents in parallel",default:"100"}}},docs:{brief:"Pull consent preferences",fullDescription:"This command allows for pull of consent preferences from the Managed Consent Database."}});import{buildCommand as Re}from"@stricli/core";import{ConsentBundleType as Ie,ScopeName as Ue}from"@transcend-io/privacy-types";var P=Re({loader:async()=>{let{updateConsentManager:e}=await import("./impl-J2IFOOJA.js");return e},parameters:{flags:{auth:t({scopes:[Ue.ManageConsentManagerDeveloperSettings]}),bundleTypes:{kind:"enum",values:Object.values(Ie),brief:"The bundle types to deploy. Defaults to PRODUCTION,TEST.",variadic:","},deploy:{kind:"boolean",brief:"When true, deploy the Consent Manager after updating the version",default:!1},transcendUrl:r()}},docs:{brief:"Update consent manager",fullDescription:"This command allows for updating Consent Manager to latest version. The consent manager bundle can also be deployed using this command."}});import{buildCommand as xe,numberParser as Me}from"@stricli/core";var A=xe({loader:async()=>{let{uploadConsentPreferences:e}=await import("./impl-W2HOHRDF.js");return e},parameters:{flags:{base64EncryptionKey:{kind:"parsed",parse:String,brief:"The encryption key used to encrypt the userId"},base64SigningKey:{kind:"parsed",parse:String,brief:"The signing key used to prove authentication of consent request"},partition:{kind:"parsed",parse:String,brief:"The partition key to download consent preferences to"},file:{kind:"parsed",parse:String,brief:"The file to pull consent preferences from",default:"./preferences.csv"},consentUrl:{kind:"parsed",parse:n,brief:"URL of the Transcend Consent backend. Use https://consent.us.transcend.io for US hosting",default:"https://consent.transcend.io"},concurrency:{kind:"parsed",parse:Me,brief:"The concurrency to use when uploading requests in parallel",default:"100"}}},docs:{brief:"Upload consent preferences",fullDescription:"This command allows for updating of consent preferences to the Managed Consent Database."}});import{buildCommand as Oe}from"@stricli/core";import{ConsentTrackerStatus as Ve,ScopeName as Fe}from"@transcend-io/privacy-types";var D=Oe({loader:async()=>{let{uploadCookiesFromCsv:e}=await import("./impl-GHND2SIW.js");return e},parameters:{flags:{auth:t({scopes:[Fe.ManageDataFlow]}),trackerStatus:{kind:"enum",values:Object.values(Ve),brief:"The status of the cookies you will upload."},file:{kind:"parsed",parse:String,brief:"Path to the CSV file to upload",default:"./cookies.csv"},transcendUrl:r()}},docs:{brief:"Upload cookies from CSV",fullDescription:"This command allows for uploading cookies from CSV."}});import{buildCommand as Ne}from"@stricli/core";import{ConsentTrackerStatus as je,ScopeName as Ee}from"@transcend-io/privacy-types";var R=Ne({loader:async()=>{let{uploadDataFlowsFromCsv:e}=await import("./impl-7CNLLLYG.js");return e},parameters:{flags:{auth:t({scopes:[Ee.ManageDataFlow]}),trackerStatus:{kind:"enum",values:Object.values(je),brief:"The status of the data flows you will upload."},file:{kind:"parsed",parse:String,brief:"Path to the CSV file to upload",default:"./data-flows.csv"},classifyService:{kind:"boolean",brief:"When true, automatically assign the service for a data flow based on the domain that is specified",default:!1},transcendUrl:r()}},docs:{brief:"Upload data flows from CSV",fullDescription:"This command allows for uploading of data flows from CSV."}});import{buildCommand as Be,numberParser as We}from"@stricli/core";import{ScopeName as d}from"@transcend-io/privacy-types";var I=Be({loader:async()=>{let{uploadPreferences:e}=await import("./impl-ARGVBVLO.js");return e},parameters:{flags:{auth:t({scopes:[d.ManageStoredPreferences,d.ViewManagedConsentDatabaseAdminApi,d.ViewPreferenceStoreSettings]}),partition:{kind:"parsed",parse:String,brief:"The partition key to download consent preferences to"},sombraAuth:s(),consentUrl:{kind:"parsed",parse:n,brief:"URL of the Transcend backend. Use https://consent.us.transcend.io for US hosting",default:"https://consent.transcend.io"},file:{kind:"parsed",parse:String,brief:"Path to the CSV file to load preferences from",optional:!0},directory:{kind:"parsed",parse:String,brief:"Path to the directory of CSV files to load preferences from",optional:!0},dryRun:{kind:"boolean",brief:"Whether to do a dry run only - will write results to receiptFilepath without updating Transcend",default:!1},skipExistingRecordCheck:{kind:"boolean",brief:"Whether to skip the check for existing records. SHOULD ONLY BE USED FOR INITIAL UPLOAD",default:!1},receiptFileDir:{kind:"parsed",parse:String,brief:"Directory path where the response receipts should be saved",default:"./receipts"},skipWorkflowTriggers:{kind:"boolean",brief:"Whether to skip workflow triggers when uploading to preference store",default:!1},forceTriggerWorkflows:{kind:"boolean",brief:"Whether to force trigger workflows for existing consent records",default:!1},skipConflictUpdates:{kind:"boolean",brief:"Whether to skip uploading of any records where the preference store and file have a hard conflict",default:!1},isSilent:{kind:"boolean",brief:"Whether to skip sending emails in workflows",default:!0},attributes:{kind:"parsed",parse:String,brief:"Attributes to add to any DSR request if created. Comma-separated list of key:value pairs.",default:"Tags:transcend-cli,Source:transcend-cli"},receiptFilepath:{kind:"parsed",parse:String,brief:"Store resulting, continuing where left off",default:"./preference-management-upload-receipts.json"},concurrency:{kind:"parsed",parse:We,brief:"The concurrency to use when uploading in parallel",default:"10"}}},docs:{brief:"Upload preferences",fullDescription:"This command allows for updating of preference management data to your Transcend Preference Store."}});var U=Le({routes:{"build-xdi-sync-endpoint":w,"pull-consent-metrics":T,"pull-consent-preferences":q,"update-consent-manager":P,"upload-consent-preferences":A,"upload-cookies-from-csv":D,"upload-data-flows-from-csv":R,"upload-preferences":I,"consent-manager-service-json-to-yml":v,"consent-managers-to-business-entities":C},docs:{brief:"Consent commands"}});import{buildRouteMap as at}from"@stricli/core";import{buildCommand as Ye}from"@stricli/core";var x=Ye({loader:async()=>{let{deriveDataSilosFromDataFlowsCrossInstance:e}=await import("./impl-VMJNP54F.js");return e},parameters:{flags:{auth:t({scopes:[]}),dataFlowsYmlFolder:{kind:"parsed",parse:String,brief:"The folder that contains data flow yml files"},output:{kind:"parsed",parse:String,brief:"The output transcend.yml file containing the data silo configurations",default:"./transcend.yml"},ignoreYmls:{kind:"parsed",parse:String,variadic:",",brief:"The set of yml files that should be skipped when uploading",optional:!0},transcendUrl:r()}},docs:{brief:"Derive data silos from data flows cross instance",fullDescription:"Given a folder of data flow transcend.yml configurations, convert those configurations to a single transcend.yml configurations of all related data silos."}});import{buildCommand as Ge}from"@stricli/core";var M=Ge({loader:async()=>{let{deriveDataSilosFromDataFlows:e}=await import("./impl-3PQTSYDH.js");return e},parameters:{flags:{auth:t({scopes:[]}),dataFlowsYmlFolder:{kind:"parsed",parse:String,brief:"The folder that contains data flow yml files"},dataSilosYmlFolder:{kind:"parsed",parse:String,brief:"The folder that contains data silo yml files"},ignoreYmls:{kind:"parsed",parse:String,variadic:",",brief:"The set of yml files that should be skipped when uploading",optional:!0},transcendUrl:r()}},docs:{brief:"Derive data silos from data flows",fullDescription:"Given a folder of data flow transcend.yml configurations, convert those configurations to set of data silo transcend.yml configurations."}});import{buildCommand as Ke}from"@stricli/core";import{ScopeName as Je}from"@transcend-io/privacy-types";var O=Ke({loader:async()=>{let{discoverSilos:e}=await import("./impl-H7IPYWZN.js");return e},parameters:{flags:{scanPath:{kind:"parsed",parse:String,brief:"File path in the project to scan"},dataSiloId:{kind:"parsed",parse:o,brief:"The UUID of the corresponding data silo"},auth:t({scopes:[Je.ManageAssignedDataInventory],requiresSiloScope:!0}),fileGlobs:{kind:"parsed",parse:String,brief:"You can pass a glob syntax pattern(s) to specify additional file paths to scan. Comma-separated list of globs.",default:""},ignoreDirs:{kind:"parsed",parse:String,brief:"Comma-separated list of directories to ignore.",default:""},transcendUrl:r()}},docs:{brief:"Discover silos",fullDescription:"Transcend can help scan dependency management files to help detect new data silos where you may be storing user personal data."}});import{buildCommand as _e}from"@stricli/core";import{DataCategoryType as ze,ScopeName as $e}from"@transcend-io/privacy-types";var V=_e({loader:async()=>{let{pullDatapoints:e}=await import("./impl-3XRYCJFT.js");return e},parameters:{flags:{auth:t({scopes:[$e.ViewDataInventory]}),file:{kind:"parsed",parse:String,brief:"The file to save datapoints to",default:"./datapoints.csv"},transcendUrl:r(),dataSiloIds:{kind:"parsed",parse:String,variadic:",",brief:"List of data silo IDs to filter by",optional:!0},includeAttributes:{kind:"boolean",brief:"Whether to include attributes in the output",default:!1},includeGuessedCategories:{kind:"boolean",brief:"Whether to include guessed categories in the output",default:!1},parentCategories:{kind:"enum",values:Object.values(ze),brief:"List of parent categories to filter by",variadic:",",optional:!0},subCategories:{kind:"parsed",parse:String,brief:"List of subcategories to filter by",variadic:",",optional:!0}}},docs:{brief:"Pull datapoints",fullDescription:"This command allows for pulling your Data Inventory -> Datapoints into a CSV."}});import{buildCommand as Xe}from"@stricli/core";import{ScopeName as He,UnstructuredSubDataPointRecommendationStatus as Qe}from"@transcend-io/privacy-types";var F=Xe({loader:async()=>{let{pullUnstructuredDiscoveryFiles:e}=await import("./impl-U7CNU3TK.js");return e},parameters:{flags:{auth:t({scopes:[He.ViewDataInventory]}),file:{kind:"parsed",parse:String,brief:"The file to save datapoints to",default:"./unstructured-discovery-files.csv"},transcendUrl:r(),dataSiloIds:{kind:"parsed",parse:String,brief:"List of data silo IDs to filter by",variadic:",",optional:!0},subCategories:{kind:"parsed",parse:String,brief:"List of data categories to filter by",variadic:",",optional:!0},status:{kind:"enum",values:Object.values(Qe),brief:"List of classification statuses to filter by",variadic:",",optional:!0},includeEncryptedSnippets:{kind:"boolean",brief:"Whether to include encrypted snippets of the entries classified",default:!1}}},docs:{brief:"Pull unstructured discovery files",fullDescription:"This command allows for pulling Unstructured Discovery into a CSV."}});import{buildCommand as Ze,numberParser as et}from"@stricli/core";var N=Ze({loader:async()=>{let{push:e}=await import("./impl-QTDYR7UU.js");return e},parameters:{flags:{auth:t({scopes:"Varies"}),file:{kind:"parsed",parse:String,brief:"Path to the YAML file to push from",default:"./transcend.yml"},transcendUrl:r(),pageSize:{kind:"parsed",parse:et,brief:"The page size to use when paginating over the API",default:"50"},variables:{kind:"parsed",parse:String,brief:"The variables to template into the YAML file when pushing configuration. Comma-separated list of key:value pairs.",default:""},publishToPrivacyCenter:{kind:"boolean",brief:"When true, publish the configuration to the Privacy Center",default:!1},classifyService:{kind:"boolean",brief:"When true, automatically assign the service for a data flow based on the domain that is specified",default:!1},deleteExtraAttributeValues:{kind:"boolean",brief:"When true and syncing attributes, delete any extra attributes instead of just upserting",default:!1}}},docs:{brief:"Push configuration to Transcend",fullDescription:"Given a transcend.yml file, sync the contents up to your connected services view."}});import{buildCommand as tt}from"@stricli/core";import{ScopeName as rt}from"@transcend-io/privacy-types";var j=tt({loader:async()=>{let{scanPackages:e}=await import("./impl-S5DCAN3C.js");return e},parameters:{flags:{auth:t({scopes:[rt.ManageCodeScanning]}),scanPath:{kind:"parsed",parse:String,brief:"File path in the project to scan",default:"./"},ignoreDirs:{kind:"parsed",parse:String,variadic:",",brief:"List of directories to ignore in scan",optional:!0},repositoryName:{kind:"parsed",parse:String,brief:"Name of the git repository that the package should be tied to",optional:!0},transcendUrl:r()}},docs:{brief:"Scan packages",fullDescription:"Transcend can scan your codebase to inventory your code packages and dependencies."}});var E=at({routes:{pull:k,push:N,"scan-packages":j,"discover-silos":O,"pull-datapoints":V,"pull-unstructured-discovery-files":F,"derive-data-silos-from-data-flows":M,"derive-data-silos-from-data-flows-cross-instance":x},docs:{brief:"Inventory commands"}});import{buildRouteMap as it}from"@stricli/core";import{buildCommand as st}from"@stricli/core";import{ScopeName as ot}from"@transcend-io/privacy-types";var B=st({loader:async()=>{let{syncOt:e}=await import("./impl-7XM7ZTU2.js");return e},parameters:{flags:{hostname:{kind:"parsed",parse:String,brief:"The domain of the OneTrust environment from which to pull the resource",optional:!0},oneTrustAuth:{kind:"parsed",parse:String,brief:"The OAuth access token with the scopes necessary to access the OneTrust Public APIs",optional:!0},source:{kind:"enum",values:Object.values(f),brief:"Whether to read the assessments from OneTrust or from a file",default:"oneTrust"},transcendAuth:{...t({scopes:[ot.ManageAssessments]}),optional:!0},transcendUrl:r(),file:{kind:"parsed",parse:String,brief:"Path to the file to pull the resource into. Must be a json file!",optional:!0},resource:{kind:"enum",values:Object.values(m),brief:"The resource to pull from OneTrust. For now, only assessments is supported",default:"assessments"},dryRun:{kind:"boolean",brief:"Whether to export the resource to a file rather than sync to Transcend",default:!1},debug:{kind:"boolean",brief:"Whether to print detailed logs in case of error",default:!1}}},docs:{brief:"Sync OneTrust data",fullDescription:`Pulls resources from a OneTrust and syncs them to a Transcend instance. For now, it only supports retrieving OneTrust Assessments.
6
-
7
- This command can be helpful if you are looking to:
8
- - Pull resources from your OneTrust account.
9
- - Migrate your resources from your OneTrust account to Transcend.
10
-
11
- OneTrust authentication requires an OAuth Token with scope for accessing the assessment endpoints.
12
- If syncing the resources to Transcend, you will also need to generate an API key on the Transcend Admin Dashboard.`}});var W=it({routes:{"sync-ot":B},docs:{brief:"Migration commands"}});import{buildRouteMap as lr}from"@stricli/core";import{buildCommand as nt,numberParser as dt}from"@stricli/core";import{RequestAction as lt,RequestOrigin as ut,ScopeName as l}from"@transcend-io/privacy-types";var L=nt({loader:async()=>{let{approve:e}=await import("./impl-Q6KORRPH.js");return e},parameters:{flags:{auth:t({scopes:[l.RequestApproval,l.ViewRequests,l.ManageRequestCompilation]}),actions:{kind:"enum",values:Object.values(lt),variadic:",",brief:"The request actions to approve"},origins:{kind:"enum",values:Object.values(ut),variadic:",",brief:"The request origins to approve",optional:!0},silentModeBefore:{kind:"parsed",parse:a,brief:"Any requests made before this date should be marked as silent mode",optional:!0},createdAtBefore:{kind:"parsed",parse:a,brief:"Approve requests that were submitted before this time",optional:!0},createdAtAfter:{kind:"parsed",parse:a,brief:"Approve requests that were submitted after this time",optional:!0},transcendUrl:r(),concurrency:{kind:"parsed",parse:dt,brief:"The concurrency to use when uploading requests in parallel",default:"50"}}},docs:{brief:"Bulk approve a set of privacy requests",fullDescription:"Bulk approve a set of privacy requests from the DSR Automation -> Incoming Requests tab."}});import{buildCommand as ct,numberParser as pt}from"@stricli/core";import{RequestAction as mt,RequestStatus as ft,ScopeName as Y}from"@transcend-io/privacy-types";var G=ct({loader:async()=>{let{cancel:e}=await import("./impl-MDSL64U2.js");return e},parameters:{flags:{auth:t({scopes:[Y.ViewRequests,Y.RequestApproval]}),actions:{kind:"enum",values:Object.values(mt),variadic:",",brief:"The request actions to cancel"},statuses:{kind:"enum",values:Object.values(ft),variadic:",",brief:"The request statuses to cancel. Comma-separated list.",optional:!0},requestIds:{kind:"parsed",parse:String,variadic:",",brief:"Specify the specific request IDs to cancel",optional:!0},silentModeBefore:{kind:"parsed",parse:a,brief:"Any requests made before this date should be marked as silent mode for canceling to skip email sending",optional:!0},createdAtBefore:{kind:"parsed",parse:a,brief:"Cancel requests that were submitted before this time",optional:!0},createdAtAfter:{kind:"parsed",parse:a,brief:"Cancel requests that were submitted after this time",optional:!0},cancellationTitle:{kind:"parsed",parse:String,brief:"The title of the email template that should be sent to the requests upon cancelation",default:"Request Canceled"},transcendUrl:r(),concurrency:{kind:"parsed",parse:pt,brief:"The concurrency to use when uploading requests in parallel",default:"50"}}},docs:{brief:"Bulk cancel a set of privacy requests",fullDescription:"Bulk cancel a set of privacy requests from the DSR Automation -> Incoming Requests tab."}});import{buildRouteMap as kt}from"@stricli/core";import{buildCommand as ht}from"@stricli/core";var K=ht({loader:async()=>{let{markIdentifiersCompleted:e}=await import("./impl-TB3T5L3R.js");return e},parameters:{flags:{auth:t({scopes:[],requiresSiloScope:!0}),dataSiloId:{kind:"parsed",parse:o,brief:"The ID of the data silo to pull in"},file:{kind:"parsed",parse:String,brief:"Path to the CSV file where identifiers will be written to",default:"./cron-identifiers.csv"},transcendUrl:r(),sombraAuth:s()}},docs:{brief:"Mark identifiers as completed after processing.",fullDescription:`This command takes the output of tr-cron-pull-identifiers and notifies Transcend that all of the requests in the CSV have been processed.
13
- This is used in the workflow like:
14
-
15
- 1. Pull identifiers to CSV:
16
- ${i} request cron pull-identifiers --auth=$TRANSCEND_API_KEY --dataSiloId=70810f2e-cf90-43f6-9776-901a5950599f --actions=ERASURE --file=./outstanding-requests.csv
17
- 2. Run your process to operate on that CSV of requests.
18
- 3. Notify Transcend of completion
19
- ${i} request cron mark-identifiers-completed --auth=$TRANSCEND_API_KEY --dataSiloId=70810f2e-cf90-43f6-9776-901a5950599f --file=./outstanding-requests.csv
20
-
21
- Read more at https://docs.transcend.io/docs/integrations/cron-job-integration.`}});import{buildCommand as bt,numberParser as J}from"@stricli/core";import{RequestAction as gt}from"@transcend-io/privacy-types";var _=bt({loader:async()=>{let{pullIdentifiers:e}=await import("./impl-AUECLWIQ.js");return e},parameters:{flags:{auth:t({scopes:[],requiresSiloScope:!0}),dataSiloId:{kind:"parsed",parse:o,brief:"The ID of the data silo to pull in"},actions:{kind:"enum",values:Object.values(gt),variadic:",",brief:"The request actions to restart"},file:{kind:"parsed",parse:String,brief:"Path to the CSV file where identifiers will be written to",default:"./cron-identifiers.csv"},transcendUrl:r(),sombraAuth:s(),pageLimit:{kind:"parsed",parse:J,brief:"The page limit to use when pulling in pages of identifiers",default:"100"},skipRequestCount:{kind:"boolean",brief:"Whether to skip the count of all outstanding requests. This is required to render the progress bar, but can take a long time to run if you have a large number of outstanding requests to process. In that case, we recommend setting skipRequestCount=true so that you can still proceed with fetching the identifiers",default:!1},chunkSize:{kind:"parsed",parse:J,brief:"Maximum number of rows per CSV file. For large datasets, the output will be automatically split into multiple files to avoid file system size limits. Each file will contain at most this many rows",default:"100000"}}},docs:{brief:"Pull identifiers of outstanding requests for a data silo to a CSV.",fullDescription:`If you are using the cron job integration, you can run this command to pull the outstanding identifiers for the data silo to a CSV.
22
-
23
- For large datasets, the output will be automatically split into multiple CSV files to avoid file system size limits. Use the --chunkSize parameter to control the maximum number of rows per file.
24
-
25
- Read more at https://docs.transcend.io/docs/integrations/cron-job-integration.`}});var z=kt({routes:{"pull-identifiers":_,"mark-identifiers-completed":K},docs:{brief:"Cron commands"}});import{buildCommand as yt,numberParser as St}from"@stricli/core";import{RequestStatus as wt,ScopeName as u}from"@transcend-io/privacy-types";var $=yt({loader:async()=>{let{downloadFiles:e}=await import("./impl-YGOTUBUV.js");return e},parameters:{flags:{auth:t({scopes:[u.ViewRequestCompilation,u.ViewRequests,u.RequestApproval]}),sombraAuth:s(),concurrency:{kind:"parsed",parse:St,brief:"The concurrency to use when downloading requests in parallel",default:"10"},requestIds:{kind:"parsed",parse:String,variadic:",",brief:"Specify the specific request IDs to download",optional:!0},statuses:{kind:"enum",values:Object.values(wt),variadic:",",brief:"The request statuses to download. Comma-separated list. Defaults to APPROVING,DOWNLOADABLE.",optional:!0},folderPath:{kind:"parsed",parse:String,brief:"The folder to download files to",default:"./dsr-files"},createdAtBefore:{kind:"parsed",parse:a,brief:"Download requests that were submitted before this time",optional:!0},createdAtAfter:{kind:"parsed",parse:a,brief:"Download requests that were submitted after this time",optional:!0},approveAfterDownload:{kind:"boolean",brief:"If the request is in status=APPROVING, approve the request after its downloaded",default:!1},transcendUrl:r()}},docs:{brief:"Download the files associated with a Data Subject Access Request (DSAR)",fullDescription:"Download the files associated with a Data Subject Access Request (DSAR) from DSR Automation -> Incoming Requests tab."}});import{buildCommand as vt,numberParser as Ct}from"@stricli/core";import{RequestAction as Tt,RequestEnricherStatus as qt,ScopeName as Pt}from"@transcend-io/privacy-types";var X=vt({loader:async()=>{let{enricherRestart:e}=await import("./impl-2JGCSM5O.js");return e},parameters:{flags:{auth:t({scopes:[Pt.ManageRequestCompilation]}),enricherId:{kind:"parsed",parse:String,brief:"The ID of the enricher to restart"},actions:{kind:"enum",values:Object.values(Tt),variadic:",",brief:"The request action to restart",optional:!0},requestEnricherStatuses:{kind:"enum",values:Object.values(qt),variadic:",",brief:"The request enricher statuses to restart",optional:!0},transcendUrl:r(),concurrency:{kind:"parsed",parse:Ct,brief:"The concurrency to use when uploading requests in parallel",default:"15"},requestIds:{kind:"parsed",parse:String,variadic:",",brief:"Specify the specific request IDs to restart",optional:!0},createdAtBefore:{kind:"parsed",parse:a,brief:"Restart requests that were submitted before this time",optional:!0},createdAtAfter:{kind:"parsed",parse:a,brief:"Restart requests that were submitted after this time",optional:!0}}},docs:{brief:"Bulk restart a particular enricher across a series of DSRs",fullDescription:`Bulk restart a particular enricher across a series of DSRs.
26
-
27
- The API key needs the following scopes:
28
- - Manage Request Compilation`}});import{buildCommand as At,numberParser as H}from"@stricli/core";import{RequestAction as Dt,RequestStatus as Rt,ScopeName as Q}from"@transcend-io/privacy-types";var Z=At({loader:async()=>{let{_export:e}=await import("./impl-KQWYFNW6.js");return e},parameters:{flags:{auth:t({scopes:[Q.ViewRequests,Q.ViewRequestCompilation]}),sombraAuth:s(),actions:{kind:"enum",values:Object.values(Dt),variadic:",",brief:"The request actions to export",optional:!0},statuses:{kind:"enum",values:Object.values(Rt),variadic:",",brief:"The request statuses to export",optional:!0},transcendUrl:r(),file:{kind:"parsed",parse:String,brief:"Path to the CSV file where identifiers will be written to",default:"./transcend-request-export.csv"},concurrency:{kind:"parsed",parse:H,brief:"The concurrency to use when uploading requests in parallel",default:"100"},createdAtBefore:{kind:"parsed",parse:a,brief:"Pull requests that were submitted before this time",optional:!0},createdAtAfter:{kind:"parsed",parse:a,brief:"Pull requests that were submitted after this time",optional:!0},showTests:{kind:"boolean",brief:"Filter for test requests or production requests - when not provided, pulls both",optional:!0},pageLimit:{kind:"parsed",parse:H,brief:"The page limit to use when pulling in pages of requests",default:"100"}}},docs:{brief:"Export privacy requests and request identifiers to a CSV file",fullDescription:"Export privacy requests and request identifiers to a CSV file."}});import{buildCommand as It,numberParser as Ut}from"@stricli/core";import{RequestAction as xt,RequestStatus as Mt,ScopeName as Ot}from"@transcend-io/privacy-types";var ee=It({loader:async()=>{let{markSilent:e}=await import("./impl-EFPJLZZR.js");return e},parameters:{flags:{auth:t({scopes:[Ot.ManageRequestCompilation]}),actions:{kind:"enum",values:Object.values(xt),variadic:",",brief:"The request actions to mark silent"},statuses:{kind:"enum",values:Object.values(Mt),variadic:",",brief:"The request statuses to mark silent. Comma-separated list. Defaults to REQUEST_MADE,WAITING,ENRICHING,COMPILING,DELAYED,APPROVING,SECONDARY,SECONDARY_APPROVING.",optional:!0},requestIds:{kind:"parsed",parse:String,variadic:",",brief:"Specify the specific request IDs to mark silent",optional:!0},createdAtBefore:{kind:"parsed",parse:a,brief:"Mark silent requests that were submitted before this time",optional:!0},createdAtAfter:{kind:"parsed",parse:a,brief:"Mark silent requests that were submitted after this time",optional:!0},transcendUrl:r(),concurrency:{kind:"parsed",parse:Ut,brief:"The concurrency to use when uploading requests in parallel",default:"50"}}},docs:{brief:"Bulk update a set of privacy requests to be in silent mode",fullDescription:"Bulk update a set of privacy requests from the DSR Automation -> Incoming Requests tab to be in silent mode."}});import{buildCommand as Vt,numberParser as c}from"@stricli/core";import{RequestAction as Ft,ScopeName as te}from"@transcend-io/privacy-types";var re=Vt({loader:async()=>{let{notifyAdditionalTime:e}=await import("./impl-XRSPZZNB.js");return e},parameters:{flags:{auth:t({scopes:[te.ViewRequests,te.RequestApproval]}),createdAtBefore:{kind:"parsed",parse:a,brief:"Notify requests that are open but submitted before this time"},createdAtAfter:{kind:"parsed",parse:a,brief:"Notify requests that are open but submitted after this time",optional:!0},actions:{kind:"enum",values:Object.values(Ft),variadic:",",brief:"The request actions to notify",optional:!0},daysLeft:{kind:"parsed",parse:c,brief:"Only notify requests that have less than this number of days until they are considered expired",default:"10"},days:{kind:"parsed",parse:c,brief:"The number of days to adjust the expiration of the request to",default:"45"},requestIds:{kind:"parsed",parse:String,variadic:",",brief:"Specify the specific request IDs to notify",optional:!0},emailTemplate:{kind:"parsed",parse:String,brief:"The title of the email template that should be sent to the requests",default:"Additional Time Needed"},transcendUrl:r(),concurrency:{kind:"parsed",parse:c,brief:"The concurrency to use when uploading requests in parallel",default:"50"}}},docs:{brief:"Bulk notify a set of privacy requests that more time is needed",fullDescription:"Bulk notify a set of privacy requests from the DSR Automation -> Incoming Requests tab that more time is needed to complete the request. Note any request in silent mode will not be emailed."}});import{buildRouteMap as Lt}from"@stricli/core";import{buildCommand as Nt,numberParser as jt}from"@stricli/core";import{RequestAction as Et,ScopeName as ae}from"@transcend-io/privacy-types";var se=Nt({loader:async()=>{let{pullIdentifiers:e}=await import("./impl-6ODC2EKH.js");return e},parameters:{flags:{auth:t({scopes:[ae.ViewRequests,ae.ViewRequestCompilation]}),sombraAuth:s(),transcendUrl:r(),file:{kind:"parsed",parse:String,brief:"Path to the CSV file where requests will be written to",default:"./manual-enrichment-identifiers.csv"},actions:{kind:"enum",values:Object.values(Et),variadic:",",brief:"The request actions to pull for",optional:!0},concurrency:{kind:"parsed",parse:jt,brief:"The concurrency to use when uploading requests in parallel",default:"100"}}},docs:{brief:"Pull identifiers for manual enrichment",fullDescription:`This command pulls down the set of privacy requests that are currently pending manual enrichment.
29
-
30
- This is useful for the following workflow:
31
-
32
- 1. Pull identifiers to CSV:
33
- ${i} request preflight pull-identifiers --file=./enrichment-requests.csv
34
- 2. Fill out the CSV with additional identifiers
35
- 3. Push updated back to Transcend
36
- ${i} request preflight push-identifiers --file=./enrichment-requests.csv`}});import{buildCommand as Bt,numberParser as Wt}from"@stricli/core";import{ScopeName as oe}from"@transcend-io/privacy-types";var ie=Bt({loader:async()=>{let{pushIdentifiers:e}=await import("./impl-FETIWTDE.js");return e},parameters:{flags:{auth:t({scopes:[oe.ManageRequestIdentities,oe.ManageRequestCompilation]}),enricherId:{kind:"parsed",parse:o,brief:"The ID of the Request Enricher to upload to"},sombraAuth:s(),transcendUrl:r(),file:{kind:"parsed",parse:String,brief:"Path to the CSV file where requests will be written to",default:"./manual-enrichment-identifiers.csv"},markSilent:{kind:"boolean",brief:"When true, set requests into silent mode before enriching",default:!1},concurrency:{kind:"parsed",parse:Wt,brief:"The concurrency to use when uploading requests in parallel",default:"100"}}},docs:{brief:"Push identifiers for manual enrichment",fullDescription:`This command push up a set of identifiers for a set of requests pending manual enrichment.
37
-
38
- This is useful for the following workflow:
39
-
40
- 1. Pull identifiers to CSV:
41
- ${i} request preflight pull-identifiers --file=./enrichment-requests.csv
42
- 2. Fill out the CSV with additional identifiers
43
- 3. Push updated back to Transcend
44
- ${i} request preflight push-identifiers --file=./enrichment-requests.csv`}});var ne=Lt({routes:{"pull-identifiers":se,"push-identifiers":ie},docs:{brief:"Preflight commands"}});import{buildCommand as Yt}from"@stricli/core";import{RequestAction as Gt,ScopeName as Kt}from"@transcend-io/privacy-types";var de=Yt({loader:async()=>{let{rejectUnverifiedIdentifiers:e}=await import("./impl-M3H7IS5R.js");return e},parameters:{flags:{auth:t({scopes:[Kt.ManageRequestCompilation]}),identifierNames:{kind:"parsed",parse:String,variadic:",",brief:"The names of identifiers to clear out"},actions:{kind:"enum",values:Object.values(Gt),variadic:",",brief:"The request action to restart",optional:!0},transcendUrl:r()}},docs:{brief:"Bulk clear out any request identifiers that are unverified",fullDescription:"Bulk clear out any request identifiers that are unverified."}});import{buildCommand as Jt,numberParser as _t}from"@stricli/core";import{RequestAction as zt,RequestStatus as $t,ScopeName as le}from"@transcend-io/privacy-types";var ue=Jt({loader:async()=>{let{restart:e}=await import("./impl-57NMZUTX.js");return e},parameters:{flags:{auth:t({scopes:[le.MakeDataSubjectRequest,le.ViewRequestCompilation]}),actions:{kind:"enum",values:Object.values(zt),variadic:",",brief:"The request actions to restart"},statuses:{kind:"enum",values:Object.values($t),variadic:",",brief:"The request statuses to restart"},transcendUrl:r(),requestReceiptFolder:{kind:"parsed",parse:String,brief:"The path to the folder where receipts of each upload are stored",default:"./privacy-request-upload-receipts"},sombraAuth:s(),concurrency:{kind:"parsed",parse:_t,brief:"The concurrency to use when uploading requests in parallel",default:"15"},requestIds:{kind:"parsed",parse:String,variadic:",",brief:"Specify the specific request IDs to restart",optional:!0},emailIsVerified:{kind:"boolean",brief:"Indicate whether the primary email address is verified. Set to false to send a verification email",default:!0},createdAt:{kind:"parsed",parse:a,brief:"Restart requests that were submitted before a specific date",optional:!0},silentModeBefore:{kind:"parsed",parse:a,brief:"Requests older than this date should be marked as silent mode",optional:!0},createdAtBefore:{kind:"parsed",parse:a,brief:"Restart requests that were submitted before this time",optional:!0},createdAtAfter:{kind:"parsed",parse:a,brief:"Restart requests that were submitted after this time",optional:!0},sendEmailReceipt:{kind:"boolean",brief:"Send email receipts to the restarted requests",default:!1},copyIdentifiers:{kind:"boolean",brief:"Copy over all enriched identifiers from the initial request",default:!1},skipWaitingPeriod:{kind:"boolean",brief:"Skip queued state of request and go straight to compiling",default:!1}}},docs:{brief:"Bulk update a set of privacy requests based on a set of request filters",fullDescription:"Bulk update a set of privacy requests based on a set of request filters."}});import{buildCommand as Xt}from"@stricli/core";import{ScopeName as Ht}from"@transcend-io/privacy-types";var ce=Xt({loader:async()=>{let{skipPreflightJobs:e}=await import("./impl-V2TQGX3T.js");return e},parameters:{flags:{auth:t({scopes:[Ht.ManageRequestCompilation]}),enricherIds:{kind:"parsed",parse:String,variadic:",",brief:"The ID of the enrichers to skip privacy request jobs for"},transcendUrl:r()}},docs:{brief:"Skip preflight jobs",fullDescription:"This command allows for bulk skipping preflight checks."}});import{buildRouteMap as ir}from"@stricli/core";import{buildCommand as Qt}from"@stricli/core";import{ScopeName as Zt}from"@transcend-io/privacy-types";var pe=Qt({loader:async()=>{let{markRequestDataSilosCompleted:e}=await import("./impl-2YCE2D74.js");return e},parameters:{flags:{auth:t({scopes:[Zt.ManageRequestCompilation]}),dataSiloId:{kind:"parsed",parse:o,brief:"The ID of the data silo to pull in"},file:{kind:"parsed",parse:String,brief:"Path to the CSV file where identifiers will be written to",default:"./request-identifiers.csv"},transcendUrl:r()}},docs:{brief:"Mark request data silos as completed",fullDescription:`This command takes in a CSV of Request IDs as well as a Data Silo ID and marks all associated privacy request jobs as completed.
45
- This command is useful with the "Bulk Response" UI. The CSV is expected to have 1 column named "Request Id".`}});import{buildCommand as er}from"@stricli/core";import{RequestAction as tr,ScopeName as rr}from"@transcend-io/privacy-types";var me=er({loader:async()=>{let{retryRequestDataSilos:e}=await import("./impl-MX7XDUTI.js");return e},parameters:{flags:{auth:t({scopes:[rr.ManageRequestCompilation]}),dataSiloId:{kind:"parsed",parse:o,brief:"The ID of the data silo to pull in"},actions:{kind:"enum",values:Object.values(tr),variadic:",",brief:"The request actions to restart"},transcendUrl:r()}},docs:{brief:"Retry request data silos",fullDescription:'This command allows for bulk restarting a set of data silos jobs for open privacy requests. This is equivalent to clicking the "Wipe and Retry" button for a particular data silo across a set of privacy requests.'}});import{buildCommand as ar}from"@stricli/core";import{RequestStatus as sr,ScopeName as or}from"@transcend-io/privacy-types";var fe=ar({loader:async()=>{let{skipRequestDataSilos:e}=await import("./impl-GUPQO6QP.js");return e},parameters:{flags:{auth:t({scopes:[or.ManageRequestCompilation]}),dataSiloId:{kind:"parsed",parse:o,brief:"The ID of the data silo to skip privacy request jobs for"},transcendUrl:r(),statuses:{kind:"enum",values:Object.values(sr),variadic:",",brief:"The request statuses to skip"},status:{kind:"enum",values:["SKIPPED","RESOLVED"],brief:"The status to set the request data silo job to",default:"SKIPPED"}}},docs:{brief:"Skip request data silos",fullDescription:"This command allows for bulk skipping all open privacy request jobs for a particular data silo. This command is useful if you want to disable a data silo and then clear out any active privacy requests that are still queued up for that data silo."}});var he=ir({routes:{"mark-request-data-silos-completed":pe,"retry-request-data-silos":me,"skip-request-data-silos":fe},docs:{brief:"System commands"}});import{buildCommand as nr,numberParser as dr}from"@stricli/core";import{ScopeName as p}from"@transcend-io/privacy-types";var be=nr({loader:async()=>{let{upload:e}=await import("./impl-XWLNP7GV.js");return e},parameters:{flags:{auth:t({scopes:[p.MakeDataSubjectRequest,p.ViewRequestIdentitySettings,p.ViewGlobalAttributes]}),file:{kind:"parsed",parse:String,brief:"Path to the CSV file of requests to upload",default:"./requests.csv"},transcendUrl:r(),cacheFilepath:{kind:"parsed",parse:String,brief:"The path to the JSON file encoding the metadata used to map the CSV shape to Transcend API",default:"./transcend-privacy-requests-cache.json"},requestReceiptFolder:{kind:"parsed",parse:String,brief:"The path to the folder where receipts of each upload are stored",default:"./privacy-request-upload-receipts"},sombraAuth:s(),concurrency:{kind:"parsed",parse:dr,brief:"The concurrency to use when uploading requests in parallel",default:"50"},attributes:{kind:"parsed",parse:String,brief:"Tag all of the requests with the following attributes. Format: key1:value1;value2,key2:value3;value4",default:"Tags:transcend-cli"},isTest:{kind:"boolean",brief:"Flag whether the requests being uploaded are test requests or regular requests",default:!1},isSilent:{kind:"boolean",brief:"Flag whether the requests being uploaded should be submitted in silent mode",default:!0},skipSendingReceipt:{kind:"boolean",brief:"Flag whether to skip sending of the receipt email",default:!1},emailIsVerified:{kind:"boolean",brief:"Indicate whether the email address being uploaded is pre-verified. Set to false to send a verification email",default:!0},skipFilterStep:{kind:"boolean",brief:"When true, skip the interactive step to filter down the CSV",default:!1},dryRun:{kind:"boolean",brief:"When true, perform a dry run of the upload instead of calling the API to submit the requests",default:!1},debug:{kind:"boolean",brief:"Debug logging",default:!1},defaultPhoneCountryCode:{kind:"parsed",parse:String,brief:"When uploading phone numbers, if the phone number is missing a country code, assume this country code",default:"1"}}},docs:{brief:"Upload a set of requests from a CSV",fullDescription:`If you need to upload a set of requests from a CSV, you can run this command.
46
- This command uses inquirer to prompt the user to map the shape of the CSV to the shape of the Transcend API. There is no requirement for the shape of the incoming CSV, as the script will handle the mapping process.
47
-
48
- The script will also produce a JSON cache file, that allows for the mappings to be preserved between runs.`}});var ge=lr({routes:{approve:L,upload:be,"download-files":$,cancel:G,restart:ue,"notify-additional-time":re,"mark-silent":ee,"enricher-restart":X,"reject-unverified-identifiers":de,export:Z,"skip-preflight-jobs":ce,system:he,preflight:ne,cron:z},docs:{brief:"All commands related to DSR requests"}});var fr=mr({routes:{request:ge,consent:U,inventory:E,admin:S,migration:W,install:ur("@transcend-io/transcend",{bash:"__@transcend-io/cli_bash_complete"}),uninstall:cr("@transcend-io/transcend",{bash:!0})},docs:{brief:h,hideRoute:{install:!0,uninstall:!0}}}),Ai=pr(fr,{name:i,versionInfo:{currentVersion:b}});export{Ai as a};
@@ -1,3 +0,0 @@
1
- import{d as a}from"./chunk-EZCJGIOS.js";import{buildCommand as c,numberParser as f}from"@stricli/core";import{ConsentTrackerStatus as l}from"@transcend-io/privacy-types";import{ScopeName as d,TRANSCEND_SCOPES as n}from"@transcend-io/privacy-types";function m(e){if(!/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e))throw new Error(`Invalid UUID format: ${e}`);return e}function i(e){try{return new URL(e).toString()}catch{throw new Error(`Invalid URL format: ${e}`)}}function h(e){return e.split(",").map(r=>r.trim()).filter(r=>r.length>0)}function g(e){let r=new Date(e);if(Number.isNaN(r.getTime()))throw new TypeError(`Invalid date: ${e}. Try using the ISO 8601 format (YYYY-MM-DDTHH:MM:SS.SSSZ)`);return r}var o=({scopes:e,requiresSiloScope:r=!1})=>{let t={kind:"parsed",parse:String,brief:"The Transcend API key."};return r&&(t.brief+=" This key must be associated with the data silo(s) being operated on."),e==="Varies"?{...t,brief:`${t.brief} The scopes required will vary depending on the operation performed. If in doubt, the ${n[d.FullAdmin].title} scope will always work.`}:e.length===0?{...t,brief:`${t.brief} No scopes are required for this command.`}:{...t,brief:`${t.brief} Requires scopes: ${e.map(u=>`"${n[u].title}"`).join(", ")}`}},s=(e="https://api.transcend.io")=>({kind:"parsed",parse:i,brief:"URL of the Transcend backend. Use https://api.us.transcend.io for US hosting",default:e}),k=()=>({kind:"parsed",parse:String,brief:"The Sombra internal key, use for additional authentication when self-hosting Sombra",optional:!0});var p=["dataSilos","enrichers","templates","apiKeys"],U=Object.values(l),A=c({loader:async()=>{let{pull:e}=await import("./impl-JG2FKNHG.js");return e},parameters:{flags:{auth:o({scopes:"Varies"}),resources:{kind:"enum",values:Object.values(a),brief:`The different resource types to pull in. Defaults to ${p.join(",")}.`,variadic:",",optional:!0},file:{kind:"parsed",parse:String,brief:"Path to the YAML file to pull into",default:"./transcend.yml"},transcendUrl:s(),dataSiloIds:{kind:"parsed",parse:String,variadic:",",brief:"The UUIDs of the data silos that should be pulled into the YAML file",optional:!0},integrationNames:{kind:"parsed",parse:String,variadic:",",brief:"The types of integrations to pull down",optional:!0},trackerStatuses:{kind:"enum",values:Object.values(l),variadic:",",brief:"The statuses of consent manager trackers to pull down. Defaults to all statuses.",optional:!0},pageSize:{kind:"parsed",parse:f,brief:"The page size to use when paginating over the API",default:"50"},skipDatapoints:{kind:"boolean",brief:"When true, skip pulling in datapoints alongside data silo resource",default:!1},skipSubDatapoints:{kind:"boolean",brief:"When true, skip pulling in subDatapoints alongside data silo resource",default:!1},includeGuessedCategories:{kind:"boolean",brief:"When true, included guessed data categories that came from the content classifier",default:!1},debug:{kind:"boolean",brief:"Set to true to include debug logs while pulling the configuration",default:!1}}},docs:{brief:"Pull configuration from Transcend",fullDescription:`Generate's a transcend.yml by pulling the configuration from your connected services view.
2
-
3
- The API key needs various scopes depending on the resources being pulled.`}});export{m as a,i as b,h as c,g as d,o as e,s as f,k as g,p as h,U as i,A as j};
@@ -1 +0,0 @@
1
- import{a as t}from"./chunk-PGK2CKUL.js";import"./chunk-4AH7KIGL.js";import"./chunk-ZU3IU5OT.js";import"./chunk-CS6MRI6K.js";import"./chunk-APA5PR4U.js";import"./chunk-VQCJGKAI.js";import"./chunk-OERYFLN2.js";import"./chunk-EZCJGIOS.js";async function c({auth:n,transcendUrl:e,file:i,concurrency:r,actions:o,sombraAuth:s}){await t({file:i,transcendUrl:e,concurrency:r,requestActions:o,auth:n,sombraAuth:s})}export{c as pullIdentifiers};
@@ -1 +0,0 @@
1
- import{b as a}from"./chunk-XIARI2AK.js";import"./chunk-ILAP7QZC.js";import"./chunk-ZU3IU5OT.js";import"./chunk-CS6MRI6K.js";import"./chunk-APA5PR4U.js";import"./chunk-VQCJGKAI.js";import"./chunk-HMF46LB7.js";import"./chunk-W6GUOMVP.js";import"./chunk-OERYFLN2.js";import"./chunk-EZCJGIOS.js";async function n({auth:o,trackerStatus:t,file:r,classifyService:s,transcendUrl:e}){await a({auth:o,trackerStatus:t,file:r,classifyService:s,transcendUrl:e})}export{n as uploadDataFlowsFromCsv};
@@ -1 +0,0 @@
1
- import{c as l}from"./chunk-KV3K4JMM.js";import{d as a}from"./chunk-4AH7KIGL.js";import"./chunk-ZU3IU5OT.js";import"./chunk-CS6MRI6K.js";import"./chunk-APA5PR4U.js";import"./chunk-VQCJGKAI.js";import{a as e}from"./chunk-OERYFLN2.js";import"./chunk-EZCJGIOS.js";import i from"colors";import{uniq as w}from"lodash-es";async function q({file:r,transcendUrl:f,auth:m,sombraAuth:c,dataSiloId:u,actions:g,pageLimit:d,skipRequestCount:s,chunkSize:p}){s&&e.info(i.yellow("Skipping request count as requested. This may help speed up the call."));let{identifiersFormattedForCsv:t}=await l({transcendUrl:f,pageLimit:d,actions:g,auth:m,sombraAuth:c,dataSiloId:u,skipRequestCount:s}),h=w(t.map(n=>Object.keys(n)).flat()),o=await a(r,t,h,p);o.length===1?e.info(i.green(`Successfully wrote ${t.length} identifiers to file "${r}"`)):(e.info(i.green(`Successfully wrote ${t.length} identifiers to ${o.length} files:`)),o.forEach(n=>{e.info(i.green(` - ${n}`))}))}export{q as pullIdentifiers};
@@ -1 +0,0 @@
1
- import{d as n}from"./chunk-PGK2CKUL.js";import"./chunk-4AH7KIGL.js";import"./chunk-ZU3IU5OT.js";import"./chunk-CS6MRI6K.js";import"./chunk-APA5PR4U.js";import"./chunk-VQCJGKAI.js";import"./chunk-OERYFLN2.js";import"./chunk-EZCJGIOS.js";async function c({auth:t,transcendUrl:r,file:e,enricherId:i,concurrency:s,markSilent:o,sombraAuth:a}){await n({file:e,transcendUrl:r,enricherId:i,concurrency:s,markSilent:o,auth:t,sombraAuth:a})}export{c as pushIdentifiers};
@@ -1 +0,0 @@
1
- import{c as o}from"./chunk-XIARI2AK.js";import"./chunk-ILAP7QZC.js";import"./chunk-ZU3IU5OT.js";import"./chunk-CS6MRI6K.js";import"./chunk-APA5PR4U.js";import"./chunk-VQCJGKAI.js";import"./chunk-HMF46LB7.js";import"./chunk-W6GUOMVP.js";import"./chunk-OERYFLN2.js";import"./chunk-EZCJGIOS.js";async function i({auth:t,trackerStatus:r,file:s,transcendUrl:a}){await o({auth:t,trackerStatus:r,file:s,transcendUrl:a})}export{i as uploadCookiesFromCsv};
@@ -1 +0,0 @@
1
- import{V as t}from"./chunk-ZU3IU5OT.js";import"./chunk-CS6MRI6K.js";import"./chunk-APA5PR4U.js";import"./chunk-VQCJGKAI.js";import"./chunk-OERYFLN2.js";import"./chunk-EZCJGIOS.js";async function n({auth:s,dataSiloId:a,status:e,statuses:i,transcendUrl:o}){await t({transcendUrl:o,auth:s,status:e,dataSiloId:a,requestStatuses:i})}export{n as skipRequestDataSilos};
@@ -1,5 +0,0 @@
1
- import{h as N,i as x}from"./chunk-TAH6ELB3.js";import{b as E}from"./chunk-IKR6UVU4.js";import{a as w,be as m,pe as f}from"./chunk-CS6MRI6K.js";import{c as g}from"./chunk-APA5PR4U.js";import"./chunk-VQCJGKAI.js";import{e as l}from"./chunk-QQRMUEM7.js";import"./chunk-HMF46LB7.js";import"./chunk-W6GUOMVP.js";import{a as o}from"./chunk-OERYFLN2.js";import"./chunk-EZCJGIOS.js";import n from"colors";import{join as _}from"path";import b from"fs";async function V({auth:L,resources:u=N,file:e,transcendUrl:p,dataSiloIds:d=[],integrationNames:T=[],trackerStatuses:y=x,pageSize:S,skipDatapoints:h,skipSubDatapoints:$,includeGuessedCategories:A,debug:a}){let i=await E(L);if(typeof i=="string"){try{let r=f(p,i),t=await m(r,{dataSiloIds:d,integrationNames:T,resources:u,pageSize:S,debug:a,skipDatapoints:h,skipSubDatapoints:$,includeGuessedCategories:A,trackerStatuses:y});o.info(n.magenta(`Writing configuration to file "${e}"...`)),l(e,t)}catch(r){o.error(n.red(`An error occurred syncing the schema: ${a?r.stack:r.message}`)),process.exit(1)}o.info(n.green(`Successfully synced yaml file to disk at ${e}! View at ${g}`))}else{if(!b.lstatSync(e).isDirectory())throw new Error("File is expected to be a folder when passing in a list of API keys to pull from. e.g. --file=./working/");let r=[];await w(i,async(t,P)=>{let s=`[${P+1}/${i.length}][${t.organizationName}] `;o.info(n.magenta(`~~~
2
-
3
- ${s}Attempting to pull configuration...
4
-
5
- ~~~`));let R=f(p,t.apiKey);try{let c=await m(R,{dataSiloIds:d,integrationNames:T,resources:u,pageSize:S,debug:a,skipDatapoints:h,skipSubDatapoints:$,includeGuessedCategories:A,trackerStatuses:y}),C=_(e,`${t.organizationName}.yml`);o.info(n.magenta(`Writing configuration to file "${C}"...`)),l(C,c),o.info(n.green(`${s}Successfully pulled configuration!`))}catch(c){o.error(n.red(`${s}Failed to sync configuration. - ${c.message}`)),r.push(t.organizationName)}}),r.length>0&&(o.info(n.red(`Sync encountered errors for "${r.join(",")}". View output above for more information, or check out ${g}`)),process.exit(1))}}export{V as pull};
@@ -1 +0,0 @@
1
- import{W as e}from"./chunk-ZU3IU5OT.js";import"./chunk-CS6MRI6K.js";import"./chunk-APA5PR4U.js";import"./chunk-VQCJGKAI.js";import"./chunk-OERYFLN2.js";import"./chunk-EZCJGIOS.js";async function s({auth:t,transcendUrl:i,identifierNames:n,actions:r=[]}){await e({requestActions:r,transcendUrl:i,auth:t,identifierNames:n})}export{s as rejectUnverifiedIdentifiers};
@@ -1 +0,0 @@
1
- import{T as t}from"./chunk-ZU3IU5OT.js";import"./chunk-CS6MRI6K.js";import"./chunk-APA5PR4U.js";import"./chunk-VQCJGKAI.js";import"./chunk-OERYFLN2.js";import"./chunk-EZCJGIOS.js";async function i({auth:e,dataSiloId:a,actions:o,transcendUrl:s}){await t({requestActions:o,transcendUrl:s,auth:e,dataSiloId:a})}export{i as retryRequestDataSilos};
@@ -1 +0,0 @@
1
- import{f as t}from"./chunk-KV3K4JMM.js";import"./chunk-4AH7KIGL.js";import"./chunk-ZU3IU5OT.js";import"./chunk-CS6MRI6K.js";import"./chunk-APA5PR4U.js";import"./chunk-VQCJGKAI.js";import"./chunk-OERYFLN2.js";import"./chunk-EZCJGIOS.js";async function s({file:e,transcendUrl:r,auth:i,sombraAuth:o,dataSiloId:n}){await t({file:e,transcendUrl:r,auth:i,sombraAuth:o,dataSiloId:n})}export{s as markIdentifiersCompleted};
@@ -1 +0,0 @@
1
- import{R as t}from"./chunk-ZU3IU5OT.js";import"./chunk-CS6MRI6K.js";import"./chunk-APA5PR4U.js";import"./chunk-VQCJGKAI.js";import"./chunk-OERYFLN2.js";import"./chunk-EZCJGIOS.js";async function e({auth:i,transcendUrl:o,enricherIds:r}){await t({transcendUrl:o,auth:i,enricherIds:r})}export{e as skipPreflightJobs};
@@ -1 +0,0 @@
1
- import{b as n,f as r}from"./chunk-ILAP7QZC.js";import{q as e}from"./chunk-ZU3IU5OT.js";import"./chunk-CS6MRI6K.js";import"./chunk-APA5PR4U.js";import"./chunk-VQCJGKAI.js";import"./chunk-OERYFLN2.js";import"./chunk-EZCJGIOS.js";async function d({base64EncryptionKey:o,base64SigningKey:t,partition:s,file:i,consentUrl:a,concurrency:c}){let m=e(i,n);await r({base64EncryptionKey:o,base64SigningKey:t,preferences:m,partition:s,concurrency:c,transcendUrl:a})}export{d as uploadConsentPreferences};
File without changes