Repository navigation
Add an Outlook template generated from Microsoft Graph's OpenAPI description - #326
Merged
Merged
Conversation
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ✅ Deployment successful! View logs |
widefleet-docs | 0c01043 | Nov 23 2026, 10:35 AM |
tnkuehne
force-pushed
the
feat/outlook-template
branch
from
November 23, 2026 00:59
5f8dcab to
298a635
Compare
tnkuehne
force-pushed
the
feat/outlook-template
branch
from
November 23, 2026 01:08
298a635 to
dddb4c0
Compare
tnkuehne
force-pushed
the
feat/outlook-template
branch
from
November 23, 2026 01:22
dddb4c0 to
65c0f89
Compare
tnkuehne
force-pushed
the
feat/outlook-template
branch
2 times, most recently
from
November 23, 2026 01:31
d937d34 to
35c504a
Compare
tnkuehne
force-pushed
the
feat/outlook-template
branch
from
November 23, 2026 01:44
35c504a to
8f30fac
Compare
tnkuehne
force-pushed
the
feat/outlook-template
branch
from
November 23, 2026 02:01
8f30fac to
2e839db
Compare
tnkuehne
force-pushed
the
feat/outlook-template
branch
from
November 23, 2026 02:22
2e839db to
57fd290
Compare
tnkuehne
force-pushed
the
feat/outlook-template
branch
from
November 23, 2026 08:32
a885982 to
3dace2a
Compare
tnkuehne
force-pushed
the
feat/outlook-template
branch
from
November 23, 2026 09:16
3dace2a to
279bce9
Compare
tnkuehne
force-pushed
the
feat/outlook-template
branch
from
November 23, 2026 09:24
279bce9 to
c5999cd
Compare
tnkuehne
force-pushed
the
feat/outlook-template
branch
from
November 23, 2026 09:33
c5999cd to
08974b2
Compare
tnkuehne
force-pushed
the
feat/outlook-template
branch
from
November 23, 2026 10:05
08974b2 to
4c53198
Compare
Contributor
Author
|
@greptileai review |
tnkuehne
force-pushed
the
feat/outlook-template
branch
from
November 23, 2026 10:16
4c53198 to
f024b3e
Compare
…ription The new template offers 68 typed methods for Outlook's operations of Microsoft Graph: messages, drafts, replies and attachments, mail folders and rules, calendars, events and meeting responses, free/busy times, contacts and mailbox settings. It uses the same Microsoft login as OneDrive. Sending, replying, forwarding, creating events, which invites attendees, and answering or cancelling meetings count as send; changes ask for approval by each user's level. OpenAPI rules can mark POST operations that only read, such as getSchedule, and replace descriptions where Graph's text describes another operation.
Graph describes attachments by their base type, which has no content. Rules can now name the schemas a body or result can be, and Outlook's addAttachment and getAttachment take and return file, item and reference attachments, with a file's contentBytes. Later pages of calendarView and the other pageable methods need only their address.
Graph accepts a message's attachments inline, but they are a navigation property, which the types leave out. Rules can now keep named navigation properties, typed with the schemas their values can be, and Outlook's messages keep their file, item and reference attachments.
tnkuehne
force-pushed
the
feat/outlook-template
branch
from
November 23, 2026 10:34
66abc0c to
0c01043
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
Outlook mail and calendars are the Microsoft counterpart to Gmail and Google Calendar, and no template covers them yet. The OpenAPI generator from #322 and the Microsoft login of the OneDrive template cover most of it. What remains is the list of operations and two things Graph's description needs.
What changes
Outlook template (
templates/outlook)scripts/operations.tsnames the Graph operation behind each one.findMeetingTimesandgetSchedule.findMeetingTimesandgetScheduleread through a POST and never ask.Mail.ReadWrite,Mail.Send,Calendars.ReadWrite,Contacts.ReadWriteandMailboxSettings.ReadWrite, from the managed Microsoft client or the organization's own Entra app. An account connected with fewer permissions getspermission_required.graph_error, throttling,too_largeover 8 MiB, and paging throughnextLink.template.mddescribes setup, well-known folder names, OData options, action bodies, approvals, results and how to offer more operations.OpenAPI generator
readrule: rules can mark POST operations that only read, such asgetSchedule.body/resultrule: rules can name the schemas a body or result can be, where Graph only names their common base.addAttachmentandgetAttachmentuse file, item and reference attachments, socontentBytesis typed.navigationrule: rules can keep named navigation properties, typed with their concrete schemas. Outlook'sMessage.attachmentscarries file, item and reference attachments inline, forsendMailand drafts.descriptionrule: rules can replace an operation's description. Graph attaches the text of other operations to some Outlook ones:me.ListMessagessays "Get open extension" andme.CreateEventssays "Create multi-value extended property". Seven methods use it.Managed OAuth tests
Managed OAuth
A managed
microsoftclient only grants the scopes itsscopessetting allows. Installations that offer managed OAuth for Microsoft must allow these five scopes, next to OneDrive'sFiles.ReadWrite.Allfrom #322.Notes
{ Message, SaveToSentItems }forsendMail. Graph's own SDKs send these names.Connection page
New page, connected state, with the same approval form as the other templates.
Testing
pnpm checkreadanddescriptionrules.getSchedulenever asking;sendMailand deletions asking, then running after approval;

Confidence Score: 5/5 
The PR appears safe to merge; no new actionable issue was established.Summary
Adds 68 typed Outlook methods, Microsoft account connections, approval controls, and managed OAuth tests. The OpenAPI generator gains rules for read-only POSTs, concrete body and result types, kept navigation fields, and descriptions.
Diagram
%%{init: {'theme': 'neutral'}}%% flowchart TD A[App calls Outlook method] --> B[Check request arguments] B --> C[Check current user's connection] C --> D{Change needs approval?} D -->|Yes, no answer| E[Ask user] E --> A D -->|Declined| F[Return declined] D -->|Approved or not needed| G[Send request to Microsoft Graph] G --> H[Return bounded data or error]Reviews (16) · Last reviewed commit: "Fit kept navigation fields into the type..." · Reviewed by Greptile