@transcend-io/cli 8.0.3 → 8.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/bash-complete.cjs +1 -1
- package/dist/bin/cli.cjs +1 -1
- package/dist/bin/deprecated-command.cjs +2 -2
- package/dist/{chunk-PZBS6J75.cjs → chunk-5CASGOYO.cjs} +2 -2
- package/dist/{chunk-PZBS6J75.cjs.map → chunk-5CASGOYO.cjs.map} +1 -1
- package/dist/{chunk-ID37BANI.cjs → chunk-64NSLWFO.cjs} +2 -2
- package/dist/{chunk-ID37BANI.cjs.map → chunk-64NSLWFO.cjs.map} +1 -1
- package/dist/{chunk-6XM6VMLJ.cjs → chunk-G2RYLVXE.cjs} +2 -2
- package/dist/{chunk-6XM6VMLJ.cjs.map → chunk-G2RYLVXE.cjs.map} +1 -1
- package/dist/{chunk-CKMSFTE3.cjs → chunk-JSRAOZZ6.cjs} +4 -4
- package/dist/{chunk-CKMSFTE3.cjs.map → chunk-JSRAOZZ6.cjs.map} +1 -1
- package/dist/{chunk-6TGK25IB.cjs → chunk-KPHRJOVE.cjs} +19 -19
- package/dist/{chunk-6TGK25IB.cjs.map → chunk-KPHRJOVE.cjs.map} +1 -1
- package/dist/{chunk-VOKC5JFF.cjs → chunk-MW7LWU22.cjs} +2 -2
- package/dist/{chunk-VOKC5JFF.cjs.map → chunk-MW7LWU22.cjs.map} +1 -1
- package/dist/{chunk-RWJAOMT2.cjs → chunk-NK3UOW57.cjs} +2 -2
- package/dist/{chunk-RWJAOMT2.cjs.map → chunk-NK3UOW57.cjs.map} +1 -1
- package/dist/{chunk-NKFMM546.cjs → chunk-OCR4DFWO.cjs} +2 -2
- package/dist/{chunk-NKFMM546.cjs.map → chunk-OCR4DFWO.cjs.map} +1 -1
- package/dist/{chunk-6OZONTDQ.cjs → chunk-PE4HNCQR.cjs} +2 -2
- package/dist/{chunk-6OZONTDQ.cjs.map → chunk-PE4HNCQR.cjs.map} +1 -1
- package/dist/{chunk-LKUJWJR3.cjs → chunk-VC2CQFF6.cjs} +18 -18
- package/dist/{chunk-LKUJWJR3.cjs.map → chunk-VC2CQFF6.cjs.map} +1 -1
- package/dist/{chunk-O3WQC6E5.cjs → chunk-WHPCDQ2M.cjs} +2 -2
- package/dist/{chunk-O3WQC6E5.cjs.map → chunk-WHPCDQ2M.cjs.map} +1 -1
- package/dist/{chunk-VGKI7LU6.cjs → chunk-YI64LKPI.cjs} +3 -3
- package/dist/{chunk-VGKI7LU6.cjs.map → chunk-YI64LKPI.cjs.map} +1 -1
- package/dist/{impl-WYJ3WF33.cjs → impl-2AGXLR3A.cjs} +2 -2
- package/dist/{impl-WYJ3WF33.cjs.map → impl-2AGXLR3A.cjs.map} +1 -1
- package/dist/{impl-TGEQAHJ6.cjs → impl-3GH73363.cjs} +3 -3
- package/dist/{impl-TGEQAHJ6.cjs.map → impl-3GH73363.cjs.map} +1 -1
- package/dist/{impl-KLZ5YXHK.cjs → impl-4TMBSBEB.cjs} +2 -2
- package/dist/{impl-KLZ5YXHK.cjs.map → impl-4TMBSBEB.cjs.map} +1 -1
- package/dist/{impl-5AFEZAKI.cjs → impl-5KIZM7DZ.cjs} +2 -2
- package/dist/{impl-5AFEZAKI.cjs.map → impl-5KIZM7DZ.cjs.map} +1 -1
- package/dist/{impl-BNFO7GWR.cjs → impl-6BAE5WBN.cjs} +2 -2
- package/dist/{impl-BNFO7GWR.cjs.map → impl-6BAE5WBN.cjs.map} +1 -1
- package/dist/impl-6VTXHT65.cjs +2 -0
- package/dist/{impl-OUJ4L35V.cjs.map → impl-6VTXHT65.cjs.map} +1 -1
- package/dist/{impl-QW3OXCQ4.cjs → impl-7F4HRG7W.cjs} +2 -2
- package/dist/{impl-QW3OXCQ4.cjs.map → impl-7F4HRG7W.cjs.map} +1 -1
- package/dist/{impl-QX2IEWST.cjs → impl-BVHAYEDJ.cjs} +2 -2
- package/dist/{impl-QX2IEWST.cjs.map → impl-BVHAYEDJ.cjs.map} +1 -1
- package/dist/{impl-RZQTA7AY.cjs → impl-BVMMUS3H.cjs} +2 -2
- package/dist/{impl-RZQTA7AY.cjs.map → impl-BVMMUS3H.cjs.map} +1 -1
- package/dist/{impl-FLGGMBT2.cjs → impl-CBR3T2TO.cjs} +2 -2
- package/dist/{impl-FLGGMBT2.cjs.map → impl-CBR3T2TO.cjs.map} +1 -1
- package/dist/{impl-MLYBMFOO.cjs → impl-CMOCM7M3.cjs} +2 -2
- package/dist/{impl-MLYBMFOO.cjs.map → impl-CMOCM7M3.cjs.map} +1 -1
- package/dist/{impl-G4QTM3EH.cjs → impl-COZKREV2.cjs} +2 -2
- package/dist/{impl-G4QTM3EH.cjs.map → impl-COZKREV2.cjs.map} +1 -1
- package/dist/{impl-2LCNGN5D.cjs → impl-DBCA7TLX.cjs} +2 -2
- package/dist/{impl-2LCNGN5D.cjs.map → impl-DBCA7TLX.cjs.map} +1 -1
- package/dist/{impl-IAR3M5WX.cjs → impl-FHDL2UJA.cjs} +2 -2
- package/dist/{impl-IAR3M5WX.cjs.map → impl-FHDL2UJA.cjs.map} +1 -1
- package/dist/{impl-66EIN2RJ.cjs → impl-G7IP3UKA.cjs} +2 -2
- package/dist/{impl-66EIN2RJ.cjs.map → impl-G7IP3UKA.cjs.map} +1 -1
- package/dist/{impl-OFTJE5SD.cjs → impl-GLYDPF2H.cjs} +2 -2
- package/dist/{impl-OFTJE5SD.cjs.map → impl-GLYDPF2H.cjs.map} +1 -1
- package/dist/{impl-6R4MPO2O.cjs → impl-HKSHO5LS.cjs} +5 -5
- package/dist/{impl-6R4MPO2O.cjs.map → impl-HKSHO5LS.cjs.map} +1 -1
- package/dist/{impl-G4TWPWWG.cjs → impl-HXJBJMJO.cjs} +2 -2
- package/dist/{impl-G4TWPWWG.cjs.map → impl-HXJBJMJO.cjs.map} +1 -1
- package/dist/{impl-LXV4X3QI.cjs → impl-IAABMFWT.cjs} +2 -2
- package/dist/{impl-LXV4X3QI.cjs.map → impl-IAABMFWT.cjs.map} +1 -1
- package/dist/{impl-33QXEL4O.cjs → impl-JRZGC5RI.cjs} +2 -2
- package/dist/{impl-33QXEL4O.cjs.map → impl-JRZGC5RI.cjs.map} +1 -1
- package/dist/{impl-FBTBJCFT.cjs → impl-KKF6NOPO.cjs} +2 -2
- package/dist/{impl-FBTBJCFT.cjs.map → impl-KKF6NOPO.cjs.map} +1 -1
- package/dist/{impl-QWSN2LRT.cjs → impl-L2FC5R4E.cjs} +2 -2
- package/dist/{impl-QWSN2LRT.cjs.map → impl-L2FC5R4E.cjs.map} +1 -1
- package/dist/{impl-QHCWUI7F.cjs → impl-L3LGTE5B.cjs} +2 -2
- package/dist/{impl-QHCWUI7F.cjs.map → impl-L3LGTE5B.cjs.map} +1 -1
- package/dist/{impl-OJSC5MYT.cjs → impl-N27TYR32.cjs} +4 -4
- package/dist/{impl-OJSC5MYT.cjs.map → impl-N27TYR32.cjs.map} +1 -1
- package/dist/{impl-5YD72VPT.cjs → impl-OB32UUXA.cjs} +2 -2
- package/dist/{impl-5YD72VPT.cjs.map → impl-OB32UUXA.cjs.map} +1 -1
- package/dist/{impl-TGWQ5K5I.cjs → impl-OZKQBV32.cjs} +2 -2
- package/dist/{impl-TGWQ5K5I.cjs.map → impl-OZKQBV32.cjs.map} +1 -1
- package/dist/{impl-MY6ZDXYW.cjs → impl-QUV2ESVE.cjs} +2 -2
- package/dist/{impl-MY6ZDXYW.cjs.map → impl-QUV2ESVE.cjs.map} +1 -1
- package/dist/{impl-S2JT2ALK.cjs → impl-QVY2ZKBO.cjs} +2 -2
- package/dist/{impl-S2JT2ALK.cjs.map → impl-QVY2ZKBO.cjs.map} +1 -1
- package/dist/{impl-TJW5OUHX.cjs → impl-RBZ76Q2P.cjs} +3 -3
- package/dist/{impl-TJW5OUHX.cjs.map → impl-RBZ76Q2P.cjs.map} +1 -1
- package/dist/{impl-FUIXYMVR.cjs → impl-SADGOZU4.cjs} +2 -2
- package/dist/{impl-FUIXYMVR.cjs.map → impl-SADGOZU4.cjs.map} +1 -1
- package/dist/{impl-VVKD5D4X.cjs → impl-SRP2IUKA.cjs} +2 -2
- package/dist/{impl-VVKD5D4X.cjs.map → impl-SRP2IUKA.cjs.map} +1 -1
- package/dist/{impl-OXQKOZ4M.cjs → impl-VLRWJX5M.cjs} +2 -2
- package/dist/{impl-OXQKOZ4M.cjs.map → impl-VLRWJX5M.cjs.map} +1 -1
- package/dist/{impl-43DKJXBV.cjs → impl-VWR67EJC.cjs} +2 -2
- package/dist/{impl-43DKJXBV.cjs.map → impl-VWR67EJC.cjs.map} +1 -1
- package/dist/{impl-6U7SEQSV.cjs → impl-VZES6KJB.cjs} +2 -2
- package/dist/{impl-6U7SEQSV.cjs.map → impl-VZES6KJB.cjs.map} +1 -1
- package/dist/{impl-L7K7UJ6R.cjs → impl-WQCWQU4U.cjs} +6 -6
- package/dist/{impl-L7K7UJ6R.cjs.map → impl-WQCWQU4U.cjs.map} +1 -1
- package/dist/{impl-UQUGKIP5.cjs → impl-XMXCDMVR.cjs} +2 -2
- package/dist/{impl-UQUGKIP5.cjs.map → impl-XMXCDMVR.cjs.map} +1 -1
- package/dist/{impl-6RKVUEC3.cjs → impl-YKCAXA4R.cjs} +2 -2
- package/dist/{impl-6RKVUEC3.cjs.map → impl-YKCAXA4R.cjs.map} +1 -1
- package/dist/{impl-O5IWDALJ.cjs → impl-ZNSLS4FH.cjs} +2 -2
- package/dist/{impl-O5IWDALJ.cjs.map → impl-ZNSLS4FH.cjs.map} +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +42 -2
- package/package.json +1 -1
- package/dist/impl-OUJ4L35V.cjs +0 -2
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var _class;var _chunk6XM6VMLJcjs = require('./chunk-6XM6VMLJ.cjs');var _chunkCKMSFTE3cjs = require('./chunk-CKMSFTE3.cjs');var _chunkIBTP5OXEcjs = require('./chunk-IBTP5OXE.cjs');var _chunkSW5CIF5Dcjs = require('./chunk-SW5CIF5D.cjs');var _chunkRWJAOMT2cjs = require('./chunk-RWJAOMT2.cjs');var _chunkPZBS6J75cjs = require('./chunk-PZBS6J75.cjs');var _chunkLR3CPNDMcjs = require('./chunk-LR3CPNDM.cjs');var _chunkVGKI7LU6cjs = require('./chunk-VGKI7LU6.cjs');var _chunk6OZONTDQcjs = require('./chunk-6OZONTDQ.cjs');var _chunkQEM6S2W7cjs = require('./chunk-QEM6S2W7.cjs');var _chunkLKUJWJR3cjs = require('./chunk-LKUJWJR3.cjs');var _chunkLCDYXJN6cjs = require('./chunk-LCDYXJN6.cjs');require('./chunk-ZUNVPK23.cjs');var _chunkO3WQC6E5cjs = require('./chunk-O3WQC6E5.cjs');var _chunkQ7I37FJVcjs = require('./chunk-Q7I37FJV.cjs');var _typeutils = require('@transcend-io/type-utils');var _handlebarsutils = require('@transcend-io/handlebars-utils');var _privacytypes = require('@transcend-io/privacy-types');var T=20;async function D(a){let e=[],r=0,t=!1;do{let{largeLanguageModels:{nodes:s}}=await _chunkLKUJWJR3cjs.Uf.call(void 0, a,_chunkLKUJWJR3cjs.Fb,{first:T,offset:r});e.push(...s),r+=T,t=s.length===T}while(t);return e.sort((s,o)=>s.name.localeCompare(o.name))}var _bluebird = require('bluebird');function j(a){return new RegExp(`<${a}>([\\s\\S]+?)<\\/${a}>`)}function Dm(a){return a}var H=a=>{try{return JSON.parse(a)}catch (e2){return a}},B= exports.TranscendPromptManager = (_class =class{__init() {this.largeLanguageModels=[]}__init2() {this.agentsByName={}}__init3() {this.agentsByAgentId={}}constructor({prompts:e,handlebarsOptions:r={},transcendUrl:t=_chunkO3WQC6E5cjs.r,transcendApiKey:s,requireApproval:o=!0,cacheDuration:i,defaultVariables:p={}}){;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);this.prompts=e,this.transcendUrl=t,this.transcendApiKey=s,this.variables=p,this.defaultVariables=p,this.graphQLClient=_chunkLKUJWJR3cjs.vc.call(void 0, t,typeof s=="object"?s.release():s),this.requireApproval=o,this.cacheDuration=i,this.handlebarsOptions=r,this.handlebars=_handlebarsutils.createHandlebarsWithHelpers.call(void 0, r)}async fetchPromptsAndMetadata(){let e=_typeutils.getValues.call(void 0, this.prompts),r=e.map(({id:n})=>n).filter(n=>!!n),t=e.map(({title:n})=>n).filter(n=>!!n),s=_chunkO3WQC6E5cjs.j.call(void 0, e.map(({agentNames:n})=>n||[]).flat()),[o,i,p]=await Promise.all([_chunkLKUJWJR3cjs.yd.call(void 0, this.graphQLClient,{promptIds:r,promptTitles:t}),D(this.graphQLClient),_chunkLKUJWJR3cjs.Fc.call(void 0, this.graphQLClient,{names:s})]);this.agentsByName=_chunkO3WQC6E5cjs.e.call(void 0, p,"name"),this.agentsByAgentId=_chunkO3WQC6E5cjs.e.call(void 0, p,"agentId"),this.largeLanguageModels=i.filter(n=>n.isTranscendHosted===!1);let m=_chunkO3WQC6E5cjs.e.call(void 0, o.prompts,"title"),c=_chunkO3WQC6E5cjs.e.call(void 0, o.prompts,"id");return this.variables={...o.calculatedVariables.reduce((n,g)=>Object.assign(n,{[g.name]:g.data?JSON.parse(g.data):g.data}),{}),...this.defaultVariables},this.handlebars=_handlebarsutils.createHandlebarsWithHelpers.call(void 0, {...this.handlebarsOptions,templates:[...this.handlebarsOptions.templates||[],...o.promptPartials.map(n=>({name:n.slug,content:n.content}))]}),this.promptContentMap=_typeutils.apply.call(void 0, this.prompts,({id:n,title:g})=>{let d=n?c[n]:g?m[g]:void 0;if(!d)throw new Error(`Failed to find prompt with title: "${g}" and id: "${n}"`);return d}),this.lastUpdatedAt=new Date,o}async getAgentByName(e){let r=this.agentsByName[e];if(r)return r;let[t]=await _chunkLKUJWJR3cjs.Fc.call(void 0, this.graphQLClient,{names:[e]});if(t)return this.agentsByName[t.name]=t,this.agentsByAgentId[t.agentId]=t,t}async getPromptThreadBySlackTs(e){let[r]=await _chunkLKUJWJR3cjs.zd.call(void 0, this.graphQLClient,{slackMessageTs:[e]});return r}async getAgentsByName(e){if(e.length<1)throw new Error("Expected at least one name to be provided");let{hasCache:r=[],missingCache:t=[]}=_chunkO3WQC6E5cjs.d.call(void 0, e,p=>this.agentsByName[p]?"hasCache":"missingCache"),s=r.map(p=>this.agentsByName[p]);if(t.length===0)return s;let o=_chunkO3WQC6E5cjs.b.call(void 0, t,50),i=[];return await _bluebird.mapSeries.call(void 0, o,async p=>{let m=await _chunkLKUJWJR3cjs.Fc.call(void 0, this.graphQLClient,{names:p});m.forEach(c=>{this.agentsByName[c.name]=c,this.agentsByAgentId[c.agentId]=c}),i.push(...m)}),[...s,...i]}getAgentFiles(e){return _chunkLKUJWJR3cjs.Dc.call(void 0, this.graphQLClient,e)}getLargeLanguageModel(e){let r=this.largeLanguageModels.find(t=>typeof e=="string"?t.id===e:t.name===e.name&&t.client===e.client);if(!r)throw new Error(`Failed to find model matching: ${typeof e=="string"?e:JSON.stringify(e)}`);return r}async getPromptDefinition(e){(!this.lastUpdatedAt||this.cacheDuration===0||this.cacheDuration&&Date.now()-this.lastUpdatedAt.getTime()>this.cacheDuration)&&await this.fetchPromptsAndMetadata();let{promptContentMap:r}=this;if(!r)throw new Error("Expected this.promptContentMap to be defined");let t=r[e];if(!t)throw new Error(`Expected this.promptContentMap[${e}] to be defined`);return t}async compilePrompt(e,r){let t=await this.getPromptDefinition(e),s=this.prompts[e];if(!s)throw new Error(`Expected this.prompts[${e}] to be defined`);if(this.requireApproval&&t.status!==_privacytypes.PromptStatus.Approved)throw new Error(`Assessment "${t.title}" cannot be used because its in status: "${t.status}"`);if(t.status===_privacytypes.PromptStatus.Rejected)throw new Error(`Assessment "${t.title}" cannot be used because it's in status: "${t.status}"`);return _typeutils.decodeCodec.call(void 0, s.paramCodec,r),this.handlebars.compile(t.content)({currentDate:new Date().toISOString(),...this.variables,...r})}parseAiResponse(e,r){let t=this.prompts[e];if(!t)throw new Error(`Expected this.prompts[${e}] to be defined`);let s=t.extractFromTag&&(j(t.extractFromTag).exec(r)||[])[1]||r;return _typeutils.decodeCodec.call(void 0, t.outputCodec,H(s),!1)}async reportAndParsePromptRun(e,{largeLanguageModel:r,...t}){(!this.lastUpdatedAt||this.cacheDuration===0||this.cacheDuration&&Date.now()-this.lastUpdatedAt.getTime()>this.cacheDuration)&&await this.fetchPromptsAndMetadata();let s=t.name||`@transcend-io/cli-prompt-run-${new Date().toISOString()}`;if(!this.promptContentMap)throw new Error("Expected this.promptContentMap to be defined");let o=this.promptContentMap[e];if(!o)throw new Error(`Expected this.prompts[${e}] to be defined`);if(t.promptRunMessages.length===0)throw new Error("promptRunMessages is expected to have length > 0");if(t.promptRunMessages[0].role!==_privacytypes.ChatCompletionRole.System)throw new Error(`promptRunMessages[0].role is expected to be = ${_privacytypes.ChatCompletionRole.System}`);if(t.promptRunMessages[t.promptRunMessages.length-1].role!==_privacytypes.ChatCompletionRole.Assistant)throw new Error(`promptRunMessages[${t.promptRunMessages.length-1}].role is expected to be = ${_privacytypes.ChatCompletionRole.Assistant}`);let i=t.promptRunMessages[t.promptRunMessages.length-1].content,p;try{p=this.parseAiResponse(e,i)}catch(c){throw await _chunkLKUJWJR3cjs.ae.call(void 0, this.graphQLClient,{productArea:_privacytypes.PromptRunProductArea.PromptManager,...t,name:s,error:c.message,status:_privacytypes.QueueStatus.Error,...typeof r=="string"?{largeLanguageModelId:r}:{largeLanguageModelName:r.name,largeLanguageModelClient:r.client},promptId:o.id,promptRunMessages:t.promptRunMessages.map((n,g)=>({...n,...g===0?{template:o.content}:{}}))}),c}let m=await _chunkLKUJWJR3cjs.ae.call(void 0, this.graphQLClient,{productArea:_privacytypes.PromptRunProductArea.PromptManager,...t,name:s,status:_privacytypes.QueueStatus.Resolved,...typeof r=="string"?{largeLanguageModelId:r}:{largeLanguageModelName:r.name,largeLanguageModelClient:r.client},promptId:o.id,promptRunMessages:t.promptRunMessages.map((c,n)=>({...c,...n===0?{template:o.content}:{}}))});return{result:p,promptRunId:m,promptRunUrl:`https://app.transcend.io/prompts/runs/${m}`}}async reportPromptRunError(e,{largeLanguageModel:r,...t}){(!this.lastUpdatedAt||this.cacheDuration===0||this.cacheDuration&&Date.now()-this.lastUpdatedAt.getTime()>this.cacheDuration)&&await this.fetchPromptsAndMetadata();let s=t.name||`@transcend-io/cli-prompt-run-${new Date().toISOString()}`;if(!this.promptContentMap)throw new Error("Expected this.promptContentMap to be defined");let o=this.promptContentMap[e];if(!o)throw new Error(`Expected this.prompts[${e}] to be defined`);if(t.promptRunMessages.length===0)throw new Error("promptRunMessages is expected to have length > 0");if(t.promptRunMessages[0].role!==_privacytypes.ChatCompletionRole.System)throw new Error(`promptRunMessages[0].role is expected to be = ${_privacytypes.ChatCompletionRole.System}`);let i=await _chunkLKUJWJR3cjs.ae.call(void 0, this.graphQLClient,{productArea:_privacytypes.PromptRunProductArea.PromptManager,...t,name:s,status:_privacytypes.QueueStatus.Error,...typeof r=="string"?{largeLanguageModelId:r}:{largeLanguageModelName:r.name,largeLanguageModelClient:r.client},promptId:o.id,promptRunMessages:t.promptRunMessages.map((p,m)=>({...p,...m===0?{template:o.content}:{}}))});return{promptRunId:i,promptRunUrl:`https://app.transcend.io/prompts/runs/${i}`}}}, _class);function Sm(a){let e=/(https?:\/\/[^\s]+)/g;return a.replace(e,"<link-omitted>")}function Bm(a){return Object.entries(a).reduce((e,[r,t])=>t!=null&&t!==""&&!(Array.isArray(t)&&t.length===0)&&!(typeof t=="object"&&Object.keys(t).length===0)?Object.assign(e,{[r]:t}):e,{})}var _fastglob = require('fast-glob'); var _fastglob2 = _interopRequireDefault(_fastglob);var _child_process = require('child_process');function jm({baseBranch:a,rootDirectory:e,githubRepo:r,excludedGlob:t=[],fileBlockList:s=[]}){_child_process.execSync.call(void 0, `git fetch origin ${a}`);let o=_child_process.execSync.call(void 0, `git ls-remote ${r} "refs/heads/${a}" | cut -f 1`,{encoding:"utf-8"}).split(`
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var _class;var _chunkG2RYLVXEcjs = require('./chunk-G2RYLVXE.cjs');var _chunkJSRAOZZ6cjs = require('./chunk-JSRAOZZ6.cjs');var _chunkIBTP5OXEcjs = require('./chunk-IBTP5OXE.cjs');var _chunkSW5CIF5Dcjs = require('./chunk-SW5CIF5D.cjs');var _chunkNK3UOW57cjs = require('./chunk-NK3UOW57.cjs');var _chunk5CASGOYOcjs = require('./chunk-5CASGOYO.cjs');var _chunkLR3CPNDMcjs = require('./chunk-LR3CPNDM.cjs');var _chunkYI64LKPIcjs = require('./chunk-YI64LKPI.cjs');var _chunkPE4HNCQRcjs = require('./chunk-PE4HNCQR.cjs');var _chunkQEM6S2W7cjs = require('./chunk-QEM6S2W7.cjs');var _chunkVC2CQFF6cjs = require('./chunk-VC2CQFF6.cjs');var _chunkLCDYXJN6cjs = require('./chunk-LCDYXJN6.cjs');require('./chunk-ZUNVPK23.cjs');var _chunkWHPCDQ2Mcjs = require('./chunk-WHPCDQ2M.cjs');var _chunkQ7I37FJVcjs = require('./chunk-Q7I37FJV.cjs');var _typeutils = require('@transcend-io/type-utils');var _handlebarsutils = require('@transcend-io/handlebars-utils');var _privacytypes = require('@transcend-io/privacy-types');var T=20;async function D(a){let e=[],r=0,t=!1;do{let{largeLanguageModels:{nodes:s}}=await _chunkVC2CQFF6cjs.Wf.call(void 0, a,_chunkVC2CQFF6cjs.Fb,{first:T,offset:r});e.push(...s),r+=T,t=s.length===T}while(t);return e.sort((s,o)=>s.name.localeCompare(o.name))}var _bluebird = require('bluebird');function j(a){return new RegExp(`<${a}>([\\s\\S]+?)<\\/${a}>`)}function Sm(a){return a}var H=a=>{try{return JSON.parse(a)}catch (e2){return a}},B= exports.TranscendPromptManager = (_class =class{__init() {this.largeLanguageModels=[]}__init2() {this.agentsByName={}}__init3() {this.agentsByAgentId={}}constructor({prompts:e,handlebarsOptions:r={},transcendUrl:t=_chunkWHPCDQ2Mcjs.r,transcendApiKey:s,requireApproval:o=!0,cacheDuration:i,defaultVariables:p={}}){;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);this.prompts=e,this.transcendUrl=t,this.transcendApiKey=s,this.variables=p,this.defaultVariables=p,this.graphQLClient=_chunkVC2CQFF6cjs.vc.call(void 0, t,typeof s=="object"?s.release():s),this.requireApproval=o,this.cacheDuration=i,this.handlebarsOptions=r,this.handlebars=_handlebarsutils.createHandlebarsWithHelpers.call(void 0, r)}async fetchPromptsAndMetadata(){let e=_typeutils.getValues.call(void 0, this.prompts),r=e.map(({id:n})=>n).filter(n=>!!n),t=e.map(({title:n})=>n).filter(n=>!!n),s=_chunkWHPCDQ2Mcjs.j.call(void 0, e.map(({agentNames:n})=>n||[]).flat()),[o,i,p]=await Promise.all([_chunkVC2CQFF6cjs.yd.call(void 0, this.graphQLClient,{promptIds:r,promptTitles:t}),D(this.graphQLClient),_chunkVC2CQFF6cjs.Fc.call(void 0, this.graphQLClient,{names:s})]);this.agentsByName=_chunkWHPCDQ2Mcjs.e.call(void 0, p,"name"),this.agentsByAgentId=_chunkWHPCDQ2Mcjs.e.call(void 0, p,"agentId"),this.largeLanguageModels=i.filter(n=>n.isTranscendHosted===!1);let m=_chunkWHPCDQ2Mcjs.e.call(void 0, o.prompts,"title"),c=_chunkWHPCDQ2Mcjs.e.call(void 0, o.prompts,"id");return this.variables={...o.calculatedVariables.reduce((n,g)=>Object.assign(n,{[g.name]:g.data?JSON.parse(g.data):g.data}),{}),...this.defaultVariables},this.handlebars=_handlebarsutils.createHandlebarsWithHelpers.call(void 0, {...this.handlebarsOptions,templates:[...this.handlebarsOptions.templates||[],...o.promptPartials.map(n=>({name:n.slug,content:n.content}))]}),this.promptContentMap=_typeutils.apply.call(void 0, this.prompts,({id:n,title:g})=>{let d=n?c[n]:g?m[g]:void 0;if(!d)throw new Error(`Failed to find prompt with title: "${g}" and id: "${n}"`);return d}),this.lastUpdatedAt=new Date,o}async getAgentByName(e){let r=this.agentsByName[e];if(r)return r;let[t]=await _chunkVC2CQFF6cjs.Fc.call(void 0, this.graphQLClient,{names:[e]});if(t)return this.agentsByName[t.name]=t,this.agentsByAgentId[t.agentId]=t,t}async getPromptThreadBySlackTs(e){let[r]=await _chunkVC2CQFF6cjs.zd.call(void 0, this.graphQLClient,{slackMessageTs:[e]});return r}async getAgentsByName(e){if(e.length<1)throw new Error("Expected at least one name to be provided");let{hasCache:r=[],missingCache:t=[]}=_chunkWHPCDQ2Mcjs.d.call(void 0, e,p=>this.agentsByName[p]?"hasCache":"missingCache"),s=r.map(p=>this.agentsByName[p]);if(t.length===0)return s;let o=_chunkWHPCDQ2Mcjs.b.call(void 0, t,50),i=[];return await _bluebird.mapSeries.call(void 0, o,async p=>{let m=await _chunkVC2CQFF6cjs.Fc.call(void 0, this.graphQLClient,{names:p});m.forEach(c=>{this.agentsByName[c.name]=c,this.agentsByAgentId[c.agentId]=c}),i.push(...m)}),[...s,...i]}getAgentFiles(e){return _chunkVC2CQFF6cjs.Dc.call(void 0, this.graphQLClient,e)}getLargeLanguageModel(e){let r=this.largeLanguageModels.find(t=>typeof e=="string"?t.id===e:t.name===e.name&&t.client===e.client);if(!r)throw new Error(`Failed to find model matching: ${typeof e=="string"?e:JSON.stringify(e)}`);return r}async getPromptDefinition(e){(!this.lastUpdatedAt||this.cacheDuration===0||this.cacheDuration&&Date.now()-this.lastUpdatedAt.getTime()>this.cacheDuration)&&await this.fetchPromptsAndMetadata();let{promptContentMap:r}=this;if(!r)throw new Error("Expected this.promptContentMap to be defined");let t=r[e];if(!t)throw new Error(`Expected this.promptContentMap[${e}] to be defined`);return t}async compilePrompt(e,r){let t=await this.getPromptDefinition(e),s=this.prompts[e];if(!s)throw new Error(`Expected this.prompts[${e}] to be defined`);if(this.requireApproval&&t.status!==_privacytypes.PromptStatus.Approved)throw new Error(`Assessment "${t.title}" cannot be used because its in status: "${t.status}"`);if(t.status===_privacytypes.PromptStatus.Rejected)throw new Error(`Assessment "${t.title}" cannot be used because it's in status: "${t.status}"`);return _typeutils.decodeCodec.call(void 0, s.paramCodec,r),this.handlebars.compile(t.content)({currentDate:new Date().toISOString(),...this.variables,...r})}parseAiResponse(e,r){let t=this.prompts[e];if(!t)throw new Error(`Expected this.prompts[${e}] to be defined`);let s=t.extractFromTag&&(j(t.extractFromTag).exec(r)||[])[1]||r;return _typeutils.decodeCodec.call(void 0, t.outputCodec,H(s),!1)}async reportAndParsePromptRun(e,{largeLanguageModel:r,...t}){(!this.lastUpdatedAt||this.cacheDuration===0||this.cacheDuration&&Date.now()-this.lastUpdatedAt.getTime()>this.cacheDuration)&&await this.fetchPromptsAndMetadata();let s=t.name||`@transcend-io/cli-prompt-run-${new Date().toISOString()}`;if(!this.promptContentMap)throw new Error("Expected this.promptContentMap to be defined");let o=this.promptContentMap[e];if(!o)throw new Error(`Expected this.prompts[${e}] to be defined`);if(t.promptRunMessages.length===0)throw new Error("promptRunMessages is expected to have length > 0");if(t.promptRunMessages[0].role!==_privacytypes.ChatCompletionRole.System)throw new Error(`promptRunMessages[0].role is expected to be = ${_privacytypes.ChatCompletionRole.System}`);if(t.promptRunMessages[t.promptRunMessages.length-1].role!==_privacytypes.ChatCompletionRole.Assistant)throw new Error(`promptRunMessages[${t.promptRunMessages.length-1}].role is expected to be = ${_privacytypes.ChatCompletionRole.Assistant}`);let i=t.promptRunMessages[t.promptRunMessages.length-1].content,p;try{p=this.parseAiResponse(e,i)}catch(c){throw await _chunkVC2CQFF6cjs.ae.call(void 0, this.graphQLClient,{productArea:_privacytypes.PromptRunProductArea.PromptManager,...t,name:s,error:c.message,status:_privacytypes.QueueStatus.Error,...typeof r=="string"?{largeLanguageModelId:r}:{largeLanguageModelName:r.name,largeLanguageModelClient:r.client},promptId:o.id,promptRunMessages:t.promptRunMessages.map((n,g)=>({...n,...g===0?{template:o.content}:{}}))}),c}let m=await _chunkVC2CQFF6cjs.ae.call(void 0, this.graphQLClient,{productArea:_privacytypes.PromptRunProductArea.PromptManager,...t,name:s,status:_privacytypes.QueueStatus.Resolved,...typeof r=="string"?{largeLanguageModelId:r}:{largeLanguageModelName:r.name,largeLanguageModelClient:r.client},promptId:o.id,promptRunMessages:t.promptRunMessages.map((c,n)=>({...c,...n===0?{template:o.content}:{}}))});return{result:p,promptRunId:m,promptRunUrl:`https://app.transcend.io/prompts/runs/${m}`}}async reportPromptRunError(e,{largeLanguageModel:r,...t}){(!this.lastUpdatedAt||this.cacheDuration===0||this.cacheDuration&&Date.now()-this.lastUpdatedAt.getTime()>this.cacheDuration)&&await this.fetchPromptsAndMetadata();let s=t.name||`@transcend-io/cli-prompt-run-${new Date().toISOString()}`;if(!this.promptContentMap)throw new Error("Expected this.promptContentMap to be defined");let o=this.promptContentMap[e];if(!o)throw new Error(`Expected this.prompts[${e}] to be defined`);if(t.promptRunMessages.length===0)throw new Error("promptRunMessages is expected to have length > 0");if(t.promptRunMessages[0].role!==_privacytypes.ChatCompletionRole.System)throw new Error(`promptRunMessages[0].role is expected to be = ${_privacytypes.ChatCompletionRole.System}`);let i=await _chunkVC2CQFF6cjs.ae.call(void 0, this.graphQLClient,{productArea:_privacytypes.PromptRunProductArea.PromptManager,...t,name:s,status:_privacytypes.QueueStatus.Error,...typeof r=="string"?{largeLanguageModelId:r}:{largeLanguageModelName:r.name,largeLanguageModelClient:r.client},promptId:o.id,promptRunMessages:t.promptRunMessages.map((p,m)=>({...p,...m===0?{template:o.content}:{}}))});return{promptRunId:i,promptRunUrl:`https://app.transcend.io/prompts/runs/${i}`}}}, _class);function Bm(a){let e=/(https?:\/\/[^\s]+)/g;return a.replace(e,"<link-omitted>")}function Qm(a){return Object.entries(a).reduce((e,[r,t])=>t!=null&&t!==""&&!(Array.isArray(t)&&t.length===0)&&!(typeof t=="object"&&Object.keys(t).length===0)?Object.assign(e,{[r]:t}):e,{})}var _fastglob = require('fast-glob'); var _fastglob2 = _interopRequireDefault(_fastglob);var _child_process = require('child_process');function Vm({baseBranch:a,rootDirectory:e,githubRepo:r,excludedGlob:t=[],fileBlockList:s=[]}){_child_process.execSync.call(void 0, `git fetch origin ${a}`);let o=_child_process.execSync.call(void 0, `git ls-remote ${r} "refs/heads/${a}" | cut -f 1`,{encoding:"utf-8"}).split(`
|
|
2
2
|
`)[0],i=_child_process.execSync.call(void 0, "git rev-parse HEAD",{encoding:"utf-8"}).split(`
|
|
3
|
-
`)[0];if(!o||!i)throw new Error("FAILED TO FIND COMMIT RANGE");let p=_child_process.execSync.call(void 0, `git fetch && git diff --name-only "${a||o}...${i}" -- ${e}`,{encoding:"utf-8"}),m=
|
|
4
|
-
`).filter(d=>d),s),c=t.length>0?_fastglob2.default.sync(m,{ignore:t}):m,n={};c.forEach(d=>{let F=_child_process.execSync.call(void 0, `git show ${i}:${d}`,{encoding:"utf-8"});n[d]=F});let g=r.split("/").pop().split(".")[0];return{changedFiles:m,fileDiffs:n,repoName:g,commit:i}}exports.ACTIONS = _chunkLKUJWJR3cjs.tb; exports.ADD_MESSAGES_TO_PROMPT_RUN = _chunkLKUJWJR3cjs.Ga; exports.ADD_SILO_DISCOVERY_RESULTS = _chunkLKUJWJR3cjs.G; exports.ADMIN_DASH = _chunkO3WQC6E5cjs.o; exports.ADMIN_DASH_DATAPOINTS = _chunkO3WQC6E5cjs.q; exports.ADMIN_DASH_INTEGRATIONS = _chunkO3WQC6E5cjs.p; exports.AGENTS = _chunkLKUJWJR3cjs.Gb; exports.AGENT_FILES = _chunkLKUJWJR3cjs.Jb; exports.AGENT_FUNCTIONS = _chunkLKUJWJR3cjs.Mb; exports.API_KEYS = _chunkLKUJWJR3cjs.D; exports.APPROVE_PRIVACY_REQUEST = _chunkLKUJWJR3cjs.W; exports.ASSESSMENTS = _chunkLKUJWJR3cjs.ea; exports.ASSESSMENT_SECTION_FIELDS = _chunkLKUJWJR3cjs.da; exports.ASSESSMENT_TEMPLATES = _chunkLKUJWJR3cjs.ia; exports.ASSUME_ROLE = _chunkLKUJWJR3cjs.Eb; exports.ATTRIBUTES = _chunkLKUJWJR3cjs.Ka; exports.ATTRIBUTE_KEYS_REQUESTS = _chunkLKUJWJR3cjs.L; exports.ATTRIBUTE_VALUES = _chunkLKUJWJR3cjs.Oa; exports.ActionInput = _chunkQEM6S2W7cjs.G; exports.ActionItemCollectionInput = _chunkQEM6S2W7cjs.R; exports.ActionItemInput = _chunkQEM6S2W7cjs.S; exports.AgentFileInput = _chunkQEM6S2W7cjs.o; exports.AgentFunctionInput = _chunkQEM6S2W7cjs.n; exports.AgentInput = _chunkQEM6S2W7cjs.m; exports.ApiKeyInput = _chunkQEM6S2W7cjs.c; exports.AssessmentAction = _chunkLKUJWJR3cjs.Kd; exports.AssessmentAnswerOptionInput = _chunkQEM6S2W7cjs.Y; exports.AssessmentDisplayLogicInput = _chunkQEM6S2W7cjs.V; exports.AssessmentInput = _chunkQEM6S2W7cjs.ca; exports.AssessmentNestedRule = _chunkLKUJWJR3cjs.Jd; exports.AssessmentNestedRuleInput = _chunkQEM6S2W7cjs.U; exports.AssessmentResourceInput = _chunkQEM6S2W7cjs.ba; exports.AssessmentRetentionScheduleInput = _chunkQEM6S2W7cjs.$; exports.AssessmentRiskLogic = _chunkLKUJWJR3cjs.Md; exports.AssessmentRule = _chunkLKUJWJR3cjs.Id; exports.AssessmentRuleInput = _chunkQEM6S2W7cjs.T; exports.AssessmentSectionInput = _chunkQEM6S2W7cjs._; exports.AssessmentSectionQuestionInput = _chunkQEM6S2W7cjs.Z; exports.AssessmentTemplateInput = _chunkQEM6S2W7cjs.aa; exports.AttestedExtraIdentifiers = _chunkLKUJWJR3cjs.jf; exports.AttributeInput = _chunkQEM6S2W7cjs.k; exports.AttributePreview = _chunkQEM6S2W7cjs.l; exports.AttributeValueInput = _chunkQEM6S2W7cjs.j; exports.BLANK = _chunkLKUJWJR3cjs.cc; exports.BULK_APPLY = _chunkLKUJWJR3cjs.bc; exports.BULK_REQUEST_FILES = _chunkLKUJWJR3cjs.Ea; exports.BUSINESS_ENTITIES = _chunkLKUJWJR3cjs.qb; exports.BusinessEntityInput = _chunkQEM6S2W7cjs.y; exports.CANCEL_PRIVACY_REQUEST = _chunkLKUJWJR3cjs.X; exports.CAN_APPLY_IN_BULK = _chunkLKUJWJR3cjs.gc; exports.CATALOGS = _chunkLKUJWJR3cjs.r; exports.CHANGE_REQUEST_DATA_SILO_STATUS = _chunkLKUJWJR3cjs.ua; exports.CODE_PACKAGES = _chunkLKUJWJR3cjs.P; exports.CONSENT_MANAGER_ANALYTICS_DATA = _chunkLKUJWJR3cjs.pb; exports.CONSENT_PARTITIONS = _chunkLKUJWJR3cjs.Ta; exports.COOKIES = _chunkLKUJWJR3cjs.Ya; exports.CREATE_ACTION_ITEMS = _chunkLKUJWJR3cjs.xb; exports.CREATE_ACTION_ITEM_COLLECTION = _chunkLKUJWJR3cjs.Ia; exports.CREATE_AGENT = _chunkLKUJWJR3cjs.Hb; exports.CREATE_AGENT_FILE = _chunkLKUJWJR3cjs.Kb; exports.CREATE_AGENT_FUNCTION = _chunkLKUJWJR3cjs.Nb; exports.CREATE_API_KEY = _chunkLKUJWJR3cjs.E; exports.CREATE_ATTRIBUTE = _chunkLKUJWJR3cjs.Pa; exports.CREATE_ATTRIBUTE_VALUES = _chunkLKUJWJR3cjs.La; exports.CREATE_BUSINESS_ENTITY = _chunkLKUJWJR3cjs.rb; exports.CREATE_CODE_PACKAGE = _chunkLKUJWJR3cjs.R; exports.CREATE_CONSENT_EXPERIENCE = _chunkLKUJWJR3cjs.nb; exports.CREATE_CONSENT_MANAGER = _chunkLKUJWJR3cjs.ab; exports.CREATE_CONSENT_PARTITION = _chunkLKUJWJR3cjs.ob; exports.CREATE_DATA_FLOWS = _chunkLKUJWJR3cjs.Ua; exports.CREATE_DATA_SILOS = _chunkLKUJWJR3cjs.m; exports.CREATE_DATA_SUBJECT = _chunkLKUJWJR3cjs.x; exports.CREATE_DATA_SUB_CATEGORY = _chunkLKUJWJR3cjs.Tb; exports.CREATE_ENRICHER = _chunkLKUJWJR3cjs.p; exports.CREATE_IDENTIFIER = _chunkLKUJWJR3cjs.u; exports.CREATE_PROCESSING_ACTIVITY = _chunkLKUJWJR3cjs.Zb; exports.CREATE_PROCESSING_PURPOSE_SUB_CATEGORY = _chunkLKUJWJR3cjs.Wb; exports.CREATE_PROMPT = _chunkLKUJWJR3cjs.oa; exports.CREATE_PROMPT_GROUP = _chunkLKUJWJR3cjs.sa; exports.CREATE_PROMPT_PARTIAL = _chunkLKUJWJR3cjs.qa; exports.CREATE_REPOSITORY = _chunkLKUJWJR3cjs.C; exports.CREATE_SOFTWARE_DEVELOPMENT_KIT = _chunkLKUJWJR3cjs.O; exports.CREATE_TEAM = _chunkLKUJWJR3cjs.ya; exports.CREATE_TEMPLATE = _chunkLKUJWJR3cjs.J; exports.CREATE_VENDOR = _chunkLKUJWJR3cjs.Qb; exports.CachedFileState = _chunkLKUJWJR3cjs.hc; exports.CachedRequestState = _chunkLKUJWJR3cjs.jc; exports.CodePackageInput = _chunkQEM6S2W7cjs.D; exports.CodePackageSdk = _chunkQEM6S2W7cjs.C; exports.ColumnName = _chunkLKUJWJR3cjs.ec; exports.ConsentManageExperienceInput = _chunkQEM6S2W7cjs.K; exports.ConsentManagerInput = _chunkQEM6S2W7cjs.M; exports.ConsentManagerMetricBin = _chunkLKUJWJR3cjs.Qc; exports.ConsentManagerServiceMetadata = _chunkQEM6S2W7cjs.ka; exports.ConsentPreferenceResponse = _chunkVGKI7LU6cjs.i; exports.ConsentPreferenceTopic = _chunkQEM6S2W7cjs.ea; exports.ConsentPreferenceTopicOptionValue = _chunkQEM6S2W7cjs.da; exports.ConsentPurpose = _chunkQEM6S2W7cjs.fa; exports.CookieCsvInput = _chunkQEM6S2W7cjs.ja; exports.CookieInput = _chunkQEM6S2W7cjs.J; exports.CronIdentifier = _chunkPZBS6J75cjs.a; exports.CronIdentifierPush = _chunkPZBS6J75cjs.c; exports.DATAPOINT_EXPORT = _chunkLKUJWJR3cjs.g; exports.DATA_FLOWS = _chunkLKUJWJR3cjs.Xa; exports.DATA_POINTS = _chunkLKUJWJR3cjs.a; exports.DATA_POINT_COUNT = _chunkLKUJWJR3cjs.b; exports.DATA_SILOS = _chunkLKUJWJR3cjs.i; exports.DATA_SILOS_ENRICHED = _chunkLKUJWJR3cjs.k; exports.DATA_SILO_EXPORT = _chunkLKUJWJR3cjs.j; exports.DATA_SUBJECTS = _chunkLKUJWJR3cjs.w; exports.DATA_SUB_CATEGORIES = _chunkLKUJWJR3cjs.Sb; exports.DEFAULT_TRANSCEND_API = _chunkO3WQC6E5cjs.r; exports.DEFAULT_TRANSCEND_CONSENT_API = _chunkO3WQC6E5cjs.s; exports.DEFAULT_TRANSCEND_PULL_RESOURCES = _chunkLKUJWJR3cjs._d; exports.DELETE_API_KEY = _chunkLKUJWJR3cjs.F; exports.DELETE_ATTRIBUTE_VALUE = _chunkLKUJWJR3cjs.Na; exports.DEPLOYED_PRIVACY_CENTER_URL = _chunkLKUJWJR3cjs.zb; exports.DEPLOY_CONSENT_MANAGER = _chunkLKUJWJR3cjs.db; exports.DETERMINE_LOGIN_METHOD = _chunkLKUJWJR3cjs.Cb; exports.DataCategoryGuessInput = _chunkQEM6S2W7cjs.h; exports.DataCategoryInput = _chunkQEM6S2W7cjs.q; exports.DataCategoryPreviewInput = _chunkQEM6S2W7cjs.g; exports.DataCategoryRecommendationInput = _chunkQEM6S2W7cjs.i; exports.DataFlowCsvInput = _chunkQEM6S2W7cjs.ia; exports.DataFlowInput = _chunkQEM6S2W7cjs.I; exports.DataSiloInput = _chunkQEM6S2W7cjs.Q; exports.DataSubjectInput = _chunkQEM6S2W7cjs.F; exports.DatapointInput = _chunkQEM6S2W7cjs.w; exports.ENABLED_PLUGINS = _chunkLKUJWJR3cjs.H; exports.ENRICHERS = _chunkLKUJWJR3cjs.n; exports.ENTRY_COUNT = _chunkLKUJWJR3cjs.h; exports.EXPERIENCES = _chunkLKUJWJR3cjs.Sa; exports.EnrichPrivacyRequest = _chunk6XM6VMLJcjs.b; exports.EnricherInput = _chunkQEM6S2W7cjs.e; exports.FETCH_CONSENT_MANAGER = _chunkLKUJWJR3cjs._a; exports.FETCH_CONSENT_MANAGER_ID = _chunkLKUJWJR3cjs.Za; exports.FETCH_CONSENT_MANAGER_THEME = _chunkLKUJWJR3cjs.$a; exports.FETCH_PRIVACY_CENTER_ID = _chunkLKUJWJR3cjs.yb; exports.FieldInput = _chunkQEM6S2W7cjs.v; exports.GLOBAL_ACTION_ITEMS = _chunkLKUJWJR3cjs.vb; exports.GLOBAL_ACTION_ITEM_COLLECTIONS = _chunkLKUJWJR3cjs.Ha; exports.IDENTIFIERS = _chunkLKUJWJR3cjs.s; exports.IDENTIFIER_BLOCK_LIST = _chunkLKUJWJR3cjs.dc; exports.IMPORT_ONE_TRUST_ASSESSMENT_FORMS = _chunkLKUJWJR3cjs.fa; exports.INITIALIZER = _chunkLKUJWJR3cjs.o; exports.IP_ADDRESS_REGEX = _chunkVGKI7LU6cjs.f; exports.IS_REQUIRED = _chunkLKUJWJR3cjs.fc; exports.IdentifierInput = _chunkQEM6S2W7cjs.H; exports.ImportOnetrustAssessmentsInput = _chunkQEM6S2W7cjs.ra; exports.IntlMessage = _chunkLKUJWJR3cjs.nf; exports.IntlMessageInput = _chunkQEM6S2W7cjs.P; exports.LARGE_LANGUAGE_MODELS = _chunkLKUJWJR3cjs.Fb; exports.LOGIN = _chunkLKUJWJR3cjs.Db; exports.MESSAGES = _chunkLKUJWJR3cjs._; exports.NEW_IDENTIFIER_TYPES = _chunkLKUJWJR3cjs.t; exports.NONE = _chunkLKUJWJR3cjs.ac; exports.NOTIFY_ADDITIONAL_TIME = _chunkLKUJWJR3cjs.Z; exports.ORGANIZATION = _chunkLKUJWJR3cjs.K; exports.OneTrustFileFormat = _chunkQ7I37FJVcjs.a; exports.OneTrustPullResource = _chunkQ7I37FJVcjs.b; exports.OneTrustPullSource = _chunkQ7I37FJVcjs.c; exports.OpenAIEnabledRoute = _chunkQEM6S2W7cjs.ma; exports.OpenAIEnabledRoutes = _chunkQEM6S2W7cjs.na; exports.OpenAIIntegration = _chunkQEM6S2W7cjs.oa; exports.OpenAIRouteName = _chunkQ7I37FJVcjs.f; exports.POLICIES = _chunkLKUJWJR3cjs.T; exports.PREFERENCE_TOPICS = _chunkLKUJWJR3cjs.ha; exports.PRIVACY_CENTER = _chunkLKUJWJR3cjs.Ab; exports.PROCESSING_ACTIVITIES = _chunkLKUJWJR3cjs.Yb; exports.PROCESSING_PURPOSE_SUB_CATEGORIES = _chunkLKUJWJR3cjs.Vb; exports.PROMPTS = _chunkLKUJWJR3cjs.ja; exports.PROMPTS_WITH_VARIABLES = _chunkLKUJWJR3cjs.ma; exports.PROMPT_GROUPS = _chunkLKUJWJR3cjs.la; exports.PROMPT_PARTIALS = _chunkLKUJWJR3cjs.ka; exports.PROMPT_THREADS = _chunkLKUJWJR3cjs.S; exports.PURPOSES = _chunkLKUJWJR3cjs.ga; exports.ParsedAttributeInput = _chunkLKUJWJR3cjs.oc; exports.PartitionInput = _chunkQEM6S2W7cjs.L; exports.PathfinderPolicy = _chunkQEM6S2W7cjs.pa; exports.PathfinderPolicyName = _chunkQ7I37FJVcjs.e; exports.PathfinderPolicyNameC = _chunkQEM6S2W7cjs.la; exports.PathfinderPromptRunMetadata = _chunkQEM6S2W7cjs.qa; exports.PolicyInput = _chunkQEM6S2W7cjs.O; exports.PrivacyCenterInput = _chunkQEM6S2W7cjs.N; exports.PrivacyRequest = _chunkLKUJWJR3cjs.id; exports.PrivacyRequestInput = _chunkLKUJWJR3cjs.kf; exports.PrivacyRequestResponse = _chunkLKUJWJR3cjs.tf; exports.ProcessingActivityInput = _chunkQEM6S2W7cjs.A; exports.ProcessingPurposeInput = _chunkQEM6S2W7cjs.r; exports.ProcessingPurposePreviewInput = _chunkQEM6S2W7cjs.f; exports.PromptAVendorEmailSettings = _chunkQEM6S2W7cjs.x; exports.PromptGroupInput = _chunkQEM6S2W7cjs.u; exports.PromptInput = _chunkQEM6S2W7cjs.s; exports.PromptPartialInput = _chunkQEM6S2W7cjs.t; exports.PurposeMap = _chunk6OZONTDQcjs.e; exports.REDUCED_REQUESTS_FOR_DATA_SILO_COUNT = _chunkLKUJWJR3cjs.wa; exports.REMOVE_REQUEST_IDENTIFIERS = _chunkLKUJWJR3cjs.Aa; exports.REPORT_PROMPT_RUN = _chunkLKUJWJR3cjs.Fa; exports.REPOSITORIES = _chunkLKUJWJR3cjs.A; exports.REQUESTS = _chunkLKUJWJR3cjs.V; exports.REQUEST_DATA_SILOS = _chunkLKUJWJR3cjs.ta; exports.REQUEST_ENRICHERS = _chunkLKUJWJR3cjs.aa; exports.REQUEST_FILES = _chunkLKUJWJR3cjs.Da; exports.REQUEST_IDENTIFIERS = _chunkLKUJWJR3cjs.Ba; exports.RETRYABLE_BATCH_STATUSES = _chunkO3WQC6E5cjs.y; exports.RETRY_REQUEST_DATA_SILO = _chunkLKUJWJR3cjs.va; exports.RETRY_REQUEST_ENRICHER = _chunkLKUJWJR3cjs.ba; exports.RegionInput = _chunkQEM6S2W7cjs.z; exports.RepositoryInput = _chunkQEM6S2W7cjs.E; exports.RequestFileMetadata = _chunkLKUJWJR3cjs.of; exports.RequestFileMetadataResponse = _chunkLKUJWJR3cjs.pf; exports.RequestIdentifiersResponse = _chunkLKUJWJR3cjs.gd; exports.RiskAssignmentInput = _chunkQEM6S2W7cjs.W; exports.RiskLogicInput = _chunkQEM6S2W7cjs.X; exports.SCOPES_BY_TITLE = _chunkO3WQC6E5cjs.w; exports.SCOPE_TITLES = _chunkO3WQC6E5cjs.x; exports.SET_RESOURCE_ATTRIBUTES = _chunkLKUJWJR3cjs.Ra; exports.SKIP_REQUEST_ENRICHER = _chunkLKUJWJR3cjs.ca; exports.SOFTWARE_DEVELOPMENT_KITS = _chunkLKUJWJR3cjs.M; exports.SOMBRA_VERSION = _chunkLKUJWJR3cjs.$b; exports.SUB_DATA_POINTS = _chunkLKUJWJR3cjs.c; exports.SUB_DATA_POINTS_COUNT = _chunkLKUJWJR3cjs.d; exports.SUB_DATA_POINTS_WITH_GUESSES = _chunkLKUJWJR3cjs.e; exports.SYNC_ATTRIBUTE_TYPES = _chunkLKUJWJR3cjs.Kc; exports.SoftwareDevelopmentKitInput = _chunkQEM6S2W7cjs.B; exports.StoredApiKey = _chunkQEM6S2W7cjs.ha; exports.SuccessfulRequest = _chunkLKUJWJR3cjs.ic; exports.TEAMS = _chunkLKUJWJR3cjs.xa; exports.TEMPLATES = _chunkLKUJWJR3cjs.I; exports.TOGGLE_CONSENT_PRECEDENCE = _chunkLKUJWJR3cjs.kb; exports.TOGGLE_DATA_SUBJECT = _chunkLKUJWJR3cjs.z; exports.TOGGLE_TELEMETRY_PARTITION_STRATEGY = _chunkLKUJWJR3cjs.jb; exports.TOGGLE_UNKNOWN_COOKIE_POLICY = _chunkLKUJWJR3cjs.ib; exports.TOGGLE_UNKNOWN_REQUEST_POLICY = _chunkLKUJWJR3cjs.hb; exports.TR_PULL_RESOURCE_SCOPE_MAP = _chunkO3WQC6E5cjs.u; exports.TR_PUSH_RESOURCE_SCOPE_MAP = _chunkO3WQC6E5cjs.t; exports.TR_YML_RESOURCE_TO_FIELD_NAME = _chunkO3WQC6E5cjs.v; exports.TeamInput = _chunkQEM6S2W7cjs.d; exports.TemplateInput = _chunkQEM6S2W7cjs.a; exports.TranscendInput = _chunkQEM6S2W7cjs.ga; exports.TranscendPromptManager = B; exports.TranscendPullResource = _chunkQ7I37FJVcjs.d; exports.UPDATE_ACTION = _chunkLKUJWJR3cjs.ub; exports.UPDATE_ACTION_ITEMS = _chunkLKUJWJR3cjs.wb; exports.UPDATE_ACTION_ITEM_COLLECTION = _chunkLKUJWJR3cjs.Ja; exports.UPDATE_AGENTS = _chunkLKUJWJR3cjs.Ib; exports.UPDATE_AGENT_FILES = _chunkLKUJWJR3cjs.Lb; exports.UPDATE_AGENT_FUNCTIONS = _chunkLKUJWJR3cjs.Ob; exports.UPDATE_ATTRIBUTE = _chunkLKUJWJR3cjs.Qa; exports.UPDATE_ATTRIBUTE_VALUES = _chunkLKUJWJR3cjs.Ma; exports.UPDATE_BUSINESS_ENTITIES = _chunkLKUJWJR3cjs.sb; exports.UPDATE_CODE_PACKAGES = _chunkLKUJWJR3cjs.Q; exports.UPDATE_CONSENT_EXPERIENCE = _chunkLKUJWJR3cjs.mb; exports.UPDATE_CONSENT_MANAGER_DOMAINS = _chunkLKUJWJR3cjs.eb; exports.UPDATE_CONSENT_MANAGER_PARTITION = _chunkLKUJWJR3cjs.fb; exports.UPDATE_CONSENT_MANAGER_THEME = _chunkLKUJWJR3cjs.lb; exports.UPDATE_CONSENT_MANAGER_TO_LATEST = _chunkLKUJWJR3cjs.cb; exports.UPDATE_CONSENT_MANAGER_VERSION = _chunkLKUJWJR3cjs.bb; exports.UPDATE_DATA_FLOWS = _chunkLKUJWJR3cjs.Va; exports.UPDATE_DATA_SILOS = _chunkLKUJWJR3cjs.l; exports.UPDATE_DATA_SUBJECT = _chunkLKUJWJR3cjs.y; exports.UPDATE_DATA_SUB_CATEGORIES = _chunkLKUJWJR3cjs.Ub; exports.UPDATE_ENRICHER = _chunkLKUJWJR3cjs.q; exports.UPDATE_IDENTIFIER = _chunkLKUJWJR3cjs.v; exports.UPDATE_INTL_MESSAGES = _chunkLKUJWJR3cjs.$; exports.UPDATE_LOAD_OPTIONS = _chunkLKUJWJR3cjs.gb; exports.UPDATE_OR_CREATE_COOKIES = _chunkLKUJWJR3cjs.Wa; exports.UPDATE_OR_CREATE_DATA_POINT = _chunkLKUJWJR3cjs.f; exports.UPDATE_POLICIES = _chunkLKUJWJR3cjs.U; exports.UPDATE_PRIVACY_CENTER = _chunkLKUJWJR3cjs.Bb; exports.UPDATE_PRIVACY_REQUEST = _chunkLKUJWJR3cjs.Y; exports.UPDATE_PROCESSING_ACTIVITIES = _chunkLKUJWJR3cjs._b; exports.UPDATE_PROCESSING_PURPOSE_SUB_CATEGORIES = _chunkLKUJWJR3cjs.Xb; exports.UPDATE_PROMPTS = _chunkLKUJWJR3cjs.na; exports.UPDATE_PROMPT_GROUPS = _chunkLKUJWJR3cjs.ra; exports.UPDATE_PROMPT_PARTIALS = _chunkLKUJWJR3cjs.pa; exports.UPDATE_REPOSITORIES = _chunkLKUJWJR3cjs.B; exports.UPDATE_SOFTWARE_DEVELOPMENT_KITS = _chunkLKUJWJR3cjs.N; exports.UPDATE_TEAM = _chunkLKUJWJR3cjs.za; exports.UPDATE_VENDORS = _chunkLKUJWJR3cjs.Rb; exports.USERS = _chunkLKUJWJR3cjs.Ca; exports.USP_STRING_REGEX = _chunk6OZONTDQcjs.d; exports.VARIABLE_PARAMETERS_NAME = _chunkSW5CIF5Dcjs.b; exports.VARIABLE_PARAMETERS_REGEXP = _chunkSW5CIF5Dcjs.a; exports.VENDORS = _chunkLKUJWJR3cjs.Pb; exports.VendorInput = _chunkQEM6S2W7cjs.p; exports.WebhookHeader = _chunkQEM6S2W7cjs.b; exports.addMessagesToPromptRun = _chunkLKUJWJR3cjs.tc; exports.appendCsvSync = _chunkLR3CPNDMcjs.b; exports.approvePrivacyRequests = _chunkLKUJWJR3cjs.vf; exports.assumeRole = _chunkLKUJWJR3cjs.Fd; exports.buildAIIntegrationType = _chunkLCDYXJN6cjs.b; exports.buildEnabledRouteType = _chunkLCDYXJN6cjs.a; exports.buildTranscendGraphQLClient = _chunkLKUJWJR3cjs.vc; exports.buildTranscendGraphQLClientGeneric = _chunkLKUJWJR3cjs.uc; exports.buildXdiSyncEndpoint = _chunkVGKI7LU6cjs.g; exports.bulkRestartRequests = _chunkLKUJWJR3cjs.Df; exports.bulkRetryEnrichers = _chunkLKUJWJR3cjs.Ff; exports.cancelPrivacyRequests = _chunkLKUJWJR3cjs.yf; exports.consentManagersToBusinessEntities = _chunkVGKI7LU6cjs.h; exports.convertToDataSubjectAllowlist = _chunkLKUJWJR3cjs.ud; exports.convertToDataSubjectBlockList = _chunkLKUJWJR3cjs.td; exports.createActionItemCollection = _chunkLKUJWJR3cjs.ee; exports.createActionItems = _chunkLKUJWJR3cjs.he; exports.createAgent = _chunkLKUJWJR3cjs.qe; exports.createAgentFile = _chunkLKUJWJR3cjs.ke; exports.createAgentFunction = _chunkLKUJWJR3cjs.ne; exports.createApiKey = _chunkLKUJWJR3cjs.Gd; exports.createBusinessEntity = _chunkLKUJWJR3cjs.ue; exports.createCodePackage = _chunkLKUJWJR3cjs.De; exports.createConsentToken = _chunk6OZONTDQcjs.a; exports.createDataCategory = _chunkLKUJWJR3cjs.Ke; exports.createDataFlows = _chunkLKUJWJR3cjs.Oe; exports.createProcessingPurpose = _chunkLKUJWJR3cjs.Ye; exports.createPrompt = _chunkLKUJWJR3cjs.$e; exports.createRegexForTag = j; exports.createRepository = _chunkLKUJWJR3cjs.Ae; exports.createSoftwareDevelopmentKit = _chunkLKUJWJR3cjs.xe; exports.createSombraGotInstance = _chunkLKUJWJR3cjs.wc; exports.createTranscendConsentGotInstance = _chunkLKUJWJR3cjs.xc; exports.createVendor = _chunkLKUJWJR3cjs.cf; exports.defineTranscendPrompts = Dm; exports.deleteApiKey = _chunkLKUJWJR3cjs.Hd; exports.deployConsentManager = _chunkLKUJWJR3cjs.yc; exports.description = _chunkO3WQC6E5cjs.l; exports.domainToHost = _chunkVGKI7LU6cjs.e; exports.downloadPrivacyRequestFiles = _chunkLKUJWJR3cjs.sf; exports.enrichPrivacyRequest = _chunk6XM6VMLJcjs.c; exports.ensureAllDataSubjectsExist = _chunkLKUJWJR3cjs.sd; exports.extractClientError = _chunkLKUJWJR3cjs.Af; exports.extractErrorMessage = _chunkLKUJWJR3cjs.Pf; exports.fetchActiveSiloDiscoPlugin = _chunkLKUJWJR3cjs.Ac; exports.fetchAllActionItems = _chunkLKUJWJR3cjs.Bc; exports.fetchAllActions = _chunkLKUJWJR3cjs.Cc; exports.fetchAllAgentFiles = _chunkLKUJWJR3cjs.Dc; exports.fetchAllAgentFunctions = _chunkLKUJWJR3cjs.Ec; exports.fetchAllAgents = _chunkLKUJWJR3cjs.Fc; exports.fetchAllApiKeys = _chunkLKUJWJR3cjs.nd; exports.fetchAllAssessmentTemplates = _chunkLKUJWJR3cjs.Hc; exports.fetchAllAssessments = _chunkLKUJWJR3cjs.Gc; exports.fetchAllAttributeValues = _chunkLKUJWJR3cjs.Jc; exports.fetchAllAttributes = _chunkLKUJWJR3cjs.Lc; exports.fetchAllBusinessEntities = _chunkLKUJWJR3cjs.Mc; exports.fetchAllCatalogs = _chunkLKUJWJR3cjs.pd; exports.fetchAllCookies = _chunkLKUJWJR3cjs.Tc; exports.fetchAllDataCategories = _chunkLKUJWJR3cjs.Uc; exports.fetchAllDataFlows = _chunkLKUJWJR3cjs.Vc; exports.fetchAllDataPoints = _chunkLKUJWJR3cjs.Qd; exports.fetchAllDataSilos = _chunkLKUJWJR3cjs.Od; exports.fetchAllDataSubjects = _chunkLKUJWJR3cjs.rd; exports.fetchAllEnrichers = _chunkLKUJWJR3cjs.Ud; exports.fetchAllIdentifiers = _chunkLKUJWJR3cjs.Vf; exports.fetchAllMessages = _chunkLKUJWJR3cjs.Wc; exports.fetchAllPolicies = _chunkLKUJWJR3cjs.Zc; exports.fetchAllPreferenceTopics = _chunkLKUJWJR3cjs._c; exports.fetchAllPrivacyCenters = _chunkLKUJWJR3cjs.$c; exports.fetchAllProcessingActivities = _chunkLKUJWJR3cjs.ad; exports.fetchAllProcessingPurposes = _chunkLKUJWJR3cjs.bd; exports.fetchAllPromptGroups = _chunkLKUJWJR3cjs.vd; exports.fetchAllPromptPartials = _chunkLKUJWJR3cjs.wd; exports.fetchAllPromptThreads = _chunkLKUJWJR3cjs.zd; exports.fetchAllPrompts = _chunkLKUJWJR3cjs.xd; exports.fetchAllPurposes = _chunkLKUJWJR3cjs.cd; exports.fetchAllPurposesAndPreferences = _chunkLKUJWJR3cjs.dd; exports.fetchAllRequestAttributeKeys = _chunkLKUJWJR3cjs.Ic; exports.fetchAllRequestEnrichers = _chunkLKUJWJR3cjs.ed; exports.fetchAllRequestIdentifierMetadata = _chunkLKUJWJR3cjs.fd; exports.fetchAllRequestIdentifiers = _chunkLKUJWJR3cjs.hd; exports.fetchAllRequests = _chunkLKUJWJR3cjs.jd; exports.fetchAllSubDataPoints = _chunkLKUJWJR3cjs.Pd; exports.fetchAllTeams = _chunkLKUJWJR3cjs.kd; exports.fetchAllTemplates = _chunkLKUJWJR3cjs.Wd; exports.fetchAllUsers = _chunkLKUJWJR3cjs.ld; exports.fetchAllVendors = _chunkLKUJWJR3cjs.md; exports.fetchAndIndexCatalogs = _chunkLKUJWJR3cjs.qd; exports.fetchApiKeys = _chunkLKUJWJR3cjs.od; exports.fetchConsentManager = _chunkLKUJWJR3cjs.Nc; exports.fetchConsentManagerAnalyticsData = _chunkLKUJWJR3cjs.Rc; exports.fetchConsentManagerExperiences = _chunkLKUJWJR3cjs.Pc; exports.fetchConsentManagerId = _chunkLKUJWJR3cjs.Oc; exports.fetchConsentManagerTheme = _chunkLKUJWJR3cjs.Sc; exports.fetchConsentPreferences = _chunkVGKI7LU6cjs.j; exports.fetchEnrichedDataSilos = _chunkLKUJWJR3cjs.Rd; exports.fetchIdentifiersAndCreateMissing = _chunkLKUJWJR3cjs.Wf; exports.fetchPartitions = _chunkLKUJWJR3cjs.Yd; exports.fetchPrivacyCenterId = _chunkLKUJWJR3cjs.Yc; exports.fetchPrivacyCenterUrl = _chunkLKUJWJR3cjs.Xc; exports.fetchPromptsWithVariables = _chunkLKUJWJR3cjs.yd; exports.fetchRequestDataSilo = _chunkLKUJWJR3cjs.Bd; exports.fetchRequestDataSiloActiveCount = _chunkLKUJWJR3cjs.Cd; exports.fetchRequestDataSilos = _chunkLKUJWJR3cjs.Ad; exports.fetchRequestFilesForRequest = _chunkLKUJWJR3cjs.Dd; exports.filterNullishValuesFromObject = Bm; exports.filterRows = _chunkLKUJWJR3cjs.sc; exports.fuzzyMatchColumns = _chunkLKUJWJR3cjs.lc; exports.fuzzySearch = _chunkLKUJWJR3cjs.kc; exports.generateCrossAccountApiKeys = _chunkRWJAOMT2cjs.a; exports.getErrorStatus = _chunkLKUJWJR3cjs.Of; exports.getFileMetadataForPrivacyRequests = _chunkLKUJWJR3cjs.qf; exports.getGitFilesThatChanged = jm; exports.getUniqueValuesForColumn = _chunkLKUJWJR3cjs.rc; exports.inquirerAutoComplete = _chunkLKUJWJR3cjs.Mf; exports.inquirerConfirmBoolean = _chunkLKUJWJR3cjs.Kf; exports.inquirerConfirmText = _chunkLKUJWJR3cjs.Lf; exports.limitRecords = _chunkLKUJWJR3cjs.Tf; exports.listDirectories = _chunkRWJAOMT2cjs.d; exports.listFiles = _chunkRWJAOMT2cjs.c; exports.loginUser = _chunkLKUJWJR3cjs.Ed; exports.makeGraphQLRequest = _chunkLKUJWJR3cjs.Uf; exports.mapColumnsToAttributes = _chunkLKUJWJR3cjs.zf; exports.mapColumnsToIdentifiers = _chunkLKUJWJR3cjs.xf; exports.mapCsvColumnsToApi = _chunkLKUJWJR3cjs.hf; exports.mapCsvRowsToRequestInputs = _chunkLKUJWJR3cjs.mf; exports.mapEnumValues = _chunkLKUJWJR3cjs.mc; exports.mapRequestEnumValues = _chunkLKUJWJR3cjs.if; exports.markCronIdentifierCompleted = _chunkPZBS6J75cjs.d; exports.markRequestDataSiloIdsCompleted = _chunkPZBS6J75cjs.f; exports.markSilentPrivacyRequests = _chunkLKUJWJR3cjs.gf; exports.mergeTranscendInputs = _chunkIBTP5OXEcjs.a; exports.name = _chunkO3WQC6E5cjs.n; exports.normalizeIdentifierValue = _chunkLKUJWJR3cjs.lf; exports.notifyPrivacyRequestsAdditionalTime = _chunkLKUJWJR3cjs.wf; exports.parseAssessmentDisplayLogic = _chunkLKUJWJR3cjs.Ld; exports.parseAssessmentRiskLogic = _chunkLKUJWJR3cjs.Nd; exports.parseAttributesFromString = _chunkLKUJWJR3cjs.pc; exports.parseFilePath = _chunkLR3CPNDMcjs.d; exports.parseVariablesFromString = _chunkLKUJWJR3cjs.Nf; exports.pullAllDatapoints = _chunkCKMSFTE3cjs.a; exports.pullChunkedCustomSiloOutstandingIdentifiers = _chunkPZBS6J75cjs.g; exports.pullConsentManagerMetrics = _chunkVGKI7LU6cjs.d; exports.pullCronPageOfIdentifiers = _chunkPZBS6J75cjs.b; exports.pullManualEnrichmentIdentifiersToCsv = _chunk6XM6VMLJcjs.a; exports.pullPrivacyRequests = _chunkLKUJWJR3cjs.Hf; exports.pullTranscendConfiguration = _chunkLKUJWJR3cjs.$d; exports.pullUnstructuredSubDataPointRecommendations = _chunkCKMSFTE3cjs.b; exports.pushCronIdentifiersFromCsv = _chunkPZBS6J75cjs.e; exports.pushManualEnrichmentIdentifiersFromCsv = _chunk6XM6VMLJcjs.d; exports.readCsv = _chunkLKUJWJR3cjs.qc; exports.readTranscendYaml = _chunkSW5CIF5Dcjs.d; exports.removeLinks = Sm; exports.removeUnverifiedRequestIdentifiers = _chunkLKUJWJR3cjs.Jf; exports.replaceVariablesInYaml = _chunkSW5CIF5Dcjs.c; exports.reportPromptRun = _chunkLKUJWJR3cjs.ae; exports.restartPrivacyRequest = _chunkLKUJWJR3cjs.Cf; exports.retryRequestDataSilos = _chunkLKUJWJR3cjs.Gf; exports.retryRequestEnricher = _chunkLKUJWJR3cjs.be; exports.retrySamePromise = _chunkLKUJWJR3cjs.Sf; exports.setResourceAttributes = _chunkLKUJWJR3cjs.ce; exports.skipPreflightJobs = _chunkLKUJWJR3cjs.Ef; exports.skipRequestDataSilos = _chunkLKUJWJR3cjs.If; exports.sleepPromise = _chunkLKUJWJR3cjs.Qf; exports.splitCsvToList = _chunkLKUJWJR3cjs.nc; exports.splitInHalf = _chunkLKUJWJR3cjs.Rf; exports.streamPrivacyRequestFiles = _chunkLKUJWJR3cjs.rf; exports.submitPrivacyRequest = _chunkLKUJWJR3cjs.uf; exports.syncAction = _chunkLKUJWJR3cjs.de; exports.syncActionItemCollections = _chunkLKUJWJR3cjs.ge; exports.syncActionItems = _chunkLKUJWJR3cjs.je; exports.syncAgentFiles = _chunkLKUJWJR3cjs.me; exports.syncAgentFunctions = _chunkLKUJWJR3cjs.pe; exports.syncAgents = _chunkLKUJWJR3cjs.se; exports.syncAttribute = _chunkLKUJWJR3cjs.te; exports.syncBusinessEntities = _chunkLKUJWJR3cjs.we; exports.syncCodePackages = _chunkLKUJWJR3cjs.Fe; exports.syncConfigurationToTranscend = _chunkLKUJWJR3cjs.Xf; exports.syncConsentManager = _chunkLKUJWJR3cjs.He; exports.syncConsentManagerExperiences = _chunkLKUJWJR3cjs.Ge; exports.syncCookies = _chunkLKUJWJR3cjs.Je; exports.syncDataCategories = _chunkLKUJWJR3cjs.Me; exports.syncDataFlows = _chunkLKUJWJR3cjs.Pe; exports.syncDataSiloDependencies = _chunkLKUJWJR3cjs.Td; exports.syncDataSilos = _chunkLKUJWJR3cjs.Sd; exports.syncDataSubject = _chunkLKUJWJR3cjs.Qe; exports.syncEnricher = _chunkLKUJWJR3cjs.Vd; exports.syncIdentifier = _chunkLKUJWJR3cjs.Re; exports.syncIntlMessages = _chunkLKUJWJR3cjs.Te; exports.syncPartitions = _chunkLKUJWJR3cjs.Zd; exports.syncPolicies = _chunkLKUJWJR3cjs.Ve; exports.syncPrivacyCenter = _chunkLKUJWJR3cjs.We; exports.syncProcessingActivities = _chunkLKUJWJR3cjs.Xe; exports.syncProcessingPurposes = _chunkLKUJWJR3cjs._e; exports.syncPrompts = _chunkLKUJWJR3cjs.bf; exports.syncRepositories = _chunkLKUJWJR3cjs.Ce; exports.syncSoftwareDevelopmentKits = _chunkLKUJWJR3cjs.ze; exports.syncTemplate = _chunkLKUJWJR3cjs.Xd; exports.syncVendors = _chunkLKUJWJR3cjs.ef; exports.updateActionItem = _chunkLKUJWJR3cjs.ie; exports.updateActionItemCollection = _chunkLKUJWJR3cjs.fe; exports.updateAgentFiles = _chunkLKUJWJR3cjs.le; exports.updateAgentFunctions = _chunkLKUJWJR3cjs.oe; exports.updateAgents = _chunkLKUJWJR3cjs.re; exports.updateBusinessEntities = _chunkLKUJWJR3cjs.ve; exports.updateCodePackages = _chunkLKUJWJR3cjs.Ee; exports.updateConsentManagerToLatest = _chunkLKUJWJR3cjs.zc; exports.updateConsentManagerVersionToLatest = _chunkVGKI7LU6cjs.a; exports.updateDataCategories = _chunkLKUJWJR3cjs.Le; exports.updateDataFlows = _chunkLKUJWJR3cjs.Ne; exports.updateIntlMessages = _chunkLKUJWJR3cjs.Se; exports.updateOrCreateCookies = _chunkLKUJWJR3cjs.Ie; exports.updatePolicies = _chunkLKUJWJR3cjs.Ue; exports.updateProcessingPurposes = _chunkLKUJWJR3cjs.Ze; exports.updatePrompts = _chunkLKUJWJR3cjs.af; exports.updateRepositories = _chunkLKUJWJR3cjs.Be; exports.updateSoftwareDevelopmentKits = _chunkLKUJWJR3cjs.ye; exports.updateVendors = _chunkLKUJWJR3cjs.df; exports.uploadConsents = _chunk6OZONTDQcjs.f; exports.uploadCookiesFromCsv = _chunkVGKI7LU6cjs.c; exports.uploadDataFlowsFromCsv = _chunkVGKI7LU6cjs.b; exports.uploadPrivacyRequestsFromCsv = _chunkLKUJWJR3cjs.Bf; exports.uploadSiloDiscoveryResults = _chunkLKUJWJR3cjs.ff; exports.validateTranscendAuth = _chunkRWJAOMT2cjs.b; exports.version = _chunkO3WQC6E5cjs.m; exports.writeCsv = _chunkLR3CPNDMcjs.c; exports.writeCsvSync = _chunkLR3CPNDMcjs.a; exports.writeLargeCsv = _chunkLR3CPNDMcjs.e; exports.writeTranscendYaml = _chunkSW5CIF5Dcjs.e;
|
|
3
|
+
`)[0];if(!o||!i)throw new Error("FAILED TO FIND COMMIT RANGE");let p=_child_process.execSync.call(void 0, `git fetch && git diff --name-only "${a||o}...${i}" -- ${e}`,{encoding:"utf-8"}),m=_chunkWHPCDQ2Mcjs.c.call(void 0, p.split(`
|
|
4
|
+
`).filter(d=>d),s),c=t.length>0?_fastglob2.default.sync(m,{ignore:t}):m,n={};c.forEach(d=>{let F=_child_process.execSync.call(void 0, `git show ${i}:${d}`,{encoding:"utf-8"});n[d]=F});let g=r.split("/").pop().split(".")[0];return{changedFiles:m,fileDiffs:n,repoName:g,commit:i}}exports.ACTIONS = _chunkVC2CQFF6cjs.tb; exports.ADD_MESSAGES_TO_PROMPT_RUN = _chunkVC2CQFF6cjs.Ga; exports.ADD_SILO_DISCOVERY_RESULTS = _chunkVC2CQFF6cjs.G; exports.ADMIN_DASH = _chunkWHPCDQ2Mcjs.o; exports.ADMIN_DASH_DATAPOINTS = _chunkWHPCDQ2Mcjs.q; exports.ADMIN_DASH_INTEGRATIONS = _chunkWHPCDQ2Mcjs.p; exports.AGENTS = _chunkVC2CQFF6cjs.Gb; exports.AGENT_FILES = _chunkVC2CQFF6cjs.Jb; exports.AGENT_FUNCTIONS = _chunkVC2CQFF6cjs.Mb; exports.API_KEYS = _chunkVC2CQFF6cjs.D; exports.APPROVE_PRIVACY_REQUEST = _chunkVC2CQFF6cjs.W; exports.ASSESSMENTS = _chunkVC2CQFF6cjs.ea; exports.ASSESSMENT_SECTION_FIELDS = _chunkVC2CQFF6cjs.da; exports.ASSESSMENT_TEMPLATES = _chunkVC2CQFF6cjs.ia; exports.ASSUME_ROLE = _chunkVC2CQFF6cjs.Eb; exports.ATTRIBUTES = _chunkVC2CQFF6cjs.Ka; exports.ATTRIBUTE_KEYS_REQUESTS = _chunkVC2CQFF6cjs.L; exports.ATTRIBUTE_VALUES = _chunkVC2CQFF6cjs.Oa; exports.ActionInput = _chunkQEM6S2W7cjs.G; exports.ActionItemCollectionInput = _chunkQEM6S2W7cjs.R; exports.ActionItemInput = _chunkQEM6S2W7cjs.S; exports.AgentFileInput = _chunkQEM6S2W7cjs.o; exports.AgentFunctionInput = _chunkQEM6S2W7cjs.n; exports.AgentInput = _chunkQEM6S2W7cjs.m; exports.ApiKeyInput = _chunkQEM6S2W7cjs.c; exports.AssessmentAction = _chunkVC2CQFF6cjs.Kd; exports.AssessmentAnswerOptionInput = _chunkQEM6S2W7cjs.Y; exports.AssessmentDisplayLogicInput = _chunkQEM6S2W7cjs.V; exports.AssessmentInput = _chunkQEM6S2W7cjs.ca; exports.AssessmentNestedRule = _chunkVC2CQFF6cjs.Jd; exports.AssessmentNestedRuleInput = _chunkQEM6S2W7cjs.U; exports.AssessmentResourceInput = _chunkQEM6S2W7cjs.ba; exports.AssessmentRetentionScheduleInput = _chunkQEM6S2W7cjs.$; exports.AssessmentRiskLogic = _chunkVC2CQFF6cjs.Md; exports.AssessmentRule = _chunkVC2CQFF6cjs.Id; exports.AssessmentRuleInput = _chunkQEM6S2W7cjs.T; exports.AssessmentSectionInput = _chunkQEM6S2W7cjs._; exports.AssessmentSectionQuestionInput = _chunkQEM6S2W7cjs.Z; exports.AssessmentTemplateInput = _chunkQEM6S2W7cjs.aa; exports.AttestedExtraIdentifiers = _chunkVC2CQFF6cjs.jf; exports.AttributeInput = _chunkQEM6S2W7cjs.k; exports.AttributePreview = _chunkQEM6S2W7cjs.l; exports.AttributeValueInput = _chunkQEM6S2W7cjs.j; exports.BLANK = _chunkVC2CQFF6cjs.cc; exports.BULK_APPLY = _chunkVC2CQFF6cjs.bc; exports.BULK_REQUEST_FILES = _chunkVC2CQFF6cjs.Ea; exports.BUSINESS_ENTITIES = _chunkVC2CQFF6cjs.qb; exports.BusinessEntityInput = _chunkQEM6S2W7cjs.y; exports.CANCEL_PRIVACY_REQUEST = _chunkVC2CQFF6cjs.X; exports.CAN_APPLY_IN_BULK = _chunkVC2CQFF6cjs.gc; exports.CATALOGS = _chunkVC2CQFF6cjs.r; exports.CHANGE_REQUEST_DATA_SILO_STATUS = _chunkVC2CQFF6cjs.ua; exports.CODE_PACKAGES = _chunkVC2CQFF6cjs.P; exports.CONSENT_MANAGER_ANALYTICS_DATA = _chunkVC2CQFF6cjs.pb; exports.CONSENT_PARTITIONS = _chunkVC2CQFF6cjs.Ta; exports.COOKIES = _chunkVC2CQFF6cjs.Ya; exports.CREATE_ACTION_ITEMS = _chunkVC2CQFF6cjs.xb; exports.CREATE_ACTION_ITEM_COLLECTION = _chunkVC2CQFF6cjs.Ia; exports.CREATE_AGENT = _chunkVC2CQFF6cjs.Hb; exports.CREATE_AGENT_FILE = _chunkVC2CQFF6cjs.Kb; exports.CREATE_AGENT_FUNCTION = _chunkVC2CQFF6cjs.Nb; exports.CREATE_API_KEY = _chunkVC2CQFF6cjs.E; exports.CREATE_ATTRIBUTE = _chunkVC2CQFF6cjs.Pa; exports.CREATE_ATTRIBUTE_VALUES = _chunkVC2CQFF6cjs.La; exports.CREATE_BUSINESS_ENTITY = _chunkVC2CQFF6cjs.rb; exports.CREATE_CODE_PACKAGE = _chunkVC2CQFF6cjs.R; exports.CREATE_CONSENT_EXPERIENCE = _chunkVC2CQFF6cjs.nb; exports.CREATE_CONSENT_MANAGER = _chunkVC2CQFF6cjs.ab; exports.CREATE_CONSENT_PARTITION = _chunkVC2CQFF6cjs.ob; exports.CREATE_DATA_FLOWS = _chunkVC2CQFF6cjs.Ua; exports.CREATE_DATA_SILOS = _chunkVC2CQFF6cjs.m; exports.CREATE_DATA_SUBJECT = _chunkVC2CQFF6cjs.x; exports.CREATE_DATA_SUB_CATEGORY = _chunkVC2CQFF6cjs.Tb; exports.CREATE_ENRICHER = _chunkVC2CQFF6cjs.p; exports.CREATE_IDENTIFIER = _chunkVC2CQFF6cjs.u; exports.CREATE_PROCESSING_ACTIVITY = _chunkVC2CQFF6cjs.Zb; exports.CREATE_PROCESSING_PURPOSE_SUB_CATEGORY = _chunkVC2CQFF6cjs.Wb; exports.CREATE_PROMPT = _chunkVC2CQFF6cjs.oa; exports.CREATE_PROMPT_GROUP = _chunkVC2CQFF6cjs.sa; exports.CREATE_PROMPT_PARTIAL = _chunkVC2CQFF6cjs.qa; exports.CREATE_REPOSITORY = _chunkVC2CQFF6cjs.C; exports.CREATE_SOFTWARE_DEVELOPMENT_KIT = _chunkVC2CQFF6cjs.O; exports.CREATE_TEAM = _chunkVC2CQFF6cjs.ya; exports.CREATE_TEMPLATE = _chunkVC2CQFF6cjs.J; exports.CREATE_VENDOR = _chunkVC2CQFF6cjs.Qb; exports.CachedFileState = _chunkVC2CQFF6cjs.hc; exports.CachedRequestState = _chunkVC2CQFF6cjs.jc; exports.CodePackageInput = _chunkQEM6S2W7cjs.D; exports.CodePackageSdk = _chunkQEM6S2W7cjs.C; exports.ColumnName = _chunkVC2CQFF6cjs.ec; exports.ConsentManageExperienceInput = _chunkQEM6S2W7cjs.K; exports.ConsentManagerInput = _chunkQEM6S2W7cjs.M; exports.ConsentManagerMetricBin = _chunkVC2CQFF6cjs.Qc; exports.ConsentManagerServiceMetadata = _chunkQEM6S2W7cjs.ka; exports.ConsentPreferenceResponse = _chunkYI64LKPIcjs.i; exports.ConsentPreferenceTopic = _chunkQEM6S2W7cjs.ea; exports.ConsentPreferenceTopicOptionValue = _chunkQEM6S2W7cjs.da; exports.ConsentPurpose = _chunkQEM6S2W7cjs.fa; exports.CookieCsvInput = _chunkQEM6S2W7cjs.ja; exports.CookieInput = _chunkQEM6S2W7cjs.J; exports.CronIdentifier = _chunk5CASGOYOcjs.a; exports.CronIdentifierPush = _chunk5CASGOYOcjs.c; exports.DATAPOINT_EXPORT = _chunkVC2CQFF6cjs.g; exports.DATA_FLOWS = _chunkVC2CQFF6cjs.Xa; exports.DATA_POINTS = _chunkVC2CQFF6cjs.a; exports.DATA_POINT_COUNT = _chunkVC2CQFF6cjs.b; exports.DATA_SILOS = _chunkVC2CQFF6cjs.i; exports.DATA_SILOS_ENRICHED = _chunkVC2CQFF6cjs.k; exports.DATA_SILO_EXPORT = _chunkVC2CQFF6cjs.j; exports.DATA_SUBJECTS = _chunkVC2CQFF6cjs.w; exports.DATA_SUB_CATEGORIES = _chunkVC2CQFF6cjs.Sb; exports.DEFAULT_TRANSCEND_API = _chunkWHPCDQ2Mcjs.r; exports.DEFAULT_TRANSCEND_CONSENT_API = _chunkWHPCDQ2Mcjs.s; exports.DEFAULT_TRANSCEND_PULL_RESOURCES = _chunkVC2CQFF6cjs._d; exports.DELETE_API_KEY = _chunkVC2CQFF6cjs.F; exports.DELETE_ATTRIBUTE_VALUE = _chunkVC2CQFF6cjs.Na; exports.DEPLOYED_PRIVACY_CENTER_URL = _chunkVC2CQFF6cjs.zb; exports.DEPLOY_CONSENT_MANAGER = _chunkVC2CQFF6cjs.db; exports.DETERMINE_LOGIN_METHOD = _chunkVC2CQFF6cjs.Cb; exports.DataCategoryGuessInput = _chunkQEM6S2W7cjs.h; exports.DataCategoryInput = _chunkQEM6S2W7cjs.q; exports.DataCategoryPreviewInput = _chunkQEM6S2W7cjs.g; exports.DataCategoryRecommendationInput = _chunkQEM6S2W7cjs.i; exports.DataFlowCsvInput = _chunkQEM6S2W7cjs.ia; exports.DataFlowInput = _chunkQEM6S2W7cjs.I; exports.DataSiloInput = _chunkQEM6S2W7cjs.Q; exports.DataSubjectInput = _chunkQEM6S2W7cjs.F; exports.DatapointInput = _chunkQEM6S2W7cjs.w; exports.ENABLED_PLUGINS = _chunkVC2CQFF6cjs.H; exports.ENRICHERS = _chunkVC2CQFF6cjs.n; exports.ENTRY_COUNT = _chunkVC2CQFF6cjs.h; exports.EXPERIENCES = _chunkVC2CQFF6cjs.Sa; exports.EnrichPrivacyRequest = _chunkG2RYLVXEcjs.b; exports.EnricherInput = _chunkQEM6S2W7cjs.e; exports.FETCH_CONSENT_MANAGER = _chunkVC2CQFF6cjs._a; exports.FETCH_CONSENT_MANAGER_ID = _chunkVC2CQFF6cjs.Za; exports.FETCH_CONSENT_MANAGER_THEME = _chunkVC2CQFF6cjs.$a; exports.FETCH_PRIVACY_CENTER_ID = _chunkVC2CQFF6cjs.yb; exports.FieldInput = _chunkQEM6S2W7cjs.v; exports.GLOBAL_ACTION_ITEMS = _chunkVC2CQFF6cjs.vb; exports.GLOBAL_ACTION_ITEM_COLLECTIONS = _chunkVC2CQFF6cjs.Ha; exports.IDENTIFIERS = _chunkVC2CQFF6cjs.s; exports.IDENTIFIER_BLOCK_LIST = _chunkVC2CQFF6cjs.dc; exports.IMPORT_ONE_TRUST_ASSESSMENT_FORMS = _chunkVC2CQFF6cjs.fa; exports.INITIALIZER = _chunkVC2CQFF6cjs.o; exports.IP_ADDRESS_REGEX = _chunkYI64LKPIcjs.f; exports.IS_REQUIRED = _chunkVC2CQFF6cjs.fc; exports.IdentifierInput = _chunkQEM6S2W7cjs.H; exports.ImportOnetrustAssessmentsInput = _chunkQEM6S2W7cjs.ra; exports.IntlMessage = _chunkVC2CQFF6cjs.nf; exports.IntlMessageInput = _chunkQEM6S2W7cjs.P; exports.LARGE_LANGUAGE_MODELS = _chunkVC2CQFF6cjs.Fb; exports.LOGIN = _chunkVC2CQFF6cjs.Db; exports.MESSAGES = _chunkVC2CQFF6cjs._; exports.NEW_IDENTIFIER_TYPES = _chunkVC2CQFF6cjs.t; exports.NONE = _chunkVC2CQFF6cjs.ac; exports.NOTIFY_ADDITIONAL_TIME = _chunkVC2CQFF6cjs.Z; exports.ORGANIZATION = _chunkVC2CQFF6cjs.K; exports.OneTrustFileFormat = _chunkQ7I37FJVcjs.a; exports.OneTrustPullResource = _chunkQ7I37FJVcjs.b; exports.OneTrustPullSource = _chunkQ7I37FJVcjs.c; exports.OpenAIEnabledRoute = _chunkQEM6S2W7cjs.ma; exports.OpenAIEnabledRoutes = _chunkQEM6S2W7cjs.na; exports.OpenAIIntegration = _chunkQEM6S2W7cjs.oa; exports.OpenAIRouteName = _chunkQ7I37FJVcjs.f; exports.POLICIES = _chunkVC2CQFF6cjs.T; exports.PREFERENCE_TOPICS = _chunkVC2CQFF6cjs.ha; exports.PRIVACY_CENTER = _chunkVC2CQFF6cjs.Ab; exports.PROCESSING_ACTIVITIES = _chunkVC2CQFF6cjs.Yb; exports.PROCESSING_PURPOSE_SUB_CATEGORIES = _chunkVC2CQFF6cjs.Vb; exports.PROMPTS = _chunkVC2CQFF6cjs.ja; exports.PROMPTS_WITH_VARIABLES = _chunkVC2CQFF6cjs.ma; exports.PROMPT_GROUPS = _chunkVC2CQFF6cjs.la; exports.PROMPT_PARTIALS = _chunkVC2CQFF6cjs.ka; exports.PROMPT_THREADS = _chunkVC2CQFF6cjs.S; exports.PURPOSES = _chunkVC2CQFF6cjs.ga; exports.ParsedAttributeInput = _chunkVC2CQFF6cjs.oc; exports.PartitionInput = _chunkQEM6S2W7cjs.L; exports.PathfinderPolicy = _chunkQEM6S2W7cjs.pa; exports.PathfinderPolicyName = _chunkQ7I37FJVcjs.e; exports.PathfinderPolicyNameC = _chunkQEM6S2W7cjs.la; exports.PathfinderPromptRunMetadata = _chunkQEM6S2W7cjs.qa; exports.PolicyInput = _chunkQEM6S2W7cjs.O; exports.PrivacyCenterInput = _chunkQEM6S2W7cjs.N; exports.PrivacyRequest = _chunkVC2CQFF6cjs.id; exports.PrivacyRequestInput = _chunkVC2CQFF6cjs.kf; exports.PrivacyRequestResponse = _chunkVC2CQFF6cjs.tf; exports.ProcessingActivityInput = _chunkQEM6S2W7cjs.A; exports.ProcessingPurposeInput = _chunkQEM6S2W7cjs.r; exports.ProcessingPurposePreviewInput = _chunkQEM6S2W7cjs.f; exports.PromptAVendorEmailSettings = _chunkQEM6S2W7cjs.x; exports.PromptGroupInput = _chunkQEM6S2W7cjs.u; exports.PromptInput = _chunkQEM6S2W7cjs.s; exports.PromptPartialInput = _chunkQEM6S2W7cjs.t; exports.PurposeMap = _chunkPE4HNCQRcjs.e; exports.REDUCED_REQUESTS_FOR_DATA_SILO_COUNT = _chunkVC2CQFF6cjs.wa; exports.REMOVE_REQUEST_IDENTIFIERS = _chunkVC2CQFF6cjs.Aa; exports.REPORT_PROMPT_RUN = _chunkVC2CQFF6cjs.Fa; exports.REPOSITORIES = _chunkVC2CQFF6cjs.A; exports.REQUESTS = _chunkVC2CQFF6cjs.V; exports.REQUEST_DATA_SILOS = _chunkVC2CQFF6cjs.ta; exports.REQUEST_ENRICHERS = _chunkVC2CQFF6cjs.aa; exports.REQUEST_FILES = _chunkVC2CQFF6cjs.Da; exports.REQUEST_IDENTIFIERS = _chunkVC2CQFF6cjs.Ba; exports.RETRYABLE_BATCH_STATUSES = _chunkWHPCDQ2Mcjs.y; exports.RETRY_REQUEST_DATA_SILO = _chunkVC2CQFF6cjs.va; exports.RETRY_REQUEST_ENRICHER = _chunkVC2CQFF6cjs.ba; exports.RateCounter = _chunkVC2CQFF6cjs.Uf; exports.RegionInput = _chunkQEM6S2W7cjs.z; exports.RepositoryInput = _chunkQEM6S2W7cjs.E; exports.RequestFileMetadata = _chunkVC2CQFF6cjs.of; exports.RequestFileMetadataResponse = _chunkVC2CQFF6cjs.pf; exports.RequestIdentifiersResponse = _chunkVC2CQFF6cjs.gd; exports.RiskAssignmentInput = _chunkQEM6S2W7cjs.W; exports.RiskLogicInput = _chunkQEM6S2W7cjs.X; exports.SCOPES_BY_TITLE = _chunkWHPCDQ2Mcjs.w; exports.SCOPE_TITLES = _chunkWHPCDQ2Mcjs.x; exports.SET_RESOURCE_ATTRIBUTES = _chunkVC2CQFF6cjs.Ra; exports.SKIP_REQUEST_ENRICHER = _chunkVC2CQFF6cjs.ca; exports.SOFTWARE_DEVELOPMENT_KITS = _chunkVC2CQFF6cjs.M; exports.SOMBRA_VERSION = _chunkVC2CQFF6cjs.$b; exports.SUB_DATA_POINTS = _chunkVC2CQFF6cjs.c; exports.SUB_DATA_POINTS_COUNT = _chunkVC2CQFF6cjs.d; exports.SUB_DATA_POINTS_WITH_GUESSES = _chunkVC2CQFF6cjs.e; exports.SYNC_ATTRIBUTE_TYPES = _chunkVC2CQFF6cjs.Kc; exports.SoftwareDevelopmentKitInput = _chunkQEM6S2W7cjs.B; exports.StoredApiKey = _chunkQEM6S2W7cjs.ha; exports.SuccessfulRequest = _chunkVC2CQFF6cjs.ic; exports.TEAMS = _chunkVC2CQFF6cjs.xa; exports.TEMPLATES = _chunkVC2CQFF6cjs.I; exports.TOGGLE_CONSENT_PRECEDENCE = _chunkVC2CQFF6cjs.kb; exports.TOGGLE_DATA_SUBJECT = _chunkVC2CQFF6cjs.z; exports.TOGGLE_TELEMETRY_PARTITION_STRATEGY = _chunkVC2CQFF6cjs.jb; exports.TOGGLE_UNKNOWN_COOKIE_POLICY = _chunkVC2CQFF6cjs.ib; exports.TOGGLE_UNKNOWN_REQUEST_POLICY = _chunkVC2CQFF6cjs.hb; exports.TR_PULL_RESOURCE_SCOPE_MAP = _chunkWHPCDQ2Mcjs.u; exports.TR_PUSH_RESOURCE_SCOPE_MAP = _chunkWHPCDQ2Mcjs.t; exports.TR_YML_RESOURCE_TO_FIELD_NAME = _chunkWHPCDQ2Mcjs.v; exports.TeamInput = _chunkQEM6S2W7cjs.d; exports.TemplateInput = _chunkQEM6S2W7cjs.a; exports.TranscendInput = _chunkQEM6S2W7cjs.ga; exports.TranscendPromptManager = B; exports.TranscendPullResource = _chunkQ7I37FJVcjs.d; exports.UPDATE_ACTION = _chunkVC2CQFF6cjs.ub; exports.UPDATE_ACTION_ITEMS = _chunkVC2CQFF6cjs.wb; exports.UPDATE_ACTION_ITEM_COLLECTION = _chunkVC2CQFF6cjs.Ja; exports.UPDATE_AGENTS = _chunkVC2CQFF6cjs.Ib; exports.UPDATE_AGENT_FILES = _chunkVC2CQFF6cjs.Lb; exports.UPDATE_AGENT_FUNCTIONS = _chunkVC2CQFF6cjs.Ob; exports.UPDATE_ATTRIBUTE = _chunkVC2CQFF6cjs.Qa; exports.UPDATE_ATTRIBUTE_VALUES = _chunkVC2CQFF6cjs.Ma; exports.UPDATE_BUSINESS_ENTITIES = _chunkVC2CQFF6cjs.sb; exports.UPDATE_CODE_PACKAGES = _chunkVC2CQFF6cjs.Q; exports.UPDATE_CONSENT_EXPERIENCE = _chunkVC2CQFF6cjs.mb; exports.UPDATE_CONSENT_MANAGER_DOMAINS = _chunkVC2CQFF6cjs.eb; exports.UPDATE_CONSENT_MANAGER_PARTITION = _chunkVC2CQFF6cjs.fb; exports.UPDATE_CONSENT_MANAGER_THEME = _chunkVC2CQFF6cjs.lb; exports.UPDATE_CONSENT_MANAGER_TO_LATEST = _chunkVC2CQFF6cjs.cb; exports.UPDATE_CONSENT_MANAGER_VERSION = _chunkVC2CQFF6cjs.bb; exports.UPDATE_DATA_FLOWS = _chunkVC2CQFF6cjs.Va; exports.UPDATE_DATA_SILOS = _chunkVC2CQFF6cjs.l; exports.UPDATE_DATA_SUBJECT = _chunkVC2CQFF6cjs.y; exports.UPDATE_DATA_SUB_CATEGORIES = _chunkVC2CQFF6cjs.Ub; exports.UPDATE_ENRICHER = _chunkVC2CQFF6cjs.q; exports.UPDATE_IDENTIFIER = _chunkVC2CQFF6cjs.v; exports.UPDATE_INTL_MESSAGES = _chunkVC2CQFF6cjs.$; exports.UPDATE_LOAD_OPTIONS = _chunkVC2CQFF6cjs.gb; exports.UPDATE_OR_CREATE_COOKIES = _chunkVC2CQFF6cjs.Wa; exports.UPDATE_OR_CREATE_DATA_POINT = _chunkVC2CQFF6cjs.f; exports.UPDATE_POLICIES = _chunkVC2CQFF6cjs.U; exports.UPDATE_PRIVACY_CENTER = _chunkVC2CQFF6cjs.Bb; exports.UPDATE_PRIVACY_REQUEST = _chunkVC2CQFF6cjs.Y; exports.UPDATE_PROCESSING_ACTIVITIES = _chunkVC2CQFF6cjs._b; exports.UPDATE_PROCESSING_PURPOSE_SUB_CATEGORIES = _chunkVC2CQFF6cjs.Xb; exports.UPDATE_PROMPTS = _chunkVC2CQFF6cjs.na; exports.UPDATE_PROMPT_GROUPS = _chunkVC2CQFF6cjs.ra; exports.UPDATE_PROMPT_PARTIALS = _chunkVC2CQFF6cjs.pa; exports.UPDATE_REPOSITORIES = _chunkVC2CQFF6cjs.B; exports.UPDATE_SOFTWARE_DEVELOPMENT_KITS = _chunkVC2CQFF6cjs.N; exports.UPDATE_TEAM = _chunkVC2CQFF6cjs.za; exports.UPDATE_VENDORS = _chunkVC2CQFF6cjs.Rb; exports.USERS = _chunkVC2CQFF6cjs.Ca; exports.USP_STRING_REGEX = _chunkPE4HNCQRcjs.d; exports.VARIABLE_PARAMETERS_NAME = _chunkSW5CIF5Dcjs.b; exports.VARIABLE_PARAMETERS_REGEXP = _chunkSW5CIF5Dcjs.a; exports.VENDORS = _chunkVC2CQFF6cjs.Pb; exports.VendorInput = _chunkQEM6S2W7cjs.p; exports.WebhookHeader = _chunkQEM6S2W7cjs.b; exports.addMessagesToPromptRun = _chunkVC2CQFF6cjs.tc; exports.appendCsvSync = _chunkLR3CPNDMcjs.b; exports.approvePrivacyRequests = _chunkVC2CQFF6cjs.vf; exports.assumeRole = _chunkVC2CQFF6cjs.Fd; exports.buildAIIntegrationType = _chunkLCDYXJN6cjs.b; exports.buildEnabledRouteType = _chunkLCDYXJN6cjs.a; exports.buildTranscendGraphQLClient = _chunkVC2CQFF6cjs.vc; exports.buildTranscendGraphQLClientGeneric = _chunkVC2CQFF6cjs.uc; exports.buildXdiSyncEndpoint = _chunkYI64LKPIcjs.g; exports.bulkRestartRequests = _chunkVC2CQFF6cjs.Df; exports.bulkRetryEnrichers = _chunkVC2CQFF6cjs.Ff; exports.cancelPrivacyRequests = _chunkVC2CQFF6cjs.yf; exports.consentManagersToBusinessEntities = _chunkYI64LKPIcjs.h; exports.convertToDataSubjectAllowlist = _chunkVC2CQFF6cjs.ud; exports.convertToDataSubjectBlockList = _chunkVC2CQFF6cjs.td; exports.createActionItemCollection = _chunkVC2CQFF6cjs.ee; exports.createActionItems = _chunkVC2CQFF6cjs.he; exports.createAgent = _chunkVC2CQFF6cjs.qe; exports.createAgentFile = _chunkVC2CQFF6cjs.ke; exports.createAgentFunction = _chunkVC2CQFF6cjs.ne; exports.createApiKey = _chunkVC2CQFF6cjs.Gd; exports.createBusinessEntity = _chunkVC2CQFF6cjs.ue; exports.createCodePackage = _chunkVC2CQFF6cjs.De; exports.createConsentToken = _chunkPE4HNCQRcjs.a; exports.createDataCategory = _chunkVC2CQFF6cjs.Ke; exports.createDataFlows = _chunkVC2CQFF6cjs.Oe; exports.createProcessingPurpose = _chunkVC2CQFF6cjs.Ye; exports.createPrompt = _chunkVC2CQFF6cjs.$e; exports.createRegexForTag = j; exports.createRepository = _chunkVC2CQFF6cjs.Ae; exports.createSoftwareDevelopmentKit = _chunkVC2CQFF6cjs.xe; exports.createSombraGotInstance = _chunkVC2CQFF6cjs.wc; exports.createTranscendConsentGotInstance = _chunkVC2CQFF6cjs.xc; exports.createVendor = _chunkVC2CQFF6cjs.cf; exports.defineTranscendPrompts = Sm; exports.deleteApiKey = _chunkVC2CQFF6cjs.Hd; exports.deployConsentManager = _chunkVC2CQFF6cjs.yc; exports.description = _chunkWHPCDQ2Mcjs.l; exports.domainToHost = _chunkYI64LKPIcjs.e; exports.downloadPrivacyRequestFiles = _chunkVC2CQFF6cjs.sf; exports.enrichPrivacyRequest = _chunkG2RYLVXEcjs.c; exports.ensureAllDataSubjectsExist = _chunkVC2CQFF6cjs.sd; exports.extractClientError = _chunkVC2CQFF6cjs.Af; exports.extractErrorMessage = _chunkVC2CQFF6cjs.Pf; exports.fetchActiveSiloDiscoPlugin = _chunkVC2CQFF6cjs.Ac; exports.fetchAllActionItems = _chunkVC2CQFF6cjs.Bc; exports.fetchAllActions = _chunkVC2CQFF6cjs.Cc; exports.fetchAllAgentFiles = _chunkVC2CQFF6cjs.Dc; exports.fetchAllAgentFunctions = _chunkVC2CQFF6cjs.Ec; exports.fetchAllAgents = _chunkVC2CQFF6cjs.Fc; exports.fetchAllApiKeys = _chunkVC2CQFF6cjs.nd; exports.fetchAllAssessmentTemplates = _chunkVC2CQFF6cjs.Hc; exports.fetchAllAssessments = _chunkVC2CQFF6cjs.Gc; exports.fetchAllAttributeValues = _chunkVC2CQFF6cjs.Jc; exports.fetchAllAttributes = _chunkVC2CQFF6cjs.Lc; exports.fetchAllBusinessEntities = _chunkVC2CQFF6cjs.Mc; exports.fetchAllCatalogs = _chunkVC2CQFF6cjs.pd; exports.fetchAllCookies = _chunkVC2CQFF6cjs.Tc; exports.fetchAllDataCategories = _chunkVC2CQFF6cjs.Uc; exports.fetchAllDataFlows = _chunkVC2CQFF6cjs.Vc; exports.fetchAllDataPoints = _chunkVC2CQFF6cjs.Qd; exports.fetchAllDataSilos = _chunkVC2CQFF6cjs.Od; exports.fetchAllDataSubjects = _chunkVC2CQFF6cjs.rd; exports.fetchAllEnrichers = _chunkVC2CQFF6cjs.Ud; exports.fetchAllIdentifiers = _chunkVC2CQFF6cjs.Xf; exports.fetchAllMessages = _chunkVC2CQFF6cjs.Wc; exports.fetchAllPolicies = _chunkVC2CQFF6cjs.Zc; exports.fetchAllPreferenceTopics = _chunkVC2CQFF6cjs._c; exports.fetchAllPrivacyCenters = _chunkVC2CQFF6cjs.$c; exports.fetchAllProcessingActivities = _chunkVC2CQFF6cjs.ad; exports.fetchAllProcessingPurposes = _chunkVC2CQFF6cjs.bd; exports.fetchAllPromptGroups = _chunkVC2CQFF6cjs.vd; exports.fetchAllPromptPartials = _chunkVC2CQFF6cjs.wd; exports.fetchAllPromptThreads = _chunkVC2CQFF6cjs.zd; exports.fetchAllPrompts = _chunkVC2CQFF6cjs.xd; exports.fetchAllPurposes = _chunkVC2CQFF6cjs.cd; exports.fetchAllPurposesAndPreferences = _chunkVC2CQFF6cjs.dd; exports.fetchAllRequestAttributeKeys = _chunkVC2CQFF6cjs.Ic; exports.fetchAllRequestEnrichers = _chunkVC2CQFF6cjs.ed; exports.fetchAllRequestIdentifierMetadata = _chunkVC2CQFF6cjs.fd; exports.fetchAllRequestIdentifiers = _chunkVC2CQFF6cjs.hd; exports.fetchAllRequests = _chunkVC2CQFF6cjs.jd; exports.fetchAllSubDataPoints = _chunkVC2CQFF6cjs.Pd; exports.fetchAllTeams = _chunkVC2CQFF6cjs.kd; exports.fetchAllTemplates = _chunkVC2CQFF6cjs.Wd; exports.fetchAllUsers = _chunkVC2CQFF6cjs.ld; exports.fetchAllVendors = _chunkVC2CQFF6cjs.md; exports.fetchAndIndexCatalogs = _chunkVC2CQFF6cjs.qd; exports.fetchApiKeys = _chunkVC2CQFF6cjs.od; exports.fetchConsentManager = _chunkVC2CQFF6cjs.Nc; exports.fetchConsentManagerAnalyticsData = _chunkVC2CQFF6cjs.Rc; exports.fetchConsentManagerExperiences = _chunkVC2CQFF6cjs.Pc; exports.fetchConsentManagerId = _chunkVC2CQFF6cjs.Oc; exports.fetchConsentManagerTheme = _chunkVC2CQFF6cjs.Sc; exports.fetchConsentPreferences = _chunkYI64LKPIcjs.j; exports.fetchEnrichedDataSilos = _chunkVC2CQFF6cjs.Rd; exports.fetchIdentifiersAndCreateMissing = _chunkVC2CQFF6cjs.Yf; exports.fetchPartitions = _chunkVC2CQFF6cjs.Yd; exports.fetchPrivacyCenterId = _chunkVC2CQFF6cjs.Yc; exports.fetchPrivacyCenterUrl = _chunkVC2CQFF6cjs.Xc; exports.fetchPromptsWithVariables = _chunkVC2CQFF6cjs.yd; exports.fetchRequestDataSilo = _chunkVC2CQFF6cjs.Bd; exports.fetchRequestDataSiloActiveCount = _chunkVC2CQFF6cjs.Cd; exports.fetchRequestDataSilos = _chunkVC2CQFF6cjs.Ad; exports.fetchRequestFilesForRequest = _chunkVC2CQFF6cjs.Dd; exports.filterNullishValuesFromObject = Qm; exports.filterRows = _chunkVC2CQFF6cjs.sc; exports.fuzzyMatchColumns = _chunkVC2CQFF6cjs.lc; exports.fuzzySearch = _chunkVC2CQFF6cjs.kc; exports.generateCrossAccountApiKeys = _chunkNK3UOW57cjs.a; exports.getErrorStatus = _chunkVC2CQFF6cjs.Of; exports.getFileMetadataForPrivacyRequests = _chunkVC2CQFF6cjs.qf; exports.getGitFilesThatChanged = Vm; exports.getUniqueValuesForColumn = _chunkVC2CQFF6cjs.rc; exports.inquirerAutoComplete = _chunkVC2CQFF6cjs.Mf; exports.inquirerConfirmBoolean = _chunkVC2CQFF6cjs.Kf; exports.inquirerConfirmText = _chunkVC2CQFF6cjs.Lf; exports.limitRecords = _chunkVC2CQFF6cjs.Tf; exports.listDirectories = _chunkNK3UOW57cjs.d; exports.listFiles = _chunkNK3UOW57cjs.c; exports.loginUser = _chunkVC2CQFF6cjs.Ed; exports.makeGraphQLRequest = _chunkVC2CQFF6cjs.Wf; exports.mapColumnsToAttributes = _chunkVC2CQFF6cjs.zf; exports.mapColumnsToIdentifiers = _chunkVC2CQFF6cjs.xf; exports.mapCsvColumnsToApi = _chunkVC2CQFF6cjs.hf; exports.mapCsvRowsToRequestInputs = _chunkVC2CQFF6cjs.mf; exports.mapEnumValues = _chunkVC2CQFF6cjs.mc; exports.mapRequestEnumValues = _chunkVC2CQFF6cjs.if; exports.markCronIdentifierCompleted = _chunk5CASGOYOcjs.d; exports.markRequestDataSiloIdsCompleted = _chunk5CASGOYOcjs.f; exports.markSilentPrivacyRequests = _chunkVC2CQFF6cjs.gf; exports.mergeTranscendInputs = _chunkIBTP5OXEcjs.a; exports.name = _chunkWHPCDQ2Mcjs.n; exports.normalizeIdentifierValue = _chunkVC2CQFF6cjs.lf; exports.notifyPrivacyRequestsAdditionalTime = _chunkVC2CQFF6cjs.wf; exports.parseAssessmentDisplayLogic = _chunkVC2CQFF6cjs.Ld; exports.parseAssessmentRiskLogic = _chunkVC2CQFF6cjs.Nd; exports.parseAttributesFromString = _chunkVC2CQFF6cjs.pc; exports.parseFilePath = _chunkLR3CPNDMcjs.d; exports.parseVariablesFromString = _chunkVC2CQFF6cjs.Nf; exports.pullAllDatapoints = _chunkJSRAOZZ6cjs.a; exports.pullChunkedCustomSiloOutstandingIdentifiers = _chunk5CASGOYOcjs.g; exports.pullConsentManagerMetrics = _chunkYI64LKPIcjs.d; exports.pullCronPageOfIdentifiers = _chunk5CASGOYOcjs.b; exports.pullManualEnrichmentIdentifiersToCsv = _chunkG2RYLVXEcjs.a; exports.pullPrivacyRequests = _chunkVC2CQFF6cjs.Hf; exports.pullTranscendConfiguration = _chunkVC2CQFF6cjs.$d; exports.pullUnstructuredSubDataPointRecommendations = _chunkJSRAOZZ6cjs.b; exports.pushCronIdentifiersFromCsv = _chunk5CASGOYOcjs.e; exports.pushManualEnrichmentIdentifiersFromCsv = _chunkG2RYLVXEcjs.d; exports.readCsv = _chunkVC2CQFF6cjs.qc; exports.readSafe = _chunkVC2CQFF6cjs.Vf; exports.readTranscendYaml = _chunkSW5CIF5Dcjs.d; exports.removeLinks = Bm; exports.removeUnverifiedRequestIdentifiers = _chunkVC2CQFF6cjs.Jf; exports.replaceVariablesInYaml = _chunkSW5CIF5Dcjs.c; exports.reportPromptRun = _chunkVC2CQFF6cjs.ae; exports.restartPrivacyRequest = _chunkVC2CQFF6cjs.Cf; exports.retryRequestDataSilos = _chunkVC2CQFF6cjs.Gf; exports.retryRequestEnricher = _chunkVC2CQFF6cjs.be; exports.retrySamePromise = _chunkVC2CQFF6cjs.Sf; exports.setResourceAttributes = _chunkVC2CQFF6cjs.ce; exports.skipPreflightJobs = _chunkVC2CQFF6cjs.Ef; exports.skipRequestDataSilos = _chunkVC2CQFF6cjs.If; exports.sleepPromise = _chunkVC2CQFF6cjs.Qf; exports.splitCsvToList = _chunkVC2CQFF6cjs.nc; exports.splitInHalf = _chunkVC2CQFF6cjs.Rf; exports.streamPrivacyRequestFiles = _chunkVC2CQFF6cjs.rf; exports.submitPrivacyRequest = _chunkVC2CQFF6cjs.uf; exports.syncAction = _chunkVC2CQFF6cjs.de; exports.syncActionItemCollections = _chunkVC2CQFF6cjs.ge; exports.syncActionItems = _chunkVC2CQFF6cjs.je; exports.syncAgentFiles = _chunkVC2CQFF6cjs.me; exports.syncAgentFunctions = _chunkVC2CQFF6cjs.pe; exports.syncAgents = _chunkVC2CQFF6cjs.se; exports.syncAttribute = _chunkVC2CQFF6cjs.te; exports.syncBusinessEntities = _chunkVC2CQFF6cjs.we; exports.syncCodePackages = _chunkVC2CQFF6cjs.Fe; exports.syncConfigurationToTranscend = _chunkVC2CQFF6cjs.Zf; exports.syncConsentManager = _chunkVC2CQFF6cjs.He; exports.syncConsentManagerExperiences = _chunkVC2CQFF6cjs.Ge; exports.syncCookies = _chunkVC2CQFF6cjs.Je; exports.syncDataCategories = _chunkVC2CQFF6cjs.Me; exports.syncDataFlows = _chunkVC2CQFF6cjs.Pe; exports.syncDataSiloDependencies = _chunkVC2CQFF6cjs.Td; exports.syncDataSilos = _chunkVC2CQFF6cjs.Sd; exports.syncDataSubject = _chunkVC2CQFF6cjs.Qe; exports.syncEnricher = _chunkVC2CQFF6cjs.Vd; exports.syncIdentifier = _chunkVC2CQFF6cjs.Re; exports.syncIntlMessages = _chunkVC2CQFF6cjs.Te; exports.syncPartitions = _chunkVC2CQFF6cjs.Zd; exports.syncPolicies = _chunkVC2CQFF6cjs.Ve; exports.syncPrivacyCenter = _chunkVC2CQFF6cjs.We; exports.syncProcessingActivities = _chunkVC2CQFF6cjs.Xe; exports.syncProcessingPurposes = _chunkVC2CQFF6cjs._e; exports.syncPrompts = _chunkVC2CQFF6cjs.bf; exports.syncRepositories = _chunkVC2CQFF6cjs.Ce; exports.syncSoftwareDevelopmentKits = _chunkVC2CQFF6cjs.ze; exports.syncTemplate = _chunkVC2CQFF6cjs.Xd; exports.syncVendors = _chunkVC2CQFF6cjs.ef; exports.updateActionItem = _chunkVC2CQFF6cjs.ie; exports.updateActionItemCollection = _chunkVC2CQFF6cjs.fe; exports.updateAgentFiles = _chunkVC2CQFF6cjs.le; exports.updateAgentFunctions = _chunkVC2CQFF6cjs.oe; exports.updateAgents = _chunkVC2CQFF6cjs.re; exports.updateBusinessEntities = _chunkVC2CQFF6cjs.ve; exports.updateCodePackages = _chunkVC2CQFF6cjs.Ee; exports.updateConsentManagerToLatest = _chunkVC2CQFF6cjs.zc; exports.updateConsentManagerVersionToLatest = _chunkYI64LKPIcjs.a; exports.updateDataCategories = _chunkVC2CQFF6cjs.Le; exports.updateDataFlows = _chunkVC2CQFF6cjs.Ne; exports.updateIntlMessages = _chunkVC2CQFF6cjs.Se; exports.updateOrCreateCookies = _chunkVC2CQFF6cjs.Ie; exports.updatePolicies = _chunkVC2CQFF6cjs.Ue; exports.updateProcessingPurposes = _chunkVC2CQFF6cjs.Ze; exports.updatePrompts = _chunkVC2CQFF6cjs.af; exports.updateRepositories = _chunkVC2CQFF6cjs.Be; exports.updateSoftwareDevelopmentKits = _chunkVC2CQFF6cjs.ye; exports.updateVendors = _chunkVC2CQFF6cjs.df; exports.uploadConsents = _chunkPE4HNCQRcjs.f; exports.uploadCookiesFromCsv = _chunkYI64LKPIcjs.c; exports.uploadDataFlowsFromCsv = _chunkYI64LKPIcjs.b; exports.uploadPrivacyRequestsFromCsv = _chunkVC2CQFF6cjs.Bf; exports.uploadSiloDiscoveryResults = _chunkVC2CQFF6cjs.ff; exports.validateTranscendAuth = _chunkNK3UOW57cjs.b; exports.version = _chunkWHPCDQ2Mcjs.m; exports.writeCsv = _chunkLR3CPNDMcjs.c; exports.writeCsvSync = _chunkLR3CPNDMcjs.a; exports.writeLargeCsv = _chunkLR3CPNDMcjs.e; exports.writeTranscendYaml = _chunkSW5CIF5Dcjs.e;
|
|
5
5
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["/home/runner/work/cli/cli/dist/index.cjs","../src/lib/ai/TranscendPromptManager.ts","../src/lib/graphql/fetchLargeLanguageModels.ts","../src/lib/ai/getGitFilesThatChanged.ts"],"names":["PAGE_SIZE","fetchAllLargeLanguageModels","client","largeLanguageModels","offset","shouldContinue","nodes","makeGraphQLRequest","LARGE_LANGUAGE_MODELS","a","b","createRegexForTag","tagName","defineTranscendPrompts","prompts","jsonParseSafe","obj","TranscendPromptManager","handlebarsOptions","transcendUrl","DEFAULT_TRANSCEND_API","transcendApiKey","requireApproval","cacheDuration","defaultVariables","buildTranscendGraphQLClient","createHandlebarsWithHelpers","promptDefinitions","getValues","promptIds","id","x","promptTitles","title","agentNames","uniq_default","response","agents","fetchPromptsWithVariables","fetchAllAgents","keyBy_default","model","promptByTitle","promptById","acc","v","partial","apply","result","name","agent","remoteAgent","ts","thread","fetchAllPromptThreads","names","hasCache","missingCache","groupBy_default","cachedAgents","chunkedNames","chunk_default","remoteAgents","mapSeries","chunkedName","pageOfAgents","filterBy","fetchAllAgentFiles","largeLanguageModel","matching"],"mappings":"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","file":"/home/runner/work/cli/cli/dist/index.cjs","sourcesContent":[null,"/* eslint-disable max-lines */\nimport {\n Optionalize,\n Requirize,\n apply,\n decodeCodec,\n getValues,\n} from '@transcend-io/type-utils';\nimport type { Handlebars } from '@transcend-io/handlebars-utils';\nimport { Secret } from '@transcend-io/secret-value';\nimport * as t from 'io-ts';\nimport { DEFAULT_TRANSCEND_API } from '../../constants';\nimport {\n Agent,\n AgentFile,\n AgentFileFilterBy,\n ReportPromptRunInput,\n buildTranscendGraphQLClient,\n fetchAllAgentFiles,\n fetchAllAgents,\n reportPromptRun,\n} from '../graphql';\nimport {\n HandlebarsInput,\n createHandlebarsWithHelpers,\n} from '@transcend-io/handlebars-utils';\nimport {\n TranscendPromptTemplated,\n TranscendPromptsAndVariables,\n fetchPromptsWithVariables,\n} from '../graphql/fetchPrompts';\nimport { GraphQLClient } from 'graphql-request';\nimport {\n PromptStatus,\n ChatCompletionRole,\n PromptRunProductArea,\n QueueStatus,\n LargeLanguageModelClient,\n} from '@transcend-io/privacy-types';\nimport {\n LargeLanguageModel,\n fetchAllLargeLanguageModels,\n} from '../graphql/fetchLargeLanguageModels';\nimport { groupBy, keyBy, uniq, chunk } from 'lodash-es';\nimport { mapSeries } from 'bluebird';\nimport {\n PromptThread,\n fetchAllPromptThreads,\n} from '../graphql/fetchPromptThreads';\n\n/**\n * An LLM Prompt definition\n */\nexport type TranscendPrompt<\n TInputParams extends t.Any,\n TOutputCodec extends t.Any,\n> = (\n | {\n /** ID of the prompt */\n id: string;\n /** Title of the prompt */\n title?: string;\n }\n | {\n /** ID of the prompt */\n id?: string;\n /** Title of the prompt */\n title: string;\n }\n) & {\n /** The names of the agents that should be loaded along with the prompt */\n agentNames?: string[];\n /** Codec to validate runtime input shape */\n paramCodec: TInputParams;\n /** Codec to validate output response */\n outputCodec: TOutputCodec;\n /**\n * If the output that needs to be parsed is returned within a tag\n * e.g. <tag> or <json> - this is the name of the tag\n */\n extractFromTag?: string;\n};\n\nexport interface PromptRunResult {\n /** The ID of the prompt run created on Transcend */\n promptRunId: string;\n /** The URL of the prompt run on Transcend */\n promptRunUrl: string;\n}\n\n/**\n * Create a regex to extract data from a tag\n *\n * Input:\n * \"here is some data <tag>Data</tag>...\"\n *\n * @param tagName - Name of tag\n * @returns Data within the tag\n */\nexport function createRegexForTag(tagName: string): RegExp {\n return new RegExp(`<${tagName}>([\\\\s\\\\S]+?)<\\\\/${tagName}>`);\n}\n\n/**\n * Helper function to declare prompts\n *\n * @param prompts - Prompt config\n * @returns Prompts as identity function - but type enforced\n */\nexport function defineTranscendPrompts<\n TPromptNames extends string,\n TPrompts extends { [k in TPromptNames]: TranscendPrompt<t.Any, t.Any> },\n>(prompts: TPrompts): TPrompts {\n return prompts;\n}\n\n/**\n * Helper to get the type of the parameter for a given prompt\n */\nexport type GetPromptParamType<\n TPromptName extends keyof TPrompts,\n TPrompts extends { [k in TPromptName]: TranscendPrompt<t.Any, t.Any> },\n> = t.TypeOf<TPrompts[TPromptName]['paramCodec']>;\n\n/**\n * Helper to get the type of the parameter for a given prompt\n */\nexport type GetPromptResponseType<\n TPromptName extends keyof TPrompts,\n TPrompts extends { [k in TPromptName]: TranscendPrompt<t.Any, t.Any> },\n> = t.TypeOf<TPrompts[TPromptName]['outputCodec']>;\n\n/**\n * Input for reporting a prompt run\n */\nexport interface ReportPromptRunOptions\n extends Optionalize<\n Omit<ReportPromptRunInput, 'status' | 'promptId' | 'largeLanguageModelId'>,\n 'name' | 'productArea'\n > {\n /** The large language model being run. Either the ID of the LLM or the client/name pairing */\n largeLanguageModel:\n | string\n | {\n /** Name of client */\n client: LargeLanguageModelClient;\n /** Name of the model */\n name: string;\n };\n}\n\nconst jsonParseSafe = (obj: string): unknown => {\n try {\n return JSON.parse(obj);\n } catch (e) {\n return obj;\n }\n};\n\n/**\n * A class that is capable of loading and insert variables into prompts from\n * Transcend's Prompt Manager\n */\nexport class TranscendPromptManager<\n TPromptNames extends string,\n TPrompts extends { [k in TPromptNames]: TranscendPrompt<t.Any, t.Any> },\n> {\n /** Prompt definitions */\n public prompts: TPrompts;\n\n /** Options for configuring handlebars */\n public handlebarsOptions!: HandlebarsInput;\n\n /** Prompt name -> content map, populated by call to Transcend API */\n public promptContentMap?: { [k in TPromptNames]: TranscendPromptTemplated };\n\n /** The large language models that are registered to this organization for reporting */\n public largeLanguageModels: LargeLanguageModel[] = [];\n\n /** The agent definitions registered to this organization */\n private agentsByName: { [name in string]: Agent } = {};\n\n /** The agent definitions registered to this organization */\n private agentsByAgentId: { [id in string]: Agent } = {};\n\n /** The GraphQL client that can be used to call Transcend */\n public graphQLClient: GraphQLClient;\n\n /** The set of variables to expose in handlebars context specified at class initiation */\n public defaultVariables: { [k in string]: unknown };\n\n /**\n * The set of variables to expose in handlebars context,\n * merges defaults with calculated variables from the inventory\n */\n public variables: { [k in string]: unknown };\n\n /** Handlebars compiler */\n public handlebars: typeof Handlebars;\n\n /** The Transcend API key */\n public transcendApiKey: string | Secret<string>;\n\n /** API of Transcend to call */\n public transcendUrl: string;\n\n /** When true, throw an error if the prompt is not approved */\n public requireApproval: boolean;\n\n /**\n * The cache duration in ms for how long prompts and associated metadata should be cached\n * When undefined - prompts are cached indefinitely unless explicitly re-requested\n * When 0, prompts and metadata are fetched every time (not recommended)\n * Setting this to be an hour is a good rate that optimizes for performance and keeping up to date\n */\n public cacheDuration?: number;\n\n /**\n * The last time the metadata was fetched\n */\n public lastUpdatedAt?: Date;\n\n /**\n * Constructor\n *\n * @param options - Options\n */\n constructor({\n prompts,\n handlebarsOptions = {},\n transcendUrl = DEFAULT_TRANSCEND_API,\n transcendApiKey,\n requireApproval = true,\n cacheDuration,\n defaultVariables = {},\n }: {\n /** Prompt definitions to load */\n prompts: TPrompts;\n /** Options for configuring handlebars */\n handlebarsOptions?: HandlebarsInput;\n /** The Transcend API key */\n transcendApiKey: string | Secret<string>;\n /** API of Transcend to call */\n transcendUrl?: string;\n /** When true, throw an error if the prompt is not approved */\n requireApproval?: boolean;\n /** The set of variables to expose in handlebars context specified at class initiation */\n defaultVariables?: { [k in string]: unknown };\n /**\n * The cache duration in ms for how long prompts and associated metadata should be cached\n * When undefined - prompts are cached indefinitely unless explicitly re-requested\n * When 0, prompts and metadata are fetched every time (not recommended)\n * Setting this to be an hour is a good rate that optimizes for performance and keeping up to date\n */\n cacheDuration?: number;\n }) {\n this.prompts = prompts;\n this.transcendUrl = transcendUrl;\n this.transcendApiKey = transcendApiKey;\n this.variables = defaultVariables;\n this.defaultVariables = defaultVariables;\n this.graphQLClient = buildTranscendGraphQLClient(\n transcendUrl,\n typeof transcendApiKey === 'object'\n ? transcendApiKey.release()\n : transcendApiKey,\n );\n this.requireApproval = requireApproval;\n this.cacheDuration = cacheDuration;\n this.handlebarsOptions = handlebarsOptions;\n this.handlebars = createHandlebarsWithHelpers(handlebarsOptions);\n }\n\n /**\n * Fetch prompt metadata from Transcend and cache to the class definition\n *\n * @returns A function that can be used to call the prompt\n */\n async fetchPromptsAndMetadata(): Promise<TranscendPromptsAndVariables> {\n // Determine what to fetch\n const promptDefinitions = getValues(this.prompts) as TranscendPrompt<\n t.Any,\n t.Any\n >[];\n const promptIds = promptDefinitions\n .map(({ id }) => id)\n .filter((x): x is string => !!x);\n const promptTitles = promptDefinitions\n .map(({ title }) => title)\n .filter((x): x is string => !!x);\n const agentNames = uniq(\n promptDefinitions.map(({ agentNames }) => agentNames || []).flat(),\n );\n\n // Fetch prompts and data\n const [response, largeLanguageModels, agents] = await Promise.all([\n fetchPromptsWithVariables(this.graphQLClient, {\n promptIds,\n promptTitles,\n }),\n fetchAllLargeLanguageModels(this.graphQLClient),\n fetchAllAgents(this.graphQLClient, { names: agentNames }),\n ]);\n this.agentsByName = keyBy(agents, 'name');\n this.agentsByAgentId = keyBy(agents, 'agentId');\n this.largeLanguageModels = largeLanguageModels.filter(\n (model) => model.isTranscendHosted === false,\n );\n\n // Lookup prompts by id/title\n const promptByTitle = keyBy(response.prompts, 'title');\n const promptById = keyBy(response.prompts, 'id');\n\n // Update variables\n this.variables = {\n ...response.calculatedVariables.reduce(\n (acc, v) =>\n Object.assign(acc, {\n [v.name]: v.data ? JSON.parse(v.data) : v.data,\n }),\n {},\n ),\n ...this.defaultVariables,\n };\n\n // Update partials\n this.handlebars = createHandlebarsWithHelpers({\n ...this.handlebarsOptions,\n templates: [\n ...(this.handlebarsOptions.templates || []),\n ...response.promptPartials.map((partial) => ({\n name: partial.slug,\n content: partial.content,\n })),\n ],\n });\n\n // Create mapping from prompt to content\n this.promptContentMap = apply(this.prompts, ({ id, title }) => {\n const result = id\n ? promptById[id]\n : title\n ? promptByTitle[title]\n : undefined;\n if (!result) {\n throw new Error(\n `Failed to find prompt with title: \"${title}\" and id: \"${id}\"`,\n );\n }\n return result;\n });\n\n // For cache\n this.lastUpdatedAt = new Date();\n\n return response;\n }\n\n /**\n * Get an agent definition by name\n *\n * @param name - Name of the agent to grab\n * @returns Large language model configuration\n */\n async getAgentByName(name: string): Promise<Agent | undefined> {\n const agent = this.agentsByName[name];\n if (agent) {\n return agent;\n }\n const [remoteAgent] = await fetchAllAgents(this.graphQLClient, {\n names: [name],\n });\n if (!remoteAgent) {\n return undefined;\n }\n this.agentsByName[remoteAgent.name] = remoteAgent;\n this.agentsByAgentId[remoteAgent.agentId] = remoteAgent;\n return remoteAgent;\n }\n\n /**\n * Get a prompt thread by ts\n *\n * @param ts - the slack message timestamp to look up thread for\n * @returns Large language model configuration\n */\n async getPromptThreadBySlackTs(\n ts: string,\n ): Promise<PromptThread | undefined> {\n const [thread] = await fetchAllPromptThreads(this.graphQLClient, {\n slackMessageTs: [ts],\n });\n return thread;\n }\n\n /**\n * Get a list of agent definitions by name.\n * Pulls from cache and may return less agents\n * than requested if some are not found\n *\n * @param names - Names of agents to fetch\n * @returns The agents that were found matching the names\n */\n async getAgentsByName(names: string[]): Promise<Agent[]> {\n if (names.length < 1) {\n throw new Error('Expected at least one name to be provided');\n }\n const { hasCache = [], missingCache = [] } = groupBy(names, (name) =>\n this.agentsByName[name] ? 'hasCache' : 'missingCache',\n );\n const cachedAgents = hasCache.map((name) => this.agentsByName[name]);\n if (missingCache.length === 0) {\n return cachedAgents;\n }\n const chunkedNames = chunk(missingCache, 50);\n const remoteAgents: Agent[] = [];\n await mapSeries(chunkedNames, async (chunkedName) => {\n const pageOfAgents = await fetchAllAgents(this.graphQLClient, {\n names: chunkedName,\n });\n pageOfAgents.forEach((agent) => {\n this.agentsByName[agent.name] = agent;\n this.agentsByAgentId[agent.agentId] = agent;\n });\n remoteAgents.push(...pageOfAgents);\n });\n return [...cachedAgents, ...remoteAgents];\n }\n\n /**\n * Fetch metadata on agent files\n *\n * @param filterBy - Filter by parameters\n * @returns The files found matching the filter\n */\n getAgentFiles(filterBy: AgentFileFilterBy): Promise<AgentFile[]> {\n return fetchAllAgentFiles(this.graphQLClient, filterBy);\n }\n\n /**\n * Look up the large language model to report on\n *\n * @param largeLanguageModel - Input\n * @returns Large language model configuration\n */\n getLargeLanguageModel(\n largeLanguageModel: ReportPromptRunOptions['largeLanguageModel'],\n ): LargeLanguageModel {\n const matching = this.largeLanguageModels.find((model) =>\n typeof largeLanguageModel === 'string'\n ? model.id === largeLanguageModel\n : model.name === largeLanguageModel.name &&\n model.client === largeLanguageModel.client,\n );\n if (!matching) {\n throw new Error(\n `Failed to find model matching: ${\n typeof largeLanguageModel === 'string'\n ? largeLanguageModel\n : JSON.stringify(largeLanguageModel)\n }`,\n );\n }\n return matching;\n }\n\n /**\n * Get a prompt definition by name\n *\n * @param promptName - Prompt to compile\n * @returns Parsed content\n */\n async getPromptDefinition<TPromptName extends TPromptNames>(\n promptName: TPromptName,\n ): Promise<TranscendPromptTemplated> {\n // Determine if prompts need to be fetched\n if (\n // never been fetched\n !this.lastUpdatedAt ||\n // fetch every run\n this.cacheDuration === 0 ||\n // If cache duration met\n (this.cacheDuration &&\n Date.now() - this.lastUpdatedAt.getTime() > this.cacheDuration)\n ) {\n await this.fetchPromptsAndMetadata();\n }\n\n // Lookup prompt\n const { promptContentMap } = this;\n if (!promptContentMap) {\n throw new Error('Expected this.promptContentMap to be defined');\n }\n const promptTemplate = promptContentMap[promptName];\n if (!promptTemplate) {\n throw new Error(\n `Expected this.promptContentMap[${promptName}] to be defined`,\n );\n }\n return promptTemplate;\n }\n\n /**\n * Validate the shape of the response from AI\n *\n * @param promptName - Prompt to compile\n * @param params - Runtime parameters\n * @returns Parsed content\n */\n async compilePrompt<TPromptName extends TPromptNames>(\n promptName: TPromptName,\n params: t.TypeOf<TPrompts[TPromptName]['paramCodec']>,\n ): Promise<string> {\n // Grab the prompt\n const promptTemplate = await this.getPromptDefinition(promptName);\n const promptInput = this.prompts[promptName];\n if (!promptInput) {\n throw new Error(`Expected this.prompts[${promptName}] to be defined`);\n }\n\n // Ensure prompt is approved\n if (\n this.requireApproval &&\n promptTemplate.status !== PromptStatus.Approved\n ) {\n throw new Error(\n `Assessment \"${promptTemplate.title}\" cannot be used because its in status: \"${promptTemplate.status}\"`,\n );\n }\n\n // If prompt is rejected, throw error\n if (promptTemplate.status === PromptStatus.Rejected) {\n throw new Error(\n `Assessment \"${promptTemplate.title}\" cannot be used because it's in status: \"${promptTemplate.status}\"`,\n );\n }\n\n // Validate params\n decodeCodec(promptInput.paramCodec, params);\n\n // Compile prompt and template\n return this.handlebars.compile(promptTemplate.content)({\n // template in currentDate by default\n currentDate: new Date().toISOString(),\n ...this.variables,\n ...params,\n });\n }\n\n /**\n * Validate the shape of the response from AI\n *\n * @param promptName - Prompt to parse\n * @param response - AI response as string\n * @returns Parsed content\n */\n parseAiResponse<TPromptName extends TPromptNames>(\n promptName: TPromptName,\n response: string,\n ): t.TypeOf<TPrompts[TPromptName]['outputCodec']> {\n // Look up prompt info\n const promptInput = this.prompts[promptName];\n if (!promptInput) {\n throw new Error(`Expected this.prompts[${promptName}] to be defined`);\n }\n\n // Extract from tag if needed\n const extracted = promptInput.extractFromTag\n ? (createRegexForTag(promptInput.extractFromTag).exec(response) ||\n [])[1] || response\n : response;\n\n // Parse via codec\n return decodeCodec(\n promptInput.outputCodec,\n jsonParseSafe(extracted),\n false,\n );\n }\n\n /**\n * Parse the AI response and report back to Transcend\n *\n * @param promptName - Prompt to parse\n * @param options - Options for reporting\n * @returns Parsed content\n */\n async reportAndParsePromptRun<TPromptName extends TPromptNames>(\n promptName: TPromptName,\n { largeLanguageModel, ...options }: ReportPromptRunOptions,\n ): Promise<\n PromptRunResult & {\n /** Resulting prompt run */\n result: t.TypeOf<TPrompts[TPromptName]['outputCodec']>;\n }\n > {\n // Determine if prompts need to be fetched\n if (\n // never been fetched\n !this.lastUpdatedAt ||\n // fetch every run\n this.cacheDuration === 0 ||\n // If cache duration met\n (this.cacheDuration &&\n Date.now() - this.lastUpdatedAt.getTime() > this.cacheDuration)\n ) {\n await this.fetchPromptsAndMetadata();\n }\n\n const name =\n options.name ||\n `@transcend-io/cli-prompt-run-${new Date().toISOString()}`;\n\n if (!this.promptContentMap) {\n throw new Error('Expected this.promptContentMap to be defined');\n }\n // Look up prompt info\n const promptInput = this.promptContentMap[promptName];\n if (!promptInput) {\n throw new Error(`Expected this.prompts[${promptName}] to be defined`);\n }\n\n // Ensure the first message in `promptRunMessages` is of type=system\n if (options.promptRunMessages.length === 0) {\n throw new Error('promptRunMessages is expected to have length > 0');\n }\n if (options.promptRunMessages[0].role !== ChatCompletionRole.System) {\n throw new Error(\n `promptRunMessages[0].role is expected to be = ${ChatCompletionRole.System}`,\n );\n }\n if (\n options.promptRunMessages[options.promptRunMessages.length - 1].role !==\n ChatCompletionRole.Assistant\n ) {\n throw new Error(\n `promptRunMessages[${\n options.promptRunMessages.length - 1\n }].role is expected to be = ${ChatCompletionRole.Assistant}`,\n );\n }\n const response =\n options.promptRunMessages[options.promptRunMessages.length - 1].content;\n\n let parsed: t.TypeOf<TPrompts[TPromptName]['outputCodec']>;\n try {\n // Parse the response\n parsed = this.parseAiResponse(promptName, response);\n } catch (err) {\n await reportPromptRun(this.graphQLClient, {\n productArea: PromptRunProductArea.PromptManager,\n ...options,\n name,\n error: err.message,\n status: QueueStatus.Error,\n ...(typeof largeLanguageModel === 'string'\n ? { largeLanguageModelId: largeLanguageModel }\n : {\n largeLanguageModelName: largeLanguageModel.name,\n largeLanguageModelClient: largeLanguageModel.client,\n }),\n promptId: promptInput.id,\n promptRunMessages: options.promptRunMessages.map((message, ind) => ({\n ...message,\n ...(ind === 0 ? { template: promptInput.content } : {}),\n })),\n });\n throw err;\n }\n\n // report successful run\n const promptRunId = await reportPromptRun(this.graphQLClient, {\n productArea: PromptRunProductArea.PromptManager,\n ...options,\n name,\n status: QueueStatus.Resolved,\n ...(typeof largeLanguageModel === 'string'\n ? { largeLanguageModelId: largeLanguageModel }\n : {\n largeLanguageModelName: largeLanguageModel.name,\n largeLanguageModelClient: largeLanguageModel.client,\n }),\n promptId: promptInput.id,\n promptRunMessages: options.promptRunMessages.map((message, ind) => ({\n ...message,\n ...(ind === 0 ? { template: promptInput.content } : {}),\n })),\n });\n\n return {\n result: parsed,\n promptRunId,\n promptRunUrl: `https://app.transcend.io/prompts/runs/${promptRunId}`,\n };\n }\n\n /**\n * Report an error for a particular prompt\n *\n * @param promptName - Prompt to parse\n * @param options - Options for reporting\n * @returns Parsed content\n */\n async reportPromptRunError<TPromptName extends TPromptNames>(\n promptName: TPromptName,\n {\n largeLanguageModel,\n ...options\n }: Requirize<ReportPromptRunOptions, 'error'>,\n ): Promise<PromptRunResult> {\n // Determine if prompts need to be fetched\n if (\n // never been fetched\n !this.lastUpdatedAt ||\n // fetch every run\n this.cacheDuration === 0 ||\n // If cache duration met\n (this.cacheDuration &&\n Date.now() - this.lastUpdatedAt.getTime() > this.cacheDuration)\n ) {\n await this.fetchPromptsAndMetadata();\n }\n\n const name =\n options.name ||\n `@transcend-io/cli-prompt-run-${new Date().toISOString()}`;\n\n if (!this.promptContentMap) {\n throw new Error('Expected this.promptContentMap to be defined');\n }\n // Look up prompt info\n const promptInput = this.promptContentMap[promptName];\n if (!promptInput) {\n throw new Error(`Expected this.prompts[${promptName}] to be defined`);\n }\n\n // Ensure the first message in `promptRunMessages` is of type=system\n if (options.promptRunMessages.length === 0) {\n throw new Error('promptRunMessages is expected to have length > 0');\n }\n if (options.promptRunMessages[0].role !== ChatCompletionRole.System) {\n throw new Error(\n `promptRunMessages[0].role is expected to be = ${ChatCompletionRole.System}`,\n );\n }\n\n const promptRunId = await reportPromptRun(this.graphQLClient, {\n productArea: PromptRunProductArea.PromptManager,\n ...options,\n name,\n status: QueueStatus.Error,\n ...(typeof largeLanguageModel === 'string'\n ? { largeLanguageModelId: largeLanguageModel }\n : {\n largeLanguageModelName: largeLanguageModel.name,\n largeLanguageModelClient: largeLanguageModel.client,\n }),\n promptId: promptInput.id,\n promptRunMessages: options.promptRunMessages.map((message, ind) => ({\n ...message,\n ...(ind === 0 ? { template: promptInput.content } : {}),\n })),\n });\n\n return {\n promptRunId,\n promptRunUrl: `https://app.transcend.io/prompts/runs/${promptRunId}`,\n };\n }\n}\n/* eslint-enable max-lines */\n","import { GraphQLClient } from 'graphql-request';\nimport { LargeLanguageModelClient } from '@transcend-io/privacy-types';\nimport { LARGE_LANGUAGE_MODELS } from './gqls';\nimport { makeGraphQLRequest } from './makeGraphQLRequest';\n\nexport interface LargeLanguageModel {\n /** ID of prompts */\n id: string;\n /** The name of the large language model. */\n name: string;\n /** The content of the prompt template. */\n client: LargeLanguageModelClient;\n /** Whether hosted by Transcend or not */\n isTranscendHosted: boolean;\n}\n\nconst PAGE_SIZE = 20;\n\n/**\n * Fetch all LargeLanguageModels in the organization\n *\n * @param client - GraphQL client\n * @returns All LargeLanguageModels in the organization\n */\nexport async function fetchAllLargeLanguageModels(\n client: GraphQLClient,\n): Promise<LargeLanguageModel[]> {\n const largeLanguageModels: LargeLanguageModel[] = [];\n let offset = 0;\n\n // Whether to continue looping\n let shouldContinue = false;\n do {\n const {\n largeLanguageModels: { nodes },\n } = await makeGraphQLRequest<{\n /** LargeLanguageModels */\n largeLanguageModels: {\n /** List */\n nodes: LargeLanguageModel[];\n };\n }>(client, LARGE_LANGUAGE_MODELS, {\n first: PAGE_SIZE,\n offset,\n });\n largeLanguageModels.push(...nodes);\n offset += PAGE_SIZE;\n shouldContinue = nodes.length === PAGE_SIZE;\n } while (shouldContinue);\n\n return largeLanguageModels.sort((a, b) => a.name.localeCompare(b.name));\n}\n","import { difference } from 'lodash-es';\nimport fastGlob from 'fast-glob';\nimport { execSync } from 'child_process';\n\n/**\n * Function thats gets the git files that have changed\n * and returns the code\n *\n * @param options - Options\n * @returns Changes files and diffs\n */\nexport function getGitFilesThatChanged({\n baseBranch,\n rootDirectory,\n githubRepo,\n excludedGlob = [],\n fileBlockList = [],\n}: {\n /** Base branch */\n baseBranch: string;\n /** Github repo name */\n githubRepo: string;\n /** Root directory */\n rootDirectory: string;\n /** A glob that excludes files */\n excludedGlob?: string[];\n /** Block list of files to not process */\n fileBlockList?: string[];\n}): {\n /** The list of files that changed */\n changedFiles: string[];\n /** Github repo name */\n repoName: string;\n /** Current commit */\n commit: string;\n /** File diffs */\n fileDiffs: { [k in string]: string };\n} {\n // Pull base branch\n execSync(`git fetch origin ${baseBranch}`);\n\n // Latest commit on base branch. If we are on the base branch, we take the prior commit\n const latestBasedCommit = execSync(\n `git ls-remote ${githubRepo} \"refs/heads/${baseBranch}\" | cut -f 1`,\n { encoding: 'utf-8' },\n ).split('\\n')[0];\n\n // This commit\n const latestThisCommit = execSync('git rev-parse HEAD', {\n encoding: 'utf-8',\n }).split('\\n')[0];\n\n // Ensure commits are present\n if (!latestBasedCommit || !latestThisCommit) {\n throw new Error('FAILED TO FIND COMMIT RANGE');\n }\n\n // Get the diff between the given branch and base branch\n const diff = execSync(\n `git fetch && git diff --name-only \"${\n baseBranch || latestBasedCommit\n }...${latestThisCommit}\" -- ${rootDirectory}`,\n { encoding: 'utf-8' },\n );\n\n // Filter out block list\n const changedFiles = difference(\n diff.split('\\n').filter((f) => f),\n fileBlockList,\n );\n\n // Filter out globs\n const filteredChanges =\n excludedGlob.length > 0\n ? fastGlob.sync(changedFiles, { ignore: excludedGlob })\n : changedFiles;\n\n // Get the contents of only the changed files\n const fileDiffs: { [k in string]: string } = {};\n filteredChanges.forEach((file) => {\n const contents = execSync(`git show ${latestThisCommit}:${file}`, {\n encoding: 'utf-8',\n });\n fileDiffs[file] = contents;\n });\n\n // Pull the github repo name\n const repoName = githubRepo.split('/').pop()!.split('.')[0];\n\n return {\n changedFiles,\n fileDiffs,\n repoName,\n commit: latestThisCommit,\n };\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["/home/runner/work/cli/cli/dist/index.cjs","../src/lib/ai/TranscendPromptManager.ts","../src/lib/graphql/fetchLargeLanguageModels.ts","../src/lib/ai/getGitFilesThatChanged.ts"],"names":["PAGE_SIZE","fetchAllLargeLanguageModels","client","largeLanguageModels","offset","shouldContinue","nodes","makeGraphQLRequest","LARGE_LANGUAGE_MODELS","a","b","createRegexForTag","tagName","defineTranscendPrompts","prompts","jsonParseSafe","obj","TranscendPromptManager","handlebarsOptions","transcendUrl","DEFAULT_TRANSCEND_API","transcendApiKey","requireApproval","cacheDuration","defaultVariables","buildTranscendGraphQLClient","createHandlebarsWithHelpers","promptDefinitions","getValues","promptIds","id","x","promptTitles","title","agentNames","uniq_default","response","agents","fetchPromptsWithVariables","fetchAllAgents","keyBy_default","model","promptByTitle","promptById","acc","v","partial","apply","result","name","agent","remoteAgent","ts","thread","fetchAllPromptThreads","names","hasCache","missingCache","groupBy_default","cachedAgents","chunkedNames","chunk_default","remoteAgents","mapSeries","chunkedName","pageOfAgents","filterBy","fetchAllAgentFiles","largeLanguageModel","matching"],"mappings":"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","file":"/home/runner/work/cli/cli/dist/index.cjs","sourcesContent":[null,"/* eslint-disable max-lines */\nimport {\n Optionalize,\n Requirize,\n apply,\n decodeCodec,\n getValues,\n} from '@transcend-io/type-utils';\nimport type { Handlebars } from '@transcend-io/handlebars-utils';\nimport { Secret } from '@transcend-io/secret-value';\nimport * as t from 'io-ts';\nimport { DEFAULT_TRANSCEND_API } from '../../constants';\nimport {\n Agent,\n AgentFile,\n AgentFileFilterBy,\n ReportPromptRunInput,\n buildTranscendGraphQLClient,\n fetchAllAgentFiles,\n fetchAllAgents,\n reportPromptRun,\n} from '../graphql';\nimport {\n HandlebarsInput,\n createHandlebarsWithHelpers,\n} from '@transcend-io/handlebars-utils';\nimport {\n TranscendPromptTemplated,\n TranscendPromptsAndVariables,\n fetchPromptsWithVariables,\n} from '../graphql/fetchPrompts';\nimport { GraphQLClient } from 'graphql-request';\nimport {\n PromptStatus,\n ChatCompletionRole,\n PromptRunProductArea,\n QueueStatus,\n LargeLanguageModelClient,\n} from '@transcend-io/privacy-types';\nimport {\n LargeLanguageModel,\n fetchAllLargeLanguageModels,\n} from '../graphql/fetchLargeLanguageModels';\nimport { groupBy, keyBy, uniq, chunk } from 'lodash-es';\nimport { mapSeries } from 'bluebird';\nimport {\n PromptThread,\n fetchAllPromptThreads,\n} from '../graphql/fetchPromptThreads';\n\n/**\n * An LLM Prompt definition\n */\nexport type TranscendPrompt<\n TInputParams extends t.Any,\n TOutputCodec extends t.Any,\n> = (\n | {\n /** ID of the prompt */\n id: string;\n /** Title of the prompt */\n title?: string;\n }\n | {\n /** ID of the prompt */\n id?: string;\n /** Title of the prompt */\n title: string;\n }\n) & {\n /** The names of the agents that should be loaded along with the prompt */\n agentNames?: string[];\n /** Codec to validate runtime input shape */\n paramCodec: TInputParams;\n /** Codec to validate output response */\n outputCodec: TOutputCodec;\n /**\n * If the output that needs to be parsed is returned within a tag\n * e.g. <tag> or <json> - this is the name of the tag\n */\n extractFromTag?: string;\n};\n\nexport interface PromptRunResult {\n /** The ID of the prompt run created on Transcend */\n promptRunId: string;\n /** The URL of the prompt run on Transcend */\n promptRunUrl: string;\n}\n\n/**\n * Create a regex to extract data from a tag\n *\n * Input:\n * \"here is some data <tag>Data</tag>...\"\n *\n * @param tagName - Name of tag\n * @returns Data within the tag\n */\nexport function createRegexForTag(tagName: string): RegExp {\n return new RegExp(`<${tagName}>([\\\\s\\\\S]+?)<\\\\/${tagName}>`);\n}\n\n/**\n * Helper function to declare prompts\n *\n * @param prompts - Prompt config\n * @returns Prompts as identity function - but type enforced\n */\nexport function defineTranscendPrompts<\n TPromptNames extends string,\n TPrompts extends { [k in TPromptNames]: TranscendPrompt<t.Any, t.Any> },\n>(prompts: TPrompts): TPrompts {\n return prompts;\n}\n\n/**\n * Helper to get the type of the parameter for a given prompt\n */\nexport type GetPromptParamType<\n TPromptName extends keyof TPrompts,\n TPrompts extends { [k in TPromptName]: TranscendPrompt<t.Any, t.Any> },\n> = t.TypeOf<TPrompts[TPromptName]['paramCodec']>;\n\n/**\n * Helper to get the type of the parameter for a given prompt\n */\nexport type GetPromptResponseType<\n TPromptName extends keyof TPrompts,\n TPrompts extends { [k in TPromptName]: TranscendPrompt<t.Any, t.Any> },\n> = t.TypeOf<TPrompts[TPromptName]['outputCodec']>;\n\n/**\n * Input for reporting a prompt run\n */\nexport interface ReportPromptRunOptions\n extends Optionalize<\n Omit<ReportPromptRunInput, 'status' | 'promptId' | 'largeLanguageModelId'>,\n 'name' | 'productArea'\n > {\n /** The large language model being run. Either the ID of the LLM or the client/name pairing */\n largeLanguageModel:\n | string\n | {\n /** Name of client */\n client: LargeLanguageModelClient;\n /** Name of the model */\n name: string;\n };\n}\n\nconst jsonParseSafe = (obj: string): unknown => {\n try {\n return JSON.parse(obj);\n } catch (e) {\n return obj;\n }\n};\n\n/**\n * A class that is capable of loading and insert variables into prompts from\n * Transcend's Prompt Manager\n */\nexport class TranscendPromptManager<\n TPromptNames extends string,\n TPrompts extends { [k in TPromptNames]: TranscendPrompt<t.Any, t.Any> },\n> {\n /** Prompt definitions */\n public prompts: TPrompts;\n\n /** Options for configuring handlebars */\n public handlebarsOptions!: HandlebarsInput;\n\n /** Prompt name -> content map, populated by call to Transcend API */\n public promptContentMap?: { [k in TPromptNames]: TranscendPromptTemplated };\n\n /** The large language models that are registered to this organization for reporting */\n public largeLanguageModels: LargeLanguageModel[] = [];\n\n /** The agent definitions registered to this organization */\n private agentsByName: { [name in string]: Agent } = {};\n\n /** The agent definitions registered to this organization */\n private agentsByAgentId: { [id in string]: Agent } = {};\n\n /** The GraphQL client that can be used to call Transcend */\n public graphQLClient: GraphQLClient;\n\n /** The set of variables to expose in handlebars context specified at class initiation */\n public defaultVariables: { [k in string]: unknown };\n\n /**\n * The set of variables to expose in handlebars context,\n * merges defaults with calculated variables from the inventory\n */\n public variables: { [k in string]: unknown };\n\n /** Handlebars compiler */\n public handlebars: typeof Handlebars;\n\n /** The Transcend API key */\n public transcendApiKey: string | Secret<string>;\n\n /** API of Transcend to call */\n public transcendUrl: string;\n\n /** When true, throw an error if the prompt is not approved */\n public requireApproval: boolean;\n\n /**\n * The cache duration in ms for how long prompts and associated metadata should be cached\n * When undefined - prompts are cached indefinitely unless explicitly re-requested\n * When 0, prompts and metadata are fetched every time (not recommended)\n * Setting this to be an hour is a good rate that optimizes for performance and keeping up to date\n */\n public cacheDuration?: number;\n\n /**\n * The last time the metadata was fetched\n */\n public lastUpdatedAt?: Date;\n\n /**\n * Constructor\n *\n * @param options - Options\n */\n constructor({\n prompts,\n handlebarsOptions = {},\n transcendUrl = DEFAULT_TRANSCEND_API,\n transcendApiKey,\n requireApproval = true,\n cacheDuration,\n defaultVariables = {},\n }: {\n /** Prompt definitions to load */\n prompts: TPrompts;\n /** Options for configuring handlebars */\n handlebarsOptions?: HandlebarsInput;\n /** The Transcend API key */\n transcendApiKey: string | Secret<string>;\n /** API of Transcend to call */\n transcendUrl?: string;\n /** When true, throw an error if the prompt is not approved */\n requireApproval?: boolean;\n /** The set of variables to expose in handlebars context specified at class initiation */\n defaultVariables?: { [k in string]: unknown };\n /**\n * The cache duration in ms for how long prompts and associated metadata should be cached\n * When undefined - prompts are cached indefinitely unless explicitly re-requested\n * When 0, prompts and metadata are fetched every time (not recommended)\n * Setting this to be an hour is a good rate that optimizes for performance and keeping up to date\n */\n cacheDuration?: number;\n }) {\n this.prompts = prompts;\n this.transcendUrl = transcendUrl;\n this.transcendApiKey = transcendApiKey;\n this.variables = defaultVariables;\n this.defaultVariables = defaultVariables;\n this.graphQLClient = buildTranscendGraphQLClient(\n transcendUrl,\n typeof transcendApiKey === 'object'\n ? transcendApiKey.release()\n : transcendApiKey,\n );\n this.requireApproval = requireApproval;\n this.cacheDuration = cacheDuration;\n this.handlebarsOptions = handlebarsOptions;\n this.handlebars = createHandlebarsWithHelpers(handlebarsOptions);\n }\n\n /**\n * Fetch prompt metadata from Transcend and cache to the class definition\n *\n * @returns A function that can be used to call the prompt\n */\n async fetchPromptsAndMetadata(): Promise<TranscendPromptsAndVariables> {\n // Determine what to fetch\n const promptDefinitions = getValues(this.prompts) as TranscendPrompt<\n t.Any,\n t.Any\n >[];\n const promptIds = promptDefinitions\n .map(({ id }) => id)\n .filter((x): x is string => !!x);\n const promptTitles = promptDefinitions\n .map(({ title }) => title)\n .filter((x): x is string => !!x);\n const agentNames = uniq(\n promptDefinitions.map(({ agentNames }) => agentNames || []).flat(),\n );\n\n // Fetch prompts and data\n const [response, largeLanguageModels, agents] = await Promise.all([\n fetchPromptsWithVariables(this.graphQLClient, {\n promptIds,\n promptTitles,\n }),\n fetchAllLargeLanguageModels(this.graphQLClient),\n fetchAllAgents(this.graphQLClient, { names: agentNames }),\n ]);\n this.agentsByName = keyBy(agents, 'name');\n this.agentsByAgentId = keyBy(agents, 'agentId');\n this.largeLanguageModels = largeLanguageModels.filter(\n (model) => model.isTranscendHosted === false,\n );\n\n // Lookup prompts by id/title\n const promptByTitle = keyBy(response.prompts, 'title');\n const promptById = keyBy(response.prompts, 'id');\n\n // Update variables\n this.variables = {\n ...response.calculatedVariables.reduce(\n (acc, v) =>\n Object.assign(acc, {\n [v.name]: v.data ? JSON.parse(v.data) : v.data,\n }),\n {},\n ),\n ...this.defaultVariables,\n };\n\n // Update partials\n this.handlebars = createHandlebarsWithHelpers({\n ...this.handlebarsOptions,\n templates: [\n ...(this.handlebarsOptions.templates || []),\n ...response.promptPartials.map((partial) => ({\n name: partial.slug,\n content: partial.content,\n })),\n ],\n });\n\n // Create mapping from prompt to content\n this.promptContentMap = apply(this.prompts, ({ id, title }) => {\n const result = id\n ? promptById[id]\n : title\n ? promptByTitle[title]\n : undefined;\n if (!result) {\n throw new Error(\n `Failed to find prompt with title: \"${title}\" and id: \"${id}\"`,\n );\n }\n return result;\n });\n\n // For cache\n this.lastUpdatedAt = new Date();\n\n return response;\n }\n\n /**\n * Get an agent definition by name\n *\n * @param name - Name of the agent to grab\n * @returns Large language model configuration\n */\n async getAgentByName(name: string): Promise<Agent | undefined> {\n const agent = this.agentsByName[name];\n if (agent) {\n return agent;\n }\n const [remoteAgent] = await fetchAllAgents(this.graphQLClient, {\n names: [name],\n });\n if (!remoteAgent) {\n return undefined;\n }\n this.agentsByName[remoteAgent.name] = remoteAgent;\n this.agentsByAgentId[remoteAgent.agentId] = remoteAgent;\n return remoteAgent;\n }\n\n /**\n * Get a prompt thread by ts\n *\n * @param ts - the slack message timestamp to look up thread for\n * @returns Large language model configuration\n */\n async getPromptThreadBySlackTs(\n ts: string,\n ): Promise<PromptThread | undefined> {\n const [thread] = await fetchAllPromptThreads(this.graphQLClient, {\n slackMessageTs: [ts],\n });\n return thread;\n }\n\n /**\n * Get a list of agent definitions by name.\n * Pulls from cache and may return less agents\n * than requested if some are not found\n *\n * @param names - Names of agents to fetch\n * @returns The agents that were found matching the names\n */\n async getAgentsByName(names: string[]): Promise<Agent[]> {\n if (names.length < 1) {\n throw new Error('Expected at least one name to be provided');\n }\n const { hasCache = [], missingCache = [] } = groupBy(names, (name) =>\n this.agentsByName[name] ? 'hasCache' : 'missingCache',\n );\n const cachedAgents = hasCache.map((name) => this.agentsByName[name]);\n if (missingCache.length === 0) {\n return cachedAgents;\n }\n const chunkedNames = chunk(missingCache, 50);\n const remoteAgents: Agent[] = [];\n await mapSeries(chunkedNames, async (chunkedName) => {\n const pageOfAgents = await fetchAllAgents(this.graphQLClient, {\n names: chunkedName,\n });\n pageOfAgents.forEach((agent) => {\n this.agentsByName[agent.name] = agent;\n this.agentsByAgentId[agent.agentId] = agent;\n });\n remoteAgents.push(...pageOfAgents);\n });\n return [...cachedAgents, ...remoteAgents];\n }\n\n /**\n * Fetch metadata on agent files\n *\n * @param filterBy - Filter by parameters\n * @returns The files found matching the filter\n */\n getAgentFiles(filterBy: AgentFileFilterBy): Promise<AgentFile[]> {\n return fetchAllAgentFiles(this.graphQLClient, filterBy);\n }\n\n /**\n * Look up the large language model to report on\n *\n * @param largeLanguageModel - Input\n * @returns Large language model configuration\n */\n getLargeLanguageModel(\n largeLanguageModel: ReportPromptRunOptions['largeLanguageModel'],\n ): LargeLanguageModel {\n const matching = this.largeLanguageModels.find((model) =>\n typeof largeLanguageModel === 'string'\n ? model.id === largeLanguageModel\n : model.name === largeLanguageModel.name &&\n model.client === largeLanguageModel.client,\n );\n if (!matching) {\n throw new Error(\n `Failed to find model matching: ${\n typeof largeLanguageModel === 'string'\n ? largeLanguageModel\n : JSON.stringify(largeLanguageModel)\n }`,\n );\n }\n return matching;\n }\n\n /**\n * Get a prompt definition by name\n *\n * @param promptName - Prompt to compile\n * @returns Parsed content\n */\n async getPromptDefinition<TPromptName extends TPromptNames>(\n promptName: TPromptName,\n ): Promise<TranscendPromptTemplated> {\n // Determine if prompts need to be fetched\n if (\n // never been fetched\n !this.lastUpdatedAt ||\n // fetch every run\n this.cacheDuration === 0 ||\n // If cache duration met\n (this.cacheDuration &&\n Date.now() - this.lastUpdatedAt.getTime() > this.cacheDuration)\n ) {\n await this.fetchPromptsAndMetadata();\n }\n\n // Lookup prompt\n const { promptContentMap } = this;\n if (!promptContentMap) {\n throw new Error('Expected this.promptContentMap to be defined');\n }\n const promptTemplate = promptContentMap[promptName];\n if (!promptTemplate) {\n throw new Error(\n `Expected this.promptContentMap[${promptName}] to be defined`,\n );\n }\n return promptTemplate;\n }\n\n /**\n * Validate the shape of the response from AI\n *\n * @param promptName - Prompt to compile\n * @param params - Runtime parameters\n * @returns Parsed content\n */\n async compilePrompt<TPromptName extends TPromptNames>(\n promptName: TPromptName,\n params: t.TypeOf<TPrompts[TPromptName]['paramCodec']>,\n ): Promise<string> {\n // Grab the prompt\n const promptTemplate = await this.getPromptDefinition(promptName);\n const promptInput = this.prompts[promptName];\n if (!promptInput) {\n throw new Error(`Expected this.prompts[${promptName}] to be defined`);\n }\n\n // Ensure prompt is approved\n if (\n this.requireApproval &&\n promptTemplate.status !== PromptStatus.Approved\n ) {\n throw new Error(\n `Assessment \"${promptTemplate.title}\" cannot be used because its in status: \"${promptTemplate.status}\"`,\n );\n }\n\n // If prompt is rejected, throw error\n if (promptTemplate.status === PromptStatus.Rejected) {\n throw new Error(\n `Assessment \"${promptTemplate.title}\" cannot be used because it's in status: \"${promptTemplate.status}\"`,\n );\n }\n\n // Validate params\n decodeCodec(promptInput.paramCodec, params);\n\n // Compile prompt and template\n return this.handlebars.compile(promptTemplate.content)({\n // template in currentDate by default\n currentDate: new Date().toISOString(),\n ...this.variables,\n ...params,\n });\n }\n\n /**\n * Validate the shape of the response from AI\n *\n * @param promptName - Prompt to parse\n * @param response - AI response as string\n * @returns Parsed content\n */\n parseAiResponse<TPromptName extends TPromptNames>(\n promptName: TPromptName,\n response: string,\n ): t.TypeOf<TPrompts[TPromptName]['outputCodec']> {\n // Look up prompt info\n const promptInput = this.prompts[promptName];\n if (!promptInput) {\n throw new Error(`Expected this.prompts[${promptName}] to be defined`);\n }\n\n // Extract from tag if needed\n const extracted = promptInput.extractFromTag\n ? (createRegexForTag(promptInput.extractFromTag).exec(response) ||\n [])[1] || response\n : response;\n\n // Parse via codec\n return decodeCodec(\n promptInput.outputCodec,\n jsonParseSafe(extracted),\n false,\n );\n }\n\n /**\n * Parse the AI response and report back to Transcend\n *\n * @param promptName - Prompt to parse\n * @param options - Options for reporting\n * @returns Parsed content\n */\n async reportAndParsePromptRun<TPromptName extends TPromptNames>(\n promptName: TPromptName,\n { largeLanguageModel, ...options }: ReportPromptRunOptions,\n ): Promise<\n PromptRunResult & {\n /** Resulting prompt run */\n result: t.TypeOf<TPrompts[TPromptName]['outputCodec']>;\n }\n > {\n // Determine if prompts need to be fetched\n if (\n // never been fetched\n !this.lastUpdatedAt ||\n // fetch every run\n this.cacheDuration === 0 ||\n // If cache duration met\n (this.cacheDuration &&\n Date.now() - this.lastUpdatedAt.getTime() > this.cacheDuration)\n ) {\n await this.fetchPromptsAndMetadata();\n }\n\n const name =\n options.name ||\n `@transcend-io/cli-prompt-run-${new Date().toISOString()}`;\n\n if (!this.promptContentMap) {\n throw new Error('Expected this.promptContentMap to be defined');\n }\n // Look up prompt info\n const promptInput = this.promptContentMap[promptName];\n if (!promptInput) {\n throw new Error(`Expected this.prompts[${promptName}] to be defined`);\n }\n\n // Ensure the first message in `promptRunMessages` is of type=system\n if (options.promptRunMessages.length === 0) {\n throw new Error('promptRunMessages is expected to have length > 0');\n }\n if (options.promptRunMessages[0].role !== ChatCompletionRole.System) {\n throw new Error(\n `promptRunMessages[0].role is expected to be = ${ChatCompletionRole.System}`,\n );\n }\n if (\n options.promptRunMessages[options.promptRunMessages.length - 1].role !==\n ChatCompletionRole.Assistant\n ) {\n throw new Error(\n `promptRunMessages[${\n options.promptRunMessages.length - 1\n }].role is expected to be = ${ChatCompletionRole.Assistant}`,\n );\n }\n const response =\n options.promptRunMessages[options.promptRunMessages.length - 1].content;\n\n let parsed: t.TypeOf<TPrompts[TPromptName]['outputCodec']>;\n try {\n // Parse the response\n parsed = this.parseAiResponse(promptName, response);\n } catch (err) {\n await reportPromptRun(this.graphQLClient, {\n productArea: PromptRunProductArea.PromptManager,\n ...options,\n name,\n error: err.message,\n status: QueueStatus.Error,\n ...(typeof largeLanguageModel === 'string'\n ? { largeLanguageModelId: largeLanguageModel }\n : {\n largeLanguageModelName: largeLanguageModel.name,\n largeLanguageModelClient: largeLanguageModel.client,\n }),\n promptId: promptInput.id,\n promptRunMessages: options.promptRunMessages.map((message, ind) => ({\n ...message,\n ...(ind === 0 ? { template: promptInput.content } : {}),\n })),\n });\n throw err;\n }\n\n // report successful run\n const promptRunId = await reportPromptRun(this.graphQLClient, {\n productArea: PromptRunProductArea.PromptManager,\n ...options,\n name,\n status: QueueStatus.Resolved,\n ...(typeof largeLanguageModel === 'string'\n ? { largeLanguageModelId: largeLanguageModel }\n : {\n largeLanguageModelName: largeLanguageModel.name,\n largeLanguageModelClient: largeLanguageModel.client,\n }),\n promptId: promptInput.id,\n promptRunMessages: options.promptRunMessages.map((message, ind) => ({\n ...message,\n ...(ind === 0 ? { template: promptInput.content } : {}),\n })),\n });\n\n return {\n result: parsed,\n promptRunId,\n promptRunUrl: `https://app.transcend.io/prompts/runs/${promptRunId}`,\n };\n }\n\n /**\n * Report an error for a particular prompt\n *\n * @param promptName - Prompt to parse\n * @param options - Options for reporting\n * @returns Parsed content\n */\n async reportPromptRunError<TPromptName extends TPromptNames>(\n promptName: TPromptName,\n {\n largeLanguageModel,\n ...options\n }: Requirize<ReportPromptRunOptions, 'error'>,\n ): Promise<PromptRunResult> {\n // Determine if prompts need to be fetched\n if (\n // never been fetched\n !this.lastUpdatedAt ||\n // fetch every run\n this.cacheDuration === 0 ||\n // If cache duration met\n (this.cacheDuration &&\n Date.now() - this.lastUpdatedAt.getTime() > this.cacheDuration)\n ) {\n await this.fetchPromptsAndMetadata();\n }\n\n const name =\n options.name ||\n `@transcend-io/cli-prompt-run-${new Date().toISOString()}`;\n\n if (!this.promptContentMap) {\n throw new Error('Expected this.promptContentMap to be defined');\n }\n // Look up prompt info\n const promptInput = this.promptContentMap[promptName];\n if (!promptInput) {\n throw new Error(`Expected this.prompts[${promptName}] to be defined`);\n }\n\n // Ensure the first message in `promptRunMessages` is of type=system\n if (options.promptRunMessages.length === 0) {\n throw new Error('promptRunMessages is expected to have length > 0');\n }\n if (options.promptRunMessages[0].role !== ChatCompletionRole.System) {\n throw new Error(\n `promptRunMessages[0].role is expected to be = ${ChatCompletionRole.System}`,\n );\n }\n\n const promptRunId = await reportPromptRun(this.graphQLClient, {\n productArea: PromptRunProductArea.PromptManager,\n ...options,\n name,\n status: QueueStatus.Error,\n ...(typeof largeLanguageModel === 'string'\n ? { largeLanguageModelId: largeLanguageModel }\n : {\n largeLanguageModelName: largeLanguageModel.name,\n largeLanguageModelClient: largeLanguageModel.client,\n }),\n promptId: promptInput.id,\n promptRunMessages: options.promptRunMessages.map((message, ind) => ({\n ...message,\n ...(ind === 0 ? { template: promptInput.content } : {}),\n })),\n });\n\n return {\n promptRunId,\n promptRunUrl: `https://app.transcend.io/prompts/runs/${promptRunId}`,\n };\n }\n}\n/* eslint-enable max-lines */\n","import { GraphQLClient } from 'graphql-request';\nimport { LargeLanguageModelClient } from '@transcend-io/privacy-types';\nimport { LARGE_LANGUAGE_MODELS } from './gqls';\nimport { makeGraphQLRequest } from './makeGraphQLRequest';\n\nexport interface LargeLanguageModel {\n /** ID of prompts */\n id: string;\n /** The name of the large language model. */\n name: string;\n /** The content of the prompt template. */\n client: LargeLanguageModelClient;\n /** Whether hosted by Transcend or not */\n isTranscendHosted: boolean;\n}\n\nconst PAGE_SIZE = 20;\n\n/**\n * Fetch all LargeLanguageModels in the organization\n *\n * @param client - GraphQL client\n * @returns All LargeLanguageModels in the organization\n */\nexport async function fetchAllLargeLanguageModels(\n client: GraphQLClient,\n): Promise<LargeLanguageModel[]> {\n const largeLanguageModels: LargeLanguageModel[] = [];\n let offset = 0;\n\n // Whether to continue looping\n let shouldContinue = false;\n do {\n const {\n largeLanguageModels: { nodes },\n } = await makeGraphQLRequest<{\n /** LargeLanguageModels */\n largeLanguageModels: {\n /** List */\n nodes: LargeLanguageModel[];\n };\n }>(client, LARGE_LANGUAGE_MODELS, {\n first: PAGE_SIZE,\n offset,\n });\n largeLanguageModels.push(...nodes);\n offset += PAGE_SIZE;\n shouldContinue = nodes.length === PAGE_SIZE;\n } while (shouldContinue);\n\n return largeLanguageModels.sort((a, b) => a.name.localeCompare(b.name));\n}\n","import { difference } from 'lodash-es';\nimport fastGlob from 'fast-glob';\nimport { execSync } from 'child_process';\n\n/**\n * Function thats gets the git files that have changed\n * and returns the code\n *\n * @param options - Options\n * @returns Changes files and diffs\n */\nexport function getGitFilesThatChanged({\n baseBranch,\n rootDirectory,\n githubRepo,\n excludedGlob = [],\n fileBlockList = [],\n}: {\n /** Base branch */\n baseBranch: string;\n /** Github repo name */\n githubRepo: string;\n /** Root directory */\n rootDirectory: string;\n /** A glob that excludes files */\n excludedGlob?: string[];\n /** Block list of files to not process */\n fileBlockList?: string[];\n}): {\n /** The list of files that changed */\n changedFiles: string[];\n /** Github repo name */\n repoName: string;\n /** Current commit */\n commit: string;\n /** File diffs */\n fileDiffs: { [k in string]: string };\n} {\n // Pull base branch\n execSync(`git fetch origin ${baseBranch}`);\n\n // Latest commit on base branch. If we are on the base branch, we take the prior commit\n const latestBasedCommit = execSync(\n `git ls-remote ${githubRepo} \"refs/heads/${baseBranch}\" | cut -f 1`,\n { encoding: 'utf-8' },\n ).split('\\n')[0];\n\n // This commit\n const latestThisCommit = execSync('git rev-parse HEAD', {\n encoding: 'utf-8',\n }).split('\\n')[0];\n\n // Ensure commits are present\n if (!latestBasedCommit || !latestThisCommit) {\n throw new Error('FAILED TO FIND COMMIT RANGE');\n }\n\n // Get the diff between the given branch and base branch\n const diff = execSync(\n `git fetch && git diff --name-only \"${\n baseBranch || latestBasedCommit\n }...${latestThisCommit}\" -- ${rootDirectory}`,\n { encoding: 'utf-8' },\n );\n\n // Filter out block list\n const changedFiles = difference(\n diff.split('\\n').filter((f) => f),\n fileBlockList,\n );\n\n // Filter out globs\n const filteredChanges =\n excludedGlob.length > 0\n ? fastGlob.sync(changedFiles, { ignore: excludedGlob })\n : changedFiles;\n\n // Get the contents of only the changed files\n const fileDiffs: { [k in string]: string } = {};\n filteredChanges.forEach((file) => {\n const contents = execSync(`git show ${latestThisCommit}:${file}`, {\n encoding: 'utf-8',\n });\n fileDiffs[file] = contents;\n });\n\n // Pull the github repo name\n const repoName = githubRepo.split('/').pop()!.split('.')[0];\n\n return {\n changedFiles,\n fileDiffs,\n repoName,\n commit: latestThisCommit,\n };\n}\n"]}
|
package/dist/index.d.cts
CHANGED
|
@@ -143850,7 +143850,7 @@ declare function removeUnverifiedRequestIdentifiers({ requestActions, identifier
|
|
|
143850
143850
|
}): Promise<number>;
|
|
143851
143851
|
|
|
143852
143852
|
var description = "A command line interface for programmatic operations across Transcend.";
|
|
143853
|
-
var version = "8.0.
|
|
143853
|
+
var version = "8.0.5";
|
|
143854
143854
|
|
|
143855
143855
|
/**
|
|
143856
143856
|
* The name of the main binary for the CLI
|
|
@@ -144321,6 +144321,46 @@ declare function retrySamePromise<T>(op: () => Promise<T>, policy: RetryPolicy,
|
|
|
144321
144321
|
*/
|
|
144322
144322
|
declare function limitRecords<T>(obj: Record<string, T>, max: number): Record<string, T | true>;
|
|
144323
144323
|
|
|
144324
|
+
/**
|
|
144325
|
+
* Tracks counts over time and calculates rates within a specified time window.
|
|
144326
|
+
*
|
|
144327
|
+
* This class maintains a rolling window of count "buckets" (timestamped values)
|
|
144328
|
+
* and provides methods to add new counts and compute the rate of events over a
|
|
144329
|
+
* configurable time window.
|
|
144330
|
+
*
|
|
144331
|
+
* Example usage:
|
|
144332
|
+
* ```typescript
|
|
144333
|
+
* const counter = new RateCounter();
|
|
144334
|
+
* counter.add(5); // Add 5 events
|
|
144335
|
+
* const rate = counter.rate(60_000); // Get rate over last 60 seconds
|
|
144336
|
+
* ```
|
|
144337
|
+
*/
|
|
144338
|
+
declare class RateCounter {
|
|
144339
|
+
private buckets;
|
|
144340
|
+
/**
|
|
144341
|
+
* Adds a new count to the counter.
|
|
144342
|
+
*
|
|
144343
|
+
* @param n - The number of events to add to the counter.
|
|
144344
|
+
*/
|
|
144345
|
+
add(n: number): void;
|
|
144346
|
+
/**
|
|
144347
|
+
* rate over the last `windowMs` milliseconds
|
|
144348
|
+
*
|
|
144349
|
+
* @param windowMs - The time window in milliseconds to calculate the rate over.
|
|
144350
|
+
* @returns The average rate of events per second over the specified time window.
|
|
144351
|
+
*/
|
|
144352
|
+
rate(windowMs: number): number;
|
|
144353
|
+
}
|
|
144354
|
+
|
|
144355
|
+
/**
|
|
144356
|
+
* Safely reads the contents of a file as a UTF-8 string.
|
|
144357
|
+
* Returns an empty string if the path is not provided or if reading fails.
|
|
144358
|
+
*
|
|
144359
|
+
* @param p - The path to the file to read.
|
|
144360
|
+
* @returns The file contents as a string, or an empty string on error.
|
|
144361
|
+
*/
|
|
144362
|
+
declare function readSafe(p?: string): string;
|
|
144363
|
+
|
|
144324
144364
|
declare const CronIdentifier: t.TypeC<{
|
|
144325
144365
|
/** The identifier value */
|
|
144326
144366
|
identifier: t.StringC;
|
|
@@ -145087,4 +145127,4 @@ type EnrichPrivacyRequest = t.TypeOf<typeof EnrichPrivacyRequest>;
|
|
|
145087
145127
|
*/
|
|
145088
145128
|
declare function enrichPrivacyRequest(sombra: Got, { id: rawId, ...rest }: EnrichPrivacyRequest, enricherId: string, index?: number): Promise<boolean>;
|
|
145089
145129
|
|
|
145090
|
-
export { ACTIONS, ADD_MESSAGES_TO_PROMPT_RUN, ADD_SILO_DISCOVERY_RESULTS, ADMIN_DASH, ADMIN_DASH_DATAPOINTS, ADMIN_DASH_INTEGRATIONS, AGENTS, AGENT_FILES, AGENT_FUNCTIONS, type AIIntegrationC, API_KEYS, APPROVE_PRIVACY_REQUEST, ASSESSMENTS, ASSESSMENT_SECTION_FIELDS, ASSESSMENT_TEMPLATES, ASSUME_ROLE, ATTRIBUTES, ATTRIBUTE_KEYS_REQUESTS, ATTRIBUTE_VALUES, type Action, ActionInput, type ActionItem, ActionItemCollectionInput, ActionItemInput, type ActionItemRaw, type AddMessagesToPromptRunInput, type Agent, type AgentFile, type AgentFileFilterBy, AgentFileInput, type AgentFunction, AgentFunctionInput, AgentInput, type ApiKey, type ApiKeyGenerateError, ApiKeyInput, type Assessment, AssessmentAction, type AssessmentAnswer, type AssessmentAnswerOption, AssessmentAnswerOptionInput, type AssessmentComment, AssessmentDisplayLogicInput, type AssessmentGroup, AssessmentInput, AssessmentNestedRule, AssessmentNestedRuleInput, type AssessmentPreviousSubmission, type AssessmentQuestion, type AssessmentResource, AssessmentResourceInput, AssessmentRetentionScheduleInput, AssessmentRiskLogic, AssessmentRule, AssessmentRuleInput, type AssessmentSection, AssessmentSectionInput, AssessmentSectionQuestionInput, type AssessmentTemplate, AssessmentTemplateInput, AttestedExtraIdentifiers, type Attribute, AttributeInput, type AttributeKey, type AttributeNameMap, AttributePreview, type AttributeValue, AttributeValueInput, BLANK, BULK_APPLY, BULK_REQUEST_FILES, BUSINESS_ENTITIES, type BusinessEntity, BusinessEntityInput, CANCEL_PRIVACY_REQUEST, CAN_APPLY_IN_BULK, CATALOGS, CHANGE_REQUEST_DATA_SILO_STATUS, CODE_PACKAGES, CONSENT_MANAGER_ANALYTICS_DATA, CONSENT_PARTITIONS, COOKIES, CREATE_ACTION_ITEMS, CREATE_ACTION_ITEM_COLLECTION, CREATE_AGENT, CREATE_AGENT_FILE, CREATE_AGENT_FUNCTION, CREATE_API_KEY, CREATE_ATTRIBUTE, CREATE_ATTRIBUTE_VALUES, CREATE_BUSINESS_ENTITY, CREATE_CODE_PACKAGE, CREATE_CONSENT_EXPERIENCE, CREATE_CONSENT_MANAGER, CREATE_CONSENT_PARTITION, CREATE_DATA_FLOWS, CREATE_DATA_SILOS, CREATE_DATA_SUBJECT, CREATE_DATA_SUB_CATEGORY, CREATE_ENRICHER, CREATE_IDENTIFIER, CREATE_PROCESSING_ACTIVITY, CREATE_PROCESSING_PURPOSE_SUB_CATEGORY, CREATE_PROMPT, CREATE_PROMPT_GROUP, CREATE_PROMPT_PARTIAL, CREATE_REPOSITORY, CREATE_SOFTWARE_DEVELOPMENT_KIT, CREATE_TEAM, CREATE_TEMPLATE, CREATE_VENDOR, CachedFileState, CachedRequestState, type Catalog, CodePackageInput, CodePackageSdk, ColumnName, type ColumnNameMap, type ConsentExperience, ConsentManageExperienceInput, type ConsentManager, ConsentManagerInput, type ConsentManagerMetric, ConsentManagerMetricBin, ConsentManagerServiceMetadata, type ConsentManagerTheme, ConsentPreferenceResponse, ConsentPreferenceTopic, ConsentPreferenceTopicOptionValue, ConsentPurpose, type Cookie, CookieCsvInput, CookieInput, type CreatedApiKey, CronIdentifier, CronIdentifierPush, type CronIdentifierWithAction, type CsvFormattedIdentifier, DATAPOINT_EXPORT, DATA_FLOWS, DATA_POINTS, DATA_POINT_COUNT, DATA_SILOS, DATA_SILOS_ENRICHED, DATA_SILO_EXPORT, DATA_SUBJECTS, DATA_SUB_CATEGORIES, DEFAULT_TRANSCEND_API, DEFAULT_TRANSCEND_CONSENT_API, DEFAULT_TRANSCEND_PULL_RESOURCES, DELETE_API_KEY, DELETE_ATTRIBUTE_VALUE, DEPLOYED_PRIVACY_CENTER_URL, DEPLOY_CONSENT_MANAGER, DETERMINE_LOGIN_METHOD, DataCategoryGuessInput, DataCategoryInput, DataCategoryPreviewInput, DataCategoryRecommendationInput, type DataFlow, DataFlowCsvInput, DataFlowInput, type DataPointCsvPreview, type DataSilo, type DataSiloAttributeValue, type DataSiloCsvPreview, type DataSiloEnriched, DataSiloInput, type DataSubCategory, type DataSubject, DataSubjectInput, type DatapointFilterOptions, DatapointInput, ENABLED_PLUGINS, ENRICHERS, ENTRY_COUNT, EXPERIENCES, type EnabledRouteC, type EnabledRoutesC, EnrichPrivacyRequest, type Enricher, EnricherInput, type ExportedPrivacyRequest, type ExternalUser, FETCH_CONSENT_MANAGER, FETCH_CONSENT_MANAGER_ID, FETCH_CONSENT_MANAGER_THEME, FETCH_PRIVACY_CENTER_ID, FieldInput, GLOBAL_ACTION_ITEMS, GLOBAL_ACTION_ITEM_COLLECTIONS, type GetPromptParamType, type GetPromptResponseType, IDENTIFIERS, IDENTIFIER_BLOCK_LIST, IMPORT_ONE_TRUST_ASSESSMENT_FORMS, INITIALIZER, IP_ADDRESS_REGEX, IS_REQUIRED, type Identifier, IdentifierInput, type IdentifierNameMap, ImportOnetrustAssessmentsInput, type IndexedCatalogs, type Initializer, IntlMessage, IntlMessageInput, LARGE_LANGUAGE_MODELS, LOGIN, MESSAGES, type Message, NEW_IDENTIFIER_TYPES, NONE, NOTIFY_ADDITIONAL_TIME, ORGANIZATION, OneTrustFileFormat, OneTrustPullResource, OneTrustPullSource, OpenAIEnabledRoute, OpenAIEnabledRoutes, OpenAIIntegration, OpenAIRouteName, type OrganizationPreview, POLICIES, PREFERENCE_TOPICS, PRIVACY_CENTER, PROCESSING_ACTIVITIES, PROCESSING_PURPOSE_SUB_CATEGORIES, PROMPTS, PROMPTS_WITH_VARIABLES, PROMPT_GROUPS, PROMPT_PARTIALS, PROMPT_THREADS, PURPOSES, ParsedAttributeInput, PartitionInput, PathfinderPolicy, PathfinderPolicyName, PathfinderPolicyNameC, PathfinderPromptRunMetadata, type Plugin, type PluginResponse, type Policy, PolicyInput, type PreferenceTopic, type PrivacyCenter, PrivacyCenterInput, PrivacyRequest, PrivacyRequestInput, PrivacyRequestResponse, type PrivacyRequestWithIdentifiers, type ProcessingActivity, ProcessingActivityInput, ProcessingPurposeInput, ProcessingPurposePreviewInput, type ProcessingPurposeSubCategory, type Prompt, PromptAVendorEmailSettings, type PromptCalculatedVariable, type PromptGroup, PromptGroupInput, PromptInput, type PromptPartial, PromptPartialInput, type PromptRunResult, type PromptRuntimeVariable, type PromptThread, type Purpose, PurposeMap, type PurposeWithPreferences, REDUCED_REQUESTS_FOR_DATA_SILO_COUNT, REMOVE_REQUEST_IDENTIFIERS, REPORT_PROMPT_RUN, REPOSITORIES, REQUESTS, REQUEST_DATA_SILOS, REQUEST_ENRICHERS, REQUEST_FILES, REQUEST_IDENTIFIERS, RETRYABLE_BATCH_STATUSES, RETRY_REQUEST_DATA_SILO, RETRY_REQUEST_ENRICHER, RegionInput, type ReportPromptRunInput, type ReportPromptRunOptions, RepositoryInput, type RequestDataSilo, type RequestEnricher, type RequestFile, type RequestFileCursor, RequestFileMetadata, RequestFileMetadataResponse, type RequestFileResponse, RequestIdentifier, type RequestIdentifierMetadata, RequestIdentifiersResponse, type RetentionSchedule, type RetryPolicy, RiskAssignmentInput, type RiskCategory, type RiskFramework, type RiskLevel, RiskLogicInput, type RiskMatrix, type RiskMatrixColumn, type RiskMatrixRow, SCOPES_BY_TITLE, SCOPE_TITLES, SET_RESOURCE_ATTRIBUTES, SKIP_REQUEST_ENRICHER, SOFTWARE_DEVELOPMENT_KITS, SOMBRA_VERSION, SUB_DATA_POINTS, SUB_DATA_POINTS_COUNT, SUB_DATA_POINTS_WITH_GUESSES, SYNC_ATTRIBUTE_TYPES, SoftwareDevelopmentKitInput, StoredApiKey, type SubDataPoint, type SubDataPointCsvPreview, SuccessfulRequest, TEAMS, TEMPLATES, TOGGLE_CONSENT_PRECEDENCE, TOGGLE_DATA_SUBJECT, TOGGLE_TELEMETRY_PARTITION_STRATEGY, TOGGLE_UNKNOWN_COOKIE_POLICY, TOGGLE_UNKNOWN_REQUEST_POLICY, TR_PULL_RESOURCE_SCOPE_MAP, TR_PUSH_RESOURCE_SCOPE_MAP, TR_YML_RESOURCE_TO_FIELD_NAME, type Team, TeamInput, type Template, TemplateInput, TranscendInput, type TranscendPartition, type TranscendPrompt, TranscendPromptManager, type TranscendPromptPartialTemplated, type TranscendPromptTemplated, type TranscendPromptsAndVariables, type TranscendPullConfigurationInput, TranscendPullResource, UPDATE_ACTION, UPDATE_ACTION_ITEMS, UPDATE_ACTION_ITEM_COLLECTION, UPDATE_AGENTS, UPDATE_AGENT_FILES, UPDATE_AGENT_FUNCTIONS, UPDATE_ATTRIBUTE, UPDATE_ATTRIBUTE_VALUES, UPDATE_BUSINESS_ENTITIES, UPDATE_CODE_PACKAGES, UPDATE_CONSENT_EXPERIENCE, UPDATE_CONSENT_MANAGER_DOMAINS, UPDATE_CONSENT_MANAGER_PARTITION, UPDATE_CONSENT_MANAGER_THEME, UPDATE_CONSENT_MANAGER_TO_LATEST, UPDATE_CONSENT_MANAGER_VERSION, UPDATE_DATA_FLOWS, UPDATE_DATA_SILOS, UPDATE_DATA_SUBJECT, UPDATE_DATA_SUB_CATEGORIES, UPDATE_ENRICHER, UPDATE_IDENTIFIER, UPDATE_INTL_MESSAGES, UPDATE_LOAD_OPTIONS, UPDATE_OR_CREATE_COOKIES, UPDATE_OR_CREATE_DATA_POINT, UPDATE_POLICIES, UPDATE_PRIVACY_CENTER, UPDATE_PRIVACY_REQUEST, UPDATE_PROCESSING_ACTIVITIES, UPDATE_PROCESSING_PURPOSE_SUB_CATEGORIES, UPDATE_PROMPTS, UPDATE_PROMPT_GROUPS, UPDATE_PROMPT_PARTIALS, UPDATE_REPOSITORIES, UPDATE_SOFTWARE_DEVELOPMENT_KITS, UPDATE_TEAM, UPDATE_VENDORS, USERS, USP_STRING_REGEX, type User, type UserPreview, type UserRole, VARIABLE_PARAMETERS_NAME, VARIABLE_PARAMETERS_REGEXP, VENDORS, type Vendor, VendorInput, WebhookHeader, type XdiSyncGroups, addMessagesToPromptRun, appendCsvSync, approvePrivacyRequests, assumeRole, buildAIIntegrationType, buildEnabledRouteType, buildTranscendGraphQLClient, buildTranscendGraphQLClientGeneric, buildXdiSyncEndpoint, bulkRestartRequests, bulkRetryEnrichers, cancelPrivacyRequests, consentManagersToBusinessEntities, convertToDataSubjectAllowlist, convertToDataSubjectBlockList, createActionItemCollection, createActionItems, createAgent, createAgentFile, createAgentFunction, createApiKey, createBusinessEntity, createCodePackage, createConsentToken, createDataCategory, createDataFlows, createProcessingPurpose, createPrompt, createRegexForTag, createRepository, createSoftwareDevelopmentKit, createSombraGotInstance, createTranscendConsentGotInstance, createVendor, defineTranscendPrompts, deleteApiKey, deployConsentManager, description, domainToHost, downloadPrivacyRequestFiles, enrichPrivacyRequest, ensureAllDataSubjectsExist, extractClientError, extractErrorMessage, fetchActiveSiloDiscoPlugin, fetchAllActionItems, fetchAllActions, fetchAllAgentFiles, fetchAllAgentFunctions, fetchAllAgents, fetchAllApiKeys, fetchAllAssessmentTemplates, fetchAllAssessments, fetchAllAttributeValues, fetchAllAttributes, fetchAllBusinessEntities, fetchAllCatalogs, fetchAllCookies, fetchAllDataCategories, fetchAllDataFlows, fetchAllDataPoints, fetchAllDataSilos, fetchAllDataSubjects, fetchAllEnrichers, fetchAllIdentifiers, fetchAllMessages, fetchAllPolicies, fetchAllPreferenceTopics, fetchAllPrivacyCenters, fetchAllProcessingActivities, fetchAllProcessingPurposes, fetchAllPromptGroups, fetchAllPromptPartials, fetchAllPromptThreads, fetchAllPrompts, fetchAllPurposes, fetchAllPurposesAndPreferences, fetchAllRequestAttributeKeys, fetchAllRequestEnrichers, fetchAllRequestIdentifierMetadata, fetchAllRequestIdentifiers, fetchAllRequests, fetchAllSubDataPoints, fetchAllTeams, fetchAllTemplates, fetchAllUsers, fetchAllVendors, fetchAndIndexCatalogs, fetchApiKeys, fetchConsentManager, fetchConsentManagerAnalyticsData, fetchConsentManagerExperiences, fetchConsentManagerId, fetchConsentManagerTheme, fetchConsentPreferences, fetchEnrichedDataSilos, fetchIdentifiersAndCreateMissing, fetchPartitions, fetchPrivacyCenterId, fetchPrivacyCenterUrl, fetchPromptsWithVariables, fetchRequestDataSilo, fetchRequestDataSiloActiveCount, fetchRequestDataSilos, fetchRequestFilesForRequest, filterNullishValuesFromObject, filterRows, fuzzyMatchColumns, fuzzySearch, generateCrossAccountApiKeys, getErrorStatus, getFileMetadataForPrivacyRequests, getGitFilesThatChanged, getUniqueValuesForColumn, inquirerAutoComplete, inquirerConfirmBoolean, inquirerConfirmText, limitRecords, listDirectories, listFiles, loginUser, makeGraphQLRequest, mapColumnsToAttributes, mapColumnsToIdentifiers, mapCsvColumnsToApi, mapCsvRowsToRequestInputs, mapEnumValues, mapRequestEnumValues, markCronIdentifierCompleted, markRequestDataSiloIdsCompleted, markSilentPrivacyRequests, mergeTranscendInputs, name, normalizeIdentifierValue, notifyPrivacyRequestsAdditionalTime, parseAssessmentDisplayLogic, parseAssessmentRiskLogic, parseAttributesFromString, parseFilePath, parseVariablesFromString, pullAllDatapoints, pullChunkedCustomSiloOutstandingIdentifiers, pullConsentManagerMetrics, pullCronPageOfIdentifiers, pullManualEnrichmentIdentifiersToCsv, pullPrivacyRequests, pullTranscendConfiguration, pullUnstructuredSubDataPointRecommendations, pushCronIdentifiersFromCsv, pushManualEnrichmentIdentifiersFromCsv, readCsv, readTranscendYaml, removeLinks, removeUnverifiedRequestIdentifiers, replaceVariablesInYaml, reportPromptRun, restartPrivacyRequest, retryRequestDataSilos, retryRequestEnricher, retrySamePromise, setResourceAttributes, skipPreflightJobs, skipRequestDataSilos, sleepPromise, splitCsvToList, splitInHalf, streamPrivacyRequestFiles, submitPrivacyRequest, syncAction, syncActionItemCollections, syncActionItems, syncAgentFiles, syncAgentFunctions, syncAgents, syncAttribute, syncBusinessEntities, syncCodePackages, syncConfigurationToTranscend, syncConsentManager, syncConsentManagerExperiences, syncCookies, syncDataCategories, syncDataFlows, syncDataSiloDependencies, syncDataSilos, syncDataSubject, syncEnricher, syncIdentifier, syncIntlMessages, syncPartitions, syncPolicies, syncPrivacyCenter, syncProcessingActivities, syncProcessingPurposes, syncPrompts, syncRepositories, syncSoftwareDevelopmentKits, syncTemplate, syncVendors, updateActionItem, updateActionItemCollection, updateAgentFiles, updateAgentFunctions, updateAgents, updateBusinessEntities, updateCodePackages, updateConsentManagerToLatest, updateConsentManagerVersionToLatest, updateDataCategories, updateDataFlows, updateIntlMessages, updateOrCreateCookies, updatePolicies, updateProcessingPurposes, updatePrompts, updateRepositories, updateSoftwareDevelopmentKits, updateVendors, uploadConsents, uploadCookiesFromCsv, uploadDataFlowsFromCsv, uploadPrivacyRequestsFromCsv, uploadSiloDiscoveryResults, validateTranscendAuth, version, writeCsv, writeCsvSync, writeLargeCsv, writeTranscendYaml };
|
|
145130
|
+
export { ACTIONS, ADD_MESSAGES_TO_PROMPT_RUN, ADD_SILO_DISCOVERY_RESULTS, ADMIN_DASH, ADMIN_DASH_DATAPOINTS, ADMIN_DASH_INTEGRATIONS, AGENTS, AGENT_FILES, AGENT_FUNCTIONS, type AIIntegrationC, API_KEYS, APPROVE_PRIVACY_REQUEST, ASSESSMENTS, ASSESSMENT_SECTION_FIELDS, ASSESSMENT_TEMPLATES, ASSUME_ROLE, ATTRIBUTES, ATTRIBUTE_KEYS_REQUESTS, ATTRIBUTE_VALUES, type Action, ActionInput, type ActionItem, ActionItemCollectionInput, ActionItemInput, type ActionItemRaw, type AddMessagesToPromptRunInput, type Agent, type AgentFile, type AgentFileFilterBy, AgentFileInput, type AgentFunction, AgentFunctionInput, AgentInput, type ApiKey, type ApiKeyGenerateError, ApiKeyInput, type Assessment, AssessmentAction, type AssessmentAnswer, type AssessmentAnswerOption, AssessmentAnswerOptionInput, type AssessmentComment, AssessmentDisplayLogicInput, type AssessmentGroup, AssessmentInput, AssessmentNestedRule, AssessmentNestedRuleInput, type AssessmentPreviousSubmission, type AssessmentQuestion, type AssessmentResource, AssessmentResourceInput, AssessmentRetentionScheduleInput, AssessmentRiskLogic, AssessmentRule, AssessmentRuleInput, type AssessmentSection, AssessmentSectionInput, AssessmentSectionQuestionInput, type AssessmentTemplate, AssessmentTemplateInput, AttestedExtraIdentifiers, type Attribute, AttributeInput, type AttributeKey, type AttributeNameMap, AttributePreview, type AttributeValue, AttributeValueInput, BLANK, BULK_APPLY, BULK_REQUEST_FILES, BUSINESS_ENTITIES, type BusinessEntity, BusinessEntityInput, CANCEL_PRIVACY_REQUEST, CAN_APPLY_IN_BULK, CATALOGS, CHANGE_REQUEST_DATA_SILO_STATUS, CODE_PACKAGES, CONSENT_MANAGER_ANALYTICS_DATA, CONSENT_PARTITIONS, COOKIES, CREATE_ACTION_ITEMS, CREATE_ACTION_ITEM_COLLECTION, CREATE_AGENT, CREATE_AGENT_FILE, CREATE_AGENT_FUNCTION, CREATE_API_KEY, CREATE_ATTRIBUTE, CREATE_ATTRIBUTE_VALUES, CREATE_BUSINESS_ENTITY, CREATE_CODE_PACKAGE, CREATE_CONSENT_EXPERIENCE, CREATE_CONSENT_MANAGER, CREATE_CONSENT_PARTITION, CREATE_DATA_FLOWS, CREATE_DATA_SILOS, CREATE_DATA_SUBJECT, CREATE_DATA_SUB_CATEGORY, CREATE_ENRICHER, CREATE_IDENTIFIER, CREATE_PROCESSING_ACTIVITY, CREATE_PROCESSING_PURPOSE_SUB_CATEGORY, CREATE_PROMPT, CREATE_PROMPT_GROUP, CREATE_PROMPT_PARTIAL, CREATE_REPOSITORY, CREATE_SOFTWARE_DEVELOPMENT_KIT, CREATE_TEAM, CREATE_TEMPLATE, CREATE_VENDOR, CachedFileState, CachedRequestState, type Catalog, CodePackageInput, CodePackageSdk, ColumnName, type ColumnNameMap, type ConsentExperience, ConsentManageExperienceInput, type ConsentManager, ConsentManagerInput, type ConsentManagerMetric, ConsentManagerMetricBin, ConsentManagerServiceMetadata, type ConsentManagerTheme, ConsentPreferenceResponse, ConsentPreferenceTopic, ConsentPreferenceTopicOptionValue, ConsentPurpose, type Cookie, CookieCsvInput, CookieInput, type CreatedApiKey, CronIdentifier, CronIdentifierPush, type CronIdentifierWithAction, type CsvFormattedIdentifier, DATAPOINT_EXPORT, DATA_FLOWS, DATA_POINTS, DATA_POINT_COUNT, DATA_SILOS, DATA_SILOS_ENRICHED, DATA_SILO_EXPORT, DATA_SUBJECTS, DATA_SUB_CATEGORIES, DEFAULT_TRANSCEND_API, DEFAULT_TRANSCEND_CONSENT_API, DEFAULT_TRANSCEND_PULL_RESOURCES, DELETE_API_KEY, DELETE_ATTRIBUTE_VALUE, DEPLOYED_PRIVACY_CENTER_URL, DEPLOY_CONSENT_MANAGER, DETERMINE_LOGIN_METHOD, DataCategoryGuessInput, DataCategoryInput, DataCategoryPreviewInput, DataCategoryRecommendationInput, type DataFlow, DataFlowCsvInput, DataFlowInput, type DataPointCsvPreview, type DataSilo, type DataSiloAttributeValue, type DataSiloCsvPreview, type DataSiloEnriched, DataSiloInput, type DataSubCategory, type DataSubject, DataSubjectInput, type DatapointFilterOptions, DatapointInput, ENABLED_PLUGINS, ENRICHERS, ENTRY_COUNT, EXPERIENCES, type EnabledRouteC, type EnabledRoutesC, EnrichPrivacyRequest, type Enricher, EnricherInput, type ExportedPrivacyRequest, type ExternalUser, FETCH_CONSENT_MANAGER, FETCH_CONSENT_MANAGER_ID, FETCH_CONSENT_MANAGER_THEME, FETCH_PRIVACY_CENTER_ID, FieldInput, GLOBAL_ACTION_ITEMS, GLOBAL_ACTION_ITEM_COLLECTIONS, type GetPromptParamType, type GetPromptResponseType, IDENTIFIERS, IDENTIFIER_BLOCK_LIST, IMPORT_ONE_TRUST_ASSESSMENT_FORMS, INITIALIZER, IP_ADDRESS_REGEX, IS_REQUIRED, type Identifier, IdentifierInput, type IdentifierNameMap, ImportOnetrustAssessmentsInput, type IndexedCatalogs, type Initializer, IntlMessage, IntlMessageInput, LARGE_LANGUAGE_MODELS, LOGIN, MESSAGES, type Message, NEW_IDENTIFIER_TYPES, NONE, NOTIFY_ADDITIONAL_TIME, ORGANIZATION, OneTrustFileFormat, OneTrustPullResource, OneTrustPullSource, OpenAIEnabledRoute, OpenAIEnabledRoutes, OpenAIIntegration, OpenAIRouteName, type OrganizationPreview, POLICIES, PREFERENCE_TOPICS, PRIVACY_CENTER, PROCESSING_ACTIVITIES, PROCESSING_PURPOSE_SUB_CATEGORIES, PROMPTS, PROMPTS_WITH_VARIABLES, PROMPT_GROUPS, PROMPT_PARTIALS, PROMPT_THREADS, PURPOSES, ParsedAttributeInput, PartitionInput, PathfinderPolicy, PathfinderPolicyName, PathfinderPolicyNameC, PathfinderPromptRunMetadata, type Plugin, type PluginResponse, type Policy, PolicyInput, type PreferenceTopic, type PrivacyCenter, PrivacyCenterInput, PrivacyRequest, PrivacyRequestInput, PrivacyRequestResponse, type PrivacyRequestWithIdentifiers, type ProcessingActivity, ProcessingActivityInput, ProcessingPurposeInput, ProcessingPurposePreviewInput, type ProcessingPurposeSubCategory, type Prompt, PromptAVendorEmailSettings, type PromptCalculatedVariable, type PromptGroup, PromptGroupInput, PromptInput, type PromptPartial, PromptPartialInput, type PromptRunResult, type PromptRuntimeVariable, type PromptThread, type Purpose, PurposeMap, type PurposeWithPreferences, REDUCED_REQUESTS_FOR_DATA_SILO_COUNT, REMOVE_REQUEST_IDENTIFIERS, REPORT_PROMPT_RUN, REPOSITORIES, REQUESTS, REQUEST_DATA_SILOS, REQUEST_ENRICHERS, REQUEST_FILES, REQUEST_IDENTIFIERS, RETRYABLE_BATCH_STATUSES, RETRY_REQUEST_DATA_SILO, RETRY_REQUEST_ENRICHER, RateCounter, RegionInput, type ReportPromptRunInput, type ReportPromptRunOptions, RepositoryInput, type RequestDataSilo, type RequestEnricher, type RequestFile, type RequestFileCursor, RequestFileMetadata, RequestFileMetadataResponse, type RequestFileResponse, RequestIdentifier, type RequestIdentifierMetadata, RequestIdentifiersResponse, type RetentionSchedule, type RetryPolicy, RiskAssignmentInput, type RiskCategory, type RiskFramework, type RiskLevel, RiskLogicInput, type RiskMatrix, type RiskMatrixColumn, type RiskMatrixRow, SCOPES_BY_TITLE, SCOPE_TITLES, SET_RESOURCE_ATTRIBUTES, SKIP_REQUEST_ENRICHER, SOFTWARE_DEVELOPMENT_KITS, SOMBRA_VERSION, SUB_DATA_POINTS, SUB_DATA_POINTS_COUNT, SUB_DATA_POINTS_WITH_GUESSES, SYNC_ATTRIBUTE_TYPES, SoftwareDevelopmentKitInput, StoredApiKey, type SubDataPoint, type SubDataPointCsvPreview, SuccessfulRequest, TEAMS, TEMPLATES, TOGGLE_CONSENT_PRECEDENCE, TOGGLE_DATA_SUBJECT, TOGGLE_TELEMETRY_PARTITION_STRATEGY, TOGGLE_UNKNOWN_COOKIE_POLICY, TOGGLE_UNKNOWN_REQUEST_POLICY, TR_PULL_RESOURCE_SCOPE_MAP, TR_PUSH_RESOURCE_SCOPE_MAP, TR_YML_RESOURCE_TO_FIELD_NAME, type Team, TeamInput, type Template, TemplateInput, TranscendInput, type TranscendPartition, type TranscendPrompt, TranscendPromptManager, type TranscendPromptPartialTemplated, type TranscendPromptTemplated, type TranscendPromptsAndVariables, type TranscendPullConfigurationInput, TranscendPullResource, UPDATE_ACTION, UPDATE_ACTION_ITEMS, UPDATE_ACTION_ITEM_COLLECTION, UPDATE_AGENTS, UPDATE_AGENT_FILES, UPDATE_AGENT_FUNCTIONS, UPDATE_ATTRIBUTE, UPDATE_ATTRIBUTE_VALUES, UPDATE_BUSINESS_ENTITIES, UPDATE_CODE_PACKAGES, UPDATE_CONSENT_EXPERIENCE, UPDATE_CONSENT_MANAGER_DOMAINS, UPDATE_CONSENT_MANAGER_PARTITION, UPDATE_CONSENT_MANAGER_THEME, UPDATE_CONSENT_MANAGER_TO_LATEST, UPDATE_CONSENT_MANAGER_VERSION, UPDATE_DATA_FLOWS, UPDATE_DATA_SILOS, UPDATE_DATA_SUBJECT, UPDATE_DATA_SUB_CATEGORIES, UPDATE_ENRICHER, UPDATE_IDENTIFIER, UPDATE_INTL_MESSAGES, UPDATE_LOAD_OPTIONS, UPDATE_OR_CREATE_COOKIES, UPDATE_OR_CREATE_DATA_POINT, UPDATE_POLICIES, UPDATE_PRIVACY_CENTER, UPDATE_PRIVACY_REQUEST, UPDATE_PROCESSING_ACTIVITIES, UPDATE_PROCESSING_PURPOSE_SUB_CATEGORIES, UPDATE_PROMPTS, UPDATE_PROMPT_GROUPS, UPDATE_PROMPT_PARTIALS, UPDATE_REPOSITORIES, UPDATE_SOFTWARE_DEVELOPMENT_KITS, UPDATE_TEAM, UPDATE_VENDORS, USERS, USP_STRING_REGEX, type User, type UserPreview, type UserRole, VARIABLE_PARAMETERS_NAME, VARIABLE_PARAMETERS_REGEXP, VENDORS, type Vendor, VendorInput, WebhookHeader, type XdiSyncGroups, addMessagesToPromptRun, appendCsvSync, approvePrivacyRequests, assumeRole, buildAIIntegrationType, buildEnabledRouteType, buildTranscendGraphQLClient, buildTranscendGraphQLClientGeneric, buildXdiSyncEndpoint, bulkRestartRequests, bulkRetryEnrichers, cancelPrivacyRequests, consentManagersToBusinessEntities, convertToDataSubjectAllowlist, convertToDataSubjectBlockList, createActionItemCollection, createActionItems, createAgent, createAgentFile, createAgentFunction, createApiKey, createBusinessEntity, createCodePackage, createConsentToken, createDataCategory, createDataFlows, createProcessingPurpose, createPrompt, createRegexForTag, createRepository, createSoftwareDevelopmentKit, createSombraGotInstance, createTranscendConsentGotInstance, createVendor, defineTranscendPrompts, deleteApiKey, deployConsentManager, description, domainToHost, downloadPrivacyRequestFiles, enrichPrivacyRequest, ensureAllDataSubjectsExist, extractClientError, extractErrorMessage, fetchActiveSiloDiscoPlugin, fetchAllActionItems, fetchAllActions, fetchAllAgentFiles, fetchAllAgentFunctions, fetchAllAgents, fetchAllApiKeys, fetchAllAssessmentTemplates, fetchAllAssessments, fetchAllAttributeValues, fetchAllAttributes, fetchAllBusinessEntities, fetchAllCatalogs, fetchAllCookies, fetchAllDataCategories, fetchAllDataFlows, fetchAllDataPoints, fetchAllDataSilos, fetchAllDataSubjects, fetchAllEnrichers, fetchAllIdentifiers, fetchAllMessages, fetchAllPolicies, fetchAllPreferenceTopics, fetchAllPrivacyCenters, fetchAllProcessingActivities, fetchAllProcessingPurposes, fetchAllPromptGroups, fetchAllPromptPartials, fetchAllPromptThreads, fetchAllPrompts, fetchAllPurposes, fetchAllPurposesAndPreferences, fetchAllRequestAttributeKeys, fetchAllRequestEnrichers, fetchAllRequestIdentifierMetadata, fetchAllRequestIdentifiers, fetchAllRequests, fetchAllSubDataPoints, fetchAllTeams, fetchAllTemplates, fetchAllUsers, fetchAllVendors, fetchAndIndexCatalogs, fetchApiKeys, fetchConsentManager, fetchConsentManagerAnalyticsData, fetchConsentManagerExperiences, fetchConsentManagerId, fetchConsentManagerTheme, fetchConsentPreferences, fetchEnrichedDataSilos, fetchIdentifiersAndCreateMissing, fetchPartitions, fetchPrivacyCenterId, fetchPrivacyCenterUrl, fetchPromptsWithVariables, fetchRequestDataSilo, fetchRequestDataSiloActiveCount, fetchRequestDataSilos, fetchRequestFilesForRequest, filterNullishValuesFromObject, filterRows, fuzzyMatchColumns, fuzzySearch, generateCrossAccountApiKeys, getErrorStatus, getFileMetadataForPrivacyRequests, getGitFilesThatChanged, getUniqueValuesForColumn, inquirerAutoComplete, inquirerConfirmBoolean, inquirerConfirmText, limitRecords, listDirectories, listFiles, loginUser, makeGraphQLRequest, mapColumnsToAttributes, mapColumnsToIdentifiers, mapCsvColumnsToApi, mapCsvRowsToRequestInputs, mapEnumValues, mapRequestEnumValues, markCronIdentifierCompleted, markRequestDataSiloIdsCompleted, markSilentPrivacyRequests, mergeTranscendInputs, name, normalizeIdentifierValue, notifyPrivacyRequestsAdditionalTime, parseAssessmentDisplayLogic, parseAssessmentRiskLogic, parseAttributesFromString, parseFilePath, parseVariablesFromString, pullAllDatapoints, pullChunkedCustomSiloOutstandingIdentifiers, pullConsentManagerMetrics, pullCronPageOfIdentifiers, pullManualEnrichmentIdentifiersToCsv, pullPrivacyRequests, pullTranscendConfiguration, pullUnstructuredSubDataPointRecommendations, pushCronIdentifiersFromCsv, pushManualEnrichmentIdentifiersFromCsv, readCsv, readSafe, readTranscendYaml, removeLinks, removeUnverifiedRequestIdentifiers, replaceVariablesInYaml, reportPromptRun, restartPrivacyRequest, retryRequestDataSilos, retryRequestEnricher, retrySamePromise, setResourceAttributes, skipPreflightJobs, skipRequestDataSilos, sleepPromise, splitCsvToList, splitInHalf, streamPrivacyRequestFiles, submitPrivacyRequest, syncAction, syncActionItemCollections, syncActionItems, syncAgentFiles, syncAgentFunctions, syncAgents, syncAttribute, syncBusinessEntities, syncCodePackages, syncConfigurationToTranscend, syncConsentManager, syncConsentManagerExperiences, syncCookies, syncDataCategories, syncDataFlows, syncDataSiloDependencies, syncDataSilos, syncDataSubject, syncEnricher, syncIdentifier, syncIntlMessages, syncPartitions, syncPolicies, syncPrivacyCenter, syncProcessingActivities, syncProcessingPurposes, syncPrompts, syncRepositories, syncSoftwareDevelopmentKits, syncTemplate, syncVendors, updateActionItem, updateActionItemCollection, updateAgentFiles, updateAgentFunctions, updateAgents, updateBusinessEntities, updateCodePackages, updateConsentManagerToLatest, updateConsentManagerVersionToLatest, updateDataCategories, updateDataFlows, updateIntlMessages, updateOrCreateCookies, updatePolicies, updateProcessingPurposes, updatePrompts, updateRepositories, updateSoftwareDevelopmentKits, updateVendors, uploadConsents, uploadCookiesFromCsv, uploadDataFlowsFromCsv, uploadPrivacyRequestsFromCsv, uploadSiloDiscoveryResults, validateTranscendAuth, version, writeCsv, writeCsvSync, writeLargeCsv, writeTranscendYaml };
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"author": "Transcend Inc.",
|
|
3
3
|
"name": "@transcend-io/cli",
|
|
4
4
|
"description": "A command line interface for programmatic operations across Transcend.",
|
|
5
|
-
"version": "8.0.
|
|
5
|
+
"version": "8.0.5",
|
|
6
6
|
"homepage": "https://github.com/transcend-io/cli",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
package/dist/impl-OUJ4L35V.cjs
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkVGKI7LU6cjs = require('./chunk-VGKI7LU6.cjs');require('./chunk-6OZONTDQ.cjs');var _chunkWKCTKYN4cjs = require('./chunk-WKCTKYN4.cjs');require('./chunk-QEM6S2W7.cjs');require('./chunk-LKUJWJR3.cjs');require('./chunk-LCDYXJN6.cjs');require('./chunk-ZUNVPK23.cjs');require('./chunk-O3WQC6E5.cjs');require('./chunk-Q7I37FJV.cjs');async function m({auth:r,trackerStatus:s,file:a,transcendUrl:e}){_chunkWKCTKYN4cjs.a.call(void 0, this.process.exit),await _chunkVGKI7LU6cjs.c.call(void 0, {auth:r,trackerStatus:s,file:a,transcendUrl:e})}exports.uploadCookiesFromCsv = m;
|
|
2
|
-
//# sourceMappingURL=impl-OUJ4L35V.cjs.map
|