@treasuredata/tdx 2026.3.27 → 2026.3.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (222) hide show
  1. package/dist/bin.js +1 -1
  2. package/dist/build-info.json +3 -3
  3. package/dist/cli-categories.js +1 -1
  4. package/dist/cli.d.ts.map +1 -1
  5. package/dist/cli.js +1 -1
  6. package/dist/cli.js.map +1 -1
  7. package/dist/commands/activations.js +1 -1
  8. package/dist/commands/agent-command.js +1 -1
  9. package/dist/commands/agent-test-command.js +1 -1
  10. package/dist/commands/api-command.js +1 -1
  11. package/dist/commands/auth-command.js +1 -1
  12. package/dist/commands/auth-login-command.js +1 -1
  13. package/dist/commands/chat-command.js +1 -1
  14. package/dist/commands/claude-command.js +1 -1
  15. package/dist/commands/claude-statusline-command.js +1 -1
  16. package/dist/commands/claude-usage-command.js +1 -1
  17. package/dist/commands/command.js +1 -1
  18. package/dist/commands/connection-command.js +1 -1
  19. package/dist/commands/databases.js +1 -1
  20. package/dist/commands/delivery-command.js +1 -1
  21. package/dist/commands/describe.js +1 -1
  22. package/dist/commands/engage-campaign-pull-command.js +1 -1
  23. package/dist/commands/engage-campaign-push-command.js +1 -1
  24. package/dist/commands/engage-campaign-validate-command.js +1 -1
  25. package/dist/commands/engage-command.js +1 -1
  26. package/dist/commands/engage-template-pull-command.js +1 -1
  27. package/dist/commands/engage-template-push-command.js +1 -1
  28. package/dist/commands/engage-template-validate-command.js +1 -1
  29. package/dist/commands/job-command.js +1 -1
  30. package/dist/commands/journey-command.js +1 -1
  31. package/dist/commands/journey-validate-command.js +1 -1
  32. package/dist/commands/llm-command.js +1 -1
  33. package/dist/commands/mcp-command.js +1 -1
  34. package/dist/commands/parent-segment-command.d.ts +141 -2
  35. package/dist/commands/parent-segment-command.d.ts.map +1 -1
  36. package/dist/commands/parent-segment-command.js +1 -1
  37. package/dist/commands/parent-segment-command.js.map +1 -1
  38. package/dist/commands/policy-command.js +1 -1
  39. package/dist/commands/profile-command.js +1 -1
  40. package/dist/commands/profiles-command.js +1 -1
  41. package/dist/commands/query-command.js +1 -1
  42. package/dist/commands/schedule-command.js +1 -1
  43. package/dist/commands/segment-command.js +1 -1
  44. package/dist/commands/segment-create-command.js +1 -1
  45. package/dist/commands/segment-fields-command.js +1 -1
  46. package/dist/commands/segment-pull-command.js +1 -1
  47. package/dist/commands/segment-push-command.js +1 -1
  48. package/dist/commands/segment-update-command.js +1 -1
  49. package/dist/commands/segment-use-command.js +1 -1
  50. package/dist/commands/segment-validate-command.js +1 -1
  51. package/dist/commands/segments.js +1 -1
  52. package/dist/commands/show.js +1 -1
  53. package/dist/commands/status-command.js +1 -1
  54. package/dist/commands/tables.js +1 -1
  55. package/dist/commands/unset-command.js +1 -1
  56. package/dist/commands/upgrade-command.js +1 -1
  57. package/dist/commands/use-command.js +1 -1
  58. package/dist/commands/user-command.js +1 -1
  59. package/dist/commands/workflow-command.js +1 -1
  60. package/dist/core/auth.js +1 -1
  61. package/dist/core/command-output.js +1 -1
  62. package/dist/core/config.js +1 -1
  63. package/dist/core/connection-cache.js +1 -1
  64. package/dist/core/constants.js +1 -1
  65. package/dist/core/credential-cache.js +1 -1
  66. package/dist/core/global-context.js +1 -1
  67. package/dist/core/keychain.js +1 -1
  68. package/dist/core/oauth-keychain.js +1 -1
  69. package/dist/core/oauth.js +1 -1
  70. package/dist/core/profile.js +1 -1
  71. package/dist/core/project-config.js +1 -1
  72. package/dist/core/session.js +1 -1
  73. package/dist/core/user-cache.js +1 -1
  74. package/dist/core/version.js +1 -1
  75. package/dist/index.js +1 -1
  76. package/dist/mcp/server.js +1 -1
  77. package/dist/mcp/tools/index.js +1 -1
  78. package/dist/mcp/tools/tdx-run.js +1 -1
  79. package/dist/mcp/tools/tdx-search.js +1 -1
  80. package/dist/mcp/utils.js +1 -1
  81. package/dist/proxy/claude-usage-tracker.js +1 -1
  82. package/dist/proxy/passthrough-server.js +1 -1
  83. package/dist/proxy/sse-usage-parser.js +1 -1
  84. package/dist/sdk/agent/agent-config.js +1 -1
  85. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  86. package/dist/sdk/agent/agent-yaml.js +1 -1
  87. package/dist/sdk/agent/test/evaluator.js +1 -1
  88. package/dist/sdk/agent/test/executor.js +1 -1
  89. package/dist/sdk/agent/test/index.js +1 -1
  90. package/dist/sdk/agent/test/output.js +1 -1
  91. package/dist/sdk/agent/test/parser.js +1 -1
  92. package/dist/sdk/agent/tool-target-registry.js +1 -1
  93. package/dist/sdk/api.js +1 -1
  94. package/dist/sdk/client/cdp-api-client.d.ts +29 -1
  95. package/dist/sdk/client/cdp-api-client.d.ts.map +1 -1
  96. package/dist/sdk/client/cdp-api-client.js +1 -1
  97. package/dist/sdk/client/cdp-api-client.js.map +1 -1
  98. package/dist/sdk/client/delivery-api-client.js +1 -1
  99. package/dist/sdk/client/endpoints.js +1 -1
  100. package/dist/sdk/client/engage-api-client.js +1 -1
  101. package/dist/sdk/client/http-client.js +1 -1
  102. package/dist/sdk/client/llm-api-client.js +1 -1
  103. package/dist/sdk/client/oauth-refresh.js +1 -1
  104. package/dist/sdk/client/rate-limiter.js +1 -1
  105. package/dist/sdk/client/td-api-client.js +1 -1
  106. package/dist/sdk/client/trino-api-client.js +1 -1
  107. package/dist/sdk/client/workflow-client.js +1 -1
  108. package/dist/sdk/connection-validator.js +1 -1
  109. package/dist/sdk/connection.js +1 -1
  110. package/dist/sdk/delivery.js +1 -1
  111. package/dist/sdk/engage/campaign-pull.js +1 -1
  112. package/dist/sdk/engage/campaign-push.js +1 -1
  113. package/dist/sdk/engage/campaign-validator.js +1 -1
  114. package/dist/sdk/engage/campaign-yaml.js +1 -1
  115. package/dist/sdk/engage/template-pull.js +1 -1
  116. package/dist/sdk/engage/template-push.js +1 -1
  117. package/dist/sdk/engage/template-validator.js +1 -1
  118. package/dist/sdk/engage/template-yaml.js +1 -1
  119. package/dist/sdk/engage/types/campaign-def.js +1 -1
  120. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  121. package/dist/sdk/engage/types/template-schema.js +1 -1
  122. package/dist/sdk/engage.js +1 -1
  123. package/dist/sdk/errors.js +1 -1
  124. package/dist/sdk/index.js +1 -1
  125. package/dist/sdk/io/index.js +1 -1
  126. package/dist/sdk/io/node-filesystem.js +1 -1
  127. package/dist/sdk/job.js +1 -1
  128. package/dist/sdk/journey.js +1 -1
  129. package/dist/sdk/llm/chat-cache.js +1 -1
  130. package/dist/sdk/llm/index.js +1 -1
  131. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  132. package/dist/sdk/llm/model-factors.js +1 -1
  133. package/dist/sdk/personalization.d.ts +228 -0
  134. package/dist/sdk/personalization.d.ts.map +1 -1
  135. package/dist/sdk/personalization.js +1 -1
  136. package/dist/sdk/personalization.js.map +1 -1
  137. package/dist/sdk/policy.js +1 -1
  138. package/dist/sdk/query/index.js +1 -1
  139. package/dist/sdk/query/sql-parser.js +1 -1
  140. package/dist/sdk/realtime.d.ts +57 -0
  141. package/dist/sdk/realtime.d.ts.map +1 -1
  142. package/dist/sdk/realtime.js +1 -1
  143. package/dist/sdk/realtime.js.map +1 -1
  144. package/dist/sdk/schedule.js +1 -1
  145. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  146. package/dist/sdk/segment/fields-display.js +1 -1
  147. package/dist/sdk/segment/file-discovery.js +1 -1
  148. package/dist/sdk/segment/journey-utils.js +1 -1
  149. package/dist/sdk/segment/journey-validator.js +1 -1
  150. package/dist/sdk/segment/journey-yaml.js +1 -1
  151. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  152. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  153. package/dist/sdk/segment/pull-workflow.js +1 -1
  154. package/dist/sdk/segment/push-recovery.js +1 -1
  155. package/dist/sdk/segment/push-workflow.js +1 -1
  156. package/dist/sdk/segment/resolution-context.js +1 -1
  157. package/dist/sdk/segment/segment-path-parser.js +1 -1
  158. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  159. package/dist/sdk/segment/segment-validator.js +1 -1
  160. package/dist/sdk/segment/target-resolution.js +1 -1
  161. package/dist/sdk/segment/tdx-config.js +1 -1
  162. package/dist/sdk/segment/types/activation-schema.js +1 -1
  163. package/dist/sdk/segment/types/journey-def.js +1 -1
  164. package/dist/sdk/segment/types/journey-schema.js +1 -1
  165. package/dist/sdk/segment/types/segment-def.js +1 -1
  166. package/dist/sdk/segment/types/segment-schema.js +1 -1
  167. package/dist/sdk/segment/validate-files.js +1 -1
  168. package/dist/sdk/segment/yaml-validator.js +1 -1
  169. package/dist/sdk/segment.js +1 -1
  170. package/dist/sdk/types/cdp.d.ts +76 -0
  171. package/dist/sdk/types/cdp.d.ts.map +1 -1
  172. package/dist/sdk/types/index.d.ts +1 -1
  173. package/dist/sdk/types/index.d.ts.map +1 -1
  174. package/dist/sdk/types/index.js +1 -1
  175. package/dist/sdk/types/index.js.map +1 -1
  176. package/dist/sdk/types/progress.js +1 -1
  177. package/dist/sdk/user.js +1 -1
  178. package/dist/sdk/util/format-detector.js +1 -1
  179. package/dist/sdk/util/formatters.js +1 -1
  180. package/dist/sdk/util/index.js +1 -1
  181. package/dist/sdk/util/paginate.js +1 -1
  182. package/dist/sdk/util/tree-formatter.js +1 -1
  183. package/dist/sdk/workflow/archive-validation.js +1 -1
  184. package/dist/sdk/workflow/clone-workflow.js +1 -1
  185. package/dist/sdk/workflow/index.js +1 -1
  186. package/dist/sdk/workflow/pull-workflow.js +1 -1
  187. package/dist/sdk/workflow/push-workflow.js +1 -1
  188. package/dist/sdk/workflow/tdx-config.js +1 -1
  189. package/dist/sdk/workflow/workflow-utils.js +1 -1
  190. package/dist/test-utils/command-runner.js +1 -1
  191. package/dist/test-utils/factories.js +1 -1
  192. package/dist/test-utils/fixtures.js +1 -1
  193. package/dist/test-utils/http-mock.js +1 -1
  194. package/dist/test-utils/index.js +1 -1
  195. package/dist/utils/async.js +1 -1
  196. package/dist/utils/colors.js +1 -1
  197. package/dist/utils/diff.js +1 -1
  198. package/dist/utils/file-permissions.js +1 -1
  199. package/dist/utils/file-reader.js +1 -1
  200. package/dist/utils/github-releases.js +1 -1
  201. package/dist/utils/global-cache.js +1 -1
  202. package/dist/utils/json-loader.js +1 -1
  203. package/dist/utils/local-cache.js +1 -1
  204. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  205. package/dist/utils/logger/formatters/index.js +1 -1
  206. package/dist/utils/logger/handlers/console-handler.js +1 -1
  207. package/dist/utils/logger/handlers/file-handler.js +1 -1
  208. package/dist/utils/logger/handlers/index.js +1 -1
  209. package/dist/utils/logger/handlers/null-handler.js +1 -1
  210. package/dist/utils/logger/index.js +1 -1
  211. package/dist/utils/logger/logger.js +1 -1
  212. package/dist/utils/logger/types.js +1 -1
  213. package/dist/utils/option-validation.js +1 -1
  214. package/dist/utils/process.js +1 -1
  215. package/dist/utils/prompt.js +1 -1
  216. package/dist/utils/spinner.js +1 -1
  217. package/dist/utils/sse-parser.js +1 -1
  218. package/dist/utils/string-utils.js +1 -1
  219. package/dist/utils/table-ref-parser.js +1 -1
  220. package/dist/utils/tdx-logger.js +1 -1
  221. package/dist/utils/version-check.js +1 -1
  222. package/package.json +1 -1
