@treasuredata/tdx 2026.8.4 → 2026.8.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (264) 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.js +1 -1
  5. package/dist/commands/activations.js +1 -1
  6. package/dist/commands/agent-command.js +1 -1
  7. package/dist/commands/agent-test-command.js +1 -1
  8. package/dist/commands/api-command.js +1 -1
  9. package/dist/commands/auth-command.js +1 -1
  10. package/dist/commands/cas-command.js +1 -1
  11. package/dist/commands/cas-segment-command.d.ts.map +1 -1
  12. package/dist/commands/cas-segment-command.js +1 -1
  13. package/dist/commands/cas-segment-command.js.map +1 -1
  14. package/dist/commands/chat-command.js +1 -1
  15. package/dist/commands/claude-command.js +1 -1
  16. package/dist/commands/claude-statusline-command.js +1 -1
  17. package/dist/commands/claude-usage-command.js +1 -1
  18. package/dist/commands/command.js +1 -1
  19. package/dist/commands/connection-command.js +1 -1
  20. package/dist/commands/databases.js +1 -1
  21. package/dist/commands/delivery-command.js +1 -1
  22. package/dist/commands/describe.js +1 -1
  23. package/dist/commands/engage-always-on-campaign-pull-command.js +1 -1
  24. package/dist/commands/engage-always-on-campaign-push-command.js +1 -1
  25. package/dist/commands/engage-always-on-campaign-validate-command.js +1 -1
  26. package/dist/commands/engage-campaign-pull-command.js +1 -1
  27. package/dist/commands/engage-campaign-push-command.js +1 -1
  28. package/dist/commands/engage-campaign-validate-command.js +1 -1
  29. package/dist/commands/engage-command.js +1 -1
  30. package/dist/commands/engage-template-pull-command.js +1 -1
  31. package/dist/commands/engage-template-push-command.js +1 -1
  32. package/dist/commands/engage-template-validate-command.js +1 -1
  33. package/dist/commands/job-command.js +1 -1
  34. package/dist/commands/journey-command.js +1 -1
  35. package/dist/commands/journey-validate-command.js +1 -1
  36. package/dist/commands/llm-command.js +1 -1
  37. package/dist/commands/mcp-command.js +1 -1
  38. package/dist/commands/p13n-command.js +1 -1
  39. package/dist/commands/parent-segment-command.js +1 -1
  40. package/dist/commands/policy-command.js +1 -1
  41. package/dist/commands/profile-command.js +1 -1
  42. package/dist/commands/profiles-command.js +1 -1
  43. package/dist/commands/query-command.js +1 -1
  44. package/dist/commands/schedule-command.js +1 -1
  45. package/dist/commands/segment-command.js +1 -1
  46. package/dist/commands/segment-create-command.js +1 -1
  47. package/dist/commands/segment-fields-command.js +1 -1
  48. package/dist/commands/segment-move-command.js +1 -1
  49. package/dist/commands/segment-pull-command.js +1 -1
  50. package/dist/commands/segment-push-command.js +1 -1
  51. package/dist/commands/segment-update-command.js +1 -1
  52. package/dist/commands/segment-use-command.js +1 -1
  53. package/dist/commands/segment-validate-command.js +1 -1
  54. package/dist/commands/segments.js +1 -1
  55. package/dist/commands/show.js +1 -1
  56. package/dist/commands/status-command.js +1 -1
  57. package/dist/commands/table-deleted.js +1 -1
  58. package/dist/commands/tables.js +1 -1
  59. package/dist/commands/unset-command.js +1 -1
  60. package/dist/commands/upgrade-command.js +1 -1
  61. package/dist/commands/use-command.js +1 -1
  62. package/dist/commands/user-command.js +1 -1
  63. package/dist/commands/work-command.js +1 -1
  64. package/dist/commands/workflow-command.js +1 -1
  65. package/dist/core/auth.js +1 -1
  66. package/dist/core/command-output.js +1 -1
  67. package/dist/core/config.js +1 -1
  68. package/dist/core/connection-cache.js +1 -1
  69. package/dist/core/constants.js +1 -1
  70. package/dist/core/credential-cache.js +1 -1
  71. package/dist/core/global-context.js +1 -1
  72. package/dist/core/keychain.js +1 -1
  73. package/dist/core/oauth-keychain.js +1 -1
  74. package/dist/core/oauth.js +1 -1
  75. package/dist/core/profile.js +1 -1
  76. package/dist/core/project-config.js +1 -1
  77. package/dist/core/session.js +1 -1
  78. package/dist/core/site-mismatch.js +1 -1
  79. package/dist/core/user-cache.js +1 -1
  80. package/dist/core/version.js +1 -1
  81. package/dist/index.js +1 -1
  82. package/dist/mcp/server.js +1 -1
  83. package/dist/mcp/tools/index.js +1 -1
  84. package/dist/mcp/tools/tdx-run.js +1 -1
  85. package/dist/mcp/tools/tdx-search.js +1 -1
  86. package/dist/mcp/tools/work-create-item.js +1 -1
  87. package/dist/mcp/utils.js +1 -1
  88. package/dist/proxy/claude-usage-tracker.js +1 -1
  89. package/dist/proxy/passthrough-server.js +1 -1
  90. package/dist/proxy/sse-usage-parser.js +1 -1
  91. package/dist/sdk/agent/agent-config.js +1 -1
  92. package/dist/sdk/agent/agent-ref-parser.js +1 -1
  93. package/dist/sdk/agent/agent-yaml.js +1 -1
  94. package/dist/sdk/agent/test/evaluator.js +1 -1
  95. package/dist/sdk/agent/test/executor.js +1 -1
  96. package/dist/sdk/agent/test/index.js +1 -1
  97. package/dist/sdk/agent/test/output.js +1 -1
  98. package/dist/sdk/agent/test/parser.js +1 -1
  99. package/dist/sdk/agent/tool-target-registry.js +1 -1
  100. package/dist/sdk/api.js +1 -1
  101. package/dist/sdk/auth-token.js +1 -1
  102. package/dist/sdk/cas/cas-api-client.js +1 -1
  103. package/dist/sdk/cas/cas-audience-schema.js +1 -1
  104. package/dist/sdk/cas/cas-audience-validator.js +1 -1
  105. package/dist/sdk/cas/cas-audience-yaml.js +1 -1
  106. package/dist/sdk/cas/cas-segment-schema.d.ts +63 -0
  107. package/dist/sdk/cas/cas-segment-schema.d.ts.map +1 -0
  108. package/dist/sdk/cas/cas-segment-schema.js +1 -0
  109. package/dist/sdk/cas/cas-segment-schema.js.map +1 -0
  110. package/dist/sdk/cas/cas-segment-validator.d.ts +76 -0
  111. package/dist/sdk/cas/cas-segment-validator.d.ts.map +1 -0
  112. package/dist/sdk/cas/cas-segment-validator.js +1 -0
  113. package/dist/sdk/cas/cas-segment-validator.js.map +1 -0
  114. package/dist/sdk/cas/cas-segment-yaml.js +1 -1
  115. package/dist/sdk/cas/index.js +1 -1
  116. package/dist/sdk/cas/pull-workflow.js +1 -1
  117. package/dist/sdk/cas/push-workflow.js +1 -1
  118. package/dist/sdk/cas/validate-files.d.ts +23 -6
  119. package/dist/sdk/cas/validate-files.d.ts.map +1 -1
  120. package/dist/sdk/cas/validate-files.js +1 -1
  121. package/dist/sdk/cas/validate-files.js.map +1 -1
  122. package/dist/sdk/client/cdp-api-client.js +1 -1
  123. package/dist/sdk/client/delivery-api-client.js +1 -1
  124. package/dist/sdk/client/endpoints.js +1 -1
  125. package/dist/sdk/client/engage-api-client.js +1 -1
  126. package/dist/sdk/client/http-client.js +1 -1
  127. package/dist/sdk/client/llm-api-client.js +1 -1
  128. package/dist/sdk/client/oauth-refresh.js +1 -1
  129. package/dist/sdk/client/p13n-studio-api-client.js +1 -1
  130. package/dist/sdk/client/rate-limiter.js +1 -1
  131. package/dist/sdk/client/td-api-client.js +1 -1
  132. package/dist/sdk/client/trino-api-client.js +1 -1
  133. package/dist/sdk/client/workflow-client.js +1 -1
  134. package/dist/sdk/connection-validator.js +1 -1
  135. package/dist/sdk/connection.js +1 -1
  136. package/dist/sdk/delivery.js +1 -1
  137. package/dist/sdk/engage/always-on-campaign-pull.js +1 -1
  138. package/dist/sdk/engage/always-on-campaign-push.js +1 -1
  139. package/dist/sdk/engage/always-on-campaign-validator.js +1 -1
  140. package/dist/sdk/engage/always-on-campaign-yaml.js +1 -1
  141. package/dist/sdk/engage/campaign-pull.js +1 -1
  142. package/dist/sdk/engage/campaign-push.js +1 -1
  143. package/dist/sdk/engage/campaign-validator.js +1 -1
  144. package/dist/sdk/engage/campaign-yaml.js +1 -1
  145. package/dist/sdk/engage/template-pull.js +1 -1
  146. package/dist/sdk/engage/template-push.js +1 -1
  147. package/dist/sdk/engage/template-validator.js +1 -1
  148. package/dist/sdk/engage/template-yaml.js +1 -1
  149. package/dist/sdk/engage/types/always-on-campaign-schema.js +1 -1
  150. package/dist/sdk/engage/types/campaign-def.js +1 -1
  151. package/dist/sdk/engage/types/campaign-schema.js +1 -1
  152. package/dist/sdk/engage/types/template-schema.js +1 -1
  153. package/dist/sdk/engage.js +1 -1
  154. package/dist/sdk/errors.js +1 -1
  155. package/dist/sdk/index.js +1 -1
  156. package/dist/sdk/io/index.js +1 -1
  157. package/dist/sdk/io/node-filesystem.js +1 -1
  158. package/dist/sdk/job.js +1 -1
  159. package/dist/sdk/journey.js +1 -1
  160. package/dist/sdk/llm/chat-cache.js +1 -1
  161. package/dist/sdk/llm/index.js +1 -1
  162. package/dist/sdk/llm/llm-backup-utils.js +1 -1
  163. package/dist/sdk/llm/model-factors.js +1 -1
  164. package/dist/sdk/llm/user-settings.js +1 -1
  165. package/dist/sdk/p13n-studio.js +1 -1
  166. package/dist/sdk/personalization.js +1 -1
  167. package/dist/sdk/policy.js +1 -1
  168. package/dist/sdk/query/deleted-table-validation.js +1 -1
  169. package/dist/sdk/query/index.js +1 -1
  170. package/dist/sdk/query/sql-parser.js +1 -1
  171. package/dist/sdk/realtime.js +1 -1
  172. package/dist/sdk/schedule.js +1 -1
  173. package/dist/sdk/segment/child-segment-yaml.d.ts.map +1 -1
  174. package/dist/sdk/segment/child-segment-yaml.js +1 -1
  175. package/dist/sdk/segment/child-segment-yaml.js.map +1 -1
  176. package/dist/sdk/segment/fields-display.js +1 -1
  177. package/dist/sdk/segment/file-discovery.js +1 -1
  178. package/dist/sdk/segment/journey-utils.js +1 -1
  179. package/dist/sdk/segment/journey-validator.js +1 -1
  180. package/dist/sdk/segment/journey-yaml.js +1 -1
  181. package/dist/sdk/segment/parent-segment-preview.js +1 -1
  182. package/dist/sdk/segment/parent-segment-yaml.js +1 -1
  183. package/dist/sdk/segment/pull-workflow.js +1 -1
  184. package/dist/sdk/segment/push-recovery.js +1 -1
  185. package/dist/sdk/segment/push-workflow.js +1 -1
  186. package/dist/sdk/segment/resolution-context.js +1 -1
  187. package/dist/sdk/segment/segment-path-parser.js +1 -1
  188. package/dist/sdk/segment/segment-ref-parser.js +1 -1
  189. package/dist/sdk/segment/segment-validator.js +1 -1
  190. package/dist/sdk/segment/target-resolution.js +1 -1
  191. package/dist/sdk/segment/tdx-config.js +1 -1
  192. package/dist/sdk/segment/types/activation-schema.js +1 -1
  193. package/dist/sdk/segment/types/journey-def.js +1 -1
  194. package/dist/sdk/segment/types/journey-schema.js +1 -1
  195. package/dist/sdk/segment/types/segment-def.js +1 -1
  196. package/dist/sdk/segment/types/segment-schema.d.ts.map +1 -1
  197. package/dist/sdk/segment/types/segment-schema.js +1 -1
  198. package/dist/sdk/segment/types/segment-schema.js.map +1 -1
  199. package/dist/sdk/segment/validate-files.js +1 -1
  200. package/dist/sdk/segment/yaml-validator.d.ts +1 -1
  201. package/dist/sdk/segment/yaml-validator.d.ts.map +1 -1
  202. package/dist/sdk/segment/yaml-validator.js +1 -1
  203. package/dist/sdk/segment/yaml-validator.js.map +1 -1
  204. package/dist/sdk/segment.js +1 -1
  205. package/dist/sdk/types/index.js +1 -1
  206. package/dist/sdk/types/progress.js +1 -1
  207. package/dist/sdk/types/workspace.js +1 -1
  208. package/dist/sdk/user.js +1 -1
  209. package/dist/sdk/util/format-detector.js +1 -1
  210. package/dist/sdk/util/formatters.js +1 -1
  211. package/dist/sdk/util/index.js +1 -1
  212. package/dist/sdk/util/paginate.js +1 -1
  213. package/dist/sdk/util/tree-formatter.js +1 -1
  214. package/dist/sdk/util/tree-search.js +1 -1
  215. package/dist/sdk/workflow/archive-validation.js +1 -1
  216. package/dist/sdk/workflow/clone-workflow.js +1 -1
  217. package/dist/sdk/workflow/index.js +1 -1
  218. package/dist/sdk/workflow/pull-workflow.js +1 -1
  219. package/dist/sdk/workflow/push-workflow.js +1 -1
  220. package/dist/sdk/workflow/task-graph.js +1 -1
  221. package/dist/sdk/workflow/tdx-config.js +1 -1
  222. package/dist/sdk/workflow/workflow-utils.js +1 -1
  223. package/dist/sdk/workspace/access-tracker.js +1 -1
  224. package/dist/sdk/workspace/frontmatter.js +1 -1
  225. package/dist/sdk/workspace/git.js +1 -1
  226. package/dist/sdk/workspace/index.js +1 -1
  227. package/dist/sdk/workspace/templates.js +1 -1
  228. package/dist/sdk/workspace/weekly.js +1 -1
  229. package/dist/sdk/workspace/wikilinks.js +1 -1
  230. package/dist/test-utils/command-runner.js +1 -1
  231. package/dist/test-utils/factories.js +1 -1
  232. package/dist/test-utils/fixtures.js +1 -1
  233. package/dist/test-utils/http-mock.js +1 -1
  234. package/dist/test-utils/index.js +1 -1
  235. package/dist/utils/async.js +1 -1
  236. package/dist/utils/claude-code-state.js +1 -1
  237. package/dist/utils/colors.js +1 -1
  238. package/dist/utils/diff.js +1 -1
  239. package/dist/utils/file-permissions.js +1 -1
  240. package/dist/utils/file-reader.js +1 -1
  241. package/dist/utils/github-releases.js +1 -1
  242. package/dist/utils/global-cache.js +1 -1
  243. package/dist/utils/json-loader.js +1 -1
  244. package/dist/utils/local-cache.js +1 -1
  245. package/dist/utils/logger/formatters/default-formatter.js +1 -1
  246. package/dist/utils/logger/formatters/index.js +1 -1
  247. package/dist/utils/logger/handlers/console-handler.js +1 -1
  248. package/dist/utils/logger/handlers/file-handler.js +1 -1
  249. package/dist/utils/logger/handlers/index.js +1 -1
  250. package/dist/utils/logger/handlers/null-handler.js +1 -1
  251. package/dist/utils/logger/index.js +1 -1
  252. package/dist/utils/logger/logger.js +1 -1
  253. package/dist/utils/logger/types.js +1 -1
  254. package/dist/utils/option-validation.js +1 -1
  255. package/dist/utils/process.js +1 -1
  256. package/dist/utils/prompt.js +1 -1
  257. package/dist/utils/proxy-fetch.js +1 -1
  258. package/dist/utils/spinner.js +1 -1
  259. package/dist/utils/sse-parser.js +1 -1
  260. package/dist/utils/string-utils.js +1 -1
  261. package/dist/utils/table-ref-parser.js +1 -1
  262. package/dist/utils/tdx-logger.js +1 -1
  263. package/dist/utils/version-check.js +1 -1
  264. package/package.json +1 -1
