@epilot/sdk 2.18.14 → 2.18.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (153) hide show
  1. package/definitions/calendar.json +25 -25
  2. package/definitions/integration-toolkit-runtime.json +1 -1
  3. package/definitions/integration-toolkit.json +379 -1
  4. package/definitions/message-runtime.json +1 -1
  5. package/definitions/message.json +481 -1
  6. package/dist/apis/access-token.cjs +6 -6
  7. package/dist/apis/access-token.js +1 -1
  8. package/dist/apis/address-suggestions.cjs +6 -6
  9. package/dist/apis/address-suggestions.js +1 -1
  10. package/dist/apis/address.cjs +6 -6
  11. package/dist/apis/address.js +1 -1
  12. package/dist/apis/ai-agents.cjs +6 -6
  13. package/dist/apis/ai-agents.js +1 -1
  14. package/dist/apis/app.cjs +6 -6
  15. package/dist/apis/app.js +1 -1
  16. package/dist/apis/audit-logs.cjs +6 -6
  17. package/dist/apis/audit-logs.js +1 -1
  18. package/dist/apis/automation.cjs +6 -6
  19. package/dist/apis/automation.js +1 -1
  20. package/dist/apis/billing.cjs +6 -6
  21. package/dist/apis/billing.js +1 -1
  22. package/dist/apis/blueprint-manifest.cjs +6 -6
  23. package/dist/apis/blueprint-manifest.js +1 -1
  24. package/dist/apis/calendar.cjs +6 -6
  25. package/dist/apis/calendar.d.cts +2 -2
  26. package/dist/apis/calendar.d.ts +2 -2
  27. package/dist/apis/calendar.js +1 -1
  28. package/dist/apis/configuration-hub.cjs +6 -6
  29. package/dist/apis/configuration-hub.js +1 -1
  30. package/dist/apis/consent.cjs +6 -6
  31. package/dist/apis/consent.js +1 -1
  32. package/dist/apis/customer-portal.cjs +6 -6
  33. package/dist/apis/customer-portal.js +1 -1
  34. package/dist/apis/dashboard.cjs +6 -6
  35. package/dist/apis/dashboard.js +1 -1
  36. package/dist/apis/data-governance.cjs +6 -6
  37. package/dist/apis/data-governance.js +1 -1
  38. package/dist/apis/deduplication.cjs +6 -6
  39. package/dist/apis/deduplication.js +1 -1
  40. package/dist/apis/design.cjs +6 -6
  41. package/dist/apis/design.js +1 -1
  42. package/dist/apis/document.cjs +6 -6
  43. package/dist/apis/document.js +1 -1
  44. package/dist/apis/email-settings.cjs +6 -6
  45. package/dist/apis/email-settings.js +1 -1
  46. package/dist/apis/email-template.cjs +6 -6
  47. package/dist/apis/email-template.js +1 -1
  48. package/dist/apis/entity-mapping.cjs +6 -6
  49. package/dist/apis/entity-mapping.js +1 -1
  50. package/dist/apis/entity.cjs +6 -6
  51. package/dist/apis/entity.js +1 -1
  52. package/dist/apis/environments.cjs +6 -6
  53. package/dist/apis/environments.js +1 -1
  54. package/dist/apis/event-catalog.cjs +6 -6
  55. package/dist/apis/event-catalog.js +1 -1
  56. package/dist/apis/file.cjs +6 -6
  57. package/dist/apis/file.js +1 -1
  58. package/dist/apis/iban.cjs +6 -6
  59. package/dist/apis/iban.js +1 -1
  60. package/dist/apis/integration-toolkit.cjs +8 -8
  61. package/dist/apis/integration-toolkit.d.cts +2 -2
  62. package/dist/apis/integration-toolkit.d.ts +2 -2
  63. package/dist/apis/integration-toolkit.js +2 -2
  64. package/dist/apis/journey.cjs +6 -6
  65. package/dist/apis/journey.js +1 -1
  66. package/dist/apis/kanban.cjs +6 -6
  67. package/dist/apis/kanban.js +1 -1
  68. package/dist/apis/message.cjs +8 -8
  69. package/dist/apis/message.d.cts +2 -2
  70. package/dist/apis/message.d.ts +2 -2
  71. package/dist/apis/message.js +2 -2
  72. package/dist/apis/metering.cjs +6 -6
  73. package/dist/apis/metering.js +1 -1
  74. package/dist/apis/notes.cjs +6 -6
  75. package/dist/apis/notes.js +1 -1
  76. package/dist/apis/notification.cjs +6 -6
  77. package/dist/apis/notification.js +1 -1
  78. package/dist/apis/organization.cjs +6 -6
  79. package/dist/apis/organization.js +1 -1
  80. package/dist/apis/partner-directory.cjs +6 -6
  81. package/dist/apis/partner-directory.js +1 -1
  82. package/dist/apis/permissions.cjs +6 -6
  83. package/dist/apis/permissions.js +1 -1
  84. package/dist/apis/pricing-tier.cjs +6 -6
  85. package/dist/apis/pricing-tier.js +1 -1
  86. package/dist/apis/pricing.cjs +6 -6
  87. package/dist/apis/pricing.js +1 -1
  88. package/dist/apis/purpose.cjs +6 -6
  89. package/dist/apis/purpose.js +1 -1
  90. package/dist/apis/query.cjs +6 -6
  91. package/dist/apis/query.js +1 -1
  92. package/dist/apis/sandbox.cjs +6 -6
  93. package/dist/apis/sandbox.js +1 -1
  94. package/dist/apis/sharing.cjs +6 -6
  95. package/dist/apis/sharing.js +1 -1
  96. package/dist/apis/snapshot.cjs +6 -6
  97. package/dist/apis/snapshot.js +1 -1
  98. package/dist/apis/submission.cjs +6 -6
  99. package/dist/apis/submission.js +1 -1
  100. package/dist/apis/target.cjs +6 -6
  101. package/dist/apis/target.js +1 -1
  102. package/dist/apis/targeting.cjs +6 -6
  103. package/dist/apis/targeting.js +1 -1
  104. package/dist/apis/template-variables.cjs +6 -6
  105. package/dist/apis/template-variables.js +1 -1
  106. package/dist/apis/user.cjs +6 -6
  107. package/dist/apis/user.js +1 -1
  108. package/dist/apis/validation-rules.cjs +6 -6
  109. package/dist/apis/validation-rules.js +1 -1
  110. package/dist/apis/webhooks.cjs +6 -6
  111. package/dist/apis/webhooks.js +1 -1
  112. package/dist/apis/workflow-definition.cjs +6 -6
  113. package/dist/apis/workflow-definition.js +1 -1
  114. package/dist/apis/workflow.cjs +6 -6
  115. package/dist/apis/workflow.js +1 -1
  116. package/dist/{calendar-GJ7UX6PX.cjs → calendar-EMNHW6ME.cjs} +1 -1
  117. package/dist/{calendar-W42TSLFV.js → calendar-PZFEAXYE.js} +1 -1
  118. package/dist/{calendar.d-Cinz1Vzo.d.cts → calendar.d-Cz8R-GJ5.d.cts} +22 -7
  119. package/dist/{calendar.d-Cinz1Vzo.d.ts → calendar.d-Cz8R-GJ5.d.ts} +22 -7
  120. package/dist/chunk-EHLNSFCU.cjs +14 -0
  121. package/dist/chunk-ILRZHW2E.cjs +14 -0
  122. package/dist/chunk-OT6AETWN.js +14 -0
  123. package/dist/{chunk-6X7EGWOK.js → chunk-S7LXTIGZ.js} +5 -5
  124. package/dist/chunk-VA34RFFR.js +14 -0
  125. package/dist/{chunk-S7UE54HY.cjs → chunk-WCFT56OJ.cjs} +5 -5
  126. package/dist/index.cjs +12 -12
  127. package/dist/index.d.cts +3 -3
  128. package/dist/index.d.ts +3 -3
  129. package/dist/index.js +3 -3
  130. package/dist/integration-toolkit-GR4ZQAY5.cjs +7 -0
  131. package/dist/integration-toolkit-XGQNDLIZ.js +7 -0
  132. package/dist/{integration-toolkit-runtime-6J2KUTFL.js → integration-toolkit-runtime-3RZRSZCW.js} +1 -1
  133. package/dist/{integration-toolkit-runtime-REEOXZO6.cjs → integration-toolkit-runtime-ZWS4WRKI.cjs} +2 -2
  134. package/dist/{integration-toolkit.d-pP-3dBPT.d.cts → integration-toolkit.d-CoMi10QU.d.cts} +292 -1
  135. package/dist/{integration-toolkit.d-pP-3dBPT.d.ts → integration-toolkit.d-CoMi10QU.d.ts} +292 -1
  136. package/dist/message-BZN67NTB.js +7 -0
  137. package/dist/message-DBHA4PHI.cjs +7 -0
  138. package/dist/{message-runtime-5Z3POFZV.cjs → message-runtime-4JSNBEVL.cjs} +2 -2
  139. package/dist/{message-runtime-5AUGENW3.js → message-runtime-7UM7U4VL.js} +1 -1
  140. package/dist/{message.d-b-UwZUNb.d.cts → message.d-BHWCGH3q.d.cts} +330 -3
  141. package/dist/{message.d-b-UwZUNb.d.ts → message.d-BHWCGH3q.d.ts} +330 -3
  142. package/docs/calendar.md +16 -2
  143. package/docs/integration-toolkit.md +224 -0
  144. package/docs/message.md +385 -1
  145. package/package.json +1 -1
  146. package/dist/chunk-2ESIGECW.js +0 -14
  147. package/dist/chunk-JM63KEFZ.cjs +0 -14
  148. package/dist/chunk-TIH5X7Q4.cjs +0 -14
  149. package/dist/chunk-YWZCVCG2.js +0 -14
  150. package/dist/integration-toolkit-RIBZBI2Y.js +0 -7
  151. package/dist/integration-toolkit-RPWD4MAN.cjs +0 -7
  152. package/dist/message-F4HJQBF5.cjs +0 -7
  153. package/dist/message-TLEET26B.js +0 -7
