@macro-inc/sdk 0.2.2 → 0.4.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.
Files changed (175) hide show
  1. package/README.md +177 -3
  2. package/dist/{chunk-OGE7WXJE.js → chunk-AZJUIUIV.js} +177 -23
  3. package/dist/{chunk-PRUFPW3B.js → chunk-G43PLP2U.js} +144 -0
  4. package/dist/{chunk-7LVVPVNT.js → chunk-K4G5VO4P.js} +76 -1
  5. package/dist/{chunk-PAAFJYGO.js → chunk-PPR7IWZ7.js} +77 -51
  6. package/dist/{chunk-QVBNNMQS.js → chunk-PTX2RV2N.js} +169 -20
  7. package/dist/{chunk-SUINKDXF.js → chunk-PZPTJI6F.js} +42 -0
  8. package/dist/{chunk-7YJ6Y7HJ.js → chunk-XFA7NCJ5.js} +207 -0
  9. package/dist/{chunk-ZQXOHNDB.js → chunk-ZLBDES7U.js} +789 -12
  10. package/dist/generated/agent-fold/index.d.ts +4332 -0
  11. package/dist/generated/agent-fold/index.js +0 -0
  12. package/dist/generated/agent-harness/index.d.ts +1 -1
  13. package/dist/generated/agent-harness/index.js +1 -1
  14. package/dist/generated/agent-harness/sdk.gen.d.ts +83 -9
  15. package/dist/generated/agent-harness/types.gen.d.ts +1504 -160
  16. package/dist/generated/agent-reviews/index.d.ts +893 -0
  17. package/dist/generated/agent-reviews/index.js +0 -0
  18. package/dist/generated/auth/index.d.ts +1 -1
  19. package/dist/generated/auth/index.js +1 -1
  20. package/dist/generated/auth/sdk.gen.d.ts +108 -2
  21. package/dist/generated/auth/types.gen.d.ts +799 -6
  22. package/dist/generated/calendar/index.d.ts +1 -1
  23. package/dist/generated/calendar/index.js +1 -1
  24. package/dist/generated/calendar/sdk.gen.d.ts +63 -1
  25. package/dist/generated/calendar/types.gen.d.ts +1234 -5
  26. package/dist/generated/cognition/index.d.ts +1 -1
  27. package/dist/generated/cognition/index.js +1 -1
  28. package/dist/generated/cognition/sdk.gen.d.ts +85 -20
  29. package/dist/generated/cognition/types.gen.d.ts +1040 -121
  30. package/dist/generated/connection/index.d.ts +1 -1
  31. package/dist/generated/connection/index.js +15 -0
  32. package/dist/generated/connection/sdk.gen.d.ts +6 -1
  33. package/dist/generated/connection/types.gen.d.ts +18 -1
  34. package/dist/generated/email/index.d.ts +1 -1
  35. package/dist/generated/email/index.js +1 -1
  36. package/dist/generated/email/sdk.gen.d.ts +44 -2
  37. package/dist/generated/email/types.gen.d.ts +475 -10
  38. package/dist/generated/notification/index.d.ts +1 -1
  39. package/dist/generated/notification/index.js +1 -1
  40. package/dist/generated/notification/sdk.gen.d.ts +29 -21
  41. package/dist/generated/notification/types.gen.d.ts +267 -73
  42. package/dist/generated/properties/index.d.ts +1 -1
  43. package/dist/generated/properties/types.gen.d.ts +21 -1
  44. package/dist/generated/scheduled-action/index.d.ts +1 -1
  45. package/dist/generated/scheduled-action/index.js +1 -1
  46. package/dist/generated/scheduled-action/sdk.gen.d.ts +8 -1
  47. package/dist/generated/scheduled-action/types.gen.d.ts +669 -19
  48. package/dist/generated/search/index.d.ts +1 -1
  49. package/dist/generated/search/types.gen.d.ts +87 -7
  50. package/dist/generated/static-files/types.gen.d.ts +6 -0
  51. package/dist/generated/storage/index.d.ts +1 -1
  52. package/dist/generated/storage/index.js +1 -1
  53. package/dist/generated/storage/sdk.gen.d.ts +376 -13
  54. package/dist/generated/storage/types.gen.d.ts +12038 -5562
  55. package/dist/src/entities/account-managers/grant.d.ts +39 -0
  56. package/dist/src/entities/account-managers/namespace.d.ts +17 -0
  57. package/dist/src/entities/agent-sessions/activity.d.ts +39 -0
  58. package/dist/src/entities/agent-sessions/agent-session.d.ts +148 -6
  59. package/dist/src/entities/agent-sessions/code-execution.d.ts +5 -0
  60. package/dist/src/entities/agent-sessions/namespace.d.ts +54 -4
  61. package/dist/src/entities/agent-sessions/origin.d.ts +94 -0
  62. package/dist/src/entities/agent-sessions/review.d.ts +18 -62
  63. package/dist/src/entities/agent-sessions/view.d.ts +11 -0
  64. package/dist/src/entities/agents/namespace.d.ts +11 -2
  65. package/dist/src/entities/ai/namespace.d.ts +5 -1
  66. package/dist/src/entities/api-keys/namespace.d.ts +5 -1
  67. package/dist/src/entities/bots/bot.d.ts +108 -0
  68. package/dist/src/entities/bots/namespace.d.ts +17 -4
  69. package/dist/src/entities/bots/token.d.ts +34 -0
  70. package/dist/src/entities/calendar/booking-link.d.ts +49 -0
  71. package/dist/src/entities/calendar/booking-namespace.d.ts +130 -0
  72. package/dist/src/entities/calendar/booking-namespace.test.d.ts +1 -0
  73. package/dist/src/entities/calendar/booking.d.ts +77 -0
  74. package/dist/src/entities/calendar/calendar.d.ts +11 -4
  75. package/dist/src/entities/calendar/create-confirmed.test.d.ts +1 -0
  76. package/dist/src/entities/calendar/event.d.ts +104 -3
  77. package/dist/src/entities/calendar/namespace.d.ts +151 -7
  78. package/dist/src/entities/calendar/namespace.test.d.ts +1 -0
  79. package/dist/src/entities/calls/call-record.d.ts +34 -4
  80. package/dist/src/entities/calls/connection.d.ts +53 -0
  81. package/dist/src/entities/calls/errors.d.ts +15 -0
  82. package/dist/src/entities/calls/namespace.d.ts +21 -1
  83. package/dist/src/entities/calls/participant.d.ts +22 -0
  84. package/dist/src/entities/channels/access-request.d.ts +34 -0
  85. package/dist/src/entities/channels/channel.d.ts +47 -1
  86. package/dist/src/entities/channels/namespace.d.ts +21 -5
  87. package/dist/src/entities/channels/namespace.test.d.ts +1 -0
  88. package/dist/src/entities/channels/post.d.ts +14 -3
  89. package/dist/src/entities/channels/thread.d.ts +10 -1
  90. package/dist/src/entities/chats/chat.d.ts +7 -1
  91. package/dist/src/entities/chats/namespace.d.ts +14 -1
  92. package/dist/src/entities/connected-apps/connected-app.d.ts +107 -0
  93. package/dist/src/entities/connected-apps/connector.d.ts +56 -0
  94. package/dist/src/entities/connected-apps/namespace.d.ts +74 -0
  95. package/dist/src/entities/crm/company.d.ts +7 -3
  96. package/dist/src/entities/crm/contact.d.ts +4 -4
  97. package/dist/src/entities/crm/namespace.d.ts +34 -1
  98. package/dist/src/entities/crm/pipeline.d.ts +43 -2
  99. package/dist/src/entities/databases/database.d.ts +17 -0
  100. package/dist/src/entities/databases/namespace.d.ts +56 -0
  101. package/dist/src/entities/documents/ai-edit.d.ts +52 -0
  102. package/dist/src/entities/documents/document.d.ts +244 -5
  103. package/dist/src/entities/documents/namespace.d.ts +89 -4
  104. package/dist/src/entities/documents/office-files.d.ts +47 -0
  105. package/dist/src/entities/email/draft.d.ts +36 -7
  106. package/dist/src/entities/email/message.d.ts +99 -3
  107. package/dist/src/entities/email/namespace.d.ts +47 -4
  108. package/dist/src/entities/email/namespace.test.d.ts +1 -0
  109. package/dist/src/entities/email/thread.d.ts +55 -3
  110. package/dist/src/entities/entity-mentions/namespace.d.ts +5 -1
  111. package/dist/src/entities/external-chat/chat.d.ts +105 -0
  112. package/dist/src/entities/external-chat/message.d.ts +54 -0
  113. package/dist/src/entities/external-chat/namespace.d.ts +18 -0
  114. package/dist/src/entities/external-chat/participant.d.ts +28 -0
  115. package/dist/src/entities/external-chat/send.d.ts +32 -0
  116. package/dist/src/entities/external-chat/upload.d.ts +25 -0
  117. package/dist/src/entities/favorites/namespace.d.ts +5 -1
  118. package/dist/src/entities/foreign/namespace.d.ts +3 -0
  119. package/dist/src/entities/forms/form.d.ts +17 -2
  120. package/dist/src/entities/forms/namespace.d.ts +5 -1
  121. package/dist/src/entities/github-pull-requests/namespace.d.ts +5 -1
  122. package/dist/src/entities/harnesses/harness.d.ts +9 -0
  123. package/dist/src/entities/harnesses/namespace.d.ts +5 -1
  124. package/dist/src/entities/images/image.d.ts +77 -0
  125. package/dist/src/entities/images/namespace.d.ts +48 -0
  126. package/dist/src/entities/images/namespace.test.d.ts +1 -0
  127. package/dist/src/entities/initiatives/initiative.d.ts +12 -1
  128. package/dist/src/entities/initiatives/namespace.d.ts +15 -2
  129. package/dist/src/entities/me/namespace.d.ts +43 -0
  130. package/dist/src/entities/meetings/meeting.d.ts +5 -0
  131. package/dist/src/entities/meetings/namespace.d.ts +5 -1
  132. package/dist/src/entities/messages/thread.d.ts +1 -1
  133. package/dist/src/entities/notifications/namespace.d.ts +3 -0
  134. package/dist/src/entities/pins/namespace.d.ts +5 -1
  135. package/dist/src/entities/projects/namespace.d.ts +4 -1
  136. package/dist/src/entities/projects/project.d.ts +9 -1
  137. package/dist/src/entities/properties/namespace.d.ts +2 -0
  138. package/dist/src/entities/referrals/namespace.d.ts +33 -0
  139. package/dist/src/entities/routines/namespace.d.ts +42 -2
  140. package/dist/src/entities/routines/routine.d.ts +84 -5
  141. package/dist/src/entities/search/namespace.d.ts +65 -0
  142. package/dist/src/entities/{search.d.ts → search/options.d.ts} +8 -2
  143. package/dist/src/entities/search/types.d.ts +90 -0
  144. package/dist/src/entities/sharing/access.d.ts +14 -0
  145. package/dist/src/entities/tasks/namespace.d.ts +42 -3
  146. package/dist/src/entities/tasks/task.d.ts +47 -6
  147. package/dist/src/entities/teams/invite.d.ts +30 -0
  148. package/dist/src/entities/teams/namespace.d.ts +3 -0
  149. package/dist/src/entities/teams/team.d.ts +37 -0
  150. package/dist/src/entities/unfurls/namespace.d.ts +5 -1
  151. package/dist/src/entities/users/namespace.d.ts +9 -0
  152. package/dist/src/entities/users/user.d.ts +8 -0
  153. package/dist/src/entities/web/namespace.d.ts +61 -0
  154. package/dist/src/entities/web/namespace.test.d.ts +1 -0
  155. package/dist/src/entities/webhooks/namespace.d.ts +2 -0
  156. package/dist/src/entities/whatsapp/account.d.ts +20 -0
  157. package/dist/src/entities/whatsapp/chat.d.ts +54 -0
  158. package/dist/src/entities/whatsapp/namespace.d.ts +23 -0
  159. package/dist/src/entities/workspace/items.d.ts +7 -0
  160. package/dist/src/entities/workspace/namespace.d.ts +14 -9
  161. package/dist/src/entities/workspace/query.d.ts +23 -0
  162. package/dist/src/entities/workspace/types.d.ts +6 -3
  163. package/dist/src/events/hydrate/agentSession.d.ts +1 -1
  164. package/dist/src/events/hydrate/call.d.ts +101 -0
  165. package/dist/src/events/hydrate/channel.d.ts +8 -1
  166. package/dist/src/events/hydrate/document.d.ts +1 -1
  167. package/dist/src/events/hydrate/message.d.ts +1 -1
  168. package/dist/src/events/types.d.ts +2 -1
  169. package/dist/src/macro.d.ts +73 -4
  170. package/dist/src/macro.js +8235 -3701
  171. package/dist/src/mentions.d.ts +6 -1
  172. package/dist/src/utils/activity.d.ts +23 -2
  173. package/dist/src/utils/index.d.ts +1 -1
  174. package/dist/src/utils/unwrap.d.ts +27 -2
  175. package/package.json +2 -2