@@ -1 +1 @@
1
- const a34_0x746d49=a34_0x17c5;(function(_0x2085b2,_0x32ada0){const _0x59b7ca=a34_0x17c5,_0x129155=_0x2085b2();while(!![]){try{const _0x504b0a=parseInt(_0x59b7ca(0x1f2))/0x1+-parseInt(_0x59b7ca(0x1f9))/0x2*(parseInt(_0x59b7ca(0x1d5))/0x3)+-parseInt(_0x59b7ca(0x1db))/0x4+parseInt(_0x59b7ca(0x1f6))/0x5*(-parseInt(_0x59b7ca(0x1eb))/0x6)+parseInt(_0x59b7ca(0x1da))/0x7+-parseInt(_0x59b7ca(0x1ef))/0x8+-parseInt(_0x59b7ca(0x1e5))/0x9*(-parseInt(_0x59b7ca(0x1de))/0xa);if(_0x504b0a===_0x32ada0)break;else _0x129155['push'](_0x129155['shift']());}catch(_0x5a07ed){_0x129155['push'](_0x129155['shift']());}}}(a34_0x53c2,0x383be));function a34_0x53c2(){const _0x5ec495=['data','yellow','bold','error','launched','resolveParentSegmentId','9RduaNx','\x20–\x20','numeric','\x20\x20\x20ID:\x20','log','format','7698tfCFhs','green','\x20\x20tdx\x20use\x20--parent-segment\x20<name>\x20\x20\x20#\x20set\x20context\x20first\x0a','parentSegmentId','2036416dWwSGh','execute','parentSegment','89862HxbYps','\x20|\x20','p13nStudio','Usage:\x0a','565fNGVNb','\x20\x20(','No\x20dates\x20set','438KhSAaA','Listing\x20campaigns...','toLocaleDateString','en-US','Site:\x20','✔\x20Found\x20','⚠️\x20','Parent\x20segment\x20ID:\x20','length','status','name','Error:\x20No\x20parent\x20segment\x20specified.\x0a\x0a','stale','segment','dim','List\x20Personalization\x20Studio\x20campaigns','json','2649FNBTvp','\x20\x20tdx\x20ps\x20p13n\x20list\x20--parent-segment\x20<name>\x0a','resolveParentId','draft','\x20\x20tdx\x20ps\x20p13n\x20list\x20--parent-segment-id\x20<id>\x0a','278614dBAgHn','1546996PzlmkX','Resolving\x20parent\x20segment\x20\x27','verbose','10803270xJoOpF'];a34_0x53c2=function(){return _0x5ec495;};return a34_0x53c2();}import a34_0x20826d from'chalk';import{BaseCommand}from'./command.js';import{handleSDKOutput}from'../core/command-output.js';import{withSpinner}from'../utils/spinner.js';export class P13nListCommand extends BaseCommand{[a34_0x746d49(0x1ce)]='p13n:list';['description']=a34_0x746d49(0x1d3);async[a34_0x746d49(0x1f0)](_0x23d8f3){const _0x211ad2=a34_0x746d49,{options:_0x48e95f,tdx:_0x17b888}=_0x23d8f3,_0x2ed018=await this[_0x211ad2(0x1e4)](_0x23d8f3);if(_0x2ed018===null)return 0x1;_0x48e95f['verbose']&&(console['error'](_0x211ad2(0x1c8)+_0x48e95f['site']),console[_0x211ad2(0x1e2)](_0x211ad2(0x1cb)+_0x2ed018));const _0x3a836a=await withSpinner(_0x211ad2(0x1fa),()=>_0x17b888[_0x211ad2(0x1f4)]['listCampaigns'](_0x2ed018),{'verbose':_0x48e95f[_0x211ad2(0x1dd)]}),_0xb39a=_0x3a836a[_0x211ad2(0x1df)];console[_0x211ad2(0x1e2)](_0x211ad2(0x1c9)+_0xb39a[_0x211ad2(0x1cc)]+'\x20campaign'+(_0xb39a[_0x211ad2(0x1cc)]!==0x1?'s':''));if(_0x48e95f[_0x211ad2(0x1ea)]===_0x211ad2(0x1d4)||_0x48e95f[_0x211ad2(0x1ea)]==='jsonl'||_0x48e95f['format']==='tsv')return await handleSDKOutput(_0xb39a,_0x48e95f),0x0;if(_0xb39a[_0x211ad2(0x1cc)]===0x0)return console[_0x211ad2(0x1e2)]('\x0aNo\x20campaigns\x20found.\x20Create\x20one\x20in\x20Personalization\x20Studio.'),0x0;console['log']('');for(const _0x25319f of _0xb39a){const _0x3f8377=statusIcon(_0x25319f[_0x211ad2(0x1cd)]),_0x415363=statusColor(_0x25319f['status'],_0x25319f['status']),_0xd29482=formatDateRange(_0x25319f['startDatetime'],_0x25319f['endDatetime'],_0x25319f['timezone']);console[_0x211ad2(0x1e9)](_0x3f8377+'\x20'+a34_0x20826d[_0x211ad2(0x1e1)](_0x25319f[_0x211ad2(0x1ce)])+_0x211ad2(0x1f7)+_0x415363+')'),console[_0x211ad2(0x1e9)](_0x211ad2(0x1e8)+_0x25319f['id']+_0x211ad2(0x1f3)+_0xd29482);}return 0x0;}async[a34_0x746d49(0x1e4)](_0x4a59e1){const _0x894748=a34_0x746d49,{options:_0x2d448c,args:_0xfce2ef,tdx:_0xf4c6a8}=_0x4a59e1,_0x5c271c=_0x2d448c[_0x894748(0x1ee)];if(_0x5c271c)return Number(_0x5c271c);const _0x7fda91=_0xfce2ef[0x0]||_0x2d448c[_0x894748(0x1f1)];if(!_0x7fda91)return console[_0x894748(0x1e2)](a34_0x20826d['yellow'](_0x894748(0x1cf)+_0x894748(0x1f5)+_0x894748(0x1d9)+_0x894748(0x1d6)+_0x894748(0x1ed))),null;const _0x51ecb8=await withSpinner(_0x894748(0x1dc)+_0x7fda91+'\x27...',()=>_0xf4c6a8[_0x894748(0x1d1)][_0x894748(0x1d7)](_0x7fda91),{'verbose':_0x2d448c['verbose']});return Number(_0x51ecb8[_0x894748(0x1df)]);}}function statusIcon(_0x394d7c){const _0x18d51a=a34_0x746d49;switch(_0x394d7c){case _0x18d51a(0x1e3):return'🚀';case'draft':return'📝';case _0x18d51a(0x1d0):return _0x18d51a(0x1ca);default:return'•';}}function statusColor(_0xbb5b80,_0x267672){const _0x559dd7=a34_0x746d49;switch(_0xbb5b80){case'launched':return a34_0x20826d[_0x559dd7(0x1ec)](_0x267672);case _0x559dd7(0x1d8):return a34_0x20826d[_0x559dd7(0x1d2)](_0x267672);case'stale':return a34_0x20826d[_0x559dd7(0x1e0)](_0x267672);default:return _0x267672;}}function a34_0x17c5(_0x4a0c1d,_0x23ab81){_0x4a0c1d=_0x4a0c1d-0x1c7;const _0x53c264=a34_0x53c2();let _0x17c5f6=_0x53c264[_0x4a0c1d];return _0x17c5f6;}function formatDateRange(_0x3af8cf,_0x37c381,_0x1ace46){const _0x5765ae=a34_0x746d49;if(!_0x3af8cf&&!_0x37c381)return _0x5765ae(0x1f8);const _0x1b19e9=_0x1ace46?'\x20'+_0x1ace46:'',_0x1141c2=_0x3af8cf?formatDate(_0x3af8cf):'?',_0x35cd5c=_0x37c381?formatDate(_0x37c381):'?';return _0x1141c2+_0x5765ae(0x1e6)+_0x35cd5c+_0x1b19e9;}function formatDate(_0x1b79ee){const _0x469e09=a34_0x746d49,_0x3cc1ab=new Date(_0x1b79ee);return _0x3cc1ab[_0x469e09(0x1fb)](_0x469e09(0x1c7),{'month':'short','day':_0x469e09(0x1e7),'year':_0x469e09(0x1e7)});}
1
+ const a34_0x4d64e1=a34_0x50d2;(function(_0x5c8a8a,_0x35a840){const _0x261d6e=a34_0x50d2,_0x48570f=_0x5c8a8a();while(!![]){try{const _0x607b9c=parseInt(_0x261d6e(0xf2))/0x1+parseInt(_0x261d6e(0xe2))/0x2+parseInt(_0x261d6e(0x101))/0x3+-parseInt(_0x261d6e(0xf3))/0x4*(-parseInt(_0x261d6e(0x100))/0x5)+-parseInt(_0x261d6e(0x112))/0x6+-parseInt(_0x261d6e(0xeb))/0x7+parseInt(_0x261d6e(0x111))/0x8*(-parseInt(_0x261d6e(0x10c))/0x9);if(_0x607b9c===_0x35a840)break;else _0x48570f['push'](_0x48570f['shift']());}catch(_0x478f0f){_0x48570f['push'](_0x48570f['shift']());}}}(a34_0x56ac,0xda440));import a34_0x2e4b99 from'chalk';import{BaseCommand}from'./command.js';function a34_0x56ac(){const _0xb146b9=['\x20campaign','site','List\x20Personalization\x20Studio\x20campaigns','stale','log','verbose','resolveParentId','startDatetime','1230wbkfJK','1015794GxZktu','\x20\x20\x20ID:\x20','jsonl','launched','dim','listCampaigns','\x20\x20(','data','en-US','Parent\x20segment\x20ID:\x20','timezone','477uMNjCn','resolveParentSegmentId','p13n:list','length','yellow','2280XiiElJ','9324888qrrnsX','Listing\x20campaigns...','description','No\x20dates\x20set','\x20\x20tdx\x20ps\x20p13n\x20list\x20--parent-segment\x20<name>\x0a','1456332WxPiux','\x20|\x20','\x20\x20tdx\x20ps\x20p13n\x20list\x20--parent-segment-id\x20<id>\x0a','error','numeric','format','parentSegment','Usage:\x0a','parentSegmentId','2614997aPzCfz','Resolving\x20parent\x20segment\x20\x27','\x20\x20tdx\x20use\x20--parent-segment\x20<name>\x20\x20\x20#\x20set\x20context\x20first\x0a','endDatetime','json','toLocaleDateString','status','1373278yTqVCW','6452utodHR','name','draft','\x27...','\x20–\x20'];a34_0x56ac=function(){return _0xb146b9;};return a34_0x56ac();}import{handleSDKOutput}from'../core/command-output.js';function a34_0x50d2(_0x40dfaa,_0x313282){_0x40dfaa=_0x40dfaa-0xe2;const _0x56acda=a34_0x56ac();let _0x50d269=_0x56acda[_0x40dfaa];return _0x50d269;}import{withSpinner}from'../utils/spinner.js';export class P13nListCommand extends BaseCommand{[a34_0x4d64e1(0xf4)]=a34_0x4d64e1(0x10e);[a34_0x4d64e1(0x114)]=a34_0x4d64e1(0xfa);async['execute'](_0x3d1fd6){const _0x3e6692=a34_0x4d64e1,{options:_0x4e912f,tdx:_0x6cd808}=_0x3d1fd6,_0x3ed14f=await this[_0x3e6692(0x10d)](_0x3d1fd6);if(_0x3ed14f===null)return 0x1;_0x4e912f[_0x3e6692(0xfd)]&&(console[_0x3e6692(0xe5)]('Site:\x20'+_0x4e912f[_0x3e6692(0xf9)]),console[_0x3e6692(0xe5)](_0x3e6692(0x10a)+_0x3ed14f));const _0x320058=await withSpinner(_0x3e6692(0x113),()=>_0x6cd808['p13nStudio'][_0x3e6692(0x106)](_0x3ed14f),{'verbose':_0x4e912f['verbose']}),_0x1043de=_0x320058[_0x3e6692(0x108)];console[_0x3e6692(0xe5)]('✔\x20Found\x20'+_0x1043de[_0x3e6692(0x10f)]+_0x3e6692(0xf8)+(_0x1043de[_0x3e6692(0x10f)]!==0x1?'s':''));if(_0x4e912f[_0x3e6692(0xe7)]===_0x3e6692(0xef)||_0x4e912f[_0x3e6692(0xe7)]===_0x3e6692(0x103)||_0x4e912f['format']==='tsv')return await handleSDKOutput(_0x1043de,_0x4e912f),0x0;if(_0x1043de['length']===0x0)return console[_0x3e6692(0xe5)]('\x0aNo\x20campaigns\x20found.\x20Create\x20one\x20in\x20Personalization\x20Studio.'),0x0;console[_0x3e6692(0xfc)]('');for(const _0x130143 of _0x1043de){const _0x1c3381=statusIcon(_0x130143[_0x3e6692(0xf1)]),_0x4b806d=statusColor(_0x130143[_0x3e6692(0xf1)],_0x130143[_0x3e6692(0xf1)]),_0x3ad43b=formatDateRange(_0x130143[_0x3e6692(0xff)],_0x130143[_0x3e6692(0xee)],_0x130143[_0x3e6692(0x10b)]);console[_0x3e6692(0xfc)](_0x1c3381+'\x20'+a34_0x2e4b99['bold'](_0x130143[_0x3e6692(0xf4)])+_0x3e6692(0x107)+_0x4b806d+')'),console[_0x3e6692(0xfc)](_0x3e6692(0x102)+_0x130143['id']+_0x3e6692(0xe3)+_0x3ad43b);}return 0x0;}async[a34_0x4d64e1(0x10d)](_0x1c657f){const _0x3d9b60=a34_0x4d64e1,{options:_0x5aa4ee,args:_0xd6bc6c,tdx:_0x3d6df5}=_0x1c657f,_0x1d780f=_0x5aa4ee[_0x3d9b60(0xea)];if(_0x1d780f)return Number(_0x1d780f);const _0x4c805a=_0xd6bc6c[0x0]||_0x5aa4ee[_0x3d9b60(0xe8)];if(!_0x4c805a)return console[_0x3d9b60(0xe5)](a34_0x2e4b99['yellow']('Error:\x20No\x20parent\x20segment\x20specified.\x0a\x0a'+_0x3d9b60(0xe9)+_0x3d9b60(0xe4)+_0x3d9b60(0x116)+_0x3d9b60(0xed))),null;const _0x77159f=await withSpinner(_0x3d9b60(0xec)+_0x4c805a+_0x3d9b60(0xf6),()=>_0x3d6df5['segment'][_0x3d9b60(0xfe)](_0x4c805a),{'verbose':_0x5aa4ee[_0x3d9b60(0xfd)]});return Number(_0x77159f[_0x3d9b60(0x108)]);}}function statusIcon(_0x1f924d){const _0x4de280=a34_0x4d64e1;switch(_0x1f924d){case _0x4de280(0x104):return'🚀';case _0x4de280(0xf5):return'📝';case _0x4de280(0xfb):return'⚠️\x20';default:return'•';}}function statusColor(_0x483d56,_0x363bb3){const _0x58c009=a34_0x4d64e1;switch(_0x483d56){case _0x58c009(0x104):return a34_0x2e4b99['green'](_0x363bb3);case _0x58c009(0xf5):return a34_0x2e4b99[_0x58c009(0x105)](_0x363bb3);case _0x58c009(0xfb):return a34_0x2e4b99[_0x58c009(0x110)](_0x363bb3);default:return _0x363bb3;}}function formatDateRange(_0x37b3c8,_0x52a660,_0x377dd0){const _0x1128a4=a34_0x4d64e1;if(!_0x37b3c8&&!_0x52a660)return _0x1128a4(0x115);const _0x51c35b=_0x377dd0?'\x20'+_0x377dd0:'',_0x56e03e=_0x37b3c8?formatDate(_0x37b3c8):'?',_0x3ca6b0=_0x52a660?formatDate(_0x52a660):'?';return _0x56e03e+_0x1128a4(0xf7)+_0x3ca6b0+_0x51c35b;}function formatDate(_0x23f100){const _0x2e24df=a34_0x4d64e1,_0x4f067a=new Date(_0x23f100);return _0x4f067a[_0x2e24df(0xf0)](_0x2e24df(0x109),{'month':'short','day':'numeric','year':_0x2e24df(0xe6)});}