@@ -339,6 +339,49 @@ declare namespace Components {
339
339
  */
340
340
  template_id?: string;
341
341
  }
342
+ export interface MessageAutoReplySentEvent {
343
+ type: "MESSAGE_AUTO_REPLY_SENT";
344
+ /**
345
+ * ID of the message that was sent as the automatic reply
346
+ */
347
+ reply_message_id?: string;
348
+ /**
349
+ * ID of the message the automatic reply responded to
350
+ */
351
+ parent_message_id?: string;
352
+ }
353
+ export interface MessageEntityLinkedEvent {
354
+ type: "MESSAGE_ENTITY_LINKED";
355
+ entities?: TimelineLinkedEntity[];
356
+ link_kind?: "manual" | "auto";
357
+ }
358
+ export interface MessageEntityUnlinkedEvent {
359
+ type: "MESSAGE_ENTITY_UNLINKED";
360
+ entities?: TimelineLinkedEntity[];
361
+ link_kind?: "manual" | "auto";
362
+ }
363
+ export interface MessageLabelAddedEvent {
364
+ type: "MESSAGE_LABEL_ADDED";
365
+ /**
366
+ * The label that was added (raw tag slug, e.g. `sentiments:angry`)
367
+ */
368
+ label: string;
369
+ /**
370
+ * Resolved taxonomy classification display name (e.g. `Verärgert`), when the label is a classification. Absent for free-form tags.
371
+ */
372
+ label_name?: string;
373
+ }
374
+ export interface MessageLabelRemovedEvent {
375
+ type: "MESSAGE_LABEL_REMOVED";
376
+ /**
377
+ * The label that was removed (raw tag slug, e.g. `sentiments:angry`)
378
+ */
379
+ label: string;
380
+ /**
381
+ * Resolved taxonomy classification display name (e.g. `Verärgert`), when the label is a classification. Absent for free-form tags.
382
+ */
383
+ label_name?: string;
384
+ }
342
385
  export interface MessageRequestParams {
343
386
  [name: string]: any;
344
387
  /**
@@ -721,6 +764,17 @@ declare namespace Components {
721
764
  */
722
765
  organization_id: string;
723
766
  }
