@treasuredata/tdx 0.25.7 → 0.25.8
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.js +1 -1
- package/dist/build-info.json +3 -3
- package/dist/cli-categories.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/commands/activations.js +1 -1
- package/dist/commands/agent-command.js +1 -1
- package/dist/commands/agent-test-command.js +1 -1
- package/dist/commands/api-command.js +1 -1
- package/dist/commands/auth-command.js +1 -1
- package/dist/commands/chat-command.js +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-statusline-command.js +1 -1
- package/dist/commands/claude-usage-command.js +1 -1
- package/dist/commands/command.js +1 -1
- package/dist/commands/connection-command.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/job-command.js +1 -1
- package/dist/commands/journey-command.js +1 -1
- package/dist/commands/journey-validate-command.js +1 -1
- package/dist/commands/llm-command.js +1 -1
- package/dist/commands/mcp-command.js +1 -1
- package/dist/commands/parent-segment-command.js +1 -1
- package/dist/commands/profile-command.js +1 -1
- package/dist/commands/profiles-command.js +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/schedule-command.js +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-create-command.js +1 -1
- package/dist/commands/segment-fields-command.js +1 -1
- package/dist/commands/segment-pull-command.js +1 -1
- package/dist/commands/segment-push-command.js +1 -1
- package/dist/commands/segment-update-command.js +1 -1
- package/dist/commands/segment-use-command.js +1 -1
- package/dist/commands/segment-validate-command.js +1 -1
- package/dist/commands/segments.js +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/status-command.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/unset-command.js +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/user-command.js +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/command-output.js +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/connection-cache.js +1 -1
- package/dist/core/constants.js +1 -1
- package/dist/core/credential-cache.js +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/keychain.js +1 -1
- package/dist/core/profile.js +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/session.js +1 -1
- package/dist/core/user-cache.js +1 -1
- package/dist/core/version.js +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/mcp/tools/index.js +1 -1
- package/dist/mcp/tools/tdx-run.js +1 -1
- package/dist/mcp/tools/tdx-search.js +1 -1
- package/dist/mcp/utils.js +1 -1
- package/dist/proxy/claude-usage-tracker.js +1 -1
- package/dist/proxy/passthrough-server.js +1 -1
- package/dist/proxy/sse-usage-parser.js +1 -1
- package/dist/sdk/agent/agent-config.js +1 -1
- package/dist/sdk/agent/agent-ref-parser.js +1 -1
- package/dist/sdk/agent/agent-yaml.js +1 -1
- package/dist/sdk/agent/test/evaluator.js +1 -1
- package/dist/sdk/agent/test/executor.js +1 -1
- package/dist/sdk/agent/test/index.js +1 -1
- package/dist/sdk/agent/test/output.js +1 -1
- package/dist/sdk/agent/test/parser.js +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/client/cdp-api-client.d.ts +7 -0
- package/dist/sdk/client/cdp-api-client.d.ts.map +1 -1
- package/dist/sdk/client/cdp-api-client.js +1 -1
- package/dist/sdk/client/cdp-api-client.js.map +1 -1
- package/dist/sdk/client/endpoints.js +1 -1
- package/dist/sdk/client/engage-api-client.js +1 -1
- package/dist/sdk/client/http-client.js +1 -1
- package/dist/sdk/client/llm-api-client.js +1 -1
- package/dist/sdk/client/rate-limiter.js +1 -1
- package/dist/sdk/client/td-api-client.js +1 -1
- package/dist/sdk/client/trino-api-client.js +1 -1
- package/dist/sdk/client/workflow-client.js +1 -1
- package/dist/sdk/connection-validator.js +1 -1
- package/dist/sdk/connection.js +1 -1
- package/dist/sdk/engage.js +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/io/index.js +1 -1
- package/dist/sdk/io/node-filesystem.js +1 -1
- package/dist/sdk/job.js +1 -1
- package/dist/sdk/journey.js +1 -1
- package/dist/sdk/llm/chat-cache.js +1 -1
- package/dist/sdk/llm/index.js +1 -1
- package/dist/sdk/llm/llm-backup-utils.js +1 -1
- package/dist/sdk/llm/model-factors.js +1 -1
- package/dist/sdk/personalization.js +1 -1
- package/dist/sdk/query/index.js +1 -1
- package/dist/sdk/query/sql-parser.js +1 -1
- package/dist/sdk/realtime.js +1 -1
- package/dist/sdk/schedule.js +1 -1
- package/dist/sdk/segment/child-segment-yaml.d.ts.map +1 -1
- package/dist/sdk/segment/child-segment-yaml.js +1 -1
- package/dist/sdk/segment/child-segment-yaml.js.map +1 -1
- package/dist/sdk/segment/fields-display.js +1 -1
- package/dist/sdk/segment/file-discovery.js +1 -1
- package/dist/sdk/segment/journey-utils.js +1 -1
- package/dist/sdk/segment/journey-validator.d.ts +19 -0
- package/dist/sdk/segment/journey-validator.d.ts.map +1 -0
- package/dist/sdk/segment/journey-validator.js +1 -0
- package/dist/sdk/segment/journey-validator.js.map +1 -0
- package/dist/sdk/segment/journey-yaml.d.ts.map +1 -1
- package/dist/sdk/segment/journey-yaml.js +1 -1
- package/dist/sdk/segment/journey-yaml.js.map +1 -1
- package/dist/sdk/segment/parent-segment-preview.js +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js +1 -1
- package/dist/sdk/segment/pull-workflow.js +1 -1
- package/dist/sdk/segment/push-recovery.d.ts +42 -0
- package/dist/sdk/segment/push-recovery.d.ts.map +1 -0
- package/dist/sdk/segment/push-recovery.js +1 -0
- package/dist/sdk/segment/push-recovery.js.map +1 -0
- package/dist/sdk/segment/push-workflow.d.ts +18 -12
- package/dist/sdk/segment/push-workflow.d.ts.map +1 -1
- package/dist/sdk/segment/push-workflow.js +1 -1
- package/dist/sdk/segment/push-workflow.js.map +1 -1
- package/dist/sdk/segment/resolution-context.js +1 -1
- package/dist/sdk/segment/segment-path-parser.js +1 -1
- package/dist/sdk/segment/segment-ref-parser.js +1 -1
- package/dist/sdk/segment/target-resolution.js +1 -1
- package/dist/sdk/segment/tdx-config.js +1 -1
- package/dist/sdk/segment/types/segment-def.d.ts +2 -0
- package/dist/sdk/segment/types/segment-def.d.ts.map +1 -1
- package/dist/sdk/segment/validate-files.d.ts.map +1 -1
- package/dist/sdk/segment/validate-files.js +1 -1
- package/dist/sdk/segment/validate-files.js.map +1 -1
- package/dist/sdk/segment/yaml-validator.d.ts +7 -7
- package/dist/sdk/segment/yaml-validator.d.ts.map +1 -1
- package/dist/sdk/segment/yaml-validator.js +1 -1
- package/dist/sdk/segment/yaml-validator.js.map +1 -1
- package/dist/sdk/segment.d.ts +5 -0
- package/dist/sdk/segment.d.ts.map +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/segment.js.map +1 -1
- package/dist/sdk/types/cdp.d.ts +117 -0
- package/dist/sdk/types/cdp.d.ts.map +1 -1
- package/dist/sdk/types/index.js +1 -1
- package/dist/sdk/types/progress.js +1 -1
- package/dist/sdk/user.js +1 -1
- package/dist/sdk/util/format-detector.js +1 -1
- package/dist/sdk/util/formatters.js +1 -1
- package/dist/sdk/util/index.js +1 -1
- package/dist/sdk/util/tree-formatter.js +1 -1
- package/dist/sdk/workflow/archive-validation.js +1 -1
- package/dist/sdk/workflow/clone-workflow.js +1 -1
- package/dist/sdk/workflow/index.js +1 -1
- package/dist/sdk/workflow/pull-workflow.js +1 -1
- package/dist/sdk/workflow/push-workflow.js +1 -1
- package/dist/sdk/workflow/tdx-config.js +1 -1
- package/dist/sdk/workflow/workflow-utils.js +1 -1
- package/dist/test-utils/command-runner.js +1 -1
- package/dist/test-utils/factories.js +1 -1
- package/dist/test-utils/fixtures.js +1 -1
- package/dist/test-utils/http-mock.js +1 -1
- package/dist/test-utils/index.js +1 -1
- package/dist/utils/async.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/diff.js +1 -1
- package/dist/utils/file-permissions.js +1 -1
- package/dist/utils/global-cache.js +1 -1
- package/dist/utils/json-loader.js +1 -1
- package/dist/utils/local-cache.js +1 -1
- package/dist/utils/logger/formatters/default-formatter.js +1 -1
- package/dist/utils/logger/formatters/index.js +1 -1
- package/dist/utils/logger/handlers/console-handler.js +1 -1
- package/dist/utils/logger/handlers/file-handler.js +1 -1
- package/dist/utils/logger/handlers/index.js +1 -1
- package/dist/utils/logger/handlers/null-handler.js +1 -1
- package/dist/utils/logger/index.js +1 -1
- package/dist/utils/logger/logger.js +1 -1
- package/dist/utils/logger/types.js +1 -1
- package/dist/utils/option-validation.js +1 -1
- package/dist/utils/port.js +1 -1
- package/dist/utils/process.js +1 -1
- package/dist/utils/prompt.js +1 -1
- package/dist/utils/spinner.js +1 -1
- package/dist/utils/sse-parser.js +1 -1
- package/dist/utils/string-utils.js +1 -1
- package/dist/utils/table-ref-parser.js +1 -1
- package/dist/utils/tdx-logger.js +1 -1
- package/dist/utils/version-check.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a91_0x4d00bc=a91_0x142c;(function(_0x914b6d,_0x3cc8e9){const _0x515948=a91_0x142c,_0x57f687=_0x914b6d();while(!![]){try{const _0x3dc6b8=parseInt(_0x515948(0x104))/0x1*(-parseInt(_0x515948(0x106))/0x2)+-parseInt(_0x515948(0x100))/0x3*(parseInt(_0x515948(0x102))/0x4)+parseInt(_0x515948(0x10e))/0x5+parseInt(_0x515948(0x114))/0x6*(parseInt(_0x515948(0x113))/0x7)+-parseInt(_0x515948(0x119))/0x8*(parseInt(_0x515948(0x111))/0x9)+-parseInt(_0x515948(0x109))/0xa*(parseInt(_0x515948(0x108))/0xb)+parseInt(_0x515948(0x10f))/0xc*(-parseInt(_0x515948(0x118))/0xd);if(_0x3dc6b8===_0x3cc8e9)break;else _0x57f687['push'](_0x57f687['shift']());}catch(_0x446385){_0x57f687['push'](_0x57f687['shift']());}}}(a91_0x192e,0x3d4e9));import*as a91_0x55b27a from'node:fs';function a91_0x142c(_0x186803,_0x3e0a49){_0x186803=_0x186803-0x100;const _0x192eef=a91_0x192e();let _0x142cfc=_0x192eef[_0x186803];return _0x142cfc;}function a91_0x192e(){const _0x36865a=['mkdirSync','9sFICpc','readdir','3393859SHkmeQ','6Puirka','isFile','readFileSync','existsSync','42991CNceOY','1440104aozGnr','utf-8','unlinkSync','statSync','18207JMtflr','readdirSync','84aVVQCx','readFile','7OfWKpQ','mkdir','42234qPjAKO','access','11uBChww','627490lfIVMy','stat','isDirectory','writeFile','unlink','1504205WHqzmH','60EccqFp'];a91_0x192e=function(){return _0x36865a;};return a91_0x192e();}import*as a91_0x42cbdc from'node:fs/promises';export const nodeFileSystem={'readFile':_0x3f8b27=>a91_0x42cbdc[a91_0x4d00bc(0x103)](_0x3f8b27,'utf-8'),'writeFile':(_0x38c7c1,_0x129b66)=>a91_0x42cbdc[a91_0x4d00bc(0x10c)](_0x38c7c1,_0x129b66,'utf-8'),'exists':async _0x11fc19=>{const _0x48ca82=a91_0x4d00bc;try{return await a91_0x42cbdc[_0x48ca82(0x107)](_0x11fc19),!![];}catch{return![];}},'mkdir':async(_0x37afc8,_0x1ae210)=>{const _0x129860=a91_0x4d00bc;await a91_0x42cbdc[_0x129860(0x105)](_0x37afc8,_0x1ae210);},'readdir':_0x5ac6d8=>a91_0x42cbdc[a91_0x4d00bc(0x112)](_0x5ac6d8),'stat':async _0xd2e46=>{const _0x1e78ff=a91_0x4d00bc,_0x3a0ca6=await a91_0x42cbdc[_0x1e78ff(0x10a)](_0xd2e46);return{'isDirectory':()=>_0x3a0ca6[_0x1e78ff(0x10b)](),'isFile':()=>_0x3a0ca6['isFile']()};},'unlink':_0xf19eeb=>a91_0x42cbdc[a91_0x4d00bc(0x10d)](_0xf19eeb)};export const nodeFileSystemSync={'readFileSync':_0x4363c4=>a91_0x55b27a[a91_0x4d00bc(0x116)](_0x4363c4,'utf-8'),'writeFileSync':(_0x39d547,_0x459e72)=>a91_0x55b27a['writeFileSync'](_0x39d547,_0x459e72,a91_0x4d00bc(0x11a)),'existsSync':_0xc14f6=>a91_0x55b27a[a91_0x4d00bc(0x117)](_0xc14f6),'mkdirSync':(_0x35ae66,_0x21b57f)=>{const _0x5f3087=a91_0x4d00bc;a91_0x55b27a[_0x5f3087(0x110)](_0x35ae66,_0x21b57f);},'readdirSync':_0x152223=>a91_0x55b27a[a91_0x4d00bc(0x101)](_0x152223),'statSync':_0x4aa72f=>{const _0x50e609=a91_0x4d00bc,_0x233536=a91_0x55b27a[_0x50e609(0x11c)](_0x4aa72f);return{'isDirectory':()=>_0x233536['isDirectory'](),'isFile':()=>_0x233536[_0x50e609(0x115)]()};},'unlinkSync':_0x33bf1c=>a91_0x55b27a[a91_0x4d00bc(0x11b)](_0x33bf1c)};
|
package/dist/sdk/job.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a93_0x4eb8c8=a93_0x2631;function a93_0x2631(_0x5836bf,_0x3e6e87){_0x5836bf=_0x5836bf-0x103;const _0x3170c2=a93_0x3170();let _0x263121=_0x3170c2[_0x5836bf];return _0x263121;}(function(_0x462683,_0x5a0b48){const _0x1ffb8f=a93_0x2631,_0x207835=_0x462683();while(!![]){try{const _0x4504d0=-parseInt(_0x1ffb8f(0x108))/0x1+-parseInt(_0x1ffb8f(0x11e))/0x2*(-parseInt(_0x1ffb8f(0x120))/0x3)+parseInt(_0x1ffb8f(0x107))/0x4*(parseInt(_0x1ffb8f(0x105))/0x5)+parseInt(_0x1ffb8f(0x111))/0x6*(-parseInt(_0x1ffb8f(0x110))/0x7)+parseInt(_0x1ffb8f(0x113))/0x8+parseInt(_0x1ffb8f(0x10f))/0x9+-parseInt(_0x1ffb8f(0x118))/0xa*(parseInt(_0x1ffb8f(0x10e))/0xb);if(_0x4504d0===_0x5a0b48)break;else _0x207835['push'](_0x207835['shift']());}catch(_0x5d1c64){_0x207835['push'](_0x207835['shift']());}}}(a93_0x3170,0x23ca6));import{TDApiClient}from'./client/td-api-client.js';function normalizeTimestamp(_0x5974c7){const _0x121db7=a93_0x2631;if(!_0x5974c7)return undefined;if(/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}/[_0x121db7(0x11c)](_0x5974c7))return _0x5974c7;return _0x5974c7[_0x121db7(0x109)](_0x121db7(0x11f),'Z')['replace']('\x20','T');}function a93_0x3170(){const _0x4f8732=['kill','hive','client','355ihxrJn','start_at','12184yTycub','23102yafCMF','replace','submit','created_at','updated_at','listJobs','297DdKsJm','1674936qMSZtq','21tQXRdm','477672IXhgiF','list','817944sMBvwr','getUserInfo','submitPrestoJob','map','show','35710HIYFOD','result','end_at','trino','test','cancelJob','68BwWhBS','\x20UTC','30BdnELp','showJob'];a93_0x3170=function(){return _0x4f8732;};return a93_0x3170();}export class JobSDK{[a93_0x4eb8c8(0x104)];constructor(_0x9a3ac6){const _0x241e41=a93_0x4eb8c8;this[_0x241e41(0x104)]=new TDApiClient(_0x9a3ac6);}async[a93_0x4eb8c8(0x112)](_0x3b5304){const _0x33f292=a93_0x4eb8c8,_0x2b1e64=await this[_0x33f292(0x104)][_0x33f292(0x10d)](_0x3b5304);return _0x2b1e64[_0x33f292(0x116)](_0x29cbe9=>({..._0x29cbe9,'created_at':normalizeTimestamp(_0x29cbe9['created_at']),'updated_at':normalizeTimestamp(_0x29cbe9[_0x33f292(0x10c)]),'start_at':normalizeTimestamp(_0x29cbe9[_0x33f292(0x106)]),'end_at':normalizeTimestamp(_0x29cbe9['end_at'])}));}async[a93_0x4eb8c8(0x117)](_0x1a4bfb){const _0x52f38c=a93_0x4eb8c8,_0xaf0cdc=await this[_0x52f38c(0x104)][_0x52f38c(0x121)](_0x1a4bfb);return{..._0xaf0cdc,'created_at':normalizeTimestamp(_0xaf0cdc[_0x52f38c(0x10b)]),'updated_at':normalizeTimestamp(_0xaf0cdc[_0x52f38c(0x10c)]),'start_at':normalizeTimestamp(_0xaf0cdc[_0x52f38c(0x106)]),'end_at':normalizeTimestamp(_0xaf0cdc[_0x52f38c(0x11a)])};}async[a93_0x4eb8c8(0x122)](_0x5dfa9e){const _0x4defc1=a93_0x4eb8c8;await this[_0x4defc1(0x104)][_0x4defc1(0x11d)](_0x5dfa9e);}async[a93_0x4eb8c8(0x10a)](_0x21f269,_0x16a335,_0x564c40=a93_0x4eb8c8(0x11b)){const _0x83557e=a93_0x4eb8c8;return _0x564c40===_0x83557e(0x103)?await this['client']['submitHiveJob'](_0x21f269,_0x16a335):await this[_0x83557e(0x104)][_0x83557e(0x115)](_0x21f269,_0x16a335);}async[a93_0x4eb8c8(0x119)](_0x3337ab){return await this['client']['getJobResult'](_0x3337ab);}async[a93_0x4eb8c8(0x114)](){const _0x147436=a93_0x4eb8c8;return await this[_0x147436(0x104)]['getUserInfo']();}}
|
package/dist/sdk/journey.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const a94_0x1eb98f=a94_0x4811;(function(_0x3bfa01,_0x566bea){const _0x22aa44=a94_0x4811,_0x509d46=_0x3bfa01();while(!![]){try{const _0x4a0217=parseInt(_0x22aa44(0x79))/0x1+-parseInt(_0x22aa44(0x89))/0x2+-parseInt(_0x22aa44(0xb0))/0x3+-parseInt(_0x22aa44(0x7b))/0x4+-parseInt(_0x22aa44(0x92))/0x5+-parseInt(_0x22aa44(0x78))/0x6+parseInt(_0x22aa44(0x7f))/0x7;if(_0x4a0217===_0x566bea)break;else _0x509d46['push'](_0x509d46['shift']());}catch(_0x2d2ccd){_0x509d46['push'](_0x509d46['shift']());}}}(a94_0x1426,0x77fb3));function a94_0x1426(){const _0x53de6c=['values','updatedAt','folder-segment','createdAt','paused','set','client','journey','has','pause','listJourneysWithDetailsFromParentSegment','5395992DqShLj','945303tRIWdM','map','2582984IlzEug','createActivation','Journey\x20not\x20found:\x20','getStatistics','20836382ngrBxJ','parentFolder','Journey\x20activation\x20step\x20not\x20found:\x20','no-bundle-','relationships','segmentFolderId','getJourneyActivation','createJourney','resumeJourney','update','846318xfhMPs','simulation','all','idx-','getActivation','listEntitiesByFolder','versionNumber','activationStepsById','string','4094645aOTmcG','listJourneysWithFolders','description','journeyBundleName','listSegmentFolders','getParentSegmentFull','flat','state','getJourneyStatistics','find','name','data','from','listJourneys','rootFolderId','draft','create','resolveJourneyId','filter','pauseJourney','includeAllVersions','launched','get','listJourneysFromParentSegment','toLowerCase','\x20in\x20journey\x20','resume','type','applyVersionDeduplication','JOURNEY_NOT_FOUND','1929960SlpTrf','journeyBundleId','updateJourney','listJourneysWithDetails','getJourney','journeys','attributes'];a94_0x1426=function(){return _0x53de6c;};return a94_0x1426();}import{CDPApiClient}from'./client/cdp-api-client.js';function a94_0x4811(_0x283219,_0x4a93c9){_0x283219=_0x283219-0x72;const _0x142643=a94_0x1426();let _0x48115f=_0x142643[_0x283219];return _0x48115f;}import{SDKError,ErrorCode,isHttp404Error}from'./errors.js';function getBundleId(_0x497062){const _0x16e930=a94_0x4811;return _0x497062[_0x16e930(0xb1)]??_0x497062['attributes']?.[_0x16e930(0xb1)]??undefined;}function getVersionNumber(_0x14fdce){const _0x32587e=a94_0x4811;return _0x14fdce[_0x32587e(0x8f)]??_0x14fdce[_0x32587e(0xb6)]?.[_0x32587e(0x8f)]??0x0;}export function deduplicateJourneysByBundle(_0x3b0ef2){const _0x47182f=a94_0x4811,_0x251815=new Map();let _0xefebe4=0x0;for(const _0x2006c3 of _0x3b0ef2){const _0x3279f6=getBundleId(_0x2006c3);if(!_0x3279f6){const _0x3c1041=_0x47182f(0x82)+(_0x2006c3['id']??_0x47182f(0x8c)+_0xefebe4++);_0x251815[_0x47182f(0x72)](_0x3c1041,_0x2006c3);continue;}const _0x419375=_0x251815[_0x47182f(0xa8)](_0x3279f6);if(!_0x419375)_0x251815[_0x47182f(0x72)](_0x3279f6,_0x2006c3);else{const _0x29a5a7=getVersionNumber(_0x419375),_0x5dabfe=getVersionNumber(_0x2006c3);_0x5dabfe>_0x29a5a7&&_0x251815[_0x47182f(0x72)](_0x3279f6,_0x2006c3);}}return Array[_0x47182f(0x9e)](_0x251815[_0x47182f(0xb7)]());}const VALID_JOURNEY_STATES=new Set([a94_0x1eb98f(0xa1),a94_0x1eb98f(0x8a),a94_0x1eb98f(0xa7)]);export function parseJourneyState(_0x588a68){const _0x5e36c4=a94_0x1eb98f;if(typeof _0x588a68===_0x5e36c4(0x91)&&VALID_JOURNEY_STATES[_0x5e36c4(0x75)](_0x588a68))return _0x588a68;return _0x5e36c4(0xa1);}export function entityToJourneyListItem(_0x3f16e3,_0x253e56){const _0x107dfa=a94_0x1eb98f,_0x54b671=_0x3f16e3['attributes'];return{'id':_0x3f16e3['id'],'name':_0x54b671['name']??'','journeyBundleName':_0x54b671[_0x107dfa(0x95)]??_0x54b671[_0x107dfa(0x9c)]??'','journeyBundleId':_0x54b671[_0x107dfa(0xb1)]??'','versionNumber':_0x54b671[_0x107dfa(0x8f)],'description':_0x54b671[_0x107dfa(0x94)]??null,'state':parseJourneyState(_0x54b671[_0x107dfa(0x99)]),'paused':_0x54b671[_0x107dfa(0xbb)]??![],'audienceId':_0x253e56,'folderId':_0x54b671[_0x107dfa(0x84)]??_0x3f16e3[_0x107dfa(0x83)]?.[_0x107dfa(0x80)]?.[_0x107dfa(0x9d)]?.['id']??null,'createdAt':_0x54b671[_0x107dfa(0xba)]??'','updatedAt':_0x54b671[_0x107dfa(0xb8)]??''};}export class JourneySDK{[a94_0x1eb98f(0x73)];constructor(_0x56458a){this['client']=new CDPApiClient(_0x56458a);}[a94_0x1eb98f(0xae)](_0x42e85c,_0x53d0c8){return _0x53d0c8?_0x42e85c:deduplicateJourneysByBundle(_0x42e85c);}async['listJourneysWithDetails'](_0x23b88c,_0xd812c2){const _0x33e92d=a94_0x1eb98f;try{const _0x441e04=await this[_0x33e92d(0x73)][_0x33e92d(0xb3)](_0x23b88c);return{'journeys':this[_0x33e92d(0xae)](_0x441e04['journeys'],_0xd812c2),'activationStepsById':_0x441e04['activationStepsById']};}catch(_0x258739){if(isHttp404Error(_0x258739))return{'journeys':[],'activationStepsById':new Map()};throw _0x258739;}}async['listJourneysFromParentSegment'](_0x1d7bc7,_0x48e162,_0x24e85e){const _0x4cc5af=a94_0x1eb98f;let _0x2abcef=_0x48e162;if(!_0x2abcef)try{const _0x489dd1=await this[_0x4cc5af(0x73)][_0x4cc5af(0x97)](_0x1d7bc7);_0x2abcef=_0x489dd1[_0x4cc5af(0xa0)]??undefined;}catch(_0x1127ea){if(isHttp404Error(_0x1127ea))return[];throw _0x1127ea;}if(!_0x2abcef)return[];let _0x1c987f;if(_0x24e85e?.[_0x4cc5af(0xa6)]){const _0xf222b0=await this[_0x4cc5af(0x73)][_0x4cc5af(0x96)](_0x1d7bc7),_0x983486=_0xf222b0[_0x4cc5af(0x7a)](_0x4631d2=>this[_0x4cc5af(0x73)][_0x4cc5af(0x9f)](_0x4631d2['id'])),_0x5144ad=await Promise[_0x4cc5af(0x8b)](_0x983486);_0x1c987f=_0x5144ad[_0x4cc5af(0x98)]();}else{const _0x165a01=await this[_0x4cc5af(0x73)][_0x4cc5af(0x8e)](_0x2abcef,0x20,![]),_0x39803a=_0x165a01[_0x4cc5af(0x9d)],_0x764520=_0x39803a['filter'](_0x3b9808=>_0x3b9808[_0x4cc5af(0xad)]===_0x4cc5af(0x74));_0x1c987f=_0x764520[_0x4cc5af(0x7a)](_0x8ee2b5=>entityToJourneyListItem(_0x8ee2b5,_0x1d7bc7));}return this[_0x4cc5af(0xae)](_0x1c987f,_0x24e85e?.[_0x4cc5af(0xa6)]);}async[a94_0x1eb98f(0x93)](_0x338d2e,_0x4568cf,_0x51af4d){const _0x17b1d2=a94_0x1eb98f;if(!_0x4568cf)return{'journeys':[],'folders':[]};const _0x51916e=await this[_0x17b1d2(0x73)][_0x17b1d2(0x8e)](_0x4568cf,0x20,![]),_0x539262=_0x51916e['data'],_0x44eb7a=_0x539262[_0x17b1d2(0xa4)](_0xaaff7f=>_0xaaff7f['type']===_0x17b1d2(0xb9)&&_0xaaff7f['id']!==_0x4568cf),_0x5765b0=_0x44eb7a[_0x17b1d2(0x7a)](_0x4e5573=>({'id':_0x4e5573['id'],'name':_0x4e5573[_0x17b1d2(0xb6)][_0x17b1d2(0x9c)]})),_0x5de148=_0x539262[_0x17b1d2(0xa4)](_0x3977f5=>_0x3977f5[_0x17b1d2(0xad)]==='journey'),_0x598e5a=_0x5de148[_0x17b1d2(0x7a)](_0x2c9722=>entityToJourneyListItem(_0x2c9722,_0x338d2e));return{'journeys':this[_0x17b1d2(0xae)](_0x598e5a,_0x51af4d?.[_0x17b1d2(0xa6)]),'folders':_0x5765b0};}async[a94_0x1eb98f(0x77)](_0x4f097a,_0x26d0d0){const _0x6501bc=a94_0x1eb98f;let _0x216bd7;try{_0x216bd7=await this[_0x6501bc(0x73)][_0x6501bc(0x96)](_0x4f097a);}catch(_0x35c2b3){if(isHttp404Error(_0x35c2b3))return{'journeys':[],'activationStepsById':new Map()};throw _0x35c2b3;}const _0x4083c2=_0x216bd7['map'](async _0x4431c5=>{const _0x59d50f=_0x6501bc;return await this[_0x59d50f(0xb3)](_0x4431c5['id'],_0x26d0d0?.[_0x59d50f(0xa6)]);}),_0x43a797=await Promise[_0x6501bc(0x8b)](_0x4083c2),_0x2e5b05=new Map(),_0x53bde4=[];for(const _0x473f78 of _0x43a797){_0x53bde4['push'](..._0x473f78[_0x6501bc(0xb5)]);for(const [_0x1c56a7,_0x134dc0]of _0x473f78[_0x6501bc(0x90)]){_0x2e5b05[_0x6501bc(0x72)](_0x1c56a7,_0x134dc0);}}const _0x211f8a=new Set(),_0x24d8e4=_0x53bde4[_0x6501bc(0xa4)](_0x7df919=>{if(_0x211f8a['has'](_0x7df919['id']))return![];return _0x211f8a['add'](_0x7df919['id']),!![];});return{'journeys':this[_0x6501bc(0xae)](_0x24d8e4,_0x26d0d0?.[_0x6501bc(0xa6)]),'activationStepsById':_0x2e5b05};}async[a94_0x1eb98f(0xb4)](_0x15a06b){const _0x14d748=a94_0x1eb98f;try{return await this[_0x14d748(0x73)][_0x14d748(0xb4)](_0x15a06b);}catch(_0x377c6b){if(isHttp404Error(_0x377c6b))throw new SDKError(ErrorCode[_0x14d748(0xaf)],_0x14d748(0x7d)+_0x15a06b,_0x377c6b);throw _0x377c6b;}}async[a94_0x1eb98f(0xa3)](_0x189a61,_0x41d8df){const _0x4d57f8=a94_0x1eb98f,_0x4e4dd4=await this[_0x4d57f8(0xa9)](_0x189a61),_0x57248f=_0x4e4dd4[_0x4d57f8(0x9b)](_0x31839c=>_0x31839c[_0x4d57f8(0x95)]['toLowerCase']()===_0x41d8df[_0x4d57f8(0xaa)]());if(!_0x57248f)throw new SDKError(ErrorCode[_0x4d57f8(0xaf)],_0x4d57f8(0x7d)+_0x41d8df,undefined,{'helpText':'Use\x20\x22tdx\x20journey\x20list\x22\x20to\x20see\x20available\x20journeys'});return _0x57248f['id'];}async[a94_0x1eb98f(0x7e)](_0x172f2f){const _0x387b28=a94_0x1eb98f;try{return await this[_0x387b28(0x73)][_0x387b28(0x9a)](_0x172f2f);}catch(_0x388878){if(isHttp404Error(_0x388878))throw new SDKError(ErrorCode[_0x387b28(0xaf)],'Journey\x20not\x20found:\x20'+_0x172f2f,_0x388878);throw _0x388878;}}async[a94_0x1eb98f(0x76)](_0x579236){const _0x29f375=a94_0x1eb98f;try{return await this['client'][_0x29f375(0xa5)](_0x579236);}catch(_0x29fa37){if(isHttp404Error(_0x29fa37))throw new SDKError(ErrorCode[_0x29f375(0xaf)],'Journey\x20not\x20found:\x20'+_0x579236,_0x29fa37);throw _0x29fa37;}}async[a94_0x1eb98f(0xac)](_0x8565b6){const _0x117845=a94_0x1eb98f;try{return await this[_0x117845(0x73)][_0x117845(0x87)](_0x8565b6);}catch(_0x142ae6){if(isHttp404Error(_0x142ae6))throw new SDKError(ErrorCode[_0x117845(0xaf)],_0x117845(0x7d)+_0x8565b6,_0x142ae6);throw _0x142ae6;}}async[a94_0x1eb98f(0xa2)](_0x11f26d){const _0x163dcf=a94_0x1eb98f;return await this[_0x163dcf(0x73)][_0x163dcf(0x86)](_0x11f26d);}async[a94_0x1eb98f(0x88)](_0x473eee,_0x472d11){const _0x5e9a37=a94_0x1eb98f;try{return await this[_0x5e9a37(0x73)][_0x5e9a37(0xb2)](_0x473eee,_0x472d11);}catch(_0x212514){if(isHttp404Error(_0x212514))throw new SDKError(ErrorCode['JOURNEY_NOT_FOUND'],_0x5e9a37(0x7d)+_0x473eee,_0x212514);throw _0x212514;}}async[a94_0x1eb98f(0x8d)](_0xcaf2ae,_0x347601){const _0x17d155=a94_0x1eb98f;try{return await this['client'][_0x17d155(0x85)](_0xcaf2ae,_0x347601);}catch(_0x4dc7f8){if(isHttp404Error(_0x4dc7f8))throw new SDKError(ErrorCode['NOT_FOUND'],_0x17d155(0x81)+_0x347601+_0x17d155(0xab)+_0xcaf2ae,_0x4dc7f8);throw _0x4dc7f8;}}async['listActivations'](_0x380e1b){const _0x1e4ca1=a94_0x1eb98f;try{return await this[_0x1e4ca1(0x73)]['listJourneyActivations'](_0x380e1b);}catch(_0x221bdb){if(isHttp404Error(_0x221bdb))return[];throw _0x221bdb;}}async[a94_0x1eb98f(0x7c)](_0x323369,_0xff8848){const _0x5093e6=a94_0x1eb98f;return await this[_0x5093e6(0x73)]['createJourneyActivation'](_0x323369,_0xff8848);}}
|
|
1
|
+
const a94_0x302933=a94_0x2805;function a94_0x2805(_0x1ed35c,_0x44eda3){_0x1ed35c=_0x1ed35c-0x97;const _0x998e9a=a94_0x998e();let _0x280523=_0x998e9a[_0x1ed35c];return _0x280523;}(function(_0x5cd244,_0x28e55b){const _0x2fa77c=a94_0x2805,_0x98ab9b=_0x5cd244();while(!![]){try{const _0x11ec71=parseInt(_0x2fa77c(0x97))/0x1*(parseInt(_0x2fa77c(0xb6))/0x2)+parseInt(_0x2fa77c(0x9c))/0x3+-parseInt(_0x2fa77c(0xad))/0x4+-parseInt(_0x2fa77c(0xc0))/0x5*(-parseInt(_0x2fa77c(0x9b))/0x6)+parseInt(_0x2fa77c(0xb5))/0x7+parseInt(_0x2fa77c(0xa2))/0x8+-parseInt(_0x2fa77c(0xda))/0x9*(parseInt(_0x2fa77c(0xb7))/0xa);if(_0x11ec71===_0x28e55b)break;else _0x98ab9b['push'](_0x98ab9b['shift']());}catch(_0xd1dac9){_0x98ab9b['push'](_0x98ab9b['shift']());}}}(a94_0x998e,0xb5ad1));import{CDPApiClient}from'./client/cdp-api-client.js';import{SDKError,ErrorCode,isHttp404Error}from'./errors.js';function getBundleId(_0x2ef401){const _0x21a393=a94_0x2805;return _0x2ef401['journeyBundleId']??_0x2ef401['attributes']?.[_0x21a393(0xba)]??undefined;}function getVersionNumber(_0x17c84c){const _0x50f13e=a94_0x2805;return _0x17c84c['versionNumber']??_0x17c84c[_0x50f13e(0xbd)]?.[_0x50f13e(0x99)]??0x0;}export function deduplicateJourneysByBundle(_0x2ac4fb){const _0x78af33=a94_0x2805,_0x7ea72=new Map();let _0x4cc40b=0x0;for(const _0x1e98c0 of _0x2ac4fb){const _0x51b8f2=getBundleId(_0x1e98c0);if(!_0x51b8f2){const _0x343bb5=_0x78af33(0xc1)+(_0x1e98c0['id']??'idx-'+_0x4cc40b++);_0x7ea72[_0x78af33(0xc6)](_0x343bb5,_0x1e98c0);continue;}const _0x2f503f=_0x7ea72[_0x78af33(0xa9)](_0x51b8f2);if(!_0x2f503f)_0x7ea72[_0x78af33(0xc6)](_0x51b8f2,_0x1e98c0);else{const _0x502121=getVersionNumber(_0x2f503f),_0x1c903d=getVersionNumber(_0x1e98c0);_0x1c903d>_0x502121&&_0x7ea72[_0x78af33(0xc6)](_0x51b8f2,_0x1e98c0);}}return Array['from'](_0x7ea72[_0x78af33(0xb9)]());}const VALID_JOURNEY_STATES=new Set([a94_0x302933(0xcb),'simulation','launched']);export function parseJourneyState(_0x2cfc4e){const _0x52224a=a94_0x302933;if(typeof _0x2cfc4e===_0x52224a(0xd7)&&VALID_JOURNEY_STATES[_0x52224a(0xd1)](_0x2cfc4e))return _0x2cfc4e;return'draft';}function a94_0x998e(){const _0x1ecfe9=['journeys','filter','1510NFawKO','no-bundle-','relationships','updateJourney','description','applyVersionDeduplication','set','listEntitiesByFolder','listJourneysWithDetails','getJourney','rootFolderId','draft','listSegmentFolders','paused','toLowerCase','listActivations','journey','has','Journey\x20activation\x20step\x20not\x20found:\x20','createJourney','getJourneyStatistics','update','pause','string','listJourneysWithFolders','listJourneysWithDetailsFromParentSegment','10071FnOTxu','createdAt','add','createActivation','getStatistics','data','811417nYhXrx','journeyBundleName','versionNumber','listJourneyActivations','17718yPJogB','2183925gsyNdl','parentFolder','map','folder-segment','Journey\x20not\x20found:\x20','listJourneysFromParentSegment','359360HetDmk','createJourneyActivation','type','JOURNEY_NOT_FOUND','getJourneyActivation','state','getParentSegmentFull','get','getActivation','create','activationStepsById','721568WgnLQb','includeAllVersions','find','Use\x20\x22tdx\x20journey\x20list\x22\x20to\x20see\x20available\x20journeys','push','client','NOT_FOUND','name','7992964UmnwUD','2sYsfIo','24070VzAujk','all','values','journeyBundleId','resume','flat','attributes'];a94_0x998e=function(){return _0x1ecfe9;};return a94_0x998e();}export function entityToJourneyListItem(_0x214580,_0x1cfc5e){const _0x5062e8=a94_0x302933,_0x3ea8f7=_0x214580[_0x5062e8(0xbd)];return{'id':_0x214580['id'],'name':_0x3ea8f7[_0x5062e8(0xb4)]??'','journeyBundleName':_0x3ea8f7[_0x5062e8(0x98)]??_0x3ea8f7[_0x5062e8(0xb4)]??'','journeyBundleId':_0x3ea8f7[_0x5062e8(0xba)]??'','versionNumber':_0x3ea8f7[_0x5062e8(0x99)],'description':_0x3ea8f7[_0x5062e8(0xc4)]??null,'state':parseJourneyState(_0x3ea8f7[_0x5062e8(0xa7)]),'paused':_0x3ea8f7[_0x5062e8(0xcd)]??![],'audienceId':_0x1cfc5e,'folderId':_0x3ea8f7['segmentFolderId']??_0x214580[_0x5062e8(0xc2)]?.[_0x5062e8(0x9d)]?.[_0x5062e8(0xdf)]?.['id']??null,'createdAt':_0x3ea8f7[_0x5062e8(0xdb)]??'','updatedAt':_0x3ea8f7['updatedAt']??''};}export class JourneySDK{['client'];constructor(_0x3ee8d5){const _0x319b60=a94_0x302933;this[_0x319b60(0xb2)]=new CDPApiClient(_0x3ee8d5);}[a94_0x302933(0xc5)](_0xdabc12,_0x54a59b){return _0x54a59b?_0xdabc12:deduplicateJourneysByBundle(_0xdabc12);}async[a94_0x302933(0xc8)](_0x558203,_0x51202d){const _0x30d139=a94_0x302933;try{const _0x262830=await this[_0x30d139(0xb2)][_0x30d139(0xc8)](_0x558203);return{'journeys':this[_0x30d139(0xc5)](_0x262830['journeys'],_0x51202d),'activationStepsById':_0x262830[_0x30d139(0xac)]};}catch(_0x589e78){if(isHttp404Error(_0x589e78))return{'journeys':[],'activationStepsById':new Map()};throw _0x589e78;}}async['listJourneysFromParentSegment'](_0x20f4f0,_0x5618e6,_0x497be2){const _0x2f8736=a94_0x302933;let _0x168875=_0x5618e6;if(!_0x168875)try{const _0x10cb43=await this[_0x2f8736(0xb2)][_0x2f8736(0xa8)](_0x20f4f0);_0x168875=_0x10cb43[_0x2f8736(0xca)]??undefined;}catch(_0x522ecf){if(isHttp404Error(_0x522ecf))return[];throw _0x522ecf;}if(!_0x168875)return[];let _0x5f281a;if(_0x497be2?.[_0x2f8736(0xae)]){const _0x341991=await this[_0x2f8736(0xb2)][_0x2f8736(0xcc)](_0x20f4f0),_0x4e3523=_0x341991[_0x2f8736(0x9e)](_0x5f4df0=>this[_0x2f8736(0xb2)]['listJourneys'](_0x5f4df0['id'])),_0x43bed0=await Promise['all'](_0x4e3523);_0x5f281a=_0x43bed0[_0x2f8736(0xbc)]();}else{const _0x36064c=await this[_0x2f8736(0xb2)][_0x2f8736(0xc7)](_0x168875,0x20,![]),_0x31d70d=_0x36064c[_0x2f8736(0xdf)],_0x34a549=_0x31d70d[_0x2f8736(0xbf)](_0x9bed8=>_0x9bed8[_0x2f8736(0xa4)]===_0x2f8736(0xd0));_0x5f281a=_0x34a549[_0x2f8736(0x9e)](_0x78e59a=>entityToJourneyListItem(_0x78e59a,_0x20f4f0));}return this['applyVersionDeduplication'](_0x5f281a,_0x497be2?.[_0x2f8736(0xae)]);}async[a94_0x302933(0xd8)](_0x4d1fa5,_0x4d69e0,_0x238201){const _0x4fb666=a94_0x302933;if(!_0x4d69e0)return{'journeys':[],'folders':[]};const _0x4a2678=await this['client'][_0x4fb666(0xc7)](_0x4d69e0,0x20,![]),_0x58f21d=_0x4a2678[_0x4fb666(0xdf)],_0x1ce349=_0x58f21d[_0x4fb666(0xbf)](_0x5248e0=>_0x5248e0[_0x4fb666(0xa4)]===_0x4fb666(0x9f)&&_0x5248e0['id']!==_0x4d69e0),_0x27c708=_0x1ce349[_0x4fb666(0x9e)](_0x2680b8=>({'id':_0x2680b8['id'],'name':_0x2680b8[_0x4fb666(0xbd)]['name']})),_0x16ca07=_0x58f21d['filter'](_0x541de3=>_0x541de3[_0x4fb666(0xa4)]===_0x4fb666(0xd0)),_0x14ec42=_0x16ca07[_0x4fb666(0x9e)](_0x8118df=>entityToJourneyListItem(_0x8118df,_0x4d1fa5));return{'journeys':this[_0x4fb666(0xc5)](_0x14ec42,_0x238201?.['includeAllVersions']),'folders':_0x27c708};}async[a94_0x302933(0xd9)](_0x343d14,_0x5cafec){const _0x5630e2=a94_0x302933;let _0x1b8f56;try{_0x1b8f56=await this['client'][_0x5630e2(0xcc)](_0x343d14);}catch(_0x27ef33){if(isHttp404Error(_0x27ef33))return{'journeys':[],'activationStepsById':new Map()};throw _0x27ef33;}const _0x2d393f=_0x1b8f56[_0x5630e2(0x9e)](async _0xaac2c3=>{const _0x2cd186=_0x5630e2;return await this[_0x2cd186(0xc8)](_0xaac2c3['id'],_0x5cafec?.[_0x2cd186(0xae)]);}),_0x3ebdde=await Promise[_0x5630e2(0xb8)](_0x2d393f),_0x6de891=new Map(),_0x41bfc4=[];for(const _0x498b7a of _0x3ebdde){_0x41bfc4[_0x5630e2(0xb1)](..._0x498b7a[_0x5630e2(0xbe)]);for(const [_0x1a0978,_0x21d93c]of _0x498b7a['activationStepsById']){_0x6de891['set'](_0x1a0978,_0x21d93c);}}const _0x12fa62=new Set(),_0x3203a1=_0x41bfc4['filter'](_0x56d0fd=>{const _0x36a964=_0x5630e2;if(_0x12fa62[_0x36a964(0xd1)](_0x56d0fd['id']))return![];return _0x12fa62[_0x36a964(0xdc)](_0x56d0fd['id']),!![];});return{'journeys':this[_0x5630e2(0xc5)](_0x3203a1,_0x5cafec?.['includeAllVersions']),'activationStepsById':_0x6de891};}async[a94_0x302933(0xc9)](_0x2b895b){const _0x37ac5b=a94_0x302933;try{return await this[_0x37ac5b(0xb2)]['getJourney'](_0x2b895b);}catch(_0x5c19da){if(isHttp404Error(_0x5c19da))throw new SDKError(ErrorCode[_0x37ac5b(0xa5)],'Journey\x20not\x20found:\x20'+_0x2b895b,_0x5c19da);throw _0x5c19da;}}async['resolveJourneyId'](_0x41d51f,_0x1c4e95){const _0x27df93=a94_0x302933,_0x511f3f=await this[_0x27df93(0xa1)](_0x41d51f),_0x22d852=_0x511f3f[_0x27df93(0xaf)](_0x53076d=>_0x53076d['journeyBundleName']['toLowerCase']()===_0x1c4e95[_0x27df93(0xce)]());if(!_0x22d852)throw new SDKError(ErrorCode[_0x27df93(0xa5)],_0x27df93(0xa0)+_0x1c4e95,undefined,{'helpText':_0x27df93(0xb0)});return _0x22d852['id'];}async[a94_0x302933(0xde)](_0x59edb3){const _0x42bdad=a94_0x302933;try{return await this[_0x42bdad(0xb2)][_0x42bdad(0xd4)](_0x59edb3);}catch(_0x4271e6){if(isHttp404Error(_0x4271e6))throw new SDKError(ErrorCode[_0x42bdad(0xa5)],_0x42bdad(0xa0)+_0x59edb3,_0x4271e6);throw _0x4271e6;}}async[a94_0x302933(0xd6)](_0x988953){const _0x4c8284=a94_0x302933;try{return await this[_0x4c8284(0xb2)]['pauseJourney'](_0x988953);}catch(_0x168e42){if(isHttp404Error(_0x168e42))throw new SDKError(ErrorCode[_0x4c8284(0xa5)],_0x4c8284(0xa0)+_0x988953,_0x168e42);throw _0x168e42;}}async[a94_0x302933(0xbb)](_0x31ddc1){const _0x583975=a94_0x302933;try{return await this[_0x583975(0xb2)]['resumeJourney'](_0x31ddc1);}catch(_0x3ecac0){if(isHttp404Error(_0x3ecac0))throw new SDKError(ErrorCode[_0x583975(0xa5)],_0x583975(0xa0)+_0x31ddc1,_0x3ecac0);throw _0x3ecac0;}}async[a94_0x302933(0xab)](_0xc2bf29){const _0x19cb3e=a94_0x302933;return await this['client'][_0x19cb3e(0xd3)](_0xc2bf29);}async[a94_0x302933(0xd5)](_0x458a35,_0x2e07ec){const _0x543733=a94_0x302933;try{return await this[_0x543733(0xb2)][_0x543733(0xc3)](_0x458a35,_0x2e07ec);}catch(_0x11f046){if(isHttp404Error(_0x11f046))throw new SDKError(ErrorCode[_0x543733(0xa5)],_0x543733(0xa0)+_0x458a35,_0x11f046);throw _0x11f046;}}async[a94_0x302933(0xaa)](_0x421186,_0x15e8a0){const _0x12cd55=a94_0x302933;try{return await this['client'][_0x12cd55(0xa6)](_0x421186,_0x15e8a0);}catch(_0x305c3a){if(isHttp404Error(_0x305c3a))throw new SDKError(ErrorCode[_0x12cd55(0xb3)],_0x12cd55(0xd2)+_0x15e8a0+'\x20in\x20journey\x20'+_0x421186,_0x305c3a);throw _0x305c3a;}}async[a94_0x302933(0xcf)](_0x75a98){const _0xd99fe=a94_0x302933;try{return await this['client'][_0xd99fe(0x9a)](_0x75a98);}catch(_0x4eaefd){if(isHttp404Error(_0x4eaefd))return[];throw _0x4eaefd;}}async[a94_0x302933(0xdd)](_0x5ce546,_0x229d2e){const _0xb6a0f7=a94_0x302933;return await this[_0xb6a0f7(0xb2)][_0xb6a0f7(0xa3)](_0x5ce546,_0x229d2e);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x472cd6,_0x3d56ac){const _0x7ea468=a95_0x54aa,_0x31ff0c=_0x472cd6();while(!![]){try{const _0xaa07cb=-parseInt(_0x7ea468(0x8a))/0x1*(-parseInt(_0x7ea468(0x87))/0x2)+parseInt(_0x7ea468(0x83))/0x3+parseInt(_0x7ea468(0x86))/0x4*(parseInt(_0x7ea468(0x84))/0x5)+parseInt(_0x7ea468(0x88))/0x6+parseInt(_0x7ea468(0x82))/0x7+-parseInt(_0x7ea468(0x89))/0x8+-parseInt(_0x7ea468(0x85))/0x9;if(_0xaa07cb===_0x3d56ac)break;else _0x31ff0c['push'](_0x31ff0c['shift']());}catch(_0x4081e0){_0x31ff0c['push'](_0x31ff0c['shift']());}}}(a95_0x551a,0xdfee9));import{createTextCache}from'../../utils/local-cache.js';function a95_0x54aa(_0x3e3bc4,_0x1c69ba){_0x3e3bc4=_0x3e3bc4-0x81;const _0x551a56=a95_0x551a();let _0x54aa19=_0x551a56[_0x3e3bc4];return _0x54aa19;}function a95_0x551a(){const _0x39e5f2=['4865jyVhnb','write','clear','6133155DTVQoL','2651751WtwKQO','6519220IEaxSf','33647580yYMQGg','4EqXyyD','470JWvUHt','9733242BoYyhY','9388504ymoPpZ'];a95_0x551a=function(){return _0x39e5f2;};return a95_0x551a();}const chatIdCache=createTextCache('last_chat_id','llm/chat');export function saveLastChatId(_0x430e5d){const _0x39e5eb=a95_0x54aa;chatIdCache[_0x39e5eb(0x8b)](_0x430e5d);}export function loadLastChatId(){return chatIdCache['read']();}export function clearLastChatId(){const _0xb563b6=a95_0x54aa;chatIdCache[_0xb563b6(0x81)]();}
|