@openclaw/msteams 2026.7.1 → 2026.7.2-beta.2

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.
Files changed (35) hide show
  1. package/dist/api.cjs +8 -0
  2. package/dist/{channel-Cf5LJ4aO.js → channel-BKc8zroK.cjs} +648 -240
  3. package/dist/channel-config-api.cjs +3 -0
  4. package/dist/channel-plugin-api.cjs +3 -0
  5. package/dist/channel.runtime-hd1Zsoo2.cjs +1372 -0
  6. package/dist/{config-schema-BL4qQZiA.js → config-schema-BSNLJUta.cjs} +13 -3
  7. package/dist/{directory-contract-api.js → directory-contract-api.cjs} +8 -7
  8. package/dist/{doctor-contract-api.js → doctor-contract-api.cjs} +73 -57
  9. package/dist/index.cjs +21 -0
  10. package/dist/{probe-BnyZRZsD.js → messenger-BVcKl6dv.cjs} +436 -891
  11. package/dist/{oauth-BifWxWzq.js → oauth-yNoKtU_3.cjs} +21 -21
  12. package/dist/{polls-B_hs4aKm.js → polls-BhoI4VaN.cjs} +188 -38
  13. package/dist/{resolve-allowlist-Dnw4aNOu.js → resolve-allowlist-DXd097EP.cjs} +849 -140
  14. package/dist/rolldown-runtime-D6vf50IK.cjs +28 -0
  15. package/dist/runtime-api.cjs +207 -0
  16. package/dist/runtime-gZTAuFux.cjs +24 -0
  17. package/dist/secret-contract-api.cjs +31 -0
  18. package/dist/setup-entry.cjs +14 -0
  19. package/dist/setup-plugin-api.cjs +65 -0
  20. package/dist/{setup-surface-qW-ECHL-.js → setup-surface-D4f6x5cx.cjs} +127 -61
  21. package/dist/{src-DZFs5XtZ.js → src-20YasZEp.cjs} +686 -748
  22. package/dist/{sso-token-store-DrVbnCUF.js → sso-token-store-CktCz88k.cjs} +51 -10
  23. package/npm-shrinkwrap.json +3 -3
  24. package/openclaw.plugin.json +10 -31
  25. package/package.json +8 -7
  26. package/dist/api.js +0 -3
  27. package/dist/channel-config-api.js +0 -2
  28. package/dist/channel-plugin-api.js +0 -2
  29. package/dist/channel.runtime-Bwu6Tjhf.js +0 -664
  30. package/dist/index.js +0 -22
  31. package/dist/runtime-BS5AZrKK.js +0 -8
  32. package/dist/runtime-api.js +0 -20
  33. package/dist/secret-contract-api.js +0 -35
  34. package/dist/setup-entry.js +0 -15
  35. package/dist/setup-plugin-api.js +0 -64
