@arbidocs/sdk 0.4.138 → 0.4.140
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{browser-B1eZG2h_.d.cts → browser-D3wxXCKl.d.cts} +1146 -3
- package/dist/{browser-B1eZG2h_.d.ts → browser-D3wxXCKl.d.ts} +1146 -3
- package/dist/browser.cjs +646 -8
- package/dist/browser.cjs.map +1 -1
- package/dist/browser.d.cts +1 -1
- package/dist/browser.d.ts +1 -1
- package/dist/browser.js +640 -9
- package/dist/browser.js.map +1 -1
- package/dist/index.cjs +646 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +640 -9
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
|
@@ -5478,6 +5478,357 @@ declare namespace facts {
|
|
|
5478
5478
|
export { type facts_CreateFactRequest as CreateFactRequest, type facts_CreateFactsRequest as CreateFactsRequest, type facts_FactResponse as FactResponse, type facts_FactSearchRequest as FactSearchRequest, type facts_FactSearchResponse as FactSearchResponse, type facts_ListFactsOptions as ListFactsOptions, type facts_UpdateFactRequest as UpdateFactRequest, facts_createFact as createFact, facts_createFactsBatch as createFactsBatch, facts_deleteFact as deleteFact, facts_listFacts as listFacts, facts_remindFact as remindFact, facts_searchFacts as searchFacts, facts_updateFact as updateFact };
|
|
5479
5479
|
}
|
|
5480
5480
|
|
|
5481
|
+
/**
|
|
5482
|
+
* Native calendar operations over `/v1/calendar`: settings, calendars, events, invitations,
|
|
5483
|
+
* sharing, subscriptions, holidays, rooms, scheduling, connected accounts, app passwords and feeds,
|
|
5484
|
+
* booking pages, and the public booking endpoints.
|
|
5485
|
+
*
|
|
5486
|
+
* Calendar content is sealed under per-calendar keys, themselves sealed to the user. A server
|
|
5487
|
+
* session reads it only once those keys are bridged to it ({@link unlockCalendarKeys}:
|
|
5488
|
+
* GET /keys → unseal with the user's key → reseal to the session → POST /session-keys).
|
|
5489
|
+
* {@link ensureCalendarUnlocked} does that once per server session; `Arbi.calendar` calls it
|
|
5490
|
+
* before every content request. Contact cards are sealed under an address-book key that the same
|
|
5491
|
+
* bridge carries, so the contacts operations need it too.
|
|
5492
|
+
*
|
|
5493
|
+
* `/v1/calendar` is user-global (not workspace-scoped); only `/overlays` reads the open workspace.
|
|
5494
|
+
*/
|
|
5495
|
+
|
|
5496
|
+
type S = components['schemas'];
|
|
5497
|
+
type CalendarEvent = S['CalendarEvent'];
|
|
5498
|
+
type CalendarSettings = S['CalendarSettings'];
|
|
5499
|
+
type CalendarRead = S['CalendarRead'];
|
|
5500
|
+
type CalendarCreate = S['CalendarCreate'];
|
|
5501
|
+
type CalendarUpdate = S['CalendarUpdate'];
|
|
5502
|
+
type EventCreate = S['EventCreate'];
|
|
5503
|
+
type EventWrite = S['EventWrite'];
|
|
5504
|
+
type ImportResult = S['ImportResult'];
|
|
5505
|
+
type OverlayItem = S['OverlayItem'];
|
|
5506
|
+
type OverlayLayerName = OverlayItem['layer'];
|
|
5507
|
+
type DateTimeSpec = S['DateTimeSpec'];
|
|
5508
|
+
type EditScope = 'this' | 'following' | 'all';
|
|
5509
|
+
type RespondPartstat = S['RespondRequest']['partstat'];
|
|
5510
|
+
type ShareRead = S['ShareRead'];
|
|
5511
|
+
type ShareRole = S['ShareWrite']['role'];
|
|
5512
|
+
type HolidayCountry = S['HolidayCountry'];
|
|
5513
|
+
type ResourceCreate = S['ResourceCreate'];
|
|
5514
|
+
type RoomRead = S['RoomRead'];
|
|
5515
|
+
type InvitationRead = S['InvitationRead'];
|
|
5516
|
+
type FreeBusyEntry = S['FreeBusyEntry'];
|
|
5517
|
+
type TimeSuggestion = S['TimeSuggestion'];
|
|
5518
|
+
type AttendeeRead = S['AttendeeRead'];
|
|
5519
|
+
type PersonKey = S['PersonKey'];
|
|
5520
|
+
type CalendarAccount = S['AccountRead'];
|
|
5521
|
+
type CalendarAccountKind = CalendarAccount['kind'];
|
|
5522
|
+
type CalDavProfile = S['CalDavProfileRead'];
|
|
5523
|
+
type AppPassword = S['AppPasswordRead'];
|
|
5524
|
+
type AppPasswordCreated = S['AppPasswordCreated'];
|
|
5525
|
+
type BookingPage = S['BookingPageRead'];
|
|
5526
|
+
type WeeklyHoursSpec = S['WeeklyHours'];
|
|
5527
|
+
type PublicBookingPage = S['PublicBookingPage'];
|
|
5528
|
+
type BookingConfirmation = S['BookingConfirmation'];
|
|
5529
|
+
type EventCreateBody = Omit<EventCreate, 'notify'> & {
|
|
5530
|
+
notify?: boolean;
|
|
5531
|
+
};
|
|
5532
|
+
type EventPatchBody = Partial<Omit<EventWrite, 'notify'>> & {
|
|
5533
|
+
notify?: boolean;
|
|
5534
|
+
};
|
|
5535
|
+
type CalendarCreateBody = Partial<CalendarCreate> & Pick<CalendarCreate, 'name'>;
|
|
5536
|
+
type CalendarSettingsBody = Partial<CalendarSettings>;
|
|
5537
|
+
type RoomCreateBody = Partial<ResourceCreate> & Pick<ResourceCreate, 'name'>;
|
|
5538
|
+
type CalDavConnectBody = Omit<S['CalDavConnect'], 'background_sync'> & {
|
|
5539
|
+
background_sync?: boolean;
|
|
5540
|
+
};
|
|
5541
|
+
type AppPasswordCreateBody = S['AppPasswordCreate'];
|
|
5542
|
+
type FeedLevel = S['FeedCreate']['level'];
|
|
5543
|
+
type FeedCreateBody = Omit<S['FeedCreate'], 'label'> & {
|
|
5544
|
+
label?: string;
|
|
5545
|
+
};
|
|
5546
|
+
type BookingPageWriteBody = S['BookingPageWrite'];
|
|
5547
|
+
type BookingRequestBody = S['BookingRequest'];
|
|
5548
|
+
/** A time window for list queries: ISO instants with an offset. */
|
|
5549
|
+
interface CalendarWindow {
|
|
5550
|
+
start: string;
|
|
5551
|
+
end: string;
|
|
5552
|
+
}
|
|
5553
|
+
interface ListEventsParams extends CalendarWindow {
|
|
5554
|
+
/** `cal-` ids; omitted: every shown calendar. */
|
|
5555
|
+
calendars?: string[];
|
|
5556
|
+
}
|
|
5557
|
+
/** One event, or one occurrence of a series, with how far a change reaches. */
|
|
5558
|
+
interface ScopedTarget {
|
|
5559
|
+
id: string;
|
|
5560
|
+
scope: EditScope;
|
|
5561
|
+
recurrence_id?: string | null;
|
|
5562
|
+
}
|
|
5563
|
+
interface RespondParams {
|
|
5564
|
+
id: string;
|
|
5565
|
+
partstat: RespondPartstat;
|
|
5566
|
+
comment?: string | null;
|
|
5567
|
+
scope?: EditScope;
|
|
5568
|
+
recurrence_id?: string | null;
|
|
5569
|
+
/** "Propose a new time" (an iTIP COUNTER to the organiser). */
|
|
5570
|
+
propose_start?: DateTimeSpec | null;
|
|
5571
|
+
propose_end?: DateTimeSpec | null;
|
|
5572
|
+
notify?: boolean;
|
|
5573
|
+
}
|
|
5574
|
+
interface SubscribeParams {
|
|
5575
|
+
url: string;
|
|
5576
|
+
name?: string | null;
|
|
5577
|
+
color?: string;
|
|
5578
|
+
refresh_minutes?: number;
|
|
5579
|
+
timezone?: string;
|
|
5580
|
+
}
|
|
5581
|
+
interface RoomQuery {
|
|
5582
|
+
start?: string;
|
|
5583
|
+
end?: string;
|
|
5584
|
+
min_capacity?: number;
|
|
5585
|
+
feature?: string[];
|
|
5586
|
+
building?: string;
|
|
5587
|
+
}
|
|
5588
|
+
interface FindTimeParams {
|
|
5589
|
+
attendees: string[];
|
|
5590
|
+
duration_minutes: number;
|
|
5591
|
+
start: string;
|
|
5592
|
+
end: string;
|
|
5593
|
+
working_hours_only?: boolean;
|
|
5594
|
+
time_zone?: string | null;
|
|
5595
|
+
limit?: number;
|
|
5596
|
+
}
|
|
5597
|
+
interface AccountSyncResult {
|
|
5598
|
+
calendars?: number;
|
|
5599
|
+
upserted?: number;
|
|
5600
|
+
deleted?: number;
|
|
5601
|
+
error?: string;
|
|
5602
|
+
[key: string]: unknown;
|
|
5603
|
+
}
|
|
5604
|
+
/** The OAuth account kinds, and the connector vendor that holds each one's grant. */
|
|
5605
|
+
type OAuthAccountKind = 'google' | 'microsoft';
|
|
5606
|
+
declare const ACCOUNT_VENDOR: Record<OAuthAccountKind, string>;
|
|
5607
|
+
/** What unlocking needs: the user's identity key and the server session's key. */
|
|
5608
|
+
interface CalendarKeys {
|
|
5609
|
+
signingPrivateKey: Uint8Array;
|
|
5610
|
+
serverSessionKey: Uint8Array;
|
|
5611
|
+
}
|
|
5612
|
+
/**
|
|
5613
|
+
* Unseal the user's calendar keys (and pending invitation keys) and bridge them to the server
|
|
5614
|
+
* session: GET /keys → unseal each with the user's X25519 secret → reseal to the session → POST
|
|
5615
|
+
* /session-keys.
|
|
5616
|
+
*/
|
|
5617
|
+
declare function unlockCalendarKeys(client: ArbiClient, keys: CalendarKeys): Promise<void>;
|
|
5618
|
+
/**
|
|
5619
|
+
* Unlock once per server session (concurrent callers share one run); `force` runs it again, for
|
|
5620
|
+
* keys that arrived since (a new invitation, a share). A failure is retried on the next call and
|
|
5621
|
+
* never thrown: locked calendars come back marked `locked` instead.
|
|
5622
|
+
*/
|
|
5623
|
+
declare function ensureCalendarUnlocked(client: ArbiClient, keys: CalendarKeys | null, force?: boolean): Promise<void>;
|
|
5624
|
+
declare function getCalendarSettings(client: ArbiClient): Promise<CalendarSettings>;
|
|
5625
|
+
declare function putCalendarSettings(client: ArbiClient, body: CalendarSettingsBody): Promise<CalendarSettings>;
|
|
5626
|
+
/** The user's calendars. A calendar newly shown `locked` triggers one forced unlock and a re-read. */
|
|
5627
|
+
declare function listCalendars(client: ArbiClient, keys: CalendarKeys | null): Promise<CalendarRead[]>;
|
|
5628
|
+
declare function createCalendar(client: ArbiClient, body: CalendarCreateBody): Promise<CalendarRead>;
|
|
5629
|
+
declare function updateCalendar(client: ArbiClient, calId: string, body: CalendarUpdate): Promise<CalendarRead>;
|
|
5630
|
+
declare function deleteCalendar(client: ArbiClient, calId: string): Promise<void>;
|
|
5631
|
+
/** A whole calendar as `.ics`. */
|
|
5632
|
+
declare function exportCalendarIcs(client: ArbiClient, calId: string): Promise<Blob>;
|
|
5633
|
+
declare function importCalendarIcs(client: ArbiClient, ics: string, calendarId?: string | null): Promise<ImportResult>;
|
|
5634
|
+
declare function listEvents(client: ArbiClient, { start, end, calendars }: ListEventsParams): Promise<CalendarEvent[]>;
|
|
5635
|
+
declare function getEvent(client: ArbiClient, evtId: string, recurrenceId?: string | null): Promise<CalendarEvent>;
|
|
5636
|
+
declare function createEvent(client: ArbiClient, body: EventCreateBody): Promise<CalendarEvent>;
|
|
5637
|
+
declare function updateEvent(client: ArbiClient, target: ScopedTarget, body: EventPatchBody): Promise<CalendarEvent>;
|
|
5638
|
+
declare function deleteEvent(client: ArbiClient, target: ScopedTarget & {
|
|
5639
|
+
notify?: boolean;
|
|
5640
|
+
}): Promise<void>;
|
|
5641
|
+
declare function moveEvent(client: ArbiClient, evtId: string, calendarId: string): Promise<CalendarEvent>;
|
|
5642
|
+
/** Accept, decline or tentatively accept (the whole series unless scoped); notifies by default. */
|
|
5643
|
+
declare function respondToEvent(client: ArbiClient, { id, ...body }: RespondParams): Promise<CalendarEvent>;
|
|
5644
|
+
/** One event as `.ics`. */
|
|
5645
|
+
declare function eventIcs(client: ArbiClient, evtId: string): Promise<Blob>;
|
|
5646
|
+
/** My copy of an event by its iCalendar UID (an invitation e-mail's); `null` when not in my calendar. */
|
|
5647
|
+
declare function lookupEventByUid(client: ArbiClient, uid: string): Promise<CalendarEvent | null>;
|
|
5648
|
+
/** The open workspace's facts, workflows and tasks drawn over the calendar. */
|
|
5649
|
+
declare function listOverlays(client: ArbiClient, range: CalendarWindow, layers: OverlayLayerName[]): Promise<OverlayItem[]>;
|
|
5650
|
+
declare function listShares(client: ArbiClient, calId: string): Promise<ShareRead[]>;
|
|
5651
|
+
/** Share with an ARBI user (`usr-` id or e-mail), or change their role. */
|
|
5652
|
+
declare function shareCalendar(client: ArbiClient, calId: string, grantee: string, role: ShareRole): Promise<ShareRead>;
|
|
5653
|
+
/** Remove a grantee. The server rotates the calendar key: unlock again afterwards. */
|
|
5654
|
+
declare function unshareCalendar(client: ArbiClient, calId: string, grantee: string): Promise<void>;
|
|
5655
|
+
declare function subscribeCalendar(client: ArbiClient, body: SubscribeParams): Promise<CalendarRead>;
|
|
5656
|
+
declare function refreshCalendar(client: ArbiClient, calId: string): Promise<unknown>;
|
|
5657
|
+
declare function listHolidayCountries(client: ArbiClient): Promise<HolidayCountry[]>;
|
|
5658
|
+
declare function addHolidayCalendar(client: ArbiClient, body: {
|
|
5659
|
+
country: string;
|
|
5660
|
+
subdivision?: string | null;
|
|
5661
|
+
color?: string;
|
|
5662
|
+
}): Promise<CalendarRead>;
|
|
5663
|
+
declare function createRoom(client: ArbiClient, body: RoomCreateBody): Promise<RoomRead>;
|
|
5664
|
+
declare function listRooms(client: ArbiClient, q?: RoomQuery): Promise<RoomRead[]>;
|
|
5665
|
+
declare function getFreeBusy(client: ArbiClient, body: {
|
|
5666
|
+
attendees: string[];
|
|
5667
|
+
start: string;
|
|
5668
|
+
end: string;
|
|
5669
|
+
}): Promise<FreeBusyEntry[]>;
|
|
5670
|
+
declare function findTime(client: ArbiClient, body: FindTimeParams): Promise<TimeSuggestion[]>;
|
|
5671
|
+
/** Invitations and new-time proposals waiting for me. */
|
|
5672
|
+
declare function listInvitations(client: ArbiClient): Promise<InvitationRead[]>;
|
|
5673
|
+
/** Accept or decline a proposed new time (a COUNTER, `itp-` id). */
|
|
5674
|
+
declare function decideCounter(client: ArbiClient, itpId: string, accept: boolean, comment?: string | null): Promise<CalendarEvent>;
|
|
5675
|
+
/** Public encryption keys of ARBI people (by e-mail or `usr-` id): to seal a call key to attendees. */
|
|
5676
|
+
declare function lookupPeopleKeys(client: ArbiClient, body: {
|
|
5677
|
+
emails?: string[];
|
|
5678
|
+
user_ids?: string[];
|
|
5679
|
+
}): Promise<PersonKey[]>;
|
|
5680
|
+
declare function listAccounts(client: ArbiClient): Promise<CalendarAccount[]>;
|
|
5681
|
+
declare function listCalDavProfiles(client: ArbiClient): Promise<CalDavProfile[]>;
|
|
5682
|
+
/** Mirror a Google or Microsoft calendar account; needs the connector's grant in this session. */
|
|
5683
|
+
declare function connectOAuthAccount(client: ArbiClient, kind: OAuthAccountKind, backgroundSync?: boolean): Promise<CalendarAccount>;
|
|
5684
|
+
declare function connectCalDavAccount(client: ArbiClient, body: CalDavConnectBody): Promise<CalendarAccount>;
|
|
5685
|
+
declare function updateAccount(client: ArbiClient, accId: string, backgroundSync: boolean): Promise<CalendarAccount>;
|
|
5686
|
+
/** Pull and push one account now. */
|
|
5687
|
+
declare function syncAccount(client: ArbiClient, accId: string): Promise<AccountSyncResult>;
|
|
5688
|
+
declare function disconnectAccount(client: ArbiClient, accId: string): Promise<void>;
|
|
5689
|
+
/** Publish an own calendar into a connected account; it then mirrors both ways. */
|
|
5690
|
+
declare function publishCalendarToAccount(client: ArbiClient, accId: string, calendarId: string): Promise<CalendarRead>;
|
|
5691
|
+
declare function listAppPasswords(client: ArbiClient): Promise<AppPassword[]>;
|
|
5692
|
+
declare function createAppPassword(client: ArbiClient, body: AppPasswordCreateBody): Promise<AppPasswordCreated>;
|
|
5693
|
+
declare function createFeed(client: ArbiClient, body: FeedCreateBody): Promise<AppPasswordCreated>;
|
|
5694
|
+
declare function revokeAppPassword(client: ArbiClient, apwId: string): Promise<void>;
|
|
5695
|
+
/** Split the app-password list into device passwords and feed URLs. */
|
|
5696
|
+
declare function splitAppPasswords(rows: AppPassword[]): {
|
|
5697
|
+
devices: AppPassword[];
|
|
5698
|
+
feeds: AppPassword[];
|
|
5699
|
+
};
|
|
5700
|
+
declare function listBookingPages(client: ArbiClient): Promise<BookingPage[]>;
|
|
5701
|
+
declare function putBookingPage(client: ArbiClient, body: BookingPageWriteBody): Promise<BookingPage>;
|
|
5702
|
+
declare function deleteBookingPage(client: ArbiClient, slug: string): Promise<void>;
|
|
5703
|
+
/** A refusal from a public booking endpoint, with its HTTP status. */
|
|
5704
|
+
declare class PublicBookingError extends Error {
|
|
5705
|
+
status: number;
|
|
5706
|
+
constructor(message: string, status: number);
|
|
5707
|
+
}
|
|
5708
|
+
/** A public booking page and its open slots. Plain `fetch`: a guest has no session. */
|
|
5709
|
+
declare function getPublicBookingPage(baseUrl: string, slug: string, opts?: {
|
|
5710
|
+
duration?: number;
|
|
5711
|
+
start?: string;
|
|
5712
|
+
days?: number;
|
|
5713
|
+
}, signal?: AbortSignal): Promise<PublicBookingPage>;
|
|
5714
|
+
/** Book a slot as a guest. */
|
|
5715
|
+
declare function bookPublicSlot(baseUrl: string, slug: string, body: BookingRequestBody): Promise<BookingConfirmation>;
|
|
5716
|
+
/** Cancel a guest's booking with the token from its confirmation. */
|
|
5717
|
+
declare function cancelPublicBooking(baseUrl: string, slug: string, token: string): Promise<void>;
|
|
5718
|
+
|
|
5719
|
+
declare const calendar_ACCOUNT_VENDOR: typeof ACCOUNT_VENDOR;
|
|
5720
|
+
type calendar_AccountSyncResult = AccountSyncResult;
|
|
5721
|
+
type calendar_AppPassword = AppPassword;
|
|
5722
|
+
type calendar_AppPasswordCreateBody = AppPasswordCreateBody;
|
|
5723
|
+
type calendar_AppPasswordCreated = AppPasswordCreated;
|
|
5724
|
+
type calendar_AttendeeRead = AttendeeRead;
|
|
5725
|
+
type calendar_BookingConfirmation = BookingConfirmation;
|
|
5726
|
+
type calendar_BookingPage = BookingPage;
|
|
5727
|
+
type calendar_BookingPageWriteBody = BookingPageWriteBody;
|
|
5728
|
+
type calendar_BookingRequestBody = BookingRequestBody;
|
|
5729
|
+
type calendar_CalDavConnectBody = CalDavConnectBody;
|
|
5730
|
+
type calendar_CalDavProfile = CalDavProfile;
|
|
5731
|
+
type calendar_CalendarAccount = CalendarAccount;
|
|
5732
|
+
type calendar_CalendarAccountKind = CalendarAccountKind;
|
|
5733
|
+
type calendar_CalendarCreate = CalendarCreate;
|
|
5734
|
+
type calendar_CalendarCreateBody = CalendarCreateBody;
|
|
5735
|
+
type calendar_CalendarEvent = CalendarEvent;
|
|
5736
|
+
type calendar_CalendarKeys = CalendarKeys;
|
|
5737
|
+
type calendar_CalendarRead = CalendarRead;
|
|
5738
|
+
type calendar_CalendarSettings = CalendarSettings;
|
|
5739
|
+
type calendar_CalendarSettingsBody = CalendarSettingsBody;
|
|
5740
|
+
type calendar_CalendarUpdate = CalendarUpdate;
|
|
5741
|
+
type calendar_CalendarWindow = CalendarWindow;
|
|
5742
|
+
type calendar_DateTimeSpec = DateTimeSpec;
|
|
5743
|
+
type calendar_EditScope = EditScope;
|
|
5744
|
+
type calendar_EventCreate = EventCreate;
|
|
5745
|
+
type calendar_EventCreateBody = EventCreateBody;
|
|
5746
|
+
type calendar_EventPatchBody = EventPatchBody;
|
|
5747
|
+
type calendar_EventWrite = EventWrite;
|
|
5748
|
+
type calendar_FeedCreateBody = FeedCreateBody;
|
|
5749
|
+
type calendar_FeedLevel = FeedLevel;
|
|
5750
|
+
type calendar_FindTimeParams = FindTimeParams;
|
|
5751
|
+
type calendar_FreeBusyEntry = FreeBusyEntry;
|
|
5752
|
+
type calendar_HolidayCountry = HolidayCountry;
|
|
5753
|
+
type calendar_ImportResult = ImportResult;
|
|
5754
|
+
type calendar_InvitationRead = InvitationRead;
|
|
5755
|
+
type calendar_ListEventsParams = ListEventsParams;
|
|
5756
|
+
type calendar_OAuthAccountKind = OAuthAccountKind;
|
|
5757
|
+
type calendar_OverlayItem = OverlayItem;
|
|
5758
|
+
type calendar_OverlayLayerName = OverlayLayerName;
|
|
5759
|
+
type calendar_PersonKey = PersonKey;
|
|
5760
|
+
type calendar_PublicBookingError = PublicBookingError;
|
|
5761
|
+
declare const calendar_PublicBookingError: typeof PublicBookingError;
|
|
5762
|
+
type calendar_PublicBookingPage = PublicBookingPage;
|
|
5763
|
+
type calendar_ResourceCreate = ResourceCreate;
|
|
5764
|
+
type calendar_RespondParams = RespondParams;
|
|
5765
|
+
type calendar_RespondPartstat = RespondPartstat;
|
|
5766
|
+
type calendar_RoomCreateBody = RoomCreateBody;
|
|
5767
|
+
type calendar_RoomQuery = RoomQuery;
|
|
5768
|
+
type calendar_RoomRead = RoomRead;
|
|
5769
|
+
type calendar_ScopedTarget = ScopedTarget;
|
|
5770
|
+
type calendar_ShareRead = ShareRead;
|
|
5771
|
+
type calendar_ShareRole = ShareRole;
|
|
5772
|
+
type calendar_SubscribeParams = SubscribeParams;
|
|
5773
|
+
type calendar_TimeSuggestion = TimeSuggestion;
|
|
5774
|
+
type calendar_WeeklyHoursSpec = WeeklyHoursSpec;
|
|
5775
|
+
declare const calendar_addHolidayCalendar: typeof addHolidayCalendar;
|
|
5776
|
+
declare const calendar_bookPublicSlot: typeof bookPublicSlot;
|
|
5777
|
+
declare const calendar_cancelPublicBooking: typeof cancelPublicBooking;
|
|
5778
|
+
declare const calendar_connectCalDavAccount: typeof connectCalDavAccount;
|
|
5779
|
+
declare const calendar_connectOAuthAccount: typeof connectOAuthAccount;
|
|
5780
|
+
declare const calendar_createAppPassword: typeof createAppPassword;
|
|
5781
|
+
declare const calendar_createCalendar: typeof createCalendar;
|
|
5782
|
+
declare const calendar_createEvent: typeof createEvent;
|
|
5783
|
+
declare const calendar_createFeed: typeof createFeed;
|
|
5784
|
+
declare const calendar_createRoom: typeof createRoom;
|
|
5785
|
+
declare const calendar_decideCounter: typeof decideCounter;
|
|
5786
|
+
declare const calendar_deleteBookingPage: typeof deleteBookingPage;
|
|
5787
|
+
declare const calendar_deleteCalendar: typeof deleteCalendar;
|
|
5788
|
+
declare const calendar_deleteEvent: typeof deleteEvent;
|
|
5789
|
+
declare const calendar_disconnectAccount: typeof disconnectAccount;
|
|
5790
|
+
declare const calendar_ensureCalendarUnlocked: typeof ensureCalendarUnlocked;
|
|
5791
|
+
declare const calendar_eventIcs: typeof eventIcs;
|
|
5792
|
+
declare const calendar_exportCalendarIcs: typeof exportCalendarIcs;
|
|
5793
|
+
declare const calendar_findTime: typeof findTime;
|
|
5794
|
+
declare const calendar_getCalendarSettings: typeof getCalendarSettings;
|
|
5795
|
+
declare const calendar_getEvent: typeof getEvent;
|
|
5796
|
+
declare const calendar_getFreeBusy: typeof getFreeBusy;
|
|
5797
|
+
declare const calendar_getPublicBookingPage: typeof getPublicBookingPage;
|
|
5798
|
+
declare const calendar_importCalendarIcs: typeof importCalendarIcs;
|
|
5799
|
+
declare const calendar_listAccounts: typeof listAccounts;
|
|
5800
|
+
declare const calendar_listAppPasswords: typeof listAppPasswords;
|
|
5801
|
+
declare const calendar_listBookingPages: typeof listBookingPages;
|
|
5802
|
+
declare const calendar_listCalDavProfiles: typeof listCalDavProfiles;
|
|
5803
|
+
declare const calendar_listCalendars: typeof listCalendars;
|
|
5804
|
+
declare const calendar_listEvents: typeof listEvents;
|
|
5805
|
+
declare const calendar_listHolidayCountries: typeof listHolidayCountries;
|
|
5806
|
+
declare const calendar_listInvitations: typeof listInvitations;
|
|
5807
|
+
declare const calendar_listOverlays: typeof listOverlays;
|
|
5808
|
+
declare const calendar_listRooms: typeof listRooms;
|
|
5809
|
+
declare const calendar_listShares: typeof listShares;
|
|
5810
|
+
declare const calendar_lookupEventByUid: typeof lookupEventByUid;
|
|
5811
|
+
declare const calendar_lookupPeopleKeys: typeof lookupPeopleKeys;
|
|
5812
|
+
declare const calendar_moveEvent: typeof moveEvent;
|
|
5813
|
+
declare const calendar_publishCalendarToAccount: typeof publishCalendarToAccount;
|
|
5814
|
+
declare const calendar_putBookingPage: typeof putBookingPage;
|
|
5815
|
+
declare const calendar_putCalendarSettings: typeof putCalendarSettings;
|
|
5816
|
+
declare const calendar_refreshCalendar: typeof refreshCalendar;
|
|
5817
|
+
declare const calendar_respondToEvent: typeof respondToEvent;
|
|
5818
|
+
declare const calendar_revokeAppPassword: typeof revokeAppPassword;
|
|
5819
|
+
declare const calendar_shareCalendar: typeof shareCalendar;
|
|
5820
|
+
declare const calendar_splitAppPasswords: typeof splitAppPasswords;
|
|
5821
|
+
declare const calendar_subscribeCalendar: typeof subscribeCalendar;
|
|
5822
|
+
declare const calendar_syncAccount: typeof syncAccount;
|
|
5823
|
+
declare const calendar_unlockCalendarKeys: typeof unlockCalendarKeys;
|
|
5824
|
+
declare const calendar_unshareCalendar: typeof unshareCalendar;
|
|
5825
|
+
declare const calendar_updateAccount: typeof updateAccount;
|
|
5826
|
+
declare const calendar_updateCalendar: typeof updateCalendar;
|
|
5827
|
+
declare const calendar_updateEvent: typeof updateEvent;
|
|
5828
|
+
declare namespace calendar {
|
|
5829
|
+
export { calendar_ACCOUNT_VENDOR as ACCOUNT_VENDOR, type calendar_AccountSyncResult as AccountSyncResult, type calendar_AppPassword as AppPassword, type calendar_AppPasswordCreateBody as AppPasswordCreateBody, type calendar_AppPasswordCreated as AppPasswordCreated, type calendar_AttendeeRead as AttendeeRead, type calendar_BookingConfirmation as BookingConfirmation, type calendar_BookingPage as BookingPage, type calendar_BookingPageWriteBody as BookingPageWriteBody, type calendar_BookingRequestBody as BookingRequestBody, type calendar_CalDavConnectBody as CalDavConnectBody, type calendar_CalDavProfile as CalDavProfile, type calendar_CalendarAccount as CalendarAccount, type calendar_CalendarAccountKind as CalendarAccountKind, type calendar_CalendarCreate as CalendarCreate, type calendar_CalendarCreateBody as CalendarCreateBody, type calendar_CalendarEvent as CalendarEvent, type calendar_CalendarKeys as CalendarKeys, type calendar_CalendarRead as CalendarRead, type calendar_CalendarSettings as CalendarSettings, type calendar_CalendarSettingsBody as CalendarSettingsBody, type calendar_CalendarUpdate as CalendarUpdate, type calendar_CalendarWindow as CalendarWindow, type calendar_DateTimeSpec as DateTimeSpec, type calendar_EditScope as EditScope, type calendar_EventCreate as EventCreate, type calendar_EventCreateBody as EventCreateBody, type calendar_EventPatchBody as EventPatchBody, type calendar_EventWrite as EventWrite, type calendar_FeedCreateBody as FeedCreateBody, type calendar_FeedLevel as FeedLevel, type calendar_FindTimeParams as FindTimeParams, type calendar_FreeBusyEntry as FreeBusyEntry, type calendar_HolidayCountry as HolidayCountry, type calendar_ImportResult as ImportResult, type calendar_InvitationRead as InvitationRead, type calendar_ListEventsParams as ListEventsParams, type calendar_OAuthAccountKind as OAuthAccountKind, type calendar_OverlayItem as OverlayItem, type calendar_OverlayLayerName as OverlayLayerName, type calendar_PersonKey as PersonKey, calendar_PublicBookingError as PublicBookingError, type calendar_PublicBookingPage as PublicBookingPage, type calendar_ResourceCreate as ResourceCreate, type calendar_RespondParams as RespondParams, type calendar_RespondPartstat as RespondPartstat, type calendar_RoomCreateBody as RoomCreateBody, type calendar_RoomQuery as RoomQuery, type calendar_RoomRead as RoomRead, type calendar_ScopedTarget as ScopedTarget, type calendar_ShareRead as ShareRead, type calendar_ShareRole as ShareRole, type calendar_SubscribeParams as SubscribeParams, type calendar_TimeSuggestion as TimeSuggestion, type calendar_WeeklyHoursSpec as WeeklyHoursSpec, calendar_addHolidayCalendar as addHolidayCalendar, calendar_bookPublicSlot as bookPublicSlot, calendar_cancelPublicBooking as cancelPublicBooking, calendar_connectCalDavAccount as connectCalDavAccount, calendar_connectOAuthAccount as connectOAuthAccount, calendar_createAppPassword as createAppPassword, calendar_createCalendar as createCalendar, calendar_createEvent as createEvent, calendar_createFeed as createFeed, calendar_createRoom as createRoom, calendar_decideCounter as decideCounter, calendar_deleteBookingPage as deleteBookingPage, calendar_deleteCalendar as deleteCalendar, calendar_deleteEvent as deleteEvent, calendar_disconnectAccount as disconnectAccount, calendar_ensureCalendarUnlocked as ensureCalendarUnlocked, calendar_eventIcs as eventIcs, calendar_exportCalendarIcs as exportCalendarIcs, calendar_findTime as findTime, calendar_getCalendarSettings as getCalendarSettings, calendar_getEvent as getEvent, calendar_getFreeBusy as getFreeBusy, calendar_getPublicBookingPage as getPublicBookingPage, calendar_importCalendarIcs as importCalendarIcs, calendar_listAccounts as listAccounts, calendar_listAppPasswords as listAppPasswords, calendar_listBookingPages as listBookingPages, calendar_listCalDavProfiles as listCalDavProfiles, calendar_listCalendars as listCalendars, calendar_listEvents as listEvents, calendar_listHolidayCountries as listHolidayCountries, calendar_listInvitations as listInvitations, calendar_listOverlays as listOverlays, calendar_listRooms as listRooms, calendar_listShares as listShares, calendar_lookupEventByUid as lookupEventByUid, calendar_lookupPeopleKeys as lookupPeopleKeys, calendar_moveEvent as moveEvent, calendar_publishCalendarToAccount as publishCalendarToAccount, calendar_putBookingPage as putBookingPage, calendar_putCalendarSettings as putCalendarSettings, calendar_refreshCalendar as refreshCalendar, calendar_respondToEvent as respondToEvent, calendar_revokeAppPassword as revokeAppPassword, calendar_shareCalendar as shareCalendar, calendar_splitAppPasswords as splitAppPasswords, calendar_subscribeCalendar as subscribeCalendar, calendar_syncAccount as syncAccount, calendar_unlockCalendarKeys as unlockCalendarKeys, calendar_unshareCalendar as unshareCalendar, calendar_updateAccount as updateAccount, calendar_updateCalendar as updateCalendar, calendar_updateEvent as updateEvent };
|
|
5830
|
+
}
|
|
5831
|
+
|
|
5481
5832
|
type DocUpdateRequest = components['schemas']['DocUpdateRequest'];
|
|
5482
5833
|
type WorkspaceUpdateRequest = components['schemas']['WorkspaceUpdateRequest'];
|
|
5483
5834
|
type TagFormat = components['schemas']['TagFormat'];
|
|
@@ -8297,9 +8648,15 @@ declare class Arbi {
|
|
|
8297
8648
|
assistant_mode: components["schemas"]["AssistantMode"];
|
|
8298
8649
|
}>;
|
|
8299
8650
|
};
|
|
8300
|
-
/** Persisted notifications
|
|
8651
|
+
/** Persisted notifications (both the ones you received and the ones you sent), newest first;
|
|
8652
|
+
* new ones also arrive on the normal workspace WebSocket. */
|
|
8301
8653
|
readonly notifications: {
|
|
8302
|
-
list: (
|
|
8654
|
+
list: (options?: {
|
|
8655
|
+
type?: components["schemas"]["NotificationType"];
|
|
8656
|
+
/** Default 100 (the server's maximum is 500). */
|
|
8657
|
+
limit?: number;
|
|
8658
|
+
offset?: number;
|
|
8659
|
+
}) => Promise<{
|
|
8303
8660
|
type: components["schemas"]["NotificationType"];
|
|
8304
8661
|
external_id: string;
|
|
8305
8662
|
sender: {
|
|
@@ -8333,6 +8690,8 @@ declare class Arbi {
|
|
|
8333
8690
|
updated_at: string;
|
|
8334
8691
|
}[]>;
|
|
8335
8692
|
markRead: (ids: string[]) => Promise<void>;
|
|
8693
|
+
/** Delete notifications for yourself (sender or recipient). */
|
|
8694
|
+
delete: (ids: string[]) => Promise<void>;
|
|
8336
8695
|
};
|
|
8337
8696
|
/** Authenticated native Word transport, with normal session recovery. */
|
|
8338
8697
|
readonly editor: {
|
|
@@ -8716,6 +9075,790 @@ declare class Arbi {
|
|
|
8716
9075
|
}[]>;
|
|
8717
9076
|
groupByStatus: typeof groupContactsByStatus;
|
|
8718
9077
|
};
|
|
9078
|
+
/** The keys the calendar unlock needs; `null` before login (calendars then read as locked). */
|
|
9079
|
+
private calendarKeys;
|
|
9080
|
+
/** Run `op` once this server session holds the calendar keys (unlocked once per session). */
|
|
9081
|
+
private withCalendarKeys;
|
|
9082
|
+
/**
|
|
9083
|
+
* The native calendar (`/v1/calendar`). Every content call first bridges the user's calendar
|
|
9084
|
+
* keys to the server session (once per session; see `calendarOps.ensureCalendarUnlocked`).
|
|
9085
|
+
*/
|
|
9086
|
+
readonly calendar: {
|
|
9087
|
+
/** Bridge the calendar keys now; `force` again (keys that arrived since: a share, an invite). */
|
|
9088
|
+
unlock: (force?: boolean) => Promise<void>;
|
|
9089
|
+
getSettings: () => Promise<{
|
|
9090
|
+
time_zone: string;
|
|
9091
|
+
secondary_time_zone?: string | null;
|
|
9092
|
+
week_start: number;
|
|
9093
|
+
working_hours?: components["schemas"]["WorkingHours"][];
|
|
9094
|
+
default_view: "day" | "week" | "work_week" | "month" | "agenda" | "year";
|
|
9095
|
+
default_duration_minutes: number;
|
|
9096
|
+
default_calendar_id?: string | null;
|
|
9097
|
+
show_declined: boolean;
|
|
9098
|
+
show_week_numbers: boolean;
|
|
9099
|
+
auto_add_invitations: "all" | "known" | "none";
|
|
9100
|
+
decline_message?: string | null;
|
|
9101
|
+
overlays?: ("facts" | "workflows" | "tasks")[];
|
|
9102
|
+
}>;
|
|
9103
|
+
putSettings: (body: CalendarSettingsBody) => Promise<{
|
|
9104
|
+
time_zone: string;
|
|
9105
|
+
secondary_time_zone?: string | null;
|
|
9106
|
+
week_start: number;
|
|
9107
|
+
working_hours?: components["schemas"]["WorkingHours"][];
|
|
9108
|
+
default_view: "day" | "week" | "work_week" | "month" | "agenda" | "year";
|
|
9109
|
+
default_duration_minutes: number;
|
|
9110
|
+
default_calendar_id?: string | null;
|
|
9111
|
+
show_declined: boolean;
|
|
9112
|
+
show_week_numbers: boolean;
|
|
9113
|
+
auto_add_invitations: "all" | "known" | "none";
|
|
9114
|
+
decline_message?: string | null;
|
|
9115
|
+
overlays?: ("facts" | "workflows" | "tasks")[];
|
|
9116
|
+
}>;
|
|
9117
|
+
listCalendars: () => Promise<{
|
|
9118
|
+
id: string;
|
|
9119
|
+
name?: string | null;
|
|
9120
|
+
description?: string | null;
|
|
9121
|
+
color: string;
|
|
9122
|
+
timezone: string;
|
|
9123
|
+
kind: "calendar" | "resource" | "subscription" | "holidays" | "birthdays" | "addressbook";
|
|
9124
|
+
role: "owner" | "delegate" | "write" | "read" | "read_basic" | "freebusy";
|
|
9125
|
+
is_default: boolean;
|
|
9126
|
+
hidden: boolean;
|
|
9127
|
+
locked: boolean;
|
|
9128
|
+
owner_id: string;
|
|
9129
|
+
owner_name?: string | null;
|
|
9130
|
+
workspace_id?: string | null;
|
|
9131
|
+
default_reminders?: components["schemas"]["ReminderSpec"][];
|
|
9132
|
+
resource?: {
|
|
9133
|
+
[key: string]: unknown;
|
|
9134
|
+
} | null;
|
|
9135
|
+
source_url?: string | null;
|
|
9136
|
+
refreshed_at?: string | null;
|
|
9137
|
+
provider: "native" | "google" | "microsoft" | "caldav" | "ics";
|
|
9138
|
+
account_id?: string | null;
|
|
9139
|
+
can_write: boolean;
|
|
9140
|
+
ctag: string;
|
|
9141
|
+
}[]>;
|
|
9142
|
+
createCalendar: (body: CalendarCreateBody) => Promise<{
|
|
9143
|
+
id: string;
|
|
9144
|
+
name?: string | null;
|
|
9145
|
+
description?: string | null;
|
|
9146
|
+
color: string;
|
|
9147
|
+
timezone: string;
|
|
9148
|
+
kind: "calendar" | "resource" | "subscription" | "holidays" | "birthdays" | "addressbook";
|
|
9149
|
+
role: "owner" | "delegate" | "write" | "read" | "read_basic" | "freebusy";
|
|
9150
|
+
is_default: boolean;
|
|
9151
|
+
hidden: boolean;
|
|
9152
|
+
locked: boolean;
|
|
9153
|
+
owner_id: string;
|
|
9154
|
+
owner_name?: string | null;
|
|
9155
|
+
workspace_id?: string | null;
|
|
9156
|
+
default_reminders?: components["schemas"]["ReminderSpec"][];
|
|
9157
|
+
resource?: {
|
|
9158
|
+
[key: string]: unknown;
|
|
9159
|
+
} | null;
|
|
9160
|
+
source_url?: string | null;
|
|
9161
|
+
refreshed_at?: string | null;
|
|
9162
|
+
provider: "native" | "google" | "microsoft" | "caldav" | "ics";
|
|
9163
|
+
account_id?: string | null;
|
|
9164
|
+
can_write: boolean;
|
|
9165
|
+
ctag: string;
|
|
9166
|
+
}>;
|
|
9167
|
+
updateCalendar: (calId: string, body: CalendarUpdate) => Promise<{
|
|
9168
|
+
id: string;
|
|
9169
|
+
name?: string | null;
|
|
9170
|
+
description?: string | null;
|
|
9171
|
+
color: string;
|
|
9172
|
+
timezone: string;
|
|
9173
|
+
kind: "calendar" | "resource" | "subscription" | "holidays" | "birthdays" | "addressbook";
|
|
9174
|
+
role: "owner" | "delegate" | "write" | "read" | "read_basic" | "freebusy";
|
|
9175
|
+
is_default: boolean;
|
|
9176
|
+
hidden: boolean;
|
|
9177
|
+
locked: boolean;
|
|
9178
|
+
owner_id: string;
|
|
9179
|
+
owner_name?: string | null;
|
|
9180
|
+
workspace_id?: string | null;
|
|
9181
|
+
default_reminders?: components["schemas"]["ReminderSpec"][];
|
|
9182
|
+
resource?: {
|
|
9183
|
+
[key: string]: unknown;
|
|
9184
|
+
} | null;
|
|
9185
|
+
source_url?: string | null;
|
|
9186
|
+
refreshed_at?: string | null;
|
|
9187
|
+
provider: "native" | "google" | "microsoft" | "caldav" | "ics";
|
|
9188
|
+
account_id?: string | null;
|
|
9189
|
+
can_write: boolean;
|
|
9190
|
+
ctag: string;
|
|
9191
|
+
}>;
|
|
9192
|
+
deleteCalendar: (calId: string) => Promise<void>;
|
|
9193
|
+
exportCalendar: (calId: string) => Promise<Blob>;
|
|
9194
|
+
importIcs: (ics: string, calendarId?: string | null) => Promise<{
|
|
9195
|
+
created: number;
|
|
9196
|
+
updated: number;
|
|
9197
|
+
skipped: number;
|
|
9198
|
+
errors?: string[];
|
|
9199
|
+
}>;
|
|
9200
|
+
listEvents: (params: ListEventsParams) => Promise<{
|
|
9201
|
+
id: string;
|
|
9202
|
+
instance_id: string;
|
|
9203
|
+
calendar_id: string;
|
|
9204
|
+
uid: string;
|
|
9205
|
+
recurrence_id?: string | null;
|
|
9206
|
+
is_recurring: boolean;
|
|
9207
|
+
is_exception: boolean;
|
|
9208
|
+
title: string;
|
|
9209
|
+
description?: string | null;
|
|
9210
|
+
description_html?: string | null;
|
|
9211
|
+
location?: string | null;
|
|
9212
|
+
start: components["schemas"]["DateTimeSpec"];
|
|
9213
|
+
end: components["schemas"]["DateTimeSpec"];
|
|
9214
|
+
all_day: boolean;
|
|
9215
|
+
start_utc: string;
|
|
9216
|
+
end_utc: string;
|
|
9217
|
+
recurrence?: components["schemas"]["Recurrence"] | null;
|
|
9218
|
+
status: "confirmed" | "tentative" | "cancelled";
|
|
9219
|
+
show_as: "free" | "tentative" | "busy" | "oof" | "working_elsewhere";
|
|
9220
|
+
sensitivity: "normal" | "private" | "confidential";
|
|
9221
|
+
categories?: string[];
|
|
9222
|
+
color?: string | null;
|
|
9223
|
+
reminders?: components["schemas"]["ReminderSpec"][];
|
|
9224
|
+
use_default_reminders: boolean;
|
|
9225
|
+
organizer?: components["schemas"]["Person"] | null;
|
|
9226
|
+
attendees?: components["schemas"]["AttendeeRead"][];
|
|
9227
|
+
my_partstat?: ("needs_action" | "accepted" | "declined" | "tentative" | "delegated") | null;
|
|
9228
|
+
is_organizer: boolean;
|
|
9229
|
+
conference?: components["schemas"]["Conference"] | null;
|
|
9230
|
+
attachments?: components["schemas"]["AttachmentRef"][];
|
|
9231
|
+
url?: string | null;
|
|
9232
|
+
conversation_id?: string | null;
|
|
9233
|
+
fact_id?: string | null;
|
|
9234
|
+
sequence: number;
|
|
9235
|
+
etag: string;
|
|
9236
|
+
created?: string | null;
|
|
9237
|
+
updated?: string | null;
|
|
9238
|
+
can_edit: boolean;
|
|
9239
|
+
auto_decline: boolean;
|
|
9240
|
+
decline_message?: string | null;
|
|
9241
|
+
restricted: boolean;
|
|
9242
|
+
}[]>;
|
|
9243
|
+
getEvent: (evtId: string, recurrenceId?: string | null) => Promise<{
|
|
9244
|
+
id: string;
|
|
9245
|
+
instance_id: string;
|
|
9246
|
+
calendar_id: string;
|
|
9247
|
+
uid: string;
|
|
9248
|
+
recurrence_id?: string | null;
|
|
9249
|
+
is_recurring: boolean;
|
|
9250
|
+
is_exception: boolean;
|
|
9251
|
+
title: string;
|
|
9252
|
+
description?: string | null;
|
|
9253
|
+
description_html?: string | null;
|
|
9254
|
+
location?: string | null;
|
|
9255
|
+
start: components["schemas"]["DateTimeSpec"];
|
|
9256
|
+
end: components["schemas"]["DateTimeSpec"];
|
|
9257
|
+
all_day: boolean;
|
|
9258
|
+
start_utc: string;
|
|
9259
|
+
end_utc: string;
|
|
9260
|
+
recurrence?: components["schemas"]["Recurrence"] | null;
|
|
9261
|
+
status: "confirmed" | "tentative" | "cancelled";
|
|
9262
|
+
show_as: "free" | "tentative" | "busy" | "oof" | "working_elsewhere";
|
|
9263
|
+
sensitivity: "normal" | "private" | "confidential";
|
|
9264
|
+
categories?: string[];
|
|
9265
|
+
color?: string | null;
|
|
9266
|
+
reminders?: components["schemas"]["ReminderSpec"][];
|
|
9267
|
+
use_default_reminders: boolean;
|
|
9268
|
+
organizer?: components["schemas"]["Person"] | null;
|
|
9269
|
+
attendees?: components["schemas"]["AttendeeRead"][];
|
|
9270
|
+
my_partstat?: ("needs_action" | "accepted" | "declined" | "tentative" | "delegated") | null;
|
|
9271
|
+
is_organizer: boolean;
|
|
9272
|
+
conference?: components["schemas"]["Conference"] | null;
|
|
9273
|
+
attachments?: components["schemas"]["AttachmentRef"][];
|
|
9274
|
+
url?: string | null;
|
|
9275
|
+
conversation_id?: string | null;
|
|
9276
|
+
fact_id?: string | null;
|
|
9277
|
+
sequence: number;
|
|
9278
|
+
etag: string;
|
|
9279
|
+
created?: string | null;
|
|
9280
|
+
updated?: string | null;
|
|
9281
|
+
can_edit: boolean;
|
|
9282
|
+
auto_decline: boolean;
|
|
9283
|
+
decline_message?: string | null;
|
|
9284
|
+
restricted: boolean;
|
|
9285
|
+
}>;
|
|
9286
|
+
createEvent: (body: EventCreateBody) => Promise<{
|
|
9287
|
+
id: string;
|
|
9288
|
+
instance_id: string;
|
|
9289
|
+
calendar_id: string;
|
|
9290
|
+
uid: string;
|
|
9291
|
+
recurrence_id?: string | null;
|
|
9292
|
+
is_recurring: boolean;
|
|
9293
|
+
is_exception: boolean;
|
|
9294
|
+
title: string;
|
|
9295
|
+
description?: string | null;
|
|
9296
|
+
description_html?: string | null;
|
|
9297
|
+
location?: string | null;
|
|
9298
|
+
start: components["schemas"]["DateTimeSpec"];
|
|
9299
|
+
end: components["schemas"]["DateTimeSpec"];
|
|
9300
|
+
all_day: boolean;
|
|
9301
|
+
start_utc: string;
|
|
9302
|
+
end_utc: string;
|
|
9303
|
+
recurrence?: components["schemas"]["Recurrence"] | null;
|
|
9304
|
+
status: "confirmed" | "tentative" | "cancelled";
|
|
9305
|
+
show_as: "free" | "tentative" | "busy" | "oof" | "working_elsewhere";
|
|
9306
|
+
sensitivity: "normal" | "private" | "confidential";
|
|
9307
|
+
categories?: string[];
|
|
9308
|
+
color?: string | null;
|
|
9309
|
+
reminders?: components["schemas"]["ReminderSpec"][];
|
|
9310
|
+
use_default_reminders: boolean;
|
|
9311
|
+
organizer?: components["schemas"]["Person"] | null;
|
|
9312
|
+
attendees?: components["schemas"]["AttendeeRead"][];
|
|
9313
|
+
my_partstat?: ("needs_action" | "accepted" | "declined" | "tentative" | "delegated") | null;
|
|
9314
|
+
is_organizer: boolean;
|
|
9315
|
+
conference?: components["schemas"]["Conference"] | null;
|
|
9316
|
+
attachments?: components["schemas"]["AttachmentRef"][];
|
|
9317
|
+
url?: string | null;
|
|
9318
|
+
conversation_id?: string | null;
|
|
9319
|
+
fact_id?: string | null;
|
|
9320
|
+
sequence: number;
|
|
9321
|
+
etag: string;
|
|
9322
|
+
created?: string | null;
|
|
9323
|
+
updated?: string | null;
|
|
9324
|
+
can_edit: boolean;
|
|
9325
|
+
auto_decline: boolean;
|
|
9326
|
+
decline_message?: string | null;
|
|
9327
|
+
restricted: boolean;
|
|
9328
|
+
}>;
|
|
9329
|
+
updateEvent: (target: ScopedTarget, body: EventPatchBody) => Promise<{
|
|
9330
|
+
id: string;
|
|
9331
|
+
instance_id: string;
|
|
9332
|
+
calendar_id: string;
|
|
9333
|
+
uid: string;
|
|
9334
|
+
recurrence_id?: string | null;
|
|
9335
|
+
is_recurring: boolean;
|
|
9336
|
+
is_exception: boolean;
|
|
9337
|
+
title: string;
|
|
9338
|
+
description?: string | null;
|
|
9339
|
+
description_html?: string | null;
|
|
9340
|
+
location?: string | null;
|
|
9341
|
+
start: components["schemas"]["DateTimeSpec"];
|
|
9342
|
+
end: components["schemas"]["DateTimeSpec"];
|
|
9343
|
+
all_day: boolean;
|
|
9344
|
+
start_utc: string;
|
|
9345
|
+
end_utc: string;
|
|
9346
|
+
recurrence?: components["schemas"]["Recurrence"] | null;
|
|
9347
|
+
status: "confirmed" | "tentative" | "cancelled";
|
|
9348
|
+
show_as: "free" | "tentative" | "busy" | "oof" | "working_elsewhere";
|
|
9349
|
+
sensitivity: "normal" | "private" | "confidential";
|
|
9350
|
+
categories?: string[];
|
|
9351
|
+
color?: string | null;
|
|
9352
|
+
reminders?: components["schemas"]["ReminderSpec"][];
|
|
9353
|
+
use_default_reminders: boolean;
|
|
9354
|
+
organizer?: components["schemas"]["Person"] | null;
|
|
9355
|
+
attendees?: components["schemas"]["AttendeeRead"][];
|
|
9356
|
+
my_partstat?: ("needs_action" | "accepted" | "declined" | "tentative" | "delegated") | null;
|
|
9357
|
+
is_organizer: boolean;
|
|
9358
|
+
conference?: components["schemas"]["Conference"] | null;
|
|
9359
|
+
attachments?: components["schemas"]["AttachmentRef"][];
|
|
9360
|
+
url?: string | null;
|
|
9361
|
+
conversation_id?: string | null;
|
|
9362
|
+
fact_id?: string | null;
|
|
9363
|
+
sequence: number;
|
|
9364
|
+
etag: string;
|
|
9365
|
+
created?: string | null;
|
|
9366
|
+
updated?: string | null;
|
|
9367
|
+
can_edit: boolean;
|
|
9368
|
+
auto_decline: boolean;
|
|
9369
|
+
decline_message?: string | null;
|
|
9370
|
+
restricted: boolean;
|
|
9371
|
+
}>;
|
|
9372
|
+
deleteEvent: (target: ScopedTarget & {
|
|
9373
|
+
notify?: boolean;
|
|
9374
|
+
}) => Promise<void>;
|
|
9375
|
+
moveEvent: (evtId: string, calendarId: string) => Promise<{
|
|
9376
|
+
id: string;
|
|
9377
|
+
instance_id: string;
|
|
9378
|
+
calendar_id: string;
|
|
9379
|
+
uid: string;
|
|
9380
|
+
recurrence_id?: string | null;
|
|
9381
|
+
is_recurring: boolean;
|
|
9382
|
+
is_exception: boolean;
|
|
9383
|
+
title: string;
|
|
9384
|
+
description?: string | null;
|
|
9385
|
+
description_html?: string | null;
|
|
9386
|
+
location?: string | null;
|
|
9387
|
+
start: components["schemas"]["DateTimeSpec"];
|
|
9388
|
+
end: components["schemas"]["DateTimeSpec"];
|
|
9389
|
+
all_day: boolean;
|
|
9390
|
+
start_utc: string;
|
|
9391
|
+
end_utc: string;
|
|
9392
|
+
recurrence?: components["schemas"]["Recurrence"] | null;
|
|
9393
|
+
status: "confirmed" | "tentative" | "cancelled";
|
|
9394
|
+
show_as: "free" | "tentative" | "busy" | "oof" | "working_elsewhere";
|
|
9395
|
+
sensitivity: "normal" | "private" | "confidential";
|
|
9396
|
+
categories?: string[];
|
|
9397
|
+
color?: string | null;
|
|
9398
|
+
reminders?: components["schemas"]["ReminderSpec"][];
|
|
9399
|
+
use_default_reminders: boolean;
|
|
9400
|
+
organizer?: components["schemas"]["Person"] | null;
|
|
9401
|
+
attendees?: components["schemas"]["AttendeeRead"][];
|
|
9402
|
+
my_partstat?: ("needs_action" | "accepted" | "declined" | "tentative" | "delegated") | null;
|
|
9403
|
+
is_organizer: boolean;
|
|
9404
|
+
conference?: components["schemas"]["Conference"] | null;
|
|
9405
|
+
attachments?: components["schemas"]["AttachmentRef"][];
|
|
9406
|
+
url?: string | null;
|
|
9407
|
+
conversation_id?: string | null;
|
|
9408
|
+
fact_id?: string | null;
|
|
9409
|
+
sequence: number;
|
|
9410
|
+
etag: string;
|
|
9411
|
+
created?: string | null;
|
|
9412
|
+
updated?: string | null;
|
|
9413
|
+
can_edit: boolean;
|
|
9414
|
+
auto_decline: boolean;
|
|
9415
|
+
decline_message?: string | null;
|
|
9416
|
+
restricted: boolean;
|
|
9417
|
+
}>;
|
|
9418
|
+
respond: (params: RespondParams) => Promise<{
|
|
9419
|
+
id: string;
|
|
9420
|
+
instance_id: string;
|
|
9421
|
+
calendar_id: string;
|
|
9422
|
+
uid: string;
|
|
9423
|
+
recurrence_id?: string | null;
|
|
9424
|
+
is_recurring: boolean;
|
|
9425
|
+
is_exception: boolean;
|
|
9426
|
+
title: string;
|
|
9427
|
+
description?: string | null;
|
|
9428
|
+
description_html?: string | null;
|
|
9429
|
+
location?: string | null;
|
|
9430
|
+
start: components["schemas"]["DateTimeSpec"];
|
|
9431
|
+
end: components["schemas"]["DateTimeSpec"];
|
|
9432
|
+
all_day: boolean;
|
|
9433
|
+
start_utc: string;
|
|
9434
|
+
end_utc: string;
|
|
9435
|
+
recurrence?: components["schemas"]["Recurrence"] | null;
|
|
9436
|
+
status: "confirmed" | "tentative" | "cancelled";
|
|
9437
|
+
show_as: "free" | "tentative" | "busy" | "oof" | "working_elsewhere";
|
|
9438
|
+
sensitivity: "normal" | "private" | "confidential";
|
|
9439
|
+
categories?: string[];
|
|
9440
|
+
color?: string | null;
|
|
9441
|
+
reminders?: components["schemas"]["ReminderSpec"][];
|
|
9442
|
+
use_default_reminders: boolean;
|
|
9443
|
+
organizer?: components["schemas"]["Person"] | null;
|
|
9444
|
+
attendees?: components["schemas"]["AttendeeRead"][];
|
|
9445
|
+
my_partstat?: ("needs_action" | "accepted" | "declined" | "tentative" | "delegated") | null;
|
|
9446
|
+
is_organizer: boolean;
|
|
9447
|
+
conference?: components["schemas"]["Conference"] | null;
|
|
9448
|
+
attachments?: components["schemas"]["AttachmentRef"][];
|
|
9449
|
+
url?: string | null;
|
|
9450
|
+
conversation_id?: string | null;
|
|
9451
|
+
fact_id?: string | null;
|
|
9452
|
+
sequence: number;
|
|
9453
|
+
etag: string;
|
|
9454
|
+
created?: string | null;
|
|
9455
|
+
updated?: string | null;
|
|
9456
|
+
can_edit: boolean;
|
|
9457
|
+
auto_decline: boolean;
|
|
9458
|
+
decline_message?: string | null;
|
|
9459
|
+
restricted: boolean;
|
|
9460
|
+
}>;
|
|
9461
|
+
eventIcs: (evtId: string) => Promise<Blob>;
|
|
9462
|
+
lookupByUid: (uid: string) => Promise<{
|
|
9463
|
+
id: string;
|
|
9464
|
+
instance_id: string;
|
|
9465
|
+
calendar_id: string;
|
|
9466
|
+
uid: string;
|
|
9467
|
+
recurrence_id?: string | null;
|
|
9468
|
+
is_recurring: boolean;
|
|
9469
|
+
is_exception: boolean;
|
|
9470
|
+
title: string;
|
|
9471
|
+
description?: string | null;
|
|
9472
|
+
description_html?: string | null;
|
|
9473
|
+
location?: string | null;
|
|
9474
|
+
start: components["schemas"]["DateTimeSpec"];
|
|
9475
|
+
end: components["schemas"]["DateTimeSpec"];
|
|
9476
|
+
all_day: boolean;
|
|
9477
|
+
start_utc: string;
|
|
9478
|
+
end_utc: string;
|
|
9479
|
+
recurrence?: components["schemas"]["Recurrence"] | null;
|
|
9480
|
+
status: "confirmed" | "tentative" | "cancelled";
|
|
9481
|
+
show_as: "free" | "tentative" | "busy" | "oof" | "working_elsewhere";
|
|
9482
|
+
sensitivity: "normal" | "private" | "confidential";
|
|
9483
|
+
categories?: string[];
|
|
9484
|
+
color?: string | null;
|
|
9485
|
+
reminders?: components["schemas"]["ReminderSpec"][];
|
|
9486
|
+
use_default_reminders: boolean;
|
|
9487
|
+
organizer?: components["schemas"]["Person"] | null;
|
|
9488
|
+
attendees?: components["schemas"]["AttendeeRead"][];
|
|
9489
|
+
my_partstat?: ("needs_action" | "accepted" | "declined" | "tentative" | "delegated") | null;
|
|
9490
|
+
is_organizer: boolean;
|
|
9491
|
+
conference?: components["schemas"]["Conference"] | null;
|
|
9492
|
+
attachments?: components["schemas"]["AttachmentRef"][];
|
|
9493
|
+
url?: string | null;
|
|
9494
|
+
conversation_id?: string | null;
|
|
9495
|
+
fact_id?: string | null;
|
|
9496
|
+
sequence: number;
|
|
9497
|
+
etag: string;
|
|
9498
|
+
created?: string | null;
|
|
9499
|
+
updated?: string | null;
|
|
9500
|
+
can_edit: boolean;
|
|
9501
|
+
auto_decline: boolean;
|
|
9502
|
+
decline_message?: string | null;
|
|
9503
|
+
restricted: boolean;
|
|
9504
|
+
} | null>;
|
|
9505
|
+
/** The open workspace's overlay layers (not sealed: no unlock). */
|
|
9506
|
+
listOverlays: (range: CalendarWindow, layers: OverlayLayerName[]) => Promise<{
|
|
9507
|
+
layer: "facts" | "workflows" | "tasks";
|
|
9508
|
+
id: string;
|
|
9509
|
+
instance_id: string;
|
|
9510
|
+
title: string;
|
|
9511
|
+
start_utc: string;
|
|
9512
|
+
end_utc: string;
|
|
9513
|
+
all_day: boolean;
|
|
9514
|
+
time_zone?: string | null;
|
|
9515
|
+
workspace_id: string;
|
|
9516
|
+
link?: string | null;
|
|
9517
|
+
}[]>;
|
|
9518
|
+
listShares: (calId: string) => Promise<{
|
|
9519
|
+
user_id: string;
|
|
9520
|
+
email?: string | null;
|
|
9521
|
+
name?: string | null;
|
|
9522
|
+
role: "owner" | "delegate" | "write" | "read" | "read_basic" | "freebusy";
|
|
9523
|
+
is_agent: boolean;
|
|
9524
|
+
}[]>;
|
|
9525
|
+
share: (calId: string, grantee: string, role: ShareRole) => Promise<{
|
|
9526
|
+
user_id: string;
|
|
9527
|
+
email?: string | null;
|
|
9528
|
+
name?: string | null;
|
|
9529
|
+
role: "owner" | "delegate" | "write" | "read" | "read_basic" | "freebusy";
|
|
9530
|
+
is_agent: boolean;
|
|
9531
|
+
}>;
|
|
9532
|
+
/** Remove a grantee; the key it rotates is bridged again. */
|
|
9533
|
+
unshare: (calId: string, grantee: string) => Promise<void>;
|
|
9534
|
+
subscribe: (body: SubscribeParams) => Promise<{
|
|
9535
|
+
id: string;
|
|
9536
|
+
name?: string | null;
|
|
9537
|
+
description?: string | null;
|
|
9538
|
+
color: string;
|
|
9539
|
+
timezone: string;
|
|
9540
|
+
kind: "calendar" | "resource" | "subscription" | "holidays" | "birthdays" | "addressbook";
|
|
9541
|
+
role: "owner" | "delegate" | "write" | "read" | "read_basic" | "freebusy";
|
|
9542
|
+
is_default: boolean;
|
|
9543
|
+
hidden: boolean;
|
|
9544
|
+
locked: boolean;
|
|
9545
|
+
owner_id: string;
|
|
9546
|
+
owner_name?: string | null;
|
|
9547
|
+
workspace_id?: string | null;
|
|
9548
|
+
default_reminders?: components["schemas"]["ReminderSpec"][];
|
|
9549
|
+
resource?: {
|
|
9550
|
+
[key: string]: unknown;
|
|
9551
|
+
} | null;
|
|
9552
|
+
source_url?: string | null;
|
|
9553
|
+
refreshed_at?: string | null;
|
|
9554
|
+
provider: "native" | "google" | "microsoft" | "caldav" | "ics";
|
|
9555
|
+
account_id?: string | null;
|
|
9556
|
+
can_write: boolean;
|
|
9557
|
+
ctag: string;
|
|
9558
|
+
}>;
|
|
9559
|
+
refresh: (calId: string) => Promise<unknown>;
|
|
9560
|
+
listHolidayCountries: () => Promise<{
|
|
9561
|
+
code: string;
|
|
9562
|
+
name: string;
|
|
9563
|
+
subdivisions?: string[];
|
|
9564
|
+
}[]>;
|
|
9565
|
+
addHolidays: (body: {
|
|
9566
|
+
country: string;
|
|
9567
|
+
subdivision?: string | null;
|
|
9568
|
+
color?: string;
|
|
9569
|
+
}) => Promise<{
|
|
9570
|
+
id: string;
|
|
9571
|
+
name?: string | null;
|
|
9572
|
+
description?: string | null;
|
|
9573
|
+
color: string;
|
|
9574
|
+
timezone: string;
|
|
9575
|
+
kind: "calendar" | "resource" | "subscription" | "holidays" | "birthdays" | "addressbook";
|
|
9576
|
+
role: "owner" | "delegate" | "write" | "read" | "read_basic" | "freebusy";
|
|
9577
|
+
is_default: boolean;
|
|
9578
|
+
hidden: boolean;
|
|
9579
|
+
locked: boolean;
|
|
9580
|
+
owner_id: string;
|
|
9581
|
+
owner_name?: string | null;
|
|
9582
|
+
workspace_id?: string | null;
|
|
9583
|
+
default_reminders?: components["schemas"]["ReminderSpec"][];
|
|
9584
|
+
resource?: {
|
|
9585
|
+
[key: string]: unknown;
|
|
9586
|
+
} | null;
|
|
9587
|
+
source_url?: string | null;
|
|
9588
|
+
refreshed_at?: string | null;
|
|
9589
|
+
provider: "native" | "google" | "microsoft" | "caldav" | "ics";
|
|
9590
|
+
account_id?: string | null;
|
|
9591
|
+
can_write: boolean;
|
|
9592
|
+
ctag: string;
|
|
9593
|
+
}>;
|
|
9594
|
+
createRoom: (body: RoomCreateBody) => Promise<{
|
|
9595
|
+
id: string;
|
|
9596
|
+
name: string;
|
|
9597
|
+
email: string;
|
|
9598
|
+
type: string;
|
|
9599
|
+
capacity?: number | null;
|
|
9600
|
+
building?: string | null;
|
|
9601
|
+
floor?: string | null;
|
|
9602
|
+
features?: string[];
|
|
9603
|
+
auto_accept: boolean;
|
|
9604
|
+
workspace_id?: string | null;
|
|
9605
|
+
free?: boolean | null;
|
|
9606
|
+
busy?: components["schemas"]["BusyBlock"][];
|
|
9607
|
+
}>;
|
|
9608
|
+
listRooms: (query?: RoomQuery) => Promise<{
|
|
9609
|
+
id: string;
|
|
9610
|
+
name: string;
|
|
9611
|
+
email: string;
|
|
9612
|
+
type: string;
|
|
9613
|
+
capacity?: number | null;
|
|
9614
|
+
building?: string | null;
|
|
9615
|
+
floor?: string | null;
|
|
9616
|
+
features?: string[];
|
|
9617
|
+
auto_accept: boolean;
|
|
9618
|
+
workspace_id?: string | null;
|
|
9619
|
+
free?: boolean | null;
|
|
9620
|
+
busy?: components["schemas"]["BusyBlock"][];
|
|
9621
|
+
}[]>;
|
|
9622
|
+
freeBusy: (body: {
|
|
9623
|
+
attendees: string[];
|
|
9624
|
+
start: string;
|
|
9625
|
+
end: string;
|
|
9626
|
+
}) => Promise<{
|
|
9627
|
+
attendee: string;
|
|
9628
|
+
user_id?: string | null;
|
|
9629
|
+
known: boolean;
|
|
9630
|
+
busy?: components["schemas"]["BusyBlock"][];
|
|
9631
|
+
working_hours?: components["schemas"]["WorkingHours"][];
|
|
9632
|
+
time_zone?: string | null;
|
|
9633
|
+
}[]>;
|
|
9634
|
+
findTime: (body: FindTimeParams) => Promise<{
|
|
9635
|
+
start: string;
|
|
9636
|
+
end: string;
|
|
9637
|
+
available: string[];
|
|
9638
|
+
unavailable: string[];
|
|
9639
|
+
score: number;
|
|
9640
|
+
}[]>;
|
|
9641
|
+
/**
|
|
9642
|
+
* Invitations and proposals waiting for me. A new one arrives with its own key: bridge again
|
|
9643
|
+
* first, or an open tab would not see it until it reloaded.
|
|
9644
|
+
*/
|
|
9645
|
+
listInvitations: () => Promise<{
|
|
9646
|
+
kind: "invitation" | "counter";
|
|
9647
|
+
id: string;
|
|
9648
|
+
event_id?: string | null;
|
|
9649
|
+
title?: string | null;
|
|
9650
|
+
start_utc?: string | null;
|
|
9651
|
+
end_utc?: string | null;
|
|
9652
|
+
organizer?: components["schemas"]["Person"] | null;
|
|
9653
|
+
from_email?: string | null;
|
|
9654
|
+
proposed_start?: components["schemas"]["DateTimeSpec"] | null;
|
|
9655
|
+
proposed_end?: components["schemas"]["DateTimeSpec"] | null;
|
|
9656
|
+
comment?: string | null;
|
|
9657
|
+
received_at?: string | null;
|
|
9658
|
+
}[]>;
|
|
9659
|
+
decideCounter: (itpId: string, accept: boolean, comment?: string | null) => Promise<{
|
|
9660
|
+
id: string;
|
|
9661
|
+
instance_id: string;
|
|
9662
|
+
calendar_id: string;
|
|
9663
|
+
uid: string;
|
|
9664
|
+
recurrence_id?: string | null;
|
|
9665
|
+
is_recurring: boolean;
|
|
9666
|
+
is_exception: boolean;
|
|
9667
|
+
title: string;
|
|
9668
|
+
description?: string | null;
|
|
9669
|
+
description_html?: string | null;
|
|
9670
|
+
location?: string | null;
|
|
9671
|
+
start: components["schemas"]["DateTimeSpec"];
|
|
9672
|
+
end: components["schemas"]["DateTimeSpec"];
|
|
9673
|
+
all_day: boolean;
|
|
9674
|
+
start_utc: string;
|
|
9675
|
+
end_utc: string;
|
|
9676
|
+
recurrence?: components["schemas"]["Recurrence"] | null;
|
|
9677
|
+
status: "confirmed" | "tentative" | "cancelled";
|
|
9678
|
+
show_as: "free" | "tentative" | "busy" | "oof" | "working_elsewhere";
|
|
9679
|
+
sensitivity: "normal" | "private" | "confidential";
|
|
9680
|
+
categories?: string[];
|
|
9681
|
+
color?: string | null;
|
|
9682
|
+
reminders?: components["schemas"]["ReminderSpec"][];
|
|
9683
|
+
use_default_reminders: boolean;
|
|
9684
|
+
organizer?: components["schemas"]["Person"] | null;
|
|
9685
|
+
attendees?: components["schemas"]["AttendeeRead"][];
|
|
9686
|
+
my_partstat?: ("needs_action" | "accepted" | "declined" | "tentative" | "delegated") | null;
|
|
9687
|
+
is_organizer: boolean;
|
|
9688
|
+
conference?: components["schemas"]["Conference"] | null;
|
|
9689
|
+
attachments?: components["schemas"]["AttachmentRef"][];
|
|
9690
|
+
url?: string | null;
|
|
9691
|
+
conversation_id?: string | null;
|
|
9692
|
+
fact_id?: string | null;
|
|
9693
|
+
sequence: number;
|
|
9694
|
+
etag: string;
|
|
9695
|
+
created?: string | null;
|
|
9696
|
+
updated?: string | null;
|
|
9697
|
+
can_edit: boolean;
|
|
9698
|
+
auto_decline: boolean;
|
|
9699
|
+
decline_message?: string | null;
|
|
9700
|
+
restricted: boolean;
|
|
9701
|
+
}>;
|
|
9702
|
+
peopleKeys: (body: {
|
|
9703
|
+
emails?: string[];
|
|
9704
|
+
user_ids?: string[];
|
|
9705
|
+
}) => Promise<{
|
|
9706
|
+
email: string;
|
|
9707
|
+
user_id: string;
|
|
9708
|
+
encryption_public_key: string;
|
|
9709
|
+
}[]>;
|
|
9710
|
+
listAccounts: () => Promise<{
|
|
9711
|
+
id: string;
|
|
9712
|
+
kind: "google" | "microsoft" | "caldav";
|
|
9713
|
+
address: string;
|
|
9714
|
+
background_sync: boolean;
|
|
9715
|
+
status: string;
|
|
9716
|
+
last_error?: string | null;
|
|
9717
|
+
last_sync_at?: string | null;
|
|
9718
|
+
calendars?: string[];
|
|
9719
|
+
profile_id?: string | null;
|
|
9720
|
+
}[]>;
|
|
9721
|
+
listCalDavProfiles: () => Promise<{
|
|
9722
|
+
id: string;
|
|
9723
|
+
name: string;
|
|
9724
|
+
url: string;
|
|
9725
|
+
}[]>;
|
|
9726
|
+
connectOAuthAccount: (kind: OAuthAccountKind, backgroundSync?: boolean) => Promise<{
|
|
9727
|
+
id: string;
|
|
9728
|
+
kind: "google" | "microsoft" | "caldav";
|
|
9729
|
+
address: string;
|
|
9730
|
+
background_sync: boolean;
|
|
9731
|
+
status: string;
|
|
9732
|
+
last_error?: string | null;
|
|
9733
|
+
last_sync_at?: string | null;
|
|
9734
|
+
calendars?: string[];
|
|
9735
|
+
profile_id?: string | null;
|
|
9736
|
+
}>;
|
|
9737
|
+
connectCalDavAccount: (body: CalDavConnectBody) => Promise<{
|
|
9738
|
+
id: string;
|
|
9739
|
+
kind: "google" | "microsoft" | "caldav";
|
|
9740
|
+
address: string;
|
|
9741
|
+
background_sync: boolean;
|
|
9742
|
+
status: string;
|
|
9743
|
+
last_error?: string | null;
|
|
9744
|
+
last_sync_at?: string | null;
|
|
9745
|
+
calendars?: string[];
|
|
9746
|
+
profile_id?: string | null;
|
|
9747
|
+
}>;
|
|
9748
|
+
updateAccount: (accId: string, backgroundSync: boolean) => Promise<{
|
|
9749
|
+
id: string;
|
|
9750
|
+
kind: "google" | "microsoft" | "caldav";
|
|
9751
|
+
address: string;
|
|
9752
|
+
background_sync: boolean;
|
|
9753
|
+
status: string;
|
|
9754
|
+
last_error?: string | null;
|
|
9755
|
+
last_sync_at?: string | null;
|
|
9756
|
+
calendars?: string[];
|
|
9757
|
+
profile_id?: string | null;
|
|
9758
|
+
}>;
|
|
9759
|
+
syncAccount: (accId: string) => Promise<AccountSyncResult>;
|
|
9760
|
+
disconnectAccount: (accId: string) => Promise<void>;
|
|
9761
|
+
publishToAccount: (accId: string, calendarId: string) => Promise<{
|
|
9762
|
+
id: string;
|
|
9763
|
+
name?: string | null;
|
|
9764
|
+
description?: string | null;
|
|
9765
|
+
color: string;
|
|
9766
|
+
timezone: string;
|
|
9767
|
+
kind: "calendar" | "resource" | "subscription" | "holidays" | "birthdays" | "addressbook";
|
|
9768
|
+
role: "owner" | "delegate" | "write" | "read" | "read_basic" | "freebusy";
|
|
9769
|
+
is_default: boolean;
|
|
9770
|
+
hidden: boolean;
|
|
9771
|
+
locked: boolean;
|
|
9772
|
+
owner_id: string;
|
|
9773
|
+
owner_name?: string | null;
|
|
9774
|
+
workspace_id?: string | null;
|
|
9775
|
+
default_reminders?: components["schemas"]["ReminderSpec"][];
|
|
9776
|
+
resource?: {
|
|
9777
|
+
[key: string]: unknown;
|
|
9778
|
+
} | null;
|
|
9779
|
+
source_url?: string | null;
|
|
9780
|
+
refreshed_at?: string | null;
|
|
9781
|
+
provider: "native" | "google" | "microsoft" | "caldav" | "ics";
|
|
9782
|
+
account_id?: string | null;
|
|
9783
|
+
can_write: boolean;
|
|
9784
|
+
ctag: string;
|
|
9785
|
+
}>;
|
|
9786
|
+
listAppPasswords: () => Promise<{
|
|
9787
|
+
id: string;
|
|
9788
|
+
kind: "dav" | "feed" | "freebusy";
|
|
9789
|
+
label: string;
|
|
9790
|
+
calendar_ids?: string[];
|
|
9791
|
+
feed_level?: string | null;
|
|
9792
|
+
created_at: string;
|
|
9793
|
+
last_used_at?: string | null;
|
|
9794
|
+
}[]>;
|
|
9795
|
+
createAppPassword: (body: AppPasswordCreateBody) => Promise<{
|
|
9796
|
+
id: string;
|
|
9797
|
+
kind: "dav" | "feed" | "freebusy";
|
|
9798
|
+
label: string;
|
|
9799
|
+
calendar_ids?: string[];
|
|
9800
|
+
feed_level?: string | null;
|
|
9801
|
+
created_at: string;
|
|
9802
|
+
last_used_at?: string | null;
|
|
9803
|
+
password?: string | null;
|
|
9804
|
+
username?: string | null;
|
|
9805
|
+
server_url?: string | null;
|
|
9806
|
+
feed_url?: string | null;
|
|
9807
|
+
}>;
|
|
9808
|
+
createFeed: (body: FeedCreateBody) => Promise<{
|
|
9809
|
+
id: string;
|
|
9810
|
+
kind: "dav" | "feed" | "freebusy";
|
|
9811
|
+
label: string;
|
|
9812
|
+
calendar_ids?: string[];
|
|
9813
|
+
feed_level?: string | null;
|
|
9814
|
+
created_at: string;
|
|
9815
|
+
last_used_at?: string | null;
|
|
9816
|
+
password?: string | null;
|
|
9817
|
+
username?: string | null;
|
|
9818
|
+
server_url?: string | null;
|
|
9819
|
+
feed_url?: string | null;
|
|
9820
|
+
}>;
|
|
9821
|
+
revokeAppPassword: (apwId: string) => Promise<void>;
|
|
9822
|
+
listBookingPages: () => Promise<{
|
|
9823
|
+
id: string;
|
|
9824
|
+
slug: string;
|
|
9825
|
+
url: string;
|
|
9826
|
+
title: string;
|
|
9827
|
+
description?: string | null;
|
|
9828
|
+
durations: number[];
|
|
9829
|
+
time_zone: string;
|
|
9830
|
+
weekly?: {
|
|
9831
|
+
[key: string]: unknown;
|
|
9832
|
+
}[];
|
|
9833
|
+
buffer_minutes: number;
|
|
9834
|
+
min_notice_minutes: number;
|
|
9835
|
+
max_days_ahead: number;
|
|
9836
|
+
daily_limit?: number | null;
|
|
9837
|
+
location?: string | null;
|
|
9838
|
+
active: boolean;
|
|
9839
|
+
owner_name?: string | null;
|
|
9840
|
+
}[]>;
|
|
9841
|
+
putBookingPage: (body: BookingPageWriteBody) => Promise<{
|
|
9842
|
+
id: string;
|
|
9843
|
+
slug: string;
|
|
9844
|
+
url: string;
|
|
9845
|
+
title: string;
|
|
9846
|
+
description?: string | null;
|
|
9847
|
+
durations: number[];
|
|
9848
|
+
time_zone: string;
|
|
9849
|
+
weekly?: {
|
|
9850
|
+
[key: string]: unknown;
|
|
9851
|
+
}[];
|
|
9852
|
+
buffer_minutes: number;
|
|
9853
|
+
min_notice_minutes: number;
|
|
9854
|
+
max_days_ahead: number;
|
|
9855
|
+
daily_limit?: number | null;
|
|
9856
|
+
location?: string | null;
|
|
9857
|
+
active: boolean;
|
|
9858
|
+
owner_name?: string | null;
|
|
9859
|
+
}>;
|
|
9860
|
+
deleteBookingPage: (slug: string) => Promise<void>;
|
|
9861
|
+
};
|
|
8719
9862
|
/**
|
|
8720
9863
|
* Build (and cache) the chat crypto context for the current session: my X25519 keypair
|
|
8721
9864
|
* (derived from the signing key) and external id. Cleared on logout.
|
|
@@ -11154,4 +12297,4 @@ declare namespace identity {
|
|
|
11154
12297
|
export { type identity_IdentityErrorCode as IdentityErrorCode, type identity_IdentityPurchase as IdentityPurchase, type identity_IdentityState as IdentityState, type identity_IdentityStatus as IdentityStatus, identity_acceptName as acceptName, identity_getStatus as getStatus, identity_identityErrorCode as identityErrorCode, identity_purchase as purchase, identity_refresh as refresh, identity_remove as remove, identity_startSession as startSession };
|
|
11155
12298
|
}
|
|
11156
12299
|
|
|
11157
|
-
export { type
|
|
12300
|
+
export { type CommandDescriptor as $, ACCOUNT_VENDOR as A, type BookingConfirmation as B, type CalDavConnectBody as C, type CalendarAccount as D, type CalendarAccountKind as E, type CalendarCreateBody as F, type CalendarEvent as G, type CalendarKeys as H, type CalendarRead as I, type CalendarSettings as J, type CalendarSettingsBody as K, type CalendarUpdate as L, type CalendarWindow as M, type ChatAttachmentFile as N, type ChatAttachmentInput as O, type ChatCryptoContext as P, type ChatKeyRing as Q, type ChatKind as R, type ChatMemberKey as S, type ChatMemberResponse as T, type ChatMessageResponse as U, type ChatResponse as V, type ChatSession as W, type CitationSummary as X, type CitationToolSources as Y, type CliConfig as Z, type CliCredentials as _, type AccountSyncResult as a, type ProjectEventKind as a$, type ConfigStore as a0, type ConnectOptions as a1, type ConversationResponse as a2, type ConversationUsageResponse as a3, type CreateFactRequest as a4, type CreateFactsRequest as a5, type CreateWorkRequest as a6, type CreateWorkflowRequest as a7, DEFAULT_AI_USD_PER_GBP as a8, DOC_TERMINAL_STATUSES as a9, type IdentityState as aA, type IdentityStatus as aB, type ImportResult as aC, type InvitationRead as aD, type LinkedRun as aE, type ListAllOptions as aF, type ListEventsParams as aG, type ListFactsOptions as aH, type ListPaginatedOptions as aI, type MailAttachment as aJ, type MailDraftSSEEvent as aK, type MessageLevel as aL, type MessageMetadataPayload$1 as aM, type MessageQueuedEvent as aN, type OAuthAccountKind as aO, type OutputTokensDetails as aP, type OverlayItem as aQ, type OverlayLayerName as aR, type ParsedSlashCommand as aS, type PendingAuthResponse as aT, type PersonKey as aU, PlanStepsError as aV, type PlanWorkRequest as aW, type ProbeAnswerEvent as aX, type ProjectBudget as aY, type ProjectConversationUsageResponse as aZ, type ProjectDetails as a_, type DateTimeSpec as aa, type DecryptedChat as ab, type DecryptedChatMessage as ac, type DeferredInterjectionEvent as ad, type DocNameMap as ae, type DocumentAutomationAction as af, type DocumentListFields as ag, type DocumentListOrder as ah, type DocumentSelector as ai, type DocumentWaiter as aj, type DocumentWaiterOptions as ak, type EditScope as al, type EventCreateBody as am, type EventPatchBody as an, FLAT_TAG_KINDS as ao, type FactResponse as ap, type FactSearchRequest as aq, type FactSearchResponse as ar, type FeedCreateBody as as, type FeedLevel as at, type FindTimeParams as au, type FormattedWsMessage as av, type FreeBusyEntry as aw, type HolidayCountry as ax, type IdentityErrorCode as ay, type IdentityPurchase as az, type ActivityKind as b, type TagListQuery as b$, type ProjectEventResponse as b0, type ProjectInvoicesResponse as b1, type ProjectResponse as b2, type ProjectUpdateRequest as b3, type ProjectUsageResponse as b4, PublicBookingError as b5, type PublicBookingPage as b6, type QueryOptions as b7, type RaisedSignal as b8, type ReconnectOptions as b9, type ScopedTarget as bA, type SendBack as bB, type ShareRead as bC, type ShareRole as bD, type SkillSummary as bE, type SkippedFile as bF, type StepActionRequest as bG, type StepActivityEvent as bH, type StepAssignee as bI, type StepField as bJ, type StepFieldOption as bK, type StepFieldOptionTone as bL, type StepKind as bM, type StepPhase as bN, type StepSignal as bO, type StepSignalWhen as bP, type StepState as bQ, type StepStatus as bR, type SubmitBackgroundQueryOptions as bS, type SubscribeParams as bT, TAG_KINDS as bU, type TagChange as bV, type TagFieldDefinition as bW, type TagKind as bX, type TagKindField as bY, type TagKindSchema as bZ, type TagLinks as b_, type ReconnectableWsConnection as ba, type ResolvedCitation as bb, type ResolvedRecipient as bc, type RespondParams as bd, type RespondPartstat as be, type ResponseCompletedEvent as bf, type ResponseContentPartAddedEvent as bg, type ResponseCreatedEvent as bh, type ResponseFailedEvent as bi, type ResponseOutputItemAddedEvent as bj, type ResponseOutputItemDoneEvent as bk, type ResponseOutputTextDeltaEvent as bl, type ResponseOutputTextDoneEvent as bm, type ResponseUsage as bn, type RoomCreateBody as bo, type RoomQuery as bp, type RoomRead as bq, type RunProgress as br, type RunStep as bs, type RunWaitingOn as bt, type SSEEvent as bu, type SSEStreamCallbacks as bv, type SSEStreamResult as bw, type SSEStreamStartData as bx, STEP_FIELD_OPTION_TONES as by, SUPPORTED_EXTENSIONS as bz, type ActivityResponse as c, formatWsMessage as c$, type TagResponse as c0, type TaskPlan as c1, type TaskPlanStep as c2, type TimeSuggestion as c3, type TokenBudgetContext as c4, type UpdateConversationRequest as c5, type UpdateFactRequest as c6, type UpdateWorkflowRequest as c7, type UploadBatchResult as c8, type UploadDirectOptions as c9, buildRetrievalChunkTool as cA, buildRetrievalFullContextTool as cB, buildRetrievalTocTool as cC, calendar as cD, cancelPublicBooking as cE, chats as cF, connectWebSocket as cG, connectWithReconnect as cH, consumeSSEStream as cI, contacts as cJ, conversations as cK, countCitations as cL, createAuthenticatedClient as cM, createDocumentWaiter as cN, doctags as cO, documents as cP, facts as cQ, files as cR, filterSkills as cS, formatAgentStepLabel as cT, formatFileSize as cU, formatGbp as cV, formatGbpPerMillionTokens as cW, formatItemLabel as cX, formatStreamSummary as cY, formatUserName as cZ, formatWorkspaceChoices as c_, type UploadDirectResult as ca, type UploadOptions as cb, type UploadResult as cc, type UsageBreakdown as cd, type UserDailyUsageResponse as ce, type UserInfo as cf, type UserInputRequestEvent as cg, type UserMessageEvent as ch, WebSocketAuthError as ci, type WeeklyHoursSpec as cj, type WorkStatus as ck, type WorkflowAuthMode as cl, type WorkflowResponse as cm, type WorkflowRunHistoryResponse as cn, type WorkflowRunResponse as co, type WorkspaceContext as cp, type WsConnection as cq, account as cr, agentconfig as cs, agents as ct, assistant as cu, authenticatedFetch as cv, bookPublicSlot as cw, buildCitationChunkData as cx, buildDocNameMap as cy, buildFactsContextTool as cz, type AgentControlStateEvent as d, generateEncryptedWorkspaceKey as d0, generateNewWorkspaceKey as d1, getErrorCode as d2, getErrorMessage as d3, getPublicBookingPage as d4, getRawWorkspaceKey as d5, health as d6, identity as d7, identityErrorCode as d8, mail as d9, usdToGbp as dA, work as dB, workflowSteps as dC, workflows as dD, workspaces as dE, notifications as da, parseSSEEvents as db, parseSlashCommand as dc, parseSlashTokenInProgress as dd, performPasswordLogin as de, performSigningKeyLogin as df, performSsoDeviceFlowLogin as dg, profile as dh, projects as di, requireData as dj, requireOk as dk, resolveAuth as dl, resolveCitations as dm, resolveWorkspace as dn, responses as dp, selectWorkspace as dq, selectWorkspaceById as dr, sessions as ds, settings as dt, signatureRequests as du, splitAppPasswords as dv, streamSSE as dw, stripCitationMarkdown as dx, summarizeCitations as dy, tags as dz, type AgentStepDeltaEvent as e, type AgentStepEvent as f, type AppPassword as g, type AppPasswordCreateBody as h, type AppPasswordCreated as i, Arbi as j, ArbiApiError as k, ArbiError as l, type ArbiErrorEvent as m, type ArbiHostSession as n, type ArbiOptions as o, ArbiSessionExpiredError as p, type ArtifactEvent as q, type AttendeeRead as r, type AuthContext as s, type AuthHeaders as t, type AuthMode as u, type AuthenticatedClient as v, type BookingPage as w, type BookingPageWriteBody as x, type BookingRequestBody as y, type CalDavProfile as z };
|