767
+ export interface ThreadMovedToInboxEvent {
768
+ type: "THREAD_MOVED_TO_INBOX";
769
+ /**
770
+ * ID of the shared inbox the thread was moved to
771
+ */
772
+ target_inbox_id?: string;
773
+ /**
774
+ * Name of the shared inbox the thread was moved to
775
+ */
776
+ target_inbox_name?: string;
777
+ }
724
778
  export interface ThreadOpenEvent {
725
779
  type: "THREAD_OPEN";
726
780
  /**
@@ -736,19 +790,206 @@ declare namespace Components {
736
790
  */
737
791
  organization_id: string;
738
792
  }
793
+ export interface ThreadRestoredEvent {
794
+ type: "THREAD_RESTORED";
795
+ }
739
796
  export interface ThreadTimeline {
740
797
  events: TimelineEvent[];
741
798
  }
799
+ export interface ThreadTrashedEvent {
800
+ type: "THREAD_TRASHED";
801
+ }
802
+ export interface ThreadUserAssignedEvent {
803
+ type: "THREAD_USER_ASSIGNED";
804
+ /**
805
+ * User IDs assigned to the thread
806
+ */
807
+ added?: string[];
808
+ /**
809
+ * User IDs unassigned from the thread
810
+ */
811
+ removed?: string[];
812
+ }
813
+ export interface TimelineActor {
814
+ user_id?: string;
815
+ email?: string;
816
+ }
742
817
  export interface TimelineEvent {
818
+ /**
819
+ * Activity id (ActivityItem._id), for deep-linking to the item in the activity feed
820
+ */
821
+ id?: string;
743
822
  data: TimelineEventData;
744
823
  /**
745
824
  * Timestamp of the event
746
825
  * example:
747
- * 2024-01-01T00:00:00.000Z
826
+ * 2024-01-01T00:00:00Z
748
827
  */
749
828
  timestamp: string;
829
+ /**
830
+ * For message-level events, the message the activity is anchored to
831
+ */
832
+ message_id?: string;
833
+ source?: "user" | "automation" | "system";
834
+ /**
835
+ * Whether the activity was performed automatically (automation/system)
836
+ */
837
+ automated?: boolean;
838
+ actor?: TimelineActor;
839
+ automation?: {
840
+ id?: string;
841
+ name?: string;
842
+ };
843
+ }
844
+ export type TimelineEventData = ThreadDoneEvent | ThreadOpenEvent | WorkflowStartedEvent | ThreadUserAssignedEvent | MessageLabelAddedEvent | MessageLabelRemovedEvent | MessageEntityLinkedEvent | MessageEntityUnlinkedEvent | MessageAutoReplySentEvent | ThreadMovedToInboxEvent | ThreadTrashedEvent | ThreadRestoredEvent;
845
+ export interface TimelineLinkedEntity {
846
+ entity_id: string;
847
+ /**
848
+ * Entity schema slug, e.g. "opportunity"
849
+ */
850
+ schema?: string;
851
+ }
852
+ export interface UnreadCountBuckets {
853
+ /**
854
+ * example:
855
+ * 14
856
+ */
857
+ unread: number;
858
+ /**
859
+ * Organization scope only.
860
+ * example:
861
+ * 12
862
+ */
863
+ drafts?: number;
864
+ /**
865
+ * Organization scope only.
866
+ * example:
867
+ * 1
868
+ */
869
+ unassigned?: number;
870
+ /**
871
+ * Organization scope only.
872
+ * example:
873
+ * 3
874
+ */
875
+ spam?: number;
876
+ }
877
+ export interface UnreadCountScope {
878
+ /**
879
+ * Caller-chosen key for this scope. Echoed back as the key in `counts`, so it is how the
880
+ * caller matches a number to the sidebar row it belongs to. Must be unique within the
881
+ * request; duplicates are refused rather than silently collapsed.
882
+ *
883
+ * example:
884
+ * inbox-support
885
+ */
886
+ name: string;
887
+ /**
888
+ * Decides which buckets come back, and whether `q` is required. `organization` returns all
889
+ * four buckets from the canonical central-inbox queries and takes no `q`. `shared_inbox`
890
+ * and `saved_view` return `unread` alone and require the `q` their list uses.
891
+ *
892
+ * A `shared_inbox` scope additionally requires `actor: organization` and is refused with a
893
+ * 400 otherwise. A shared inbox is an organization-level construct — selecting one always
894
+ * switches the mailbox to the organization — so it has no per-user read state and the
895
+ * combination would compute a number no surface renders. `saved_view` accepts either actor,
896
+ * because a view's own configuration names its mailbox.
897
+ *
898
+ */
899
+ type: "organization" | "shared_inbox" | "saved_view";
900
+ /**
901
+ * The scope's own list predicate, in Lucene syntax, exactly as the caller passes it to
902
+ * `threads:search`. Required for `shared_inbox` and `saved_view`, rejected for
903
+ * `organization`. The server ANDs the read-state condition onto it and nothing else, which
904
+ * is what makes the count and the list agree. Until the predicate definition moves
905
+ * server-side, this is the caller's authored copy.
906
+ *
907
+ * example:
908
+ * _tags.keyword:inbox AND !_tags.keyword:trash
909
+ */
910
+ q?: string;
911
+ /**
912
+ * Shared inbox ids, resolved to bucket ids the same way `threads:search` resolves them.
913
+ */
914
+ inbox_id?: /* Shared inbox ids, resolved to bucket ids the same way `threads:search` resolves them. */ string | string[];
915
+ }
916
+ export interface UnreadCountsPayload {
917
+ /**
918
+ * Which read state to count against — the org's or the calling user's. Same meaning as
919
+ * `getUnread`'s path parameter, and unrelated to a scope's `type`.
920
+ *
921
+ */
922
+ actor: "organization" | "user";
923
+ /**
924
+ * Restrict every scope to messages involving these addresses.
925
+ */
926
+ email_filter?: string[];
927
+ scopes: [
928
+ UnreadCountScope,
929
+ UnreadCountScope?,
930
+ UnreadCountScope?,
931
+ UnreadCountScope?,
932
+ UnreadCountScope?,
933
+ UnreadCountScope?,
934
+ UnreadCountScope?,
935
+ UnreadCountScope?,
936
+ UnreadCountScope?,
937
+ UnreadCountScope?,
938
+ UnreadCountScope?,
939
+ UnreadCountScope?,
940
+ UnreadCountScope?,
941
+ UnreadCountScope?,
942
+ UnreadCountScope?,
943
+ UnreadCountScope?,
944
+ UnreadCountScope?,
945
+ UnreadCountScope?,
946
+ UnreadCountScope?,
947
+ UnreadCountScope?,
948
+ UnreadCountScope?,
949
+ UnreadCountScope?,
950
+ UnreadCountScope?,
951
+ UnreadCountScope?,
952
+ UnreadCountScope?
953
+ ];
954
+ }
955
+ export interface UnreadCountsResult {
956
+ /**
957
+ * False when the `message-unread-counts` flag is off for the calling org, in which case
958
+ * `counts` is empty and no Elasticsearch work was done. Callers render no badges rather
959
+ * than rendering zeroes.
960
+ *
961
+ * example:
962
+ * true
963
+ */
964
+ enabled: boolean;
965
+ /**
966
+ * One entry per scope, keyed by the scope's `name`. A scope whose predicate could not be
967
+ * built is **absent** rather than zero, because a zero badge is a claim about the mailbox
968
+ * and an absent one is a claim about the request.
969
+ *
970
+ */
971
+ counts: {
972
+ [name: string]: UnreadCountBuckets;
973
+ };
974
+ /**
975
+ * Names of scopes that were accepted but could not be counted — today, a shared inbox whose
976
+ * ids matched no bucket in this org. Listed explicitly so a caller can tell an omission apart
977
+ * from a mis-spelled scope name, both of which are otherwise just a missing key in `counts`.
978
+ *
979
+ */
980
+ omitted?: string[];
981
+ }
982
+ export interface WorkflowStartedEvent {
983
+ type: "WORKFLOW_STARTED";
984
+ /**
985
+ * ID of the workflow/flow execution that was started
986
+ */
987
+ workflow_id?: string;
988
+ /**
989
+ * Name of the workflow that was started
990
+ */
991
+ workflow_name?: string;
750
992
  }