@@ -1,2 +1,2 @@
1
1
  export { type Options, Sdk } from './sdk.gen';
2
- export type { AgentSessionMentionedMetadata, AgentSessionNotificationRef, AgentSessionOriginParent, AgentSessionSettledMetadata, AgentSessionWaitingForInputMetadata, AiResponseMetadata, ApiUserNotification, BulkDeleteUserNotificationsV2Data, BulkDeleteUserNotificationsV2Error, BulkDeleteUserNotificationsV2Errors, BulkDeleteUserNotificationsV2Responses, BulkGetByEventItemIdsRequest, BulkGetTypedNotificationsByEventItemIdsData, BulkGetTypedNotificationsByEventItemIdsError, BulkGetTypedNotificationsByEventItemIdsErrors, BulkGetTypedNotificationsByEventItemIdsResponse, BulkGetTypedNotificationsByEventItemIdsResponses, BulkMarkNotificationsDoneData, BulkMarkNotificationsDoneError, BulkMarkNotificationsDoneErrors, BulkMarkNotificationsDoneResponses, BulkMarkNotificationsSeenData, BulkMarkNotificationsSeenError, BulkMarkNotificationsSeenErrors, BulkMarkNotificationsSeenResponses, BulkMarkNotificationsUndoneData, BulkMarkNotificationsUndoneError, BulkMarkNotificationsUndoneErrors, BulkMarkNotificationsUndoneResponses, CalendarEventReminderMetadata, CallStartedMetadata, ChannelInviteMetadata, ChannelMentionMetadata, ChannelMessageReactionMetadata, ChannelMessageSendMetadata, ChannelReplyMetadata, ChannelType, ClientOptions, CommentedOnDocumentMetadata, CommentRef, CommonChannelMetadata, ConnGatewayNotificationPayload, CreateNotification, CrmDiscussionMetadata, CrmDiscussionReason, DeleteUserNotificationV2Data, DeleteUserNotificationV2Error, DeleteUserNotificationV2Errors, DeleteUserNotificationV2Responses, DeviceRequest, DeviceType, DisableNotificationTypeData, DisableNotificationTypeError, DisableNotificationTypeErrors, DisableNotificationTypeResponses, DocumentMentionMetadata, EmptyResponse, EnableNotificationTypeData, EnableNotificationTypeError, EnableNotificationTypeErrors, EnableNotificationTypeResponses, Entity, EntityAccessGrantedMetadata, EntityAccessRequestedMetadata, EntityType, ErrorResponse, GetAllUserNotificationsResponse, GetNotificationTypePreferencesData, GetNotificationTypePreferencesError, GetNotificationTypePreferencesErrors, GetNotificationTypePreferencesResponse, GetNotificationTypePreferencesResponse2, GetNotificationTypePreferencesResponses, GetTypedNotificationByIdData, GetTypedNotificationByIdError, GetTypedNotificationByIdErrors, GetTypedNotificationByIdResponse, GetTypedNotificationByIdResponses, GetTypedNotificationsByEventItemIdData, GetTypedNotificationsByEventItemIdError, GetTypedNotificationsByEventItemIdErrors, GetTypedNotificationsByEventItemIdResponse, GetTypedNotificationsByEventItemIdResponses, GetUnsubscribesData, GetUnsubscribesError, GetUnsubscribesErrors, GetUnsubscribesResponse, GetUnsubscribesResponses, GithubPrCheckRun, GithubPrCheckRunState, GithubPrComment, GithubPrCommentKind, GithubPrEventAction, GithubPrEventStatus, GithubPrMention, GithubPrMentionLocation, GithubPrNotificationCommon, GithubPrReview, GithubPrReviewState, GithubPrStatusChanged, GithubReviewRequested, HealthHandlerData, HealthHandlerResponse, HealthHandlerResponses, InboxReauthRequiredMetadata, InitiativeDiscussionMetadata, InitiativeDiscussionReason, InviteToTeamMetadata, ItemSharedMetadata, ListTypedNotificationsData, ListTypedNotificationsError, ListTypedNotificationsErrors, ListTypedNotificationsResponse, ListTypedNotificationsResponses, MacroUserIdStr, MentionedInDocumentCommentMetadata, NewEmailMetadata, NotifEvent, NotificationBulkRequest, NotificationDocumentSubType, NotificationServiceApiVersion, NotificationState, NotificationTypeName, PushNotificationData, RealtimeNotifTaggedContentValue, ReminderMetadata, RemoveUnsubscribeAllData, RemoveUnsubscribeAllError, RemoveUnsubscribeAllErrors, RemoveUnsubscribeAllResponse, RemoveUnsubscribeAllResponses, RemoveUnsubscribeItemData, RemoveUnsubscribeItemError, RemoveUnsubscribeItemErrors, RemoveUnsubscribeItemResponse, RemoveUnsubscribeItemResponses, RepliedToDocumentCommentThreadMetadata, RequestedAccessLevel, TaskAssignedMetadata, UnsubscribeAllData, UnsubscribeAllError, UnsubscribeAllErrors, UnsubscribeAllResponse, UnsubscribeAllResponses, UnsubscribeEmailData, UnsubscribeEmailError, UnsubscribeEmailErrors, UnsubscribeEmailResponse, UnsubscribeEmailResponses, UnsubscribeItemData, UnsubscribeItemError, UnsubscribeItemErrors, UnsubscribeItemPathParams, UnsubscribeItemResponse, UnsubscribeItemResponses, UserUnsubscribe } from './types.gen';
2
+ export type { AgentSessionMentionedMetadata, AgentSessionNotificationRef, AgentSessionOriginParent, AgentSessionSettledMetadata, AgentSessionWaitingForInputMetadata, AiResponseMetadata, ApiUserNotification, BulkDeleteUserNotificationsV2Data, BulkDeleteUserNotificationsV2Error, BulkDeleteUserNotificationsV2Errors, BulkDeleteUserNotificationsV2Responses, BulkGetByEventItemIdsRequest, BulkGetTypedNotificationsByEventItemIdsData, BulkGetTypedNotificationsByEventItemIdsError, BulkGetTypedNotificationsByEventItemIdsErrors, BulkGetTypedNotificationsByEventItemIdsResponse, BulkGetTypedNotificationsByEventItemIdsResponses, BulkItem, BulkMarkNotificationsDoneData, BulkMarkNotificationsDoneError, BulkMarkNotificationsDoneErrors, BulkMarkNotificationsDoneResponses, BulkMarkNotificationsSeenData, BulkMarkNotificationsSeenError, BulkMarkNotificationsSeenErrors, BulkMarkNotificationsSeenResponses, BulkMarkNotificationsUndoneData, BulkMarkNotificationsUndoneError, BulkMarkNotificationsUndoneErrors, BulkMarkNotificationsUndoneResponses, BulkRemoveItemsRequest, BulkSetItemsRequest, CalendarEventJoinRequestMetadata, CalendarEventReminderMetadata, CallStartedMetadata, ChannelAccessRequestedMetadata, ChannelInviteMetadata, ChannelMentionMetadata, ChannelMessageReactionMetadata, ChannelMessageSendMetadata, ChannelReplyMetadata, ChannelType, ClientOptions, CommentedOnDocumentMetadata, CommentRef, CommonChannelMetadata, ConnGatewayNotificationPayload, CreateNotification, CrmDiscussionMetadata, CrmDiscussionReason, DeleteUserNotificationV2Data, DeleteUserNotificationV2Error, DeleteUserNotificationV2Errors, DeleteUserNotificationV2Responses, DeviceRequest, DeviceType, DisableNotificationTypeData, DisableNotificationTypeError, DisableNotificationTypeErrors, DisableNotificationTypeResponses, DocumentMentionMetadata, EmptyResponse, EnableNotificationTypeData, EnableNotificationTypeError, EnableNotificationTypeErrors, EnableNotificationTypeResponses, Entity, EntityAccessGrantedMetadata, EntityAccessRequestedMetadata, EntityType, ErrorResponse, ExternalChatMessageMetadata, ExternalChatProvider, GetAllUserNotificationsResponse, GetNotificationTypePreferencesData, GetNotificationTypePreferencesError, GetNotificationTypePreferencesErrors, GetNotificationTypePreferencesResponse, GetNotificationTypePreferencesResponse2, GetNotificationTypePreferencesResponses, GetTypedNotificationByIdData, GetTypedNotificationByIdError, GetTypedNotificationByIdErrors, GetTypedNotificationByIdResponse, GetTypedNotificationByIdResponses, GetTypedNotificationsByEventItemIdData, GetTypedNotificationsByEventItemIdError, GetTypedNotificationsByEventItemIdErrors, GetTypedNotificationsByEventItemIdResponse, GetTypedNotificationsByEventItemIdResponses, GetUnsubscribesData, GetUnsubscribesError, GetUnsubscribesErrors, GetUnsubscribesResponse, GetUnsubscribesResponses, GithubPrCheckRun, GithubPrCheckRunState, GithubPrComment, GithubPrCommentKind, GithubPrEventAction, GithubPrEventStatus, GithubPrMention, GithubPrMentionLocation, GithubPrNotificationCommon, GithubPrReview, GithubPrReviewState, GithubPrStatusChanged, GithubReviewRequested, HealthHandlerData, HealthHandlerResponse, HealthHandlerResponses, InboxReauthRequiredMetadata, InitiativeDiscussionMetadata, InitiativeDiscussionReason, InviteePlan, InviteToTeamMetadata, ItemSharedMetadata, ListTypedNotificationsData, ListTypedNotificationsError, ListTypedNotificationsErrors, ListTypedNotificationsResponse, ListTypedNotificationsResponses, MacroUserIdStr, MentionedInDocumentCommentMetadata, NewEmailMetadata, NotifEvent, NotificationBulkRequest, NotificationDocumentSubType, NotificationServiceApiVersion, NotificationState, NotificationTypeName, PushNotificationData, PushNotificationNavigation, RealtimeNotifTaggedContentValue, ReminderMetadata, RemoveUnsubscribeAllData, RemoveUnsubscribeAllError, RemoveUnsubscribeAllErrors, RemoveUnsubscribeAllResponse, RemoveUnsubscribeAllResponses, RemoveUnsubscribeItemData, RemoveUnsubscribeItemError, RemoveUnsubscribeItemErrors, RemoveUnsubscribeItemResponse, RemoveUnsubscribeItemResponses, RemoveUnsubscribeItemsData, RemoveUnsubscribeItemsError, RemoveUnsubscribeItemsErrors, RemoveUnsubscribeItemsResponse, RemoveUnsubscribeItemsResponses, RepliedToDocumentCommentThreadMetadata, RequestedAccessLevel, RoutineRunFinishedMetadata, RoutineRunOutcome, TaskAssignedMetadata, UnsubscribeAllData, UnsubscribeAllError, UnsubscribeAllErrors, UnsubscribeAllResponse, UnsubscribeAllResponses, UnsubscribeEmailData, UnsubscribeEmailError, UnsubscribeEmailErrors, UnsubscribeEmailResponse, UnsubscribeEmailResponses, UnsubscribeItemData, UnsubscribeItemError, UnsubscribeItemErrors, UnsubscribeItemPathParams, UnsubscribeItemResponse, UnsubscribeItemResponses, UnsubscribeItemsData, UnsubscribeItemsError, UnsubscribeItemsErrors, UnsubscribeItemsResponse, UnsubscribeItemsResponses, UserUnsubscribe } from './types.gen';
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Sdk
3
- } from "../../chunk-PAAFJYGO.js";
3
+ } from "../../chunk-PPR7IWZ7.js";
4
4
  export {
5
5
  Sdk
6
6
  };