@@ -1,20 +0,0 @@
1
- import { r as setMSTeamsRuntime } from "./runtime-BS5AZrKK.js";
2
- import { mergeAllowlist, resolveAllowlistMatchSimple, summarizeMapping } from "openclaw/plugin-sdk/allow-from";
3
- import { createChannelMessageReplyPipeline, keepHttpServerTaskAlive, logTypingFailure } from "openclaw/plugin-sdk/channel-outbound";
4
- import { createChannelPairingController } from "openclaw/plugin-sdk/channel-pairing";
5
- import { resolveToolsBySender } from "openclaw/plugin-sdk/channel-policy";
6
- import { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/account-id";
7
- import { PAIRING_APPROVED_MESSAGE, buildProbeChannelStatusSummary, createDefaultChannelRuntimeState } from "openclaw/plugin-sdk/channel-status";
8
- import { buildChannelKeyCandidates, normalizeChannelSlug, resolveChannelEntryMatchWithFallback, resolveNestedAllowlistDecision } from "openclaw/plugin-sdk/channel-targets";
9
- import { isDangerousNameMatchingEnabled } from "openclaw/plugin-sdk/dangerous-name-runtime";
10
- import { resolveDefaultGroupPolicy } from "openclaw/plugin-sdk/runtime-group-policy";
11
- import { withFileLock } from "openclaw/plugin-sdk/file-lock";
12
- import { detectMime, extensionForMime, extractOriginalFilename, getFileExtension, resolveChannelMediaMaxBytes } from "openclaw/plugin-sdk/media-runtime";
13
- import { dispatchReplyFromConfigWithSettledDispatcher } from "openclaw/plugin-sdk/channel-inbound";
14
- import { loadOutboundMediaFromUrl } from "openclaw/plugin-sdk/outbound-media";
15
- import { buildMediaPayload } from "openclaw/plugin-sdk/reply-payload";
16
- import { fetchWithSsrFGuard } from "openclaw/plugin-sdk/ssrf-runtime";
17
- import { normalizeStringEntries } from "openclaw/plugin-sdk/string-normalization-runtime";
18
- import { chunkTextForOutbound } from "openclaw/plugin-sdk/text-chunking";
19
- import { DEFAULT_WEBHOOK_MAX_BODY_BYTES } from "openclaw/plugin-sdk/webhook-ingress";
20
- export { DEFAULT_ACCOUNT_ID, DEFAULT_WEBHOOK_MAX_BODY_BYTES, PAIRING_APPROVED_MESSAGE, buildChannelKeyCandidates, buildMediaPayload, buildProbeChannelStatusSummary, chunkTextForOutbound, createChannelMessageReplyPipeline, createChannelPairingController, createDefaultChannelRuntimeState, detectMime, dispatchReplyFromConfigWithSettledDispatcher, extensionForMime, extractOriginalFilename, fetchWithSsrFGuard, getFileExtension, isDangerousNameMatchingEnabled, keepHttpServerTaskAlive, loadOutboundMediaFromUrl, logTypingFailure, mergeAllowlist, normalizeChannelSlug, normalizeStringEntries, resolveAllowlistMatchSimple, resolveChannelEntryMatchWithFallback, resolveChannelMediaMaxBytes, resolveDefaultGroupPolicy, resolveNestedAllowlistDecision, resolveToolsBySender, setMSTeamsRuntime, summarizeMapping, withFileLock };
@@ -1,35 +0,0 @@
1
- import { collectSecretInputAssignment, getChannelRecord } from "openclaw/plugin-sdk/channel-secret-basic-runtime";
2
- //#region extensions/msteams/src/secret-contract.ts
3
- const secretTargetRegistryEntries = [{
4
- id: "channels.msteams.appPassword",
5
- targetType: "channels.msteams.appPassword",
6
- configFile: "openclaw.json",
7
- pathPattern: "channels.msteams.appPassword",
8
- secretShape: "secret_input",
9
- expectedResolvedValue: "string",
10
- includeInPlan: true,
11
- includeInConfigure: true,
12
- includeInAudit: true
13
- }];
14
- function collectRuntimeConfigAssignments(params) {
15
- const msteams = getChannelRecord(params.config, "msteams");
16
- if (!msteams) return;
17
- collectSecretInputAssignment({
18
- value: msteams.appPassword,
19
- path: "channels.msteams.appPassword",
20
- expected: "string",
21
- defaults: params.defaults,
22
- context: params.context,
23
- active: msteams.enabled !== false,
24
- inactiveReason: "Microsoft Teams channel is disabled.",
25
- apply: (value) => {
26
- msteams.appPassword = value;
27
- }
28
- });
29
- }
30
- const channelSecrets = {
31
- secretTargetRegistryEntries,
32
- collectRuntimeConfigAssignments
33
- };
34
- //#endregion
35
- export { channelSecrets, collectRuntimeConfigAssignments, secretTargetRegistryEntries };
@@ -1,15 +0,0 @@
1
- import { defineBundledChannelSetupEntry } from "openclaw/plugin-sdk/channel-entry-contract";
2
- //#region extensions/msteams/setup-entry.ts
3
- var setup_entry_default = defineBundledChannelSetupEntry({
4
- importMetaUrl: import.meta.url,
5
- plugin: {
6
- specifier: "./setup-plugin-api.js",
7
- exportName: "msteamsSetupPlugin"
8
- },
9
- secrets: {
10
- specifier: "./secret-contract-api.js",
11
- exportName: "channelSecrets"
12
- }
13
- });
14
- //#endregion
15
- export { setup_entry_default as default };
@@ -1,64 +0,0 @@
1
- import { C as resolveMSTeamsCredentials } from "./resolve-allowlist-Dnw4aNOu.js";
2
- import { t as MSTeamsChannelConfigSchema } from "./config-schema-BL4qQZiA.js";
3
- import { c as msteamsSetupAdapter, t as msteamsSetupWizard } from "./setup-surface-qW-ECHL-.js";
4
- import { describeAccountSnapshot } from "openclaw/plugin-sdk/account-helpers";
5
- import { formatAllowFromLowercase } from "openclaw/plugin-sdk/allow-from";
6
- import { createTopLevelChannelConfigAdapter } from "openclaw/plugin-sdk/channel-config-helpers";
7
- //#region extensions/msteams/src/channel.setup.ts
8
- const meta = {
9
- id: "msteams",
10
- label: "Microsoft Teams",
11
- selectionLabel: "Microsoft Teams (Bot Framework)",
12
- docsPath: "/channels/msteams",
13
- docsLabel: "msteams",
14
- blurb: "Teams SDK; enterprise support.",
15
- aliases: ["teams"],
16
- order: 60
17
- };
18
- const resolveMSTeamsChannelConfig = (cfg) => ({
19
- allowFrom: cfg.channels?.msteams?.allowFrom,
20
- defaultTo: cfg.channels?.msteams?.defaultTo
21
- });
22
- const msteamsConfigAdapter = createTopLevelChannelConfigAdapter({
23
- sectionKey: "msteams",
24
- resolveAccount: (cfg) => ({
25
- accountId: "default",
26
- enabled: cfg.channels?.msteams?.enabled !== false,
27
- configured: Boolean(resolveMSTeamsCredentials(cfg.channels?.msteams))
28
- }),
29
- resolveAccessorAccount: ({ cfg }) => resolveMSTeamsChannelConfig(cfg),
30
- resolveAllowFrom: (account) => account.allowFrom,
31
- formatAllowFrom: (allowFrom) => formatAllowFromLowercase({ allowFrom }),
32
- resolveDefaultTo: (account) => account.defaultTo
33
- });
34
- const msteamsSetupPlugin = {
35
- id: "msteams",
36
- meta: {
37
- ...meta,
38
- aliases: [...meta.aliases]
39
- },
40
- capabilities: {
41
- chatTypes: [
42
- "direct",
43
- "channel",
44
- "thread"
45
- ],
46
- polls: true,
47
- threads: true,
48
- media: true
49
- },
50
- reload: { configPrefixes: ["channels.msteams"] },
51
- configSchema: MSTeamsChannelConfigSchema,
52
- config: {
53
- ...msteamsConfigAdapter,
54
- isConfigured: (_account, cfg) => Boolean(resolveMSTeamsCredentials(cfg.channels?.msteams)),
55
- describeAccount: (account) => describeAccountSnapshot({
56
- account,
57
- configured: account.configured
58
- })
59
- },
60
- setupWizard: msteamsSetupWizard,
61
- setup: msteamsSetupAdapter
62
- };
63
- //#endregion
64
- export { msteamsSetupPlugin };