751
- export type TimelineEventData = ThreadDoneEvent | ThreadOpenEvent;
752
993
  }
753
994
  }
754
995
  declare namespace Paths {
@@ -1469,6 +1710,16 @@ declare namespace Paths {
1469
1710
  }
1470
1711
  }
1471
1712
  }
1713
+ namespace GetUnreadCounts {
1714
+ export type RequestBody = Components.Schemas.UnreadCountsPayload;
1715
+ namespace Responses {
1716
+ export type $200 = Components.Schemas.UnreadCountsResult;
1717
+ export interface $400 {
1718
+ }
1719
+ export interface $403 {
1720
+ }
1721
+ }
1722
+ }
1472
1723
  namespace MarkReadMessage {
1473
1724
  namespace Parameters {
1474
1725
  export type Id = string;
@@ -2973,6 +3224,35 @@ interface OperationMethods {
2973
3224
  data?: any,
2974
3225
  config?: AxiosRequestConfig
2975
3226
  ): OperationResponse<Paths.GetUnread.Responses.$200>
3227
+ /**
3228
+ * getUnreadCounts - getUnreadCounts
3229
+ *
3230
+ * Unread counts for several named scopes in one request.
3231
+ *
3232
+ * A scope is a name plus the same parameters the thread list already takes (`q`, `inbox_id`),
3233
+ * so a scope's count and the list beneath it are the same predicate and agree by construction.
3234
+ * The server adds only the read-state condition; it does not re-author the caller's view.
3235
+ *
3236
+ * The `organization` scope is the exception and takes no `q`: it reuses the four canonical
3237
+ * central-inbox queries, so its numbers match `getUnread` exactly.
3238
+ *
3239
+ * Buckets are not symmetric, across scope types or across actors. Every scope other than
3240
+ * `organization` returns `unread` alone. The `organization` scope returns all four
3241
+ * (`unread`, `drafts`, `unassigned`, `spam`) for `actor: organization`, and only `unread` and
3242
+ * `drafts` for `actor: user` — the agent sidebar has no Spam or Unlinked folder, so those two
3243
+ * numbers have nowhere to render and each one costs a cardinality aggregation. This is a
3244
+ * deliberate divergence from `getUnread`, which computes all four for both actors.
3245
+ *
3246
+ * Gated on the `message-unread-counts` flag, evaluated once per request against the calling
3247
+ * org. With the flag off the response is `{ "enabled": false, "counts": {} }` and no
3248
+ * Elasticsearch query is issued.
3249
+ *
3250
+ */
3251
+ 'getUnreadCounts'(
3252
+ parameters?: Parameters<UnknownParamsObject> | null,
3253
+ data?: Paths.GetUnreadCounts.RequestBody,
3254
+ config?: AxiosRequestConfig
3255
+ ): OperationResponse<Paths.GetUnreadCounts.Responses.$200>
2976
3256
  /**
2977
3257
  * markUnreadMessageV2 - markUnreadMessageV2
2978
3258
  *
@@ -3565,6 +3845,37 @@ interface PathsDictionary {
3565
3845
  config?: AxiosRequestConfig
3566
3846
  ): OperationResponse<Paths.GetUnread.Responses.$200>
3567
3847
  }
3848
+ ['/v1/message/unread:counts']: {
3849
+ /**
3850
+ * getUnreadCounts - getUnreadCounts
3851
+ *
3852
+ * Unread counts for several named scopes in one request.
3853
+ *
3854
+ * A scope is a name plus the same parameters the thread list already takes (`q`, `inbox_id`),
3855
+ * so a scope's count and the list beneath it are the same predicate and agree by construction.
3856
+ * The server adds only the read-state condition; it does not re-author the caller's view.
3857
+ *
3858
+ * The `organization` scope is the exception and takes no `q`: it reuses the four canonical
3859
+ * central-inbox queries, so its numbers match `getUnread` exactly.
3860
+ *
3861
+ * Buckets are not symmetric, across scope types or across actors. Every scope other than
3862
+ * `organization` returns `unread` alone. The `organization` scope returns all four
3863
+ * (`unread`, `drafts`, `unassigned`, `spam`) for `actor: organization`, and only `unread` and
3864
+ * `drafts` for `actor: user` — the agent sidebar has no Spam or Unlinked folder, so those two
3865
+ * numbers have nowhere to render and each one costs a cardinality aggregation. This is a
3866
+ * deliberate divergence from `getUnread`, which computes all four for both actors.
3867
+ *
3868
+ * Gated on the `message-unread-counts` flag, evaluated once per request against the calling
3869
+ * org. With the flag off the response is `{ "enabled": false, "counts": {} }` and no
3870
+ * Elasticsearch query is issued.
3871
+ *
3872
+ */
3873
+ 'post'(
3874
+ parameters?: Parameters<UnknownParamsObject> | null,
3875
+ data?: Paths.GetUnreadCounts.RequestBody,
3876
+ config?: AxiosRequestConfig
3877
+ ): OperationResponse<Paths.GetUnreadCounts.Responses.$200>
3878
+ }
3568
3879
  ['/v2/message/messages/{id}/unread']: {
3569
3880
  /**
3570
3881
  * markUnreadMessageV2 - markUnreadMessageV2
@@ -4109,6 +4420,11 @@ type ErrorResponse = Components.Schemas.ErrorResponse;
4109
4420
  type FieldsParam = Components.Schemas.FieldsParam;
4110
4421
  type File = Components.Schemas.File;
4111
4422
  type Message = Components.Schemas.Message;
4423
+ type MessageAutoReplySentEvent = Components.Schemas.MessageAutoReplySentEvent;
4424
+ type MessageEntityLinkedEvent = Components.Schemas.MessageEntityLinkedEvent;
4425
+ type MessageEntityUnlinkedEvent = Components.Schemas.MessageEntityUnlinkedEvent;
4426
+ type MessageLabelAddedEvent = Components.Schemas.MessageLabelAddedEvent;
4427
+ type MessageLabelRemovedEvent = Components.Schemas.MessageLabelRemovedEvent;
4112
4428
  type MessageRequestParams = Components.Schemas.MessageRequestParams;
4113
4429
  type MessageV2 = Components.Schemas.MessageV2;
4114
4430
  type MoveThreadPayload = Components.Schemas.MoveThreadPayload;
@@ -4119,9 +4435,20 @@ type SearchParams = Components.Schemas.SearchParams;
4119
4435
  type SearchParamsV2 = Components.Schemas.SearchParamsV2;
4120
4436
  type Thread = Components.Schemas.Thread;
4121
4437
  type ThreadDoneEvent = Components.Schemas.ThreadDoneEvent;
4438
+ type ThreadMovedToInboxEvent = Components.Schemas.ThreadMovedToInboxEvent;
4122
4439
  type ThreadOpenEvent = Components.Schemas.ThreadOpenEvent;
4440
+ type ThreadRestoredEvent = Components.Schemas.ThreadRestoredEvent;
4123
4441
  type ThreadTimeline = Components.Schemas.ThreadTimeline;
4442
+ type ThreadTrashedEvent = Components.Schemas.ThreadTrashedEvent;
4443
+ type ThreadUserAssignedEvent = Components.Schemas.ThreadUserAssignedEvent;
4444
+ type TimelineActor = Components.Schemas.TimelineActor;
4124
4445
  type TimelineEvent = Components.Schemas.TimelineEvent;
4125
4446
  type TimelineEventData = Components.Schemas.TimelineEventData;
4447
+ type TimelineLinkedEntity = Components.Schemas.TimelineLinkedEntity;
4448
+ type UnreadCountBuckets = Components.Schemas.UnreadCountBuckets;
4449
+ type UnreadCountScope = Components.Schemas.UnreadCountScope;
4450
+ type UnreadCountsPayload = Components.Schemas.UnreadCountsPayload;
4451
+ type UnreadCountsResult = Components.Schemas.UnreadCountsResult;
4452
+ type WorkflowStartedEvent = Components.Schemas.WorkflowStartedEvent;
4126
4453
 
4127
- export { type Address as A, type BaseEntity as B, type Client as C, type ErrorResponse as E, type FieldsParam as F, type Message as M, type OperationMethods as O, Paths as P, type ReadMessagePayload as R, type SearchIDParams as S, type Thread as T, Components as a, type PathsDictionary as b, type AssigneeWorkload as c, type AssigneeWorkloadParams as d, type AssigneeWorkloadResults as e, type AttachmentsRelation as f, type BulkActionsPayload as g, type BulkActionsPayloadWithScopes as h, type File as i, type MessageRequestParams as j, type MessageV2 as k, type MoveThreadPayload as l, type ReadingScope as m, type SearchParams as n, type SearchParamsV2 as o, type ThreadDoneEvent as p, type ThreadOpenEvent as q, type ThreadTimeline as r, type TimelineEvent as s, type TimelineEventData as t };
4454
+ export { type Address as A, type BaseEntity as B, type Client as C, type ThreadUserAssignedEvent as D, type ErrorResponse as E, type FieldsParam as F, type TimelineActor as G, type TimelineEvent as H, type TimelineEventData as I, type TimelineLinkedEntity as J, type UnreadCountScope as K, type UnreadCountsPayload as L, type Message as M, type UnreadCountsResult as N, type OperationMethods as O, Paths as P, type ReadMessagePayload as R, type SearchIDParams as S, type Thread as T, type UnreadCountBuckets as U, type WorkflowStartedEvent as W, Components as a, type PathsDictionary as b, type AssigneeWorkload as c, type AssigneeWorkloadParams as d, type AssigneeWorkloadResults as e, type AttachmentsRelation as f, type BulkActionsPayload as g, type BulkActionsPayloadWithScopes as h, type File as i, type MessageAutoReplySentEvent as j, type MessageEntityLinkedEvent as k, type MessageEntityUnlinkedEvent as l, type MessageLabelAddedEvent as m, type MessageLabelRemovedEvent as n, type MessageRequestParams as o, type MessageV2 as p, type MoveThreadPayload as q, type ReadingScope as r, type SearchParams as s, type SearchParamsV2 as t, type ThreadDoneEvent as u, type ThreadMovedToInboxEvent as v, type ThreadOpenEvent as w, type ThreadRestoredEvent as x, type ThreadTimeline as y, type ThreadTrashedEvent as z };
package/docs/calendar.md CHANGED
@@ -901,7 +901,7 @@ const { data } = await client.getCalendar({
901
901
 
902
902
  ### `updateCalendar`
903
903
 
904
- Update fields on a calendar.
904
+ Update local calendar details. Changes to synced calendars do not modify the provider calendar.
905
905
 
906
906
  `PATCH /v1/calendar/{calendar_id}`
907
907
 
@@ -950,7 +950,7 @@ const { data } = await client.updateCalendar(
950
950
 
951
951
  ### `deleteCalendar`
952
952
 
953
- Delete a native epilot calendar and its events.
953
+ Delete a native epilot calendar or disconnect a synced calendar, including its locally stored events.
954
954
 
955
955
  `DELETE /v1/calendar/{calendar_id}`
956
956
 
@@ -1001,6 +1001,7 @@ const { data } = await client.listEvents({
1001
1001
  "status": "free",
1002
1002
  "busy": true,
1003
1003
  "is_cancelled": true,
1004
+ "is_draft": true,
1004
1005
  "sensitivity": "normal",
1005
1006
  "importance": "low",
1006
1007
  "is_online_meeting": true,
@@ -1016,6 +1017,7 @@ const { data } = await client.listEvents({
1016
1017
  "type": "required"
1017
1018
  }
1018
1019
  ],
1020
+ "metadata": {},
1019
1021
  "is_recurring": true,
1020
1022
  "series_master_id": "string",
1021
1023
  "source": {
@@ -1057,6 +1059,7 @@ const { data } = await client.createEvent(
1057
1059
  location: 'string',
1058
1060
  status: 'free',
1059
1061
  sensitivity: 'normal',
1062
+ metadata: {},
1060
1063
  _title: 'string'
1061
1064
  },
1062
1065
  )
@@ -1083,6 +1086,7 @@ const { data } = await client.createEvent(
1083
1086
  "status": "free",
1084
1087
  "busy": true,
1085
1088
  "is_cancelled": true,
1089
+ "is_draft": true,
1086
1090
  "sensitivity": "normal",
1087
1091
  "importance": "low",
1088
1092
  "is_online_meeting": true,
@@ -1098,6 +1102,7 @@ const { data } = await client.createEvent(
1098
1102
  "type": "required"
1099
1103
  }
1100
1104
  ],
1105
+ "metadata": {},
1101
1106
  "is_recurring": true,
1102
1107
  "series_master_id": "string",
1103
1108
  "source": {
@@ -1150,6 +1155,7 @@ const { data } = await client.getEvent({
1150
1155
  "status": "free",
1151
1156
  "busy": true,
1152
1157
  "is_cancelled": true,
1158
+ "is_draft": true,
1153
1159
  "sensitivity": "normal",
1154
1160
  "importance": "low",
1155
1161
  "is_online_meeting": true,
@@ -1165,6 +1171,7 @@ const { data } = await client.getEvent({
1165
1171
  "type": "required"
1166
1172
  }
1167
1173
  ],
1174
+ "metadata": {},
1168
1175
  "is_recurring": true,
1169
1176
  "series_master_id": "string",
1170
1177
  "source": {
@@ -1203,6 +1210,7 @@ const { data } = await client.updateEvent(
1203
1210
  is_all_day: true,
1204
1211
  location: 'string',
1205
1212
  status: 'free',
1213
+ is_cancelled: true,
1206
1214
  sensitivity: 'normal',
1207
1215
  _title: 'string'
1208
1216
  },
@@ -1230,6 +1238,7 @@ const { data } = await client.updateEvent(
1230
1238
  "status": "free",
1231
1239
  "busy": true,
1232
1240
  "is_cancelled": true,
1241
+ "is_draft": true,
1233
1242
  "sensitivity": "normal",
1234
1243
  "importance": "low",
1235
1244
  "is_online_meeting": true,
@@ -1245,6 +1254,7 @@ const { data } = await client.updateEvent(
1245
1254
  "type": "required"
1246
1255
  }
1247
1256
  ],
1257
+ "metadata": {},
1248
1258
  "is_recurring": true,
1249
1259
  "series_master_id": "string",
1250
1260
  "source": {
@@ -1633,6 +1643,7 @@ type CalendarEvent = {
1633
1643
  status: "free" | "tentative" | "busy" | "oof" | "workingElsewhere" | "unknown"
1634
1644
  busy: boolean
1635
1645
  is_cancelled: boolean
1646
+ is_draft: boolean
1636
1647
  sensitivity: "normal" | "personal" | "private" | "confidential"
1637
1648
  importance: "low" | "normal" | "high"
1638
1649
  is_online_meeting: boolean
@@ -1646,6 +1657,7 @@ type CalendarEvent = {
1646
1657
  response: "none" | "organizer" | "tentativelyAccepted" | "accepted" | "declined" | "notResponded"
1647
1658
  type: "required" | "optional" | "resource"
1648
1659
  }>
1660
+ metadata?: Record<string, unknown>
1649
1661
  is_recurring: boolean
1650
1662
  series_master_id?: string
1651
1663
  source: {
@@ -1732,6 +1744,7 @@ type CalendarEventCreateBody = {
1732
1744
  location?: string
1733
1745
  status: "free" | "tentative" | "busy" | "oof" | "workingElsewhere" | "unknown"
1734
1746
  sensitivity: "normal" | "personal" | "private" | "confidential"
1747
+ metadata?: Record<string, unknown>
1735
1748
  _title: string
1736
1749
  }
1737
1750
  ```
@@ -1747,6 +1760,7 @@ type CalendarEventPatchBody = {
1747
1760
  is_all_day?: boolean
1748
1761
  location?: string
1749
1762
  status?: "free" | "tentative" | "busy" | "oof" | "workingElsewhere" | "unknown"
1763
+ is_cancelled?: boolean
1750
1764
  sensitivity?: "normal" | "personal" | "private" | "confidential"
1751
1765
  _title?: string
1752
1766
  }