@dench.com/cli 3.12.21-staging.1360 → 3.12.23-staging.1392

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/app-sdk.d.ts CHANGED
@@ -2383,6 +2383,31 @@ export interface ApiRequests {
2383
2383
  /** continueCursor from the prior page. */
2384
2384
  cursor?: string;
2385
2385
  };
2386
+ /** Fast search across all readable meeting transcripts and summaries by keyword, sound-alike/ASR-tolerant match, speaker, participant, or date range. — `dench meetings search` — GET /api/v1/meetings/search */
2387
+ "meetings.search": {
2388
+ /** Keywords or phrase to search across readable meeting transcripts, titles, outcomes, summaries, and decisions. */
2389
+ query: string;
2390
+ /** Optional extra keywords, synonyms, or sound-alike spellings searched in the same pass. */
2391
+ alsoMatch?: string[] | string;
2392
+ /** Optional meeting record id to restrict search to one call. */
2393
+ meetingEntryId?: string;
2394
+ /** Filter transcript hits to lines spoken by someone matching this name or email. */
2395
+ speaker?: string;
2396
+ /** Filter to meetings attended by someone matching this name or email. */
2397
+ participant?: string;
2398
+ /** Only include meetings starting on or after this ISO date (YYYY-MM-DD) or epoch ms. */
2399
+ after?: string | number;
2400
+ /** Only include meetings starting on or before this ISO date (YYYY-MM-DD) or epoch ms. */
2401
+ before?: string | number;
2402
+ /** Enable sound-alike / speech-to-text tolerant and prefix matching (default true). */
2403
+ fuzzy?: boolean;
2404
+ /** Surrounding transcript lines to include before and after each matched quote (0–3, default 1). */
2405
+ contextLines?: number;
2406
+ /** Maximum matching meetings to return (1–50, default 10). */
2407
+ limit?: number;
2408
+ /** Maximum matched transcript excerpts per meeting (1–10, default 3). */
2409
+ maxHitsPerMeeting?: number;
2410
+ };
2386
2411
  /** Get short-lived signed playback/download URLs for a meeting's recorded video (MP4) and audio. — `dench meetings recording` — GET /api/v1/meetings/{meetingEntryId}/recording */
