@koda-sl/baker-cli 0.852.0-dev.55d5a1c2b → 0.852.0-dev.65f932cdf
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -7
- package/dist/{account-PKCDR22I.js → account-Z62BVYAI.js} +3 -3
- package/dist/{account-users-UO4OVX3W.js → account-users-ZDZ7B4BX.js} +3 -3
- package/dist/{accounts-3PEIYK7V.js → accounts-SUIMNTTA.js} +2 -2
- package/dist/{ads-ED5L55ME.js → ads-BYETTX2Y.js} +2 -2
- package/dist/{analytics-SVV7JZ2J.js → analytics-KA3THH3F.js} +2 -2
- package/dist/{analytics-DH7JTWW7.js → analytics-WLFBQOO4.js} +2 -2
- package/dist/audience-size-ISJSPSRW.js +77 -0
- package/dist/audience-size-ISJSPSRW.js.map +1 -0
- package/dist/{audit-PEOYEN4A.js → audit-EHKSN2WS.js} +2 -2
- package/dist/{bid-pricing-HVUVHS3F.js → bid-pricing-HFBQ23DD.js} +2 -2
- package/dist/{campaign-groups-YGIZAWMT.js → campaign-groups-DKB3K7L4.js} +8 -8
- package/dist/{campaigns-FIU3FF7Q.js → campaigns-6OYAQVIE.js} +11 -11
- package/dist/{chunk-6G2EVVNW.js → chunk-63XEBJIX.js} +2 -2
- package/dist/{chunk-TWSIY2FS.js → chunk-H3CYVM4E.js} +7 -3
- package/dist/chunk-H3CYVM4E.js.map +1 -0
- package/dist/{chunk-ZPLZHTWI.js → chunk-WVXJYBWA.js} +1 -2
- package/dist/{chunk-D2BRYEOF.js → chunk-YXYUHTQM.js} +2 -2
- package/dist/cli.js +3 -3
- package/dist/{companies-65CQH5NZ.js → companies-ITNWR5Q4.js} +3 -3
- package/dist/{conversation-EUPDVCN5.js → conversation-SKZMGVA5.js} +2 -2
- package/dist/{conversions-JN2QSYKN.js → conversions-IMST22UQ.js} +7 -7
- package/dist/{creatives-FLL2NBH2.js → creatives-42PW2C24.js} +8 -8
- package/dist/{demographics-SR66Q3Q2.js → demographics-K5WTHZCW.js} +2 -2
- package/dist/{draft-XV3SNAT5.js → draft-JGEZVDAS.js} +3 -3
- package/dist/{experiments-BT3QLENT.js → experiments-C4R65GA6.js} +3 -3
- package/dist/{facets-RTH4UYOZ.js → facets-GXBTQCAW.js} +9 -51
- package/dist/facets-GXBTQCAW.js.map +1 -0
- package/dist/{forecast-NH7BO45V.js → forecast-NOQNCFTX.js} +2 -2
- package/dist/{hubspot-W5LYFWTH.js → hubspot-NG2KTQDY.js} +2 -2
- package/dist/{leads-QAMBOEX7.js → leads-ZRHPHJRE.js} +2 -2
- package/dist/{linkedin-DWWA5CGK.js → linkedin-BD63QPGK.js} +32 -46
- package/dist/linkedin-BD63QPGK.js.map +1 -0
- package/dist/{preview-TK4Q53KQ.js → preview-66BGLU5H.js} +2 -2
- package/dist/{resolve-JEEIJJOP.js → resolve-NVL3FTQU.js} +2 -2
- package/dist/{revenue-J7YSHGB6.js → revenue-C24BDD5A.js} +3 -3
- package/dist/{sources-G7QWYL2J.js → sources-DVNWHBF5.js} +10 -4
- package/dist/sources-DVNWHBF5.js.map +1 -0
- package/dist/{top-companies-XAZTHC44.js → top-companies-KEV55RME.js} +3 -3
- package/dist/{url-params-5FXKA6J2.js → url-params-CXUAYJBD.js} +2 -2
- package/dist/{write-commands-TDME3RU2.js → write-commands-FUXBKDN7.js} +3 -3
- package/package.json +1 -1
- package/dist/audience-size-NHQZQ7DR.js +0 -137
- package/dist/audience-size-NHQZQ7DR.js.map +0 -1
- package/dist/chunk-TWSIY2FS.js.map +0 -1
- package/dist/facets-RTH4UYOZ.js.map +0 -1
- package/dist/linkedin-DWWA5CGK.js.map +0 -1
- package/dist/sources-G7QWYL2J.js.map +0 -1
- /package/dist/{account-PKCDR22I.js.map → account-Z62BVYAI.js.map} +0 -0
- /package/dist/{account-users-UO4OVX3W.js.map → account-users-ZDZ7B4BX.js.map} +0 -0
- /package/dist/{accounts-3PEIYK7V.js.map → accounts-SUIMNTTA.js.map} +0 -0
- /package/dist/{ads-ED5L55ME.js.map → ads-BYETTX2Y.js.map} +0 -0
- /package/dist/{analytics-SVV7JZ2J.js.map → analytics-KA3THH3F.js.map} +0 -0
- /package/dist/{analytics-DH7JTWW7.js.map → analytics-WLFBQOO4.js.map} +0 -0
- /package/dist/{audit-PEOYEN4A.js.map → audit-EHKSN2WS.js.map} +0 -0
- /package/dist/{bid-pricing-HVUVHS3F.js.map → bid-pricing-HFBQ23DD.js.map} +0 -0
- /package/dist/{campaign-groups-YGIZAWMT.js.map → campaign-groups-DKB3K7L4.js.map} +0 -0
- /package/dist/{campaigns-FIU3FF7Q.js.map → campaigns-6OYAQVIE.js.map} +0 -0
- /package/dist/{chunk-6G2EVVNW.js.map → chunk-63XEBJIX.js.map} +0 -0
- /package/dist/{chunk-ZPLZHTWI.js.map → chunk-WVXJYBWA.js.map} +0 -0
- /package/dist/{chunk-D2BRYEOF.js.map → chunk-YXYUHTQM.js.map} +0 -0
- /package/dist/{companies-65CQH5NZ.js.map → companies-ITNWR5Q4.js.map} +0 -0
- /package/dist/{conversation-EUPDVCN5.js.map → conversation-SKZMGVA5.js.map} +0 -0
- /package/dist/{conversions-JN2QSYKN.js.map → conversions-IMST22UQ.js.map} +0 -0
- /package/dist/{creatives-FLL2NBH2.js.map → creatives-42PW2C24.js.map} +0 -0
- /package/dist/{demographics-SR66Q3Q2.js.map → demographics-K5WTHZCW.js.map} +0 -0
- /package/dist/{draft-XV3SNAT5.js.map → draft-JGEZVDAS.js.map} +0 -0
- /package/dist/{experiments-BT3QLENT.js.map → experiments-C4R65GA6.js.map} +0 -0
- /package/dist/{forecast-NH7BO45V.js.map → forecast-NOQNCFTX.js.map} +0 -0
- /package/dist/{hubspot-W5LYFWTH.js.map → hubspot-NG2KTQDY.js.map} +0 -0
- /package/dist/{leads-QAMBOEX7.js.map → leads-ZRHPHJRE.js.map} +0 -0
- /package/dist/{preview-TK4Q53KQ.js.map → preview-66BGLU5H.js.map} +0 -0
- /package/dist/{resolve-JEEIJJOP.js.map → resolve-NVL3FTQU.js.map} +0 -0
- /package/dist/{revenue-J7YSHGB6.js.map → revenue-C24BDD5A.js.map} +0 -0
- /package/dist/{top-companies-XAZTHC44.js.map → top-companies-KEV55RME.js.map} +0 -0
- /package/dist/{url-params-5FXKA6J2.js.map → url-params-CXUAYJBD.js.map} +0 -0
- /package/dist/{write-commands-TDME3RU2.js.map → write-commands-FUXBKDN7.js.map} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/commands/ads/linkedin/index.ts","../src/commands/ads/linkedin/schemas.ts"],"sourcesContent":["import { defineCommand } from \"citty\";\nimport { apiGet } from \"../../../client.ts\";\nimport { applyAccountRule } from \"../sole-account.ts\";\nimport { normalizeLinkedinAccountId } from \"./shared.ts\";\nimport \"./schemas.ts\"; // side-effect import: registers `baker schema ads.linkedin.*` entries\n\n/**\n * LinkedIn Ads CLI — designed around LinkedIn's distinguishing strength:\n * firmographic (per-job-title, per-company, per-industry, per-seniority)\n * pivots on adAnalytics. AI agents should reach for `linkedin analytics\n * --pivot job-title` and `--pivot company` when answering ABM/persona\n * questions — Meta and Google can't do that.\n *\n * Read-only v1. All analytics queries default to `--level account --intent\n * baseline --granularity DAILY --last-days 7`. When pivoting on a MEMBER_*\n * dimension, the CLI auto-forces granularity=ALL (LinkedIn rejects\n * DAILY + demographic) and surfaces a \"demographic delayed 12-24h\" warning.\n *\n * Authentication: requires the LinkedIn integration to be connected in the\n * dashboard with `r_ads` and `r_ads_reporting` scopes. CLI talks to Baker's\n * backend, which holds the OAuth token.\n */\nexport const linkedinCommand = defineCommand({\n meta: {\n name: \"linkedin\",\n description: `LinkedIn Marketing API — AI-first command surface for B2B ad insights.\n\nDiscovery:\n baker ads linkedin accounts — accounts in this company's connected scope\n baker ads linkedin account --account-id 503001492 — single-account detail (currency, type, status)\n baker ads linkedin url-params [--ad-sets] — UTMs in effect today, and keys set at two levels\n baker ads linkedin account-users — who is on the ad account, their role, who connected LinkedIn\n\nHierarchy (default ACTIVE-only — pass --all-statuses to widen):\n baker ads linkedin campaign-groups --account-id 503001492\n baker ads linkedin campaigns --account-id 503001492\n baker ads linkedin campaigns --account-id 503001492 --campaign-group-id 12345\n baker ads linkedin creatives --account-id 503001492 --campaign-id 67890\n baker ads linkedin creatives get <id> — one ad: headline, landing URL, form, review, why not serving\n baker ads linkedin preview <id> — SEE one ad as the feed shows it (displayed text + pictures)\n baker ads linkedin lead-forms — lead gen forms: state, version, questions\n\nRevenue (CRM deals credited to the ads; needs Business Manager + CRM):\n baker ads linkedin revenue [--pivot campaign|campaign-group|account] [--start --end]\n\nPerformance — the workhorse (3 axes):\n baker ads linkedin analytics — defaults: level=account, intent=baseline, last_7d, DAILY\n baker ads linkedin analytics --intent revenue --last-days 28\n baker ads linkedin analytics --level campaign --campaign-id 1234 --pivot job-title — LinkedIn's superpower (per-title perf)\n baker ads linkedin analytics --level campaign --campaign-id 1234 --pivot company — top companies seeing the ad (ABM gold; names auto-resolved)\n baker ads linkedin companies --last-months 12 --by month — which companies the ads reached, per month (ABM / warm accounts)\n baker ads linkedin resolve --urns urn:li:organization:17719 — resolve org URNs to company names\n baker ads linkedin analytics --level campaign --campaign-id 1234 --intent ranking — fatigue: derives frequency\n baker ads linkedin analytics --list-intents\n baker ads linkedin analytics --list-pivots\n\nStaged writes (never hit LinkedIn directly — ops stage on this chat's draft,\nshow in the dashboard as pending LinkedIn changes, and apply when the chat is\npublished, at which point they reach the real ad account):\n baker ads linkedin account url-params — UTMs for every ad in the account\n baker ads linkedin campaign-groups create|update|pause|resume|duplicate|delete\n baker ads linkedin campaigns create|update|pause|resume|archive|duplicate|delete\n baker ads linkedin creatives create|update|pause|resume|duplicate|delete\n baker ads linkedin audiences create|upload|delete\n baker ads linkedin conversions create|update\n baker ads linkedin lead-forms create|update|publish|archive\n baker ads linkedin experiments create|update|start|pause|end — A/B test two ad sets (list/get to read)\n baker ads linkedin draft list — review staged ops\n baker ads linkedin draft remove <ref> — undo one (draft clear: all)\n\nAccount ID:\n --account-id accepts numeric (503001492) or URN (urn:li:sponsoredAccount:503001492), on every command.\n With one ad account selected, every command uses it — no flag needed. With several, pass --account-id.\nFull guide: __tooling__/docs/tools/baker/ads-linkedin.md`,\n },\n setup: ({ rawArgs }) =>\n applyAccountRule({\n platform: \"LinkedIn\",\n rawArgs,\n flags: [\"--account-id\", \"--account-urn\"],\n envVar: \"BAKER_LINKEDIN_AD_ACCOUNT_ID\",\n skip: new Set([\"accounts\", \"resolve\", \"facets\", \"draft\"]),\n list: async () =>\n (await apiGet<Array<{ externalId: string; name?: string }>>(\"/api/ads/linkedin/accounts\")).map((account) => ({\n id: account.externalId,\n ...(account.name ? { label: account.name } : {}),\n })),\n normalize: normalizeLinkedinAccountId,\n }),\n subCommands: {\n accounts: () => import(\"./accounts.ts\").then((m) => m.accountsCommand),\n account: () => import(\"./account.ts\").then((m) => m.accountCommand),\n \"account-users\": () => import(\"./account-users.ts\").then((m) => m.accountUsersCommand),\n \"campaign-groups\": () => import(\"./campaign-groups.ts\").then((m) => m.campaignGroupsCommand),\n campaigns: () => import(\"./campaigns.ts\").then((m) => m.campaignsCommand),\n creatives: () => import(\"./creatives.ts\").then((m) => m.creativesCommand),\n preview: () => import(\"./preview.ts\").then((m) => m.previewCommand),\n audiences: () => import(\"./write-commands.ts\").then((m) => m.audiencesCommand),\n \"lead-forms\": () => import(\"./write-commands.ts\").then((m) => m.leadFormsCommand),\n experiments: () => import(\"./experiments.ts\").then((m) => m.experimentsCommand),\n draft: () => import(\"./draft.ts\").then((m) => m.linkedinDraftCommand),\n analytics: () => import(\"./analytics.ts\").then((m) => m.analyticsCommand),\n demographics: () => import(\"./demographics.ts\").then((m) => m.demographicsCommand),\n companies: () => import(\"./companies.ts\").then((m) => m.companiesCommand),\n \"top-companies\": () => import(\"./top-companies.ts\").then((m) => m.topCompaniesCommand),\n resolve: () => import(\"./resolve.ts\").then((m) => m.resolveCommand),\n facets: () => import(\"./facets.ts\").then((m) => m.facetsCommand),\n \"audience-size\": () => import(\"./audience-size.ts\").then((m) => m.audienceSizeCommand),\n \"bid-pricing\": () => import(\"./bid-pricing.ts\").then((m) => m.bidPricingCommand),\n forecast: () => import(\"./forecast.ts\").then((m) => m.forecastCommand),\n leads: () => import(\"./leads.ts\").then((m) => m.leadsCommand),\n revenue: () => import(\"./revenue.ts\").then((m) => m.revenueCommand),\n conversions: () => import(\"./conversions.ts\").then((m) => m.conversionsCommand),\n conversation: () => import(\"./conversation.ts\").then((m) => m.conversationCommand),\n audit: () => import(\"./audit.ts\").then((m) => m.auditCommand),\n \"url-params\": () => import(\"./url-params.ts\").then((m) => m.urlParamsCommand),\n },\n});\n","import type { CommandRoute } from \"@baker/api/cli-catalog/entry\";\nimport { AVAILABLE_ARG } from \"../../../available-accounts.ts\";\nimport { NO_CACHE_ARG } from \"../../../cache-flag.ts\";\nimport { type CommandEffectDeclaration, registerSchema } from \"../../../schemas.ts\";\nimport { CHAT_READ_ARG, DRAFT_FULL_ARG } from \"../../chat-arg.ts\";\nimport { LIST_WHERE_ARG } from \"../../draft-where.ts\";\nimport { SHOW_FULL_ARG } from \"../draft-show.ts\";\nimport { statusesArgDescription } from \"./shared.ts\";\nimport { STAGE_FULL_ARG, TOTAL_BUDGET_HELP } from \"./write-shared.ts\";\n\nconst CHAT_READ_ARG_DESCRIPTION = CHAT_READ_ARG.description;\n\n/** Every command naming an ad account reads the company's accounts first when none is named (`./index.ts`). */\nconst ACCOUNTS: CommandRoute = \"GET /api/ads/linkedin/accounts\";\nconst STAGE: CommandRoute = \"POST /api/ads/linkedin/draft/stage\";\n\nconst ACCOUNTS_READ: CommandEffectDeclaration = { effect: \"read\", routes: [ACCOUNTS] };\n\n/** Reads the ad account live on LinkedIn. */\nfunction live(route: CommandRoute): CommandEffectDeclaration {\n return { effect: \"read_live\", routes: [route, ACCOUNTS] };\n}\n\n/** Reads LinkedIn live, for no account in particular. */\nfunction liveWithoutAccount(route: CommandRoute): CommandEffectDeclaration {\n return { effect: \"read_live\", routes: [route] };\n}\n\n/** Stages one op of `kind` on this chat's draft (`./write-shared.ts` `stageOp`). */\nfunction staged(kind: string): CommandEffectDeclaration {\n return { effect: \"stage\", routes: [STAGE, ACCOUNTS], stages: [kind] };\n}\n\n/** Stages one op of `kind` per id, several together as one set (`./write-shared.ts` `stageLinkedinOps`). */\nfunction stagedTogether(kind: string): CommandEffectDeclaration {\n return { effect: \"stage\", routes: [STAGE, \"POST /api/ads/linkedin/draft/stage-batch\", ACCOUNTS], stages: [kind] };\n}\n\n/** Stages a copy of a live node as a new create. */\nfunction copied(kind: string): CommandEffectDeclaration {\n return { effect: \"stage\", routes: [\"POST /api/ads/linkedin/draft/duplicate\", ACCOUNTS], stages: [kind] };\n}\n\n// Single file rather than per-command. Imported from ./index.ts so registration\n// runs at CLI startup. Mirrors the surface visible to AI agents via\n// `baker schema ads.linkedin.<name>`.\n\nregisterSchema({\n command: \"ads.linkedin.accounts\",\n ...ACCOUNTS_READ,\n description: \"List LinkedIn ad accounts in the company's connected scope.\",\n args: {\n \"no-cache\": NO_CACHE_ARG,\n output: { type: \"string\", description: \"json|csv|jsonl|md\", required: false, default: \"json\" },\n available: AVAILABLE_ARG,\n },\n});\n\nconst accountDetailSchema = {\n ...live(\"GET /api/ads/linkedin/account\"),\n description:\n \"Single LinkedIn ad account detail (currency, status, type). Resolves the urn → {id, name, currency, status, type}.\",\n args: {\n \"account-id\": { type: \"string\", description: \"Numeric ID or urn:li:sponsoredAccount:N\", required: false },\n \"account-urn\": { type: \"string\", description: \"Alias for --account-id\", required: false },\n \"no-cache\": NO_CACHE_ARG,\n output: { type: \"string\", description: \"json|csv|jsonl|md\", required: false, default: \"json\" },\n },\n} as const;\n\n// `account` with no subcommand still runs the detail read, so both names answer.\nregisterSchema({ command: \"ads.linkedin.account\", ...accountDetailSchema });\nregisterSchema({ command: \"ads.linkedin.account.detail\", ...accountDetailSchema });\n\nregisterSchema({\n command: \"ads.linkedin.campaign-groups\",\n ...live(\"GET /api/ads/linkedin/campaign-groups\"),\n description: \"List LinkedIn campaign groups in an account. Default ACTIVE-only — pass --all-statuses to widen.\",\n args: {\n \"account-id\": { type: \"string\", description: \"Account ID\", required: false },\n \"account-urn\": { type: \"string\", description: \"Alias for --account-id\", required: false },\n \"all-statuses\": { type: \"boolean\", description: \"Drop the ACTIVE filter\", required: false },\n statuses: { type: \"string\", description: statusesArgDescription(\"campaignGroups\"), required: false },\n limit: { type: \"string\", description: \"Max rows (default 500)\", required: false },\n \"no-cache\": NO_CACHE_ARG,\n output: { type: \"string\", description: \"json|csv|jsonl|md\", required: false, default: \"json\" },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.campaigns\",\n ...live(\"GET /api/ads/linkedin/campaigns\"),\n description:\n \"List LinkedIn campaigns (the UI's ad sets). Compact by default: id, name, status, campaignGroup, costType, optimizationTargetType, dailyBudget, plus audienceExpansionEnabled/offsiteDeliveryEnabled on the ad sets that have them on. --targeting returns each ad set's bid and targeting by name, one line per facet, to compare audiences — it lists every facet targeted, so a missing facet is not targeted; raw targetingCriteria is only for copying into a --targeting-file; --fields takes dotted paths (servingStatuses, objectiveType, targetingCriteria, …); --full returns the raw records.\",\n args: {\n \"account-id\": { type: \"string\", description: \"Account ID\", required: false },\n \"account-urn\": { type: \"string\", description: \"Alias\", required: false },\n \"campaign-group-id\": { type: \"string\", description: \"Filter by campaign group\", required: false },\n \"all-statuses\": { type: \"boolean\", description: \"Drop the ACTIVE filter\", required: false },\n statuses: { type: \"string\", description: statusesArgDescription(\"campaigns\"), required: false },\n fields: {\n type: \"string\",\n description:\n \"CSV of dotted paths to return instead of the compact row, e.g. id,name,dailyBudget.amount,targetingCriteria\",\n required: false,\n },\n full: {\n type: \"boolean\",\n description: \"Return the complete raw records, including targetingCriteria and locale\",\n required: false,\n },\n targeting: {\n type: \"boolean\",\n description:\n \"Each ad set's id, name, status, costType, unitCost and targeting: { include[], exclude[] } lines with names — every facet targeted; a missing facet is not targeted\",\n required: false,\n },\n limit: { type: \"string\", description: \"Max rows\", required: false },\n \"no-cache\": NO_CACHE_ARG,\n output: { type: \"string\", description: \"json|csv|jsonl|md\", required: false, default: \"json\" },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.creatives\",\n ...live(\"GET /api/ads/linkedin/creatives\"),\n description:\n \"List LinkedIn creatives. Compact by default: id, urn, campaign, status, review status (and rejectionReasons on a rejected ad), format, and the resolved destination (landingUrl, or postUrn for post-based ads). The opaque 'content' block is NOT returned unless you pass --full; --fields takes dotted paths for anything narrower.\",\n args: {\n \"account-id\": { type: \"string\", description: \"Account ID\", required: false },\n \"account-urn\": { type: \"string\", description: \"Alias\", required: false },\n \"campaign-id\": { type: \"string\", description: \"Filter by campaign\", required: false },\n \"all-statuses\": { type: \"boolean\", description: \"Drop the ACTIVE filter\", required: false },\n statuses: { type: \"string\", description: statusesArgDescription(\"creatives\"), required: false },\n fields: {\n type: \"string\",\n description: \"CSV of dotted paths to return instead of the compact row, e.g. id,content.textAd.landingPage\",\n required: false,\n },\n full: {\n type: \"boolean\",\n description: \"Return the complete raw records, including the opaque 'content' block\",\n required: false,\n },\n limit: { type: \"string\", description: \"Max rows\", required: false },\n \"no-cache\": NO_CACHE_ARG,\n output: { type: \"string\", description: \"json|csv|jsonl|md\", required: false, default: \"json\" },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.analytics\",\n ...live(\"POST /api/ads/linkedin/analytics\"),\n description:\n \"Performance reporting (3-axis: --level × --intent × --pivot). LinkedIn's superpower: pivot=job-title|company|industry|seniority. Demographic pivots auto-force granularity=ALL and surface a delayed-data warning.\",\n args: {\n level: {\n type: \"string\",\n description: \"account|campaign-group|campaign|creative\",\n required: false,\n default: \"account\",\n },\n \"account-id\": { type: \"string\", description: \"When level=account\", required: false },\n \"account-urn\": { type: \"string\", description: \"Alias\", required: false },\n \"campaign-group-id\": { type: \"string\", description: \"CSV when level=campaign-group\", required: false },\n \"campaign-id\": { type: \"string\", description: \"CSV when level=campaign\", required: false },\n \"creative-id\": { type: \"string\", description: \"CSV when level=creative\", required: false },\n ids: { type: \"string\", description: \"Generic CSV alternative\", required: false },\n intent: {\n type: \"string\",\n description: \"Field bundle\",\n required: false,\n default: \"baseline\",\n enum: [\n \"baseline\",\n \"revenue\",\n \"funnel\",\n \"engagement\",\n \"video\",\n \"lead-gen\",\n \"inmail\",\n \"document\",\n \"ranking\",\n \"identity\",\n ],\n },\n pivot: {\n type: \"string\",\n description: \"Demographic / firmographic dim\",\n required: false,\n default: \"none\",\n enum: [\n \"none\",\n \"campaign\",\n \"campaign-group\",\n \"creative\",\n \"company\",\n \"account\",\n \"conversion\",\n \"job-title\",\n \"job-function\",\n \"seniority\",\n \"industry\",\n \"company-size\",\n \"country\",\n \"region\",\n \"dma\",\n \"device\",\n \"placement\",\n \"serving-location\",\n \"card-index\",\n \"objective\",\n \"conversation-node\",\n \"conversation-node-button\",\n ],\n },\n metrics: { type: \"string\", description: \"CSV metric override (escape hatch)\", required: false },\n start: { type: \"string\", description: \"YYYY-MM-DD\", required: false },\n end: { type: \"string\", description: \"YYYY-MM-DD\", required: false },\n \"last-days\": { type: \"string\", description: \"Window (default 7)\", required: false },\n granularity: {\n type: \"string\",\n description: \"DAILY|MONTHLY|YEARLY|ALL\",\n required: false,\n default: \"DAILY\",\n enum: [\"DAILY\", \"MONTHLY\", \"YEARLY\", \"ALL\"],\n },\n limit: { type: \"string\", description: \"Max rows\", required: false },\n \"no-sort\": { type: \"boolean\", description: \"Skip default sort\", required: false },\n \"list-intents\": { type: \"boolean\", description: \"List intents and exit\", required: false },\n \"list-pivots\": { type: \"boolean\", description: \"List pivots and exit\", required: false },\n \"no-cache\": NO_CACHE_ARG,\n output: { type: \"string\", description: \"json|csv|jsonl|md\", required: false, default: \"json\" },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.demographics\",\n ...live(\"POST /api/ads/linkedin/analytics\"),\n description:\n \"Sweep all firmographic pivots (job-title, company, industry, seniority, function, company-size) in one call. Returns top-N rows per pivot.\",\n args: {\n \"campaign-id\": { type: \"string\", description: \"CSV campaign IDs\", required: true },\n pivots: { type: \"string\", description: \"CSV of pivots (default: all firmographic)\", required: false },\n \"top-n\": { type: \"string\", description: \"Top rows per pivot (default 10)\", required: false },\n intent: { type: \"string\", description: \"Field bundle\", required: false, default: \"baseline\" },\n start: { type: \"string\", description: \"YYYY-MM-DD\", required: false },\n end: { type: \"string\", description: \"YYYY-MM-DD\", required: false },\n \"last-days\": { type: \"string\", description: \"Window (default 30)\", required: false },\n \"no-cache\": NO_CACHE_ARG,\n output: { type: \"string\", description: \"json\", required: false, default: \"json\" },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.companies\",\n ...live(\"POST /api/ads/linkedin/companies\"),\n description:\n \"Which companies the LinkedIn ads reached — one row per company over the whole period ({org, name, impressions, clicks, engagements, costLocal}), most engaged first. Start here for warm accounts / ABM reporting. Defaults: last 12 calendar months, the only selected ad account, 100 companies a page (--page N for the next, --full for all; totalCompanies counts them all). --by month|campaign adds a months[] or campaigns[] breakdown; --with-domains adds domain + domainSource for CRM matching; --stats adds row counts and cost/reach/domain coverage (no names). --targets <file> narrows to the target accounts (matched on LinkedIn page, website, then name; `targets` counts reached/engaged per tier and lists notReached); --with-firmographics adds industry + staffCount (employee band); --min-staff N keeps companies that big. LinkedIn drops companies under 3 events a month.\",\n args: {\n \"account-id\": {\n type: \"string\",\n description: \"Ad account id (numeric or urn:li:sponsoredAccount:N). Default: the only selected account\",\n required: false,\n },\n \"campaign-id\": { type: \"string\", description: \"CSV campaign ids — read only these campaigns\", required: false },\n \"last-months\": {\n type: \"string\",\n description: \"Calendar months back incl. this one (1-24, default 12)\",\n required: false,\n },\n start: { type: \"string\", description: \"YYYY-MM-DD (instead of --last-months)\", required: false },\n end: { type: \"string\", description: \"YYYY-MM-DD (default today)\", required: false },\n by: { type: \"string\", description: \"none | month | campaign (default none)\", required: false },\n \"with-domains\": { type: \"boolean\", description: \"Add website domain + domainSource per company\", required: false },\n \"min-impressions\": { type: \"string\", description: \"Leave out companies under N impressions\", required: false },\n full: { type: \"boolean\", description: \"Every company, plus videoViews\", required: false },\n page: {\n type: \"string\",\n description: \"Which page of 100 companies, most engaged first (default 1)\",\n required: false,\n },\n stats: { type: \"boolean\", description: \"Add read-quality stats (counts and rates only)\", required: false },\n targets: {\n type: \"string\",\n description:\n \"Target-account file (.csv/.json, as `node __tooling__/scripts/target-accounts.mjs --out targets.csv` writes)\",\n required: false,\n },\n tier: { type: \"string\", description: \"With --targets: only this tier\", required: false },\n \"with-firmographics\": {\n type: \"boolean\",\n description: \"Add industry + staffCount per company (100 a call, billed per new company)\",\n required: false,\n },\n \"min-staff\": { type: \"string\", description: \"Keep companies with at least N employees\", required: false },\n \"no-cache\": NO_CACHE_ARG,\n output: { type: \"string\", description: \"json|csv|jsonl|md\", required: false, default: \"json\" },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.top-companies\",\n ...live(\"POST /api/ads/linkedin/analytics\"),\n description:\n \"Top companies whose employees saw / clicked / converted, for some campaigns or the whole ad account. Wrapper for analytics --pivot company. --targets narrows to the target accounts in one call (matched on LinkedIn page, then name; `targets` lists notReached).\",\n args: {\n \"campaign-id\": { type: \"string\", description: \"CSV campaign IDs (default: the whole ad account)\", required: false },\n \"account-id\": {\n type: \"string\",\n description: \"Ad account for a whole-account read. Default: the only selected one\",\n required: false,\n },\n targets: { type: \"string\", description: \"Target-account file (.csv/.json)\", required: false },\n tier: { type: \"string\", description: \"With --targets: only this tier\", required: false },\n intent: { type: \"string\", description: \"Field bundle (default baseline)\", required: false },\n \"top-n\": { type: \"string\", description: \"Top rows by impressions (default 25)\", required: false },\n start: { type: \"string\", description: \"YYYY-MM-DD\", required: false },\n end: { type: \"string\", description: \"YYYY-MM-DD\", required: false },\n \"last-days\": { type: \"string\", description: \"Window (default 30)\", required: false },\n \"no-cache\": NO_CACHE_ARG,\n output: { type: \"string\", description: \"json|csv|jsonl|md\", required: false, default: \"json\" },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.resolve\",\n ...liveWithoutAccount(\"POST /api/ads/linkedin/resolve-orgs\"),\n description:\n \"Resolve organization URNs (from top-companies / analytics --pivot company) to company names. With --with-domains, returns each org's LinkedIn page (vanityName), website and registrable domain instead — ready to match against CRM company domains. domainSource: website (the org's own domain), subdomain (e.g. news.microsoft.com → microsoft.com; lower confidence), none (shortlink/redirector or no website). Unknown ids come back in errors.\",\n args: {\n urns: { type: \"string\", description: \"Comma-separated org URNs (urn:li:organization:NNN)\", required: false },\n ids: { type: \"string\", description: \"Comma-separated bare org ids (17719,19022)\", required: false },\n \"with-domains\": {\n type: \"boolean\",\n description: \"Return vanityName, website, domain and domainSource per org (+ errors for unknown ids)\",\n required: false,\n },\n \"no-cache\": NO_CACHE_ARG,\n output: { type: \"string\", description: \"json|csv|jsonl|md\", required: false, default: \"json\" },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.facets.list\",\n ...liveWithoutAccount(\"GET /api/ads/linkedin/facets\"),\n description:\n \"List every targeting facet LinkedIn supports (industries, seniorities, titles, employers, growthRate, etc).\",\n args: {\n \"no-cache\": NO_CACHE_ARG,\n output: { type: \"string\", description: \"json|csv|jsonl|md\", required: false, default: \"json\" },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.facets.values\",\n ...liveWithoutAccount(\"GET /api/ads/linkedin/facets/entities\"),\n description:\n \"Look up entity values for a facet — full list (q=adTargetingFacet) or typeahead search (q=typeahead, with --query).\",\n args: {\n facet: { type: \"string\", description: \"Facet name (industries) or URN\", required: true },\n query: { type: \"string\", description: \"Typeahead query (auto-switches finder)\", required: false },\n finder: { type: \"string\", description: \"adTargetingFacet|typeahead|similarEntities\", required: false },\n locale: { type: \"string\", description: \"Locale (default en_US)\", required: false },\n \"no-cache\": NO_CACHE_ARG,\n output: { type: \"string\", description: \"json|csv|jsonl|md\", required: false, default: \"json\" },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.audience-size\",\n ...live(\"POST /api/ads/linkedin/audience-size\"),\n description:\n \"Estimate audience size for a targetingCriteria payload. Returns total + active + playbook §04 sweet-spot warnings.\",\n args: {\n \"account-id\": { type: \"string\", description: \"Account ID\", required: false },\n \"account-urn\": { type: \"string\", description: \"Alias\", required: false },\n targeting: { type: \"string\", description: \"Inline JSON targetingCriteria\", required: false },\n \"targeting-file\": { type: \"string\", description: \"Path to JSON file\", required: false },\n \"no-cache\": NO_CACHE_ARG,\n output: { type: \"string\", description: \"json\", required: false, default: \"json\" },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.bid-pricing\",\n ...live(\"POST /api/ads/linkedin/bid-pricing\"),\n description:\n \"LinkedIn's suggested bid (min/default/max), bid limits and daily budget range for a targeting + objective + bid type, in the account's currency, plus the playbook §06 floor (2/3 of suggested).\",\n args: {\n \"account-id\": { type: \"string\", description: \"Account ID\", required: false },\n \"account-urn\": { type: \"string\", description: \"Alias\", required: false },\n objective: {\n type: \"string\",\n description: \"Objective type (LEAD_GENERATION, WEBSITE_VISIT, etc.)\",\n required: true,\n },\n \"cost-type\": {\n type: \"string\",\n description: \"CPC|CPM|CPV\",\n required: false,\n default: \"CPC\",\n enum: [\"CPC\", \"CPM\", \"CPV\"],\n },\n \"campaign-type\": {\n type: \"string\",\n description: \"Campaign type\",\n required: false,\n default: \"SPONSORED_UPDATES\",\n enum: [\"SPONSORED_UPDATES\", \"SPONSORED_INMAILS\", \"TEXT_AD\"],\n },\n \"audience-expansion\": {\n type: \"boolean\",\n description: \"Price with audience expansion on\",\n required: false,\n default: false,\n },\n targeting: { type: \"string\", description: \"Inline JSON targetingCriteria\", required: false },\n \"targeting-file\": { type: \"string\", description: \"Path to JSON file\", required: false },\n \"no-cache\": NO_CACHE_ARG,\n output: { type: \"string\", description: \"json\", required: false, default: \"json\" },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.forecast\",\n ...live(\"POST /api/ads/linkedin/forecast\"),\n description:\n \"LinkedIn's forecast for a campaign that doesn't exist yet: impressions, clicks, leads, spend, unit costs (cpc, cpm, costPerLead) and rates over a period, each { value, low, high }. Needs a budget; --bid forecasts a manual bid, without it LinkedIn's automated bidding.\",\n args: {\n \"account-id\": { type: \"string\", description: \"Account ID\", required: false },\n \"account-urn\": { type: \"string\", description: \"Alias\", required: false },\n objective: { type: \"string\", description: \"Objective type\", required: false },\n \"cost-type\": {\n type: \"string\",\n description: \"Bid type of --bid\",\n required: false,\n default: \"CPC\",\n enum: [\"CPC\", \"CPM\", \"CPV\"],\n },\n \"campaign-type\": {\n type: \"string\",\n description: \"Campaign type\",\n required: false,\n default: \"SPONSORED_UPDATES\",\n enum: [\"SPONSORED_UPDATES\", \"SPONSORED_INMAILS\", \"DYNAMIC\"],\n },\n \"daily-budget\": { type: \"string\", description: \"e.g. '250' or '250 EUR'\", required: false },\n \"total-budget\": { type: \"string\", description: \"e.g. '7250' or '7250 EUR'\", required: false },\n bid: { type: \"string\", description: \"Manual bid e.g. '5.57'; omit for automated bidding\", required: false },\n \"optimization-target\": { type: \"string\", description: \"Automated-bidding goal, e.g. MAX_LEAD\", required: false },\n start: { type: \"string\", description: \"First day YYYY-MM-DD (default tomorrow)\", required: false },\n days: { type: \"string\", description: \"Period length in days (default 30)\", required: false },\n targeting: { type: \"string\", description: \"Inline JSON targetingCriteria\", required: false },\n \"targeting-file\": { type: \"string\", description: \"Path to JSON file\", required: false },\n full: { type: \"boolean\", description: \"Include LinkedIn's raw series\", required: false, default: false },\n \"no-cache\": NO_CACHE_ARG,\n output: { type: \"string\", description: \"json\", required: false, default: \"json\" },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.leads\",\n ...live(\"GET /api/ads/linkedin/leads\"),\n description:\n \"List Lead Gen Form responses (90-day LinkedIn retention — sync to CRM via this endpoint). Filter by --form-id, --campaign-id, or --since-days.\",\n args: {\n \"account-id\": { type: \"string\", description: \"Account ID\", required: false },\n \"account-urn\": { type: \"string\", description: \"Alias\", required: false },\n \"form-id\": { type: \"string\", description: \"Filter by form ID\", required: false },\n \"campaign-id\": { type: \"string\", description: \"Filter by campaign\", required: false },\n \"since-days\": { type: \"string\", description: \"Last N days\", required: false },\n \"since-ms\": { type: \"string\", description: \"Epoch ms (alternative to --since-days)\", required: false },\n until: { type: \"string\", description: \"Submitted before (YYYY-MM-DD or epoch ms)\", required: false },\n \"test-leads\": { type: \"boolean\", description: \"Only test leads\", required: false },\n limit: { type: \"string\", description: \"Max rows\", required: false },\n \"no-cache\": NO_CACHE_ARG,\n output: { type: \"string\", description: \"json|csv|jsonl|md\", required: false, default: \"json\" },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.conversions.list\",\n ...live(\"GET /api/ads/linkedin/conversions\"),\n description: \"List conversion rules (Insight Tag + Conversions API).\",\n args: {\n \"account-id\": { type: \"string\", description: \"Account ID\", required: false },\n \"account-urn\": { type: \"string\", description: \"Alias\", required: false },\n \"no-cache\": NO_CACHE_ARG,\n output: { type: \"string\", description: \"json|csv|jsonl|md\", required: false, default: \"json\" },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.conversions.health\",\n ...live(\"GET /api/ads/linkedin/conversions\"),\n description:\n \"Playbook §07 5-point health check: rules enabled? lead/purchase event? CAPI fired in 7d? view-through ≤7d? lead de-dup correct?\",\n args: {\n \"account-id\": { type: \"string\", description: \"Account ID\", required: false },\n \"account-urn\": { type: \"string\", description: \"Alias\", required: false },\n \"no-cache\": NO_CACHE_ARG,\n output: { type: \"string\", description: \"json\", required: false, default: \"json\" },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.conversation\",\n ...live(\"POST /api/ads/linkedin/analytics\"),\n description:\n \"Per-button click rates inside Sponsored Messaging / Conversation Ads. Wraps analytics --pivot conversation-node-button.\",\n args: {\n \"campaign-id\": { type: \"string\", description: \"CSV campaign IDs\", required: true },\n start: { type: \"string\", description: \"YYYY-MM-DD\", required: false },\n end: { type: \"string\", description: \"YYYY-MM-DD\", required: false },\n \"last-days\": { type: \"string\", description: \"Window (default 30)\", required: false },\n \"no-cache\": NO_CACHE_ARG,\n output: { type: \"string\", description: \"json|csv|jsonl|md\", required: false, default: \"json\" },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.audit\",\n ...live(\"POST /api/ads/linkedin/audit\"),\n description:\n \"Run a 30+ check playbook audit (Settings, Tracking, Audience, Campaigns, Creative, Performance, Bidding, Compliance, Hygiene). Each finding: {id, area, check, status, severity, evidence, fix} with playbook citations. --format md renders a deliverable-ready table.\",\n args: {\n \"account-id\": { type: \"string\", description: \"Account ID\", required: false },\n \"account-urn\": { type: \"string\", description: \"Alias\", required: false },\n \"campaign-id\": { type: \"string\", description: \"Narrow to a single campaign\", required: false },\n \"window-days\": { type: \"string\", description: \"Performance lookback (default 30)\", required: false },\n severity: { type: \"string\", description: \"CSV severity filter (critical,high,medium,low)\", required: false },\n area: { type: \"string\", description: \"CSV area filter\", required: false },\n format: { type: \"string\", description: \"json | md\", required: false, default: \"json\" },\n \"no-cache\": NO_CACHE_ARG,\n },\n});\n\n// ---------------------------------------------------------------------------\n// Staged writes — ops stage on this chat's draft, appear in the dashboard as\n// pending LinkedIn changes, and hit the LinkedIn API only when the chat is\n// published — at which point they reach the real ad account, for every company.\n// ---------------------------------------------------------------------------\n\nconst writeAccountArgs = {\n \"account-id\": { type: \"string\", description: \"Numeric account ID or urn:li:sponsoredAccount:N\", required: false },\n \"account-urn\": { type: \"string\", description: \"Alias for --account-id\", required: false },\n} as const;\n\nregisterSchema({\n command: \"ads.linkedin.campaign-groups.create\",\n ...staged(\"campaignGroup.create\"),\n description:\n \"Stage a new campaign group (staged until publish; review with `baker ads linkedin draft`). Returns a li_temp_* ref that later `campaigns create --group` calls can reference.\",\n args: {\n ...writeAccountArgs,\n name: { type: \"string\", description: \"Name (≤100 chars)\", required: true },\n start: {\n type: \"string\",\n description: \"Run schedule start: now (default), ISO date or epoch ms — a passed start moves to publish\",\n required: false,\n },\n end: { type: \"string\", description: \"Run schedule end\", required: false },\n \"total-budget\": { type: \"string\", description: TOTAL_BUDGET_HELP, required: false },\n currency: {\n type: \"string\",\n description: \"3-letter currency code (defaults to the ad account currency)\",\n required: false,\n },\n objective: { type: \"string\", description: \"Objective every ad set takes, create-only\", required: false },\n \"shared-budget\": {\n type: \"string\",\n description:\n \"MAXIMUM_DELIVERY|MANUAL|COST_CAP — share the total budget across its ad sets (needs --total-budget, --end)\",\n required: false,\n },\n status: {\n type: \"string\",\n description: \"DRAFT|ACTIVE (default DRAFT) — LinkedIn refuses a new group created PAUSED\",\n required: false,\n },\n file: { type: \"string\", description: \"JSON payload file; flags override file keys\", required: false },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.campaign-groups.update\",\n ...staged(\"campaignGroup.update\"),\n description:\n \"Stage changes to an existing campaign group (name, schedule, budget, status). Captures a before-snapshot for the dashboard diff. Pass a li_temp_* ref to AMEND a group staged in this chat. Applies on chat publish.\",\n args: {\n id: {\n type: \"positional\",\n description: \"Campaign group id/URN, or li_temp_* ref staged in this chat\",\n required: true,\n },\n ...writeAccountArgs,\n name: { type: \"string\", description: \"New name\", required: false },\n start: { type: \"string\", description: \"New schedule start\", required: false },\n end: { type: \"string\", description: \"New schedule end\", required: false },\n \"total-budget\": { type: \"string\", description: TOTAL_BUDGET_HELP, required: false },\n currency: {\n type: \"string\",\n description: \"3-letter currency code (defaults to the ad account currency)\",\n required: false,\n },\n \"shared-budget\": {\n type: \"string\",\n description: \"MAXIMUM_DELIVERY|MANUAL|COST_CAP — share the budget across its ad sets\",\n required: false,\n },\n status: { type: \"string\", description: \"ACTIVE|PAUSED|ARCHIVED\", required: false },\n file: { type: \"string\", description: \"JSON file with fields to change\", required: false },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.campaigns.create\",\n ...staged(\"campaign.create\"),\n description:\n \"Stage a new campaign. --group accepts a real id/URN or a li_temp_* ref staged earlier in this chat. Targeting goes in --targeting-file as LinkedIn criteria: {include:{and:[{or:{'urn:li:adTargetingFacet:locations':['urn:li:geo:…']}}]}} — find facet values with `baker ads linkedin facets values`. Playbook defaults: manual bid (--bid), audience expansion off, LAN off. Staged until publish.\",\n args: {\n ...writeAccountArgs,\n name: { type: \"string\", description: \"Name (≤255 chars)\", required: true },\n group: { type: \"string\", description: \"Campaign group id/URN or li_temp_* ref\", required: true },\n type: { type: \"string\", description: \"SPONSORED_UPDATES|TEXT_AD|SPONSORED_INMAILS|DYNAMIC\", required: true },\n objective: { type: \"string\", description: \"LEAD_GENERATION|WEBSITE_VISIT|BRAND_AWARENESS|…\", required: false },\n \"cost-type\": { type: \"string\", description: \"CPC|CPM|CPV\", required: true },\n bid: { type: \"string\", description: \"Manual bid amount (unitCost)\", required: false },\n \"daily-budget\": { type: \"string\", description: \"Daily budget amount\", required: false },\n \"total-budget\": { type: \"string\", description: TOTAL_BUDGET_HELP, required: false },\n currency: {\n type: \"string\",\n description: \"3-letter currency code (defaults to the ad account currency)\",\n required: false,\n },\n start: {\n type: \"string\",\n description: \"Run schedule start: now (default — when the chat publishes), ISO date or epoch ms\",\n required: false,\n },\n end: { type: \"string\", description: \"Run schedule end\", required: false },\n locale: { type: \"string\", description: \"Profile locale like en_US (default en_US)\", required: false },\n \"targeting-file\": { type: \"string\", description: \"JSON file with targetingCriteria\", required: true },\n \"audience-expansion\": { type: \"string\", description: \"on|off (playbook: off; default off)\", required: false },\n lan: {\n type: \"string\",\n description: \"LinkedIn Audience Network on|off (playbook: off; default off)\",\n required: false,\n },\n ctv: { type: \"string\", description: \"Connected TV on|off (default off)\", required: false },\n \"creative-selection\": { type: \"string\", description: \"OPTIMIZED|ROUND_ROBIN\", required: false },\n \"associated-entity\": { type: \"string\", description: \"Organization URN\", required: false },\n \"political-intent\": {\n type: \"string\",\n description:\n \"NOT_POLITICAL (default)|POLITICAL|NOT_DECLARED — the advertiser's declaration; new ad sets are declared not political unless the ads are political advertising\",\n required: false,\n },\n optimization: {\n type: \"string\",\n description:\n \"optimizationTargetType — NONE (manual, default)|ENHANCED_CONVERSION|MAX_LEAD|MAX_QUALIFIED_LEAD|MAX_CONVERSION|MAX_CLICK|MAX_IMPRESSION|MAX_REACH|MAX_VIDEO_VIEW (CPM)|TARGET_COST_PER_CLICK|TARGET_COST_PER_IMPRESSION|TARGET_COST_PER_VIDEO_VIEW|CAP_COST_AND_MAXIMIZE_LEADS|…_CLICKS|…_IMPRESSIONS|…_VIDEO_VIEWS (CPM); target cost and cost cap need --bid\",\n required: false,\n },\n format: {\n type: \"string\",\n description:\n \"Ad format, create-only: STANDARD_UPDATE|SINGLE_VIDEO|CAROUSEL|TEXT_AD|SPOTLIGHT|FOLLOW_COMPANY|JOBS|SPONSORED_INMAIL|SPONSORED_MESSAGE|SPONSORED_UPDATE_EVENT|SPONSORED_UPDATE_NATIVE_DOCUMENT\",\n required: false,\n },\n pacing: { type: \"string\", description: \"LIFETIME|ACCELERATED, create-only\", required: false },\n \"frequency-cap\": {\n type: \"string\",\n description: \"At most N impressions per member a week (3–30), Brand awareness only\",\n required: false,\n },\n status: {\n type: \"string\",\n description: \"DRAFT|ACTIVE|PAUSED (default DRAFT) — PAUSED needs a group that is not DRAFT\",\n required: false,\n },\n file: { type: \"string\", description: \"JSON payload file; flags override file keys\", required: false },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.campaigns.update\",\n ...staged(\"campaign.update\"),\n description:\n \"Stage changes to an existing campaign — budget, bid, targeting, schedule, flags, status. Only pass what changes; a before-snapshot powers the dashboard diff. Pass a li_temp_* ref to AMEND a campaign staged in this chat (fields merge into the staged create). Applies on chat publish.\",\n args: {\n id: { type: \"positional\", description: \"Campaign id/URN, or li_temp_* ref staged in this chat\", required: true },\n ...writeAccountArgs,\n name: { type: \"string\", description: \"New name\", required: false },\n objective: { type: \"string\", description: \"New objective\", required: false },\n \"cost-type\": { type: \"string\", description: \"CPC|CPM|CPV\", required: false },\n bid: { type: \"string\", description: \"New manual bid\", required: false },\n \"daily-budget\": { type: \"string\", description: \"New daily budget\", required: false },\n \"total-budget\": { type: \"string\", description: TOTAL_BUDGET_HELP, required: false },\n currency: {\n type: \"string\",\n description: \"3-letter currency code (defaults to the ad account currency)\",\n required: false,\n },\n start: { type: \"string\", description: \"New schedule start\", required: false },\n end: { type: \"string\", description: \"New schedule end\", required: false },\n \"targeting-file\": { type: \"string\", description: \"JSON file with replacement targetingCriteria\", required: false },\n \"audience-expansion\": { type: \"string\", description: \"on|off\", required: false },\n lan: { type: \"string\", description: \"on|off\", required: false },\n ctv: { type: \"string\", description: \"on|off\", required: false },\n \"creative-selection\": { type: \"string\", description: \"OPTIMIZED|ROUND_ROBIN\", required: false },\n \"political-intent\": {\n type: \"string\",\n description:\n \"NOT_POLITICAL|POLITICAL|NOT_DECLARED — corrects the ad set's political-advertising declaration; leave it out to keep the current one\",\n required: false,\n },\n status: { type: \"string\", description: \"ACTIVE|PAUSED|ARCHIVED\", required: false },\n optimization: {\n type: \"string\",\n description:\n \"optimizationTargetType — NONE (manual, default)|ENHANCED_CONVERSION|MAX_LEAD|MAX_QUALIFIED_LEAD|MAX_CONVERSION|MAX_CLICK|MAX_IMPRESSION|MAX_REACH|MAX_VIDEO_VIEW (CPM)|TARGET_COST_PER_CLICK|TARGET_COST_PER_IMPRESSION|TARGET_COST_PER_VIDEO_VIEW|CAP_COST_AND_MAXIMIZE_LEADS|…_CLICKS|…_IMPRESSIONS|…_VIDEO_VIEWS (CPM); target cost and cost cap need --bid\",\n required: false,\n },\n format: {\n type: \"string\",\n description:\n \"Ad format, create-only: STANDARD_UPDATE|SINGLE_VIDEO|CAROUSEL|TEXT_AD|SPOTLIGHT|FOLLOW_COMPANY|JOBS|SPONSORED_INMAIL|SPONSORED_MESSAGE|SPONSORED_UPDATE_EVENT|SPONSORED_UPDATE_NATIVE_DOCUMENT\",\n required: false,\n },\n pacing: { type: \"string\", description: \"LIFETIME|ACCELERATED, create-only\", required: false },\n \"frequency-cap\": {\n type: \"string\",\n description: \"At most N impressions per member a week (3–30), Brand awareness only\",\n required: false,\n },\n file: { type: \"string\", description: \"JSON file with fields to change\", required: false },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.campaigns.exclude-companies\",\n ...staged(\"campaign.excludeCompanies\"),\n description:\n \"Stop a live ad set reaching some companies (customers, open deals, competitors). Add-only — never removes an exclusion. At publish Baker re-reads the ad set and merges into its targeting as it stands then, keeping audience, locations and every existing exclusion. --org takes company ids (as `companies` / `top-companies` print them) or urn:li:organization URNs, comma-separated, up to 200 per call; a longer list goes into a company-list audience passed to --segment. Staged until publish.\",\n args: {\n id: {\n type: \"positional\",\n description: \"Ad set (campaign) id or URN — must already be on LinkedIn\",\n required: true,\n },\n ...writeAccountArgs,\n org: {\n type: \"string\",\n description: \"Company ids or urn:li:organization URNs, comma-separated — e.g. 1035,1441\",\n required: false,\n },\n segment: {\n type: \"string\",\n description: \"Matched audiences, comma-separated: urn:li:dmpSegment:N / urn:li:adSegment:N or a li_temp_* ref\",\n required: false,\n },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.campaigns.url-params\",\n ...staged(\"trackingParams.set\"),\n description:\n \"Start here for UTMs: stage the URL tracking parameters on an ad set. LinkedIn appends them to the link of EVERY ad in the ad set, including ads already running, so this is the level to set campaign-wide UTMs at — editing each ad's landing URL instead risks the same key landing twice. For a value that never varies across the whole account, set it once with `account url-params` instead; LinkedIn appends BOTH levels, so a key set at both lands in the URL twice. REPLACES the ad set's whole parameter set — LinkedIn does not merge, so read `ads.linkedin.url-params` first and re-send every pair that should survive. --param takes fixed values (repeatable or &-joined); --dynamic takes a value LinkedIn fills in per ad (ACCOUNT_ID, ACCOUNT_NAME, CAMPAIGN_GROUP_ID, CAMPAIGN_GROUP_NAME, CAMPAIGN_ID, CAMPAIGN_NAME, CREATIVE_ID, CREATIVE_NAME). Applies on chat publish; message and conversation ads are unaffected.\",\n args: {\n id: { type: \"positional\", description: \"Ad set (campaign) id or URN\", required: true },\n ...writeAccountArgs,\n param: {\n type: \"string\",\n description: 'Fixed key=value, repeatable or &-joined — e.g. \"utm_source=linkedin&utm_medium=paid-social\"',\n required: false,\n },\n dynamic: {\n type: \"string\",\n description: \"key=PLACEHOLDER filled in per ad, repeatable — e.g. utm_campaign=CAMPAIGN_NAME\",\n required: false,\n },\n clear: { type: \"boolean\", description: \"Remove every tracking parameter from this ad set\", required: false },\n file: { type: \"string\", description: \"JSON payload file; flags override file keys\", required: false },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.url-params\",\n ...live(\"GET /api/ads/linkedin/url-params\"),\n description:\n \"Read the URL tracking parameters in effect: the ad account's, optionally every ad set's, and the keys set at BOTH levels — which LinkedIn appends twice into the served URL. Run this BEFORE setting UTMs on an ad set, because whatever the account already carries is appended on top. Account-only by default (there is no batch read, so each ad set costs its own call); --ad-sets sweeps them, capped, and the response says how many of how many were examined.\",\n args: {\n \"account-id\": { type: \"string\", description: \"Numeric ID or urn:li:sponsoredAccount:N\", required: false },\n \"account-urn\": { type: \"string\", description: \"Alias for --account-id\", required: false },\n \"ad-sets\": { type: \"boolean\", description: \"Also read every ad set's parameters\", required: false },\n \"campaign-ids\": {\n type: \"string\",\n description: \"Comma-separated ad set ids to read instead of all\",\n required: false,\n },\n \"collisions-only\": { type: \"boolean\", description: \"Only the keys set at more than one level\", required: false },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.account.url-params\",\n ...staged(\"trackingParams.set\"),\n description:\n \"Stage the URL tracking parameters on the whole AD ACCOUNT — LinkedIn appends them to the link of every ad in every ad set, including ads already running. Use it for the values that never vary across the account (utm_source, utm_medium, an agency tag); anything naming a specific ad set belongs on the ad set (`campaigns url-params`), because LinkedIn appends BOTH levels and a key set at both lands in the URL twice. REPLACES the account's whole parameter set — LinkedIn does not merge, so read `ads.linkedin.url-params` first and re-send every pair that should survive. --param takes fixed values (repeatable or &-joined); --dynamic takes a value LinkedIn fills in per ad (ACCOUNT_ID, ACCOUNT_NAME, CAMPAIGN_GROUP_ID, CAMPAIGN_GROUP_NAME, CAMPAIGN_ID, CAMPAIGN_NAME, CREATIVE_ID, CREATIVE_NAME). Applies on chat publish; message and conversation ads are unaffected.\",\n args: {\n ...writeAccountArgs,\n param: {\n type: \"string\",\n description: 'Fixed key=value, repeatable or &-joined — e.g. \"utm_source=linkedin&utm_medium=paid-social\"',\n required: false,\n },\n dynamic: {\n type: \"string\",\n description: \"key=PLACEHOLDER filled in per ad, repeatable — e.g. utm_campaign=CAMPAIGN_NAME\",\n required: false,\n },\n clear: { type: \"boolean\", description: \"Remove every tracking parameter set on the ad account\", required: false },\n file: { type: \"string\", description: \"JSON payload file; flags override file keys\", required: false },\n },\n});\n\nconst statusSugarArgs = {\n id: {\n type: \"positional\",\n description: \"Entity id or URN — comma-separate several to change them all in one call\",\n required: false,\n },\n \"ids-file\": { type: \"string\", description: \"File of ids, one per line or comma-separated\", required: false },\n ...writeAccountArgs,\n full: { type: \"boolean\", description: STAGE_FULL_ARG.description, required: false },\n} as const;\n\n/** Every status command takes a list; say so once, in the words the agent reads. */\nconst MULTI_ID_NOTE =\n \"Takes one id or many: comma-separate the ids, or pass --ids-file. Several ids stage together as one set — all of them or none. The list form is for real ids/URNs only: a li_temp_* ref AMENDS what this chat already staged, and an amend must be passed on its own.\";\n\nregisterSchema({\n command: \"ads.linkedin.campaigns.pause\",\n ...stagedTogether(\"campaign.update\"),\n description: `Stage pausing a campaign (status → PAUSED on publish). ${MULTI_ID_NOTE}`,\n args: statusSugarArgs,\n});\nregisterSchema({\n command: \"ads.linkedin.campaigns.resume\",\n ...stagedTogether(\"campaign.update\"),\n description: `Stage resuming a paused campaign (status → ACTIVE on publish). ${MULTI_ID_NOTE}`,\n args: statusSugarArgs,\n});\nregisterSchema({\n command: \"ads.linkedin.campaigns.archive\",\n ...stagedTogether(\"campaign.update\"),\n description: `Stage archiving a campaign (status → ARCHIVED on publish). ${MULTI_ID_NOTE}`,\n args: statusSugarArgs,\n});\nregisterSchema({\n command: \"ads.linkedin.campaign-groups.pause\",\n ...stagedTogether(\"campaignGroup.update\"),\n description: `Stage pausing a campaign group. ${MULTI_ID_NOTE}`,\n args: statusSugarArgs,\n});\nregisterSchema({\n command: \"ads.linkedin.campaign-groups.resume\",\n ...stagedTogether(\"campaignGroup.update\"),\n description: `Stage resuming a campaign group. ${MULTI_ID_NOTE}`,\n args: statusSugarArgs,\n});\nregisterSchema({\n command: \"ads.linkedin.creatives.pause\",\n ...stagedTogether(\"creative.update\"),\n description: `Stage pausing a creative (intendedStatus → PAUSED on publish). Playbook early-kill rule: >30 impressions with 0 clicks. ${MULTI_ID_NOTE}`,\n args: statusSugarArgs,\n});\nregisterSchema({\n command: \"ads.linkedin.creatives.resume\",\n ...stagedTogether(\"creative.update\"),\n description: `Stage resuming a paused creative. ${MULTI_ID_NOTE}`,\n args: statusSugarArgs,\n});\n\nfor (const [entity, what, kind] of [\n [\"campaign-groups\", \"campaign\", \"campaignGroup.delete\"],\n [\"campaigns\", \"ad set\", \"campaign.delete\"],\n [\"creatives\", \"ad\", \"creative.delete\"],\n] as const) {\n registerSchema({\n command: `ads.linkedin.${entity}.delete`,\n ...stagedTogether(kind),\n description: `Stage deleting a ${what} that is still a DRAFT on LinkedIn; anything that has left draft is paused or archived instead. Deletes run last at publish, ads before ad sets before campaigns. ${MULTI_ID_NOTE}`,\n args: statusSugarArgs,\n });\n}\n\nconst duplicateArgs = {\n id: { type: \"positional\", description: \"Source id or URN\", required: true },\n ...writeAccountArgs,\n name: { type: \"string\", description: \"Name for the copy\", required: false },\n file: { type: \"string\", description: \"JSON file with field overrides for the copy\", required: false },\n} as const;\n\nregisterSchema({\n command: \"ads.linkedin.campaigns.duplicate\",\n ...copied(\"campaign.create\"),\n description:\n \"Stage a copy of an existing campaign as a new DRAFT create (playbook: duplicate, never link-to-original). Reads the source at stage time; override fields via --name/--file.\",\n args: duplicateArgs,\n});\nregisterSchema({\n command: \"ads.linkedin.campaign-groups.duplicate\",\n ...copied(\"campaignGroup.create\"),\n description: \"Stage a copy of an existing campaign group as a new DRAFT create.\",\n args: duplicateArgs,\n});\nregisterSchema({\n command: \"ads.linkedin.creatives.duplicate\",\n ...copied(\"creative.create\"),\n description:\n \"Stage a copy of an existing ad, optionally with new content. Direct-content ads (text/spotlight/follower/jobs) copy field-by-field, so a copy is how their immutable content changes (they can also update in place via creatives.update). Post-based ads re-sponsor the SAME post — the post owns the copy, media and destination, so content flags are rejected here: stage creatives.create with the new content instead, then pause the old ad. --replace stages pausing the original, gated on the new ad publishing successfully, and the copy inherits the source's status.\",\n args: {\n id: { type: \"positional\", description: \"Source creative id or URN\", required: true },\n ...writeAccountArgs,\n campaign: { type: \"string\", description: \"Stage the copy under a different ad set\", required: false },\n \"intended-status\": { type: \"string\", description: \"Status for the copy (default DRAFT)\", required: false },\n replace: { type: \"boolean\", description: \"Also pause the original once the new ad publishes\", required: false },\n headline: { type: \"string\", description: \"New headline\", required: false },\n description: { type: \"string\", description: \"New description (text/spotlight)\", required: false },\n intro: { type: \"string\", description: \"New commentary / intro text\", required: false },\n \"landing-url\": { type: \"string\", description: \"New https destination URL\", required: false },\n cta: { type: \"string\", description: \"New CTA\", required: false },\n \"cta-label\": { type: \"string\", description: \"Spotlight custom CTA label\", required: false },\n \"image-id\": { type: \"string\", description: \"Baker image library id\", required: false },\n \"image-urn\": { type: \"string\", description: \"Existing urn:li:image:*\", required: false },\n \"video-id\": {\n type: \"string\",\n description:\n \"Baker video library id (`baker videos`) — uploaded to LinkedIn at publish; the publish waits for its full-quality copy\",\n required: false,\n },\n \"video-urn\": { type: \"string\", description: \"Existing urn:li:video:*\", required: false },\n \"logo-image-id\": { type: \"string\", description: \"Baker image id for the logo\", required: false },\n title: { type: \"string\", description: \"Media title\", required: false },\n file: { type: \"string\", description: \"JSON file with field overrides for the copy\", required: false },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.creatives.create\",\n ...staged(\"creative.create\"),\n description:\n \"Stage a new creative (ad). Formats: image|video|text|spotlight|follower|document|carousel|conversation|tla|jobs|event|article. Media: --image-id references the Baker library (`baker images`) and uploads to LinkedIn at publish, any format; --video-id uploads a Baker library video at publish; --image-urn/--video-urn reference media already on LinkedIn. Limits: headline ≤70 (text ads ≤25), intro soft-truncates at 600 chars, landing URL must be https. Complex formats take --file with the full content object; conversation ads take --file with the message flow ({message: {subject, body (≤500), senderName?, buttons ≤5 × {label ≤25, type NESTED|LANDING_PAGE|LEAD_FORM, nestedMessage?|landingPageUrl?|leadForm?}}}, ≤25 messages) and arrive from --sender (default: whoever connected LinkedIn). --format tla boosts an existing post (Thought Leader ad): name it with --post <Baker post id from `baker posts list`>, --post-url <any link to the post>, or --post-urn <urn:li:share|ugcPost:*>. --format document (in a SPONSORED_UPDATE_NATIVE_DOCUMENT ad set) takes --document <Baker document name> or --document-url <PDF link> and --title; gate it with --lead-form + --preview-pages N. Staged until publish.\",\n args: {\n ...writeAccountArgs,\n campaign: { type: \"string\", description: \"Campaign id/URN or li_temp_* ref\", required: true },\n format: {\n type: \"string\",\n description: \"image|video|text|spotlight|follower|document|carousel|conversation|tla|jobs|event|article\",\n required: true,\n },\n \"image-id\": { type: \"string\", description: \"Baker image library id\", required: false },\n \"image-urn\": { type: \"string\", description: \"Existing urn:li:image:*\", required: false },\n \"video-id\": {\n type: \"string\",\n description:\n \"Baker video library id (`baker videos`) — uploaded to LinkedIn at publish; the publish waits for its full-quality copy\",\n required: false,\n },\n \"video-urn\": { type: \"string\", description: \"Existing urn:li:video:*\", required: false },\n \"logo-image-id\": { type: \"string\", description: \"Baker image id for the logo\", required: false },\n intro: { type: \"string\", description: \"Commentary / intro text\", required: false },\n headline: { type: \"string\", description: \"Headline\", required: false },\n description: { type: \"string\", description: \"Description (text/spotlight)\", required: false },\n \"landing-url\": { type: \"string\", description: \"https destination URL\", required: false },\n cta: { type: \"string\", description: \"LEARN_MORE|REQUEST_DEMO|SIGN_UP|REGISTER|DOWNLOAD|…\", required: false },\n \"cta-label\": { type: \"string\", description: \"Spotlight CTA label (≤18 chars)\", required: false },\n post: {\n type: \"string\",\n description:\n \"TLA: the post to sponsor, by its Baker post id (`baker posts list`). Staging refuses one that can't run as an ad.\",\n required: false,\n },\n \"post-urn\": {\n type: \"string\",\n description: \"TLA: the post to sponsor by its URN — urn:li:share|ugcPost:*\",\n required: false,\n },\n \"post-url\": {\n type: \"string\",\n description: \"TLA: any link to the post, normal or embed — Baker reads it and adds it to Posts\",\n required: false,\n },\n sender: {\n type: \"string\",\n description:\n \"Conversation ads: urn:li:person:* sender from `account-users` (default: whoever connected LinkedIn)\",\n required: false,\n },\n document: {\n type: \"string\",\n description: \"Document ads: a Baker document's folder name (src/documents/<name>), uploaded at publish\",\n required: false,\n },\n \"document-url\": {\n type: \"string\",\n description: \"Document ads: https link to a PDF, PowerPoint or Word file (≤100 MB, ≤300 pages)\",\n required: false,\n },\n \"document-urn\": { type: \"string\", description: \"Document ads: existing urn:li:document:*\", required: false },\n \"preview-pages\": {\n type: \"string\",\n description: \"Gated document ads: pages shown before the lead gen form (needs --lead-form)\",\n required: false,\n },\n \"event-urn\": {\n type: \"string\",\n description: \"Event ads: the LinkedIn event to sponsor (urn:li:event:*)\",\n required: false,\n },\n \"article-url\": {\n type: \"string\",\n description: \"Article ads: https URL of the article/newsletter to sponsor\",\n required: false,\n },\n \"thumbnail-image-id\": {\n type: \"string\",\n description: \"Article ads: Baker image id for the link thumbnail\",\n required: false,\n },\n \"thumbnail-urn\": { type: \"string\", description: \"Article ads: existing urn:li:image:* thumbnail\", required: false },\n \"intended-status\": {\n type: \"string\",\n description: \"DRAFT|ACTIVE (default DRAFT) — a new ad can't start PAUSED; DRAFT holds it back\",\n required: false,\n },\n title: {\n type: \"string\",\n description: \"Media title (image/video), article title, or document title\",\n required: false,\n },\n \"lead-form\": {\n type: \"string\",\n description:\n \"Lead gen form the ad opens (image|video|carousel|document|tla): li_temp_* from `lead-forms create` or a form id from `lead-forms`. Required in a LEAD_GENERATION ad set; replaces --landing-url\",\n required: false,\n },\n \"lead-form-button\": {\n type: \"string\",\n description:\n \"APPLY|DOWNLOAD|VIEW_QUOTE|LEARN_MORE|SIGN_UP (default)|SUBSCRIBE|REGISTER|REQUEST_DEMO|JOIN|ATTEND|UNLOCK_FULL_DOCUMENT|SHOP_NOW|BUY_NOW|SEE_MORE\",\n required: false,\n },\n file: { type: \"string\", description: \"JSON file with the full content object\", required: false },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.creatives.update\",\n ...stagedTogether(\"creative.update\"),\n description: `Stage changes to an existing creative. Direct-content ads (text/spotlight/follower/jobs) update copy/media/URL IN PLACE — pass only the changed fields (headline, description, landing-url, image-id, …); the ad's current content carries over. Post-based ads (image/video/carousel/…) sponsor a post that owns the copy, media and destination — neither this command nor creatives.duplicate can change it; stage creatives.create with the new content, then pause the old ad. Passing a li_temp_* ref AMENDS the creative staged in this chat instead. ${MULTI_ID_NOTE} Applies on chat publish.`,\n args: {\n id: {\n type: \"positional\",\n description:\n \"Creative id/URN — comma-separate several. A li_temp_* ref amends what this chat staged and must be passed on its own.\",\n required: false,\n },\n \"ids-file\": {\n type: \"string\",\n description: \"File of creative ids, one per line or comma-separated\",\n required: false,\n },\n ...writeAccountArgs,\n \"intended-status\": { type: \"string\", description: \"ACTIVE|PAUSED|ARCHIVED|DRAFT\", required: false },\n name: { type: \"string\", description: \"New creative name\", required: false },\n campaign: {\n type: \"string\",\n description: \"Re-parent to a different ad set (id/URN or li_temp_*) — staged creatives only\",\n required: false,\n },\n headline: { type: \"string\", description: \"New headline\", required: false },\n intro: { type: \"string\", description: \"Commentary / intro text\", required: false },\n description: { type: \"string\", description: \"Description (text/spotlight)\", required: false },\n \"landing-url\": { type: \"string\", description: \"New https destination URL\", required: false },\n cta: { type: \"string\", description: \"New CTA\", required: false },\n \"cta-label\": { type: \"string\", description: \"Spotlight custom CTA label\", required: false },\n \"image-id\": { type: \"string\", description: \"Baker image library id\", required: false },\n \"image-urn\": { type: \"string\", description: \"Existing urn:li:image:*\", required: false },\n \"video-id\": {\n type: \"string\",\n description:\n \"Baker video library id (`baker videos`) — uploaded to LinkedIn at publish; the publish waits for its full-quality copy\",\n required: false,\n },\n \"video-urn\": { type: \"string\", description: \"Existing urn:li:video:*\", required: false },\n \"logo-image-id\": { type: \"string\", description: \"Baker image id for the logo\", required: false },\n \"thumbnail-image-id\": {\n type: \"string\",\n description: \"Baker image id for the article thumbnail\",\n required: false,\n },\n \"thumbnail-urn\": { type: \"string\", description: \"Existing urn:li:image:* thumbnail\", required: false },\n title: { type: \"string\", description: \"Media or article title\", required: false },\n \"lead-form\": {\n type: \"string\",\n description:\n \"Lead gen form the ad opens (image|video|carousel|document|tla): li_temp_* from `lead-forms create` or a form id from `lead-forms`. Required in a LEAD_GENERATION ad set; replaces --landing-url\",\n required: false,\n },\n \"lead-form-button\": {\n type: \"string\",\n description:\n \"APPLY|DOWNLOAD|VIEW_QUOTE|LEARN_MORE|SIGN_UP (default)|SUBSCRIBE|REGISTER|REQUEST_DEMO|JOIN|ATTEND|UNLOCK_FULL_DOCUMENT|SHOP_NOW|BUY_NOW|SEE_MORE\",\n required: false,\n },\n file: { type: \"string\", description: \"JSON file with fields to change; flags override file keys\", required: false },\n full: { type: \"boolean\", description: STAGE_FULL_ARG.description, required: false },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.audiences.create\",\n ...staged(\"audience.create\"),\n description:\n \"Stage a new matched audience. company-list/user-list take --list-file (CSV with header; companies by companyName, domain and the LinkedIn page — a linkedinCompanyPageUrl column (LinkedIn's own template; https://www.linkedin.com/company/<slug>) or organizationUrn — which matches the company exactly, so keep it, never drop it; email column is SHA-256 hashed locally). LinkedIn needs 300+ MATCHED members to serve — a contact list needs well above 300 rows; a company list counts every employee of its companies. retargeting/engagement configs go in --file. Staged until publish.\",\n args: {\n ...writeAccountArgs,\n name: { type: \"string\", description: \"Audience name (≤100 chars)\", required: true },\n type: { type: \"string\", description: \"company-list|user-list|retargeting|engagement\", required: true },\n \"list-file\": { type: \"string\", description: \"CSV file with the list rows\", required: false },\n file: {\n type: \"string\",\n description:\n \"JSON raw source config for retargeting/engagement — sourcePlatform, type USER, and engagementRules (engagementSource, engagementTrigger, timeFrame)\",\n required: false,\n },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.audiences.upload\",\n ...staged(\"audience.uploadList\"),\n description:\n \"Stage REPLACING an audience's list with a new file (LinkedIn keeps one list per audience and has no row-level add or remove for this app): send the whole list — to add people, the old rows plus the new; to remove people, the list without them. Same CSV rules as audiences.create.\",\n args: {\n id: { type: \"positional\", description: \"Segment URN/id or li_temp_* ref\", required: true },\n ...writeAccountArgs,\n \"list-file\": {\n type: \"string\",\n description: \"CSV file with the WHOLE list the audience should hold\",\n required: true,\n },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.conversions.create\",\n ...staged(\"conversion.create\"),\n description:\n \"Stage a new conversion rule. Playbook defaults: --post-click-window 30 --view-window 7, counting ONE_TIME_EACH_MEMBER for leads. Staged until publish.\",\n args: {\n ...writeAccountArgs,\n name: { type: \"string\", description: \"Rule name\", required: true },\n type: {\n type: \"string\",\n description:\n \"Conversion type. Common: LEAD, QUALIFIED_LEAD, MARKETING_QUALIFIED_LEAD, SALES_QUALIFIED_LEAD, SIGN_UP, DOWNLOAD, PURCHASE, KEY_PAGE_VIEW, ADD_TO_CART, BOOK_APPOINTMENT, SUBMIT_APPLICATION, OTHER — `baker schema ads.linkedin.conversions.create` lists all 34\",\n required: true,\n },\n method: { type: \"string\", description: \"INSIGHT_TAG|CONVERSIONS_API\", required: true },\n \"post-click-window\": {\n type: \"string\",\n description:\n \"1|7|30|90 days; 180|365 only for LEAD, QUALIFIED_LEAD, MARKETING_QUALIFIED_LEAD, SALES_QUALIFIED_LEAD, PURCHASE, ADD_TO_CART, SUBMIT_APPLICATION\",\n required: false,\n },\n \"view-window\": {\n type: \"string\",\n description:\n \"1|7|30|90 days; 180|365 only for LEAD, QUALIFIED_LEAD, MARKETING_QUALIFIED_LEAD, SALES_QUALIFIED_LEAD, PURCHASE, ADD_TO_CART, SUBMIT_APPLICATION\",\n required: false,\n },\n \"attribution-type\": {\n type: \"string\",\n description: \"LAST_TOUCH_BY_CAMPAIGN|LAST_TOUCH_BY_CONVERSION\",\n required: false,\n },\n \"associate-all-campaigns\": {\n type: \"boolean\",\n description: \"Auto-associate with active campaigns\",\n required: false,\n },\n file: { type: \"string\", description: \"JSON payload file (e.g. urlMatchRuleExpression)\", required: false },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.conversions.update\",\n ...staged(\"conversion.update\"),\n description: \"Stage changes to a conversion rule (windows, attribution, enabled, name). Applies on chat publish.\",\n args: {\n id: { type: \"positional\", description: \"Conversion rule id or URN\", required: true },\n ...writeAccountArgs,\n name: { type: \"string\", description: \"New name\", required: false },\n \"post-click-window\": {\n type: \"string\",\n description:\n \"1|7|30|90 days; 180|365 only for LEAD, QUALIFIED_LEAD, MARKETING_QUALIFIED_LEAD, SALES_QUALIFIED_LEAD, PURCHASE, ADD_TO_CART, SUBMIT_APPLICATION\",\n required: false,\n },\n \"view-window\": {\n type: \"string\",\n description:\n \"1|7|30|90 days; 180|365 only for LEAD, QUALIFIED_LEAD, MARKETING_QUALIFIED_LEAD, SALES_QUALIFIED_LEAD, PURCHASE, ADD_TO_CART, SUBMIT_APPLICATION\",\n required: false,\n },\n \"attribution-type\": { type: \"string\", description: \"New attribution type\", required: false },\n enabled: { type: \"string\", description: \"on|off\", required: false },\n file: { type: \"string\", description: \"JSON file with fields to change\", required: false },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.conversions.associate-campaign\",\n ...staged(\"conversion.associateCampaign\"),\n description:\n \"Count an existing conversion rule for one ad set. Which ad sets a rule counts for is a separate LinkedIn record, not a field on the rule — `conversions update` cannot change it, and `--associate-all-campaigns` exists only on create. Staged until publish.\",\n args: {\n id: { type: \"positional\", description: \"Conversion rule id or URN\", required: true },\n ...writeAccountArgs,\n campaign: { type: \"string\", description: \"Ad set (campaign) id or URN\", required: true },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.conversions.dissociate-campaign\",\n ...staged(\"conversion.dissociateCampaign\"),\n description: \"Stop counting an existing conversion rule for one ad set. Staged until publish.\",\n args: {\n id: { type: \"positional\", description: \"Conversion rule id or URN\", required: true },\n ...writeAccountArgs,\n campaign: { type: \"string\", description: \"Ad set (campaign) id or URN\", required: true },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.lead-forms.create\",\n ...staged(\"leadForm.create\"),\n description:\n \"Stage a new Lead Gen Form from a JSON file: {name, headline ≤60, description? ≤160, privacyPolicyUrl, questions[] ≤12 (playbook: ≤4 for completion), thankYou?, legalDisclaimer?}. Staged until publish.\",\n args: {\n ...writeAccountArgs,\n file: { type: \"string\", description: \"JSON form definition file\", required: true },\n name: { type: \"string\", description: \"Override the form name\", required: false },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.lead-forms.update\",\n ...staged(\"leadForm.update\"),\n description:\n \"Stage changes to a Lead Gen Form. Once its ads are live LinkedIn keeps only the copy editable (headline, description, privacy policy URL, legal disclaimer, thank-you message and link) and the state. Copy is written in the form's own language. Applies on chat publish.\",\n args: {\n id: { type: \"positional\", description: \"Lead form id or URN\", required: true },\n ...writeAccountArgs,\n name: { type: \"string\", description: \"New form name\", required: false },\n state: { type: \"string\", description: \"PUBLISHED|ARCHIVED\", required: false },\n headline: { type: \"string\", description: \"Form headline (≤60)\", required: false },\n description: { type: \"string\", description: \"Form details text\", required: false },\n \"privacy-policy-url\": { type: \"string\", description: \"https privacy policy URL\", required: false },\n \"legal-disclaimer\": { type: \"string\", description: \"Custom legal disclaimer\", required: false },\n \"thank-you-message\": { type: \"string\", description: \"Confirmation message\", required: false },\n \"thank-you-url\": { type: \"string\", description: \"https link on the confirmation screen\", required: false },\n file: { type: \"string\", description: \"JSON file with any of the fields above\", required: false },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.lead-forms.list\",\n ...live(\"GET /api/ads/linkedin/lead-forms\"),\n description:\n \"List the ad account's lead gen forms — id, name, state (a DRAFT form can't serve), version, how many questions. --full spells out every form's questions and options; --form-id reads one form in full.\",\n args: {\n ...writeAccountArgs,\n \"form-id\": { type: \"string\", description: \"Read one form (id or urn:li:leadGenForm:N)\", required: false },\n full: { type: \"boolean\", description: \"Every form's questions and options\", required: false },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.lead-forms.publish\",\n ...staged(\"leadForm.update\"),\n description: \"Stage publishing a DRAFT lead gen form so ads that open it can serve. Applies on chat publish.\",\n args: { id: { type: \"positional\", description: \"Lead form id or URN\", required: true }, ...writeAccountArgs },\n});\n\nregisterSchema({\n command: \"ads.linkedin.lead-forms.archive\",\n ...staged(\"leadForm.update\"),\n description: \"Stage archiving a lead gen form — every ad that opens it stops serving. Applies on chat publish.\",\n args: { id: { type: \"positional\", description: \"Lead form id or URN\", required: true }, ...writeAccountArgs },\n});\n\nregisterSchema({\n command: \"ads.linkedin.audiences.delete\",\n ...staged(\"audience.delete\"),\n description:\n \"Stage deleting a matched audience already on LinkedIn (its list and targetable twin go too). Refused by LinkedIn while a live ad set targets it. Applies on chat publish.\",\n args: {\n id: { type: \"positional\", description: \"Audience URN (urn:li:dmpSegment:…) or id\", required: true },\n ...writeAccountArgs,\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.account-users\",\n ...live(\"GET /api/ads/linkedin/account-users\"),\n description:\n \"Who works on the ad account and their Campaign Manager role; connectedLinkedin marks the person Baker publishes as — the default sender of a conversation ad.\",\n args: { ...writeAccountArgs },\n});\n\nregisterSchema({\n command: \"ads.linkedin.conversions.upload\",\n ...staged(\"conversion.upload\"),\n description:\n \"Stage CRM / offline conversions (deals won, qualified leads) into a Conversions API rule — LinkedIn credits the ads and bids toward them. --file is a CSV or JSON array: eventId (CRM id; LinkedIn counts a re-sent id once), happenedAt (ISO WITH timezone, last 90 days), and email, or firstName + lastName (+ companyName, title, countryCode), or liFatId; optional value + currency. Emails and names are hashed on the sandbox. ≤2,000 per upload; re-staging for the same rule replaces the rows. Applies on chat publish.\",\n args: {\n id: { type: \"positional\", description: \"Conversions API rule id\", required: true },\n ...writeAccountArgs,\n file: { type: \"string\", description: \"CSV or JSON file of conversions\", required: true },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.revenue\",\n ...live(\"GET /api/ads/linkedin/revenue\"),\n description:\n \"LinkedIn revenue attribution: CRM deals credited to the ads — revenue won (USD), return on ad spend, deals won, win rate, average deal size, days to close — per campaign, campaign group or account. Needs the ad account in a Business Manager with Salesforce, Dynamics 365 or HubSpot connected. 30–366 days within the last year (default last 90).\",\n args: {\n ...writeAccountArgs,\n pivot: { type: \"string\", description: \"campaign (default)|campaign-group|account\", required: false },\n start: { type: \"string\", description: \"First day, YYYY-MM-DD\", required: false },\n end: { type: \"string\", description: \"Last day, YYYY-MM-DD (default today)\", required: false },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.audiences.list\",\n ...live(\"GET /api/ads/linkedin/audiences\"),\n description:\n \"List matched audiences: status (BUILDING/READY), rows uploaded vs matched, targetingUrn (urn:li:adSegment:…) for targeting and exclusions.\",\n args: { ...writeAccountArgs },\n});\n\nregisterSchema({\n command: \"ads.linkedin.creatives.get\",\n ...live(\"GET /api/ads/linkedin/creative\"),\n description:\n \"Read one ad as LinkedIn holds it: headline, intro text, landing URL, lead gen form, review status and rejection reasons, and why it isn't serving (notServingBecause).\",\n args: {\n id: { type: \"positional\", description: \"Creative id or urn:li:sponsoredCreative:N\", required: true },\n \"account-id\": { type: \"string\", description: \"Account ID\", required: false },\n \"account-urn\": { type: \"string\", description: \"Alias\", required: false },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.preview\",\n ...live(\"POST /api/ads/linkedin/preview\"),\n description:\n \"See an existing ad as LinkedIn renders it in the feed, desktop and mobile: shownText (the text people see, in order) plus a picture of each for visual questions. Check it before saying how an ad looks.\",\n args: {\n id: { type: \"positional\", description: \"Creative id or urn:li:sponsoredCreative:N\", required: true },\n \"account-id\": { type: \"string\", description: \"Account ID\", required: false },\n \"account-urn\": { type: \"string\", description: \"Alias\", required: false },\n placement: { type: \"string\", description: \"desktop|mobile|both (default both)\", required: false },\n \"out-dir\": { type: \"string\", description: \"Folder for the pictures\", required: false },\n \"html-file\": { type: \"string\", description: \"Also save the raw preview iframes here\", required: false },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.draft.list\",\n ...{ effect: \"read\", routes: [\"POST /api/ads/linkedin/draft\"] },\n description:\n \"Show every LinkedIn write op staged in this chat: ref, summary, dependencies, warnings, and post-publish results. Ops are invisible to the read commands until publish, and publishing reaches the real ad account — check here before finishing.\",\n args: {\n json: {\n type: \"boolean\",\n description: \"Print the raw JSON envelope instead of the readable tree\",\n required: false,\n },\n full: { type: \"boolean\", description: DRAFT_FULL_ARG.description, required: false },\n chat: { type: \"string\", description: CHAT_READ_ARG_DESCRIPTION, required: false },\n where: LIST_WHERE_ARG,\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.draft.remove\",\n ...{ effect: \"unstage\", routes: [\"POST /api/ads/linkedin/draft/remove\"] },\n description:\n \"Drop staged LinkedIn ops from this chat's draft — one, or many in one call. Removing a create cascades to every op that depends on it (a campaign removal drops its staged creatives).\",\n args: {\n ref: {\n type: \"positional\",\n description: \"Op ref(s) (li_temp_* for creates, target id/URN for updates) — several, space- or comma-separated\",\n required: true,\n },\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.draft.show\",\n ...{ effect: \"read\", routes: [\"POST /api/ads/linkedin/draft/show\"] },\n description:\n \"Print the staged payload for one LinkedIn op — the receipt to verify a change looks right before publish, and the only way to read back what an earlier chat wrote. A list longer than 50 items (a matched audience's rows) prints as its count; --full prints every item.\",\n args: {\n ref: {\n type: \"positional\",\n description: \"Op ref (li_temp_* for creates, target id/URN for updates)\",\n required: true,\n },\n chat: { type: \"string\", description: CHAT_READ_ARG_DESCRIPTION, required: false },\n full: SHOW_FULL_ARG,\n },\n});\n\nregisterSchema({\n command: \"ads.linkedin.draft.clear\",\n ...{ effect: \"unstage\", routes: [\"POST /api/ads/linkedin/draft/clear\"] },\n description: \"Discard ALL staged LinkedIn ops in this chat's draft. Nothing applies on publish.\",\n args: {},\n});\n\nconst experimentAccountArgs = { ...writeAccountArgs };\n\nregisterSchema({\n command: \"ads.linkedin.experiments.list\",\n ...live(\"GET /api/ads/linkedin/experiments\"),\n description:\n \"List A/B tests: state, running (PENDING|RUNNING|ON_HOLD|STOPPED|ENDED), metric, dates, the two versions.\",\n args: experimentAccountArgs,\n});\nregisterSchema({\n command: \"ads.linkedin.experiments.get\",\n ...live(\"GET /api/ads/linkedin/experiments\"),\n description:\n \"One A/B test with LinkedIn's setup checks (ERROR blocks it) and the latest result (winner, p-value, intervals).\",\n args: { id: { type: \"positional\", description: \"A/B test id\", required: true }, ...experimentAccountArgs },\n});\nregisterSchema({\n command: \"ads.linkedin.experiments.create\",\n ...staged(\"experiment.create\"),\n description:\n \"Stage an A/B test between two ad sets of one campaign (no shared budget), ≤90 days, winner on CPC|CPM|CPV|CPMS. Applies on chat publish.\",\n args: {\n ...experimentAccountArgs,\n name: { type: \"string\", description: \"Test name\", required: true },\n description: { type: \"string\", description: \"What is being tested\", required: false },\n \"version-a\": { type: \"string\", description: \"Ad set for version A (id/URN/li_temp_*)\", required: true },\n \"version-b\": { type: \"string\", description: \"Ad set for version B (id/URN/li_temp_*)\", required: true },\n \"name-a\": { type: \"string\", description: \"Version A label\", required: false },\n \"name-b\": { type: \"string\", description: \"Version B label\", required: false },\n \"weight-a\": { type: \"string\", description: \"Version A audience share 1–99 (default 50)\", required: false },\n metric: { type: \"string\", description: \"CPC|CPM|CPV|CPMS\", required: true },\n confidence: { type: \"string\", description: \"51–99 (default 90)\", required: false },\n start: { type: \"string\", description: \"Start date\", required: true },\n end: { type: \"string\", description: \"End date (≤90 days)\", required: true },\n \"stop-at\": { type: \"string\", description: \"end-date|winner|never\", required: false },\n draft: { type: \"boolean\", description: \"Set up but not running\", required: false },\n },\n});\nregisterSchema({\n command: \"ads.linkedin.experiments.update\",\n ...staged(\"experiment.update\"),\n description: \"Stage changes to an A/B test (name, description, end, confidence, stop-at). Applies on chat publish.\",\n args: {\n id: { type: \"positional\", description: \"A/B test id\", required: true },\n ...experimentAccountArgs,\n name: { type: \"string\", description: \"New name\", required: false },\n description: { type: \"string\", description: \"New description\", required: false },\n end: { type: \"string\", description: \"New end date\", required: false },\n confidence: { type: \"string\", description: \"51–99\", required: false },\n \"stop-at\": { type: \"string\", description: \"end-date|winner|never\", required: false },\n },\n});\nfor (const [verb, what] of [\n [\"start\", \"Stage starting or resuming an A/B test.\"],\n [\"pause\", \"Stage pausing an A/B test (both ad sets pause).\"],\n [\"end\", \"Stage ending an A/B test for good.\"],\n] as const) {\n registerSchema({\n command: `ads.linkedin.experiments.${verb}`,\n ...staged(\"experiment.update\"),\n description: `${what} Applies on chat publish.`,\n args: { id: { type: \"positional\", description: \"A/B test id\", required: true }, ...experimentAccountArgs },\n });\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,SAAS,qBAAqB;;;ACU9B,IAAM,4BAA4B,cAAc;AAGhD,IAAM,WAAyB;AAC/B,IAAM,QAAsB;AAE5B,IAAM,gBAA0C,EAAE,QAAQ,QAAQ,QAAQ,CAAC,QAAQ,EAAE;AAGrF,SAAS,KAAK,OAA+C;AAC3D,SAAO,EAAE,QAAQ,aAAa,QAAQ,CAAC,OAAO,QAAQ,EAAE;AAC1D;AAGA,SAAS,mBAAmB,OAA+C;AACzE,SAAO,EAAE,QAAQ,aAAa,QAAQ,CAAC,KAAK,EAAE;AAChD;AAGA,SAAS,OAAO,MAAwC;AACtD,SAAO,EAAE,QAAQ,SAAS,QAAQ,CAAC,OAAO,QAAQ,GAAG,QAAQ,CAAC,IAAI,EAAE;AACtE;AAGA,SAAS,eAAe,MAAwC;AAC9D,SAAO,EAAE,QAAQ,SAAS,QAAQ,CAAC,OAAO,4CAA4C,QAAQ,GAAG,QAAQ,CAAC,IAAI,EAAE;AAClH;AAGA,SAAS,OAAO,MAAwC;AACtD,SAAO,EAAE,QAAQ,SAAS,QA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c;AAAA,IAClE,aAAa,MAAM,OAAO,2BAAkB,EAAE,KAAK,CAAC,MAAM,EAAE,kBAAkB;AAAA,IAC9E,cAAc,MAAM,OAAO,4BAAmB,EAAE,KAAK,CAAC,MAAM,EAAE,mBAAmB;AAAA,IACjF,OAAO,MAAM,OAAO,qBAAY,EAAE,KAAK,CAAC,MAAM,EAAE,YAAY;AAAA,IAC5D,cAAc,MAAM,OAAO,0BAAiB,EAAE,KAAK,CAAC,MAAM,EAAE,gBAAgB;AAAA,EAC9E;AACF,CAAC;","names":[]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
handleLinkedinError,
|
|
3
3
|
resolveAccountIdArg
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-WVXJYBWA.js";
|
|
5
5
|
import {
|
|
6
6
|
AD_PREVIEW_DIR,
|
|
7
7
|
AD_PREVIEW_DIR_LABEL,
|
|
@@ -100,4 +100,4 @@ Examples:
|
|
|
100
100
|
export {
|
|
101
101
|
previewCommand
|
|
102
102
|
};
|
|
103
|
-
//# sourceMappingURL=preview-
|
|
103
|
+
//# sourceMappingURL=preview-66BGLU5H.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
csvOrJson,
|
|
3
3
|
handleLinkedinError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-WVXJYBWA.js";
|
|
5
5
|
import {
|
|
6
6
|
NO_CACHE_ARG
|
|
7
7
|
} from "./chunk-VHKEKK2L.js";
|
|
@@ -122,4 +122,4 @@ doesn't know land in errors; the rest still resolve. Cached 7 days.`
|
|
|
122
122
|
export {
|
|
123
123
|
resolveCommand
|
|
124
124
|
};
|
|
125
|
-
//# sourceMappingURL=resolve-
|
|
125
|
+
//# sourceMappingURL=resolve-NVL3FTQU.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
bareAccountId,
|
|
3
3
|
failWriteValidation
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YXYUHTQM.js";
|
|
5
5
|
import {
|
|
6
6
|
handleLinkedinError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-WVXJYBWA.js";
|
|
8
8
|
import {
|
|
9
9
|
withWindowSpellings
|
|
10
10
|
} from "./chunk-74QGFUZL.js";
|
|
@@ -96,4 +96,4 @@ Example: baker ads linkedin revenue --account-id 513852526 --pivot campaign --st
|
|
|
96
96
|
export {
|
|
97
97
|
revenueCommand
|
|
98
98
|
};
|
|
99
|
-
//# sourceMappingURL=revenue-
|
|
99
|
+
//# sourceMappingURL=revenue-C24BDD5A.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
hubspotDefaultMapping,
|
|
3
3
|
hubspotTriggerInputSchema
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-H3CYVM4E.js";
|
|
5
5
|
import {
|
|
6
6
|
hubspotRefusal
|
|
7
7
|
} from "./chunk-YBSRIW5S.js";
|
|
@@ -93,6 +93,11 @@ var args = {
|
|
|
93
93
|
description: "Ask HubSpot what --property --operator --value would count today, and read one real contact \u2014 the one most recently there, or --contact \u2014 with the properties the --field rows mention (the defaults when none), to check every row against real data BEFORE --create-hubspot. Makes nothing",
|
|
94
94
|
required: false
|
|
95
95
|
},
|
|
96
|
+
breakdown: {
|
|
97
|
+
type: "boolean",
|
|
98
|
+
description: "With --preview on one dropdown --property (operator `is`) and several --value: also a total for each value, as `preview.counts: [{value, total}]` \u2014 sizing every stage of a funnel in one call: `--preview --object deal --property dealstage --value appointmentscheduled --value closedwon --breakdown`. Never loop --preview over values",
|
|
99
|
+
required: false
|
|
100
|
+
},
|
|
96
101
|
object: {
|
|
97
102
|
type: "string",
|
|
98
103
|
description: "With --create-hubspot or --preview: what the trigger is on \u2014 `contact` (the default), `deal` or `lead`. A deal's and a lead's event is about the contact the record is associated with: its rows read the record's own properties bare ({{amount}}, {{dealstage}}, {{hs_pipeline_stage}}) and the contact's as {{contact.<name>}} (`baker hubspot deals fields` / `baker hubspot leads fields`). A deal's amount defaults to its own amount in its currency; a lead has none, so it counts the step rather than money. Use `lead` for qualification and disqualification \u2014 HubSpot records both as a lead stage, and nothing on the contact or the deal says a lead was disqualified",
|
|
@@ -321,7 +326,8 @@ function previewArgs(raw, argv) {
|
|
|
321
326
|
...object === "contact" ? {} : { object },
|
|
322
327
|
trigger: triggerArgs(raw, argv, "preview"),
|
|
323
328
|
properties,
|
|
324
|
-
...contact === void 0 ? {} : { contact }
|
|
329
|
+
...contact === void 0 ? {} : { contact },
|
|
330
|
+
...raw.breakdown === true ? { breakdown: true } : {}
|
|
325
331
|
};
|
|
326
332
|
}
|
|
327
333
|
var VERBS = [
|
|
@@ -425,7 +431,7 @@ function handleError(err) {
|
|
|
425
431
|
var sourcesCommand = defineCommand({
|
|
426
432
|
meta: {
|
|
427
433
|
name: "sources",
|
|
428
|
-
description: 'Where events reach Baker from a server, and what each one reads. Two doors. **The client\'s own server**: `--server` prints one address for their developers \u2014 made once, the same for ever, counting at once, Baker\'s own `POST /v1/events` format (`baker analytics sending-events` has the contract, `X-Baker-Mode: test` rehearses). **HubSpot events**: HubSpot keeps each change to a watched property in a journal Baker reads every half minute \u2014 Baker\'s app subscribes the account to that one property with the condition as HubSpot\'s own filter, so an account with a million contacts costs nothing to watch \u2014 on every plan, nothing to set up in HubSpot. The trigger is *when a contact\'s* property satisfies a condition \u2014 the same conditions a Form\'s filters take: `--property lifecyclestage --value customer` (a dropdown; `--value lead --value customer` for either), `--property deal_value --operator greaterThan --value 1000`, `--property email --operator endsWith --value @acme.com`, `--property closed_at --operator isAfter --value 2026-01-01`, `--property phone --operator isEmpty`. Several conditions combine the way a Form\'s filter does \u2014 `--conditions \'{"logic":"And","conditions":[{"property":"lifecyclestage","values":["customer"]},{"property":"country","values":["Spain"]}]}\'` (AND / OR, groups one level deep, 10 conditions at most) in place of --property/--operator/--value, on --create-hubspot, --set-trigger and --preview; the event fires when a change to any named property makes the whole combination hold. `baker hubspot contacts properties` lists every property with its kind, the operators that kind takes and a dropdown\'s values; `baker hubspot contacts fields` every property a row can read. `--preview --property \u2026 [--operator \u2026] --value \u2026 [--field \u2026] [--contact <id or email>]` says how many contacts satisfy it today (NOT counted \u2014 only contacts that come to satisfy it from now on are) and reads one real contact so every row can be checked against real data; then `--create-hubspot --property \u2026 --value \u2026 --name "Deal won" --field email={{work_email}} --field value={{deal_value}} --field currency=EUR` makes the event, rows over the defaults (email, phone, the contact id, name, address, hs_google_click_id, hs_facebook_click_id). `--set-trigger --source <id> --property \u2026 --operator \u2026 --value \u2026` changes what an event watches later (rows kept, counting from now on). Every row is a template \u2014 text with {{property}} mentions, one thing per mention; `--map --source <id> --field \u2026` replaces the whole row set later, `--amount-property <number property> --currency EUR` is the short spelling for the amount rows. Each event is an ordinary event named after the source, carrying `baker_source`, listed by `feed --source <name>`, counted with `conversions` under `page:<name>`, and sent to the ad platforms with `sends`. **ActiveCampaign events**: `--create-activecampaign [--events subscribe,deal_update] [--name \u2026] [--account <id>]` stages a source that the ActiveCampaign webhook sends to once the chat is published; each arrival is an event called `activecampaign.<event>` \u2014 whatever the source is called \u2014 carrying the contact and the rest of the ActiveCampaign payload as `properties.*` (the stage of a deal, the tag, the campaign), which is what a scheduled agent on `event.received --event activecampaign.<event>` runs on. `--pause`, `--resume`, `--remove` by --source; removing an ActiveCampaign source deletes its webhook. `--create --name <tool>` still makes an address for a tool that cannot be told what to send; its first send is a masked sample counted as nothing until `--map` confirms the rows.'
|
|
434
|
+
description: 'Where events reach Baker from a server, and what each one reads. Two doors. **The client\'s own server**: `--server` prints one address for their developers \u2014 made once, the same for ever, counting at once, Baker\'s own `POST /v1/events` format (`baker analytics sending-events` has the contract, `X-Baker-Mode: test` rehearses). **HubSpot events**: HubSpot keeps each change to a watched property in a journal Baker reads every half minute \u2014 Baker\'s app subscribes the account to that one property with the condition as HubSpot\'s own filter, so an account with a million contacts costs nothing to watch \u2014 on every plan, nothing to set up in HubSpot. The trigger is *when a contact\'s* property satisfies a condition \u2014 the same conditions a Form\'s filters take: `--property lifecyclestage --value customer` (a dropdown; `--value lead --value customer` for either), `--property deal_value --operator greaterThan --value 1000`, `--property email --operator endsWith --value @acme.com`, `--property closed_at --operator isAfter --value 2026-01-01`, `--property phone --operator isEmpty`. Several conditions combine the way a Form\'s filter does \u2014 `--conditions \'{"logic":"And","conditions":[{"property":"lifecyclestage","values":["customer"]},{"property":"country","values":["Spain"]}]}\'` (AND / OR, groups one level deep, 10 conditions at most) in place of --property/--operator/--value, on --create-hubspot, --set-trigger and --preview; the event fires when a change to any named property makes the whole combination hold. `baker hubspot contacts properties` lists every property with its kind, the operators that kind takes and a dropdown\'s values; `baker hubspot contacts fields` every property a row can read. `--preview --property \u2026 [--operator \u2026] --value \u2026 [--breakdown] [--field \u2026] [--contact <id or email>]` says how many contacts satisfy it today (NOT counted \u2014 only contacts that come to satisfy it from now on are), `--breakdown` a total per --value in the same call, and reads one real contact so every row can be checked against real data; then `--create-hubspot --property \u2026 --value \u2026 --name "Deal won" --field email={{work_email}} --field value={{deal_value}} --field currency=EUR` makes the event, rows over the defaults (email, phone, the contact id, name, address, hs_google_click_id, hs_facebook_click_id). `--set-trigger --source <id> --property \u2026 --operator \u2026 --value \u2026` changes what an event watches later (rows kept, counting from now on). Every row is a template \u2014 text with {{property}} mentions, one thing per mention; `--map --source <id> --field \u2026` replaces the whole row set later, `--amount-property <number property> --currency EUR` is the short spelling for the amount rows. Each event is an ordinary event named after the source, carrying `baker_source`, listed by `feed --source <name>`, counted with `conversions` under `page:<name>`, and sent to the ad platforms with `sends`. **ActiveCampaign events**: `--create-activecampaign [--events subscribe,deal_update] [--name \u2026] [--account <id>]` stages a source that the ActiveCampaign webhook sends to once the chat is published; each arrival is an event called `activecampaign.<event>` \u2014 whatever the source is called \u2014 carrying the contact and the rest of the ActiveCampaign payload as `properties.*` (the stage of a deal, the tag, the campaign), which is what a scheduled agent on `event.received --event activecampaign.<event>` runs on. `--pause`, `--resume`, `--remove` by --source; removing an ActiveCampaign source deletes its webhook. `--create --name <tool>` still makes an address for a tool that cannot be told what to send; its first send is a masked sample counted as nothing until `--map` confirms the rows.'
|
|
429
435
|
},
|
|
430
436
|
args,
|
|
431
437
|
run: async ({ args: raw }) => {
|
|
@@ -460,4 +466,4 @@ export {
|
|
|
460
466
|
sourcesCommand,
|
|
461
467
|
sourcesRequest
|
|
462
468
|
};
|
|
463
|
-
//# sourceMappingURL=sources-
|
|
469
|
+
//# sourceMappingURL=sources-DVNWHBF5.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/commands/analytics/sources.ts"],"sourcesContent":["import { REJECTION_MESSAGES, validateEventName } from \"@baker/api/event-ingest\";\nimport {\n HUBSPOT_DEAL_CONTACTS,\n HUBSPOT_OBJECTS,\n type HubspotDealContacts,\n type HubspotObject,\n hubspotDefaultMapping,\n hubspotTriggerInputSchema,\n mappingRowProblem,\n readsAssociatedContact,\n SOURCE_FIELD_NAMES,\n type SourcesRequestInput,\n type SourcesResponse,\n templateMentions,\n} from \"@baker/api/event-sources\";\nimport { defineCommand } from \"citty\";\nimport { ApiError, apiPost } from \"../../client.ts\";\nimport { registerSchema } from \"../../schemas.ts\";\nimport { writeJsonEnvelope } from \"../ads/output.ts\";\nimport { hubspotRefusal } from \"../hubspot/refusal.ts\";\nimport { ConversionArgsError, onlyOnce } from \"./conversionArgs.ts\";\n\n/**\n * `baker analytics sources` — an address for each of the client's own tools to\n * send events to, and what each one's payloads are read as.\n *\n * ## Why a URL and not a key\n *\n * `POST /v1/events` needs the sender to write code to our contract. A CRM's\n * webhook, an automation platform, a billing system cannot be told what to\n * send — they post what they post, to a URL, and set nothing else. A source\n * is that URL: the token in it is the whole credential, the first send\n * teaches Baker the shape, and a person confirms once which path is the\n * email, which the amount. From then on every arrival is an ordinary event.\n *\n * ## `--field` and `--value` repeat, and citty keeps only the last\n *\n * citty hands the LAST value of a repeated flag over as a plain string, so\n * `--field email=a --field value=b` would map `value` and silently drop\n * `email`, and `--value lead --value customer` would watch `customer` alone.\n * Both are read off `process.argv` instead, the way `conversions` reads its\n * repeats.\n */\n\nconst args = {\n server: {\n type: \"boolean\",\n description:\n \"The client's own server door: one address for their developers, made once and the same for ever after, counting at once in Baker's own format (`baker analytics sending-events` has the contract). Prints it; nothing else to set\",\n required: false,\n },\n create: {\n type: \"boolean\",\n description:\n \"Make an address for a tool that cannot be told what to send (a CRM webhook, an automation step). Needs --name. Its first send is kept as a sample and counted as nothing until --map\",\n required: false,\n },\n \"create-hubspot\": {\n type: \"boolean\",\n description:\n \"Make a HubSpot event: HubSpot keeps each change to --property for Baker (Baker's app subscribes the account to that property with the condition as HubSpot's own filter, and nothing else), and every contact whose new value satisfies --operator --value is an event, counted within a minute. Needs --property (names, kinds and operators from `baker hubspot contacts properties`); --operator defaults to `is`; --value repeats for a list (`is` on a dropdown) or a between; --name is optional and defaults to the trigger's words; --field rows (names from `baker hubspot contacts fields`) replace the default rows they name. Counts from now on, never earlier contacts\",\n required: false,\n },\n \"create-activecampaign\": {\n type: \"boolean\",\n description:\n \"Make an ActiveCampaign event source: when this chat is published, ActiveCampaign's own webhook is set up on the account to send --events here, and each one counts as `activecampaign.<event>` (a contact subscribing is `activecampaign.subscribe`) from then on — a scheduled agent can run on any of them (`baker scheduled-agents create --trigger event.received --event activecampaign.deal_update`). --events defaults to subscribe,contact_tag_added,deal_add,deal_update; --name to ActiveCampaign; --account picks the connection when there are several. Removing the source takes the webhook off the account\",\n required: false,\n },\n events: {\n type: \"string\",\n description:\n \"With --create-activecampaign: ActiveCampaign's events, comma-separated — subscribe, unsubscribe, update, contact_tag_added, contact_tag_removed, subscriber_note, contact_task_add, sent, open, click, reply, forward, share, bounce, list_add, deal_add, deal_update, deal_note_add, deal_task_add, deal_task_complete, deal_pipeline_add, deal_stage_add, deal_tasktype_add, account_add, account_update, account_contact_add, account_contact_update\",\n required: false,\n },\n account: {\n type: \"string\",\n description:\n \"With --create-activecampaign: which ActiveCampaign connection, by id, when the company has more than one (the refusal lists them)\",\n required: false,\n },\n \"set-trigger\": {\n type: \"boolean\",\n description:\n \"Change what a HubSpot event watches. Needs --source and the same --property --operator --value as --create-hubspot. The rows stay; it counts from now on under the new trigger\",\n required: false,\n },\n preview: {\n type: \"boolean\",\n description:\n \"Ask HubSpot what --property --operator --value would count today, and read one real contact — the one most recently there, or --contact — with the properties the --field rows mention (the defaults when none), to check every row against real data BEFORE --create-hubspot. Makes nothing\",\n required: false,\n },\n breakdown: {\n type: \"boolean\",\n description:\n \"With --preview on one dropdown --property (operator `is`) and several --value: also a total for each value, as `preview.counts: [{value, total}]` — sizing every stage of a funnel in one call: `--preview --object deal --property dealstage --value appointmentscheduled --value closedwon --breakdown`. Never loop --preview over values\",\n required: false,\n },\n object: {\n type: \"string\",\n description:\n \"With --create-hubspot or --preview: what the trigger is on — `contact` (the default), `deal` or `lead`. A deal's and a lead's event is about the contact the record is associated with: its rows read the record's own properties bare ({{amount}}, {{dealstage}}, {{hs_pipeline_stage}}) and the contact's as {{contact.<name>}} (`baker hubspot deals fields` / `baker hubspot leads fields`). A deal's amount defaults to its own amount in its currency; a lead has none, so it counts the step rather than money. Use `lead` for qualification and disqualification — HubSpot records both as a lead stage, and nothing on the contact or the deal says a lead was disqualified\",\n required: false,\n },\n contacts: {\n type: \"string\",\n description:\n \"With --object deal or --object lead (on --create-hubspot or --set-trigger): whose event it is — `every` (the default: every contact on the record, each its own event; on a deal each worth the deal's amount) or `first` (the record's first contact only)\",\n required: false,\n },\n property: {\n type: \"string\",\n description:\n \"With --create-hubspot, --set-trigger or --preview: the property to watch, by HubSpot's internal name (lifecyclestage, hs_lead_status, a custom one on a contact; dealstage, amount, closedate on a deal; hs_pipeline_stage, hs_lead_label on a lead) — any property, whatever its kind\",\n required: false,\n },\n operator: {\n type: \"string\",\n description:\n \"With --property: how the property has to read. By the property's kind — select: is, isNot, isEmpty, isNotEmpty · text: is, isNot, contains, doesNotContain, startsWith, endsWith, isEmpty, isNotEmpty · number: equal, notEqual, lessThan, lessThanOrEqual, greaterThan, greaterThanOrEqual, isEmpty, isNotEmpty · date: is, isBefore, isAfter, isOnOrBefore, isOnOrAfter, isBetween, isEmpty, isNotEmpty · yes/no: is, isNot. `is` when unsaid\",\n required: false,\n },\n value: {\n type: \"string\",\n description:\n \"With --property: the value, as HubSpot spells it — a dropdown's internal value (customer, QUALIFIED…), a number, a YYYY-MM-DD, true/false. Repeat it for a list (--value lead --value customer) or the two ends of isBetween; none for isEmpty / isNotEmpty\",\n required: false,\n },\n conditions: {\n type: \"string\",\n description:\n 'With --create-hubspot, --set-trigger or --preview, instead of --property/--operator/--value: several conditions combined the way a Form\\'s filter combines them, as JSON — `{\"logic\":\"And\",\"conditions\":[{\"property\":\"lifecyclestage\",\"values\":[\"customer\"]},{\"logic\":\"Or\",\"conditions\":[{\"property\":\"country\",\"values\":[\"Spain\"]},{\"property\":\"amount\",\"operator\":\"greaterThan\",\"values\":[\"1000\"]}]}]}`. `logic` is And (every row) or Or (any row); a row is a condition or a group with its own logic, one level deep; at most 10 conditions. The event fires when a change to any named property makes the whole combination hold',\n required: false,\n },\n contact: {\n type: \"string\",\n description:\n \"With --preview: the record to draw the sample from — a HubSpot id, or text to search (an email or a name for a contact, a deal's or a lead's name). The one most recently satisfying the trigger when unsaid\",\n required: false,\n },\n \"amount-property\": {\n type: \"string\",\n description:\n \"With --create-hubspot or --set-amount: a NUMBER property of the watched object to read as the event's amount (a deal value synced onto the contact; a deal's own `amount` is read by default on a deal). Needs --currency beside it\",\n required: false,\n },\n currency: {\n type: \"string\",\n description: \"With --amount-property: the three-letter currency the property is in, like EUR or USD\",\n required: false,\n },\n \"set-amount\": {\n type: \"boolean\",\n description:\n \"Change where a HubSpot-read source takes its amount from. Needs --source; with --amount-property and --currency it reads them, with neither it stops reading an amount\",\n required: false,\n },\n backfill: {\n type: \"boolean\",\n description:\n \"Count a HubSpot event's history: every moment its trigger came to hold since --since, at the instant HubSpot says it did. Needs --source and --since. Nothing is invented — a record that merely satisfies the trigger today is not an event today, and only moments HubSpot has a timestamp for are counted. Dry without --write. Reach for it when an event was made after the deals it should have counted, or after fixing one that was refusing everything it received\",\n required: false,\n },\n since: {\n type: \"string\",\n description:\n \"With --backfill: the date to count this event's history from, `2026-09-19` or an ISO instant. At most 400 days back — the store keeps no more\",\n required: false,\n },\n before: {\n type: \"string\",\n description:\n \"With --backfill: carry on from where a capped run stopped, by passing back the `reachedBack` it returned. One run reads at most 500 records, most recently changed first, so a capped run has covered the newest and the rest are the ones nearest --since — narrowing --since cannot reach them, this can. Repeat until `capped` is false; nothing is counted twice. It bounds which records are read, never which of their moments count: those are still the whole of --since to now\",\n required: false,\n },\n write: {\n type: \"boolean\",\n description:\n \"With --backfill: actually count what it found. Without it nothing is counted and the answer says what would be. Events inside the last 72 hours are uploaded to this event's ad platforms within minutes of counting, which spends real budget\",\n required: false,\n },\n name: {\n type: \"string\",\n description:\n \"The tool the source is for — HubSpot, Zapier, Stripe. It is the event's name when the payload does not say one, and every event it sends carries it as `baker_source`\",\n required: false,\n },\n map: {\n type: \"boolean\",\n description:\n \"Set what each field is read from. For an address this starts counting; needs --source, and one --field per row. With no --field the guess is used, which is right for a tool already sending Baker's own format. For a HubSpot-read source it replaces the whole mapping (the row list is on the source as `mapping`; empty means HubSpot's standard properties), so repeat every row you want kept\",\n required: false,\n },\n source: { type: \"string\", description: \"The source id, from the list\", required: false },\n field: {\n type: \"string\",\n description: `<field>=<template>, repeatable. A template is text with {{path}} mentions, one thing per mention: --field email={{contact.email}} --field currency=EUR --field first_name=\"{{who.first}} {{who.last}}\". A bare path (--field email=contact.email) is read as its mention when the sample has that path, so the short spelling still works. Fields: ${SOURCE_FIELD_NAMES.join(\", \")}. An EXTRA PROPERTY of the event — a plan, a stage, anything Measure → Events should break it down by and a send may pass on to a platform — is --field properties.<name>=<template>, e.g. --field properties.plan={{plan_tier}}. Paths come from \\`paths\\` on the source's sample; for a HubSpot event they are contact property names (\\`baker hubspot contacts fields\\`) plus \\`id\\` for the contact id`,\n required: false,\n },\n pause: {\n type: \"boolean\",\n description: \"Stop counting a source's arrivals; they are answered and dropped. Needs --source\",\n required: false,\n },\n resume: { type: \"boolean\", description: \"Count a paused source's arrivals again. Needs --source\", required: false },\n remove: {\n type: \"boolean\",\n description: \"Delete a source; its address stops working at once. Needs --source\",\n required: false,\n },\n full: {\n type: \"boolean\",\n description:\n \"Also return each source's masked sample body. The paths and the guess are always returned; the body is only for reading what a path held\",\n required: false,\n },\n} as const;\n\nregisterSchema({\n command: \"analytics.sources\",\n routes: [\"POST /api/analytics/sources\"],\n effect: \"write\",\n description:\n \"Where events reach Baker from a server: the client's own server door, HubSpot events Baker reads, and ActiveCampaign events its webhook sends — what each one watches and reads, and how it is doing\",\n args,\n});\n\n/** The value a repeated flag carries at this position, in either spelling, or nothing. */\nfunction flagValueAt(argv: readonly string[], flag: string, index: number): string | undefined {\n const arg = argv[index] ?? \"\";\n if (arg === flag) return argv[index + 1];\n return arg.startsWith(`${flag}=`) ? arg.slice(flag.length + 1) : undefined;\n}\n\n/** Every value of a repeated flag on the command line, in order. */\nexport function parseRepeated(argv: readonly string[], flag: string): string[] {\n const values: string[] = [];\n for (let index = 0; index < argv.length; index += 1) {\n const value = flagValueAt(argv, flag, index);\n if (value !== undefined) values.push(value);\n }\n return values;\n}\n\n/** Every `--field k=v` on the command line, in order, refusing a malformed one. */\nexport function parseFieldArgs(argv: readonly string[]): Record<string, string> {\n const mapping: Record<string, string> = {};\n for (const pair of parseRepeated(argv, \"--field\")) {\n const eq = pair.indexOf(\"=\");\n const field = eq === -1 ? pair : pair.slice(0, eq);\n const path = eq === -1 ? \"\" : pair.slice(eq + 1).trim();\n const problem = mappingRowProblem(field);\n if (problem !== null) throw new ConversionArgsError(problem);\n if (path === \"\") throw new ConversionArgsError(`--field ${field} needs a path: --field ${field}=<dotted.path>.`);\n mapping[field] = path;\n }\n return mapping;\n}\n\n/** The amount pair, which travels together or not at all. */\nfunction amountArgs(raw: Record<string, unknown>, argv: readonly string[]) {\n const amountProperty = onlyOnce(raw[\"amount-property\"], \"--amount-property\", argv);\n const currency = onlyOnce(raw.currency, \"--currency\", argv);\n if ((amountProperty === undefined) !== (currency === undefined)) {\n throw new ConversionArgsError(\"--amount-property and --currency go together: name both or neither.\");\n }\n return {\n ...(amountProperty === undefined ? {} : { amountProperty }),\n ...(currency === undefined ? {} : { currency }),\n };\n}\n\nconst NO_VALUE_OPERATORS = new Set([\"isEmpty\", \"isNotEmpty\"]);\n\n/**\n * The trigger every HubSpot verb needs: the property, how it has to read,\n * and the values — repeated on the command line, read off argv. Refused with\n * where the names come from; what the property's kind allows is checked\n * against the account by the backend.\n */\nfunction triggerArgs(raw: Record<string, unknown>, argv: readonly string[], verb: string): TriggerInput {\n const conditions = onlyOnce(raw.conditions, \"--conditions\", argv);\n if (conditions !== undefined) return conditionsArg(conditions, raw, verb);\n const property = onlyOnce(raw.property, \"--property\", argv);\n const operator = onlyOnce(raw.operator, \"--operator\", argv) ?? \"is\";\n // The last --value is what citty kept; every one is what was typed.\n const values = argv.length === 0 && typeof raw.value === \"string\" ? [raw.value] : parseRepeated(argv, \"--value\");\n if (property === undefined) {\n throw new ConversionArgsError(\n `--${verb} needs --property <name> [--operator <op>] --value <value>…, from \\`baker hubspot contacts properties\\`.`,\n );\n }\n if (values.length === 0 && !NO_VALUE_OPERATORS.has(operator)) {\n throw new ConversionArgsError(\n `--${verb} needs --value <value> (repeat it for a list); only --operator isEmpty / isNotEmpty take none.`,\n );\n }\n return { property, operator, values };\n}\n\ntype TriggerInput = NonNullable<SourcesRequestInput[\"createHubspot\"]>[\"trigger\"];\n\n/** `--conditions <json>`: a combination, checked for shape here so a typo is refused before the call. */\nfunction conditionsArg(text: string, raw: Record<string, unknown>, verb: string): TriggerInput {\n if (raw.property !== undefined || raw.value !== undefined || raw.operator !== undefined) {\n throw new ConversionArgsError(`--${verb} takes --conditions or --property/--operator/--value, not both.`);\n }\n let parsed: unknown;\n try {\n parsed = JSON.parse(text);\n } catch {\n throw new ConversionArgsError(\n '--conditions is JSON: {\"logic\":\"And\",\"conditions\":[{\"property\":\"lifecyclestage\",\"values\":[\"customer\"]}]}.',\n );\n }\n const checked = hubspotTriggerInputSchema.safeParse(parsed);\n if (!checked.success) {\n throw new ConversionArgsError(`--conditions: ${checked.error.issues.map((issue) => issue.message).join(\"; \")}`);\n }\n return parsed as TriggerInput;\n}\n\n/** `--object contact|deal`, spelled the two ways the wire takes and nothing else. */\nfunction objectArg(raw: Record<string, unknown>, argv: readonly string[]): HubspotObject {\n const object = onlyOnce(raw.object, \"--object\", argv) ?? \"contact\";\n if (!(HUBSPOT_OBJECTS as readonly string[]).includes(object)) {\n throw new ConversionArgsError(`--object is one of ${HUBSPOT_OBJECTS.join(\", \")}, not \"${object}\".`);\n }\n return object as HubspotObject;\n}\n\n/** `--contacts first|every`, which only means something on a deal or a lead. */\nfunction contactsArg(raw: Record<string, unknown>, argv: readonly string[]): HubspotDealContacts | undefined {\n const contacts = onlyOnce(raw.contacts, \"--contacts\", argv);\n if (contacts === undefined) return undefined;\n if (!(HUBSPOT_DEAL_CONTACTS as readonly string[]).includes(contacts)) {\n throw new ConversionArgsError(`--contacts is one of ${HUBSPOT_DEAL_CONTACTS.join(\", \")}, not \"${contacts}\".`);\n }\n return contacts as HubspotDealContacts;\n}\n\nfunction createHubspotArgs(\n raw: Record<string, unknown>,\n argv: readonly string[],\n name: string | undefined,\n): NonNullable<SourcesRequestInput[\"createHubspot\"]> {\n const mapping = parseFieldArgs(argv);\n const object = objectArg(raw, argv);\n const contacts = contactsArg(raw, argv);\n if (contacts !== undefined && !readsAssociatedContact(object)) {\n throw new ConversionArgsError(\n \"--contacts says whose event a deal's or a lead's is; it needs --object deal or --object lead.\",\n );\n }\n return {\n // A contact is the wire's default, so it is left unsaid — the way the schema reads it back.\n ...(object === \"contact\" ? {} : { object }),\n trigger: triggerArgs(raw, argv, \"create-hubspot\"),\n ...(contacts === undefined ? {} : { contacts }),\n ...(name === undefined ? {} : { name }),\n ...(Object.keys(mapping).length === 0 ? {} : { mapping }),\n ...amountArgs(raw, argv),\n };\n}\n\n/** What to read off the sample contact: whatever the rows mention, or the default rows' properties. */\nfunction previewArgs(\n raw: Record<string, unknown>,\n argv: readonly string[],\n): NonNullable<SourcesRequestInput[\"preview\"]> {\n const rows = parseFieldArgs(argv);\n const object = objectArg(raw, argv);\n const templates = Object.values(Object.keys(rows).length === 0 ? hubspotDefaultMapping(\"\", object) : rows);\n const properties = [...new Set(templates.flatMap((template) => templateMentions(template ?? \"\")))];\n const contact = onlyOnce(raw.contact, \"--contact\", argv);\n return {\n ...(object === \"contact\" ? {} : { object }),\n trigger: triggerArgs(raw, argv, \"preview\"),\n properties,\n ...(contact === undefined ? {} : { contact }),\n ...(raw.breakdown === true ? { breakdown: true } : {}),\n };\n}\n\nconst VERBS = [\n \"server\",\n \"create\",\n \"create-hubspot\",\n \"create-activecampaign\",\n \"set-trigger\",\n \"preview\",\n \"backfill\",\n \"set-amount\",\n \"map\",\n \"pause\",\n \"resume\",\n \"remove\",\n] as const;\n\n/**\n * The name, refused here when the ingest door could never accept it.\n *\n * A source's name is the `event_name` of every event it raises, so this is\n * not a label being tidied: a name outside the rule makes a source that\n * counts **nothing**, for ever, while `baker analytics sources` goes on\n * listing it as counting and the only trace is one red line per event on the\n * feed. The contract refuses it too (`sourceNameSchema`), but that comes back\n * as a wire-validation error; the agent is better served by the sentence.\n */\nfunction checkedName(raw: Record<string, unknown>, argv: readonly string[]): string | undefined {\n const name = onlyOnce(raw.name, \"--name\", argv);\n if (name === undefined || validateEventName(name) === null) return name;\n throw new ConversionArgsError(\n `\"${name}\" cannot be an event name, and the name is what every event this source raises will carry. ${REJECTION_MESSAGES.invalid_name}`,\n );\n}\n\n/** What a backfill reads back to, and whether it counts what it finds. */\nfunction backfillArgs(\n raw: Record<string, unknown>,\n argv: readonly string[],\n sourceId: string,\n): NonNullable<SourcesRequestInput[\"backfill\"]> {\n const since = onlyOnce(raw.since, \"--since\", argv);\n if (since === undefined) {\n throw new ConversionArgsError(\n \"--backfill needs --since <date>, e.g. --since 2026-09-19. Nothing before it is read.\",\n );\n }\n const before = onlyOnce(raw.before, \"--before\", argv);\n return {\n sourceId,\n since,\n ...(before === undefined ? {} : { before }),\n ...(raw.write === true ? { write: true } : {}),\n };\n}\n\nfunction createActiveCampaignArgs(\n raw: Record<string, unknown>,\n argv: readonly string[],\n name: string | undefined,\n): NonNullable<SourcesRequestInput[\"createActiveCampaign\"]> {\n const events = onlyOnce(raw.events, \"--events\", argv);\n const account = onlyOnce(raw.account, \"--account\", argv);\n return {\n ...(name === undefined ? {} : { name }),\n ...(events === undefined\n ? {}\n : {\n events: events\n .split(\",\")\n .map((item) => item.trim())\n .filter((item) => item !== \"\"),\n }),\n ...(account === undefined ? {} : { account }),\n };\n}\n\n/** The three ways to make a source: an address for a tool, a HubSpot event, ActiveCampaign events. */\nfunction createRequest(\n verb: (typeof VERBS)[number],\n raw: Record<string, unknown>,\n argv: readonly string[],\n name: string | undefined,\n): SourcesRequestInput | null {\n if (verb === \"create\") {\n if (name === undefined) throw new ConversionArgsError(\"--create needs --name <tool>.\");\n return { create: { name } };\n }\n if (verb === \"create-hubspot\") return { createHubspot: createHubspotArgs(raw, argv, name) };\n if (verb === \"create-activecampaign\") return { createActiveCampaign: createActiveCampaignArgs(raw, argv, name) };\n return null;\n}\n\nexport function sourcesRequest(raw: Record<string, unknown>, argv: readonly string[]): SourcesRequestInput {\n const name = checkedName(raw, argv);\n const source = onlyOnce(raw.source, \"--source\", argv);\n const verbs = VERBS.filter((verb) => raw[verb] === true);\n if (verbs.length > 1) throw new ConversionArgsError(`One of --${verbs.join(\", --\")} per call.`);\n const verb = verbs[0];\n if (verb === undefined) return {};\n if (verb === \"server\") return { server: {} };\n const made = createRequest(verb, raw, argv, name);\n if (made !== null) return made;\n if (verb === \"preview\") return { preview: previewArgs(raw, argv) };\n if (source === undefined) throw new ConversionArgsError(`--${verb} needs --source <id>, from the list.`);\n if (verb === \"backfill\") return { backfill: backfillArgs(raw, argv, source) };\n if (verb === \"set-trigger\") {\n const contacts = contactsArg(raw, argv);\n return {\n setTrigger: {\n sourceId: source,\n trigger: triggerArgs(raw, argv, verb),\n ...(contacts === undefined ? {} : { contacts }),\n },\n };\n }\n if (verb === \"set-amount\") return { setAmount: { sourceId: source, ...amountArgs(raw, argv) } };\n if (verb === \"map\") return { map: { sourceId: source, mapping: parseFieldArgs(argv) } };\n return { [verb]: { sourceId: source } };\n}\n\nfunction handleError(err: unknown): never {\n if (err instanceof ApiError) {\n // A HubSpot event needs HubSpot connected, and allowed to read what it watches.\n const refusal = hubspotRefusal(err.code, err.message);\n writeJsonEnvelope({\n ok: false,\n error:\n refusal === null\n ? { code: err.code, message: err.message }\n : { code: refusal.code, message: err.message, fix: refusal.fix },\n });\n process.exit(1);\n }\n writeJsonEnvelope({\n ok: false,\n error: { code: \"NETWORK_ERROR\", message: err instanceof Error ? err.message : \"Unexpected error\" },\n });\n process.exit(1);\n}\n\nexport const sourcesCommand = defineCommand({\n meta: {\n name: \"sources\",\n description:\n 'Where events reach Baker from a server, and what each one reads. Two doors. **The client\\'s own server**: `--server` prints one address for their developers — made once, the same for ever, counting at once, Baker\\'s own `POST /v1/events` format (`baker analytics sending-events` has the contract, `X-Baker-Mode: test` rehearses). **HubSpot events**: HubSpot keeps each change to a watched property in a journal Baker reads every half minute — Baker\\'s app subscribes the account to that one property with the condition as HubSpot\\'s own filter, so an account with a million contacts costs nothing to watch — on every plan, nothing to set up in HubSpot. The trigger is *when a contact\\'s* property satisfies a condition — the same conditions a Form\\'s filters take: `--property lifecyclestage --value customer` (a dropdown; `--value lead --value customer` for either), `--property deal_value --operator greaterThan --value 1000`, `--property email --operator endsWith --value @acme.com`, `--property closed_at --operator isAfter --value 2026-01-01`, `--property phone --operator isEmpty`. Several conditions combine the way a Form\\'s filter does — `--conditions \\'{\"logic\":\"And\",\"conditions\":[{\"property\":\"lifecyclestage\",\"values\":[\"customer\"]},{\"property\":\"country\",\"values\":[\"Spain\"]}]}\\'` (AND / OR, groups one level deep, 10 conditions at most) in place of --property/--operator/--value, on --create-hubspot, --set-trigger and --preview; the event fires when a change to any named property makes the whole combination hold. `baker hubspot contacts properties` lists every property with its kind, the operators that kind takes and a dropdown\\'s values; `baker hubspot contacts fields` every property a row can read. `--preview --property … [--operator …] --value … [--breakdown] [--field …] [--contact <id or email>]` says how many contacts satisfy it today (NOT counted — only contacts that come to satisfy it from now on are), `--breakdown` a total per --value in the same call, and reads one real contact so every row can be checked against real data; then `--create-hubspot --property … --value … --name \"Deal won\" --field email={{work_email}} --field value={{deal_value}} --field currency=EUR` makes the event, rows over the defaults (email, phone, the contact id, name, address, hs_google_click_id, hs_facebook_click_id). `--set-trigger --source <id> --property … --operator … --value …` changes what an event watches later (rows kept, counting from now on). Every row is a template — text with {{property}} mentions, one thing per mention; `--map --source <id> --field …` replaces the whole row set later, `--amount-property <number property> --currency EUR` is the short spelling for the amount rows. Each event is an ordinary event named after the source, carrying `baker_source`, listed by `feed --source <name>`, counted with `conversions` under `page:<name>`, and sent to the ad platforms with `sends`. **ActiveCampaign events**: `--create-activecampaign [--events subscribe,deal_update] [--name …] [--account <id>]` stages a source that the ActiveCampaign webhook sends to once the chat is published; each arrival is an event called `activecampaign.<event>` — whatever the source is called — carrying the contact and the rest of the ActiveCampaign payload as `properties.*` (the stage of a deal, the tag, the campaign), which is what a scheduled agent on `event.received --event activecampaign.<event>` runs on. `--pause`, `--resume`, `--remove` by --source; removing an ActiveCampaign source deletes its webhook. `--create --name <tool>` still makes an address for a tool that cannot be told what to send; its first send is a masked sample counted as nothing until `--map` confirms the rows.',\n },\n args,\n run: async ({ args: raw }) => {\n try {\n const request = sourcesRequest(raw as Record<string, unknown>, process.argv);\n const response = await apiPost<SourcesResponse>(\"/api/analytics/sources\", request);\n const full = raw.full === true;\n const sources = response.data.sources.map((source) => {\n const { sample, ...rest } = source;\n return full || sample === undefined ? source : { ...rest, sample: { receivedAt: sample.receivedAt } };\n });\n writeJsonEnvelope({\n ok: true,\n data: {\n sources,\n ...(response.data.preview === undefined ? {} : { preview: response.data.preview }),\n ...(response.data.staged === undefined ? {} : { staged: response.data.staged }),\n },\n ...(response.hints && response.hints.length > 0 ? { hints: response.hints } : {}),\n });\n } catch (err) {\n if (err instanceof ConversionArgsError) {\n handleError(new ApiError(\"VALIDATION_ERROR\", err.message));\n }\n handleError(err);\n }\n },\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,SAAS,qBAAqB;AA6B9B,IAAM,OAAO;AAAA,EACX,QAAQ;AAAA,IACN,MAAM;AAAA,IACN,aACE;AAAA,IACF,UAAU;AAAA,EACZ;AAAA,EACA,QAAQ;AAAA,IACN,MAAM;AAAA,IACN,aACE;AAAA,IACF,UAAU;AAAA,EACZ;AAAA,EACA,kBAAkB;AAAA,IAChB,MAAM;AAAA,IACN,aACE;AAAA,IACF,UAAU;AAAA,EACZ;AAAA,EACA,yBAAyB;AAAA,IACvB,MAAM;AAAA,IACN,aACE;AAAA,IACF,UAAU;AAAA,EACZ;AAAA,EACA,QAAQ;AAAA,IACN,MAAM;AAAA,IACN,aACE;AAAA,IACF,UAAU;AAAA,EACZ;AAAA,EACA,SAAS;AAAA,IACP,MAAM;AAAA,IACN,aACE;AAAA,IACF,UAAU;AAAA,EACZ;AAAA,EACA,eAAe;AAAA,IACb,MAAM;AAAA,IACN,aACE;AAAA,IACF,UAAU;AAAA,EACZ;AAAA,EACA,SAAS;AAAA,IACP,MAAM;AAAA,IACN,aACE;AAAA,IACF,UAAU;AAAA,EACZ;AAAA,EACA,WAAW;AAAA,IACT,MAAM;AAAA,IACN,aACE;AAAA,IACF,UAAU;AAAA,EACZ;AAAA,EACA,QAAQ;AAAA,IACN,MAAM;AAAA,IACN,aACE;AAAA,IACF,UAAU;AAAA,EACZ;AAA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E,QAAQ,SAAS,KAAK,OAAO;AAAA,QAC/E;AAAA,QACA,GAAI,SAAS,SAAS,SAAS,MAAM,SAAS,IAAI,EAAE,OAAO,SAAS,MAAM,IAAI,CAAC;AAAA,MACjF,CAAC;AAAA,IACH,SAAS,KAAK;AACZ,UAAI,eAAe,qBAAqB;AACtC,oBAAY,IAAI,SAAS,oBAAoB,IAAI,OAAO,CAAC;AAAA,MAC3D;AACA,kBAAY,GAAG;AAAA,IACjB;AAAA,EACF;AACF,CAAC;","names":["verb"]}
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
knowledgeTargetsHint,
|
|
6
6
|
targetsArg
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-63XEBJIX.js";
|
|
8
8
|
import {
|
|
9
9
|
targetsHints
|
|
10
10
|
} from "./chunk-4X6QBNIB.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
handleLinkedinError,
|
|
19
19
|
optionalAccountIdArg,
|
|
20
20
|
todayIso
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-WVXJYBWA.js";
|
|
22
22
|
import {
|
|
23
23
|
withWindowSpellings
|
|
24
24
|
} from "./chunk-74QGFUZL.js";
|
|
@@ -247,4 +247,4 @@ export {
|
|
|
247
247
|
topTargetCompanies,
|
|
248
248
|
topTargetsHint
|
|
249
249
|
};
|
|
250
|
-
//# sourceMappingURL=top-companies-
|
|
250
|
+
//# sourceMappingURL=top-companies-KEV55RME.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
handleLinkedinError,
|
|
3
3
|
resolveAccountIdArg
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-WVXJYBWA.js";
|
|
5
5
|
import {
|
|
6
6
|
writeAdsJson
|
|
7
7
|
} from "./chunk-65QWF5C5.js";
|
|
@@ -99,4 +99,4 @@ export {
|
|
|
99
99
|
hints,
|
|
100
100
|
urlParamsCommand
|
|
101
101
|
};
|
|
102
|
-
//# sourceMappingURL=url-params-
|
|
102
|
+
//# sourceMappingURL=url-params-CXUAYJBD.js.map
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
stageLinkedinOps,
|
|
18
18
|
stageOp,
|
|
19
19
|
stageStatusChange
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-YXYUHTQM.js";
|
|
21
21
|
import {
|
|
22
22
|
handleLinkedinError
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-WVXJYBWA.js";
|
|
24
24
|
import "./chunk-VTQG5SUE.js";
|
|
25
25
|
import "./chunk-UKENQSZ2.js";
|
|
26
26
|
import "./chunk-D5FY4FAK.js";
|
|
@@ -1552,4 +1552,4 @@ export {
|
|
|
1552
1552
|
sponsoredPostArgs,
|
|
1553
1553
|
trackingParamsPayload
|
|
1554
1554
|
};
|
|
1555
|
-
//# sourceMappingURL=write-commands-
|
|
1555
|
+
//# sourceMappingURL=write-commands-FUXBKDN7.js.map
|
package/package.json
CHANGED