microsoft-graph-client 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/dist/api/base.d.ts +10 -0
  2. package/dist/api/base.d.ts.map +1 -0
  3. package/dist/api/base.js +11 -0
  4. package/dist/api/base.js.map +1 -0
  5. package/dist/api/calendar.d.ts +24 -0
  6. package/dist/api/calendar.d.ts.map +1 -0
  7. package/dist/api/calendar.js +117 -0
  8. package/dist/api/calendar.js.map +1 -0
  9. package/dist/api/chats.d.ts +20 -0
  10. package/dist/api/chats.d.ts.map +1 -0
  11. package/dist/api/chats.js +71 -0
  12. package/dist/api/chats.js.map +1 -0
  13. package/dist/api/files.d.ts +24 -0
  14. package/dist/api/files.d.ts.map +1 -0
  15. package/dist/api/files.js +77 -0
  16. package/dist/api/files.js.map +1 -0
  17. package/dist/api/index.d.ts +9 -0
  18. package/dist/api/index.d.ts.map +1 -0
  19. package/dist/api/index.js +9 -0
  20. package/dist/api/index.js.map +1 -0
  21. package/dist/api/mail.d.ts +16 -0
  22. package/dist/api/mail.d.ts.map +1 -0
  23. package/dist/api/mail.js +74 -0
  24. package/dist/api/mail.js.map +1 -0
  25. package/dist/api/messages.d.ts +36 -0
  26. package/dist/api/messages.d.ts.map +1 -0
  27. package/dist/api/messages.js +227 -0
  28. package/dist/api/messages.js.map +1 -0
  29. package/dist/api/transcripts.d.ts +20 -0
  30. package/dist/api/transcripts.d.ts.map +1 -0
  31. package/dist/api/transcripts.js +53 -0
  32. package/dist/api/transcripts.js.map +1 -0
  33. package/dist/api/users.d.ts +25 -0
  34. package/dist/api/users.d.ts.map +1 -0
  35. package/dist/api/users.js +39 -0
  36. package/dist/api/users.js.map +1 -0
  37. package/dist/auth/authenticator.d.ts +48 -0
  38. package/dist/auth/authenticator.d.ts.map +1 -0
  39. package/dist/auth/authenticator.js +159 -0
  40. package/dist/auth/authenticator.js.map +1 -0
  41. package/dist/auth/index.d.ts +2 -0
  42. package/dist/auth/index.d.ts.map +1 -0
  43. package/dist/auth/index.js +2 -0
  44. package/dist/auth/index.js.map +1 -0
  45. package/dist/client.d.ts +100 -0
  46. package/dist/client.d.ts.map +1 -0
  47. package/dist/client.js +161 -0
  48. package/dist/client.js.map +1 -0
  49. package/dist/index.d.ts +9 -0
  50. package/dist/index.d.ts.map +1 -0
  51. package/dist/index.js +10 -0
  52. package/dist/index.js.map +1 -0
  53. package/dist/types/calendar.d.ts +42 -0
  54. package/dist/types/calendar.d.ts.map +1 -0
  55. package/dist/types/calendar.js +2 -0
  56. package/dist/types/calendar.js.map +1 -0
  57. package/dist/types/chat.d.ts +21 -0
  58. package/dist/types/chat.d.ts.map +1 -0
  59. package/dist/types/chat.js +2 -0
  60. package/dist/types/chat.js.map +1 -0
  61. package/dist/types/common.d.ts +77 -0
  62. package/dist/types/common.d.ts.map +1 -0
  63. package/dist/types/common.js +19 -0
  64. package/dist/types/common.js.map +1 -0
  65. package/dist/types/file.d.ts +34 -0
  66. package/dist/types/file.d.ts.map +1 -0
  67. package/dist/types/file.js +5 -0
  68. package/dist/types/file.js.map +1 -0
  69. package/dist/types/index.d.ts +11 -0
  70. package/dist/types/index.d.ts.map +1 -0
  71. package/dist/types/index.js +2 -0
  72. package/dist/types/index.js.map +1 -0
  73. package/dist/types/mail.d.ts +25 -0
  74. package/dist/types/mail.d.ts.map +1 -0
  75. package/dist/types/mail.js +2 -0
  76. package/dist/types/mail.js.map +1 -0
  77. package/dist/types/message.d.ts +90 -0
  78. package/dist/types/message.d.ts.map +1 -0
  79. package/dist/types/message.js +2 -0
  80. package/dist/types/message.js.map +1 -0
  81. package/dist/types/presence.d.ts +15 -0
  82. package/dist/types/presence.d.ts.map +1 -0
  83. package/dist/types/presence.js +5 -0
  84. package/dist/types/presence.js.map +1 -0
  85. package/dist/types/transcript.d.ts +12 -0
  86. package/dist/types/transcript.d.ts.map +1 -0
  87. package/dist/types/transcript.js +2 -0
  88. package/dist/types/transcript.js.map +1 -0
  89. package/dist/types/user.d.ts +9 -0
  90. package/dist/types/user.d.ts.map +1 -0
  91. package/dist/types/user.js +2 -0
  92. package/dist/types/user.js.map +1 -0
  93. package/dist/utils/index.d.ts +7 -0
  94. package/dist/utils/index.d.ts.map +1 -0
  95. package/dist/utils/index.js +6 -0
  96. package/dist/utils/index.js.map +1 -0
  97. package/dist/utils/markdown.d.ts +13 -0
  98. package/dist/utils/markdown.d.ts.map +1 -0
  99. package/dist/utils/markdown.js +106 -0
  100. package/dist/utils/markdown.js.map +1 -0
  101. package/dist/utils/odata.d.ts +17 -0
  102. package/dist/utils/odata.d.ts.map +1 -0
  103. package/dist/utils/odata.js +19 -0
  104. package/dist/utils/odata.js.map +1 -0
  105. package/dist/utils/sharepoint.d.ts +11 -0
  106. package/dist/utils/sharepoint.d.ts.map +1 -0
  107. package/dist/utils/sharepoint.js +17 -0
  108. package/dist/utils/sharepoint.js.map +1 -0
  109. package/dist/utils/teams.d.ts +34 -0
  110. package/dist/utils/teams.d.ts.map +1 -0
  111. package/dist/utils/teams.js +67 -0
  112. package/dist/utils/teams.js.map +1 -0
  113. package/dist/utils/vtt.d.ts +7 -0
  114. package/dist/utils/vtt.d.ts.map +1 -0
  115. package/dist/utils/vtt.js +43 -0
  116. package/dist/utils/vtt.js.map +1 -0
  117. package/package.json +54 -0
