@macro-inc/sdk 0.0.1 → 0.2.2
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 +628 -21
- package/dist/{chunk-5HAKQN23.js → chunk-7LVVPVNT.js} +70 -57
- package/dist/{chunk-JXIQT5TH.js → chunk-7YJ6Y7HJ.js} +234 -16
- package/dist/chunk-LMJW65ML.js +836 -0
- package/dist/{chunk-SGAHIERJ.js → chunk-OGE7WXJE.js} +16 -0
- package/dist/chunk-PRUFPW3B.js +943 -0
- package/dist/{chunk-CTKR64MY.js → chunk-QVBNNMQS.js} +242 -367
- package/dist/{chunk-QNUS5BC5.js → chunk-SUINKDXF.js} +30 -84
- package/dist/{chunk-77EI4LSQ.js → chunk-ZQXOHNDB.js} +1518 -386
- package/dist/generated/agent-harness/index.d.ts +1 -1
- package/dist/generated/agent-harness/index.js +1 -1
- package/dist/generated/agent-harness/sdk.gen.d.ts +174 -4
- package/dist/generated/agent-harness/types.gen.d.ts +2511 -189
- package/dist/generated/auth/index.d.ts +1 -1
- package/dist/generated/auth/index.js +1 -1
- package/dist/generated/auth/sdk.gen.d.ts +106 -8
- package/dist/generated/auth/types.gen.d.ts +1473 -116
- package/dist/generated/calendar/client/client.gen.d.ts +2 -0
- package/dist/generated/calendar/client/index.d.ts +10 -0
- package/dist/generated/calendar/client/types.gen.d.ts +120 -0
- package/dist/generated/calendar/client/utils.gen.d.ts +37 -0
- package/dist/generated/calendar/client.gen.d.ts +12 -0
- package/dist/generated/calendar/core/auth.gen.d.ts +25 -0
- package/dist/generated/calendar/core/bodySerializer.gen.d.ts +25 -0
- package/dist/generated/calendar/core/params.gen.d.ts +43 -0
- package/dist/generated/calendar/core/pathSerializer.gen.d.ts +33 -0
- package/dist/generated/calendar/core/queryKeySerializer.gen.d.ts +18 -0
- package/dist/generated/calendar/core/serverSentEvents.gen.d.ts +71 -0
- package/dist/generated/calendar/core/types.gen.d.ts +83 -0
- package/dist/generated/calendar/core/utils.gen.d.ts +19 -0
- package/dist/generated/calendar/index.d.ts +2 -0
- package/dist/generated/calendar/index.js +6 -0
- package/dist/generated/calendar/sdk.gen.d.ts +95 -0
- package/dist/generated/calendar/types.gen.d.ts +1091 -0
- package/dist/generated/cognition/index.d.ts +1 -1
- package/dist/generated/cognition/index.js +1 -1
- package/dist/generated/cognition/sdk.gen.d.ts +6 -1
- package/dist/generated/cognition/types.gen.d.ts +304 -36
- package/dist/generated/connection/types.gen.d.ts +1 -1
- package/dist/generated/email/index.d.ts +1 -1
- package/dist/generated/email/index.js +1 -1
- package/dist/generated/email/sdk.gen.d.ts +32 -27
- package/dist/generated/email/types.gen.d.ts +586 -409
- package/dist/generated/notification/index.d.ts +1 -1
- package/dist/generated/notification/types.gen.d.ts +384 -19
- package/dist/generated/properties/types.gen.d.ts +8 -5
- package/dist/generated/scheduled-action/index.d.ts +1 -1
- package/dist/generated/scheduled-action/index.js +3 -842
- package/dist/generated/scheduled-action/sdk.gen.d.ts +3 -1
- package/dist/generated/scheduled-action/types.gen.d.ts +277 -41
- package/dist/generated/search/index.d.ts +1 -1
- package/dist/generated/search/types.gen.d.ts +262 -43
- package/dist/generated/storage/index.d.ts +1 -1
- package/dist/generated/storage/index.js +1 -1
- package/dist/generated/storage/sdk.gen.d.ts +678 -107
- package/dist/generated/storage/types.gen.d.ts +14827 -5995
- package/dist/generated/unfurl/index.d.ts +1 -1
- package/dist/generated/unfurl/index.js +3 -832
- package/dist/generated/unfurl/types.gen.d.ts +20 -0
- package/dist/src/config.d.ts +33 -13
- package/dist/src/entities/agent-sessions/agent-session.d.ts +150 -6
- package/dist/src/entities/agent-sessions/code-execution.d.ts +43 -0
- package/dist/src/entities/agent-sessions/conversation.d.ts +54 -0
- package/dist/src/entities/agent-sessions/namespace.d.ts +23 -5
- package/dist/src/entities/agent-sessions/queued-action.d.ts +46 -0
- package/dist/src/entities/agent-sessions/review.d.ts +107 -0
- package/dist/src/entities/agent-sessions/tool-approval.d.ts +21 -0
- package/dist/src/entities/agents/agent.d.ts +47 -0
- package/dist/src/entities/agents/namespace.d.ts +13 -0
- package/dist/src/entities/ai/namespace.d.ts +24 -0
- package/dist/src/entities/api-keys/api-key.d.ts +17 -0
- package/dist/src/entities/api-keys/namespace.d.ts +18 -0
- package/dist/src/entities/calendar/calendar.d.ts +35 -0
- package/dist/src/entities/calendar/event.d.ts +123 -0
- package/dist/src/entities/calendar/event.test.d.ts +1 -0
- package/dist/src/entities/calendar/namespace.d.ts +111 -0
- package/dist/src/entities/calendar/replacement.d.ts +15 -0
- package/dist/src/entities/calls/call-record.d.ts +62 -6
- package/dist/src/entities/calls/message.d.ts +33 -0
- package/dist/src/entities/channels/activity.d.ts +24 -0
- package/dist/src/entities/channels/channel.d.ts +44 -3
- package/dist/src/entities/channels/labels.d.ts +39 -0
- package/dist/src/entities/channels/message.d.ts +9 -17
- package/dist/src/entities/channels/namespace.d.ts +6 -0
- package/dist/src/entities/channels/picture.d.ts +11 -0
- package/dist/src/entities/channels/post.d.ts +1 -1
- package/dist/src/entities/channels/thread.d.ts +5 -0
- package/dist/src/entities/chats/chat.d.ts +11 -1
- package/dist/src/entities/chats/generation.d.ts +46 -0
- package/dist/src/entities/crm/comment.d.ts +55 -34
- package/dist/src/entities/crm/company.d.ts +42 -10
- package/dist/src/entities/crm/contact.d.ts +42 -10
- package/dist/src/entities/crm/namespace.d.ts +18 -1
- package/dist/src/entities/crm/pipeline.d.ts +122 -0
- package/dist/src/entities/crm/pipelines.d.ts +14 -0
- package/dist/src/entities/databases/column.d.ts +75 -0
- package/dist/src/entities/databases/database.d.ts +272 -0
- package/dist/src/entities/databases/namespace.d.ts +21 -0
- package/dist/src/entities/databases/query.d.ts +86 -0
- package/dist/src/entities/databases/row.d.ts +27 -0
- package/dist/src/entities/databases/table.d.ts +61 -0
- package/dist/src/entities/databases/view.d.ts +40 -0
- package/dist/src/entities/databases/webhook.d.ts +32 -0
- package/dist/src/entities/documents/anchor.d.ts +29 -0
- package/dist/src/entities/documents/comment.d.ts +25 -22
- package/dist/src/entities/documents/document.d.ts +60 -12
- package/dist/src/entities/documents/namespace.d.ts +30 -0
- package/dist/src/entities/documents/version.d.ts +22 -0
- package/dist/src/entities/email/draft.d.ts +79 -0
- package/dist/src/entities/email/filter.d.ts +34 -0
- package/dist/src/entities/email/link.d.ts +6 -4
- package/dist/src/entities/email/message.d.ts +12 -1
- package/dist/src/entities/email/namespace.d.ts +34 -1
- package/dist/src/entities/email/thread.d.ts +23 -1
- package/dist/src/entities/entity-mentions/mention.d.ts +16 -0
- package/dist/src/entities/entity-mentions/namespace.d.ts +12 -0
- package/dist/src/entities/entity.d.ts +7 -0
- package/dist/src/entities/favorites/namespace.d.ts +14 -2
- package/dist/src/entities/foreign/foreign-entity.d.ts +2 -0
- package/dist/src/entities/foreign/namespace.d.ts +40 -0
- package/dist/src/entities/forms/form.d.ts +227 -0
- package/dist/src/entities/forms/namespace.d.ts +18 -0
- package/dist/src/entities/forms/question.d.ts +37 -0
- package/dist/src/entities/forms/response.d.ts +32 -0
- package/dist/src/entities/forms/section.d.ts +19 -0
- package/dist/src/entities/github-pull-requests/namespace.d.ts +12 -0
- package/dist/src/entities/github-pull-requests/pull-request.d.ts +52 -0
- package/dist/src/entities/harnesses/harness.d.ts +19 -0
- package/dist/src/entities/harnesses/namespace.d.ts +33 -0
- package/dist/src/entities/harnesses/pairing.d.ts +39 -0
- package/dist/src/entities/initiatives/initiative.d.ts +50 -0
- package/dist/src/entities/initiatives/namespace.d.ts +13 -0
- package/dist/src/entities/meetings/meeting.d.ts +38 -0
- package/dist/src/entities/meetings/namespace.d.ts +18 -0
- package/dist/src/entities/messages/thread.d.ts +101 -0
- package/dist/src/entities/notifications/notification.d.ts +6 -3
- package/dist/src/entities/notifications/notification.test.d.ts +1 -0
- package/dist/src/entities/projects/project.d.ts +7 -0
- package/dist/src/entities/reference.d.ts +82 -0
- package/dist/src/entities/routines/namespace.d.ts +15 -0
- package/dist/src/entities/routines/routine.d.ts +115 -0
- package/dist/src/entities/sharing/access.d.ts +65 -0
- package/dist/src/entities/sharing/permissions.d.ts +13 -0
- package/dist/src/entities/tasks/namespace.d.ts +4 -0
- package/dist/src/entities/tasks/task.d.ts +6 -0
- package/dist/src/entities/unfurls/namespace.d.ts +10 -0
- package/dist/src/entities/webhooks/webhook.d.ts +3 -1
- package/dist/src/entities/workspace/items.d.ts +7 -0
- package/dist/src/entities/workspace/namespace.d.ts +83 -0
- package/dist/src/entities/workspace/query.d.ts +12 -0
- package/dist/src/entities/workspace/types.d.ts +96 -0
- package/dist/src/events/hydrate/agentSession.d.ts +192 -0
- package/dist/src/events/hydrate/channel.d.ts +2 -39
- package/dist/src/events/hydrate/message.d.ts +70 -0
- package/dist/src/events/receiver.d.ts +57 -19
- package/dist/src/events/types.d.ts +3 -1
- package/dist/src/macro.d.ts +80 -3
- package/dist/src/macro.js +8832 -2784
- package/dist/src/utils/activity.d.ts +11 -0
- package/dist/src/utils/activity.test.d.ts +1 -0
- package/dist/src/utils/client.d.ts +10 -1
- package/dist/src/utils/concurrency.d.ts +5 -0
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/src/utils/pagination.d.ts +9 -4
- package/package.json +11 -3
|
@@ -21,6 +21,10 @@ export type AddDraftAttachmentRequest = {
|
|
|
21
21
|
* The size of the file in bytes.
|
|
22
22
|
*/
|
|
23
23
|
size: number;
|
|
24
|
+
/**
|
|
25
|
+
* Stable client upload identifier. Retry the same file with the same ID.
|
|
26
|
+
*/
|
|
27
|
+
upload_id?: string | null;
|
|
24
28
|
};
|
|
25
29
|
export type AddDraftAttachmentResponse = {
|
|
26
30
|
/**
|
|
@@ -74,13 +78,16 @@ export type ApiAttachment = {
|
|
|
74
78
|
* API representation of a draft attachment on a message.
|
|
75
79
|
*/
|
|
76
80
|
export type ApiAttachmentDraft = {
|
|
81
|
+
content_id?: string | null;
|
|
77
82
|
content_type: string;
|
|
78
83
|
draft_id: string;
|
|
79
84
|
file_name: string;
|
|
80
85
|
id: string;
|
|
86
|
+
is_inline: boolean;
|
|
81
87
|
s3_key: string;
|
|
82
88
|
sha: string;
|
|
83
89
|
size: number;
|
|
90
|
+
upload_pending: boolean;
|
|
84
91
|
};
|
|
85
92
|
/**
|
|
86
93
|
* API representation of a forwarded attachment on a message.
|
|
@@ -282,6 +289,7 @@ export type ApiMessage = {
|
|
|
282
289
|
body_macro?: string | null;
|
|
283
290
|
body_replyless?: string | null;
|
|
284
291
|
body_text?: string | null;
|
|
292
|
+
calendar_invitations?: Array<CalendarInvitation>;
|
|
285
293
|
cc: Array<ApiContactInfo>;
|
|
286
294
|
created_at: string;
|
|
287
295
|
db_id: string;
|
|
@@ -296,6 +304,7 @@ export type ApiMessage = {
|
|
|
296
304
|
is_starred: boolean;
|
|
297
305
|
labels: Array<ApiMessageLabel>;
|
|
298
306
|
link_id: string;
|
|
307
|
+
operation_status?: null | ApiMessageOperation;
|
|
299
308
|
provider_history_id?: string | null;
|
|
300
309
|
provider_id?: string | null;
|
|
301
310
|
provider_thread_id?: string | null;
|
|
@@ -319,6 +328,7 @@ export type ApiMessageAttachment = {
|
|
|
319
328
|
filename?: string | null;
|
|
320
329
|
mime_type?: string | null;
|
|
321
330
|
provider_id?: string | null;
|
|
331
|
+
reference_url?: string | null;
|
|
322
332
|
sfs_id?: string | null;
|
|
323
333
|
size_bytes?: number | null;
|
|
324
334
|
};
|
|
@@ -336,6 +346,27 @@ export type ApiMessageLabel = {
|
|
|
336
346
|
type_?: null | ApiLabelType;
|
|
337
347
|
};
|
|
338
348
|
export type ApiMessageListVisibility = 'Show' | 'Hide';
|
|
349
|
+
/**
|
|
350
|
+
* Versions are opaque decimal strings so clients never truncate an i64.
|
|
351
|
+
*/
|
|
352
|
+
export type ApiMessageOperation = {
|
|
353
|
+
issue?: null | ApiMessageOperationIssue;
|
|
354
|
+
remote_version?: string | null;
|
|
355
|
+
revision: string;
|
|
356
|
+
state: ApiMessageOperationState;
|
|
357
|
+
};
|
|
358
|
+
/**
|
|
359
|
+
* Provider-neutral state exposed to clients.
|
|
360
|
+
*/
|
|
361
|
+
export type ApiMessageOperationIssue = 'ACCEPTING_REMOTE' | 'DRAFT_CONFLICT' | 'CREATION_UNKNOWN' | 'ATTACHMENT_UNKNOWN' | 'SEND_UNKNOWN' | 'SEND_REJECTED' | 'ACCESS_REVOKED' | 'INVALID_CONTENT' | 'MOVE_PENDING' | 'MOVE_CONFLICT' | 'MOVE_SOURCE_SENT' | 'MOVE_REAUTHORIZATION' | 'MOVE_ORIGINAL_REMAINS';
|
|
362
|
+
/**
|
|
363
|
+
* Provider-neutral state exposed to clients.
|
|
364
|
+
*/
|
|
365
|
+
export type ApiMessageOperationState = 'PENDING' | 'SYNCHRONIZED' | 'CONFLICT' | 'UNCERTAIN' | 'SUBMITTING' | 'CONFIRMING' | 'SENT' | 'DELETED' | 'CANCELLED' | 'FAILED';
|
|
366
|
+
/**
|
|
367
|
+
* A deliberate resolution of a particular observed operation version.
|
|
368
|
+
*/
|
|
369
|
+
export type ApiMessageResolutionAction = 'keep_local' | 'use_provider' | 'recheck' | 'retry_send' | 'keep_original';
|
|
339
370
|
export type ApiPaginatedThreadCursor = {
|
|
340
371
|
items: Array<ApiThreadPreviewCursor>;
|
|
341
372
|
next_cursor?: string | null;
|
|
@@ -400,10 +431,18 @@ export type Attachment = {
|
|
|
400
431
|
filename?: string | null;
|
|
401
432
|
mime_type?: string | null;
|
|
402
433
|
provider_id?: string | null;
|
|
434
|
+
/**
|
|
435
|
+
* Cloud reference: open this provider page instead of downloading bytes.
|
|
436
|
+
*/
|
|
437
|
+
reference_url?: string | null;
|
|
403
438
|
sfs_id?: string | null;
|
|
404
439
|
size_bytes?: number | null;
|
|
405
440
|
};
|
|
406
441
|
export type AttachmentDraft = {
|
|
442
|
+
/**
|
|
443
|
+
* Original Content-ID retained when transferring a provider attachment.
|
|
444
|
+
*/
|
|
445
|
+
content_id?: string | null;
|
|
407
446
|
/**
|
|
408
447
|
* MIME type of the attachment (e.g., "application/pdf", "image/png").
|
|
409
448
|
*/
|
|
@@ -420,6 +459,10 @@ export type AttachmentDraft = {
|
|
|
420
459
|
* Unique identifier for the attachment.
|
|
421
460
|
*/
|
|
422
461
|
id: string;
|
|
462
|
+
/**
|
|
463
|
+
* Whether the attachment is referenced inline by the message body.
|
|
464
|
+
*/
|
|
465
|
+
is_inline?: boolean;
|
|
423
466
|
/**
|
|
424
467
|
* S3 object key where the attachment content is stored.
|
|
425
468
|
*/
|
|
@@ -432,6 +475,10 @@ export type AttachmentDraft = {
|
|
|
432
475
|
* File size in bytes.
|
|
433
476
|
*/
|
|
434
477
|
size: number;
|
|
478
|
+
/**
|
|
479
|
+
* Bytes have not yet been verified; sending must wait for completion.
|
|
480
|
+
*/
|
|
481
|
+
upload_pending?: boolean;
|
|
435
482
|
};
|
|
436
483
|
/**
|
|
437
484
|
* A forwarded attachment linking a draft to an original message's attachment.
|
|
@@ -529,25 +576,11 @@ export type CalendarAttendee = {
|
|
|
529
576
|
*/
|
|
530
577
|
responseStatus: AttendeeResponseStatus;
|
|
531
578
|
};
|
|
532
|
-
/**
|
|
533
|
-
* An attendee supplied to a calendar mutation.
|
|
534
|
-
*/
|
|
535
|
-
export type CalendarAttendeeInputBody = {
|
|
536
|
-
/**
|
|
537
|
-
* Attendee email address.
|
|
538
|
-
*/
|
|
539
|
-
email: string;
|
|
540
|
-
/**
|
|
541
|
-
* Whether attendance is optional.
|
|
542
|
-
*/
|
|
543
|
-
isOptional?: boolean;
|
|
544
|
-
};
|
|
545
|
-
/**
|
|
546
|
-
* How much of a recurring series a deletion removes.
|
|
547
|
-
*/
|
|
548
|
-
export type CalendarDeletionScopeParam = 'all' | 'this_event' | 'this_and_following';
|
|
549
579
|
/**
|
|
550
580
|
* A stable, first-class Macro calendar event entity.
|
|
581
|
+
*
|
|
582
|
+
* Content fields hold the canonical source's values: the account's primary
|
|
583
|
+
* calendar copy when one is synced, else the freshest remaining copy.
|
|
551
584
|
*/
|
|
552
585
|
export type CalendarEvent = {
|
|
553
586
|
/**
|
|
@@ -598,7 +631,7 @@ export type CalendarEvent = {
|
|
|
598
631
|
*/
|
|
599
632
|
id: string;
|
|
600
633
|
/**
|
|
601
|
-
* Whether the
|
|
634
|
+
* Whether the canonical source's calendar prohibits editing it.
|
|
602
635
|
*/
|
|
603
636
|
isReadOnly: boolean;
|
|
604
637
|
/**
|
|
@@ -631,6 +664,13 @@ export type CalendarEvent = {
|
|
|
631
664
|
* Provider/iCalendar sequence number.
|
|
632
665
|
*/
|
|
633
666
|
sequence: number;
|
|
667
|
+
/**
|
|
668
|
+
* Content of every active copy of this event, canonical first: the
|
|
669
|
+
* primary calendar's copy, then the freshest. A client picks the copy
|
|
670
|
+
* whose calendar it is showing and falls back to the first. Populated
|
|
671
|
+
* only on the read path, so stored projections omit it.
|
|
672
|
+
*/
|
|
673
|
+
sources?: Array<CalendarEventSourceContent>;
|
|
634
674
|
/**
|
|
635
675
|
* Event status.
|
|
636
676
|
*/
|
|
@@ -657,63 +697,162 @@ export type CalendarEvent = {
|
|
|
657
697
|
visibility: EventVisibility;
|
|
658
698
|
};
|
|
659
699
|
/**
|
|
660
|
-
*
|
|
700
|
+
* The content one provider copy of an event carries.
|
|
701
|
+
*
|
|
702
|
+
* Google keeps these fields per calendar copy: a shared calendar's copy of a
|
|
703
|
+
* member's event can have its own title, type, reminders, and access role.
|
|
704
|
+
* The entity holds its canonical source's values. Every other copy's values
|
|
705
|
+
* are read from here so a client can show the copy that belongs to the
|
|
706
|
+
* calendar being viewed.
|
|
661
707
|
*/
|
|
662
|
-
export type
|
|
708
|
+
export type CalendarEventSourceContent = {
|
|
663
709
|
/**
|
|
664
|
-
*
|
|
710
|
+
* Calendar this copy lives on.
|
|
665
711
|
*/
|
|
666
|
-
|
|
712
|
+
calendarId: string;
|
|
667
713
|
/**
|
|
668
|
-
*
|
|
714
|
+
* Provider-reported creator email.
|
|
669
715
|
*/
|
|
670
|
-
|
|
716
|
+
creatorEmail?: string | null;
|
|
717
|
+
/**
|
|
718
|
+
* Provider-reported creator display name.
|
|
719
|
+
*/
|
|
720
|
+
creatorName?: string | null;
|
|
721
|
+
/**
|
|
722
|
+
* Optional event body.
|
|
723
|
+
*/
|
|
724
|
+
description?: string | null;
|
|
725
|
+
/**
|
|
726
|
+
* Provider event type.
|
|
727
|
+
*/
|
|
728
|
+
eventType: EventType;
|
|
729
|
+
/**
|
|
730
|
+
* Whether the calendar's access role prohibits editing this copy.
|
|
731
|
+
*/
|
|
732
|
+
isReadOnly: boolean;
|
|
733
|
+
/**
|
|
734
|
+
* Optional physical or virtual location label.
|
|
735
|
+
*/
|
|
736
|
+
location?: string | null;
|
|
737
|
+
/**
|
|
738
|
+
* Reminder configuration of this copy.
|
|
739
|
+
*/
|
|
740
|
+
reminders: EventReminders;
|
|
741
|
+
/**
|
|
742
|
+
* Display title.
|
|
743
|
+
*/
|
|
744
|
+
title: string;
|
|
745
|
+
/**
|
|
746
|
+
* Availability behavior.
|
|
747
|
+
*/
|
|
748
|
+
transparency: EventTransparency;
|
|
749
|
+
/**
|
|
750
|
+
* Event visibility.
|
|
751
|
+
*/
|
|
752
|
+
visibility: EventVisibility;
|
|
671
753
|
};
|
|
672
754
|
/**
|
|
673
|
-
*
|
|
674
|
-
*/
|
|
675
|
-
export type CalendarMutationErrorCode = 'not_found' | 'occurrence_not_found' | 'read_only' | 'no_writable_calendar' | 'not_attendee' | 'invalid_input' | 'reauth_required' | 'provider_rejected' | 'retryable' | 'persist_failed';
|
|
676
|
-
/**
|
|
677
|
-
* How much of a recurring series an RSVP applies to.
|
|
678
|
-
*
|
|
679
|
-
* Unlike deletion there is no this-and-following variant: the provider
|
|
680
|
-
* cannot express a forward-scoped response, so offering one would be a
|
|
681
|
-
* promise sync could not keep.
|
|
755
|
+
* Display snapshot of one meaningful VEVENT, owned by the email domain.
|
|
682
756
|
*/
|
|
683
|
-
export type
|
|
757
|
+
export type CalendarInvitation = {
|
|
758
|
+
/**
|
|
759
|
+
* Historical attendee identities and participation metadata.
|
|
760
|
+
*/
|
|
761
|
+
attendees: Array<InvitationParticipant>;
|
|
762
|
+
/**
|
|
763
|
+
* Reply or counter-proposal comment.
|
|
764
|
+
*/
|
|
765
|
+
comment?: string | null;
|
|
766
|
+
/**
|
|
767
|
+
* Validated HTTP(S) conferencing URL; never fetched during rendering.
|
|
768
|
+
*/
|
|
769
|
+
conference_url?: string | null;
|
|
770
|
+
/**
|
|
771
|
+
* Plaintext description, retaining passwords and dial-in instructions.
|
|
772
|
+
*/
|
|
773
|
+
description?: string | null;
|
|
774
|
+
/**
|
|
775
|
+
* Scheduling timestamp in its original spelling.
|
|
776
|
+
*/
|
|
777
|
+
dtstamp?: string | null;
|
|
778
|
+
end?: null | InvitationDateTime;
|
|
779
|
+
/**
|
|
780
|
+
* Content-derived component identity, stable across repeated extraction.
|
|
781
|
+
*/
|
|
782
|
+
id: string;
|
|
783
|
+
/**
|
|
784
|
+
* Last modification timestamp in its original spelling.
|
|
785
|
+
*/
|
|
786
|
+
last_modified?: string | null;
|
|
787
|
+
/**
|
|
788
|
+
* Plaintext event location.
|
|
789
|
+
*/
|
|
790
|
+
location?: string | null;
|
|
791
|
+
/**
|
|
792
|
+
* Original scheduling method.
|
|
793
|
+
*/
|
|
794
|
+
method: InvitationMethod;
|
|
795
|
+
organizer?: null | InvitationParticipant;
|
|
796
|
+
recurrence_id?: null | InvitationDateTime;
|
|
797
|
+
/**
|
|
798
|
+
* Original recurrence identifier spelling and parameters.
|
|
799
|
+
*/
|
|
800
|
+
recurrence_id_raw?: string | null;
|
|
801
|
+
/**
|
|
802
|
+
* Scheduling revision, distinct from delivery order.
|
|
803
|
+
*/
|
|
804
|
+
sequence: number;
|
|
805
|
+
start?: null | InvitationDateTime;
|
|
806
|
+
/**
|
|
807
|
+
* Original event status.
|
|
808
|
+
*/
|
|
809
|
+
status?: string | null;
|
|
810
|
+
/**
|
|
811
|
+
* Event summary.
|
|
812
|
+
*/
|
|
813
|
+
title?: string | null;
|
|
814
|
+
/**
|
|
815
|
+
* iCalendar UID; never a Google provider event ID.
|
|
816
|
+
*/
|
|
817
|
+
uid: string;
|
|
818
|
+
};
|
|
684
819
|
/**
|
|
685
|
-
*
|
|
686
|
-
*
|
|
687
|
-
* Like RSVPs there is no this-and-following variant: the provider cannot
|
|
688
|
-
* express a forward-scoped edit as one write, and emulating it (truncate
|
|
689
|
-
* the series, insert an edited clone) is non-atomic and re-invites the
|
|
690
|
-
* attendees of the clone. Compose it from a this-and-following deletion
|
|
691
|
-
* and a create when that shape is wanted.
|
|
820
|
+
* A materialized recurrence instance optimized for range queries.
|
|
692
821
|
*/
|
|
693
|
-
export type
|
|
822
|
+
export type CalendarOccurrence = {
|
|
823
|
+
/**
|
|
824
|
+
* Owning event entity.
|
|
825
|
+
*/
|
|
826
|
+
eventId: string;
|
|
827
|
+
/**
|
|
828
|
+
* Whether the instance was cancelled.
|
|
829
|
+
*/
|
|
830
|
+
isCancelled: boolean;
|
|
831
|
+
/**
|
|
832
|
+
* Stable key within the event.
|
|
833
|
+
*/
|
|
834
|
+
occurrenceKey: string;
|
|
835
|
+
/**
|
|
836
|
+
* Provider recurrence identifier, when applicable.
|
|
837
|
+
*/
|
|
838
|
+
recurrenceId?: string | null;
|
|
839
|
+
/**
|
|
840
|
+
* Instance time.
|
|
841
|
+
*/
|
|
842
|
+
time: EventTime;
|
|
843
|
+
};
|
|
694
844
|
export type CancelBackfillParams = {
|
|
695
845
|
job_id: string;
|
|
696
846
|
};
|
|
697
|
-
/**
|
|
698
|
-
* A requested change to an event's conferencing. Omitting the field leaves
|
|
699
|
-
* the existing conference untouched; only these values change it.
|
|
700
|
-
*/
|
|
701
|
-
export type ConferenceChange = 'google_meet' | 'none';
|
|
702
847
|
/**
|
|
703
848
|
* The conferencing system backing an event's join URL.
|
|
704
849
|
*
|
|
705
|
-
*
|
|
706
|
-
*
|
|
707
|
-
*
|
|
708
|
-
*
|
|
709
|
-
* conference.
|
|
710
|
-
*
|
|
711
|
-
* It does not gate mutation. An explicit request replaces or detaches any
|
|
712
|
-
* conference, third-party included, exactly as deleting the event would;
|
|
713
|
-
* what protects a conference is that omitting the field leaves it untouched,
|
|
714
|
-
* so an unrelated edit never disturbs it.
|
|
850
|
+
* Calendars can create Google Meet or Microsoft Teams according to their
|
|
851
|
+
* capabilities. Imported third-party conferences are labeled separately.
|
|
852
|
+
* Omitting a conference change preserves the current conference; explicit
|
|
853
|
+
* changes still require provider and calendar capability validation.
|
|
715
854
|
*/
|
|
716
|
-
export type ConferenceProvider = 'google_meet' | 'other';
|
|
855
|
+
export type ConferenceProvider = 'microsoft_teams' | 'google_meet' | 'other';
|
|
717
856
|
export type Contact = {
|
|
718
857
|
email_address?: string | null;
|
|
719
858
|
id: string;
|
|
@@ -736,49 +875,6 @@ export type ContactInfoLegacy = {
|
|
|
736
875
|
export type ContactInfoWithInteraction = ContactInfoLegacy & {
|
|
737
876
|
last_interaction: string;
|
|
738
877
|
};
|
|
739
|
-
/**
|
|
740
|
-
* Request body creating a calendar event on the requester's calendar.
|
|
741
|
-
*/
|
|
742
|
-
export type CreateCalendarEventRequest = {
|
|
743
|
-
/**
|
|
744
|
-
* Invited attendees.
|
|
745
|
-
*/
|
|
746
|
-
attendees?: Array<CalendarAttendeeInputBody>;
|
|
747
|
-
/**
|
|
748
|
-
* Exact calendar to create the event on; takes precedence over the
|
|
749
|
-
* inbox default.
|
|
750
|
-
*/
|
|
751
|
-
calendarId?: string | null;
|
|
752
|
-
conference?: null | ConferenceChange;
|
|
753
|
-
/**
|
|
754
|
-
* Optional event body.
|
|
755
|
-
*/
|
|
756
|
-
description?: string | null;
|
|
757
|
-
/**
|
|
758
|
-
* Connected inbox whose primary calendar receives the event; defaults
|
|
759
|
-
* to the requester's primary inbox.
|
|
760
|
-
*/
|
|
761
|
-
emailLinkId?: string | null;
|
|
762
|
-
/**
|
|
763
|
-
* Optional location label.
|
|
764
|
-
*/
|
|
765
|
-
location?: string | null;
|
|
766
|
-
/**
|
|
767
|
-
* Raw RFC 5545 recurrence properties (`RRULE`, `RDATE`, `EXDATE`).
|
|
768
|
-
*/
|
|
769
|
-
recurrenceLines?: Array<string>;
|
|
770
|
-
reminders?: null | EventReminders;
|
|
771
|
-
/**
|
|
772
|
-
* Timed or all-day shape.
|
|
773
|
-
*/
|
|
774
|
-
time: EventTime;
|
|
775
|
-
/**
|
|
776
|
-
* Display title.
|
|
777
|
-
*/
|
|
778
|
-
title: string;
|
|
779
|
-
transparency?: null | EventTransparency;
|
|
780
|
-
visibility?: null | EventVisibility;
|
|
781
|
-
};
|
|
782
878
|
/**
|
|
783
879
|
* Request body for creating a draft.
|
|
784
880
|
*/
|
|
@@ -809,7 +905,7 @@ export type CreateLabelRequest = {
|
|
|
809
905
|
*/
|
|
810
906
|
export type CreateLabelResponse = {
|
|
811
907
|
/**
|
|
812
|
-
*
|
|
908
|
+
* Local label. Pending provider creation is reported by settings operations.
|
|
813
909
|
*/
|
|
814
910
|
label: Label;
|
|
815
911
|
};
|
|
@@ -872,7 +968,7 @@ export type EventStatus = 'confirmed' | 'tentative' | 'cancelled';
|
|
|
872
968
|
*/
|
|
873
969
|
export type EventTime = {
|
|
874
970
|
/**
|
|
875
|
-
* Exclusive end instant.
|
|
971
|
+
* Exclusive end instant; equal to the start for an imported point event.
|
|
876
972
|
*/
|
|
877
973
|
endsAt: string;
|
|
878
974
|
kind: 'timed';
|
|
@@ -981,6 +1077,99 @@ export type InitResponse = {
|
|
|
981
1077
|
*/
|
|
982
1078
|
link_id: string;
|
|
983
1079
|
};
|
|
1080
|
+
/**
|
|
1081
|
+
* Preserve date-only and unresolved times without manufacturing UTC instants.
|
|
1082
|
+
*/
|
|
1083
|
+
export type InvitationDateTime = {
|
|
1084
|
+
kind: 'date';
|
|
1085
|
+
/**
|
|
1086
|
+
* ISO calendar date.
|
|
1087
|
+
*/
|
|
1088
|
+
value: string;
|
|
1089
|
+
} | {
|
|
1090
|
+
kind: 'zoned';
|
|
1091
|
+
/**
|
|
1092
|
+
* IANA zone of the original TZID, or UTC.
|
|
1093
|
+
*/
|
|
1094
|
+
time_zone: string;
|
|
1095
|
+
/**
|
|
1096
|
+
* RFC3339 instant.
|
|
1097
|
+
*/
|
|
1098
|
+
value: string;
|
|
1099
|
+
} | {
|
|
1100
|
+
kind: 'unresolved';
|
|
1101
|
+
/**
|
|
1102
|
+
* Original TZID if present.
|
|
1103
|
+
*/
|
|
1104
|
+
time_zone?: string | null;
|
|
1105
|
+
/**
|
|
1106
|
+
* ISO local wall time, without an offset.
|
|
1107
|
+
*/
|
|
1108
|
+
value: string;
|
|
1109
|
+
};
|
|
1110
|
+
/**
|
|
1111
|
+
* Original scheduling method, including methods unsupported for actions.
|
|
1112
|
+
*/
|
|
1113
|
+
export type InvitationMethod = 'request' | 'reply' | 'cancel' | 'counter' | 'publish' | 'unknown';
|
|
1114
|
+
/**
|
|
1115
|
+
* Scheduling participant; saved responses are historical, not current RSVP.
|
|
1116
|
+
*/
|
|
1117
|
+
export type InvitationParticipant = {
|
|
1118
|
+
/**
|
|
1119
|
+
* Participant calendar address.
|
|
1120
|
+
*/
|
|
1121
|
+
email: string;
|
|
1122
|
+
/**
|
|
1123
|
+
* Sender-supplied display name.
|
|
1124
|
+
*/
|
|
1125
|
+
name?: string | null;
|
|
1126
|
+
/**
|
|
1127
|
+
* Original PARTSTAT, retaining extensions.
|
|
1128
|
+
*/
|
|
1129
|
+
participation_status?: string | null;
|
|
1130
|
+
};
|
|
1131
|
+
/**
|
|
1132
|
+
* Refreshable result, distinct from the immutable email contents.
|
|
1133
|
+
*/
|
|
1134
|
+
export type InvitationResolution = {
|
|
1135
|
+
kind: 'disconnected';
|
|
1136
|
+
} | {
|
|
1137
|
+
kind: 'still_syncing';
|
|
1138
|
+
} | {
|
|
1139
|
+
kind: 'cancelled';
|
|
1140
|
+
} | {
|
|
1141
|
+
kind: 'unavailable';
|
|
1142
|
+
} | {
|
|
1143
|
+
kind: 'no_match';
|
|
1144
|
+
} | {
|
|
1145
|
+
kind: 'ambiguous';
|
|
1146
|
+
} | {
|
|
1147
|
+
/**
|
|
1148
|
+
* Whether the conference link belongs to the reconciled scheduling target.
|
|
1149
|
+
*/
|
|
1150
|
+
can_join: boolean;
|
|
1151
|
+
/**
|
|
1152
|
+
* Whether a response is currently allowed.
|
|
1153
|
+
*/
|
|
1154
|
+
can_respond: boolean;
|
|
1155
|
+
/**
|
|
1156
|
+
* Current occurrence-specific content.
|
|
1157
|
+
*/
|
|
1158
|
+
event: CalendarEvent;
|
|
1159
|
+
/**
|
|
1160
|
+
* Whether the provider projection trails the email revision.
|
|
1161
|
+
*/
|
|
1162
|
+
is_stale: boolean;
|
|
1163
|
+
kind: 'resolved';
|
|
1164
|
+
/**
|
|
1165
|
+
* Original occurrence identity and current time.
|
|
1166
|
+
*/
|
|
1167
|
+
occurrence: CalendarOccurrence;
|
|
1168
|
+
/**
|
|
1169
|
+
* Connected address that would respond.
|
|
1170
|
+
*/
|
|
1171
|
+
responding_email: string;
|
|
1172
|
+
};
|
|
984
1173
|
export type Label = {
|
|
985
1174
|
created_at: string;
|
|
986
1175
|
id?: string | null;
|
|
@@ -1056,15 +1245,6 @@ export type ListBlockedResponse = {
|
|
|
1056
1245
|
*/
|
|
1057
1246
|
blocked_emails: Array<string>;
|
|
1058
1247
|
};
|
|
1059
|
-
/**
|
|
1060
|
-
* Calendars visible to the requester across connected and delegated inboxes.
|
|
1061
|
-
*/
|
|
1062
|
-
export type ListCalendarsResponse = {
|
|
1063
|
-
/**
|
|
1064
|
-
* Primaries and writable calendars first.
|
|
1065
|
-
*/
|
|
1066
|
-
calendars: Array<VisibleCalendar>;
|
|
1067
|
-
};
|
|
1068
1248
|
export type ListContactsResponse = {
|
|
1069
1249
|
/**
|
|
1070
1250
|
* the thread, with messages inside
|
|
@@ -1094,6 +1274,70 @@ export type ListLinksResponse = {
|
|
|
1094
1274
|
*/
|
|
1095
1275
|
links: Array<Link>;
|
|
1096
1276
|
};
|
|
1277
|
+
/**
|
|
1278
|
+
* Desired organization state. Categories never stand in for folders or flags.
|
|
1279
|
+
*/
|
|
1280
|
+
export type MailboxAction = {
|
|
1281
|
+
kind: 'read';
|
|
1282
|
+
/**
|
|
1283
|
+
* Mark correspondence read or unread.
|
|
1284
|
+
*/
|
|
1285
|
+
value: boolean;
|
|
1286
|
+
} | {
|
|
1287
|
+
kind: 'flagged';
|
|
1288
|
+
/**
|
|
1289
|
+
* Set the follow-up star.
|
|
1290
|
+
*/
|
|
1291
|
+
value: boolean;
|
|
1292
|
+
} | {
|
|
1293
|
+
kind: 'archived';
|
|
1294
|
+
/**
|
|
1295
|
+
* Archive inbox messages, or restore received correspondence to the inbox.
|
|
1296
|
+
*/
|
|
1297
|
+
value: boolean;
|
|
1298
|
+
} | {
|
|
1299
|
+
kind: 'trashed';
|
|
1300
|
+
/**
|
|
1301
|
+
* Move to recoverable trash, or restore correspondence to Inbox (drafts to Drafts).
|
|
1302
|
+
*/
|
|
1303
|
+
value: boolean;
|
|
1304
|
+
} | {
|
|
1305
|
+
kind: 'junk';
|
|
1306
|
+
/**
|
|
1307
|
+
* Move to junk, or restore to the inbox.
|
|
1308
|
+
*/
|
|
1309
|
+
value: boolean;
|
|
1310
|
+
} | {
|
|
1311
|
+
kind: 'category';
|
|
1312
|
+
/**
|
|
1313
|
+
* Add/remove a category while preserving other provider assignments.
|
|
1314
|
+
*/
|
|
1315
|
+
value: {
|
|
1316
|
+
name: string;
|
|
1317
|
+
present: boolean;
|
|
1318
|
+
};
|
|
1319
|
+
};
|
|
1320
|
+
/**
|
|
1321
|
+
* Durable outcome of an accepted organization action.
|
|
1322
|
+
*/
|
|
1323
|
+
export type MailboxOperation = {
|
|
1324
|
+
action: MailboxAction;
|
|
1325
|
+
id: string;
|
|
1326
|
+
state: MailboxOperationState;
|
|
1327
|
+
updated_at: string;
|
|
1328
|
+
};
|
|
1329
|
+
export type MailboxOperationState = 'pending' | 'applied' | 'failed' | 'cancelled';
|
|
1330
|
+
export type MailboxSettingsChange = 'create_label' | 'delete_label' | 'sender_block';
|
|
1331
|
+
/**
|
|
1332
|
+
* An accepted inbox configuration change awaiting provider confirmation.
|
|
1333
|
+
*/
|
|
1334
|
+
export type MailboxSettingsOperation = {
|
|
1335
|
+
enabled: boolean;
|
|
1336
|
+
id: string;
|
|
1337
|
+
kind: MailboxSettingsChange;
|
|
1338
|
+
needs_attention: boolean;
|
|
1339
|
+
resource: string;
|
|
1340
|
+
};
|
|
1097
1341
|
export type Message = {
|
|
1098
1342
|
attachments: Array<Attachment>;
|
|
1099
1343
|
/**
|
|
@@ -1140,6 +1384,12 @@ export type Message = {
|
|
|
1140
1384
|
updated_at: string;
|
|
1141
1385
|
};
|
|
1142
1386
|
export type MessageListVisibility = 'Show' | 'Hide';
|
|
1387
|
+
/**
|
|
1388
|
+
* Authorized polling response. Gmail has no asynchronous draft operation.
|
|
1389
|
+
*/
|
|
1390
|
+
export type MessageOperationResponse = {
|
|
1391
|
+
operation?: null | ApiMessageOperation;
|
|
1392
|
+
};
|
|
1143
1393
|
export type ParsedMessage = {
|
|
1144
1394
|
bcc: Array<ContactInfo>;
|
|
1145
1395
|
body_parsed?: string | null;
|
|
@@ -1164,16 +1414,6 @@ export type PatchSettingsResponse = {
|
|
|
1164
1414
|
*/
|
|
1165
1415
|
export type PreviewView = 'inbox' | 'sent' | 'drafts' | 'starred' | 'all' | 'important' | 'other' | string;
|
|
1166
1416
|
export type PreviewViewStandardLabel = 'inbox' | 'sent' | 'drafts' | 'starred' | 'all' | 'important' | 'other';
|
|
1167
|
-
/**
|
|
1168
|
-
* A sync run committed changes for `link_id`; viewers should refetch.
|
|
1169
|
-
*/
|
|
1170
|
-
export type RefreshCalendarEvent = {
|
|
1171
|
-
event: 'synced';
|
|
1172
|
-
/**
|
|
1173
|
-
* Connected inbox whose calendars changed.
|
|
1174
|
-
*/
|
|
1175
|
-
link_id: string;
|
|
1176
|
-
};
|
|
1177
1417
|
/**
|
|
1178
1418
|
* Payload for the `refresh_email` connection gateway event: identifies the
|
|
1179
1419
|
* inbox that changed and the kind of change.
|
|
@@ -1204,6 +1444,15 @@ export type RefreshEmailEvent = {
|
|
|
1204
1444
|
status: BackfillStatus;
|
|
1205
1445
|
total_threads: number;
|
|
1206
1446
|
};
|
|
1447
|
+
/**
|
|
1448
|
+
* Stale versions fail without altering the current operation.
|
|
1449
|
+
*/
|
|
1450
|
+
export type ResolveMessageOperationRequest = {
|
|
1451
|
+
accept_duplicate_risk?: boolean;
|
|
1452
|
+
action: ApiMessageResolutionAction;
|
|
1453
|
+
remote_version?: string | null;
|
|
1454
|
+
revision: string;
|
|
1455
|
+
};
|
|
1207
1456
|
/**
|
|
1208
1457
|
* The response returned from the resync endpoint.
|
|
1209
1458
|
*/
|
|
@@ -1213,29 +1462,15 @@ export type ResyncResponse = {
|
|
|
1213
1462
|
*/
|
|
1214
1463
|
already_in_progress: boolean;
|
|
1215
1464
|
/**
|
|
1216
|
-
*
|
|
1465
|
+
* Opaque ID of the backfill job or provider sync stream driving the resync.
|
|
1217
1466
|
* the one already in progress.
|
|
1218
1467
|
*/
|
|
1219
1468
|
backfill_job_id: string;
|
|
1220
1469
|
};
|
|
1221
1470
|
/**
|
|
1222
|
-
* Request body
|
|
1471
|
+
* Request body for sending a message (backward-compatible with `{ message: MessageToSend }`).
|
|
1223
1472
|
*/
|
|
1224
|
-
export type
|
|
1225
|
-
/**
|
|
1226
|
-
* Original-start key of the occurrence the response targets.
|
|
1227
|
-
*/
|
|
1228
|
-
recurrenceId?: string | null;
|
|
1229
|
-
/**
|
|
1230
|
-
* The response to record for the connected account.
|
|
1231
|
-
*/
|
|
1232
|
-
response: AttendeeResponseStatus;
|
|
1233
|
-
scope?: null | CalendarRsvpScopeParam;
|
|
1234
|
-
};
|
|
1235
|
-
/**
|
|
1236
|
-
* Request body for sending a message (backward-compatible with `{ message: MessageToSend }`).
|
|
1237
|
-
*/
|
|
1238
|
-
export type SendMessageRequest = {
|
|
1473
|
+
export type SendMessageRequest = {
|
|
1239
1474
|
/**
|
|
1240
1475
|
* The message content.
|
|
1241
1476
|
*/
|
|
@@ -1324,9 +1559,36 @@ export type ThreadPreviewCursor = {
|
|
|
1324
1559
|
updatedAt: string;
|
|
1325
1560
|
viewedAt?: string | null;
|
|
1326
1561
|
};
|
|
1562
|
+
/**
|
|
1563
|
+
* Semantic mailbox facts, independent of folder/category names.
|
|
1564
|
+
*/
|
|
1565
|
+
export type ThreadStateField = 'read' | 'starred' | 'trashed' | 'junk';
|
|
1327
1566
|
export type ThreadSummary = {
|
|
1328
1567
|
provider_id: string;
|
|
1329
1568
|
};
|
|
1569
|
+
/**
|
|
1570
|
+
* Reuse the same operation ID when retrying after a lost response.
|
|
1571
|
+
*/
|
|
1572
|
+
export type TransferDraftRequest = {
|
|
1573
|
+
destination_link_id: string;
|
|
1574
|
+
operation_id: string;
|
|
1575
|
+
};
|
|
1576
|
+
/**
|
|
1577
|
+
* A new identity prevents delayed writes from mutating the moved copy.
|
|
1578
|
+
*/
|
|
1579
|
+
export type TransferDraftResponse = {
|
|
1580
|
+
attachments: Array<ApiAttachmentDraft>;
|
|
1581
|
+
message_id: string;
|
|
1582
|
+
source_id: string;
|
|
1583
|
+
source_thread_id: string;
|
|
1584
|
+
thread_id: string;
|
|
1585
|
+
};
|
|
1586
|
+
/**
|
|
1587
|
+
* A null result confirms that the move cannot commit, even if its request was delayed.
|
|
1588
|
+
*/
|
|
1589
|
+
export type TransferRecoveryResponse = {
|
|
1590
|
+
committed?: null | TransferDraftResponse;
|
|
1591
|
+
};
|
|
1330
1592
|
/**
|
|
1331
1593
|
* Request to unblock a sender.
|
|
1332
1594
|
*/
|
|
@@ -1342,41 +1604,6 @@ export type UnblockSenderRequest = {
|
|
|
1342
1604
|
export type UnresolvedSignatureImagesError = {
|
|
1343
1605
|
unresolved_image_count: number;
|
|
1344
1606
|
};
|
|
1345
|
-
/**
|
|
1346
|
-
* Request body patching an event; omitted fields are left untouched.
|
|
1347
|
-
*/
|
|
1348
|
-
export type UpdateCalendarEventRequest = {
|
|
1349
|
-
/**
|
|
1350
|
-
* Replacement attendee list.
|
|
1351
|
-
*/
|
|
1352
|
-
attendees?: Array<CalendarAttendeeInputBody> | null;
|
|
1353
|
-
conference?: null | ConferenceChange;
|
|
1354
|
-
/**
|
|
1355
|
-
* Replacement description; an empty string clears it.
|
|
1356
|
-
*/
|
|
1357
|
-
description?: string | null;
|
|
1358
|
-
/**
|
|
1359
|
-
* Replacement location; an empty string clears it.
|
|
1360
|
-
*/
|
|
1361
|
-
location?: string | null;
|
|
1362
|
-
/**
|
|
1363
|
-
* Original-start key of the occurrence the update targets.
|
|
1364
|
-
*/
|
|
1365
|
-
recurrenceId?: string | null;
|
|
1366
|
-
/**
|
|
1367
|
-
* Replacement recurrence properties; an empty list clears them.
|
|
1368
|
-
*/
|
|
1369
|
-
recurrenceLines?: Array<string> | null;
|
|
1370
|
-
reminders?: null | EventReminders;
|
|
1371
|
-
scope?: null | CalendarUpdateScopeParam;
|
|
1372
|
-
time?: null | EventTime;
|
|
1373
|
-
/**
|
|
1374
|
-
* Replacement title; an empty string clears it.
|
|
1375
|
-
*/
|
|
1376
|
-
title?: string | null;
|
|
1377
|
-
transparency?: null | EventTransparency;
|
|
1378
|
-
visibility?: null | EventVisibility;
|
|
1379
|
-
};
|
|
1380
1607
|
export type UpdateLabelBatchRequest = {
|
|
1381
1608
|
label_id: string;
|
|
1382
1609
|
message_ids: Array<string>;
|
|
@@ -1419,6 +1646,13 @@ export type UpdateThreadProjectResponse = {
|
|
|
1419
1646
|
*/
|
|
1420
1647
|
oldProjectId?: string | null;
|
|
1421
1648
|
};
|
|
1649
|
+
/**
|
|
1650
|
+
* Desired state for every applicable message in an authorized thread.
|
|
1651
|
+
*/
|
|
1652
|
+
export type UpdateThreadStateRequest = {
|
|
1653
|
+
field: ThreadStateField;
|
|
1654
|
+
value: boolean;
|
|
1655
|
+
};
|
|
1422
1656
|
/**
|
|
1423
1657
|
* Request body for creating or updating an email filter.
|
|
1424
1658
|
*/
|
|
@@ -1444,7 +1678,11 @@ export type UpsertEmailFilterResponse = {
|
|
|
1444
1678
|
};
|
|
1445
1679
|
export type UpsertScheduledRequest = {
|
|
1446
1680
|
/**
|
|
1447
|
-
*
|
|
1681
|
+
* Per-message signature override; absent uses the inbox's send defaults.
|
|
1682
|
+
*/
|
|
1683
|
+
include_signature?: boolean | null;
|
|
1684
|
+
/**
|
|
1685
|
+
* The time to send the message (ISO 8601 format).
|
|
1448
1686
|
*/
|
|
1449
1687
|
send_time: string;
|
|
1450
1688
|
};
|
|
@@ -1452,241 +1690,8 @@ export type UpsertScheduledResponse = {
|
|
|
1452
1690
|
message_id: string;
|
|
1453
1691
|
send_time: string;
|
|
1454
1692
|
};
|
|
1455
|
-
export type UserProvider = 'GMAIL';
|
|
1693
|
+
export type UserProvider = 'GMAIL' | 'OUTLOOK';
|
|
1456
1694
|
export type Value = unknown;
|
|
1457
|
-
/**
|
|
1458
|
-
* A calendar visible to a requester, listed for pickers and filters.
|
|
1459
|
-
*/
|
|
1460
|
-
export type VisibleCalendar = {
|
|
1461
|
-
/**
|
|
1462
|
-
* Provider color.
|
|
1463
|
-
*/
|
|
1464
|
-
color?: string | null;
|
|
1465
|
-
/**
|
|
1466
|
-
* Default reminders applied to events that keep `useDefault`.
|
|
1467
|
-
*/
|
|
1468
|
-
defaultReminders: Array<EventReminderOverride>;
|
|
1469
|
-
/**
|
|
1470
|
-
* Connected inbox address, for grouping in multi-inbox pickers.
|
|
1471
|
-
*/
|
|
1472
|
-
emailAddress: string;
|
|
1473
|
-
/**
|
|
1474
|
-
* Connected inbox that syncs this calendar.
|
|
1475
|
-
*/
|
|
1476
|
-
emailLinkId: string;
|
|
1477
|
-
/**
|
|
1478
|
-
* Persisted Macro calendar identifier.
|
|
1479
|
-
*/
|
|
1480
|
-
id: string;
|
|
1481
|
-
/**
|
|
1482
|
-
* Whether this is its account's primary calendar.
|
|
1483
|
-
*/
|
|
1484
|
-
isPrimary: boolean;
|
|
1485
|
-
/**
|
|
1486
|
-
* Whether the grant can create and modify events on this calendar.
|
|
1487
|
-
*/
|
|
1488
|
-
isWritable: boolean;
|
|
1489
|
-
/**
|
|
1490
|
-
* Provider display name.
|
|
1491
|
-
*/
|
|
1492
|
-
name: string;
|
|
1493
|
-
};
|
|
1494
|
-
export type ListCalendarsData = {
|
|
1495
|
-
body?: never;
|
|
1496
|
-
path?: never;
|
|
1497
|
-
query?: never;
|
|
1498
|
-
url: '/calendar/calendars';
|
|
1499
|
-
};
|
|
1500
|
-
export type ListCalendarsErrors = {
|
|
1501
|
-
/**
|
|
1502
|
-
* Authentication required
|
|
1503
|
-
*/
|
|
1504
|
-
401: unknown;
|
|
1505
|
-
/**
|
|
1506
|
-
* Transient failure
|
|
1507
|
-
*/
|
|
1508
|
-
503: CalendarMutationApiError;
|
|
1509
|
-
};
|
|
1510
|
-
export type ListCalendarsError = ListCalendarsErrors[keyof ListCalendarsErrors];
|
|
1511
|
-
export type ListCalendarsResponses = {
|
|
1512
|
-
/**
|
|
1513
|
-
* Calendars visible to the requester
|
|
1514
|
-
*/
|
|
1515
|
-
200: ListCalendarsResponse;
|
|
1516
|
-
};
|
|
1517
|
-
export type ListCalendarsResponse2 = ListCalendarsResponses[keyof ListCalendarsResponses];
|
|
1518
|
-
export type CreateCalendarEventData = {
|
|
1519
|
-
body: CreateCalendarEventRequest;
|
|
1520
|
-
path?: never;
|
|
1521
|
-
query?: never;
|
|
1522
|
-
url: '/calendar/events';
|
|
1523
|
-
};
|
|
1524
|
-
export type CreateCalendarEventErrors = {
|
|
1525
|
-
/**
|
|
1526
|
-
* Invalid event fields
|
|
1527
|
-
*/
|
|
1528
|
-
400: CalendarMutationApiError;
|
|
1529
|
-
/**
|
|
1530
|
-
* Authentication required
|
|
1531
|
-
*/
|
|
1532
|
-
401: unknown;
|
|
1533
|
-
/**
|
|
1534
|
-
* Calendar is read-only or needs reauthorization
|
|
1535
|
-
*/
|
|
1536
|
-
403: CalendarMutationApiError;
|
|
1537
|
-
/**
|
|
1538
|
-
* No writable calendar or the provider rejected the event
|
|
1539
|
-
*/
|
|
1540
|
-
409: CalendarMutationApiError;
|
|
1541
|
-
/**
|
|
1542
|
-
* Transient provider failure
|
|
1543
|
-
*/
|
|
1544
|
-
503: CalendarMutationApiError;
|
|
1545
|
-
};
|
|
1546
|
-
export type CreateCalendarEventError = CreateCalendarEventErrors[keyof CreateCalendarEventErrors];
|
|
1547
|
-
export type CreateCalendarEventResponses = {
|
|
1548
|
-
/**
|
|
1549
|
-
* The created calendar event
|
|
1550
|
-
*/
|
|
1551
|
-
201: CalendarEvent;
|
|
1552
|
-
};
|
|
1553
|
-
export type CreateCalendarEventResponse = CreateCalendarEventResponses[keyof CreateCalendarEventResponses];
|
|
1554
|
-
export type DeleteCalendarEventData = {
|
|
1555
|
-
body?: never;
|
|
1556
|
-
path: {
|
|
1557
|
-
/**
|
|
1558
|
-
* Calendar event entity id
|
|
1559
|
-
*/
|
|
1560
|
-
event_id: string;
|
|
1561
|
-
};
|
|
1562
|
-
query?: {
|
|
1563
|
-
/**
|
|
1564
|
-
* Deletion scope; defaults to the entire event or series.
|
|
1565
|
-
*/
|
|
1566
|
-
scope?: CalendarDeletionScopeParam;
|
|
1567
|
-
/**
|
|
1568
|
-
* Original-start key of the occurrence a scoped deletion targets.
|
|
1569
|
-
*/
|
|
1570
|
-
recurrenceId?: string;
|
|
1571
|
-
};
|
|
1572
|
-
url: '/calendar/events/{event_id}';
|
|
1573
|
-
};
|
|
1574
|
-
export type DeleteCalendarEventErrors = {
|
|
1575
|
-
/**
|
|
1576
|
-
* Authentication required
|
|
1577
|
-
*/
|
|
1578
|
-
401: unknown;
|
|
1579
|
-
/**
|
|
1580
|
-
* Calendar is read-only or needs reauthorization
|
|
1581
|
-
*/
|
|
1582
|
-
403: CalendarMutationApiError;
|
|
1583
|
-
/**
|
|
1584
|
-
* Event not found
|
|
1585
|
-
*/
|
|
1586
|
-
404: CalendarMutationApiError;
|
|
1587
|
-
/**
|
|
1588
|
-
* The provider rejected the deletion
|
|
1589
|
-
*/
|
|
1590
|
-
409: CalendarMutationApiError;
|
|
1591
|
-
/**
|
|
1592
|
-
* Transient provider failure
|
|
1593
|
-
*/
|
|
1594
|
-
503: CalendarMutationApiError;
|
|
1595
|
-
};
|
|
1596
|
-
export type DeleteCalendarEventError = DeleteCalendarEventErrors[keyof DeleteCalendarEventErrors];
|
|
1597
|
-
export type DeleteCalendarEventResponses = {
|
|
1598
|
-
/**
|
|
1599
|
-
* The event was deleted
|
|
1600
|
-
*/
|
|
1601
|
-
204: void;
|
|
1602
|
-
};
|
|
1603
|
-
export type DeleteCalendarEventResponse = DeleteCalendarEventResponses[keyof DeleteCalendarEventResponses];
|
|
1604
|
-
export type UpdateCalendarEventData = {
|
|
1605
|
-
body: UpdateCalendarEventRequest;
|
|
1606
|
-
path: {
|
|
1607
|
-
/**
|
|
1608
|
-
* Calendar event entity id
|
|
1609
|
-
*/
|
|
1610
|
-
event_id: string;
|
|
1611
|
-
};
|
|
1612
|
-
query?: never;
|
|
1613
|
-
url: '/calendar/events/{event_id}';
|
|
1614
|
-
};
|
|
1615
|
-
export type UpdateCalendarEventErrors = {
|
|
1616
|
-
/**
|
|
1617
|
-
* Invalid event fields
|
|
1618
|
-
*/
|
|
1619
|
-
400: CalendarMutationApiError;
|
|
1620
|
-
/**
|
|
1621
|
-
* Authentication required
|
|
1622
|
-
*/
|
|
1623
|
-
401: unknown;
|
|
1624
|
-
/**
|
|
1625
|
-
* Calendar is read-only or needs reauthorization
|
|
1626
|
-
*/
|
|
1627
|
-
403: CalendarMutationApiError;
|
|
1628
|
-
/**
|
|
1629
|
-
* Event or targeted occurrence not found
|
|
1630
|
-
*/
|
|
1631
|
-
404: CalendarMutationApiError;
|
|
1632
|
-
/**
|
|
1633
|
-
* The provider rejected the update
|
|
1634
|
-
*/
|
|
1635
|
-
409: CalendarMutationApiError;
|
|
1636
|
-
/**
|
|
1637
|
-
* Transient provider failure
|
|
1638
|
-
*/
|
|
1639
|
-
503: CalendarMutationApiError;
|
|
1640
|
-
};
|
|
1641
|
-
export type UpdateCalendarEventError = UpdateCalendarEventErrors[keyof UpdateCalendarEventErrors];
|
|
1642
|
-
export type UpdateCalendarEventResponses = {
|
|
1643
|
-
/**
|
|
1644
|
-
* The updated calendar event
|
|
1645
|
-
*/
|
|
1646
|
-
200: CalendarEvent;
|
|
1647
|
-
};
|
|
1648
|
-
export type UpdateCalendarEventResponse = UpdateCalendarEventResponses[keyof UpdateCalendarEventResponses];
|
|
1649
|
-
export type RsvpCalendarEventData = {
|
|
1650
|
-
body: RsvpCalendarEventRequest;
|
|
1651
|
-
path: {
|
|
1652
|
-
/**
|
|
1653
|
-
* Calendar event entity id
|
|
1654
|
-
*/
|
|
1655
|
-
event_id: string;
|
|
1656
|
-
};
|
|
1657
|
-
query?: never;
|
|
1658
|
-
url: '/calendar/events/{event_id}/rsvp';
|
|
1659
|
-
};
|
|
1660
|
-
export type RsvpCalendarEventErrors = {
|
|
1661
|
-
/**
|
|
1662
|
-
* Authentication required
|
|
1663
|
-
*/
|
|
1664
|
-
401: unknown;
|
|
1665
|
-
/**
|
|
1666
|
-
* Calendar is read-only or needs reauthorization
|
|
1667
|
-
*/
|
|
1668
|
-
403: CalendarMutationApiError;
|
|
1669
|
-
/**
|
|
1670
|
-
* Event not found
|
|
1671
|
-
*/
|
|
1672
|
-
404: CalendarMutationApiError;
|
|
1673
|
-
/**
|
|
1674
|
-
* The connected account is not an attendee
|
|
1675
|
-
*/
|
|
1676
|
-
409: CalendarMutationApiError;
|
|
1677
|
-
/**
|
|
1678
|
-
* Transient provider failure
|
|
1679
|
-
*/
|
|
1680
|
-
503: CalendarMutationApiError;
|
|
1681
|
-
};
|
|
1682
|
-
export type RsvpCalendarEventError = RsvpCalendarEventErrors[keyof RsvpCalendarEventErrors];
|
|
1683
|
-
export type RsvpCalendarEventResponses = {
|
|
1684
|
-
/**
|
|
1685
|
-
* The updated calendar event
|
|
1686
|
-
*/
|
|
1687
|
-
200: CalendarEvent;
|
|
1688
|
-
};
|
|
1689
|
-
export type RsvpCalendarEventResponse = RsvpCalendarEventResponses[keyof RsvpCalendarEventResponses];
|
|
1690
1695
|
export type GetAttachmentData = {
|
|
1691
1696
|
body?: never;
|
|
1692
1697
|
path: {
|
|
@@ -1867,6 +1872,22 @@ export type UnblockSenderResponses = {
|
|
|
1867
1872
|
204: void;
|
|
1868
1873
|
};
|
|
1869
1874
|
export type UnblockSenderResponse = UnblockSenderResponses[keyof UnblockSenderResponses];
|
|
1875
|
+
export type RecoverDraftTransferData = {
|
|
1876
|
+
body?: never;
|
|
1877
|
+
path: {
|
|
1878
|
+
id: string;
|
|
1879
|
+
};
|
|
1880
|
+
query?: never;
|
|
1881
|
+
url: '/email/draft-transfers/{id}/recover';
|
|
1882
|
+
};
|
|
1883
|
+
export type RecoverDraftTransferErrors = {
|
|
1884
|
+
403: unknown;
|
|
1885
|
+
500: unknown;
|
|
1886
|
+
};
|
|
1887
|
+
export type RecoverDraftTransferResponses = {
|
|
1888
|
+
200: TransferRecoveryResponse;
|
|
1889
|
+
};
|
|
1890
|
+
export type RecoverDraftTransferResponse = RecoverDraftTransferResponses[keyof RecoverDraftTransferResponses];
|
|
1870
1891
|
export type CreateDraftData = {
|
|
1871
1892
|
body: CreateDraftRequest;
|
|
1872
1893
|
path?: never;
|
|
@@ -1920,7 +1941,9 @@ export type UpsertScheduledMessageData = {
|
|
|
1920
1941
|
url: '/email/drafts/scheduled/{id}';
|
|
1921
1942
|
};
|
|
1922
1943
|
export type UpsertScheduledMessageErrors = {
|
|
1944
|
+
400: ErrorResponse;
|
|
1923
1945
|
401: ErrorResponse;
|
|
1946
|
+
403: ErrorResponse;
|
|
1924
1947
|
404: ErrorResponse;
|
|
1925
1948
|
500: ErrorResponse;
|
|
1926
1949
|
};
|
|
@@ -1943,6 +1966,7 @@ export type DeleteScheduledDraftData = {
|
|
|
1943
1966
|
export type DeleteScheduledDraftErrors = {
|
|
1944
1967
|
400: ErrorResponse;
|
|
1945
1968
|
401: ErrorResponse;
|
|
1969
|
+
403: ErrorResponse;
|
|
1946
1970
|
404: ErrorResponse;
|
|
1947
1971
|
500: ErrorResponse;
|
|
1948
1972
|
};
|
|
@@ -2024,6 +2048,26 @@ export type RemoveDraftAttachmentResponses = {
|
|
|
2024
2048
|
201: EmptyResponse;
|
|
2025
2049
|
};
|
|
2026
2050
|
export type RemoveDraftAttachmentResponse = RemoveDraftAttachmentResponses[keyof RemoveDraftAttachmentResponses];
|
|
2051
|
+
export type CompleteDraftAttachmentData = {
|
|
2052
|
+
body?: never;
|
|
2053
|
+
path: {
|
|
2054
|
+
id: string;
|
|
2055
|
+
attachment_id: string;
|
|
2056
|
+
};
|
|
2057
|
+
query?: never;
|
|
2058
|
+
url: '/email/drafts/{id}/attachments/{attachment_id}/complete';
|
|
2059
|
+
};
|
|
2060
|
+
export type CompleteDraftAttachmentErrors = {
|
|
2061
|
+
400: unknown;
|
|
2062
|
+
403: unknown;
|
|
2063
|
+
404: unknown;
|
|
2064
|
+
409: unknown;
|
|
2065
|
+
500: unknown;
|
|
2066
|
+
};
|
|
2067
|
+
export type CompleteDraftAttachmentResponses = {
|
|
2068
|
+
204: void;
|
|
2069
|
+
};
|
|
2070
|
+
export type CompleteDraftAttachmentResponse = CompleteDraftAttachmentResponses[keyof CompleteDraftAttachmentResponses];
|
|
2027
2071
|
export type AddForwardedAttachmentData = {
|
|
2028
2072
|
body: AddForwardedAttachmentRequest;
|
|
2029
2073
|
path: {
|
|
@@ -2068,6 +2112,66 @@ export type RemoveForwardedAttachmentResponses = {
|
|
|
2068
2112
|
204: void;
|
|
2069
2113
|
};
|
|
2070
2114
|
export type RemoveForwardedAttachmentResponse = RemoveForwardedAttachmentResponses[keyof RemoveForwardedAttachmentResponses];
|
|
2115
|
+
export type MessageOperationStatusData = {
|
|
2116
|
+
body?: never;
|
|
2117
|
+
path: {
|
|
2118
|
+
/**
|
|
2119
|
+
* Message ID
|
|
2120
|
+
*/
|
|
2121
|
+
id: string;
|
|
2122
|
+
};
|
|
2123
|
+
query?: never;
|
|
2124
|
+
url: '/email/drafts/{id}/operation';
|
|
2125
|
+
};
|
|
2126
|
+
export type MessageOperationStatusErrors = {
|
|
2127
|
+
403: ErrorResponse;
|
|
2128
|
+
404: ErrorResponse;
|
|
2129
|
+
};
|
|
2130
|
+
export type MessageOperationStatusError = MessageOperationStatusErrors[keyof MessageOperationStatusErrors];
|
|
2131
|
+
export type MessageOperationStatusResponses = {
|
|
2132
|
+
200: MessageOperationResponse;
|
|
2133
|
+
};
|
|
2134
|
+
export type MessageOperationStatusResponse = MessageOperationStatusResponses[keyof MessageOperationStatusResponses];
|
|
2135
|
+
export type ResolveMessageOperationData = {
|
|
2136
|
+
body: ResolveMessageOperationRequest;
|
|
2137
|
+
path: {
|
|
2138
|
+
/**
|
|
2139
|
+
* Message ID
|
|
2140
|
+
*/
|
|
2141
|
+
id: string;
|
|
2142
|
+
};
|
|
2143
|
+
query?: never;
|
|
2144
|
+
url: '/email/drafts/{id}/resolve';
|
|
2145
|
+
};
|
|
2146
|
+
export type ResolveMessageOperationErrors = {
|
|
2147
|
+
400: ErrorResponse;
|
|
2148
|
+
403: ErrorResponse;
|
|
2149
|
+
404: ErrorResponse;
|
|
2150
|
+
409: ErrorResponse;
|
|
2151
|
+
};
|
|
2152
|
+
export type ResolveMessageOperationError = ResolveMessageOperationErrors[keyof ResolveMessageOperationErrors];
|
|
2153
|
+
export type ResolveMessageOperationResponses = {
|
|
2154
|
+
204: void;
|
|
2155
|
+
};
|
|
2156
|
+
export type ResolveMessageOperationResponse = ResolveMessageOperationResponses[keyof ResolveMessageOperationResponses];
|
|
2157
|
+
export type TransferDraftData = {
|
|
2158
|
+
body: TransferDraftRequest;
|
|
2159
|
+
path: {
|
|
2160
|
+
id: string;
|
|
2161
|
+
};
|
|
2162
|
+
query?: never;
|
|
2163
|
+
url: '/email/drafts/{id}/transfer';
|
|
2164
|
+
};
|
|
2165
|
+
export type TransferDraftErrors = {
|
|
2166
|
+
403: unknown;
|
|
2167
|
+
404: unknown;
|
|
2168
|
+
409: unknown;
|
|
2169
|
+
500: unknown;
|
|
2170
|
+
};
|
|
2171
|
+
export type TransferDraftResponses = {
|
|
2172
|
+
200: TransferDraftResponse;
|
|
2173
|
+
};
|
|
2174
|
+
export type TransferDraftResponse2 = TransferDraftResponses[keyof TransferDraftResponses];
|
|
2071
2175
|
export type ListEmailFiltersData = {
|
|
2072
2176
|
body?: never;
|
|
2073
2177
|
path?: never;
|
|
@@ -2138,6 +2242,7 @@ export type InitUserData = {
|
|
|
2138
2242
|
export type InitUserErrors = {
|
|
2139
2243
|
400: InitErrorCodeResponse;
|
|
2140
2244
|
401: ErrorResponse;
|
|
2245
|
+
402: ErrorResponse;
|
|
2141
2246
|
409: SharedInboxConflictResponse;
|
|
2142
2247
|
429: ErrorResponse;
|
|
2143
2248
|
500: ErrorResponse;
|
|
@@ -2390,6 +2495,16 @@ export type PatchSettingsResponses = {
|
|
|
2390
2495
|
200: PatchSettingsResponse;
|
|
2391
2496
|
};
|
|
2392
2497
|
export type PatchSettingsResponse2 = PatchSettingsResponses[keyof PatchSettingsResponses];
|
|
2498
|
+
export type MailboxSettingsOperationsData = {
|
|
2499
|
+
body?: never;
|
|
2500
|
+
path?: never;
|
|
2501
|
+
query?: never;
|
|
2502
|
+
url: '/email/settings/operations';
|
|
2503
|
+
};
|
|
2504
|
+
export type MailboxSettingsOperationsResponses = {
|
|
2505
|
+
200: Array<MailboxSettingsOperation>;
|
|
2506
|
+
};
|
|
2507
|
+
export type MailboxSettingsOperationsResponse = MailboxSettingsOperationsResponses[keyof MailboxSettingsOperationsResponses];
|
|
2393
2508
|
export type DisableSyncData = {
|
|
2394
2509
|
body?: never;
|
|
2395
2510
|
path?: never;
|
|
@@ -2526,6 +2641,25 @@ export type GetThreadMessagesHandlerResponses = {
|
|
|
2526
2641
|
200: Array<ParsedMessage>;
|
|
2527
2642
|
};
|
|
2528
2643
|
export type GetThreadMessagesHandlerResponse = GetThreadMessagesHandlerResponses[keyof GetThreadMessagesHandlerResponses];
|
|
2644
|
+
export type ThreadOperationsData = {
|
|
2645
|
+
body?: never;
|
|
2646
|
+
path: {
|
|
2647
|
+
/**
|
|
2648
|
+
* Thread ID
|
|
2649
|
+
*/
|
|
2650
|
+
id: string;
|
|
2651
|
+
};
|
|
2652
|
+
query?: never;
|
|
2653
|
+
url: '/email/threads/{id}/operations';
|
|
2654
|
+
};
|
|
2655
|
+
export type ThreadOperationsErrors = {
|
|
2656
|
+
404: ErrorResponse;
|
|
2657
|
+
};
|
|
2658
|
+
export type ThreadOperationsError = ThreadOperationsErrors[keyof ThreadOperationsErrors];
|
|
2659
|
+
export type ThreadOperationsResponses = {
|
|
2660
|
+
200: Array<MailboxOperation>;
|
|
2661
|
+
};
|
|
2662
|
+
export type ThreadOperationsResponse = ThreadOperationsResponses[keyof ThreadOperationsResponses];
|
|
2529
2663
|
export type ThreadSeenData = {
|
|
2530
2664
|
body?: never;
|
|
2531
2665
|
path: {
|
|
@@ -2547,6 +2681,28 @@ export type ThreadSeenResponses = {
|
|
|
2547
2681
|
200: EmptyResponse;
|
|
2548
2682
|
};
|
|
2549
2683
|
export type ThreadSeenResponse = ThreadSeenResponses[keyof ThreadSeenResponses];
|
|
2684
|
+
export type UpdateThreadStateData = {
|
|
2685
|
+
body: UpdateThreadStateRequest;
|
|
2686
|
+
path: {
|
|
2687
|
+
/**
|
|
2688
|
+
* Thread ID
|
|
2689
|
+
*/
|
|
2690
|
+
id: string;
|
|
2691
|
+
};
|
|
2692
|
+
query?: never;
|
|
2693
|
+
url: '/email/threads/{id}/state';
|
|
2694
|
+
};
|
|
2695
|
+
export type UpdateThreadStateErrors = {
|
|
2696
|
+
400: ErrorResponse;
|
|
2697
|
+
401: ErrorResponse;
|
|
2698
|
+
404: ErrorResponse;
|
|
2699
|
+
409: ErrorResponse;
|
|
2700
|
+
};
|
|
2701
|
+
export type UpdateThreadStateError = UpdateThreadStateErrors[keyof UpdateThreadStateErrors];
|
|
2702
|
+
export type UpdateThreadStateResponses = {
|
|
2703
|
+
204: void;
|
|
2704
|
+
};
|
|
2705
|
+
export type UpdateThreadStateResponse = UpdateThreadStateResponses[keyof UpdateThreadStateResponses];
|
|
2550
2706
|
export type GetThreadData = {
|
|
2551
2707
|
body?: never;
|
|
2552
2708
|
path: {
|
|
@@ -2578,6 +2734,27 @@ export type GetThreadResponses = {
|
|
|
2578
2734
|
200: GetThreadResponse;
|
|
2579
2735
|
};
|
|
2580
2736
|
export type GetThreadResponse2 = GetThreadResponses[keyof GetThreadResponses];
|
|
2737
|
+
export type GetThreadCalendarInvitationsData = {
|
|
2738
|
+
body?: never;
|
|
2739
|
+
path: {
|
|
2740
|
+
/**
|
|
2741
|
+
* Authorized email thread
|
|
2742
|
+
*/
|
|
2743
|
+
thread_id: string;
|
|
2744
|
+
};
|
|
2745
|
+
query?: never;
|
|
2746
|
+
url: '/email/threads/{thread_id}/calendar-invitations';
|
|
2747
|
+
};
|
|
2748
|
+
export type GetThreadCalendarInvitationsErrors = {
|
|
2749
|
+
401: unknown;
|
|
2750
|
+
403: unknown;
|
|
2751
|
+
};
|
|
2752
|
+
export type GetThreadCalendarInvitationsResponses = {
|
|
2753
|
+
200: {
|
|
2754
|
+
[key: string]: InvitationResolution;
|
|
2755
|
+
};
|
|
2756
|
+
};
|
|
2757
|
+
export type GetThreadCalendarInvitationsResponse = GetThreadCalendarInvitationsResponses[keyof GetThreadCalendarInvitationsResponses];
|
|
2581
2758
|
export type UpdateThreadProjectData = {
|
|
2582
2759
|
body: UpdateThreadProjectRequest;
|
|
2583
2760
|
path: {
|