@@ -1,5 +1,5 @@
1
1
  import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from './client';
2
- import type { BulkDeleteUserNotificationsV2Data, BulkDeleteUserNotificationsV2Errors, BulkDeleteUserNotificationsV2Responses, BulkGetTypedNotificationsByEventItemIdsData, BulkGetTypedNotificationsByEventItemIdsErrors, BulkGetTypedNotificationsByEventItemIdsResponses, BulkMarkNotificationsDoneData, BulkMarkNotificationsDoneErrors, BulkMarkNotificationsDoneResponses, BulkMarkNotificationsSeenData, BulkMarkNotificationsSeenErrors, BulkMarkNotificationsSeenResponses, BulkMarkNotificationsUndoneData, BulkMarkNotificationsUndoneErrors, BulkMarkNotificationsUndoneResponses, DeleteUserNotificationV2Data, DeleteUserNotificationV2Errors, DeleteUserNotificationV2Responses, DisableNotificationTypeData, DisableNotificationTypeErrors, DisableNotificationTypeResponses, EnableNotificationTypeData, EnableNotificationTypeErrors, EnableNotificationTypeResponses, GetNotificationTypePreferencesData, GetNotificationTypePreferencesErrors, GetNotificationTypePreferencesResponses, GetTypedNotificationByIdData, GetTypedNotificationByIdErrors, GetTypedNotificationByIdResponses, GetTypedNotificationsByEventItemIdData, GetTypedNotificationsByEventItemIdErrors, GetTypedNotificationsByEventItemIdResponses, GetUnsubscribesData, GetUnsubscribesErrors, GetUnsubscribesResponses, HealthHandlerData, HealthHandlerResponses, ListTypedNotificationsData, ListTypedNotificationsErrors, ListTypedNotificationsResponses, RemoveUnsubscribeAllData, RemoveUnsubscribeAllErrors, RemoveUnsubscribeAllResponses, RemoveUnsubscribeItemData, RemoveUnsubscribeItemErrors, RemoveUnsubscribeItemResponses, UnsubscribeAllData, UnsubscribeAllErrors, UnsubscribeAllResponses, UnsubscribeEmailData, UnsubscribeEmailErrors, UnsubscribeEmailResponses, UnsubscribeItemData, UnsubscribeItemErrors, UnsubscribeItemResponses } from './types.gen';
2
+ import type { BulkDeleteUserNotificationsV2Data, BulkDeleteUserNotificationsV2Errors, BulkDeleteUserNotificationsV2Responses, BulkGetTypedNotificationsByEventItemIdsData, BulkGetTypedNotificationsByEventItemIdsErrors, BulkGetTypedNotificationsByEventItemIdsResponses, BulkMarkNotificationsDoneData, BulkMarkNotificationsDoneErrors, BulkMarkNotificationsDoneResponses, BulkMarkNotificationsSeenData, BulkMarkNotificationsSeenErrors, BulkMarkNotificationsSeenResponses, BulkMarkNotificationsUndoneData, BulkMarkNotificationsUndoneErrors, BulkMarkNotificationsUndoneResponses, DeleteUserNotificationV2Data, DeleteUserNotificationV2Errors, DeleteUserNotificationV2Responses, DisableNotificationTypeData, DisableNotificationTypeErrors, DisableNotificationTypeResponses, EnableNotificationTypeData, EnableNotificationTypeErrors, EnableNotificationTypeResponses, GetNotificationTypePreferencesData, GetNotificationTypePreferencesErrors, GetNotificationTypePreferencesResponses, GetTypedNotificationByIdData, GetTypedNotificationByIdErrors, GetTypedNotificationByIdResponses, GetTypedNotificationsByEventItemIdData, GetTypedNotificationsByEventItemIdErrors, GetTypedNotificationsByEventItemIdResponses, GetUnsubscribesData, GetUnsubscribesErrors, GetUnsubscribesResponses, HealthHandlerData, HealthHandlerResponses, ListTypedNotificationsData, ListTypedNotificationsErrors, ListTypedNotificationsResponses, RemoveUnsubscribeAllData, RemoveUnsubscribeAllErrors, RemoveUnsubscribeAllResponses, RemoveUnsubscribeItemData, RemoveUnsubscribeItemErrors, RemoveUnsubscribeItemResponses, RemoveUnsubscribeItemsData, RemoveUnsubscribeItemsErrors, RemoveUnsubscribeItemsResponses, UnsubscribeAllData, UnsubscribeAllErrors, UnsubscribeAllResponses, UnsubscribeEmailData, UnsubscribeEmailErrors, UnsubscribeEmailResponses, UnsubscribeItemData, UnsubscribeItemErrors, UnsubscribeItemResponses, UnsubscribeItemsData, UnsubscribeItemsErrors, UnsubscribeItemsResponses } from './types.gen';
3
3
  export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