@@ -0,0 +1,100 @@
1
+ import { CalendarApi, ChatsApi, FilesApi, MailApi, MessagesApi, TranscriptsApi, UsersApi } from './api/index.js';
2
+ import type { AuthResult, GraphClientConfig } from './types/index.js';
3
+ import type { Client } from '@microsoft/microsoft-graph-client';
4
+ /**
5
+ * Microsoft Graph API client with typed domain APIs.
6
+ *
7
+ * Supports multiple authentication modes:
8
+ * 1. Device Code Auth - Interactive authentication that persists to disk
9
+ * 2. Pre-seeded Auth - Non-interactive using a previously obtained auth record
10
+ *
11
+ * @example
12
+ * ```typescript
13
+ * // Option 1: Device code auth (interactive)
14
+ * const client = new GraphClient({
15
+ * clientId: 'xxx',
16
+ * tenantId: 'yyy',
17
+ * authRecordPath: '~/.my-app-auth.json',
18
+ * });
19
+ * await client.authenticate(); // First time only
20
+ *
21
+ * // Option 2: Pre-seeded auth (non-interactive)
22
+ * const client = new GraphClient({
23
+ * clientId: 'xxx',
24
+ * tenantId: 'yyy',
25
+ * authRecord: process.env.MS_GRAPH_AUTH_RECORD,
26
+ * });
27
+ *
28
+ * // Use the APIs
29
+ * const user = await client.users.getCurrentUser();
30
+ * const chats = await client.chats.search({ memberName: 'John' });
31
+ * ```
32
+ */
33
+ export declare class GraphClient {
34
+ private authenticator;
35
+ private sdkClient;
36
+ private _users;
37
+ private _chats;
38
+ private _messages;
39
+ private _mail;
40
+ private _calendar;
41
+ private _files;
42
+ private _transcripts;
43
+ constructor(config: GraphClientConfig);
44
+ /**
45
+ * User operations: getCurrentUser, get, search, setPreferredPresence
46
+ */
47
+ get users(): UsersApi;
48
+ /**
49
+ * Chat operations: get, search, create
50
+ */
51
+ get chats(): ChatsApi;
52
+ /**
53
+ * Message operations: getChatMessages, sendChatMessage, updateChatMessage, search, setReaction, unsetReaction
54
+ */
55
+ get messages(): MessagesApi;
56
+ /**
57
+ * Mail operations: list, send
58
+ */
59
+ get mail(): MailApi;
60
+ /**
61
+ * Calendar operations: getEvents, createEvent, findMeetingTimes, cancelEvent
62
+ */
63
+ get calendar(): CalendarApi;
64
+ /**
65
+ * File operations: download, upload, update, grantPermission
66
+ */
67
+ get files(): FilesApi;
68
+ /**
69
+ * Transcript operations: getMeetingByJoinUrl, list, getContent
70
+ */
71
+ get transcripts(): TranscriptsApi;
72
+ /**
73
+ * Perform interactive device code authentication.
74
+ * Run this once to obtain and persist an auth record.
75
+ *
76
+ * @param onDeviceCode - Callback to display the device code to the user
77
+ * @returns The authentication result with serialized auth record
78
+ */
79
+ authenticate(onDeviceCode?: (info: {
80
+ userCode: string;
81
+ verificationUri: string;
82
+ message: string;
83
+ }) => void): Promise<AuthResult>;
84
+ /**
85
+ * Get the raw Microsoft Graph SDK client.
86
+ * Use this for operations not covered by the domain APIs.
87
+ */
88
+ getSDKClient(): Promise<Client>;
89
+ /**
90
+ * Initialize the client and all domain APIs.
91
+ * Call this before using any domain APIs.
92
+ */
93
+ initialize(): Promise<void>;
94
+ /**
95
+ * Clear the cached client and APIs.
96
+ * Forces recreation on next access.
97
+ */
98
+ clearCache(): void;
99
+ }
100
+ //# sourceMappingURL=client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAEjH,OAAO,KAAK,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,mCAAmC,CAAC;AAEhE;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,qBAAa,WAAW;IACtB,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,SAAS,CAAuB;IAGxC,OAAO,CAAC,MAAM,CAAyB;IACvC,OAAO,CAAC,MAAM,CAAyB;IACvC,OAAO,CAAC,SAAS,CAA4B;IAC7C,OAAO,CAAC,KAAK,CAAwB;IACrC,OAAO,CAAC,SAAS,CAA4B;IAC7C,OAAO,CAAC,MAAM,CAAyB;IACvC,OAAO,CAAC,YAAY,CAA+B;gBAEhC,MAAM,EAAE,iBAAiB;IAM5C;;OAEG;IACH,IAAW,KAAK,IAAI,QAAQ,CAK3B;IAED;;OAEG;IACH,IAAW,KAAK,IAAI,QAAQ,CAK3B;IAED;;OAEG;IACH,IAAW,QAAQ,IAAI,WAAW,CAKjC;IAED;;OAEG;IACH,IAAW,IAAI,IAAI,OAAO,CAKzB;IAED;;OAEG;IACH,IAAW,QAAQ,IAAI,WAAW,CAKjC;IAED;;OAEG;IACH,IAAW,KAAK,IAAI,QAAQ,CAK3B;IAED;;OAEG;IACH,IAAW,WAAW,IAAI,cAAc,CAKvC;IAID;;;;;;OAMG;IACU,YAAY,CACvB,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,eAAe,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,GAC5F,OAAO,CAAC,UAAU,CAAC;IAItB;;;OAGG;IACU,YAAY,IAAI,OAAO,CAAC,MAAM,CAAC;IAO5C;;;OAGG;IACU,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAWxC;;;OAGG;IACI,UAAU,IAAI,IAAI;CAW1B"}
package/dist/client.js ADDED
@@ -0,0 +1,161 @@
1
+ import { CalendarApi, ChatsApi, FilesApi, MailApi, MessagesApi, TranscriptsApi, UsersApi } from './api/index.js';
2
+ import { Authenticator } from './auth/index.js';
3
+ /**
4
+ * Microsoft Graph API client with typed domain APIs.
5
+ *
6
+ * Supports multiple authentication modes:
7
+ * 1. Device Code Auth - Interactive authentication that persists to disk
8
+ * 2. Pre-seeded Auth - Non-interactive using a previously obtained auth record
9
+ *
10
+ * @example
11
+ * ```typescript
12
+ * // Option 1: Device code auth (interactive)
13
+ * const client = new GraphClient({
14
+ * clientId: 'xxx',
15
+ * tenantId: 'yyy',
16
+ * authRecordPath: '~/.my-app-auth.json',
17
+ * });
18
+ * await client.authenticate(); // First time only
19
+ *
20
+ * // Option 2: Pre-seeded auth (non-interactive)
21
+ * const client = new GraphClient({
22
+ * clientId: 'xxx',
23
+ * tenantId: 'yyy',
24
+ * authRecord: process.env.MS_GRAPH_AUTH_RECORD,
25
+ * });
26
+ *
27
+ * // Use the APIs
28
+ * const user = await client.users.getCurrentUser();
29
+ * const chats = await client.chats.search({ memberName: 'John' });
30
+ * ```
31
+ */
32
+ export class GraphClient {
33
+ authenticator;
34
+ sdkClient = null;
35
+ // Domain APIs
36
+ _users = null;
37
+ _chats = null;
38
+ _messages = null;
39
+ _mail = null;
40
+ _calendar = null;
41
+ _files = null;
42
+ _transcripts = null;
43
+ constructor(config) {
44
+ this.authenticator = new Authenticator(config);
45
+ }
46
+ // Domain API accessors (getters come before methods)
47
+ /**
48
+ * User operations: getCurrentUser, get, search, setPreferredPresence
49
+ */
50
+ get users() {
51
+ if (!this._users) {
52
+ throw new Error('Client not initialized. Call initialize() first.');
53
+ }
54
+ return this._users;
55
+ }
56
+ /**
57
+ * Chat operations: get, search, create
58
+ */
59
+ get chats() {
60
+ if (!this._chats) {
61
+ throw new Error('Client not initialized. Call initialize() first.');
62
+ }
63
+ return this._chats;
64
+ }
65
+ /**
66
+ * Message operations: getChatMessages, sendChatMessage, updateChatMessage, search, setReaction, unsetReaction
67
+ */
68
+ get messages() {
69
+ if (!this._messages) {
70
+ throw new Error('Client not initialized. Call initialize() first.');
71
+ }
72
+ return this._messages;
73
+ }
74
+ /**
75
+ * Mail operations: list, send
76
+ */
77
+ get mail() {
78
+ if (!this._mail) {
79
+ throw new Error('Client not initialized. Call initialize() first.');
80
+ }
81
+ return this._mail;
82
+ }
83
+ /**
84
+ * Calendar operations: getEvents, createEvent, findMeetingTimes, cancelEvent
85
+ */
86
+ get calendar() {
87
+ if (!this._calendar) {
88
+ throw new Error('Client not initialized. Call initialize() first.');
89
+ }
90
+ return this._calendar;
91
+ }
92
+ /**
93
+ * File operations: download, upload, update, grantPermission
94
+ */
95
+ get files() {
96
+ if (!this._files) {
97
+ throw new Error('Client not initialized. Call initialize() first.');
98
+ }
99
+ return this._files;
100
+ }
101
+ /**
102
+ * Transcript operations: getMeetingByJoinUrl, list, getContent
103
+ */
104
+ get transcripts() {
105
+ if (!this._transcripts) {
106
+ throw new Error('Client not initialized. Call initialize() first.');
107
+ }
108
+ return this._transcripts;
109
+ }
110
+ // Public methods
111
+ /**
112
+ * Perform interactive device code authentication.
113
+ * Run this once to obtain and persist an auth record.
114
+ *
115
+ * @param onDeviceCode - Callback to display the device code to the user
116
+ * @returns The authentication result with serialized auth record
117
+ */
118
+ async authenticate(onDeviceCode) {
119
+ return this.authenticator.authenticate(onDeviceCode);
120
+ }
121
+ /**
122
+ * Get the raw Microsoft Graph SDK client.
123
+ * Use this for operations not covered by the domain APIs.
124
+ */
125
+ async getSDKClient() {
126
+ if (!this.sdkClient) {
127
+ this.sdkClient = await this.authenticator.getClient();
128
+ }
129
+ return this.sdkClient;
130
+ }
131
+ /**
132
+ * Initialize the client and all domain APIs.
133
+ * Call this before using any domain APIs.
134
+ */
135
+ async initialize() {
136
+ const client = await this.getSDKClient();
137
+ this._users = new UsersApi(client);
138
+ this._chats = new ChatsApi(client);
139
+ this._messages = new MessagesApi(client);
140
+ this._mail = new MailApi(client);
141
+ this._calendar = new CalendarApi(client);
142
+ this._files = new FilesApi(client);
143
+ this._transcripts = new TranscriptsApi(client);
144
+ }
145
+ /**
146
+ * Clear the cached client and APIs.
147
+ * Forces recreation on next access.
148
+ */
149
+ clearCache() {
150
+ this.authenticator.clearCache();
151
+ this.sdkClient = null;
152
+ this._users = null;
153
+ this._chats = null;
154
+ this._messages = null;
155
+ this._mail = null;
156
+ this._calendar = null;
157
+ this._files = null;
158
+ this._transcripts = null;
159
+ }
160
+ }
161
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AACjH,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAIhD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,MAAM,OAAO,WAAW;IACd,aAAa,CAAgB;IAC7B,SAAS,GAAkB,IAAI,CAAC;IAExC,cAAc;IACN,MAAM,GAAoB,IAAI,CAAC;IAC/B,MAAM,GAAo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C,IAAI,CAAC,YAAY,GAAG,IAAI,cAAc,CAAC,MAAM,CAAC,CAAC;IACjD,CAAC;IAED;;;OAGG;IACI,UAAU;QACf,IAAI,CAAC,aAAa,CAAC,UAAU,EAAE,CAAC;QAChC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACnB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACnB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;QAClB,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACnB,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;IAC3B,CAAC;CACF"}
@@ -0,0 +1,9 @@
1
+ export { GraphClient } from './client.js';
2
+ export { BaseApi, CalendarApi, ChatsApi, FilesApi, MailApi, MessagesApi, TranscriptsApi, UsersApi, } from './api/index.js';
3
+ export { Authenticator } from './auth/index.js';
4
+ export { encodeSharePointUrl, escapeODataString, extractChatIdFromJoinUrl, extractMeetingInfoFromJoinUrl, markdownToHtml, parseVttToText, sanitizeHtml, } from './utils/index.js';
5
+ export type { MeetingInfo } from './utils/index.js';
6
+ export type { AuthResult, GraphApiResponse, GraphClientConfig, GraphError, GetUserParams, SearchUsersParams, User, PreferredPresenceAvailability, PresenceAvailability, SetPreferredPresenceParams, SetPresenceParams, Chat, ChatType, ConversationMember, CreateChatParams, GetChatParams, SearchChatsParams, SearchChatsResult, ChatMessage, ChatMessageAttachment, ChatMessageImportance, ChatMessageInfo, ChatMessageMention, GetChatMessagesParams, ItemBody, SearchHit, SearchHitsContainer, SearchMessagesParams, SearchRequest, SearchResponse, SearchResult, SendChatMessageParams, SetMessageReactionParams, UnsetMessageReactionParams, UpdateChatMessageParams, EmailAddress, ListMailsParams, Message, SendMailParams, Attendee, CancelCalendarEventParams, CreateCalendarEventParams, DateTimeTimeZone, Event, FindMeetingTimesParams, GetCalendarEventsParams, Location, MeetingTimeSuggestion, MeetingTimeSuggestionsResult, NullableOption, DownloadSharePointFileParams, DownloadSharePointFileResult, GrantFilePermissionParams, UpdateSharePointFileParams, UpdateSharePointFileResult, UploadToSharePointParams, UploadToSharePointResult, CallTranscript, GetMeetingByJoinUrlParams, GetTranscriptContentParams, ListTranscriptsParams, OnlineMeeting, } from './types/index.js';
7
+ export { DEFAULT_SCOPES } from './types/index.js';
8
+ export type { Client as GraphSDKClient, ResponseType } from '@microsoft/microsoft-graph-client';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG1C,OAAO,EACL,OAAO,EACP,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,WAAW,EACX,cAAc,EACd,QAAQ,GACT,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAGhD,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,wBAAwB,EACxB,6BAA6B,EAC7B,cAAc,EACd,cAAc,EACd,YAAY,GACb,MAAM,kBAAkB,CAAC;AAC1B,YAAY,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAGpD,YAAY,EAEV,UAAU,EACV,gBAAgB,EAChB,iBAAiB,EACjB,UAAU,EAEV,aAAa,EACb,iBAAiB,EACjB,IAAI,EAEJ,6BAA6B,EAC7B,oBAAoB,EACpB,0BAA0B,EAC1B,iBAAiB,EAEjB,IAAI,EACJ,QAAQ,EACR,kBAAkB,EAClB,gBAAgB,EAChB,aAAa,EACb,iBAAiB,EACjB,iBAAiB,EAEjB,WAAW,EACX,qBAAqB,EACrB,qBAAqB,EACrB,eAAe,EACf,kBAAkB,EAClB,qBAAqB,EACrB,QAAQ,EACR,SAAS,EACT,mBAAmB,EACnB,oBAAoB,EACpB,aAAa,EACb,cAAc,EACd,YAAY,EACZ,qBAAqB,EACrB,wBAAwB,EACxB,0BAA0B,EAC1B,uBAAuB,EAEvB,YAAY,EACZ,eAAe,EACf,OAAO,EACP,cAAc,EAEd,QAAQ,EACR,yBAAyB,EACzB,yBAAyB,EACzB,gBAAgB,EAChB,KAAK,EACL,sBAAsB,EACtB,uBAAuB,EACvB,QAAQ,EACR,qBAAqB,EACrB,4BAA4B,EAC5B,cAAc,EAEd,4BAA4B,EAC5B,4BAA4B,EAC5B,yBAAyB,EACzB,0BAA0B,EAC1B,0BAA0B,EAC1B,wBAAwB,EACxB,wBAAwB,EAExB,cAAc,EACd,yBAAyB,EACzB,0BAA0B,EAC1B,qBAAqB,EACrB,aAAa,GACd,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAGlD,YAAY,EAAE,MAAM,IAAI,cAAc,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,10 @@
1
+ // Main client export
2
+ export { GraphClient } from './client.js';
3
+ // Domain API exports
4
+ export { BaseApi, CalendarApi, ChatsApi, FilesApi, MailApi, MessagesApi, TranscriptsApi, UsersApi, } from './api/index.js';
5
+ // Auth exports
6
+ export { Authenticator } from './auth/index.js';
7
+ // Utility exports
8
+ export { encodeSharePointUrl, escapeODataString, extractChatIdFromJoinUrl, extractMeetingInfoFromJoinUrl, markdownToHtml, parseVttToText, sanitizeHtml, } from './utils/index.js';
9
+ export { DEFAULT_SCOPES } from './types/index.js';
10
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qBAAqB;AACrB,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C,qBAAqB;AACrB,OAAO,EACL,OAAO,EACP,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,WAAW,EACX,cAAc,EACd,QAAQ,GACT,MAAM,gBAAgB,CAAC;AAExB,eAAe;AACf,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,kBAAkB;AAClB,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,wBAAwB,EACxB,6BAA6B,EAC7B,cAAc,EACd,cAAc,EACd,YAAY,GACb,MAAM,kBAAkB,CAAC;AA8E1B,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,42 @@
1
+ export type { Attendee, DateTimeTimeZone, Event, Location, MeetingTimeSuggestion, MeetingTimeSuggestionsResult, NullableOption, } from '@microsoft/microsoft-graph-types';
2
+ export interface GetCalendarEventsParams {
3
+ /** ISO datetime - start of time range (default: now) */
4
+ from?: string;
5
+ /** ISO datetime - end of time range (default: 30 days from now) */
6
+ to?: string;
7
+ limit?: number;
8
+ /** Filter by event subject */
9
+ subject?: string;
10
+ }
11
+ export interface CreateCalendarEventParams {
12
+ subject: string;
13
+ /** ISO datetime */
14
+ startDateTime: string;
15
+ /** ISO datetime */
16
+ endDateTime: string;
17
+ body: string;
18
+ attendees?: (string | {
19
+ email: string;
20
+ name?: string;
21
+ type?: 'required' | 'optional' | 'resource';
22
+ })[];
23
+ location?: string;
24
+ isOnlineMeeting?: boolean;
25
+ }
26
+ export interface CancelCalendarEventParams {
27
+ eventId: string;
28
+ comment?: string;
29
+ }
30
+ export interface FindMeetingTimesParams {
31
+ attendees: {
32
+ email: string;
33
+ type: 'required' | 'optional';
34
+ }[];
35
+ /** ISO 8601 UTC format (e.g., '2025-01-01T09:00:00Z') */
36
+ startDateTime: string;
37
+ /** ISO 8601 UTC format */
38
+ endDateTime: string;
39
+ /** ISO 8601 duration format (e.g., 'PT30M', 'PT1H') */
40
+ meetingDuration: string;
41
+ }
42
+ //# sourceMappingURL=calendar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3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 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=calendar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calendar.js","sourceRoot":"","sources":["../../src/types/calendar.ts"],"names":[],"mappings":""}
@@ -0,0 +1,21 @@
1
+ export type { Chat, ChatType, ConversationMember } from '@microsoft/microsoft-graph-types';
2
+ export interface GetChatParams {
3
+ chatId: string;
4
+ }
5
+ export interface SearchChatsParams {
6
+ searchTerm?: string;
7
+ memberName?: string;
8
+ chatTypes?: ('oneOnOne' | 'group' | 'meeting')[];
9
+ limit?: number;
10
+ skipToken?: string;
11
+ }
12
+ export interface SearchChatsResult {
13
+ chats: import('@microsoft/microsoft-graph-types').Chat[];
14
+ nextToken?: string;
15
+ }
16
+ export interface CreateChatParams {
17
+ chatType: 'oneOnOne' | 'group';
18
+ members: import('@microsoft/microsoft-graph-types').ConversationMember[];
19
+ topic?: string;
20
+ }
21
+ //# sourceMappingURL=chat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat.d.ts","sourceRoot":"","sources":["../../src/types/chat.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,IAAI,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAM3F,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,iBAAiB;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,CAAC,UAAU,GAAG,OAAO,GAAG,SAAS,CAAC,EAAE,CAAC;IACjD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,OAAO,kCAAkC,EAAE,IAAI,EAAE,CAAC;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,UAAU,GAAG,OAAO,CAAC;IAC/B,OAAO,EAAE,OAAO,kCAAkC,EAAE,kBAAkB,EAAE,CAAC;IACzE,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=chat.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat.js","sourceRoot":"","sources":["../../src/types/chat.ts"],"names":[],"mappings":""}
@@ -0,0 +1,77 @@
1
+ import type { AuthenticationRecord } from '@azure/identity';
2
+ /**
3
+ * Configuration options for GraphClient.
4
+ * Supports multiple authentication modes.
5
+ */
6
+ export interface GraphClientConfig {
7
+ /**
8
+ * Azure AD application (client) ID.
9
+ */
10
+ clientId: string;
11
+ /**
12
+ * Azure AD tenant ID.
13
+ */
14
+ tenantId: string;
15
+ /**
16
+ * Microsoft Graph API scopes to request.
17
+ * If not provided, uses a default set of common scopes.
18
+ */
19
+ scopes?: string[];
20
+ /**
21
+ * Path to store/load the authentication record.
22
+ * Used for device code auth flow persistence.
23
+ * Default: ~/.microsoft-graph-client-auth-record.json
24
+ */
25
+ authRecordPath?: string;
26
+ /**
27
+ * Pre-serialized authentication record JSON string.
28
+ * Use this for environments where auth was performed elsewhere
29
+ * (e.g., CI/CD, Kubernetes) and the record is passed via env var.
30
+ */
31
+ authRecord?: string;
32
+ /**
33
+ * Optional name for the token cache.
34
+ * Default: 'microsoft-graph-client'
35
+ */
36
+ cacheName?: string;
37
+ }
38
+ /**
39
+ * Default scopes for Microsoft Graph API.
40
+ * These cover common operations like reading user info, chats, mail, calendar, and files.
41
+ */
42
+ export declare const DEFAULT_SCOPES: string[];
43
+ /**
44
+ * Standard paginated response from Microsoft Graph API.
45
+ */
46
+ export interface GraphApiResponse<T> {
47
+ value?: T[];
48
+ '@odata.count'?: number;
49
+ '@odata.nextLink'?: string;
50
+ }
51
+ /**
52
+ * Error response from Microsoft Graph API.
53
+ */
54
+ export interface GraphError {
55
+ code: string;
56
+ message: string;
57
+ innerError?: {
58
+ code?: string;
59
+ message?: string;
60
+ 'request-id'?: string;
61
+ date?: string;
62
+ };
63
+ }
64
+ /**
65
+ * Result of the authentication process.
66
+ */
67
+ export interface AuthResult {
68
+ /**
69
+ * The authentication record that can be serialized and stored.
70
+ */
71
+ record: AuthenticationRecord;
72
+ /**
73
+ * Serialized JSON string of the authentication record.
74
+ */
75
+ serialized: string;
76
+ }
77
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AAM5D;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAElB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,UAa1B,CAAC;AAMF;;GAEG;AACH,MAAM,WAAW,gBAAgB,CAAC,CAAC;IACjC,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC;IACZ,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE;QACX,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;CACH;AAMD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB;;OAEG;IACH,MAAM,EAAE,oBAAoB,CAAC;IAE7B;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Default scopes for Microsoft Graph API.
3
+ * These cover common operations like reading user info, chats, mail, calendar, and files.
4
+ */
5
+ export const DEFAULT_SCOPES = [
6
+ 'User.Read',
7
+ 'User.ReadBasic.All',
8
+ 'Team.ReadBasic.All',
9
+ 'Channel.ReadBasic.All',
10
+ 'ChannelMessage.Read.All',
11
+ 'ChannelMessage.Send',
12
+ 'TeamMember.Read.All',
13
+ 'Chat.ReadBasic',
14
+ 'Chat.ReadWrite',
15
+ 'Calendars.ReadWrite',
16
+ 'Presence.ReadWrite',
17
+ 'Files.ReadWrite.All',
18
+ ];
19
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/types/common.ts"],"names":[],"mappings":"AAgDA;;;GAGG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,WAAW;IACX,oBAAoB;IACpB,oBAAoB;IACpB,uBAAuB;IACvB,yBAAyB;IACzB,qBAAqB;IACrB,qBAAqB;IACrB,gBAAgB;IAChB,gBAAgB;IAChB,qBAAqB;IACrB,oBAAoB;IACpB,qBAAqB;CACtB,CAAC"}
@@ -0,0 +1,34 @@
1
+ export interface DownloadSharePointFileParams {
2
+ contentUrl: string;
3
+ }
4
+ export interface DownloadSharePointFileResult {
5
+ data: Buffer;
6
+ filename: string;
7
+ size: number;
8
+ itemId: string;
9
+ driveId?: string;
10
+ }
11
+ export interface UploadToSharePointParams {
12
+ filePath: string;
13
+ }
14
+ export interface UploadToSharePointResult {
15
+ itemId: string;
16
+ driveId?: string;
17
+ shareUrl?: string;
18
+ }
19
+ export interface UpdateSharePointFileParams {
20
+ itemId: string;
21
+ driveId: string;
22
+ filePath: string;
23
+ }
24
+ export interface UpdateSharePointFileResult {
25
+ filename: string;
26
+ size: number;
27
+ }
28
+ export interface GrantFilePermissionParams {
29
+ itemId: string;
30
+ driveId: string;
31
+ emails: string[];
32
+ role: 'read' | 'write';
33
+ }
34
+ //# sourceMappingURL=file.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../src/types/file.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,4BAA4B;IAC3C,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,0BAA0B;IACzC,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB"}
@@ -0,0 +1,5 @@
1
+ // =============================================================================
2
+ // SharePoint/OneDrive Method Parameters and Results
3
+ // =============================================================================
4
+ export {};
5
+ //# sourceMappingURL=file.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file.js","sourceRoot":"","sources":["../../src/types/file.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,oDAAoD;AACpD,gFAAgF"}
@@ -0,0 +1,11 @@
1
+ export type { AuthResult, GraphApiResponse, GraphClientConfig, GraphError } from './common.js';
2
+ export { DEFAULT_SCOPES } from './common.js';
3
+ export type { GetUserParams, SearchUsersParams, User } from './user.js';
4
+ export type { PreferredPresenceAvailability, PresenceAvailability, SetPreferredPresenceParams, SetPresenceParams, } from './presence.js';
5
+ export type { Chat, ChatType, ConversationMember, CreateChatParams, GetChatParams, SearchChatsParams, SearchChatsResult, } from './chat.js';
6
+ export type { ChatMessage, ChatMessageAttachment, ChatMessageImportance, ChatMessageInfo, ChatMessageMention, GetChatMessagesParams, ItemBody, SearchHit, SearchHitsContainer, SearchMessagesParams, SearchRequest, SearchResponse, SearchResult, SendChatMessageParams, SetMessageReactionParams, UnsetMessageReactionParams, UpdateChatMessageParams, } from './message.js';
7
+ export type { EmailAddress, ListMailsParams, Message, SendMailParams } from './mail.js';
8
+ export type { Attendee, CancelCalendarEventParams, CreateCalendarEventParams, DateTimeTimeZone, Event, FindMeetingTimesParams, GetCalendarEventsParams, Location, MeetingTimeSuggestion, MeetingTimeSuggestionsResult, NullableOption, } from './calendar.js';
9
+ export type { DownloadSharePointFileParams, DownloadSharePointFileResult, GrantFilePermissionParams, UpdateSharePointFileParams, UpdateSharePointFileResult, UploadToSharePointParams, UploadToSharePointResult, } from './file.js';
10
+ export type { CallTranscript, GetMeetingByJoinUrlParams, GetTranscriptContentParams, ListTranscriptsParams, OnlineMeeting, } from './transcript.js';
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,UAAU,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,aAAa,C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"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,25 @@
1
+ export type { Message, EmailAddress } from '@microsoft/microsoft-graph-types';
2
+ export interface ListMailsParams {
3
+ limit?: number;
4
+ /** ISO datetime - messages received after this time */
5
+ since?: string;
6
+ /** ISO datetime - messages received before this time */
7
+ until?: string;
8
+ unreadOnly?: boolean;
9
+ hasAttachments?: boolean;
10
+ /** Filter by sender email address */
11
+ from?: string;
12
+ /** Include full message body in response */
13
+ includeBody?: boolean;
14
+ /** Format for the body: 'text' or 'html' (default: 'html') */
15
+ bodyFormat?: 'text' | 'html';
16
+ }
17
+ export interface SendMailParams {
18
+ to: string[];
19
+ subject: string;
20
+ body: string;
21
+ bodyType?: 'text' | 'html';
22
+ cc?: string[];
23
+ bcc?: string[];
24
+ }
25
+ //# sourceMappingURL=mail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mail.d.ts","sourceRoot":"","sources":["../../src/types/mail.ts"],"names":[],"mappings":"AACA,YAAY,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAM9E,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uDAAuD;IACvD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wDAAwD;IACxD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,qCAAqC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,4CAA4C;IAC5C,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,8DAA8D;IAC9D,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,EAAE,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,EAAE,CAAC;CAChB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=mail.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mail.js","sourceRoot":"","sources":["../../src/types/mail.ts"],"names":[],"mappings":""}