@particle-academy/microsoft-teams-js 0.0.0 → 0.2.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/CHANGELOG.md +71 -0
- package/LICENSE +21 -0
- package/README.md +131 -2
- package/art/fancified.svg +26 -0
- package/dist/chunk-GZBIE34K.js +206 -0
- package/dist/chunk-GZBIE34K.js.map +1 -0
- package/dist/flow.cjs +262 -0
- package/dist/flow.cjs.map +1 -0
- package/dist/flow.d.cts +28 -0
- package/dist/flow.d.ts +28 -0
- package/dist/flow.js +55 -0
- package/dist/flow.js.map +1 -0
- package/dist/index.cjs +219 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +194 -0
- package/dist/index.d.ts +194 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/package.json +78 -6
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
# Changelog — Microsoft Teams
|
|
2
|
+
|
|
3
|
+
All four packages — `@particle-academy/microsoft-teams-ui`, `@particle-academy/microsoft-teams-js`,
|
|
4
|
+
`particle-academy/microsoft-teams-php` and `fancy-microsoft-teams` — are released together
|
|
5
|
+
under one version. They are generated from one `provider/` definition, so a
|
|
6
|
+
change to it changes all four, and separate version lines would only record
|
|
7
|
+
which of the four somebody remembered to bump.
|
|
8
|
+
|
|
9
|
+
**Write entries HERE**, in the weaver envelope at `providers/microsoft-teams/CHANGELOG.md`,
|
|
10
|
+
then regenerate. This file is the one thing in a release that cannot be
|
|
11
|
+
derived — somebody has to write what changed — but writing it in the
|
|
12
|
+
provider repo would be a hand-edit that `.weaver.json` flags and the next
|
|
13
|
+
sync destroys.
|
|
14
|
+
|
|
15
|
+
## [0.2.1] — 2026-11-08
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- **The Laravel config's environment variable names now split camelCase**,
|
|
20
|
+
as documented. **Consumer action: none.** The old unsplit names are still
|
|
21
|
+
read as a fallback, so an app that set them keeps working; the new names
|
|
22
|
+
are preferred.
|
|
23
|
+
|
|
24
|
+
| Preferred | Still read |
|
|
25
|
+
|---|---|
|
|
26
|
+
| `MICROSOFT_TEAMS_CLIENT_ID` | `MICROSOFT_TEAMS_CLIENTID` |
|
|
27
|
+
| `MICROSOFT_TEAMS_CLIENT_SECRET` | `MICROSOFT_TEAMS_CLIENTSECRET` |
|
|
28
|
+
| `MICROSOFT_TEAMS_ACCESS_TOKEN` | `MICROSOFT_TEAMS_ACCESSTOKEN` |
|
|
29
|
+
| `MICROSOFT_TEAMS_REFRESH_TOKEN` | `MICROSOFT_TEAMS_REFRESHTOKEN` |
|
|
30
|
+
|
|
31
|
+
## [0.2.0] — 2026-11-08
|
|
32
|
+
|
|
33
|
+
### Added
|
|
34
|
+
|
|
35
|
+
- **Laravel integration, in this package** (`src/Laravel/`), auto-discovered
|
|
36
|
+
through composer's `extra.laravel`. Laravel is SUGGESTED, never required:
|
|
37
|
+
outside a Laravel app none of it loads.
|
|
38
|
+
- a service provider that merges `config/microsoft-teams.php` under
|
|
39
|
+
`connectors.microsoft-teams` (credentials from the environment, or per call for a
|
|
40
|
+
multi-account app);
|
|
41
|
+
- the `MicrosoftTeams` facade: `MicrosoftTeams::call('<operation>', [...])` runs any action;
|
|
42
|
+
- `MicrosoftTeams::fake()`, answered from the connector's faker, with
|
|
43
|
+
`assertSent` / `assertNotSent` / `assertNothingSent` / `assertSentCount`;
|
|
44
|
+
- its own Pest test of all of it against a booted Laravel app.
|
|
45
|
+
|
|
46
|
+
### Changed
|
|
47
|
+
|
|
48
|
+
- **Tests: Pest `^5`**, and `laravel/framework` `^13` as a DEV-ONLY test
|
|
49
|
+
dependency (the framework this package integrates with; nothing ships in
|
|
50
|
+
`require`).
|
|
51
|
+
|
|
52
|
+
## [0.1.0] — 2026-09-16
|
|
53
|
+
|
|
54
|
+
### Added
|
|
55
|
+
|
|
56
|
+
- **`meeting_create`** — create a Teams meeting on behalf of a user and get its join link (`POST /users/{userId}/onlineMeetings`, application permission `OnlineMeetings.ReadWrite.All`).
|
|
57
|
+
- **`meeting_get`** — read a meeting's current details (`GET /users/{userId}/onlineMeetings/{meetingId}`).
|
|
58
|
+
- **`transcript_list`** — a finished meeting's transcripts (`GET /users/{userId}/onlineMeetings/{meetingId}/transcripts`, application permission `OnlineMeetingTranscript.Read.All`). Only `transcriptContentUrl` is published, a raw-VTT download reached directly — unlike Google Meet, Graph exposes no structured per-utterance JSON here, so no text-extraction action was built, the same "bytes never pass through the connector" call Resend already made.
|
|
59
|
+
- OAuth2 at `login.microsoftonline.com`, reusing microsoft-outlook's already-verified `refreshTokenRotates: false` reasoning and M365 Developer Program sandbox note. Every operation additionally requires a tenant administrator to grant this app an application access policy naming the target user — consent alone is not enough.
|
|
60
|
+
|
|
61
|
+
**This is the THIRD and LAST connector prerequisite for Tynn #9 (MOIC's
|
|
62
|
+
meeting bot), after Zoom and Google Meet.** The BOT RUNTIME — a service that
|
|
63
|
+
actually joins a call and streams live media — is the owner's architecture
|
|
64
|
+
decision, not this connector's; Graph's own path there is an
|
|
65
|
+
application-hosted media bot (a .NET/Azure service), not a REST connector.
|
|
66
|
+
What ships here: create a meeting, read it back, and find a finished
|
|
67
|
+
meeting's transcript.
|
|
68
|
+
|
|
69
|
+
Verified against Microsoft Learn's own reference pages
|
|
70
|
+
(`application-post-onlinemeetings`, `onlinemeeting-get`,
|
|
71
|
+
`onlinemeeting-list-transcripts`) on 2026-09-16.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Particle Academy
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,132 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Microsoft Teams
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://particle.academy)
|
|
4
|
+
|
|
5
|
+
Microsoft Teams for [fancy-flow][flow] — as **four imported, versioned packages**, one
|
|
6
|
+
per runtime. Not vendored source: a copy cannot be upgraded, and third-party APIs
|
|
7
|
+
change.
|
|
8
|
+
|
|
9
|
+
[flow]: https://github.com/Particle-Academy/fancy-flow
|
|
10
|
+
|
|
11
|
+
| Runtime | Package | Install |
|
|
12
|
+
|---|---|---|
|
|
13
|
+
| Authoring surface (every host) | `@particle-academy/microsoft-teams-ui` | `npm install @particle-academy/microsoft-teams-ui` |
|
|
14
|
+
| Node | `@particle-academy/microsoft-teams-js` | `npm install @particle-academy/microsoft-teams-js` |
|
|
15
|
+
| PHP 8.4+ | `particle-academy/microsoft-teams-php` | `composer require particle-academy/microsoft-teams-php` |
|
|
16
|
+
| Python 3.11+ | `fancy-microsoft-teams` | `pip install fancy-microsoft-teams` |
|
|
17
|
+
|
|
18
|
+
The `ui` package is the editor surface and is React on every host — a PHP or
|
|
19
|
+
Python project installs it *and* its own runtime package, and never the `js` one.
|
|
20
|
+
|
|
21
|
+
## What it costs you
|
|
22
|
+
|
|
23
|
+
One dependency: `@particle-academy/fancy-connector-core` (or
|
|
24
|
+
`particle-academy/fancy-connector-core` on Composer), which the `js` and `php`
|
|
25
|
+
packages pull in themselves. The Python package has **zero** runtime
|
|
26
|
+
dependencies.
|
|
27
|
+
|
|
28
|
+
**No Microsoft Teams SDK.** Plain HTTP, deliberately: a vendor SDK is third-party code
|
|
29
|
+
subject to the kit's full approval bar, and one per provider is hundreds of
|
|
30
|
+
dependencies nobody is tracking.
|
|
31
|
+
|
|
32
|
+
## Setting it up
|
|
33
|
+
|
|
34
|
+
Everything below is generated from `provider/manifest.json`, so it cannot disagree with what the packages do.
|
|
35
|
+
|
|
36
|
+
### On Microsoft Teams's side
|
|
37
|
+
|
|
38
|
+
1. **Register an app and add the OAuth redirect URL** — In the Microsoft Entra admin center, App registrations, register (or reuse) an app and add **your host's OAuth redirect URL** under Authentication as a Web redirect URI. Record the Application (client) ID and create a client secret. ([learn.microsoft.com](https://learn.microsoft.com/en-us/entra/identity-platform/quickstart-register-app))
|
|
39
|
+
2. **Grant the app an application access policy naming the target user** — OAuth consent alone does not authorize meeting_create, meeting_get or transcript_list -- Microsoft Graph refuses every call with "No application access policy found for this app" until a tenant administrator runs New-CsApplicationAccessPolicy (with this app's client ID) and Grant-CsApplicationAccessPolicy naming the userId these operations will act on. Changes take up to 30 minutes to reach the Graph REST API. ([learn.microsoft.com](https://learn.microsoft.com/en-us/graph/cloud-communication-online-meeting-application-access-policy))
|
|
40
|
+
|
|
41
|
+
### Credentials
|
|
42
|
+
|
|
43
|
+
A Microsoft Teams connection holds 4 values.
|
|
44
|
+
|
|
45
|
+
**Two kinds of value, and mixing them up matters.** A `provider` credential is ONE value for the whole installation — an OAuth app's client secret serves every connected account. An `account` credential is one per connected account. A host that stores the second where it stores the first lets one account's credentials reach another's.
|
|
46
|
+
|
|
47
|
+
| Field | Scope | Secret | Where it comes from |
|
|
48
|
+
|---|---|---|---|
|
|
49
|
+
| **Application (client) ID** | per installation | not secret | From the Microsoft Entra admin center -> App registrations. ONE value for the whole installation, not per connected account. |
|
|
50
|
+
| **Client secret** | per installation | **secret** | A client secret of the same app registration. One value for the whole installation; Entra expires them, so record the expiry. |
|
|
51
|
+
| **Access token** | per connected account | **secret** | Per connected Microsoft account, and it expires after about ONE HOUR. The host refreshes it with the refresh token. |
|
|
52
|
+
| **Refresh token** *(optional)* | per connected account | **secret** | Per connected Microsoft account; issued only when the consent request includes offline_access. Every refresh answers with a NEW one -- persist it. |
|
|
53
|
+
|
|
54
|
+
### Authorising
|
|
55
|
+
|
|
56
|
+
Microsoft Teams uses OAuth2 (authorization_code). The package DECLARES the exchange; the HOST performs it — a consent screen needs a browser, a redirect URI and somewhere to persist the result, and all three belong to the host.
|
|
57
|
+
|
|
58
|
+
- **Authorize URL** — https://login.microsoftonline.com/common/oauth2/v2.0/authorize
|
|
59
|
+
- **Token URL** — https://login.microsoftonline.com/common/oauth2/v2.0/token
|
|
60
|
+
- **Scopes** — `OnlineMeetings.ReadWrite.All`, `OnlineMeetingTranscript.Read.All`, `offline_access`
|
|
61
|
+
- **Access token lifetime** — 3600 seconds (1 hours). A host that never refreshes works all afternoon and is broken by morning.
|
|
62
|
+
|
|
63
|
+
The refresh tokens do **not** rotate: the same one is reusable, so a refresh may safely be retried and may run concurrently. Stated rather than assumed, because the opposite — a provider that spends the token and revokes the grant on a replay — looks identical until it happens.
|
|
64
|
+
|
|
65
|
+
### The estate
|
|
66
|
+
|
|
67
|
+
Microsoft Teams has a test estate on the same host, reached with credentials from a SEPARATE test account you register. Selecting sandbox mode uses those credentials.
|
|
68
|
+
|
|
69
|
+
> Microsoft's test estate is a Microsoft 365 Developer Program sandbox: a separate E5 tenant with its own users and its own OAuth consent, on the SAME host -- the same fact microsoft-outlook already verified for Graph generally. Eligibility is limited (Visual Studio Professional/Enterprise, ISV Success / MAICPP partners, or Premier/Unified Support) and the tenant expires after 90 days of no development activity. Without one, every call reaches a real tenant.
|
|
70
|
+
|
|
71
|
+
## What it can do
|
|
72
|
+
|
|
73
|
+
### Actions
|
|
74
|
+
|
|
75
|
+
#### `meeting_create` — Create meeting
|
|
76
|
+
|
|
77
|
+
Create a Teams meeting on behalf of a user and get its join link.
|
|
78
|
+
|
|
79
|
+
`POST /v1.0/users/{userId}/onlineMeetings` · **unsafe to replay** — a retried durable run does it TWICE
|
|
80
|
+
|
|
81
|
+
| Input | Required | What it is |
|
|
82
|
+
|---|---|---|
|
|
83
|
+
| `userId` | yes | The Microsoft Entra object id of the user the meeting is created on behalf of -- the one named in the application access policy a tenant admin granted this app. |
|
|
84
|
+
| `subject` | no | Subject |
|
|
85
|
+
| `startDateTime` | yes | ISO 8601 with an offset or Z, e.g. 2026-09-22T14:00:00Z. |
|
|
86
|
+
| `endDateTime` | yes | ISO 8601 with an offset or Z. |
|
|
87
|
+
| `passcodeRequired` | no | Passcodes are auto-generated by Teams; a custom one is not supported. Leave off for no passcode. |
|
|
88
|
+
|
|
89
|
+
#### `meeting_get` — Get meeting
|
|
90
|
+
|
|
91
|
+
Read a Teams meeting's current details.
|
|
92
|
+
|
|
93
|
+
`GET /v1.0/users/{userId}/onlineMeetings/{meetingId}` · reads only — safe to replay
|
|
94
|
+
|
|
95
|
+
| Input | Required | What it is |
|
|
96
|
+
|---|---|---|
|
|
97
|
+
| `userId` | yes | The meeting organizer's Microsoft Entra object id. |
|
|
98
|
+
| `meetingId` | yes | From meeting_create's data.id. |
|
|
99
|
+
|
|
100
|
+
#### `transcript_list` — List transcripts
|
|
101
|
+
|
|
102
|
+
List a finished meeting's transcripts and their download URLs.
|
|
103
|
+
|
|
104
|
+
`GET /v1.0/users/{userId}/onlineMeetings/{meetingId}/transcripts` · reads only — safe to replay
|
|
105
|
+
|
|
106
|
+
| Input | Required | What it is |
|
|
107
|
+
|---|---|---|
|
|
108
|
+
| `userId` | yes | The meeting organizer's Microsoft Entra object id. |
|
|
109
|
+
| `meetingId` | yes | From meeting_create's data.id. |
|
|
110
|
+
|
|
111
|
+
## Run it before you have credentials
|
|
112
|
+
|
|
113
|
+
Every operation ships a **faker**, whether or not Microsoft Teams has a sandbox. Set a
|
|
114
|
+
node's mode to `fake` and it returns the shape Microsoft Teams actually publishes — the
|
|
115
|
+
same field names, deterministically — so you can wire the downstream nodes before
|
|
116
|
+
touching an account, a key, or a network.
|
|
117
|
+
|
|
118
|
+
## This repository is generated
|
|
119
|
+
|
|
120
|
+
`provider/` is the source. Everything under `packages/` is emitted from it and
|
|
121
|
+
**must not be hand-edited** — CI regenerates and diffs on every push, and the
|
|
122
|
+
next protocol sync destroys anything it finds. See [`AGENTS.md`](AGENTS.md).
|
|
123
|
+
|
|
124
|
+
## Two namespaces, which do not match on purpose
|
|
125
|
+
|
|
126
|
+
The repo is `github.com/Fancy-Friends/microsoft-teams`; the packages publish under
|
|
127
|
+
`particle-academy`. Nothing derives one from the other — the names come from
|
|
128
|
+
weaver's `friends.json` and nowhere else.
|
|
129
|
+
|
|
130
|
+
## Licence
|
|
131
|
+
|
|
132
|
+
MIT.
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="28" role="img" aria-label="Fancified — built with Fancy UI">
|
|
2
|
+
<title>Fancified · built with Fancy UI</title>
|
|
3
|
+
<defs>
|
|
4
|
+
<linearGradient id="fcdBg" x1="0" y1="0" x2="1" y2="1">
|
|
5
|
+
<stop offset="0" stop-color="#6d28d9"/>
|
|
6
|
+
<stop offset=".5" stop-color="#9333ea"/>
|
|
7
|
+
<stop offset="1" stop-color="#d946ef"/>
|
|
8
|
+
</linearGradient>
|
|
9
|
+
<linearGradient id="fcdGloss" x1="0" y1="0" x2="0" y2="1">
|
|
10
|
+
<stop offset="0" stop-color="#ffffff" stop-opacity=".30"/>
|
|
11
|
+
<stop offset=".55" stop-color="#ffffff" stop-opacity="0"/>
|
|
12
|
+
</linearGradient>
|
|
13
|
+
<clipPath id="fcdClip"><rect width="128" height="28" rx="7"/></clipPath>
|
|
14
|
+
</defs>
|
|
15
|
+
<g clip-path="url(#fcdClip)">
|
|
16
|
+
<rect width="128" height="28" fill="url(#fcdBg)"/>
|
|
17
|
+
<rect width="34" height="28" fill="#3b0764" fill-opacity=".5"/>
|
|
18
|
+
<rect width="128" height="13" fill="url(#fcdGloss)"/>
|
|
19
|
+
<g fill="#fff">
|
|
20
|
+
<path transform="translate(17 14)" d="M0 -7 C.6 -2.2 2.2 -.6 7 0 C2.2 .6 .6 2.2 0 7 C-.6 2.2 -2.2 .6 -7 0 C-2.2 -.6 -.6 -2.2 0 -7 Z"/>
|
|
21
|
+
<path transform="translate(25.5 7.5) scale(.34)" fill-opacity=".85" d="M0 -7 C.6 -2.2 2.2 -.6 7 0 C2.2 .6 .6 2.2 0 7 C-.6 2.2 -2.2 .6 -7 0 C-2.2 -.6 -.6 -2.2 0 -7 Z"/>
|
|
22
|
+
</g>
|
|
23
|
+
<text x="81" y="18.5" fill="#ffffff" text-anchor="middle" font-family="'Segoe UI',Verdana,'DejaVu Sans',sans-serif" font-size="12" font-weight="700" letter-spacing=".3">Fancified</text>
|
|
24
|
+
</g>
|
|
25
|
+
<rect x=".5" y=".5" width="127" height="27" rx="6.5" fill="none" stroke="#ffffff" stroke-opacity=".22"/>
|
|
26
|
+
</svg>
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import { callConnector } from '@particle-academy/fancy-connector-core';
|
|
2
|
+
|
|
3
|
+
// src/faker.ts
|
|
4
|
+
function fakeMeetingCreate({ config, fake }) {
|
|
5
|
+
return {
|
|
6
|
+
"id": fake.id("MSo"),
|
|
7
|
+
"creationDateTime": "2026-09-16T09:00:00.0000000Z",
|
|
8
|
+
"subject": config.subject !== void 0 && config.subject !== null && config.subject !== "" ? String(config.subject) : "Weekly sync",
|
|
9
|
+
"startDateTime": config.startDateTime !== void 0 && config.startDateTime !== null && config.startDateTime !== "" ? String(config.startDateTime) : "2026-09-22T14:00:00Z",
|
|
10
|
+
"endDateTime": config.endDateTime !== void 0 && config.endDateTime !== null && config.endDateTime !== "" ? String(config.endDateTime) : "2026-09-22T14:30:00Z",
|
|
11
|
+
"joinWebUrl": "https://teams.microsoft.com/l/meetup-join/19%3ameeting_abc123%40thread.v2/0",
|
|
12
|
+
"participants": {
|
|
13
|
+
"organizer": {
|
|
14
|
+
"identity": {
|
|
15
|
+
"user": {
|
|
16
|
+
"id": fake.id("u"),
|
|
17
|
+
"displayName": "Ada Lovelace"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"joinMeetingIdSettings": {
|
|
23
|
+
"joinMeetingId": Array.from({ length: 9 }, () => fake.int(0, 9)).join(""),
|
|
24
|
+
"isPasscodeRequired": config.passcodeRequired !== void 0 && config.passcodeRequired !== null && config.passcodeRequired !== "" ? Boolean(config.passcodeRequired) : false,
|
|
25
|
+
"passcode": Array.from({ length: 6 }, () => fake.int(0, 9)).join("")
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function fakeMeetingGet({ config, fake }) {
|
|
30
|
+
return {
|
|
31
|
+
"id": config.meetingId !== void 0 && config.meetingId !== null && config.meetingId !== "" ? String(config.meetingId) : fake.id("MSo"),
|
|
32
|
+
"subject": "Weekly sync",
|
|
33
|
+
"startDateTime": "2026-09-22T14:00:00Z",
|
|
34
|
+
"endDateTime": "2026-09-22T14:30:00Z",
|
|
35
|
+
"joinWebUrl": "https://teams.microsoft.com/l/meetup-join/19%3ameeting_abc123%40thread.v2/0",
|
|
36
|
+
"participants": {
|
|
37
|
+
"organizer": {
|
|
38
|
+
"identity": {
|
|
39
|
+
"user": {
|
|
40
|
+
"id": config.userId !== void 0 && config.userId !== null && config.userId !== "" ? String(config.userId) : fake.id("u"),
|
|
41
|
+
"displayName": "Ada Lovelace"
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function fakeTranscriptList({ config, fake }) {
|
|
49
|
+
return {
|
|
50
|
+
"value": [
|
|
51
|
+
{
|
|
52
|
+
"id": fake.id("transcript"),
|
|
53
|
+
"meetingId": config.meetingId !== void 0 && config.meetingId !== null && config.meetingId !== "" ? String(config.meetingId) : fake.id("MSo"),
|
|
54
|
+
"callId": `${fake.hex(8)}-${fake.hex(4)}-${fake.hex(4)}-${fake.hex(4)}-${fake.hex(12)}`,
|
|
55
|
+
"createdDateTime": "2026-09-16T09:30:05.0000000Z",
|
|
56
|
+
"endDateTime": "2026-09-16T09:30:10.0000000Z",
|
|
57
|
+
"contentCorrelationId": `${fake.hex(8)}-${fake.hex(4)}-${fake.hex(4)}-${fake.hex(4)}-${fake.hex(12)}`,
|
|
58
|
+
"transcriptContentUrl": "https://graph.microsoft.com/v1.0/users/u/onlineMeetings/m/transcripts/t/content",
|
|
59
|
+
"meetingOrganizer": {
|
|
60
|
+
"user": {
|
|
61
|
+
"id": fake.id("u"),
|
|
62
|
+
"displayName": "Ada Lovelace"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
var microsoftTeamsFaker = (operation, request) => {
|
|
70
|
+
switch (operation) {
|
|
71
|
+
case "meeting_create":
|
|
72
|
+
return fakeMeetingCreate(request);
|
|
73
|
+
case "meeting_get":
|
|
74
|
+
return fakeMeetingGet(request);
|
|
75
|
+
case "transcript_list":
|
|
76
|
+
return fakeTranscriptList(request);
|
|
77
|
+
default:
|
|
78
|
+
throw new Error(
|
|
79
|
+
`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.`
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
// src/service.ts
|
|
85
|
+
var CONNECTOR_API_VERSION = 1;
|
|
86
|
+
var MICROSOFT_TEAMS_BASE_URLS = {
|
|
87
|
+
"live": "https://graph.microsoft.com",
|
|
88
|
+
"sandbox": "https://graph.microsoft.com"
|
|
89
|
+
};
|
|
90
|
+
var MICROSOFT_TEAMS_REQUIRES = [
|
|
91
|
+
"accessToken"
|
|
92
|
+
];
|
|
93
|
+
function microsoftTeamsAuthorize(credentials, request, _mode) {
|
|
94
|
+
request.headers.Authorization = `Bearer ${credentials.accessToken ?? ""}`;
|
|
95
|
+
}
|
|
96
|
+
var MICROSOFT_TEAMS = {
|
|
97
|
+
service: "microsoft_teams",
|
|
98
|
+
title: "Microsoft Teams",
|
|
99
|
+
sandbox: "separate-account",
|
|
100
|
+
baseUrls: { ...MICROSOFT_TEAMS_BASE_URLS },
|
|
101
|
+
requires: [...MICROSOFT_TEAMS_REQUIRES],
|
|
102
|
+
authorize: microsoftTeamsAuthorize,
|
|
103
|
+
faker: microsoftTeamsFaker
|
|
104
|
+
};
|
|
105
|
+
var MEETING_CREATE_OPERATION = "meeting_create";
|
|
106
|
+
async function microsoftTeamsMeetingCreate(options) {
|
|
107
|
+
const config = options.config ?? {};
|
|
108
|
+
if (config.userId === void 0 || config.userId === null || config.userId === "") {
|
|
109
|
+
throw new Error(`meeting_create: "userId" is required (User ID).`);
|
|
110
|
+
}
|
|
111
|
+
if (config.startDateTime === void 0 || config.startDateTime === null || config.startDateTime === "") {
|
|
112
|
+
throw new Error(`meeting_create: "startDateTime" is required (Start).`);
|
|
113
|
+
}
|
|
114
|
+
if (config.endDateTime === void 0 || config.endDateTime === null || config.endDateTime === "") {
|
|
115
|
+
throw new Error(`meeting_create: "endDateTime" is required (End).`);
|
|
116
|
+
}
|
|
117
|
+
return callConnector(MICROSOFT_TEAMS, {
|
|
118
|
+
operation: MEETING_CREATE_OPERATION,
|
|
119
|
+
config,
|
|
120
|
+
input: options.input,
|
|
121
|
+
...options.credentials === void 0 ? {} : { credentials: options.credentials },
|
|
122
|
+
...options.mode === void 0 ? {} : { mode: options.mode },
|
|
123
|
+
...options.connectionId === void 0 ? {} : { connectionId: options.connectionId },
|
|
124
|
+
...options.attempts === void 0 ? {} : { attempts: options.attempts },
|
|
125
|
+
...options.transport === void 0 ? {} : { transport: options.transport },
|
|
126
|
+
request: {
|
|
127
|
+
method: "POST",
|
|
128
|
+
path: `/v1.0/users/${encodeURIComponent(String(config.userId))}/onlineMeetings`,
|
|
129
|
+
json: nestFields({
|
|
130
|
+
...config.subject !== void 0 && config.subject !== null && config.subject !== "" ? { "subject": String(config.subject) } : {},
|
|
131
|
+
"startDateTime": String(config.startDateTime),
|
|
132
|
+
"endDateTime": String(config.endDateTime),
|
|
133
|
+
...config.passcodeRequired !== void 0 && config.passcodeRequired !== null && config.passcodeRequired !== "" ? { "joinMeetingIdSettings.isPasscodeRequired": Boolean(config.passcodeRequired) } : {}
|
|
134
|
+
})
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
function nestFields(flat) {
|
|
139
|
+
const out = {};
|
|
140
|
+
for (const [path, value] of Object.entries(flat)) {
|
|
141
|
+
const parts = path.split(".");
|
|
142
|
+
let node = out;
|
|
143
|
+
while (parts.length > 1) {
|
|
144
|
+
const key = parts.shift();
|
|
145
|
+
const wantsArray = /^\d+$/.test(parts[0] ?? "");
|
|
146
|
+
if (typeof node[key] !== "object" || node[key] === null) node[key] = wantsArray ? [] : {};
|
|
147
|
+
node = node[key];
|
|
148
|
+
}
|
|
149
|
+
node[parts[0]] = value;
|
|
150
|
+
}
|
|
151
|
+
return out;
|
|
152
|
+
}
|
|
153
|
+
var MEETING_GET_OPERATION = "meeting_get";
|
|
154
|
+
async function microsoftTeamsMeetingGet(options) {
|
|
155
|
+
const config = options.config ?? {};
|
|
156
|
+
if (config.userId === void 0 || config.userId === null || config.userId === "") {
|
|
157
|
+
throw new Error(`meeting_get: "userId" is required (User ID).`);
|
|
158
|
+
}
|
|
159
|
+
if (config.meetingId === void 0 || config.meetingId === null || config.meetingId === "") {
|
|
160
|
+
throw new Error(`meeting_get: "meetingId" is required (Meeting ID).`);
|
|
161
|
+
}
|
|
162
|
+
return callConnector(MICROSOFT_TEAMS, {
|
|
163
|
+
operation: MEETING_GET_OPERATION,
|
|
164
|
+
config,
|
|
165
|
+
input: options.input,
|
|
166
|
+
...options.credentials === void 0 ? {} : { credentials: options.credentials },
|
|
167
|
+
...options.mode === void 0 ? {} : { mode: options.mode },
|
|
168
|
+
...options.connectionId === void 0 ? {} : { connectionId: options.connectionId },
|
|
169
|
+
...options.attempts === void 0 ? {} : { attempts: options.attempts },
|
|
170
|
+
...options.transport === void 0 ? {} : { transport: options.transport },
|
|
171
|
+
request: {
|
|
172
|
+
method: "GET",
|
|
173
|
+
path: `/v1.0/users/${encodeURIComponent(String(config.userId))}/onlineMeetings/${encodeURIComponent(String(config.meetingId))}`,
|
|
174
|
+
query: {}
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
}
|
|
178
|
+
var TRANSCRIPT_LIST_OPERATION = "transcript_list";
|
|
179
|
+
async function microsoftTeamsTranscriptList(options) {
|
|
180
|
+
const config = options.config ?? {};
|
|
181
|
+
if (config.userId === void 0 || config.userId === null || config.userId === "") {
|
|
182
|
+
throw new Error(`transcript_list: "userId" is required (User ID).`);
|
|
183
|
+
}
|
|
184
|
+
if (config.meetingId === void 0 || config.meetingId === null || config.meetingId === "") {
|
|
185
|
+
throw new Error(`transcript_list: "meetingId" is required (Meeting ID).`);
|
|
186
|
+
}
|
|
187
|
+
return callConnector(MICROSOFT_TEAMS, {
|
|
188
|
+
operation: TRANSCRIPT_LIST_OPERATION,
|
|
189
|
+
config,
|
|
190
|
+
input: options.input,
|
|
191
|
+
...options.credentials === void 0 ? {} : { credentials: options.credentials },
|
|
192
|
+
...options.mode === void 0 ? {} : { mode: options.mode },
|
|
193
|
+
...options.connectionId === void 0 ? {} : { connectionId: options.connectionId },
|
|
194
|
+
...options.attempts === void 0 ? {} : { attempts: options.attempts },
|
|
195
|
+
...options.transport === void 0 ? {} : { transport: options.transport },
|
|
196
|
+
request: {
|
|
197
|
+
method: "GET",
|
|
198
|
+
path: `/v1.0/users/${encodeURIComponent(String(config.userId))}/onlineMeetings/${encodeURIComponent(String(config.meetingId))}/transcripts`,
|
|
199
|
+
query: {}
|
|
200
|
+
}
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export { CONNECTOR_API_VERSION, MEETING_CREATE_OPERATION, MEETING_GET_OPERATION, MICROSOFT_TEAMS, MICROSOFT_TEAMS_BASE_URLS, MICROSOFT_TEAMS_REQUIRES, TRANSCRIPT_LIST_OPERATION, microsoftTeamsAuthorize, microsoftTeamsFaker, microsoftTeamsMeetingCreate, microsoftTeamsMeetingGet, microsoftTeamsTranscriptList };
|
|
205
|
+
//# sourceMappingURL=chunk-GZBIE34K.js.map
|
|
206
|
+
//# sourceMappingURL=chunk-GZBIE34K.js.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"],"names":["callConnector"],"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,KAAY,MAAA,IAAa,MAAA,CAAO,OAAA,KAAY,IAAA,IAAQ,MAAA,CAAO,OAAA,KAAY,EAAA,GAAK,MAAA,CAAO,MAAA,CAAO,OAAO,CAAA,GAAI,aAAA;AAAA,IACxH,eAAA,EAAkB,MAAA,CAAO,aAAA,KAAkB,MAAA,IAAa,MAAA,CAAO,aAAA,K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,cAAc,EAAA,EAAI;AAC1F,IAAA,MAAM,IAAI,MAAM,CAAA,sDAAA,CAAwD,CAAA;AAAA,EAC1E;AAEA,EAAA,OAAOA,cAAc,eAAA,EAAiB;AAAA,IACpC,SAAA,EAAW,yBAAA;AAAA,IACX,MAAA;AAAA,IACA,OAAO,OAAA,CAAQ,KAAA;AAAA,IACf,GAAI,QAAQ,WAAA,KAAgB,MAAA,GAAY,EAAC,GAAI,EAAE,WAAA,EAAa,OAAA,CAAQ,WAAA,EAAY;AAAA,IAChF,GAAI,QAAQ,IAAA,KAAS,MAAA,GAAY,EAAC,GAAI,EAAE,IAAA,EAAM,OAAA,CAAQ,IAAA,EAAK;AAAA,IAC3D,GAAI,QAAQ,YAAA,KAAiB,MAAA,GAAY,EAAC,GAAI,EAAE,YAAA,EAAc,OAAA,CAAQ,YAAA,EAAa;AAAA,IACnF,GAAI,QAAQ,QAAA,KAAa,MAAA,GAAY,EAAC,GAAI,EAAE,QAAA,EAAU,OAAA,CAAQ,QAAA,EAAS;AAAA,IACvE,GAAI,QAAQ,SAAA,KAAc,MAAA,GAAY,EAAC,GAAI,EAAE,SAAA,EAAW,OAAA,CAAQ,SAAA,EAAU;AAAA,IAC1E,OAAA,EAAS;AAAA,MACP,MAAA,EAAQ,KAAA;AAAA,MACR,IAAA,EAAM,CAAA,YAAA,EAAe,kBAAA,CAAmB,MAAA,CAAO,OAAO,MAAM,CAAC,CAAC,CAAA,gBAAA,EAAmB,kBAAA,CAAmB,MAAA,CAAO,MAAA,CAAO,SAAS,CAAC,CAAC,CAAA,YAAA,CAAA;AAAA,MAC7H,OAAO;AAAC;AACV,GACD,CAAA;AACH","file":"chunk-GZBIE34K.js","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"]}
|