4
4
  /**
5
5
  * You can provide a client instance returned by `createClient()` instead of
@@ -51,6 +51,14 @@ export declare class Sdk extends HeyApiClient {
51
51
  * Unsubscribes a user from a given item for notifications.
52
52
  */
53
53
  unsubscribeItem<ThrowOnError extends boolean = false>(options: Options<UnsubscribeItemData, ThrowOnError>): RequestResult<UnsubscribeItemResponses, UnsubscribeItemErrors, ThrowOnError>;
54
+ /**
55
+ * Atomically resume delivery for the authenticated user's items.
56
+ */
57
+ removeUnsubscribeItems<ThrowOnError extends boolean = false>(options: Options<RemoveUnsubscribeItemsData, ThrowOnError>): RequestResult<RemoveUnsubscribeItemsResponses, RemoveUnsubscribeItemsErrors, ThrowOnError>;
58
+ /**
59
+ * Atomically mute or snooze items for the authenticated user.
60
+ */
61
+ unsubscribeItems<ThrowOnError extends boolean = false>(options: Options<UnsubscribeItemsData, ThrowOnError>): RequestResult<UnsubscribeItemsResponses, UnsubscribeItemsErrors, ThrowOnError>;
54
62
  /**
55
63
  * Unmutes all notifications.
56
64
  * Existing notifications that were muted manually will remain muted.
@@ -67,6 +75,22 @@ export declare class Sdk extends HeyApiClient {
67
75
  * Rows that fail to deserialize are dropped with a warning log.
68
76
  */
69
77
  listTypedNotifications<ThrowOnError extends boolean = false>(options?: Options<ListTypedNotificationsData, ThrowOnError>): RequestResult<ListTypedNotificationsResponses, ListTypedNotificationsErrors, ThrowOnError>;
78
+ /**
79
+ * Soft-delete multiple user notifications.
80
+ */
81
+ bulkDeleteUserNotificationsV2<ThrowOnError extends boolean = false>(options: Options<BulkDeleteUserNotificationsV2Data, ThrowOnError>): RequestResult<BulkDeleteUserNotificationsV2Responses, BulkDeleteUserNotificationsV2Errors, ThrowOnError>;
82
+ /**
83
+ * Mark notifications as done.
84
+ */
85
+ bulkMarkNotificationsDone<ThrowOnError extends boolean = false>(options: Options<BulkMarkNotificationsDoneData, ThrowOnError>): RequestResult<BulkMarkNotificationsDoneResponses, BulkMarkNotificationsDoneErrors, ThrowOnError>;
86
+ /**
87
+ * Mark notifications as seen.
88
+ */
89
+ bulkMarkNotificationsSeen<ThrowOnError extends boolean = false>(options: Options<BulkMarkNotificationsSeenData, ThrowOnError>): RequestResult<BulkMarkNotificationsSeenResponses, BulkMarkNotificationsSeenErrors, ThrowOnError>;
90
+ /**
91
+ * Mark notifications as not done.
92
+ */
93
+ bulkMarkNotificationsUndone<ThrowOnError extends boolean = false>(options: Options<BulkMarkNotificationsUndoneData, ThrowOnError>): RequestResult<BulkMarkNotificationsUndoneResponses, BulkMarkNotificationsUndoneErrors, ThrowOnError>;
70
94
  /**
71
95
  * Wrapper handler that calls the inner generic bulk-get handler with `serde_json::Value`,
72
96
  * then converts each row to [`UserNotificationRow<NotifEvent>`].
@@ -90,29 +114,13 @@ export declare class Sdk extends HeyApiClient {
90
114
  * Re-enable a notification type for the authenticated user.
91
115
  */
92
116
  enableNotificationType<ThrowOnError extends boolean = false>(options: Options<EnableNotificationTypeData, ThrowOnError>): RequestResult<EnableNotificationTypeResponses, EnableNotificationTypeErrors, ThrowOnError>;
93
- /**
94
- * Typed wrapper for getting a single notification by ID.
95
- */
96
- getTypedNotificationById<ThrowOnError extends boolean = false>(options: Options<GetTypedNotificationByIdData, ThrowOnError>): RequestResult<GetTypedNotificationByIdResponses, GetTypedNotificationByIdErrors, ThrowOnError>;
97
- /**
98
- * Soft-delete multiple user notifications.
99
- */
100
- bulkDeleteUserNotificationsV2<ThrowOnError extends boolean = false>(options: Options<BulkDeleteUserNotificationsV2Data, ThrowOnError>): RequestResult<BulkDeleteUserNotificationsV2Responses, BulkDeleteUserNotificationsV2Errors, ThrowOnError>;
101
- /**
102
- * Mark notifications as done.
103
- */
104
- bulkMarkNotificationsDone<ThrowOnError extends boolean = false>(options: Options<BulkMarkNotificationsDoneData, ThrowOnError>): RequestResult<BulkMarkNotificationsDoneResponses, BulkMarkNotificationsDoneErrors, ThrowOnError>;
105
- /**
106
- * Mark notifications as seen.
107
- */
108
- bulkMarkNotificationsSeen<ThrowOnError extends boolean = false>(options: Options<BulkMarkNotificationsSeenData, ThrowOnError>): RequestResult<BulkMarkNotificationsSeenResponses, BulkMarkNotificationsSeenErrors, ThrowOnError>;
109
- /**
110
- * Mark notifications as not done.
111
- */
112
- bulkMarkNotificationsUndone<ThrowOnError extends boolean = false>(options: Options<BulkMarkNotificationsUndoneData, ThrowOnError>): RequestResult<BulkMarkNotificationsUndoneResponses, BulkMarkNotificationsUndoneErrors, ThrowOnError>;
113
117
  /**
114
118
  * Soft-delete a single user notification.
115
119
  */
116
120
  deleteUserNotificationV2<ThrowOnError extends boolean = false>(options: Options<DeleteUserNotificationV2Data, ThrowOnError>): RequestResult<DeleteUserNotificationV2Responses, DeleteUserNotificationV2Errors, ThrowOnError>;
121
+ /**
122
+ * Typed wrapper for getting a single notification by ID.
123
+ */
124
+ getTypedNotificationById<ThrowOnError extends boolean = false>(options: Options<GetTypedNotificationByIdData, ThrowOnError>): RequestResult<GetTypedNotificationByIdResponses, GetTypedNotificationByIdErrors, ThrowOnError>;
117
125
  }
118
126
  export {};
@@ -164,6 +164,39 @@ export type BulkGetByEventItemIdsRequest = {
164
164
  */
165
165
  eventItemIds: Array<string>;
166
166
  };
167
+ export type BulkItem = {
168
+ item_id: string;
169
+ item_type: EntityType;
170
+ };
171
+ export type BulkRemoveItemsRequest = {
172
+ items: Array<BulkItem>;
173
+ };
174
+ export type BulkSetItemsRequest = {
175
+ items: Array<BulkItem>;
176
+ /**
177
+ * A future resume time. Omit to mute indefinitely.
178
+ */
179
+ snoozed_until?: string | null;
180
+ };
181
+ /**
182
+ * A channel member who sees a calendar event only through a channel share
183
+ * asked the person who shared it to add them as a guest. Sent to the sharer,
184
+ * with the requester as sender.
185
+ */
186
+ export type CalendarEventJoinRequestMetadata = {
187
+ /**
188
+ * The shared calendar event entity the request is for.
189
+ */
190
+ eventId: string;
191
+ /**
192
+ * Stable request identity, answered from the event's details.
193
+ */
194
+ requestId: string;
195
+ /**
196
+ * Event title when the request was made.
197
+ */
198
+ title: string;
199
+ };
167
200
  /**
168
201
  * A calendar event alarm came due. Like [`ReminderMetadata`], these are
169
202
  * self-notifications: `sender_id` must stay `None` or the only recipient is
@@ -227,6 +260,19 @@ export type CallStartedMetadata = {
227
260
  */
