@dench.com/cli 3.12.21-staging.1360 → 3.12.22-staging.1371
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 +30 -0
- package/lib/api-schemas.ts +83 -0
- package/lib/app-sdk-catalog.generated.ts +2 -0
- package/lib/app-sdk-surface.ts +6 -0
- package/lib/command-registry.ts +70 -0
- package/lib/references.generated.json +10 -10
- package/meetings.ts +237 -2
- package/package.json +1 -1
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. */
|
|
@@ -6377,6 +6402,7 @@ export interface ApiResponses {
|
|
|
6377
6402
|
finishedAt?: number;
|
|
6378
6403
|
};
|
|
6379
6404
|
"meetings.list": unknown;
|
|
6405
|
+
"meetings.search": unknown;
|
|
6380
6406
|
"meetings.recording.get": {
|
|
6381
6407
|
/** Short-lived signed MP4 video URL (expires in minutes), or null when video is unavailable. */
|
|
6382
6408
|
videoUrl: string | null;
|
|
@@ -9890,6 +9916,8 @@ export type DenchApiTree = {
|
|
|
9890
9916
|
/** Get short-lived signed playback/download URLs for a meeting's recorded video (MP4) and audio. (`dench meetings recording`) */
|
|
9891
9917
|
get(args: Req<"meetings.recording.get">): Promise<Res<"meetings.recording.get">>;
|
|
9892
9918
|
};
|
|
9919
|
+
/** Fast search across all readable meeting transcripts and summaries by keyword, sound-alike/ASR-tolerant match, speaker, participant, or date range. (`dench meetings search`) */
|
|
9920
|
+
search(args?: Req<"meetings.search">): Promise<Res<"meetings.search">>;
|
|
9893
9921
|
sharing: {
|
|
9894
9922
|
/** Whether a meeting is shared with the whole workspace, and whether you may change that. (`dench meetings share`) */
|
|
9895
9923
|
get(args: Req<"meetings.sharing.get">): Promise<Res<"meetings.sharing.get">>;
|
|
@@ -10339,6 +10367,8 @@ export interface DenchMembers {
|
|
|
10339
10367
|
export interface DenchMeetings {
|
|
10340
10368
|
/** Meetings (CRM `meeting` rows), newest first. Permission: `meetings:read`. Wraps `meetings.list`. */
|
|
10341
10369
|
list(opts?: Req<"meetings.list">): Promise<Res<"meetings.list">>;
|
|
10370
|
+
/** Fast search across readable meeting transcripts and summaries (with sound-alike/ASR-tolerant matching). Permission: `meetings:read`. Wraps `meetings.search`. */
|
|
10371
|
+
search(query: string, opts?: Omit<Req<"meetings.search">, "query">): Promise<Res<"meetings.search">>;
|
|
10342
10372
|
/** Short-lived signed video/audio URLs for a recorded meeting. Permission: `meetings:read`. Wraps `meetings.recording.get`. */
|
|
10343
10373
|
recording(meetingEntryId: string): Promise<Res<"meetings.recording.get">>;
|
|
10344
10374
|
/** Transcript segments of a meeting. Permission: `meetings:read`. Wraps `meetings.transcript.list`. */
|
package/lib/api-schemas.ts
CHANGED
|
@@ -4684,6 +4684,89 @@ export const requestSchemas: Record<string, ZodTypeAny> = {
|
|
|
4684
4684
|
.optional()
|
|
4685
4685
|
.describe("continueCursor from the prior page."),
|
|
4686
4686
|
}),
|
|
4687
|
+
"meetings.search": z.object({
|
|
4688
|
+
query: z
|
|
4689
|
+
.string()
|
|
4690
|
+
.min(1)
|
|
4691
|
+
.max(500)
|
|
4692
|
+
.describe(
|
|
4693
|
+
"Keywords or phrase to search across readable meeting transcripts, titles, outcomes, summaries, and decisions.",
|
|
4694
|
+
),
|
|
4695
|
+
alsoMatch: z
|
|
4696
|
+
.union([
|
|
4697
|
+
z.array(z.string().min(1).max(200)).max(6),
|
|
4698
|
+
z.string().min(1).max(200),
|
|
4699
|
+
])
|
|
4700
|
+
.optional()
|
|
4701
|
+
.describe(
|
|
4702
|
+
"Optional extra keywords, synonyms, or sound-alike spellings searched in the same pass.",
|
|
4703
|
+
),
|
|
4704
|
+
meetingEntryId: z
|
|
4705
|
+
.string()
|
|
4706
|
+
.min(1)
|
|
4707
|
+
.max(200)
|
|
4708
|
+
.optional()
|
|
4709
|
+
.describe("Optional meeting record id to restrict search to one call."),
|
|
4710
|
+
speaker: z
|
|
4711
|
+
.string()
|
|
4712
|
+
.min(1)
|
|
4713
|
+
.max(200)
|
|
4714
|
+
.optional()
|
|
4715
|
+
.describe(
|
|
4716
|
+
"Filter transcript hits to lines spoken by someone matching this name or email.",
|
|
4717
|
+
),
|
|
4718
|
+
participant: z
|
|
4719
|
+
.string()
|
|
4720
|
+
.min(1)
|
|
4721
|
+
.max(200)
|
|
4722
|
+
.optional()
|
|
4723
|
+
.describe(
|
|
4724
|
+
"Filter to meetings attended by someone matching this name or email.",
|
|
4725
|
+
),
|
|
4726
|
+
after: z
|
|
4727
|
+
.union([z.string().min(1).max(64), z.coerce.number()])
|
|
4728
|
+
.optional()
|
|
4729
|
+
.describe(
|
|
4730
|
+
"Only include meetings starting on or after this ISO date (YYYY-MM-DD) or epoch ms.",
|
|
4731
|
+
),
|
|
4732
|
+
before: z
|
|
4733
|
+
.union([z.string().min(1).max(64), z.coerce.number()])
|
|
4734
|
+
.optional()
|
|
4735
|
+
.describe(
|
|
4736
|
+
"Only include meetings starting on or before this ISO date (YYYY-MM-DD) or epoch ms.",
|
|
4737
|
+
),
|
|
4738
|
+
fuzzy: z.coerce
|
|
4739
|
+
.boolean()
|
|
4740
|
+
.optional()
|
|
4741
|
+
.describe(
|
|
4742
|
+
"Enable sound-alike / speech-to-text tolerant and prefix matching (default true).",
|
|
4743
|
+
),
|
|
4744
|
+
contextLines: z.coerce
|
|
4745
|
+
.number()
|
|
4746
|
+
.int()
|
|
4747
|
+
.min(0)
|
|
4748
|
+
.max(3)
|
|
4749
|
+
.optional()
|
|
4750
|
+
.describe(
|
|
4751
|
+
"Surrounding transcript lines to include before and after each matched quote (0–3, default 1).",
|
|
4752
|
+
),
|
|
4753
|
+
limit: z.coerce
|
|
4754
|
+
.number()
|
|
4755
|
+
.int()
|
|
4756
|
+
.min(1)
|
|
4757
|
+
.max(50)
|
|
4758
|
+
.optional()
|
|
4759
|
+
.describe("Maximum matching meetings to return (1–50, default 10)."),
|
|
4760
|
+
maxHitsPerMeeting: z.coerce
|
|
4761
|
+
.number()
|
|
4762
|
+
.int()
|
|
4763
|
+
.min(1)
|
|
4764
|
+
.max(10)
|
|
4765
|
+
.optional()
|
|
4766
|
+
.describe(
|
|
4767
|
+
"Maximum matched transcript excerpts per meeting (1–10, default 3).",
|
|
4768
|
+
),
|
|
4769
|
+
}),
|
|
4687
4770
|
"meetings.recording.get": z.object({
|
|
4688
4771
|
meetingEntryId: z
|
|
4689
4772
|
.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."},
|
package/lib/app-sdk-surface.ts
CHANGED
|
@@ -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.",
|
package/lib/command-registry.ts
CHANGED
|
@@ -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",
|