@wirecat/zoom-cli 0.76.0 → 0.77.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/README.md +12 -11
- package/contracts/wirecat.json +53 -105
- package/dist/answer-entities.d.ts +1 -141
- package/dist/answer-entities.d.ts.map +1 -1
- package/dist/answer-entities.js +0 -31
- package/dist/answer-entities.js.map +1 -1
- package/dist/api.d.ts +18 -1
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +179 -54
- package/dist/api.js.map +1 -1
- package/dist/archive-commands.d.ts +0 -3
- package/dist/archive-commands.d.ts.map +1 -1
- package/dist/archive-commands.js +1 -54
- package/dist/archive-commands.js.map +1 -1
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/{all-profiles-AAMFP7IN.js → all-profiles-PMCFNDMA.js} +11 -11
- package/dist/bundle/answer-policy-XU7KEW2V.js +121 -0
- package/dist/bundle/{anthropic-6KIS53QB.js → anthropic-TGJOKLUS.js} +6 -6
- package/dist/bundle/{app-server-6QYNNYEU.js → app-server-OAODUFM3.js} +73 -63
- package/dist/bundle/{bun-QVVCH4MJ.js → bun-HJHVHJJV.js} +2 -2
- package/dist/bundle/{bun-sqlite-Y2ZFMNQ3.js → bun-sqlite-PLBOY6FP.js} +7 -7
- package/dist/bundle/{chunk-OWZETMRE.js → chunk-2QDD6S2R.js} +8 -8
- package/dist/bundle/{chunk-FGRFIXG2.js → chunk-2QRGJSKO.js} +2 -2
- package/dist/bundle/{chunk-D2TGXSHQ.js → chunk-36SI35XZ.js} +5 -5
- package/dist/bundle/{chunk-4JPOELCT.js → chunk-375BH5OD.js} +4 -4
- package/dist/bundle/{chunk-OFODCJ2A.js → chunk-3TLQF3DN.js} +3 -3
- package/dist/bundle/{chunk-K3K3WKDB.js → chunk-4QNW4NK6.js} +1 -1
- package/dist/bundle/{chunk-YEBWRWE3.js → chunk-4Z4VOQRR.js} +17 -17
- package/dist/bundle/{chunk-LGBLYFKI.js → chunk-5A5W322G.js} +6 -2
- package/dist/bundle/chunk-5C5UEKUJ.js +170 -0
- package/dist/bundle/chunk-5C6CRSEM.js +389 -0
- package/dist/bundle/{chunk-VG63EXRC.js → chunk-5KHCFIWI.js} +2 -2
- package/dist/bundle/{chunk-LEVOI6Z3.js → chunk-635GRAO5.js} +12 -12
- package/dist/bundle/{chunk-Y2BGABXP.js → chunk-6JRBMNRN.js} +3 -3
- package/dist/bundle/{chunk-XC4V6YCS.js → chunk-6YCFDDRO.js} +1 -1
- package/dist/bundle/{chunk-VRA4RVQU.js → chunk-77JQIY2V.js} +3 -3
- package/dist/bundle/{chunk-CPOFLYPU.js → chunk-7AFYZOHU.js} +29 -29
- package/dist/bundle/{chunk-IXPBSDKB.js → chunk-7CMYNW3W.js} +4 -4
- package/dist/bundle/chunk-7DTU7QZP.js +72 -0
- package/dist/bundle/chunk-7ILGYNWX.js +773 -0
- package/dist/bundle/{chunk-Y4WEAWU7.js → chunk-7S3N5CTA.js} +1 -1
- package/dist/bundle/chunk-7SNU7RFU.js +229 -0
- package/dist/bundle/{chunk-TK77DCE5.js → chunk-A6LK2W5J.js} +1 -1
- package/dist/bundle/{chunk-UAV74EY4.js → chunk-ADJIYY33.js} +1 -1
- package/dist/bundle/{chunk-JWMOHEDL.js → chunk-B7XFDMFV.js} +10 -10
- package/dist/bundle/{chunk-GYTAHH5Y.js → chunk-BOJCRTQW.js} +2 -2
- package/dist/bundle/{chunk-HUHH25AG.js → chunk-CJL5GHTQ.js} +913 -544
- package/dist/bundle/{chunk-T2QVWRJF.js → chunk-CL6QAZGT.js} +39 -67
- package/dist/bundle/{chunk-NQ356ERO.js → chunk-CUJJZJ4R.js} +44 -8
- package/dist/bundle/{chunk-OINDAHXC.js → chunk-CZ6OO66B.js} +4 -4
- package/dist/bundle/chunk-DCEQIKFD.js +259 -0
- package/dist/bundle/{chunk-55SWKR6Y.js → chunk-DDUNPLET.js} +256 -588
- package/dist/bundle/{chunk-6VCQ4CTK.js → chunk-DYIRJINE.js} +1 -1
- package/dist/bundle/{chunk-WKT5RPSY.js → chunk-E3UPMPUV.js} +8 -8
- package/dist/bundle/{chunk-5T7TBK5Y.js → chunk-ECRFXQHA.js} +1 -1
- package/dist/bundle/{chunk-LOEK6IFQ.js → chunk-F4ROWGLU.js} +57 -35
- package/dist/bundle/{chunk-UYZDH5LK.js → chunk-FDQE2CLT.js} +1 -1
- package/dist/bundle/{chunk-M7WYBGQT.js → chunk-FRC5QIPQ.js} +8 -8
- package/dist/bundle/{chunk-3D5PETD2.js → chunk-FS5HPXQN.js} +9 -9
- package/dist/bundle/{chunk-QY6GE7CL.js → chunk-GHBDYYPO.js} +2 -2
- package/dist/bundle/{chunk-OOYIPK4F.js → chunk-H2EVYY5Z.js} +1 -1
- package/dist/bundle/{chunk-PFLJJQWW.js → chunk-I3QMPQYD.js} +49 -49
- package/dist/bundle/{chunk-XWQKRKMT.js → chunk-ICZVSVTW.js} +71 -252
- package/dist/bundle/{chunk-R47GYLNN.js → chunk-IJTBB23F.js} +29 -27
- package/dist/bundle/{chunk-WZJ7ZYR4.js → chunk-IS6MUPN2.js} +4 -4
- package/dist/bundle/{chunk-ORM73DZO.js → chunk-IUOKIZZN.js} +2 -2
- package/dist/bundle/{chunk-FMJ4QSSU.js → chunk-IZMRQ3MV.js} +10 -10
- package/dist/bundle/{chunk-HWYSJ4SL.js → chunk-JFVZVPRW.js} +3 -3
- package/dist/bundle/{chunk-7RORMNKP.js → chunk-JMU3E2WA.js} +2 -2
- package/dist/bundle/{chunk-6SXCGS3A.js → chunk-JQUYHPQD.js} +7 -7
- package/dist/bundle/{chunk-MDTEAKA5.js → chunk-KHBSQROH.js} +5 -5
- package/dist/bundle/{chunk-EPPE6ZTS.js → chunk-KYKW2W6X.js} +1 -1
- package/dist/bundle/chunk-LMZUC4CS.js +101 -0
- package/dist/bundle/{chunk-X73YEFQE.js → chunk-LUAS73NT.js} +18 -18
- package/dist/bundle/{chunk-25GMFXPF.js → chunk-LWMDLXEO.js} +2032 -2657
- package/dist/bundle/{chunk-GPIQY4YB.js → chunk-LYVHQ6DJ.js} +14 -14
- package/dist/bundle/{chunk-CXHUOPN5.js → chunk-MCLZ74II.js} +7 -7
- package/dist/bundle/chunk-MIG4RLDB.js +555 -0
- package/dist/bundle/{chunk-JADBHKBP.js → chunk-MMAZUJBO.js} +1 -1
- package/dist/bundle/{chunk-VABYJQYE.js → chunk-MTH3JJHF.js} +24 -22
- package/dist/bundle/{chunk-EZXW3ZCR.js → chunk-NJJEUG4C.js} +12 -12
- package/dist/bundle/{chunk-GZYICXO4.js → chunk-NKKVVPL5.js} +1 -1
- package/dist/bundle/{chunk-QLUU3BV2.js → chunk-NOF6LABG.js} +6 -6
- package/dist/bundle/{chunk-KEFDP6NL.js → chunk-NPDPD2H3.js} +12 -12
- package/dist/bundle/{chunk-5EII5RIL.js → chunk-NPIVV52M.js} +1 -1
- package/dist/bundle/{chunk-UG2QDGAH.js → chunk-OOIU36FA.js} +1 -1
- package/dist/bundle/{chunk-IUSY4ZJK.js → chunk-OXXJW3A5.js} +806 -1523
- package/dist/bundle/chunk-PM3MB3E7.js +295 -0
- package/dist/bundle/{chunk-EBIK5Q73.js → chunk-PO4RZ4XZ.js} +1 -1
- package/dist/bundle/{chunk-EZJSAYWZ.js → chunk-Q7ZW7XAX.js} +31 -87
- package/dist/bundle/{chunk-CS62FET6.js → chunk-QAGECFHL.js} +22 -22
- package/dist/bundle/{chunk-WNXC42IU.js → chunk-QE4L2QQZ.js} +9 -9
- package/dist/bundle/{chunk-YESHGC3M.js → chunk-QKNO3JTG.js} +2 -2
- package/dist/bundle/{chunk-TYAFL66K.js → chunk-QUGESVOE.js} +15 -31
- package/dist/bundle/{chunk-DQHS336B.js → chunk-RQS3W4P6.js} +7 -6
- package/dist/bundle/{chunk-XHVFX74L.js → chunk-SFPUSEOT.js} +2 -2
- package/dist/bundle/{chunk-YGKM2ZWF.js → chunk-SP5OMHOO.js} +3 -3
- package/dist/bundle/chunk-STNZQBY4.js +335 -0
- package/dist/bundle/{chunk-RJK5ADMH.js → chunk-SVJQRG5N.js} +16 -16
- package/dist/bundle/{chunk-B7ZREOBD.js → chunk-SY5NGYKA.js} +12 -12
- package/dist/bundle/{chunk-GB5LI5RM.js → chunk-T4CI3YXW.js} +6 -6
- package/dist/bundle/{chunk-ELW3LMJZ.js → chunk-T6RSYDFA.js} +342 -154
- package/dist/bundle/{chunk-ZETM63M6.js → chunk-TY4FFK2P.js} +6 -6
- package/dist/bundle/chunk-UGRGYLEI.js +224 -0
- package/dist/bundle/{chunk-4ERYXY4Y.js → chunk-VGERRRDC.js} +1 -1
- package/dist/bundle/{chunk-XRH2NKW4.js → chunk-VJ2TLU7R.js} +6 -6
- package/dist/bundle/{chunk-2HKUQ7DR.js → chunk-W7UCN7MF.js} +3 -3
- package/dist/bundle/{chunk-IVFNHIU4.js → chunk-WD5OL5JB.js} +81 -5
- package/dist/bundle/{chunk-CE5Y7PQU.js → chunk-XC3MWABM.js} +4 -4
- package/dist/bundle/{chunk-ZFYNJERV.js → chunk-XCA5N63N.js} +6 -6
- package/dist/bundle/chunk-XVHDT4CO.js +31 -0
- package/dist/bundle/{chunk-65VRWNDP.js → chunk-YFN5A7OP.js} +4 -4
- package/dist/bundle/{chunk-VCFSUGPE.js → chunk-YJIGGUPI.js} +4 -4
- package/dist/bundle/{chunk-RXUVXAMM.js → chunk-YVI5SQPY.js} +1 -1
- package/dist/bundle/{chunk-FBVJGJDM.js → chunk-ZRNNMBPC.js} +27 -574
- package/dist/bundle/{chunk-VJANMYEC.js → chunk-ZUMKZOHR.js} +3 -3
- package/dist/bundle/{chunk-35AH33VJ.js → chunk-ZZ32DXTH.js} +1 -1
- package/dist/bundle/{cli-FHMLYHUZ.js → cli-Y27PHKBV.js} +101 -84
- package/dist/bundle/command-contract-GB7YA3KW.js +45 -0
- package/dist/bundle/{command-server-entry-YEZM52R5.js → command-server-entry-AXQSW2X6.js} +35 -31
- package/dist/bundle/config-2OOABHR7.js +108 -0
- package/dist/bundle/{decode-SIYRMJOK.js → decode-ZRNOOTUZ.js} +16 -8
- package/dist/bundle/{dispatch-SMER3WDX.js → dispatch-2GHGPAYH.js} +9 -9
- package/dist/bundle/{dist-BSJETSFE.js → dist-MUFVAMKB.js} +25 -22
- package/dist/bundle/{echarts-UZJ6AREV.js → echarts-F4PHDYET.js} +2 -2
- package/dist/bundle/{embed-A7DSHVI7.js → embed-KWHCKPCV.js} +7 -7
- package/dist/bundle/{embedder-WQBR4UGS.js → embedder-U3R3RY54.js} +10 -10
- package/dist/bundle/{failure-73UQXQTW.js → failure-S2YXEN4A.js} +3 -3
- package/dist/bundle/first-run-F4YR2E2C.js +29 -0
- package/dist/bundle/first-screen-HPRHD3VK.js +43 -0
- package/dist/bundle/{folders-BH4SV6SI.js → folders-DVTRFQKW.js} +5 -5
- package/dist/bundle/{instructions-SDDUBGH4.js → instructions-JU4YW6QY.js} +1 -1
- package/dist/bundle/{main-KL4FN5F3.js → main-5UCRPACH.js} +24 -24
- package/dist/bundle/{mcp-GN4FTJX5.js → mcp-O6ACR2DX.js} +2 -2
- package/dist/bundle/meeting-combined-IWU5SPAH.js +26 -0
- package/dist/bundle/meeting-model-ILIUJECZ.js +26 -0
- package/dist/bundle/meeting-semantic-5DKRGZFS.js +23 -0
- package/dist/bundle/{meetings-URPXBHV7.js → meetings-T2UY35DV.js} +25 -7
- package/dist/bundle/{node-ELCNUOCE.js → node-MAVRAF4M.js} +2 -2
- package/dist/bundle/{node-sqlite-QLSNHZBM.js → node-sqlite-TFBQ5NDI.js} +8 -8
- package/dist/bundle/{oauth-LZ64S7Y3.js → oauth-7IG5HWSY.js} +8 -8
- package/dist/bundle/{open-WB4HUPQT.js → open-3R3N7L3X.js} +6 -6
- package/dist/bundle/openai-DD5I3DWC.js +28 -0
- package/dist/bundle/{output-file-AHPQA5LR.js → output-file-KKHHAYWF.js} +6 -6
- package/dist/bundle/{process-67DAKAAQ.js → process-OIO254NR.js} +1 -1
- package/dist/bundle/{program-CIMACIBE.js → program-IBYRU76H.js} +423 -251
- package/dist/bundle/{prompt-GG53UBDJ.js → prompt-LNEOO7PN.js} +6 -6
- package/dist/bundle/{recognize-CFJ3CAEH.js → recognize-2WYLT3PC.js} +5 -5
- package/dist/bundle/{remote-BLEM7C3Q.js → remote-7EAJEIV7.js} +11 -11
- package/dist/bundle/{rerank-ERN6PC66.js → rerank-DZBZ744F.js} +8 -8
- package/dist/bundle/run-log-CCIVRSHP.js +135 -0
- package/dist/bundle/{serve-FJPPTJXH.js → serve-T3KQV5SS.js} +15 -15
- package/dist/bundle/{server-FLUSDUGM.js → server-2QQAQZ2J.js} +59 -49
- package/dist/bundle/server-OJQMPF2R.js +84 -0
- package/dist/bundle/{services-LXC6DVUQ.js → services-DETAKMC3.js} +78 -54
- package/dist/bundle/{speech-WFEZTKXA.js → speech-HD57JNTK.js} +34 -18
- package/dist/bundle/{sqlite-runtime-KN33VSP7.js → sqlite-runtime-OCETZSEZ.js} +7 -7
- package/dist/bundle/{state-TXS4ZHIT.js → state-ZKVQ4DBI.js} +7 -7
- package/dist/bundle/{store-ZUREZYZB.js → store-7IZ2WMHF.js} +24 -20
- package/dist/bundle/{store-MUOXLVL4.js → store-GEAQ7V5R.js} +26 -22
- package/dist/bundle/store-connection-BALCZW7P.js +101 -0
- package/dist/bundle/store-maintenance-command-SBT4LDSI.js +76 -0
- package/dist/bundle/{streaming-ZSCHRC5S.js → streaming-CLBAO3MG.js} +7 -7
- package/dist/bundle/{tokens-YVDOY4EV.js → tokens-WH73ZWFI.js} +10 -10
- package/dist/bundle/zm.js +9 -9
- package/dist/bundle/{zoom-app-O6GIMB7Y.js → zoom-app-ZDTYMJET.js} +8 -8
- package/dist/commands.d.ts.map +1 -1
- package/dist/commands.js +3 -0
- package/dist/commands.js.map +1 -1
- package/dist/first-screen.d.ts.map +1 -1
- package/dist/first-screen.js +3 -5
- package/dist/first-screen.js.map +1 -1
- package/dist/meeting-integration-commands.d.ts.map +1 -1
- package/dist/meeting-integration-commands.js +46 -28
- package/dist/meeting-integration-commands.js.map +1 -1
- package/dist/meeting-source.d.ts.map +1 -1
- package/dist/meeting-source.js +15 -1
- package/dist/meeting-source.js.map +1 -1
- package/dist/permissions.d.ts +8 -4
- package/dist/permissions.d.ts.map +1 -1
- package/dist/permissions.js +25 -24
- package/dist/permissions.js.map +1 -1
- package/dist/program-bindings.d.ts.map +1 -1
- package/dist/program-bindings.js +8 -5
- package/dist/program-bindings.js.map +1 -1
- package/dist/program.d.ts +2 -1
- package/dist/program.d.ts.map +1 -1
- package/dist/program.js.map +1 -1
- package/dist/remote-meetings.d.ts +38 -8
- package/dist/remote-meetings.d.ts.map +1 -1
- package/dist/remote-meetings.js +52 -29
- package/dist/remote-meetings.js.map +1 -1
- package/dist/run.js +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/zoom-app.d.ts.map +1 -1
- package/dist/zoom-app.js +1 -0
- package/dist/zoom-app.js.map +1 -1
- package/package.json +3 -3
- package/skills/zoom-cli/SKILL.md +2 -2
- package/dist/bundle/answer-policy-ETAELI4A.js +0 -110
- package/dist/bundle/chunk-64N7MY3I.js +0 -161
- package/dist/bundle/command-contract-HUZ4I23S.js +0 -41
- package/dist/bundle/config-KVTWN7QZ.js +0 -97
- package/dist/bundle/first-run-SY6XSUZ3.js +0 -29
- package/dist/bundle/first-screen-ZDMODGWS.js +0 -39
- package/dist/bundle/openai-KN6JE4QU.js +0 -28
- package/dist/bundle/run-log-S67YPJF6.js +0 -124
- package/dist/bundle/server-UNJY3TSJ.js +0 -74
- package/dist/bundle/store-connection-NRNEBUPU.js +0 -90
- package/dist/bundle/store-maintenance-command-OBOPYFZ5.js +0 -65
- /package/dist/bundle/{chunk-BDCC2J2Z.js → chunk-VKE77B3F.js} +0 -0
|
@@ -2,8 +2,8 @@ import { createRequire as __bundleRequire } from "node:module";
|
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
3
|
import {
|
|
4
4
|
TokenManager
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-KHBSQROH.js";
|
|
6
|
+
import "./chunk-WD5OL5JB.js";
|
|
7
7
|
import {
|
|
8
8
|
addMeetingEmbeddingCommand,
|
|
9
9
|
addMeetingSearchCommands,
|
|
@@ -25,14 +25,7 @@ import {
|
|
|
25
25
|
validateTaskKind,
|
|
26
26
|
validateTaskProposal,
|
|
27
27
|
validateUnifiedSearch
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import {
|
|
30
|
-
emitReceipt
|
|
31
|
-
} from "./chunk-HWYSJ4SL.js";
|
|
32
|
-
import "./chunk-64N7MY3I.js";
|
|
33
|
-
import "./chunk-VABYJQYE.js";
|
|
34
|
-
import "./chunk-VJANMYEC.js";
|
|
35
|
-
import "./chunk-CE5Y7PQU.js";
|
|
28
|
+
} from "./chunk-7AFYZOHU.js";
|
|
36
29
|
import {
|
|
37
30
|
DEFAULT_PERMISSIONS,
|
|
38
31
|
ZOOM_ANSWER_ENTITIES,
|
|
@@ -40,6 +33,7 @@ import {
|
|
|
40
33
|
addProfile,
|
|
41
34
|
addStandardCommands,
|
|
42
35
|
annotateMeetingCommands,
|
|
36
|
+
askBeforeWrite,
|
|
43
37
|
bodyOf,
|
|
44
38
|
chooseProfile,
|
|
45
39
|
contextSourcesSchema,
|
|
@@ -60,7 +54,37 @@ import {
|
|
|
60
54
|
unsetConfig,
|
|
61
55
|
wholeList,
|
|
62
56
|
zoomRunsCommand
|
|
63
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-CL6QAZGT.js";
|
|
58
|
+
import {
|
|
59
|
+
CLIENT_ID_NEED,
|
|
60
|
+
SET_ZOOM_APP,
|
|
61
|
+
checkedClientId,
|
|
62
|
+
login,
|
|
63
|
+
zoomApp,
|
|
64
|
+
zoomAppChecklist,
|
|
65
|
+
zoomAppSetup,
|
|
66
|
+
zoomClientId,
|
|
67
|
+
zoomClientReport
|
|
68
|
+
} from "./chunk-RQS3W4P6.js";
|
|
69
|
+
import "./chunk-7O7XM37N.js";
|
|
70
|
+
import {
|
|
71
|
+
emitReceipt
|
|
72
|
+
} from "./chunk-JFVZVPRW.js";
|
|
73
|
+
import {
|
|
74
|
+
ZoneAssumptions,
|
|
75
|
+
cancellableStore,
|
|
76
|
+
checkCancelled,
|
|
77
|
+
number,
|
|
78
|
+
object,
|
|
79
|
+
string as string2,
|
|
80
|
+
withIssue,
|
|
81
|
+
zoomInstant,
|
|
82
|
+
zoomTime
|
|
83
|
+
} from "./chunk-2QRGJSKO.js";
|
|
84
|
+
import "./chunk-PM3MB3E7.js";
|
|
85
|
+
import "./chunk-MTH3JJHF.js";
|
|
86
|
+
import "./chunk-ZUMKZOHR.js";
|
|
87
|
+
import "./chunk-XC3MWABM.js";
|
|
64
88
|
import {
|
|
65
89
|
MEMO_SCENARIOS,
|
|
66
90
|
SEARCHES_QUERY,
|
|
@@ -88,60 +112,27 @@ import {
|
|
|
88
112
|
signInSteps,
|
|
89
113
|
skillCommand as skillCommand2,
|
|
90
114
|
upgradeCommand
|
|
91
|
-
} from "./chunk-
|
|
92
|
-
import "./chunk-
|
|
93
|
-
import
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
checkedClientId,
|
|
97
|
-
login,
|
|
98
|
-
zoomApp,
|
|
99
|
-
zoomAppChecklist,
|
|
100
|
-
zoomAppSetup,
|
|
101
|
-
zoomClientId,
|
|
102
|
-
zoomClientReport
|
|
103
|
-
} from "./chunk-DQHS336B.js";
|
|
104
|
-
import "./chunk-7O7XM37N.js";
|
|
105
|
-
import "./chunk-4ERYXY4Y.js";
|
|
106
|
-
import {
|
|
107
|
-
ZoneAssumptions,
|
|
108
|
-
cancellableStore,
|
|
109
|
-
checkCancelled,
|
|
110
|
-
number,
|
|
111
|
-
object,
|
|
112
|
-
string as string2,
|
|
113
|
-
withIssue,
|
|
114
|
-
zoomInstant,
|
|
115
|
-
zoomTime
|
|
116
|
-
} from "./chunk-FGRFIXG2.js";
|
|
117
|
-
import "./chunk-UYZDH5LK.js";
|
|
115
|
+
} from "./chunk-CJL5GHTQ.js";
|
|
116
|
+
import "./chunk-NPDPD2H3.js";
|
|
117
|
+
import "./chunk-VGERRRDC.js";
|
|
118
|
+
import "./chunk-NKKVVPL5.js";
|
|
119
|
+
import "./chunk-FDQE2CLT.js";
|
|
118
120
|
import {
|
|
119
121
|
allAnswer
|
|
120
|
-
} from "./chunk-
|
|
121
|
-
import "./chunk-GZYICXO4.js";
|
|
122
|
+
} from "./chunk-IJTBB23F.js";
|
|
122
123
|
import {
|
|
123
124
|
skillCommand
|
|
124
|
-
} from "./chunk-
|
|
125
|
-
import "./chunk-
|
|
125
|
+
} from "./chunk-SVJQRG5N.js";
|
|
126
|
+
import "./chunk-7CMYNW3W.js";
|
|
127
|
+
import "./chunk-ICZVSVTW.js";
|
|
128
|
+
import "./chunk-UGRGYLEI.js";
|
|
126
129
|
import {
|
|
127
130
|
commandPermissions
|
|
128
|
-
} from "./chunk-
|
|
131
|
+
} from "./chunk-LUAS73NT.js";
|
|
129
132
|
import {
|
|
130
133
|
pagingOf
|
|
131
|
-
} from "./chunk-
|
|
132
|
-
import "./chunk-
|
|
133
|
-
import "./chunk-LEVOI6Z3.js";
|
|
134
|
-
import {
|
|
135
|
-
sameConfigFolder,
|
|
136
|
-
zmPaths
|
|
137
|
-
} from "./chunk-5EII5RIL.js";
|
|
138
|
-
import "./chunk-B7ZREOBD.js";
|
|
139
|
-
import "./chunk-LGBLYFKI.js";
|
|
140
|
-
import "./chunk-NQ356ERO.js";
|
|
141
|
-
import "./chunk-ORM73DZO.js";
|
|
142
|
-
import "./chunk-HTQTIKWP.js";
|
|
143
|
-
import "./chunk-IXPBSDKB.js";
|
|
144
|
-
import "./chunk-2HKUQ7DR.js";
|
|
134
|
+
} from "./chunk-NJJEUG4C.js";
|
|
135
|
+
import "./chunk-W7UCN7MF.js";
|
|
145
136
|
import {
|
|
146
137
|
NativeRecordingPartialStore,
|
|
147
138
|
NativeRecordingPublication,
|
|
@@ -158,29 +149,44 @@ import {
|
|
|
158
149
|
unfilteredQuery,
|
|
159
150
|
validateMeetingPreparationRequest,
|
|
160
151
|
withQuery
|
|
161
|
-
} from "./chunk-
|
|
162
|
-
import "./chunk-
|
|
152
|
+
} from "./chunk-LWMDLXEO.js";
|
|
153
|
+
import "./chunk-7SNU7RFU.js";
|
|
154
|
+
import "./chunk-6YCFDDRO.js";
|
|
163
155
|
import {
|
|
164
156
|
nativeWriterLeaseStore,
|
|
165
157
|
openOrdinaryFile,
|
|
166
158
|
syncDirectory,
|
|
167
159
|
writeFileAtomic
|
|
168
|
-
} from "./chunk-
|
|
160
|
+
} from "./chunk-LYVHQ6DJ.js";
|
|
161
|
+
import "./chunk-5C6CRSEM.js";
|
|
162
|
+
import "./chunk-5C5UEKUJ.js";
|
|
163
|
+
import "./chunk-TY4FFK2P.js";
|
|
164
|
+
import "./chunk-635GRAO5.js";
|
|
169
165
|
import {
|
|
170
166
|
latestVersion,
|
|
171
167
|
runUpdate,
|
|
172
168
|
updateNotice
|
|
173
|
-
} from "./chunk-
|
|
174
|
-
import "./chunk-
|
|
175
|
-
import
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
import "./chunk-
|
|
180
|
-
import "./chunk-
|
|
181
|
-
import "./chunk-
|
|
182
|
-
import "./chunk-
|
|
183
|
-
import "./chunk-
|
|
169
|
+
} from "./chunk-IS6MUPN2.js";
|
|
170
|
+
import "./chunk-YVI5SQPY.js";
|
|
171
|
+
import {
|
|
172
|
+
sameConfigFolder,
|
|
173
|
+
zmPaths
|
|
174
|
+
} from "./chunk-NPIVV52M.js";
|
|
175
|
+
import "./chunk-SY5NGYKA.js";
|
|
176
|
+
import "./chunk-5A5W322G.js";
|
|
177
|
+
import "./chunk-CUJJZJ4R.js";
|
|
178
|
+
import "./chunk-IUOKIZZN.js";
|
|
179
|
+
import "./chunk-B7XFDMFV.js";
|
|
180
|
+
import "./chunk-HTQTIKWP.js";
|
|
181
|
+
import "./chunk-YFN5A7OP.js";
|
|
182
|
+
import "./chunk-4Z4VOQRR.js";
|
|
183
|
+
import "./chunk-DCEQIKFD.js";
|
|
184
|
+
import "./chunk-QE4L2QQZ.js";
|
|
185
|
+
import "./chunk-T4CI3YXW.js";
|
|
186
|
+
import "./chunk-JQUYHPQD.js";
|
|
187
|
+
import "./chunk-7S3N5CTA.js";
|
|
188
|
+
import "./chunk-ADJIYY33.js";
|
|
189
|
+
import "./chunk-36SI35XZ.js";
|
|
184
190
|
import {
|
|
185
191
|
Argument,
|
|
186
192
|
CommanderError,
|
|
@@ -214,17 +220,20 @@ import {
|
|
|
214
220
|
snakeKeys,
|
|
215
221
|
writesNewFileOnlyWith,
|
|
216
222
|
writesOwnerFiles
|
|
217
|
-
} from "./chunk-
|
|
218
|
-
import "./chunk-
|
|
219
|
-
import "./chunk-
|
|
220
|
-
import "./chunk-
|
|
223
|
+
} from "./chunk-DDUNPLET.js";
|
|
224
|
+
import "./chunk-LMZUC4CS.js";
|
|
225
|
+
import "./chunk-GHBDYYPO.js";
|
|
226
|
+
import "./chunk-OOIU36FA.js";
|
|
227
|
+
import "./chunk-MCLZ74II.js";
|
|
228
|
+
import "./chunk-375BH5OD.js";
|
|
221
229
|
import {
|
|
222
230
|
COMMAND_PATH_KEY,
|
|
223
231
|
assertOverridesTighten,
|
|
224
232
|
permissionOverrides
|
|
225
|
-
} from "./chunk-
|
|
226
|
-
import "./chunk-
|
|
227
|
-
import "./chunk-
|
|
233
|
+
} from "./chunk-2QDD6S2R.js";
|
|
234
|
+
import "./chunk-6JRBMNRN.js";
|
|
235
|
+
import "./chunk-STNZQBY4.js";
|
|
236
|
+
import "./chunk-SP5OMHOO.js";
|
|
228
237
|
import {
|
|
229
238
|
hostFetch,
|
|
230
239
|
providerWaitMs,
|
|
@@ -232,45 +241,49 @@ import {
|
|
|
232
241
|
retryableStatus,
|
|
233
242
|
retrying,
|
|
234
243
|
statusToCode
|
|
235
|
-
} from "./chunk-
|
|
236
|
-
import "./chunk-Y2BGABXP.js";
|
|
244
|
+
} from "./chunk-XCA5N63N.js";
|
|
237
245
|
import {
|
|
238
246
|
speechModel
|
|
239
|
-
} from "./chunk-
|
|
240
|
-
import "./chunk-
|
|
241
|
-
import "./chunk-
|
|
242
|
-
import "./chunk-
|
|
243
|
-
import "./chunk-
|
|
244
|
-
import "./chunk-
|
|
245
|
-
import "./chunk-
|
|
247
|
+
} from "./chunk-CZ6OO66B.js";
|
|
248
|
+
import "./chunk-3TLQF3DN.js";
|
|
249
|
+
import "./chunk-BOJCRTQW.js";
|
|
250
|
+
import "./chunk-OXXJW3A5.js";
|
|
251
|
+
import "./chunk-7ILGYNWX.js";
|
|
252
|
+
import "./chunk-FRC5QIPQ.js";
|
|
253
|
+
import "./chunk-Q7ZW7XAX.js";
|
|
254
|
+
import "./chunk-7DTU7QZP.js";
|
|
255
|
+
import "./chunk-A6LK2W5J.js";
|
|
256
|
+
import "./chunk-ZRNNMBPC.js";
|
|
246
257
|
import {
|
|
247
258
|
currentAttempt,
|
|
248
259
|
withAttempt
|
|
249
|
-
} from "./chunk-
|
|
250
|
-
import "./chunk-
|
|
260
|
+
} from "./chunk-MIG4RLDB.js";
|
|
261
|
+
import "./chunk-5KHCFIWI.js";
|
|
251
262
|
import {
|
|
252
263
|
formatReference,
|
|
253
264
|
isFolderProvider
|
|
254
|
-
} from "./chunk-
|
|
255
|
-
import "./chunk-
|
|
256
|
-
import "./chunk-
|
|
257
|
-
import "./chunk-
|
|
265
|
+
} from "./chunk-QUGESVOE.js";
|
|
266
|
+
import "./chunk-PO4RZ4XZ.js";
|
|
267
|
+
import "./chunk-XVHDT4CO.js";
|
|
268
|
+
import "./chunk-E3UPMPUV.js";
|
|
269
|
+
import "./chunk-MMAZUJBO.js";
|
|
258
270
|
import {
|
|
259
271
|
CLIENT_ID_MISSING,
|
|
260
272
|
VERSION,
|
|
261
273
|
ZM
|
|
262
|
-
} from "./chunk-
|
|
274
|
+
} from "./chunk-ECRFXQHA.js";
|
|
263
275
|
import {
|
|
264
276
|
installerOf
|
|
265
|
-
} from "./chunk-
|
|
277
|
+
} from "./chunk-ZZ32DXTH.js";
|
|
266
278
|
import "./chunk-D72URWJE.js";
|
|
267
|
-
import "./chunk-
|
|
268
|
-
import "./chunk-
|
|
269
|
-
import "./chunk-
|
|
270
|
-
import "./chunk-
|
|
279
|
+
import "./chunk-SFPUSEOT.js";
|
|
280
|
+
import "./chunk-JMU3E2WA.js";
|
|
281
|
+
import "./chunk-VJ2TLU7R.js";
|
|
282
|
+
import "./chunk-H2EVYY5Z.js";
|
|
271
283
|
import {
|
|
272
284
|
MEETING_COUNTS_GROUPINGS,
|
|
273
285
|
RecordingSyncError,
|
|
286
|
+
createMeetingManagement,
|
|
274
287
|
createMeetingSeriesInventoryReader,
|
|
275
288
|
createUpcomingMeetingReader,
|
|
276
289
|
dispatchMeetingMutation,
|
|
@@ -297,14 +310,14 @@ import {
|
|
|
297
310
|
validateMeetingChange,
|
|
298
311
|
validateMeetingContextChange,
|
|
299
312
|
watchMeetingIngestion
|
|
300
|
-
} from "./chunk-
|
|
313
|
+
} from "./chunk-T6RSYDFA.js";
|
|
301
314
|
import {
|
|
302
315
|
dateRange,
|
|
303
316
|
defineQuery,
|
|
304
317
|
queryFieldsOf,
|
|
305
318
|
timezoneOf
|
|
306
|
-
} from "./chunk-
|
|
307
|
-
import "./chunk-
|
|
319
|
+
} from "./chunk-IZMRQ3MV.js";
|
|
320
|
+
import "./chunk-VKE77B3F.js";
|
|
308
321
|
import {
|
|
309
322
|
createDeadline,
|
|
310
323
|
createOutputBuffer,
|
|
@@ -312,7 +325,7 @@ import {
|
|
|
312
325
|
fieldsOf,
|
|
313
326
|
projectFields,
|
|
314
327
|
realSleep
|
|
315
|
-
} from "./chunk-
|
|
328
|
+
} from "./chunk-QAGECFHL.js";
|
|
316
329
|
import {
|
|
317
330
|
array,
|
|
318
331
|
boolean,
|
|
@@ -325,13 +338,13 @@ import {
|
|
|
325
338
|
safeParse,
|
|
326
339
|
string,
|
|
327
340
|
transform
|
|
328
|
-
} from "./chunk-
|
|
341
|
+
} from "./chunk-FS5HPXQN.js";
|
|
329
342
|
import "./chunk-Y5E2WNWB.js";
|
|
330
343
|
import {
|
|
331
344
|
CliError,
|
|
332
345
|
isCliError
|
|
333
|
-
} from "./chunk-
|
|
334
|
-
import "./chunk-
|
|
346
|
+
} from "./chunk-4QNW4NK6.js";
|
|
347
|
+
import "./chunk-KYKW2W6X.js";
|
|
335
348
|
import {
|
|
336
349
|
__name
|
|
337
350
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -342,12 +355,10 @@ var SECTIONS = [
|
|
|
342
355
|
[["events"], "read"],
|
|
343
356
|
[["recordings"], "read"],
|
|
344
357
|
[["recordings", "schedule"], "automate"],
|
|
345
|
-
[["
|
|
346
|
-
[["
|
|
347
|
-
[["
|
|
348
|
-
[["remote-meetings", "cancel"], "write"],
|
|
358
|
+
[["meetings", "create"], "write"],
|
|
359
|
+
[["meetings", "update"], "write"],
|
|
360
|
+
[["meetings", "cancel"], "write"],
|
|
349
361
|
[["meetings", "transcribe"], "write"],
|
|
350
|
-
[["meetings", "update"], "organise"],
|
|
351
362
|
[["meetings", "link"], "organise"],
|
|
352
363
|
[["batch"], "read"],
|
|
353
364
|
[["session"], "setup"],
|
|
@@ -1505,13 +1516,6 @@ var archiveScope = /* @__PURE__ */ __name((deps, options) => {
|
|
|
1505
1516
|
return { account, resume };
|
|
1506
1517
|
}, "archiveScope");
|
|
1507
1518
|
var resumable = /* @__PURE__ */ __name((command) => command.option("--resume", "resume verified partial downloads and archive progress; requires a local profile").option("--no-resume", "disable persistent resume state for this invocation"), "resumable");
|
|
1508
|
-
var change = /* @__PURE__ */ __name(({ title, ...options }) => Object.fromEntries(Object.entries({ topic: title, ...options }).filter(([key, value]) => value !== void 0 && ["topic", "startTime", "durationMinutes", "timezone", "agenda", "type"].includes(key))), "change");
|
|
1509
|
-
var changes = /* @__PURE__ */ __name((command) => command.option("--title <title>", "meeting title").option("--start-time <time>", "ISO start time with timezone").option("--duration-minutes <minutes>", "positive meeting duration in minutes", positive).option("--timezone <zone>", "IANA timezone").option("--agenda <text>", "meeting agenda").option("--type <type>", "instant (1) or scheduled (2)", positive).option("--yes", "apply the change without asking first").option("--dry-run", "preview only, including when --yes is present"), "changes");
|
|
1510
|
-
var mutation = /* @__PURE__ */ __name((options, deps) => {
|
|
1511
|
-
if (options.yes && !options.dryRun)
|
|
1512
|
-
deps.api();
|
|
1513
|
-
return { apply: options.yes, dryRun: options.dryRun, signal: deps.signal(), occurrenceId: options.occurrenceId };
|
|
1514
|
-
}, "mutation");
|
|
1515
1519
|
var localZone = /* @__PURE__ */ __name((given) => {
|
|
1516
1520
|
try {
|
|
1517
1521
|
return timezoneOf(given);
|
|
@@ -1614,24 +1618,6 @@ var addArchiveCommands = /* @__PURE__ */ __name((program, deps) => {
|
|
|
1614
1618
|
apply: options.yes === true && !options.dryRun,
|
|
1615
1619
|
signal: deps.signal()
|
|
1616
1620
|
})))), "zm personal recordings archive recover ./zoom-archive --dry-run --json", LOCAL_WRITE);
|
|
1617
|
-
const remote = annotate(program.command("remote-meetings"), { effects: NO_EFFECTS }).description("upcoming Zoom meetings; stored meeting reads remain under meetings");
|
|
1618
|
-
const remoteQuery = unfilteredQuery("zoom_remote_meeting", ZOOM_ANSWER_ENTITIES["remote-meetings list"].schema);
|
|
1619
|
-
label(withQuery(remote.command("list"), remoteQuery).description("list upcoming meetings").action(async (words) => {
|
|
1620
|
-
listQuery(typedQuery(words), remoteQuery, "remote-meetings list");
|
|
1621
|
-
deps.api();
|
|
1622
|
-
deps.output(wholeList("remote-meetings list", await deps.remoteMeetings().list({ signal: deps.signal() })));
|
|
1623
|
-
}), "zm personal remote-meetings list --dry-run --json", REMOTE_READ);
|
|
1624
|
-
label(remote.command("show").description("show an upcoming meeting").argument("<meeting>", "positive numeric Zoom meeting id").action(async (id) => {
|
|
1625
|
-
deps.api();
|
|
1626
|
-
deps.output(itemOf(await deps.remoteMeetings().show(id, { signal: deps.signal() })));
|
|
1627
|
-
}), "zm personal remote-meetings show 123456789 --dry-run --json", REMOTE_READ);
|
|
1628
|
-
label(remote.command("invitation").description("read invitation text").argument("<meeting>", "positive numeric Zoom meeting id").action(async (id) => {
|
|
1629
|
-
deps.api();
|
|
1630
|
-
deps.output(itemOf(await deps.remoteMeetings().invitation(id, { signal: deps.signal() })));
|
|
1631
|
-
}), "zm personal remote-meetings invitation 123456789 --dry-run --json", REMOTE_READ);
|
|
1632
|
-
label(changes(remote.command("create").description("create a Zoom meeting; asks first, --dry-run previews")).action(async (options) => deps.output(itemOf(await deps.remoteMeetings().create(change(options), mutation(options, deps))))), 'zm personal remote-meetings create --title "Example planning" --start-time 2026-10-10T15:30:00Z --dry-run --json', REMOTE_WRITE);
|
|
1633
|
-
label(changes(remote.command("update").description("change a Zoom meeting; asks first, --dry-run previews").argument("<meeting>", "positive numeric Zoom meeting id")).action(async (id, options) => deps.output(itemOf(await deps.remoteMeetings().update(id, change(options), mutation(options, deps))))), 'zm personal remote-meetings update 123456789 --title "Example planning" --dry-run --json', REMOTE_WRITE);
|
|
1634
|
-
label(remote.command("cancel").description("cancel a Zoom meeting; asks first, --dry-run previews").argument("<meeting>", "positive numeric Zoom meeting id").option("--occurrence-id <id>", "cancel one recurring occurrence").option("--yes", "cancel without asking first").option("--dry-run", "preview only, including when --yes is present").action(async (id, options) => deps.output(itemOf(await deps.remoteMeetings().cancel(id, mutation(options, deps))))), "zm personal remote-meetings cancel 123456789 --dry-run --json", REMOTE_WRITE);
|
|
1635
1621
|
}, "addArchiveCommands");
|
|
1636
1622
|
|
|
1637
1623
|
// dist/archive-transcripts.js
|
|
@@ -1753,7 +1739,7 @@ var searchArchiveTranscripts = /* @__PURE__ */ __name(async (destination, query,
|
|
|
1753
1739
|
return { items: matches, page: 1, limit, hasMore: false };
|
|
1754
1740
|
}, "searchArchiveTranscripts");
|
|
1755
1741
|
|
|
1756
|
-
// node_modules/.pnpm/@wirecat+cli-base@0.
|
|
1742
|
+
// node_modules/.pnpm/@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typescript@7.0.2_vitest@5.0.5/node_modules/@wirecat/cli-base/dist/codegen/runtime.js
|
|
1757
1743
|
var isLossless = /* @__PURE__ */ __name((input) => typeof input === "object" && input !== null && input.isLosslessNumber === true && typeof input.value === "string", "isLossless");
|
|
1758
1744
|
var INTEGER = /^-?\d+$/;
|
|
1759
1745
|
var INT64_MIN = -(2n ** 63n);
|
|
@@ -1967,12 +1953,49 @@ var json = /* @__PURE__ */ __name((value) => {
|
|
|
1967
1953
|
}, "json");
|
|
1968
1954
|
var extras = /* @__PURE__ */ __name((row, keys2) => Object.fromEntries(Object.entries(row).filter(([key]) => !keys2.includes(key)).map(([key, value]) => [key, json(value)])), "extras");
|
|
1969
1955
|
var encodeUuid = /* @__PURE__ */ __name((uuid) => uuid.startsWith("/") || uuid.includes("//") ? encodeURIComponent(encodeURIComponent(uuid)) : encodeURIComponent(uuid), "encodeUuid");
|
|
1956
|
+
var seriesIdOf = /* @__PURE__ */ __name((row) => {
|
|
1957
|
+
if (!(string2(row.id) !== null || typeof row.id === "number" && Number.isSafeInteger(row.id) && row.id > 0))
|
|
1958
|
+
throw new CliError("invalid_response", "Zoom meeting is missing its series id");
|
|
1959
|
+
return String(row.id);
|
|
1960
|
+
}, "seriesIdOf");
|
|
1970
1961
|
var requiredString = /* @__PURE__ */ __name((value) => {
|
|
1971
1962
|
const text2 = string2(value);
|
|
1972
1963
|
if (text2 === null)
|
|
1973
1964
|
throw new CliError("invalid_response", "Zoom response is missing a required field");
|
|
1974
1965
|
return text2;
|
|
1975
1966
|
}, "requiredString");
|
|
1967
|
+
var PAST_MEETING = "meeting:read:past_meeting";
|
|
1968
|
+
var DAY = 864e5;
|
|
1969
|
+
var FIND_SPAN = 30 * DAY;
|
|
1970
|
+
var FIND_REACH = 183 * DAY;
|
|
1971
|
+
var FIND_PAGE = 300;
|
|
1972
|
+
var FIND_SERIES = 20;
|
|
1973
|
+
var findCursorOf = /* @__PURE__ */ __name((cursor) => {
|
|
1974
|
+
let value;
|
|
1975
|
+
try {
|
|
1976
|
+
value = JSON.parse(cursor);
|
|
1977
|
+
} catch {
|
|
1978
|
+
throw new CliError("validation_error", "this Zoom page cursor is not one zm gave");
|
|
1979
|
+
}
|
|
1980
|
+
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
1981
|
+
throw new CliError("validation_error", "this Zoom page cursor is not one zm gave");
|
|
1982
|
+
const row = value;
|
|
1983
|
+
const whole = [row.floor, row.end, row.skip].every((value2) => Number.isSafeInteger(value2));
|
|
1984
|
+
if (!whole || row.token !== null && !string2(row.token))
|
|
1985
|
+
throw new CliError("validation_error", "this Zoom page cursor is not one zm gave");
|
|
1986
|
+
return {
|
|
1987
|
+
floor: row.floor,
|
|
1988
|
+
end: row.end,
|
|
1989
|
+
token: row.token ?? null,
|
|
1990
|
+
skip: row.skip
|
|
1991
|
+
};
|
|
1992
|
+
}, "findCursorOf");
|
|
1993
|
+
var zoomRange = /* @__PURE__ */ __name((start, end2) => ({
|
|
1994
|
+
from: new Date(start).toISOString().slice(0, 10),
|
|
1995
|
+
to: new Date(end2).toISOString().slice(0, 10),
|
|
1996
|
+
timezone: "UTC"
|
|
1997
|
+
}), "zoomRange");
|
|
1998
|
+
var ZOOM_FINDS = Object.freeze({ fields: {}, upcoming: false });
|
|
1976
1999
|
var ZoomApiSource = class {
|
|
1977
2000
|
static {
|
|
1978
2001
|
__name(this, "ZoomApiSource");
|
|
@@ -2023,10 +2046,10 @@ var ZoomApiSource = class {
|
|
|
2023
2046
|
// A listed row's uuid is the meeting's, not the instance that ran, for every type: participants,
|
|
2024
2047
|
// transcript and summary answer only for the instance uuid. This runs before the pull loop's
|
|
2025
2048
|
// per-meeting guard, so a series Zoom no longer knows must not fail the whole sync.
|
|
2026
|
-
async instances(seriesId) {
|
|
2049
|
+
async instances(seriesId, range) {
|
|
2027
2050
|
let body;
|
|
2028
2051
|
try {
|
|
2029
|
-
body = await this.request(`/past_meetings/${encodeURIComponent(seriesId)}/instances`, "meeting:read:list_past_instances");
|
|
2052
|
+
body = await this.request(`/past_meetings/${encodeURIComponent(seriesId)}/instances${range ? `?${range}` : ""}`, "meeting:read:list_past_instances");
|
|
2030
2053
|
} catch (error) {
|
|
2031
2054
|
if (isCliError(error) && error.code === statusToCode(404))
|
|
2032
2055
|
return [];
|
|
@@ -2036,6 +2059,60 @@ var ZoomApiSource = class {
|
|
|
2036
2059
|
throw new CliError("invalid_response", "Zoom returned invalid occurrences");
|
|
2037
2060
|
return body.meetings.map(object);
|
|
2038
2061
|
}
|
|
2062
|
+
/** A listed series' occurrences that ran, each by its instance uuid, the id `meetings()`, `find` and `get` share. */
|
|
2063
|
+
occurrences(row, instances, keep, seen) {
|
|
2064
|
+
const seriesId = seriesIdOf(row);
|
|
2065
|
+
const recurring = row.type === 3 || row.type === 8;
|
|
2066
|
+
const meetings = [];
|
|
2067
|
+
for (const instance of instances) {
|
|
2068
|
+
const doubt = { zoneless: false };
|
|
2069
|
+
const startedAt = this.time(instance.start_time, doubt);
|
|
2070
|
+
const id = requiredString(instance.uuid);
|
|
2071
|
+
if (startedAt === null)
|
|
2072
|
+
throw new CliError("invalid_response", "Zoom occurrence is missing its start time");
|
|
2073
|
+
if (!keep(startedAt) || seen.has(id))
|
|
2074
|
+
continue;
|
|
2075
|
+
seen.add(id);
|
|
2076
|
+
const ended = instance.end_time === void 0 ? null : this.time(instance.end_time, doubt);
|
|
2077
|
+
const rawDuration = recurring ? null : number(row.duration);
|
|
2078
|
+
const end2 = ended ?? (rawDuration !== null && rawDuration >= 0 ? startedAt + rawDuration * 6e4 : Number.NaN);
|
|
2079
|
+
const endedAt = Number.isFinite(end2) && Math.abs(end2) <= 864e13 ? new Date(end2).toISOString() : null;
|
|
2080
|
+
meetings.push({
|
|
2081
|
+
series: {
|
|
2082
|
+
id: seriesId,
|
|
2083
|
+
provider: "zoom",
|
|
2084
|
+
title: string2(row.topic),
|
|
2085
|
+
kind: recurring ? "recurring" : row.type === 1 ? "instant" : "scheduled",
|
|
2086
|
+
joinUrl: string2(row.join_url) ?? void 0,
|
|
2087
|
+
recurrence: json(row.recurrence)
|
|
2088
|
+
},
|
|
2089
|
+
occurrence: {
|
|
2090
|
+
id,
|
|
2091
|
+
seriesId,
|
|
2092
|
+
title: string2(row.topic),
|
|
2093
|
+
startedAt: new Date(startedAt).toISOString(),
|
|
2094
|
+
endedAt
|
|
2095
|
+
},
|
|
2096
|
+
description: string2(row.agenda),
|
|
2097
|
+
joinUrl: string2(row.join_url),
|
|
2098
|
+
timezone: string2(row.timezone),
|
|
2099
|
+
metadata: withIssue(extras(row, [
|
|
2100
|
+
"id",
|
|
2101
|
+
"uuid",
|
|
2102
|
+
"topic",
|
|
2103
|
+
"type",
|
|
2104
|
+
"start_time",
|
|
2105
|
+
"end_time",
|
|
2106
|
+
"duration",
|
|
2107
|
+
"join_url",
|
|
2108
|
+
"timezone",
|
|
2109
|
+
"agenda",
|
|
2110
|
+
"recurrence"
|
|
2111
|
+
]), doubt.zoneless)
|
|
2112
|
+
});
|
|
2113
|
+
}
|
|
2114
|
+
return meetings;
|
|
2115
|
+
}
|
|
2039
2116
|
async meetings(since2) {
|
|
2040
2117
|
const lower = Date.parse(since2);
|
|
2041
2118
|
if (!Number.isFinite(lower))
|
|
@@ -2043,60 +2120,77 @@ var ZoomApiSource = class {
|
|
|
2043
2120
|
const series = await this.pages("/users/me/meetings?type=previous_meetings", "meetings", "meeting:read:list_meetings");
|
|
2044
2121
|
const meetings = [];
|
|
2045
2122
|
const seen = /* @__PURE__ */ new Set();
|
|
2046
|
-
for (const row of series)
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
const seriesId = String(row.id);
|
|
2050
|
-
const recurring = row.type === 3 || row.type === 8;
|
|
2051
|
-
const instances = await this.instances(seriesId);
|
|
2052
|
-
for (const instance of instances) {
|
|
2053
|
-
const doubt = { zoneless: false };
|
|
2054
|
-
const startedAt = this.time(instance.start_time, doubt);
|
|
2055
|
-
const id = requiredString(instance.uuid);
|
|
2056
|
-
if (startedAt === null)
|
|
2057
|
-
throw new CliError("invalid_response", "Zoom occurrence is missing its start time");
|
|
2058
|
-
if (startedAt < lower || seen.has(id))
|
|
2059
|
-
continue;
|
|
2060
|
-
seen.add(id);
|
|
2061
|
-
const rawDuration = recurring ? null : number(row.duration);
|
|
2062
|
-
const end2 = rawDuration !== null && rawDuration >= 0 ? startedAt + rawDuration * 6e4 : Number.NaN;
|
|
2063
|
-
const endedAt = Number.isFinite(end2) && Math.abs(end2) <= 864e13 ? new Date(end2).toISOString() : null;
|
|
2064
|
-
meetings.push({
|
|
2065
|
-
series: {
|
|
2066
|
-
id: seriesId,
|
|
2067
|
-
provider: "zoom",
|
|
2068
|
-
title: string2(row.topic),
|
|
2069
|
-
kind: recurring ? "recurring" : row.type === 1 ? "instant" : "scheduled",
|
|
2070
|
-
joinUrl: string2(row.join_url) ?? void 0,
|
|
2071
|
-
recurrence: json(row.recurrence)
|
|
2072
|
-
},
|
|
2073
|
-
occurrence: {
|
|
2074
|
-
id,
|
|
2075
|
-
seriesId,
|
|
2076
|
-
title: string2(row.topic),
|
|
2077
|
-
startedAt: new Date(startedAt).toISOString(),
|
|
2078
|
-
endedAt
|
|
2079
|
-
},
|
|
2080
|
-
description: string2(row.agenda),
|
|
2081
|
-
joinUrl: string2(row.join_url),
|
|
2082
|
-
timezone: string2(row.timezone),
|
|
2083
|
-
metadata: withIssue(extras(row, [
|
|
2084
|
-
"id",
|
|
2085
|
-
"uuid",
|
|
2086
|
-
"topic",
|
|
2087
|
-
"type",
|
|
2088
|
-
"start_time",
|
|
2089
|
-
"duration",
|
|
2090
|
-
"join_url",
|
|
2091
|
-
"timezone",
|
|
2092
|
-
"agenda",
|
|
2093
|
-
"recurrence"
|
|
2094
|
-
]), doubt.zoneless)
|
|
2095
|
-
});
|
|
2096
|
-
}
|
|
2097
|
-
}
|
|
2123
|
+
for (const row of series)
|
|
2124
|
+
for (const meeting2 of this.occurrences(row, await this.instances(seriesIdOf(row)), (at) => at >= lower, seen))
|
|
2125
|
+
meetings.push(meeting2);
|
|
2098
2126
|
return meetings;
|
|
2099
2127
|
}
|
|
2128
|
+
finds = ZOOM_FINDS;
|
|
2129
|
+
/**
|
|
2130
|
+
* One stretch of at most `FIND_SPAN` of `window`, newest first, and the instances of at most `FIND_SERIES` of its
|
|
2131
|
+
* series: 1 + `FIND_SERIES` requests. The cursor carries on in the same stretch, then the one before it; without a
|
|
2132
|
+
* lower bound, back as far as Zoom lists (`FIND_REACH`). cli-core's page cap then says the answer is not complete.
|
|
2133
|
+
*/
|
|
2134
|
+
async find(window, _terms, cursor) {
|
|
2135
|
+
const at = cursor === null ? void 0 : findCursorOf(cursor);
|
|
2136
|
+
const end2 = at?.end ?? window.to ?? Date.now();
|
|
2137
|
+
const floor = at?.floor ?? window.from ?? end2 - FIND_REACH;
|
|
2138
|
+
const start = Math.max(floor, end2 - FIND_SPAN);
|
|
2139
|
+
const range = zoomRange(start, end2);
|
|
2140
|
+
const query = new URLSearchParams({ type: "previous_meetings", page_size: String(FIND_PAGE), ...range });
|
|
2141
|
+
if (at?.token)
|
|
2142
|
+
query.set("next_page_token", at.token);
|
|
2143
|
+
const body = await this.request(`/users/me/meetings?${query}`, "meeting:read:list_meetings");
|
|
2144
|
+
if (!body || !Array.isArray(body.meetings))
|
|
2145
|
+
throw new CliError("invalid_response", "Zoom returned an invalid list");
|
|
2146
|
+
const rows = body.meetings.map(object);
|
|
2147
|
+
const skip = at?.skip ?? 0;
|
|
2148
|
+
const taken = rows.slice(skip, skip + FIND_SERIES);
|
|
2149
|
+
const inWindow = /* @__PURE__ */ __name((time) => (window.from === void 0 || time >= window.from) && (window.to === void 0 || time <= window.to), "inWindow");
|
|
2150
|
+
const seen = /* @__PURE__ */ new Set();
|
|
2151
|
+
const meetings = [];
|
|
2152
|
+
const ranges = new URLSearchParams({ from: range.from, to: range.to });
|
|
2153
|
+
for (const row of taken)
|
|
2154
|
+
for (const meeting2 of this.occurrences(row, await this.instances(seriesIdOf(row), ranges), inWindow, seen))
|
|
2155
|
+
meetings.push({ meeting: meeting2 });
|
|
2156
|
+
const token = string2(body.next_page_token) || null;
|
|
2157
|
+
if (token !== null && token === at?.token)
|
|
2158
|
+
throw new CliError("invalid_response", "Zoom repeated a pagination token");
|
|
2159
|
+
const next = skip + taken.length < rows.length ? { floor, end: end2, token: at?.token ?? null, skip: skip + taken.length } : token !== null ? { floor, end: end2, token, skip: 0 } : start > floor ? { floor, end: start - 1, token: null, skip: 0 } : null;
|
|
2160
|
+
return { meetings, next: next && JSON.stringify(next) };
|
|
2161
|
+
}
|
|
2162
|
+
/**
|
|
2163
|
+
* One meeting that ran, by its instance uuid or by its meeting number (then its latest instance): always answered
|
|
2164
|
+
* by the instance uuid, so `show <number>` keeps the row sync writes. `null` for one that never ran.
|
|
2165
|
+
*/
|
|
2166
|
+
async get(id) {
|
|
2167
|
+
const given = id.trim();
|
|
2168
|
+
if (!given)
|
|
2169
|
+
throw new CliError("validation_error", "name a Zoom meeting by its uuid or number");
|
|
2170
|
+
const { scopes } = await this.tokens.tokens();
|
|
2171
|
+
if (!["", ":admin", ":master"].some((grant) => scopes.includes(`${PAST_MEETING}${grant}`)))
|
|
2172
|
+
throw new CliError("permission_error", `Zoom scope ${PAST_MEETING} is missing; add it to the app and run zm <profile> session start again`);
|
|
2173
|
+
const body = await this.request(`/past_meetings/${encodeUuid(given)}`, PAST_MEETING, 3001);
|
|
2174
|
+
if (!body)
|
|
2175
|
+
return null;
|
|
2176
|
+
const [found] = this.occurrences(body, [body], () => true, /* @__PURE__ */ new Set());
|
|
2177
|
+
if (!found)
|
|
2178
|
+
return null;
|
|
2179
|
+
const meeting2 = { ...found, series: null };
|
|
2180
|
+
const uuid = meeting2.occurrence.id;
|
|
2181
|
+
const [participants, transcript] = await Promise.all([this.participants(uuid), this.transcriptOnShow(uuid)]);
|
|
2182
|
+
return { meeting: meeting2, participants, ...transcript === void 0 ? {} : { transcript } };
|
|
2183
|
+
}
|
|
2184
|
+
/** A transcript Zoom is still making is left unread here, so `show` keeps the meeting and a later sync reads it. */
|
|
2185
|
+
async transcriptOnShow(uuid) {
|
|
2186
|
+
try {
|
|
2187
|
+
return await this.transcript(uuid);
|
|
2188
|
+
} catch (error) {
|
|
2189
|
+
if (isCliError(error) && error.code === "provider_error")
|
|
2190
|
+
return void 0;
|
|
2191
|
+
throw error;
|
|
2192
|
+
}
|
|
2193
|
+
}
|
|
2100
2194
|
async participants(id) {
|
|
2101
2195
|
const rows = await this.pages(`/past_meetings/${encodeUuid(id)}/participants`, "participants", "meeting:read:list_past_participants");
|
|
2102
2196
|
const participants = /* @__PURE__ */ new Map();
|
|
@@ -2801,6 +2895,8 @@ var configuredMeetingSource = /* @__PURE__ */ __name(({ deps, getConfig, tokens,
|
|
|
2801
2895
|
})();
|
|
2802
2896
|
return activeSource;
|
|
2803
2897
|
}, "getSource");
|
|
2898
|
+
const live = /* @__PURE__ */ __name((name) => deps.source ? deps.source[name] !== void 0 : getConfig().source === "api", "live");
|
|
2899
|
+
const ported = /* @__PURE__ */ __name(async () => await getSource(), "ported");
|
|
2804
2900
|
const source = {
|
|
2805
2901
|
get provider() {
|
|
2806
2902
|
return deps.source?.provider ?? "zoom";
|
|
@@ -2828,6 +2924,16 @@ var configuredMeetingSource = /* @__PURE__ */ __name(({ deps, getConfig, tokens,
|
|
|
2828
2924
|
},
|
|
2829
2925
|
async files(id) {
|
|
2830
2926
|
return (await getSource()).files(id);
|
|
2927
|
+
},
|
|
2928
|
+
// Only the API reads Zoom live; a folder of downloaded files has no meeting that is not in it.
|
|
2929
|
+
get finds() {
|
|
2930
|
+
return deps.source ? deps.source.finds : getConfig().source === "api" ? ZOOM_FINDS : void 0;
|
|
2931
|
+
},
|
|
2932
|
+
get find() {
|
|
2933
|
+
return live("find") ? async (window, terms, cursor) => (await ported()).find(window, terms, cursor) : void 0;
|
|
2934
|
+
},
|
|
2935
|
+
get get() {
|
|
2936
|
+
return live("get") ? async (id) => (await ported()).get(id) : void 0;
|
|
2831
2937
|
}
|
|
2832
2938
|
};
|
|
2833
2939
|
return {
|
|
@@ -3568,18 +3674,18 @@ var normalized = /* @__PURE__ */ __name((value) => {
|
|
|
3568
3674
|
joinUrl: string2(row.join_url)
|
|
3569
3675
|
};
|
|
3570
3676
|
}, "normalized");
|
|
3571
|
-
var changeBody = /* @__PURE__ */ __name((
|
|
3572
|
-
if (!
|
|
3677
|
+
var changeBody = /* @__PURE__ */ __name((change, create) => {
|
|
3678
|
+
if (!change || Object.keys(change).some((key) => !["topic", "startTime", "durationMinutes", "timezone", "agenda", "type"].includes(key)))
|
|
3573
3679
|
throw new CliError("validation_error", "unsupported meeting change field");
|
|
3574
|
-
if (
|
|
3680
|
+
if (change.type !== void 0 && change.type !== 1 && change.type !== 2)
|
|
3575
3681
|
throw new CliError("validation_error", "only instant or scheduled meeting types are supported");
|
|
3576
3682
|
const neutral = {
|
|
3577
|
-
...
|
|
3578
|
-
...
|
|
3579
|
-
...
|
|
3580
|
-
...
|
|
3581
|
-
...
|
|
3582
|
-
...
|
|
3683
|
+
...change.topic !== void 0 ? { title: change.topic } : {},
|
|
3684
|
+
...change.type !== void 0 ? { kind: change.type === 1 ? "instant" : "scheduled" } : {},
|
|
3685
|
+
...change.startTime !== void 0 ? { startTime: change.startTime } : {},
|
|
3686
|
+
...change.durationMinutes !== void 0 ? { durationMinutes: change.durationMinutes } : {},
|
|
3687
|
+
...change.timezone !== void 0 ? { timezone: change.timezone } : {},
|
|
3688
|
+
...change.agenda !== void 0 ? { agenda: change.agenda } : {}
|
|
3583
3689
|
};
|
|
3584
3690
|
const validated = validateMeetingChange(neutral, create);
|
|
3585
3691
|
const body = {
|
|
@@ -3600,31 +3706,6 @@ var ZoomRemoteMeetings = class {
|
|
|
3600
3706
|
constructor(tokens, fetcher, options = {}) {
|
|
3601
3707
|
this.remote = new ZoomRemote(tokens, fetcher, options);
|
|
3602
3708
|
}
|
|
3603
|
-
async list(options = {}) {
|
|
3604
|
-
const signal = operationSignal(options.signal);
|
|
3605
|
-
const query = new URLSearchParams({ type: "upcoming", page_size: "100" });
|
|
3606
|
-
const seen = /* @__PURE__ */ new Set();
|
|
3607
|
-
const result = /* @__PURE__ */ new Map();
|
|
3608
|
-
for (; ; ) {
|
|
3609
|
-
const body = await this.remote.request(`/users/me/meetings?${query}`, "meeting:read:list_meetings", { signal });
|
|
3610
|
-
if (!Array.isArray(body.meetings))
|
|
3611
|
-
throw new CliError("invalid_response", "Zoom returned an invalid meeting list");
|
|
3612
|
-
for (const row of body.meetings) {
|
|
3613
|
-
const item = normalized(row);
|
|
3614
|
-
result.set(item.id, item);
|
|
3615
|
-
}
|
|
3616
|
-
const next = string2(body.next_page_token);
|
|
3617
|
-
if (!next)
|
|
3618
|
-
return [...result.values()];
|
|
3619
|
-
if (seen.has(next))
|
|
3620
|
-
throw new CliError("invalid_response", "Zoom repeated a pagination token");
|
|
3621
|
-
seen.add(next);
|
|
3622
|
-
query.set("next_page_token", next);
|
|
3623
|
-
}
|
|
3624
|
-
}
|
|
3625
|
-
async show(id, options = {}) {
|
|
3626
|
-
return normalized(await this.remote.request(zoomMeetingPath(id), "meeting:read:meeting", options));
|
|
3627
|
-
}
|
|
3628
3709
|
async invitation(id, options = {}) {
|
|
3629
3710
|
const body = await this.remote.request(`${zoomMeetingPath(id)}/invitation`, "meeting:read:invitation", options);
|
|
3630
3711
|
return { id, invitation: required(body.invitation) };
|
|
@@ -3652,11 +3733,11 @@ var ZoomRemoteMeetings = class {
|
|
|
3652
3733
|
result.meeting = outcome.value;
|
|
3653
3734
|
return result;
|
|
3654
3735
|
}
|
|
3655
|
-
create(
|
|
3656
|
-
return this.mutate("create", { method: "POST", path: "/users/me/meetings", body: changeBody(
|
|
3736
|
+
create(change, options = {}) {
|
|
3737
|
+
return this.mutate("create", { method: "POST", path: "/users/me/meetings", body: changeBody(change, true) }, "meeting:write:meeting", options);
|
|
3657
3738
|
}
|
|
3658
|
-
update(id,
|
|
3659
|
-
return this.mutate("update", { method: "PATCH", path: zoomMeetingPath(id), body: changeBody(
|
|
3739
|
+
update(id, change, options = {}) {
|
|
3740
|
+
return this.mutate("update", { method: "PATCH", path: zoomMeetingPath(id), body: changeBody(change, false) }, "meeting:update:meeting", options);
|
|
3660
3741
|
}
|
|
3661
3742
|
cancel(id, options = {}) {
|
|
3662
3743
|
const path = zoomMeetingPath(id);
|
|
@@ -3666,6 +3747,75 @@ var ZoomRemoteMeetings = class {
|
|
|
3666
3747
|
return this.mutate("cancel", { method: "DELETE", path: `${path}${query}` }, "meeting:delete:meeting", options);
|
|
3667
3748
|
}
|
|
3668
3749
|
};
|
|
3750
|
+
var managedMeeting = /* @__PURE__ */ __name((meeting2) => ({
|
|
3751
|
+
id: meeting2.id,
|
|
3752
|
+
title: meeting2.title,
|
|
3753
|
+
kind: meeting2.type === 1 ? "instant" : meeting2.type === 2 ? "scheduled" : null,
|
|
3754
|
+
startTime: meeting2.startedAt,
|
|
3755
|
+
durationMinutes: meeting2.durationMinutes,
|
|
3756
|
+
timezone: meeting2.timezone,
|
|
3757
|
+
agenda: meeting2.agenda,
|
|
3758
|
+
joinUrl: meeting2.joinUrl
|
|
3759
|
+
}), "managedMeeting");
|
|
3760
|
+
var zoomChange = /* @__PURE__ */ __name((change) => ({
|
|
3761
|
+
...change.title !== void 0 ? { topic: change.title } : {},
|
|
3762
|
+
...change.kind !== void 0 ? { type: change.kind === "instant" ? 1 : 2 } : {},
|
|
3763
|
+
...change.startTime !== void 0 ? { startTime: change.startTime } : {},
|
|
3764
|
+
...change.durationMinutes !== void 0 ? { durationMinutes: change.durationMinutes } : {},
|
|
3765
|
+
...change.timezone !== void 0 ? { timezone: change.timezone } : {},
|
|
3766
|
+
...change.agenda !== void 0 ? { agenda: change.agenda } : {}
|
|
3767
|
+
}), "zoomChange");
|
|
3768
|
+
var ZOOM_FIELDS = { fields: ["title", "startTime", "durationMinutes", "timezone", "agenda"] };
|
|
3769
|
+
var createZoomMeetingManagement = /* @__PURE__ */ __name((remote, account) => createMeetingManagement({ provider: "zoom", account }, {
|
|
3770
|
+
fields: { create: ZOOM_FIELDS, update: ZOOM_FIELDS },
|
|
3771
|
+
invitation: /* @__PURE__ */ __name((id, { signal }) => remote.invitation(id, { signal }), "invitation"),
|
|
3772
|
+
create: /* @__PURE__ */ __name(async (change, { signal }) => {
|
|
3773
|
+
const receipt = await remote.create({ ...zoomChange(change), type: 2 }, { apply: true, signal });
|
|
3774
|
+
if (!receipt.meeting)
|
|
3775
|
+
throw new CliError("outcome_unknown", "Zoom did not acknowledge the created meeting");
|
|
3776
|
+
return managedMeeting(receipt.meeting);
|
|
3777
|
+
}, "create"),
|
|
3778
|
+
update: /* @__PURE__ */ __name(async (id, change, { signal }) => {
|
|
3779
|
+
await remote.update(id, zoomChange(change), { apply: true, signal });
|
|
3780
|
+
}, "update"),
|
|
3781
|
+
cancel: /* @__PURE__ */ __name(async (id, { signal, occurrenceId }) => {
|
|
3782
|
+
await remote.cancel(id, { apply: true, signal, occurrenceId });
|
|
3783
|
+
}, "cancel")
|
|
3784
|
+
}), "createZoomMeetingManagement");
|
|
3785
|
+
var zoomMeetingManagement = /* @__PURE__ */ __name((open2) => {
|
|
3786
|
+
const declared = createZoomMeetingManagement({
|
|
3787
|
+
invitation: unbound,
|
|
3788
|
+
create: unbound,
|
|
3789
|
+
update: unbound,
|
|
3790
|
+
cancel: unbound
|
|
3791
|
+
}, "unbound");
|
|
3792
|
+
return {
|
|
3793
|
+
...declared,
|
|
3794
|
+
invitation: /* @__PURE__ */ __name((id, options) => open2().invitation(id, options), "invitation"),
|
|
3795
|
+
create: /* @__PURE__ */ __name((change, options) => open2().create(change, options), "create"),
|
|
3796
|
+
update: /* @__PURE__ */ __name((id, change, options) => open2().update(id, change, options), "update"),
|
|
3797
|
+
cancel: /* @__PURE__ */ __name((id, options) => open2().cancel(id, options), "cancel")
|
|
3798
|
+
};
|
|
3799
|
+
}, "zoomMeetingManagement");
|
|
3800
|
+
var profileMeetingManagement = /* @__PURE__ */ __name((make, account) => zoomMeetingManagement(() => createZoomMeetingManagement(lazyRemote(make), account())), "profileMeetingManagement");
|
|
3801
|
+
var lazyRemote = /* @__PURE__ */ __name((make) => {
|
|
3802
|
+
let made;
|
|
3803
|
+
const remote = /* @__PURE__ */ __name(() => made ??= make(), "remote");
|
|
3804
|
+
return {
|
|
3805
|
+
invitation: /* @__PURE__ */ __name((id, options) => remote().invitation(id, options), "invitation"),
|
|
3806
|
+
create: /* @__PURE__ */ __name((change, options) => remote().create(change, options), "create"),
|
|
3807
|
+
update: /* @__PURE__ */ __name((id, change, options) => remote().update(id, change, options), "update"),
|
|
3808
|
+
cancel: /* @__PURE__ */ __name((id, options) => remote().cancel(id, options), "cancel")
|
|
3809
|
+
};
|
|
3810
|
+
}, "lazyRemote");
|
|
3811
|
+
var unbound = /* @__PURE__ */ __name(() => {
|
|
3812
|
+
throw new CliError("configuration_error", "no Zoom account is open for this command");
|
|
3813
|
+
}, "unbound");
|
|
3814
|
+
var leaves = /* @__PURE__ */ __name((command) => command.commands.length ? command.commands.flatMap(leaves) : [command], "leaves");
|
|
3815
|
+
var storeLeaves = /* @__PURE__ */ __name((program, before, management) => {
|
|
3816
|
+
const managed = new Set((management?.capabilities ?? []).filter((name) => ["create", "update", "cancel", "invitation"].includes(name)));
|
|
3817
|
+
return new Set(program.commands.filter((group) => !before.has(group)).flatMap(leaves).filter((leaf) => !(leaf.parent?.name() === "meetings" && managed.has(leaf.name()))));
|
|
3818
|
+
}, "storeLeaves");
|
|
3669
3819
|
|
|
3670
3820
|
// dist/request-events.js
|
|
3671
3821
|
var SEGMENT = /^(?:v\d+|[a-z][a-z_]{0,23})$/;
|
|
@@ -3789,7 +3939,7 @@ var addModelsCommands = /* @__PURE__ */ __name((program, deps) => {
|
|
|
3789
3939
|
// dist/upgrade.js
|
|
3790
3940
|
import { join as join12 } from "node:path";
|
|
3791
3941
|
|
|
3792
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
3942
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.667.0_@wirecat+cli-base@0.102.1_commander@15.0.0_esbuild@0.28.2_typ_0b2555be96e01c2163d7c05aae2e84c1/node_modules/@wirecat/cli-core/dist/update/index.js
|
|
3793
3943
|
import { realpathSync } from "node:fs";
|
|
3794
3944
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
3795
3945
|
var npmRegistry = /* @__PURE__ */ __name(() => hostFetch({ hosts: ["registry.npmjs.org"] }), "npmRegistry");
|
|
@@ -4283,22 +4433,49 @@ var addMeetingContextCommands = /* @__PURE__ */ __name((program, deps) => {
|
|
|
4283
4433
|
}, "addMeetingContextCommands");
|
|
4284
4434
|
|
|
4285
4435
|
// dist/meeting-integration-commands.js
|
|
4436
|
+
var linkChange = /* @__PURE__ */ __name((options) => {
|
|
4437
|
+
const toPerson = options.participantId !== void 0 || options.person !== void 0;
|
|
4438
|
+
if (options.eventId !== void 0 === toPerson)
|
|
4439
|
+
throw new CliError("validation_error", "give --event-id, or --participant-id with --person", {
|
|
4440
|
+
param: "--event-id"
|
|
4441
|
+
});
|
|
4442
|
+
if (options.eventId !== void 0) {
|
|
4443
|
+
if (options.source !== void 0 || options.expectedPerson !== void 0)
|
|
4444
|
+
throw new CliError("validation_error", "--source and --expected-person go with --person, not --event-id");
|
|
4445
|
+
return {
|
|
4446
|
+
action: "event.link",
|
|
4447
|
+
eventId: options.eventId === "none" ? null : options.eventId,
|
|
4448
|
+
...options.expectedEventId === void 0 ? {} : { expectedEventId: options.expectedEventId === "none" ? null : options.expectedEventId }
|
|
4449
|
+
};
|
|
4450
|
+
}
|
|
4451
|
+
if (options.participantId === void 0 || options.person === void 0)
|
|
4452
|
+
throw new CliError("validation_error", "--participant-id and --person go together", { param: "--person" });
|
|
4453
|
+
if (options.expectedEventId !== void 0)
|
|
4454
|
+
throw new CliError("validation_error", "--expected-event-id goes with --event-id");
|
|
4455
|
+
return {
|
|
4456
|
+
action: "person.link",
|
|
4457
|
+
participantId: options.participantId,
|
|
4458
|
+
personUid: options.person,
|
|
4459
|
+
...options.source === void 0 ? {} : { targetAccountIds: options.source.split(",").map((item) => bytes(item.trim())) },
|
|
4460
|
+
...options.expectedPerson === void 0 ? {} : { expectedPersonUid: options.expectedPerson === "none" ? null : options.expectedPerson }
|
|
4461
|
+
};
|
|
4462
|
+
}, "linkChange");
|
|
4286
4463
|
var addMeetingIntegrationCommands = /* @__PURE__ */ __name((program, deps) => {
|
|
4287
4464
|
const meetings = program.commands.find((command) => command.name() === "meetings");
|
|
4288
4465
|
if (!meetings)
|
|
4289
4466
|
throw new CliError("configuration_error", "meeting command group is unavailable");
|
|
4290
|
-
const label2 = /* @__PURE__ */ __name((command,
|
|
4467
|
+
const label2 = /* @__PURE__ */ __name((command, examples, mutates = false) => annotate(command, {
|
|
4291
4468
|
origin: "handwritten",
|
|
4292
4469
|
effects: mutates ? LOCAL_WRITE : LOCAL_READ,
|
|
4293
|
-
examples
|
|
4470
|
+
examples
|
|
4294
4471
|
}), "label");
|
|
4295
4472
|
const guards = /* @__PURE__ */ __name((command) => command.option("--yes", "apply this local change once").option("--dry-run", "preview even when --yes is present"), "guards");
|
|
4296
4473
|
const apply = /* @__PURE__ */ __name(async (reference, input, options, command) => {
|
|
4297
4474
|
const target = integrationReference(reference);
|
|
4298
|
-
const
|
|
4299
|
-
if (
|
|
4475
|
+
const change = validateMeetingContextChange(input);
|
|
4476
|
+
if (change.action !== "event.link" && change.action !== "person.link")
|
|
4300
4477
|
throw new CliError("validation_error", "meeting linking supports only explicit event or person changes");
|
|
4301
|
-
const result = await (await deps.integration()).change(target.reference,
|
|
4478
|
+
const result = await (await deps.integration()).change(target.reference, change, {
|
|
4302
4479
|
apply: options.yes,
|
|
4303
4480
|
dryRun: options.dryRun,
|
|
4304
4481
|
signal: deps.signal(),
|
|
@@ -4311,18 +4488,10 @@ var addMeetingIntegrationCommands = /* @__PURE__ */ __name((program, deps) => {
|
|
|
4311
4488
|
deps.output(itemOf(result));
|
|
4312
4489
|
}, "apply");
|
|
4313
4490
|
const nullableId = /* @__PURE__ */ __name((value) => value === "none" ? "none" : bytes(value), "nullableId");
|
|
4314
|
-
label2(guards(meetings.command("
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
}, options, command)), "zm personal meetings update meeting:1/1 --event-id 1 --json", true);
|
|
4319
|
-
label2(guards(meetings.command("link").description("preview linking a meeting participant to a stored person; --yes applies it").argument("<reference>", "meeting reference, such as meeting:1/1").requiredOption("--participant-id <id>", "participant id from this meeting", bytes).requiredOption("--person <uid>", "explicit stored person UID").option("--source <accounts>", "explicit additional account ids authorized for target-person lookup").option("--expected-person <uid>", "compare current person UID, or none")).action(async (reference, options, command) => apply(reference, {
|
|
4320
|
-
action: "person.link",
|
|
4321
|
-
participantId: options.participantId,
|
|
4322
|
-
personUid: options.person,
|
|
4323
|
-
...options.source === void 0 ? {} : { targetAccountIds: options.source.split(",").map((item) => bytes(item.trim())) },
|
|
4324
|
-
...options.expectedPerson === void 0 ? {} : { expectedPersonUid: options.expectedPerson === "none" ? null : options.expectedPerson }
|
|
4325
|
-
}, options, command)), "zm personal meetings link meeting:1/1 --participant-id 1 --person 1 --json", true);
|
|
4491
|
+
label2(guards(meetings.command("link").description("link a meeting to an event, or a participant to a person; --yes applies").argument("<reference>", "meeting reference, such as meeting:1/1").option("--event-id <id>", "stored event id, or none to unlink", nullableId).option("--expected-event-id <id>", "with --event-id: compare current event id, or none", nullableId).option("--participant-id <id>", "with --person: participant id from this meeting", bytes).option("--person <uid>", "with --participant-id: explicit stored person UID").option("--source <accounts>", "explicit additional account ids authorized for target-person lookup").option("--expected-person <uid>", "compare current person UID, or none")).action(async (reference, options, command) => apply(reference, linkChange(options), options, command)), [
|
|
4492
|
+
"zm personal meetings link meeting:1/1 --event-id 1 --json",
|
|
4493
|
+
"zm personal meetings link meeting:1/1 --participant-id 1 --person 1 --json"
|
|
4494
|
+
], true);
|
|
4326
4495
|
}, "addMeetingIntegrationCommands");
|
|
4327
4496
|
|
|
4328
4497
|
// dist/meeting-project-candidates.js
|
|
@@ -5537,6 +5706,11 @@ ${PROFILE_HELP}`);
|
|
|
5537
5706
|
return validateDownloadedFiles(await (deps.readFiles ?? readDownloadedFiles)(folder), filesZone(config2)).map((file) => importFile(file, requireAccount(), filesZone(config2)));
|
|
5538
5707
|
}, "readFiles"),
|
|
5539
5708
|
now: deps.now,
|
|
5709
|
+
management: profileMeetingManagement(() => {
|
|
5710
|
+
api();
|
|
5711
|
+
return deps.remoteMeetings ?? new ZoomRemoteMeetings(tokens(), fetchWithSignal(deps.fetch), remoteOptions);
|
|
5712
|
+
}, () => profileAccountKey(profile())),
|
|
5713
|
+
askFirst: /* @__PURE__ */ __name((command) => askBeforeWrite(command, { profile: named, config: getConfig, confirm: ask() }), "askFirst"),
|
|
5540
5714
|
write: /* @__PURE__ */ __name((value) => output(bodyOf(value)), "write"),
|
|
5541
5715
|
// inCommandRun would open a second run beside zm's own commandRuns, so a sync would be kept twice.
|
|
5542
5716
|
inRun: /* @__PURE__ */ __name((_command, body) => body(), "inRun"),
|
|
@@ -5551,8 +5725,7 @@ ${PROFILE_HELP}`);
|
|
|
5551
5725
|
};
|
|
5552
5726
|
const before = new Set(program.commands);
|
|
5553
5727
|
addZoomMeetingCommands(program, meetingCommands);
|
|
5554
|
-
const
|
|
5555
|
-
const storeCommands = new Set(program.commands.filter((group) => !before.has(group)).flatMap(leaves));
|
|
5728
|
+
const storeCommands = storeLeaves(program, before, meetingCommands.management);
|
|
5556
5729
|
addSessionCommands(program, {
|
|
5557
5730
|
deps,
|
|
5558
5731
|
getConfig,
|
|
@@ -5619,7 +5792,6 @@ ${PROFILE_HELP}`);
|
|
|
5619
5792
|
signal,
|
|
5620
5793
|
now: deps.now ?? Date.now,
|
|
5621
5794
|
recordings: /* @__PURE__ */ __name(() => deps.recordings ?? new ZoomRecordings(tokens(), fetchWithSignal(deps.fetch), remoteOptions, zones), "recordings"),
|
|
5622
|
-
remoteMeetings: /* @__PURE__ */ __name(() => deps.remoteMeetings ?? new ZoomRemoteMeetings(tokens(), fetchWithSignal(deps.fetch), remoteOptions), "remoteMeetings"),
|
|
5623
5795
|
archive: deps.archive ?? {
|
|
5624
5796
|
inspect: inspectArchive,
|
|
5625
5797
|
verify: verifyArchive,
|
|
@@ -5792,7 +5964,7 @@ var zoomDefinition = /* @__PURE__ */ __name((deps, onFailure) => {
|
|
|
5792
5964
|
appMcpCommand(ZM, shared, {
|
|
5793
5965
|
name: "Zoom",
|
|
5794
5966
|
untrusted: ["transcripts", "summaries", "chat messages", "participant names", "meeting titles", "file names"],
|
|
5795
|
-
permissionExample: "
|
|
5967
|
+
permissionExample: "meetings.cancel=deny",
|
|
5796
5968
|
skill: SKILL
|
|
5797
5969
|
})
|
|
5798
5970
|
], "commands"),
|