@wirecat/zoom-cli 0.75.0 → 0.76.0
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/dist/bin/zm.js +2 -2
- package/dist/bundle/{all-profiles-WFLKFKJC.js → all-profiles-AAMFP7IN.js} +11 -11
- package/dist/bundle/answer-policy-ETAELI4A.js +110 -0
- package/dist/bundle/{anthropic-H45W4P22.js → anthropic-6KIS53QB.js} +6 -6
- package/dist/bundle/{app-server-I4FPLBIX.js → app-server-6QYNNYEU.js} +57 -57
- package/dist/bundle/{bun-V5QLYBZU.js → bun-QVVCH4MJ.js} +2 -2
- package/dist/bundle/{bun-sqlite-X2YZPHDS.js → bun-sqlite-Y2ZFMNQ3.js} +7 -7
- package/dist/bundle/{chunk-P4ZQQLZF.js → chunk-25GMFXPF.js} +707 -698
- package/dist/bundle/{chunk-PX4IMYVB.js → chunk-2HKUQ7DR.js} +3 -3
- package/dist/bundle/{chunk-M4OP5ASJ.js → chunk-35AH33VJ.js} +1 -1
- package/dist/bundle/{chunk-4RJL32PF.js → chunk-3D5PETD2.js} +26 -9
- package/dist/bundle/{chunk-C5WQ57AB.js → chunk-4ERYXY4Y.js} +1 -1
- package/dist/bundle/{chunk-HKPNQL52.js → chunk-4JPOELCT.js} +4 -4
- package/dist/bundle/{chunk-QBKKTTA3.js → chunk-55SWKR6Y.js} +181 -158
- package/dist/bundle/{chunk-2PYZTRRC.js → chunk-5EII5RIL.js} +1 -1
- package/dist/bundle/{chunk-F6RB5FHZ.js → chunk-5T7TBK5Y.js} +1 -1
- package/dist/bundle/{chunk-NU4FSSMN.js → chunk-64N7MY3I.js} +3 -3
- package/dist/bundle/{chunk-532H3KT3.js → chunk-65VRWNDP.js} +4 -4
- package/dist/bundle/{chunk-T25PR26L.js → chunk-6SXCGS3A.js} +7 -7
- package/dist/bundle/{chunk-CAQ5GW3A.js → chunk-6VCQ4CTK.js} +1 -1
- package/dist/bundle/{chunk-MNVT7EJS.js → chunk-7RORMNKP.js} +2 -2
- package/dist/bundle/{chunk-IDGWBKMH.js → chunk-B7ZREOBD.js} +12 -12
- package/dist/bundle/{chunk-LRCSDAYK.js → chunk-CE5Y7PQU.js} +4 -4
- package/dist/bundle/{chunk-IW245Q5B.js → chunk-CPOFLYPU.js} +33 -29
- package/dist/bundle/{chunk-HNWDEDMU.js → chunk-CS62FET6.js} +21 -21
- package/dist/bundle/{chunk-DUPFAY35.js → chunk-CXHUOPN5.js} +7 -7
- package/dist/bundle/{chunk-DQBLDZ7M.js → chunk-D2TGXSHQ.js} +5 -5
- package/dist/bundle/{chunk-ELD5AC7Q.js → chunk-DQHS336B.js} +6 -6
- package/dist/bundle/{chunk-VUPWDCYV.js → chunk-EBIK5Q73.js} +1 -1
- package/dist/bundle/{chunk-3YRPDNWK.js → chunk-ELW3LMJZ.js} +803 -359
- package/dist/bundle/{chunk-HCZYJMBP.js → chunk-EPPE6ZTS.js} +1 -1
- package/dist/bundle/{chunk-K5E5MB4C.js → chunk-EZJSAYWZ.js} +21 -21
- package/dist/bundle/{chunk-7ZVWV33Z.js → chunk-EZXW3ZCR.js} +35 -13
- package/dist/bundle/{chunk-IO3BQ6JU.js → chunk-FBVJGJDM.js} +29 -28
- package/dist/bundle/{chunk-ZMHZ6CQS.js → chunk-FGRFIXG2.js} +2 -2
- package/dist/bundle/{chunk-3HTJBGNP.js → chunk-FMJ4QSSU.js} +21 -16
- package/dist/bundle/{chunk-NE4GYKQA.js → chunk-GB5LI5RM.js} +6 -6
- package/dist/bundle/{chunk-W2AC2RAG.js → chunk-GPIQY4YB.js} +14 -14
- package/dist/bundle/{chunk-2Q4CB4EI.js → chunk-GYTAHH5Y.js} +2 -2
- package/dist/bundle/{chunk-SEJBS7SI.js → chunk-GZYICXO4.js} +1 -1
- package/dist/bundle/{chunk-GPVSGZ4R.js → chunk-HUHH25AG.js} +434 -410
- package/dist/bundle/{chunk-X2FILY5F.js → chunk-HWYSJ4SL.js} +3 -3
- package/dist/bundle/{chunk-XCJGDPMN.js → chunk-IUSY4ZJK.js} +6109 -5958
- package/dist/bundle/{chunk-RBYVQE3S.js → chunk-IVFNHIU4.js} +5 -5
- package/dist/bundle/{chunk-V3UK6E5B.js → chunk-IXPBSDKB.js} +4 -4
- package/dist/bundle/{chunk-3URYKAJP.js → chunk-JADBHKBP.js} +1 -1
- package/dist/bundle/{chunk-WUWF4EXZ.js → chunk-JWMOHEDL.js} +22 -12
- package/dist/bundle/{chunk-EA2OB75T.js → chunk-K3K3WKDB.js} +1 -1
- package/dist/bundle/{chunk-F7K2V6OA.js → chunk-KEFDP6NL.js} +12 -12
- package/dist/bundle/{chunk-NQQVNLO6.js → chunk-LEVOI6Z3.js} +12 -12
- package/dist/bundle/{chunk-VLK3X53X.js → chunk-LGBLYFKI.js} +2 -2
- package/dist/bundle/{chunk-AVCYD4WQ.js → chunk-LOEK6IFQ.js} +44 -36
- package/dist/bundle/{chunk-PCJRHC5Y.js → chunk-M7WYBGQT.js} +8 -8
- package/dist/bundle/{chunk-JDTZCZ5K.js → chunk-MDTEAKA5.js} +5 -5
- package/dist/bundle/{chunk-GU4FVTJV.js → chunk-NQ356ERO.js} +3 -4
- package/dist/bundle/{chunk-T4FMXDDV.js → chunk-OFODCJ2A.js} +3 -3
- package/dist/bundle/{chunk-FBYGBR4Q.js → chunk-OINDAHXC.js} +4 -4
- package/dist/bundle/{chunk-OUM4ZO53.js → chunk-OOYIPK4F.js} +1 -1
- package/dist/bundle/{chunk-NL6AZ6S2.js → chunk-ORM73DZO.js} +2 -2
- package/dist/bundle/{chunk-P6MQ6FS4.js → chunk-OWZETMRE.js} +8 -8
- package/dist/bundle/{chunk-VPSQZ2YR.js → chunk-PFLJJQWW.js} +33 -33
- package/dist/bundle/{chunk-TSHUBGN4.js → chunk-QLUU3BV2.js} +2 -2
- package/dist/bundle/{chunk-ZBYKCVSV.js → chunk-QY6GE7CL.js} +2 -2
- package/dist/bundle/{chunk-QEO3XTIE.js → chunk-R47GYLNN.js} +29 -32
- package/dist/bundle/{chunk-EOZAJGB4.js → chunk-RJK5ADMH.js} +16 -16
- package/dist/bundle/{chunk-FIVFP53N.js → chunk-RXUVXAMM.js} +1 -1
- package/dist/bundle/{chunk-BY2YPKZZ.js → chunk-T2QVWRJF.js} +13 -13
- package/dist/bundle/{chunk-4YNUQGDP.js → chunk-TK77DCE5.js} +1 -1
- package/dist/bundle/{chunk-IMDTC4MD.js → chunk-TYAFL66K.js} +21 -18
- package/dist/bundle/{chunk-MHXZ62CU.js → chunk-UAV74EY4.js} +1 -1
- package/dist/bundle/{chunk-WQOGHND4.js → chunk-UG2QDGAH.js} +1 -1
- package/dist/bundle/{chunk-6XNTELM5.js → chunk-UYZDH5LK.js} +1 -1
- package/dist/bundle/{chunk-B6Q53CVA.js → chunk-VABYJQYE.js} +10 -10
- package/dist/bundle/{chunk-IJCUAKR5.js → chunk-VCFSUGPE.js} +4 -4
- package/dist/bundle/{chunk-3YKAFLXY.js → chunk-VG63EXRC.js} +2 -2
- package/dist/bundle/{chunk-RABCFGT3.js → chunk-VJANMYEC.js} +3 -3
- package/dist/bundle/{chunk-ZVVRRMLW.js → chunk-VRA4RVQU.js} +3 -3
- package/dist/bundle/{chunk-L5UILROP.js → chunk-WKT5RPSY.js} +8 -8
- package/dist/bundle/{chunk-JTYWSXJG.js → chunk-WNXC42IU.js} +9 -9
- package/dist/bundle/{chunk-FT7X74RT.js → chunk-WZJ7ZYR4.js} +4 -4
- package/dist/bundle/{chunk-PPM7UTCT.js → chunk-X73YEFQE.js} +18 -18
- package/dist/bundle/{chunk-Y5J5CAG2.js → chunk-XC4V6YCS.js} +1 -1
- package/dist/bundle/{chunk-A3Q3PG54.js → chunk-XHVFX74L.js} +2 -2
- package/dist/bundle/{chunk-NQLL4KRN.js → chunk-XRH2NKW4.js} +6 -6
- package/dist/bundle/{chunk-3U3W6YY5.js → chunk-XWQKRKMT.js} +58 -58
- package/dist/bundle/{chunk-RKI4BGWG.js → chunk-Y2BGABXP.js} +3 -3
- package/dist/bundle/{chunk-XUHQ7DVT.js → chunk-Y4WEAWU7.js} +1 -1
- package/dist/bundle/{chunk-4XDWV6VJ.js → chunk-YEBWRWE3.js} +17 -17
- package/dist/bundle/{chunk-4J5GJJ2I.js → chunk-YESHGC3M.js} +2 -2
- package/dist/bundle/{chunk-SR5X7YKB.js → chunk-YGKM2ZWF.js} +3 -3
- package/dist/bundle/{chunk-QXQUANWE.js → chunk-ZETM63M6.js} +6 -6
- package/dist/bundle/{chunk-MAE5UGRQ.js → chunk-ZFYNJERV.js} +6 -6
- package/dist/bundle/{cli-NPRYCWFH.js → cli-FHMLYHUZ.js} +69 -65
- package/dist/bundle/command-contract-HUZ4I23S.js +41 -0
- package/dist/bundle/{command-server-entry-BV4SUPUI.js → command-server-entry-YEZM52R5.js} +31 -31
- package/dist/bundle/config-KVTWN7QZ.js +97 -0
- package/dist/bundle/{decode-PRMKCHHC.js → decode-SIYRMJOK.js} +6 -6
- package/dist/bundle/{dispatch-EU67WGME.js → dispatch-SMER3WDX.js} +9 -9
- package/dist/bundle/{dist-HGLDGKUW.js → dist-BSJETSFE.js} +19 -19
- package/dist/bundle/{echarts-QIXLXS3G.js → echarts-UZJ6AREV.js} +2 -2
- package/dist/bundle/{embed-OZN2BIJY.js → embed-A7DSHVI7.js} +7 -7
- package/dist/bundle/{embedder-RBDHO6Z6.js → embedder-WQBR4UGS.js} +10 -10
- package/dist/bundle/{failure-CTJLEB2R.js → failure-73UQXQTW.js} +3 -3
- package/dist/bundle/first-run-SY6XSUZ3.js +29 -0
- package/dist/bundle/first-screen-ZDMODGWS.js +39 -0
- package/dist/bundle/{folders-MSBTAPAG.js → folders-BH4SV6SI.js} +5 -5
- package/dist/bundle/{instructions-MD2RZT5Z.js → instructions-SDDUBGH4.js} +1 -1
- package/dist/bundle/{main-FPMCCRIQ.js → main-KL4FN5F3.js} +24 -24
- package/dist/bundle/{mcp-TDKGDB4V.js → mcp-GN4FTJX5.js} +2 -2
- package/dist/bundle/{meetings-WYCVHAIP.js → meetings-URPXBHV7.js} +25 -7
- package/dist/bundle/{node-IEVT2FSJ.js → node-ELCNUOCE.js} +2 -2
- package/dist/bundle/{node-sqlite-O4C6IWSM.js → node-sqlite-QLSNHZBM.js} +8 -8
- package/dist/bundle/{oauth-6VXOUXSE.js → oauth-LZ64S7Y3.js} +8 -8
- package/dist/bundle/{open-AMUIWV3Y.js → open-WB4HUPQT.js} +6 -6
- package/dist/bundle/openai-KN6JE4QU.js +28 -0
- package/dist/bundle/{output-file-VDOCYH2G.js → output-file-AHPQA5LR.js} +6 -6
- package/dist/bundle/{process-6Q23D3TO.js → process-67DAKAAQ.js} +1 -1
- package/dist/bundle/{program-CF2NKA2A.js → program-CIMACIBE.js} +87 -81
- package/dist/bundle/{prompt-N3UZE4ZR.js → prompt-GG53UBDJ.js} +6 -6
- package/dist/bundle/{recognize-I5F3K3CZ.js → recognize-CFJ3CAEH.js} +5 -5
- package/dist/bundle/{remote-CJF5KMMY.js → remote-BLEM7C3Q.js} +11 -11
- package/dist/bundle/{rerank-6WLY6MKY.js → rerank-ERN6PC66.js} +8 -8
- package/dist/bundle/run-log-S67YPJF6.js +124 -0
- package/dist/bundle/{serve-FOQJ3WMX.js → serve-FJPPTJXH.js} +10 -10
- package/dist/bundle/{server-OEEGRSQD.js → server-FLUSDUGM.js} +49 -49
- package/dist/bundle/server-UNJY3TSJ.js +74 -0
- package/dist/bundle/{services-Q6SFESMS.js → services-LXC6DVUQ.js} +43 -41
- package/dist/bundle/{speech-PBVEIG4N.js → speech-WFEZTKXA.js} +17 -17
- package/dist/bundle/{sqlite-runtime-IWR65V6I.js → sqlite-runtime-KN33VSP7.js} +7 -7
- package/dist/bundle/{state-G54C2N6U.js → state-TXS4ZHIT.js} +7 -7
- package/dist/bundle/{store-7EWMPTTW.js → store-MUOXLVL4.js} +22 -22
- package/dist/bundle/{store-D5OLXIFW.js → store-ZUREZYZB.js} +20 -20
- package/dist/bundle/store-connection-NRNEBUPU.js +90 -0
- package/dist/bundle/store-maintenance-command-OBOPYFZ5.js +65 -0
- package/dist/bundle/{streaming-PQEXKTE5.js → streaming-ZSCHRC5S.js} +7 -7
- package/dist/bundle/{tokens-J7TFHLEG.js → tokens-YVDOY4EV.js} +10 -10
- package/dist/bundle/zm.js +9 -9
- package/dist/bundle/{zoom-app-SULPMVN4.js → zoom-app-O6GIMB7Y.js} +8 -8
- package/dist/meeting-search-commands.d.ts.map +1 -1
- package/dist/meeting-search-commands.js +6 -5
- package/dist/meeting-search-commands.js.map +1 -1
- package/dist/program-bindings.d.ts.map +1 -1
- package/dist/program-bindings.js +2 -1
- package/dist/program-bindings.js.map +1 -1
- package/dist/run.d.ts.map +1 -1
- package/dist/run.js +3 -1
- package/dist/run.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
- package/dist/bundle/answer-policy-XCKC2LLN.js +0 -110
- package/dist/bundle/command-contract-OJYRKQHR.js +0 -41
- package/dist/bundle/config-UMEV24OE.js +0 -97
- package/dist/bundle/first-run-HNCD7U3B.js +0 -29
- package/dist/bundle/first-screen-374BBMO6.js +0 -39
- package/dist/bundle/openai-MEDN6FSK.js +0 -28
- package/dist/bundle/run-log-FKF4ZX4M.js +0 -124
- package/dist/bundle/server-BAGY5HEZ.js +0 -74
- package/dist/bundle/store-connection-34747SCC.js +0 -90
- package/dist/bundle/store-maintenance-command-QBO67F7Z.js +0 -65
- /package/dist/bundle/{chunk-XWBPP2HX.js → chunk-BDCC2J2Z.js} +0 -0
|
@@ -7,13 +7,15 @@ import {
|
|
|
7
7
|
queryError,
|
|
8
8
|
queryFieldsOf,
|
|
9
9
|
timezoneOf,
|
|
10
|
-
validateQuery
|
|
11
|
-
|
|
10
|
+
validateQuery,
|
|
11
|
+
walkQuery
|
|
12
|
+
} from "./chunk-FMJ4QSSU.js";
|
|
12
13
|
import {
|
|
13
14
|
STEPS,
|
|
14
15
|
array,
|
|
15
16
|
boolean,
|
|
16
17
|
defineSteps,
|
|
18
|
+
exactOptional,
|
|
17
19
|
integer,
|
|
18
20
|
isoTime,
|
|
19
21
|
literal,
|
|
@@ -32,19 +34,19 @@ import {
|
|
|
32
34
|
strictObject,
|
|
33
35
|
string,
|
|
34
36
|
union
|
|
35
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-3D5PETD2.js";
|
|
36
38
|
import {
|
|
37
39
|
CliError
|
|
38
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-K3K3WKDB.js";
|
|
39
41
|
import {
|
|
40
42
|
singleLine,
|
|
41
43
|
visibleControls
|
|
42
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-EPPE6ZTS.js";
|
|
43
45
|
import {
|
|
44
46
|
__name
|
|
45
47
|
} from "./chunk-ZVVMGPBJ.js";
|
|
46
48
|
|
|
47
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
49
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/search/service-query.js
|
|
48
50
|
var BACKENDS = ["archive", "server", "both"];
|
|
49
51
|
var MAX_BRANCHES = 64;
|
|
50
52
|
var some = /* @__PURE__ */ __name((value) => value === void 0 ? [] : [value], "some");
|
|
@@ -79,8 +81,11 @@ var windowOf = /* @__PURE__ */ __name(({ lower, upper, lower_inclusive, upper_in
|
|
|
79
81
|
...lower === void 0 ? {} : { from: lower_inclusive ? lower : lower + 1 },
|
|
80
82
|
...upper === void 0 ? {} : { to: upper_inclusive ? upper : upper - 1 }
|
|
81
83
|
}), "windowOf");
|
|
84
|
+
var RELATIVE_TIME = /^\d+[mhd]$/i;
|
|
85
|
+
var OFFSET = /(?:Z|[+-]\d{2}:?\d{2})$/i;
|
|
86
|
+
var readsZone = /* @__PURE__ */ __name((ast, times) => walkQuery(ast.root).some((term) => times.has(term.field) && [term.value, term.upper].some((value) => value !== void 0 && value !== "*" && !RELATIVE_TIME.test(value) && !OFFSET.test(value))), "readsZone");
|
|
82
87
|
|
|
83
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
88
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/reference.js
|
|
84
89
|
var invalid = /* @__PURE__ */ __name(() => new CliError("validation_error", "expected meeting:<accountId>/<meetingId>[/<transcriptId>[/<cuePosition>]] with safe integer IDs"), "invalid");
|
|
85
90
|
var integer2 = /* @__PURE__ */ __name((value, minimum = 1) => {
|
|
86
91
|
if (!Number.isSafeInteger(value) || value < minimum)
|
|
@@ -117,7 +122,7 @@ var parseMeetingReference = /* @__PURE__ */ __name((text8) => {
|
|
|
117
122
|
}, "parseMeetingReference");
|
|
118
123
|
var canonicalMeetingReference = /* @__PURE__ */ __name((text8) => formatMeetingReference(parseMeetingReference(text8)), "canonicalMeetingReference");
|
|
119
124
|
|
|
120
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
125
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/item.js
|
|
121
126
|
var text = string();
|
|
122
127
|
var count = pipe(number(), integer(), minValue(0));
|
|
123
128
|
var MEETING_ISSUES = ["time_without_zone"];
|
|
@@ -156,7 +161,7 @@ var meetingEntries = {
|
|
|
156
161
|
};
|
|
157
162
|
var meeting = strictObject(meetingEntries);
|
|
158
163
|
var MEETING_UNTRUSTED = ["title", "description", "location"];
|
|
159
|
-
var iso = /* @__PURE__ */ __name((
|
|
164
|
+
var iso = /* @__PURE__ */ __name((ms2) => ms2 === null ? null : new Date(ms2).toISOString(), "iso");
|
|
160
165
|
var meetingItem = /* @__PURE__ */ __name((row, owner) => {
|
|
161
166
|
const issues = meetingIssuesOf(row.metadata);
|
|
162
167
|
return {
|
|
@@ -207,14 +212,14 @@ var MEETING_QUERY = {
|
|
|
207
212
|
})
|
|
208
213
|
};
|
|
209
214
|
|
|
210
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
215
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/store.js
|
|
211
216
|
var MEETING_DOCUMENT_ROLES = ["transcript", "recording", "notes"];
|
|
212
217
|
var READ_BUDGET_EXCEEDED = "Meeting search exceeds its stored text byte budget";
|
|
213
218
|
|
|
214
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
219
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/answers.js
|
|
215
220
|
var text2 = string();
|
|
216
221
|
var count2 = pipe(number(), integer(), minValue(0));
|
|
217
|
-
var iso2 = /* @__PURE__ */ __name((
|
|
222
|
+
var iso2 = /* @__PURE__ */ __name((ms2) => ms2 === null ? null : new Date(ms2).toISOString(), "iso");
|
|
218
223
|
var meetingHit = strictObject({
|
|
219
224
|
/** The cue for a transcript passage, else the meeting. */
|
|
220
225
|
ref: reference,
|
|
@@ -466,7 +471,7 @@ var meetingHitsList = /* @__PURE__ */ __name((found, limit, command = "search me
|
|
|
466
471
|
};
|
|
467
472
|
}, "meetingHitsList");
|
|
468
473
|
|
|
469
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
474
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/join-key.js
|
|
470
475
|
var joinKeyOf = /* @__PURE__ */ __name((url) => {
|
|
471
476
|
const parsed = urlOf(url);
|
|
472
477
|
if (!parsed)
|
|
@@ -500,7 +505,7 @@ var urlOf = /* @__PURE__ */ __name((url) => {
|
|
|
500
505
|
}
|
|
501
506
|
}, "urlOf");
|
|
502
507
|
|
|
503
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
508
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/calendar-text.js
|
|
504
509
|
var ENTITIES = { amp: "&", lt: "<", gt: ">", quot: '"', "#39": "'", apos: "'", nbsp: " " };
|
|
505
510
|
var SECRET_LINE = /(?<![\p{L}\p{N}])(pass ?codes?|passwords?|pwd|pins?|access ?codes?|meeting ?codes?|kennwort|пароль|пин-?код|код доступа)(?![\p{L}\p{N}])|pwd=/iu;
|
|
506
511
|
var htmlToText = /* @__PURE__ */ __name((html) => html.replace(/<\s*br\s*\/?>/giu, "\n").replace(/<\/\s*(p|div|li|tr|h[1-6])\s*>/giu, "\n").replace(/<a\s[^>]*href\s*=\s*"([^"]*)"[^>]*>/giu, " $1 ").replace(/<[^>]+>/gu, "").replace(/&(amp|lt|gt|quot|#39|apos|nbsp);/gu, (_, name) => ENTITIES[name] ?? ""), "htmlToText");
|
|
@@ -537,7 +542,564 @@ var entryMetadata = /* @__PURE__ */ __name((metadata) => {
|
|
|
537
542
|
return kept;
|
|
538
543
|
}, "entryMetadata");
|
|
539
544
|
|
|
540
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
545
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/calls.js
|
|
546
|
+
var CALL_DIRECTIONS = ["incoming", "outgoing", "internal"];
|
|
547
|
+
var CALL_OUTCOMES = ["answered", "voicemail", "busy", "no_answer", "failed"];
|
|
548
|
+
var MISSED_OUTCOMES = ["voicemail", "busy", "no_answer"];
|
|
549
|
+
var isRecord = /* @__PURE__ */ __name((value) => typeof value === "object" && value !== null && !Array.isArray(value), "isRecord");
|
|
550
|
+
var milliseconds = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) && value >= 0 ? Math.round(value) : null, "milliseconds");
|
|
551
|
+
var word = /* @__PURE__ */ __name((value) => typeof value === "string" && value.trim() ? value.trim() : null, "word");
|
|
552
|
+
var DIRECTION_WORDS = {
|
|
553
|
+
incoming: "incoming",
|
|
554
|
+
inbound: "incoming",
|
|
555
|
+
outgoing: "outgoing",
|
|
556
|
+
outbound: "outgoing",
|
|
557
|
+
internal: "internal"
|
|
558
|
+
};
|
|
559
|
+
var directionOf = /* @__PURE__ */ __name((value) => {
|
|
560
|
+
const found = word(value)?.toLowerCase();
|
|
561
|
+
return found === void 0 ? null : DIRECTION_WORDS[found] ?? null;
|
|
562
|
+
}, "directionOf");
|
|
563
|
+
var outcomeOf = /* @__PURE__ */ __name((value) => {
|
|
564
|
+
const found = word(value);
|
|
565
|
+
return found && CALL_OUTCOMES.includes(found) ? found : null;
|
|
566
|
+
}, "outcomeOf");
|
|
567
|
+
var numbers = /* @__PURE__ */ __name((value) => Array.isArray(value) ? value.map(word).filter((one) => one !== null) : [], "numbers");
|
|
568
|
+
var callOf = /* @__PURE__ */ __name((stored) => {
|
|
569
|
+
const metadata = isRecord(stored.metadata) ? stored.metadata : {};
|
|
570
|
+
const direction = directionOf(metadata.direction);
|
|
571
|
+
const outcome = outcomeOf(metadata.outcome);
|
|
572
|
+
const clientParticipant = stored.participants.find((one) => one.role === "client");
|
|
573
|
+
if (direction === null && outcome === null && !clientParticipant)
|
|
574
|
+
return null;
|
|
575
|
+
const managers = stored.participants.filter((one) => one.role === "manager");
|
|
576
|
+
const byExtension = /* @__PURE__ */ __name((number2) => {
|
|
577
|
+
const found = managers.find((one) => one.externalId === number2);
|
|
578
|
+
return {
|
|
579
|
+
key: `extension:${number2}`,
|
|
580
|
+
name: found?.name ?? null,
|
|
581
|
+
identityId: found?.identityId ?? null,
|
|
582
|
+
extension: number2
|
|
583
|
+
};
|
|
584
|
+
}, "byExtension");
|
|
585
|
+
const placed = word(metadata.placedBy);
|
|
586
|
+
const answeredBy = numbers(metadata.answeredBy).map(byExtension);
|
|
587
|
+
const rang = numbers(metadata.rang).map(byExtension);
|
|
588
|
+
const placedBy = placed === null ? null : byExtension(placed);
|
|
589
|
+
const named = [placedBy, ...answeredBy, ...rang].filter((one) => one !== null);
|
|
590
|
+
const listed2 = managers.filter((one) => !named.some((employee2) => employee2.identityId === one.identityId)).map((one) => ({
|
|
591
|
+
key: `identity:${one.identityId}`,
|
|
592
|
+
name: one.name,
|
|
593
|
+
identityId: one.identityId,
|
|
594
|
+
extension: one.externalId
|
|
595
|
+
}));
|
|
596
|
+
const employees = [...new Map([...named, ...listed2].map((one) => [one.key, one])).values()];
|
|
597
|
+
return {
|
|
598
|
+
meetingId: stored.meetingId,
|
|
599
|
+
startedAt: stored.startedAt,
|
|
600
|
+
direction,
|
|
601
|
+
outcome,
|
|
602
|
+
waitMs: milliseconds(metadata.waitMs),
|
|
603
|
+
talkMs: milliseconds(metadata.talkMs),
|
|
604
|
+
durationMs: milliseconds(metadata.durationMs) ?? milliseconds(stored.durationMs),
|
|
605
|
+
client: clientParticipant ? { key: clientParticipant.identityKey, name: clientParticipant.name, identityId: clientParticipant.identityId } : null,
|
|
606
|
+
placedBy,
|
|
607
|
+
roles: ["placedBy", "answeredBy", "rang"].some((key) => key in metadata),
|
|
608
|
+
answeredBy,
|
|
609
|
+
rang,
|
|
610
|
+
employees
|
|
611
|
+
};
|
|
612
|
+
}, "callOf");
|
|
613
|
+
|
|
614
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/call-answers.js
|
|
615
|
+
var count3 = pipe(number(), integer(), minValue(0));
|
|
616
|
+
var ms = count3;
|
|
617
|
+
var id = pipe(number(), integer(), minValue(1));
|
|
618
|
+
var counts = /* @__PURE__ */ __name((keys) => strictObject(Object.fromEntries([...keys, "unknown"].map((key) => [key, count3]))), "counts");
|
|
619
|
+
var maybe = exactOptional;
|
|
620
|
+
var employee = strictObject({
|
|
621
|
+
/** `extension:<number>`, or `identity:<id>` where the provider names no extension. */
|
|
622
|
+
key: string(),
|
|
623
|
+
name: nullable(string()),
|
|
624
|
+
identity_id: nullable(id),
|
|
625
|
+
extension: nullable(string()),
|
|
626
|
+
calls: count3,
|
|
627
|
+
incoming: count3,
|
|
628
|
+
outgoing: count3,
|
|
629
|
+
internal: count3,
|
|
630
|
+
placed: maybe(count3),
|
|
631
|
+
answered: maybe(count3),
|
|
632
|
+
rang_not_answered: maybe(count3),
|
|
633
|
+
talk_ms: maybe(ms),
|
|
634
|
+
mean_talk_ms: maybe(nullable(ms)),
|
|
635
|
+
mean_wait_ms: maybe(nullable(ms)),
|
|
636
|
+
max_wait_ms: maybe(nullable(ms))
|
|
637
|
+
});
|
|
638
|
+
var periodFields = {
|
|
639
|
+
calls: count3,
|
|
640
|
+
incoming: count3,
|
|
641
|
+
outgoing: count3,
|
|
642
|
+
internal: count3,
|
|
643
|
+
answered: maybe(count3),
|
|
644
|
+
missed: maybe(count3),
|
|
645
|
+
talk_ms: maybe(ms)
|
|
646
|
+
};
|
|
647
|
+
var callRef = strictObject({ ref: reference, meeting_id: id, started_at: nullable(isoTime) });
|
|
648
|
+
var callStatsSchema = strictObject({
|
|
649
|
+
time_zone: string(),
|
|
650
|
+
callback_within_ms: ms,
|
|
651
|
+
short_call_under_ms: ms,
|
|
652
|
+
calls: count3,
|
|
653
|
+
/** Selected meetings that are not calls. */
|
|
654
|
+
not_calls: count3,
|
|
655
|
+
/** How many calls give each field; `roles` says who placed, answered and rang. */
|
|
656
|
+
known: strictObject({
|
|
657
|
+
direction: count3,
|
|
658
|
+
outcome: count3,
|
|
659
|
+
wait_ms: count3,
|
|
660
|
+
talk_ms: count3,
|
|
661
|
+
duration_ms: count3,
|
|
662
|
+
roles: count3
|
|
663
|
+
}),
|
|
664
|
+
by_direction: maybe(counts(CALL_DIRECTIONS)),
|
|
665
|
+
by_outcome: maybe(counts(CALL_OUTCOMES)),
|
|
666
|
+
talk_ms: maybe(ms),
|
|
667
|
+
mean_talk_ms: maybe(ms),
|
|
668
|
+
duration_ms: maybe(ms),
|
|
669
|
+
mean_wait_ms: maybe(nullable(ms)),
|
|
670
|
+
max_wait_ms: maybe(nullable(ms)),
|
|
671
|
+
short_calls: maybe(count3),
|
|
672
|
+
employees: array(employee),
|
|
673
|
+
/** Hours 0–23 in `time_zone`. */
|
|
674
|
+
hours: array(strictObject({ hour: pipe(count3, maxValue(23)), ...periodFields })),
|
|
675
|
+
/** `YYYY-MM-DD` in `time_zone`, the days with a call. */
|
|
676
|
+
days: array(strictObject({ date: string(), ...periodFields })),
|
|
677
|
+
missed: maybe(strictObject({
|
|
678
|
+
calls: count3,
|
|
679
|
+
called_back: count3,
|
|
680
|
+
not_called_back: count3,
|
|
681
|
+
unknown_callback: count3,
|
|
682
|
+
unknown_outcome: count3,
|
|
683
|
+
/** Newest first. */
|
|
684
|
+
items: array(strictObject({
|
|
685
|
+
...callRef.entries,
|
|
686
|
+
outcome: picklist(["voicemail", "busy", "no_answer"]),
|
|
687
|
+
client: nullable(strictObject({ key: string(), name: nullable(string()) })),
|
|
688
|
+
rang: array(string()),
|
|
689
|
+
called_back: maybe(boolean()),
|
|
690
|
+
callback: maybe(nullable(strictObject({ ...callRef.entries, after_ms: ms, direction: picklist(["outgoing", "incoming"]) })))
|
|
691
|
+
})),
|
|
692
|
+
has_more: boolean()
|
|
693
|
+
}))
|
|
694
|
+
});
|
|
695
|
+
var callStats = callStatsSchema;
|
|
696
|
+
var iso3 = /* @__PURE__ */ __name((at) => at === null ? null : new Date(at).toISOString(), "iso");
|
|
697
|
+
var has = /* @__PURE__ */ __name((key, value) => value === void 0 ? {} : { [key]: value }, "has");
|
|
698
|
+
var periodItem = /* @__PURE__ */ __name((row) => ({
|
|
699
|
+
calls: row.calls,
|
|
700
|
+
incoming: row.incoming,
|
|
701
|
+
outgoing: row.outgoing,
|
|
702
|
+
internal: row.internal,
|
|
703
|
+
...has("answered", row.answered),
|
|
704
|
+
...has("missed", row.missed),
|
|
705
|
+
...has("talk_ms", row.talkMs)
|
|
706
|
+
}), "periodItem");
|
|
707
|
+
var callStatsItem = /* @__PURE__ */ __name((found) => {
|
|
708
|
+
const refOf = /* @__PURE__ */ __name((meetingId, startedAt) => ({
|
|
709
|
+
ref: formatMeetingReference({ type: "meeting", accountId: found.accountId, meetingId }),
|
|
710
|
+
meeting_id: meetingId,
|
|
711
|
+
started_at: iso3(startedAt)
|
|
712
|
+
}), "refOf");
|
|
713
|
+
return {
|
|
714
|
+
time_zone: found.timeZone,
|
|
715
|
+
callback_within_ms: found.callbackWithinMs,
|
|
716
|
+
short_call_under_ms: found.shortCallUnderMs,
|
|
717
|
+
calls: found.calls,
|
|
718
|
+
not_calls: found.notCalls,
|
|
719
|
+
known: {
|
|
720
|
+
direction: found.known.direction,
|
|
721
|
+
outcome: found.known.outcome,
|
|
722
|
+
wait_ms: found.known.waitMs,
|
|
723
|
+
talk_ms: found.known.talkMs,
|
|
724
|
+
duration_ms: found.known.durationMs,
|
|
725
|
+
roles: found.known.roles
|
|
726
|
+
},
|
|
727
|
+
...has("by_direction", found.byDirection),
|
|
728
|
+
...has("by_outcome", found.byOutcome),
|
|
729
|
+
...has("talk_ms", found.talkMs),
|
|
730
|
+
...has("mean_talk_ms", found.meanTalkMs),
|
|
731
|
+
...has("duration_ms", found.durationMs),
|
|
732
|
+
...has("mean_wait_ms", found.meanWaitMs),
|
|
733
|
+
...has("max_wait_ms", found.maxWaitMs),
|
|
734
|
+
...has("short_calls", found.shortCalls),
|
|
735
|
+
employees: found.employees.map((one) => ({
|
|
736
|
+
key: one.key,
|
|
737
|
+
name: one.name,
|
|
738
|
+
identity_id: one.identityId,
|
|
739
|
+
extension: one.extension,
|
|
740
|
+
calls: one.calls,
|
|
741
|
+
incoming: one.incoming,
|
|
742
|
+
outgoing: one.outgoing,
|
|
743
|
+
internal: one.internal,
|
|
744
|
+
...has("placed", one.placed),
|
|
745
|
+
...has("answered", one.answered),
|
|
746
|
+
...has("rang_not_answered", one.rangNotAnswered),
|
|
747
|
+
...has("talk_ms", one.talkMs),
|
|
748
|
+
...has("mean_talk_ms", one.meanTalkMs),
|
|
749
|
+
...has("mean_wait_ms", one.meanWaitMs),
|
|
750
|
+
...has("max_wait_ms", one.maxWaitMs)
|
|
751
|
+
})),
|
|
752
|
+
hours: found.hours.map((row) => ({ hour: row.hour, ...periodItem(row) })),
|
|
753
|
+
days: found.days.map((row) => ({ date: row.date, ...periodItem(row) })),
|
|
754
|
+
...has("missed", found.missed && {
|
|
755
|
+
calls: found.missed.calls,
|
|
756
|
+
called_back: found.missed.calledBack,
|
|
757
|
+
not_called_back: found.missed.notCalledBack,
|
|
758
|
+
unknown_callback: found.missed.unknownCallback,
|
|
759
|
+
unknown_outcome: found.missed.unknownOutcome,
|
|
760
|
+
items: found.missed.items.map((one) => ({
|
|
761
|
+
...refOf(one.meetingId, one.startedAt),
|
|
762
|
+
outcome: one.outcome,
|
|
763
|
+
client: one.client,
|
|
764
|
+
rang: one.rang,
|
|
765
|
+
...has("called_back", one.calledBack),
|
|
766
|
+
...has("callback", one.callback === void 0 ? void 0 : one.callback && {
|
|
767
|
+
...refOf(one.callback.meetingId, one.callback.startedAt),
|
|
768
|
+
after_ms: one.callback.afterMs,
|
|
769
|
+
direction: one.callback.direction
|
|
770
|
+
})
|
|
771
|
+
})),
|
|
772
|
+
has_more: found.missed.hasMore
|
|
773
|
+
})
|
|
774
|
+
};
|
|
775
|
+
}, "callStatsItem");
|
|
776
|
+
|
|
777
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/stats.js
|
|
778
|
+
var MEETING_COUNTS_GROUPINGS = ["day", "week", "series"];
|
|
779
|
+
var zoneOf = /* @__PURE__ */ __name((timeZone) => {
|
|
780
|
+
const zone = timeZone ?? "UTC";
|
|
781
|
+
try {
|
|
782
|
+
new Intl.DateTimeFormat("en", { timeZone: zone });
|
|
783
|
+
} catch {
|
|
784
|
+
throw new CliError("validation_error", "expected an IANA time zone such as Europe/Madrid");
|
|
785
|
+
}
|
|
786
|
+
return zone;
|
|
787
|
+
}, "zoneOf");
|
|
788
|
+
var DAYS = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"];
|
|
789
|
+
var weekStart = /* @__PURE__ */ __name((at, format) => {
|
|
790
|
+
const parts = Object.fromEntries(format.formatToParts(new Date(at)).map((part) => [part.type, part.value]));
|
|
791
|
+
const day2 = Date.UTC(Number(parts.year), Number(parts.month) - 1, Number(parts.day));
|
|
792
|
+
return new Date(day2 - DAYS.indexOf(parts.weekday ?? "Mon") * 864e5).toISOString().slice(0, 10);
|
|
793
|
+
}, "weekStart");
|
|
794
|
+
var dayKey = /* @__PURE__ */ __name((at, format) => {
|
|
795
|
+
const parts = Object.fromEntries(format.formatToParts(new Date(at)).map((part) => [part.type, part.value]));
|
|
796
|
+
return `${parts.year}-${parts.month}-${parts.day}`;
|
|
797
|
+
}, "dayKey");
|
|
798
|
+
var zoneFormat = /* @__PURE__ */ __name((zone) => new Intl.DateTimeFormat("en-US", {
|
|
799
|
+
timeZone: zone,
|
|
800
|
+
year: "numeric",
|
|
801
|
+
month: "2-digit",
|
|
802
|
+
day: "2-digit",
|
|
803
|
+
weekday: "short"
|
|
804
|
+
}), "zoneFormat");
|
|
805
|
+
var NO_SERIES = "no-series";
|
|
806
|
+
var MOST_COUNT_ROWS = 100;
|
|
807
|
+
var minutesOf = /* @__PURE__ */ __name((ms2) => Math.round(ms2 / 6e4), "minutesOf");
|
|
808
|
+
var meanOf = /* @__PURE__ */ __name((ms2, timed) => timed === 0 ? null : Math.round(ms2 / timed / 6e3) / 10, "meanOf");
|
|
809
|
+
var aggregateMeetingCounts = /* @__PURE__ */ __name((meetings, by, timeZone, limit = MOST_COUNT_ROWS) => {
|
|
810
|
+
if (!MEETING_COUNTS_GROUPINGS.includes(by))
|
|
811
|
+
throw new CliError("validation_error", `--by takes ${MEETING_COUNTS_GROUPINGS.join(", ")}`);
|
|
812
|
+
if (!Number.isSafeInteger(limit) || limit < 1)
|
|
813
|
+
throw new CliError("validation_error", "--limit is a positive number");
|
|
814
|
+
const zone = zoneOf(timeZone);
|
|
815
|
+
const format = zoneFormat(zone);
|
|
816
|
+
const sum = /* @__PURE__ */ __name(() => ({ meetings: 0, ms: 0, timed: 0, transcripts: 0 }), "sum");
|
|
817
|
+
const add = /* @__PURE__ */ __name((into, meeting2) => {
|
|
818
|
+
into.meetings += 1;
|
|
819
|
+
if (meeting2.durationMs !== null) {
|
|
820
|
+
into.ms += Math.max(0, meeting2.durationMs);
|
|
821
|
+
into.timed += 1;
|
|
822
|
+
}
|
|
823
|
+
if (meeting2.transcribed)
|
|
824
|
+
into.transcripts += 1;
|
|
825
|
+
}, "add");
|
|
826
|
+
const total = { ...sum(), name: null };
|
|
827
|
+
const groups = /* @__PURE__ */ new Map();
|
|
828
|
+
for (const meeting2 of meetings) {
|
|
829
|
+
add(total, meeting2);
|
|
830
|
+
const key = by === "series" ? meeting2.seriesKey === null ? NO_SERIES : `series:${meeting2.seriesKey}` : meeting2.startedAt === null ? null : by === "day" ? dayKey(meeting2.startedAt, format) : weekStart(meeting2.startedAt, format);
|
|
831
|
+
if (key === null)
|
|
832
|
+
continue;
|
|
833
|
+
const group = groups.get(key) ?? { ...sum(), name: by === "series" ? meeting2.seriesTitle : null };
|
|
834
|
+
add(group, meeting2);
|
|
835
|
+
groups.set(key, group);
|
|
836
|
+
}
|
|
837
|
+
const ordered = [...groups.entries()].sort(([a, one], [b, other]) => by === "series" ? other.ms - one.ms || other.meetings - one.meetings || a.localeCompare(b) : b.localeCompare(a));
|
|
838
|
+
const kept = ordered.slice(0, limit);
|
|
839
|
+
if (by !== "series")
|
|
840
|
+
kept.reverse();
|
|
841
|
+
const counted = /* @__PURE__ */ __name(({ meetings: count7, ms: ms2, timed, transcripts }) => ({
|
|
842
|
+
meetings: count7,
|
|
843
|
+
minutes: minutesOf(ms2),
|
|
844
|
+
meanMinutes: meanOf(ms2, timed),
|
|
845
|
+
transcripts
|
|
846
|
+
}), "counted");
|
|
847
|
+
return {
|
|
848
|
+
by,
|
|
849
|
+
timeZone: zone,
|
|
850
|
+
...counted(total),
|
|
851
|
+
rows: kept.map(([key, group]) => ({ key, name: group.name, ...counted(group) })),
|
|
852
|
+
hasMore: ordered.length > limit
|
|
853
|
+
};
|
|
854
|
+
}, "aggregateMeetingCounts");
|
|
855
|
+
var UNKNOWN_SPEAKER = "unknown";
|
|
856
|
+
var speakerOf = /* @__PURE__ */ __name((row) => row.personId !== null ? { key: `person:${row.personId}`, name: row.personName ?? row.identityName ?? row.speakerName } : row.identityId !== null ? { key: `identity:${row.identityId}`, name: row.identityName ?? row.speakerName } : row.speakerName?.trim() ? { key: `name:${row.speakerName.trim().toLowerCase()}`, name: row.speakerName.trim() } : { key: UNKNOWN_SPEAKER, name: null }, "speakerOf");
|
|
857
|
+
var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
858
|
+
const zone = zoneOf(timeZone);
|
|
859
|
+
const format = zoneFormat(zone);
|
|
860
|
+
const speakers = /* @__PURE__ */ new Map();
|
|
861
|
+
const weeks = /* @__PURE__ */ new Map();
|
|
862
|
+
const meetings = /* @__PURE__ */ new Set();
|
|
863
|
+
let lines = 0;
|
|
864
|
+
let words2 = 0;
|
|
865
|
+
let talkMs = 0;
|
|
866
|
+
for (const row of rows) {
|
|
867
|
+
const talk = Math.max(0, row.endMs - row.startMs);
|
|
868
|
+
meetings.add(row.meetingId);
|
|
869
|
+
lines += 1;
|
|
870
|
+
words2 += row.words;
|
|
871
|
+
talkMs += talk;
|
|
872
|
+
const who = speakerOf(row);
|
|
873
|
+
const held = speakers.get(who.key) ?? {
|
|
874
|
+
key: who.key,
|
|
875
|
+
name: who.name ?? null,
|
|
876
|
+
personId: row.personId,
|
|
877
|
+
identityId: row.personId === null ? row.identityId : null,
|
|
878
|
+
meetings: 0,
|
|
879
|
+
lines: 0,
|
|
880
|
+
words: 0,
|
|
881
|
+
talkMs: 0,
|
|
882
|
+
share: 0,
|
|
883
|
+
seen: /* @__PURE__ */ new Set()
|
|
884
|
+
};
|
|
885
|
+
held.seen.add(row.meetingId);
|
|
886
|
+
held.lines += 1;
|
|
887
|
+
held.words += row.words;
|
|
888
|
+
held.talkMs += talk;
|
|
889
|
+
speakers.set(who.key, held);
|
|
890
|
+
if (row.startedAt !== null) {
|
|
891
|
+
const week = weeks.get(weekStart(row.startedAt, format)) ?? { meetings: /* @__PURE__ */ new Set(), talkMs: 0 };
|
|
892
|
+
week.meetings.add(row.meetingId);
|
|
893
|
+
week.talkMs += talk;
|
|
894
|
+
weeks.set(weekStart(row.startedAt, format), week);
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
return {
|
|
898
|
+
timeZone: zone,
|
|
899
|
+
meetings: meetings.size,
|
|
900
|
+
lines,
|
|
901
|
+
words: words2,
|
|
902
|
+
talkMs,
|
|
903
|
+
speakers: [...speakers.values()].map(({ seen, ...speaker }) => ({
|
|
904
|
+
...speaker,
|
|
905
|
+
meetings: seen.size,
|
|
906
|
+
share: talkMs === 0 ? 0 : Math.round(speaker.talkMs / talkMs * 1e3) / 1e3
|
|
907
|
+
})).sort((a, b) => b.talkMs - a.talkMs || a.key.localeCompare(b.key)),
|
|
908
|
+
weeks: [...weeks.entries()].map(([start, week]) => ({ weekStart: start, meetings: week.meetings.size, talkMs: week.talkMs })).sort((a, b) => a.weekStart.localeCompare(b.weekStart))
|
|
909
|
+
};
|
|
910
|
+
}, "aggregateMeetingStats");
|
|
911
|
+
|
|
912
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/call-stats.js
|
|
913
|
+
var CALLBACK_WITHIN_MS = 24 * 60 * 60 * 1e3;
|
|
914
|
+
var SHORT_CALL_UNDER_MS = 3e4;
|
|
915
|
+
var MOST_MISSED = 100;
|
|
916
|
+
var countsOf = /* @__PURE__ */ __name((keys) => Object.fromEntries([...keys, "unknown"].map((key) => [key, 0])), "countsOf");
|
|
917
|
+
var isMissed = /* @__PURE__ */ __name((call) => call.direction === "incoming" && call.outcome !== null && MISSED_OUTCOMES.includes(call.outcome), "isMissed");
|
|
918
|
+
var mean = /* @__PURE__ */ __name((sum, count7) => count7 === 0 ? null : Math.round(sum / count7), "mean");
|
|
919
|
+
var positiveMs = /* @__PURE__ */ __name((value, fallback, name) => {
|
|
920
|
+
const ms2 = value ?? fallback;
|
|
921
|
+
if (!Number.isSafeInteger(ms2) || ms2 < 1)
|
|
922
|
+
throw new CliError("validation_error", `${name} is a positive duration`);
|
|
923
|
+
return ms2;
|
|
924
|
+
}, "positiveMs");
|
|
925
|
+
var hourFormat = /* @__PURE__ */ __name((zone) => new Intl.DateTimeFormat("en-US", { timeZone: zone, hour: "2-digit", hourCycle: "h23" }), "hourFormat");
|
|
926
|
+
var answersMissed = /* @__PURE__ */ __name((missed, later, within2) => missed.startedAt !== null && later.startedAt !== null && later.startedAt > missed.startedAt && later.startedAt - missed.startedAt <= within2 && (later.direction === "outgoing" || later.direction === "incoming" && later.outcome === "answered"), "answersMissed");
|
|
927
|
+
var when = /* @__PURE__ */ __name((present, value) => present ? value : {}, "when");
|
|
928
|
+
var period = /* @__PURE__ */ __name(() => ({ calls: 0, incoming: 0, outgoing: 0, internal: 0, answered: 0, missed: 0, talkMs: 0 }), "period");
|
|
929
|
+
var aggregateCallStats = /* @__PURE__ */ __name((calls, options = {}) => {
|
|
930
|
+
const zone = zoneOf(options.timeZone);
|
|
931
|
+
const within2 = positiveMs(options.callbackWithinMs, CALLBACK_WITHIN_MS, "--within");
|
|
932
|
+
const short = positiveMs(options.shortCallUnderMs, SHORT_CALL_UNDER_MS, "the short-call threshold");
|
|
933
|
+
const limit = options.missedLimit ?? MOST_MISSED;
|
|
934
|
+
if (!Number.isSafeInteger(limit) || limit < 0)
|
|
935
|
+
throw new CliError("validation_error", "--limit is a positive number");
|
|
936
|
+
const known = {
|
|
937
|
+
direction: calls.filter((call) => call.direction !== null).length,
|
|
938
|
+
outcome: calls.filter((call) => call.outcome !== null).length,
|
|
939
|
+
waitMs: calls.filter((call) => call.waitMs !== null).length,
|
|
940
|
+
talkMs: calls.filter((call) => call.talkMs !== null).length,
|
|
941
|
+
durationMs: calls.filter((call) => call.durationMs !== null).length,
|
|
942
|
+
roles: calls.filter((call) => call.roles).length
|
|
943
|
+
};
|
|
944
|
+
const has2 = { outcome: known.outcome > 0, talk: known.talkMs > 0, wait: known.waitMs > 0, roles: known.roles > 0 };
|
|
945
|
+
const days = zoneFormat(zone);
|
|
946
|
+
const hourOf = hourFormat(zone);
|
|
947
|
+
const byDirection = countsOf(CALL_DIRECTIONS);
|
|
948
|
+
const byOutcome = countsOf(CALL_OUTCOMES);
|
|
949
|
+
let talk = 0;
|
|
950
|
+
let duration = 0;
|
|
951
|
+
let wait = { sum: 0, count: 0, max: null };
|
|
952
|
+
let shortCalls = 0;
|
|
953
|
+
const employees = /* @__PURE__ */ new Map();
|
|
954
|
+
const hours = Array.from({ length: 24 }, period);
|
|
955
|
+
const dayRows = /* @__PURE__ */ new Map();
|
|
956
|
+
const employee2 = /* @__PURE__ */ __name((one) => {
|
|
957
|
+
const held = employees.get(one.key) ?? {
|
|
958
|
+
...one,
|
|
959
|
+
...period(),
|
|
960
|
+
placed: 0,
|
|
961
|
+
rangNotAnswered: 0,
|
|
962
|
+
talks: 0,
|
|
963
|
+
waits: 0,
|
|
964
|
+
waitSum: 0,
|
|
965
|
+
maxWaitMs: null
|
|
966
|
+
};
|
|
967
|
+
held.name ??= one.name;
|
|
968
|
+
held.identityId ??= one.identityId;
|
|
969
|
+
employees.set(one.key, held);
|
|
970
|
+
return held;
|
|
971
|
+
}, "employee");
|
|
972
|
+
const addTo = /* @__PURE__ */ __name((row, call) => {
|
|
973
|
+
row.calls += 1;
|
|
974
|
+
if (call.direction)
|
|
975
|
+
row[call.direction] += 1;
|
|
976
|
+
if (call.outcome === "answered")
|
|
977
|
+
row.answered += 1;
|
|
978
|
+
if (isMissed(call))
|
|
979
|
+
row.missed += 1;
|
|
980
|
+
row.talkMs += call.talkMs ?? 0;
|
|
981
|
+
}, "addTo");
|
|
982
|
+
for (const call of calls) {
|
|
983
|
+
byDirection[call.direction ?? "unknown"] += 1;
|
|
984
|
+
byOutcome[call.outcome ?? "unknown"] += 1;
|
|
985
|
+
talk += call.talkMs ?? 0;
|
|
986
|
+
duration += call.durationMs ?? 0;
|
|
987
|
+
if (call.outcome === "answered" && call.talkMs !== null && call.talkMs < short)
|
|
988
|
+
shortCalls += 1;
|
|
989
|
+
if (call.direction === "incoming" && call.outcome === "answered" && call.waitMs !== null)
|
|
990
|
+
wait = { sum: wait.sum + call.waitMs, count: wait.count + 1, max: Math.max(wait.max ?? 0, call.waitMs) };
|
|
991
|
+
const talkers = /* @__PURE__ */ new Set([
|
|
992
|
+
...call.answeredBy.map(({ key }) => key),
|
|
993
|
+
...call.placedBy && call.outcome === "answered" ? [call.placedBy.key] : []
|
|
994
|
+
]);
|
|
995
|
+
for (const one of call.employees) {
|
|
996
|
+
const held = employee2(one);
|
|
997
|
+
held.calls += 1;
|
|
998
|
+
if (call.direction)
|
|
999
|
+
held[call.direction] += 1;
|
|
1000
|
+
if (call.placedBy?.key === one.key)
|
|
1001
|
+
held.placed += 1;
|
|
1002
|
+
if (call.answeredBy.some(({ key }) => key === one.key))
|
|
1003
|
+
held.answered += 1;
|
|
1004
|
+
if (call.rang.some(({ key }) => key === one.key))
|
|
1005
|
+
held.rangNotAnswered += 1;
|
|
1006
|
+
if (talkers.has(one.key) && call.talkMs !== null) {
|
|
1007
|
+
held.talkMs += call.talkMs;
|
|
1008
|
+
held.talks += 1;
|
|
1009
|
+
}
|
|
1010
|
+
if (call.direction === "incoming" && call.answeredBy[0]?.key === one.key && call.waitMs !== null) {
|
|
1011
|
+
held.waits += 1;
|
|
1012
|
+
held.waitSum += call.waitMs;
|
|
1013
|
+
held.maxWaitMs = Math.max(held.maxWaitMs ?? 0, call.waitMs);
|
|
1014
|
+
}
|
|
1015
|
+
}
|
|
1016
|
+
if (call.startedAt !== null) {
|
|
1017
|
+
const hour = hours[Number(hourOf.format(new Date(call.startedAt))) % 24];
|
|
1018
|
+
if (hour)
|
|
1019
|
+
addTo(hour, call);
|
|
1020
|
+
const date2 = dayKey(call.startedAt, days);
|
|
1021
|
+
const row = dayRows.get(date2) ?? period();
|
|
1022
|
+
addTo(row, call);
|
|
1023
|
+
dayRows.set(date2, row);
|
|
1024
|
+
}
|
|
1025
|
+
}
|
|
1026
|
+
const periodOf = /* @__PURE__ */ __name(({ answered, missed, talkMs, ...row }) => ({
|
|
1027
|
+
...row,
|
|
1028
|
+
...when(has2.outcome, { answered, missed }),
|
|
1029
|
+
...when(has2.talk, { talkMs })
|
|
1030
|
+
}), "periodOf");
|
|
1031
|
+
const byClient = /* @__PURE__ */ new Map();
|
|
1032
|
+
for (const call of [...calls, ...options.later ?? []]) {
|
|
1033
|
+
if (!call.client)
|
|
1034
|
+
continue;
|
|
1035
|
+
const list = byClient.get(call.client.key) ?? [];
|
|
1036
|
+
list.push(call);
|
|
1037
|
+
byClient.set(call.client.key, list);
|
|
1038
|
+
}
|
|
1039
|
+
for (const list of byClient.values())
|
|
1040
|
+
list.sort((a, b) => (a.startedAt ?? 0) - (b.startedAt ?? 0));
|
|
1041
|
+
const missedCalls = calls.filter(isMissed).sort((a, b) => (b.startedAt ?? 0) - (a.startedAt ?? 0)).map((call) => {
|
|
1042
|
+
const { client, startedAt } = call;
|
|
1043
|
+
const found = client ? byClient.get(client.key)?.find((one) => answersMissed(call, one, within2)) : void 0;
|
|
1044
|
+
return {
|
|
1045
|
+
meetingId: call.meetingId,
|
|
1046
|
+
startedAt,
|
|
1047
|
+
outcome: call.outcome,
|
|
1048
|
+
client: client ? { key: client.key, name: client.name } : null,
|
|
1049
|
+
rang: call.rang.map(({ key }) => key),
|
|
1050
|
+
...when(client !== null && startedAt !== null, {
|
|
1051
|
+
calledBack: found !== void 0,
|
|
1052
|
+
callback: found && found.startedAt !== null && startedAt !== null ? {
|
|
1053
|
+
meetingId: found.meetingId,
|
|
1054
|
+
startedAt: found.startedAt,
|
|
1055
|
+
afterMs: found.startedAt - startedAt,
|
|
1056
|
+
direction: found.direction
|
|
1057
|
+
} : null
|
|
1058
|
+
})
|
|
1059
|
+
};
|
|
1060
|
+
});
|
|
1061
|
+
return {
|
|
1062
|
+
timeZone: zone,
|
|
1063
|
+
callbackWithinMs: within2,
|
|
1064
|
+
shortCallUnderMs: short,
|
|
1065
|
+
calls: calls.length,
|
|
1066
|
+
known,
|
|
1067
|
+
...when(known.direction > 0, { byDirection }),
|
|
1068
|
+
...when(has2.outcome, { byOutcome }),
|
|
1069
|
+
...when(has2.talk, { talkMs: talk, meanTalkMs: Math.round(talk / known.talkMs) }),
|
|
1070
|
+
...when(known.durationMs > 0, { durationMs: duration }),
|
|
1071
|
+
...when(has2.wait, { meanWaitMs: mean(wait.sum, wait.count), maxWaitMs: wait.max }),
|
|
1072
|
+
...when(has2.outcome && has2.talk, { shortCalls }),
|
|
1073
|
+
employees: [...employees.values()].map(({ talks, waits, waitSum, placed, answered, rangNotAnswered, talkMs, maxWaitMs, missed: _, ...one }) => ({
|
|
1074
|
+
key: one.key,
|
|
1075
|
+
name: one.name,
|
|
1076
|
+
identityId: one.identityId,
|
|
1077
|
+
extension: one.extension,
|
|
1078
|
+
calls: one.calls,
|
|
1079
|
+
incoming: one.incoming,
|
|
1080
|
+
outgoing: one.outgoing,
|
|
1081
|
+
internal: one.internal,
|
|
1082
|
+
...when(has2.roles, { placed, answered, rangNotAnswered }),
|
|
1083
|
+
...when(has2.roles && has2.talk, { talkMs, meanTalkMs: mean(talkMs, talks) }),
|
|
1084
|
+
...when(has2.roles && has2.wait, { meanWaitMs: mean(waitSum, waits), maxWaitMs })
|
|
1085
|
+
})).sort((a, b) => b.calls - a.calls || a.key.localeCompare(b.key)),
|
|
1086
|
+
hours: hours.map((row, hour) => ({ hour, ...periodOf(row) })),
|
|
1087
|
+
days: [...dayRows.entries()].sort(([a], [b]) => a.localeCompare(b)).map(([date2, row]) => ({ date: date2, ...periodOf(row) })),
|
|
1088
|
+
...when(has2.outcome, {
|
|
1089
|
+
missed: {
|
|
1090
|
+
calls: missedCalls.length,
|
|
1091
|
+
calledBack: missedCalls.filter((one) => one.calledBack === true).length,
|
|
1092
|
+
notCalledBack: missedCalls.filter((one) => one.calledBack === false).length,
|
|
1093
|
+
unknownCallback: missedCalls.filter((one) => one.calledBack === void 0).length,
|
|
1094
|
+
unknownOutcome: calls.filter((call) => call.direction === "incoming" && call.outcome === null).length,
|
|
1095
|
+
items: missedCalls.slice(0, limit),
|
|
1096
|
+
hasMore: missedCalls.length > limit
|
|
1097
|
+
}
|
|
1098
|
+
})
|
|
1099
|
+
};
|
|
1100
|
+
}, "aggregateCallStats");
|
|
1101
|
+
|
|
1102
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/cue-fingerprint.js
|
|
541
1103
|
import { createHash } from "node:crypto";
|
|
542
1104
|
var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256").update(JSON.stringify({
|
|
543
1105
|
reference: cue2.reference,
|
|
@@ -551,7 +1113,7 @@ var meetingCueFingerprint = /* @__PURE__ */ __name((cue2) => createHash("sha256"
|
|
|
551
1113
|
text: cue2.text
|
|
552
1114
|
})).digest("hex"), "meetingCueFingerprint");
|
|
553
1115
|
|
|
554
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1116
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/event-query.js
|
|
555
1117
|
var EVENT_QUERY = defineQuery({
|
|
556
1118
|
entity: "event",
|
|
557
1119
|
backend: "sql",
|
|
@@ -567,7 +1129,7 @@ var EVENT_QUERY = defineQuery({
|
|
|
567
1129
|
]
|
|
568
1130
|
});
|
|
569
1131
|
|
|
570
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1132
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/event-store.js
|
|
571
1133
|
var UNTIL = /(?:^|;)UNTIL=(\d{4})(\d{2})(\d{2})(?:T(\d{2})(\d{2})(\d{2})Z?)?(?:;|$)/iu;
|
|
572
1134
|
var seriesEnd = /* @__PURE__ */ __name((entry) => {
|
|
573
1135
|
if (entry.recurrenceEndsAt !== null)
|
|
@@ -617,7 +1179,7 @@ var eventChange = /* @__PURE__ */ __name((event2, entries, revisions, since) =>
|
|
|
617
1179
|
return null;
|
|
618
1180
|
}, "eventChange");
|
|
619
1181
|
|
|
620
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1182
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/events.js
|
|
621
1183
|
var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now(), { create = true } = {}) => {
|
|
622
1184
|
const current = await store.meeting(details.meeting.id);
|
|
623
1185
|
if (!current)
|
|
@@ -632,7 +1194,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now(),
|
|
|
632
1194
|
endsAt: meeting2.endedAt ?? meeting2.startedAt
|
|
633
1195
|
});
|
|
634
1196
|
if (candidates.length > 1) {
|
|
635
|
-
await store.reviewMeetingLink?.(meeting2.id, candidates.map(({ id:
|
|
1197
|
+
await store.reviewMeetingLink?.(meeting2.id, candidates.map(({ id: id5 }) => id5), now);
|
|
636
1198
|
return null;
|
|
637
1199
|
}
|
|
638
1200
|
let event2 = candidates[0];
|
|
@@ -662,7 +1224,7 @@ var linkEvent = /* @__PURE__ */ __name(async (store, details, now = Date.now(),
|
|
|
662
1224
|
return (await store.events()).find((e) => e.id === linked?.meeting.eventId) ?? null;
|
|
663
1225
|
}, "linkEvent");
|
|
664
1226
|
|
|
665
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1227
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/participant-search.js
|
|
666
1228
|
var normalizeMeetingParticipantQuery = /* @__PURE__ */ __name((text8) => text8.normalize("NFKC").toLowerCase(), "normalizeMeetingParticipantQuery");
|
|
667
1229
|
var validateMeetingParticipantQuery = /* @__PURE__ */ __name((query) => {
|
|
668
1230
|
if (typeof query !== "string" || !query.trim() || query.length > 500 || query.includes("\0"))
|
|
@@ -686,7 +1248,7 @@ var validateMeetingParticipantSearch = /* @__PURE__ */ __name((query, input) =>
|
|
|
686
1248
|
};
|
|
687
1249
|
}, "validateMeetingParticipantSearch");
|
|
688
1250
|
|
|
689
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1251
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/reads.js
|
|
690
1252
|
var MeetingError = class extends CliError {
|
|
691
1253
|
static {
|
|
692
1254
|
__name(this, "MeetingError");
|
|
@@ -713,8 +1275,8 @@ var validateFilter = /* @__PURE__ */ __name((filter) => {
|
|
|
713
1275
|
if (value !== void 0 && (!Number.isSafeInteger(value) || value < 0))
|
|
714
1276
|
throw new MeetingError("validation_error", "expected a nonnegative integer");
|
|
715
1277
|
}, "validateFilter");
|
|
716
|
-
var meetingShow = /* @__PURE__ */ __name(async (store,
|
|
717
|
-
const details = await store.meeting(positiveInteger(
|
|
1278
|
+
var meetingShow = /* @__PURE__ */ __name(async (store, id5, accountId) => {
|
|
1279
|
+
const details = await store.meeting(positiveInteger(id5));
|
|
718
1280
|
if (!details || accountId !== void 0 && details.meeting.accountId !== accountId)
|
|
719
1281
|
throw new MeetingError("not_found", "meeting not found");
|
|
720
1282
|
return details;
|
|
@@ -805,29 +1367,29 @@ var ownerOf = /* @__PURE__ */ __name(async (store, accountId) => {
|
|
|
805
1367
|
throw new MeetingError("not_found", `meeting account ${accountId} is not in the store`);
|
|
806
1368
|
return owner;
|
|
807
1369
|
}, "ownerOf");
|
|
808
|
-
var meetingDetailsAnswer = /* @__PURE__ */ __name(async (store,
|
|
809
|
-
return meetingDetailsBody(store, await meetingShow(store,
|
|
1370
|
+
var meetingDetailsAnswer = /* @__PURE__ */ __name(async (store, id5, accountId) => {
|
|
1371
|
+
return meetingDetailsBody(store, await meetingShow(store, id5, accountId));
|
|
810
1372
|
}, "meetingDetailsAnswer");
|
|
811
1373
|
var meetingDetailsBody = /* @__PURE__ */ __name(async (store, details) => ({
|
|
812
1374
|
item: meetingDetailsItem(details, await ownerOf(store, details.meeting.accountId))
|
|
813
1375
|
}), "meetingDetailsBody");
|
|
814
|
-
var meetingTranscriptAnswer = /* @__PURE__ */ __name(async (store,
|
|
815
|
-
const details = await meetingShow(store,
|
|
1376
|
+
var meetingTranscriptAnswer = /* @__PURE__ */ __name(async (store, id5, accountId, options = {}) => {
|
|
1377
|
+
const details = await meetingShow(store, id5, accountId);
|
|
816
1378
|
return wholeList(details.transcripts.filter((t) => (options.history || t.transcript.supersededAt === null) && t.transcript.deletedAt === null).map((t) => meetingTranscriptItem(details.meeting.accountId, t.transcript, t.rows)));
|
|
817
1379
|
}, "meetingTranscriptAnswer");
|
|
818
|
-
var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store,
|
|
819
|
-
const details = await meetingShow(store,
|
|
1380
|
+
var meetingSummaryAnswer = /* @__PURE__ */ __name(async (store, id5, accountId) => {
|
|
1381
|
+
const details = await meetingShow(store, id5, accountId);
|
|
820
1382
|
return wholeList(details.summaries.map((one) => meetingSummaryItem(details.meeting.accountId, one)));
|
|
821
1383
|
}, "meetingSummaryAnswer");
|
|
822
1384
|
|
|
823
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
824
|
-
var timestamp = /* @__PURE__ */ __name((
|
|
825
|
-
if (!Number.isSafeInteger(
|
|
1385
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/export.js
|
|
1386
|
+
var timestamp = /* @__PURE__ */ __name((milliseconds2) => {
|
|
1387
|
+
if (!Number.isSafeInteger(milliseconds2) || milliseconds2 < 0)
|
|
826
1388
|
throw new MeetingError("validation_error", "transcript times must be nonnegative integer milliseconds");
|
|
827
|
-
const hours = Math.floor(
|
|
828
|
-
const minutes = Math.floor(
|
|
829
|
-
const seconds = Math.floor(
|
|
830
|
-
return `${String(hours).padStart(2, "0")}:${String(minutes).padStart(2, "0")}:${String(seconds).padStart(2, "0")}.${String(
|
|
1389
|
+
const hours = Math.floor(milliseconds2 / 36e5);
|
|
1390
|
+
const minutes = Math.floor(milliseconds2 % 36e5 / 6e4);
|
|
1391
|
+
const seconds = Math.floor(milliseconds2 % 6e4 / 1e3);
|
|
1392
|
+
return `${String(hours).padStart(2, "0")}:${String(minutes).padStart(2, "0")}:${String(seconds).padStart(2, "0")}.${String(milliseconds2 % 1e3).padStart(3, "0")}`;
|
|
831
1393
|
}, "timestamp");
|
|
832
1394
|
var vttText = /* @__PURE__ */ __name((text8) => {
|
|
833
1395
|
if (visibleControls(text8) !== text8 || /\n\s*\n/.test(text8))
|
|
@@ -863,10 +1425,10 @@ var transcriptsOf = /* @__PURE__ */ __name((details, transcriptId) => {
|
|
|
863
1425
|
}
|
|
864
1426
|
return details.transcripts.filter((part) => part.transcript.supersededAt === null && part.transcript.deletedAt === null);
|
|
865
1427
|
}, "transcriptsOf");
|
|
866
|
-
var exportMeeting = /* @__PURE__ */ __name(async (store,
|
|
1428
|
+
var exportMeeting = /* @__PURE__ */ __name(async (store, id5, options) => {
|
|
867
1429
|
if (options.format !== "markdown" && options.format !== "vtt")
|
|
868
1430
|
throw new MeetingError("validation_error", "export format must be markdown or vtt");
|
|
869
|
-
const details = await meetingShow(store,
|
|
1431
|
+
const details = await meetingShow(store, id5, options.accountId);
|
|
870
1432
|
const transcripts = transcriptsOf(details, options.transcriptId);
|
|
871
1433
|
let content;
|
|
872
1434
|
if (options.format === "vtt") {
|
|
@@ -916,10 +1478,10 @@ var exportMeeting = /* @__PURE__ */ __name(async (store, id4, options) => {
|
|
|
916
1478
|
};
|
|
917
1479
|
}, "exportMeeting");
|
|
918
1480
|
|
|
919
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1481
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
920
1482
|
import { createHash as createHash2 } from "node:crypto";
|
|
921
1483
|
|
|
922
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1484
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/payment.js
|
|
923
1485
|
var FACT_TYPES = ["fact", "statement", "question", "decision", "promise"];
|
|
924
1486
|
var PAYMENT_DIRECTIONS = ["to_us", "from_us"];
|
|
925
1487
|
var PAYMENT_STATES = ["expected", "paid", "cancelled"];
|
|
@@ -1013,7 +1575,7 @@ var paymentTitle = /* @__PURE__ */ __name((fact) => {
|
|
|
1013
1575
|
return `${grouped(payment.amount)} ${payment.currency} ${way}${party}${item}${due} (${payment.state})`;
|
|
1014
1576
|
}, "paymentTitle");
|
|
1015
1577
|
|
|
1016
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1578
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/timestamp.js
|
|
1017
1579
|
var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
1018
1580
|
if (typeof value !== "string" || !/^\d{4}-\d{2}-\d{2}T.+(?:Z|[+-]\d{2}:\d{2})$/i.test(value) || !Number.isFinite(Date.parse(value)))
|
|
1019
1581
|
throw new CliError("validation_error", `${name} must be an ISO timestamp with a timezone, such as 2026-11-09T09:00:00Z`);
|
|
@@ -1024,7 +1586,7 @@ var meetingTimestamp = /* @__PURE__ */ __name((value, name) => {
|
|
|
1024
1586
|
return new Date(value).toISOString();
|
|
1025
1587
|
}, "meetingTimestamp");
|
|
1026
1588
|
|
|
1027
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1589
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/findings-rules.js
|
|
1028
1590
|
var TASK_TYPES = ["bug", "feature", "chore"];
|
|
1029
1591
|
var invalid3 = /* @__PURE__ */ __name((message) => {
|
|
1030
1592
|
throw new CliError("validation_error", message);
|
|
@@ -1037,11 +1599,11 @@ var findingText = /* @__PURE__ */ __name((value, limit) => {
|
|
|
1037
1599
|
var findingHash = /* @__PURE__ */ __name((value) => createHash2("sha256").update(JSON.stringify(value)).digest("hex"), "findingHash");
|
|
1038
1600
|
var snakeCase = /* @__PURE__ */ __name((key) => key.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "snakeCase");
|
|
1039
1601
|
var findingWhere = /* @__PURE__ */ __name((of) => {
|
|
1040
|
-
const
|
|
1602
|
+
const id5 = typeof of.id === "string" ? of.id : null;
|
|
1041
1603
|
const kind2 = typeof of.kind === "string" ? of.kind : null;
|
|
1042
1604
|
return {
|
|
1043
|
-
where:
|
|
1044
|
-
named: { ...
|
|
1605
|
+
where: id5 || kind2 ? ` in ${[id5, kind2 && `(${kind2})`].filter(Boolean).join(" ")}` : "",
|
|
1606
|
+
named: { ...id5 ? { finding: id5 } : {}, ...kind2 ? { kind: kind2 } : {} }
|
|
1045
1607
|
};
|
|
1046
1608
|
}, "findingWhere");
|
|
1047
1609
|
var findingFields = /* @__PURE__ */ __name((value, allowed, noun, of = value) => {
|
|
@@ -1084,16 +1646,16 @@ var validEvidence = /* @__PURE__ */ __name((raw, rules) => {
|
|
|
1084
1646
|
return evidence;
|
|
1085
1647
|
}, "validEvidence");
|
|
1086
1648
|
var findingId = /* @__PURE__ */ __name((raw, ids2) => {
|
|
1087
|
-
const
|
|
1088
|
-
if (!/^[a-zA-Z0-9][a-zA-Z0-9_.:-]*$/.test(
|
|
1649
|
+
const id5 = findingText(raw, 64);
|
|
1650
|
+
if (!/^[a-zA-Z0-9][a-zA-Z0-9_.:-]*$/.test(id5) || ids2.has(id5))
|
|
1089
1651
|
return invalid3("finding IDs must be unique simple keys");
|
|
1090
|
-
ids2.add(
|
|
1091
|
-
return
|
|
1652
|
+
ids2.add(id5);
|
|
1653
|
+
return id5;
|
|
1092
1654
|
}, "findingId");
|
|
1093
1655
|
var validateFinding = /* @__PURE__ */ __name((finding, rules, ids2) => {
|
|
1094
1656
|
if (!finding || typeof finding !== "object")
|
|
1095
1657
|
return invalid3("a finding is an object");
|
|
1096
|
-
const
|
|
1658
|
+
const id5 = findingId(finding.id, ids2);
|
|
1097
1659
|
const project = finding.project === void 0 && rules.anySubject ? void 0 : findingText(finding.project, 64);
|
|
1098
1660
|
if (project !== void 0 && !/^project:[1-9]\d*$/.test(project))
|
|
1099
1661
|
return invalid3("a finding names a project reference");
|
|
@@ -1103,7 +1665,7 @@ var validateFinding = /* @__PURE__ */ __name((finding, rules, ids2) => {
|
|
|
1103
1665
|
return invalid3("a task finding names the project the task goes in");
|
|
1104
1666
|
const evidence = validEvidence(finding.evidence, rules);
|
|
1105
1667
|
const base = {
|
|
1106
|
-
id:
|
|
1668
|
+
id: id5,
|
|
1107
1669
|
...project === void 0 ? {} : { project },
|
|
1108
1670
|
...finding.subject === void 0 ? {} : { subject: finding.subject },
|
|
1109
1671
|
evidence
|
|
@@ -1199,7 +1761,7 @@ var validateBatch = /* @__PURE__ */ __name((input, rules, most, one) => {
|
|
|
1199
1761
|
var validateFindings = /* @__PURE__ */ __name((input, rules) => validateBatch(input, rules, 16, (finding, ids2) => validateFinding(finding, rules, ids2)), "validateFindings");
|
|
1200
1762
|
var findingFingerprint = /* @__PURE__ */ __name(({ id: _id, ...finding }) => findingHash(finding), "findingFingerprint");
|
|
1201
1763
|
|
|
1202
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1764
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/findings.js
|
|
1203
1765
|
var MEETING_FINDINGS_KIND = "meeting_findings";
|
|
1204
1766
|
var cue = /* @__PURE__ */ __name((raw) => {
|
|
1205
1767
|
const reference2 = canonicalMeetingReference(raw);
|
|
@@ -1210,7 +1772,7 @@ var cue = /* @__PURE__ */ __name((raw) => {
|
|
|
1210
1772
|
var validateMeetingFindings = /* @__PURE__ */ __name((input) => validateFindings(input, { plural: "meeting findings", singular: "meeting finding", cited: "cue", reference: cue }), "validateMeetingFindings");
|
|
1211
1773
|
var meetingFindingFingerprint = findingFingerprint;
|
|
1212
1774
|
|
|
1213
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1775
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/hit-query.js
|
|
1214
1776
|
var context = {
|
|
1215
1777
|
command: "search meetings",
|
|
1216
1778
|
guide: "https://github.com/WireCatLabs/cli-core/blob/main/docs/search/query-language.md#\u0432\u0441\u0442\u0440\u0435\u0447\u0438"
|
|
@@ -1332,7 +1894,7 @@ var meetingWordsQuery = /* @__PURE__ */ __name((text8) => {
|
|
|
1332
1894
|
return { version: 1, language: "lucene-v1", root };
|
|
1333
1895
|
}, "meetingWordsQuery");
|
|
1334
1896
|
|
|
1335
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1897
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/language.js
|
|
1336
1898
|
var LATIN_WORDS = {
|
|
1337
1899
|
en: ["the", "and", "is", "that", "you", "this", "what", "have", "with", "are"],
|
|
1338
1900
|
es: ["el", "los", "las", "por", "pero", "para", "est\xE1", "muy", "tambi\xE9n", "hay"],
|
|
@@ -1341,7 +1903,7 @@ var LATIN_WORDS = {
|
|
|
1341
1903
|
it: ["gli", "della", "sono", "perch\xE9", "anche", "questo", "molto", "che", "di", "\xE8"],
|
|
1342
1904
|
pt: ["n\xE3o", "voc\xEA", "isso", "muito", "ent\xE3o", "com", "uma", "tamb\xE9m", "mas", "eu"]
|
|
1343
1905
|
};
|
|
1344
|
-
var LATIN_LANGUAGE = new Map(Object.entries(LATIN_WORDS).flatMap(([language, words2]) => words2.map((
|
|
1906
|
+
var LATIN_LANGUAGE = new Map(Object.entries(LATIN_WORDS).flatMap(([language, words2]) => words2.map((word2) => [word2, language])));
|
|
1345
1907
|
var UKRAINIAN = /[іїєґ]/giu;
|
|
1346
1908
|
var CYRILLIC = new RegExp("\\p{Script=Cyrillic}", "gu");
|
|
1347
1909
|
var LATIN = new RegExp("\\p{Script=Latin}", "gu");
|
|
@@ -1351,8 +1913,8 @@ var countOf = /* @__PURE__ */ __name((text8, pattern) => text8.match(pattern)?.l
|
|
|
1351
1913
|
var latinLanguage = /* @__PURE__ */ __name((texts) => {
|
|
1352
1914
|
const votes = /* @__PURE__ */ new Map();
|
|
1353
1915
|
for (const text8 of texts)
|
|
1354
|
-
for (const
|
|
1355
|
-
const language = LATIN_LANGUAGE.get(
|
|
1916
|
+
for (const word2 of text8.toLowerCase().split(/[^\p{L}]+/u)) {
|
|
1917
|
+
const language = LATIN_LANGUAGE.get(word2);
|
|
1356
1918
|
if (language)
|
|
1357
1919
|
votes.set(language, (votes.get(language) ?? 0) + 1);
|
|
1358
1920
|
}
|
|
@@ -1381,7 +1943,7 @@ var transcriptLanguage = /* @__PURE__ */ __name((texts) => {
|
|
|
1381
1943
|
return null;
|
|
1382
1944
|
}, "transcriptLanguage");
|
|
1383
1945
|
|
|
1384
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1946
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/ingest.js
|
|
1385
1947
|
var contentHash = /* @__PURE__ */ __name(async (text8) => {
|
|
1386
1948
|
const bytes = await crypto.subtle.digest("SHA-256", new TextEncoder().encode(text8));
|
|
1387
1949
|
return Array.from(new Uint8Array(bytes), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
@@ -1418,7 +1980,7 @@ var timestamp2 = /* @__PURE__ */ __name((value) => {
|
|
|
1418
1980
|
return time;
|
|
1419
1981
|
}, "timestamp");
|
|
1420
1982
|
|
|
1421
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1983
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/transcript-text.js
|
|
1422
1984
|
var TranscriptTextError = class extends Error {
|
|
1423
1985
|
static {
|
|
1424
1986
|
__name(this, "TranscriptTextError");
|
|
@@ -1473,7 +2035,7 @@ var parseTranscriptText = /* @__PURE__ */ __name((input) => {
|
|
|
1473
2035
|
return { header, lines };
|
|
1474
2036
|
}, "parseTranscriptText");
|
|
1475
2037
|
|
|
1476
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2038
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/vtt.js
|
|
1477
2039
|
var VttError = class extends Error {
|
|
1478
2040
|
static {
|
|
1479
2041
|
__name(this, "VttError");
|
|
@@ -1486,8 +2048,8 @@ var millis = /* @__PURE__ */ __name((stamp, lineNo) => {
|
|
|
1486
2048
|
const match = TIMESTAMP.exec(stamp);
|
|
1487
2049
|
if (!match)
|
|
1488
2050
|
throw new VttError(`line ${lineNo}: "${stamp}" is not a WebVTT timestamp`);
|
|
1489
|
-
const [, hours = "0", minutes = "0", seconds = "0",
|
|
1490
|
-
return ((Number(hours) * 60 + Number(minutes)) * 60 + Number(seconds)) * 1e3 + Number(
|
|
2051
|
+
const [, hours = "0", minutes = "0", seconds = "0", ms2 = "0"] = match;
|
|
2052
|
+
return ((Number(hours) * 60 + Number(minutes)) * 60 + Number(seconds)) * 1e3 + Number(ms2);
|
|
1491
2053
|
}, "millis");
|
|
1492
2054
|
var splitSpeaker = /* @__PURE__ */ __name((text8) => {
|
|
1493
2055
|
const firstLine = text8.split("\n", 1)[0] ?? "";
|
|
@@ -1525,7 +2087,7 @@ var parseVtt = /* @__PURE__ */ __name((input) => {
|
|
|
1525
2087
|
return cues;
|
|
1526
2088
|
}, "parseVtt");
|
|
1527
2089
|
|
|
1528
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2090
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/import.js
|
|
1529
2091
|
var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now()) => {
|
|
1530
2092
|
const report = { meetings: 0, participants: 0, transcriptRows: 0, summaries: 0, warnings: [] };
|
|
1531
2093
|
for (const file of files) {
|
|
@@ -1558,10 +2120,10 @@ var importFiles = /* @__PURE__ */ __name(async (files, store, now = Date.now())
|
|
|
1558
2120
|
return report;
|
|
1559
2121
|
}, "importFiles");
|
|
1560
2122
|
|
|
1561
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2123
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/links.js
|
|
1562
2124
|
var CHAT_MESSAGES_READ = 1e5;
|
|
1563
2125
|
|
|
1564
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2126
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/provider.js
|
|
1565
2127
|
var snapshotMeetingScope = /* @__PURE__ */ __name((scope3) => {
|
|
1566
2128
|
const provider = scope3?.provider;
|
|
1567
2129
|
const account = scope3?.account;
|
|
@@ -1570,7 +2132,7 @@ var snapshotMeetingScope = /* @__PURE__ */ __name((scope3) => {
|
|
|
1570
2132
|
return Object.freeze({ provider, account });
|
|
1571
2133
|
}, "snapshotMeetingScope");
|
|
1572
2134
|
|
|
1573
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2135
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/meeting-management.js
|
|
1574
2136
|
var nonempty = /* @__PURE__ */ __name((value, name) => {
|
|
1575
2137
|
if (typeof value !== "string" || !value.trim())
|
|
1576
2138
|
throw new CliError("validation_error", `${name} must be nonempty`);
|
|
@@ -1661,11 +2223,11 @@ var createMeetingManagement = /* @__PURE__ */ __name((scope3, ports) => {
|
|
|
1661
2223
|
list(options = {}) {
|
|
1662
2224
|
return capability("list")(context3(options));
|
|
1663
2225
|
},
|
|
1664
|
-
get(
|
|
1665
|
-
return capability("get")(nonempty(
|
|
2226
|
+
get(id5, options = {}) {
|
|
2227
|
+
return capability("get")(nonempty(id5, "meeting id"), context3(options));
|
|
1666
2228
|
},
|
|
1667
|
-
invitation(
|
|
1668
|
-
return capability("invitation")(nonempty(
|
|
2229
|
+
invitation(id5, options = {}) {
|
|
2230
|
+
return capability("invitation")(nonempty(id5, "meeting id"), context3(options));
|
|
1669
2231
|
},
|
|
1670
2232
|
async create(change, options = {}) {
|
|
1671
2233
|
const port = capability("create");
|
|
@@ -1680,17 +2242,17 @@ var createMeetingManagement = /* @__PURE__ */ __name((scope3, ports) => {
|
|
|
1680
2242
|
...outcome.value ? { meeting: outcome.value } : {}
|
|
1681
2243
|
};
|
|
1682
2244
|
},
|
|
1683
|
-
async update(
|
|
2245
|
+
async update(id5, change, options = {}) {
|
|
1684
2246
|
const port = capability("update");
|
|
1685
|
-
const validatedId = nonempty(
|
|
2247
|
+
const validatedId = nonempty(id5, "meeting id");
|
|
1686
2248
|
const validated = validateMeetingChange(change, false);
|
|
1687
2249
|
const ctx = context3(options);
|
|
1688
2250
|
const outcome = await dispatchMeetingMutation(options, () => port(validatedId, validated, ctx));
|
|
1689
2251
|
return { action: "update", scope: fixed, id: validatedId, change: validated, applied: outcome.applied };
|
|
1690
2252
|
},
|
|
1691
|
-
async cancel(
|
|
2253
|
+
async cancel(id5, options = {}) {
|
|
1692
2254
|
const port = capability("cancel");
|
|
1693
|
-
const validatedId = nonempty(
|
|
2255
|
+
const validatedId = nonempty(id5, "meeting id");
|
|
1694
2256
|
const occurrenceId2 = options.occurrenceId === void 0 ? void 0 : nonempty(options.occurrenceId, "occurrence id");
|
|
1695
2257
|
const ctx = { ...context3(options), ...occurrenceId2 === void 0 ? {} : { occurrenceId: occurrenceId2 } };
|
|
1696
2258
|
const outcome = await dispatchMeetingMutation(options, () => port(validatedId, ctx));
|
|
@@ -1705,8 +2267,8 @@ var createMeetingManagement = /* @__PURE__ */ __name((scope3, ports) => {
|
|
|
1705
2267
|
};
|
|
1706
2268
|
}, "createMeetingManagement");
|
|
1707
2269
|
|
|
1708
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1709
|
-
var
|
|
2270
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/meeting-context.js
|
|
2271
|
+
var id2 = /* @__PURE__ */ __name((value) => {
|
|
1710
2272
|
if (typeof value !== "number" || !Number.isSafeInteger(value) || value < 1)
|
|
1711
2273
|
throw new CliError("validation_error", "meeting context identifiers must be positive integers");
|
|
1712
2274
|
return value;
|
|
@@ -1722,9 +2284,9 @@ var uid = /* @__PURE__ */ __name((value) => {
|
|
|
1722
2284
|
throw new CliError("validation_error", "person UID must be a positive integer");
|
|
1723
2285
|
return result;
|
|
1724
2286
|
}, "uid");
|
|
1725
|
-
var strings = /* @__PURE__ */ __name((value,
|
|
1726
|
-
if (!Array.isArray(value) || value.length < 1 || value.length >
|
|
1727
|
-
throw new CliError("validation_error", `meeting context list must contain 1\u2013${
|
|
2287
|
+
var strings = /* @__PURE__ */ __name((value, count7, length) => {
|
|
2288
|
+
if (!Array.isArray(value) || value.length < 1 || value.length > count7)
|
|
2289
|
+
throw new CliError("validation_error", `meeting context list must contain 1\u2013${count7} entries`);
|
|
1728
2290
|
return Object.freeze([...new Set(value.map((entry) => text3(entry, length)))]);
|
|
1729
2291
|
}, "strings");
|
|
1730
2292
|
var fields = {
|
|
@@ -1776,8 +2338,8 @@ var validateMeetingContextChange = /* @__PURE__ */ __name((change) => {
|
|
|
1776
2338
|
case "event.link":
|
|
1777
2339
|
return Object.freeze({
|
|
1778
2340
|
action: change.action,
|
|
1779
|
-
eventId: change.eventId === null ? null :
|
|
1780
|
-
...change.expectedEventId === void 0 ? {} : { expectedEventId: change.expectedEventId === null ? null :
|
|
2341
|
+
eventId: change.eventId === null ? null : id2(change.eventId),
|
|
2342
|
+
...change.expectedEventId === void 0 ? {} : { expectedEventId: change.expectedEventId === null ? null : id2(change.expectedEventId) }
|
|
1781
2343
|
});
|
|
1782
2344
|
case "person.link": {
|
|
1783
2345
|
const targets = change.targetAccountIds;
|
|
@@ -1785,9 +2347,9 @@ var validateMeetingContextChange = /* @__PURE__ */ __name((change) => {
|
|
|
1785
2347
|
throw new CliError("validation_error", "target accounts must contain 1\u20131000 identifiers");
|
|
1786
2348
|
return Object.freeze({
|
|
1787
2349
|
action: change.action,
|
|
1788
|
-
participantId:
|
|
2350
|
+
participantId: id2(change.participantId),
|
|
1789
2351
|
personUid: uid(change.personUid),
|
|
1790
|
-
...targets === void 0 ? {} : { targetAccountIds: Object.freeze([...new Set(targets.map(
|
|
2352
|
+
...targets === void 0 ? {} : { targetAccountIds: Object.freeze([...new Set(targets.map(id2))]) },
|
|
1791
2353
|
...change.expectedPersonUid === void 0 ? {} : { expectedPersonUid: change.expectedPersonUid === null ? null : uid(change.expectedPersonUid) }
|
|
1792
2354
|
});
|
|
1793
2355
|
}
|
|
@@ -1795,7 +2357,7 @@ var validateMeetingContextChange = /* @__PURE__ */ __name((change) => {
|
|
|
1795
2357
|
}, "validateMeetingContextChange");
|
|
1796
2358
|
var createMeetingContext = /* @__PURE__ */ __name((scope3, accountId, ports) => {
|
|
1797
2359
|
const fixed = snapshotMeetingScope(scope3);
|
|
1798
|
-
const account =
|
|
2360
|
+
const account = id2(accountId);
|
|
1799
2361
|
const actions = Object.freeze([...new Set(ports.actions)]);
|
|
1800
2362
|
if (actions.some((action) => !Object.hasOwn(fields, action)))
|
|
1801
2363
|
throw new CliError("validation_error", "unsupported meeting context capability");
|
|
@@ -1805,7 +2367,7 @@ var createMeetingContext = /* @__PURE__ */ __name((scope3, accountId, ports) =>
|
|
|
1805
2367
|
accountId: account,
|
|
1806
2368
|
actions,
|
|
1807
2369
|
async change(meetingId, input, options = {}) {
|
|
1808
|
-
const target =
|
|
2370
|
+
const target = id2(meetingId);
|
|
1809
2371
|
const change = validateMeetingContextChange(input);
|
|
1810
2372
|
if (!actions.includes(change.action))
|
|
1811
2373
|
throw new CliError("provider_unavailable", `meeting context does not support ${change.action}`);
|
|
@@ -1827,7 +2389,7 @@ var createMeetingContext = /* @__PURE__ */ __name((scope3, accountId, ports) =>
|
|
|
1827
2389
|
};
|
|
1828
2390
|
}, "createMeetingContext");
|
|
1829
2391
|
|
|
1830
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2392
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/passage.js
|
|
1831
2393
|
var meetingHitContextLimits = /* @__PURE__ */ __name((options = {}) => {
|
|
1832
2394
|
const { before = 3, after = 3, bytes = 65536, max_read_bytes = 4194304, expected_fingerprint } = options;
|
|
1833
2395
|
if (![before, after].every((value) => Number.isSafeInteger(value) && value >= 0) || before + after > 999 || !Number.isSafeInteger(bytes) || bytes < 2 || bytes > 4194304 || !Number.isSafeInteger(max_read_bytes) || max_read_bytes < 1 || max_read_bytes > 67108864 || expected_fingerprint !== void 0 && (typeof expected_fingerprint !== "string" || !/^[a-f0-9]{64}$/.test(expected_fingerprint)))
|
|
@@ -1840,7 +2402,7 @@ var validateMeetingPassage = /* @__PURE__ */ __name((reference2, options) => {
|
|
|
1840
2402
|
throw new CliError("validation_error", "choose a cue reference and json, text or markdown output");
|
|
1841
2403
|
}, "validateMeetingPassage");
|
|
1842
2404
|
|
|
1843
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2405
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/preparation-context.js
|
|
1844
2406
|
var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
1845
2407
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
1846
2408
|
throw new CliError("validation_error", "meeting preparation context is required");
|
|
@@ -1865,43 +2427,43 @@ var validateMeetingPreparationContext = /* @__PURE__ */ __name((original) => {
|
|
|
1865
2427
|
return { ...input, limit, maxReadBytes };
|
|
1866
2428
|
}, "validateMeetingPreparationContext");
|
|
1867
2429
|
|
|
1868
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
1869
|
-
var
|
|
1870
|
-
var
|
|
2430
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-answer.js
|
|
2431
|
+
var count4 = pipe(number(), integer(), minValue(0));
|
|
2432
|
+
var id3 = pipe(string(), minLength(1));
|
|
1871
2433
|
var meetingProjectEvidence = strictObject({
|
|
1872
2434
|
schema_version: literal(1),
|
|
1873
2435
|
kind: literal("meeting_project_evidence"),
|
|
1874
|
-
account_id:
|
|
2436
|
+
account_id: id3,
|
|
1875
2437
|
query: string(),
|
|
1876
|
-
project: strictObject({ id:
|
|
2438
|
+
project: strictObject({ id: id3, name: string(), key: nullable(string()) }),
|
|
1877
2439
|
term: strictObject({
|
|
1878
2440
|
name: string(),
|
|
1879
2441
|
kind: picklist(["canonical", "key", "alias"]),
|
|
1880
|
-
alias_id: optional(
|
|
2442
|
+
alias_id: optional(id3)
|
|
1881
2443
|
}),
|
|
1882
2444
|
hits: array(meetingHit),
|
|
1883
2445
|
association: literal("unconfirmed-word-evidence"),
|
|
1884
|
-
vocabulary_fingerprint:
|
|
2446
|
+
vocabulary_fingerprint: id3,
|
|
1885
2447
|
selection: strictObject({
|
|
1886
|
-
meeting_id: optional(
|
|
1887
|
-
identity_id: optional(
|
|
1888
|
-
person_id: optional(
|
|
1889
|
-
tag_id: optional(
|
|
1890
|
-
event_id: optional(
|
|
1891
|
-
series_id: optional(
|
|
2448
|
+
meeting_id: optional(id3),
|
|
2449
|
+
identity_id: optional(id3),
|
|
2450
|
+
person_id: optional(id3),
|
|
2451
|
+
tag_id: optional(id3),
|
|
2452
|
+
event_id: optional(id3),
|
|
2453
|
+
series_id: optional(id3),
|
|
1892
2454
|
since: optional(isoTime),
|
|
1893
2455
|
until: optional(isoTime)
|
|
1894
2456
|
}),
|
|
1895
|
-
limits: strictObject({ limit:
|
|
2457
|
+
limits: strictObject({ limit: count4, max_read_bytes: count4, max_vocabulary_read_bytes: count4, max_terms: count4 }),
|
|
1896
2458
|
page: pageSchema,
|
|
1897
2459
|
coverage: strictObject({
|
|
1898
2460
|
archive_completeness: literal("unknown"),
|
|
1899
2461
|
current_revisions: literal(true),
|
|
1900
2462
|
indexing: picklist(["ready", "pending"]),
|
|
1901
2463
|
index_completeness: literal("unknown"),
|
|
1902
|
-
term_index:
|
|
1903
|
-
terms_total:
|
|
1904
|
-
remaining_terms:
|
|
2464
|
+
term_index: count4,
|
|
2465
|
+
terms_total: count4,
|
|
2466
|
+
remaining_terms: count4,
|
|
1905
2467
|
duplicates: literal("may-repeat-between-terms")
|
|
1906
2468
|
})
|
|
1907
2469
|
});
|
|
@@ -1986,7 +2548,7 @@ var meetingProjectEvidenceAnswer = /* @__PURE__ */ __name((page, prepared, comma
|
|
|
1986
2548
|
};
|
|
1987
2549
|
}, "meetingProjectEvidenceAnswer");
|
|
1988
2550
|
|
|
1989
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2551
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/search-validation.js
|
|
1990
2552
|
var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
1991
2553
|
const integer5 = /* @__PURE__ */ __name((value, low, high) => Number.isSafeInteger(value) && value >= low && value <= high, "integer");
|
|
1992
2554
|
if (typeof query !== "string" || !query.trim() || query.includes("\0") || new TextEncoder().encode(query).byteLength > 65536 || !integer5(options.limit ?? 100, 1, 1e3) || !integer5(options.maxReadBytes ?? 4194304, 1, 67108864) || [
|
|
@@ -2006,7 +2568,7 @@ var validateMeetingHitSearch = /* @__PURE__ */ __name((query, options = {}) => {
|
|
|
2006
2568
|
throw new CliError("validation_error", "choose one project selector and one tag or topic selector");
|
|
2007
2569
|
}, "validateMeetingHitSearch");
|
|
2008
2570
|
|
|
2009
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2571
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/project-evidence-query.js
|
|
2010
2572
|
var ids = {
|
|
2011
2573
|
meeting_id: "meetingId",
|
|
2012
2574
|
identity_id: "participantIdentityId",
|
|
@@ -2097,7 +2659,7 @@ var prepareMeetingProjectEvidence = /* @__PURE__ */ __name((project, request = {
|
|
|
2097
2659
|
return { project: project.trim(), options, query: frozen.join(" AND ") };
|
|
2098
2660
|
}, "prepareMeetingProjectEvidence");
|
|
2099
2661
|
|
|
2100
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2662
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/project-evidence.js
|
|
2101
2663
|
var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, request = {}, now = Date.now()) => {
|
|
2102
2664
|
const prepared = prepareMeetingProjectEvidence(project, request, now);
|
|
2103
2665
|
const page = await read(prepared.project, prepared.options);
|
|
@@ -2105,7 +2667,7 @@ var readMeetingProjectEvidence = /* @__PURE__ */ __name(async (read, project, re
|
|
|
2105
2667
|
return meetingProjectEvidenceAnswer(page, prepared);
|
|
2106
2668
|
}, "readMeetingProjectEvidence");
|
|
2107
2669
|
|
|
2108
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2670
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/pull.js
|
|
2109
2671
|
var participantInput = /* @__PURE__ */ __name((p, provider, occurrenceId2, position, accountId) => {
|
|
2110
2672
|
const { identityExternalId, phone, ...fields2 } = p;
|
|
2111
2673
|
const externalId = identityExternalId ?? (p.email ? `email:${p.email.toLowerCase()}` : p.externalId) ?? `name:${p.displayName ?? "unknown"}@${accountId}/${occurrenceId2}:${position}`;
|
|
@@ -2129,7 +2691,7 @@ var sourceMeetingInput = /* @__PURE__ */ __name((m, accountId, participantsCount
|
|
|
2129
2691
|
throw new Error("Meeting ends before it starts");
|
|
2130
2692
|
const keptEnd = kept?.endedAt ?? null;
|
|
2131
2693
|
const endedAt = given ?? (keptEnd !== null && keptEnd >= startedAt ? keptEnd : null);
|
|
2132
|
-
const
|
|
2694
|
+
const count7 = participantsCount === null && kept ? kept.participantsCount : participantsCount;
|
|
2133
2695
|
const metadata = kept?.metadata && m.metadata ? { ...kept.metadata, ...m.metadata } : m.metadata ?? kept?.metadata ?? null;
|
|
2134
2696
|
const meeting2 = {
|
|
2135
2697
|
accountId,
|
|
@@ -2143,7 +2705,7 @@ var sourceMeetingInput = /* @__PURE__ */ __name((m, accountId, participantsCount
|
|
|
2143
2705
|
durationMs: endedAt === null ? null : endedAt - startedAt,
|
|
2144
2706
|
timezone: m.timezone ?? kept?.timezone ?? null,
|
|
2145
2707
|
hostIdentityId: kept?.hostIdentityId ?? null,
|
|
2146
|
-
...
|
|
2708
|
+
...count7 === void 0 ? {} : { participantsCount: count7 },
|
|
2147
2709
|
metadata,
|
|
2148
2710
|
deletedAt: null
|
|
2149
2711
|
};
|
|
@@ -2162,9 +2724,9 @@ var sourceMeetingInput = /* @__PURE__ */ __name((m, accountId, participantsCount
|
|
|
2162
2724
|
return meeting2;
|
|
2163
2725
|
}, "sourceMeetingInput");
|
|
2164
2726
|
var saveSourceMeeting = /* @__PURE__ */ __name(async (source, store, m, parts, { accountId, now, kept }) => {
|
|
2165
|
-
const
|
|
2727
|
+
const id5 = m.occurrence.id;
|
|
2166
2728
|
const { participants: sourceParticipants, transcript: lines, chat, summary } = parts;
|
|
2167
|
-
const participants = participantInputs(source.provider,
|
|
2729
|
+
const participants = participantInputs(source.provider, id5, sourceParticipants ?? [], accountId);
|
|
2168
2730
|
const meeting2 = sourceMeetingInput(m, accountId, sourceParticipants === void 0 ? void 0 : sourceParticipants?.length ?? null, kept);
|
|
2169
2731
|
const linked = sourceParticipants !== void 0;
|
|
2170
2732
|
const format = source.transcriptFormat ?? null;
|
|
@@ -2214,11 +2776,11 @@ var startOf = /* @__PURE__ */ __name((m) => {
|
|
|
2214
2776
|
}, "startOf");
|
|
2215
2777
|
var pull = /* @__PURE__ */ __name(async (source, store, options) => {
|
|
2216
2778
|
const now = options.now ?? Date.now();
|
|
2217
|
-
for (const [name,
|
|
2779
|
+
for (const [name, ms2] of [
|
|
2218
2780
|
["lookbackMs", options.lookbackMs ?? 0],
|
|
2219
2781
|
["overlapMs", source.overlapMs ?? 0]
|
|
2220
2782
|
])
|
|
2221
|
-
if (!Number.isSafeInteger(
|
|
2783
|
+
if (!Number.isSafeInteger(ms2) || ms2 < 0 || ms2 > 31 * 864e5)
|
|
2222
2784
|
throw new Error(`${name} must be an integer from 0 through 31 days`);
|
|
2223
2785
|
const lookbackMs = Math.max(options.lookbackMs ?? 0, source.overlapMs ?? 0);
|
|
2224
2786
|
const cursor = options.rescan ? void 0 : await store.cursor(options.accountId);
|
|
@@ -2253,7 +2815,7 @@ var pull = /* @__PURE__ */ __name(async (source, store, options) => {
|
|
|
2253
2815
|
await linkCallers();
|
|
2254
2816
|
return report;
|
|
2255
2817
|
}
|
|
2256
|
-
const
|
|
2818
|
+
const id5 = m.occurrence.id;
|
|
2257
2819
|
const failedHere = /* @__PURE__ */ __name(() => {
|
|
2258
2820
|
failed = true;
|
|
2259
2821
|
firstFailed ??= startOf(m);
|
|
@@ -2264,13 +2826,13 @@ var pull = /* @__PURE__ */ __name(async (source, store, options) => {
|
|
|
2264
2826
|
} catch (error) {
|
|
2265
2827
|
failedHere();
|
|
2266
2828
|
const message = error instanceof Error ? error.message : "could not be read";
|
|
2267
|
-
report.warnings.push({ externalId:
|
|
2829
|
+
report.warnings.push({ externalId: id5, message: `${part}: ${message}` });
|
|
2268
2830
|
return void 0;
|
|
2269
2831
|
}
|
|
2270
2832
|
}, "read");
|
|
2271
2833
|
try {
|
|
2272
|
-
const sourceParticipants = await read("participants", () => source.participants(
|
|
2273
|
-
const participants = participantInputs(source.provider,
|
|
2834
|
+
const sourceParticipants = await read("participants", () => source.participants(id5));
|
|
2835
|
+
const participants = participantInputs(source.provider, id5, sourceParticipants ?? [], options.accountId);
|
|
2274
2836
|
const names = /* @__PURE__ */ new Map();
|
|
2275
2837
|
for (const p of participants)
|
|
2276
2838
|
if (p.displayName !== null) {
|
|
@@ -2279,13 +2841,13 @@ var pull = /* @__PURE__ */ __name(async (source, store, options) => {
|
|
|
2279
2841
|
names.set(p.displayName, identities);
|
|
2280
2842
|
}
|
|
2281
2843
|
if ([...names.values()].some((ids2) => ids2.size > 1))
|
|
2282
|
-
report.warnings.push({ externalId:
|
|
2283
|
-
const lines = await read("transcript", () => source.transcript(
|
|
2284
|
-
const chat = await read("chat", () => source.chat(
|
|
2285
|
-
const summary = await read("summary", () => source.summary(
|
|
2286
|
-
const attachments = await read("files", () => source.files(
|
|
2844
|
+
report.warnings.push({ externalId: id5, message: "Participant names are ambiguous" });
|
|
2845
|
+
const lines = await read("transcript", () => source.transcript(id5));
|
|
2846
|
+
const chat = await read("chat", () => source.chat(id5));
|
|
2847
|
+
const summary = await read("summary", () => source.summary(id5));
|
|
2848
|
+
const attachments = await read("files", () => source.files(id5));
|
|
2287
2849
|
const listDocuments = source.documents?.bind(source);
|
|
2288
|
-
const documents = listDocuments ? await read("documents", () => listDocuments(
|
|
2850
|
+
const documents = listDocuments ? await read("documents", () => listDocuments(id5)) : void 0;
|
|
2289
2851
|
await saveSourceMeeting(source, store, m, { participants: sourceParticipants, transcript: lines, chat, summary, files: attachments, documents }, { accountId: options.accountId, now });
|
|
2290
2852
|
for (const p of participants)
|
|
2291
2853
|
if (p.identity.phone)
|
|
@@ -2296,7 +2858,7 @@ var pull = /* @__PURE__ */ __name(async (source, store, options) => {
|
|
|
2296
2858
|
report.summaries += summary ? 1 : 0;
|
|
2297
2859
|
} catch (error) {
|
|
2298
2860
|
failedHere();
|
|
2299
|
-
report.warnings.push({ externalId:
|
|
2861
|
+
report.warnings.push({ externalId: id5, message: error instanceof Error ? error.message : "Meeting pull failed" });
|
|
2300
2862
|
}
|
|
2301
2863
|
}
|
|
2302
2864
|
await linkCallers();
|
|
@@ -2305,24 +2867,24 @@ var pull = /* @__PURE__ */ __name(async (source, store, options) => {
|
|
|
2305
2867
|
return report;
|
|
2306
2868
|
}, "pull");
|
|
2307
2869
|
|
|
2308
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
2870
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/read-answers.js
|
|
2309
2871
|
var text4 = string();
|
|
2310
|
-
var
|
|
2311
|
-
var
|
|
2312
|
-
var
|
|
2872
|
+
var count5 = pipe(number(), integer(), minValue(0));
|
|
2873
|
+
var id4 = pipe(number(), integer(), minValue(1));
|
|
2874
|
+
var iso4 = /* @__PURE__ */ __name((ms2) => ms2 === null ? null : new Date(ms2).toISOString(), "iso");
|
|
2313
2875
|
var meetingRef2 = /* @__PURE__ */ __name((accountId, meetingId) => formatMeetingReference({ type: "meeting", accountId, meetingId }), "meetingRef");
|
|
2314
2876
|
var meetingReview = strictObject({
|
|
2315
2877
|
ref: reference,
|
|
2316
2878
|
id: pipe(string(), minLength(1)),
|
|
2317
2879
|
title: nullable(text4),
|
|
2318
2880
|
started_at: nullable(isoTime),
|
|
2319
|
-
duration_ms: nullable(
|
|
2320
|
-
participants_count: nullable(
|
|
2881
|
+
duration_ms: nullable(count5),
|
|
2882
|
+
participants_count: nullable(count5),
|
|
2321
2883
|
projects: array(text4),
|
|
2322
2884
|
/** Null when the meeting has no current transcript. */
|
|
2323
|
-
transcript: nullable(strictObject({ lines:
|
|
2885
|
+
transcript: nullable(strictObject({ lines: count5, words: count5 })),
|
|
2324
2886
|
/** The three who talked longest. */
|
|
2325
|
-
speakers: array(strictObject({ name: nullable(text4), talk_ms:
|
|
2887
|
+
speakers: array(strictObject({ name: nullable(text4), talk_ms: count5 })),
|
|
2326
2888
|
/** The newest stored summary; null when there is none. */
|
|
2327
2889
|
summary: nullable(strictObject({
|
|
2328
2890
|
source: text4,
|
|
@@ -2336,7 +2898,7 @@ var meetingReviewItem = /* @__PURE__ */ __name((one) => ({
|
|
|
2336
2898
|
ref: meetingRef2(one.accountId, one.meetingId),
|
|
2337
2899
|
id: String(one.meetingId),
|
|
2338
2900
|
title: one.title,
|
|
2339
|
-
started_at:
|
|
2901
|
+
started_at: iso4(one.startedAt),
|
|
2340
2902
|
duration_ms: one.durationMs,
|
|
2341
2903
|
participants_count: one.participantsCount,
|
|
2342
2904
|
projects: one.projects,
|
|
@@ -2355,7 +2917,7 @@ var meetingLink = strictObject({
|
|
|
2355
2917
|
domain: nullable(text4),
|
|
2356
2918
|
/** The Google Docs, Sheets, Slides, Forms or Drive file it names. */
|
|
2357
2919
|
document_id: nullable(text4),
|
|
2358
|
-
count:
|
|
2920
|
+
count: count5,
|
|
2359
2921
|
first_at: isoTime,
|
|
2360
2922
|
last_at: isoTime,
|
|
2361
2923
|
senders: array(text4),
|
|
@@ -2375,12 +2937,12 @@ var meetingSpeaker = strictObject({
|
|
|
2375
2937
|
/** `person:<id>`, `identity:<id>`, `name:<lowercased name>` or `unknown`. */
|
|
2376
2938
|
key: text4,
|
|
2377
2939
|
name: nullable(text4),
|
|
2378
|
-
person_id: nullable(
|
|
2379
|
-
identity_id: nullable(
|
|
2380
|
-
meetings:
|
|
2381
|
-
lines:
|
|
2382
|
-
words:
|
|
2383
|
-
talk_ms:
|
|
2940
|
+
person_id: nullable(id4),
|
|
2941
|
+
identity_id: nullable(id4),
|
|
2942
|
+
meetings: count5,
|
|
2943
|
+
lines: count5,
|
|
2944
|
+
words: count5,
|
|
2945
|
+
talk_ms: count5,
|
|
2384
2946
|
/** This speaker's part of all talk time, 0–1. */
|
|
2385
2947
|
share: pipe(number(), minValue(0), maxValue(1))
|
|
2386
2948
|
});
|
|
@@ -2397,12 +2959,12 @@ var meetingSpeakerItem = /* @__PURE__ */ __name((one) => ({
|
|
|
2397
2959
|
}), "meetingSpeakerItem");
|
|
2398
2960
|
var meetingStats = strictObject({
|
|
2399
2961
|
time_zone: text4,
|
|
2400
|
-
meetings:
|
|
2401
|
-
lines:
|
|
2402
|
-
words:
|
|
2403
|
-
talk_ms:
|
|
2962
|
+
meetings: count5,
|
|
2963
|
+
lines: count5,
|
|
2964
|
+
words: count5,
|
|
2965
|
+
talk_ms: count5,
|
|
2404
2966
|
/** `week_start` is the Monday, as a date in `time_zone`. */
|
|
2405
|
-
weeks: array(strictObject({ week_start: text4, meetings:
|
|
2967
|
+
weeks: array(strictObject({ week_start: text4, meetings: count5, talk_ms: count5 })),
|
|
2406
2968
|
top_speakers: array(meetingSpeaker)
|
|
2407
2969
|
});
|
|
2408
2970
|
var meetingStatsItem = /* @__PURE__ */ __name((found, top = 10) => ({
|
|
@@ -2417,17 +2979,17 @@ var meetingStatsItem = /* @__PURE__ */ __name((found, top = 10) => ({
|
|
|
2417
2979
|
var meetingCountsRow = strictObject({
|
|
2418
2980
|
key: text4,
|
|
2419
2981
|
name: nullable(text4),
|
|
2420
|
-
meetings:
|
|
2421
|
-
minutes:
|
|
2982
|
+
meetings: count5,
|
|
2983
|
+
minutes: count5,
|
|
2422
2984
|
mean_minutes: nullable(number()),
|
|
2423
|
-
transcripts:
|
|
2985
|
+
transcripts: count5
|
|
2424
2986
|
});
|
|
2425
2987
|
var meetingCounts = strictObject({
|
|
2426
2988
|
by: picklist(["day", "week", "series"]),
|
|
2427
|
-
meetings:
|
|
2428
|
-
minutes:
|
|
2989
|
+
meetings: count5,
|
|
2990
|
+
minutes: count5,
|
|
2429
2991
|
mean_minutes: nullable(number()),
|
|
2430
|
-
transcripts:
|
|
2992
|
+
transcripts: count5,
|
|
2431
2993
|
rows: array(meetingCountsRow),
|
|
2432
2994
|
has_more: boolean()
|
|
2433
2995
|
});
|
|
@@ -2452,27 +3014,27 @@ var truncated = /* @__PURE__ */ __name((...why) => nullable(picklist(why)), "tru
|
|
|
2452
3014
|
var meetingParticipants = strictObject({
|
|
2453
3015
|
schema_version: literal(1),
|
|
2454
3016
|
kind: literal("meeting_participants"),
|
|
2455
|
-
account_id:
|
|
3017
|
+
account_id: id4,
|
|
2456
3018
|
query: text4,
|
|
2457
3019
|
items: array(strictObject({
|
|
2458
|
-
participant_id:
|
|
2459
|
-
meeting_id:
|
|
2460
|
-
identity_id:
|
|
3020
|
+
participant_id: id4,
|
|
3021
|
+
meeting_id: id4,
|
|
3022
|
+
identity_id: id4,
|
|
2461
3023
|
display_name: nullable(text4),
|
|
2462
3024
|
email: nullable(text4),
|
|
2463
3025
|
person: nullable(strictObject({ ref: text4, name: nullable(text4) }))
|
|
2464
3026
|
})),
|
|
2465
3027
|
/** Several identities on one page are observations, never speaker attribution or person links. */
|
|
2466
|
-
ambiguity: strictObject({ scope: literal("page"), multiple_identities: boolean(), identity_ids: array(
|
|
3028
|
+
ambiguity: strictObject({ scope: literal("page"), multiple_identities: boolean(), identity_ids: array(id4) }),
|
|
2467
3029
|
coverage: strictObject({
|
|
2468
|
-
scanned:
|
|
2469
|
-
read_bytes:
|
|
3030
|
+
scanned: count5,
|
|
3031
|
+
read_bytes: count5,
|
|
2470
3032
|
archive_completeness: literal("unknown"),
|
|
2471
3033
|
truncated_by: truncated("limit", "scan_limit", "read_bytes")
|
|
2472
3034
|
}),
|
|
2473
3035
|
page: strictObject({
|
|
2474
3036
|
mode: literal("cursor"),
|
|
2475
|
-
limit:
|
|
3037
|
+
limit: count5,
|
|
2476
3038
|
has_more: boolean(),
|
|
2477
3039
|
next_cursor: optional(text4)
|
|
2478
3040
|
})
|
|
@@ -2486,12 +3048,12 @@ var meetingPassage = strictObject({
|
|
|
2486
3048
|
target_fingerprint: text4,
|
|
2487
3049
|
fingerprint: text4,
|
|
2488
3050
|
revision,
|
|
2489
|
-
limits: strictObject({ before:
|
|
2490
|
-
content_bytes:
|
|
3051
|
+
limits: strictObject({ before: count5, after: count5, bytes: count5, max_read_bytes: count5 }),
|
|
3052
|
+
content_bytes: count5,
|
|
2491
3053
|
coverage: strictObject({
|
|
2492
|
-
included:
|
|
2493
|
-
before:
|
|
2494
|
-
after:
|
|
3054
|
+
included: count5,
|
|
3055
|
+
before: count5,
|
|
3056
|
+
after: count5,
|
|
2495
3057
|
has_before: boolean(),
|
|
2496
3058
|
has_after: boolean(),
|
|
2497
3059
|
truncated_by: truncated("bytes"),
|
|
@@ -2504,12 +3066,12 @@ var meetingPassage = strictObject({
|
|
|
2504
3066
|
items: array(strictObject({
|
|
2505
3067
|
ref: reference,
|
|
2506
3068
|
fingerprint: text4,
|
|
2507
|
-
transcript_id:
|
|
3069
|
+
transcript_id: id4,
|
|
2508
3070
|
content_hash: nullable(text4),
|
|
2509
|
-
position:
|
|
2510
|
-
start_ms:
|
|
2511
|
-
end_ms:
|
|
2512
|
-
speaker_participant_id: nullable(
|
|
3071
|
+
position: count5,
|
|
3072
|
+
start_ms: count5,
|
|
3073
|
+
end_ms: count5,
|
|
3074
|
+
speaker_participant_id: nullable(id4),
|
|
2513
3075
|
speaker_name: nullable(text4),
|
|
2514
3076
|
text: text4,
|
|
2515
3077
|
revision
|
|
@@ -2554,19 +3116,19 @@ var eventItem = /* @__PURE__ */ __name((one) => ({
|
|
|
2554
3116
|
title: one.title,
|
|
2555
3117
|
description: one.description,
|
|
2556
3118
|
location: one.location,
|
|
2557
|
-
starts_at:
|
|
2558
|
-
ends_at:
|
|
3119
|
+
starts_at: iso4(one.startsAt),
|
|
3120
|
+
ends_at: iso4(one.endsAt),
|
|
2559
3121
|
timezone: one.timezone,
|
|
2560
3122
|
origin: one.origin,
|
|
2561
3123
|
status: one.status ?? null,
|
|
2562
3124
|
all_day: one.allDay === true,
|
|
2563
|
-
source_deleted_at:
|
|
2564
|
-
deleted_at:
|
|
3125
|
+
source_deleted_at: iso4(one.sourceDeletedAt ?? null),
|
|
3126
|
+
deleted_at: iso4(one.deletedAt),
|
|
2565
3127
|
created_at: new Date(one.createdAt).toISOString(),
|
|
2566
3128
|
updated_at: new Date(one.updatedAt).toISOString()
|
|
2567
3129
|
}), "eventItem");
|
|
2568
3130
|
|
|
2569
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3131
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/read-through.js
|
|
2570
3132
|
var MEETING_SERVER_BOUNDS = { calls: 3, pages: 2 };
|
|
2571
3133
|
var ISSUES = {
|
|
2572
3134
|
offline: ["permission_error", "meetings.server-offline"],
|
|
@@ -2758,6 +3320,13 @@ var askServerForList = /* @__PURE__ */ __name(async (source, store, accountId, q
|
|
|
2758
3320
|
return step;
|
|
2759
3321
|
}, "askServerForList");
|
|
2760
3322
|
var meetingsListThrough = /* @__PURE__ */ __name(async (source, store, filter, access) => {
|
|
3323
|
+
const listed2 = await listThrough(source, store, filter, access);
|
|
3324
|
+
if (!filter.query || !readsZone(filter.query, MEETING_TIMES))
|
|
3325
|
+
return listed2;
|
|
3326
|
+
return { ...listed2, meta: { ...listed2.meta, timezone: timezoneOf(access.timezone) } };
|
|
3327
|
+
}, "meetingsListThrough");
|
|
3328
|
+
var MEETING_TIMES = new Set(MEETING_QUERY.fields.filter(({ type }) => type === "time").map(({ name }) => name));
|
|
3329
|
+
var listThrough = /* @__PURE__ */ __name(async (source, store, filter, access) => {
|
|
2761
3330
|
const now = access.now ?? Date.now();
|
|
2762
3331
|
const zoned = { ...filter, timezone: timezoneOf(access.timezone), now };
|
|
2763
3332
|
const step = await askServerForList(source, store, filter.accountId, filter.query, { ...access, now });
|
|
@@ -2777,7 +3346,7 @@ var meetingsListThrough = /* @__PURE__ */ __name(async (source, store, filter, a
|
|
|
2777
3346
|
items: list.items.map((item) => ({ ...item, found_in: step.found.get(Number(item.id)) ?? "archive" })),
|
|
2778
3347
|
...extras
|
|
2779
3348
|
};
|
|
2780
|
-
}, "
|
|
3349
|
+
}, "listThrough");
|
|
2781
3350
|
var storedMeeting = /* @__PURE__ */ __name(async (store, accountId, meeting2) => {
|
|
2782
3351
|
const text8 = meeting2.trim();
|
|
2783
3352
|
const own = /* @__PURE__ */ __name((details) => details?.meeting.accountId === accountId ? details : null, "own");
|
|
@@ -2847,10 +3416,10 @@ var meetingShowThrough = /* @__PURE__ */ __name(async (source, store, accountId,
|
|
|
2847
3416
|
return { details: fresh, foundIn: step.found.get(details.meeting.id) ?? "server", server: step.report };
|
|
2848
3417
|
}, "meetingShowThrough");
|
|
2849
3418
|
|
|
2850
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3419
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/recording-schedule.js
|
|
2851
3420
|
import { createHash as createHash3 } from "node:crypto";
|
|
2852
3421
|
|
|
2853
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3422
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/recording-sync.js
|
|
2854
3423
|
var RecordingSyncError = class extends CliError {
|
|
2855
3424
|
static {
|
|
2856
3425
|
__name(this, "RecordingSyncError");
|
|
@@ -3171,7 +3740,7 @@ async function* syncRecordingArchive(catalog, input) {
|
|
|
3171
3740
|
}
|
|
3172
3741
|
__name(syncRecordingArchive, "syncRecordingArchive");
|
|
3173
3742
|
|
|
3174
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3743
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/recording-schedule.js
|
|
3175
3744
|
var fail2 = /* @__PURE__ */ __name((message) => {
|
|
3176
3745
|
throw new CliError("validation_error", message);
|
|
3177
3746
|
}, "fail");
|
|
@@ -3278,7 +3847,7 @@ var installRecordingArchiveSchedule = /* @__PURE__ */ __name(async (scheduler, v
|
|
|
3278
3847
|
return { applied: true, backend, schedule };
|
|
3279
3848
|
}, "installRecordingArchiveSchedule");
|
|
3280
3849
|
|
|
3281
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3850
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/recording-transfer.js
|
|
3282
3851
|
var RecordingTransferError = class extends CliError {
|
|
3283
3852
|
static {
|
|
3284
3853
|
__name(this, "RecordingTransferError");
|
|
@@ -3443,7 +4012,7 @@ var transferRecording = /* @__PURE__ */ __name(async (source, storage, options)
|
|
|
3443
4012
|
}
|
|
3444
4013
|
}, "transferRecording");
|
|
3445
4014
|
|
|
3446
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4015
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/related-history.js
|
|
3447
4016
|
var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
3448
4017
|
if (!original || typeof original !== "object" || Array.isArray(original))
|
|
3449
4018
|
throw new CliError("validation_error", "related history request is required");
|
|
@@ -3454,7 +4023,7 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
|
3454
4023
|
const positive = /* @__PURE__ */ __name((value) => Number.isSafeInteger(value) && value > 0, "positive");
|
|
3455
4024
|
if (!positive(input.accountId) || !positive(input.seriesId))
|
|
3456
4025
|
throw new CliError("validation_error", "accountId and seriesId must be positive safe integers");
|
|
3457
|
-
if (!Array.isArray(input.anchorIds) || input.anchorIds.length > 20 || input.anchorIds.some((
|
|
4026
|
+
if (!Array.isArray(input.anchorIds) || input.anchorIds.length > 20 || input.anchorIds.some((id5) => !positive(id5)))
|
|
3458
4027
|
throw new CliError("validation_error", "anchorIds must contain at most 20 positive safe integers");
|
|
3459
4028
|
for (const key of ["after", "before"])
|
|
3460
4029
|
if (!Number.isSafeInteger(input[key]) || Math.abs(input[key]) > 864e13)
|
|
@@ -3473,18 +4042,18 @@ var validateMeetingRelatedHistory = /* @__PURE__ */ __name((original) => {
|
|
|
3473
4042
|
return { ...input, anchorIds: [...new Set(input.anchorIds)], limit, maxReadBytes };
|
|
3474
4043
|
}, "validateMeetingRelatedHistory");
|
|
3475
4044
|
|
|
3476
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4045
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/result-items.js
|
|
3477
4046
|
var text7 = string();
|
|
3478
4047
|
var identifier = pipe(text7, minLength(1));
|
|
3479
4048
|
var nullableText2 = nullable(text7);
|
|
3480
|
-
var
|
|
4049
|
+
var count6 = pipe(number(), integer(), minValue(0));
|
|
3481
4050
|
var flag = boolean();
|
|
3482
4051
|
var scope2 = strictObject({ provider: text7, account: text7 });
|
|
3483
4052
|
var run = strictObject({
|
|
3484
|
-
meetings:
|
|
3485
|
-
participants:
|
|
3486
|
-
transcript_rows:
|
|
3487
|
-
summaries:
|
|
4053
|
+
meetings: count6,
|
|
4054
|
+
participants: count6,
|
|
4055
|
+
transcript_rows: count6,
|
|
4056
|
+
summaries: count6,
|
|
3488
4057
|
warnings: array(strictObject({ external_id: text7, message: text7 })),
|
|
3489
4058
|
timezone: optional(text7)
|
|
3490
4059
|
});
|
|
@@ -3537,15 +4106,15 @@ var transcription = union([
|
|
|
3537
4106
|
applied: literal(false),
|
|
3538
4107
|
account_id: identifier,
|
|
3539
4108
|
external_id: text7,
|
|
3540
|
-
segments:
|
|
4109
|
+
segments: count6,
|
|
3541
4110
|
media: strictObject({
|
|
3542
4111
|
id: text7,
|
|
3543
4112
|
content_hash: text7,
|
|
3544
|
-
size:
|
|
3545
|
-
duration_ms:
|
|
4113
|
+
size: count6,
|
|
4114
|
+
duration_ms: count6,
|
|
3546
4115
|
format: text7,
|
|
3547
|
-
sample_rate:
|
|
3548
|
-
channels:
|
|
4116
|
+
sample_rate: count6,
|
|
4117
|
+
channels: count6,
|
|
3549
4118
|
recognition
|
|
3550
4119
|
})
|
|
3551
4120
|
}),
|
|
@@ -3555,10 +4124,10 @@ var transcription = union([
|
|
|
3555
4124
|
external_id: text7,
|
|
3556
4125
|
meeting_id: identifier,
|
|
3557
4126
|
created: flag,
|
|
3558
|
-
inserted_transcripts:
|
|
3559
|
-
replayed_transcripts:
|
|
3560
|
-
superseded_transcripts:
|
|
3561
|
-
segments:
|
|
4127
|
+
inserted_transcripts: count6,
|
|
4128
|
+
replayed_transcripts: count6,
|
|
4129
|
+
superseded_transcripts: count6,
|
|
4130
|
+
segments: count6,
|
|
3562
4131
|
media_sha256: text7,
|
|
3563
4132
|
engine: text7,
|
|
3564
4133
|
model: text7,
|
|
@@ -3566,12 +4135,12 @@ var transcription = union([
|
|
|
3566
4135
|
timing: picklist(["fixed-windows", "recognition-segments"])
|
|
3567
4136
|
})
|
|
3568
4137
|
]);
|
|
3569
|
-
var embeddingModel = strictObject({ key: text7, dims:
|
|
4138
|
+
var embeddingModel = strictObject({ key: text7, dims: count6, kind: picklist(["local", "remote"]), model: text7 });
|
|
3570
4139
|
var embedding = union([
|
|
3571
4140
|
strictObject({
|
|
3572
4141
|
account_id: identifier,
|
|
3573
4142
|
model: embeddingModel,
|
|
3574
|
-
status: strictObject({ chunks:
|
|
4143
|
+
status: strictObject({ chunks: count6, embedded: count6 }),
|
|
3575
4144
|
applied: literal(false),
|
|
3576
4145
|
scope: literal("existing-current-chunks"),
|
|
3577
4146
|
rebuild_required: literal("explicit")
|
|
@@ -3579,14 +4148,14 @@ var embedding = union([
|
|
|
3579
4148
|
strictObject({
|
|
3580
4149
|
account_id: identifier,
|
|
3581
4150
|
model: embeddingModel,
|
|
3582
|
-
saved:
|
|
3583
|
-
skipped:
|
|
4151
|
+
saved: count6,
|
|
4152
|
+
skipped: count6,
|
|
3584
4153
|
has_more: flag,
|
|
3585
4154
|
next_hash: optional(text7),
|
|
3586
4155
|
applied: literal(true),
|
|
3587
4156
|
rebuild: strictObject({
|
|
3588
|
-
transcripts:
|
|
3589
|
-
chunks:
|
|
4157
|
+
transcripts: count6,
|
|
4158
|
+
chunks: count6,
|
|
3590
4159
|
has_more: flag,
|
|
3591
4160
|
next_transcript_id: optional(identifier)
|
|
3592
4161
|
})
|
|
@@ -3595,8 +4164,8 @@ var embedding = union([
|
|
|
3595
4164
|
var repair = strictObject({
|
|
3596
4165
|
account_id: identifier,
|
|
3597
4166
|
applied: flag,
|
|
3598
|
-
transcripts:
|
|
3599
|
-
languages: array(strictObject({ language: nullableText2, transcripts:
|
|
4167
|
+
transcripts: count6,
|
|
4168
|
+
languages: array(strictObject({ language: nullableText2, transcripts: count6 }))
|
|
3600
4169
|
});
|
|
3601
4170
|
var kind = picklist(["instant", "scheduled"]);
|
|
3602
4171
|
var managedChange = strictObject({
|
|
@@ -3609,7 +4178,7 @@ var managedChange = strictObject({
|
|
|
3609
4178
|
title: optional(text7),
|
|
3610
4179
|
kind: optional(kind),
|
|
3611
4180
|
start_time: optional(text7),
|
|
3612
|
-
duration_minutes: optional(
|
|
4181
|
+
duration_minutes: optional(count6),
|
|
3613
4182
|
timezone: optional(text7),
|
|
3614
4183
|
agenda: optional(text7)
|
|
3615
4184
|
})),
|
|
@@ -3619,7 +4188,7 @@ var managedChange = strictObject({
|
|
|
3619
4188
|
title: nullableText2,
|
|
3620
4189
|
kind: nullable(kind),
|
|
3621
4190
|
start_time: nullableText2,
|
|
3622
|
-
duration_minutes: nullable(
|
|
4191
|
+
duration_minutes: nullable(count6),
|
|
3623
4192
|
timezone: nullableText2,
|
|
3624
4193
|
agenda: nullableText2,
|
|
3625
4194
|
join_url: nullableText2
|
|
@@ -3637,15 +4206,15 @@ var MEETING_RESULT_ENTITIES = {
|
|
|
3637
4206
|
meeting_repair: repair
|
|
3638
4207
|
};
|
|
3639
4208
|
|
|
3640
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4209
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/review.js
|
|
3641
4210
|
var REVIEW_LIMIT = { default: 50, most: 200 };
|
|
3642
4211
|
|
|
3643
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4212
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/save-hints.js
|
|
3644
4213
|
var SAVE_INSTRUCTION = "If this shows something worth keeping \u2014 a decision, a promise, a preference \u2014 and memo's server is connected, propose it with facts_add or memories_add, citing the msg: locator or meeting: reference. Otherwise skip this.";
|
|
3645
4214
|
var SAVE_HELP = `Worth keeping \u2014 a decision, a promise, a preference? Record it with \`memo facts add\` or
|
|
3646
4215
|
\`memo memories add\`, citing the msg: locator or meeting: reference as --evidence.`;
|
|
3647
4216
|
|
|
3648
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4217
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/series-history.js
|
|
3649
4218
|
var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
3650
4219
|
input.signal?.throwIfAborted();
|
|
3651
4220
|
if (!Number.isSafeInteger(input.accountId) || input.accountId <= 0)
|
|
@@ -3666,10 +4235,10 @@ var validateMeetingSeriesHistory = /* @__PURE__ */ __name((input) => {
|
|
|
3666
4235
|
return { ...input, limit, maxReadBytes };
|
|
3667
4236
|
}, "validateMeetingSeriesHistory");
|
|
3668
4237
|
|
|
3669
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4238
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
|
|
3670
4239
|
import { createHash as createHash4 } from "node:crypto";
|
|
3671
4240
|
|
|
3672
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4241
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/upcoming-validation.js
|
|
3673
4242
|
var invalid4 = /* @__PURE__ */ __name((field) => {
|
|
3674
4243
|
throw new CliError("invalid_response", `meeting occurrence ${field} is invalid`);
|
|
3675
4244
|
}, "invalid");
|
|
@@ -3738,7 +4307,7 @@ var readOccurrenceSchedule = /* @__PURE__ */ __name((input, meetingId, limit, ma
|
|
|
3738
4307
|
return result;
|
|
3739
4308
|
}, "readOccurrenceSchedule");
|
|
3740
4309
|
|
|
3741
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4310
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/series-inventory-validation.js
|
|
3742
4311
|
var inventoryHash = /* @__PURE__ */ __name((value) => createHash4("sha256").update(JSON.stringify(value)).digest("hex"), "inventoryHash");
|
|
3743
4312
|
var inventorySize = /* @__PURE__ */ __name((value) => Buffer.byteLength(JSON.stringify(value), "utf8"), "inventorySize");
|
|
3744
4313
|
function invalid5(field, response = false) {
|
|
@@ -3826,7 +4395,7 @@ var inventoryPage = /* @__PURE__ */ __name((scope3, request, page) => {
|
|
|
3826
4395
|
return { items, selection: page.coverage.selection, partial: page.coverage.partial, nextCursor: page.nextCursor };
|
|
3827
4396
|
}, "inventoryPage");
|
|
3828
4397
|
|
|
3829
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4398
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/series-inventory.js
|
|
3830
4399
|
var cancelled3 = /* @__PURE__ */ __name((signal) => {
|
|
3831
4400
|
if (signal?.aborted)
|
|
3832
4401
|
throw new CliError("cancelled", "meeting inventory reading was cancelled");
|
|
@@ -3882,142 +4451,7 @@ var createMeetingSeriesInventoryReader = /* @__PURE__ */ __name((scope3, port) =
|
|
|
3882
4451
|
};
|
|
3883
4452
|
}, "createMeetingSeriesInventoryReader");
|
|
3884
4453
|
|
|
3885
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3886
|
-
var MEETING_COUNTS_GROUPINGS = ["day", "week", "series"];
|
|
3887
|
-
var zoneOf = /* @__PURE__ */ __name((timeZone) => {
|
|
3888
|
-
const zone = timeZone ?? "UTC";
|
|
3889
|
-
try {
|
|
3890
|
-
new Intl.DateTimeFormat("en", { timeZone: zone });
|
|
3891
|
-
} catch {
|
|
3892
|
-
throw new CliError("validation_error", "expected an IANA time zone such as Europe/Madrid");
|
|
3893
|
-
}
|
|
3894
|
-
return zone;
|
|
3895
|
-
}, "zoneOf");
|
|
3896
|
-
var DAYS = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"];
|
|
3897
|
-
var weekStart = /* @__PURE__ */ __name((at, format) => {
|
|
3898
|
-
const parts = Object.fromEntries(format.formatToParts(new Date(at)).map((part) => [part.type, part.value]));
|
|
3899
|
-
const day2 = Date.UTC(Number(parts.year), Number(parts.month) - 1, Number(parts.day));
|
|
3900
|
-
return new Date(day2 - DAYS.indexOf(parts.weekday ?? "Mon") * 864e5).toISOString().slice(0, 10);
|
|
3901
|
-
}, "weekStart");
|
|
3902
|
-
var dayKey = /* @__PURE__ */ __name((at, format) => {
|
|
3903
|
-
const parts = Object.fromEntries(format.formatToParts(new Date(at)).map((part) => [part.type, part.value]));
|
|
3904
|
-
return `${parts.year}-${parts.month}-${parts.day}`;
|
|
3905
|
-
}, "dayKey");
|
|
3906
|
-
var zoneFormat = /* @__PURE__ */ __name((zone) => new Intl.DateTimeFormat("en-US", {
|
|
3907
|
-
timeZone: zone,
|
|
3908
|
-
year: "numeric",
|
|
3909
|
-
month: "2-digit",
|
|
3910
|
-
day: "2-digit",
|
|
3911
|
-
weekday: "short"
|
|
3912
|
-
}), "zoneFormat");
|
|
3913
|
-
var NO_SERIES = "no-series";
|
|
3914
|
-
var MOST_COUNT_ROWS = 100;
|
|
3915
|
-
var minutesOf = /* @__PURE__ */ __name((ms) => Math.round(ms / 6e4), "minutesOf");
|
|
3916
|
-
var meanOf = /* @__PURE__ */ __name((ms, timed) => timed === 0 ? null : Math.round(ms / timed / 6e3) / 10, "meanOf");
|
|
3917
|
-
var aggregateMeetingCounts = /* @__PURE__ */ __name((meetings, by, timeZone, limit = MOST_COUNT_ROWS) => {
|
|
3918
|
-
if (!MEETING_COUNTS_GROUPINGS.includes(by))
|
|
3919
|
-
throw new CliError("validation_error", `--by takes ${MEETING_COUNTS_GROUPINGS.join(", ")}`);
|
|
3920
|
-
if (!Number.isSafeInteger(limit) || limit < 1)
|
|
3921
|
-
throw new CliError("validation_error", "--limit is a positive number");
|
|
3922
|
-
const zone = zoneOf(timeZone);
|
|
3923
|
-
const format = zoneFormat(zone);
|
|
3924
|
-
const sum = /* @__PURE__ */ __name(() => ({ meetings: 0, ms: 0, timed: 0, transcripts: 0 }), "sum");
|
|
3925
|
-
const add = /* @__PURE__ */ __name((into, meeting2) => {
|
|
3926
|
-
into.meetings += 1;
|
|
3927
|
-
if (meeting2.durationMs !== null) {
|
|
3928
|
-
into.ms += Math.max(0, meeting2.durationMs);
|
|
3929
|
-
into.timed += 1;
|
|
3930
|
-
}
|
|
3931
|
-
if (meeting2.transcribed)
|
|
3932
|
-
into.transcripts += 1;
|
|
3933
|
-
}, "add");
|
|
3934
|
-
const total = { ...sum(), name: null };
|
|
3935
|
-
const groups = /* @__PURE__ */ new Map();
|
|
3936
|
-
for (const meeting2 of meetings) {
|
|
3937
|
-
add(total, meeting2);
|
|
3938
|
-
const key = by === "series" ? meeting2.seriesKey === null ? NO_SERIES : `series:${meeting2.seriesKey}` : meeting2.startedAt === null ? null : by === "day" ? dayKey(meeting2.startedAt, format) : weekStart(meeting2.startedAt, format);
|
|
3939
|
-
if (key === null)
|
|
3940
|
-
continue;
|
|
3941
|
-
const group = groups.get(key) ?? { ...sum(), name: by === "series" ? meeting2.seriesTitle : null };
|
|
3942
|
-
add(group, meeting2);
|
|
3943
|
-
groups.set(key, group);
|
|
3944
|
-
}
|
|
3945
|
-
const ordered = [...groups.entries()].sort(([a, one], [b, other]) => by === "series" ? other.ms - one.ms || other.meetings - one.meetings || a.localeCompare(b) : b.localeCompare(a));
|
|
3946
|
-
const kept = ordered.slice(0, limit);
|
|
3947
|
-
if (by !== "series")
|
|
3948
|
-
kept.reverse();
|
|
3949
|
-
const counted = /* @__PURE__ */ __name(({ meetings: count6, ms, timed, transcripts }) => ({
|
|
3950
|
-
meetings: count6,
|
|
3951
|
-
minutes: minutesOf(ms),
|
|
3952
|
-
meanMinutes: meanOf(ms, timed),
|
|
3953
|
-
transcripts
|
|
3954
|
-
}), "counted");
|
|
3955
|
-
return {
|
|
3956
|
-
by,
|
|
3957
|
-
timeZone: zone,
|
|
3958
|
-
...counted(total),
|
|
3959
|
-
rows: kept.map(([key, group]) => ({ key, name: group.name, ...counted(group) })),
|
|
3960
|
-
hasMore: ordered.length > limit
|
|
3961
|
-
};
|
|
3962
|
-
}, "aggregateMeetingCounts");
|
|
3963
|
-
var UNKNOWN_SPEAKER = "unknown";
|
|
3964
|
-
var speakerOf = /* @__PURE__ */ __name((row) => row.personId !== null ? { key: `person:${row.personId}`, name: row.personName ?? row.identityName ?? row.speakerName } : row.identityId !== null ? { key: `identity:${row.identityId}`, name: row.identityName ?? row.speakerName } : row.speakerName?.trim() ? { key: `name:${row.speakerName.trim().toLowerCase()}`, name: row.speakerName.trim() } : { key: UNKNOWN_SPEAKER, name: null }, "speakerOf");
|
|
3965
|
-
var aggregateMeetingStats = /* @__PURE__ */ __name((rows, timeZone) => {
|
|
3966
|
-
const zone = zoneOf(timeZone);
|
|
3967
|
-
const format = zoneFormat(zone);
|
|
3968
|
-
const speakers = /* @__PURE__ */ new Map();
|
|
3969
|
-
const weeks = /* @__PURE__ */ new Map();
|
|
3970
|
-
const meetings = /* @__PURE__ */ new Set();
|
|
3971
|
-
let lines = 0;
|
|
3972
|
-
let words2 = 0;
|
|
3973
|
-
let talkMs = 0;
|
|
3974
|
-
for (const row of rows) {
|
|
3975
|
-
const talk = Math.max(0, row.endMs - row.startMs);
|
|
3976
|
-
meetings.add(row.meetingId);
|
|
3977
|
-
lines += 1;
|
|
3978
|
-
words2 += row.words;
|
|
3979
|
-
talkMs += talk;
|
|
3980
|
-
const who = speakerOf(row);
|
|
3981
|
-
const held = speakers.get(who.key) ?? {
|
|
3982
|
-
key: who.key,
|
|
3983
|
-
name: who.name ?? null,
|
|
3984
|
-
personId: row.personId,
|
|
3985
|
-
identityId: row.personId === null ? row.identityId : null,
|
|
3986
|
-
meetings: 0,
|
|
3987
|
-
lines: 0,
|
|
3988
|
-
words: 0,
|
|
3989
|
-
talkMs: 0,
|
|
3990
|
-
share: 0,
|
|
3991
|
-
seen: /* @__PURE__ */ new Set()
|
|
3992
|
-
};
|
|
3993
|
-
held.seen.add(row.meetingId);
|
|
3994
|
-
held.lines += 1;
|
|
3995
|
-
held.words += row.words;
|
|
3996
|
-
held.talkMs += talk;
|
|
3997
|
-
speakers.set(who.key, held);
|
|
3998
|
-
if (row.startedAt !== null) {
|
|
3999
|
-
const week = weeks.get(weekStart(row.startedAt, format)) ?? { meetings: /* @__PURE__ */ new Set(), talkMs: 0 };
|
|
4000
|
-
week.meetings.add(row.meetingId);
|
|
4001
|
-
week.talkMs += talk;
|
|
4002
|
-
weeks.set(weekStart(row.startedAt, format), week);
|
|
4003
|
-
}
|
|
4004
|
-
}
|
|
4005
|
-
return {
|
|
4006
|
-
timeZone: zone,
|
|
4007
|
-
meetings: meetings.size,
|
|
4008
|
-
lines,
|
|
4009
|
-
words: words2,
|
|
4010
|
-
talkMs,
|
|
4011
|
-
speakers: [...speakers.values()].map(({ seen, ...speaker }) => ({
|
|
4012
|
-
...speaker,
|
|
4013
|
-
meetings: seen.size,
|
|
4014
|
-
share: talkMs === 0 ? 0 : Math.round(speaker.talkMs / talkMs * 1e3) / 1e3
|
|
4015
|
-
})).sort((a, b) => b.talkMs - a.talkMs || a.key.localeCompare(b.key)),
|
|
4016
|
-
weeks: [...weeks.entries()].map(([start, week]) => ({ weekStart: start, meetings: week.meetings.size, talkMs: week.talkMs })).sort((a, b) => a.weekStart.localeCompare(b.weekStart))
|
|
4017
|
-
};
|
|
4018
|
-
}, "aggregateMeetingStats");
|
|
4019
|
-
|
|
4020
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.662.0_@wirecat+cli-base@0.99.0_commander@15.0.0_esbuild@0.28.2_type_b96f03b0a44798bffec19d0b8a7273db/node_modules/@wirecat/cli-core/dist/meetings/transcription.js
|
|
4454
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/transcription.js
|
|
4021
4455
|
var bounded = /* @__PURE__ */ __name((value, max, name) => {
|
|
4022
4456
|
if (!Number.isSafeInteger(value) || value < 1 || value > max)
|
|
4023
4457
|
throw new CliError("validation_error", `${name} must be an integer from 1 to ${max}`);
|
|
@@ -4153,7 +4587,7 @@ var transcribeMeeting = /* @__PURE__ */ __name(async (source, store, target, opt
|
|
|
4153
4587
|
let valid = false;
|
|
4154
4588
|
try {
|
|
4155
4589
|
const meeting2 = append?.meeting?.meeting;
|
|
4156
|
-
valid = meeting2?.accountId === accountId && meeting2.externalId === externalId && meeting2.deletedAt === null && Number.isSafeInteger(meeting2.id) && meeting2.id > 0 && append.created === false && [append.insertedTranscripts, append.replayedTranscripts, append.supersededTranscripts].every((
|
|
4590
|
+
valid = meeting2?.accountId === accountId && meeting2.externalId === externalId && meeting2.deletedAt === null && Number.isSafeInteger(meeting2.id) && meeting2.id > 0 && append.created === false && [append.insertedTranscripts, append.replayedTranscripts, append.supersededTranscripts].every((count7) => Number.isSafeInteger(count7) && count7 >= 0) && append.insertedTranscripts + append.replayedTranscripts === 1;
|
|
4157
4591
|
} catch {
|
|
4158
4592
|
valid = false;
|
|
4159
4593
|
}
|
|
@@ -4171,7 +4605,7 @@ var transcribeMeeting = /* @__PURE__ */ __name(async (source, store, target, opt
|
|
|
4171
4605
|
};
|
|
4172
4606
|
}, "transcribeMeeting");
|
|
4173
4607
|
|
|
4174
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4608
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/upcoming.js
|
|
4175
4609
|
var cancelled5 = /* @__PURE__ */ __name((signal) => {
|
|
4176
4610
|
if (!signal?.aborted)
|
|
4177
4611
|
return;
|
|
@@ -4241,14 +4675,14 @@ var createUpcomingMeetingReader = /* @__PURE__ */ __name((scope3, port) => {
|
|
|
4241
4675
|
};
|
|
4242
4676
|
}, "createUpcomingMeetingReader");
|
|
4243
4677
|
|
|
4244
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
4245
|
-
var sleep = /* @__PURE__ */ __name((
|
|
4678
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.663.0_@wirecat+cli-base@0.100.0_commander@15.0.0_esbuild@0.28.2_typ_3651938dd4032f987ce713acb104c9b9/node_modules/@wirecat/cli-core/dist/meetings/watch.js
|
|
4679
|
+
var sleep = /* @__PURE__ */ __name((milliseconds2, signal) => new Promise((resolve) => {
|
|
4246
4680
|
const finish = /* @__PURE__ */ __name(() => {
|
|
4247
4681
|
clearTimeout(timer);
|
|
4248
4682
|
signal.removeEventListener("abort", finish);
|
|
4249
4683
|
resolve();
|
|
4250
4684
|
}, "finish");
|
|
4251
|
-
const timer = setTimeout(finish,
|
|
4685
|
+
const timer = setTimeout(finish, milliseconds2);
|
|
4252
4686
|
signal.addEventListener("abort", finish, { once: true });
|
|
4253
4687
|
}), "sleep");
|
|
4254
4688
|
var isCancellation = /* @__PURE__ */ __name((error, signal) => {
|
|
@@ -4290,6 +4724,7 @@ export {
|
|
|
4290
4724
|
serviceCallsOf,
|
|
4291
4725
|
rangeOf,
|
|
4292
4726
|
windowOf,
|
|
4727
|
+
readsZone,
|
|
4293
4728
|
formatMeetingReference,
|
|
4294
4729
|
parseMeetingReference,
|
|
4295
4730
|
canonicalMeetingReference,
|
|
@@ -4312,6 +4747,19 @@ export {
|
|
|
4312
4747
|
calendarText,
|
|
4313
4748
|
ENTRY_METADATA_KEYS,
|
|
4314
4749
|
entryMetadata,
|
|
4750
|
+
CALL_DIRECTIONS,
|
|
4751
|
+
CALL_OUTCOMES,
|
|
4752
|
+
MISSED_OUTCOMES,
|
|
4753
|
+
callOf,
|
|
4754
|
+
callStats,
|
|
4755
|
+
callStatsItem,
|
|
4756
|
+
MEETING_COUNTS_GROUPINGS,
|
|
4757
|
+
NO_SERIES,
|
|
4758
|
+
aggregateMeetingCounts,
|
|
4759
|
+
aggregateMeetingStats,
|
|
4760
|
+
CALLBACK_WITHIN_MS,
|
|
4761
|
+
SHORT_CALL_UNDER_MS,
|
|
4762
|
+
aggregateCallStats,
|
|
4315
4763
|
meetingCueFingerprint,
|
|
4316
4764
|
EVENT_QUERY,
|
|
4317
4765
|
entryInWindow,
|
|
@@ -4417,10 +4865,6 @@ export {
|
|
|
4417
4865
|
validateMeetingSeriesHistory,
|
|
4418
4866
|
validateMeetingSeriesInventoryCursor,
|
|
4419
4867
|
createMeetingSeriesInventoryReader,
|
|
4420
|
-
MEETING_COUNTS_GROUPINGS,
|
|
4421
|
-
NO_SERIES,
|
|
4422
|
-
aggregateMeetingCounts,
|
|
4423
|
-
aggregateMeetingStats,
|
|
4424
4868
|
transcribeMeeting,
|
|
4425
4869
|
createUpcomingMeetingReader,
|
|
4426
4870
|
watchMeetingIngestion
|