@lifestreamdynamics/vault-sdk 1.2.0 → 2.1.0
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/README.md +245 -13
- package/dist/client.d.ts +30 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +73 -23
- package/dist/client.js.map +1 -1
- package/dist/errors.d.ts +3 -2
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +4 -3
- package/dist/errors.js.map +1 -1
- package/dist/handle-error.js +1 -1
- package/dist/handle-error.js.map +1 -1
- package/dist/index.d.ts +15 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/audit-logger.d.ts +1 -1
- package/dist/lib/audit-logger.d.ts.map +1 -1
- package/dist/lib/audit-logger.js +26 -18
- package/dist/lib/audit-logger.js.map +1 -1
- package/dist/lib/encryption.d.ts +2 -2
- package/dist/lib/encryption.d.ts.map +1 -1
- package/dist/lib/encryption.js +68 -39
- package/dist/lib/encryption.js.map +1 -1
- package/dist/lib/signature.d.ts +4 -3
- package/dist/lib/signature.d.ts.map +1 -1
- package/dist/lib/signature.js +37 -15
- package/dist/lib/signature.js.map +1 -1
- package/dist/lib/token-manager.d.ts +1 -1
- package/dist/lib/token-manager.d.ts.map +1 -1
- package/dist/lib/token-manager.js +27 -7
- package/dist/lib/token-manager.js.map +1 -1
- package/dist/resources/admin.d.ts +1 -1
- package/dist/resources/admin.d.ts.map +1 -1
- package/dist/resources/admin.js +6 -6
- package/dist/resources/admin.js.map +1 -1
- package/dist/resources/ai.d.ts +10 -0
- package/dist/resources/ai.d.ts.map +1 -1
- package/dist/resources/ai.js +16 -1
- package/dist/resources/ai.js.map +1 -1
- package/dist/resources/analytics.d.ts +39 -1
- package/dist/resources/analytics.d.ts.map +1 -1
- package/dist/resources/analytics.js +40 -2
- package/dist/resources/analytics.js.map +1 -1
- package/dist/resources/booking.d.ts +405 -0
- package/dist/resources/booking.d.ts.map +1 -0
- package/dist/resources/booking.js +430 -0
- package/dist/resources/booking.js.map +1 -0
- package/dist/resources/calendar.d.ts +304 -3
- package/dist/resources/calendar.d.ts.map +1 -1
- package/dist/resources/calendar.js +364 -4
- package/dist/resources/calendar.js.map +1 -1
- package/dist/resources/collaboration.d.ts +33 -0
- package/dist/resources/collaboration.d.ts.map +1 -0
- package/dist/resources/collaboration.js +44 -0
- package/dist/resources/collaboration.js.map +1 -0
- package/dist/resources/connectors.d.ts +1 -1
- package/dist/resources/connectors.d.ts.map +1 -1
- package/dist/resources/custom-domains.d.ts +84 -1
- package/dist/resources/custom-domains.d.ts.map +1 -1
- package/dist/resources/custom-domains.js +84 -1
- package/dist/resources/custom-domains.js.map +1 -1
- package/dist/resources/documents.d.ts +30 -0
- package/dist/resources/documents.d.ts.map +1 -1
- package/dist/resources/documents.js +69 -1
- package/dist/resources/documents.js.map +1 -1
- package/dist/resources/plugins.d.ts +101 -0
- package/dist/resources/plugins.d.ts.map +1 -0
- package/dist/resources/plugins.js +127 -0
- package/dist/resources/plugins.js.map +1 -0
- package/dist/resources/publish-vault.d.ts +84 -1
- package/dist/resources/publish-vault.d.ts.map +1 -1
- package/dist/resources/publish-vault.js +61 -6
- package/dist/resources/publish-vault.js.map +1 -1
- package/dist/resources/saml.d.ts +142 -0
- package/dist/resources/saml.d.ts.map +1 -0
- package/dist/resources/saml.js +138 -0
- package/dist/resources/saml.js.map +1 -0
- package/dist/resources/scim.d.ts +211 -0
- package/dist/resources/scim.d.ts.map +1 -0
- package/dist/resources/scim.js +131 -0
- package/dist/resources/scim.js.map +1 -0
- package/dist/resources/search.d.ts +14 -0
- package/dist/resources/search.d.ts.map +1 -1
- package/dist/resources/search.js +34 -0
- package/dist/resources/search.js.map +1 -1
- package/dist/resources/subscription.js +1 -1
- package/dist/resources/subscription.js.map +1 -1
- package/dist/resources/team-booking-groups.d.ts +149 -0
- package/dist/resources/team-booking-groups.d.ts.map +1 -0
- package/dist/resources/team-booking-groups.js +175 -0
- package/dist/resources/team-booking-groups.js.map +1 -0
- package/dist/resources/teams.d.ts +12 -3
- package/dist/resources/teams.d.ts.map +1 -1
- package/dist/resources/teams.js +53 -6
- package/dist/resources/teams.js.map +1 -1
- package/dist/resources/user.d.ts +27 -8
- package/dist/resources/user.d.ts.map +1 -1
- package/dist/resources/user.js +35 -4
- package/dist/resources/user.js.map +1 -1
- package/dist/resources/vaults.d.ts +126 -0
- package/dist/resources/vaults.d.ts.map +1 -1
- package/dist/resources/vaults.js +131 -0
- package/dist/resources/vaults.js.map +1 -1
- package/dist/types/index.d.ts +4 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/types/resources.d.ts +0 -5
- package/dist/types/resources.d.ts.map +0 -1
- package/dist/types/resources.js +0 -2
- package/dist/types/resources.js.map +0 -1
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
import type { KyInstance } from 'ky';
|
|
2
|
+
export interface RecurrenceRule {
|
|
3
|
+
freq: 'daily' | 'weekly' | 'monthly' | 'yearly';
|
|
4
|
+
interval?: number;
|
|
5
|
+
days?: string[];
|
|
6
|
+
monthWeek?: number;
|
|
7
|
+
endDate?: string;
|
|
8
|
+
count?: number;
|
|
9
|
+
}
|
|
2
10
|
export interface CalendarEvent {
|
|
3
11
|
id: string;
|
|
4
12
|
vaultId: string;
|
|
@@ -8,10 +16,18 @@ export interface CalendarEvent {
|
|
|
8
16
|
startDate: string;
|
|
9
17
|
endDate?: string;
|
|
10
18
|
allDay: boolean;
|
|
11
|
-
|
|
19
|
+
recurrenceRule?: RecurrenceRule;
|
|
12
20
|
completed: boolean;
|
|
13
21
|
priority?: string;
|
|
14
22
|
color?: string;
|
|
23
|
+
backingFilePath?: string;
|
|
24
|
+
status?: string;
|
|
25
|
+
timezone?: string;
|
|
26
|
+
location?: string;
|
|
27
|
+
metadata?: unknown;
|
|
28
|
+
isPublic?: boolean;
|
|
29
|
+
maxAttendees?: number;
|
|
30
|
+
externalId?: string;
|
|
15
31
|
createdAt: string;
|
|
16
32
|
updatedAt: string;
|
|
17
33
|
}
|
|
@@ -61,10 +77,105 @@ export interface CreateCalendarEventInput {
|
|
|
61
77
|
startDate: string;
|
|
62
78
|
endDate?: string;
|
|
63
79
|
allDay?: boolean;
|
|
64
|
-
|
|
80
|
+
recurrenceRule?: RecurrenceRule;
|
|
65
81
|
priority?: string;
|
|
66
82
|
color?: string;
|
|
67
83
|
}
|
|
84
|
+
export interface CalendarEventTemplate {
|
|
85
|
+
id: string;
|
|
86
|
+
vaultId: string;
|
|
87
|
+
userId: string;
|
|
88
|
+
name: string;
|
|
89
|
+
description?: string;
|
|
90
|
+
duration: number;
|
|
91
|
+
location?: string;
|
|
92
|
+
color?: string;
|
|
93
|
+
defaultPriority?: string;
|
|
94
|
+
recurrenceRule?: RecurrenceRule;
|
|
95
|
+
metadata?: unknown;
|
|
96
|
+
createdAt: string;
|
|
97
|
+
updatedAt: string;
|
|
98
|
+
}
|
|
99
|
+
export interface CreateEventTemplateInput {
|
|
100
|
+
name: string;
|
|
101
|
+
description?: string;
|
|
102
|
+
duration: number;
|
|
103
|
+
location?: string;
|
|
104
|
+
color?: string;
|
|
105
|
+
defaultPriority?: string;
|
|
106
|
+
recurrenceRule?: RecurrenceRule;
|
|
107
|
+
metadata?: unknown;
|
|
108
|
+
}
|
|
109
|
+
export interface UpdateEventTemplateInput {
|
|
110
|
+
name?: string;
|
|
111
|
+
description?: string;
|
|
112
|
+
duration?: number;
|
|
113
|
+
location?: string;
|
|
114
|
+
color?: string;
|
|
115
|
+
defaultPriority?: string;
|
|
116
|
+
recurrenceRule?: RecurrenceRule;
|
|
117
|
+
metadata?: unknown;
|
|
118
|
+
}
|
|
119
|
+
/** Response returned when setting or clearing a document due date or completion state. */
|
|
120
|
+
export interface DocumentDueResponse {
|
|
121
|
+
id: string;
|
|
122
|
+
path: string;
|
|
123
|
+
dueAt?: string | null;
|
|
124
|
+
completedAt?: string | null;
|
|
125
|
+
priority?: string | null;
|
|
126
|
+
}
|
|
127
|
+
export interface TimelineItem {
|
|
128
|
+
type: 'event' | 'due';
|
|
129
|
+
date: string;
|
|
130
|
+
event?: CalendarEvent;
|
|
131
|
+
document?: DueDocument;
|
|
132
|
+
}
|
|
133
|
+
export interface TimelineResponse {
|
|
134
|
+
items: TimelineItem[];
|
|
135
|
+
nextCursor?: string;
|
|
136
|
+
total: number;
|
|
137
|
+
}
|
|
138
|
+
export interface UpcomingResponse {
|
|
139
|
+
events: CalendarEvent[];
|
|
140
|
+
dueDocs: DueDocument[];
|
|
141
|
+
}
|
|
142
|
+
export interface ICalTokenResponse {
|
|
143
|
+
token: string;
|
|
144
|
+
feedUrl: string;
|
|
145
|
+
createdAt: string;
|
|
146
|
+
}
|
|
147
|
+
export interface ICalTokenStatus {
|
|
148
|
+
hasToken: boolean;
|
|
149
|
+
createdAt?: string;
|
|
150
|
+
}
|
|
151
|
+
export interface CalendarConnector {
|
|
152
|
+
id: string;
|
|
153
|
+
userId: string;
|
|
154
|
+
vaultId: string;
|
|
155
|
+
provider: 'google' | 'outlook';
|
|
156
|
+
expiresAt?: string;
|
|
157
|
+
createdAt: string;
|
|
158
|
+
updatedAt: string;
|
|
159
|
+
}
|
|
160
|
+
export interface CalendarConnectorSyncResult {
|
|
161
|
+
synced: number;
|
|
162
|
+
errors: number;
|
|
163
|
+
syncedAt: string;
|
|
164
|
+
}
|
|
165
|
+
export interface CalendarConnectorOAuthResult {
|
|
166
|
+
authUrl: string;
|
|
167
|
+
}
|
|
168
|
+
export interface EventParticipant {
|
|
169
|
+
id: string;
|
|
170
|
+
calendarEventId: string;
|
|
171
|
+
userId?: string;
|
|
172
|
+
email: string;
|
|
173
|
+
name?: string;
|
|
174
|
+
status: 'invited' | 'accepted' | 'declined' | 'tentative';
|
|
175
|
+
role: 'organizer' | 'attendee' | 'optional';
|
|
176
|
+
respondedAt?: string;
|
|
177
|
+
createdAt: string;
|
|
178
|
+
}
|
|
68
179
|
/**
|
|
69
180
|
* Resource for calendar, activity, and due date operations.
|
|
70
181
|
*
|
|
@@ -153,6 +264,18 @@ export declare class CalendarResource {
|
|
|
153
264
|
start?: string;
|
|
154
265
|
end?: string;
|
|
155
266
|
}): Promise<CalendarEvent[]>;
|
|
267
|
+
/**
|
|
268
|
+
* Get a single calendar event by ID.
|
|
269
|
+
*
|
|
270
|
+
* @param vaultId - Vault ID
|
|
271
|
+
* @param eventId - Event ID
|
|
272
|
+
* @returns The calendar event
|
|
273
|
+
* @throws {AuthenticationError} If the request is not authenticated
|
|
274
|
+
* @throws {AuthorizationError} If the user does not have access to the vault or event
|
|
275
|
+
* @throws {NotFoundError} If the vault or event does not exist
|
|
276
|
+
* @throws {NetworkError} If the request fails due to network issues
|
|
277
|
+
*/
|
|
278
|
+
getEvent(vaultId: string, eventId: string): Promise<CalendarEvent>;
|
|
156
279
|
/**
|
|
157
280
|
* Create a new calendar event in a vault.
|
|
158
281
|
*
|
|
@@ -211,7 +334,7 @@ export declare class CalendarResource {
|
|
|
211
334
|
dueAt?: string | null;
|
|
212
335
|
priority?: string | null;
|
|
213
336
|
recurrence?: string | null;
|
|
214
|
-
}): Promise<
|
|
337
|
+
}): Promise<DocumentDueResponse>;
|
|
215
338
|
getIcalFeed(vaultId: string, params?: {
|
|
216
339
|
include?: string;
|
|
217
340
|
}): Promise<string>;
|
|
@@ -220,5 +343,183 @@ export declare class CalendarResource {
|
|
|
220
343
|
range?: string;
|
|
221
344
|
groupBy?: string;
|
|
222
345
|
}): Promise<AgendaResponse>;
|
|
346
|
+
/**
|
|
347
|
+
* Get timeline of upcoming events for a vault.
|
|
348
|
+
*
|
|
349
|
+
* @param vaultId - Vault ID
|
|
350
|
+
* @param params - Optional pagination parameters
|
|
351
|
+
* @param params.cursor - Pagination cursor from a previous response
|
|
352
|
+
* @param params.limit - Maximum number of items to return
|
|
353
|
+
* @returns Paginated timeline response
|
|
354
|
+
* @throws {AuthenticationError} If the request is not authenticated
|
|
355
|
+
* @throws {AuthorizationError} If the user does not have access to the vault
|
|
356
|
+
* @throws {NotFoundError} If the vault does not exist
|
|
357
|
+
* @throws {NetworkError} If the request fails due to network issues
|
|
358
|
+
*/
|
|
359
|
+
getTimeline(vaultId: string, params?: {
|
|
360
|
+
cursor?: string;
|
|
361
|
+
limit?: number;
|
|
362
|
+
}): Promise<TimelineResponse>;
|
|
363
|
+
/**
|
|
364
|
+
* Get upcoming events and due items for a vault.
|
|
365
|
+
*
|
|
366
|
+
* @param vaultId - Vault ID
|
|
367
|
+
* @returns Upcoming items summary
|
|
368
|
+
* @throws {AuthenticationError} If the request is not authenticated
|
|
369
|
+
* @throws {AuthorizationError} If the user does not have access to the vault
|
|
370
|
+
* @throws {NotFoundError} If the vault does not exist
|
|
371
|
+
* @throws {NetworkError} If the request fails due to network issues
|
|
372
|
+
*/
|
|
373
|
+
getUpcoming(vaultId: string): Promise<UpcomingResponse>;
|
|
374
|
+
/**
|
|
375
|
+
* Generate a new iCal token for subscribing to a vault's calendar feed.
|
|
376
|
+
*
|
|
377
|
+
* @param vaultId - Vault ID
|
|
378
|
+
* @returns The generated token and feed URL
|
|
379
|
+
* @throws {AuthenticationError} If the request is not authenticated
|
|
380
|
+
* @throws {AuthorizationError} If the user does not have access to the vault
|
|
381
|
+
* @throws {NotFoundError} If the vault does not exist
|
|
382
|
+
* @throws {NetworkError} If the request fails due to network issues
|
|
383
|
+
*/
|
|
384
|
+
generateICalToken(vaultId: string): Promise<ICalTokenResponse>;
|
|
385
|
+
/**
|
|
386
|
+
* Revoke the current iCal token for a vault.
|
|
387
|
+
*
|
|
388
|
+
* @param vaultId - Vault ID
|
|
389
|
+
* @throws {AuthenticationError} If the request is not authenticated
|
|
390
|
+
* @throws {AuthorizationError} If the user does not have access to the vault
|
|
391
|
+
* @throws {NotFoundError} If the vault does not exist
|
|
392
|
+
* @throws {NetworkError} If the request fails due to network issues
|
|
393
|
+
*/
|
|
394
|
+
revokeICalToken(vaultId: string): Promise<void>;
|
|
395
|
+
/**
|
|
396
|
+
* Check whether an iCal token exists for a vault.
|
|
397
|
+
*
|
|
398
|
+
* @param vaultId - Vault ID
|
|
399
|
+
* @returns Token status
|
|
400
|
+
* @throws {AuthenticationError} If the request is not authenticated
|
|
401
|
+
* @throws {AuthorizationError} If the user does not have access to the vault
|
|
402
|
+
* @throws {NotFoundError} If the vault does not exist
|
|
403
|
+
* @throws {NetworkError} If the request fails due to network issues
|
|
404
|
+
*/
|
|
405
|
+
getICalTokenStatus(vaultId: string): Promise<ICalTokenStatus>;
|
|
406
|
+
/**
|
|
407
|
+
* Set the completed state of a document.
|
|
408
|
+
* When `completed` is true, sets `completedAt` to the current time.
|
|
409
|
+
* When `completed` is false, clears `completedAt`.
|
|
410
|
+
*
|
|
411
|
+
* @param vaultId - Vault ID
|
|
412
|
+
* @param documentPath - Path of the document within the vault
|
|
413
|
+
* @param completed - Whether to mark the document as completed (`true`) or incomplete (`false`)
|
|
414
|
+
* @returns The updated document metadata
|
|
415
|
+
* @throws {AuthenticationError} If the request is not authenticated
|
|
416
|
+
* @throws {AuthorizationError} If the user does not have access to the vault
|
|
417
|
+
* @throws {NotFoundError} If the vault or document does not exist
|
|
418
|
+
* @throws {NetworkError} If the request fails due to network issues
|
|
419
|
+
*/
|
|
420
|
+
toggleComplete(vaultId: string, documentPath: string, completed: boolean): Promise<DocumentDueResponse>;
|
|
421
|
+
/**
|
|
422
|
+
* List calendar connectors (Google Calendar, Outlook, etc.) for a vault.
|
|
423
|
+
*
|
|
424
|
+
* @param vaultId - Vault ID
|
|
425
|
+
* @returns Array of calendar connectors
|
|
426
|
+
* @throws {AuthenticationError} If the request is not authenticated
|
|
427
|
+
* @throws {AuthorizationError} If the user does not have access to the vault
|
|
428
|
+
* @throws {NotFoundError} If the vault does not exist
|
|
429
|
+
* @throws {NetworkError} If the request fails due to network issues
|
|
430
|
+
*/
|
|
431
|
+
listConnectors(vaultId: string): Promise<CalendarConnector[]>;
|
|
432
|
+
/**
|
|
433
|
+
* Disconnect a calendar connector from a vault.
|
|
434
|
+
*
|
|
435
|
+
* @param vaultId - Vault ID
|
|
436
|
+
* @param connectorId - Connector ID to disconnect
|
|
437
|
+
* @throws {AuthenticationError} If the request is not authenticated
|
|
438
|
+
* @throws {AuthorizationError} If the user does not have access to the vault
|
|
439
|
+
* @throws {NotFoundError} If the vault or connector does not exist
|
|
440
|
+
* @throws {NetworkError} If the request fails due to network issues
|
|
441
|
+
*/
|
|
442
|
+
disconnectConnector(vaultId: string, connectorId: string): Promise<void>;
|
|
443
|
+
/**
|
|
444
|
+
* Trigger a manual sync for a calendar connector.
|
|
445
|
+
*
|
|
446
|
+
* @param vaultId - Vault ID
|
|
447
|
+
* @param connectorId - Connector ID to sync
|
|
448
|
+
* @returns Sync result
|
|
449
|
+
* @throws {AuthenticationError} If the request is not authenticated
|
|
450
|
+
* @throws {AuthorizationError} If the user does not have access to the vault
|
|
451
|
+
* @throws {NotFoundError} If the vault or connector does not exist
|
|
452
|
+
* @throws {NetworkError} If the request fails due to network issues
|
|
453
|
+
*/
|
|
454
|
+
syncConnector(vaultId: string, connectorId: string): Promise<CalendarConnectorSyncResult>;
|
|
455
|
+
connectGoogleCalendar(vaultId: string): Promise<CalendarConnectorOAuthResult>;
|
|
456
|
+
connectOutlookCalendar(vaultId: string): Promise<CalendarConnectorOAuthResult>;
|
|
457
|
+
/**
|
|
458
|
+
* List participants for a calendar event.
|
|
459
|
+
*
|
|
460
|
+
* @param vaultId - Vault ID
|
|
461
|
+
* @param eventId - Calendar event ID
|
|
462
|
+
* @returns Array of event participants
|
|
463
|
+
* @throws {AuthenticationError} If the request is not authenticated
|
|
464
|
+
* @throws {AuthorizationError} If the user does not have access or insufficient subscription tier
|
|
465
|
+
* @throws {NotFoundError} If the vault or event does not exist
|
|
466
|
+
* @throws {NetworkError} If the request fails due to network issues
|
|
467
|
+
*/
|
|
468
|
+
listParticipants(vaultId: string, eventId: string): Promise<EventParticipant[]>;
|
|
469
|
+
/**
|
|
470
|
+
* Add a participant to a calendar event.
|
|
471
|
+
*
|
|
472
|
+
* @param vaultId - Vault ID
|
|
473
|
+
* @param eventId - Calendar event ID
|
|
474
|
+
* @param data - Participant data
|
|
475
|
+
* @param data.email - Participant email address
|
|
476
|
+
* @param data.name - Optional participant display name
|
|
477
|
+
* @param data.role - Participant role: 'organizer', 'attendee', or 'optional' (default: 'attendee')
|
|
478
|
+
* @returns The created participant record
|
|
479
|
+
* @throws {ValidationError} If the participant data is invalid
|
|
480
|
+
* @throws {AuthenticationError} If the request is not authenticated
|
|
481
|
+
* @throws {AuthorizationError} If the user does not have access or insufficient subscription tier
|
|
482
|
+
* @throws {NotFoundError} If the vault or event does not exist
|
|
483
|
+
* @throws {NetworkError} If the request fails due to network issues
|
|
484
|
+
*/
|
|
485
|
+
addParticipant(vaultId: string, eventId: string, data: {
|
|
486
|
+
email: string;
|
|
487
|
+
name?: string;
|
|
488
|
+
role?: string;
|
|
489
|
+
}): Promise<EventParticipant>;
|
|
490
|
+
/**
|
|
491
|
+
* Update a participant's status for a calendar event.
|
|
492
|
+
*
|
|
493
|
+
* @param vaultId - Vault ID
|
|
494
|
+
* @param eventId - Calendar event ID
|
|
495
|
+
* @param participantId - Participant ID
|
|
496
|
+
* @param data - Update data (status)
|
|
497
|
+
* @returns The updated participant record
|
|
498
|
+
* @throws {ValidationError} If the status is invalid
|
|
499
|
+
* @throws {AuthenticationError} If the request is not authenticated
|
|
500
|
+
* @throws {AuthorizationError} If the user does not have access or insufficient subscription tier
|
|
501
|
+
* @throws {NotFoundError} If the vault, event, or participant does not exist
|
|
502
|
+
* @throws {NetworkError} If the request fails due to network issues
|
|
503
|
+
*/
|
|
504
|
+
updateParticipant(vaultId: string, eventId: string, participantId: string, data: {
|
|
505
|
+
status: string;
|
|
506
|
+
}): Promise<EventParticipant>;
|
|
507
|
+
/**
|
|
508
|
+
* Remove a participant from a calendar event.
|
|
509
|
+
*
|
|
510
|
+
* @param vaultId - Vault ID
|
|
511
|
+
* @param eventId - Calendar event ID
|
|
512
|
+
* @param participantId - Participant ID
|
|
513
|
+
* @throws {AuthenticationError} If the request is not authenticated
|
|
514
|
+
* @throws {AuthorizationError} If the user does not have access or insufficient subscription tier
|
|
515
|
+
* @throws {NotFoundError} If the vault, event, or participant does not exist
|
|
516
|
+
* @throws {NetworkError} If the request fails due to network issues
|
|
517
|
+
*/
|
|
518
|
+
removeParticipant(vaultId: string, eventId: string, participantId: string): Promise<void>;
|
|
519
|
+
listTemplates(vaultId: string): Promise<CalendarEventTemplate[]>;
|
|
520
|
+
createTemplate(vaultId: string, data: CreateEventTemplateInput): Promise<CalendarEventTemplate>;
|
|
521
|
+
getTemplate(vaultId: string, templateId: string): Promise<CalendarEventTemplate>;
|
|
522
|
+
updateTemplate(vaultId: string, templateId: string, data: UpdateEventTemplateInput): Promise<CalendarEventTemplate>;
|
|
523
|
+
deleteTemplate(vaultId: string, templateId: string): Promise<void>;
|
|
223
524
|
}
|
|
224
525
|
//# sourceMappingURL=calendar.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../src/resources/calendar.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAGrC,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,
|
|
1
|
+
{"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../src/resources/calendar.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;AAGrC,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,OAAO,GAA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