@koda-sl/baker-cli 0.851.0-dev.914922aaf → 0.852.0-dev.55d5a1c2b
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 +7 -3
- package/dist/{account-Z62BVYAI.js → account-PKCDR22I.js} +3 -3
- package/dist/{account-users-ZDZ7B4BX.js → account-users-UO4OVX3W.js} +3 -3
- package/dist/{accounts-SUIMNTTA.js → accounts-3PEIYK7V.js} +2 -2
- package/dist/{ads-BYETTX2Y.js → ads-ED5L55ME.js} +2 -2
- package/dist/{analytics-WLFBQOO4.js → analytics-DH7JTWW7.js} +2 -2
- package/dist/audience-size-NHQZQ7DR.js +137 -0
- package/dist/audience-size-NHQZQ7DR.js.map +1 -0
- package/dist/{audit-EHKSN2WS.js → audit-PEOYEN4A.js} +2 -2
- package/dist/{bid-pricing-HFBQ23DD.js → bid-pricing-HVUVHS3F.js} +2 -2
- package/dist/{campaign-groups-DKB3K7L4.js → campaign-groups-YGIZAWMT.js} +8 -8
- package/dist/{campaigns-6OYAQVIE.js → campaigns-FIU3FF7Q.js} +11 -11
- package/dist/{chunk-63XEBJIX.js → chunk-6G2EVVNW.js} +2 -2
- package/dist/{chunk-YXYUHTQM.js → chunk-D2BRYEOF.js} +2 -2
- package/dist/{chunk-WVXJYBWA.js → chunk-ZPLZHTWI.js} +2 -1
- package/dist/cli.js +2 -2
- package/dist/{companies-ITNWR5Q4.js → companies-65CQH5NZ.js} +3 -3
- package/dist/{conversation-SKZMGVA5.js → conversation-EUPDVCN5.js} +2 -2
- package/dist/{conversions-IMST22UQ.js → conversions-JN2QSYKN.js} +7 -7
- package/dist/{creatives-42PW2C24.js → creatives-FLL2NBH2.js} +8 -8
- package/dist/{demographics-K5WTHZCW.js → demographics-SR66Q3Q2.js} +2 -2
- package/dist/{draft-JGEZVDAS.js → draft-XV3SNAT5.js} +3 -3
- package/dist/{experiments-C4R65GA6.js → experiments-BT3QLENT.js} +3 -3
- package/dist/{facets-GXBTQCAW.js → facets-RTH4UYOZ.js} +51 -9
- package/dist/facets-RTH4UYOZ.js.map +1 -0
- package/dist/{forecast-NOQNCFTX.js → forecast-NH7BO45V.js} +2 -2
- package/dist/{hubspot-XZYXZ24P.js → hubspot-W5LYFWTH.js} +4 -10
- package/dist/hubspot-W5LYFWTH.js.map +1 -0
- package/dist/{leads-ZRHPHJRE.js → leads-QAMBOEX7.js} +2 -2
- package/dist/{linkedin-BD63QPGK.js → linkedin-DWWA5CGK.js} +46 -32
- package/dist/linkedin-DWWA5CGK.js.map +1 -0
- package/dist/{preview-66BGLU5H.js → preview-TK4Q53KQ.js} +2 -2
- package/dist/{resolve-NVL3FTQU.js → resolve-JEEIJJOP.js} +2 -2
- package/dist/{revenue-C24BDD5A.js → revenue-J7YSHGB6.js} +3 -3
- package/dist/{top-companies-KEV55RME.js → top-companies-XAZTHC44.js} +3 -3
- package/dist/{url-params-CXUAYJBD.js → url-params-5FXKA6J2.js} +2 -2
- package/dist/{write-commands-FUXBKDN7.js → write-commands-TDME3RU2.js} +3 -3
- package/package.json +1 -1
- package/dist/audience-size-ISJSPSRW.js +0 -77
- package/dist/audience-size-ISJSPSRW.js.map +0 -1
- package/dist/facets-GXBTQCAW.js.map +0 -1
- package/dist/hubspot-XZYXZ24P.js.map +0 -1
- package/dist/linkedin-BD63QPGK.js.map +0 -1
- /package/dist/{account-Z62BVYAI.js.map → account-PKCDR22I.js.map} +0 -0
- /package/dist/{account-users-ZDZ7B4BX.js.map → account-users-UO4OVX3W.js.map} +0 -0
- /package/dist/{accounts-SUIMNTTA.js.map → accounts-3PEIYK7V.js.map} +0 -0
- /package/dist/{ads-BYETTX2Y.js.map → ads-ED5L55ME.js.map} +0 -0
- /package/dist/{analytics-WLFBQOO4.js.map → analytics-DH7JTWW7.js.map} +0 -0
- /package/dist/{audit-EHKSN2WS.js.map → audit-PEOYEN4A.js.map} +0 -0
- /package/dist/{bid-pricing-HFBQ23DD.js.map → bid-pricing-HVUVHS3F.js.map} +0 -0
- /package/dist/{campaign-groups-DKB3K7L4.js.map → campaign-groups-YGIZAWMT.js.map} +0 -0
- /package/dist/{campaigns-6OYAQVIE.js.map → campaigns-FIU3FF7Q.js.map} +0 -0
- /package/dist/{chunk-63XEBJIX.js.map → chunk-6G2EVVNW.js.map} +0 -0
- /package/dist/{chunk-YXYUHTQM.js.map → chunk-D2BRYEOF.js.map} +0 -0
- /package/dist/{chunk-WVXJYBWA.js.map → chunk-ZPLZHTWI.js.map} +0 -0
- /package/dist/{companies-ITNWR5Q4.js.map → companies-65CQH5NZ.js.map} +0 -0
- /package/dist/{conversation-SKZMGVA5.js.map → conversation-EUPDVCN5.js.map} +0 -0
- /package/dist/{conversions-IMST22UQ.js.map → conversions-JN2QSYKN.js.map} +0 -0
- /package/dist/{creatives-42PW2C24.js.map → creatives-FLL2NBH2.js.map} +0 -0
- /package/dist/{demographics-K5WTHZCW.js.map → demographics-SR66Q3Q2.js.map} +0 -0
- /package/dist/{draft-JGEZVDAS.js.map → draft-XV3SNAT5.js.map} +0 -0
- /package/dist/{experiments-C4R65GA6.js.map → experiments-BT3QLENT.js.map} +0 -0
- /package/dist/{forecast-NOQNCFTX.js.map → forecast-NH7BO45V.js.map} +0 -0
- /package/dist/{leads-ZRHPHJRE.js.map → leads-QAMBOEX7.js.map} +0 -0
- /package/dist/{preview-66BGLU5H.js.map → preview-TK4Q53KQ.js.map} +0 -0
- /package/dist/{resolve-NVL3FTQU.js.map → resolve-JEEIJJOP.js.map} +0 -0
- /package/dist/{revenue-C24BDD5A.js.map → revenue-J7YSHGB6.js.map} +0 -0
- /package/dist/{top-companies-KEV55RME.js.map → top-companies-XAZTHC44.js.map} +0 -0
- /package/dist/{url-params-CXUAYJBD.js.map → url-params-5FXKA6J2.js.map} +0 -0
- /package/dist/{write-commands-FUXBKDN7.js.map → write-commands-TDME3RU2.js.map} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/commands/hubspot/index.ts"],"sourcesContent":["import type {\n HubspotContactFieldsListResponse,\n HubspotContactLookupResponse,\n HubspotContactPropertiesListResponse,\n HubspotContactsSummaryResponse,\n HubspotFormSubmissionsResponse,\n HubspotFormsListResponse,\n HubspotFormsViewResponse,\n HubspotMeetingsListResponse,\n HubspotMeetingsViewResponse,\n HubspotPipelinesListResponse,\n HubspotWorkflowsListResponse,\n HubspotWorkflowsViewResponse,\n} from \"@baker/api\";\nimport { HUBSPOT_OPERATORS } from \"@baker/api/event-sources\";\nimport { defineCommand } from \"citty\";\nimport { ApiError, apiPost } from \"../../client.ts\";\nimport { rowsAsData, writeJson } from \"../../output.ts\";\nimport { registerSchema } from \"../../schemas.ts\";\nimport { failNotConnected } from \"./refusal.ts\";\n\nconst EMBED_TYPES = [\"legacy\", \"v4\", \"unknown\"] as const;\n\nfunction assertEmbedType(value: string | undefined): (typeof EMBED_TYPES)[number] | undefined {\n if (value === undefined) {\n return undefined;\n }\n if (!(EMBED_TYPES as readonly string[]).includes(value)) {\n throw new Error(`--embed-type must be one of: ${EMBED_TYPES.join(\"|\")}`);\n }\n return value as (typeof EMBED_TYPES)[number];\n}\n\nregisterSchema({\n command: \"hubspot.forms.list\",\n routes: [\"POST /api/hubspot/forms/list\"],\n effect: \"read_live\",\n description:\n \"Start here for HubSpot forms: every form on the connected account, with just enough to choose one — embed type (legacy vs v4), field count, its post-submit action (inline thank-you vs redirect to a URL), and whether spam prevention (captcha) is on. A form with captcha on can be embedded on a page but can never receive a submission from a Form, so check it before wiring one as a destination. Answers 'which of my forms redirect after submit?' and 'is this form legacy or v4?'. portalId is returned once on meta, not per row. Next step is usually `hubspot forms view <id> --as-node`, which gives you the blob to write straight into a Form step — you do not need request_flow_input for HubSpot.\",\n args: {\n search: { type: \"string\", description: \"Case-insensitive substring match on the form name\", required: false },\n \"redirecting-only\": {\n type: \"boolean\",\n description: \"Only forms whose post-submit action redirects away\",\n required: false,\n default: false,\n },\n \"embed-type\": { type: \"string\", description: \"Filter: legacy|v4|unknown\", required: false, enum: [...EMBED_TYPES] },\n },\n});\n\nregisterSchema({\n command: \"hubspot.forms.view\",\n description:\n \"One HubSpot form in detail: every field (name, label, type, required, hidden, options), the legal-consent mode, the post-submit action, captcha, and language. Read it before wiring a form into a Form (flow) so you know what fields exist to autofill. Add --full for the untouched HubSpot payload, or --as-node to get the object to write into the step's form.external instead.\",\n args: {\n formId: { type: \"positional\", description: \"HubSpot form id (from `baker hubspot forms list`)\", required: true },\n full: { type: \"boolean\", description: \"Include the raw HubSpot payload\", required: false, default: false },\n \"as-node\": {\n type: \"boolean\",\n description:\n \"Emit the resource blob to write into a flow node's form.external, instead of the readable view. Write it into the node yourself; no need for request_flow_input when the account is connected and the form is unambiguous.\",\n required: false,\n default: false,\n },\n },\n});\n\nregisterSchema({\n command: \"hubspot.forms.submissions\",\n routes: [\"POST /api/hubspot/forms/submissions\"],\n effect: \"read_live\",\n description:\n \"How many leads a form actually received over a window, and on which days — the difference between 'this form is live' and 'this form is working'. Start here when asked whether a form or a campaign is producing leads. Returns counts and dates only; the leads' own answers need --full and are personal data, so do not put them in a report. Pair with `hubspot pipelines list` to see whether those leads were then worked.\",\n args: {\n formId: { type: \"positional\", description: \"HubSpot form id (from `baker hubspot forms list`)\", required: true },\n days: { type: \"string\", description: \"Window in days, 1-365 (default 30)\", required: false },\n full: {\n type: \"boolean\",\n description: \"Include each submission's field values — personal data, request only when actually needed\",\n required: false,\n default: false,\n },\n },\n});\n\nregisterSchema({\n command: \"hubspot.contacts.summary\",\n routes: [\"POST /api/hubspot/contacts/summary\"],\n effect: \"read_live\",\n description:\n \"Whether the leads that arrived recently are actually being worked, as counts: how many contacts were created in the window, how many have someone assigned, and how they split across lifecycle stages. This is the 'have these leads been treated?' answer. Returns no names or emails — use `hubspot contacts lookup` for one specific person.\",\n args: {\n days: { type: \"string\", description: \"Window in days, 1-365 (default 30)\", required: false },\n },\n});\n\nregisterSchema({\n command: \"hubspot.contacts.properties\",\n description:\n \"Every contact property a HubSpot event can watch, with its `kind` (select, string, number, date, boolean) — which decides the operators the trigger takes — and, for a select, the `options` its values come from. Start here to make a HubSpot event: pick the property and condition that mean the outcome (a deal won is usually `lifecyclestage` is `customer`, a custom property the client's team sets, or a number crossing a threshold), then `baker analytics sources --create-hubspot --property <name> [--operator <op>] --value <value>…` reads it every five minutes. Names are HubSpot's internal ones; use them as printed.\",\n args: {},\n});\n\nregisterSchema({\n command: \"hubspot.contacts.fields\",\n description:\n \"Every contact property on the connected HubSpot account — name, label, group and HubSpot's type — which is what a HubSpot event's rows can read: `baker analytics sources --create-hubspot … --field email={{work_email}} --field value={{deal_value}} --field currency=EUR`, or `--map` on an existing one. Names are HubSpot's internal ones; use them as printed, and `{{id}}` for the contact's own id. No personal data.\",\n args: {},\n});\n\nregisterSchema({\n command: \"hubspot.contacts.lookup\",\n routes: [\"POST /api/hubspot/contacts/lookup\"],\n effect: \"read_live\",\n description:\n \"One contact by email: lifecycle stage, whether anyone is assigned, its account (company) and deals with their stage — settles whether a lead was picked up. `--properties utm_campaign,utm_source` also reads those into `contact.properties`, to check a form's tracking reached it: each value, or null when empty; a name the account does not define is left out, never null. `found: false` means the lead never reached the CRM at all — that is a finding, not an error. `dealsReadable: false` / `companyReadable: false` mean deals or account details were not readable on this connection, so an empty deals list or a null company is unknown rather than absent.\",\n args: {\n email: { type: \"positional\", description: \"The contact's email address\", required: true },\n properties: {\n type: \"string\",\n description:\n \"Comma-separated contact properties to read, by HubSpot's internal name (up to 25; `baker hubspot contacts fields` lists them): --properties utm_campaign,utm_source\",\n required: false,\n },\n },\n});\n\nregisterSchema({\n command: \"hubspot.workflows.list\",\n description:\n \"Every workflow on the connected account, with whether it is switched on. Read it when auditing what happens to a lead after it is captured — a form wired to a workflow that is off looks connected and does nothing.\",\n args: {\n search: { type: \"string\", description: \"Case-insensitive substring match on the workflow name\", required: false },\n \"enabled-only\": { type: \"boolean\", description: \"Only workflows that are on\", required: false, default: false },\n },\n});\n\nregisterSchema({\n command: \"hubspot.workflows.view\",\n description:\n \"One workflow's actual configuration: what enrols a record, whether it re-enrols, and every step with the property it writes. Read it before saying a workflow is correct — `workflows list` only tells you it exists and whether it is on. Branches come back in HubSpot's order, and on a LIST_BRANCH step that is evaluation order (`order: 1` wins over `order: 2`) — which is where this kind of setup silently breaks: a broad branch placed above a narrow one swallows the records the narrow one was written for, and nothing reports it. A STATIC_BRANCH matches on a value instead, so its order carries no precedence. Steps are NOT in execution order — follow `nextActionId` from step to step. Add --full for the branch filter criteria (which property is compared to which value).\",\n args: {\n workflowId: {\n type: \"positional\",\n description: \"Workflow id (from `baker hubspot workflows list`)\",\n required: true,\n },\n full: {\n type: \"boolean\",\n description: \"Include the raw HubSpot payload — the only place the branch filter criteria can be read\",\n required: false,\n default: false,\n },\n },\n});\n\nregisterSchema({\n command: \"hubspot.pipelines.list\",\n description:\n \"The account's deal pipelines and their stages, in the order they run, each stage with `isClosed` / `isWon` (HubSpot's closed-won is closed with probability 1). Use it to answer where a lead lands once captured and whether it moved — the 'have these leads been worked?' half of a form audit — and to pick the pipeline ids for `hubspot deals list --pipeline`.\",\n args: {},\n});\n\nregisterSchema({\n command: \"hubspot.meetings.list\",\n description:\n \"Every HubSpot meeting link (calendar) on the connected account, with just enough to choose one: name, slug, link type (personal / group / round-robin), whether booking redirects somewhere, and how many booking fields it asks for (null = unknown, read it with `meetings view`). Next step is usually `hubspot meetings view <slug> --as-node`, which gives you the blob to write straight into a hubspotMeeting step.\",\n args: {\n search: {\n type: \"string\",\n description:\n \"Case-insensitive match on the meeting name or slug, or a pasted booking link (meetings.hubspot.com/<slug>)\",\n required: false,\n },\n \"redirecting-only\": {\n type: \"boolean\",\n description: \"Only meeting links that redirect after booking\",\n required: false,\n default: false,\n },\n },\n});\n\nregisterSchema({\n command: \"hubspot.meetings.view\",\n description:\n \"One HubSpot meeting link in detail: its booking-form fields (name, label, type, required, custom), link, and redirect URL. This is the source of truth for a calendar's fields — the list command cannot see them reliably. Add --as-node to get the object to write into the step's form.external instead.\",\n args: {\n slug: { type: \"positional\", description: \"Meeting slug (from `baker hubspot meetings list`)\", required: true },\n \"as-node\": {\n type: \"boolean\",\n description: \"Emit the resource blob to write into a flow node's form.external, instead of the readable view.\",\n required: false,\n default: false,\n },\n },\n});\n\nconst formsListCommand = defineCommand({\n meta: {\n name: \"list\",\n description:\n \"List HubSpot forms with embed type and post-submit action. Example: baker hubspot forms list --redirecting-only\",\n },\n args: {\n search: { type: \"string\", description: \"Match on form name\", required: false },\n \"redirecting-only\": { type: \"boolean\", description: \"Only forms that redirect on submit\", required: false },\n \"embed-type\": { type: \"string\", description: \"Filter: legacy|v4|unknown\", required: false },\n },\n run: async ({ args }) => {\n try {\n const body: Record<string, unknown> = {};\n if (args.search) {\n body.search = args.search;\n }\n if (args[\"redirecting-only\"]) {\n body.redirectingOnly = true;\n }\n const embedType = assertEmbedType(args[\"embed-type\"]);\n if (embedType) {\n body.embedType = embedType;\n }\n\n const response = await apiPost<HubspotFormsListResponse>(\"/api/hubspot/forms/list\", body, { read: true });\n const { forms } = response.data;\n const redirecting = forms.filter((form) => form.postSubmitAction?.type === \"redirect_url\");\n const hints: string[] = [];\n if (forms.length === 0) {\n hints.push(\"No forms matched. Drop --search/--embed-type, or check the connected HubSpot account.\");\n } else {\n hints.push(\n \"To put one on a page: `baker hubspot forms view <id> --as-node` returns the object to write into the step's form.external. No request_flow_input needed for HubSpot.\",\n );\n }\n if (redirecting.length > 0) {\n hints.push(\n `${redirecting.length} form(s) redirect after submit. That is fine mid-Form: the renderer suppresses the redirect whenever a step follows the form, and honors it when the form is the last step.`,\n );\n }\n const blocked = forms.filter((form) => form.captchaEnabled);\n if (blocked.length > 0) {\n // Named rather than counted, because the next thing the agent does with\n // this is tell a person which of their forms is the problem — but\n // bounded, since every row already carries `captchaEnabled` and an\n // account with forty blocked forms would otherwise print forty names.\n const shown = blocked.slice(0, 3).map((form) => form.name);\n const rest = blocked.length - shown.length;\n hints.push(\n `${blocked.length} form(s) have spam prevention (captcha) on: ${shown.join(\", \")}${rest > 0 ? `, and ${rest} more` : \"\"}. HubSpot refuses every submission sent to those, so they can be embedded on a page but never wired as a Form's destination. Only the user can switch it off, on the form in HubSpot.`,\n );\n }\n\n writeJson({ ok: true, ...rowsAsData(response.data, \"forms\"), ...(hints.length > 0 ? { hints } : {}) });\n } catch (err) {\n failNotConnected(err);\n }\n },\n});\n\n/**\n * The one HubSpot setting that decides whether a form can receive a lead at\n * all. HubSpot refuses every API submission to a form with spam prevention on\n * (`FORM_HAS_RECAPTCHA_ENABLED`) and there is no token to attach, so the answer\n * is never \"send it differently\" — it is a switch only the client can flip.\n */\nconst CAPTCHA_VIEW_HINT =\n \"This form has spam prevention (captcha) on. HubSpot refuses every submission sent to it, so it cannot be a Form's destination — embedding it on a page still works, because the visitor solves the captcha in the browser. Only the user can switch it off, on the form in HubSpot; do not wire a delivery to it, and tell them what has to change.\";\n\nconst CAPTCHA_NODE_HINT =\n \"This form has spam prevention (captcha) on. That is fine for embedding it on a page — the visitor solves it in the browser — but it can never be a Form's delivery destination, so do not also wire a hubspotForm side effect to this form.\";\n\n/**\n * What to say about one form beyond its fields.\n *\n * Pure and exported so the wording is testable: these are the three facts about\n * a HubSpot form that decide whether wiring it works, and each of them is\n * invisible in the form's own field list.\n */\nexport function formViewHints(form: {\n postSubmitAction: { type: string; value: string } | null;\n captchaEnabled: boolean;\n embedType: string;\n}): string[] {\n const hints: string[] = [];\n if (form.postSubmitAction?.type === \"redirect_url\") {\n hints.push(\n `This form redirects to ${form.postSubmitAction.value} on submit. Placed anywhere but the last step of a Form, that redirect is suppressed so the next step can render.`,\n );\n }\n if (form.captchaEnabled) {\n hints.push(CAPTCHA_VIEW_HINT);\n }\n if (form.embedType === \"unknown\") {\n hints.push(\"Embed type could not be determined from HubSpot's response; the renderer treats it as legacy.\");\n }\n return hints;\n}\n\n/**\n * The same for the `--as-node` blob, where the reader is about to *embed* the\n * form. Captcha reads the opposite way here and has to say so: an embedded form\n * with captcha works, because the visitor solves it in the browser. Silence\n * would leave an agent that just read the refusal elsewhere to conclude the\n * form is unusable and quietly pick another.\n */\nexport function formNodeHints(\n external:\n | {\n captchaEnabled: boolean;\n embedType?: string;\n region?: string;\n configuration?: { postSubmitAction: { type: string } };\n }\n | undefined,\n): string[] {\n return [\n \"Write this object into the node's `form.external` in the flow's _data.json, keeping the rest of the node as-is. No request_flow_input needed — the account is already connected.\",\n ...(external?.captchaEnabled ? [CAPTCHA_NODE_HINT] : []),\n ...(external?.configuration?.postSubmitAction.type === \"redirect_url\"\n ? [\n \"This form redirects on submit. Safe unless it is the last step: the renderer suppresses the redirect whenever a step follows it.\",\n ]\n : []),\n ...(external?.embedType === \"v4\" && !external.region\n ? [\n \"WARNING: this is a v4 form and the connected account has no region recorded, so the step will load HubSpot's na1 script host. That is correct for US portals and breaks the form on eu1/ap1 ones. If it renders blank, have the user reconnect HubSpot from Brain -> Integrations -> Tools, then re-run this command.\",\n ]\n : []),\n ];\n}\n\nconst formsViewCommand = defineCommand({\n meta: {\n name: \"view\",\n description: \"Show one HubSpot form's fields and configuration. Example: baker hubspot forms view 1a2b3c\",\n },\n args: {\n formId: { type: \"positional\", description: \"HubSpot form id\", required: true },\n full: { type: \"boolean\", description: \"Include the raw HubSpot payload\", required: false },\n \"as-node\": { type: \"boolean\", description: \"Emit the node-ready form.external blob\", required: false },\n },\n run: async ({ args }) => {\n try {\n const response = await apiPost<HubspotFormsViewResponse>(\n \"/api/hubspot/forms/view\",\n {\n formId: args.formId,\n ...(args.full ? { full: true } : {}),\n ...(args[\"as-node\"] ? { asNode: true } : {}),\n },\n { read: true },\n );\n\n if (args[\"as-node\"]) {\n writeJson({ ...response, hints: formNodeHints(response.data.external) });\n return;\n }\n\n const form = response.data.form;\n if (!form) {\n throw new Error(\"Response did not include the form view\");\n }\n const hints = formViewHints(form);\n\n writeJson({ ...response, meta: { count: form.fields.length }, ...(hints.length > 0 ? { hints } : {}) });\n } catch (err) {\n failNotConnected(err);\n }\n },\n});\n\nconst meetingsListCommand = defineCommand({\n meta: {\n name: \"list\",\n description: \"List HubSpot meeting links (calendars). Example: baker hubspot meetings list\",\n },\n args: {\n search: { type: \"string\", description: \"Match on meeting name, slug or a pasted booking link\", required: false },\n \"redirecting-only\": { type: \"boolean\", description: \"Only links that redirect after booking\", required: false },\n },\n run: async ({ args }) => {\n try {\n const body: Record<string, unknown> = {};\n if (args.search) {\n body.search = args.search;\n }\n if (args[\"redirecting-only\"]) {\n body.redirectingOnly = true;\n }\n\n const response = await apiPost<HubspotMeetingsListResponse>(\"/api/hubspot/meetings/list\", body, { read: true });\n const { meetings } = response.data;\n const hints: string[] = [];\n if (meetings.length === 0) {\n hints.push(\n args.search\n ? `No meeting link's name, slug or booking link matched \"${args.search}\". Drop --search to see every calendar on the connected account.`\n : \"No meeting links matched. Check the connected HubSpot account.\",\n );\n } else {\n hints.push(\n \"To put one on a page: `baker hubspot meetings view <slug> --as-node` returns the object to write into the step's form.external.\",\n );\n }\n const unknown = meetings.filter((meeting) => !meeting.redirectKnown);\n if (unknown.length > 0) {\n hints.push(\n `HubSpot did not report booking settings for ${unknown.length} of these (${unknown\n .map((meeting) => meeting.slug)\n .join(\n \", \",\n )}), so their redirect and field count are UNKNOWN, not absent. Run \\`baker hubspot meetings view <slug>\\` before concluding one does not redirect.`,\n );\n }\n\n writeJson({ ok: true, ...rowsAsData(response.data, \"meetings\"), ...(hints.length > 0 ? { hints } : {}) });\n } catch (err) {\n failNotConnected(err);\n }\n },\n});\n\nconst meetingsViewCommand = defineCommand({\n meta: {\n name: \"view\",\n description: \"Show one HubSpot meeting link's booking fields. Example: baker hubspot meetings view discovery-call\",\n },\n args: {\n slug: { type: \"positional\", description: \"Meeting slug\", required: true },\n \"as-node\": { type: \"boolean\", description: \"Emit the node-ready form.external blob\", required: false },\n },\n run: async ({ args }) => {\n try {\n const response = await apiPost<HubspotMeetingsViewResponse>(\n \"/api/hubspot/meetings/view\",\n {\n slug: args.slug,\n ...(args[\"as-node\"] ? { asNode: true } : {}),\n },\n { read: true },\n );\n\n if (args[\"as-node\"]) {\n const { external } = response.data;\n writeJson({\n ...response,\n hints: [\n \"Write this object into the node's `form.external` in the flow's _data.json, keeping the rest of the node as-is. No request_flow_input needed — the account is already connected.\",\n ...(external?.customParams.redirectUrl\n ? [\n `This calendar redirects to ${external.customParams.redirectUrl} after booking, and that redirect is NOT suppressed — any step placed after it is unreachable. Keep it as the last step, or ask the user to clear the redirect in HubSpot.`,\n ]\n : []),\n ],\n });\n return;\n }\n\n const meeting = response.data.meeting;\n if (!meeting) {\n throw new Error(\"Response did not include the meeting view\");\n }\n const hints: string[] = [];\n if (meeting.redirectUrl) {\n hints.push(\n `This calendar redirects to ${meeting.redirectUrl} after booking. A step placed after it will not be reached — keep it as the last step, or clear the redirect in HubSpot.`,\n );\n }\n\n writeJson({ ...response, meta: { count: meeting.fields.length }, ...(hints.length > 0 ? { hints } : {}) });\n } catch (err) {\n failNotConnected(err);\n }\n },\n});\n\nconst formsSubmissionsCommand = defineCommand({\n meta: {\n name: \"submissions\",\n description:\n \"How many leads a form received, and when. Example: baker hubspot forms submissions <formId> --days 30\",\n },\n args: {\n formId: { type: \"positional\", description: \"HubSpot form id\", required: true },\n days: { type: \"string\", description: \"Window in days (default 30)\", required: false },\n full: { type: \"boolean\", description: \"Include each lead's answers\", required: false },\n },\n run: async ({ args }) => {\n try {\n const days = args.days === undefined ? 30 : Number(args.days);\n if (!Number.isInteger(days) || days < 1 || days > 365) {\n throw new ApiError(\"VALIDATION_ERROR\", \"--days must be a whole number between 1 and 365.\");\n }\n\n const response = await apiPost<HubspotFormSubmissionsResponse>(\n \"/api/hubspot/forms/submissions\",\n {\n formId: args.formId,\n days,\n ...(args.full ? { full: true } : {}),\n },\n { read: true },\n );\n const { inWindow, total, truncated, lastSubmittedAt } = response.data;\n\n const hints: string[] = [];\n if (inWindow === 0) {\n hints.push(\n total === 0\n ? \"This form has received nothing at all — check it is the form actually embedded on the page before concluding the campaign is at fault.\"\n : `No leads in the last ${days} days, though the form has ${total} older submission(s). It worked once and has gone quiet.`,\n );\n }\n if (truncated) {\n hints.push(\n \"Stopped before reaching the end of the window, so `inWindow` is a floor, not a count. Say so rather than reporting it as exact.\",\n );\n }\n if (!args.full && inWindow > 0) {\n hints.push(\n \"Counts only — the leads' own answers are not included. Add --full if you genuinely need the field values; it returns personal data, so do not paste it into a report or a chat message.\",\n );\n }\n if (lastSubmittedAt !== null) {\n hints.push(\n \"To find out whether these leads were worked, cross-check the deal pipeline: `baker hubspot pipelines list`.\",\n );\n }\n\n writeJson({ ...response, meta: { count: inWindow }, ...(hints.length > 0 ? { hints } : {}) });\n } catch (err) {\n failNotConnected(err);\n }\n },\n});\n\nconst workflowsListCommand = defineCommand({\n meta: {\n name: \"list\",\n description: \"List HubSpot workflows. Example: baker hubspot workflows list --enabled-only\",\n },\n args: {\n search: { type: \"string\", description: \"Match on workflow name\", required: false },\n \"enabled-only\": { type: \"boolean\", description: \"Only workflows that are on\", required: false },\n },\n run: async ({ args }) => {\n try {\n const body: Record<string, unknown> = {};\n if (args.search) {\n body.search = args.search;\n }\n if (args[\"enabled-only\"]) {\n body.enabledOnly = true;\n }\n\n const response = await apiPost<HubspotWorkflowsListResponse>(\"/api/hubspot/workflows/list\", body, { read: true });\n const { workflows } = response.data;\n const off = workflows.filter((workflow) => !workflow.enabled);\n const hints: string[] = [];\n if (workflows.length === 0) {\n hints.push(\"No workflows matched. Drop --search/--enabled-only, or the account genuinely has none.\");\n }\n if (off.length > 0) {\n hints.push(\n `${off.length} of these are switched off. A form wired to a workflow that is off looks connected and does nothing — worth flagging to the user.`,\n );\n }\n\n writeJson({ ok: true, ...rowsAsData(response.data, \"workflows\"), ...(hints.length > 0 ? { hints } : {}) });\n } catch (err) {\n failNotConnected(err);\n }\n },\n});\n\n/**\n * What the agent should take from one workflow read.\n *\n * All three of these are silent failures in HubSpot — the workflow saves, looks\n * right in the editor, and runs. Nothing surfaces them but reading the order and\n * the flags, so they are stated rather than left for the agent to notice.\n */\nexport function workflowViewHints(workflow: HubspotWorkflowsViewResponse[\"data\"][\"workflow\"]): string[] {\n const hints: string[] = [];\n if (!workflow.enabled) {\n hints.push(\n \"This workflow is switched off, so nothing below it is running now — it may still have run while it was on. Say so before reporting on what it does.\",\n );\n }\n\n // Only a LIST_BRANCH is evaluated top down. A STATIC_BRANCH splits on a value\n // and matches by equality, so \"a broad branch above a narrow one\" cannot\n // happen there — and both arrive here as `branches`, so the kind has to be\n // read off the step rather than off the list.\n const ordered = workflow.steps.filter((step) => step.type === \"LIST_BRANCH\" && (step.branches?.length ?? 0) > 1);\n if (ordered.length > 0) {\n hints.push(\n \"Branches are listed in evaluation order and the first match wins. Check that no broad branch sits above a narrower one — if it does, the narrow branch never runs and nothing in HubSpot reports it.\",\n );\n }\n if (workflow.raw === undefined && ordered.length > 0) {\n hints.push(\n \"This view names the branches but not what they compare. Re-run with --full to read the filter criteria before judging whether a branch matches what it was meant to match.\",\n );\n }\n\n if (workflow.enrollment.reEnrollment === false) {\n hints.push(\n \"Re-enrolment is off: a record that meets the criteria a second time will not run through this again. That is a real choice, not necessarily a fault — but confirm it is the intended one.\",\n );\n } else if (workflow.enrollment.reEnrollment === null) {\n hints.push(\n \"Whether this re-enrols is not reported for this kind of enrolment, so do not state it either way — read it in HubSpot if it matters.\",\n );\n }\n return hints;\n}\n\nconst workflowsViewCommand = defineCommand({\n meta: {\n name: \"view\",\n description:\n \"Read one workflow's real configuration — enrolment, branches in order, and what each step writes. Example: baker hubspot workflows view 121183594 --full\",\n },\n args: {\n workflowId: {\n type: \"positional\",\n description: \"Workflow id (from `baker hubspot workflows list`)\",\n required: true,\n },\n full: { type: \"boolean\", description: \"Include the raw HubSpot payload with the filter criteria\", required: false },\n },\n run: async ({ args }) => {\n try {\n const response = await apiPost<HubspotWorkflowsViewResponse>(\n \"/api/hubspot/workflows/view\",\n {\n workflowId: args.workflowId,\n ...(args.full ? { full: true } : {}),\n },\n { read: true },\n );\n const { workflow } = response.data;\n const hints = workflowViewHints(workflow);\n\n writeJson({ ...response, meta: { count: workflow.steps.length }, ...(hints.length > 0 ? { hints } : {}) });\n } catch (err) {\n failNotConnected(err);\n }\n },\n});\n\nconst pipelinesListCommand = defineCommand({\n meta: {\n name: \"list\",\n description: \"List HubSpot deal pipelines and their stages. Example: baker hubspot pipelines list\",\n },\n args: {},\n run: async () => {\n try {\n const response = await apiPost<HubspotPipelinesListResponse>(\"/api/hubspot/pipelines/list\", {}, { read: true });\n const { pipelines } = response.data;\n const hints: string[] =\n pipelines.length === 0\n ? [\"This account has no deal pipelines, so there is nowhere for a lead to be worked.\"]\n : [\"Stages are listed in the order they run in HubSpot, so the first stage is where a new lead lands.\"];\n\n writeJson({ ok: true, ...rowsAsData(response.data, \"pipelines\"), hints });\n } catch (err) {\n failNotConnected(err);\n }\n },\n});\n\ntype HubspotObjectWord = \"contact\" | \"deal\" | \"lead\";\n\nconst OBJECT_WORDS: Record<HubspotObjectWord, { plural: string; command: string; rows: string }> = {\n contact: {\n plural: \"contacts\",\n command: \"baker hubspot contacts\",\n rows: '`--field email={{work_email}}`, `--field currency=EUR`, `--field first_name=\"{{firstname}} {{lastname}}\"`; `{{id}}` is the contact\\'s own id',\n },\n deal: {\n plural: \"deals\",\n command: \"baker hubspot deals\",\n rows: \"`--field value={{amount}}`, `--field currency={{deal_currency_code}}`, `--field email={{contact.email}}` — a deal's own properties bare, its contact's as `contact.<name>`; `{{id}}` is the deal's own id, `{{contact.id}}` the contact's\",\n },\n lead: {\n plural: \"leads\",\n command: \"baker hubspot leads\",\n rows: \"`--field email={{contact.email}}`, `--field properties.stage={{hs_pipeline_stage}}` — a lead's own properties bare, its contact's as `contact.<name>`; `{{id}}` is the lead's own id, `{{contact.id}}` the contact's. A lead carries no amount of its own, so `value` is empty unless you point it at a property\",\n },\n};\n\n/** `properties`, for contacts and for deals: what a HubSpot event can watch. */\nfunction propertiesCommand(object: HubspotObjectWord) {\n const words = OBJECT_WORDS[object];\n return defineCommand({\n meta: {\n name: \"properties\",\n description: `List every ${object} property a HubSpot event can watch, with its kind, the operators that kind takes, and a select's values. Example: ${words.command} properties`,\n },\n args: {},\n run: async () => {\n try {\n const response = await apiPost<HubspotContactPropertiesListResponse>(\n \"/api/hubspot/contacts/properties\",\n {\n object,\n },\n { read: true },\n );\n const { properties } = response.data;\n const operators = Object.entries(HUBSPOT_OPERATORS)\n .map(([kind, list]) => `${kind}: ${list.map((operator) => operator.value).join(\", \")}`)\n .join(\" · \");\n const objectFlag = object === \"contact\" ? \"\" : ` --object ${object}`;\n const hints =\n properties.length === 0\n ? [`This account has no visible ${object} property, so there is nothing an event could watch.`]\n : [\n `Pick the property and the condition that mean the outcome, then \\`baker analytics sources --create-hubspot${objectFlag} --property <name> [--operator <op>] --value <value>…\\` (\\`--value\\` repeats for a list). Operators by kind — ${operators}. Counting starts from creation: a ${object} already satisfying it is not counted until it leaves and comes back.`,\n ];\n writeJson({ ok: true, ...rowsAsData(response.data, \"properties\"), hints });\n } catch (err) {\n failNotConnected(err);\n }\n },\n });\n}\n\nconst contactsPropertiesCommand = propertiesCommand(\"contact\");\n\nconst contactsSummaryCommand = defineCommand({\n meta: {\n name: \"summary\",\n description: \"Whether recent leads are being worked, as counts. Example: baker hubspot contacts summary --days 30\",\n },\n args: {\n days: { type: \"string\", description: \"Window in days (default 30)\", required: false },\n },\n run: async ({ args }) => {\n try {\n const days = args.days === undefined ? 30 : Number(args.days);\n if (!Number.isInteger(days) || days < 1 || days > 365) {\n throw new ApiError(\"VALIDATION_ERROR\", \"--days must be a whole number between 1 and 365.\");\n }\n\n const response = await apiPost<HubspotContactsSummaryResponse>(\n \"/api/hubspot/contacts/summary\",\n { days },\n { read: true },\n );\n const { total, withOwner, withoutOwner, byStage, truncated } = response.data;\n\n const hints: string[] = [];\n if (total === 0) {\n hints.push(`No contacts were created in the last ${days} days — nothing reached the CRM in that window.`);\n } else if (withOwner === 0) {\n hints.push(\n `None of these ${total} contacts has anyone assigned. That is the strongest available signal that the leads are arriving and nobody is picking them up — worth raising with the user.`,\n );\n } else if (withoutOwner > withOwner) {\n hints.push(`${withoutOwner} of ${total} contacts have nobody assigned — more unworked than worked.`);\n }\n const unset = byStage.find((entry) => entry.stage === \"unset\");\n if (unset && unset.count > 0) {\n hints.push(\n `${unset.count} contact(s) have no lifecycle stage set at all, so they were created and never staged.`,\n );\n }\n if (truncated) {\n hints.push(\"Stopped before reading every contact in the window, so these counts are floors, not totals.\");\n }\n\n writeJson({ ...response, meta: { count: total }, ...(hints.length > 0 ? { hints } : {}) });\n } catch (err) {\n failNotConnected(err);\n }\n },\n});\n\n/**\n * What the agent should take from one contact lookup.\n *\n * An empty `deals` or a null `company` means two different things depending on\n * whether the connection could read them at all, and the wrong reading — \"this\n * lead was never worked\" — is the one conclusion the command exists to settle.\n * So each is paired with its readability flag rather than reported bare.\n */\nexport function contactLookupHints(\n data: HubspotContactLookupResponse[\"data\"],\n askedProperties: readonly string[] = [],\n): string[] {\n const { found, contact, deals, dealsReadable, company, companyReadable } = data;\n if (!found) {\n return [\n \"No contact with that email. The lead never reached the CRM — check the form's submissions before assuming the CRM lost it.\",\n ];\n }\n\n const hints: string[] = [];\n if (contact?.ownerId === null) {\n hints.push(\"Nobody is assigned to this contact.\");\n }\n const undefinedProperties = askedProperties.filter((name) => !Object.hasOwn(contact?.properties ?? {}, name));\n if (undefinedProperties.length > 0) {\n hints.push(\n `No contact property named ${undefinedProperties.join(\", \")} on this account, so there is nothing to read — this is not an empty value. \\`baker hubspot contacts fields\\` lists the names this account uses.`,\n );\n }\n if (!dealsReadable) {\n hints.push(\n \"Deals were not read: this HubSpot connection does not cover them. Do not report the lead as having no deal — you cannot tell. The user can enable it by reconnecting HubSpot.\",\n );\n } else if (deals.length === 0) {\n hints.push(\"No deal is associated, so this contact was never taken into the pipeline.\");\n }\n if (!companyReadable) {\n hints.push(\n \"Account details were not read: this HubSpot connection does not cover them. Do not report the lead as having no account — you cannot tell. The user can enable it by reconnecting HubSpot.\",\n );\n } else if (company === null) {\n hints.push(\n \"No account is associated either. Most B2B setups create one automatically when a contact arrives, so this usually means the lead was never processed at all — not that the account is missing.\",\n );\n }\n return hints;\n}\n\nfunction commaList(raw: string): string[] {\n return [\n ...new Set(\n raw\n .split(\",\")\n .map((item) => item.trim())\n .filter(Boolean),\n ),\n ];\n}\n\nconst contactsLookupCommand = defineCommand({\n meta: {\n name: \"lookup\",\n description:\n \"Find one contact by email and see whether it was worked; --properties reads named contact properties too. Example: baker hubspot contacts lookup a@b.com --properties utm_campaign,utm_source\",\n },\n args: {\n email: { type: \"positional\", description: \"The contact's email address\", required: true },\n properties: {\n type: \"string\",\n description:\n \"Comma-separated contact properties to read, by HubSpot's internal name: --properties utm_campaign,utm_source\",\n required: false,\n },\n },\n run: async ({ args }) => {\n try {\n const properties = typeof args.properties === \"string\" ? commaList(args.properties) : [];\n const response = await apiPost<HubspotContactLookupResponse>(\n \"/api/hubspot/contacts/lookup\",\n {\n email: args.email,\n ...(properties.length > 0 ? { properties } : {}),\n },\n { read: true },\n );\n const hints = contactLookupHints(response.data, properties);\n\n writeJson({\n ...response,\n meta: { count: response.data.found ? 1 : 0 },\n ...(hints.length > 0 ? { hints } : {}),\n });\n } catch (err) {\n failNotConnected(err);\n }\n },\n});\n\n/** `fields`, for contacts and for deals: what a HubSpot event's rows can read. */\nfunction fieldsCommand(object: HubspotObjectWord) {\n const words = OBJECT_WORDS[object];\n return defineCommand({\n meta: {\n name: \"fields\",\n description: `List every property a HubSpot event on a ${object} can read into its rows, with HubSpot's type${object === \"contact\" ? \"\" : ` — the ${object}'s own, and its contact's as contact.<name>`}. Example: ${words.command} fields`,\n },\n args: {},\n run: async () => {\n try {\n const response = await apiPost<HubspotContactFieldsListResponse>(\n \"/api/hubspot/contacts/fields\",\n { object },\n { read: true },\n );\n writeJson({\n ok: true,\n ...rowsAsData(response.data, \"fields\"),\n hints: [\n `A row of a HubSpot event is a template over these names: ${words.rows}. \\`baker analytics sources --preview${object === \"contact\" ? \"\" : ` --object ${object}`} --property <p> --value <v> --field <row>…\\` reads one real ${object} to check the rows against.`,\n ],\n });\n } catch (err) {\n failNotConnected(err);\n }\n },\n });\n}\n\nconst contactsFieldsCommand = fieldsCommand(\"contact\");\n\nconst dealsCommand = defineCommand({\n meta: {\n name: \"deals\",\n description:\n \"Deals on the connected HubSpot account: the deals themselves with amount and stage (`list`), one deal found by its name (`lookup`), and what a HubSpot event on a deal can watch (`properties`) and read (`fields`).\",\n },\n subCommands: {\n list: () => import(\"./crm.ts\").then((m) => m.dealsListCommand),\n lookup: () => import(\"./crm.ts\").then((m) => m.dealsLookupCommand),\n properties: propertiesCommand(\"deal\"),\n fields: fieldsCommand(\"deal\"),\n },\n});\n\nconst leadsCommand = defineCommand({\n meta: {\n name: \"leads\",\n description:\n \"Leads on the connected HubSpot account: what a HubSpot event on a lead can watch (`properties`) and read (`fields`). Start here for qualification and disqualification — a lead's stage is where HubSpot records both, and `hs_pipeline_stage` lists the account's own stages with their labels. Needs Sales Hub Professional or Enterprise; on any other plan the account has no leads to read.\",\n },\n subCommands: { properties: propertiesCommand(\"lead\"), fields: fieldsCommand(\"lead\") },\n});\n\nconst contactsCommand = defineCommand({\n meta: { name: \"contacts\", description: \"Contacts on the connected HubSpot account.\" },\n subCommands: {\n summary: contactsSummaryCommand,\n lookup: contactsLookupCommand,\n properties: contactsPropertiesCommand,\n fields: contactsFieldsCommand,\n },\n});\n\nconst companiesCommand = defineCommand({\n meta: { name: \"companies\", description: \"Companies (accounts) in the connected HubSpot CRM.\" },\n subCommands: {\n search: () => import(\"./crm.ts\").then((m) => m.companiesSearchCommand),\n contacts: () => import(\"./crm.ts\").then((m) => m.companiesContactsCommand),\n },\n});\n\nconst formsCommand = defineCommand({\n meta: { name: \"forms\", description: \"HubSpot forms on the connected account.\" },\n subCommands: { list: formsListCommand, view: formsViewCommand, submissions: formsSubmissionsCommand },\n});\n\nconst workflowsCommand = defineCommand({\n meta: { name: \"workflows\", description: \"HubSpot workflows on the connected account.\" },\n subCommands: { list: workflowsListCommand, view: workflowsViewCommand },\n});\n\nconst pipelinesCommand = defineCommand({\n meta: { name: \"pipelines\", description: \"HubSpot deal pipelines on the connected account.\" },\n subCommands: { list: pipelinesListCommand },\n});\n\nconst meetingsCommand = defineCommand({\n meta: { name: \"meetings\", description: \"HubSpot meeting links (calendars) on the connected account.\" },\n subCommands: { list: meetingsListCommand, view: meetingsViewCommand },\n});\n\nexport const hubspotCommand = defineCommand({\n meta: {\n name: \"hubspot\",\n description: `Read the connected HubSpot account — forms, the leads they received, workflows, deal pipelines, CRM\ncompanies and deals, and meeting links (calendars) — and get the blob to wire a form into a Form step yourself.\n\nExamples:\n baker hubspot forms list # every form: embed type + post-submit action\n baker hubspot forms list --redirecting-only # which forms redirect away on submit\n baker hubspot forms view <formId> # fields, consent mode, full configuration\n baker hubspot forms view <formId> --as-node # the form.external blob -> write into the step\n baker hubspot forms submissions <formId> # how many leads it got, and when\n baker hubspot workflows list --enabled-only # what runs after a lead is captured\n baker hubspot workflows view <workflowId> # its real branches, in order, and what each step writes\n baker hubspot pipelines list # where a lead lands, and the stages after it\n baker hubspot contacts summary --days 30 # are recent leads being worked? (counts only)\n baker hubspot contacts lookup a@b.com # was this one lead picked up? --properties utm_campaign,… reads those too\n baker hubspot companies search --domains acme.com,globex.io --with-deals # which are accounts, with deals\n baker hubspot deals list --modified-since 2026-01-01 # deals: amount, stage, closed won\n baker hubspot deals lookup --search \"Acme\" # is this sale in the CRM? (by deal name)\n baker hubspot deals properties # what a HubSpot event on a deal can watch (dealstage, amount…)\n baker hubspot deals fields # what its rows can read: the deal's own, its contact's as contact.<name>\n baker hubspot meetings list # every calendar + whether booking redirects\n baker hubspot meetings view <slug> --as-node # same, for a hubspotMeeting step\n\nAn account connected before one of these existed cannot serve it — you get HUBSPOT_RECONNECT_REQUIRED, which\nmeans HubSpot IS connected and the user has to reconnect it to widen what Baker may read. Report that and\ncarry on with the rest; never call it broken and never retry.\n\nNothing here is secret, so HubSpot steps do not need request_flow_input: take --as-node and edit the\nflow's _data.json. Use the approval form only when no account is connected or the right form is unclear.\nFull guide: __tooling__/docs/tools/baker/hubspot.md`,\n },\n subCommands: {\n forms: formsCommand,\n workflows: workflowsCommand,\n pipelines: pipelinesCommand,\n contacts: contactsCommand,\n companies: companiesCommand,\n deals: dealsCommand,\n leads: leadsCommand,\n meetings: meetingsCommand,\n },\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAeA,SAAS,qBAAqB;AAM9B,IAAM,cAAc,CAAC,UAAU,MAAM,SAAS;AAE9C,SAAS,gBAAgB,OAAqE;AAC5F,MAAI,UAAU,QAAW;AACvB,WAAO;AAAA,EACT;AACA,MAAI,CAAE,YAAkC,SAAS,KAAK,GAAG;AACvD,UAAM,IAAI,MAAM,gCAAgC,YAAY,KAAK,GAAG,CAAC,EAAE;AAAA,EACzE;AACA,SAAO;AACT;AAEA,eAAe;AAAA,EACb,SAAS;AAAA,EACT,QAAQ,CAAC,8BAA8B;AAAA,EACvC,QAAQ;AAAA,EACR,aACE;AAAA,EACF,MAAM;AAAA,IACJ,QAAQ,EAAE,MAAM,UAAU,aAAa,qDAAqD,UAAU,MAAM;AAAA,IAC5G,oBAAoB;AAAA,MAClB,MAAM;AAAA,MACN,aAAa;AAAA,MACb,UAAU;AAAA,MACV,SAAS;AAAA,IACX;AAAA,IACA,cAAc,EAAE,MAAM,UAAU,aAAa,6BAA6B,UAAU,OAAO,MAAM,CAAC,GAAG,WAAW,EAAE;AAAA,EACpH;AACF,CAAC;AAED,eAAe;AAAA,EACb,SAAS;AAAA,EACT,aACE;AAAA,EACF,MAAM;AAAA,IACJ,QAAQ,EAAE,MAAM,cAAc,aAAa,qDAAqD,UAAU,KAAK;AAAA,IAC/G,MAAM,EAAE,MAAM,WAAW,aAAa,mCAAmC,UAAU,OAAO,SAAS,MAAM;AAAA,IACzG,WAAW;AAAA,MACT,MAAM;AAAA,MACN,aACE;AAAA,MACF,UAAU;AAAA,MACV,SAAS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EM,IAAM,iBAAiB,cAAc;AAAA,EAC1C,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,aAAa;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EA6Bf;AAAA,EACA,aAAa;AAAA,IACX,OAAO;AAAA,IACP,WAAW;AAAA,IACX,WAAW;AAAA,IACX,UAAU;AAAA,IACV,WAAW;AAAA,IACX,OAAO;AAAA,IACP,OAAO;AAAA,IACP,UAAU;AAAA,EACZ;AACF,CAAC;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
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,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,KAAK,CAAC,MAAM,EAAE,eAAe;AAAA,IACrE,OAAO,MAAM,OAAO,qBAAY,EAAE,KAAK,CAAC,MAAM,EAAE,YAAY;AAAA,IAC5D,SAAS,MAAM,OAAO,uBAAc,EAAE,KAAK,CAAC,MAAM,EAAE,cAAc;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":[]}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|