@openclaw/msteams 2026.7.1-beta.6 → 2026.7.2-beta.1

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-BSyPdpGN.cjs} +641 -227
  3. package/dist/channel-config-api.cjs +3 -0
  4. package/dist/channel-plugin-api.cjs +3 -0
  5. package/dist/channel.runtime-DQTOzzet.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-DtS9gqkV.cjs} +369 -861
  11. package/dist/{oauth-BifWxWzq.js → oauth-C5E5powI.cjs} +21 -21
  12. package/dist/{polls-B_hs4aKm.js → polls-BhoI4VaN.cjs} +188 -38
  13. package/dist/{resolve-allowlist-Dnw4aNOu.js → resolve-allowlist-CyQ57MfH.cjs} +817 -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-BDTPN3dX.cjs} +123 -49
  21. package/dist/{src-DZFs5XtZ.js → src-CUMz2B6f.cjs} +672 -740
  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
@@ -0,0 +1,28 @@
1
+ //#region \0rolldown/runtime.js
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __copyProps = (to, from, except, desc) => {
9
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
10
+ key = keys[i];
11
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
12
+ get: ((k) => from[k]).bind(null, key),
13
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
14
+ });
15
+ }
16
+ return to;
17
+ };
18
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
19
+ value: mod,
20
+ enumerable: true
21
+ }) : target, mod));
22
+ //#endregion
23
+ Object.defineProperty(exports, "__toESM", {
24
+ enumerable: true,
25
+ get: function() {
26
+ return __toESM;
27
+ }
28
+ });
@@ -0,0 +1,207 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_runtime = require("./runtime-gZTAuFux.cjs");
3
+ let openclaw_plugin_sdk_allow_from = require("openclaw/plugin-sdk/allow-from");
4
+ let openclaw_plugin_sdk_channel_outbound = require("openclaw/plugin-sdk/channel-outbound");
5
+ let openclaw_plugin_sdk_channel_pairing = require("openclaw/plugin-sdk/channel-pairing");
6
+ let openclaw_plugin_sdk_channel_policy = require("openclaw/plugin-sdk/channel-policy");
7
+ let openclaw_plugin_sdk_account_id = require("openclaw/plugin-sdk/account-id");
8
+ let openclaw_plugin_sdk_channel_status = require("openclaw/plugin-sdk/channel-status");
9
+ let openclaw_plugin_sdk_channel_targets = require("openclaw/plugin-sdk/channel-targets");
10
+ let openclaw_plugin_sdk_dangerous_name_runtime = require("openclaw/plugin-sdk/dangerous-name-runtime");
11
+ let openclaw_plugin_sdk_runtime_group_policy = require("openclaw/plugin-sdk/runtime-group-policy");
12
+ let openclaw_plugin_sdk_file_lock = require("openclaw/plugin-sdk/file-lock");
13
+ let openclaw_plugin_sdk_media_runtime = require("openclaw/plugin-sdk/media-runtime");
14
+ let openclaw_plugin_sdk_channel_inbound = require("openclaw/plugin-sdk/channel-inbound");
15
+ let openclaw_plugin_sdk_outbound_media = require("openclaw/plugin-sdk/outbound-media");
16
+ let openclaw_plugin_sdk_reply_payload = require("openclaw/plugin-sdk/reply-payload");
17
+ let openclaw_plugin_sdk_ssrf_runtime = require("openclaw/plugin-sdk/ssrf-runtime");
18
+ let openclaw_plugin_sdk_string_normalization_runtime = require("openclaw/plugin-sdk/string-normalization-runtime");
19
+ let openclaw_plugin_sdk_text_chunking = require("openclaw/plugin-sdk/text-chunking");
20
+ let openclaw_plugin_sdk_webhook_ingress = require("openclaw/plugin-sdk/webhook-ingress");
21
+ Object.defineProperty(exports, "DEFAULT_ACCOUNT_ID", {
22
+ enumerable: true,
23
+ get: function() {
24
+ return openclaw_plugin_sdk_account_id.DEFAULT_ACCOUNT_ID;
25
+ }
26
+ });
27
+ Object.defineProperty(exports, "DEFAULT_WEBHOOK_MAX_BODY_BYTES", {
28
+ enumerable: true,
29
+ get: function() {
30
+ return openclaw_plugin_sdk_webhook_ingress.DEFAULT_WEBHOOK_MAX_BODY_BYTES;
31
+ }
32
+ });
33
+ Object.defineProperty(exports, "PAIRING_APPROVED_MESSAGE", {
34
+ enumerable: true,
35
+ get: function() {
36
+ return openclaw_plugin_sdk_channel_status.PAIRING_APPROVED_MESSAGE;
37
+ }
38
+ });
39
+ Object.defineProperty(exports, "buildChannelKeyCandidates", {
40
+ enumerable: true,
41
+ get: function() {
42
+ return openclaw_plugin_sdk_channel_targets.buildChannelKeyCandidates;
43
+ }
44
+ });
45
+ Object.defineProperty(exports, "buildMediaPayload", {
46
+ enumerable: true,
47
+ get: function() {
48
+ return openclaw_plugin_sdk_reply_payload.buildMediaPayload;
49
+ }
50
+ });
51
+ Object.defineProperty(exports, "buildProbeChannelStatusSummary", {
52
+ enumerable: true,
53
+ get: function() {
54
+ return openclaw_plugin_sdk_channel_status.buildProbeChannelStatusSummary;
55
+ }
56
+ });
57
+ Object.defineProperty(exports, "chunkTextForOutbound", {
58
+ enumerable: true,
59
+ get: function() {
60
+ return openclaw_plugin_sdk_text_chunking.chunkTextForOutbound;
61
+ }
62
+ });
63
+ Object.defineProperty(exports, "createChannelMessageReplyPipeline", {
64
+ enumerable: true,
65
+ get: function() {
66
+ return openclaw_plugin_sdk_channel_outbound.createChannelMessageReplyPipeline;
67
+ }
68
+ });
69
+ Object.defineProperty(exports, "createChannelPairingController", {
70
+ enumerable: true,
71
+ get: function() {
72
+ return openclaw_plugin_sdk_channel_pairing.createChannelPairingController;
73
+ }
74
+ });
75
+ Object.defineProperty(exports, "createDefaultChannelRuntimeState", {
76
+ enumerable: true,
77
+ get: function() {
78
+ return openclaw_plugin_sdk_channel_status.createDefaultChannelRuntimeState;
79
+ }
80
+ });
81
+ Object.defineProperty(exports, "detectMime", {
82
+ enumerable: true,
83
+ get: function() {
84
+ return openclaw_plugin_sdk_media_runtime.detectMime;
85
+ }
86
+ });
87
+ Object.defineProperty(exports, "dispatchReplyFromConfigWithSettledDispatcher", {
88
+ enumerable: true,
89
+ get: function() {
90
+ return openclaw_plugin_sdk_channel_inbound.dispatchReplyFromConfigWithSettledDispatcher;
91
+ }
92
+ });
93
+ Object.defineProperty(exports, "extensionForMime", {
94
+ enumerable: true,
95
+ get: function() {
96
+ return openclaw_plugin_sdk_media_runtime.extensionForMime;
97
+ }
98
+ });
99
+ Object.defineProperty(exports, "extractOriginalFilename", {
100
+ enumerable: true,
101
+ get: function() {
102
+ return openclaw_plugin_sdk_media_runtime.extractOriginalFilename;
103
+ }
104
+ });
105
+ Object.defineProperty(exports, "fetchWithSsrFGuard", {
106
+ enumerable: true,
107
+ get: function() {
108
+ return openclaw_plugin_sdk_ssrf_runtime.fetchWithSsrFGuard;
109
+ }
110
+ });
111
+ Object.defineProperty(exports, "getFileExtension", {
112
+ enumerable: true,
113
+ get: function() {
114
+ return openclaw_plugin_sdk_media_runtime.getFileExtension;
115
+ }
116
+ });
117
+ Object.defineProperty(exports, "isDangerousNameMatchingEnabled", {
118
+ enumerable: true,
119
+ get: function() {
120
+ return openclaw_plugin_sdk_dangerous_name_runtime.isDangerousNameMatchingEnabled;
121
+ }
122
+ });
123
+ Object.defineProperty(exports, "keepHttpServerTaskAlive", {
124
+ enumerable: true,
125
+ get: function() {
126
+ return openclaw_plugin_sdk_channel_outbound.keepHttpServerTaskAlive;
127
+ }
128
+ });
129
+ Object.defineProperty(exports, "loadOutboundMediaFromUrl", {
130
+ enumerable: true,
131
+ get: function() {
132
+ return openclaw_plugin_sdk_outbound_media.loadOutboundMediaFromUrl;
133
+ }
134
+ });
135
+ Object.defineProperty(exports, "logTypingFailure", {
136
+ enumerable: true,
137
+ get: function() {
138
+ return openclaw_plugin_sdk_channel_outbound.logTypingFailure;
139
+ }
140
+ });
141
+ Object.defineProperty(exports, "mergeAllowlist", {
142
+ enumerable: true,
143
+ get: function() {
144
+ return openclaw_plugin_sdk_allow_from.mergeAllowlist;
145
+ }
146
+ });
147
+ Object.defineProperty(exports, "normalizeChannelSlug", {
148
+ enumerable: true,
149
+ get: function() {
150
+ return openclaw_plugin_sdk_channel_targets.normalizeChannelSlug;
151
+ }
152
+ });
153
+ Object.defineProperty(exports, "normalizeStringEntries", {
154
+ enumerable: true,
155
+ get: function() {
156
+ return openclaw_plugin_sdk_string_normalization_runtime.normalizeStringEntries;
157
+ }
158
+ });
159
+ Object.defineProperty(exports, "resolveAllowlistMatchSimple", {
160
+ enumerable: true,
161
+ get: function() {
162
+ return openclaw_plugin_sdk_allow_from.resolveAllowlistMatchSimple;
163
+ }
164
+ });
165
+ Object.defineProperty(exports, "resolveChannelEntryMatchWithFallback", {
166
+ enumerable: true,
167
+ get: function() {
168
+ return openclaw_plugin_sdk_channel_targets.resolveChannelEntryMatchWithFallback;
169
+ }
170
+ });
171
+ Object.defineProperty(exports, "resolveChannelMediaMaxBytes", {
172
+ enumerable: true,
173
+ get: function() {
174
+ return openclaw_plugin_sdk_media_runtime.resolveChannelMediaMaxBytes;
175
+ }
176
+ });
177
+ Object.defineProperty(exports, "resolveDefaultGroupPolicy", {
178
+ enumerable: true,
179
+ get: function() {
180
+ return openclaw_plugin_sdk_runtime_group_policy.resolveDefaultGroupPolicy;
181
+ }
182
+ });
183
+ Object.defineProperty(exports, "resolveNestedAllowlistDecision", {
184
+ enumerable: true,
185
+ get: function() {
186
+ return openclaw_plugin_sdk_channel_targets.resolveNestedAllowlistDecision;
187
+ }
188
+ });
189
+ Object.defineProperty(exports, "resolveToolsBySender", {
190
+ enumerable: true,
191
+ get: function() {
192
+ return openclaw_plugin_sdk_channel_policy.resolveToolsBySender;
193
+ }
194
+ });
195
+ exports.setMSTeamsRuntime = require_runtime.setMSTeamsRuntime;
196
+ Object.defineProperty(exports, "summarizeMapping", {
197
+ enumerable: true,
198
+ get: function() {
199
+ return openclaw_plugin_sdk_allow_from.summarizeMapping;
200
+ }
201
+ });
202
+ Object.defineProperty(exports, "withFileLock", {
203
+ enumerable: true,
204
+ get: function() {
205
+ return openclaw_plugin_sdk_file_lock.withFileLock;
206
+ }
207
+ });
@@ -0,0 +1,24 @@
1
+ //#region extensions/msteams/src/runtime.ts
2
+ const { setRuntime: setMSTeamsRuntime, getRuntime: getMSTeamsRuntime, tryGetRuntime: getOptionalMSTeamsRuntime } = (0, require("openclaw/plugin-sdk/runtime-store").createPluginRuntimeStore)({
3
+ pluginId: "msteams",
4
+ errorMessage: "MSTeams runtime not initialized"
5
+ });
6
+ //#endregion
7
+ Object.defineProperty(exports, "getMSTeamsRuntime", {
8
+ enumerable: true,
9
+ get: function() {
10
+ return getMSTeamsRuntime;
11
+ }
12
+ });
13
+ Object.defineProperty(exports, "getOptionalMSTeamsRuntime", {
14
+ enumerable: true,
15
+ get: function() {
16
+ return getOptionalMSTeamsRuntime;
17
+ }
18
+ });
19
+ Object.defineProperty(exports, "setMSTeamsRuntime", {
20
+ enumerable: true,
21
+ get: function() {
22
+ return setMSTeamsRuntime;
23
+ }
24
+ });
@@ -0,0 +1,31 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ let openclaw_plugin_sdk_channel_secret_basic_runtime = require("openclaw/plugin-sdk/channel-secret-basic-runtime");
3
+ //#region extensions/msteams/src/secret-contract.ts
4
+ const secretTargetRegistryEntries = (0, openclaw_plugin_sdk_channel_secret_basic_runtime.createChannelSecretTargetRegistryEntries)({
5
+ channelKey: "msteams",
6
+ channel: ["appPassword"]
7
+ });
8
+ function collectRuntimeConfigAssignments(params) {
9
+ const msteams = (0, openclaw_plugin_sdk_channel_secret_basic_runtime.getChannelRecord)(params.config, "msteams");
10
+ if (!msteams) return;
11
+ (0, openclaw_plugin_sdk_channel_secret_basic_runtime.collectSecretInputAssignment)({
12
+ value: msteams.appPassword,
13
+ path: "channels.msteams.appPassword",
14
+ expected: "string",
15
+ defaults: params.defaults,
16
+ context: params.context,
17
+ active: msteams.enabled !== false,
18
+ inactiveReason: "Microsoft Teams channel is disabled.",
19
+ apply: (value) => {
20
+ msteams.appPassword = value;
21
+ }
22
+ });
23
+ }
24
+ const channelSecrets = {
25
+ secretTargetRegistryEntries,
26
+ collectRuntimeConfigAssignments
27
+ };
28
+ //#endregion
29
+ exports.channelSecrets = channelSecrets;
30
+ exports.collectRuntimeConfigAssignments = collectRuntimeConfigAssignments;
31
+ exports.secretTargetRegistryEntries = secretTargetRegistryEntries;
@@ -0,0 +1,14 @@
1
+ //#region extensions/msteams/setup-entry.ts
2
+ var setup_entry_default = (0, require("openclaw/plugin-sdk/channel-entry-contract").defineBundledChannelSetupEntry)({
3
+ importMetaUrl: require("url").pathToFileURL(__filename).href,
4
+ plugin: {
5
+ specifier: "./setup-plugin-api.cjs",
6
+ exportName: "msteamsSetupPlugin"
7
+ },
8
+ secrets: {
9
+ specifier: "./secret-contract-api.cjs",
10
+ exportName: "channelSecrets"
11
+ }
12
+ });
13
+ //#endregion
14
+ module.exports = setup_entry_default;
@@ -0,0 +1,65 @@
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ const require_resolve_allowlist = require("./resolve-allowlist-CyQ57MfH.cjs");
3
+ const require_config_schema = require("./config-schema-BSNLJUta.cjs");
4
+ const require_setup_surface = require("./setup-surface-BDTPN3dX.cjs");
5
+ let openclaw_plugin_sdk_account_helpers = require("openclaw/plugin-sdk/account-helpers");
6
+ let openclaw_plugin_sdk_allow_from = require("openclaw/plugin-sdk/allow-from");
7
+ let openclaw_plugin_sdk_channel_config_helpers = require("openclaw/plugin-sdk/channel-config-helpers");
8
+ //#region extensions/msteams/src/channel.setup.ts
9
+ const meta = {
10
+ id: "msteams",
11
+ label: "Microsoft Teams",
12
+ selectionLabel: "Microsoft Teams (Bot Framework)",
13
+ docsPath: "/channels/msteams",
14
+ docsLabel: "msteams",
15
+ blurb: "Teams SDK; enterprise support.",
16
+ aliases: ["teams"],
17
+ order: 60
18
+ };
19
+ const resolveMSTeamsChannelConfig = (cfg) => ({
20
+ allowFrom: cfg.channels?.msteams?.allowFrom,
21
+ defaultTo: cfg.channels?.msteams?.defaultTo
22
+ });
23
+ const msteamsConfigAdapter = (0, openclaw_plugin_sdk_channel_config_helpers.createTopLevelChannelConfigAdapter)({
24
+ sectionKey: "msteams",
25
+ resolveAccount: (cfg) => ({
26
+ accountId: "default",
27
+ enabled: cfg.channels?.msteams?.enabled !== false,
28
+ configured: Boolean(require_resolve_allowlist.resolveMSTeamsCredentials(cfg.channels?.msteams))
29
+ }),
30
+ resolveAccessorAccount: ({ cfg }) => resolveMSTeamsChannelConfig(cfg),
31
+ resolveAllowFrom: (account) => account.allowFrom,
32
+ formatAllowFrom: (allowFrom) => (0, openclaw_plugin_sdk_allow_from.formatAllowFromLowercase)({ allowFrom }),
33
+ resolveDefaultTo: (account) => account.defaultTo
34
+ });
35
+ const msteamsSetupPlugin = {
36
+ id: "msteams",
37
+ meta: {
38
+ ...meta,
39
+ aliases: [...meta.aliases]
40
+ },
41
+ capabilities: {
42
+ chatTypes: [
43
+ "direct",
44
+ "channel",
45
+ "thread"
46
+ ],
47
+ polls: true,
48
+ threads: true,
49
+ media: true
50
+ },
51
+ reload: { configPrefixes: ["channels.msteams"] },
52
+ configSchema: require_config_schema.MSTeamsChannelConfigSchema,
53
+ config: {
54
+ ...msteamsConfigAdapter,
55
+ isConfigured: (_account, cfg) => Boolean(require_resolve_allowlist.resolveMSTeamsCredentials(cfg.channels?.msteams)),
56
+ describeAccount: (account) => (0, openclaw_plugin_sdk_account_helpers.describeAccountSnapshot)({
57
+ account,
58
+ configured: account.configured
59
+ })
60
+ },
61
+ setupWizard: require_setup_surface.msteamsSetupWizard,
62
+ setup: require_setup_surface.msteamsSetupAdapter
63
+ };
64
+ //#endregion
65
+ exports.msteamsSetupPlugin = msteamsSetupPlugin;