@@ -1 +1 @@
1
- (function(_0x35b9a2,_0x5c5cab){const _0x23f4f2=a147_0x5185,_0xc16b8a=_0x35b9a2();while(!![]){try{const _0x386b27=-parseInt(_0x23f4f2(0xfd))/0x1*(parseInt(_0x23f4f2(0x11e))/0x2)+-parseInt(_0x23f4f2(0x11d))/0x3+-parseInt(_0x23f4f2(0xff))/0x4+parseInt(_0x23f4f2(0x11c))/0x5*(-parseInt(_0x23f4f2(0x114))/0x6)+-parseInt(_0x23f4f2(0x101))/0x7*(parseInt(_0x23f4f2(0x131))/0x8)+parseInt(_0x23f4f2(0x11b))/0x9*(parseInt(_0x23f4f2(0x120))/0xa)+parseInt(_0x23f4f2(0x10d))/0xb*(parseInt(_0x23f4f2(0x11a))/0xc);if(_0x386b27===_0x5c5cab)break;else _0xc16b8a['push'](_0xc16b8a['shift']());}catch(_0x4eb84f){_0xc16b8a['push'](_0xc16b8a['shift']());}}}(a147_0x5598,0xe5ecf));import a147_0x1cc32e from'path';function a147_0x5598(){const _0x35a309=['parentSegment','9930636HTbGSk','16146EypqxS','5zAHbhq','4317372tFOWlh','234ylQMBR','Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension','2330rZnKQz','tdx.json','parent_name','Not\x20a\x20YAML\x20file:\x20','error','readFile','scopedFolderPath','No\x20tdx.json\x20found\x20for\x20file:\x20','resolve','invalid_yaml','basename','directory','string','type','trim','no_config','match','8TkOoHV','Use\x20\x27tdx\x20sg\x20use\x20<parent_name>\x27\x20to\x20set\x20context\x0aOr\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_name>\x27\x20to\x20create\x20the\x20folder\x20structure','root','Tip:\x20Run\x20\x27tdx\x20sg\x20pull\x20<parent_name>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure\x0a\x20\x20Or\x20set\x20context:\x20\x27tdx\x20sg\x20use\x20<parent_name>\x27','dirname','580WefzCg','extname','2617344vCBRRc','file_not_found','9939713qoWnHf','segmentName','startsWith','exists','File\x20not\x20found:\x20','isFile','file','join','parent_segment','configDir','isDirectory','parse','55NffXVO','No\x20tdx.json\x20found','includes','context','segment','isScoped','No\x20tdx.json\x20found\x20in\x20or\x20above:\x20','196278EBZBhE','replace','relative','journey','resourceType'];a147_0x5598=function(){return _0x35a309;};return a147_0x5598();}import{sanitizeFileName}from'../../utils/string-utils.js';function a147_0x5185(_0x58ca40,_0x39be7c){_0x58ca40=_0x58ca40-0xfd;const _0x559804=a147_0x5598();let _0x518507=_0x559804[_0x58ca40];return _0x518507;}import{nodeFileSystem}from'../io/node-filesystem.js';import{isYamlFilePath,resolveYamlFilePath}from'./segment-path-parser.js';import{getSegmentRootDir}from'./tdx-config.js';export function isSuccessfulResolution(_0x4a31e4){const _0x17e88d=a147_0x5185;return _0x4a31e4[_0x17e88d(0x12d)]!==_0x17e88d(0x124);}export function isScopedResolution(_0x413f76){const _0x35e3b7=a147_0x5185;return _0x413f76[_0x35e3b7(0x12d)]===_0x35e3b7(0x12b)||_0x413f76[_0x35e3b7(0x12d)]===_0x35e3b7(0x107)||_0x413f76[_0x35e3b7(0x12d)]===_0x35e3b7(0x110);}export function getScopedDetails(_0x36f68d){const _0x2d9f01=a147_0x5185;if(isScopedResolution(_0x36f68d))return{'isScoped':_0x36f68d[_0x2d9f01(0x112)],'scopedFolderPath':_0x36f68d[_0x2d9f01(0x126)]};return undefined;}async function findTdxConfigAsync(_0x3e73f7,_0x44c6f6){const _0x278772=a147_0x5185;let _0x4c87f2=a147_0x1cc32e['resolve'](_0x3e73f7);const _0x5a5b85=a147_0x1cc32e[_0x278772(0x10c)](_0x4c87f2)[_0x278772(0x133)];while(_0x4c87f2!==_0x5a5b85){const _0x44295b=a147_0x1cc32e[_0x278772(0x108)](_0x4c87f2,_0x278772(0x121));if(await _0x44c6f6['exists'](_0x44295b))try{const _0x345c70=await _0x44c6f6[_0x278772(0x125)](_0x44295b),_0x4beb1e=JSON[_0x278772(0x10c)](_0x345c70);if(_0x4beb1e[_0x278772(0x109)]&&typeof _0x4beb1e['parent_segment']===_0x278772(0x12c))return{'configPath':_0x44295b,'configDir':_0x4c87f2,'parentSegment':_0x4beb1e[_0x278772(0x109)]};}catch{}_0x4c87f2=a147_0x1cc32e[_0x278772(0x135)](_0x4c87f2);}return null;}function calculateScopedPath(_0x1216fc,_0x39fe08){const _0x8f63d7=a147_0x5185,_0x40c0d3=a147_0x1cc32e[_0x8f63d7(0x116)](_0x39fe08,_0x1216fc),_0x279a9d=_0x40c0d3!==''&&_0x40c0d3!=='.'&&!_0x40c0d3[_0x8f63d7(0x103)]('..');return{'isScoped':_0x279a9d,'scopedFolderPath':_0x279a9d?_0x40c0d3[_0x8f63d7(0x115)](/\\/g,'/'):''};}export async function resolveTarget(_0x37e626){const _0x254a6b=a147_0x5185,{arg:_0x48bb85,contextParent:_0x24b2ad,cwd:cwd=process['cwd'](),fs:fs=nodeFileSystem}=_0x37e626;if(_0x48bb85&&isYamlFilePath(_0x48bb85))try{const _0x587dde=await resolveYamlFilePath(_0x48bb85,fs),_0x29a2e4=a147_0x1cc32e[_0x254a6b(0x128)](_0x48bb85),_0x3ddabe=a147_0x1cc32e[_0x254a6b(0x135)](_0x29a2e4),_0x54e406=await findTdxConfigAsync(_0x3ddabe,fs);if(!_0x54e406){if(_0x24b2ad){const _0xdfdf84=a147_0x1cc32e[_0x254a6b(0x135)](_0x29a2e4);return{'type':_0x254a6b(0x107),'parentName':_0x24b2ad,'targetDir':_0xdfdf84,'configRoot':_0xdfdf84,'filePath':_0x29a2e4,'resourceName':_0x587dde[_0x254a6b(0x102)],'folderPath':_0x587dde['folderPath'],'resourceType':_0x587dde[_0x254a6b(0x118)],'isScoped':![],'scopedFolderPath':''};}return{'type':'error','errorCode':_0x254a6b(0x12f),'message':_0x254a6b(0x127)+_0x48bb85,'arg':_0x48bb85,'helpText':_0x254a6b(0x134)};}const _0x25e234=calculateScopedPath(_0x3ddabe,_0x54e406['configDir']);return{'type':_0x254a6b(0x107),'parentName':_0x54e406[_0x254a6b(0x119)],'targetDir':_0x54e406['configDir'],'configRoot':_0x54e406[_0x254a6b(0x10a)],'filePath':_0x29a2e4,'resourceName':_0x587dde[_0x254a6b(0x102)],'folderPath':_0x587dde['folderPath'],'resourceType':_0x587dde[_0x254a6b(0x118)],'isScoped':_0x25e234[_0x254a6b(0x112)],'scopedFolderPath':_0x25e234['scopedFolderPath']};}catch(_0x2c9a43){const _0x212301=_0x2c9a43 instanceof Error?_0x2c9a43['message']:String(_0x2c9a43);if(_0x212301[_0x254a6b(0x10f)]('File\x20not\x20found'))return{'type':_0x254a6b(0x124),'errorCode':_0x254a6b(0x100),'message':_0x254a6b(0x105)+_0x48bb85,'arg':_0x48bb85};if(_0x212301[_0x254a6b(0x10f)](_0x254a6b(0x10e))){if(_0x24b2ad){const _0x5f146a=a147_0x1cc32e[_0x254a6b(0x128)](_0x48bb85);if(await fs[_0x254a6b(0x104)](_0x5f146a)){const _0xafeaf1=a147_0x1cc32e[_0x254a6b(0x135)](_0x5f146a),_0x3bff7a=await fs[_0x254a6b(0x125)](_0x5f146a),_0x43af41=_0x3bff7a[_0x254a6b(0x130)](/^name:\s*["']?([^"'\n]+)["']?/m),_0x34a861=_0x3bff7a['match'](/^type:\s*["']?([^"'\n]+)["']?/m),_0x50a150=_0x43af41?_0x43af41[0x1][_0x254a6b(0x12e)]():a147_0x1cc32e[_0x254a6b(0x12a)](_0x48bb85,a147_0x1cc32e[_0x254a6b(0xfe)](_0x48bb85)),_0x489b83=_0x34a861&&_0x34a861[0x1]['trim']()===_0x254a6b(0x117)?_0x254a6b(0x117):_0x254a6b(0x111);return{'type':_0x254a6b(0x107),'parentName':_0x24b2ad,'targetDir':_0xafeaf1,'configRoot':_0xafeaf1,'filePath':_0x5f146a,'resourceName':_0x50a150,'folderPath':'','resourceType':_0x489b83,'isScoped':![],'scopedFolderPath':''};}}return{'type':_0x254a6b(0x124),'errorCode':_0x254a6b(0x12f),'message':'No\x20tdx.json\x20found\x20for\x20file:\x20'+_0x48bb85,'arg':_0x48bb85,'helpText':_0x254a6b(0x134)};}return{'type':_0x254a6b(0x124),'errorCode':_0x254a6b(0x129),'message':_0x212301,'arg':_0x48bb85};}if(_0x48bb85){const _0x2c689a=a147_0x1cc32e[_0x254a6b(0x128)](cwd,_0x48bb85);let _0x221e9e=null;try{_0x221e9e=await fs['stat'](_0x2c689a);}catch{}if(_0x221e9e?.[_0x254a6b(0x10b)]()){const _0x228bc1=await findTdxConfigAsync(_0x2c689a,fs);if(_0x228bc1){const _0x1cc377=calculateScopedPath(_0x2c689a,_0x228bc1[_0x254a6b(0x10a)]);return{'type':_0x254a6b(0x12b),'parentName':_0x228bc1[_0x254a6b(0x119)],'targetDir':_0x2c689a,'configRoot':_0x228bc1['configDir'],'isScoped':_0x1cc377['isScoped'],'scopedFolderPath':_0x1cc377['scopedFolderPath']};}if(_0x24b2ad)return{'type':_0x254a6b(0x12b),'parentName':_0x24b2ad,'targetDir':_0x2c689a,'configRoot':_0x2c689a,'isScoped':![],'scopedFolderPath':''};return{'type':_0x254a6b(0x124),'errorCode':_0x254a6b(0x12f),'message':_0x254a6b(0x113)+_0x48bb85,'arg':_0x48bb85,'helpText':_0x254a6b(0x134)};}if(_0x221e9e?.[_0x254a6b(0x106)]())return{'type':_0x254a6b(0x124),'errorCode':'invalid_yaml','message':_0x254a6b(0x123)+_0x48bb85,'arg':_0x48bb85,'helpText':_0x254a6b(0x11f)};const _0x574bbd=sanitizeFileName(_0x48bb85),_0x1fd0df=getSegmentRootDir(_0x574bbd,cwd);return{'type':_0x254a6b(0x122),'parentName':_0x48bb85,'targetDir':_0x1fd0df,'configRoot':_0x1fd0df};}const _0x31f703=await findTdxConfigAsync(cwd,fs);if(_0x31f703){const _0x6584af=calculateScopedPath(cwd,_0x31f703[_0x254a6b(0x10a)]);return{'type':_0x254a6b(0x110),'parentName':_0x31f703['parentSegment'],'targetDir':cwd,'configRoot':_0x31f703[_0x254a6b(0x10a)],'isScoped':_0x6584af[_0x254a6b(0x112)],'scopedFolderPath':_0x6584af[_0x254a6b(0x126)]};}if(_0x24b2ad){const _0x296387=sanitizeFileName(_0x24b2ad),_0x37d631=getSegmentRootDir(_0x296387,cwd);return{'type':_0x254a6b(0x110),'parentName':_0x24b2ad,'targetDir':_0x37d631,'configRoot':_0x37d631,'isScoped':![],'scopedFolderPath':''};}return{'type':'error','errorCode':'no_parent','message':'Parent\x20segment\x20not\x20specified','helpText':_0x254a6b(0x132)};}
1
+ (function(_0xec6401,_0x4cebda){const _0x5ca8e4=a147_0x13bf,_0x4d427f=_0xec6401();while(!![]){try{const _0x2111f8=parseInt(_0x5ca8e4(0xda))/0x1*(parseInt(_0x5ca8e4(0xdf))/0x2)+-parseInt(_0x5ca8e4(0xeb))/0x3*(parseInt(_0x5ca8e4(0xde))/0x4)+-parseInt(_0x5ca8e4(0xe3))/0x5+parseInt(_0x5ca8e4(0xe6))/0x6*(-parseInt(_0x5ca8e4(0xf4))/0x7)+parseInt(_0x5ca8e4(0xe1))/0x8*(parseInt(_0x5ca8e4(0xfb))/0x9)+parseInt(_0x5ca8e4(0xef))/0xa+-parseInt(_0x5ca8e4(0xf0))/0xb*(-parseInt(_0x5ca8e4(0x103))/0xc);if(_0x2111f8===_0x4cebda)break;else _0x4d427f['push'](_0x4d427f['shift']());}catch(_0x346cc2){_0x4d427f['push'](_0x4d427f['shift']());}}}(a147_0x1357,0xb02dc));function a147_0x1357(){const _0x4eddc2=['Parent\x20segment\x20not\x20specified','692628pNLEqS','file','trim','no_config','stat','3QCFdiR','startsWith','folderPath','join','2214600hwjGPT','578941ZFgoRW','resolve','string','type','7rJnaPN','Tip:\x20Run\x20\x27tdx\x20sg\x20pull\x20<parent_name>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure\x0a\x20\x20Or\x20set\x20context:\x20\x27tdx\x20sg\x20use\x20<parent_name>\x27','resourceType','error','exists','isFile','scopedFolderPath','770589EBjlxx','dirname','segmentName','basename','parentSegment','configDir','No\x20tdx.json\x20found','journey','276JjZwnR','readFile','relative','directory','File\x20not\x20found:\x20','no_parent','isDirectory','context','cwd','match','includes','parent_segment','root','63087ITUMGv','No\x20tdx.json\x20found\x20in\x20or\x20above:\x20','invalid_yaml','message','1193732noWzRN','26PmBBaS','extname','16DZxDfa','No\x20tdx.json\x20found\x20for\x20file:\x20','6439235CWDXrm','isScoped'];a147_0x1357=function(){return _0x4eddc2;};return a147_0x1357();}import a147_0xcfb9 from'path';import{sanitizeFileName}from'../../utils/string-utils.js';import{nodeFileSystem}from'../io/node-filesystem.js';import{isYamlFilePath,resolveYamlFilePath}from'./segment-path-parser.js';import{getSegmentRootDir}from'./tdx-config.js';export function isSuccessfulResolution(_0x5237f7){const _0x230016=a147_0x13bf;return _0x5237f7['type']!==_0x230016(0xf7);}export function isScopedResolution(_0x306147){const _0x25c9e9=a147_0x13bf;return _0x306147[_0x25c9e9(0xf3)]===_0x25c9e9(0xd0)||_0x306147['type']===_0x25c9e9(0xe7)||_0x306147[_0x25c9e9(0xf3)]===_0x25c9e9(0xd4);}export function getScopedDetails(_0x4dfa6b){const _0x3b2884=a147_0x13bf;if(isScopedResolution(_0x4dfa6b))return{'isScoped':_0x4dfa6b[_0x3b2884(0xe4)],'scopedFolderPath':_0x4dfa6b[_0x3b2884(0xfa)]};return undefined;}function a147_0x13bf(_0x47f9e4,_0xa7701){_0x47f9e4=_0x47f9e4-0xd0;const _0x1357fa=a147_0x1357();let _0x13bff4=_0x1357fa[_0x47f9e4];return _0x13bff4;}async function findTdxConfigAsync(_0x5851bb,_0x119b92){const _0x513e73=a147_0x13bf;let _0x5eb48e=a147_0xcfb9[_0x513e73(0xf1)](_0x5851bb);const _0x530ec5=a147_0xcfb9['parse'](_0x5eb48e)[_0x513e73(0xd9)];while(_0x5eb48e!==_0x530ec5){const _0x31021b=a147_0xcfb9[_0x513e73(0xee)](_0x5eb48e,'tdx.json');if(await _0x119b92[_0x513e73(0xf8)](_0x31021b))try{const _0x5f137c=await _0x119b92[_0x513e73(0x104)](_0x31021b),_0x3b0142=JSON['parse'](_0x5f137c);if(_0x3b0142[_0x513e73(0xd8)]&&typeof _0x3b0142[_0x513e73(0xd8)]===_0x513e73(0xf2))return{'configPath':_0x31021b,'configDir':_0x5eb48e,'parentSegment':_0x3b0142['parent_segment']};}catch{}_0x5eb48e=a147_0xcfb9['dirname'](_0x5eb48e);}return null;}function calculateScopedPath(_0x54b5ed,_0x29cbd4){const _0x3ab514=a147_0x13bf,_0x384315=a147_0xcfb9[_0x3ab514(0x105)](_0x29cbd4,_0x54b5ed),_0x31b2e0=_0x384315!==''&&_0x384315!=='.'&&!_0x384315[_0x3ab514(0xec)]('..');return{'isScoped':_0x31b2e0,'scopedFolderPath':_0x31b2e0?_0x384315['replace'](/\\/g,'/'):''};}export async function resolveTarget(_0x4d1ff1){const _0x393935=a147_0x13bf,{arg:_0x354efd,contextParent:_0x5c498a,cwd:cwd=process[_0x393935(0xd5)](),fs:fs=nodeFileSystem}=_0x4d1ff1;if(_0x354efd&&isYamlFilePath(_0x354efd))try{const _0x5dd5cd=await resolveYamlFilePath(_0x354efd,fs),_0x7f4c6a=a147_0xcfb9['resolve'](_0x354efd),_0x5d6e65=a147_0xcfb9[_0x393935(0xfc)](_0x7f4c6a),_0x239e36=await findTdxConfigAsync(_0x5d6e65,fs);if(!_0x239e36){if(_0x5c498a){const _0x3582c7=a147_0xcfb9['dirname'](_0x7f4c6a);return{'type':_0x393935(0xe7),'parentName':_0x5c498a,'targetDir':_0x3582c7,'configRoot':_0x3582c7,'filePath':_0x7f4c6a,'resourceName':_0x5dd5cd[_0x393935(0xfd)],'folderPath':_0x5dd5cd[_0x393935(0xed)],'resourceType':_0x5dd5cd[_0x393935(0xf6)],'isScoped':![],'scopedFolderPath':''};}return{'type':_0x393935(0xf7),'errorCode':_0x393935(0xe9),'message':_0x393935(0xe2)+_0x354efd,'arg':_0x354efd,'helpText':_0x393935(0xf5)};}const _0x32318d=calculateScopedPath(_0x5d6e65,_0x239e36['configDir']);return{'type':'file','parentName':_0x239e36[_0x393935(0xff)],'targetDir':_0x239e36[_0x393935(0x100)],'configRoot':_0x239e36[_0x393935(0x100)],'filePath':_0x7f4c6a,'resourceName':_0x5dd5cd[_0x393935(0xfd)],'folderPath':_0x5dd5cd[_0x393935(0xed)],'resourceType':_0x5dd5cd[_0x393935(0xf6)],'isScoped':_0x32318d[_0x393935(0xe4)],'scopedFolderPath':_0x32318d[_0x393935(0xfa)]};}catch(_0x1afa04){const _0x3233ba=_0x1afa04 instanceof Error?_0x1afa04[_0x393935(0xdd)]:String(_0x1afa04);if(_0x3233ba[_0x393935(0xd7)]('File\x20not\x20found'))return{'type':_0x393935(0xf7),'errorCode':'file_not_found','message':_0x393935(0xd1)+_0x354efd,'arg':_0x354efd};if(_0x3233ba[_0x393935(0xd7)](_0x393935(0x101))){if(_0x5c498a){const _0x298ce0=a147_0xcfb9['resolve'](_0x354efd);if(await fs['exists'](_0x298ce0)){const _0x20eded=a147_0xcfb9[_0x393935(0xfc)](_0x298ce0),_0xc01794=await fs[_0x393935(0x104)](_0x298ce0),_0x3a8b18=_0xc01794[_0x393935(0xd6)](/^name:\s*["']?([^"'\n]+)["']?/m),_0x287be0=_0xc01794[_0x393935(0xd6)](/^type:\s*["']?([^"'\n]+)["']?/m),_0x5de946=_0x3a8b18?_0x3a8b18[0x1][_0x393935(0xe8)]():a147_0xcfb9[_0x393935(0xfe)](_0x354efd,a147_0xcfb9[_0x393935(0xe0)](_0x354efd)),_0x5a4abb=_0x287be0&&_0x287be0[0x1][_0x393935(0xe8)]()===_0x393935(0x102)?_0x393935(0x102):'segment';return{'type':_0x393935(0xe7),'parentName':_0x5c498a,'targetDir':_0x20eded,'configRoot':_0x20eded,'filePath':_0x298ce0,'resourceName':_0x5de946,'folderPath':'','resourceType':_0x5a4abb,'isScoped':![],'scopedFolderPath':''};}}return{'type':_0x393935(0xf7),'errorCode':_0x393935(0xe9),'message':_0x393935(0xe2)+_0x354efd,'arg':_0x354efd,'helpText':_0x393935(0xf5)};}return{'type':_0x393935(0xf7),'errorCode':'invalid_yaml','message':_0x3233ba,'arg':_0x354efd};}if(_0x354efd){const _0x3928e7=a147_0xcfb9['resolve'](cwd,_0x354efd);let _0x3e3be1=null;try{_0x3e3be1=await fs[_0x393935(0xea)](_0x3928e7);}catch{}if(_0x3e3be1?.[_0x393935(0xd3)]()){const _0x311fc6=await findTdxConfigAsync(_0x3928e7,fs);if(_0x311fc6){const _0x1dc35d=calculateScopedPath(_0x3928e7,_0x311fc6['configDir']);return{'type':_0x393935(0xd0),'parentName':_0x311fc6['parentSegment'],'targetDir':_0x3928e7,'configRoot':_0x311fc6['configDir'],'isScoped':_0x1dc35d[_0x393935(0xe4)],'scopedFolderPath':_0x1dc35d[_0x393935(0xfa)]};}if(_0x5c498a)return{'type':_0x393935(0xd0),'parentName':_0x5c498a,'targetDir':_0x3928e7,'configRoot':_0x3928e7,'isScoped':![],'scopedFolderPath':''};return{'type':_0x393935(0xf7),'errorCode':_0x393935(0xe9),'message':_0x393935(0xdb)+_0x354efd,'arg':_0x354efd,'helpText':_0x393935(0xf5)};}if(_0x3e3be1?.[_0x393935(0xf9)]())return{'type':_0x393935(0xf7),'errorCode':_0x393935(0xdc),'message':'Not\x20a\x20YAML\x20file:\x20'+_0x354efd,'arg':_0x354efd,'helpText':'Segment\x20and\x20journey\x20files\x20must\x20have\x20.yml\x20or\x20.yaml\x20extension'};const _0x1b1fb8=sanitizeFileName(_0x354efd),_0x404f1f=getSegmentRootDir(_0x1b1fb8,cwd);return{'type':'parent_name','parentName':_0x354efd,'targetDir':_0x404f1f,'configRoot':_0x404f1f};}const _0x6aa521=await findTdxConfigAsync(cwd,fs);if(_0x6aa521){const _0x43282b=calculateScopedPath(cwd,_0x6aa521['configDir']);return{'type':_0x393935(0xd4),'parentName':_0x6aa521[_0x393935(0xff)],'targetDir':cwd,'configRoot':_0x6aa521['configDir'],'isScoped':_0x43282b[_0x393935(0xe4)],'scopedFolderPath':_0x43282b['scopedFolderPath']};}if(_0x5c498a){const _0x256b1b=sanitizeFileName(_0x5c498a),_0x1e2e2b=getSegmentRootDir(_0x256b1b,cwd);return{'type':_0x393935(0xd4),'parentName':_0x5c498a,'targetDir':_0x1e2e2b,'configRoot':_0x1e2e2b,'isScoped':![],'scopedFolderPath':''};}return{'type':'error','errorCode':_0x393935(0xd2),'message':_0x393935(0xe5),'helpText':'Use\x20\x27tdx\x20sg\x20use\x20<parent_name>\x27\x20to\x20set\x20context\x0aOr\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_name>\x27\x20to\x20create\x20the\x20folder\x20structure'};}
@@ -1 +1 @@
1
- function a148_0x3782(){const _0x3430ce=['56ffQAwk','cwd','relative','72499OuRfOG','engage_workspace','parent_segment','11NpyiMl','dirname','Invalid\x20tdx.json:\x20expected\x20object','15182700VhMHSB','2256hWWSms','string','object','Invalid\x20JSON\x20in\x20','3295780jughXM','117016Fvtloa','12030ukoWuw','replace','parse','root','join','resolve','stringify','1OCUnrp','Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field','segments','973980dDoTuO','1661582LQmtQr','utf-8','tdx.json','startsWith','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','15rprJuK'];a148_0x3782=function(){return _0x3430ce;};return a148_0x3782();}const a148_0x8317e0=a148_0x42e2;(function(_0x4c92e0,_0x3be850){const _0x343eea=a148_0x42e2,_0x221529=_0x4c92e0();while(!![]){try{const _0x5947f5=parseInt(_0x343eea(0x11c))/0x1*(parseInt(_0x343eea(0x120))/0x2)+parseInt(_0x343eea(0x104))/0x3*(-parseInt(_0x343eea(0x114))/0x4)+parseInt(_0x343eea(0x115))/0x5*(-parseInt(_0x343eea(0x10f))/0x6)+-parseInt(_0x343eea(0x108))/0x7+-parseInt(_0x343eea(0x105))/0x8*(parseInt(_0x343eea(0x11f))/0x9)+-parseInt(_0x343eea(0x113))/0xa*(-parseInt(_0x343eea(0x10b))/0xb)+parseInt(_0x343eea(0x10e))/0xc;if(_0x5947f5===_0x3be850)break;else _0x221529['push'](_0x221529['shift']());}catch(_0x2fcf6b){_0x221529['push'](_0x221529['shift']());}}}(a148_0x3782,0x94233));import{existsSync,readFileSync}from'fs';function a148_0x42e2(_0x5423ba,_0x43c019){_0x5423ba=_0x5423ba-0x101;const _0x3782fb=a148_0x3782();let _0x42e2e2=_0x3782fb[_0x5423ba];return _0x42e2e2;}import a148_0x4f1ea8 from'path';const TDX_CONFIG_FILE=a148_0x8317e0(0x101),SEGMENTS_DIR=a148_0x8317e0(0x11e);export function findTdxConfigPath(_0x18ea9a=process[a148_0x8317e0(0x106)]()){const _0x1995ec=a148_0x8317e0;let _0x57a140=a148_0x4f1ea8[_0x1995ec(0x11a)](_0x18ea9a);const _0xae6600=a148_0x4f1ea8[_0x1995ec(0x117)](_0x57a140)[_0x1995ec(0x118)];while(_0x57a140!==_0xae6600){const _0x370d48=a148_0x4f1ea8[_0x1995ec(0x119)](_0x57a140,TDX_CONFIG_FILE);if(existsSync(_0x370d48))return _0x370d48;_0x57a140=a148_0x4f1ea8['dirname'](_0x57a140);}return null;}export function loadTdxConfig(_0x272e3c){const _0x4d15a6=a148_0x8317e0,_0x523276=readFileSync(_0x272e3c,_0x4d15a6(0x121));let _0x234073;try{_0x234073=JSON['parse'](_0x523276);}catch{throw new Error(_0x4d15a6(0x112)+_0x272e3c);}if(!_0x234073||typeof _0x234073!==_0x4d15a6(0x111))throw new Error(_0x4d15a6(0x10d));const _0x139b50=_0x234073,_0x2e8903=_0x139b50[_0x4d15a6(0x10a)]&&typeof _0x139b50['parent_segment']===_0x4d15a6(0x110),_0x1599a3=_0x139b50[_0x4d15a6(0x109)]&&typeof _0x139b50[_0x4d15a6(0x109)]===_0x4d15a6(0x110);if(!_0x2e8903&&!_0x1599a3)throw new Error(_0x4d15a6(0x11d));const _0x12895e={};return _0x2e8903&&(_0x12895e[_0x4d15a6(0x10a)]=_0x139b50[_0x4d15a6(0x10a)]),_0x1599a3&&(_0x12895e[_0x4d15a6(0x109)]=_0x139b50['engage_workspace']),_0x12895e;}export function findTdxConfig(_0x5e461a=process[a148_0x8317e0(0x106)]()){const _0x5d3bb3=a148_0x8317e0,_0x672604=findTdxConfigPath(_0x5e461a);if(!_0x672604)throw new Error(_0x5d3bb3(0x103));const _0x21ca00=loadTdxConfig(_0x672604),_0x38f252=a148_0x4f1ea8[_0x5d3bb3(0x10c)](_0x672604);return{'config':_0x21ca00,'configPath':_0x672604,'configDir':_0x38f252};}export function tryFindTdxConfig(_0x56aa4f){try{return findTdxConfig(_0x56aa4f);}catch{return null;}}export function getSegmentRootDir(_0x134619,_0x1876ee=process[a148_0x8317e0(0x106)]()){const _0x351740=a148_0x8317e0;return a148_0x4f1ea8[_0x351740(0x119)](_0x1876ee,SEGMENTS_DIR,_0x134619);}export function getTdxConfigPath(_0x49a251,_0x3b54fa=process['cwd']()){const _0x4f458e=a148_0x8317e0;return a148_0x4f1ea8[_0x4f458e(0x119)](getSegmentRootDir(_0x49a251,_0x3b54fa),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0xd97f29,_0x4fcf40){const _0xe82d3c=a148_0x8317e0,_0x499e07=a148_0x4f1ea8[_0xe82d3c(0x11a)](_0xd97f29),_0x37bb88=a148_0x4f1ea8[_0xe82d3c(0x107)](_0x4fcf40,_0x499e07);if(_0x37bb88[_0xe82d3c(0x102)]('..'))return'';return _0x37bb88;}export function localPathToTdFolderPath(_0x4e7ea4){const _0x110182=a148_0x8317e0,_0x47435d=a148_0x4f1ea8['dirname'](_0x4e7ea4);if(_0x47435d==='.'||_0x47435d==='')return'';return _0x47435d[_0x110182(0x116)](/\\/g,'/');}export function tdFolderPathToLocalPath(_0x444e24,_0x559f03){if(!_0x444e24)return _0x559f03;return a148_0x4f1ea8['join'](_0x559f03,_0x444e24);}export function createTdxConfigContent(_0x2d16d6){const _0x9d74d6={'parent_segment':_0x2d16d6};return JSON['stringify'](_0x9d74d6,null,0x2)+'\x0a';}export function createEngageTdxConfigContent(_0x51abc8){const _0x199b8f=a148_0x8317e0,_0x216924={'engage_workspace':_0x51abc8};return JSON[_0x199b8f(0x11b)](_0x216924,null,0x2)+'\x0a';}
1
+ const a148_0x48d31d=a148_0x54c0;(function(_0x3bdb56,_0x36ad62){const _0x5ed044=a148_0x54c0,_0x47388d=_0x3bdb56();while(!![]){try{const _0x4bc162=parseInt(_0x5ed044(0x1cd))/0x1+parseInt(_0x5ed044(0x1c3))/0x2+parseInt(_0x5ed044(0x1c8))/0x3+parseInt(_0x5ed044(0x1cb))/0x4*(parseInt(_0x5ed044(0x1c9))/0x5)+parseInt(_0x5ed044(0x1c0))/0x6*(parseInt(_0x5ed044(0x1c6))/0x7)+parseInt(_0x5ed044(0x1d1))/0x8+-parseInt(_0x5ed044(0x1ce))/0x9*(parseInt(_0x5ed044(0x1dc))/0xa);if(_0x4bc162===_0x36ad62)break;else _0x47388d['push'](_0x47388d['shift']());}catch(_0x5b145f){_0x47388d['push'](_0x47388d['shift']());}}}(a148_0x1a91,0x84646));import{existsSync,readFileSync}from'fs';function a148_0x54c0(_0x1af107,_0x4fa6a0){_0x1af107=_0x1af107-0x1c0;const _0x1a914c=a148_0x1a91();let _0x54c0b7=_0x1a914c[_0x1af107];return _0x54c0b7;}import a148_0x1c3713 from'path';const TDX_CONFIG_FILE=a148_0x48d31d(0x1c5),SEGMENTS_DIR=a148_0x48d31d(0x1d3);export function findTdxConfigPath(_0x46b083=process[a148_0x48d31d(0x1d2)]()){const _0x562146=a148_0x48d31d;let _0x2e9491=a148_0x1c3713['resolve'](_0x46b083);const _0x470bc7=a148_0x1c3713[_0x562146(0x1d4)](_0x2e9491)[_0x562146(0x1c1)];while(_0x2e9491!==_0x470bc7){const _0x233cc5=a148_0x1c3713[_0x562146(0x1cf)](_0x2e9491,TDX_CONFIG_FILE);if(existsSync(_0x233cc5))return _0x233cc5;_0x2e9491=a148_0x1c3713[_0x562146(0x1cc)](_0x2e9491);}return null;}export function loadTdxConfig(_0x136b2e){const _0x583b47=a148_0x48d31d,_0x62cacd=readFileSync(_0x136b2e,'utf-8');let _0x5567df;try{_0x5567df=JSON[_0x583b47(0x1d4)](_0x62cacd);}catch{throw new Error(_0x583b47(0x1c7)+_0x136b2e);}if(!_0x5567df||typeof _0x5567df!=='object')throw new Error(_0x583b47(0x1d6));const _0x598ad5=_0x5567df,_0x17b286=_0x598ad5[_0x583b47(0x1c2)]&&typeof _0x598ad5['parent_segment']===_0x583b47(0x1d5),_0x23f916=_0x598ad5[_0x583b47(0x1d7)]&&typeof _0x598ad5[_0x583b47(0x1d7)]===_0x583b47(0x1d5);if(!_0x17b286&&!_0x23f916)throw new Error(_0x583b47(0x1da));const _0xdf2d81={};return _0x17b286&&(_0xdf2d81[_0x583b47(0x1c2)]=_0x598ad5[_0x583b47(0x1c2)]),_0x23f916&&(_0xdf2d81[_0x583b47(0x1d7)]=_0x598ad5[_0x583b47(0x1d7)]),_0xdf2d81;}export function findTdxConfig(_0x45b140=process[a148_0x48d31d(0x1d2)]()){const _0xf8d0a3=a148_0x48d31d,_0x572200=findTdxConfigPath(_0x45b140);if(!_0x572200)throw new Error(_0xf8d0a3(0x1ca));const _0x342984=loadTdxConfig(_0x572200),_0x4dbd2c=a148_0x1c3713['dirname'](_0x572200);return{'config':_0x342984,'configPath':_0x572200,'configDir':_0x4dbd2c};}export function tryFindTdxConfig(_0x1ee979){try{return findTdxConfig(_0x1ee979);}catch{return null;}}export function getSegmentRootDir(_0x5ebfa2,_0x237558=process[a148_0x48d31d(0x1d2)]()){const _0x41b317=a148_0x48d31d;return a148_0x1c3713[_0x41b317(0x1cf)](_0x237558,SEGMENTS_DIR,_0x5ebfa2);}export function getTdxConfigPath(_0x5352de,_0x25a8f1=process[a148_0x48d31d(0x1d2)]()){const _0x418a77=a148_0x48d31d;return a148_0x1c3713[_0x418a77(0x1cf)](getSegmentRootDir(_0x5352de,_0x25a8f1),TDX_CONFIG_FILE);}export function getRelativePathFromConfig(_0x5160e7,_0x3bb4ec){const _0x18b463=a148_0x48d31d,_0x18cef9=a148_0x1c3713[_0x18b463(0x1d9)](_0x5160e7),_0x22b095=a148_0x1c3713[_0x18b463(0x1d0)](_0x3bb4ec,_0x18cef9);if(_0x22b095[_0x18b463(0x1db)]('..'))return'';return _0x22b095;}export function localPathToTdFolderPath(_0x33950f){const _0xd487b0=a148_0x48d31d,_0x2946b8=a148_0x1c3713['dirname'](_0x33950f);if(_0x2946b8==='.'||_0x2946b8==='')return'';return _0x2946b8[_0xd487b0(0x1c4)](/\\/g,'/');}function a148_0x1a91(){const _0x2b8a41=['84mgGahA','Invalid\x20JSON\x20in\x20','961326OVUTUP','7705LYKyAl','No\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20sg\x20pull\x20<parent_segment>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','1468GcvHVA','dirname','206737mzSfnb','262674odLRGR','join','relative','8314200aEIOQg','cwd','segments','parse','string','Invalid\x20tdx.json:\x20expected\x20object','engage_workspace','stringify','resolve','Invalid\x20tdx.json:\x20must\x20contain\x20\x27parent_segment\x27\x20or\x20\x27engage_workspace\x27\x20field','startsWith','780pMqChU','284592TIZpEc','root','parent_segment','235202yiXmMB','replace','tdx.json'];a148_0x1a91=function(){return _0x2b8a41;};return a148_0x1a91();}export function tdFolderPathToLocalPath(_0x2415c9,_0x51a647){const _0x290969=a148_0x48d31d;if(!_0x2415c9)return _0x51a647;return a148_0x1c3713[_0x290969(0x1cf)](_0x51a647,_0x2415c9);}export function createTdxConfigContent(_0x1bba24){const _0x362154={'parent_segment':_0x1bba24};return JSON['stringify'](_0x362154,null,0x2)+'\x0a';}export function createEngageTdxConfigContent(_0x292122){const _0x1436d1=a148_0x48d31d,_0x492101={'engage_workspace':_0x292122};return JSON[_0x1436d1(0x1d8)](_0x492101,null,0x2)+'\x0a';}
@@ -1 +1 @@
1
- const a149_0x2fb92a=a149_0x10c1;(function(_0x10dd0e,_0x14ef92){const _0x4596d0=a149_0x10c1,_0x5df0de=_0x10dd0e();while(!![]){try{const _0x238033=-parseInt(_0x4596d0(0x132))/0x1*(-parseInt(_0x4596d0(0x145))/0x2)+-parseInt(_0x4596d0(0x12f))/0x3+parseInt(_0x4596d0(0x138))/0x4+parseInt(_0x4596d0(0x130))/0x5+parseInt(_0x4596d0(0x14c))/0x6*(parseInt(_0x4596d0(0x144))/0x7)+-parseInt(_0x4596d0(0x14b))/0x8+-parseInt(_0x4596d0(0x146))/0x9*(parseInt(_0x4596d0(0x147))/0xa);if(_0x238033===_0x14ef92)break;else _0x5df0de['push'](_0x5df0de['shift']());}catch(_0x43a866){_0x5df0de['push'](_0x5df0de['shift']());}}}(a149_0x2d75,0xcedd3));import{z}from'zod';export const ScheduleTypeSchema=z[a149_0x2fb92a(0x135)]([a149_0x2fb92a(0x128),a149_0x2fb92a(0x150),'daily',a149_0x2fb92a(0x139),a149_0x2fb92a(0x13c),a149_0x2fb92a(0x141),a149_0x2fb92a(0x127)]);export const RepeatUnitSchema=z[a149_0x2fb92a(0x135)]([a149_0x2fb92a(0x12c),'hour',a149_0x2fb92a(0x136),a149_0x2fb92a(0x13e),a149_0x2fb92a(0x14a),a149_0x2fb92a(0x13f),a149_0x2fb92a(0x128)]);function a149_0x10c1(_0xb1fdca,_0x134a07){_0xb1fdca=_0xb1fdca-0x124;const _0x2d757e=a149_0x2d75();let _0x10c143=_0x2d757e[_0xb1fdca];return _0x10c143;}export const ScheduleDefSchema=z['object']({'type':ScheduleTypeSchema[a149_0x2fb92a(0x148)](),'repeat_unit':RepeatUnitSchema['optional'](),'repeat_frequency':z[a149_0x2fb92a(0x143)]()[a149_0x2fb92a(0x148)](),'repeat_sub_frequency':z[a149_0x2fb92a(0x151)](z['number']())[a149_0x2fb92a(0x148)](),'start_at':z[a149_0x2fb92a(0x13a)]()[a149_0x2fb92a(0x140)]()['optional'](),'end_on':z[a149_0x2fb92a(0x13a)]()[a149_0x2fb92a(0x140)]()[a149_0x2fb92a(0x148)](),'timezone':z[a149_0x2fb92a(0x13a)]()[a149_0x2fb92a(0x148)]()});export const NotificationDefSchema=z['object']({'notify_on':z[a149_0x2fb92a(0x151)](z[a149_0x2fb92a(0x135)]([a149_0x2fb92a(0x125),a149_0x2fb92a(0x129)]))[a149_0x2fb92a(0x148)](),'email_recipients':z[a149_0x2fb92a(0x151)](z[a149_0x2fb92a(0x13a)]())[a149_0x2fb92a(0x148)]()});export const ActivationColumnDefSchema=z[a149_0x2fb92a(0x126)]([z['string'](),z[a149_0x2fb92a(0x137)]({'name':z['string'](),'type':z['string']()['optional'](),'visibility':z['enum']([a149_0x2fb92a(0x14e),'masked'])['optional']()})]);export const ActivationBehaviorDefSchema=z[a149_0x2fb92a(0x137)]({'columns':z['array'](z[a149_0x2fb92a(0x137)]({'name':z[a149_0x2fb92a(0x13a)](),'type':z[a149_0x2fb92a(0x13a)]()[a149_0x2fb92a(0x148)](),'visibility':z[a149_0x2fb92a(0x135)]([a149_0x2fb92a(0x14e),a149_0x2fb92a(0x13b)])[a149_0x2fb92a(0x148)]()}))[a149_0x2fb92a(0x148)](),'behavior_table':z[a149_0x2fb92a(0x13a)]()[a149_0x2fb92a(0x148)](),'join_row':z['number']()[a149_0x2fb92a(0x140)]()[a149_0x2fb92a(0x148)](),'join_strategy':z[a149_0x2fb92a(0x135)]([a149_0x2fb92a(0x12d),a149_0x2fb92a(0x13d),a149_0x2fb92a(0x134),a149_0x2fb92a(0x142)])[a149_0x2fb92a(0x148)](),'formatting':z['enum']([a149_0x2fb92a(0x131),a149_0x2fb92a(0x149)])['optional'](),'order_by':z[a149_0x2fb92a(0x151)](z[a149_0x2fb92a(0x137)]({'key':z[a149_0x2fb92a(0x13a)](),'order':z[a149_0x2fb92a(0x135)]([a149_0x2fb92a(0x14f),a149_0x2fb92a(0x124)])}))['optional']()});export const ActivationDefSchema=z[a149_0x2fb92a(0x137)]({'name':z['string']()[a149_0x2fb92a(0x14d)](0x1,a149_0x2fb92a(0x12a)),'description':z[a149_0x2fb92a(0x13a)]()[a149_0x2fb92a(0x148)](),'connection':z[a149_0x2fb92a(0x13a)]()[a149_0x2fb92a(0x14d)](0x1,a149_0x2fb92a(0x12e)),'all_columns':z[a149_0x2fb92a(0x12b)]()['optional'](),'columns':z['array'](ActivationColumnDefSchema)['optional'](),'schedule':ScheduleDefSchema['optional'](),'notification':NotificationDefSchema[a149_0x2fb92a(0x148)](),'connector_config':z['record'](z[a149_0x2fb92a(0x13a)](),z[a149_0x2fb92a(0x133)]())['optional'](),'activation_template_id':z[a149_0x2fb92a(0x13a)]()[a149_0x2fb92a(0x140)]()[a149_0x2fb92a(0x148)](),'behavior':ActivationBehaviorDefSchema[a149_0x2fb92a(0x140)]()[a149_0x2fb92a(0x148)](),'run_after_journey_refresh':z[a149_0x2fb92a(0x12b)]()['optional']()});function a149_0x2d75(){const _0x52041f=['onSuccess','union','minutes_interval','none','onFailure','Activation\x20name\x20is\x20required','boolean','minute','All','Connection\x20name\x20is\x20required','3350484pXOeeP','5236425jBwRWz','rows','116034YoVHNW','unknown','Last','enum','day','object','2435904ykRHtR','weekly','string','masked','monthly','First','week','once','nullable','cron','Top-N','number','7679mpXNqd','6COXpwx','9ixgOap','5937400zDvNvi','optional','cols','month','784784GTcekj','3564kCUdcW','min','clear','asc','hourly','array','desc'];a149_0x2d75=function(){return _0x52041f;};return a149_0x2d75();}
1
+ const a149_0x358bbe=a149_0xb35a;(function(_0x4e5bf6,_0x3ab19b){const _0x55824f=a149_0xb35a,_0x2f92f7=_0x4e5bf6();while(!![]){try{const _0xb3b2ff=parseInt(_0x55824f(0x92))/0x1+parseInt(_0x55824f(0x71))/0x2+parseInt(_0x55824f(0x83))/0x3+-parseInt(_0x55824f(0x70))/0x4+-parseInt(_0x55824f(0x94))/0x5+parseInt(_0x55824f(0x73))/0x6+-parseInt(_0x55824f(0x78))/0x7;if(_0xb3b2ff===_0x3ab19b)break;else _0x2f92f7['push'](_0x2f92f7['shift']());}catch(_0x1d27f9){_0x2f92f7['push'](_0x2f92f7['shift']());}}}(a149_0x46bf,0x71f45));import{z}from'zod';export const ScheduleTypeSchema=z['enum']([a149_0x358bbe(0x75),'hourly',a149_0x358bbe(0x72),a149_0x358bbe(0x7f),'monthly',a149_0x358bbe(0x79),a149_0x358bbe(0x7e)]);export const RepeatUnitSchema=z[a149_0x358bbe(0x8b)]([a149_0x358bbe(0x89),a149_0x358bbe(0x82),a149_0x358bbe(0x81),a149_0x358bbe(0x8f),a149_0x358bbe(0x74),a149_0x358bbe(0x6f),a149_0x358bbe(0x75)]);export const ScheduleDefSchema=z['object']({'type':ScheduleTypeSchema['optional'](),'repeat_unit':RepeatUnitSchema['optional'](),'repeat_frequency':z[a149_0x358bbe(0x8d)]()[a149_0x358bbe(0x85)](),'repeat_sub_frequency':z['array'](z[a149_0x358bbe(0x8d)]())[a149_0x358bbe(0x85)](),'start_at':z[a149_0x358bbe(0x7a)]()['nullable']()[a149_0x358bbe(0x85)](),'end_on':z[a149_0x358bbe(0x7a)]()[a149_0x358bbe(0x93)]()[a149_0x358bbe(0x85)](),'timezone':z[a149_0x358bbe(0x7a)]()[a149_0x358bbe(0x85)]()});export const NotificationDefSchema=z[a149_0x358bbe(0x90)]({'notify_on':z[a149_0x358bbe(0x77)](z[a149_0x358bbe(0x8b)]([a149_0x358bbe(0x80),'onFailure']))[a149_0x358bbe(0x85)](),'email_recipients':z[a149_0x358bbe(0x77)](z[a149_0x358bbe(0x7a)]())[a149_0x358bbe(0x85)]()});export const ActivationColumnDefSchema=z[a149_0x358bbe(0x8a)]([z[a149_0x358bbe(0x7a)](),z[a149_0x358bbe(0x90)]({'name':z[a149_0x358bbe(0x7a)](),'type':z[a149_0x358bbe(0x7a)]()[a149_0x358bbe(0x85)](),'visibility':z['enum']([a149_0x358bbe(0x7d),a149_0x358bbe(0x86)])[a149_0x358bbe(0x85)]()})]);function a149_0xb35a(_0x1bbd30,_0x106529){_0x1bbd30=_0x1bbd30-0x6f;const _0x46bf38=a149_0x46bf();let _0xb35a03=_0x46bf38[_0x1bbd30];return _0xb35a03;}function a149_0x46bf(){const _0x514195=['cron','string','First','Activation\x20name\x20is\x20required','clear','minutes_interval','weekly','onSuccess','day','hour','2341194RdXZOk','asc','optional','masked','All','record','minute','union','enum','min','number','cols','week','object','Connection\x20name\x20is\x20required','589834DfuuTj','nullable','836785NgnEXG','unknown','Top-N','Last','once','2928924LPEkJC','368172WZFUci','daily','5072628qmIfkY','month','none','boolean','array','7233877SXQwcz'];a149_0x46bf=function(){return _0x514195;};return a149_0x46bf();}export const ActivationBehaviorDefSchema=z[a149_0x358bbe(0x90)]({'columns':z[a149_0x358bbe(0x77)](z[a149_0x358bbe(0x90)]({'name':z[a149_0x358bbe(0x7a)](),'type':z[a149_0x358bbe(0x7a)]()[a149_0x358bbe(0x85)](),'visibility':z[a149_0x358bbe(0x8b)](['clear',a149_0x358bbe(0x86)])[a149_0x358bbe(0x85)]()}))[a149_0x358bbe(0x85)](),'behavior_table':z[a149_0x358bbe(0x7a)]()[a149_0x358bbe(0x85)](),'join_row':z[a149_0x358bbe(0x8d)]()[a149_0x358bbe(0x93)]()[a149_0x358bbe(0x85)](),'join_strategy':z[a149_0x358bbe(0x8b)]([a149_0x358bbe(0x87),a149_0x358bbe(0x7b),a149_0x358bbe(0x97),a149_0x358bbe(0x96)])[a149_0x358bbe(0x85)](),'formatting':z[a149_0x358bbe(0x8b)](['rows',a149_0x358bbe(0x8e)])['optional'](),'order_by':z['array'](z[a149_0x358bbe(0x90)]({'key':z[a149_0x358bbe(0x7a)](),'order':z[a149_0x358bbe(0x8b)]([a149_0x358bbe(0x84),'desc'])}))['optional']()});export const ActivationDefSchema=z[a149_0x358bbe(0x90)]({'name':z[a149_0x358bbe(0x7a)]()['min'](0x1,a149_0x358bbe(0x7c)),'description':z[a149_0x358bbe(0x7a)]()[a149_0x358bbe(0x85)](),'connection':z[a149_0x358bbe(0x7a)]()[a149_0x358bbe(0x8c)](0x1,a149_0x358bbe(0x91)),'all_columns':z[a149_0x358bbe(0x76)]()[a149_0x358bbe(0x85)](),'columns':z['array'](ActivationColumnDefSchema)['optional'](),'schedule':ScheduleDefSchema[a149_0x358bbe(0x85)](),'notification':NotificationDefSchema[a149_0x358bbe(0x85)](),'connector_config':z[a149_0x358bbe(0x88)](z['string'](),z[a149_0x358bbe(0x95)]())[a149_0x358bbe(0x85)](),'activation_template_id':z['string']()[a149_0x358bbe(0x93)]()[a149_0x358bbe(0x85)](),'behavior':ActivationBehaviorDefSchema[a149_0x358bbe(0x93)]()[a149_0x358bbe(0x85)](),'run_after_journey_refresh':z['boolean']()['optional']()});
@@ -1 +1 @@
1
- function a150_0x4a39(_0x5d1e88,_0x116b7c){_0x5d1e88=_0x5d1e88-0x16b;var _0xa9e2e=a150_0xa9e2();var _0x4a3903=_0xa9e2e[_0x5d1e88];return _0x4a3903;}function a150_0xa9e2(){var _0x391478=['6yllYGM','36iwkBvy','2718308JmpEPy','323987HNHBIU','581710UFJYXb','2984HZXBCM','153KGKCmX','905835twEFhz','3717282raAqou','21623dRYXOn','4661217KqDqfl','4IGIWeU'];a150_0xa9e2=function(){return _0x391478;};return a150_0xa9e2();}(function(_0x3fa579,_0x20fa2a){var _0xa2a476=a150_0x4a39,_0x497727=_0x3fa579();while(!![]){try{var _0x505d96=-parseInt(_0xa2a476(0x175))/0x1+parseInt(_0xa2a476(0x174))/0x2+-parseInt(_0xa2a476(0x16e))/0x3*(parseInt(_0xa2a476(0x171))/0x4)+parseInt(_0xa2a476(0x16d))/0x5*(parseInt(_0xa2a476(0x172))/0x6)+parseInt(_0xa2a476(0x16f))/0x7*(parseInt(_0xa2a476(0x16b))/0x8)+-parseInt(_0xa2a476(0x16c))/0x9*(-parseInt(_0xa2a476(0x176))/0xa)+parseInt(_0xa2a476(0x170))/0xb*(-parseInt(_0xa2a476(0x173))/0xc);if(_0x505d96===_0x20fa2a)break;else _0x497727['push'](_0x497727['shift']());}catch(_0xfcbe17){_0x497727['push'](_0x497727['shift']());}}}(a150_0xa9e2,0xcecff));export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';
1
+ function a150_0x2850(){var _0x5848a5=['10pTeIGt','4dLacsA','2193735TfKMdo','27993876SpzZsC','842YjUuCW','1956NuQGPk','288edoIPo','5382168PgPkaG','287539IAUwJu','11QADUyB','6037929afBCzA','3423963UNxMOB'];a150_0x2850=function(){return _0x5848a5;};return a150_0x2850();}(function(_0x558727,_0x33af70){var _0x5b4913=a150_0x1ec7,_0x1b2442=_0x558727();while(!![]){try{var _0x14a025=parseInt(_0x5b4913(0xe3))/0x1*(parseInt(_0x5b4913(0xe2))/0x2)+-parseInt(_0x5b4913(0xe9))/0x3*(parseInt(_0x5b4913(0xeb))/0x4)+parseInt(_0x5b4913(0xe0))/0x5+-parseInt(_0x5b4913(0xe5))/0x6+-parseInt(_0x5b4913(0xe6))/0x7*(parseInt(_0x5b4913(0xe4))/0x8)+-parseInt(_0x5b4913(0xe8))/0x9*(-parseInt(_0x5b4913(0xea))/0xa)+-parseInt(_0x5b4913(0xe7))/0xb*(-parseInt(_0x5b4913(0xe1))/0xc);if(_0x14a025===_0x33af70)break;else _0x1b2442['push'](_0x1b2442['shift']());}catch(_0x543020){_0x1b2442['push'](_0x1b2442['shift']());}}}(a150_0x2850,0xb6d06));function a150_0x1ec7(_0x46194a,_0x4ac454){_0x46194a=_0x46194a-0xe0;var _0x28507f=a150_0x2850();var _0x1ec7df=_0x28507f[_0x46194a];return _0x1ec7df;}export{JourneyStateTypeSchema,ReentryModeTypeSchema,WaitUnitTypeSchema,StepTypeValueSchema,EmbeddedSegmentDefSchema,CriteriaDefSchema,StepDefSchema,StageDefSchema,JourneyEntryDefSchema,JourneyDefSchema}from'./journey-schema.js';
@@ -1 +1 @@
1
- const a151_0x2c3e2d=a151_0x36d4;(function(_0x429fd5,_0x6244fd){const _0x4b976e=a151_0x36d4,_0x3b29ce=_0x429fd5();while(!![]){try{const _0x45ceda=-parseInt(_0x4b976e(0x96))/0x1+-parseInt(_0x4b976e(0xab))/0x2*(-parseInt(_0x4b976e(0x91))/0x3)+parseInt(_0x4b976e(0x8e))/0x4*(parseInt(_0x4b976e(0x9e))/0x5)+-parseInt(_0x4b976e(0xb1))/0x6*(-parseInt(_0x4b976e(0xb2))/0x7)+parseInt(_0x4b976e(0xb7))/0x8+-parseInt(_0x4b976e(0xa9))/0x9+-parseInt(_0x4b976e(0x97))/0xa*(parseInt(_0x4b976e(0xb4))/0xb);if(_0x45ceda===_0x6244fd)break;else _0x3b29ce['push'](_0x3b29ce['shift']());}catch(_0x284963){_0x3b29ce['push'](_0x3b29ce['shift']());}}}(a151_0x129b,0xf2d1e));import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';function a151_0x129b(){const _0x4f9139=['optional','588614KkTJTf','370wOoobh','Journey\x20name\x20is\x20required','journey','activation','number','refine','decision_point','5EXqbFV','wait','merge','boolean','min','lazy','ab_test','enum','record','reentry_unless_goal_achieved','string','7467930geEkWW','Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions','2JGiznV','no_reentry','week','day','passthrough','journeys','6FYmuOW','92995ChLUJI','stages','133441YHBDcA','reentry_always','isArray','3587536XiYFjS','launched','draft','array','discriminatedUnion','end','jump','filter','3137924zkUXWn','length','object','4846839BxUCzo','literal','versions','type'];a151_0x129b=function(){return _0x4f9139;};return a151_0x129b();}import{ActivationDefSchema}from'./activation-schema.js';export const JourneyStateTypeSchema=z[a151_0x2c3e2d(0xa5)]([a151_0x2c3e2d(0xb9),'simulation',a151_0x2c3e2d(0xb8)]);function a151_0x36d4(_0x5ab396,_0x1e302f){_0x5ab396=_0x5ab396-0x8e;const _0x129b4a=a151_0x129b();let _0x36d458=_0x129b4a[_0x5ab396];return _0x36d458;}export const ReentryModeTypeSchema=z[a151_0x2c3e2d(0xa5)]([a151_0x2c3e2d(0xac),a151_0x2c3e2d(0xa7),a151_0x2c3e2d(0xb5)]);export const WaitUnitTypeSchema=z[a151_0x2c3e2d(0xa5)]([a151_0x2c3e2d(0xae),a151_0x2c3e2d(0xad)]);export const StepTypeValueSchema=z['enum']([a151_0x2c3e2d(0x9f),a151_0x2c3e2d(0x9a),a151_0x2c3e2d(0x9d),'ab_test',a151_0x2c3e2d(0xa0),a151_0x2c3e2d(0xbd),a151_0x2c3e2d(0xbc)]);export const EmbeddedSegmentDefSchema=z[a151_0x2c3e2d(0x90)]({'description':z['string']()[a151_0x2c3e2d(0x95)](),'rule':RuleDefSchema});const JumpTargetDefSchema=z[a151_0x2c3e2d(0x90)]({'journey':z[a151_0x2c3e2d(0xa8)](),'stage':z[a151_0x2c3e2d(0xa8)](),'bundle_id':z[a151_0x2c3e2d(0xa8)]()[a151_0x2c3e2d(0x95)]()});export const CriteriaDefSchema=z[a151_0x2c3e2d(0x90)]({'name':z[a151_0x2c3e2d(0xa8)](),'description':z[a151_0x2c3e2d(0xa8)]()[a151_0x2c3e2d(0x95)](),'segment':z['string'](),'target':JumpTargetDefSchema['optional']()});const WaitConditionTimeoutDefSchema=z[a151_0x2c3e2d(0x90)]({'duration':z[a151_0x2c3e2d(0x9b)](),'unit':WaitUnitTypeSchema,'next':z['string']()[a151_0x2c3e2d(0x95)]()}),WaitConditionDefSchema=z[a151_0x2c3e2d(0x90)]({'segment':z[a151_0x2c3e2d(0xa8)](),'next':z[a151_0x2c3e2d(0xa8)]()['optional'](),'timeout':WaitConditionTimeoutDefSchema[a151_0x2c3e2d(0x95)]()}),WaitStepParamsDefSchema=z[a151_0x2c3e2d(0x90)]({'duration':z[a151_0x2c3e2d(0x9b)]()['optional'](),'unit':WaitUnitTypeSchema['optional'](),'wait_until':z[a151_0x2c3e2d(0xa8)]()['optional'](),'condition':WaitConditionDefSchema[a151_0x2c3e2d(0x95)](),'days_of_week':z['array'](z[a151_0x2c3e2d(0xa8)]())[a151_0x2c3e2d(0x95)]()}),StepBaseFields={'name':z['string'](),'uuid':z[a151_0x2c3e2d(0xa8)]()[a151_0x2c3e2d(0x95)](),'next':z[a151_0x2c3e2d(0xa8)]()[a151_0x2c3e2d(0x95)]()},WaitStepDefSchema=z[a151_0x2c3e2d(0x90)]({...StepBaseFields,'type':z['literal'](a151_0x2c3e2d(0x9f)),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z['object']({'activation':z[a151_0x2c3e2d(0xa8)]()}),ActivationStepDefSchema=z[a151_0x2c3e2d(0x90)]({...StepBaseFields,'type':z['literal'](a151_0x2c3e2d(0x9a)),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z[a151_0x2c3e2d(0x90)]({'name':z[a151_0x2c3e2d(0xa8)](),'segment':z[a151_0x2c3e2d(0xa8)]()[a151_0x2c3e2d(0x95)](),'segment_id':z[a151_0x2c3e2d(0xa8)]()['optional'](),'excluded':z[a151_0x2c3e2d(0xa1)]()[a151_0x2c3e2d(0x95)](),'next':z[a151_0x2c3e2d(0xa8)]()[a151_0x2c3e2d(0x95)]()}),DecisionPointStepParamsDefSchema=z[a151_0x2c3e2d(0x90)]({'branches':z[a151_0x2c3e2d(0xba)](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z[a151_0x2c3e2d(0x90)]({...StepBaseFields,'type':z[a151_0x2c3e2d(0x92)](a151_0x2c3e2d(0x9d)),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z[a151_0x2c3e2d(0x90)]({'id':z[a151_0x2c3e2d(0xa8)]()[a151_0x2c3e2d(0x95)](),'name':z[a151_0x2c3e2d(0xa8)](),'percentage':z[a151_0x2c3e2d(0x9b)](),'next':z[a151_0x2c3e2d(0xa8)]()[a151_0x2c3e2d(0x95)]()}),AbTestStepParamsDefSchema=z[a151_0x2c3e2d(0x90)]({'variants':z[a151_0x2c3e2d(0xba)](AbTestVariantDefSchema),'unique_id':z[a151_0x2c3e2d(0xa8)]()[a151_0x2c3e2d(0x95)](),'customized_split':z[a151_0x2c3e2d(0xa1)]()[a151_0x2c3e2d(0x95)]()}),AbTestStepDefSchema=z[a151_0x2c3e2d(0x90)]({...StepBaseFields,'type':z[a151_0x2c3e2d(0x92)](a151_0x2c3e2d(0xa4)),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z['object']({...StepBaseFields,'type':z[a151_0x2c3e2d(0x92)](a151_0x2c3e2d(0xa0))}),JumpStepParamsDefSchema=z[a151_0x2c3e2d(0x90)]({'target':JumpTargetDefSchema}),JumpStepDefSchema=z[a151_0x2c3e2d(0x90)]({...StepBaseFields,'type':z['literal'](a151_0x2c3e2d(0xbd)),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z[a151_0x2c3e2d(0x90)]({...StepBaseFields,'type':z['literal'](a151_0x2c3e2d(0xbc))})[a151_0x2c3e2d(0xaf)]();export const StepDefSchema=z[a151_0x2c3e2d(0xbb)](a151_0x2c3e2d(0x94),[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);export const StageDefSchema=z[a151_0x2c3e2d(0x90)]({'name':z[a151_0x2c3e2d(0xa8)](),'description':z['string']()[a151_0x2c3e2d(0x95)](),'id':z[a151_0x2c3e2d(0xa8)]()[a151_0x2c3e2d(0x95)](),'entry_criteria':CriteriaDefSchema['optional'](),'exit_criteria':z[a151_0x2c3e2d(0xba)](CriteriaDefSchema)[a151_0x2c3e2d(0x95)](),'milestone':CriteriaDefSchema[a151_0x2c3e2d(0x95)](),'root_step':z[a151_0x2c3e2d(0xa8)]()['optional'](),'steps':z[a151_0x2c3e2d(0xba)](StepDefSchema)[a151_0x2c3e2d(0x95)]()});export const JourneyEntryDefSchema=z[a151_0x2c3e2d(0x90)]({'name':z[a151_0x2c3e2d(0xa8)]()[a151_0x2c3e2d(0x95)](),'version':z[a151_0x2c3e2d(0xa8)]()[a151_0x2c3e2d(0x95)](),'state':JourneyStateTypeSchema['optional'](),'latest':z[a151_0x2c3e2d(0xa1)]()[a151_0x2c3e2d(0x95)](),'stages':z[a151_0x2c3e2d(0xba)](StageDefSchema),'id':z[a151_0x2c3e2d(0xa8)]()[a151_0x2c3e2d(0x95)](),'version_number':z[a151_0x2c3e2d(0x9b)]()[a151_0x2c3e2d(0x95)](),'goal':CriteriaDefSchema[a151_0x2c3e2d(0x95)](),'reentry':ReentryModeTypeSchema[a151_0x2c3e2d(0x95)]()});export const JourneyDefSchema=z[a151_0x2c3e2d(0xa3)](()=>z['object']({'type':z[a151_0x2c3e2d(0x92)](a151_0x2c3e2d(0x99)),'name':z['string']()[a151_0x2c3e2d(0xa2)](0x1,a151_0x2c3e2d(0x98)),'description':z['string']()[a151_0x2c3e2d(0x95)](),'bundle_id':z[a151_0x2c3e2d(0xa8)]()[a151_0x2c3e2d(0x95)](),'bundle_name':z[a151_0x2c3e2d(0xa8)]()[a151_0x2c3e2d(0x95)](),'folder_id':z['string']()[a151_0x2c3e2d(0x95)](),'reentry':ReentryModeTypeSchema[a151_0x2c3e2d(0x95)](),'allow_reentry':z[a151_0x2c3e2d(0xa1)]()[a151_0x2c3e2d(0x95)](),'goal':CriteriaDefSchema[a151_0x2c3e2d(0x95)](),'id':z[a151_0x2c3e2d(0xa8)]()['optional'](),'version':z['string']()[a151_0x2c3e2d(0x95)](),'version_number':z['number']()[a151_0x2c3e2d(0x95)](),'stages':z[a151_0x2c3e2d(0xba)](StageDefSchema)[a151_0x2c3e2d(0x95)](),'versions':z[a151_0x2c3e2d(0xba)](JourneyEntryDefSchema)[a151_0x2c3e2d(0x95)](),'journeys':z[a151_0x2c3e2d(0xba)](JourneyEntryDefSchema)[a151_0x2c3e2d(0x95)](),'segments':z[a151_0x2c3e2d(0xa6)](z[a151_0x2c3e2d(0xa8)](),EmbeddedSegmentDefSchema)['optional'](),'activations':z[a151_0x2c3e2d(0xa6)](z[a151_0x2c3e2d(0xa8)](),ActivationDefSchema)[a151_0x2c3e2d(0x95)]()})[a151_0x2c3e2d(0x9c)](_0x200191=>{const _0x24668f=a151_0x2c3e2d,_0x1e25bd=[_0x200191[_0x24668f(0xb0)],_0x200191[_0x24668f(0xb3)],_0x200191[_0x24668f(0x93)]][_0x24668f(0xbe)](_0x281431=>Array[_0x24668f(0xb6)](_0x281431)&&_0x281431[_0x24668f(0x8f)]>0x0)[_0x24668f(0x8f)];return _0x1e25bd===0x1;},{'message':a151_0x2c3e2d(0xaa)}));const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
1
+ const a151_0x3e8b47=a151_0x567f;(function(_0x6e20d1,_0x572b67){const _0x4e1dbb=a151_0x567f,_0x5d421a=_0x6e20d1();while(!![]){try{const _0x21bc86=-parseInt(_0x4e1dbb(0x1ad))/0x1*(-parseInt(_0x4e1dbb(0x1b0))/0x2)+-parseInt(_0x4e1dbb(0x1c7))/0x3+parseInt(_0x4e1dbb(0x1a3))/0x4*(-parseInt(_0x4e1dbb(0x1c3))/0x5)+-parseInt(_0x4e1dbb(0x19f))/0x6*(-parseInt(_0x4e1dbb(0x1c8))/0x7)+-parseInt(_0x4e1dbb(0x1b6))/0x8*(-parseInt(_0x4e1dbb(0x1be))/0x9)+-parseInt(_0x4e1dbb(0x1a2))/0xa*(parseInt(_0x4e1dbb(0x1c0))/0xb)+parseInt(_0x4e1dbb(0x1a7))/0xc;if(_0x21bc86===_0x572b67)break;else _0x5d421a['push'](_0x5d421a['shift']());}catch(_0x42461f){_0x5d421a['push'](_0x5d421a['shift']());}}}(a151_0x158a,0x6b47f));import{z}from'zod';import{RuleDefSchema}from'./segment-schema.js';import{ActivationDefSchema}from'./activation-schema.js';export const JourneyStateTypeSchema=z['enum']([a151_0x3e8b47(0x1c2),a151_0x3e8b47(0x1c1),a151_0x3e8b47(0x1b2)]);export const ReentryModeTypeSchema=z[a151_0x3e8b47(0x1a0)]([a151_0x3e8b47(0x1aa),'reentry_unless_goal_achieved',a151_0x3e8b47(0x1bc)]);export const WaitUnitTypeSchema=z[a151_0x3e8b47(0x1a0)]([a151_0x3e8b47(0x1ab),a151_0x3e8b47(0x1b9)]);export const StepTypeValueSchema=z['enum']([a151_0x3e8b47(0x1b4),a151_0x3e8b47(0x1ba),'decision_point',a151_0x3e8b47(0x1a5),a151_0x3e8b47(0x1ae),a151_0x3e8b47(0x1c6),a151_0x3e8b47(0x1b1)]);export const EmbeddedSegmentDefSchema=z[a151_0x3e8b47(0x1a1)]({'description':z[a151_0x3e8b47(0x1c5)]()[a151_0x3e8b47(0x1a6)](),'rule':RuleDefSchema});const JumpTargetDefSchema=z['object']({'journey':z[a151_0x3e8b47(0x1c5)](),'stage':z['string'](),'bundle_id':z[a151_0x3e8b47(0x1c5)]()[a151_0x3e8b47(0x1a6)]()});function a151_0x567f(_0x236dd2,_0x1e8d45){_0x236dd2=_0x236dd2-0x19d;const _0x158a11=a151_0x158a();let _0x567fee=_0x158a11[_0x236dd2];return _0x567fee;}export const CriteriaDefSchema=z[a151_0x3e8b47(0x1a1)]({'name':z['string'](),'description':z[a151_0x3e8b47(0x1c5)]()['optional'](),'segment':z[a151_0x3e8b47(0x1c5)](),'target':JumpTargetDefSchema[a151_0x3e8b47(0x1a6)]()});const WaitConditionTimeoutDefSchema=z['object']({'duration':z[a151_0x3e8b47(0x1b8)](),'unit':WaitUnitTypeSchema,'next':z[a151_0x3e8b47(0x1c5)]()['optional']()}),WaitConditionDefSchema=z[a151_0x3e8b47(0x1a1)]({'segment':z[a151_0x3e8b47(0x1c5)](),'next':z[a151_0x3e8b47(0x1c5)]()[a151_0x3e8b47(0x1a6)](),'timeout':WaitConditionTimeoutDefSchema['optional']()}),WaitStepParamsDefSchema=z[a151_0x3e8b47(0x1a1)]({'duration':z[a151_0x3e8b47(0x1b8)]()[a151_0x3e8b47(0x1a6)](),'unit':WaitUnitTypeSchema[a151_0x3e8b47(0x1a6)](),'wait_until':z[a151_0x3e8b47(0x1c5)]()[a151_0x3e8b47(0x1a6)](),'condition':WaitConditionDefSchema['optional'](),'days_of_week':z[a151_0x3e8b47(0x19d)](z['string']())[a151_0x3e8b47(0x1a6)]()}),StepBaseFields={'name':z[a151_0x3e8b47(0x1c5)](),'uuid':z[a151_0x3e8b47(0x1c5)]()[a151_0x3e8b47(0x1a6)](),'next':z[a151_0x3e8b47(0x1c5)]()[a151_0x3e8b47(0x1a6)]()},WaitStepDefSchema=z[a151_0x3e8b47(0x1a1)]({...StepBaseFields,'type':z[a151_0x3e8b47(0x1bf)](a151_0x3e8b47(0x1b4)),'with':WaitStepParamsDefSchema}),ActivationStepParamsDefSchema=z[a151_0x3e8b47(0x1a1)]({'activation':z['string']()}),ActivationStepDefSchema=z[a151_0x3e8b47(0x1a1)]({...StepBaseFields,'type':z['literal'](a151_0x3e8b47(0x1ba)),'with':ActivationStepParamsDefSchema}),DecisionBranchDefSchema=z[a151_0x3e8b47(0x1a1)]({'name':z[a151_0x3e8b47(0x1c5)](),'segment':z[a151_0x3e8b47(0x1c5)]()['optional'](),'segment_id':z['string']()[a151_0x3e8b47(0x1a6)](),'excluded':z[a151_0x3e8b47(0x1bb)]()[a151_0x3e8b47(0x1a6)](),'next':z[a151_0x3e8b47(0x1c5)]()[a151_0x3e8b47(0x1a6)]()}),DecisionPointStepParamsDefSchema=z['object']({'branches':z['array'](DecisionBranchDefSchema)}),DecisionPointStepDefSchema=z[a151_0x3e8b47(0x1a1)]({...StepBaseFields,'type':z['literal'](a151_0x3e8b47(0x1ac)),'with':DecisionPointStepParamsDefSchema}),AbTestVariantDefSchema=z[a151_0x3e8b47(0x1a1)]({'id':z['string']()[a151_0x3e8b47(0x1a6)](),'name':z['string'](),'percentage':z['number'](),'next':z['string']()[a151_0x3e8b47(0x1a6)]()}),AbTestStepParamsDefSchema=z[a151_0x3e8b47(0x1a1)]({'variants':z['array'](AbTestVariantDefSchema),'unique_id':z[a151_0x3e8b47(0x1c5)]()[a151_0x3e8b47(0x1a6)](),'customized_split':z[a151_0x3e8b47(0x1bb)]()['optional']()}),AbTestStepDefSchema=z[a151_0x3e8b47(0x1a1)]({...StepBaseFields,'type':z[a151_0x3e8b47(0x1bf)](a151_0x3e8b47(0x1a5)),'with':AbTestStepParamsDefSchema}),MergeStepDefSchema=z['object']({...StepBaseFields,'type':z[a151_0x3e8b47(0x1bf)](a151_0x3e8b47(0x1ae))}),JumpStepParamsDefSchema=z[a151_0x3e8b47(0x1a1)]({'target':JumpTargetDefSchema}),JumpStepDefSchema=z[a151_0x3e8b47(0x1a1)]({...StepBaseFields,'type':z['literal'](a151_0x3e8b47(0x1c6)),'with':JumpStepParamsDefSchema}),EndStepDefSchema=z['object']({...StepBaseFields,'type':z[a151_0x3e8b47(0x1bf)](a151_0x3e8b47(0x1b1))})[a151_0x3e8b47(0x19e)]();export const StepDefSchema=z['discriminatedUnion'](a151_0x3e8b47(0x1a8),[WaitStepDefSchema,ActivationStepDefSchema,DecisionPointStepDefSchema,AbTestStepDefSchema,MergeStepDefSchema,JumpStepDefSchema,EndStepDefSchema]);export const StageDefSchema=z['object']({'name':z[a151_0x3e8b47(0x1c5)](),'description':z[a151_0x3e8b47(0x1c5)]()[a151_0x3e8b47(0x1a6)](),'id':z['string']()[a151_0x3e8b47(0x1a6)](),'entry_criteria':CriteriaDefSchema[a151_0x3e8b47(0x1a6)](),'exit_criteria':z[a151_0x3e8b47(0x19d)](CriteriaDefSchema)[a151_0x3e8b47(0x1a6)](),'milestone':CriteriaDefSchema['optional'](),'root_step':z[a151_0x3e8b47(0x1c5)]()[a151_0x3e8b47(0x1a6)](),'steps':z[a151_0x3e8b47(0x19d)](StepDefSchema)[a151_0x3e8b47(0x1a6)]()});export const JourneyEntryDefSchema=z[a151_0x3e8b47(0x1a1)]({'name':z['string']()[a151_0x3e8b47(0x1a6)](),'version':z[a151_0x3e8b47(0x1c5)]()['optional'](),'state':JourneyStateTypeSchema['optional'](),'latest':z[a151_0x3e8b47(0x1bb)]()[a151_0x3e8b47(0x1a6)](),'stages':z['array'](StageDefSchema),'id':z[a151_0x3e8b47(0x1c5)]()[a151_0x3e8b47(0x1a6)](),'version_number':z['number']()[a151_0x3e8b47(0x1a6)](),'goal':CriteriaDefSchema[a151_0x3e8b47(0x1a6)](),'reentry':ReentryModeTypeSchema[a151_0x3e8b47(0x1a6)]()});export const JourneyDefSchema=z[a151_0x3e8b47(0x1a4)](()=>z['object']({'type':z[a151_0x3e8b47(0x1bf)](a151_0x3e8b47(0x1a9)),'name':z[a151_0x3e8b47(0x1c5)]()['min'](0x1,a151_0x3e8b47(0x1ca)),'description':z[a151_0x3e8b47(0x1c5)]()['optional'](),'bundle_id':z['string']()[a151_0x3e8b47(0x1a6)](),'bundle_name':z['string']()[a151_0x3e8b47(0x1a6)](),'folder_id':z['string']()['optional'](),'reentry':ReentryModeTypeSchema[a151_0x3e8b47(0x1a6)](),'allow_reentry':z['boolean']()[a151_0x3e8b47(0x1a6)](),'goal':CriteriaDefSchema[a151_0x3e8b47(0x1a6)](),'id':z[a151_0x3e8b47(0x1c5)]()[a151_0x3e8b47(0x1a6)](),'version':z[a151_0x3e8b47(0x1c5)]()['optional'](),'version_number':z[a151_0x3e8b47(0x1b8)]()[a151_0x3e8b47(0x1a6)](),'stages':z['array'](StageDefSchema)[a151_0x3e8b47(0x1a6)](),'versions':z[a151_0x3e8b47(0x19d)](JourneyEntryDefSchema)[a151_0x3e8b47(0x1a6)](),'journeys':z['array'](JourneyEntryDefSchema)[a151_0x3e8b47(0x1a6)](),'segments':z[a151_0x3e8b47(0x1b3)](z[a151_0x3e8b47(0x1c5)](),EmbeddedSegmentDefSchema)['optional'](),'activations':z[a151_0x3e8b47(0x1b3)](z[a151_0x3e8b47(0x1c5)](),ActivationDefSchema)[a151_0x3e8b47(0x1a6)]()})[a151_0x3e8b47(0x1bd)](_0x191c68=>{const _0x40b6a6=a151_0x3e8b47,_0x2e047f=[_0x191c68['journeys'],_0x191c68[_0x40b6a6(0x1c9)],_0x191c68['versions']][_0x40b6a6(0x1af)](_0x337c36=>Array[_0x40b6a6(0x1b7)](_0x337c36)&&_0x337c36[_0x40b6a6(0x1b5)]>0x0)[_0x40b6a6(0x1b5)];return _0x2e047f===0x1;},{'message':a151_0x3e8b47(0x1c4)}));const _syncCheck1=!![],_syncCheck2=!![];function a151_0x158a(){const _0x82826=['4981944jTdOrY','type','journey','no_reentry','day','decision_point','1597oqiMSx','merge','filter','4KObvYX','end','launched','record','wait','length','191408xVtCAx','isArray','number','week','activation','boolean','reentry_always','refine','162zwtOHU','literal','11epvNQr','simulation','draft','5EMvwUO','Journey\x20must\x20have\x20exactly\x20one\x20of:\x20journeys,\x20stages,\x20or\x20versions','string','jump','543669qUUjKA','364bQlGlr','stages','Journey\x20name\x20is\x20required','array','passthrough','63402lWCbEt','enum','object','1061210rSOgMw','2686964ZNLRdA','lazy','ab_test','optional'];a151_0x158a=function(){return _0x82826;};return a151_0x158a();}void _syncCheck1,void _syncCheck2;
@@ -1 +1 @@
1
- (function(_0x5c0473,_0x2837d8){var _0x232dbe=a153_0x3a54,_0x434401=_0x5c0473();while(!![]){try{var _0x4f4817=parseInt(_0x232dbe(0x14a))/0x1+parseInt(_0x232dbe(0x149))/0x2+parseInt(_0x232dbe(0x145))/0x3*(-parseInt(_0x232dbe(0x146))/0x4)+parseInt(_0x232dbe(0x14c))/0x5+-parseInt(_0x232dbe(0x14d))/0x6*(-parseInt(_0x232dbe(0x148))/0x7)+-parseInt(_0x232dbe(0x14b))/0x8+parseInt(_0x232dbe(0x14e))/0x9*(-parseInt(_0x232dbe(0x147))/0xa);if(_0x4f4817===_0x2837d8)break;else _0x434401['push'](_0x434401['shift']());}catch(_0x3673ea){_0x434401['push'](_0x434401['shift']());}}}(a153_0x469c,0x20e80));export{OperatorTypeSchema,TimeUnitSchema,AggregationTypeSchema,ArrayMatchingSchema,OperatorDefSchema,AggregationDefSchema,TimeWindowDefSchema,FilterColumnConditionDefSchema,FilterRuleDefSchema,ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema,ConditionDefSchema,RuleDefSchema,SegmentDefSchema}from'./segment-schema.js';function a153_0x469c(){var _0x439390=['295071PJTiHS','4wzBiqw','56930WBIibW','14KpYBPV','41768fLfkPg','197038gOwRMb','1452168wFPMHV','1129710kgoYnw','356448qGXwaw','234gBahWG'];a153_0x469c=function(){return _0x439390;};return a153_0x469c();}function a153_0x3a54(_0x53a424,_0x432b4d){_0x53a424=_0x53a424-0x145;var _0x469c55=a153_0x469c();var _0x3a5417=_0x469c55[_0x53a424];return _0x3a5417;}export{ScheduleTypeSchema,RepeatUnitSchema,ScheduleDefSchema,NotificationDefSchema,ActivationColumnDefSchema,ActivationBehaviorDefSchema,ActivationDefSchema}from'./activation-schema.js';
1
+ (function(_0x263325,_0x5bbed5){var _0x5c4e0c=a153_0x23e0,_0x2a6aac=_0x263325();while(!![]){try{var _0x3f7e6b=-parseInt(_0x5c4e0c(0x167))/0x1+parseInt(_0x5c4e0c(0x16c))/0x2*(-parseInt(_0x5c4e0c(0x16e))/0x3)+parseInt(_0x5c4e0c(0x169))/0x4+parseInt(_0x5c4e0c(0x166))/0x5*(-parseInt(_0x5c4e0c(0x16f))/0x6)+-parseInt(_0x5c4e0c(0x16b))/0x7+parseInt(_0x5c4e0c(0x16a))/0x8*(parseInt(_0x5c4e0c(0x16d))/0x9)+parseInt(_0x5c4e0c(0x168))/0xa;if(_0x3f7e6b===_0x5bbed5)break;else _0x2a6aac['push'](_0x2a6aac['shift']());}catch(_0x198ea9){_0x2a6aac['push'](_0x2a6aac['shift']());}}}(a153_0x23e1,0xdb3a0));export{OperatorTypeSchema,TimeUnitSchema,AggregationTypeSchema,ArrayMatchingSchema,OperatorDefSchema,AggregationDefSchema,TimeWindowDefSchema,FilterColumnConditionDefSchema,FilterRuleDefSchema,ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema,ConditionDefSchema,RuleDefSchema,SegmentDefSchema}from'./segment-schema.js';function a153_0x23e0(_0x1864aa,_0x12b7f9){_0x1864aa=_0x1864aa-0x166;var _0x23e1f3=a153_0x23e1();var _0x23e0b7=_0x23e1f3[_0x1864aa];return _0x23e0b7;}export{ScheduleTypeSchema,RepeatUnitSchema,ScheduleDefSchema,NotificationDefSchema,ActivationColumnDefSchema,ActivationBehaviorDefSchema,ActivationDefSchema}from'./activation-schema.js';function a153_0x23e1(){var _0x5bd118=['7869911jhErbB','666zAjtMn','45FIaGBU','15027BAalvX','6778698HCzZFm','5KoQWTc','111613wDNAEQ','39219680ZExKuh','2811860jUJVgN','490696eXigcH'];a153_0x23e1=function(){return _0x5bd118;};return a153_0x23e1();}
@@ -1 +1 @@
1
- function a154_0x2689(_0x22ce9d,_0x44b29c){_0x22ce9d=_0x22ce9d-0x1b8;const _0x2a71c5=a154_0x2a71();let _0x2689e3=_0x2a71c5[_0x22ce9d];return _0x2689e3;}const a154_0x123dcf=a154_0x2689;(function(_0x41a141,_0x4ca008){const _0x5b191b=a154_0x2689,_0x5dc12c=_0x41a141();while(!![]){try{const _0x4a7905=parseInt(_0x5b191b(0x1e0))/0x1+-parseInt(_0x5b191b(0x1df))/0x2+parseInt(_0x5b191b(0x1e6))/0x3+parseInt(_0x5b191b(0x1ce))/0x4+-parseInt(_0x5b191b(0x1fc))/0x5*(parseInt(_0x5b191b(0x1f6))/0x6)+-parseInt(_0x5b191b(0x1f1))/0x7*(-parseInt(_0x5b191b(0x1eb))/0x8)+-parseInt(_0x5b191b(0x1cf))/0x9*(parseInt(_0x5b191b(0x1cb))/0xa);if(_0x4a7905===_0x4ca008)break;else _0x5dc12c['push'](_0x5dc12c['shift']());}catch(_0xd145de){_0x5dc12c['push'](_0x5dc12c['shift']());}}}(a154_0x2a71,0x6eeb2));import{z}from'zod';export const OperatorTypeSchema=z['enum']([a154_0x123dcf(0x1e9),'Greater',a154_0x123dcf(0x1ea),a154_0x123dcf(0x1bf),a154_0x123dcf(0x1f2),'In',a154_0x123dcf(0x1da),a154_0x123dcf(0x1c0),a154_0x123dcf(0x1f0),'TimeWithinPast',a154_0x123dcf(0x1c7),a154_0x123dcf(0x1ef),a154_0x123dcf(0x1b9),'EndWith',a154_0x123dcf(0x204)]);export const TimeUnitSchema=z[a154_0x123dcf(0x1e3)]([a154_0x123dcf(0x1bb),a154_0x123dcf(0x1c4),'hour',a154_0x123dcf(0x1d9),a154_0x123dcf(0x1fa),a154_0x123dcf(0x1d8),a154_0x123dcf(0x1e1)]);function a154_0x2a71(){const _0x24f7cc=['boolean','array','minute','MISSING_TIME_UNIT','operator','TimeWithinNext','has','custom','Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','25850hFafgU','Count','min','966176lmCJfS','405LsQOaM','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','number','And','addIssue','duration','Segment\x20reference\x20must\x20not\x20be\x20empty','Value','literal','month','day','Between','any','Column','union','max','1049054hkFtIg','110737MrobZT','year','lazy','enum','object','EndWith','1779957RDWtAG','type','TimeWithinPast','Equal','Less','8mNgzgE','TimeRange\x20operator\x20requires\x20\x27duration\x27','batch','column','Contain','IsNull','3943163xKwOhj','LessEqual','First','Last','MISSING_BETWEEN_BOUNDS','2482410tIVqqf','TimeRange\x20operator\x20requires\x20\x27from\x27','discriminatedUnion','\x27\x20requires\x20a\x20time\x20unit','week','superRefine','5SRWsik','unit','string','Min','CountDistinct','Segment\x20name\x20is\x20required','Sum','from','TimeRange','Average','Behavior','StartWith','Greater','second','optional','Max','value','GreaterEqual','Regexp','Operator\x20\x27'];a154_0x2a71=function(){return _0x24f7cc;};return a154_0x2a71();}export const AggregationTypeSchema=z[a154_0x123dcf(0x1e3)](['Count',a154_0x123dcf(0x202),a154_0x123dcf(0x205),a154_0x123dcf(0x1ff),a154_0x123dcf(0x1bd),a154_0x123dcf(0x200),a154_0x123dcf(0x1f3),a154_0x123dcf(0x1f4)]);const TemporalValueSchema=z[a154_0x123dcf(0x1dd)]([z[a154_0x123dcf(0x1e4)]({'timestamp':z[a154_0x123dcf(0x1fe)]()}),z['object']({'last':z[a154_0x123dcf(0x1dd)]([z[a154_0x123dcf(0x1d1)](),z['record'](z[a154_0x123dcf(0x1fe)](),z[a154_0x123dcf(0x1d1)]())]),'unit':z[a154_0x123dcf(0x1fe)]()})]),OperatorValueSchema=z[a154_0x123dcf(0x1dd)]([z[a154_0x123dcf(0x1fe)](),z[a154_0x123dcf(0x1d1)](),z['boolean'](),TemporalValueSchema,z[a154_0x123dcf(0x1c3)](z[a154_0x123dcf(0x1dd)]([z['string'](),z[a154_0x123dcf(0x1d1)](),z['boolean']()]))]),OPERATORS_REQUIRING_VALUE=new Set([a154_0x123dcf(0x1e9),a154_0x123dcf(0x1ba),a154_0x123dcf(0x1bf),a154_0x123dcf(0x1ea),'LessEqual','In',a154_0x123dcf(0x1ef),a154_0x123dcf(0x1b9),a154_0x123dcf(0x1e5),a154_0x123dcf(0x1c0),a154_0x123dcf(0x1e8),'TimeWithinNext']),OPERATORS_REQUIRING_UNIT=new Set([a154_0x123dcf(0x1e8),'TimeWithinNext']);export const OperatorDefSchema=z[a154_0x123dcf(0x1e4)]({'type':OperatorTypeSchema,'not':z[a154_0x123dcf(0x1c2)]()[a154_0x123dcf(0x1bc)](),'value':OperatorValueSchema[a154_0x123dcf(0x1bc)](),'min':z[a154_0x123dcf(0x1dd)]([z[a154_0x123dcf(0x1d1)](),z[a154_0x123dcf(0x1fe)](),TemporalValueSchema])[a154_0x123dcf(0x1bc)](),'max':z[a154_0x123dcf(0x1dd)]([z[a154_0x123dcf(0x1d1)](),z[a154_0x123dcf(0x1fe)](),TemporalValueSchema])[a154_0x123dcf(0x1bc)](),'unit':TimeUnitSchema[a154_0x123dcf(0x1bc)](),'duration':z[a154_0x123dcf(0x1e4)]({'day':z['number']()['optional'](),'week':z[a154_0x123dcf(0x1d1)]()[a154_0x123dcf(0x1bc)](),'month':z[a154_0x123dcf(0x1d1)]()[a154_0x123dcf(0x1bc)](),'year':z[a154_0x123dcf(0x1d1)]()[a154_0x123dcf(0x1bc)](),'hour':z['number']()[a154_0x123dcf(0x1bc)](),'minute':z['number']()[a154_0x123dcf(0x1bc)](),'second':z['number']()['optional']()})['optional'](),'from':z[a154_0x123dcf(0x1e4)]({'last':z[a154_0x123dcf(0x1dd)]([z[a154_0x123dcf(0x1d1)](),z[a154_0x123dcf(0x1fe)]()]),'unit':TimeUnitSchema})['optional'](),'reverse':z[a154_0x123dcf(0x1c2)]()[a154_0x123dcf(0x1bc)]()})['superRefine']((_0x1d355a,_0x58d613)=>{const _0x1e93ec=a154_0x123dcf;OPERATORS_REQUIRING_VALUE[_0x1e93ec(0x1c8)](_0x1d355a[_0x1e93ec(0x1e7)])&&(_0x1d355a['value']===undefined||_0x1d355a['value']===null)&&_0x58d613['addIssue']({'code':'custom','message':_0x1e93ec(0x1c1)+_0x1d355a[_0x1e93ec(0x1e7)]+'\x27\x20requires\x20a\x20value','path':[_0x1e93ec(0x1be)]}),_0x1d355a['type']===_0x1e93ec(0x1da)&&_0x1d355a['min']===undefined&&_0x1d355a[_0x1e93ec(0x1de)]===undefined&&_0x58d613['addIssue']({'code':_0x1e93ec(0x1c9),'message':_0x1e93ec(0x1ca),'params':{'validationCode':_0x1e93ec(0x1f5)}}),OPERATORS_REQUIRING_UNIT[_0x1e93ec(0x1c8)](_0x1d355a[_0x1e93ec(0x1e7)])&&_0x1d355a[_0x1e93ec(0x1be)]!==undefined&&!_0x1d355a[_0x1e93ec(0x1fd)]&&_0x58d613['addIssue']({'code':_0x1e93ec(0x1c9),'message':_0x1e93ec(0x1c1)+_0x1d355a[_0x1e93ec(0x1e7)]+_0x1e93ec(0x1f9),'path':[_0x1e93ec(0x1fd)],'params':{'validationCode':_0x1e93ec(0x1c5)}}),_0x1d355a[_0x1e93ec(0x1e7)]==='TimeRange'&&(!_0x1d355a[_0x1e93ec(0x1d4)]&&_0x58d613[_0x1e93ec(0x1d3)]({'code':'custom','message':_0x1e93ec(0x1ec),'path':[_0x1e93ec(0x1d4)]}),!_0x1d355a[_0x1e93ec(0x203)]&&_0x58d613[_0x1e93ec(0x1d3)]({'code':'custom','message':_0x1e93ec(0x1f7),'path':[_0x1e93ec(0x203)]}));});export const ArrayMatchingSchema=z[a154_0x123dcf(0x1dd)]([z[a154_0x123dcf(0x1d7)]('any'),z[a154_0x123dcf(0x1d7)]('all'),z[a154_0x123dcf(0x1e4)]({'atLeast':z[a154_0x123dcf(0x1d1)]()}),z[a154_0x123dcf(0x1e4)]({'atMost':z[a154_0x123dcf(0x1d1)]()}),z[a154_0x123dcf(0x1e4)]({'exactly':z[a154_0x123dcf(0x1d1)]()})]);export const AggregationDefSchema=z[a154_0x123dcf(0x1f8)](a154_0x123dcf(0x1e7),[z[a154_0x123dcf(0x1e4)]({'type':z['enum'](['Sum','Min',a154_0x123dcf(0x1bd),a154_0x123dcf(0x205)]),'column':z['string'](),'groupingColumns':z[a154_0x123dcf(0x1c3)](z[a154_0x123dcf(0x1fe)]())['optional']()}),z[a154_0x123dcf(0x1e4)]({'type':z[a154_0x123dcf(0x1d7)](a154_0x123dcf(0x1cc)),'groupingColumns':z[a154_0x123dcf(0x1c3)](z['string']())[a154_0x123dcf(0x1bc)]()}),z[a154_0x123dcf(0x1e4)]({'type':z[a154_0x123dcf(0x1d7)]('CountDistinct'),'columns':z['array'](z['string']())}),z[a154_0x123dcf(0x1e4)]({'type':z[a154_0x123dcf(0x1e3)]([a154_0x123dcf(0x1f3),a154_0x123dcf(0x1f4)]),'column':z['string'](),'orderColumn':z['string'](),'groupingColumns':z[a154_0x123dcf(0x1c3)](z[a154_0x123dcf(0x1fe)]())[a154_0x123dcf(0x1bc)]()})]);export const TimeWindowDefSchema=z['object']({'duration':z[a154_0x123dcf(0x1d1)](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a154_0x123dcf(0x1e8),a154_0x123dcf(0x1c7),a154_0x123dcf(0x204)]);export const FilterColumnConditionDefSchema=z[a154_0x123dcf(0x1e4)]({'type':z[a154_0x123dcf(0x1d7)](a154_0x123dcf(0x1dc)),'column':z[a154_0x123dcf(0x1fe)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a154_0x123dcf(0x1bc)]()})[a154_0x123dcf(0x1fb)]((_0x51a118,_0x353a82)=>{const _0x238509=a154_0x123dcf,_0x530d55=_0x51a118['operator'][_0x238509(0x1e7)];_0x51a118[_0x238509(0x1ee)]==='timestamp'?!TIMESTAMP_OPERATORS['has'](_0x530d55)&&_0x353a82[_0x238509(0x1d3)]({'code':_0x238509(0x1c9),'message':'Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27'+_0x530d55+'\x27)','path':[_0x238509(0x1c6),_0x238509(0x1e7)]}):TIMESTAMP_OPERATORS[_0x238509(0x1c8)](_0x530d55)&&_0x353a82[_0x238509(0x1d3)]({'code':_0x238509(0x1c9),'message':_0x238509(0x1c1)+_0x530d55+_0x238509(0x1d0),'path':[_0x238509(0x1c6),_0x238509(0x1e7)]});});export const FilterRuleDefSchema=z[a154_0x123dcf(0x1e4)]({'type':z[a154_0x123dcf(0x1d7)]('And'),'conditions':z[a154_0x123dcf(0x1c3)](FilterColumnConditionDefSchema)});export const ValueConditionDefSchema=z[a154_0x123dcf(0x1e2)](()=>z['object']({'type':z[a154_0x123dcf(0x1d7)](a154_0x123dcf(0x1d6)),'attribute':z[a154_0x123dcf(0x1fe)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a154_0x123dcf(0x1bc)](),'exclude':z[a154_0x123dcf(0x1c2)]()[a154_0x123dcf(0x1bc)](),'aggregation':AggregationDefSchema[a154_0x123dcf(0x1bc)](),'source':z[a154_0x123dcf(0x1fe)]()[a154_0x123dcf(0x1bc)](),'filter':FilterRuleDefSchema[a154_0x123dcf(0x1bc)](),'limit':z[a154_0x123dcf(0x1d1)]()[a154_0x123dcf(0x1bc)]()}));export const BehaviorConditionDefSchema=z[a154_0x123dcf(0x1e2)](()=>z[a154_0x123dcf(0x1e4)]({'type':z[a154_0x123dcf(0x1d7)](a154_0x123dcf(0x1b8)),'attribute':z[a154_0x123dcf(0x1fe)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a154_0x123dcf(0x1bc)](),'exclude':z[a154_0x123dcf(0x1c2)]()[a154_0x123dcf(0x1bc)](),'aggregation':AggregationDefSchema[a154_0x123dcf(0x1bc)](),'source':z[a154_0x123dcf(0x1fe)]()[a154_0x123dcf(0x1bc)](),'filter':FilterRuleDefSchema[a154_0x123dcf(0x1bc)](),'timeWindow':TimeWindowDefSchema[a154_0x123dcf(0x1bc)](),'limit':z['number']()[a154_0x123dcf(0x1bc)]()}));export const ColumnConditionDefSchema=z['object']({'type':z[a154_0x123dcf(0x1d7)]('Column'),'column':z[a154_0x123dcf(0x1fe)](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z['lazy'](()=>z[a154_0x123dcf(0x1e4)]({'type':z['enum']([a154_0x123dcf(0x1d2),'Or']),'conditions':z[a154_0x123dcf(0x1c3)](ConditionDefSchema),'description':z[a154_0x123dcf(0x1fe)]()[a154_0x123dcf(0x1bc)]()}));export const SegmentRefConditionDefSchema=z[a154_0x123dcf(0x1e4)]({'type':z[a154_0x123dcf(0x1e3)](['include','exclude']),'segment':z[a154_0x123dcf(0x1fe)]()['min'](0x1,a154_0x123dcf(0x1d5))});export const ConditionDefSchema=z[a154_0x123dcf(0x1e2)](()=>z['union']([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z[a154_0x123dcf(0x1e2)](()=>z['object']({'type':z[a154_0x123dcf(0x1e3)](['And','Or']),'conditions':z[a154_0x123dcf(0x1c3)](ConditionDefSchema),'description':z[a154_0x123dcf(0x1fe)]()[a154_0x123dcf(0x1bc)]()}));export const SegmentDefSchema=z[a154_0x123dcf(0x1e4)]({'type':z['literal']('segment')['optional'](),'name':z[a154_0x123dcf(0x1fe)]()[a154_0x123dcf(0x1cd)](0x1,a154_0x123dcf(0x201)),'description':z['string']()[a154_0x123dcf(0x1bc)](),'folder':z[a154_0x123dcf(0x1fe)]()[a154_0x123dcf(0x1bc)](),'rule':RuleDefSchema['optional'](),'kind':z[a154_0x123dcf(0x1e3)]([a154_0x123dcf(0x1ed),'realtime','funnel_stage'])['optional'](),'visible':z[a154_0x123dcf(0x1c2)]()['optional'](),'activations':z[a154_0x123dcf(0x1c3)](z[a154_0x123dcf(0x1db)]())[a154_0x123dcf(0x1bc)]()});const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
1
+ const a154_0x48a438=a154_0x5d65;(function(_0x18a3fe,_0x3ff2aa){const _0x5477c5=a154_0x5d65,_0xb9b1d=_0x18a3fe();while(!![]){try{const _0x1de1ca=parseInt(_0x5477c5(0x201))/0x1*(parseInt(_0x5477c5(0x205))/0x2)+parseInt(_0x5477c5(0x1e5))/0x3*(-parseInt(_0x5477c5(0x1e1))/0x4)+parseInt(_0x5477c5(0x1f3))/0x5+parseInt(_0x5477c5(0x211))/0x6+parseInt(_0x5477c5(0x1df))/0x7*(parseInt(_0x5477c5(0x1f4))/0x8)+parseInt(_0x5477c5(0x217))/0x9+-parseInt(_0x5477c5(0x202))/0xa*(parseInt(_0x5477c5(0x1ea))/0xb);if(_0x1de1ca===_0x3ff2aa)break;else _0xb9b1d['push'](_0xb9b1d['shift']());}catch(_0x544c85){_0xb9b1d['push'](_0xb9b1d['shift']());}}}(a154_0x3726,0x9a047));function a154_0x3726(){const _0x29f83d=['5057085EnNxae','9247032JgVsmg','realtime','lazy','segment','TimeRange\x20operator\x20requires\x20\x27duration\x27','operator','duration','Timestamp\x20column\x20only\x20supports\x20TimeWithinPast,\x20TimeWithinNext,\x20or\x20TimeRange\x20operators\x20(got\x20\x27','TimeRange','Segment\x20name\x20is\x20required','union','hour','addIssue','1VUIvdo','5674210DozLHy','First','Sum','911158uJnUZL','Count','TimeWithinNext','Between','literal','Column','superRefine','object','record','enum','CountDistinct','And','6516168CqrZSl','Greater','\x27\x20requires\x20a\x20time\x20unit','any','Max','unit','1353708QgWKow','month','boolean','type','include','value','Contain','week','StartWith','Less','TimeWithinPast','EndWith','min','year','has','\x27\x20is\x20only\x20valid\x20for\x20the\x20\x27timestamp\x27\x20column','day','string','Segment\x20reference\x20must\x20not\x20be\x20empty','timestamp','7YtQehr','funnel_stage','147504xRZNWb','GreaterEqual','Regexp','Operator\x20\x27','78bEqeSK','Between\x20operator\x20requires\x20\x27min\x27\x20and/or\x20\x27max\x27\x20values','LessEqual','from','Min','44tictFt','Average','array','batch','second','optional','Last','custom','number'];a154_0x3726=function(){return _0x29f83d;};return a154_0x3726();}import{z}from'zod';export const OperatorTypeSchema=z[a154_0x48a438(0x20e)](['Equal',a154_0x48a438(0x212),a154_0x48a438(0x220),a154_0x48a438(0x1e2),'LessEqual','In',a154_0x48a438(0x208),a154_0x48a438(0x1e3),'IsNull','TimeWithinPast','TimeWithinNext',a154_0x48a438(0x21d),'StartWith',a154_0x48a438(0x222),a154_0x48a438(0x1fc)]);export const TimeUnitSchema=z['enum']([a154_0x48a438(0x1ee),'minute',a154_0x48a438(0x1ff),a154_0x48a438(0x1db),a154_0x48a438(0x21e),a154_0x48a438(0x218),a154_0x48a438(0x1d8)]);export const AggregationTypeSchema=z[a154_0x48a438(0x20e)](['Count',a154_0x48a438(0x204),a154_0x48a438(0x1eb),'Min',a154_0x48a438(0x215),a154_0x48a438(0x20f),a154_0x48a438(0x203),a154_0x48a438(0x1f0)]);const TemporalValueSchema=z['union']([z[a154_0x48a438(0x20c)]({'timestamp':z[a154_0x48a438(0x1dc)]()}),z[a154_0x48a438(0x20c)]({'last':z['union']([z['number'](),z[a154_0x48a438(0x20d)](z[a154_0x48a438(0x1dc)](),z[a154_0x48a438(0x1f2)]())]),'unit':z['string']()})]),OperatorValueSchema=z['union']([z[a154_0x48a438(0x1dc)](),z[a154_0x48a438(0x1f2)](),z[a154_0x48a438(0x219)](),TemporalValueSchema,z[a154_0x48a438(0x1ec)](z[a154_0x48a438(0x1fe)]([z[a154_0x48a438(0x1dc)](),z[a154_0x48a438(0x1f2)](),z[a154_0x48a438(0x219)]()]))]),OPERATORS_REQUIRING_VALUE=new Set(['Equal',a154_0x48a438(0x212),'GreaterEqual',a154_0x48a438(0x220),a154_0x48a438(0x1e7),'In','Contain',a154_0x48a438(0x21f),a154_0x48a438(0x222),a154_0x48a438(0x1e3),a154_0x48a438(0x221),a154_0x48a438(0x207)]),OPERATORS_REQUIRING_UNIT=new Set([a154_0x48a438(0x221),a154_0x48a438(0x207)]);export const OperatorDefSchema=z[a154_0x48a438(0x20c)]({'type':OperatorTypeSchema,'not':z[a154_0x48a438(0x219)]()[a154_0x48a438(0x1ef)](),'value':OperatorValueSchema[a154_0x48a438(0x1ef)](),'min':z[a154_0x48a438(0x1fe)]([z[a154_0x48a438(0x1f2)](),z[a154_0x48a438(0x1dc)](),TemporalValueSchema])[a154_0x48a438(0x1ef)](),'max':z[a154_0x48a438(0x1fe)]([z[a154_0x48a438(0x1f2)](),z[a154_0x48a438(0x1dc)](),TemporalValueSchema])[a154_0x48a438(0x1ef)](),'unit':TimeUnitSchema[a154_0x48a438(0x1ef)](),'duration':z['object']({'day':z[a154_0x48a438(0x1f2)]()[a154_0x48a438(0x1ef)](),'week':z[a154_0x48a438(0x1f2)]()[a154_0x48a438(0x1ef)](),'month':z['number']()[a154_0x48a438(0x1ef)](),'year':z[a154_0x48a438(0x1f2)]()['optional'](),'hour':z['number']()['optional'](),'minute':z['number']()['optional'](),'second':z[a154_0x48a438(0x1f2)]()['optional']()})['optional'](),'from':z['object']({'last':z[a154_0x48a438(0x1fe)]([z[a154_0x48a438(0x1f2)](),z[a154_0x48a438(0x1dc)]()]),'unit':TimeUnitSchema})[a154_0x48a438(0x1ef)](),'reverse':z[a154_0x48a438(0x219)]()[a154_0x48a438(0x1ef)]()})[a154_0x48a438(0x20b)]((_0x12495b,_0x3ae63c)=>{const _0x5a5684=a154_0x48a438;OPERATORS_REQUIRING_VALUE[_0x5a5684(0x1d9)](_0x12495b[_0x5a5684(0x21a)])&&(_0x12495b[_0x5a5684(0x21c)]===undefined||_0x12495b[_0x5a5684(0x21c)]===null)&&_0x3ae63c[_0x5a5684(0x200)]({'code':'custom','message':_0x5a5684(0x1e4)+_0x12495b['type']+'\x27\x20requires\x20a\x20value','path':[_0x5a5684(0x21c)]}),_0x12495b[_0x5a5684(0x21a)]==='Between'&&_0x12495b[_0x5a5684(0x1d7)]===undefined&&_0x12495b['max']===undefined&&_0x3ae63c[_0x5a5684(0x200)]({'code':_0x5a5684(0x1f1),'message':_0x5a5684(0x1e6),'params':{'validationCode':'MISSING_BETWEEN_BOUNDS'}}),OPERATORS_REQUIRING_UNIT[_0x5a5684(0x1d9)](_0x12495b['type'])&&_0x12495b[_0x5a5684(0x21c)]!==undefined&&!_0x12495b[_0x5a5684(0x216)]&&_0x3ae63c['addIssue']({'code':_0x5a5684(0x1f1),'message':'Operator\x20\x27'+_0x12495b['type']+_0x5a5684(0x213),'path':[_0x5a5684(0x216)],'params':{'validationCode':'MISSING_TIME_UNIT'}}),_0x12495b[_0x5a5684(0x21a)]===_0x5a5684(0x1fc)&&(!_0x12495b[_0x5a5684(0x1fa)]&&_0x3ae63c[_0x5a5684(0x200)]({'code':_0x5a5684(0x1f1),'message':_0x5a5684(0x1f8),'path':[_0x5a5684(0x1fa)]}),!_0x12495b[_0x5a5684(0x1e8)]&&_0x3ae63c[_0x5a5684(0x200)]({'code':_0x5a5684(0x1f1),'message':'TimeRange\x20operator\x20requires\x20\x27from\x27','path':[_0x5a5684(0x1e8)]}));});export const ArrayMatchingSchema=z[a154_0x48a438(0x1fe)]([z[a154_0x48a438(0x209)](a154_0x48a438(0x214)),z[a154_0x48a438(0x209)]('all'),z[a154_0x48a438(0x20c)]({'atLeast':z[a154_0x48a438(0x1f2)]()}),z['object']({'atMost':z[a154_0x48a438(0x1f2)]()}),z[a154_0x48a438(0x20c)]({'exactly':z[a154_0x48a438(0x1f2)]()})]);export const AggregationDefSchema=z['discriminatedUnion']('type',[z['object']({'type':z[a154_0x48a438(0x20e)](['Sum',a154_0x48a438(0x1e9),a154_0x48a438(0x215),'Average']),'column':z['string'](),'groupingColumns':z[a154_0x48a438(0x1ec)](z[a154_0x48a438(0x1dc)]())['optional']()}),z[a154_0x48a438(0x20c)]({'type':z[a154_0x48a438(0x209)](a154_0x48a438(0x206)),'groupingColumns':z[a154_0x48a438(0x1ec)](z['string']())[a154_0x48a438(0x1ef)]()}),z[a154_0x48a438(0x20c)]({'type':z['literal']('CountDistinct'),'columns':z[a154_0x48a438(0x1ec)](z[a154_0x48a438(0x1dc)]())}),z['object']({'type':z[a154_0x48a438(0x20e)]([a154_0x48a438(0x203),'Last']),'column':z[a154_0x48a438(0x1dc)](),'orderColumn':z[a154_0x48a438(0x1dc)](),'groupingColumns':z[a154_0x48a438(0x1ec)](z['string']())[a154_0x48a438(0x1ef)]()})]);export const TimeWindowDefSchema=z[a154_0x48a438(0x20c)]({'duration':z[a154_0x48a438(0x1f2)](),'unit':TimeUnitSchema});const TIMESTAMP_OPERATORS=new Set([a154_0x48a438(0x221),a154_0x48a438(0x207),'TimeRange']);export const FilterColumnConditionDefSchema=z['object']({'type':z[a154_0x48a438(0x209)](a154_0x48a438(0x20a)),'column':z[a154_0x48a438(0x1dc)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a154_0x48a438(0x1ef)]()})[a154_0x48a438(0x20b)]((_0x78629f,_0x2b9a02)=>{const _0x2afb63=a154_0x48a438,_0x967485=_0x78629f['operator']['type'];_0x78629f['column']===_0x2afb63(0x1de)?!TIMESTAMP_OPERATORS[_0x2afb63(0x1d9)](_0x967485)&&_0x2b9a02[_0x2afb63(0x200)]({'code':_0x2afb63(0x1f1),'message':_0x2afb63(0x1fb)+_0x967485+'\x27)','path':['operator',_0x2afb63(0x21a)]}):TIMESTAMP_OPERATORS[_0x2afb63(0x1d9)](_0x967485)&&_0x2b9a02[_0x2afb63(0x200)]({'code':_0x2afb63(0x1f1),'message':_0x2afb63(0x1e4)+_0x967485+_0x2afb63(0x1da),'path':[_0x2afb63(0x1f9),_0x2afb63(0x21a)]});});export const FilterRuleDefSchema=z[a154_0x48a438(0x20c)]({'type':z[a154_0x48a438(0x209)](a154_0x48a438(0x210)),'conditions':z[a154_0x48a438(0x1ec)](FilterColumnConditionDefSchema)});function a154_0x5d65(_0x193daa,_0x579ff9){_0x193daa=_0x193daa-0x1d7;const _0x372625=a154_0x3726();let _0x5d65d2=_0x372625[_0x193daa];return _0x5d65d2;}export const ValueConditionDefSchema=z[a154_0x48a438(0x1f6)](()=>z[a154_0x48a438(0x20c)]({'type':z['literal']('Value'),'attribute':z[a154_0x48a438(0x1dc)](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a154_0x48a438(0x1ef)](),'exclude':z[a154_0x48a438(0x219)]()['optional'](),'aggregation':AggregationDefSchema[a154_0x48a438(0x1ef)](),'source':z[a154_0x48a438(0x1dc)]()[a154_0x48a438(0x1ef)](),'filter':FilterRuleDefSchema[a154_0x48a438(0x1ef)](),'limit':z['number']()[a154_0x48a438(0x1ef)]()}));export const BehaviorConditionDefSchema=z[a154_0x48a438(0x1f6)](()=>z['object']({'type':z[a154_0x48a438(0x209)]('Behavior'),'attribute':z['string'](),'operator':OperatorDefSchema,'arrayMatching':ArrayMatchingSchema[a154_0x48a438(0x1ef)](),'exclude':z['boolean']()[a154_0x48a438(0x1ef)](),'aggregation':AggregationDefSchema['optional'](),'source':z[a154_0x48a438(0x1dc)]()[a154_0x48a438(0x1ef)](),'filter':FilterRuleDefSchema[a154_0x48a438(0x1ef)](),'timeWindow':TimeWindowDefSchema[a154_0x48a438(0x1ef)](),'limit':z[a154_0x48a438(0x1f2)]()[a154_0x48a438(0x1ef)]()}));export const ColumnConditionDefSchema=z[a154_0x48a438(0x20c)]({'type':z[a154_0x48a438(0x209)](a154_0x48a438(0x20a)),'column':z[a154_0x48a438(0x1dc)](),'operator':OperatorDefSchema});export const CompositeConditionDefSchema=z[a154_0x48a438(0x1f6)](()=>z['object']({'type':z[a154_0x48a438(0x20e)]([a154_0x48a438(0x210),'Or']),'conditions':z[a154_0x48a438(0x1ec)](ConditionDefSchema),'description':z['string']()[a154_0x48a438(0x1ef)]()}));export const SegmentRefConditionDefSchema=z[a154_0x48a438(0x20c)]({'type':z[a154_0x48a438(0x20e)]([a154_0x48a438(0x21b),'exclude']),'segment':z['string']()['min'](0x1,a154_0x48a438(0x1dd))});export const ConditionDefSchema=z[a154_0x48a438(0x1f6)](()=>z[a154_0x48a438(0x1fe)]([ValueConditionDefSchema,BehaviorConditionDefSchema,ColumnConditionDefSchema,CompositeConditionDefSchema,SegmentRefConditionDefSchema]));export const RuleDefSchema=z['lazy'](()=>z['object']({'type':z['enum']([a154_0x48a438(0x210),'Or']),'conditions':z[a154_0x48a438(0x1ec)](ConditionDefSchema),'description':z[a154_0x48a438(0x1dc)]()[a154_0x48a438(0x1ef)]()}));export const SegmentDefSchema=z[a154_0x48a438(0x20c)]({'type':z[a154_0x48a438(0x209)](a154_0x48a438(0x1f7))[a154_0x48a438(0x1ef)](),'name':z['string']()['min'](0x1,a154_0x48a438(0x1fd)),'description':z['string']()['optional'](),'folder':z[a154_0x48a438(0x1dc)]()['optional'](),'rule':RuleDefSchema[a154_0x48a438(0x1ef)](),'kind':z[a154_0x48a438(0x20e)]([a154_0x48a438(0x1ed),a154_0x48a438(0x1f5),a154_0x48a438(0x1e0)])[a154_0x48a438(0x1ef)](),'visible':z[a154_0x48a438(0x219)]()[a154_0x48a438(0x1ef)](),'activations':z['array'](z['any']())[a154_0x48a438(0x1ef)]()});const _syncCheck1=!![],_syncCheck2=!![];void _syncCheck1,void _syncCheck2;
@@ -1 +1 @@
1
- const a155_0x385fc1=a155_0x44cc;(function(_0x2e1c01,_0x38a6a2){const _0x28d119=a155_0x44cc,_0x37f526=_0x2e1c01();while(!![]){try{const _0x3d6455=parseInt(_0x28d119(0x109))/0x1+-parseInt(_0x28d119(0xfb))/0x2*(parseInt(_0x28d119(0x105))/0x3)+parseInt(_0x28d119(0x114))/0x4+-parseInt(_0x28d119(0xf8))/0x5+-parseInt(_0x28d119(0x112))/0x6*(-parseInt(_0x28d119(0x100))/0x7)+-parseInt(_0x28d119(0x10d))/0x8*(-parseInt(_0x28d119(0x116))/0x9)+-parseInt(_0x28d119(0xf9))/0xa;if(_0x3d6455===_0x38a6a2)break;else _0x37f526['push'](_0x37f526['shift']());}catch(_0x2bde7b){_0x37f526['push'](_0x37f526['shift']());}}}(a155_0x3f2e,0x6c586));function a155_0x44cc(_0xa3f554,_0x519d49){_0xa3f554=_0xa3f554-0xf7;const _0x3f2e7f=a155_0x3f2e();let _0x44cc6e=_0x3f2e7f[_0xa3f554];return _0x44cc6e;}import{readFileSync}from'fs';import*as a155_0x59e97f from'path';import*as a155_0x64e0f4 from'yaml';import{validateSegmentDef}from'./yaml-validator.js';function a155_0x3f2e(){const _0x4796d6=['4210661IkpMgX','push','has','length','parseDocument','107769HPlJIi','skipped','error','YAML_PARSE_ERROR','762248uZCszX','relative','email','basename','16BXSrfx','toJSON','filterType','segment','warnings','6XeEOwe','valid','1268696IETiOE','result','1008999uhNipl','journey','campaign','4135220VPESDz','5984180XQUNes','type','2vyHHWh','not\x20a\x20','template','Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)','object'];a155_0x3f2e=function(){return _0x4796d6;};return a155_0x3f2e();}import{validateJourneyDef}from'./journey-validator.js';import{validateCampaignDef}from'../engage/campaign-validator.js';import{validateTemplateDef}from'../engage/template-validator.js';const VALID_CAMPAIGN_TYPES=new Set([a155_0x385fc1(0x10b),a155_0x385fc1(0x101)]);export function isJourneyDef(_0x1503b9){const _0x288a87=a155_0x385fc1;return typeof _0x1503b9===_0x288a87(0xff)&&_0x1503b9!==null&&'type'in _0x1503b9&&_0x1503b9[_0x288a87(0xfa)]===_0x288a87(0x117);}export function isCampaignDef(_0xbdaee5){const _0x4a5ca2=a155_0x385fc1;if(typeof _0xbdaee5!==_0x4a5ca2(0xff)||_0xbdaee5===null)return![];const _0x170adf=_0xbdaee5,_0x10581c=VALID_CAMPAIGN_TYPES[_0x4a5ca2(0x102)](_0x170adf['campaign_type']);if(_0x170adf[_0x4a5ca2(0xfa)]==='campaign'&&_0x10581c)return!![];if(_0x10581c&&!_0x170adf[_0x4a5ca2(0xfa)])return!![];return![];}export function isTemplateDef(_0x3bf523){const _0x4837a7=a155_0x385fc1;return typeof _0x3bf523==='object'&&_0x3bf523!==null&&_0x4837a7(0xfa)in _0x3bf523&&_0x3bf523[_0x4837a7(0xfa)]===_0x4837a7(0xfd);}export function isValidationResult(_0x4c5ab9){const _0x5197b5=a155_0x385fc1;return!(_0x5197b5(0x106)in _0x4c5ab9);}export function createParseErrorResult(_0x2dccb7,_0x32ba61,_0x3926a4,_0x2008ed,_0x51c6ec=a155_0x385fc1(0x110)){const _0x1f4428=a155_0x385fc1;return{'filePath':_0x2dccb7,'relativePath':_0x32ba61,'source':_0x3926a4,'result':{'valid':![],'errors':[{'level':_0x1f4428(0x107),'path':'','code':_0x1f4428(0x108),'message':_0x2008ed}],'warnings':[]},'fileType':_0x51c6ec};}export function validateYamlFile(_0x3f8964,_0x2c09d4,_0x199efd={}){const _0x5f2f1e=a155_0x385fc1,_0x50c146=a155_0x59e97f[_0x5f2f1e(0x10a)](_0x2c09d4,_0x3f8964)||a155_0x59e97f[_0x5f2f1e(0x10c)](_0x3f8964);try{const _0x504917=readFileSync(_0x3f8964,'utf-8'),_0x86bb48=a155_0x64e0f4[_0x5f2f1e(0x104)](_0x504917),_0x139696=_0x86bb48[_0x5f2f1e(0x10e)]();if(!_0x139696)return createParseErrorResult(_0x3f8964,_0x50c146,_0x504917,_0x5f2f1e(0xfe));let _0x40604f;if(isJourneyDef(_0x139696))_0x40604f=_0x5f2f1e(0x117);else{if(isCampaignDef(_0x139696))_0x40604f=_0x5f2f1e(0xf7);else isTemplateDef(_0x139696)?_0x40604f=_0x5f2f1e(0xfd):_0x40604f='segment';}if(_0x199efd['filterType']&&_0x40604f!==_0x199efd['filterType'])return{'filePath':_0x3f8964,'relativePath':_0x50c146,'skipped':!![],'reason':_0x5f2f1e(0xfc)+_0x199efd[_0x5f2f1e(0x10f)]};const _0x13abac={'source':_0x504917,'document':_0x86bb48};let _0x2068f8;if(_0x40604f===_0x5f2f1e(0x117))_0x2068f8=validateJourneyDef(_0x139696,_0x13abac);else{if(_0x40604f===_0x5f2f1e(0xf7))_0x2068f8=validateCampaignDef(_0x139696,_0x13abac);else _0x40604f===_0x5f2f1e(0xfd)?_0x2068f8=validateTemplateDef(_0x139696,_0x13abac):_0x2068f8=validateSegmentDef(_0x139696,_0x13abac);}return{'filePath':_0x3f8964,'relativePath':_0x50c146,'source':_0x504917,'result':_0x2068f8,'fileType':_0x40604f};}catch(_0x4fa662){const _0xbba3b3=_0x4fa662 instanceof Error?_0x4fa662['message']:String(_0x4fa662);return createParseErrorResult(_0x3f8964,_0x50c146,'','YAML\x20parse\x20error:\x20'+_0xbba3b3);}}export function validateYamlFiles(_0x5e9c90,_0x2de8d8,_0x40269c={}){return _0x5e9c90['map'](_0x2d9251=>validateYamlFile(_0x2d9251,_0x2de8d8,_0x40269c));}export function calculateSummary(_0x5b65f9){const _0x17f55f=a155_0x385fc1;let _0x1fc48a=0x0,_0x386580=0x0,_0x1bbac5=0x0,_0x127c06=0x0;for(const _0x36f30a of _0x5b65f9){if(!isValidationResult(_0x36f30a)){_0x127c06++;continue;}_0x36f30a[_0x17f55f(0x115)][_0x17f55f(0x113)]?_0x1fc48a++:_0x386580++,_0x1bbac5+=_0x36f30a[_0x17f55f(0x115)][_0x17f55f(0x111)][_0x17f55f(0x103)];}return{'validCount':_0x1fc48a,'invalidCount':_0x386580,'warningCount':_0x1bbac5,'skippedCount':_0x127c06,'hasErrors':_0x386580>0x0};}
1
+ const a155_0x1b2458=a155_0x37df;(function(_0x37e938,_0xf5b4a4){const _0x536b19=a155_0x37df,_0x52402e=_0x37e938();while(!![]){try{const _0x143188=parseInt(_0x536b19(0xe0))/0x1*(-parseInt(_0x536b19(0xe8))/0x2)+parseInt(_0x536b19(0xde))/0x3*(-parseInt(_0x536b19(0xfd))/0x4)+-parseInt(_0x536b19(0xdb))/0x5+-parseInt(_0x536b19(0xe1))/0x6*(-parseInt(_0x536b19(0xe4))/0x7)+-parseInt(_0x536b19(0xec))/0x8*(parseInt(_0x536b19(0xf1))/0x9)+parseInt(_0x536b19(0xf6))/0xa*(parseInt(_0x536b19(0xf0))/0xb)+parseInt(_0x536b19(0xed))/0xc*(-parseInt(_0x536b19(0xe7))/0xd);if(_0x143188===_0xf5b4a4)break;else _0x52402e['push'](_0x52402e['shift']());}catch(_0x3376be){_0x52402e['push'](_0x52402e['shift']());}}}(a155_0x1f4f,0x24607));function a155_0x1f4f(){const _0x39fdfe=['2316VPNzxu','object','warnings','671DCorQy','31131edeRcU','Failed\x20to\x20parse\x20YAML\x20file\x20(empty\x20or\x20invalid)','YAML_PARSE_ERROR','error','toJSON','39770YjOQvt','not\x20a\x20','YAML\x20parse\x20error:\x20','push','type','parseDocument','template','36880oDSnyB','378330YJUlrv','journey','relative','48pWqyzD','campaign','2PcmwbJ','850404uYiRuQ','utf-8','length','14WiBNHo','map','result','793sPmSZJ','7206RLraZR','segment','skipped','filterType','312NyjVRv'];a155_0x1f4f=function(){return _0x39fdfe;};return a155_0x1f4f();}import{readFileSync}from'fs';import*as a155_0x5c32a8 from'path';import*as a155_0x3cdd36 from'yaml';import{validateSegmentDef}from'./yaml-validator.js';import{validateJourneyDef}from'./journey-validator.js';import{validateCampaignDef}from'../engage/campaign-validator.js';import{validateTemplateDef}from'../engage/template-validator.js';const VALID_CAMPAIGN_TYPES=new Set(['email',a155_0x1b2458(0xf9)]);function a155_0x37df(_0x500026,_0x134c57){_0x500026=_0x500026-0xdb;const _0x1f4f37=a155_0x1f4f();let _0x37df27=_0x1f4f37[_0x500026];return _0x37df27;}export function isJourneyDef(_0x2ab67a){const _0x4492c2=a155_0x1b2458;return typeof _0x2ab67a===_0x4492c2(0xee)&&_0x2ab67a!==null&&'type'in _0x2ab67a&&_0x2ab67a[_0x4492c2(0xfa)]==='journey';}export function isCampaignDef(_0x1ba0ce){const _0x525275=a155_0x1b2458;if(typeof _0x1ba0ce!=='object'||_0x1ba0ce===null)return![];const _0x17070f=_0x1ba0ce,_0x497320=VALID_CAMPAIGN_TYPES['has'](_0x17070f['campaign_type']);if(_0x17070f[_0x525275(0xfa)]===_0x525275(0xdf)&&_0x497320)return!![];if(_0x497320&&!_0x17070f[_0x525275(0xfa)])return!![];return![];}export function isTemplateDef(_0x4487d6){const _0x5c68ba=a155_0x1b2458;return typeof _0x4487d6==='object'&&_0x4487d6!==null&&_0x5c68ba(0xfa)in _0x4487d6&&_0x4487d6['type']==='template';}export function isValidationResult(_0x3dbd61){const _0xd2d06c=a155_0x1b2458;return!(_0xd2d06c(0xea)in _0x3dbd61);}export function createParseErrorResult(_0xc00334,_0x40367b,_0x2b9d5e,_0x5161d6,_0x4e6029=a155_0x1b2458(0xe9)){const _0x304db7=a155_0x1b2458;return{'filePath':_0xc00334,'relativePath':_0x40367b,'source':_0x2b9d5e,'result':{'valid':![],'errors':[{'level':_0x304db7(0xf4),'path':'','code':_0x304db7(0xf3),'message':_0x5161d6}],'warnings':[]},'fileType':_0x4e6029};}export function validateYamlFile(_0x43af21,_0x472e88,_0x100fe5={}){const _0xae63cb=a155_0x1b2458,_0x3a1a90=a155_0x5c32a8[_0xae63cb(0xdd)](_0x472e88,_0x43af21)||a155_0x5c32a8['basename'](_0x43af21);try{const _0x20b104=readFileSync(_0x43af21,_0xae63cb(0xe2)),_0x148d17=a155_0x3cdd36[_0xae63cb(0xfb)](_0x20b104),_0x344299=_0x148d17[_0xae63cb(0xf5)]();if(!_0x344299)return createParseErrorResult(_0x43af21,_0x3a1a90,_0x20b104,_0xae63cb(0xf2));let _0x1b4847;if(isJourneyDef(_0x344299))_0x1b4847=_0xae63cb(0xdc);else{if(isCampaignDef(_0x344299))_0x1b4847=_0xae63cb(0xdf);else isTemplateDef(_0x344299)?_0x1b4847=_0xae63cb(0xfc):_0x1b4847=_0xae63cb(0xe9);}if(_0x100fe5[_0xae63cb(0xeb)]&&_0x1b4847!==_0x100fe5[_0xae63cb(0xeb)])return{'filePath':_0x43af21,'relativePath':_0x3a1a90,'skipped':!![],'reason':_0xae63cb(0xf7)+_0x100fe5[_0xae63cb(0xeb)]};const _0x4542e7={'source':_0x20b104,'document':_0x148d17};let _0x47bcc5;if(_0x1b4847===_0xae63cb(0xdc))_0x47bcc5=validateJourneyDef(_0x344299,_0x4542e7);else{if(_0x1b4847==='campaign')_0x47bcc5=validateCampaignDef(_0x344299,_0x4542e7);else _0x1b4847===_0xae63cb(0xfc)?_0x47bcc5=validateTemplateDef(_0x344299,_0x4542e7):_0x47bcc5=validateSegmentDef(_0x344299,_0x4542e7);}return{'filePath':_0x43af21,'relativePath':_0x3a1a90,'source':_0x20b104,'result':_0x47bcc5,'fileType':_0x1b4847};}catch(_0x918eff){const _0x3c5c4c=_0x918eff instanceof Error?_0x918eff['message']:String(_0x918eff);return createParseErrorResult(_0x43af21,_0x3a1a90,'',_0xae63cb(0xf8)+_0x3c5c4c);}}export function validateYamlFiles(_0x46bdc9,_0xf8ff2a,_0x32dfbf={}){const _0x2178a2=a155_0x1b2458;return _0x46bdc9[_0x2178a2(0xe5)](_0x404a76=>validateYamlFile(_0x404a76,_0xf8ff2a,_0x32dfbf));}export function calculateSummary(_0x2bc3d3){const _0x30f51e=a155_0x1b2458;let _0x5ca27d=0x0,_0x58760f=0x0,_0x342856=0x0,_0x2e3601=0x0;for(const _0x53f7a4 of _0x2bc3d3){if(!isValidationResult(_0x53f7a4)){_0x2e3601++;continue;}_0x53f7a4['result']['valid']?_0x5ca27d++:_0x58760f++,_0x342856+=_0x53f7a4[_0x30f51e(0xe6)][_0x30f51e(0xef)][_0x30f51e(0xe3)];}return{'validCount':_0x5ca27d,'invalidCount':_0x58760f,'warningCount':_0x342856,'skippedCount':_0x2e3601,'hasErrors':_0x58760f>0x0};}
@@ -1 +1 @@
1
- (function(_0xa29273,_0x1d7c66){const _0x384d51=a156_0x17fd,_0x3896fb=_0xa29273();while(!![]){try{const _0x5535c2=-parseInt(_0x384d51(0x1d9))/0x1+-parseInt(_0x384d51(0x1dd))/0x2*(-parseInt(_0x384d51(0x1eb))/0x3)+-parseInt(_0x384d51(0x1e2))/0x4+parseInt(_0x384d51(0x1e9))/0x5*(parseInt(_0x384d51(0x1d0))/0x6)+-parseInt(_0x384d51(0x1c6))/0x7+parseInt(_0x384d51(0x1e7))/0x8+parseInt(_0x384d51(0x1e6))/0x9;if(_0x5535c2===_0x1d7c66)break;else _0x3896fb['push'](_0x3896fb['shift']());}catch(_0xf2e0b4){_0x3896fb['push'](_0x3896fb['shift']());}}}(a156_0x25e0,0x77b00));import*as a156_0x7f6cee from'yaml';function a156_0x17fd(_0x341787,_0x4394f5){_0x341787=_0x341787-0x1c3;const _0x25e07b=a156_0x25e0();let _0x17fd72=_0x25e07b[_0x341787];return _0x17fd72;}import a156_0x2a9374 from'chalk';export{validateSegmentDef,validateRuleDef}from'./segment-validator.js';export function getLocationFromPath(_0x4bb847,_0x1a0440,_0x47cf69){const _0x2a8f4e=a156_0x17fd;if(!_0x4bb847||!_0x1a0440)return undefined;try{let _0x5c4ec8=_0x4bb847[_0x2a8f4e(0x1d1)](_0x47cf69,!![]),_0x1ca687=[..._0x47cf69];while((!_0x5c4ec8||typeof _0x5c4ec8!=='object'||!('range'in _0x5c4ec8)||!_0x5c4ec8['range'])&&_0x1ca687[_0x2a8f4e(0x1df)]>0x0){_0x1ca687[_0x2a8f4e(0x1cf)](),_0x5c4ec8=_0x1ca687[_0x2a8f4e(0x1df)]>0x0?_0x4bb847[_0x2a8f4e(0x1d1)](_0x1ca687,!![]):_0x4bb847[_0x2a8f4e(0x1d6)];}if(!_0x5c4ec8||typeof _0x5c4ec8!==_0x2a8f4e(0x1ec)||!(_0x2a8f4e(0x1da)in _0x5c4ec8)||!_0x5c4ec8['range'])return undefined;const [_0x45536d]=_0x5c4ec8[_0x2a8f4e(0x1da)];return offsetToLocation(_0x1a0440,_0x45536d);}catch{return undefined;}}export function offsetToLocation(_0x31e99a,_0x2b671b){const _0x5f16e4=a156_0x17fd;let _0x371195=0x1,_0x1ff850=0x1;for(let _0x33e3f6=0x0;_0x33e3f6<_0x2b671b&&_0x33e3f6<_0x31e99a[_0x5f16e4(0x1df)];_0x33e3f6++){_0x31e99a[_0x33e3f6]==='\x0a'?(_0x371195++,_0x1ff850=0x1):_0x1ff850++;}return{'line':_0x371195,'column':_0x1ff850,'offset':_0x2b671b};}export function pathToArray(_0x4df4ce){const _0x16c504=a156_0x17fd;if(!_0x4df4ce)return[];return _0x4df4ce['split']('.')[_0x16c504(0x1ca)](_0x5c8542=>{const _0x518e39=_0x5c8542['match'](/^(\w+)\[(\d+)\]$/);if(_0x518e39)return[_0x518e39[0x1],parseInt(_0x518e39[0x2],0xa)];return[_0x5c8542];});}export function formatZodPath(_0x32c38f){const _0x213ca6=a156_0x17fd;let _0x3874f3='';for(const _0x189fa7 of _0x32c38f){if(typeof _0x189fa7===_0x213ca6(0x1cb))_0x3874f3+='['+_0x189fa7+']';else{const _0x5ae517=String(_0x189fa7);_0x3874f3+=_0x3874f3?'.'+_0x5ae517:_0x5ae517;}}return _0x3874f3;}export function flattenZodIssues(_0x458cce){const _0xe3c409=a156_0x17fd,_0x3c113b=[];for(const _0x57cf65 of _0x458cce){if(_0x57cf65['code']===_0xe3c409(0x1c5)&&_0xe3c409(0x1d7)in _0x57cf65){const _0x366618=_0x57cf65[_0xe3c409(0x1d7)];let _0x510554=_0x366618[0x0]||[];for(const _0x7f6efb of _0x366618){_0x7f6efb[_0xe3c409(0x1df)]<_0x510554[_0xe3c409(0x1df)]&&(_0x510554=_0x7f6efb);}const _0x2288df=_0x510554[_0xe3c409(0x1e1)](_0x4a9525=>({..._0x4a9525,'path':[..._0x57cf65[_0xe3c409(0x1e5)],..._0x4a9525['path']]}));_0x3c113b['push'](...flattenZodIssues(_0x2288df));}else _0x3c113b[_0xe3c409(0x1d4)](_0x57cf65);}return _0x3c113b;}export function safeParseYaml(_0x5f0028,_0x277638){const _0xe7498b=a156_0x17fd,_0x503776=a156_0x7f6cee['parse'](_0x5f0028);if(!_0x503776||typeof _0x503776!==_0xe7498b(0x1ec))throw new Error(_0xe7498b(0x1e4));const _0x221922=_0x277638[_0xe7498b(0x1e8)](_0x503776);if(!_0x221922[_0xe7498b(0x1ea)]){const _0x752d36=_0x221922[_0xe7498b(0x1c3)]['issues'][0x0],_0x20ba81=formatZodPath(_0x752d36['path']);throw new Error(_0x20ba81?_0xe7498b(0x1d3)+_0x20ba81+_0xe7498b(0x1ce)+_0x752d36[_0xe7498b(0x1c8)]:'YAML\x20validation\x20error:\x20'+_0x752d36[_0xe7498b(0x1c8)]);}return _0x221922['data'];}export function formatIssueWithContext(_0xbc3812,_0x358bbd,_0x3c87b8){const _0x223568=a156_0x17fd,_0x553815=[],_0x4e762b=_0xbc3812[_0x223568(0x1d2)]===_0x223568(0x1c3),_0x547791=_0x4e762b?a156_0x2a9374[_0x223568(0x1e0)]:a156_0x2a9374[_0x223568(0x1dc)],_0x5954c2=_0x4e762b?a156_0x2a9374[_0x223568(0x1e0)]:a156_0x2a9374['yellow'],_0x58e6c3=_0x3c87b8?a156_0x2a9374[_0x223568(0x1c7)](_0x3c87b8+':'):'';if(_0xbc3812[_0x223568(0x1ed)]){const _0x516502=a156_0x2a9374[_0x223568(0x1c7)](_0xbc3812['location'][_0x223568(0x1cc)]+':'+_0xbc3812['location']['column']);_0x553815['push'](''+_0x58e6c3+_0x516502+':\x20'+_0x547791(_0xbc3812[_0x223568(0x1d2)])+'\x20'+_0x5954c2('['+_0xbc3812['code']+']'));}else _0x553815[_0x223568(0x1d4)](''+_0x58e6c3+a156_0x2a9374[_0x223568(0x1d5)](_0xbc3812[_0x223568(0x1e5)])+':\x20'+_0x547791(_0xbc3812[_0x223568(0x1d2)])+'\x20'+_0x5954c2('['+_0xbc3812[_0x223568(0x1e3)]+']'));_0x553815['push'](_0xbc3812['message']);if(_0xbc3812[_0x223568(0x1ed)]&&_0x358bbd){const _0x42456a=_0x358bbd[_0x223568(0x1c4)]('\x0a'),{line:_0x21d25c,column:_0x12f141}=_0xbc3812[_0x223568(0x1ed)],_0x33adbe=Math[_0x223568(0x1cd)](0x1,_0x21d25c-0x1),_0x3ee820=Math['min'](_0x42456a['length'],_0x21d25c+0x1);_0x553815['push']('');for(let _0x20f288=_0x33adbe;_0x20f288<=_0x3ee820;_0x20f288++){const _0x102a6a=_0x42456a[_0x20f288-0x1]||'',_0x5b7938=a156_0x2a9374[_0x223568(0x1d5)](_0x20f288['toString']()[_0x223568(0x1db)](0x4)),_0x332afa=a156_0x2a9374[_0x223568(0x1d5)](_0x223568(0x1de));if(_0x20f288===_0x21d25c){_0x553815[_0x223568(0x1d4)]('\x20\x20'+_0x5b7938+_0x332afa+_0x547791(_0x102a6a));const _0x43e56e='\x20'[_0x223568(0x1d8)](0x4+0x3+_0x12f141-0x1);_0x553815[_0x223568(0x1d4)]('\x20\x20'+_0x43e56e+_0x547791('^'));}else _0x553815['push']('\x20\x20'+_0x5b7938+_0x332afa+a156_0x2a9374[_0x223568(0x1d5)](_0x102a6a));}}return _0x553815[_0x223568(0x1c9)]('\x0a');}export function formatValidationResult(_0x55ada8,_0x5f3c24,_0xfea5b2){const _0x45ff90=a156_0x17fd,_0x22158c=[];for(const _0xce9446 of _0x55ada8[_0x45ff90(0x1d7)]){_0x22158c[_0x45ff90(0x1d4)](formatIssueWithContext(_0xce9446,_0x5f3c24,_0xfea5b2)),_0x22158c[_0x45ff90(0x1d4)]('');}for(const _0x30fa1f of _0x55ada8['warnings']){_0x22158c[_0x45ff90(0x1d4)](formatIssueWithContext(_0x30fa1f,_0x5f3c24,_0xfea5b2)),_0x22158c[_0x45ff90(0x1d4)]('');}return _0x22158c[_0x45ff90(0x1c9)]('\x0a');}function a156_0x25e0(){const _0x44f5a5=['push','dim','contents','errors','repeat','202938llAEla','range','padStart','yellow','648012kVAzcm','\x20|\x20','length','red','map','1666320IthZcR','code','Invalid\x20YAML:\x20expected\x20an\x20object','path','3231576OsOwMW','5053920RnFzGV','safeParse','10QyXJcc','success','3XoTeWC','object','location','error','split','invalid_union','6050842xtbrfA','cyan','message','join','flatMap','number','line','max','\x27:\x20','pop','1978062OBPSVq','getIn','level','YAML\x20validation\x20error\x20at\x20\x27'];a156_0x25e0=function(){return _0x44f5a5;};return a156_0x25e0();}
1
+ function a156_0x283a(){const _0x473f81=['message','map','contents','errors','range','4110qWGDmR','806742WxFGML','warnings','path','split','error','getIn','level','flatMap','repeat','column','length','object','cyan','location','safeParse','parse','join','\x20|\x20','465587dWiIsE','issues','data','\x27:\x20','74SXDitd','success','15093ExtwQv','yellow','5EakORm','push','43757JYNtEx','4201752fDkshO','dim','red','YAML\x20validation\x20error\x20at\x20\x27','44737OkBZcw','Invalid\x20YAML:\x20expected\x20an\x20object','221980eUZBLU','1016aQIjyl','toString','code'];a156_0x283a=function(){return _0x473f81;};return a156_0x283a();}(function(_0x5e031f,_0x2ba4c6){const _0x63ea1b=a156_0x154e,_0x56c7e8=_0x5e031f();while(!![]){try{const _0x1b1d0c=parseInt(_0x63ea1b(0x9d))/0x1+-parseInt(_0x63ea1b(0xa1))/0x2*(parseInt(_0x63ea1b(0xa3))/0x3)+parseInt(_0x63ea1b(0xae))/0x4+-parseInt(_0x63ea1b(0xa5))/0x5*(parseInt(_0x63ea1b(0xa8))/0x6)+parseInt(_0x63ea1b(0xa7))/0x7*(-parseInt(_0x63ea1b(0xaf))/0x8)+-parseInt(_0x63ea1b(0x8b))/0x9+parseInt(_0x63ea1b(0x8a))/0xa*(parseInt(_0x63ea1b(0xac))/0xb);if(_0x1b1d0c===_0x2ba4c6)break;else _0x56c7e8['push'](_0x56c7e8['shift']());}catch(_0xc3a7fb){_0x56c7e8['push'](_0x56c7e8['shift']());}}}(a156_0x283a,0x67309));import*as a156_0x23cac7 from'yaml';import a156_0x498b15 from'chalk';export{validateSegmentDef,validateRuleDef}from'./segment-validator.js';export function getLocationFromPath(_0x2b2e59,_0x157a81,_0x5001ed){const _0x11a651=a156_0x154e;if(!_0x2b2e59||!_0x157a81)return undefined;try{let _0x1f0ff3=_0x2b2e59[_0x11a651(0x90)](_0x5001ed,!![]),_0x390e4d=[..._0x5001ed];while((!_0x1f0ff3||typeof _0x1f0ff3!==_0x11a651(0x96)||!('range'in _0x1f0ff3)||!_0x1f0ff3[_0x11a651(0x89)])&&_0x390e4d['length']>0x0){_0x390e4d['pop'](),_0x1f0ff3=_0x390e4d[_0x11a651(0x95)]>0x0?_0x2b2e59[_0x11a651(0x90)](_0x390e4d,!![]):_0x2b2e59[_0x11a651(0x87)];}if(!_0x1f0ff3||typeof _0x1f0ff3!==_0x11a651(0x96)||!(_0x11a651(0x89)in _0x1f0ff3)||!_0x1f0ff3[_0x11a651(0x89)])return undefined;const [_0x5844ea]=_0x1f0ff3[_0x11a651(0x89)];return offsetToLocation(_0x157a81,_0x5844ea);}catch{return undefined;}}export function offsetToLocation(_0x5e492f,_0x491e7a){const _0x5c91bf=a156_0x154e;let _0x5a2729=0x1,_0x3dc2ec=0x1;for(let _0x231733=0x0;_0x231733<_0x491e7a&&_0x231733<_0x5e492f[_0x5c91bf(0x95)];_0x231733++){_0x5e492f[_0x231733]==='\x0a'?(_0x5a2729++,_0x3dc2ec=0x1):_0x3dc2ec++;}return{'line':_0x5a2729,'column':_0x3dc2ec,'offset':_0x491e7a};}function a156_0x154e(_0x22dd58,_0x13b496){_0x22dd58=_0x22dd58-0x87;const _0x283ab9=a156_0x283a();let _0x154e96=_0x283ab9[_0x22dd58];return _0x154e96;}export function pathToArray(_0x19b484){const _0x201648=a156_0x154e;if(!_0x19b484)return[];return _0x19b484[_0x201648(0x8e)]('.')[_0x201648(0x92)](_0x233e58=>{const _0x164403=_0x233e58['match'](/^(\w+)\[(\d+)\]$/);if(_0x164403)return[_0x164403[0x1],parseInt(_0x164403[0x2],0xa)];return[_0x233e58];});}export function formatZodPath(_0x2e8861){let _0x3c8881='';for(const _0x21ee92 of _0x2e8861){if(typeof _0x21ee92==='number')_0x3c8881+='['+_0x21ee92+']';else{const _0x2ee155=String(_0x21ee92);_0x3c8881+=_0x3c8881?'.'+_0x2ee155:_0x2ee155;}}return _0x3c8881;}export function flattenZodIssues(_0x32a6aa){const _0x16eb9d=a156_0x154e,_0x4d8310=[];for(const _0x3eecc6 of _0x32a6aa){if(_0x3eecc6[_0x16eb9d(0xb1)]==='invalid_union'&&'errors'in _0x3eecc6){const _0x6d8ad5=_0x3eecc6[_0x16eb9d(0x88)];let _0x1f9bd1=_0x6d8ad5[0x0]||[];for(const _0x35f57c of _0x6d8ad5){_0x35f57c[_0x16eb9d(0x95)]<_0x1f9bd1[_0x16eb9d(0x95)]&&(_0x1f9bd1=_0x35f57c);}const _0x27fef1=_0x1f9bd1[_0x16eb9d(0xb3)](_0x313d8e=>({..._0x313d8e,'path':[..._0x3eecc6[_0x16eb9d(0x8d)],..._0x313d8e[_0x16eb9d(0x8d)]]}));_0x4d8310[_0x16eb9d(0xa6)](...flattenZodIssues(_0x27fef1));}else _0x4d8310[_0x16eb9d(0xa6)](_0x3eecc6);}return _0x4d8310;}export function safeParseYaml(_0x35f05d,_0x2d720a){const _0xd4ddbf=a156_0x154e,_0x117a15=a156_0x23cac7[_0xd4ddbf(0x9a)](_0x35f05d);if(!_0x117a15||typeof _0x117a15!==_0xd4ddbf(0x96))throw new Error(_0xd4ddbf(0xad));const _0x259803=_0x2d720a[_0xd4ddbf(0x99)](_0x117a15);if(!_0x259803[_0xd4ddbf(0xa2)]){const _0x193dab=_0x259803[_0xd4ddbf(0x8f)][_0xd4ddbf(0x9e)][0x0],_0xff6cc5=formatZodPath(_0x193dab[_0xd4ddbf(0x8d)]);throw new Error(_0xff6cc5?_0xd4ddbf(0xab)+_0xff6cc5+_0xd4ddbf(0xa0)+_0x193dab[_0xd4ddbf(0xb2)]:'YAML\x20validation\x20error:\x20'+_0x193dab[_0xd4ddbf(0xb2)]);}return _0x259803[_0xd4ddbf(0x9f)];}export function formatIssueWithContext(_0x38432f,_0x2c548a,_0x19e913){const _0x459435=a156_0x154e,_0x1f17a3=[],_0x2a2852=_0x38432f['level']===_0x459435(0x8f),_0x28aa80=_0x2a2852?a156_0x498b15[_0x459435(0xaa)]:a156_0x498b15[_0x459435(0xa4)],_0x4e6282=_0x2a2852?a156_0x498b15[_0x459435(0xaa)]:a156_0x498b15[_0x459435(0xa4)],_0x513a90=_0x19e913?a156_0x498b15[_0x459435(0x97)](_0x19e913+':'):'';if(_0x38432f['location']){const _0x3ad3d3=a156_0x498b15[_0x459435(0x97)](_0x38432f['location']['line']+':'+_0x38432f[_0x459435(0x98)][_0x459435(0x94)]);_0x1f17a3[_0x459435(0xa6)](''+_0x513a90+_0x3ad3d3+':\x20'+_0x28aa80(_0x38432f[_0x459435(0x91)])+'\x20'+_0x4e6282('['+_0x38432f['code']+']'));}else _0x1f17a3[_0x459435(0xa6)](''+_0x513a90+a156_0x498b15[_0x459435(0xa9)](_0x38432f[_0x459435(0x8d)])+':\x20'+_0x28aa80(_0x38432f[_0x459435(0x91)])+'\x20'+_0x4e6282('['+_0x38432f[_0x459435(0xb1)]+']'));_0x1f17a3['push'](_0x38432f['message']);if(_0x38432f[_0x459435(0x98)]&&_0x2c548a){const _0x335257=_0x2c548a[_0x459435(0x8e)]('\x0a'),{line:_0x351d87,column:_0x4d420f}=_0x38432f[_0x459435(0x98)],_0x104231=Math['max'](0x1,_0x351d87-0x1),_0x1993ff=Math['min'](_0x335257[_0x459435(0x95)],_0x351d87+0x1);_0x1f17a3['push']('');for(let _0x5c0c51=_0x104231;_0x5c0c51<=_0x1993ff;_0x5c0c51++){const _0x181749=_0x335257[_0x5c0c51-0x1]||'',_0x14878b=a156_0x498b15['dim'](_0x5c0c51[_0x459435(0xb0)]()['padStart'](0x4)),_0x16ce09=a156_0x498b15[_0x459435(0xa9)](_0x459435(0x9c));if(_0x5c0c51===_0x351d87){_0x1f17a3[_0x459435(0xa6)]('\x20\x20'+_0x14878b+_0x16ce09+_0x28aa80(_0x181749));const _0x3890c6='\x20'[_0x459435(0x93)](0x4+0x3+_0x4d420f-0x1);_0x1f17a3[_0x459435(0xa6)]('\x20\x20'+_0x3890c6+_0x28aa80('^'));}else _0x1f17a3[_0x459435(0xa6)]('\x20\x20'+_0x14878b+_0x16ce09+a156_0x498b15[_0x459435(0xa9)](_0x181749));}}return _0x1f17a3[_0x459435(0x9b)]('\x0a');}export function formatValidationResult(_0x1d44b7,_0x36c5a2,_0x3050c1){const _0x43c930=a156_0x154e,_0x345882=[];for(const _0x352461 of _0x1d44b7[_0x43c930(0x88)]){_0x345882[_0x43c930(0xa6)](formatIssueWithContext(_0x352461,_0x36c5a2,_0x3050c1)),_0x345882[_0x43c930(0xa6)]('');}for(const _0x3eac03 of _0x1d44b7[_0x43c930(0x8c)]){_0x345882['push'](formatIssueWithContext(_0x3eac03,_0x36c5a2,_0x3050c1)),_0x345882[_0x43c930(0xa6)]('');}return _0x345882[_0x43c930(0x9b)]('\x0a');}