228
261
  sender_profile_picture_url?: string | null;
229
262
  };
263
+ /**
264
+ * A person asked to join a channel the recipient participates in.
265
+ */
266
+ export type ChannelAccessRequestedMetadata = CommonChannelMetadata & {
267
+ /**
268
+ * The attempt to join, which is also this notification's id.
269
+ */
270
+ requestId: string;
271
+ /**
272
+ * Optional requester profile picture URL.
273
+ */
274
+ senderProfilePictureUrl?: string | null;
275
+ };
230
276
  /**
231
277
  * Metadata for when a user is invited to a channel.
232
278
  */
@@ -560,7 +606,7 @@ export type EntityAccessRequestedMetadata = {
560
606
  /**
561
607
  * The type of an entity in Macro
562
608
  */
563
- export type EntityType = 'user' | 'chat' | 'channel' | 'channel_message' | 'document' | 'project' | 'email_thread' | 'calendar_event' | 'team' | 'call' | 'foreign_entity' | 'static_file' | 'crm_company' | 'crm_contact' | 'crm_pipeline' | 'reminder' | 'skill' | 'agent_session' | 'scheduled_action' | 'initiative' | 'database' | 'database_row' | 'form';
609
+ export type EntityType = 'user' | 'chat' | 'channel' | 'channel_message' | 'document' | 'project' | 'email_thread' | 'calendar_event' | 'team' | 'call' | 'foreign_entity' | 'static_file' | 'crm_company' | 'crm_contact' | 'crm_pipeline' | 'reminder' | 'skill' | 'agent_session' | 'scheduled_action' | 'initiative' | 'database' | 'database_row' | 'form' | 'external_chat';
564
610
  /**
565
611
  * A plain old json error response for use with axum.
566
612
  * yup, thats it.
@@ -571,6 +617,27 @@ export type ErrorResponse = {
571
617
  */
572
618
  message: string;
573
619
  };
620
+ /**
621
+ * A live message in an independently shared external chat.
622
+ */
623
+ export type ExternalChatMessageMetadata = {
624
+ /**
625
+ * The chat's name.
626
+ */
627
+ chatName: string;
628
+ /**
629
+ * Stable message id; retries use it as their notification id.
630
+ */
631
+ messageId: string;
632
+ /**
633
+ * The messaging service the chat lives in.
634
+ */
635
+ provider: ExternalChatProvider;
636
+ };
637
+ /**
638
+ * The messaging service an external chat lives in.
639
+ */
640
+ export type ExternalChatProvider = 'whatsapp';
574
641
  /**
575
642
  * The strongly typed response for listing user notifications.
576
643
  */
