@wirecat/zoom-cli 0.79.0 → 0.81.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 +5 -4
- package/contracts/wirecat.json +71 -3
- package/dist/answer-output.d.ts +1 -1
- package/dist/answer-output.js +1 -1
- package/dist/answers.d.ts +44 -0
- package/dist/answers.d.ts.map +1 -1
- package/dist/bin/zm.js +2 -2
- package/dist/bundle/agent-VYAJCJLE.js +45 -0
- package/dist/bundle/{all-profiles-LDSHUH5W.js → all-profiles-3ASMN35R.js} +64 -22
- package/dist/bundle/answer-policy-PTH4F2DW.js +129 -0
- package/dist/bundle/{anthropic-UH3QWA3F.js → anthropic-XXI53VNI.js} +6 -6
- package/dist/bundle/{app-server-LFANTLAJ.js → app-server-B7WLNZNQ.js} +90 -80
- package/dist/bundle/{bun-M3J2QTR3.js → bun-2FLR4IV4.js} +2 -2
- package/dist/bundle/{bun-sqlite-NYP5UH23.js → bun-sqlite-3NNHTOGM.js} +7 -7
- package/dist/bundle/{chunk-RMQ7EALU.js → chunk-2ELGSNX3.js} +17 -17
- package/dist/bundle/{chunk-5RVXXDN7.js → chunk-2GNGR265.js} +1 -1
- package/dist/bundle/{chunk-FMT4CIGN.js → chunk-2RFWRJFK.js} +7 -7
- package/dist/bundle/{chunk-HZRQLAHO.js → chunk-2Z7UOXFC.js} +1 -1
- package/dist/bundle/chunk-337ALCXQ.js +640 -0
- package/dist/bundle/{chunk-2PUMYKGV.js → chunk-35FVYRH5.js} +20 -18
- package/dist/bundle/{chunk-Y64L7A7E.js → chunk-3M436OO2.js} +6 -6
- package/dist/bundle/{chunk-E5WLE7BM.js → chunk-3UX4VJWD.js} +1 -1
- package/dist/bundle/{chunk-P4MZOAPC.js → chunk-437DLSB3.js} +1371 -638
- package/dist/bundle/{chunk-I75KOOUD.js → chunk-46EF6P2J.js} +3 -3
- package/dist/bundle/{chunk-XOYMIEAZ.js → chunk-4B335BCJ.js} +7 -78
- package/dist/bundle/chunk-4BU3LRTB.js +561 -0
- package/dist/bundle/{chunk-LITZ7KPO.js → chunk-4BXLHSXY.js} +2 -2
- package/dist/bundle/{chunk-TUECY6LV.js → chunk-4FSH7K6N.js} +2 -2
- package/dist/bundle/{chunk-W656MRJD.js → chunk-4VOCXLMJ.js} +6 -6
- package/dist/bundle/{chunk-TLO62ROR.js → chunk-4ZXJ4AZW.js} +26 -26
- package/dist/bundle/{chunk-XFMVDQ6J.js → chunk-5EWYDHBH.js} +2 -2
- package/dist/bundle/{chunk-UQKVZFIX.js → chunk-5SEBLX6B.js} +12 -12
- package/dist/bundle/{chunk-HVQVCGME.js → chunk-77TJ3AJH.js} +3 -3
- package/dist/bundle/{chunk-I6VDTYML.js → chunk-7JWVPJIP.js} +10 -10
- package/dist/bundle/{chunk-FPUGMDJV.js → chunk-AV2ZJ4WX.js} +1 -1
- package/dist/bundle/{chunk-PCPOO5FS.js → chunk-AWJQ6FAX.js} +2 -2
- package/dist/bundle/{chunk-NKFEEY5M.js → chunk-B2WBWKYN.js} +12 -12
- package/dist/bundle/{chunk-52ZQ72HL.js → chunk-BQBC2WIG.js} +1 -1
- package/dist/bundle/{chunk-2GI63IPV.js → chunk-BZXHJKKI.js} +3 -3
- package/dist/bundle/{chunk-3QPAD6YI.js → chunk-C4BBCSGK.js} +43 -64
- package/dist/bundle/{chunk-CWXOXIWS.js → chunk-CFQQTDSA.js} +1 -1
- package/dist/bundle/{chunk-OLMEJNL4.js → chunk-D26K6756.js} +6 -6
- package/dist/bundle/{chunk-DI5JX4SD.js → chunk-D7CDHBDX.js} +1 -1
- package/dist/bundle/{chunk-Y4UDPQ3L.js → chunk-DMJLJVD3.js} +7 -7
- package/dist/bundle/{chunk-LCCVEX4R.js → chunk-EEBSKMEA.js} +12 -12
- package/dist/bundle/{chunk-DQVCCO7G.js → chunk-EPASOAEI.js} +184 -165
- package/dist/bundle/{chunk-RUE3WP7K.js → chunk-EWEQ7AXL.js} +45 -23
- package/dist/bundle/{chunk-4T3J4NCF.js → chunk-F2J2FQUB.js} +9 -9
- package/dist/bundle/{chunk-TP7GDWVF.js → chunk-F5ZAN7OC.js} +1 -1
- package/dist/bundle/{chunk-DFCHHR5M.js → chunk-FMMYBVCH.js} +1 -1
- package/dist/bundle/{chunk-XAOSZGTD.js → chunk-FXCR4DGU.js} +1 -1
- package/dist/bundle/{chunk-M5FW654Z.js → chunk-FXZPAGHT.js} +2 -2
- package/dist/bundle/{chunk-5KEOCHBZ.js → chunk-G3DWMG7Y.js} +4 -4
- package/dist/bundle/{chunk-FKA7DOCK.js → chunk-GCAJW4SR.js} +1 -1
- package/dist/bundle/chunk-GDRFVBCB.js +108 -0
- package/dist/bundle/{chunk-WE4UFASG.js → chunk-GPRJXJC7.js} +15 -1
- package/dist/bundle/chunk-GW2A2FJH.js +209 -0
- package/dist/bundle/{chunk-2N57GL4L.js → chunk-HHQROAJQ.js} +1 -1
- package/dist/bundle/{chunk-M4RXPZ6K.js → chunk-HIFPHARA.js} +4 -4
- package/dist/bundle/{chunk-O3DYRCIT.js → chunk-HVXOA4FO.js} +1 -1
- package/dist/bundle/{chunk-ONJPUFLX.js → chunk-IBYGNUO7.js} +1 -1
- package/dist/bundle/{chunk-2W6QGFHF.js → chunk-IDUKCXL7.js} +8 -8
- package/dist/bundle/{chunk-FO5UNFFN.js → chunk-IFM4G4MT.js} +4 -4
- package/dist/bundle/chunk-IVZACJ6X.js +52 -0
- package/dist/bundle/{chunk-XIHENZW6.js → chunk-IYNICUCC.js} +4 -4
- package/dist/bundle/chunk-J5EHZBO5.js +68 -0
- package/dist/bundle/{chunk-FIJREKLA.js → chunk-JK24A3RP.js} +3 -3
- package/dist/bundle/{chunk-73L5R7AS.js → chunk-JKEMW6E4.js} +2 -2
- package/dist/bundle/{chunk-PP6SZLCY.js → chunk-K7CTCDYX.js} +18 -249
- package/dist/bundle/{chunk-63WT3HCY.js → chunk-KZ3B6HW5.js} +3 -3
- package/dist/bundle/{chunk-XDBGGOE2.js → chunk-L2ERFXB7.js} +32 -28
- package/dist/bundle/{chunk-2IPIBDXI.js → chunk-L54I45OX.js} +19 -16
- package/dist/bundle/{chunk-X2M6NIQG.js → chunk-LECMHK2F.js} +1 -1
- package/dist/bundle/{chunk-NQMHYLZO.js → chunk-LGESUPKO.js} +20 -20
- package/dist/bundle/{chunk-SGFNQFP4.js → chunk-LVCCZI5A.js} +71 -61
- package/dist/bundle/chunk-M7OYEMLI.js +340 -0
- package/dist/bundle/{chunk-VX6ZSKXM.js → chunk-MA4UJNUI.js} +12 -12
- package/dist/bundle/{chunk-4S7RUA3U.js → chunk-MBBR7QHI.js} +9333 -8433
- package/dist/bundle/{chunk-BNEJKGG7.js → chunk-N5ROXGY4.js} +78 -76
- package/dist/bundle/{chunk-2LJARGNG.js → chunk-N62P5FY4.js} +12 -12
- package/dist/bundle/{chunk-65DOVVHQ.js → chunk-NM5XMKWO.js} +1 -1
- package/dist/bundle/{chunk-YOBTKYIX.js → chunk-NQGGTO3B.js} +35 -12
- package/dist/bundle/{chunk-W5HRTC6X.js → chunk-NS3JWBDR.js} +6 -6
- package/dist/bundle/{chunk-QIK2IBJ4.js → chunk-NX3BLISW.js} +23 -7
- package/dist/bundle/{chunk-4BQN5IFQ.js → chunk-OEQNP56V.js} +2 -100
- package/dist/bundle/{chunk-5D4AEUVA.js → chunk-PL5P7UKW.js} +434 -1
- package/dist/bundle/{chunk-AWLZZTPW.js → chunk-PS7HQ5LQ.js} +3 -3
- package/dist/bundle/{chunk-J62BQBVG.js → chunk-Q26UFIH4.js} +3 -3
- package/dist/bundle/{chunk-QRKSASGP.js → chunk-QFK52FG6.js} +3 -3
- package/dist/bundle/chunk-QNG27PGH.js +751 -0
- package/dist/bundle/{chunk-T6LA664Z.js → chunk-R4CXFYQN.js} +139 -574
- package/dist/bundle/{chunk-OZQSTX4J.js → chunk-R6HP2XKD.js} +5 -5
- package/dist/bundle/{chunk-GTUBQQU2.js → chunk-RQFRXUI4.js} +77 -67
- package/dist/bundle/{chunk-BTFPDS52.js → chunk-RRYHLP3A.js} +6 -6
- package/dist/bundle/{chunk-HOXBHGP2.js → chunk-SRUAUMBL.js} +12 -12
- package/dist/bundle/{chunk-RJ5JAYNZ.js → chunk-T2BHIC37.js} +65 -65
- package/dist/bundle/{chunk-JJGUHWLB.js → chunk-T7QPZYRZ.js} +7 -7
- package/dist/bundle/{chunk-NI7UYGTF.js → chunk-TI4WJOEX.js} +13 -13
- package/dist/bundle/{chunk-ST3ZB7LS.js → chunk-UHMJSSQO.js} +1 -1
- package/dist/bundle/{chunk-BOVYOUB3.js → chunk-UMPUY77T.js} +10 -10
- package/dist/bundle/{chunk-U7QXC75C.js → chunk-UPR2S5IE.js} +9 -9
- package/dist/bundle/chunk-UUVWAVKN.js +80 -0
- package/dist/bundle/{chunk-2OTETB4A.js → chunk-V3ZTAAJ6.js} +19 -9
- package/dist/bundle/{chunk-QX3PO5UE.js → chunk-VAW7QGJA.js} +3 -3
- package/dist/bundle/{chunk-N5O3XVX3.js → chunk-VQTYJ6XH.js} +3 -3
- package/dist/bundle/{chunk-YCW422X7.js → chunk-VXD65V67.js} +1466 -1544
- package/dist/bundle/{chunk-D264RGZ4.js → chunk-WHXYPLUE.js} +4 -4
- package/dist/bundle/chunk-WIX6BFRF.js +353 -0
- package/dist/bundle/{chunk-P4WHDL2F.js → chunk-WKNYNK7W.js} +4 -4
- package/dist/bundle/{chunk-PJFVE7UH.js → chunk-XWKUGAG6.js} +31 -16
- package/dist/bundle/{chunk-W7HM2VGO.js → chunk-XYQVVW4R.js} +1 -1
- package/dist/bundle/{chunk-RMX2WPWS.js → chunk-Y7XJA4EW.js} +4 -4
- package/dist/bundle/{chunk-Z3CPZ4I4.js → chunk-YIIGF643.js} +306 -306
- package/dist/bundle/{chunk-525BI32C.js → chunk-YISJJNXT.js} +3 -3
- package/dist/bundle/{chunk-AZB6QXZU.js → chunk-YJKXCINQ.js} +51 -4
- package/dist/bundle/{chunk-IIFRJV3A.js → chunk-YNWBRDBX.js} +2 -2
- package/dist/bundle/{chunk-ZPZT46O6.js → chunk-YRDQ54G5.js} +33 -10
- package/dist/bundle/{chunk-W53EJOFQ.js → chunk-YUDVRFXN.js} +1 -1
- package/dist/bundle/{chunk-ND7TBQKO.js → chunk-ZFRYFDZN.js} +2 -2
- package/dist/bundle/{chunk-XEIL6VNA.js → chunk-ZLYICF6A.js} +4 -4
- package/dist/bundle/{chunk-7DTWT7BN.js → chunk-ZMAPXIGC.js} +2 -2
- package/dist/bundle/{chunk-ZKVYV25H.js → chunk-ZNAX7GUV.js} +8 -8
- package/dist/bundle/{cli-AVQU63FT.js → cli-WTGAGSXV.js} +144 -97
- package/dist/bundle/command-contract-3IKVWPDL.js +45 -0
- package/dist/bundle/{command-server-entry-JZP7Y73G.js → command-server-entry-47CAYN3E.js} +35 -35
- package/dist/bundle/config-ZOGOKGTU.js +116 -0
- package/dist/bundle/{decode-JLAYH7GC.js → decode-2G7QS5IQ.js} +6 -6
- package/dist/bundle/{dispatch-AWDROXWN.js → dispatch-ZAP3KBVJ.js} +9 -9
- package/dist/bundle/dist-PAKDDIBT.js +191 -0
- package/dist/bundle/{dist-TBLTUL5M.js → dist-WY6R3WH7.js} +21 -21
- package/dist/bundle/{echarts-FVTUDXDU.js → echarts-YRRVLEX3.js} +2 -2
- package/dist/bundle/{embed-CJRENDF7.js → embed-B5H3OW2O.js} +7 -7
- package/dist/bundle/{embedder-RPE67QJD.js → embedder-3O73SP6Y.js} +10 -10
- package/dist/bundle/{failure-JZW73RP7.js → failure-EYGW7JMC.js} +3 -3
- package/dist/bundle/first-run-MPKMDEMA.js +29 -0
- package/dist/bundle/first-screen-AIAAC3KF.js +45 -0
- package/dist/bundle/{folders-TGFOE7DY.js → folders-4CGFWM6H.js} +5 -5
- package/dist/bundle/{instructions-HET7BCYK.js → instructions-AG7SRWTR.js} +1 -1
- package/dist/bundle/{main-QRJ6NRCD.js → main-DOGY6FJP.js} +24 -24
- package/dist/bundle/{mcp-RGNRW77S.js → mcp-YGOAUNC3.js} +2 -2
- package/dist/bundle/meeting-combined-YKPKTKGA.js +26 -0
- package/dist/bundle/meeting-model-HTXSGHNM.js +26 -0
- package/dist/bundle/{meeting-semantic-4MURLQCA.js → meeting-semantic-FOEBWV3P.js} +8 -8
- package/dist/bundle/{meetings-QFZWKHI4.js → meetings-PVE4C2NF.js} +7 -7
- package/dist/bundle/{node-CXZIFHZC.js → node-GJQYN4FT.js} +2 -2
- package/dist/bundle/{node-sqlite-CZPYFROO.js → node-sqlite-MLRYKVCQ.js} +8 -8
- package/dist/bundle/oauth-AC55C6SG.js +20 -0
- package/dist/bundle/{open-3AONZFET.js → open-3LGTYP6M.js} +6 -6
- package/dist/bundle/openai-E2MSLVIX.js +28 -0
- package/dist/bundle/{output-file-J4SU6X4I.js → output-file-FXMTTLOI.js} +6 -6
- package/dist/bundle/{process-5RUXWGYS.js → process-MEKCZMX3.js} +1 -1
- package/dist/bundle/{program-2O4YSRWY.js → program-E5BSSIGY.js} +166 -156
- package/dist/bundle/{prompt-NDLUFCJV.js → prompt-AIA6QSZK.js} +6 -6
- package/dist/bundle/{recognize-CZOIAJQX.js → recognize-M57VNTEV.js} +5 -5
- package/dist/bundle/{remote-O3CE4Q3B.js → remote-3OTENZ7Z.js} +11 -11
- package/dist/bundle/{rerank-MZOL746K.js → rerank-P5WHDFDU.js} +8 -8
- package/dist/bundle/run-log-EOQ4EQDS.js +143 -0
- package/dist/bundle/{serve-43IBHMFM.js → serve-BRLC2QVV.js} +11 -11
- package/dist/bundle/{server-6LTMPPTO.js → server-25NF7DMS.js} +80 -69
- package/dist/bundle/server-EW2RL2EL.js +93 -0
- package/dist/bundle/{services-UIRD5PHE.js → services-MJE43OGD.js} +54 -52
- package/dist/bundle/{speech-6QVKIJVR.js → speech-4AVCWTQH.js} +28 -28
- package/dist/bundle/{sqlite-runtime-PKCIBVHZ.js → sqlite-runtime-U4TQXWMC.js} +7 -7
- package/dist/bundle/{state-AC55V3IE.js → state-GNUGVMY7.js} +7 -7
- package/dist/bundle/{store-OAGA2ZK3.js → store-KBFZVQWF.js} +33 -24
- package/dist/bundle/{store-QOCYJNKX.js → store-MHVBFUBB.js} +27 -26
- package/dist/bundle/store-connection-SKRUAI4L.js +109 -0
- package/dist/bundle/store-maintenance-command-G6EXJSHJ.js +81 -0
- package/dist/bundle/{streaming-VDJOYGMO.js → streaming-6F7AFEHD.js} +7 -7
- package/dist/bundle/surface-DWEWB5RG.js +79 -0
- package/dist/bundle/{tokens-LN442AO6.js → tokens-BB4MQBLH.js} +11 -10
- package/dist/bundle/zm.js +9 -9
- package/dist/bundle/{zoom-app-TOCQ7LB5.js → zoom-app-YTGOZ2FS.js} +8 -8
- package/dist/commands.d.ts +1 -0
- package/dist/commands.d.ts.map +1 -1
- package/dist/commands.js +8 -2
- package/dist/commands.js.map +1 -1
- package/dist/program-bindings.d.ts.map +1 -1
- package/dist/program-bindings.js +2 -2
- package/dist/program-bindings.js.map +1 -1
- package/dist/setup-commands.d.ts +1 -1
- package/dist/setup-commands.d.ts.map +1 -1
- package/dist/setup-commands.js +31 -5
- package/dist/setup-commands.js.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/zoom-api/types.d.ts +5 -0
- package/dist/zoom-api/types.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/bundle/answer-policy-VJK4ID2F.js +0 -122
- package/dist/bundle/chunk-3AFZ6Q5N.js +0 -729
- package/dist/bundle/command-contract-MCWBL5VS.js +0 -45
- package/dist/bundle/config-G3C54VH6.js +0 -109
- package/dist/bundle/first-run-QEASX5J5.js +0 -29
- package/dist/bundle/first-screen-NGCQD3CU.js +0 -45
- package/dist/bundle/meeting-combined-AZXCDXCV.js +0 -26
- package/dist/bundle/meeting-model-7HNQ4I3J.js +0 -26
- package/dist/bundle/oauth-T45MPIZF.js +0 -20
- package/dist/bundle/openai-LHWUXEBO.js +0 -28
- package/dist/bundle/run-log-GX6LNMWY.js +0 -136
- package/dist/bundle/server-3E2PJGYK.js +0 -85
- package/dist/bundle/store-connection-PBZMFY56.js +0 -102
- package/dist/bundle/store-maintenance-command-VBCHEOGI.js +0 -77
|
@@ -3,16 +3,16 @@ const require = __bundleRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
QUERY_LIMITS,
|
|
5
5
|
queryError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YIIGF643.js";
|
|
7
7
|
import {
|
|
8
8
|
CliError,
|
|
9
9
|
isCliError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UHMJSSQO.js";
|
|
11
11
|
import {
|
|
12
12
|
__name
|
|
13
13
|
} from "./chunk-ZVVMGPBJ.js";
|
|
14
14
|
|
|
15
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.
|
|
15
|
+
// node_modules/.pnpm/@wirecat+cli-core@0.707.0_@wirecat+cli-base@0.124.0_commander@15.0.0_esbuild@0.28.2_typ_1ab7200af0919d16d129ae0ece32d37f/node_modules/@wirecat/cli-core/dist/search/lucene/types.js
|
|
16
16
|
var QUERY_VERSION = 1;
|
|
17
17
|
var QUERY_LIMITS2 = {
|
|
18
18
|
...QUERY_LIMITS,
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
import { createRequire as __bundleRequire } from "node:module";
|
|
2
2
|
const require = __bundleRequire(import.meta.url);
|
|
3
|
+
import {
|
|
4
|
+
oauthAccount
|
|
5
|
+
} from "./chunk-337ALCXQ.js";
|
|
3
6
|
import {
|
|
4
7
|
checkCancelled,
|
|
5
8
|
object
|
|
6
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-AWJQ6FAX.js";
|
|
7
10
|
import {
|
|
8
11
|
acquireLock
|
|
9
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-XWKUGAG6.js";
|
|
10
13
|
import {
|
|
11
14
|
Credentials
|
|
12
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-N5ROXGY4.js";
|
|
13
16
|
import {
|
|
14
17
|
CliError,
|
|
15
18
|
isCliError
|
|
16
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-UHMJSSQO.js";
|
|
17
20
|
import {
|
|
18
21
|
__name
|
|
19
22
|
} from "./chunk-ZVVMGPBJ.js";
|
|
@@ -22,80 +25,6 @@ import {
|
|
|
22
25
|
import { createHash } from "node:crypto";
|
|
23
26
|
import { join } from "node:path";
|
|
24
27
|
import { setTimeout as delay } from "node:timers/promises";
|
|
25
|
-
|
|
26
|
-
// node_modules/.pnpm/@wirecat+cli-core@0.687.0_@wirecat+cli-base@0.109.0_commander@15.0.0_esbuild@0.28.2_typ_3e6248e31e5b79d53006284373ddef70/node_modules/@wirecat/cli-core/dist/oauth/storage.js
|
|
27
|
-
var invalid = /* @__PURE__ */ __name(() => new CliError("authentication_error", "the saved sign-in cannot be read; sign in again", { reason: "oauth.invalid" }), "invalid");
|
|
28
|
-
var parse = /* @__PURE__ */ __name((raw) => {
|
|
29
|
-
let value;
|
|
30
|
-
try {
|
|
31
|
-
value = JSON.parse(raw);
|
|
32
|
-
} catch {
|
|
33
|
-
throw invalid();
|
|
34
|
-
}
|
|
35
|
-
if (typeof value !== "object" || value === null || Array.isArray(value))
|
|
36
|
-
throw invalid();
|
|
37
|
-
return value;
|
|
38
|
-
}, "parse");
|
|
39
|
-
var text = /* @__PURE__ */ __name((value) => typeof value === "string" && value ? value : void 0, "text");
|
|
40
|
-
var finite = /* @__PURE__ */ __name((value) => typeof value === "number" && Number.isFinite(value) ? value : void 0, "finite");
|
|
41
|
-
var previousOf = /* @__PURE__ */ __name((raw) => {
|
|
42
|
-
if (raw === void 0)
|
|
43
|
-
return {};
|
|
44
|
-
try {
|
|
45
|
-
return parse(raw);
|
|
46
|
-
} catch {
|
|
47
|
-
return {};
|
|
48
|
-
}
|
|
49
|
-
}, "previousOf");
|
|
50
|
-
var defined = /* @__PURE__ */ __name((value) => Object.fromEntries(Object.entries(value).filter(([, field]) => field !== void 0)), "defined");
|
|
51
|
-
var oauthAccount = /* @__PURE__ */ __name((providerId, profile) => {
|
|
52
|
-
if (!profile.trim())
|
|
53
|
-
throw new CliError("validation_error", "name a profile: a sign-in always belongs to one", {
|
|
54
|
-
reason: "profile.missing"
|
|
55
|
-
});
|
|
56
|
-
return `oauth:${providerId}:${profile}`;
|
|
57
|
-
}, "oauthAccount");
|
|
58
|
-
var standardCodec = /* @__PURE__ */ __name((providerId) => ({
|
|
59
|
-
decode: /* @__PURE__ */ __name((raw) => {
|
|
60
|
-
const value = parse(raw);
|
|
61
|
-
const refreshToken = text(value.refreshToken);
|
|
62
|
-
const clientId = text(value.clientId);
|
|
63
|
-
if (value.version !== 1 || value.provider !== providerId || !refreshToken || !clientId)
|
|
64
|
-
throw invalid();
|
|
65
|
-
if (!Array.isArray(value.scopes) || !value.scopes.every((scope) => typeof scope === "string"))
|
|
66
|
-
throw invalid();
|
|
67
|
-
const source = text(value.clientSource);
|
|
68
|
-
return {
|
|
69
|
-
client: defined({ clientId, clientSecret: text(value.clientSecret), source }),
|
|
70
|
-
tokens: defined({
|
|
71
|
-
accessToken: text(value.accessToken),
|
|
72
|
-
refreshToken,
|
|
73
|
-
expiresAt: finite(value.expiresAt),
|
|
74
|
-
scopes: value.scopes,
|
|
75
|
-
tokenType: text(value.tokenType)
|
|
76
|
-
})
|
|
77
|
-
};
|
|
78
|
-
}, "decode"),
|
|
79
|
-
encode: /* @__PURE__ */ __name(({ tokens, client, previous, extra }) => JSON.stringify(defined({
|
|
80
|
-
...previousOf(previous),
|
|
81
|
-
...extra,
|
|
82
|
-
version: 1,
|
|
83
|
-
provider: providerId,
|
|
84
|
-
clientId: client.clientId,
|
|
85
|
-
// Only WireCat's secret, which is public: a later release may ship another default app, and a refresh needs
|
|
86
|
-
// the secret of the app that signed in. An owner's own secret stays where the owner keeps it.
|
|
87
|
-
clientSecret: client.source === "constants" ? client.clientSecret : void 0,
|
|
88
|
-
clientSource: client.source,
|
|
89
|
-
accessToken: tokens.accessToken,
|
|
90
|
-
refreshToken: tokens.refreshToken,
|
|
91
|
-
expiresAt: tokens.expiresAt,
|
|
92
|
-
scopes: tokens.scopes,
|
|
93
|
-
tokenType: tokens.tokenType
|
|
94
|
-
})), "encode")
|
|
95
|
-
}), "standardCodec");
|
|
96
|
-
var googleStandard = standardCodec("google");
|
|
97
|
-
|
|
98
|
-
// dist/tokens.js
|
|
99
28
|
var TOKEN_LOG_ALLOW2 = ["rotated", "saved", "pid"];
|
|
100
29
|
var TOKEN_LOG_EVENT2 = "zoom.token.exchange";
|
|
101
30
|
var abortReason = /* @__PURE__ */ __name((parent) => !parent?.aborted ? "timeout" : isCliError(parent.reason) ? parent.reason.code : "cancelled", "abortReason");
|