@openclaw/msteams 2026.7.2-beta.4 → 2026.7.2-beta.7
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 +1 -1
- package/dist/api.cjs +2 -2
- package/dist/{channel-D_epy05a.cjs → channel-C7QxRjBW.cjs} +16 -134
- package/dist/channel-config-api.cjs +1 -1
- package/dist/channel-plugin-api.cjs +1 -1
- package/dist/{channel.runtime-D6MyENlx.cjs → channel.runtime-DjY6d_hd.cjs} +19 -14
- package/dist/{config-schema-BTnLgWAe.cjs → config-schema-C4CszdDi.cjs} +12 -28
- package/dist/{delegated-state-DOSCHaAB.cjs → delegated-state-DiEz9JIa.cjs} +0 -28
- package/dist/directory-contract-api.cjs +1 -1
- package/dist/doctor-contract-api.cjs +9 -7
- package/dist/{messenger-BcpkE82v.cjs → messenger-DTiaLTDO.cjs} +43 -32
- package/dist/{oauth-Bv-hLxJo.cjs → oauth-CW6jVGp8.cjs} +1 -1
- package/dist/{polls-CWExq2xZ.cjs → polls-BWKNpBSg.cjs} +30 -3
- package/dist/{resolve-allowlist-CgA2KHN8.cjs → resolve-allowlist-CEj9sABO.cjs} +125 -12
- package/dist/runtime-api.cjs +1 -1
- package/dist/setup-plugin-api.cjs +6 -34
- package/dist/{setup-surface-BWSGtAxk.cjs → setup-surface-ByWjaXEn.cjs} +59 -36
- package/dist/{src-Gqmhf6Hw.cjs → src-B_BdEvcr.cjs} +1305 -1021
- package/dist/{sso-token-store-OSg229re.cjs → sso-token-store-TKYk_Ms7.cjs} +1 -1
- package/package.json +5 -6
- package/npm-shrinkwrap.json +0 -1748
|
@@ -1,45 +1,61 @@
|
|
|
1
|
-
const require_resolve_allowlist = require("./resolve-allowlist-
|
|
1
|
+
const require_resolve_allowlist = require("./resolve-allowlist-CEj9sABO.cjs");
|
|
2
2
|
let openclaw_plugin_sdk_string_coerce_runtime = require("openclaw/plugin-sdk/string-coerce-runtime");
|
|
3
|
+
let openclaw_plugin_sdk_account_id = require("openclaw/plugin-sdk/account-id");
|
|
4
|
+
let openclaw_plugin_sdk_allow_from = require("openclaw/plugin-sdk/allow-from");
|
|
3
5
|
let openclaw_plugin_sdk_number_runtime = require("openclaw/plugin-sdk/number-runtime");
|
|
6
|
+
let openclaw_plugin_sdk_channel_config_helpers = require("openclaw/plugin-sdk/channel-config-helpers");
|
|
4
7
|
let openclaw_plugin_sdk_channel_setup = require("openclaw/plugin-sdk/channel-setup");
|
|
5
8
|
let openclaw_plugin_sdk_setup = require("openclaw/plugin-sdk/setup");
|
|
6
9
|
let openclaw_plugin_sdk_setup_tools = require("openclaw/plugin-sdk/setup-tools");
|
|
7
10
|
let openclaw_plugin_sdk_retry_runtime = require("openclaw/plugin-sdk/retry-runtime");
|
|
8
11
|
let openclaw_plugin_sdk_secret_input = require("openclaw/plugin-sdk/secret-input");
|
|
12
|
+
//#region extensions/msteams/src/channel-config.ts
|
|
13
|
+
const msteamsMeta = {
|
|
14
|
+
id: "msteams",
|
|
15
|
+
label: "Microsoft Teams",
|
|
16
|
+
selectionLabel: "Microsoft Teams (Bot Framework)",
|
|
17
|
+
docsPath: "/channels/msteams",
|
|
18
|
+
docsLabel: "msteams",
|
|
19
|
+
blurb: "Teams SDK; enterprise support.",
|
|
20
|
+
aliases: ["teams"],
|
|
21
|
+
order: 60
|
|
22
|
+
};
|
|
23
|
+
const msteamsConfigAdapter = (0, openclaw_plugin_sdk_channel_config_helpers.createTopLevelChannelConfigAdapter)({
|
|
24
|
+
sectionKey: "msteams",
|
|
25
|
+
resolveAccount: (cfg) => ({
|
|
26
|
+
accountId: openclaw_plugin_sdk_account_id.DEFAULT_ACCOUNT_ID,
|
|
27
|
+
enabled: cfg.channels?.msteams?.enabled !== false,
|
|
28
|
+
configured: Boolean(require_resolve_allowlist.resolveMSTeamsCredentials(cfg.channels?.msteams))
|
|
29
|
+
}),
|
|
30
|
+
resolveAccessorAccount: ({ cfg }) => ({
|
|
31
|
+
allowFrom: cfg.channels?.msteams?.allowFrom,
|
|
32
|
+
defaultTo: cfg.channels?.msteams?.defaultTo
|
|
33
|
+
}),
|
|
34
|
+
resolveAllowFrom: (account) => account.allowFrom,
|
|
35
|
+
formatAllowFrom: (allowFrom) => (0, openclaw_plugin_sdk_allow_from.formatAllowFromLowercase)({ allowFrom }),
|
|
36
|
+
resolveDefaultTo: (account) => account.defaultTo
|
|
37
|
+
});
|
|
38
|
+
//#endregion
|
|
9
39
|
//#region extensions/msteams/src/setup-core.ts
|
|
10
40
|
const t$1 = (0, openclaw_plugin_sdk_setup.createSetupTranslator)();
|
|
41
|
+
const channel$1 = "msteams";
|
|
11
42
|
const msteamsSetupAdapter = {
|
|
12
43
|
resolveAccountId: () => openclaw_plugin_sdk_setup.DEFAULT_ACCOUNT_ID,
|
|
13
|
-
applyAccountConfig: ({ cfg }) => (
|
|
14
|
-
...cfg,
|
|
15
|
-
channels: {
|
|
16
|
-
...cfg.channels,
|
|
17
|
-
msteams: {
|
|
18
|
-
...cfg.channels?.msteams,
|
|
19
|
-
enabled: true
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
})
|
|
44
|
+
applyAccountConfig: ({ cfg }) => (0, openclaw_plugin_sdk_setup.setSetupChannelEnabled)(cfg, channel$1, true)
|
|
23
45
|
};
|
|
24
46
|
const msteamsSetupContract = (0, openclaw_plugin_sdk_channel_setup.defineChannelSetupContract)({
|
|
25
47
|
fields: {},
|
|
26
48
|
legacyAdapter: msteamsSetupAdapter
|
|
27
49
|
});
|
|
28
|
-
const channel$1 = "msteams";
|
|
29
50
|
async function promptMSTeamsCredentials(prompter) {
|
|
51
|
+
const promptRequired = async (message) => (await prompter.text({
|
|
52
|
+
message,
|
|
53
|
+
validate: (value) => value?.trim() ? void 0 : t$1("common.required")
|
|
54
|
+
})).trim();
|
|
30
55
|
return {
|
|
31
|
-
appId:
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
})).trim(),
|
|
35
|
-
appPassword: (await prompter.text({
|
|
36
|
-
message: t$1("wizard.msteams.appPasswordPrompt"),
|
|
37
|
-
validate: (value) => value?.trim() ? void 0 : t$1("common.required")
|
|
38
|
-
})).trim(),
|
|
39
|
-
tenantId: (await prompter.text({
|
|
40
|
-
message: t$1("wizard.msteams.tenantIdPrompt"),
|
|
41
|
-
validate: (value) => value?.trim() ? void 0 : t$1("common.required")
|
|
42
|
-
})).trim()
|
|
56
|
+
appId: await promptRequired(t$1("wizard.msteams.appIdPrompt")),
|
|
57
|
+
appPassword: await promptRequired(t$1("wizard.msteams.appPasswordPrompt")),
|
|
58
|
+
tenantId: await promptRequired(t$1("wizard.msteams.tenantIdPrompt"))
|
|
43
59
|
};
|
|
44
60
|
}
|
|
45
61
|
async function noteMSTeamsCredentialHelp(prompter) {
|
|
@@ -360,17 +376,12 @@ function setMSTeamsTeamsAllowlist(cfg, entries) {
|
|
|
360
376
|
};
|
|
361
377
|
} else teams[teamKey] = existing;
|
|
362
378
|
}
|
|
363
|
-
return {
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
enabled: true,
|
|
370
|
-
teams
|
|
371
|
-
}
|
|
372
|
-
}
|
|
373
|
-
};
|
|
379
|
+
return (0, openclaw_plugin_sdk_setup.patchTopLevelChannelConfigSection)({
|
|
380
|
+
cfg,
|
|
381
|
+
channel,
|
|
382
|
+
enabled: true,
|
|
383
|
+
patch: { teams }
|
|
384
|
+
});
|
|
374
385
|
}
|
|
375
386
|
function listMSTeamsGroupEntries(cfg) {
|
|
376
387
|
return Object.entries(cfg.channels?.msteams?.teams ?? {}).flatMap(([teamKey, value]) => {
|
|
@@ -460,7 +471,7 @@ const msteamsSetupWizard = {
|
|
|
460
471
|
};
|
|
461
472
|
let oauthModule;
|
|
462
473
|
try {
|
|
463
|
-
oauthModule = await Promise.resolve().then(() => require("./oauth-
|
|
474
|
+
oauthModule = await Promise.resolve().then(() => require("./oauth-CW6jVGp8.cjs"));
|
|
464
475
|
} catch (err) {
|
|
465
476
|
await noteDelegatedAuthFailure(err);
|
|
466
477
|
return {
|
|
@@ -544,6 +555,18 @@ Object.defineProperty(exports, "isRevokedProxyError", {
|
|
|
544
555
|
return isRevokedProxyError;
|
|
545
556
|
}
|
|
546
557
|
});
|
|
558
|
+
Object.defineProperty(exports, "msteamsConfigAdapter", {
|
|
559
|
+
enumerable: true,
|
|
560
|
+
get: function() {
|
|
561
|
+
return msteamsConfigAdapter;
|
|
562
|
+
}
|
|
563
|
+
});
|
|
564
|
+
Object.defineProperty(exports, "msteamsMeta", {
|
|
565
|
+
enumerable: true,
|
|
566
|
+
get: function() {
|
|
567
|
+
return msteamsMeta;
|
|
568
|
+
}
|
|
569
|
+
});
|
|
547
570
|
Object.defineProperty(exports, "msteamsSetupAdapter", {
|
|
548
571
|
enumerable: true,
|
|
549
572
|
get: function() {
|