2387
2412
  "meetings.recording.get": {
2388
2413
  /** The meeting record's entry id. */
@@ -2861,6 +2886,8 @@ export interface ApiRequests {
2861
2886
  emailMailboxAccountIds?: string[];
2862
2887
  /** Campaign LinkedIn sender pool: up to 50 linkedinAccounts ids both you and the campaign owner may use. Omit to preserve existing configuration; [] clears the pool. Legacy step senders remain until a pool is configured. */
2863
2888
  linkedinAccountIds?: string[];
2889
+ /** Campaign X sender pool: up to 50 xAccounts ids both you and the campaign owner may use. Omit to preserve existing configuration; [] clears the pool. */
2890
+ xAccountIds?: string[];
2864
2891
  /** IANA timezone for the default Mon-Fri 9-18 send window. */
2865
2892
  timezone?: string;
2866
2893
  };
@@ -2893,6 +2920,8 @@ export interface ApiRequests {
2893
2920
  emailMailboxAccountIds?: string[];
2894
2921
  /** Campaign LinkedIn sender pool: up to 50 linkedinAccounts ids both you and the campaign owner may use. Omit to preserve existing configuration; [] clears the pool. Legacy step senders remain until a pool is configured. */
2895
2922
  linkedinAccountIds?: string[];
2923
+ /** Campaign X sender pool: up to 50 xAccounts ids both you and the campaign owner may use. Omit to preserve existing configuration; [] clears the pool. */
2924
+ xAccountIds?: string[];
2896
2925
  /** Stop a person's remaining steps when they reply. */
2897
2926
  stopOnReply?: boolean;
2898
2927
  /** Epoch ms; null clears the start. */
@@ -2928,7 +2957,7 @@ export interface ApiRequests {
2928
2957
  /** Every step, in send order (a workflow may list them in any order; they are stored in path order). Rejected, not trimmed: a field the step type would drop (onlyIf off email/post-like steps, a body on a visit, reply-in-thread on the first email, condition fields its check ignores), a missing subject or required body, an overlength note/message/InMail subject, out-of-range wait/withdrawal/post-age/acceptance values, {TOKEN} single braces, which would be sent as typed, and workflow paths that don't hold together (duplicate keys, a target that isn't a key or end, a condition or wait_for_connection without both yesNext and noNext, or any other step with them). */
2929
2958
  steps: Array<{
2930
2959
  /** Step type. condition (If / else) and wait_for_connection (Wait for them to accept) send nothing; they continue on yesNext or noNext and make the campaign a workflow. */
2931
- type: "wait" | "email" | "linkedin_connection" | "linkedin_message" | "linkedin_visit" | "linkedin_like_post" | "linkedin_inmail" | "condition" | "wait_for_connection";
2960
+ type: "wait" | "email" | "linkedin_connection" | "linkedin_message" | "linkedin_visit" | "linkedin_like_post" | "linkedin_inmail" | "x_follow" | "x_like_post" | "x_reply_post" | "x_dm" | "condition" | "wait_for_connection";
2932
2961
  /** wait steps: hours to wait before the next step. */
2933
2962
  waitHours?: number;
2934
2963
  /** Legacy email step sender. Pool campaigns choose senders in emailMailboxAccountIds on the campaign, not on individual steps. */
@@ -2965,6 +2994,12 @@ export interface ApiRequests {
2965
2994
  inmailSubject?: string;
2966
2995
  /** linkedin_connection only: withdraw a still-pending invitation sent by this campaign after 168-2160 hours (7-90 days). Omitted means off on creation; null turns it off on edit. */
2967
2996
  withdrawAfterHours?: number | null;
2997
+ /** Legacy X step sender. Pool campaigns use the campaign's xAccountIds instead. */
2998
+ xAccountId?: string;
2999
+ /** x_reply_post (up to 280 chars) and x_dm (up to 10,000 chars): message template; {{variable}} merge tokens allowed. */
3000
+ xMessageBody?: string;
3001
+ /** x_like_post and x_reply_post: target the newest original X post from the last 1-365 days (default 30). */
3002
+ xMaxPostAgeDays?: number;
2968
3003
  /** Workflow steps: this step's id, unique in the campaign, which next, yesNext and noNext point at (not "end"). Left out, one is made. */
2969
3004
  key?: string;
2970
3005
  /** Workflow steps: where a step that isn't a condition or wait_for_connection goes; left out, the following step: another step's key, or "end" to stop there. Fixed once the campaign launches. */
@@ -2973,8 +3008,8 @@ export interface ApiRequests {
2973
3008
  yesNext?: string;
2974
3009
  /** Workflow steps: condition and wait_for_connection only, required: where the No (Not accepted) path goes: another step's key, or "end" to stop there. Fixed once the campaign launches. */
2975
3010
  noNext?: string;
2976
- /** condition only, required: linkedin_connected, has_email, opened_last_email (needs an email before it on every path) or field_value. Fixed once the campaign launches. */
2977
- check?: "linkedin_connected" | "has_email" | "opened_last_email" | "field_value";
3011
+ /** condition only, required: linkedin_connected, has_email, has_x, opened_last_email (needs an email before it on every path) or field_value. Fixed once the campaign launches. */
3012
+ check?: "linkedin_connected" | "has_email" | "has_x" | "opened_last_email" | "field_value";
2978
3013
  /** condition with check=field_value: the lead field to check, like "Job Title" or "Source" (the campaign itself changes Status, Last touch and LinkedIn connection). Fixed once the campaign launches. */
2979
3014
  conditionField?: string;
2980
3015
  /** condition with check=field_value: is, is_not, contains, is_empty or is_not_empty (all case-insensitive). Fixed once the campaign launches. */
@@ -2993,7 +3028,7 @@ export interface ApiRequests {
2993
3028
  /** The steps to change. Rejected, not trimmed: a field the step type would drop, an overlength note/message/InMail subject, out-of-range wait/withdrawal/post-age/acceptance values, {TOKEN} single braces, and a changed path or If / else check. */
2994
3029
  steps: Array<{
2995
3030
  /** The step's current type. A launched step's type can't change. */
2996
- type: "wait" | "email" | "linkedin_connection" | "linkedin_message" | "linkedin_visit" | "linkedin_like_post" | "linkedin_inmail" | "condition" | "wait_for_connection";
3031
+ type: "wait" | "email" | "linkedin_connection" | "linkedin_message" | "linkedin_visit" | "linkedin_like_post" | "linkedin_inmail" | "x_follow" | "x_like_post" | "x_reply_post" | "x_dm" | "condition" | "wait_for_connection";
2997
3032
  /** wait steps: hours to wait before the next step. */
2998
3033
  waitHours?: number;
2999
3034
  /** Legacy email step sender. Pool campaigns choose senders in emailMailboxAccountIds on the campaign, not on individual steps. */
@@ -3030,6 +3065,12 @@ export interface ApiRequests {
3030
3065
  inmailSubject?: string;
3031
3066
  /** linkedin_connection only: withdraw a still-pending invitation sent by this campaign after 168-2160 hours (7-90 days). Omitted means off on creation; null turns it off on edit. */
3032
3067
  withdrawAfterHours?: number | null;
3068
+ /** Legacy X step sender. Pool campaigns use the campaign's xAccountIds instead. */
3069
+ xAccountId?: string;
3070
+ /** x_reply_post (up to 280 chars) and x_dm (up to 10,000 chars): message template; {{variable}} merge tokens allowed. */
3071
+ xMessageBody?: string;
3072
+ /** x_like_post and x_reply_post: target the newest original X post from the last 1-365 days (default 30). */
3073
+ xMaxPostAgeDays?: number;
3033
3074
  /** Workflow steps: this step's id, unique in the campaign, which next, yesNext and noNext point at (not "end"). Left out, one is made. */
3034
3075
  key?: string;
3035
3076
  /** Workflow steps: where a step that isn't a condition or wait_for_connection goes; left out, the following step: another step's key, or "end" to stop there. Fixed once the campaign launches. */
@@ -3038,8 +3079,8 @@ export interface ApiRequests {
3038
3079
  yesNext?: string;
3039
3080
  /** Workflow steps: condition and wait_for_connection only, required: where the No (Not accepted) path goes: another step's key, or "end" to stop there. Fixed once the campaign launches. */
3040
3081
  noNext?: string;
3041
- /** condition only, required: linkedin_connected, has_email, opened_last_email (needs an email before it on every path) or field_value. Fixed once the campaign launches. */
3042
- check?: "linkedin_connected" | "has_email" | "opened_last_email" | "field_value";
3082
+ /** condition only, required: linkedin_connected, has_email, has_x, opened_last_email (needs an email before it on every path) or field_value. Fixed once the campaign launches. */
3083
+ check?: "linkedin_connected" | "has_email" | "has_x" | "opened_last_email" | "field_value";
3043
3084
  /** condition with check=field_value: the lead field to check, like "Job Title" or "Source" (the campaign itself changes Status, Last touch and LinkedIn connection). Fixed once the campaign launches. */
3044
3085
  conditionField?: string;
3045
3086
  /** condition with check=field_value: is, is_not, contains, is_empty or is_not_empty (all case-insensitive). Fixed once the campaign launches. */
@@ -6377,6 +6418,7 @@ export interface ApiResponses {
6377
6418
  finishedAt?: number;
6378
6419
  };
6379
6420
  "meetings.list": unknown;
6421
+ "meetings.search": unknown;
6380
6422
  "meetings.recording.get": {
6381
6423
  /** Short-lived signed MP4 video URL (expires in minutes), or null when video is unavailable. */
6382
6424
  videoUrl: string | null;
@@ -7050,6 +7092,8 @@ export interface ApiResponses {
7050
7092
  emailMailboxAccountIds?: string[];
7051
7093
  /** Campaign LinkedIn sender pool: up to 50 linkedinAccounts ids both you and the campaign owner may use. Omit to preserve existing configuration; [] clears the pool. Legacy step senders remain until a pool is configured. */
7052
7094
  linkedinAccountIds?: string[];
7095
+ /** Campaign X sender pool: up to 50 xAccounts ids both you and the campaign owner may use. Omit to preserve existing configuration; [] clears the pool. */
7096
+ xAccountIds?: string[];
7053
7097
  timezone?: string;
7054
7098
  startsAt?: number;
7055
7099
  endsAt?: number;
@@ -7117,6 +7161,8 @@ export interface ApiResponses {
7117
7161
  emailMailboxAccountIds?: string[];
7118
7162
  /** Campaign LinkedIn sender pool: up to 50 linkedinAccounts ids both you and the campaign owner may use. Omit to preserve existing configuration; [] clears the pool. Legacy step senders remain until a pool is configured. */
7119
7163
  linkedinAccountIds?: string[];
7164
+ /** Campaign X sender pool: up to 50 xAccounts ids both you and the campaign owner may use. Omit to preserve existing configuration; [] clears the pool. */
7165
+ xAccountIds?: string[];
7120
7166
  timezone?: string;
7121
7167
  startsAt?: number;
7122
7168
  endsAt?: number;
@@ -7317,6 +7363,8 @@ export interface ApiResponses {
7317
7363
  emailMailboxAccountIds?: string[];
7318
7364
  /** Campaign LinkedIn sender pool: up to 50 linkedinAccounts ids both you and the campaign owner may use. Omit to preserve existing configuration; [] clears the pool. Legacy step senders remain until a pool is configured. */
7319
7365
  linkedinAccountIds?: string[];
7366
+ /** Campaign X sender pool: up to 50 xAccounts ids both you and the campaign owner may use. Omit to preserve existing configuration; [] clears the pool. */
7367
+ xAccountIds?: string[];
7320
7368
  timezone?: string;
7321
7369
  startsAt?: number;
7322
7370
  endsAt?: number;
@@ -7353,7 +7401,7 @@ export interface ApiResponses {
7353
7401
  /** The steps in order, each with its _id. condition and wait_for_connection steps also carry a readable label. */
7354
7402
  steps: Array<{
7355
7403
  /** Step type. condition (If / else) and wait_for_connection (Wait for them to accept) send nothing; they continue on yesNext or noNext and make the campaign a workflow. */
7356
- type: "wait" | "email" | "linkedin_connection" | "linkedin_message" | "linkedin_visit" | "linkedin_like_post" | "linkedin_inmail" | "condition" | "wait_for_connection";
7404
+ type: "wait" | "email" | "linkedin_connection" | "linkedin_message" | "linkedin_visit" | "linkedin_like_post" | "linkedin_inmail" | "x_follow" | "x_like_post" | "x_reply_post" | "x_dm" | "condition" | "wait_for_connection";
7357
7405
  /** wait steps: hours to wait before the next step. */
7358
7406
  waitHours?: number;
7359
7407
  /** Legacy email step sender. Pool campaigns choose senders in emailMailboxAccountIds on the campaign, not on individual steps. */
@@ -7390,6 +7438,12 @@ export interface ApiResponses {
7390
7438
  inmailSubject?: string;
7391
7439
  /** linkedin_connection only: withdraw a still-pending invitation sent by this campaign after 168-2160 hours (7-90 days). Omitted means off on creation; null turns it off on edit. */
7392
7440
  withdrawAfterHours?: number | null;
7441
+ /** Legacy X step sender. Pool campaigns use the campaign's xAccountIds instead. */
7442
+ xAccountId?: string;
7443
+ /** x_reply_post (up to 280 chars) and x_dm (up to 10,000 chars): message template; {{variable}} merge tokens allowed. */
7444
+ xMessageBody?: string;
7445
+ /** x_like_post and x_reply_post: target the newest original X post from the last 1-365 days (default 30). */
7446
+ xMaxPostAgeDays?: number;
7393
7447
  /** Workflow steps: this step's id, unique in the campaign, which next, yesNext and noNext point at (not "end"). Left out, one is made. */
7394
7448
  key?: string;
7395
7449
  /** Workflow steps: where a step that isn't a condition or wait_for_connection goes; left out, the following step: another step's key, or "end" to stop there. Fixed once the campaign launches. */
@@ -7398,8 +7452,8 @@ export interface ApiResponses {
7398
7452
  yesNext?: string;
7399
7453
  /** Workflow steps: condition and wait_for_connection only, required: where the No (Not accepted) path goes: another step's key, or "end" to stop there. Fixed once the campaign launches. */
7400
7454
  noNext?: string;
7401
- /** condition only, required: linkedin_connected, has_email, opened_last_email (needs an email before it on every path) or field_value. Fixed once the campaign launches. */
7402
- check?: "linkedin_connected" | "has_email" | "opened_last_email" | "field_value";
7455
+ /** condition only, required: linkedin_connected, has_email, has_x, opened_last_email (needs an email before it on every path) or field_value. Fixed once the campaign launches. */
7456
+ check?: "linkedin_connected" | "has_email" | "has_x" | "opened_last_email" | "field_value";
7403
7457
  /** condition with check=field_value: the lead field to check, like "Job Title" or "Source" (the campaign itself changes Status, Last touch and LinkedIn connection). Fixed once the campaign launches. */
7404
7458
  conditionField?: string;
7405
7459
  /** condition with check=field_value: is, is_not, contains, is_empty or is_not_empty (all case-insensitive). Fixed once the campaign launches. */
@@ -7746,7 +7800,7 @@ export interface ApiResponses {
7746
7800
  /** The campaign's steps in order, each with its _id. */
7747
7801
  steps: Array<{
7748
7802
  /** Step type. condition (If / else) and wait_for_connection (Wait for them to accept) send nothing; they continue on yesNext or noNext and make the campaign a workflow. */
7749
- type: "wait" | "email" | "linkedin_connection" | "linkedin_message" | "linkedin_visit" | "linkedin_like_post" | "linkedin_inmail" | "condition" | "wait_for_connection";
7803
+ type: "wait" | "email" | "linkedin_connection" | "linkedin_message" | "linkedin_visit" | "linkedin_like_post" | "linkedin_inmail" | "x_follow" | "x_like_post" | "x_reply_post" | "x_dm" | "condition" | "wait_for_connection";
7750
7804
  /** wait steps: hours to wait before the next step. */
7751
7805
  waitHours?: number;
7752
7806
  /** Legacy email step sender. Pool campaigns choose senders in emailMailboxAccountIds on the campaign, not on individual steps. */
@@ -7783,6 +7837,12 @@ export interface ApiResponses {
7783
7837
  inmailSubject?: string;
7784
7838
  /** linkedin_connection only: withdraw a still-pending invitation sent by this campaign after 168-2160 hours (7-90 days). Omitted means off on creation; null turns it off on edit. */
7785
7839
  withdrawAfterHours?: number | null;
7840
+ /** Legacy X step sender. Pool campaigns use the campaign's xAccountIds instead. */
7841
+ xAccountId?: string;
7842
+ /** x_reply_post (up to 280 chars) and x_dm (up to 10,000 chars): message template; {{variable}} merge tokens allowed. */
7843
+ xMessageBody?: string;
7844
+ /** x_like_post and x_reply_post: target the newest original X post from the last 1-365 days (default 30). */
7845
+ xMaxPostAgeDays?: number;
7786
7846
  /** Workflow steps: this step's id, unique in the campaign, which next, yesNext and noNext point at (not "end"). Left out, one is made. */
7787
7847
  key?: string;
7788
7848
  /** Workflow steps: where a step that isn't a condition or wait_for_connection goes; left out, the following step: another step's key, or "end" to stop there. Fixed once the campaign launches. */
@@ -7791,8 +7851,8 @@ export interface ApiResponses {
7791
7851
  yesNext?: string;
7792
7852
  /** Workflow steps: condition and wait_for_connection only, required: where the No (Not accepted) path goes: another step's key, or "end" to stop there. Fixed once the campaign launches. */
7793
7853
  noNext?: string;
7794
- /** condition only, required: linkedin_connected, has_email, opened_last_email (needs an email before it on every path) or field_value. Fixed once the campaign launches. */
7795
- check?: "linkedin_connected" | "has_email" | "opened_last_email" | "field_value";
7854
+ /** condition only, required: linkedin_connected, has_email, has_x, opened_last_email (needs an email before it on every path) or field_value. Fixed once the campaign launches. */
7855
+ check?: "linkedin_connected" | "has_email" | "has_x" | "opened_last_email" | "field_value";
7796
7856
  /** condition with check=field_value: the lead field to check, like "Job Title" or "Source" (the campaign itself changes Status, Last touch and LinkedIn connection). Fixed once the campaign launches. */
7797
7857
  conditionField?: string;
7798
7858
  /** condition with check=field_value: is, is_not, contains, is_empty or is_not_empty (all case-insensitive). Fixed once the campaign launches. */
@@ -7809,7 +7869,7 @@ export interface ApiResponses {
7809
7869
  /** The step's place, from 0. */
7810
7870
  stepIndex: number;
7811
7871
  /** Step type. condition (If / else) and wait_for_connection (Wait for them to accept) send nothing; they continue on yesNext or noNext and make the campaign a workflow. */
7812
- type: "wait" | "email" | "linkedin_connection" | "linkedin_message" | "linkedin_visit" | "linkedin_like_post" | "linkedin_inmail" | "condition" | "wait_for_connection";
7872
+ type: "wait" | "email" | "linkedin_connection" | "linkedin_message" | "linkedin_visit" | "linkedin_like_post" | "linkedin_inmail" | "x_follow" | "x_like_post" | "x_reply_post" | "x_dm" | "condition" | "wait_for_connection";
7813
7873
  /** sent: done (a wait that finished is sent too). skipped: see result.reason. retry: will be tried again at retryAt. unknown: needs a look. */
7814
7874
  status: "queued" | "running" | "waiting" | "retry" | "sent" | "skipped" | "failed" | "unknown";
7815
7875
  scheduledAt?: number;
@@ -9890,6 +9950,8 @@ export type DenchApiTree = {
9890
9950
  /** Get short-lived signed playback/download URLs for a meeting's recorded video (MP4) and audio. (`dench meetings recording`) */
9891
9951
  get(args: Req<"meetings.recording.get">): Promise<Res<"meetings.recording.get">>;
9892
9952
  };
9953
+ /** Fast search across all readable meeting transcripts and summaries by keyword, sound-alike/ASR-tolerant match, speaker, participant, or date range. (`dench meetings search`) */
9954
+ search(args?: Req<"meetings.search">): Promise<Res<"meetings.search">>;
9893
9955
  sharing: {
9894
9956
  /** Whether a meeting is shared with the whole workspace, and whether you may change that. (`dench meetings share`) */
9895
9957
  get(args: Req<"meetings.sharing.get">): Promise<Res<"meetings.sharing.get">>;
@@ -10339,6 +10401,8 @@ export interface DenchMembers {
10339
10401
  export interface DenchMeetings {
10340
10402
  /** Meetings (CRM `meeting` rows), newest first. Permission: `meetings:read`. Wraps `meetings.list`. */
10341
10403
  list(opts?: Req<"meetings.list">): Promise<Res<"meetings.list">>;
10404
+ /** Fast search across readable meeting transcripts and summaries (with sound-alike/ASR-tolerant matching). Permission: `meetings:read`. Wraps `meetings.search`. */
10405
+ search(query: string, opts?: Omit<Req<"meetings.search">, "query">): Promise<Res<"meetings.search">>;
10342
10406
  /** Short-lived signed video/audio URLs for a recorded meeting. Permission: `meetings:read`. Wraps `meetings.recording.get`. */
10343
10407
  recording(meetingEntryId: string): Promise<Res<"meetings.recording.get">>;
10344
10408
  /** Transcript segments of a meeting. Permission: `meetings:read`. Wraps `meetings.transcript.list`. */
@@ -478,6 +478,13 @@ const campaignSenderPools = {
478
478
  .describe(
479
479
  "Campaign LinkedIn sender pool: up to 50 linkedinAccounts ids both you and the campaign owner may use. Omit to preserve existing configuration; [] clears the pool. Legacy step senders remain until a pool is configured.",
480
480
  ),
481
+ xAccountIds: z
482
+ .array(z.string().trim().min(1))
483
+ .max(50)
484
+ .optional()
485
+ .describe(
486
+ "Campaign X sender pool: up to 50 xAccounts ids both you and the campaign owner may use. Omit to preserve existing configuration; [] clears the pool.",
487
+ ),
481
488
  };
482
489
 
483
490
  const campaignLineVariable = z
@@ -866,6 +873,27 @@ const campaignStepInput = z
866
873
  .describe(
867
874
  `linkedin_connection only: withdraw a still-pending invitation sent by this campaign after ${MIN_WITHDRAW_AFTER_HOURS}-${MAX_WAIT_HOURS} hours (7-90 days). Omitted means off on creation; null turns it off on edit.`,
868
875
  ),
876
+ xAccountId: z
877
+ .string()
878
+ .optional()
879
+ .describe(
880
+ "Legacy X step sender. Pool campaigns use the campaign's xAccountIds instead.",
881
+ ),
882
+ xMessageBody: z
883
+ .string()
884
+ .optional()
885
+ .describe(
886
+ "x_reply_post (up to 280 chars) and x_dm (up to 10,000 chars): message template; {{variable}} merge tokens allowed.",
887
+ ),
888
+ xMaxPostAgeDays: z
889
+ .number()
890
+ .int()
891
+ .min(1)
892
+ .max(365)
893
+ .optional()
894
+ .describe(
895
+ "x_like_post and x_reply_post: target the newest original X post from the last 1-365 days (default 30).",
896
+ ),
869
897
  key: z
870
898
  .string()
871
899
  .min(1)
@@ -886,7 +914,7 @@ const campaignStepInput = z
886
914
  .enum(CONDITION_CHECKS)
887
915
  .optional()
888
916
  .describe(
889
- "condition only, required: linkedin_connected, has_email, opened_last_email (needs an email before it on every path) or field_value. Fixed once the campaign launches.",
917
+ "condition only, required: linkedin_connected, has_email, has_x, opened_last_email (needs an email before it on every path) or field_value. Fixed once the campaign launches.",
890
918
  ),
891
919
  conditionField: z
892
920
  .string()
@@ -4684,6 +4712,89 @@ export const requestSchemas: Record<string, ZodTypeAny> = {
4684
4712
  .optional()
4685
4713
  .describe("continueCursor from the prior page."),
4686
4714
  }),
4715
+ "meetings.search": z.object({
4716
+ query: z
4717
+ .string()
4718
+ .min(1)
4719
+ .max(500)
4720
+ .describe(
4721
+ "Keywords or phrase to search across readable meeting transcripts, titles, outcomes, summaries, and decisions.",
4722
+ ),
4723
+ alsoMatch: z
4724
+ .union([
4725
+ z.array(z.string().min(1).max(200)).max(6),
4726
+ z.string().min(1).max(200),
4727
+ ])
4728
+ .optional()
4729
+ .describe(
4730
+ "Optional extra keywords, synonyms, or sound-alike spellings searched in the same pass.",
4731
+ ),
4732
+ meetingEntryId: z
4733
+ .string()
4734
+ .min(1)
4735
+ .max(200)
4736
+ .optional()
4737
+ .describe("Optional meeting record id to restrict search to one call."),
4738
+ speaker: z
4739
+ .string()
4740
+ .min(1)
4741
+ .max(200)
4742
+ .optional()
4743
+ .describe(
4744
+ "Filter transcript hits to lines spoken by someone matching this name or email.",
4745
+ ),
4746
+ participant: z
4747
+ .string()
4748
+ .min(1)
4749
+ .max(200)
4750
+ .optional()
4751
+ .describe(
4752
+ "Filter to meetings attended by someone matching this name or email.",
4753
+ ),
4754
+ after: z
4755
+ .union([z.string().min(1).max(64), z.coerce.number()])
4756
+ .optional()
4757
+ .describe(
4758
+ "Only include meetings starting on or after this ISO date (YYYY-MM-DD) or epoch ms.",
4759
+ ),
4760
+ before: z
4761
+ .union([z.string().min(1).max(64), z.coerce.number()])
4762
+ .optional()
4763
+ .describe(
4764
+ "Only include meetings starting on or before this ISO date (YYYY-MM-DD) or epoch ms.",
4765
+ ),
4766
+ fuzzy: z.coerce
4767
+ .boolean()
4768
+ .optional()
4769
+ .describe(
4770
+ "Enable sound-alike / speech-to-text tolerant and prefix matching (default true).",
4771
+ ),
4772
+ contextLines: z.coerce
4773
+ .number()
4774
+ .int()
4775
+ .min(0)
4776
+ .max(3)
4777
+ .optional()
4778
+ .describe(
4779
+ "Surrounding transcript lines to include before and after each matched quote (0–3, default 1).",
4780
+ ),
4781
+ limit: z.coerce
4782
+ .number()
4783
+ .int()
4784
+ .min(1)
4785
+ .max(50)
4786
+ .optional()
4787
+ .describe("Maximum matching meetings to return (1–50, default 10)."),
4788
+ maxHitsPerMeeting: z.coerce
4789
+ .number()
4790
+ .int()
4791
+ .min(1)
4792
+ .max(10)
4793
+ .optional()
4794
+ .describe(
4795
+ "Maximum matched transcript excerpts per meeting (1–10, default 3).",
4796
+ ),
4797
+ }),
4687
4798
  "meetings.recording.get": z.object({
4688
4799
  meetingEntryId: z
4689
4800
  .string()
@@ -325,6 +325,7 @@ export const APP_SDK_OPERATIONS: readonly AppSdkOperationInfo[] = [
325
325
  {"id":"crm.exports.start","group":"crm","summary":"Start a server-side CSV export of a CRM object into the workspace files (/exports). Returns at once; one export runs per workspace, and a second start returns the running one.","cli":"dench crm exports start","method":"POST","path":"/crm/exports","permission":"crm:write","pathParams":[]},
326
326
  {"id":"crm.exports.get","group":"crm","summary":"Read a CRM CSV export's progress, and its file path and download link once done.","cli":"dench crm exports get","method":"GET","path":"/crm/exports/{jobId}","permission":"crm:read","pathParams":["jobId"]},
327
327
  {"id":"meetings.list","group":"meetings","summary":"List meetings, newest first, with status and participants.","cli":"dench meetings list","method":"GET","path":"/meetings","permission":"meetings:read","pathParams":[]},
328
+ {"id":"meetings.search","group":"meetings","summary":"Fast search across all readable meeting transcripts and summaries by keyword, sound-alike/ASR-tolerant match, speaker, participant, or date range.","cli":"dench meetings search","method":"GET","path":"/meetings/search","permission":"meetings:read","pathParams":[]},
328
329
  {"id":"meetings.recording.get","group":"meetings","summary":"Get short-lived signed playback/download URLs for a meeting's recorded video (MP4) and audio.","cli":"dench meetings recording","method":"GET","path":"/meetings/{meetingEntryId}/recording","permission":"meetings:read","pathParams":["meetingEntryId"]},
329
330
  {"id":"meetings.transcript.list","group":"meetings","summary":"Read a meeting's transcript, in order, one page at a time.","cli":"dench meetings transcript get","method":"GET","path":"/meetings/{meetingEntryId}/transcript","permission":"meetings:read","pathParams":["meetingEntryId"]},
330
331
  {"id":"meetings.transcript.append","group":"meetings","summary":"Append up to 500 transcript segments to a meeting (speakers with an email link to existing people).","cli":"dench meetings transcript set","method":"POST","path":"/meetings/{meetingEntryId}/transcript","permission":"meetings:write","pathParams":["meetingEntryId"]},
@@ -604,6 +605,7 @@ export const APP_SDK_METHODS: Readonly<Record<string, AppSdkMethodInfo>> = {
604
605
  "members.me": {"kind":"op","permission":"members:read","op":"me.profile.get","doc":"My own profile."},
605
606
  "members.updateMe": {"kind":"op","permission":"members:write","op":"me.profile.update","doc":"Update my name / tagline / timezone."},
606
607
  "meetings.list": {"kind":"op","permission":"meetings:read","op":"meetings.list","doc":"Meetings (CRM `meeting` rows), newest first."},
608
+ "meetings.search": {"kind":"op","permission":"meetings:read","op":"meetings.search","doc":"Fast search across readable meeting transcripts and summaries (with sound-alike/ASR-tolerant matching)."},
607
609
  "meetings.recording": {"kind":"op","permission":"meetings:read","op":"meetings.recording.get","doc":"Short-lived signed video/audio URLs for a recorded meeting."},
608
610
  "meetings.transcript": {"kind":"op","permission":"meetings:read","op":"meetings.transcript.list","doc":"Transcript segments of a meeting."},
609
611
  "meetings.actionItems": {"kind":"op","permission":"meetings:read","op":"meetings.actionItems.list","doc":"Action items of a meeting."},
@@ -557,6 +557,12 @@ export const APP_SDK_SURFACE: AppSdkSurface = {
557
557
  args: `opts?: ${A("meetings.list")}`,
558
558
  returns: R("meetings.list"),
559
559
  },
560
+ search: {
561
+ op: "meetings.search",
562
+ doc: "Fast search across readable meeting transcripts and summaries (with sound-alike/ASR-tolerant matching).",
563
+ args: `query: string, opts?: ${Rest("meetings.search", "query")}`,
564
+ returns: R("meetings.search"),
565
+ },
560
566
  recording: {
561
567
  op: "meetings.recording.get",
562
568
  doc: "Short-lived signed video/audio URLs for a recorded meeting.",
@@ -27,6 +27,10 @@ export const STEP_TYPES = [
27
27
  "linkedin_visit",
28
28
  "linkedin_like_post",
29
29
  "linkedin_inmail",
30
+ "x_follow",
31
+ "x_like_post",
32
+ "x_reply_post",
33
+ "x_dm",
30
34
  "condition",
31
35
  "wait_for_connection",
32
36
  ] as const;
@@ -41,6 +45,7 @@ export const WORKFLOW_END = "end";
41
45
  export const CONDITION_CHECKS = [
42
46
  "linkedin_connected",
43
47
  "has_email",
48
+ "has_x",
44
49
  "opened_last_email",
45
50
  "field_value",
46
51
  ] as const;
@@ -77,6 +82,9 @@ export const STEP_KEYS = [
77
82
  "likeCount",
78
83
  "inmailSubject",
79
84
  "withdrawAfterHours",
85
+ "xAccountId",
86
+ "xMessageBody",
87
+ "xMaxPostAgeDays",
80
88
  "key",
81
89
  "next",
82
90
  "yesNext",
@@ -143,6 +151,10 @@ const FIELDS_BY_TYPE: Record<StepType, readonly string[]> = {
143
151
  "linkedinMessageBody",
144
152
  "inmailSubject",
145
153
  ],
154
+ x_follow: ["xAccountId"],
155
+ x_like_post: ["xAccountId", "xMaxPostAgeDays"],
156
+ x_reply_post: ["xAccountId", "xMessageBody", "xMaxPostAgeDays"],
157
+ x_dm: ["xAccountId", "xMessageBody"],
146
158
  condition: [
147
159
  "linkedinAccountId",
148
160
  "check",
@@ -161,6 +173,8 @@ const TEXT_FIELDS = [
161
173
  "linkedinAccountId",
162
174
  "linkedinMessageBody",
163
175
  "inmailSubject",
176
+ "xAccountId",
177
+ "xMessageBody",
164
178
  "conditionField",
165
179
  "conditionValue",
166
180
  ] as const;
@@ -171,6 +185,7 @@ const TEMPLATE_FIELDS = [
171
185
  "emailTextBody",
172
186
  "linkedinMessageBody",
173
187
  "inmailSubject",
188
+ "xMessageBody",
174
189
  ] as const;
175
190
 
176
191
  const ONLY_IF = ["always", "connected", "not_connected"];
@@ -952,6 +967,10 @@ const TYPE_NAMES: Record<StepType, string> = {
952
967
  linkedin_message: "a LinkedIn message",
953
968
  linkedin_like_post: "a post reaction",
954
969
  linkedin_inmail: "an InMail",
970
+ x_follow: "an X follow",
971
+ x_like_post: "an X post like",
972
+ x_reply_post: "an X reply",
973
+ x_dm: "an X DM",
955
974
  condition: "an If / else",
956
975
  wait_for_connection: "a Wait for them to accept",
957
976
  };
@@ -3558,6 +3558,76 @@ const rawApiOperations = [
3558
3558
  }),
3559
3559
  },
3560
3560
  }),
3561
+ op({
3562
+ id: "meetings.search",
3563
+ group: "meetings",
3564
+ summary:
3565
+ "Fast search across all readable meeting transcripts and summaries by keyword, sound-alike/ASR-tolerant match, speaker, participant, or date range.",
3566
+ cli: "dench meetings search",
3567
+ method: "GET",
3568
+ path: "/meetings/search",
3569
+ requestSchema: noBody,
3570
+ responseSchema: anyResponse,
3571
+ backend: {
3572
+ ...convex("query", "functions/meetings/search:searchMeetingTranscripts"),
3573
+ transformArgs: (input) => {
3574
+ const parseDateBound = (
3575
+ value: unknown,
3576
+ bound: "start" | "end",
3577
+ ): number | undefined => {
3578
+ if (typeof value === "number" && Number.isFinite(value)) return value;
3579
+ if (typeof value !== "string") return undefined;
3580
+ const trimmed = value.trim();
3581
+ if (!trimmed) return undefined;
3582
+ if (/^\d{10,13}$/.test(trimmed)) {
3583
+ const n = Number(trimmed);
3584
+ return trimmed.length === 10 ? n * 1000 : n;
3585
+ }
3586
+ if (/^\d{4}-\d{2}-\d{2}$/.test(trimmed)) {
3587
+ const parsed = Date.parse(
3588
+ bound === "end"
3589
+ ? `${trimmed}T23:59:59.999Z`
3590
+ : `${trimmed}T00:00:00.000Z`,
3591
+ );
3592
+ return Number.isFinite(parsed) ? parsed : undefined;
3593
+ }
3594
+ const parsed = Date.parse(trimmed);
3595
+ return Number.isFinite(parsed) ? parsed : undefined;
3596
+ };
3597
+ const rawAlso = input.alsoMatch;
3598
+ const alsoMatch = Array.isArray(rawAlso)
3599
+ ? rawAlso.filter((item): item is string => typeof item === "string")
3600
+ : typeof rawAlso === "string" && rawAlso.trim()
3601
+ ? [rawAlso.trim()]
3602
+ : undefined;
3603
+ const afterMs = parseDateBound(input.after, "start");
3604
+ const beforeMs = parseDateBound(input.before, "end");
3605
+ return {
3606
+ query: typeof input.query === "string" ? input.query : "",
3607
+ ...(alsoMatch && alsoMatch.length > 0 ? { alsoMatch } : {}),
3608
+ ...(typeof input.meetingEntryId === "string" && input.meetingEntryId
3609
+ ? { meetingEntryId: input.meetingEntryId }
3610
+ : {}),
3611
+ ...(typeof input.speaker === "string" && input.speaker.trim()
3612
+ ? { speaker: input.speaker.trim() }
3613
+ : {}),
3614
+ ...(typeof input.participant === "string" && input.participant.trim()
3615
+ ? { participant: input.participant.trim() }
3616
+ : {}),
3617
+ ...(afterMs !== undefined ? { afterMs } : {}),
3618
+ ...(beforeMs !== undefined ? { beforeMs } : {}),
3619
+ ...(typeof input.fuzzy === "boolean" ? { fuzzy: input.fuzzy } : {}),
3620
+ ...(typeof input.contextLines === "number"
3621
+ ? { contextLines: input.contextLines }
3622
+ : {}),
3623
+ ...(typeof input.limit === "number" ? { limit: input.limit } : {}),
3624
+ ...(typeof input.maxHitsPerMeeting === "number"
3625
+ ? { maxHitsPerMeeting: input.maxHitsPerMeeting }
3626
+ : {}),
3627
+ };
3628
+ },
3629
+ },
3630
+ }),
3561
3631
  op({
3562
3632
  id: "meetings.recording.get",
3563
3633
  group: "meetings",