@memberjunction/ai-bridge-server 6.2.0-edge.4 → 6.2.0-edge.6

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.
@@ -1,3 +1,4 @@
1
+ import type { BaseCommunicationProvider, CalendarEvent, CalendarTarget, ProviderCredentialsBase } from '@memberjunction/communication-types';
1
2
  /**
2
3
  * One attendee on a normalized calendar invite. Platform-agnostic — Graph's `attendees[].emailAddress`
3
4
  * and Google's `attendees[].email` both normalize to this shape.
@@ -67,13 +68,13 @@ export interface CalendarPollResult {
67
68
  * The **injectable calendar-API seam** — the per-provider calendar backend the {@link CalendarWatcher}
68
69
  * polls. This is the bridge program's "documented seam, not a hard dependency" pattern (mirroring the
69
70
  * bridge SDK seams and `IRealtimeSession`): the watcher depends only on this interface, so it is fully
70
- * unit-testable with an in-memory mock and production binds the real Microsoft Graph / Google Calendar
71
- * client behind it.
71
+ * unit-testable with an in-memory mock and production binds a Communication provider (Microsoft Graph,
72
+ * Google Calendar) behind it.
72
73
  *
73
74
  * An implementation watches **one** agent identity's calendar (the identity value is passed per call
74
75
  * so a single adapter instance can serve many identities on the same provider/credential).
75
76
  *
76
- * @see {@link GraphCalendarSource} / {@link GoogleCalendarSource} for the production binding stubs.
77
+ * @see {@link GraphCalendarSource} / {@link GoogleCalendarSource}, which read through the Communication providers.
77
78
  */
