@particle-academy/microsoft-teams-js 0.0.0 → 0.2.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/dist/flow.cjs ADDED
@@ -0,0 +1,262 @@
1
+ 'use strict';
2
+
3
+ var fancyConnectorCore = require('@particle-academy/fancy-connector-core');
4
+ var microsoftTeamsUi = require('@particle-academy/microsoft-teams-ui');
5
+
6
+ // src/flow.ts
7
+
8
+ // src/faker.ts
9
+ function fakeMeetingCreate({ config, fake }) {
10
+ return {
11
+ "id": fake.id("MSo"),
12
+ "creationDateTime": "2026-09-16T09:00:00.0000000Z",
13
+ "subject": config.subject !== void 0 && config.subject !== null && config.subject !== "" ? String(config.subject) : "Weekly sync",
14
+ "startDateTime": config.startDateTime !== void 0 && config.startDateTime !== null && config.startDateTime !== "" ? String(config.startDateTime) : "2026-09-22T14:00:00Z",
15
+ "endDateTime": config.endDateTime !== void 0 && config.endDateTime !== null && config.endDateTime !== "" ? String(config.endDateTime) : "2026-09-22T14:30:00Z",
16
+ "joinWebUrl": "https://teams.microsoft.com/l/meetup-join/19%3ameeting_abc123%40thread.v2/0",
17
+ "participants": {
18
+ "organizer": {
19
+ "identity": {
20
+ "user": {
21
+ "id": fake.id("u"),
22
+ "displayName": "Ada Lovelace"
23
+ }
24
+ }
25
+ }
26
+ },
27
+ "joinMeetingIdSettings": {
28
+ "joinMeetingId": Array.from({ length: 9 }, () => fake.int(0, 9)).join(""),
29
+ "isPasscodeRequired": config.passcodeRequired !== void 0 && config.passcodeRequired !== null && config.passcodeRequired !== "" ? Boolean(config.passcodeRequired) : false,
30
+ "passcode": Array.from({ length: 6 }, () => fake.int(0, 9)).join("")
31
+ }
32
+ };
33
+ }
34
+ function fakeMeetingGet({ config, fake }) {
35
+ return {
36
+ "id": config.meetingId !== void 0 && config.meetingId !== null && config.meetingId !== "" ? String(config.meetingId) : fake.id("MSo"),
37
+ "subject": "Weekly sync",
38
+ "startDateTime": "2026-09-22T14:00:00Z",
39
+ "endDateTime": "2026-09-22T14:30:00Z",
40
+ "joinWebUrl": "https://teams.microsoft.com/l/meetup-join/19%3ameeting_abc123%40thread.v2/0",
41
+ "participants": {
42
+ "organizer": {
43
+ "identity": {
44
+ "user": {
45
+ "id": config.userId !== void 0 && config.userId !== null && config.userId !== "" ? String(config.userId) : fake.id("u"),
46
+ "displayName": "Ada Lovelace"
47
+ }
48
+ }
49
+ }
50
+ }
51
+ };
52
+ }
53
+ function fakeTranscriptList({ config, fake }) {
54
+ return {
55
+ "value": [
56
+ {
57
+ "id": fake.id("transcript"),
58
+ "meetingId": config.meetingId !== void 0 && config.meetingId !== null && config.meetingId !== "" ? String(config.meetingId) : fake.id("MSo"),
59
+ "callId": `${fake.hex(8)}-${fake.hex(4)}-${fake.hex(4)}-${fake.hex(4)}-${fake.hex(12)}`,
60
+ "createdDateTime": "2026-09-16T09:30:05.0000000Z",
61
+ "endDateTime": "2026-09-16T09:30:10.0000000Z",
62
+ "contentCorrelationId": `${fake.hex(8)}-${fake.hex(4)}-${fake.hex(4)}-${fake.hex(4)}-${fake.hex(12)}`,
63
+ "transcriptContentUrl": "https://graph.microsoft.com/v1.0/users/u/onlineMeetings/m/transcripts/t/content",
64
+ "meetingOrganizer": {
65
+ "user": {
66
+ "id": fake.id("u"),
67
+ "displayName": "Ada Lovelace"
68
+ }
69
+ }
70
+ }
71
+ ]
72
+ };
73
+ }
74
+ var microsoftTeamsFaker = (operation, request) => {
75
+ switch (operation) {
76
+ case "meeting_create":
77
+ return fakeMeetingCreate(request);
78
+ case "meeting_get":
79
+ return fakeMeetingGet(request);
80
+ case "transcript_list":
81
+ return fakeTranscriptList(request);
82
+ default:
83
+ throw new Error(
84
+ `microsoft_teams: no fake response is defined for "${operation}". Add a fixture under provider/fixtures/ and regenerate \u2014 a connector without a faker cannot be developed against, tested, or demonstrated.`
85
+ );
86
+ }
87
+ };
88
+
89
+ // src/service.ts
90
+ var MICROSOFT_TEAMS_BASE_URLS = {
91
+ "live": "https://graph.microsoft.com",
92
+ "sandbox": "https://graph.microsoft.com"
93
+ };
94
+ var MICROSOFT_TEAMS_REQUIRES = [
95
+ "accessToken"
96
+ ];
97
+ function microsoftTeamsAuthorize(credentials, request, _mode) {
98
+ request.headers.Authorization = `Bearer ${credentials.accessToken ?? ""}`;
99
+ }
100
+ var MICROSOFT_TEAMS = {
101
+ service: "microsoft_teams",
102
+ title: "Microsoft Teams",
103
+ sandbox: "separate-account",
104
+ baseUrls: { ...MICROSOFT_TEAMS_BASE_URLS },
105
+ requires: [...MICROSOFT_TEAMS_REQUIRES],
106
+ authorize: microsoftTeamsAuthorize,
107
+ faker: microsoftTeamsFaker
108
+ };
109
+ var MEETING_CREATE_OPERATION = "meeting_create";
110
+ async function microsoftTeamsMeetingCreate(options) {
111
+ const config = options.config ?? {};
112
+ if (config.userId === void 0 || config.userId === null || config.userId === "") {
113
+ throw new Error(`meeting_create: "userId" is required (User ID).`);
114
+ }
115
+ if (config.startDateTime === void 0 || config.startDateTime === null || config.startDateTime === "") {
116
+ throw new Error(`meeting_create: "startDateTime" is required (Start).`);
117
+ }
118
+ if (config.endDateTime === void 0 || config.endDateTime === null || config.endDateTime === "") {
119
+ throw new Error(`meeting_create: "endDateTime" is required (End).`);
120
+ }
121
+ return fancyConnectorCore.callConnector(MICROSOFT_TEAMS, {
122
+ operation: MEETING_CREATE_OPERATION,
123
+ config,
124
+ input: options.input,
125
+ ...options.credentials === void 0 ? {} : { credentials: options.credentials },
126
+ ...options.mode === void 0 ? {} : { mode: options.mode },
127
+ ...options.connectionId === void 0 ? {} : { connectionId: options.connectionId },
128
+ ...options.attempts === void 0 ? {} : { attempts: options.attempts },
129
+ ...options.transport === void 0 ? {} : { transport: options.transport },
130
+ request: {
131
+ method: "POST",
132
+ path: `/v1.0/users/${encodeURIComponent(String(config.userId))}/onlineMeetings`,
133
+ json: nestFields({
134
+ ...config.subject !== void 0 && config.subject !== null && config.subject !== "" ? { "subject": String(config.subject) } : {},
135
+ "startDateTime": String(config.startDateTime),
136
+ "endDateTime": String(config.endDateTime),
137
+ ...config.passcodeRequired !== void 0 && config.passcodeRequired !== null && config.passcodeRequired !== "" ? { "joinMeetingIdSettings.isPasscodeRequired": Boolean(config.passcodeRequired) } : {}
138
+ })
139
+ }
140
+ });
141
+ }
142
+ function nestFields(flat) {
143
+ const out = {};
144
+ for (const [path, value] of Object.entries(flat)) {
145
+ const parts = path.split(".");
146
+ let node = out;
147
+ while (parts.length > 1) {
148
+ const key = parts.shift();
149
+ const wantsArray = /^\d+$/.test(parts[0] ?? "");
150
+ if (typeof node[key] !== "object" || node[key] === null) node[key] = wantsArray ? [] : {};
151
+ node = node[key];
152
+ }
153
+ node[parts[0]] = value;
154
+ }
155
+ return out;
156
+ }
157
+ var MEETING_GET_OPERATION = "meeting_get";
158
+ async function microsoftTeamsMeetingGet(options) {
159
+ const config = options.config ?? {};
160
+ if (config.userId === void 0 || config.userId === null || config.userId === "") {
161
+ throw new Error(`meeting_get: "userId" is required (User ID).`);
162
+ }
163
+ if (config.meetingId === void 0 || config.meetingId === null || config.meetingId === "") {
164
+ throw new Error(`meeting_get: "meetingId" is required (Meeting ID).`);
165
+ }
166
+ return fancyConnectorCore.callConnector(MICROSOFT_TEAMS, {
167
+ operation: MEETING_GET_OPERATION,
168
+ config,
169
+ input: options.input,
170
+ ...options.credentials === void 0 ? {} : { credentials: options.credentials },
171
+ ...options.mode === void 0 ? {} : { mode: options.mode },
172
+ ...options.connectionId === void 0 ? {} : { connectionId: options.connectionId },
173
+ ...options.attempts === void 0 ? {} : { attempts: options.attempts },
174
+ ...options.transport === void 0 ? {} : { transport: options.transport },
175
+ request: {
176
+ method: "GET",
177
+ path: `/v1.0/users/${encodeURIComponent(String(config.userId))}/onlineMeetings/${encodeURIComponent(String(config.meetingId))}`,
178
+ query: {}
179
+ }
180
+ });
181
+ }
182
+ var TRANSCRIPT_LIST_OPERATION = "transcript_list";
183
+ async function microsoftTeamsTranscriptList(options) {
184
+ const config = options.config ?? {};
185
+ if (config.userId === void 0 || config.userId === null || config.userId === "") {
186
+ throw new Error(`transcript_list: "userId" is required (User ID).`);
187
+ }
188
+ if (config.meetingId === void 0 || config.meetingId === null || config.meetingId === "") {
189
+ throw new Error(`transcript_list: "meetingId" is required (Meeting ID).`);
190
+ }
191
+ return fancyConnectorCore.callConnector(MICROSOFT_TEAMS, {
192
+ operation: TRANSCRIPT_LIST_OPERATION,
193
+ config,
194
+ input: options.input,
195
+ ...options.credentials === void 0 ? {} : { credentials: options.credentials },
196
+ ...options.mode === void 0 ? {} : { mode: options.mode },
197
+ ...options.connectionId === void 0 ? {} : { connectionId: options.connectionId },
198
+ ...options.attempts === void 0 ? {} : { attempts: options.attempts },
199
+ ...options.transport === void 0 ? {} : { transport: options.transport },
200
+ request: {
201
+ method: "GET",
202
+ path: `/v1.0/users/${encodeURIComponent(String(config.userId))}/onlineMeetings/${encodeURIComponent(String(config.meetingId))}/transcripts`,
203
+ query: {}
204
+ }
205
+ });
206
+ }
207
+
208
+ // src/flow.ts
209
+ var microsoftTeamsMeetingCreateExecutor = async (ctx) => {
210
+ const config = ctx.node.data?.config ?? {};
211
+ const result = await microsoftTeamsMeetingCreate({
212
+ config,
213
+ input: ctx.inputs?.in
214
+ });
215
+ ctx.emit({
216
+ type: "log",
217
+ level: "info",
218
+ nodeId: ctx.node.id,
219
+ message: `microsoft_teams meeting_create ${result.data?.id} (${result.mode})`
220
+ });
221
+ return { __port: "out", value: result };
222
+ };
223
+ var microsoftTeamsMeetingGetExecutor = async (ctx) => {
224
+ const config = ctx.node.data?.config ?? {};
225
+ const result = await microsoftTeamsMeetingGet({
226
+ config,
227
+ input: ctx.inputs?.in
228
+ });
229
+ ctx.emit({
230
+ type: "log",
231
+ level: "info",
232
+ nodeId: ctx.node.id,
233
+ message: `microsoft_teams meeting_get ${result.data?.id} (${result.mode})`
234
+ });
235
+ return { __port: "out", value: result };
236
+ };
237
+ var microsoftTeamsTranscriptListExecutor = async (ctx) => {
238
+ const config = ctx.node.data?.config ?? {};
239
+ const result = await microsoftTeamsTranscriptList({
240
+ config,
241
+ input: ctx.inputs?.in
242
+ });
243
+ ctx.emit({
244
+ type: "log",
245
+ level: "info",
246
+ nodeId: ctx.node.id,
247
+ message: `microsoft_teams transcript_list ${result.data?.id} (${result.mode})`
248
+ });
249
+ return { __port: "out", value: result };
250
+ };
251
+ var MICROSOFT_TEAMS_RUNNABLE_KINDS = [
252
+ { ...microsoftTeamsUi.microsoftTeamsMeetingCreateKind, executor: microsoftTeamsMeetingCreateExecutor },
253
+ { ...microsoftTeamsUi.microsoftTeamsMeetingGetKind, executor: microsoftTeamsMeetingGetExecutor },
254
+ { ...microsoftTeamsUi.microsoftTeamsTranscriptListKind, executor: microsoftTeamsTranscriptListExecutor }
255
+ ];
256
+
257
+ exports.MICROSOFT_TEAMS_RUNNABLE_KINDS = MICROSOFT_TEAMS_RUNNABLE_KINDS;
258
+ exports.microsoftTeamsMeetingCreateExecutor = microsoftTeamsMeetingCreateExecutor;
259
+ exports.microsoftTeamsMeetingGetExecutor = microsoftTeamsMeetingGetExecutor;
260
+ exports.microsoftTeamsTranscriptListExecutor = microsoftTeamsTranscriptListExecutor;
261
+ //# sourceMappingURL=flow.cjs.map
262
+ //# sourceMappingURL=flow.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/faker.ts","../src/service.ts","../src/actions/meeting-create.ts","../src/actions/meeting-get.ts","../src/actions/transcript-list.ts","../src/flow.ts"],"names":["callConnector","microsoftTeamsMeetingCreateKind","microsoftTeamsMeetingGetKind","microsoftTeamsTranscriptListKind"],"mappings":";;;;;;;;AA0BA,SAAS,iBAAA,CAAkB,EAAE,MAAA,EAAQ,IAAA,EAAK,EAAyB;AACjE,EAAA,OAAO;AAAA,IACL,IAAA,EAAM,IAAA,CAAK,EAAA,CAAG,KAAK,CAAA;AAAA,IACnB,kBAAA,EAAoB,8BAAA;AAAA,IACpB,SAAA,EAAY,MAAA,CAAO,OAAA,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AAO;AACxC;AAEO,IAAM,oCAAA,GAAqD,OAAO,GAAA,KAAQ;AAC/E,EAAA,MAAM,MAAA,GAAW,GAAA,CAAI,IAAA,CAAK,IAAA,EAA+C,UAAU,EAAC;AAEpF,EAAA,MAAM,MAAA,GAAS,MAAM,4BAAA,CAA6B;AAAA,IAChD,MAAA;AAAA,IACA,KAAA,EAAO,IAAI,MAAA,EAAQ;AAAA,GACpB,CAAA;AAED,EAAA,GAAA,CAAI,IAAA,CAAK;AAAA,IACP,IAAA,EAAM,KAAA;AAAA,IACN,KAAA,EAAO,MAAA;AAAA,IACP,MAAA,EAAQ,IAAI,IAAA,CAAK,EAAA;AAAA,IACjB,SAAS,CAAA,gCAAA,EAAoC,MAAA,CAAO,MAA0B,EAAE,CAAA,EAAA,EAAK,OAAO,IAAI,CAAA,CAAA;AAAA,GACjG,CAAA;AAED,EAAA,OAAO,EAAE,MAAA,EAAQ,KAAA,EAAO,KAAA,EAAO,MAAA,EAAO;AACxC;AAGO,IAAM,8BAAA,GAAuD;AAAA,EAClE,EAAE,GAAGC,gDAAA,EAAiC,QAAA,EAAU,mCAAA,EAAoC;AAAA,EACpF,EAAE,GAAGC,6CAAA,EAA8B,QAAA,EAAU,gCAAA,EAAiC;AAAA,EAC9E,EAAE,GAAGC,iDAAA,EAAkC,QAAA,EAAU,oCAAA;AACnD","file":"flow.cjs","sourcesContent":["/**\n * GENERATED FILE — do not edit.\n *\n * Emitted from provider/fixtures/ by weaver's generator.\n * A hand-edit here is destroyed by the next protocol sync, which is worse than\n * being rejected, because it works until it silently does not. Fix\n * provider/fixtures/ (or weaver's template/) and regenerate:\n *\n * npm run provider -- microsoft_teams\n */\n\n/**\n * The Microsoft Teams faker.\n *\n * Shapes, not behaviour: the goal is that a downstream node sees the field\n * NAMES Microsoft Teams actually publishes, so an author can wire {{\n * $json.data.id }} against a fake and have it keep working against the real\n * thing.\n *\n * Deterministic — same inputs, same output. A faker returning a fresh uuid\n * every call cannot be asserted on, so its fixtures degrade to \"it did not\n * throw\", which is the assertion that catches nothing.\n */\n\nimport type { ConnectorFaker, FakeRequest } from \"@particle-academy/fancy-connector-core\";\n\nfunction fakeMeetingCreate({ config, fake }: FakeRequest): unknown {\n return {\n \"id\": fake.id(\"MSo\"),\n \"creationDateTime\": \"2026-09-16T09:00:00.0000000Z\",\n \"subject\": (config.subject !== undefined && config.subject !== null && config.subject !== \"\" ? String(config.subject) : \"Weekly sync\"),\n \"startDateTime\": (config.startDateTime !== undefined && config.startDateTime !== null && config.startDateTime !== \"\" ? String(config.startDateTime) : \"2026-09-22T14:00:00Z\"),\n \"endDateTime\": (config.endDateTime !== undefined && config.endDateTime !== null && config.endDateTime !== \"\" ? String(config.endDateTime) : \"2026-09-22T14:30:00Z\"),\n \"joinWebUrl\": \"https://teams.microsoft.com/l/meetup-join/19%3ameeting_abc123%40thread.v2/0\",\n \"participants\": {\n \"organizer\": {\n \"identity\": {\n \"user\": {\n \"id\": fake.id(\"u\"),\n \"displayName\": \"Ada Lovelace\",\n },\n },\n },\n },\n \"joinMeetingIdSettings\": {\n \"joinMeetingId\": Array.from({ length: 9 }, () => fake.int(0, 9)).join(\"\"),\n \"isPasscodeRequired\": (config.passcodeRequired !== undefined && config.passcodeRequired !== null && config.passcodeRequired !== \"\" ? Boolean(config.passcodeRequired) : false),\n \"passcode\": Array.from({ length: 6 }, () => fake.int(0, 9)).join(\"\"),\n },\n };\n}\n\nfunction fakeMeetingGet({ config, fake }: FakeRequest): unknown {\n return {\n \"id\": (config.meetingId !== undefined && config.meetingId !== null && config.meetingId !== \"\" ? String(config.meetingId) : fake.id(\"MSo\")),\n \"subject\": \"Weekly sync\",\n \"startDateTime\": \"2026-09-22T14:00:00Z\",\n \"endDateTime\": \"2026-09-22T14:30:00Z\",\n \"joinWebUrl\": \"https://teams.microsoft.com/l/meetup-join/19%3ameeting_abc123%40thread.v2/0\",\n \"participants\": {\n \"organizer\": {\n \"identity\": {\n \"user\": {\n \"id\": (config.userId !== undefined && config.userId !== null && config.userId !== \"\" ? String(config.userId) : fake.id(\"u\")),\n \"displayName\": \"Ada Lovelace\",\n },\n },\n },\n },\n };\n}\n\nfunction fakeTranscriptList({ config, fake }: FakeRequest): unknown {\n return {\n \"value\": [\n {\n \"id\": fake.id(\"transcript\"),\n \"meetingId\": (config.meetingId !== undefined && config.meetingId !== null && config.meetingId !== \"\" ? String(config.meetingId) : fake.id(\"MSo\")),\n \"callId\": `${fake.hex(8)}-${fake.hex(4)}-${fake.hex(4)}-${fake.hex(4)}-${fake.hex(12)}`,\n \"createdDateTime\": \"2026-09-16T09:30:05.0000000Z\",\n \"endDateTime\": \"2026-09-16T09:30:10.0000000Z\",\n \"contentCorrelationId\": `${fake.hex(8)}-${fake.hex(4)}-${fake.hex(4)}-${fake.hex(4)}-${fake.hex(12)}`,\n \"transcriptContentUrl\": \"https://graph.microsoft.com/v1.0/users/u/onlineMeetings/m/transcripts/t/content\",\n \"meetingOrganizer\": {\n \"user\": {\n \"id\": fake.id(\"u\"),\n \"displayName\": \"Ada Lovelace\",\n },\n },\n },\n ],\n };\n}\n\nexport const microsoftTeamsFaker: ConnectorFaker = (operation, request) => {\n switch (operation) {\n case \"meeting_create\":\n return fakeMeetingCreate(request);\n\n case \"meeting_get\":\n return fakeMeetingGet(request);\n\n case \"transcript_list\":\n return fakeTranscriptList(request);\n\n default:\n // A faker asked for an operation it has no shape for must SAY so. Making\n // something up would produce a green run whose output silently has none\n // of the fields the author is about to reference.\n throw new Error(\n `microsoft_teams: no fake response is defined for \"${operation}\". ` +\n \"Add a fixture under provider/fixtures/ and regenerate — a connector without a faker \" +\n \"cannot be developed against, tested, or demonstrated.\",\n );\n }\n};\n","/**\n * GENERATED FILE — do not edit.\n *\n * Emitted from provider/manifest.json by weaver's generator.\n * A hand-edit here is destroyed by the next protocol sync, which is worse than\n * being rejected, because it works until it silently does not. Fix\n * provider/manifest.json (or weaver's template/) and regenerate:\n *\n * npm run provider -- microsoft_teams\n */\n\n/**\n * Microsoft Teams, as one service descriptor shared by every Microsoft Teams\n * operation.\n *\n * @particle-academy/fancy-connector-core carries what is true of ALL\n * connectors. This carries what is true of Microsoft Teams: its base URL, its\n * auth scheme, its idempotency header, and its faker.\n *\n * ## The sandbox trap, written down where it is used\n *\n * Microsoft's test estate is a Microsoft 365 Developer Program sandbox: a\n * separate E5 tenant with its own users and its own OAuth consent, on the SAME\n * host -- the same fact microsoft-outlook already verified for Graph\n * generally. Eligibility is limited (Visual Studio Professional/Enterprise,\n * ISV Success / MAICPP partners, or Premier/Unified Support) and the tenant\n * expires after 90 days of no development activity. Without one, every call\n * reaches a real tenant.\n */\n\nimport type { ConnectorMode, PreparedRequest, ServiceDescriptor } from \"@particle-academy/fancy-connector-core\";\n\nimport { microsoftTeamsFaker } from \"./faker.js\";\n\n/**\n * The connector API version this package was GENERATED against.\n *\n * A literal, never imported. An imported constant lets an upgrade rewrite the\n * very claim it exists to detect, after which the copy agrees with itself\n * forever.\n */\nexport const CONNECTOR_API_VERSION = 1;\n\nexport const MICROSOFT_TEAMS_BASE_URLS = {\n \"live\": \"https://graph.microsoft.com\",\n \"sandbox\": \"https://graph.microsoft.com\"\n} as const;\n\n/** Credential keys a remote call cannot proceed without. */\nexport const MICROSOFT_TEAMS_REQUIRES = [\n \"accessToken\"\n] as const;\n\n/**\n * Apply Microsoft Teams's auth scheme to an outgoing request.\n *\n *\n *\n * The mode is passed in because for some providers auth and estate are the\n * same decision expressed in the URL; here it is unused, and saying so is\n * cheaper than wondering later whether it was forgotten.\n */\nexport function microsoftTeamsAuthorize(\n credentials: Record<string, string | undefined>,\n request: PreparedRequest,\n _mode: ConnectorMode,\n): void {\n request.headers.Authorization = `Bearer ${credentials.accessToken ?? \"\"}`;\n}\n\n/** The Microsoft Teams service, for the TypeScript runtime. */\nexport const MICROSOFT_TEAMS: ServiceDescriptor = {\n service: \"microsoft_teams\",\n title: \"Microsoft Teams\",\n sandbox: \"separate-account\",\n baseUrls: { ...MICROSOFT_TEAMS_BASE_URLS },\n requires: [...MICROSOFT_TEAMS_REQUIRES],\n authorize: microsoftTeamsAuthorize,\n faker: microsoftTeamsFaker,\n};\n","/**\n * GENERATED FILE — do not edit.\n *\n * Emitted from provider/actions/meeting-create.json by weaver's generator.\n * A hand-edit here is destroyed by the next protocol sync, which is worse than\n * being rejected, because it works until it silently does not. Fix\n * provider/actions/meeting-create.json (or weaver's template/) and regenerate:\n *\n * npm run provider -- microsoft_teams\n */\n\n/**\n * Create a Teams meeting on behalf of a user and get its join link.\n *\n * POST /v1.0/users/{userId}/onlineMeetings —\n * https://learn.microsoft.com/en-us/graph/api/application-post-onlinemeetings\n *\n * Notice what is NOT here: no key, no base URL, no mode check, no retry loop,\n * no fake/real branch. This describes the request; callConnector resolves the\n * connection, picks the estate, and either calls Microsoft Teams or calls the\n * faker.\n *\n * sideEffects: unsafe-to-replay.\n */\n\nimport {\n callConnector,\n type ConnectorResult,\n type RequestedMode,\n type Transport,\n} from \"@particle-academy/fancy-connector-core\";\nimport { MICROSOFT_TEAMS } from \"../service.js\";\n\nexport const MEETING_CREATE_OPERATION = \"meeting_create\";\n\nexport type MeetingCreateOptions = {\n /** The node's resolved config. Keys: userId, subject, startDateTime, endDateTime, passcodeRequired. */\n config: Record<string, unknown>;\n credentials?: Record<string, string | undefined>;\n mode?: RequestedMode;\n connectionId?: string | null;\n input?: unknown;\n attempts?: number;\n /** Override the transport. The only way to exercise this without a network. */\n transport?: Transport;\n};\n\nexport async function microsoftTeamsMeetingCreate(options: MeetingCreateOptions): Promise<ConnectorResult> {\n const config = options.config ?? {};\n\n if (config.userId === undefined || config.userId === null || config.userId === \"\") {\n throw new Error(`meeting_create: \"userId\" is required (User ID).`);\n }\n\n if (config.startDateTime === undefined || config.startDateTime === null || config.startDateTime === \"\") {\n throw new Error(`meeting_create: \"startDateTime\" is required (Start).`);\n }\n\n if (config.endDateTime === undefined || config.endDateTime === null || config.endDateTime === \"\") {\n throw new Error(`meeting_create: \"endDateTime\" is required (End).`);\n }\n\n return callConnector(MICROSOFT_TEAMS, {\n operation: MEETING_CREATE_OPERATION,\n config,\n input: options.input,\n ...(options.credentials === undefined ? {} : { credentials: options.credentials }),\n ...(options.mode === undefined ? {} : { mode: options.mode }),\n ...(options.connectionId === undefined ? {} : { connectionId: options.connectionId }),\n ...(options.attempts === undefined ? {} : { attempts: options.attempts }),\n ...(options.transport === undefined ? {} : { transport: options.transport }),\n request: {\n method: \"POST\",\n path: `/v1.0/users/${encodeURIComponent(String(config.userId))}/onlineMeetings`,\n json: nestFields({\n ...(config.subject !== undefined && config.subject !== null && config.subject !== \"\" ? { \"subject\": String(config.subject) } : {}),\n \"startDateTime\": String(config.startDateTime),\n \"endDateTime\": String(config.endDateTime),\n ...(config.passcodeRequired !== undefined && config.passcodeRequired !== null && config.passcodeRequired !== \"\" ? { \"joinMeetingIdSettings.isPasscodeRequired\": Boolean(config.passcodeRequired) } : {}),\n }),\n },\n });\n}\n\n/**\n * `{\"properties.email\": x}` -> `{properties: {email: x}}`.\n *\n * A dotted `as` means NESTING, and only a JSON body can nest. The validator\n * refuses that spelling anywhere else, because in a form body it already means\n * something different — a literal dotted key.\n */\nfunction nestFields(flat: Record<string, unknown>): Record<string, unknown> {\n const out: Record<string, unknown> = {};\n\n for (const [path, value] of Object.entries(flat)) {\n const parts = path.split(\".\");\n let node = out;\n\n while (parts.length > 1) {\n const key = parts.shift() as string;\n // A NUMERIC segment is an array index: `dateRanges.0.startDate` has to\n // become `[{startDate}]`, not `{\"0\": {startDate}}`. PHP produced the\n // array by accident (its integer-keyed arrays serialise as JSON lists)\n // and the other two produced an object, which the provider rejects as\n // the wrong type. The parity suite is what caught the disagreement.\n const wantsArray = /^\\d+$/.test(parts[0] ?? \"\");\n\n if (typeof node[key] !== \"object\" || node[key] === null) node[key] = wantsArray ? [] : {};\n node = node[key] as Record<string, unknown>;\n }\n\n node[parts[0] as string] = value;\n }\n\n return out;\n}\n","/**\n * GENERATED FILE — do not edit.\n *\n * Emitted from provider/actions/meeting-get.json by weaver's generator.\n * A hand-edit here is destroyed by the next protocol sync, which is worse than\n * being rejected, because it works until it silently does not. Fix\n * provider/actions/meeting-get.json (or weaver's template/) and regenerate:\n *\n * npm run provider -- microsoft_teams\n */\n\n/**\n * Read a Teams meeting's current details.\n *\n * GET /v1.0/users/{userId}/onlineMeetings/{meetingId} —\n * https://learn.microsoft.com/en-us/graph/api/onlinemeeting-get\n *\n * Notice what is NOT here: no key, no base URL, no mode check, no retry loop,\n * no fake/real branch. This describes the request; callConnector resolves the\n * connection, picks the estate, and either calls Microsoft Teams or calls the\n * faker.\n */\n\nimport {\n callConnector,\n type ConnectorResult,\n type RequestedMode,\n type Transport,\n} from \"@particle-academy/fancy-connector-core\";\nimport { MICROSOFT_TEAMS } from \"../service.js\";\n\nexport const MEETING_GET_OPERATION = \"meeting_get\";\n\nexport type MeetingGetOptions = {\n /** The node's resolved config. Keys: userId, meetingId. */\n config: Record<string, unknown>;\n credentials?: Record<string, string | undefined>;\n mode?: RequestedMode;\n connectionId?: string | null;\n input?: unknown;\n attempts?: number;\n /** Override the transport. The only way to exercise this without a network. */\n transport?: Transport;\n};\n\nexport async function microsoftTeamsMeetingGet(options: MeetingGetOptions): Promise<ConnectorResult> {\n const config = options.config ?? {};\n\n if (config.userId === undefined || config.userId === null || config.userId === \"\") {\n throw new Error(`meeting_get: \"userId\" is required (User ID).`);\n }\n\n if (config.meetingId === undefined || config.meetingId === null || config.meetingId === \"\") {\n throw new Error(`meeting_get: \"meetingId\" is required (Meeting ID).`);\n }\n\n return callConnector(MICROSOFT_TEAMS, {\n operation: MEETING_GET_OPERATION,\n config,\n input: options.input,\n ...(options.credentials === undefined ? {} : { credentials: options.credentials }),\n ...(options.mode === undefined ? {} : { mode: options.mode }),\n ...(options.connectionId === undefined ? {} : { connectionId: options.connectionId }),\n ...(options.attempts === undefined ? {} : { attempts: options.attempts }),\n ...(options.transport === undefined ? {} : { transport: options.transport }),\n request: {\n method: \"GET\",\n path: `/v1.0/users/${encodeURIComponent(String(config.userId))}/onlineMeetings/${encodeURIComponent(String(config.meetingId))}`,\n query: {},\n },\n });\n}\n","/**\n * GENERATED FILE — do not edit.\n *\n * Emitted from provider/actions/transcript-list.json by weaver's generator.\n * A hand-edit here is destroyed by the next protocol sync, which is worse than\n * being rejected, because it works until it silently does not. Fix\n * provider/actions/transcript-list.json (or weaver's template/) and regenerate:\n *\n * npm run provider -- microsoft_teams\n */\n\n/**\n * List a finished meeting's transcripts and their download URLs.\n *\n * GET /v1.0/users/{userId}/onlineMeetings/{meetingId}/transcripts —\n * https://learn.microsoft.com/en-us/graph/api/onlinemeeting-list-transcripts\n *\n * Notice what is NOT here: no key, no base URL, no mode check, no retry loop,\n * no fake/real branch. This describes the request; callConnector resolves the\n * connection, picks the estate, and either calls Microsoft Teams or calls the\n * faker.\n */\n\nimport {\n callConnector,\n type ConnectorResult,\n type RequestedMode,\n type Transport,\n} from \"@particle-academy/fancy-connector-core\";\nimport { MICROSOFT_TEAMS } from \"../service.js\";\n\nexport const TRANSCRIPT_LIST_OPERATION = \"transcript_list\";\n\nexport type TranscriptListOptions = {\n /** The node's resolved config. Keys: userId, meetingId. */\n config: Record<string, unknown>;\n credentials?: Record<string, string | undefined>;\n mode?: RequestedMode;\n connectionId?: string | null;\n input?: unknown;\n attempts?: number;\n /** Override the transport. The only way to exercise this without a network. */\n transport?: Transport;\n};\n\nexport async function microsoftTeamsTranscriptList(options: TranscriptListOptions): Promise<ConnectorResult> {\n const config = options.config ?? {};\n\n if (config.userId === undefined || config.userId === null || config.userId === \"\") {\n throw new Error(`transcript_list: \"userId\" is required (User ID).`);\n }\n\n if (config.meetingId === undefined || config.meetingId === null || config.meetingId === \"\") {\n throw new Error(`transcript_list: \"meetingId\" is required (Meeting ID).`);\n }\n\n return callConnector(MICROSOFT_TEAMS, {\n operation: TRANSCRIPT_LIST_OPERATION,\n config,\n input: options.input,\n ...(options.credentials === undefined ? {} : { credentials: options.credentials }),\n ...(options.mode === undefined ? {} : { mode: options.mode }),\n ...(options.connectionId === undefined ? {} : { connectionId: options.connectionId }),\n ...(options.attempts === undefined ? {} : { attempts: options.attempts }),\n ...(options.transport === undefined ? {} : { transport: options.transport }),\n request: {\n method: \"GET\",\n path: `/v1.0/users/${encodeURIComponent(String(config.userId))}/onlineMeetings/${encodeURIComponent(String(config.meetingId))}/transcripts`,\n query: {},\n },\n });\n}\n","/**\n * GENERATED FILE — do not edit.\n *\n * Emitted from provider/actions/ + triggers/ by weaver's generator.\n * A hand-edit here is destroyed by the next protocol sync, which is worse than\n * being rejected, because it works until it silently does not. Fix\n * provider/actions/ + triggers/ (or weaver's template/) and regenerate:\n *\n * npm run provider -- microsoft_teams\n */\n\n/**\n * Microsoft Teams's node kinds with their TypeScript executors attached — for\n * hosts that EXECUTE on TS.\n *\n * The authoring surface in @particle-academy/microsoft-teams-ui carries no\n * executor: the editor is React on every host, so a PHP or Python project\n * installs the ui package and never this one.\n */\n\nimport type { NodeExecutor, NodeKindDefinition } from \"@particle-academy/fancy-flow/engine\";\nimport {\n idempotencyKeyFor,\n NO_IDEMPOTENCY_KEY_WARNING,\n resolveConnection,\n triggerEvent,\n type RequestedMode,\n} from \"@particle-academy/fancy-connector-core\";\nimport { MICROSOFT_TEAMS } from \"./service.js\";\n\nimport {\n microsoftTeamsMeetingCreateKind,\n microsoftTeamsMeetingGetKind,\n microsoftTeamsTranscriptListKind,\n} from \"@particle-academy/microsoft-teams-ui\";\n\nimport { microsoftTeamsMeetingCreate } from \"./actions/meeting-create.js\";\nimport { microsoftTeamsMeetingGet } from \"./actions/meeting-get.js\";\nimport { microsoftTeamsTranscriptList } from \"./actions/transcript-list.js\";\n\nexport const microsoftTeamsMeetingCreateExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await microsoftTeamsMeetingCreate({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `microsoft_teams meeting_create ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const microsoftTeamsMeetingGetExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await microsoftTeamsMeetingGet({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `microsoft_teams meeting_get ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const microsoftTeamsTranscriptListExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await microsoftTeamsTranscriptList({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `microsoft_teams transcript_list ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\n/** The kinds a TypeScript host registers. */\nexport const MICROSOFT_TEAMS_RUNNABLE_KINDS: NodeKindDefinition[] = [\n { ...microsoftTeamsMeetingCreateKind, executor: microsoftTeamsMeetingCreateExecutor },\n { ...microsoftTeamsMeetingGetKind, executor: microsoftTeamsMeetingGetExecutor },\n { ...microsoftTeamsTranscriptListKind, executor: microsoftTeamsTranscriptListExecutor },\n];\n"]}
@@ -0,0 +1,28 @@
1
+ import { NodeKindDefinition, NodeExecutor } from '@particle-academy/fancy-flow/engine';
2
+
3
+ /**
4
+ * GENERATED FILE — do not edit.
5
+ *
6
+ * Emitted from provider/actions/ + triggers/ by weaver's generator.
7
+ * A hand-edit here is destroyed by the next protocol sync, which is worse than
8
+ * being rejected, because it works until it silently does not. Fix
9
+ * provider/actions/ + triggers/ (or weaver's template/) and regenerate:
10
+ *
11
+ * npm run provider -- microsoft_teams
12
+ */
13
+ /**
14
+ * Microsoft Teams's node kinds with their TypeScript executors attached — for
15
+ * hosts that EXECUTE on TS.
16
+ *
17
+ * The authoring surface in @particle-academy/microsoft-teams-ui carries no
18
+ * executor: the editor is React on every host, so a PHP or Python project
19
+ * installs the ui package and never this one.
20
+ */
21
+
22
+ declare const microsoftTeamsMeetingCreateExecutor: NodeExecutor;
23
+ declare const microsoftTeamsMeetingGetExecutor: NodeExecutor;
24
+ declare const microsoftTeamsTranscriptListExecutor: NodeExecutor;
25
+ /** The kinds a TypeScript host registers. */
26
+ declare const MICROSOFT_TEAMS_RUNNABLE_KINDS: NodeKindDefinition[];
27
+
28
+ export { MICROSOFT_TEAMS_RUNNABLE_KINDS, microsoftTeamsMeetingCreateExecutor, microsoftTeamsMeetingGetExecutor, microsoftTeamsTranscriptListExecutor };
package/dist/flow.d.ts ADDED
@@ -0,0 +1,28 @@
1
+ import { NodeKindDefinition, NodeExecutor } from '@particle-academy/fancy-flow/engine';
2
+
3
+ /**
4
+ * GENERATED FILE — do not edit.
5
+ *
6
+ * Emitted from provider/actions/ + triggers/ by weaver's generator.
7
+ * A hand-edit here is destroyed by the next protocol sync, which is worse than
8
+ * being rejected, because it works until it silently does not. Fix
9
+ * provider/actions/ + triggers/ (or weaver's template/) and regenerate:
10
+ *
11
+ * npm run provider -- microsoft_teams
12
+ */
13
+ /**
14
+ * Microsoft Teams's node kinds with their TypeScript executors attached — for
15
+ * hosts that EXECUTE on TS.
16
+ *
17
+ * The authoring surface in @particle-academy/microsoft-teams-ui carries no
18
+ * executor: the editor is React on every host, so a PHP or Python project
19
+ * installs the ui package and never this one.
20
+ */
21
+
22
+ declare const microsoftTeamsMeetingCreateExecutor: NodeExecutor;
23
+ declare const microsoftTeamsMeetingGetExecutor: NodeExecutor;
24
+ declare const microsoftTeamsTranscriptListExecutor: NodeExecutor;
25
+ /** The kinds a TypeScript host registers. */
26
+ declare const MICROSOFT_TEAMS_RUNNABLE_KINDS: NodeKindDefinition[];
27
+
28
+ export { MICROSOFT_TEAMS_RUNNABLE_KINDS, microsoftTeamsMeetingCreateExecutor, microsoftTeamsMeetingGetExecutor, microsoftTeamsTranscriptListExecutor };
package/dist/flow.js ADDED
@@ -0,0 +1,55 @@
1
+ import { microsoftTeamsMeetingCreate, microsoftTeamsMeetingGet, microsoftTeamsTranscriptList } from './chunk-GZBIE34K.js';
2
+ import '@particle-academy/fancy-connector-core';
3
+ import { microsoftTeamsMeetingCreateKind, microsoftTeamsMeetingGetKind, microsoftTeamsTranscriptListKind } from '@particle-academy/microsoft-teams-ui';
4
+
5
+ var microsoftTeamsMeetingCreateExecutor = async (ctx) => {
6
+ const config = ctx.node.data?.config ?? {};
7
+ const result = await microsoftTeamsMeetingCreate({
8
+ config,
9
+ input: ctx.inputs?.in
10
+ });
11
+ ctx.emit({
12
+ type: "log",
13
+ level: "info",
14
+ nodeId: ctx.node.id,
15
+ message: `microsoft_teams meeting_create ${result.data?.id} (${result.mode})`
16
+ });
17
+ return { __port: "out", value: result };
18
+ };
19
+ var microsoftTeamsMeetingGetExecutor = async (ctx) => {
20
+ const config = ctx.node.data?.config ?? {};
21
+ const result = await microsoftTeamsMeetingGet({
22
+ config,
23
+ input: ctx.inputs?.in
24
+ });
25
+ ctx.emit({
26
+ type: "log",
27
+ level: "info",
28
+ nodeId: ctx.node.id,
29
+ message: `microsoft_teams meeting_get ${result.data?.id} (${result.mode})`
30
+ });
31
+ return { __port: "out", value: result };
32
+ };
33
+ var microsoftTeamsTranscriptListExecutor = async (ctx) => {
34
+ const config = ctx.node.data?.config ?? {};
35
+ const result = await microsoftTeamsTranscriptList({
36
+ config,
37
+ input: ctx.inputs?.in
38
+ });
39
+ ctx.emit({
40
+ type: "log",
41
+ level: "info",
42
+ nodeId: ctx.node.id,
43
+ message: `microsoft_teams transcript_list ${result.data?.id} (${result.mode})`
44
+ });
45
+ return { __port: "out", value: result };
46
+ };
47
+ var MICROSOFT_TEAMS_RUNNABLE_KINDS = [
48
+ { ...microsoftTeamsMeetingCreateKind, executor: microsoftTeamsMeetingCreateExecutor },
49
+ { ...microsoftTeamsMeetingGetKind, executor: microsoftTeamsMeetingGetExecutor },
50
+ { ...microsoftTeamsTranscriptListKind, executor: microsoftTeamsTranscriptListExecutor }
51
+ ];
52
+
53
+ export { MICROSOFT_TEAMS_RUNNABLE_KINDS, microsoftTeamsMeetingCreateExecutor, microsoftTeamsMeetingGetExecutor, microsoftTeamsTranscriptListExecutor };
54
+ //# sourceMappingURL=flow.js.map
55
+ //# sourceMappingURL=flow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/flow.ts"],"names":[],"mappings":";;;;AAwCO,IAAM,mCAAA,GAAoD,OAAO,GAAA,KAAQ;AAC9E,EAAA,MAAM,MAAA,GAAW,GAAA,CAAI,IAAA,CAAK,IAAA,EAA+C,UAAU,EAAC;AAEpF,EAAA,MAAM,MAAA,GAAS,MAAM,2BAAA,CAA4B;AAAA,IAC/C,MAAA;AAAA,IACA,KAAA,EAAO,IAAI,MAAA,EAAQ;AAAA,GACpB,CAAA;AAED,EAAA,GAAA,CAAI,IAAA,CAAK;AAAA,IACP,IAAA,EAAM,KAAA;AAAA,IACN,KAAA,EAAO,MAAA;AAAA,IACP,MAAA,EAAQ,IAAI,IAAA,CAAK,EAAA;AAAA,IACjB,SAAS,CAAA,+BAAA,EAAmC,MAAA,CAAO,MAA0B,EAAE,CAAA,EAAA,EAAK,OAAO,IAAI,CAAA,CAAA;AAAA,GAChG,CAAA;AAED,EAAA,OAAO,EAAE,MAAA,EAAQ,KAAA,EAAO,KAAA,EAAO,MAAA,EAAO;AACxC;AAEO,IAAM,gCAAA,GAAiD,OAAO,GAAA,KAAQ;AAC3E,EAAA,MAAM,MAAA,GAAW,GAAA,CAAI,IAAA,CAAK,IAAA,EAA+C,UAAU,EAAC;AAEpF,EAAA,MAAM,MAAA,GAAS,MAAM,wBAAA,CAAyB;AAAA,IAC5C,MAAA;AAAA,IACA,KAAA,EAAO,IAAI,MAAA,EAAQ;AAAA,GACpB,CAAA;AAED,EAAA,GAAA,CAAI,IAAA,CAAK;AAAA,IACP,IAAA,EAAM,KAAA;AAAA,IACN,KAAA,EAAO,MAAA;AAAA,IACP,MAAA,EAAQ,IAAI,IAAA,CAAK,EAAA;AAAA,IACjB,SAAS,CAAA,4BAAA,EAAgC,MAAA,CAAO,MAA0B,EAAE,CAAA,EAAA,EAAK,OAAO,IAAI,CAAA,CAAA;AAAA,GAC7F,CAAA;AAED,EAAA,OAAO,EAAE,MAAA,EAAQ,KAAA,EAAO,KAAA,EAAO,MAAA,EAAO;AACxC;AAEO,IAAM,oCAAA,GAAqD,OAAO,GAAA,KAAQ;AAC/E,EAAA,MAAM,MAAA,GAAW,GAAA,CAAI,IAAA,CAAK,IAAA,EAA+C,UAAU,EAAC;AAEpF,EAAA,MAAM,MAAA,GAAS,MAAM,4BAAA,CAA6B;AAAA,IAChD,MAAA;AAAA,IACA,KAAA,EAAO,IAAI,MAAA,EAAQ;AAAA,GACpB,CAAA;AAED,EAAA,GAAA,CAAI,IAAA,CAAK;AAAA,IACP,IAAA,EAAM,KAAA;AAAA,IACN,KAAA,EAAO,MAAA;AAAA,IACP,MAAA,EAAQ,IAAI,IAAA,CAAK,EAAA;AAAA,IACjB,SAAS,CAAA,gCAAA,EAAoC,MAAA,CAAO,MAA0B,EAAE,CAAA,EAAA,EAAK,OAAO,IAAI,CAAA,CAAA;AAAA,GACjG,CAAA;AAED,EAAA,OAAO,EAAE,MAAA,EAAQ,KAAA,EAAO,KAAA,EAAO,MAAA,EAAO;AACxC;AAGO,IAAM,8BAAA,GAAuD;AAAA,EAClE,EAAE,GAAG,+BAAA,EAAiC,QAAA,EAAU,mCAAA,EAAoC;AAAA,EACpF,EAAE,GAAG,4BAAA,EAA8B,QAAA,EAAU,gCAAA,EAAiC;AAAA,EAC9E,EAAE,GAAG,gCAAA,EAAkC,QAAA,EAAU,oCAAA;AACnD","file":"flow.js","sourcesContent":["/**\n * GENERATED FILE — do not edit.\n *\n * Emitted from provider/actions/ + triggers/ by weaver's generator.\n * A hand-edit here is destroyed by the next protocol sync, which is worse than\n * being rejected, because it works until it silently does not. Fix\n * provider/actions/ + triggers/ (or weaver's template/) and regenerate:\n *\n * npm run provider -- microsoft_teams\n */\n\n/**\n * Microsoft Teams's node kinds with their TypeScript executors attached — for\n * hosts that EXECUTE on TS.\n *\n * The authoring surface in @particle-academy/microsoft-teams-ui carries no\n * executor: the editor is React on every host, so a PHP or Python project\n * installs the ui package and never this one.\n */\n\nimport type { NodeExecutor, NodeKindDefinition } from \"@particle-academy/fancy-flow/engine\";\nimport {\n idempotencyKeyFor,\n NO_IDEMPOTENCY_KEY_WARNING,\n resolveConnection,\n triggerEvent,\n type RequestedMode,\n} from \"@particle-academy/fancy-connector-core\";\nimport { MICROSOFT_TEAMS } from \"./service.js\";\n\nimport {\n microsoftTeamsMeetingCreateKind,\n microsoftTeamsMeetingGetKind,\n microsoftTeamsTranscriptListKind,\n} from \"@particle-academy/microsoft-teams-ui\";\n\nimport { microsoftTeamsMeetingCreate } from \"./actions/meeting-create.js\";\nimport { microsoftTeamsMeetingGet } from \"./actions/meeting-get.js\";\nimport { microsoftTeamsTranscriptList } from \"./actions/transcript-list.js\";\n\nexport const microsoftTeamsMeetingCreateExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await microsoftTeamsMeetingCreate({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `microsoft_teams meeting_create ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const microsoftTeamsMeetingGetExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await microsoftTeamsMeetingGet({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `microsoft_teams meeting_get ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\nexport const microsoftTeamsTranscriptListExecutor: NodeExecutor = async (ctx) => {\n const config = ((ctx.node.data as { config?: Record<string, unknown> })?.config ?? {});\n\n const result = await microsoftTeamsTranscriptList({\n config,\n input: ctx.inputs?.in,\n });\n\n ctx.emit({\n type: \"log\",\n level: \"info\",\n nodeId: ctx.node.id,\n message: `microsoft_teams transcript_list ${(result.data as { id?: string })?.id} (${result.mode})`,\n });\n\n return { __port: \"out\", value: result };\n};\n\n/** The kinds a TypeScript host registers. */\nexport const MICROSOFT_TEAMS_RUNNABLE_KINDS: NodeKindDefinition[] = [\n { ...microsoftTeamsMeetingCreateKind, executor: microsoftTeamsMeetingCreateExecutor },\n { ...microsoftTeamsMeetingGetKind, executor: microsoftTeamsMeetingGetExecutor },\n { ...microsoftTeamsTranscriptListKind, executor: microsoftTeamsTranscriptListExecutor },\n];\n"]}