@openclaw/msteams 2026.7.1 → 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.
- package/dist/api.cjs +8 -0
- package/dist/{channel-Cf5LJ4aO.js → channel-BSyPdpGN.cjs} +641 -227
- package/dist/channel-config-api.cjs +3 -0
- package/dist/channel-plugin-api.cjs +3 -0
- package/dist/channel.runtime-DQTOzzet.cjs +1372 -0
- package/dist/{config-schema-BL4qQZiA.js → config-schema-BSNLJUta.cjs} +13 -3
- package/dist/{directory-contract-api.js → directory-contract-api.cjs} +8 -7
- package/dist/{doctor-contract-api.js → doctor-contract-api.cjs} +73 -57
- package/dist/index.cjs +21 -0
- package/dist/{probe-BnyZRZsD.js → messenger-DtS9gqkV.cjs} +369 -861
- package/dist/{oauth-BifWxWzq.js → oauth-C5E5powI.cjs} +21 -21
- package/dist/{polls-B_hs4aKm.js → polls-BhoI4VaN.cjs} +188 -38
- package/dist/{resolve-allowlist-Dnw4aNOu.js → resolve-allowlist-CyQ57MfH.cjs} +817 -140
- package/dist/rolldown-runtime-D6vf50IK.cjs +28 -0
- package/dist/runtime-api.cjs +207 -0
- package/dist/runtime-gZTAuFux.cjs +24 -0
- package/dist/secret-contract-api.cjs +31 -0
- package/dist/setup-entry.cjs +14 -0
- package/dist/setup-plugin-api.cjs +65 -0
- package/dist/{setup-surface-qW-ECHL-.js → setup-surface-BDTPN3dX.cjs} +123 -49
- package/dist/{src-DZFs5XtZ.js → src-CUMz2B6f.cjs} +672 -740
- package/dist/{sso-token-store-DrVbnCUF.js → sso-token-store-CktCz88k.cjs} +51 -10
- package/npm-shrinkwrap.json +3 -3
- package/openclaw.plugin.json +10 -31
- package/package.json +8 -7
- package/dist/api.js +0 -3
- package/dist/channel-config-api.js +0 -2
- package/dist/channel-plugin-api.js +0 -2
- package/dist/channel.runtime-Bwu6Tjhf.js +0 -664
- package/dist/index.js +0 -22
- package/dist/runtime-BS5AZrKK.js +0 -8
- package/dist/runtime-api.js +0 -20
- package/dist/secret-contract-api.js +0 -35
- package/dist/setup-entry.js +0 -15
- package/dist/setup-plugin-api.js +0 -64
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
const require_resolve_allowlist = require("./resolve-allowlist-CyQ57MfH.cjs");
|
|
2
|
+
let openclaw_plugin_sdk_string_coerce_runtime = require("openclaw/plugin-sdk/string-coerce-runtime");
|
|
3
|
+
let openclaw_plugin_sdk_number_runtime = require("openclaw/plugin-sdk/number-runtime");
|
|
4
|
+
let openclaw_plugin_sdk_setup = require("openclaw/plugin-sdk/setup");
|
|
5
|
+
let openclaw_plugin_sdk_setup_tools = require("openclaw/plugin-sdk/setup-tools");
|
|
6
|
+
let openclaw_plugin_sdk_secret_input = require("openclaw/plugin-sdk/secret-input");
|
|
6
7
|
//#region extensions/msteams/src/setup-core.ts
|
|
7
|
-
const t$1 = createSetupTranslator();
|
|
8
|
+
const t$1 = (0, openclaw_plugin_sdk_setup.createSetupTranslator)();
|
|
8
9
|
const msteamsSetupAdapter = {
|
|
9
|
-
resolveAccountId: () => DEFAULT_ACCOUNT_ID,
|
|
10
|
+
resolveAccountId: () => openclaw_plugin_sdk_setup.DEFAULT_ACCOUNT_ID,
|
|
10
11
|
applyAccountConfig: ({ cfg }) => ({
|
|
11
12
|
...cfg,
|
|
12
13
|
channels: {
|
|
@@ -41,15 +42,15 @@ async function noteMSTeamsCredentialHelp(prompter) {
|
|
|
41
42
|
t$1("wizard.msteams.helpClientSecret"),
|
|
42
43
|
t$1("wizard.msteams.helpWebhook"),
|
|
43
44
|
t$1("wizard.msteams.helpEnvTip"),
|
|
44
|
-
t$1("wizard.channels.docs", { link: formatDocsLink("/channels/msteams", "msteams") })
|
|
45
|
+
t$1("wizard.channels.docs", { link: (0, openclaw_plugin_sdk_setup_tools.formatDocsLink)("/channels/msteams", "msteams") })
|
|
45
46
|
].join("\n"), t$1("wizard.msteams.credentialsTitle"));
|
|
46
47
|
}
|
|
47
48
|
function createMSTeamsSetupWizardBase() {
|
|
48
49
|
return {
|
|
49
50
|
channel: channel$1,
|
|
50
|
-
resolveAccountIdForConfigure: () => DEFAULT_ACCOUNT_ID,
|
|
51
|
+
resolveAccountIdForConfigure: () => openclaw_plugin_sdk_setup.DEFAULT_ACCOUNT_ID,
|
|
51
52
|
resolveShouldPromptAccountIds: () => false,
|
|
52
|
-
status: createStandardChannelSetupStatus({
|
|
53
|
+
status: (0, openclaw_plugin_sdk_setup.createStandardChannelSetupStatus)({
|
|
53
54
|
channelLabel: "MS Teams",
|
|
54
55
|
configuredLabel: t$1("wizard.channels.statusConfigured"),
|
|
55
56
|
unconfiguredLabel: t$1("wizard.channels.statusNeedsAppCredentials"),
|
|
@@ -58,13 +59,13 @@ function createMSTeamsSetupWizardBase() {
|
|
|
58
59
|
configuredScore: 2,
|
|
59
60
|
unconfiguredScore: 0,
|
|
60
61
|
includeStatusLine: true,
|
|
61
|
-
resolveConfigured: ({ cfg }) => Boolean(resolveMSTeamsCredentials(cfg.channels?.msteams)) || hasConfiguredMSTeamsCredentials(cfg.channels?.msteams)
|
|
62
|
+
resolveConfigured: ({ cfg }) => Boolean(require_resolve_allowlist.resolveMSTeamsCredentials(cfg.channels?.msteams)) || require_resolve_allowlist.hasConfiguredMSTeamsCredentials(cfg.channels?.msteams)
|
|
62
63
|
}),
|
|
63
64
|
credentials: [],
|
|
64
65
|
finalize: async ({ cfg, prompter }) => {
|
|
65
|
-
const resolved = resolveMSTeamsCredentials(cfg.channels?.msteams);
|
|
66
|
-
const hasConfigCreds = hasConfiguredMSTeamsCredentials(cfg.channels?.msteams);
|
|
67
|
-
const canUseEnv = Boolean(!hasConfigCreds && normalizeSecretInputString(process.env.MSTEAMS_APP_ID) && normalizeSecretInputString(process.env.MSTEAMS_APP_PASSWORD) && normalizeSecretInputString(process.env.MSTEAMS_TENANT_ID));
|
|
66
|
+
const resolved = require_resolve_allowlist.resolveMSTeamsCredentials(cfg.channels?.msteams);
|
|
67
|
+
const hasConfigCreds = require_resolve_allowlist.hasConfiguredMSTeamsCredentials(cfg.channels?.msteams);
|
|
68
|
+
const canUseEnv = Boolean(!hasConfigCreds && (0, openclaw_plugin_sdk_secret_input.normalizeSecretInputString)(process.env.MSTEAMS_APP_ID) && (0, openclaw_plugin_sdk_secret_input.normalizeSecretInputString)(process.env.MSTEAMS_APP_PASSWORD) && (0, openclaw_plugin_sdk_secret_input.normalizeSecretInputString)(process.env.MSTEAMS_TENANT_ID));
|
|
68
69
|
let next = cfg;
|
|
69
70
|
let appId = null;
|
|
70
71
|
let appPassword = null;
|
|
@@ -75,7 +76,7 @@ function createMSTeamsSetupWizardBase() {
|
|
|
75
76
|
initialValue: true
|
|
76
77
|
})) next = msteamsSetupAdapter.applyAccountConfig({
|
|
77
78
|
cfg: next,
|
|
78
|
-
accountId: DEFAULT_ACCOUNT_ID,
|
|
79
|
+
accountId: openclaw_plugin_sdk_setup.DEFAULT_ACCOUNT_ID,
|
|
79
80
|
input: {}
|
|
80
81
|
});
|
|
81
82
|
else ({appId, appPassword, tenantId} = await promptMSTeamsCredentials(prompter));
|
|
@@ -100,7 +101,7 @@ function createMSTeamsSetupWizardBase() {
|
|
|
100
101
|
};
|
|
101
102
|
return {
|
|
102
103
|
cfg: next,
|
|
103
|
-
accountId: DEFAULT_ACCOUNT_ID
|
|
104
|
+
accountId: openclaw_plugin_sdk_setup.DEFAULT_ACCOUNT_ID
|
|
104
105
|
};
|
|
105
106
|
}
|
|
106
107
|
};
|
|
@@ -123,7 +124,7 @@ function formatUnknownError(err) {
|
|
|
123
124
|
}
|
|
124
125
|
}
|
|
125
126
|
function extractStatusCode(err) {
|
|
126
|
-
if (!isRecord(err)) return null;
|
|
127
|
+
if (!(0, openclaw_plugin_sdk_string_coerce_runtime.isRecord)(err)) return null;
|
|
127
128
|
const parseStatusCode = (value) => {
|
|
128
129
|
if (typeof value === "number") return Number.isInteger(value) && value >= 100 && value <= 599 ? value : null;
|
|
129
130
|
if (typeof value === "string") {
|
|
@@ -137,34 +138,34 @@ function extractStatusCode(err) {
|
|
|
137
138
|
const directStatus = parseStatusCode(err.statusCode ?? err.status);
|
|
138
139
|
if (directStatus !== null) return directStatus;
|
|
139
140
|
const response = err.response;
|
|
140
|
-
if (isRecord(response)) {
|
|
141
|
+
if ((0, openclaw_plugin_sdk_string_coerce_runtime.isRecord)(response)) {
|
|
141
142
|
const responseStatus = parseStatusCode(response.status);
|
|
142
143
|
if (responseStatus !== null) return responseStatus;
|
|
143
144
|
}
|
|
144
145
|
return null;
|
|
145
146
|
}
|
|
146
147
|
function extractErrorCode(err) {
|
|
147
|
-
if (!isRecord(err)) return null;
|
|
148
|
+
if (!(0, openclaw_plugin_sdk_string_coerce_runtime.isRecord)(err)) return null;
|
|
148
149
|
const direct = err.code;
|
|
149
150
|
if (typeof direct === "string" && direct.trim()) return direct;
|
|
150
151
|
const response = err.response;
|
|
151
|
-
if (!isRecord(response)) return null;
|
|
152
|
+
if (!(0, openclaw_plugin_sdk_string_coerce_runtime.isRecord)(response)) return null;
|
|
152
153
|
const body = response.body;
|
|
153
|
-
if (isRecord(body)) {
|
|
154
|
+
if ((0, openclaw_plugin_sdk_string_coerce_runtime.isRecord)(body)) {
|
|
154
155
|
const error = body.error;
|
|
155
|
-
if (isRecord(error) && typeof error.code === "string" && error.code.trim()) return error.code;
|
|
156
|
+
if ((0, openclaw_plugin_sdk_string_coerce_runtime.isRecord)(error) && typeof error.code === "string" && error.code.trim()) return error.code;
|
|
156
157
|
}
|
|
157
158
|
return null;
|
|
158
159
|
}
|
|
159
160
|
function extractRetryAfterMs(err) {
|
|
160
|
-
if (!isRecord(err)) return null;
|
|
161
|
-
const directMs = asFiniteNumberInRange(err.retryAfterMs ?? err.retry_after_ms, {
|
|
161
|
+
if (!(0, openclaw_plugin_sdk_string_coerce_runtime.isRecord)(err)) return null;
|
|
162
|
+
const directMs = (0, openclaw_plugin_sdk_number_runtime.asFiniteNumberInRange)(err.retryAfterMs ?? err.retry_after_ms, {
|
|
162
163
|
min: 0,
|
|
163
164
|
max: Number.MAX_SAFE_INTEGER
|
|
164
165
|
});
|
|
165
166
|
if (directMs !== void 0) return directMs;
|
|
166
167
|
const retryAfter = err.retryAfter ?? err.retry_after;
|
|
167
|
-
const retryAfterSeconds = asFiniteNumberInRange(retryAfter, {
|
|
168
|
+
const retryAfterSeconds = (0, openclaw_plugin_sdk_number_runtime.asFiniteNumberInRange)(retryAfter, {
|
|
168
169
|
min: 0,
|
|
169
170
|
max: MAX_SAFE_RETRY_AFTER_SECONDS
|
|
170
171
|
});
|
|
@@ -174,10 +175,10 @@ function extractRetryAfterMs(err) {
|
|
|
174
175
|
if (parsed !== void 0) return parsed * 1e3;
|
|
175
176
|
}
|
|
176
177
|
const response = err.response;
|
|
177
|
-
if (!isRecord(response)) return null;
|
|
178
|
+
if (!(0, openclaw_plugin_sdk_string_coerce_runtime.isRecord)(response)) return null;
|
|
178
179
|
const headers = response.headers;
|
|
179
180
|
if (!headers) return null;
|
|
180
|
-
if (isRecord(headers)) {
|
|
181
|
+
if ((0, openclaw_plugin_sdk_string_coerce_runtime.isRecord)(headers)) {
|
|
181
182
|
const raw = headers["retry-after"] ?? headers["Retry-After"];
|
|
182
183
|
if (typeof raw === "string") {
|
|
183
184
|
const parsed = parseNonNegativeRetryAfterSeconds(raw);
|
|
@@ -196,7 +197,7 @@ function extractRetryAfterMs(err) {
|
|
|
196
197
|
function parseNonNegativeRetryAfterSeconds(raw) {
|
|
197
198
|
const trimmed = raw.trim();
|
|
198
199
|
if (!/^\d+(?:\.\d+)?$/.test(trimmed)) return;
|
|
199
|
-
return asFiniteNumberInRange(parseStrictFiniteNumber(trimmed), {
|
|
200
|
+
return (0, openclaw_plugin_sdk_number_runtime.asFiniteNumberInRange)((0, openclaw_plugin_sdk_number_runtime.parseStrictFiniteNumber)(trimmed), {
|
|
200
201
|
min: 0,
|
|
201
202
|
max: MAX_SAFE_RETRY_AFTER_SECONDS
|
|
202
203
|
});
|
|
@@ -248,7 +249,7 @@ function classifyMSTeamsSendError(err) {
|
|
|
248
249
|
errorCode
|
|
249
250
|
};
|
|
250
251
|
if (statusCode == null) {
|
|
251
|
-
const networkCode = isRecord(err) && typeof err.code === "string" ? err.code : null;
|
|
252
|
+
const networkCode = (0, openclaw_plugin_sdk_string_coerce_runtime.isRecord)(err) && typeof err.code === "string" ? err.code : null;
|
|
252
253
|
if (networkCode === "ECONNREFUSED" || networkCode === "ENOTFOUND" || networkCode === "EHOSTUNREACH" || networkCode === "ETIMEDOUT" || networkCode === "ECONNRESET") return {
|
|
253
254
|
kind: "network",
|
|
254
255
|
errorCode: networkCode
|
|
@@ -282,10 +283,10 @@ function formatMSTeamsSendErrorHint(classification) {
|
|
|
282
283
|
}
|
|
283
284
|
//#endregion
|
|
284
285
|
//#region extensions/msteams/src/setup-surface.ts
|
|
285
|
-
const t = createSetupTranslator();
|
|
286
|
+
const t = (0, openclaw_plugin_sdk_setup.createSetupTranslator)();
|
|
286
287
|
const channel = "msteams";
|
|
287
|
-
const setMSTeamsAllowFrom = createTopLevelChannelAllowFromSetter({ channel });
|
|
288
|
-
const setMSTeamsGroupPolicy = createTopLevelChannelGroupPolicySetter({
|
|
288
|
+
const setMSTeamsAllowFrom = (0, openclaw_plugin_sdk_setup.createTopLevelChannelAllowFromSetter)({ channel });
|
|
289
|
+
const setMSTeamsGroupPolicy = (0, openclaw_plugin_sdk_setup.createTopLevelChannelGroupPolicySetter)({
|
|
289
290
|
channel,
|
|
290
291
|
enabled: true
|
|
291
292
|
});
|
|
@@ -306,7 +307,7 @@ async function promptMSTeamsAllowFrom(params) {
|
|
|
306
307
|
"- 00000000-0000-0000-0000-000000000000"
|
|
307
308
|
].join("\n"), t("wizard.msteams.allowlistTitle"));
|
|
308
309
|
while (true) {
|
|
309
|
-
const parts = splitSetupEntries(await params.prompter.text({
|
|
310
|
+
const parts = (0, openclaw_plugin_sdk_setup.splitSetupEntries)(await params.prompter.text({
|
|
310
311
|
message: t("wizard.msteams.allowFromPrompt"),
|
|
311
312
|
placeholder: "alex@example.com, Alex Johnson",
|
|
312
313
|
initialValue: existing[0] ? existing[0] : void 0,
|
|
@@ -316,7 +317,7 @@ async function promptMSTeamsAllowFrom(params) {
|
|
|
316
317
|
await params.prompter.note(t("wizard.msteams.enterAtLeastOneUser"), t("wizard.msteams.allowlistTitle"));
|
|
317
318
|
continue;
|
|
318
319
|
}
|
|
319
|
-
const resolved = await resolveMSTeamsUserAllowlist({
|
|
320
|
+
const resolved = await require_resolve_allowlist.resolveMSTeamsUserAllowlist({
|
|
320
321
|
cfg: params.cfg,
|
|
321
322
|
entries: parts
|
|
322
323
|
}).catch(() => null);
|
|
@@ -326,7 +327,7 @@ async function promptMSTeamsAllowFrom(params) {
|
|
|
326
327
|
await params.prompter.note(t("wizard.msteams.graphLookupUnavailable"), t("wizard.msteams.allowlistTitle"));
|
|
327
328
|
continue;
|
|
328
329
|
}
|
|
329
|
-
const unique = mergeAllowFromEntries(existing, ids);
|
|
330
|
+
const unique = (0, openclaw_plugin_sdk_setup.mergeAllowFromEntries)(existing, ids);
|
|
330
331
|
return setMSTeamsAllowFrom(params.cfg, unique);
|
|
331
332
|
}
|
|
332
333
|
const unresolved = resolved.filter((item) => !item.resolved || !item.id);
|
|
@@ -334,7 +335,7 @@ async function promptMSTeamsAllowFrom(params) {
|
|
|
334
335
|
await params.prompter.note(t("wizard.msteams.couldNotResolve", { entries: unresolved.map((item) => item.input).join(", ") }), t("wizard.msteams.allowlistTitle"));
|
|
335
336
|
continue;
|
|
336
337
|
}
|
|
337
|
-
const unique = mergeAllowFromEntries(existing, resolved.map((item) => item.id));
|
|
338
|
+
const unique = (0, openclaw_plugin_sdk_setup.mergeAllowFromEntries)(existing, resolved.map((item) => item.id));
|
|
338
339
|
return setMSTeamsAllowFrom(params.cfg, unique);
|
|
339
340
|
}
|
|
340
341
|
}
|
|
@@ -374,10 +375,10 @@ function listMSTeamsGroupEntries(cfg) {
|
|
|
374
375
|
});
|
|
375
376
|
}
|
|
376
377
|
async function resolveMSTeamsGroupAllowlist(params) {
|
|
377
|
-
let resolvedEntries = params.entries.map((entry) => parseMSTeamsTeamEntry(entry)).filter(Boolean);
|
|
378
|
-
if (params.entries.length === 0 || !resolveMSTeamsCredentials(params.cfg.channels?.msteams)) return resolvedEntries;
|
|
378
|
+
let resolvedEntries = params.entries.map((entry) => require_resolve_allowlist.parseMSTeamsTeamEntry(entry)).filter(Boolean);
|
|
379
|
+
if (params.entries.length === 0 || !require_resolve_allowlist.resolveMSTeamsCredentials(params.cfg.channels?.msteams)) return resolvedEntries;
|
|
379
380
|
try {
|
|
380
|
-
const lookups = await resolveMSTeamsChannelAllowlist({
|
|
381
|
+
const lookups = await require_resolve_allowlist.resolveMSTeamsChannelAllowlist({
|
|
381
382
|
cfg: params.cfg,
|
|
382
383
|
entries: params.entries
|
|
383
384
|
});
|
|
@@ -390,7 +391,7 @@ async function resolveMSTeamsGroupAllowlist(params) {
|
|
|
390
391
|
channelKey: entry.channelId
|
|
391
392
|
})),
|
|
392
393
|
...resolvedTeams.map((entry) => ({ teamKey: entry.teamId })),
|
|
393
|
-
...unresolved.map((entry) => parseMSTeamsTeamEntry(entry)).filter(Boolean)
|
|
394
|
+
...unresolved.map((entry) => require_resolve_allowlist.parseMSTeamsTeamEntry(entry)).filter(Boolean)
|
|
394
395
|
];
|
|
395
396
|
const summary = [];
|
|
396
397
|
if (resolvedChannels.length > 0) summary.push(t("wizard.msteams.resolvedChannels", { entries: resolvedChannels.map((entry) => entry.channelId).filter(Boolean).join(", ") }));
|
|
@@ -417,7 +418,7 @@ const msteamsGroupAccess = {
|
|
|
417
418
|
}),
|
|
418
419
|
applyAllowlist: ({ cfg, resolved }) => setMSTeamsTeamsAllowlist(cfg, resolved)
|
|
419
420
|
};
|
|
420
|
-
const msteamsDmPolicy = createTopLevelChannelDmPolicy({
|
|
421
|
+
const msteamsDmPolicy = (0, openclaw_plugin_sdk_setup.createTopLevelChannelDmPolicy)({
|
|
421
422
|
label: "MS Teams",
|
|
422
423
|
channel,
|
|
423
424
|
policyKey: "channels.msteams.dmPolicy",
|
|
@@ -432,7 +433,7 @@ const msteamsSetupWizard = {
|
|
|
432
433
|
const baseFinalize = msteamsSetupWizardBase.finalize;
|
|
433
434
|
const baseResult = baseFinalize ? await baseFinalize(params) : void 0;
|
|
434
435
|
let next = baseResult?.cfg ?? params.cfg;
|
|
435
|
-
const finalCreds = resolveMSTeamsCredentials(next.channels?.msteams);
|
|
436
|
+
const finalCreds = require_resolve_allowlist.resolveMSTeamsCredentials(next.channels?.msteams);
|
|
436
437
|
if (finalCreds?.type === "secret") {
|
|
437
438
|
if (await params.prompter.confirm({
|
|
438
439
|
message: t("wizard.msteams.delegatedAuthPrompt"),
|
|
@@ -448,10 +449,24 @@ const msteamsSetupWizard = {
|
|
|
448
449
|
}
|
|
449
450
|
}
|
|
450
451
|
};
|
|
452
|
+
const noteDelegatedAuthFailure = async (err) => {
|
|
453
|
+
await params.prompter.note(`Delegated auth setup failed: ${formatUnknownError(err)}\n` + t("wizard.msteams.delegatedAuthRetry"), t("wizard.msteams.delegatedAuthTitle"));
|
|
454
|
+
};
|
|
455
|
+
let oauthModule;
|
|
451
456
|
try {
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
457
|
+
oauthModule = await Promise.resolve().then(() => require("./oauth-C5E5powI.cjs"));
|
|
458
|
+
} catch (err) {
|
|
459
|
+
await noteDelegatedAuthFailure(err);
|
|
460
|
+
return {
|
|
461
|
+
...baseResult,
|
|
462
|
+
cfg: next
|
|
463
|
+
};
|
|
464
|
+
}
|
|
465
|
+
await params.options?.beforePersistentEffect?.();
|
|
466
|
+
const progress = params.prompter.progress(t("wizard.msteams.delegatedOAuthProgress"));
|
|
467
|
+
let tokens;
|
|
468
|
+
try {
|
|
469
|
+
tokens = await oauthModule.loginMSTeamsDelegated({
|
|
455
470
|
isRemote: true,
|
|
456
471
|
openUrl: openDelegatedOAuthUrl,
|
|
457
472
|
log: (msg) => {
|
|
@@ -464,11 +479,23 @@ const msteamsSetupWizard = {
|
|
|
464
479
|
tenantId: finalCreds.tenantId,
|
|
465
480
|
clientId: finalCreds.appId,
|
|
466
481
|
clientSecret: finalCreds.appPassword
|
|
467
|
-
})
|
|
468
|
-
progress.stop(t("wizard.msteams.delegatedAuthConfigured"));
|
|
482
|
+
});
|
|
469
483
|
} catch (err) {
|
|
470
|
-
|
|
484
|
+
progress.stop();
|
|
485
|
+
await noteDelegatedAuthFailure(err);
|
|
486
|
+
return {
|
|
487
|
+
...baseResult,
|
|
488
|
+
cfg: next
|
|
489
|
+
};
|
|
471
490
|
}
|
|
491
|
+
try {
|
|
492
|
+
await params.options?.beforePersistentEffect?.();
|
|
493
|
+
} catch (err) {
|
|
494
|
+
progress.stop();
|
|
495
|
+
throw err;
|
|
496
|
+
}
|
|
497
|
+
require_resolve_allowlist.saveDelegatedTokens(tokens);
|
|
498
|
+
progress.stop(t("wizard.msteams.delegatedAuthConfigured"));
|
|
472
499
|
}
|
|
473
500
|
}
|
|
474
501
|
return {
|
|
@@ -490,4 +517,51 @@ const msteamsSetupWizard = {
|
|
|
490
517
|
})
|
|
491
518
|
};
|
|
492
519
|
//#endregion
|
|
493
|
-
|
|
520
|
+
Object.defineProperty(exports, "classifyMSTeamsSendError", {
|
|
521
|
+
enumerable: true,
|
|
522
|
+
get: function() {
|
|
523
|
+
return classifyMSTeamsSendError;
|
|
524
|
+
}
|
|
525
|
+
});
|
|
526
|
+
Object.defineProperty(exports, "createMSTeamsSetupWizardBase", {
|
|
527
|
+
enumerable: true,
|
|
528
|
+
get: function() {
|
|
529
|
+
return createMSTeamsSetupWizardBase;
|
|
530
|
+
}
|
|
531
|
+
});
|
|
532
|
+
Object.defineProperty(exports, "formatMSTeamsSendErrorHint", {
|
|
533
|
+
enumerable: true,
|
|
534
|
+
get: function() {
|
|
535
|
+
return formatMSTeamsSendErrorHint;
|
|
536
|
+
}
|
|
537
|
+
});
|
|
538
|
+
Object.defineProperty(exports, "formatUnknownError", {
|
|
539
|
+
enumerable: true,
|
|
540
|
+
get: function() {
|
|
541
|
+
return formatUnknownError;
|
|
542
|
+
}
|
|
543
|
+
});
|
|
544
|
+
Object.defineProperty(exports, "isRevokedProxyError", {
|
|
545
|
+
enumerable: true,
|
|
546
|
+
get: function() {
|
|
547
|
+
return isRevokedProxyError;
|
|
548
|
+
}
|
|
549
|
+
});
|
|
550
|
+
Object.defineProperty(exports, "msteamsSetupAdapter", {
|
|
551
|
+
enumerable: true,
|
|
552
|
+
get: function() {
|
|
553
|
+
return msteamsSetupAdapter;
|
|
554
|
+
}
|
|
555
|
+
});
|
|
556
|
+
Object.defineProperty(exports, "msteamsSetupWizard", {
|
|
557
|
+
enumerable: true,
|
|
558
|
+
get: function() {
|
|
559
|
+
return msteamsSetupWizard;
|
|
560
|
+
}
|
|
561
|
+
});
|
|
562
|
+
Object.defineProperty(exports, "openDelegatedOAuthUrl", {
|
|
563
|
+
enumerable: true,
|
|
564
|
+
get: function() {
|
|
565
|
+
return openDelegatedOAuthUrl;
|
|
566
|
+
}
|
|
567
|
+
});
|