78
79
  export interface ICalendarSource {
79
80
  /**
@@ -90,284 +91,65 @@ export interface ICalendarSource {
90
91
  ListUpcomingInvites(identityValue: string, sinceCursor?: string): Promise<CalendarPollResult>;
91
92
  }
92
93
  /**
93
- * The error thrown by the production-binding stubs ({@link GraphCalendarSource},
94
- * {@link GoogleCalendarSource}) until a real calendar API is wired. Distinct type so a host can
95
- * detect "not yet bound" vs. a genuine transport failure.
94
+ * The error a {@link CommunicationCalendarSource} throws when it was built with no provider. Distinct
95
+ * type so a host can detect "not yet bound" vs. a genuine transport failure.
96
96
  */
97
97
  export declare class CalendarSourceNotBoundError extends Error {
98
98
  constructor(providerLabel: string);
99
99
  }
100
- /** A Graph `dateTimeTimeZone` value (`{ dateTime, timeZone }`) as `/me/events` reports start/end. */
101
- export interface GraphDateTimeTimeZone {
102
- /** The local date-time string (e.g. `2026-06-24T15:00:00.0000000`). */
103
- dateTime?: string;
104
- /** The IANA/Windows time-zone name (e.g. `UTC`, `Pacific Standard Time`). `UTC` is the common case. */
105
- timeZone?: string;
106
- }
107
- /** A Graph `emailAddress` value (`{ address, name }`) used by attendees + organizer. */
108
- export interface GraphEmailAddress {
109
- /** The email address. */
110
- address?: string;
111
- /** The display name, when Graph provides one. */
112
- name?: string;
113
- }
114
- /** One Graph attendee (`event.attendees[]`). */
115
- export interface GraphAttendee {
116
- /** The attendee's email-address block. */
117
- emailAddress?: GraphEmailAddress;
118
- /** The attendee's response (`{ response, time }`). */
119
- status?: {
120
- response?: string;
121
- };
122
- }
123
- /** The Graph `onlineMeeting` facet (`event.onlineMeeting.joinUrl`). */
124
- export interface GraphOnlineMeeting {
125
- /** The online-meeting join URL. */
126
- joinUrl?: string;
127
- }
128
- /** The Graph `event.body` facet — HTML/text body that may carry a join URL when `onlineMeeting` is absent. */
129
- export interface GraphItemBody {
130
- /** `'html'` or `'text'`. */
131
- contentType?: string;
132
- /** The body content (HTML or plain text). */
133
- content?: string;
134
- }
135
- /** The subset of a Graph calendar `event` resource this adapter normalizes. */
136
- export interface GraphCalendarEvent {
137
- /** Graph `event.id` — the stable external event id. */
138
- id?: string;
139
- /** Graph `event.subject` — the meeting title. */
140
- subject?: string;
141
- /** Graph `event.onlineMeeting.joinUrl`. */
142
- onlineMeeting?: GraphOnlineMeeting;
143
- /** Graph `event.onlineMeetingUrl` (legacy flat field, when present). */
144
- onlineMeetingUrl?: string;
145
- /** Graph `event.body` — searched for a join URL when no structured field is present. */
146
- body?: GraphItemBody;
147
- /** Graph `event.start`. */
148
- start?: GraphDateTimeTimeZone;
149
- /** Graph `event.end`. */
150
- end?: GraphDateTimeTimeZone;
151
- /** Graph `event.attendees`. */
152
- attendees?: GraphAttendee[];
153
- /** Graph `event.organizer.emailAddress`. */
154
- organizer?: {
155
- emailAddress?: GraphEmailAddress;
156
- };
157
- }
158
- /** One page of Graph delta results — the events + the cursor for the next call. */
159
- export interface GraphEventPage {
160
- /** The events on this page. */
161
- value: GraphCalendarEvent[];
162
- /** Graph `@odata.nextLink` — present when more pages remain in this poll. */
163
- nextLink?: string;
164
- /** Graph `@odata.deltaLink` — present on the final page; becomes the next poll's `sinceCursor`. */
165
- deltaLink?: string;
100
+ /** The one provider operation a calendar source uses. Any `BaseCommunicationProvider` satisfies it. */
101
+ export type CalendarSyncProvider = Pick<BaseCommunicationProvider, 'SyncEvents'>;
102
+ /** Options for {@link CommunicationCalendarSource}. */
103
+ export interface CommunicationCalendarSourceOptions {
104
+ /** How far ahead (days) the first poll, or a poll after a refused cursor, reads. Defaults to 30. */
105
+ LookaheadDays?: number;
106
+ /** Clock seam for the first-poll window. Defaults to `Date.now`. */
107
+ Now?: () => number;
166
108
  }
167
109
  /**
168
- * The minimal Microsoft Graph calendar surface {@link GraphCalendarSource} drives. A production wiring
169
- * implements this over `@microsoft/microsoft-graph-client` — `GET /users/{userId}/calendarView/delta`
170
- * (or `/me/events/delta`), following `@odata.nextLink` page-to-page and capturing the final
171
- * `@odata.deltaLink`. Tests inject a fake. NO Graph SDK types leak through this surface.
172
- */
173
- export interface IGraphCalendarLike {
174
- /**
175
- * Lists one page of calendar events for `userId`. `deltaLink` is the opaque cursor from a prior
176
- * poll's final page (or `undefined` for the first poll); `nextLink` is the in-poll continuation
177
- * token. The adapter pages by following `nextLink` until the surface returns a `deltaLink`.
178
- *
179
- * @param userId The mailbox/identity address whose calendar to read.
180
- * @param cursor The Graph delta/next link to resume from (opaque), or `undefined` to start fresh.
181
- */
182
- listEvents(userId: string, cursor?: string): Promise<GraphEventPage>;
183
- }
184
- /**
185
- * **Pure** parse of a Graph {@link GraphDateTimeTimeZone} to a UTC {@link Date}. Treats a missing or
186
- * `UTC`/`Z` time zone as UTC (the common case for Graph delta queries, which can be requested in UTC);
187
- * for a non-UTC named zone it parses the wall-clock string and appends `Z` (best-effort — production
188
- * SHOULD request UTC via the `Prefer: outlook.timezone="UTC"` header). Returns `null` on absent/invalid.
189
- */
190
- export declare function ParseGraphDateTime(value?: GraphDateTimeTimeZone): Date | null;
191
- /** @deprecated Use {@link ParseGraphDateTime}. */
192
- export declare function parseGraphDateTime(value?: GraphDateTimeTimeZone): Date | null;
193
- /** Maps a Graph attendee `status.response` to the normalized {@link CalendarInviteAttendee.ResponseStatus}. */
194
- export declare function MapGraphResponseStatus(response?: string): CalendarInviteAttendee['ResponseStatus'] | undefined;
195
- /** @deprecated Use {@link MapGraphResponseStatus}. */
196
- export declare function mapGraphResponseStatus(response?: string): CalendarInviteAttendee['ResponseStatus'] | undefined;
197
- /**
198
- * **Pure** extraction of an online-meeting join URL from a Graph event. Prefers the structured
199
- * `onlineMeeting.joinUrl`, then the legacy flat `onlineMeetingUrl`, then the first Teams `meetup-join`
200
- * URL found in the event body (HTML or text). Returns `undefined` when no join URL is present.
201
- */
202
- export declare function ExtractGraphJoinUrl(event: GraphCalendarEvent): string | undefined;
203
- /** @deprecated Use {@link ExtractGraphJoinUrl}. */
204
- export declare function extractGraphJoinUrl(event: GraphCalendarEvent): string | undefined;
205
- /**
206
- * **Pure** normalization of one Graph calendar event to a {@link NormalizedCalendarInvite}. Skips
207
- * (returns `null`) an event with no id or no resolvable start time, so the caller can drop it cleanly.
208
- */
209
- export declare function NormalizeGraphEvent(event: GraphCalendarEvent): NormalizedCalendarInvite | null;
210
- /** @deprecated Use {@link NormalizeGraphEvent}. */
211
- export declare function normalizeGraphEvent(event: GraphCalendarEvent): NormalizedCalendarInvite | null;
212
- /**
213
- * **Production binding** for Microsoft Graph calendars over an injected {@link IGraphCalendarLike}
214
- * surface, so it builds + unit-tests with no Graph SDK install and no network.
215
- *
216
- * Pages a Graph delta poll: starting from `sinceCursor` (a prior `@odata.deltaLink`), it follows
217
- * `@odata.nextLink` page-to-page, normalizing every event via {@link normalizeGraphEvent}, until the
218
- * surface returns a `@odata.deltaLink` — which becomes the {@link CalendarPollResult.NextCursor} for the
219
- * next poll. Credentials are resolved upstream (the host binds {@link IGraphCalendarLike} with a Graph
220
- * client authenticated from the provider `Configuration` via MJ's credential system — never inline).
110
+ * An {@link ICalendarSource} over a Communication provider's `SyncEvents`.
221
111
  *
222
- * When no surface is supplied it preserves the original not-bound behavior, throwing
223
- * {@link CalendarSourceNotBoundError} so a misconfigured deployment fails loudly.
224
- *
225
- * @remarks **TODO (production):** bind `@microsoft/microsoft-graph-client` (an optionalDependency,
226
- * loaded only when a Graph-backed identity is configured), request UTC via
227
- * `Prefer: outlook.timezone="UTC"`, and inject it as {@link IGraphCalendarLike}.
228
- */
229
- export declare class GraphCalendarSource implements ICalendarSource {
230
- private readonly graph?;
112
+ * The first poll reads `[now, now + LookaheadDays]`; later polls pass the provider's token back as
113
+ * the cursor. A token the provider refuses (expired) is dropped and the window is read again, which
114
+ * the watcher's dedupe makes harmless. Removed and cancelled events are not invites and are skipped.
115
+ */
116
+ export declare class CommunicationCalendarSource implements ICalendarSource {
117
+ private readonly provider?;
118
+ private readonly credentials?;
119
+ private readonly options;
120
+ private readonly providerLabel;
231
121
  /**
232
- * @param graph The injected Graph calendar surface. Omit to preserve the not-bound seam behavior
233
- * (every poll throws {@link CalendarSourceNotBoundError}).
122
+ * @param provider The communication provider to read through. Omit to keep the not-bound
123
+ * behaviour (every poll throws {@link CalendarSourceNotBoundError}).
124
+ * @param credentials Passed to every call (for Graph, `{ accessToken }` with a bot token).
125
+ * @param options Window and clock settings.
126
+ * @param providerLabel Names the provider in errors.
234
127
  */
235
- constructor(graph?: IGraphCalendarLike);
128
+ constructor(provider?: CalendarSyncProvider, credentials?: ProviderCredentialsBase, options?: CommunicationCalendarSourceOptions, providerLabel?: string);
236
129
  /** @inheritdoc */
237
130
  ListUpcomingInvites(identityValue: string, sinceCursor?: string): Promise<CalendarPollResult>;
131
+ /** Whose calendar a poll reads. The identity's address, in the account's default calendar. */
132
+ protected BuildTarget(identityValue: string): CalendarTarget;
133
+ private sync;
238
134
  }
239
- /** A Google `EventDateTime` (`{ dateTime, date, timeZone }`). `dateTime` is RFC3339 with offset. */
240
- export interface GoogleEventDateTime {
241
- /** RFC3339 timed value with offset (e.g. `2026-06-24T15:00:00-07:00` or `…Z`). */
242
- dateTime?: string;
243
- /** All-day `date` value (`YYYY-MM-DD`) — treated as UTC midnight when no `dateTime` is present. */
244
- date?: string;
245
- /** The IANA time zone, when supplied. */
246
- timeZone?: string;
247
- }
248
- /** One Google `Event.attendees[]`. */
249
- export interface GoogleAttendee {
250
- /** The attendee's email address. */
251
- email?: string;
252
- /** The attendee's display name, when present. */
253
- displayName?: string;
254
- /** Google response status (`accepted` / `declined` / `tentative` / `needsAction`). */
255
- responseStatus?: string;
256
- /** Whether this attendee is the organizer. */
257
- organizer?: boolean;
258
- }
259
- /** One Google `conferenceData.entryPoints[]`. */
260
- export interface GoogleConferenceEntryPoint {
261
- /** Entry-point type (`video` / `phone` / `more` / `sip`). Only `video` carries a join URL we use. */
262
- entryPointType?: string;
263
- /** The entry-point URI (the join URL for `video`). */
264
- uri?: string;
265
- }
266
- /** The subset of a Google Calendar `Event` resource this adapter normalizes. */
267
- export interface GoogleCalendarEvent {
268
- /** Google `event.id` — the stable external event id. */
269
- id?: string;
270
- /** Google `event.summary` — the meeting title. */
271
- summary?: string;
272
- /** Google `event.hangoutLink` — the Meet join URL (legacy flat field). */
273
- hangoutLink?: string;
274
- /** Google `event.conferenceData.entryPoints` — the modern conferencing block. */
275
- conferenceData?: {
276
- entryPoints?: GoogleConferenceEntryPoint[];
277
- };
278
- /** Google `event.start`. */
279
- start?: GoogleEventDateTime;
280
- /** Google `event.end`. */
281
- end?: GoogleEventDateTime;
282
- /** Google `event.attendees`. */
283
- attendees?: GoogleAttendee[];
284
- /** Google `event.organizer` (`{ email, displayName }`). */
285
- organizer?: {
286
- email?: string;
287
- displayName?: string;
288
- };
289
- /** Google `event.status` — `cancelled` events are dropped from the normalized result. */
290
- status?: string;
291
- }
292
- /** One page of Google `events.list` results — events + paging/sync tokens. */
293
- export interface GoogleEventPage {
294
- /** The events on this page. */
295
- items: GoogleCalendarEvent[];
296
- /** Google `nextPageToken` — present when more pages remain in this poll. */
297
- nextPageToken?: string;
298
- /** Google `nextSyncToken` — present on the final page; becomes the next poll's `sinceCursor`. */
299
- nextSyncToken?: string;
300
- }
301
- /** Arguments for one {@link IGoogleCalendarLike.listEvents} call — sync-token OR page-token paging. */
302
- export interface GoogleListEventsArgs {
303
- /** The calendar id to read (the agent's mailbox/identity address; `primary` for the user's default). */
304
- calendarId: string;
305
- /** Incremental-sync token from a prior poll's final page (mutually exclusive with `pageToken`). */
306
- syncToken?: string;
307
- /** In-poll continuation token (`nextPageToken`) when following pages of the current poll. */
308
- pageToken?: string;
135
+ /** Microsoft Graph calendars, read through `@memberjunction/communication-ms-graph`'s `MSGraphProvider`. */
136
+ export declare class GraphCalendarSource extends CommunicationCalendarSource {
137
+ constructor(provider?: CalendarSyncProvider, credentials?: ProviderCredentialsBase, options?: CommunicationCalendarSourceOptions);
309
138
  }
310
139
  /**
311
- * The minimal Google Calendar surface {@link GoogleCalendarSource} drives. A production wiring
312
- * implements this over `googleapis` — `calendar.events.list({ calendarId, syncToken | pageToken })` —
313
- * following `nextPageToken` page-to-page and capturing the final `nextSyncToken`. Tests inject a fake.
314
- * NO googleapis types leak through this surface.
140
+ * Google calendars, read through `@memberjunction/communication-gmail`'s `GmailProvider`. Reads the
141
+ * calendar whose ID is the identity's address, as the bridge always has: that is the account's
142
+ * primary calendar when the credentials are the agent's own, and a shared one otherwise.
315
143
  */
316
- export interface IGoogleCalendarLike {
317
- /** Lists one page of events for a calendar, paging via `pageToken` and syncing via `syncToken`. */
318
- listEvents(args: GoogleListEventsArgs): Promise<GoogleEventPage>;
144
+ export declare class GoogleCalendarSource extends CommunicationCalendarSource {
145
+ constructor(provider?: CalendarSyncProvider, credentials?: ProviderCredentialsBase, options?: CommunicationCalendarSourceOptions);
146
+ /** @inheritdoc */
147
+ protected BuildTarget(identityValue: string): CalendarTarget;
319
148
  }
320
149
  /**
321
- * **Pure** parse of a Google {@link GoogleEventDateTime} to a UTC {@link Date}. Uses the RFC3339
322
- * `dateTime` (which carries its own offset) when present, else an all-day `date` as UTC midnight.
323
- * Returns `null` on absent/invalid.
324
- */
325
- export declare function ParseGoogleDateTime(value?: GoogleEventDateTime): Date | null;
326
- /** @deprecated Use {@link ParseGoogleDateTime}. */
327
- export declare function parseGoogleDateTime(value?: GoogleEventDateTime): Date | null;
328
- /** Maps a Google `responseStatus` to the normalized {@link CalendarInviteAttendee.ResponseStatus}. */
329
- export declare function MapGoogleResponseStatus(response?: string): CalendarInviteAttendee['ResponseStatus'] | undefined;
330
- /** @deprecated Use {@link MapGoogleResponseStatus}. */
331
- export declare function mapGoogleResponseStatus(response?: string): CalendarInviteAttendee['ResponseStatus'] | undefined;
332
- /**
333
- * **Pure** extraction of the Meet/online-meeting join URL from a Google event. Prefers the first
334
- * `video` entry-point in `conferenceData`, then the legacy `hangoutLink`. Returns `undefined` when no
335
- * video conferencing is attached.
336
- */
337
- export declare function ExtractGoogleJoinUrl(event: GoogleCalendarEvent): string | undefined;
338
- /** @deprecated Use {@link ExtractGoogleJoinUrl}. */
339
- export declare function extractGoogleJoinUrl(event: GoogleCalendarEvent): string | undefined;
340
- /**
341
- * **Pure** normalization of one Google calendar event to a {@link NormalizedCalendarInvite}. Skips
342
- * (returns `null`) a cancelled event or one with no id or no resolvable start time.
150
+ * **Pure** normalization of a Communication calendar event to a {@link NormalizedCalendarInvite}.
151
+ * Returns `null` for a cancelled event or one with no id or no start. The join URL is the provider's
152
+ * online-meeting URL, else the first Teams/Meet/Zoom link in the body.
343
153
  */
344
- export declare function NormalizeGoogleEvent(event: GoogleCalendarEvent): NormalizedCalendarInvite | null;
345
- /** @deprecated Use {@link NormalizeGoogleEvent}. */
346
- export declare function normalizeGoogleEvent(event: GoogleCalendarEvent): NormalizedCalendarInvite | null;
347
- /**
348
- * **Production binding** for Google Calendar over an injected {@link IGoogleCalendarLike} surface, so
349
- * it builds + unit-tests with no `googleapis` install and no network.
350
- *
351
- * Pages an incremental sync: starting from `sinceCursor` (a prior `nextSyncToken`), it follows
352
- * `nextPageToken` page-to-page, normalizing every event via {@link normalizeGoogleEvent}, until the
353
- * surface returns a `nextSyncToken` — which becomes the {@link CalendarPollResult.NextCursor}.
354
- * Credentials are resolved upstream (the host binds {@link IGoogleCalendarLike} with a Calendar client
355
- * authenticated from the provider `Configuration` via MJ's credential system — never inline).
356
- *
357
- * When no surface is supplied it preserves the original not-bound behavior, throwing
358
- * {@link CalendarSourceNotBoundError}.
359
- *
360
- * @remarks **TODO (production):** bind `googleapis` (an optionalDependency, loaded only when a
361
- * Google-backed identity is configured) and inject it as {@link IGoogleCalendarLike}.
362
- */
363
- export declare class GoogleCalendarSource implements ICalendarSource {
364
- private readonly calendar?;
365
- /**
366
- * @param calendar The injected Google calendar surface. Omit to preserve the not-bound seam
367
- * behavior (every poll throws {@link CalendarSourceNotBoundError}).
368
- */
369
- constructor(calendar?: IGoogleCalendarLike);
370
- /** @inheritdoc */
371
- ListUpcomingInvites(identityValue: string, sinceCursor?: string): Promise<CalendarPollResult>;
372
- }
154
+ export declare function NormalizeCalendarEvent(event: CalendarEvent): NormalizedCalendarInvite | null;
373
155
  //# sourceMappingURL=calendar-source.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"calendar-source.d.ts","sourceRoot":"","sources":["../src/calendar-source.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACnC,mFAAmF;IACnF,KAAK,EAAE,MAAM,CAAC;IAEd,mEAAmE;IACnE,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,kGAAkG;IAClG,cAAc,CAAC,EAAE,UAAU,GAAG,UAAU,GAAG,WAAW,GAAG,aAAa,CAA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