@@ -865,6 +932,23 @@ export type InviteToTeamMetadata = {
865
932
  * The user who sent the invitation
866
933
  */
867
934
  invitedBy: string;
935
+ /**
936
+ * What the invitee gets by joining, as the team stood when the invite was sent.
937
+ */
938
+ inviteePlan?: InviteePlan;
939
+ /**
940
+ * The inviter's display name, when they have set one. It is user-provided, so it is shown
941
+ * on one line, capped, and escaped; the email falls back to the inviter's address.
942
+ */
943
+ inviterName?: string | null;
944
+ /**
945
+ * Whether the invite creates an agent account.
946
+ */
947
+ isAgent?: boolean;
948
+ /**
949
+ * Whether this email reminds the invitee of an invite they have not answered.
950
+ */
951
+ reminder?: boolean;
868
952
  /**
869
953
  * Role/permission level in the team
870
954
  */
@@ -886,6 +970,10 @@ export type InviteToTeamMetadata = {
886
970
  */
887
971
  teamName: string;
888
972
  };
973
+ /**
974
+ * What a team invitee gets by joining.
975
+ */
976
+ export type InviteePlan = 'free' | 'premium';
889
977
  /**
890
978
  * Metadata for when a item is shared with a user
891
979
  */
@@ -1078,6 +1166,12 @@ export type NotifEvent = {
1078
1166
  */
1079
1167
  content: ReminderMetadata;
1080
1168
  tag: 'reminder';
1169
+ } | {
1170
+ /**
1171
+ * A live message in a shared external chat.
1172
+ */
1173
+ content: ExternalChatMessageMetadata;
1174
+ tag: 'external_chat_message';
1081
1175
  } | {
1082
1176
  /**
1083
1177
  * A calendar event alarm came due.
@@ -1153,6 +1247,25 @@ export type NotifEvent = {
1153
1247
  */
1154
1248
  content: ChannelMessageReactionMetadata;
1155
1249
  tag: 'channel_message_reaction';
1250
+ } | {
1251
+ /**
1252
+ * A channel member asked to be added as a guest of an event the
1253
+ * user shared with the channel.
1254
+ */
1255
+ content: CalendarEventJoinRequestMetadata;
1256
+ tag: 'calendar_event_join_request';
1257
+ } | {
1258
+ /**
1259
+ * Someone asked to join a channel the user participates in.
1260
+ */
1261
+ content: ChannelAccessRequestedMetadata;
1262
+ tag: 'channel_access_requested';
1263
+ } | {
1264
+ /**
1265
+ * One of the user's routines finished a run, successfully or not.
1266
+ */
1267
+ content: RoutineRunFinishedMetadata;
1268
+ tag: 'routine_run_finished';
1156
1269
  };
1157
1270
  /**
1158
1271
  * the notification ids that we are bulk updating
@@ -1185,17 +1298,44 @@ export type NotificationState = 'unseen' | 'seen' | 'done';
1185
1298
  * newtype wrapper for the the typename of a Notification
1186
1299
  */
1187
1300
  export type NotificationTypeName = string;
1301
+ /**
1302
+ * the value we send as the payload in the ios notification
1303
+ * This data is accessible to the client
1304
+ */
1188
1305
  export type PushNotificationData = {
1306
+ navigation?: null | PushNotificationNavigation;
1189
1307
  /**
1190
1308
  * The id of the notification record (UserNotification.id)
1191
1309
  */
1192
1310
  notificationId: string;
1311
+ /**
1312
+ * Account that owns the receiving device, set during per-recipient delivery.
1313
+ */
1314
+ recipientId?: string | null;
1193
1315
  /**
1194
1316
  * The sender's profile picture URL, used by the Notification Service Extension
1195
1317
  * to download and attach as a rich notification image.
1196
1318
  */
1197
1319
  senderProfilePictureUrl?: string | null;
1198
1320
  };
1321
+ /**
1322
+ * Open a channel at a specific message.
1323
+ */
1324
+ export type PushNotificationNavigation = {
1325
+ /**
1326
+ * Channel containing the message.
1327
+ */
1328
+ channelId: string;
1329
+ /**
1330
+ * Message to highlight.
1331
+ */
1332
+ messageId: string;
1333
+ /**
1334
+ * Root of the message's thread; null identifies a top-level message.
1335
+ */
1336
+ threadId: string | null;
1337
+ type: 'channel';
1338
+ };
1199
1339
  /**
1200
1340
  * the value of the inner payload inside [ConnGatewayNotification]
1201
1341
  */
@@ -1315,6 +1455,28 @@ export type RepliedToDocumentCommentThreadMetadata = {
1315
1455
  * Permission level used by an access request, excluding ownership.
1316
1456
  */
1317
1457
  export type RequestedAccessLevel = 'view' | 'comment' | 'edit';
1458
+ /**
1459
+ * One of the recipient's routines finished a run. Every run notifies,
1460
+ * whether it succeeded or failed.
1461
+ */
1462
+ export type RoutineRunFinishedMetadata = {
1463
+ /**
1464
+ * How the run ended.
1465
+ */
1466
+ outcome: RoutineRunOutcome;
1467
+ /**
1468
+ * The routine that ran.
1469
+ */
1470
+ routineId: string;
1471
+ /**
1472
+ * The routine's name when it ran.
1473
+ */
1474
+ routineName: string;
1475
+ };
1476
+ /**
1477
+ * How a routine run ended, as its notification reports it.
1478
+ */
1479
+ export type RoutineRunOutcome = 'succeeded' | 'failed';
1318
1480
  /**
1319
1481
  * Metadata for when a user is assigned to a task
1320
1482
  */
@@ -1437,6 +1599,38 @@ export type UnsubscribeItemResponses = {
1437
1599
  200: EmptyResponse;
1438
1600
  };
1439
1601
  export type UnsubscribeItemResponse = UnsubscribeItemResponses[keyof UnsubscribeItemResponses];
1602
+ export type RemoveUnsubscribeItemsData = {
1603
+ body: BulkRemoveItemsRequest;
1604
+ path?: never;
1605
+ query?: never;
1606
+ url: '/unsubscribe/items';
1607
+ };
1608
+ export type RemoveUnsubscribeItemsErrors = {
1609
+ 400: ErrorResponse;
1610
+ 401: ErrorResponse;
1611
+ 500: ErrorResponse;
1612
+ };
1613
+ export type RemoveUnsubscribeItemsError = RemoveUnsubscribeItemsErrors[keyof RemoveUnsubscribeItemsErrors];
1614
+ export type RemoveUnsubscribeItemsResponses = {
1615
+ 200: EmptyResponse;
1616
+ };
1617
+ export type RemoveUnsubscribeItemsResponse = RemoveUnsubscribeItemsResponses[keyof RemoveUnsubscribeItemsResponses];
1618
+ export type UnsubscribeItemsData = {
1619
+ body: BulkSetItemsRequest;
1620
+ path?: never;
1621
+ query?: never;
1622
+ url: '/unsubscribe/items';
1623
+ };
1624
+ export type UnsubscribeItemsErrors = {
1625
+ 400: ErrorResponse;
1626
+ 401: ErrorResponse;
1627
+ 500: ErrorResponse;
1628
+ };
1629
+ export type UnsubscribeItemsError = UnsubscribeItemsErrors[keyof UnsubscribeItemsErrors];
1630
+ export type UnsubscribeItemsResponses = {
1631
+ 200: EmptyResponse;
1632
+ };
1633
+ export type UnsubscribeItemsResponse = UnsubscribeItemsResponses[keyof UnsubscribeItemsResponses];
1440
1634
  export type RemoveUnsubscribeAllData = {
1441
1635
  body?: never;
1442
1636
  path?: never;
@@ -1496,6 +1690,66 @@ export type ListTypedNotificationsResponses = {
1496
1690
  200: GetAllUserNotificationsResponse;
1497
1691
  };
1498
1692
  export type ListTypedNotificationsResponse = ListTypedNotificationsResponses[keyof ListTypedNotificationsResponses];
1693
+ export type BulkDeleteUserNotificationsV2Data = {
1694
+ body: NotificationBulkRequest;
1695
+ path?: never;
1696
+ query?: never;
1697
+ url: '/v1/user_notifications/bulk';
1698
+ };
1699
+ export type BulkDeleteUserNotificationsV2Errors = {
1700
+ 400: ErrorResponse;
1701
+ 401: ErrorResponse;
1702
+ 500: ErrorResponse;
1703
+ };
1704
+ export type BulkDeleteUserNotificationsV2Error = BulkDeleteUserNotificationsV2Errors[keyof BulkDeleteUserNotificationsV2Errors];
1705
+ export type BulkDeleteUserNotificationsV2Responses = {
1706
+ 200: unknown;
1707
+ };
1708
+ export type BulkMarkNotificationsDoneData = {
1709
+ body: NotificationBulkRequest;
1710
+ path?: never;
1711
+ query?: never;
1712
+ url: '/v1/user_notifications/bulk/done';
1713
+ };
1714
+ export type BulkMarkNotificationsDoneErrors = {
1715
+ 400: ErrorResponse;
1716
+ 401: ErrorResponse;
1717
+ 500: ErrorResponse;
1718
+ };
1719
+ export type BulkMarkNotificationsDoneError = BulkMarkNotificationsDoneErrors[keyof BulkMarkNotificationsDoneErrors];
1720
+ export type BulkMarkNotificationsDoneResponses = {
1721
+ 200: unknown;
1722
+ };
1723
+ export type BulkMarkNotificationsSeenData = {
1724
+ body: NotificationBulkRequest;
1725
+ path?: never;
1726
+ query?: never;
1727
+ url: '/v1/user_notifications/bulk/seen';
1728
+ };
1729
+ export type BulkMarkNotificationsSeenErrors = {
1730
+ 400: ErrorResponse;
1731
+ 401: ErrorResponse;
1732
+ 500: ErrorResponse;
1733
+ };
1734
+ export type BulkMarkNotificationsSeenError = BulkMarkNotificationsSeenErrors[keyof BulkMarkNotificationsSeenErrors];
1735
+ export type BulkMarkNotificationsSeenResponses = {
1736
+ 200: unknown;
1737
+ };
1738
+ export type BulkMarkNotificationsUndoneData = {
1739
+ body: NotificationBulkRequest;
1740
+ path?: never;
1741
+ query?: never;
1742
+ url: '/v1/user_notifications/bulk/undone';
1743
+ };
1744
+ export type BulkMarkNotificationsUndoneErrors = {
1745
+ 400: ErrorResponse;
1746
+ 401: ErrorResponse;
1747
+ 500: ErrorResponse;
1748
+ };
1749
+ export type BulkMarkNotificationsUndoneError = BulkMarkNotificationsUndoneErrors[keyof BulkMarkNotificationsUndoneErrors];
1750
+ export type BulkMarkNotificationsUndoneResponses = {
1751
+ 200: unknown;
1752
+ };
1499
1753
  export type BulkGetTypedNotificationsByEventItemIdsData = {
1500
1754
  body: BulkGetByEventItemIdsRequest;
1501
1755
  path?: never;
@@ -1613,7 +1867,7 @@ export type EnableNotificationTypeError = EnableNotificationTypeErrors[keyof Ena
1613
1867
  export type EnableNotificationTypeResponses = {
1614
1868
  200: unknown;
1615
1869
  };
1616
- export type GetTypedNotificationByIdData = {
1870
+ export type DeleteUserNotificationV2Data = {
1617
1871
  body?: never;
1618
1872
  path: {
1619
1873
  /**
@@ -1624,78 +1878,16 @@ export type GetTypedNotificationByIdData = {
1624
1878
  query?: never;
1625
1879
  url: '/v1/user_notifications/{notification_id}';
1626
1880
  };
1627
- export type GetTypedNotificationByIdErrors = {
1628
- 400: ErrorResponse;
1629
- 401: ErrorResponse;
1630
- 404: ErrorResponse;
1631
- 500: ErrorResponse;
1632
- };
1633
- export type GetTypedNotificationByIdError = GetTypedNotificationByIdErrors[keyof GetTypedNotificationByIdErrors];
1634
- export type GetTypedNotificationByIdResponses = {
1635
- 200: ApiUserNotification;
1636
- };
1637
- export type GetTypedNotificationByIdResponse = GetTypedNotificationByIdResponses[keyof GetTypedNotificationByIdResponses];
1638
- export type BulkDeleteUserNotificationsV2Data = {
1639
- body: NotificationBulkRequest;
1640
- path?: never;
1641
- query?: never;
1642
- url: '/v2/user_notifications/bulk';
1643
- };
1644
- export type BulkDeleteUserNotificationsV2Errors = {
1645
- 400: ErrorResponse;
1646
- 401: ErrorResponse;
1647
- 500: ErrorResponse;
1648
- };
1649
- export type BulkDeleteUserNotificationsV2Error = BulkDeleteUserNotificationsV2Errors[keyof BulkDeleteUserNotificationsV2Errors];
1650
- export type BulkDeleteUserNotificationsV2Responses = {
1651
- 200: unknown;
1652
- };
1653
- export type BulkMarkNotificationsDoneData = {
1654
- body: NotificationBulkRequest;
1655
- path?: never;
1656
- query?: never;
1657
- url: '/v2/user_notifications/bulk/done';
1658
- };
1659
- export type BulkMarkNotificationsDoneErrors = {
1660
- 400: ErrorResponse;
1661
- 401: ErrorResponse;
1662
- 500: ErrorResponse;
1663
- };
1664
- export type BulkMarkNotificationsDoneError = BulkMarkNotificationsDoneErrors[keyof BulkMarkNotificationsDoneErrors];
1665
- export type BulkMarkNotificationsDoneResponses = {
1666
- 200: unknown;
1667
- };
1668
- export type BulkMarkNotificationsSeenData = {
1669
- body: NotificationBulkRequest;
1670
- path?: never;
1671
- query?: never;
1672
- url: '/v2/user_notifications/bulk/seen';
1673
- };
1674
- export type BulkMarkNotificationsSeenErrors = {
1675
- 400: ErrorResponse;
1676
- 401: ErrorResponse;
1677
- 500: ErrorResponse;
1678
- };
1679
- export type BulkMarkNotificationsSeenError = BulkMarkNotificationsSeenErrors[keyof BulkMarkNotificationsSeenErrors];
1680
- export type BulkMarkNotificationsSeenResponses = {
1681
- 200: unknown;
1682
- };
1683
- export type BulkMarkNotificationsUndoneData = {
1684
- body: NotificationBulkRequest;
1685
- path?: never;
1686
- query?: never;
1687
- url: '/v2/user_notifications/bulk/undone';
1688
- };
1689
- export type BulkMarkNotificationsUndoneErrors = {
1881
+ export type DeleteUserNotificationV2Errors = {
1690
1882
  400: ErrorResponse;
1691
1883
  401: ErrorResponse;
1692
1884
  500: ErrorResponse;
1693
1885
  };
1694
- export type BulkMarkNotificationsUndoneError = BulkMarkNotificationsUndoneErrors[keyof BulkMarkNotificationsUndoneErrors];
1695
- export type BulkMarkNotificationsUndoneResponses = {
1886
+ export type DeleteUserNotificationV2Error = DeleteUserNotificationV2Errors[keyof DeleteUserNotificationV2Errors];
1887
+ export type DeleteUserNotificationV2Responses = {
1696
1888
  200: unknown;
1697
1889
  };
1698
- export type DeleteUserNotificationV2Data = {
1890
+ export type GetTypedNotificationByIdData = {
1699
1891
  body?: never;
1700
1892
  path: {
1701
1893
  /**
@@ -1704,14 +1896,16 @@ export type DeleteUserNotificationV2Data = {
1704
1896
  notification_id: string;
1705
1897
  };
1706
1898
  query?: never;
1707
- url: '/v2/user_notifications/{notification_id}';
1899
+ url: '/v1/user_notifications/{notification_id}';
1708
1900
  };
1709
- export type DeleteUserNotificationV2Errors = {
1901
+ export type GetTypedNotificationByIdErrors = {
1710
1902
  400: ErrorResponse;
1711
1903
  401: ErrorResponse;
1904
+ 404: ErrorResponse;
1712
1905
  500: ErrorResponse;
1713
1906
  };
1714
- export type DeleteUserNotificationV2Error = DeleteUserNotificationV2Errors[keyof DeleteUserNotificationV2Errors];
1715
- export type DeleteUserNotificationV2Responses = {
1716
- 200: unknown;
1907
+ export type GetTypedNotificationByIdError = GetTypedNotificationByIdErrors[keyof GetTypedNotificationByIdErrors];
1908
+ export type GetTypedNotificationByIdResponses = {
1909
+ 200: ApiUserNotification;
1717
1910
  };
1911
+ export type GetTypedNotificationByIdResponse = GetTypedNotificationByIdResponses[keyof GetTypedNotificationByIdResponses];
@@ -1,2 +1,2 @@
1
1
  export { type Options, Sdk } from './sdk.gen';
2
- export type { AddEntityPropertyOptionData, AddEntityPropertyOptionErrors, AddEntityPropertyOptionResponse, AddEntityPropertyOptionResponses, AddNumberOptionRequest, AddPropertyOptionData, AddPropertyOptionErrors, AddPropertyOptionRequest, AddPropertyOptionResponse, AddPropertyOptionResponses, AddStringOptionRequest, BulkEntityOptionUpdateResult, BulkEntityOptionUpdateStatus, BulkEntityPropertiesRequest, BulkUpdateEntitiesPropertyOptionsData, BulkUpdateEntitiesPropertyOptionsErrors, BulkUpdateEntitiesPropertyOptionsRequest, BulkUpdateEntitiesPropertyOptionsResponse, BulkUpdateEntitiesPropertyOptionsResponse2, BulkUpdateEntitiesPropertyOptionsResponses, BulkUpdateEntityPropertyOptionsData, BulkUpdateEntityPropertyOptionsErrors, BulkUpdateEntityPropertyOptionsRequest, BulkUpdateEntityPropertyOptionsResponse, BulkUpdateEntityPropertyOptionsResponse2, BulkUpdateEntityPropertyOptionsResponses, ClientOptions, CreatePropertyDefinitionData, CreatePropertyDefinitionErrors, CreatePropertyDefinitionRequest, CreatePropertyDefinitionResponse, CreatePropertyDefinitionResponses, CreatePropertyScope, DataType, DeleteEntityPropertyData, DeleteEntityPropertyErrors, DeleteEntityPropertyResponse, DeleteEntityPropertyResponses, DeletePropertyDefinitionData, DeletePropertyDefinitionErrors, DeletePropertyDefinitionResponse, DeletePropertyDefinitionResponses, DeletePropertyOptionData, DeletePropertyOptionErrors, DeletePropertyOptionResponse, DeletePropertyOptionResponses, EnsureTagSetData, EnsureTagSetErrors, EnsureTagSetRequest, EnsureTagSetResponse, EnsureTagSetResponses, EntityPropertiesResponse, EntityProperty, EntityPropertyOptionSelectionResponse, EntityPropertyOptionUpdateRequest, EntityPropertyResponse, EntityPropertyWithDefinition, EntityPropertyWithDefinitionResponse, EntityQueryParams, EntityReference, EntityType, GetBulkEntityPropertiesData, GetBulkEntityPropertiesErrors, GetBulkEntityPropertiesResponse, GetBulkEntityPropertiesResponses, GetEntityPropertiesData, GetEntityPropertiesErrors, GetEntityPropertiesResponse, GetEntityPropertiesResponses, GetPropertyDefinitionData, GetPropertyDefinitionErrors, GetPropertyDefinitionResponse, GetPropertyDefinitionResponses, GetPropertyOptionsData, GetPropertyOptionsErrors, GetPropertyOptionsResponse, GetPropertyOptionsResponses, ListPropertiesData, ListPropertiesErrors, ListPropertiesQuery, ListPropertiesResponse, ListPropertiesResponses, ListTagsData, ListTagsErrors, ListTagsResponse, ListTagsResponses, MergeTagData, MergeTagErrors, MergeTagRequest, MergeTagResponse, MergeTagResponses, PromoteTagData, PromoteTagError, PromoteTagErrors, PromoteTagRequest, PromoteTagResponse, PromoteTagResponses, PropertyDataType, PropertyDefinition, PropertyDefinitionDetailResponse, PropertyDefinitionResponse, PropertyDefinitionWithOptions, PropertyDefinitionWithOptionsResponse, PropertyOption, PropertyOptionResponse, PropertyOptionValue, PropertyOwner, PropertyScope, PropertyTargetEntityType, PropertyTargetReference, PropertyValue, RemoveEntityPropertyOptionData, RemoveEntityPropertyOptionErrors, RemoveEntityPropertyOptionResponse, RemoveEntityPropertyOptionResponses, SelectNumberOption, SelectStringOption, SetEntityPropertyData, SetEntityPropertyErrors, SetEntityPropertyRequest, SetEntityPropertyResponse, SetEntityPropertyResponses, SetPropertyValue, TagPromotionConflictResponse, TagScope, TagSetResponse, UpdatePropertyOptionData, UpdatePropertyOptionErrors, UpdatePropertyOptionRequest, UpdatePropertyOptionResponse, UpdatePropertyOptionResponses } from './types.gen';
2
+ export type { AddEntityPropertyOptionData, AddEntityPropertyOptionErrors, AddEntityPropertyOptionResponse, AddEntityPropertyOptionResponses, AddNumberOptionRequest, AddPropertyOptionData, AddPropertyOptionErrors, AddPropertyOptionRequest, AddPropertyOptionResponse, AddPropertyOptionResponses, AddStringOptionRequest, BulkEntityOptionUpdateResult, BulkEntityOptionUpdateStatus, BulkEntityPropertiesRequest, BulkUpdateEntitiesPropertyOptionsData, BulkUpdateEntitiesPropertyOptionsErrors, BulkUpdateEntitiesPropertyOptionsRequest, BulkUpdateEntitiesPropertyOptionsResponse, BulkUpdateEntitiesPropertyOptionsResponse2, BulkUpdateEntitiesPropertyOptionsResponses, BulkUpdateEntityPropertyOptionsData, BulkUpdateEntityPropertyOptionsErrors, BulkUpdateEntityPropertyOptionsRequest, BulkUpdateEntityPropertyOptionsResponse, BulkUpdateEntityPropertyOptionsResponse2, BulkUpdateEntityPropertyOptionsResponses, ClientOptions, CreatePropertyDefinitionData, CreatePropertyDefinitionErrors, CreatePropertyDefinitionRequest, CreatePropertyDefinitionResponse, CreatePropertyDefinitionResponses, CreatePropertyScope, DataType, DateRange, DeleteEntityPropertyData, DeleteEntityPropertyErrors, DeleteEntityPropertyResponse, DeleteEntityPropertyResponses, DeletePropertyDefinitionData, DeletePropertyDefinitionErrors, DeletePropertyDefinitionResponse, DeletePropertyDefinitionResponses, DeletePropertyOptionData, DeletePropertyOptionErrors, DeletePropertyOptionResponse, DeletePropertyOptionResponses, EnsureTagSetData, EnsureTagSetErrors, EnsureTagSetRequest, EnsureTagSetResponse, EnsureTagSetResponses, EntityPropertiesResponse, EntityProperty, EntityPropertyOptionSelectionResponse, EntityPropertyOptionUpdateRequest, EntityPropertyResponse, EntityPropertyWithDefinition, EntityPropertyWithDefinitionResponse, EntityQueryParams, EntityReference, EntityType, GetBulkEntityPropertiesData, GetBulkEntityPropertiesErrors, GetBulkEntityPropertiesResponse, GetBulkEntityPropertiesResponses, GetEntityPropertiesData, GetEntityPropertiesErrors, GetEntityPropertiesResponse, GetEntityPropertiesResponses, GetPropertyDefinitionData, GetPropertyDefinitionErrors, GetPropertyDefinitionResponse, GetPropertyDefinitionResponses, GetPropertyOptionsData, GetPropertyOptionsErrors, GetPropertyOptionsResponse, GetPropertyOptionsResponses, ListPropertiesData, ListPropertiesErrors, ListPropertiesQuery, ListPropertiesResponse, ListPropertiesResponses, ListTagsData, ListTagsErrors, ListTagsResponse, ListTagsResponses, MergeTagData, MergeTagErrors, MergeTagRequest, MergeTagResponse, MergeTagResponses, PromoteTagData, PromoteTagError, PromoteTagErrors, PromoteTagRequest, PromoteTagResponse, PromoteTagResponses, PropertyDataType, PropertyDefinition, PropertyDefinitionDetailResponse, PropertyDefinitionResponse, PropertyDefinitionWithOptions, PropertyDefinitionWithOptionsResponse, PropertyOption, PropertyOptionResponse, PropertyOptionValue, PropertyOwner, PropertyScope, PropertyTargetEntityType, PropertyTargetReference, PropertyValue, RemoveEntityPropertyOptionData, RemoveEntityPropertyOptionErrors, RemoveEntityPropertyOptionResponse, RemoveEntityPropertyOptionResponses, SelectNumberOption, SelectStringOption, SetEntityPropertyData, SetEntityPropertyErrors, SetEntityPropertyRequest, SetEntityPropertyResponse, SetEntityPropertyResponses, SetPropertyValue, TagPromotionConflictResponse, TagScope, TagSetResponse, UpdatePropertyOptionData, UpdatePropertyOptionErrors, UpdatePropertyOptionRequest, UpdatePropertyOptionResponse, UpdatePropertyOptionResponses } from './types.gen';
@@ -137,7 +137,15 @@ export type CreatePropertyScope = 'user' | 'team';
137
137
  /**
138
138
  * Data type for property values, determining storage and validation.
139
139
  */
140
- export type DataType = 'BOOLEAN' | 'DATE' | 'NUMBER' | 'STRING' | 'SELECT_NUMBER' | 'SELECT_STRING' | 'TAG' | 'ENTITY' | 'LINK';
140
+ export type DataType = 'BOOLEAN' | 'DATE' | 'DATE_RANGE' | 'NUMBER' | 'STRING' | 'SELECT_NUMBER' | 'SELECT_STRING' | 'TAG' | 'ENTITY' | 'LINK';
141
+ /**
142
+ * A span of time from `start` to `end`, both included. The end is never
143
+ * before the start: a range that would end earlier does not deserialize.
144
+ */
145
+ export type DateRange = {
146
+ end: string;
147
+ start: string;
148
+ };
141
149
  /**
142
150
  * Request to provision (get-or-create) the caller's tag set for a scope.
143
151
  */
@@ -291,6 +299,8 @@ export type PropertyDataType = {
291
299
  type: 'boolean';
292
300
  } | {
293
301
  type: 'date';
302
+ } | {
303
+ type: 'date_range';
294
304
  } | {
295
305
  type: 'number';
296
306
  } | {
@@ -483,6 +493,13 @@ export type PropertyValue = {
483
493
  * Serializes as: {"type": "Date", "value": "2025-01-01T00:00:00Z"}
484
494
  */
485
495
  value: string;
496
+ } | {
497
+ type: 'DateRange';
498
+ /**
499
+ * Date range value
500
+ * Serializes as: {"type": "DateRange", "value": {"start": "2025-01-01T00:00:00Z", "end": "2025-01-31T00:00:00Z"}}
501
+ */
502
+ value: DateRange;
486
503
  } | {
487
504
  type: 'SelectOption';
488
505
  /**
@@ -537,6 +554,9 @@ export type SetPropertyValue = {
537
554
  } | {
538
555
  type: 'date';
539
556
  value: string;
557
+ } | {
558
+ type: 'date_range';
559
+ value: DateRange;
540
560
  } | {
541
561
  type: 'number';
542
562
  value: number;
@@ -1,2 +1,2 @@
1
1
  export { type Options, Sdk } from './sdk.gen';
2
- export type { ActionConfiguration, ActionConfigurationUpdate, ActionExecutionRecord, ActionKind, ActionTrigger, AgentTask, AgentTaskAgent, AiAdmissionErrorBody, ClientOptions, ConditionResult, CreateScheduledAction, CreateScheduledActionData, CreateScheduledActionError, CreateScheduledActionErrors, CreateScheduledActionResponse, CreateScheduledActionResponses, DeleteScheduledActionData, DeleteScheduledActionError, DeleteScheduledActionErrors, DeleteScheduledActionResponse, DeleteScheduledActionResponses, EmptyResponse, EventFilter, EventFilters, EventName, ExecuteScheduledActionNowData, ExecuteScheduledActionNowError, ExecuteScheduledActionNowErrors, ExecuteScheduledActionNowResponse, ExecuteScheduledActionNowResponses, ExecutionResource, ExecutionResourceType, ExecutionResult, GetScheduledActionData, GetScheduledActionError, GetScheduledActionErrors, GetScheduledActionResponse, GetScheduledActionResponses, InProgressExecution, LegacyActionConfiguration, ListScheduledActionHistoryData, ListScheduledActionHistoryError, ListScheduledActionHistoryErrors, ListScheduledActionHistoryResponse, ListScheduledActionHistoryResponses, ListScheduledActionsData, ListScheduledActionsError, ListScheduledActionsErrors, ListScheduledActionsResponse, ListScheduledActionsResponses, RoutineModelId, RoutineTrigger, RoutineTriggers, Schedule, ScheduledAction, ScheduledActionHealthData, ScheduledActionHealthResponse, ScheduledActionHealthResponses, ScheduledActionResponse, ScheduledActionUpdate, SetScheduledActionEnabled, SetScheduledActionEnabledData, SetScheduledActionEnabledError, SetScheduledActionEnabledErrors, SetScheduledActionEnabledResponse, SetScheduledActionEnabledResponses, UpdateScheduledAction, UpdateScheduledActionData, UpdateScheduledActionError, UpdateScheduledActionErrors, UpdateScheduledActionResponse, UpdateScheduledActionResponses } from './types.gen';
2
+ export type { ActionConfiguration, ActionConfigurationUpdate, ActionExecutionRecord, ActionKind, ActionTrigger, ActivateScheduledActionTemplateData, ActivateScheduledActionTemplateError, ActivateScheduledActionTemplateErrors, ActivateScheduledActionTemplateResponse, ActivateScheduledActionTemplateResponses, AgentMcpServer, AgentTask, AgentTaskAgent, AiAdmissionErrorBody, ClientOptions, CodeUpgrade, ConditionResult, CreateScheduledActionData, CreateScheduledActionError, CreateScheduledActionErrors, CreateScheduledActionResponse, CreateScheduledActionResponses, DeleteScheduledActionData, DeleteScheduledActionError, DeleteScheduledActionErrors, DeleteScheduledActionResponse, DeleteScheduledActionResponses, Draft, DraftContext, DraftedRoutine, DraftedStep, DraftRequest, DraftRoutineData, DraftRoutineError, DraftRoutineErrors, DraftRoutineRequest, DraftRoutineResponse, DraftRoutineResponses, EmptyResponse, EventFilter, EventFilters, EventName, ExecuteScheduledActionNowData, ExecuteScheduledActionNowError, ExecuteScheduledActionNowErrors, ExecuteScheduledActionNowResponse, ExecuteScheduledActionNowResponses, ExecutionResource, ExecutionResourceType, ExecutionResult, GetScheduledActionData, GetScheduledActionError, GetScheduledActionErrors, GetScheduledActionResponse, GetScheduledActionResponses, GetScheduledActionTemplateData, GetScheduledActionTemplateError, GetScheduledActionTemplateErrors, GetScheduledActionTemplateResponse, GetScheduledActionTemplateResponses, GithubSelector, InProgressExecution, ListScheduledActionCodeUpgradesData, ListScheduledActionCodeUpgradesError, ListScheduledActionCodeUpgradesErrors, ListScheduledActionCodeUpgradesResponse, ListScheduledActionCodeUpgradesResponses, ListScheduledActionHistoryData, ListScheduledActionHistoryError, ListScheduledActionHistoryErrors, ListScheduledActionHistoryResponse, ListScheduledActionHistoryResponses, ListScheduledActionsData, ListScheduledActionsError, ListScheduledActionsErrors, ListScheduledActionsResponse, ListScheduledActionsResponses, NamedItem, PayloadCondition, PayloadScalar, PropertySelector, RoutineCodeStartersData, RoutineCodeStartersError, RoutineCodeStartersErrors, RoutineCodeStartersResponse, RoutineCodeStartersResponses, RoutineModelId, RoutineSoFar, RoutineTemplate, RoutineTrigger, RoutineTriggers, RunInfo, RunStart, RunVisibility, Schedule, ScheduledAction, ScheduledActionHealthData, ScheduledActionHealthResponse, ScheduledActionHealthResponses, ScheduledActionResponse, ScheduledActionUpdate, SetScheduledActionEnabled, SetScheduledActionEnabledData, SetScheduledActionEnabledError, SetScheduledActionEnabledErrors, SetScheduledActionEnabledResponse, SetScheduledActionEnabledResponses, ShareRoutineTemplate, ShareScheduledActionTemplateData, ShareScheduledActionTemplateError, ShareScheduledActionTemplateErrors, ShareScheduledActionTemplateResponse, ShareScheduledActionTemplateResponses, StarterRoutine, StepKind, StepProblem, TemplateVariable, UnshareScheduledActionTemplateData, UnshareScheduledActionTemplateError, UnshareScheduledActionTemplateErrors, UnshareScheduledActionTemplateResponse, UnshareScheduledActionTemplateResponses, UpdateScheduledActionData, UpdateScheduledActionError, UpdateScheduledActionErrors, UpdateScheduledActionResponse, UpdateScheduledActionResponses, UpgradeOutcome, VariableFill, Workspace, WorkspaceAgent, WorkspaceTag } from './types.gen';
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  Sdk
3
- } from "../../chunk-SUINKDXF.js";
3
+ } from "../../chunk-PZPTJI6F.js";
4
4
  export {
5
5
  Sdk
6
6
  };