@dench.com/cli 3.3.0-staging.314 → 3.5.0-staging.327

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/cron.ts CHANGED
@@ -441,7 +441,7 @@ async function runCreate(ctx: CronCliContext): Promise<void> {
441
441
 
442
442
  let schedule: CronScheduleSpec | undefined;
443
443
  if (isWebhook) {
444
- // Webhook automations fire on demand / via their signed URL — no schedule.
444
+ // Webhook automations fire on demand / via their inbound URL — no schedule.
445
445
  if (consumeScheduleFlags(ctx.args)) {
446
446
  throw new CronCliError(
447
447
  "Webhook automations don't take a schedule. Omit --every/--cron/--at.",
@@ -470,26 +470,46 @@ async function runCreate(ctx: CronCliContext): Promise<void> {
470
470
  target,
471
471
  })) as { jobId?: string };
472
472
 
473
- // Webhook automations need a signing secret to be externally callable. Mint
474
- // one now (unless --no-secret) so `create` hands back a working URL+secret.
475
- if (isWebhook && !hasFlag(ctx.args, "--no-secret") && created.jobId) {
476
- const secret = await mintAutomationSecret(ctx, created.jobId);
477
- out(ctx, { ...created, ...secret });
473
+ // A webhook automation's URL is live (unsigned) as soon as it exists. Only
474
+ // mint a signing secret when asked (--signed). `--no-secret` was the old
475
+ // opt-out and is now the default; consume it so it stays accepted.
476
+ const legacyNoSecret = hasFlag(ctx.args, "--no-secret");
477
+ const signed = hasFlag(ctx.args, "--signed") && !legacyNoSecret;
478
+ if (isWebhook && created.jobId) {
479
+ if (signed) {
480
+ const secret = await mintAutomationSecret(ctx, created.jobId);
481
+ out(ctx, { ...created, ...secret });
482
+ return;
483
+ }
484
+ out(ctx, {
485
+ ...created,
486
+ webhookUrl: automationWebhookUrl(created.jobId),
487
+ webhookAccess: "open",
488
+ note: "Live now — plain POSTs to webhookUrl fire this automation. Keep the URL private. `dench cron secret <jobId>` turns on HMAC signing.",
489
+ });
478
490
  return;
479
491
  }
480
492
  out(ctx, created);
481
493
  }
482
494
 
495
+ function automationWebhookUrl(jobId: string): string {
496
+ return `${getApiBase()}/api/webhooks/automation/${encodeURIComponent(jobId)}`;
497
+ }
498
+
483
499
  /**
484
- * Mint (or rotate) a signing secret for an automation via the Next REST route
500
+ * Turn on (or rotate) HMAC signing for an automation via the Next REST route
485
501
  * (secret encryption runs in the Node route, not Convex's V8 runtime). Returns
486
- * the plaintext secret + callable URL — shown once.
502
+ * the plaintext secret + URL — shown once.
487
503
  */
488
504
  async function mintAutomationSecret(
489
505
  ctx: CronCliContext,
490
506
  jobId: string,
491
- ): Promise<{ webhookUrl: string | null; webhookSecret: string | null }> {
492
- const url = `${getApiBase()}/api/cron/jobs/${encodeURIComponent(jobId)}/regenerate-secret`;
507
+ ): Promise<{
508
+ webhookUrl: string | null;
509
+ webhookSecret: string | null;
510
+ webhookAccess: "signed";
511
+ }> {
512
+ const url = `${getApiBase()}/api/cron/jobs/${encodeURIComponent(jobId)}/webhook-signing`;
493
513
  const res = (await postJson(
494
514
  url,
495
515
  apiKeyHeaders(ctx.sessionToken ?? ""),
@@ -498,16 +518,34 @@ async function mintAutomationSecret(
498
518
  return {
499
519
  webhookUrl: res.webhookUrl ?? null,
500
520
  webhookSecret: res.webhookSecret ?? null,
521
+ webhookAccess: "signed",
501
522
  };
502
523
  }
503
524
 
504
525
  async function runSecret(ctx: CronCliContext): Promise<void> {
505
526
  const jobId = shift(ctx.args, "job id");
527
+ if (hasFlag(ctx.args, "--off")) {
528
+ const url = `${getApiBase()}/api/cron/jobs/${encodeURIComponent(jobId)}/webhook-signing`;
529
+ const res = (await deleteJson(
530
+ url,
531
+ apiKeyHeaders(ctx.sessionToken ?? ""),
532
+ )) as { webhookUrl?: string | null; webhookAccess?: "open" | "off" };
533
+ out(ctx, {
534
+ jobId,
535
+ webhookUrl: res.webhookUrl ?? null,
536
+ webhookAccess: res.webhookAccess ?? null,
537
+ note:
538
+ res.webhookAccess === "open"
539
+ ? "Signing is off — the URL now accepts plain (unsigned) POSTs."
540
+ : "Signing is off — this automation's URL no longer accepts requests.",
541
+ });
542
+ return;
543
+ }
506
544
  const secret = await mintAutomationSecret(ctx, jobId);
507
545
  out(ctx, {
508
546
  jobId,
509
547
  ...secret,
510
- note: "Secret shown once — store it now. Re-running rotates it (invalidates the old one).",
548
+ note: "Secret shown once — store it now. Re-running rotates it (invalidates the old one). `--off` turns signing off.",
511
549
  });
512
550
  }
513
551
 
@@ -838,9 +876,10 @@ Create / update:
838
876
  [--target chat_turn] # default: chat_turn (fires a fresh chat thread)
839
877
  [--json]
840
878
 
841
- # Webhook automation (fires on demand or via a signed URL). Mints + prints a
842
- # signing secret unless --no-secret. The secret is shown ONCE.
843
- dench cron create "Inbound lead triage" --prompt "Triage the lead…" --type webhook
879
+ # Webhook automation (fires on demand or when anything POSTs to its URL).
880
+ # Live + unsigned by default; prints webhookUrl. Add --signed to also mint
881
+ # an HMAC signing secret (shown ONCE).
882
+ dench cron create "Inbound lead triage" --prompt "Triage the lead…" --type webhook [--signed]
844
883
 
845
884
  # App-event automation (fires when something happens in a connected app).
846
885
  # 1. dench apps --json → connectedAccountId + toolkit
@@ -865,7 +904,7 @@ Lifecycle:
865
904
  dench cron disable <jobId>
866
905
  dench cron delete <jobId>
867
906
  dench cron run <jobId> [--wait] [--json] # manual fire; --wait blocks until run finishes
868
- dench cron secret <jobId> [--json] # mint/rotate a signing secret → callable signed URL (any automation type)
907
+ dench cron secret <jobId> [--off] [--json] # turn on / rotate HMAC signing (any type; makes non-webhook URLs live). --off turns it off.
869
908
 
870
909
  Schedule formats:
871
910
  --every <duration> Repeat every N. Accepts 30s, 5m, 2h, 1d, 12h, etc.
package/dench.ts CHANGED
@@ -548,7 +548,8 @@ CRM (Daytona-native rewrite):
548
548
  Help: dench crm help
549
549
 
550
550
  Meetings (CRM \`meeting\` records + their transcript, action items, attendance):
551
- dench meetings list [--limit N] | get <meetingId>
551
+ dench meetings list [--limit N] [--shared] | get <meetingId>
552
+ dench meetings share <meetingId> [--workspace | --private]
552
553
  dench meetings transcript get|set|clear <meetingId> [--text file | --jsonl file]
553
554
  dench meetings action-items list|add|set|done|delete ...
554
555
  dench meetings participants list|set <meetingId> [--people 'Name <email>; ...']
@@ -561,6 +562,11 @@ Notifications (the bell's inbox):
561
562
  dench notifications prefs [--set emailEnabled=false] [--set <kind>.email=false]
562
563
  Help: dench notifications help
563
564
 
565
+ Workspace settings (Settings → Sync: what Dench creates and keeps current on its own):
566
+ dench settings sync [--json] the eight switches, all on by default
567
+ dench settings sync set <key> on|off [--json] admin-only; off stops new work, removes nothing
568
+ Help: dench settings help
569
+
564
570
  Workspace members (for CRM \`user\`-type fields, and who's doing what):
565
571
  dench members list [--json] (top-level alias)
566
572
  dench crm members list [--json] (canonical CRM-scoped name)
@@ -4705,6 +4711,38 @@ async function main() {
4705
4711
  return;
4706
4712
  }
4707
4713
 
4714
+ if (command === "settings") {
4715
+ // Settings → Sync from the terminal. Same auth shape as `dench crm`;
4716
+ // the write is admin-only server-side.
4717
+ const subArgs = stripRuntimeFlags(args.slice(args.indexOf("settings") + 1));
4718
+ const sub = subArgs[0];
4719
+ const { runSettingsCommand } = await import("./settings");
4720
+ if (!sub || sub === "help" || sub === "--help") {
4721
+ // biome-ignore lint/suspicious/noExplicitAny: harmless help-only stub
4722
+ await runSettingsCommand({ convex: {} as any, args: subArgs });
4723
+ return;
4724
+ }
4725
+ const runtime = await getRuntime();
4726
+ if (runtime.mode === "dev") {
4727
+ await runSettingsCommand({
4728
+ convex: runtime.client,
4729
+ args: subArgs,
4730
+ sessionToken: encodeDevCrmSessionToken(runtime.workspaceArgs),
4731
+ });
4732
+ return;
4733
+ }
4734
+ const authedRuntime = requireAuthenticatedRuntime(
4735
+ runtime,
4736
+ "dench settings",
4737
+ );
4738
+ await runSettingsCommand({
4739
+ convex: authedRuntime.client,
4740
+ args: subArgs,
4741
+ sessionToken: authedRuntime.sessionToken,
4742
+ });
4743
+ return;
4744
+ }
4745
+
4708
4746
  if (command === "fs") {
4709
4747
  await runFsCommand();
4710
4748
  return;
@@ -5061,33 +5099,6 @@ async function main() {
5061
5099
  return;
5062
5100
  }
5063
5101
 
5064
- if (command === "signals") {
5065
- const subArgs = stripRuntimeFlags(args.slice(args.indexOf(command) + 1));
5066
- const { runSignalsCommand } = await import("./signals");
5067
- if (
5068
- !subArgs.length ||
5069
- ["help", "--help", "-h", "template"].includes(subArgs[0])
5070
- ) {
5071
- await runSignalsCommand({
5072
- convex: {} as never,
5073
- args: subArgs,
5074
- jsonOutput: json,
5075
- });
5076
- return;
5077
- }
5078
- const runtime = requireAuthenticatedRuntime(
5079
- await getRuntime(),
5080
- "dench signals",
5081
- );
5082
- await runSignalsCommand({
5083
- convex: runtime.client,
5084
- args: subArgs,
5085
- sessionToken: runtime.sessionToken,
5086
- jsonOutput: json,
5087
- });
5088
- return;
5089
- }
5090
-
5091
5102
  // `dench campaign` — outreach campaigns (email + LinkedIn steps). Convex
5092
5103
  // RPC only, member-attributed auth (an organization-only key is refused
5093
5104
  // server-side; normalizeCliError explains what to do).
@@ -956,6 +956,72 @@ const notificationShape = z
956
956
  })
957
957
  .passthrough();
958
958
 
959
+ const syncSettingsShape = z
960
+ .object({
961
+ detectAccounts: z.boolean(),
962
+ linkedinContacts: z.boolean(),
963
+ slackConnectAccounts: z.boolean(),
964
+ calendarContacts: z.boolean(),
965
+ dossier: z.boolean(),
966
+ emailTasks: z.boolean(),
967
+ leadAutoQualify: z.boolean(),
968
+ intelligence: z.boolean(),
969
+ })
970
+ .describe(
971
+ "Settings → Sync, resolved: absent switches read as true. Off stops new work; nothing already created is removed.",
972
+ );
973
+
974
+ const syncSettingsPatchShape = z.object({
975
+ detectAccounts: z
976
+ .boolean()
977
+ .optional()
978
+ .describe(
979
+ "Accounts from email — new prospects and customers who email you become accounts and contacts.",
980
+ ),
981
+ linkedinContacts: z
982
+ .boolean()
983
+ .optional()
984
+ .describe(
985
+ "Contacts from LinkedIn — everyone you message on LinkedIn becomes a contact, with their company.",
986
+ ),
987
+ slackConnectAccounts: z
988
+ .boolean()
989
+ .optional()
990
+ .describe(
991
+ "Accounts from Slack Connect — a shared channel binds to the company on the other side.",
992
+ ),
993
+ calendarContacts: z
994
+ .boolean()
995
+ .optional()
996
+ .describe(
997
+ "Contacts from calendar — external invitees on upcoming meetings become contacts.",
998
+ ),
999
+ dossier: z
1000
+ .boolean()
1001
+ .optional()
1002
+ .describe(
1003
+ "Research dossier — Dench researches each new account into its Notes.",
1004
+ ),
1005
+ emailTasks: z
1006
+ .boolean()
1007
+ .optional()
1008
+ .describe(
1009
+ "Tasks from email — replies and follow-ups you owe become tasks; support issues become cases.",
1010
+ ),
1011
+ leadAutoQualify: z
1012
+ .boolean()
1013
+ .optional()
1014
+ .describe(
1015
+ "Qualify leads that book — a lead who books a meeting moves to Qualified and converts.",
1016
+ ),
1017
+ intelligence: z
1018
+ .boolean()
1019
+ .optional()
1020
+ .describe(
1021
+ "Summaries and Brief — conversations are summarised and each record keeps a Brief.",
1022
+ ),
1023
+ });
1024
+
959
1025
  const notificationPreferencesShape = z.object({
960
1026
  inAppEnabled: z.boolean(),
961
1027
  emailEnabled: z.boolean(),
@@ -3002,6 +3068,15 @@ export const requestSchemas: Record<string, ZodTypeAny> = {
3002
3068
  done: z.boolean(),
3003
3069
  }),
3004
3070
  "meetings.actionItems.delete": z.object({ itemId: z.string() }),
3071
+ "meetings.sharing.get": z.object({ meetingEntryId: z.string() }),
3072
+ "meetings.sharing.set": z.object({
3073
+ meetingEntryId: z.string(),
3074
+ shared: z
3075
+ .boolean()
3076
+ .describe(
3077
+ "true opens the meeting to every workspace member; false returns it to the owner plus the members who were on the invite.",
3078
+ ),
3079
+ }),
3005
3080
  "meetings.participants.list": z.object({ meetingEntryId: z.string() }),
3006
3081
  "meetings.participants.set": z.object({
3007
3082
  meetingEntryId: z.string(),
@@ -3668,6 +3743,8 @@ export const requestSchemas: Record<string, ZodTypeAny> = {
3668
3743
  }),
3669
3744
  "notifications.readAll": noInput,
3670
3745
  "notifications.archive": z.object({ notificationId: z.string() }),
3746
+ "settings.sync.get": noInput,
3747
+ "settings.sync.update": syncSettingsPatchShape,
3671
3748
  "notifications.preferences.get": noInput,
3672
3749
  "notifications.preferences.update": z.object({
3673
3750
  inAppEnabled: z.boolean().optional(),
@@ -4284,6 +4361,10 @@ export const responseSchemas: Record<string, ZodTypeAny> = {
4284
4361
  "notifications.preferences.get": notificationPreferencesShape.nullable(),
4285
4362
  "notifications.preferences.update": okResponse,
4286
4363
 
4364
+ // Workspace settings
4365
+ "settings.sync.get": syncSettingsShape,
4366
+ "settings.sync.update": syncSettingsShape,
4367
+
4287
4368
  // CRM query + search
4288
4369
  "crm.query": z
4289
4370
  .array(crmEntryShape)
@@ -5117,6 +5198,7 @@ export const requestExamples: Record<string, unknown> = {
5117
5198
  emailEnabled: true,
5118
5199
  perKind: { entry_activity: { email: false } },
5119
5200
  },
5201
+ "settings.sync.update": { linkedinContacts: false },
5120
5202
  "me.profile.update": {
5121
5203
  tagline: "Head of Ops",
5122
5204
  timezone: "America/New_York",
@@ -70,8 +70,8 @@ export const APP_SDK_SCOPES = [
70
70
  "notifications:read",
71
71
  "notifications:write",
72
72
  "search:read",
73
- "signals:read",
74
- "signals:write",
73
+ "settings:read",
74
+ "settings:write",
75
75
  "store:read",
76
76
  "store:write",
77
77
  "ui",
@@ -158,7 +158,19 @@ export const APP_SDK_OPERATIONS: readonly AppSdkOperationInfo[] = [
158
158
  {"id":"crm.fields.enum.color","group":"crm","summary":"Set an enum color.","cli":"dench crm fields enum-set-color","method":"POST","path":"/crm/objects/{objectName}/fields/{fieldName}/enum/{value}/color","permission":"crm:write","pathParams":["objectName","fieldName","value"]},
159
159
  {"id":"crm.entries.list","group":"crm","summary":"List CRM entries.","cli":"dench crm entries list","method":"GET","path":"/crm/objects/{objectName}/entries","permission":"crm:read","pathParams":["objectName"]},
160
160
  {"id":"crm.entries.get","group":"crm","summary":"Get a CRM entry.","cli":"dench crm entries get","method":"GET","path":"/crm/objects/{objectName}/entries/{entryId}","permission":"crm:read","pathParams":["objectName","entryId"]},
161
+ {"id":"crm.entries.syncHistory","group":"crm","summary":"Queue a full, paged pull of the record's email history from every connected mailbox; the ledger fills as pages land.","cli":"dench crm entries sync-history","method":"POST","path":"/crm/objects/{objectName}/entries/{entryId}/sync-history","permission":"crm:write","pathParams":["objectName","entryId"]},
162
+ {"id":"crm.entries.syncHistoryStatus","group":"crm","summary":"Has Dench read this record's email history? One row per address per mailbox.","cli":"dench crm entries sync-history --status","method":"GET","path":"/crm/objects/{objectName}/entries/{entryId}/sync-history","permission":"crm:read","pathParams":["objectName","entryId"]},
163
+ {"id":"crm.entries.dossier.get","group":"crm","summary":"Status of the account's research dossier — the delimited `dench:dossier` section Dench keeps in the record's Notes: status, when it was written, how many dated updates followed, the last error.","cli":"dench crm entries dossier","method":"GET","path":"/crm/entries/{entryId}/dossier","permission":"crm:read","pathParams":["entryId"]},
164
+ {"id":"crm.entries.dossier.regenerate","group":"crm","summary":"Research the account again and append a fresh dossier section to its Notes (needs a Website / Domain on the record).","cli":"dench crm entries dossier --regenerate","method":"POST","path":"/crm/entries/{entryId}/dossier/regenerate","permission":"crm:write","pathParams":["entryId"]},
165
+ {"id":"crm.detections.list","group":"crm","summary":"List account-detection verdicts — why a domain (or personal address) did or did not become an account: verdict, counterparty type, probabilities, evidence threads, the rows created. `kind` picks the creator: `detections` (email + sweep), `linkedin` (the LinkedIn resolver's rows) or `all` (default). Newest first.","cli":"dench crm detections list","method":"GET","path":"/crm/detections","permission":"crm:read","pathParams":[]},
166
+ {"id":"crm.detections.undo","group":"crm","summary":"Undo what the ingestion jobs created since a timestamp (admin): `kind` = `detections` (accounts + contacts from the email detector and the sweep), `linkedin` (the LinkedIn resolver's contacts + accounts; their conversations are unlinked and parked), `email-tasks` (auto-created tasks and cases) or `all` (default). Deletes only rows no human has touched and marks the verdicts / decisions rolled_back so they are never re-created. `dryRun` lists what would go; per-kind counts in `kinds`.","cli":"dench crm detections undo","method":"POST","path":"/crm/detections/undo","permission":"crm:write","pathParams":[]},
161
167
  {"id":"crm.entries.history","group":"crm","summary":"List a CRM entry's audit history.","cli":"dench crm history","method":"GET","path":"/crm/objects/{objectName}/entries/{entryId}/history","permission":"crm:read","pathParams":["objectName","entryId"]},
168
+ {"id":"crm.activity.list","group":"crm","summary":"List a CRM entry's activity ledger (comments, notes, field changes, emails, meetings, Slack, LinkedIn) in one timeline, newest first by default.","cli":"dench crm activity","method":"GET","path":"/crm/objects/{objectName}/entries/{entryId}/activity","permission":"crm:read","pathParams":["objectName","entryId"]},
169
+ {"id":"crm.brief.get","group":"crm","summary":"The record's generated Brief: health, who owes the next move, open threads, commitments, risks, next step, with provenance. Read this before the ledger.","cli":"dench crm brief","method":"GET","path":"/crm/objects/{objectName}/entries/{entryId}/brief","permission":"crm:read","pathParams":["objectName","entryId"]},
170
+ {"id":"crm.brief.regenerate","group":"crm","summary":"Rebuild a record's Brief from the current timeline.","cli":"dench crm brief --regenerate","method":"POST","path":"/crm/objects/{objectName}/entries/{entryId}/brief/regenerate","permission":"crm:write","pathParams":["objectName","entryId"]},
171
+ {"id":"crm.activity.count","group":"crm","summary":"Bounded per-source counts of a CRM entry's activity ledger.","cli":"dench crm activity","method":"GET","path":"/crm/objects/{objectName}/entries/{entryId}/activity/count","permission":"crm:read","pathParams":["objectName","entryId"]},
172
+ {"id":"crm.notes.list","group":"crm","summary":"List a CRM entry's notes (titled, document-style comments), newest first.","cli":"dench crm notes list","method":"GET","path":"/crm/objects/{objectName}/entries/{entryId}/notes","permission":"crm:read","pathParams":["objectName","entryId"]},
173
+ {"id":"crm.notes.create","group":"crm","summary":"Add a titled note to a CRM entry's activity timeline (markdown body). Research goes here, never into the Notes document.","cli":"dench crm notes create","method":"POST","path":"/crm/objects/{objectName}/entries/{entryId}/notes","permission":"crm:write","pathParams":["objectName","entryId"]},
162
174
  {"id":"crm.comments.list","group":"crm","summary":"List comments on a CRM entry (roots newest first, with preview replies).","cli":"dench crm comments list","method":"GET","path":"/crm/objects/{objectName}/entries/{entryId}/comments","permission":"crm:read","pathParams":["objectName","entryId"]},
163
175
  {"id":"crm.comments.replies","group":"crm","summary":"List every reply under a root comment, oldest first.","cli":"dench crm comments replies","method":"GET","path":"/crm/comments/{commentId}/replies","permission":"crm:read","pathParams":["commentId"]},
164
176
  {"id":"crm.comments.get","group":"crm","summary":"Get one comment with its entry label.","cli":"dench crm comments get","method":"GET","path":"/crm/comments/{commentId}","permission":"crm:read","pathParams":["commentId"]},
@@ -270,6 +282,8 @@ export const APP_SDK_OPERATIONS: readonly AppSdkOperationInfo[] = [
270
282
  {"id":"meetings.actionItems.delete","group":"meetings","summary":"Delete one action item.","cli":"dench meetings action-items delete","method":"DELETE","path":"/meetings/action-items/{itemId}","permission":"meetings:write","pathParams":["itemId"]},
271
283
  {"id":"meetings.participants.list","group":"meetings","summary":"Who was in the meeting, merged with the linked calendar invite.","cli":"dench meetings participants list","method":"GET","path":"/meetings/{meetingEntryId}/participants","permission":"meetings:read","pathParams":["meetingEntryId"]},
272
284
  {"id":"meetings.participants.set","group":"meetings","summary":"Record attendees by name/email; known members and existing people are linked, nobody is created.","cli":"dench meetings participants set","method":"PUT","path":"/meetings/{meetingEntryId}/participants","permission":"meetings:write","pathParams":["meetingEntryId"]},
285
+ {"id":"meetings.sharing.get","group":"meetings","summary":"Whether a meeting is shared with the whole workspace, and whether you may change that.","cli":"dench meetings share","method":"GET","path":"/meetings/{meetingEntryId}/sharing","permission":"meetings:read","pathParams":["meetingEntryId"]},
286
+ {"id":"meetings.sharing.set","group":"meetings","summary":"Share one meeting with the workspace, or take it back to owner + invitees.","cli":"dench meetings share --workspace","method":"PUT","path":"/meetings/{meetingEntryId}/sharing","permission":"meetings:write","pathParams":["meetingEntryId"]},
273
287
  {"id":"email.identity.verify","group":"email","summary":"Start Dench Emailing Service sender verification.","cli":"dench email identity verify","method":"POST","path":"/email/identities/verify","permission":"email:write","pathParams":[]},
274
288
  {"id":"email.identity.create","group":"email","summary":"Create a durable Dench email sending identity record.","cli":"dench email identity verify","method":"POST","path":"/email/sending-identities","permission":"email:write","pathParams":[]},
275
289
  {"id":"email.identity.refresh","group":"email","summary":"Refresh a Dench Emailing Service sender verification status.","cli":"dench email identity status --identity-id","method":"POST","path":"/email/sending-identities/{identityId}/status","permission":"email:write","pathParams":["identityId"]},
@@ -328,15 +342,6 @@ export const APP_SDK_OPERATIONS: readonly AppSdkOperationInfo[] = [
328
342
  {"id":"campaigns.pause","group":"campaigns","summary":"Pause an active campaign.","cli":"dench campaign pause","method":"POST","path":"/campaigns/{sequenceId}/pause","permission":"campaigns:write","pathParams":["sequenceId"]},
329
343
  {"id":"campaigns.resume","group":"campaigns","summary":"Resume a paused campaign.","cli":"dench campaign resume","method":"POST","path":"/campaigns/{sequenceId}/resume","permission":"campaigns:write","pathParams":["sequenceId"]},
330
344
  {"id":"campaigns.archive","group":"campaigns","summary":"Archive a campaign and stop everyone still in flight.","cli":"dench campaign archive","method":"POST","path":"/campaigns/{sequenceId}/archive","permission":"campaigns:write","pathParams":["sequenceId"]},
331
- {"id":"signals.list","group":"signals","summary":"list signal agents and their discovery configuration.","cli":"dench signals list","method":"GET","path":"/signals","permission":"signals:read","pathParams":[]},
332
- {"id":"signals.catalog","group":"signals","summary":"catalog signal agents and their discovery configuration.","cli":"dench signals catalog","method":"GET","path":"/signals/catalog","permission":"signals:read","pathParams":[]},
333
- {"id":"signals.get","group":"signals","summary":"get signal agents and their discovery configuration.","cli":"dench signals get","method":"GET","path":"/signals/{agentId}","permission":"signals:read","pathParams":["agentId"]},
334
- {"id":"signals.runs","group":"signals","summary":"runs signal agents and their discovery configuration.","cli":"dench signals runs","method":"GET","path":"/signals/{agentId}/runs","permission":"signals:read","pathParams":["agentId"]},
335
- {"id":"signals.create","group":"signals","summary":"Save a complete per-agent configuration. Warnings require acknowledgement; new agents default to paused.","cli":"dench signals create","method":"POST","path":"/signals","permission":"signals:write","pathParams":[]},
336
- {"id":"signals.update","group":"signals","summary":"Save a complete per-agent configuration. Warnings require acknowledgement; new agents default to paused.","cli":"dench signals update","method":"PATCH","path":"/signals/{agentId}","permission":"signals:write","pathParams":["agentId"]},
337
- {"id":"signals.pause","group":"signals","summary":"pause a signal agent. Paused agents retain their leads.","cli":"dench signals pause","method":"POST","path":"/signals/{agentId}/pause","permission":"signals:write","pathParams":["agentId"]},
338
- {"id":"signals.resume","group":"signals","summary":"resume a signal agent. Paused agents retain their leads.","cli":"dench signals resume","method":"POST","path":"/signals/{agentId}/resume","permission":"signals:write","pathParams":["agentId"]},
339
- {"id":"signals.run","group":"signals","summary":"run a signal agent. Paused agents retain their leads.","cli":"dench signals run","method":"POST","path":"/signals/{agentId}/run","permission":"signals:write","pathParams":["agentId"]},
340
345
  {"id":"campaigns.events","group":"campaigns","summary":"The campaign's activity log, newest first (sent, accepted, replied, skipped, failed, paused, stopped).","cli":"dench campaign events","method":"GET","path":"/campaigns/{sequenceId}/events","permission":"campaigns:read","pathParams":["sequenceId"]},
341
346
  {"id":"campaigns.people.stop","group":"campaigns","summary":"Stop one person: nothing more is sent to them from this campaign.","cli":"dench campaign stop","method":"POST","path":"/campaigns/people/{enrollmentId}/stop","permission":"campaigns:write","pathParams":["enrollmentId"]},
342
347
  {"id":"campaigns.people.resume","group":"campaigns","summary":"Resume one paused person in an active campaign.","cli":"dench campaign resume-person","method":"POST","path":"/campaigns/people/{enrollmentId}/resume","permission":"campaigns:write","pathParams":["enrollmentId"]},
@@ -423,6 +428,8 @@ export const APP_SDK_OPERATIONS: readonly AppSdkOperationInfo[] = [
423
428
  {"id":"notifications.archive","group":"notifications","summary":"Archive a notification.","cli":"dench notifications archive","method":"POST","path":"/notifications/{notificationId}/archive","permission":"notifications:write","pathParams":["notificationId"]},
424
429
  {"id":"notifications.preferences.get","group":"notifications","summary":"Read your notification preferences.","cli":"dench notifications prefs","method":"GET","path":"/notifications/preferences","permission":"notifications:read","pathParams":[]},
425
430
  {"id":"notifications.preferences.update","group":"notifications","summary":"Update your notification preferences.","cli":"dench notifications prefs --set","method":"PATCH","path":"/notifications/preferences","permission":"notifications:write","pathParams":[]},
431
+ {"id":"settings.sync.get","group":"settings","summary":"Read the workspace's Sync switches (accounts from email, contacts from LinkedIn, Slack Connect, calendar, dossier, tasks from email, lead auto-qualify, summaries and Brief). All on by default.","cli":"dench settings sync","method":"GET","path":"/settings/sync","permission":"settings:read","pathParams":[]},
432
+ {"id":"settings.sync.update","group":"settings","summary":"Flip Sync switches (admin). Partial patch: only the keys sent change. Off stops new work; nothing already created is removed.","cli":"dench settings sync set","method":"PATCH","path":"/settings/sync","permission":"settings:write","pathParams":[]},
426
433
  ];
427
434
 
428
435
  /** CLI-only operation ids (sessions, fs, imports): never callable from an app. */
@@ -510,6 +517,8 @@ export const APP_SDK_METHODS: Readonly<Record<string, AppSdkMethodInfo>> = {
510
517
  "meetings.addActionItems": {"kind":"op","permission":"meetings:write","op":"meetings.actionItems.add","doc":"Add action items to a meeting."},
511
518
  "meetings.setActionItemDone": {"kind":"op","permission":"meetings:write","op":"meetings.actionItems.setDone","doc":"Check or uncheck an action item."},
512
519
  "meetings.participants": {"kind":"op","permission":"meetings:read","op":"meetings.participants.list","doc":"Participants of a meeting."},
520
+ "meetings.sharing": {"kind":"op","permission":"meetings:read","op":"meetings.sharing.get","doc":"Whether a meeting is shared with the whole workspace."},
521
+ "meetings.setSharing": {"kind":"op","permission":"meetings:write","op":"meetings.sharing.set","doc":"Share a meeting with the workspace, or take it back to owner + invitees."},
513
522
  "lists.list": {"kind":"op","permission":"lists:read","op":"lists.list","doc":"Saved lead lists."},
514
523
  "lists.get": {"kind":"op","permission":"lists:read","op":"lists.get","doc":"One saved list with its rows."},
515
524
  "lists.rename": {"kind":"op","permission":"lists:write","op":"lists.rename","doc":"Rename a list."},
@@ -587,6 +587,18 @@ export const APP_SDK_SURFACE: AppSdkSurface = {
587
587
  args: "meetingEntryId: string",
588
588
  returns: R("meetings.participants.list"),
589
589
  },
590
+ sharing: {
591
+ op: "meetings.sharing.get",
592
+ doc: "Whether a meeting is shared with the whole workspace.",
593
+ args: "meetingEntryId: string",
594
+ returns: R("meetings.sharing.get"),
595
+ },
596
+ setSharing: {
597
+ op: "meetings.sharing.set",
598
+ doc: "Share a meeting with the workspace, or take it back to owner + invitees.",
599
+ args: "meetingEntryId: string, shared: boolean",
600
+ returns: R("meetings.sharing.set"),
601
+ },
590
602
  },
591
603
 
592
604
  lists: {