@macro-inc/sdk 0.4.1 → 0.6.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 (228) hide show
  1. package/README.md +316 -21
  2. package/dist/{chunk-PTX2RV2N.js → chunk-4MI52GWV.js} +93 -1
  3. package/dist/{chunk-XFA7NCJ5.js → chunk-HO75UE4Z.js} +146 -15
  4. package/dist/{chunk-P4DTO6VD.js → chunk-MCSQNZ4E.js} +6 -0
  5. package/dist/{chunk-ZLBDES7U.js → chunk-SJ6S2GAT.js} +1271 -87
  6. package/dist/{chunk-AZJUIUIV.js → chunk-SK5CMXRV.js} +100 -14
  7. package/dist/{chunk-PZPTJI6F.js → chunk-TMTYN2UK.js} +229 -2
  8. package/dist/{chunk-PPR7IWZ7.js → chunk-ZYBAKW25.js} +2 -1
  9. package/dist/generated/agent-fold/index.d.ts +202 -14
  10. package/dist/generated/agent-harness/index.d.ts +1 -1
  11. package/dist/generated/agent-harness/index.js +1 -1
  12. package/dist/generated/agent-harness/sdk.gen.d.ts +49 -2
  13. package/dist/generated/agent-harness/types.gen.d.ts +527 -9
  14. package/dist/generated/agent-reviews/index.d.ts +11 -9
  15. package/dist/generated/auth/index.d.ts +1 -1
  16. package/dist/generated/auth/index.js +1 -1
  17. package/dist/generated/auth/sdk.gen.d.ts +82 -16
  18. package/dist/generated/auth/types.gen.d.ts +768 -18
  19. package/dist/generated/calendar/types.gen.d.ts +10 -3
  20. package/dist/generated/cognition/index.d.ts +1 -1
  21. package/dist/generated/cognition/index.js +1 -1
  22. package/dist/generated/cognition/sdk.gen.d.ts +60 -6
  23. package/dist/generated/cognition/types.gen.d.ts +663 -106
  24. package/dist/generated/connection/types.gen.d.ts +1 -1
  25. package/dist/generated/contacts/index.d.ts +1 -1
  26. package/dist/generated/contacts/index.js +1 -1
  27. package/dist/generated/contacts/sdk.gen.d.ts +5 -1
  28. package/dist/generated/contacts/types.gen.d.ts +56 -0
  29. package/dist/generated/email/types.gen.d.ts +8 -2
  30. package/dist/generated/notification/index.d.ts +1 -1
  31. package/dist/generated/notification/index.js +1 -1
  32. package/dist/generated/notification/sdk.gen.d.ts +2 -1
  33. package/dist/generated/notification/types.gen.d.ts +174 -1
  34. package/dist/generated/scheduled-action/index.d.ts +1 -1
  35. package/dist/generated/scheduled-action/index.js +1 -1
  36. package/dist/generated/scheduled-action/sdk.gen.d.ts +107 -2
  37. package/dist/generated/scheduled-action/types.gen.d.ts +2451 -479
  38. package/dist/generated/search/index.d.ts +1 -1
  39. package/dist/generated/search/types.gen.d.ts +50 -11
  40. package/dist/generated/storage/index.d.ts +1 -1
  41. package/dist/generated/storage/index.js +1 -1
  42. package/dist/generated/storage/sdk.gen.d.ts +511 -18
  43. package/dist/generated/storage/types.gen.d.ts +18528 -11395
  44. package/dist/src/entities/account-managers/grant.d.ts +28 -5
  45. package/dist/src/entities/account-managers/namespace.d.ts +15 -3
  46. package/dist/src/entities/activity/entity.d.ts +7 -0
  47. package/dist/src/entities/activity/namespace.d.ts +58 -0
  48. package/dist/src/entities/activity/namespace.test.d.ts +1 -0
  49. package/dist/src/entities/agent-sessions/activity.d.ts +12 -3
  50. package/dist/src/entities/agent-sessions/agent-session.d.ts +209 -22
  51. package/dist/src/entities/agent-sessions/code-execution.d.ts +15 -3
  52. package/dist/src/entities/agent-sessions/conversation.d.ts +46 -9
  53. package/dist/src/entities/agent-sessions/namespace.d.ts +72 -16
  54. package/dist/src/entities/agent-sessions/origin.d.ts +1 -1
  55. package/dist/src/entities/agent-sessions/queued-action.d.ts +17 -3
  56. package/dist/src/entities/agent-sessions/review.d.ts +56 -5
  57. package/dist/src/entities/agent-sessions/tool-approval.d.ts +5 -1
  58. package/dist/src/entities/agents/agent.d.ts +98 -3
  59. package/dist/src/entities/agents/namespace.d.ts +52 -8
  60. package/dist/src/entities/ai/namespace.d.ts +10 -2
  61. package/dist/src/entities/api-keys/api-key.d.ts +6 -1
  62. package/dist/src/entities/api-keys/namespace.d.ts +18 -3
  63. package/dist/src/entities/bots/bot.d.ts +44 -9
  64. package/dist/src/entities/bots/namespace.d.ts +13 -1
  65. package/dist/src/entities/bots/token.d.ts +6 -1
  66. package/dist/src/entities/calendar/booking-link.d.ts +7 -1
  67. package/dist/src/entities/calendar/booking-namespace.d.ts +14 -1
  68. package/dist/src/entities/calendar/booking.d.ts +15 -0
  69. package/dist/src/entities/calendar/calendar.d.ts +10 -3
  70. package/dist/src/entities/calendar/event.d.ts +68 -9
  71. package/dist/src/entities/calendar/namespace.d.ts +91 -12
  72. package/dist/src/entities/calendar/replacement.d.ts +19 -3
  73. package/dist/src/entities/calls/call-record.d.ts +107 -17
  74. package/dist/src/entities/calls/connection.d.ts +7 -1
  75. package/dist/src/entities/calls/message.d.ts +27 -5
  76. package/dist/src/entities/calls/namespace.d.ts +15 -3
  77. package/dist/src/entities/canvases/canvas.d.ts +329 -0
  78. package/dist/src/entities/channels/access-request.d.ts +10 -2
  79. package/dist/src/entities/channels/activity.d.ts +20 -4
  80. package/dist/src/entities/channels/channel.d.ts +154 -27
  81. package/dist/src/entities/channels/labels.d.ts +41 -7
  82. package/dist/src/entities/channels/message.d.ts +105 -8
  83. package/dist/src/entities/channels/message.test.d.ts +1 -0
  84. package/dist/src/entities/channels/namespace.d.ts +37 -7
  85. package/dist/src/entities/channels/post.d.ts +13 -7
  86. package/dist/src/entities/channels/post.test.d.ts +1 -0
  87. package/dist/src/entities/channels/share.d.ts +9 -0
  88. package/dist/src/entities/channels/share.test.d.ts +1 -0
  89. package/dist/src/entities/channels/thread.d.ts +24 -4
  90. package/dist/src/entities/chats/chat.d.ts +57 -7
  91. package/dist/src/entities/chats/generation.d.ts +11 -2
  92. package/dist/src/entities/chats/namespace.d.ts +10 -2
  93. package/dist/src/entities/connected-apps/connected-app.d.ts +16 -2
  94. package/dist/src/entities/connected-apps/connector.d.ts +3 -0
  95. package/dist/src/entities/connected-apps/namespace.d.ts +18 -0
  96. package/dist/src/entities/crm/company.d.ts +64 -16
  97. package/dist/src/entities/crm/contact.d.ts +102 -14
  98. package/dist/src/entities/crm/namespace.d.ts +113 -22
  99. package/dist/src/entities/crm/pipeline-entry.d.ts +109 -0
  100. package/dist/src/entities/crm/pipeline.d.ts +292 -29
  101. package/dist/src/entities/crm/pipelines.d.ts +69 -4
  102. package/dist/src/entities/crm-email-privacy/email-privacy.d.ts +238 -0
  103. package/dist/src/entities/crm-email-privacy/email-rule-preview.d.ts +55 -0
  104. package/dist/src/entities/crm-email-privacy/email-rule-revision.d.ts +27 -0
  105. package/dist/src/entities/crm-email-privacy/email-rules.d.ts +32 -0
  106. package/dist/src/entities/databases/column.d.ts +54 -7
  107. package/dist/src/entities/databases/database.d.ts +160 -18
  108. package/dist/src/entities/databases/namespace.d.ts +40 -8
  109. package/dist/src/entities/databases/row.d.ts +2 -0
  110. package/dist/src/entities/databases/saved-query.d.ts +151 -0
  111. package/dist/src/entities/databases/table.d.ts +73 -10
  112. package/dist/src/entities/databases/view.d.ts +37 -5
  113. package/dist/src/entities/databases/webhook.d.ts +8 -1
  114. package/dist/src/entities/documents/ai-edit.d.ts +2 -0
  115. package/dist/src/entities/documents/anchor.d.ts +12 -2
  116. package/dist/src/entities/documents/comment.d.ts +29 -5
  117. package/dist/src/entities/documents/create.test.d.ts +1 -0
  118. package/dist/src/entities/documents/document.d.ts +284 -26
  119. package/dist/src/entities/documents/markdown.d.ts +25 -0
  120. package/dist/src/entities/documents/namespace.d.ts +146 -13
  121. package/dist/src/entities/documents/skills.test.d.ts +1 -0
  122. package/dist/src/entities/documents/system-skill.d.ts +21 -1
  123. package/dist/src/entities/documents/text-comment.d.ts +41 -0
  124. package/dist/src/entities/documents/text-comment.test.d.ts +1 -0
  125. package/dist/src/entities/documents/version.d.ts +5 -1
  126. package/dist/src/entities/email/attachment.d.ts +3 -0
  127. package/dist/src/entities/email/draft.d.ts +61 -9
  128. package/dist/src/entities/email/filter.d.ts +12 -2
  129. package/dist/src/entities/email/label.d.ts +7 -1
  130. package/dist/src/entities/email/link.d.ts +5 -1
  131. package/dist/src/entities/email/message.d.ts +72 -14
  132. package/dist/src/entities/email/namespace.d.ts +134 -24
  133. package/dist/src/entities/email/thread.d.ts +124 -18
  134. package/dist/src/entities/entity-mentions/mention.d.ts +6 -1
  135. package/dist/src/entities/entity-mentions/namespace.d.ts +5 -1
  136. package/dist/src/entities/entity.d.ts +65 -6
  137. package/dist/src/entities/external-chat/chat.d.ts +80 -12
  138. package/dist/src/entities/external-chat/message.d.ts +1 -1
  139. package/dist/src/entities/external-chat/namespace.d.ts +5 -1
  140. package/dist/src/entities/external-chat/send.d.ts +10 -2
  141. package/dist/src/entities/favorites/namespace.d.ts +20 -3
  142. package/dist/src/entities/foreign/foreign-entity.d.ts +5 -1
  143. package/dist/src/entities/foreign/namespace.d.ts +5 -1
  144. package/dist/src/entities/forms/form.d.ts +91 -14
  145. package/dist/src/entities/forms/namespace.d.ts +10 -2
  146. package/dist/src/entities/forms/question.d.ts +35 -7
  147. package/dist/src/entities/forms/response.d.ts +25 -5
  148. package/dist/src/entities/forms/section.d.ts +15 -3
  149. package/dist/src/entities/github-pull-requests/namespace.d.ts +5 -1
  150. package/dist/src/entities/github-pull-requests/pull-request.d.ts +15 -3
  151. package/dist/src/entities/harnesses/harness.d.ts +51 -3
  152. package/dist/src/entities/harnesses/namespace.d.ts +54 -8
  153. package/dist/src/entities/harnesses/pairing.d.ts +13 -2
  154. package/dist/src/entities/images/image.d.ts +16 -5
  155. package/dist/src/entities/images/namespace.d.ts +8 -1
  156. package/dist/src/entities/imports/entry.d.ts +65 -0
  157. package/dist/src/entities/imports/namespace.d.ts +103 -0
  158. package/dist/src/entities/imports/namespace.test.d.ts +1 -0
  159. package/dist/src/entities/initiatives/initiative.d.ts +128 -4
  160. package/dist/src/entities/initiatives/initiative.test.d.ts +1 -0
  161. package/dist/src/entities/initiatives/namespace.d.ts +71 -7
  162. package/dist/src/entities/me/namespace.d.ts +28 -3
  163. package/dist/src/entities/meetings/meeting.d.ts +46 -8
  164. package/dist/src/entities/meetings/namespace.d.ts +20 -4
  165. package/dist/src/entities/memory/namespace.d.ts +49 -0
  166. package/dist/src/entities/memory/namespace.test.d.ts +1 -0
  167. package/dist/src/entities/messages/discussion.d.ts +84 -0
  168. package/dist/src/entities/messages/thread.d.ts +19 -5
  169. package/dist/src/entities/notifications/namespace.d.ts +41 -7
  170. package/dist/src/entities/notifications/notification.d.ts +31 -6
  171. package/dist/src/entities/passwords/item.d.ts +118 -0
  172. package/dist/src/entities/passwords/namespace.d.ts +45 -0
  173. package/dist/src/entities/pins/namespace.d.ts +23 -4
  174. package/dist/src/entities/projects/namespace.d.ts +29 -0
  175. package/dist/src/entities/projects/project.d.ts +58 -7
  176. package/dist/src/entities/properties/namespace.d.ts +67 -11
  177. package/dist/src/entities/properties/namespace.test.d.ts +1 -0
  178. package/dist/src/entities/properties/property-definition.d.ts +30 -5
  179. package/dist/src/entities/properties/property-option.d.ts +14 -2
  180. package/dist/src/entities/referrals/namespace.d.ts +8 -1
  181. package/dist/src/entities/routines/namespace.d.ts +198 -14
  182. package/dist/src/entities/routines/routine.d.ts +174 -27
  183. package/dist/src/entities/routines/suggestion.d.ts +38 -0
  184. package/dist/src/entities/saved-views/namespace.d.ts +58 -0
  185. package/dist/src/entities/saved-views/saved-view.d.ts +78 -0
  186. package/dist/src/entities/search/exclusions.d.ts +6 -0
  187. package/dist/src/entities/search/namespace.d.ts +9 -3
  188. package/dist/src/entities/search/options.d.ts +3 -2
  189. package/dist/src/entities/sharing/access.d.ts +50 -9
  190. package/dist/src/entities/spreadsheets/spreadsheet.d.ts +201 -0
  191. package/dist/src/entities/suggestions/namespace.d.ts +118 -0
  192. package/dist/src/entities/suggestions/suggestion.d.ts +172 -0
  193. package/dist/src/entities/suggestions/suggestion.test.d.ts +1 -0
  194. package/dist/src/entities/tasks/namespace.d.ts +18 -5
  195. package/dist/src/entities/tasks/task.d.ts +21 -3
  196. package/dist/src/entities/teams/invite.d.ts +3 -0
  197. package/dist/src/entities/teams/namespace.d.ts +10 -2
  198. package/dist/src/entities/teams/team.d.ts +22 -2
  199. package/dist/src/entities/ui/app-link.d.ts +24 -0
  200. package/dist/src/entities/ui/namespace.d.ts +75 -0
  201. package/dist/src/entities/unfurls/namespace.d.ts +12 -2
  202. package/dist/src/entities/users/namespace.d.ts +26 -4
  203. package/dist/src/entities/users/profile-picture.d.ts +29 -0
  204. package/dist/src/entities/users/profile-picture.test.d.ts +1 -0
  205. package/dist/src/entities/users/user.d.ts +52 -1
  206. package/dist/src/entities/web/namespace.d.ts +6 -0
  207. package/dist/src/entities/webhooks/namespace.d.ts +5 -0
  208. package/dist/src/entities/webhooks/webhook.d.ts +47 -7
  209. package/dist/src/entities/whatsapp/account.d.ts +5 -1
  210. package/dist/src/entities/whatsapp/chat.d.ts +9 -1
  211. package/dist/src/entities/whatsapp/namespace.d.ts +7 -1
  212. package/dist/src/entities/workspace/namespace.d.ts +12 -4
  213. package/dist/src/entities/workspace/query.d.ts +5 -1
  214. package/dist/src/entities/workspace/query.test.d.ts +1 -0
  215. package/dist/src/events/hydrate/document.d.ts +5 -0
  216. package/dist/src/events/hydrate/user.d.ts +14 -0
  217. package/dist/src/events/receiver.d.ts +2 -0
  218. package/dist/src/events/types.d.ts +2 -1
  219. package/dist/src/macro.d.ts +59 -6
  220. package/dist/src/macro.js +18710 -10355
  221. package/dist/src/utils/activity.d.ts +2 -0
  222. package/dist/src/utils/index.d.ts +1 -1
  223. package/dist/src/utils/lazy.d.ts +20 -1
  224. package/dist/src/utils/options.d.ts +7 -0
  225. package/dist/src/utils/pagination.d.ts +16 -0
  226. package/dist/src/utils/verbs.d.ts +3 -0
  227. package/package.json +1 -1
  228. package/dist/src/entities/crm/comment.d.ts +0 -64
@@ -899,6 +899,20 @@ var Sdk = class _Sdk extends HeyApiClient {
899
899
  }
900
900
  });
901
901
  }
902
+ /**
903
+ * Handler for `PATCH /agents/{agent_id}`: change only the settings the body
904
+ * names, keeping every other one, as the `ConfigureAgent` tool does.
905
+ */
906
+ patchAgent(options) {
907
+ return (options.client ?? this.client).patch({
908
+ url: "/agents/{agent_id}",
909
+ ...options,
910
+ headers: {
911
+ "Content-Type": "application/json",
912
+ ...options.headers
913
+ }
914
+ });
915
+ }
902
916
  /**
903
917
  * Handler for `PUT /agents/{agent_id}`.
904
918
  */
@@ -1086,6 +1100,19 @@ var Sdk = class _Sdk extends HeyApiClient {
1086
1100
  listTeamOutOfOffice(options) {
1087
1101
  return (options.client ?? this.client).get({ url: "/calendar-events/team-out-of-office", ...options });
1088
1102
  }
1103
+ /**
1104
+ * Merge the requester's and selected teammates' busy time in a bounded window.
1105
+ */
1106
+ getTeamAvailability(options) {
1107
+ return (options.client ?? this.client).post({
1108
+ url: "/calendar-events/team/availability",
1109
+ ...options,
1110
+ headers: {
1111
+ "Content-Type": "application/json",
1112
+ ...options.headers
1113
+ }
1114
+ });
1115
+ }
1089
1116
  /**
1090
1117
  * Export an event the requester can see — their own, or one shared with a
1091
1118
  * channel they belong to — as an iCalendar file named after its title.
@@ -1143,6 +1170,57 @@ var Sdk = class _Sdk extends HeyApiClient {
1143
1170
  }
1144
1171
  });
1145
1172
  }
1173
+ /**
1174
+ * Post a guest message to the shared call thread.
1175
+ */
1176
+ guestCallChatPostMessage(options) {
1177
+ return (options.client ?? this.client).post({
1178
+ url: "/call/guest-chat/{call_id}/messages",
1179
+ ...options,
1180
+ headers: {
1181
+ "Content-Type": "application/json",
1182
+ ...options.headers
1183
+ }
1184
+ });
1185
+ }
1186
+ /**
1187
+ * Delete a message owned by this guest.
1188
+ */
1189
+ guestCallChatDeleteMessage(options) {
1190
+ return (options.client ?? this.client).delete({ url: "/call/guest-chat/{call_id}/messages/{message_id}", ...options });
1191
+ }
1192
+ /**
1193
+ * Edit a message owned by this guest.
1194
+ */
1195
+ guestCallChatPatchMessage(options) {
1196
+ return (options.client ?? this.client).patch({
1197
+ url: "/call/guest-chat/{call_id}/messages/{message_id}",
1198
+ ...options,
1199
+ headers: {
1200
+ "Content-Type": "application/json",
1201
+ ...options.headers
1202
+ }
1203
+ });
1204
+ }
1205
+ /**
1206
+ * Add or remove this guest's reaction.
1207
+ */
1208
+ guestCallChatReactMessage(options) {
1209
+ return (options.client ?? this.client).post({
1210
+ url: "/call/guest-chat/{call_id}/messages/{message_id}/reactions",
1211
+ ...options,
1212
+ headers: {
1213
+ "Content-Type": "application/json",
1214
+ ...options.headers
1215
+ }
1216
+ });
1217
+ }
1218
+ /**
1219
+ * Read the shared call thread with identities redacted.
1220
+ */
1221
+ guestCallChatReadThread(options) {
1222
+ return (options.client ?? this.client).get({ url: "/call/guest-chat/{call_id}/thread", ...options });
1223
+ }
1146
1224
  /**
1147
1225
  * Handle `GET /call/join/{token}` through the call domain service.
1148
1226
  */
@@ -1572,6 +1650,70 @@ var Sdk = class _Sdk extends HeyApiClient {
1572
1650
  }
1573
1651
  });
1574
1652
  }
1653
+ /**
1654
+ * List the caller's shared or private labels.
1655
+ */
1656
+ listChannelSections(options) {
1657
+ return (options?.client ?? this.client).get({ url: "/channel-sections", ...options });
1658
+ }
1659
+ /**
1660
+ * Create a label for the caller's authorized scope.
1661
+ */
1662
+ createChannelSection(options) {
1663
+ return (options.client ?? this.client).post({
1664
+ url: "/channel-sections",
1665
+ ...options,
1666
+ headers: {
1667
+ "Content-Type": "application/json",
1668
+ ...options.headers
1669
+ }
1670
+ });
1671
+ }
1672
+ /**
1673
+ * Move a channel into a label of the caller's authorized scope, or out of any label.
1674
+ */
1675
+ setChannelSection(options) {
1676
+ return (options.client ?? this.client).put({
1677
+ url: "/channel-sections/channels/{channel_id}",
1678
+ ...options,
1679
+ headers: {
1680
+ "Content-Type": "application/json",
1681
+ ...options.headers
1682
+ }
1683
+ });
1684
+ }
1685
+ /**
1686
+ * Preview visible channels matched by a smart tag, without creating it.
1687
+ */
1688
+ previewChannelSection(options) {
1689
+ return (options.client ?? this.client).post({
1690
+ url: "/channel-sections/preview",
1691
+ ...options,
1692
+ headers: {
1693
+ "Content-Type": "application/json",
1694
+ ...options.headers
1695
+ }
1696
+ });
1697
+ }
1698
+ /**
1699
+ * Delete a label of the caller's authorized scope. Its channels return to the plain list.
1700
+ */
1701
+ deleteChannelSection(options) {
1702
+ return (options.client ?? this.client).delete({ url: "/channel-sections/{label_id}", ...options });
1703
+ }
1704
+ /**
1705
+ * Update a label, optionally moving it to another authorized scope.
1706
+ */
1707
+ updateChannelSection(options) {
1708
+ return (options.client ?? this.client).patch({
1709
+ url: "/channel-sections/{label_id}",
1710
+ ...options,
1711
+ headers: {
1712
+ "Content-Type": "application/json",
1713
+ ...options.headers
1714
+ }
1715
+ });
1716
+ }
1575
1717
  /**
1576
1718
  * Handler for `POST /channels`.
1577
1719
  */
@@ -1837,6 +1979,24 @@ var Sdk = class _Sdk extends HeyApiClient {
1837
1979
  }
1838
1980
  });
1839
1981
  }
1982
+ /**
1983
+ * Handler for `POST /channels/{channel_id}/shares`.
1984
+ *
1985
+ * Grants the channel's current members access to one item, the way posting
1986
+ * it in a message does. Calendar events can be shared only from the caller's
1987
+ * own calendar, and private or confidential events are refused. Sharing again
1988
+ * is a no-op.
1989
+ */
1990
+ shareWithChannel(options) {
1991
+ return (options.client ?? this.client).post({
1992
+ url: "/channels/{channel_id}/shares",
1993
+ ...options,
1994
+ headers: {
1995
+ "Content-Type": "application/json",
1996
+ ...options.headers
1997
+ }
1998
+ });
1999
+ }
1840
2000
  /**
1841
2001
  * Handler for `POST /channels/{channel_id}/webhook`.
1842
2002
  */
@@ -1900,16 +2060,16 @@ var Sdk = class _Sdk extends HeyApiClient {
1900
2060
  return (options?.client ?? this.client).get({ url: "/crm/blocked-domains", ...options });
1901
2061
  }
1902
2062
  /**
1903
- * Unblock a domain: email sync resumes for it, and what blocking hid is
1904
- * shown again. Idempotent. Requires an admin/owner team role (403).
2063
+ * Remove a team domain exclusion and schedule eligible email backfill,
2064
+ * preserving record visibility. Idempotent. Requires an admin/owner role (403).
1905
2065
  */
1906
2066
  unblockCrmDomain(options) {
1907
2067
  return (options.client ?? this.client).delete({ url: "/crm/blocked-domains/{domain}", ...options });
1908
2068
  }
1909
2069
  /**
1910
- * Block a domain: email sync stops creating or updating CRM records for
1911
- * it, and the company and contacts the CRM holds for it are hidden.
1912
- * Idempotent. Requires an admin/owner team role (403).
2070
+ * Block a domain and its subdomains from email contributions, preserving records.
2071
+ * Refuses a domain covering any member's connected primary mailbox (400).
2072
+ * Idempotent for permitted domains. Requires an admin/owner team role (403).
1913
2073
  */
1914
2074
  blockCrmDomain(options) {
1915
2075
  return (options.client ?? this.client).put({ url: "/crm/blocked-domains/{domain}", ...options });
@@ -1931,6 +2091,20 @@ var Sdk = class _Sdk extends HeyApiClient {
1931
2091
  }
1932
2092
  });
1933
2093
  }
2094
+ /**
2095
+ * Create the companies a CSV lists, and put its Stage, Owner and Revenue
2096
+ * values on entries of a company pipeline.
2097
+ */
2098
+ importCrmCompaniesCsv(options) {
2099
+ return (options.client ?? this.client).post({
2100
+ url: "/crm/companies/import",
2101
+ ...options,
2102
+ headers: {
2103
+ "Content-Type": "application/json",
2104
+ ...options.headers
2105
+ }
2106
+ });
2107
+ }
1934
2108
  /**
1935
2109
  * Fetch a single CRM company by id, hydrated with its domains, the
1936
2110
  * primary domain's directory display metadata (name + description),
@@ -1972,9 +2146,18 @@ var Sdk = class _Sdk extends HeyApiClient {
1972
2146
  });
1973
2147
  }
1974
2148
  /**
1975
- * Toggle `email_sync` on a CRM company. Purely a visibility flag —
1976
- * it gates whether team members can see each other's emails with
1977
- * this company. Existing CRM data is unaffected.
2149
+ * List a CRM company's contacts a page at a time, filtered by archive
2150
+ * state and an optional name or email search. Access is enforced by
2151
+ * [`CrmCompanyAccessLevelExtractor`] as for
2152
+ * `GET /crm/companies/{company_id}/contacts`; hidden contacts are
2153
+ * invisible to plain members.
2154
+ */
2155
+ listCompanyContactsPage(options) {
2156
+ return (options.client ?? this.client).get({ url: "/crm/companies/{company_id}/contacts/page", ...options });
2157
+ }
2158
+ /**
2159
+ * Toggle email contribution for a CRM company without archiving its records.
2160
+ * Individual consent and all remaining exclusions still apply.
1978
2161
  */
1979
2162
  setEmailSync(options) {
1980
2163
  return (options.client ?? this.client).put({
@@ -2055,15 +2238,78 @@ var Sdk = class _Sdk extends HeyApiClient {
2055
2238
  return (options.client ?? this.client).get({ url: "/crm/contacts/by-email", ...options });
2056
2239
  }
2057
2240
  /**
2058
- * Fetch a single CRM contact by id. Access is enforced by
2059
- * [`CrmContactAccessLevelExtractor`]: the user must be on the team that
2060
- * owns the contact's parent company, and hidden contacts are invisible
2061
- * to plain members. Admin/owner callers see hidden contacts so they can
2062
- * render the right unhide UI.
2241
+ * Fetch a single CRM contact by id, with its company's name and
2242
+ * visibility. Access is enforced by [`CrmContactAccessLevelExtractor`]:
2243
+ * the user must be on the team that owns the contact, and hidden
2244
+ * contacts are invisible to plain members. Admin/owner callers see
2245
+ * hidden contacts so they can render the right unhide UI.
2063
2246
  */
2064
2247
  getContact(options) {
2065
2248
  return (options.client ?? this.client).get({ url: "/crm/contacts/{contact_id}", ...options });
2066
2249
  }
2250
+ /**
2251
+ * Remove a contact's company link. A contact with an address on one of its
2252
+ * company's domains cannot be unlinked. Idempotent.
2253
+ */
2254
+ unlinkCrmContactCompany(options) {
2255
+ return (options.client ?? this.client).delete({ url: "/crm/contacts/{contact_id}/company", ...options });
2256
+ }
2257
+ /**
2258
+ * Update an existing team-owned contact without merging its identity.
2259
+ */
2260
+ setCrmContactCompany(options) {
2261
+ return (options.client ?? this.client).put({
2262
+ url: "/crm/contacts/{contact_id}/company",
2263
+ ...options,
2264
+ headers: {
2265
+ "Content-Type": "application/json",
2266
+ ...options.headers
2267
+ }
2268
+ });
2269
+ }
2270
+ /**
2271
+ * Update an existing team-owned contact without merging its identity.
2272
+ */
2273
+ setCrmContactEmail(options) {
2274
+ return (options.client ?? this.client).put({
2275
+ url: "/crm/contacts/{contact_id}/email",
2276
+ ...options,
2277
+ headers: {
2278
+ "Content-Type": "application/json",
2279
+ ...options.headers
2280
+ }
2281
+ });
2282
+ }
2283
+ /**
2284
+ * Remove an address from a contact. Nothing else is deleted: the contact
2285
+ * stops showing that address's email history. Removing the primary promotes
2286
+ * the oldest address left. The last address on a domain of the contact's
2287
+ * company cannot be removed while the contact is linked to it. Idempotent.
2288
+ */
2289
+ removeCrmContactEmail(options) {
2290
+ return (options.client ?? this.client).delete({
2291
+ url: "/crm/contacts/{contact_id}/emails",
2292
+ ...options,
2293
+ headers: {
2294
+ "Content-Type": "application/json",
2295
+ ...options.headers
2296
+ }
2297
+ });
2298
+ }
2299
+ /**
2300
+ * Add an address to a contact. It must not belong to another contact in the
2301
+ * team, and becomes the primary only when the contact has none. Idempotent.
2302
+ */
2303
+ addCrmContactEmail(options) {
2304
+ return (options.client ?? this.client).put({
2305
+ url: "/crm/contacts/{contact_id}/emails",
2306
+ ...options,
2307
+ headers: {
2308
+ "Content-Type": "application/json",
2309
+ ...options.headers
2310
+ }
2311
+ });
2312
+ }
2067
2313
  /**
2068
2314
  * Toggle `hidden` on a CRM contact. Hiding is a display-only opt-out
2069
2315
  * scoped to the team that owns the contact's company.
@@ -2096,17 +2342,17 @@ var Sdk = class _Sdk extends HeyApiClient {
2096
2342
  });
2097
2343
  }
2098
2344
  /**
2099
- * List the caller's live pipelines in their CRM.
2345
+ * Read the caller's mailbox consent and both exclusion lists.
2100
2346
  */
2101
- listCrmPipelines(options) {
2102
- return (options?.client ?? this.client).get({ url: "/crm/pipelines", ...options });
2347
+ getCrmEmailPrivacy(options) {
2348
+ return (options?.client ?? this.client).get({ url: "/crm/email-privacy", ...options });
2103
2349
  }
2104
2350
  /**
2105
- * Create a private or team-shared pipeline.
2351
+ * Apply one consent, domain, or thread exclusion change as the member.
2106
2352
  */
2107
- createCrmPipeline(options) {
2108
- return (options.client ?? this.client).post({
2109
- url: "/crm/pipelines",
2353
+ updateCrmEmailPrivacy(options) {
2354
+ return (options.client ?? this.client).put({
2355
+ url: "/crm/email-privacy",
2110
2356
  ...options,
2111
2357
  headers: {
2112
2358
  "Content-Type": "application/json",
@@ -2115,17 +2361,17 @@ var Sdk = class _Sdk extends HeyApiClient {
2115
2361
  });
2116
2362
  }
2117
2363
  /**
2118
- * Read one pipeline by its entity identity.
2364
+ * Read sharing state without initializing consent or scheduling work.
2119
2365
  */
2120
- getCrmPipeline(options) {
2121
- return (options.client ?? this.client).get({ url: "/crm/pipelines/{id}", ...options });
2366
+ getCrmEmailPolicy(options) {
2367
+ return (options?.client ?? this.client).get({ url: "/crm/email-privacy/policy", ...options });
2122
2368
  }
2123
2369
  /**
2124
- * Rename a pipeline.
2370
+ * Direct member/agent activation with CAS, idempotency and verified audit.
2125
2371
  */
2126
- renameCrmPipeline(options) {
2372
+ updateCrmEmailPolicy(options) {
2127
2373
  return (options.client ?? this.client).put({
2128
- url: "/crm/pipelines/{id}/name",
2374
+ url: "/crm/email-privacy/policy",
2129
2375
  ...options,
2130
2376
  headers: {
2131
2377
  "Content-Type": "application/json",
@@ -2134,11 +2380,23 @@ var Sdk = class _Sdk extends HeyApiClient {
2134
2380
  });
2135
2381
  }
2136
2382
  /**
2137
- * Edit pipeline schema or records with the common typed operations.
2383
+ * Read only the acting member's audit history.
2138
2384
  */
2139
- applyCrmPipelineOps(options) {
2385
+ listCrmEmailPolicyHistory(options) {
2386
+ return (options?.client ?? this.client).get({ url: "/crm/email-privacy/policy/history", ...options });
2387
+ }
2388
+ /**
2389
+ * Inspect the owner's current count preview; no email content is returned.
2390
+ */
2391
+ getCrmEmailRulePreview(options) {
2392
+ return (options?.client ?? this.client).get({ url: "/crm/email-privacy/policy/preview", ...options });
2393
+ }
2394
+ /**
2395
+ * Start optional count-only work; this never initializes or activates consent.
2396
+ */
2397
+ previewCrmEmailRules(options) {
2140
2398
  return (options.client ?? this.client).post({
2141
- url: "/crm/pipelines/{id}/ops",
2399
+ url: "/crm/email-privacy/policy/preview",
2142
2400
  ...options,
2143
2401
  headers: {
2144
2402
  "Content-Type": "application/json",
@@ -2147,18 +2405,23 @@ var Sdk = class _Sdk extends HeyApiClient {
2147
2405
  });
2148
2406
  }
2149
2407
  /**
2150
- * Read the owner, team grant and channel recipients of a pipeline the caller can edit.
2408
+ * Cancel the owner's current named preview, including while rollout is off.
2151
2409
  */
2152
- getCrmPipelinePermissions(options) {
2153
- return (options.client ?? this.client).get({ url: "/crm/pipelines/{id}/permissions", ...options });
2410
+ cancelCrmEmailRulePreview(options) {
2411
+ return (options.client ?? this.client).delete({ url: "/crm/email-privacy/policy/preview/{preview_id}", ...options });
2154
2412
  }
2155
2413
  /**
2156
- * Share a pipeline the caller can edit with channels, or change or remove
2157
- * their access. Team access changes through `/sharing`; there is no share link.
2414
+ * Fetch one saved definition, independently of live CRM viewing permission.
2158
2415
  */
2159
- updateCrmPipelinePermissions(options) {
2160
- return (options.client ?? this.client).patch({
2161
- url: "/crm/pipelines/{id}/permissions",
2416
+ getCrmEmailRuleRevision(options) {
2417
+ return (options.client ?? this.client).get({ url: "/crm/email-privacy/policy/revisions/{revision}", ...options });
2418
+ }
2419
+ /**
2420
+ * Canonicalize and authorize a definition without sharing mail.
2421
+ */
2422
+ validateCrmEmailRules(options) {
2423
+ return (options.client ?? this.client).post({
2424
+ url: "/crm/email-privacy/policy/validate",
2162
2425
  ...options,
2163
2426
  headers: {
2164
2427
  "Content-Type": "application/json",
@@ -2167,17 +2430,29 @@ var Sdk = class _Sdk extends HeyApiClient {
2167
2430
  });
2168
2431
  }
2169
2432
  /**
2170
- * Read pipeline records through pipeline access.
2433
+ * List only the authenticated member's thread exclusions.
2171
2434
  */
2172
- getCrmPipelineRows(options) {
2173
- return (options.client ?? this.client).get({ url: "/crm/pipelines/{id}/rows", ...options });
2435
+ listCrmExcludedEmailThreads(options) {
2436
+ return (options?.client ?? this.client).get({ url: "/crm/email-privacy/threads", ...options });
2174
2437
  }
2175
2438
  /**
2176
- * Query rows through pipeline access using the shared view protocol.
2439
+ * Read fresh authority without requiring CRM access.
2177
2440
  */
2178
- queryCrmPipelineRows(options) {
2441
+ getCrmMemberAccess(options) {
2442
+ return (options?.client ?? this.client).get({ url: "/crm/member-access", ...options });
2443
+ }
2444
+ /**
2445
+ * List the caller's live pipelines in their CRM.
2446
+ */
2447
+ listCrmPipelines(options) {
2448
+ return (options?.client ?? this.client).get({ url: "/crm/pipelines", ...options });
2449
+ }
2450
+ /**
2451
+ * Create a private or team-shared pipeline.
2452
+ */
2453
+ createCrmPipeline(options) {
2179
2454
  return (options.client ?? this.client).post({
2180
- url: "/crm/pipelines/{id}/rows",
2455
+ url: "/crm/pipelines",
2181
2456
  ...options,
2182
2457
  headers: {
2183
2458
  "Content-Type": "application/json",
@@ -2186,11 +2461,12 @@ var Sdk = class _Sdk extends HeyApiClient {
2186
2461
  });
2187
2462
  }
2188
2463
  /**
2189
- * Update sharing.
2464
+ * Create a pipeline with its stages, replacing the team's defaults, and its
2465
+ * fields, in one call.
2190
2466
  */
2191
- shareCrmPipeline(options) {
2192
- return (options.client ?? this.client).put({
2193
- url: "/crm/pipelines/{id}/sharing",
2467
+ createCrmPipelineWithFields(options) {
2468
+ return (options.client ?? this.client).post({
2469
+ url: "/crm/pipelines/create",
2194
2470
  ...options,
2195
2471
  headers: {
2196
2472
  "Content-Type": "application/json",
@@ -2199,17 +2475,27 @@ var Sdk = class _Sdk extends HeyApiClient {
2199
2475
  });
2200
2476
  }
2201
2477
  /**
2202
- * Read requirements by stable stage and field identities.
2478
+ * The caller's live pipelines, each with its fields in column order (a
2479
+ * select field lists its options, so Stage lists the stages) and its table
2480
+ * version: what `ListPipelines` gives the agent, in one call.
2203
2481
  */
2204
- getCrmPipelineStageRequirements(options) {
2205
- return (options.client ?? this.client).get({ url: "/crm/pipelines/{id}/stage-requirements", ...options });
2482
+ listCrmPipelineDetails(options) {
2483
+ return (options?.client ?? this.client).get({ url: "/crm/pipelines/details", ...options });
2206
2484
  }
2207
2485
  /**
2208
- * Replace the required fields for one stage. An empty list removes its rule.
2486
+ * Entries whose company or contact matches the search, across the caller's
2487
+ * pipelines; pipelines without a match are left out.
2209
2488
  */
2210
- setCrmPipelineStageRequirement(options) {
2211
- return (options.client ?? this.client).put({
2212
- url: "/crm/pipelines/{id}/stage-requirements",
2489
+ searchCrmPipelineEntries(options) {
2490
+ return (options.client ?? this.client).get({ url: "/crm/pipelines/entry-search", ...options });
2491
+ }
2492
+ /**
2493
+ * Every entry tracking one of the records, across the caller's pipelines;
2494
+ * pipelines without one are left out.
2495
+ */
2496
+ listCrmRecordPipelineEntries(options) {
2497
+ return (options.client ?? this.client).post({
2498
+ url: "/crm/pipelines/record-entries",
2213
2499
  ...options,
2214
2500
  headers: {
2215
2501
  "Content-Type": "application/json",
@@ -2218,17 +2504,219 @@ var Sdk = class _Sdk extends HeyApiClient {
2218
2504
  });
2219
2505
  }
2220
2506
  /**
2221
- * Read the host-owned table schema.
2507
+ * Read one pipeline by its entity identity.
2222
2508
  */
2223
- getCrmPipelineTable(options) {
2224
- return (options.client ?? this.client).get({ url: "/crm/pipelines/{id}/table", ...options });
2509
+ getCrmPipeline(options) {
2510
+ return (options.client ?? this.client).get({ url: "/crm/pipelines/{id}", ...options });
2225
2511
  }
2226
2512
  /**
2227
- * Trash or restore a pipeline.
2513
+ * Every entry as CSV text: Company and Domain (or Contact and Email), then
2514
+ * one column per field, people as emails. An import reads the same layout.
2228
2515
  */
2229
- trashCrmPipeline(options) {
2230
- return (options.client ?? this.client).put({
2231
- url: "/crm/pipelines/{id}/trash",
2516
+ getCrmPipelineCsv(options) {
2517
+ return (options.client ?? this.client).get({ url: "/crm/pipelines/{id}/csv", ...options });
2518
+ }
2519
+ /**
2520
+ * Rename or share a pipeline, and add, rename or delete its fields and
2521
+ * options by name, in one change.
2522
+ */
2523
+ editCrmPipeline(options) {
2524
+ return (options.client ?? this.client).post({
2525
+ url: "/crm/pipelines/{id}/edit",
2526
+ ...options,
2527
+ headers: {
2528
+ "Content-Type": "application/json",
2529
+ ...options.headers
2530
+ }
2531
+ });
2532
+ }
2533
+ /**
2534
+ * Set fields of entries by name, all or nothing; a stage takes its label.
2535
+ */
2536
+ updateCrmPipelineEntries(options) {
2537
+ return (options.client ?? this.client).patch({
2538
+ url: "/crm/pipelines/{id}/entries",
2539
+ ...options,
2540
+ headers: {
2541
+ "Content-Type": "application/json",
2542
+ ...options.headers
2543
+ }
2544
+ });
2545
+ }
2546
+ /**
2547
+ * Add entries, filling fields by name: companies or contacts in a tracked
2548
+ * pipeline, free-form rows in a generic one. A record already in the
2549
+ * pipeline is returned in `alreadyPresent` instead, unless `allowDuplicates`.
2550
+ */
2551
+ addCrmPipelineEntries(options) {
2552
+ return (options.client ?? this.client).post({
2553
+ url: "/crm/pipelines/{id}/entries",
2554
+ ...options,
2555
+ headers: {
2556
+ "Content-Type": "application/json",
2557
+ ...options.headers
2558
+ }
2559
+ });
2560
+ }
2561
+ /**
2562
+ * Entries of one pipeline matching filters, records or a search, with
2563
+ * per-option counts and number totals over every match.
2564
+ */
2565
+ findCrmPipelineEntries(options) {
2566
+ return (options.client ?? this.client).post({
2567
+ url: "/crm/pipelines/{id}/entries/find",
2568
+ ...options,
2569
+ headers: {
2570
+ "Content-Type": "application/json",
2571
+ ...options.headers
2572
+ }
2573
+ });
2574
+ }
2575
+ /**
2576
+ * Delete entries by id, or every entry of the records; the companies and
2577
+ * contacts stay in the CRM.
2578
+ */
2579
+ removeCrmPipelineEntries(options) {
2580
+ return (options.client ?? this.client).post({
2581
+ url: "/crm/pipelines/{id}/entries/remove",
2582
+ ...options,
2583
+ headers: {
2584
+ "Content-Type": "application/json",
2585
+ ...options.headers
2586
+ }
2587
+ });
2588
+ }
2589
+ /**
2590
+ * Save every entry as a CSV file in the caller's files, laid out as
2591
+ * `/csv` returns it.
2592
+ */
2593
+ exportCrmPipelineCsv(options) {
2594
+ return (options.client ?? this.client).post({ url: "/crm/pipelines/{id}/export", ...options });
2595
+ }
2596
+ /**
2597
+ * Add a CSV's rows as entries, matching its columns to fields by name and
2598
+ * creating the companies or contacts the team lacks. Records already in the
2599
+ * pipeline are not added again.
2600
+ */
2601
+ importCrmPipelineCsv(options) {
2602
+ return (options.client ?? this.client).post({
2603
+ url: "/crm/pipelines/{id}/import",
2604
+ ...options,
2605
+ headers: {
2606
+ "Content-Type": "application/json",
2607
+ ...options.headers
2608
+ }
2609
+ });
2610
+ }
2611
+ /**
2612
+ * Rename a pipeline.
2613
+ */
2614
+ renameCrmPipeline(options) {
2615
+ return (options.client ?? this.client).put({
2616
+ url: "/crm/pipelines/{id}/name",
2617
+ ...options,
2618
+ headers: {
2619
+ "Content-Type": "application/json",
2620
+ ...options.headers
2621
+ }
2622
+ });
2623
+ }
2624
+ /**
2625
+ * Edit pipeline schema or records with the common typed operations.
2626
+ */
2627
+ applyCrmPipelineOps(options) {
2628
+ return (options.client ?? this.client).post({
2629
+ url: "/crm/pipelines/{id}/ops",
2630
+ ...options,
2631
+ headers: {
2632
+ "Content-Type": "application/json",
2633
+ ...options.headers
2634
+ }
2635
+ });
2636
+ }
2637
+ /**
2638
+ * Read the owner, team grant and channel recipients of a pipeline the caller can edit.
2639
+ */
2640
+ getCrmPipelinePermissions(options) {
2641
+ return (options.client ?? this.client).get({ url: "/crm/pipelines/{id}/permissions", ...options });
2642
+ }
2643
+ /**
2644
+ * Share a pipeline the caller can edit with channels, or change or remove
2645
+ * their access. Team access changes through `/sharing`; there is no share link.
2646
+ */
2647
+ updateCrmPipelinePermissions(options) {
2648
+ return (options.client ?? this.client).patch({
2649
+ url: "/crm/pipelines/{id}/permissions",
2650
+ ...options,
2651
+ headers: {
2652
+ "Content-Type": "application/json",
2653
+ ...options.headers
2654
+ }
2655
+ });
2656
+ }
2657
+ /**
2658
+ * Read pipeline records through pipeline access.
2659
+ */
2660
+ getCrmPipelineRows(options) {
2661
+ return (options.client ?? this.client).get({ url: "/crm/pipelines/{id}/rows", ...options });
2662
+ }
2663
+ /**
2664
+ * Query rows through pipeline access using the shared view protocol.
2665
+ */
2666
+ queryCrmPipelineRows(options) {
2667
+ return (options.client ?? this.client).post({
2668
+ url: "/crm/pipelines/{id}/rows",
2669
+ ...options,
2670
+ headers: {
2671
+ "Content-Type": "application/json",
2672
+ ...options.headers
2673
+ }
2674
+ });
2675
+ }
2676
+ /**
2677
+ * Update sharing.
2678
+ */
2679
+ shareCrmPipeline(options) {
2680
+ return (options.client ?? this.client).put({
2681
+ url: "/crm/pipelines/{id}/sharing",
2682
+ ...options,
2683
+ headers: {
2684
+ "Content-Type": "application/json",
2685
+ ...options.headers
2686
+ }
2687
+ });
2688
+ }
2689
+ /**
2690
+ * Read requirements by stable stage and field identities.
2691
+ */
2692
+ getCrmPipelineStageRequirements(options) {
2693
+ return (options.client ?? this.client).get({ url: "/crm/pipelines/{id}/stage-requirements", ...options });
2694
+ }
2695
+ /**
2696
+ * Replace the required fields for one stage. An empty list removes its rule.
2697
+ */
2698
+ setCrmPipelineStageRequirement(options) {
2699
+ return (options.client ?? this.client).put({
2700
+ url: "/crm/pipelines/{id}/stage-requirements",
2701
+ ...options,
2702
+ headers: {
2703
+ "Content-Type": "application/json",
2704
+ ...options.headers
2705
+ }
2706
+ });
2707
+ }
2708
+ /**
2709
+ * Read the host-owned table schema.
2710
+ */
2711
+ getCrmPipelineTable(options) {
2712
+ return (options.client ?? this.client).get({ url: "/crm/pipelines/{id}/table", ...options });
2713
+ }
2714
+ /**
2715
+ * Trash or restore a pipeline.
2716
+ */
2717
+ trashCrmPipeline(options) {
2718
+ return (options.client ?? this.client).put({
2719
+ url: "/crm/pipelines/{id}/trash",
2232
2720
  ...options,
2233
2721
  headers: {
2234
2722
  "Content-Type": "application/json",
@@ -2242,6 +2730,22 @@ var Sdk = class _Sdk extends HeyApiClient {
2242
2730
  getCrmPipelineViewPositions(options) {
2243
2731
  return (options.client ?? this.client).get({ url: "/crm/pipelines/{id}/views/{view}/positions", ...options });
2244
2732
  }
2733
+ /**
2734
+ * Title many CRM company and contact chips at once. Each record answers as
2735
+ * its own read (`GET /crm/companies/{company_id}`,
2736
+ * `GET /crm/contacts/{contact_id}`) would: a record the caller may not open,
2737
+ * or that does not exist, is left out of the response.
2738
+ */
2739
+ previewCrmRecords(options) {
2740
+ return (options.client ?? this.client).post({
2741
+ url: "/crm/previews",
2742
+ ...options,
2743
+ headers: {
2744
+ "Content-Type": "application/json",
2745
+ ...options.headers
2746
+ }
2747
+ });
2748
+ }
2245
2749
  /**
2246
2750
  * Read the caller's team CRM configuration. Any team member may read;
2247
2751
  * teams without a settings row get the defaults.
@@ -2293,8 +2797,8 @@ var Sdk = class _Sdk extends HeyApiClient {
2293
2797
  return (options?.client ?? this.client).get({ url: "/databases", ...options });
2294
2798
  }
2295
2799
  /**
2296
- * Create a database owned by the caller; its first table, "Table 1", holds a
2297
- * "Name" text column.
2800
+ * Create a database owned by the caller; its first table, "Table 1" unless
2801
+ * `firstTable` names it, holds a "Name" text column.
2298
2802
  */
2299
2803
  createDatabase(options) {
2300
2804
  return (options.client ?? this.client).post({
@@ -2307,7 +2811,9 @@ var Sdk = class _Sdk extends HeyApiClient {
2307
2811
  });
2308
2812
  }
2309
2813
  /**
2310
- * Save an immutable query. Editing a question saves a new one.
2814
+ * Save a question: a `SELECT` that compiles against the caller's databases,
2815
+ * whose chart columns, when given, are ones it returns. Saved questions
2816
+ * never change; editing one saves a new one.
2311
2817
  */
2312
2818
  saveDatabaseQuery(options) {
2313
2819
  return (options.client ?? this.client).post({
@@ -2368,6 +2874,19 @@ var Sdk = class _Sdk extends HeyApiClient {
2368
2874
  getDatabase(options) {
2369
2875
  return (options.client ?? this.client).get({ url: "/databases/{id}", ...options });
2370
2876
  }
2877
+ /**
2878
+ * Replace a database's icon and color without changing its content timestamp.
2879
+ */
2880
+ setDatabaseAppearance(options) {
2881
+ return (options.client ?? this.client).put({
2882
+ url: "/databases/{id}/appearance",
2883
+ ...options,
2884
+ headers: {
2885
+ "Content-Type": "application/json",
2886
+ ...options.headers
2887
+ }
2888
+ });
2889
+ }
2371
2890
  /**
2372
2891
  * Tell a database's other viewers where the caller is.
2373
2892
  */
@@ -2648,6 +3167,19 @@ var Sdk = class _Sdk extends HeyApiClient {
2648
3167
  }
2649
3168
  });
2650
3169
  }
3170
+ /**
3171
+ * Create a blank native spreadsheet, ready to read and edit.
3172
+ */
3173
+ createSpreadsheet(options) {
3174
+ return (options.client ?? this.client).post({
3175
+ url: "/documents/create_spreadsheet",
3176
+ ...options,
3177
+ headers: {
3178
+ "Content-Type": "application/json",
3179
+ ...options.headers
3180
+ }
3181
+ });
3182
+ }
2651
3183
  /**
2652
3184
  * Creates a task document with properties and initialized markdown content in
2653
3185
  * one backend-owned lifecycle.
@@ -2853,6 +3385,19 @@ var Sdk = class _Sdk extends HeyApiClient {
2853
3385
  }
2854
3386
  });
2855
3387
  }
3388
+ /**
3389
+ * Replace a document's presentation overrides without editing its content.
3390
+ */
3391
+ setDocumentAppearance(options) {
3392
+ return (options.client ?? this.client).put({
3393
+ url: "/documents/{document_id}/appearance",
3394
+ ...options,
3395
+ headers: {
3396
+ "Content-Type": "application/json",
3397
+ ...options.headers
3398
+ }
3399
+ });
3400
+ }
2856
3401
  /**
2857
3402
  * Handler for `GET /documents/{document_id}/branch_name`.
2858
3403
  *
@@ -2863,14 +3408,12 @@ var Sdk = class _Sdk extends HeyApiClient {
2863
3408
  return (options.client ?? this.client).get({ url: "/documents/{document_id}/branch_name", ...options });
2864
3409
  }
2865
3410
  /**
2866
- * Handler for `POST /documents/{document_id}/copy`.
2867
- *
2868
- * Copies an existing document, creating a new document with the same content.
2869
- * Does not require re-uploading the document file.
3411
+ * Edit a canvas by natural-language instructions with edit access, through
3412
+ * EditCanvas's editor, AI admission and billing.
2870
3413
  */
2871
- copyDocument(options) {
3414
+ editCanvasWithAi(options) {
2872
3415
  return (options.client ?? this.client).post({
2873
- url: "/documents/{document_id}/copy",
3416
+ url: "/documents/{document_id}/canvas/ai-edit",
2874
3417
  ...options,
2875
3418
  headers: {
2876
3419
  "Content-Type": "application/json",
@@ -2879,29 +3422,104 @@ var Sdk = class _Sdk extends HeyApiClient {
2879
3422
  });
2880
3423
  }
2881
3424
  /**
2882
- * Read a Figma (.fig) design as text with the caller's view access: its
2883
- * pages, each page's top-level frames and sections with their text, the
2884
- * components their instances use, and the file's components, styles and
2885
- * variables.
3425
+ * Apply one batch of CanvasEditor code with edit access, against the revision
3426
+ * it was planned on, without a model. The batch validates, measures text and
3427
+ * commits once, or not at all.
2886
3428
  */
2887
- readDesign(options) {
2888
- return (options.client ?? this.client).get({ url: "/documents/{document_id}/design", ...options });
3429
+ applyCanvasEdits(options) {
3430
+ return (options.client ?? this.client).post({
3431
+ url: "/documents/{document_id}/canvas/edits",
3432
+ ...options,
3433
+ headers: {
3434
+ "Content-Type": "application/json",
3435
+ ...options.headers
3436
+ }
3437
+ });
2889
3438
  }
2890
3439
  /**
2891
- * Generates a presigned url to download the raw content of the document
2892
- * For files with modification layers, they will not be applied in the downloaded file.
3440
+ * Render a canvas to a PNG with view access, with the Canvas renderer, and
3441
+ * keep it as a static file owned by the caller. No model runs.
2893
3442
  */
2894
- exportDocument(options) {
2895
- return (options.client ?? this.client).get({ url: "/documents/{document_id}/export", ...options });
3443
+ renderCanvas(options) {
3444
+ return (options.client ?? this.client).post({
3445
+ url: "/documents/{document_id}/canvas/render",
3446
+ ...options,
3447
+ headers: {
3448
+ "Content-Type": "application/json",
3449
+ ...options.headers
3450
+ }
3451
+ });
2896
3452
  }
2897
3453
  /**
2898
- * Handler for `GET /documents/{document_id}/github_prs`.
2899
- *
2900
- * Returns GitHub pull requests associated with a task document.
2901
- * Returns 400 if the document is not a task.
3454
+ * Read a canvas's live scene with view access: stable item ids, containment
3455
+ * and order, transforms, world bounds, shapes and text. No model runs.
2902
3456
  */
2903
- getDocumentGithubPullRequests(options) {
2904
- return (options.client ?? this.client).get({ url: "/documents/{document_id}/github_prs", ...options });
3457
+ readCanvasScene(options) {
3458
+ return (options.client ?? this.client).post({
3459
+ url: "/documents/{document_id}/canvas/scene",
3460
+ ...options,
3461
+ headers: {
3462
+ "Content-Type": "application/json",
3463
+ ...options.headers
3464
+ }
3465
+ });
3466
+ }
3467
+ /**
3468
+ * Start a comment thread anchored to a quoted passage of a markdown or Word
3469
+ * document, with the caller's comment access. On markdown the passage is
3470
+ * marked in the live document first, and nothing is posted when the quote is
3471
+ * ambiguous or missing.
3472
+ */
3473
+ commentOnDocumentText(options) {
3474
+ return (options.client ?? this.client).post({
3475
+ url: "/documents/{document_id}/comments/text",
3476
+ ...options,
3477
+ headers: {
3478
+ "Content-Type": "application/json",
3479
+ ...options.headers
3480
+ }
3481
+ });
3482
+ }
3483
+ /**
3484
+ * Handler for `POST /documents/{document_id}/copy`.
3485
+ *
3486
+ * Copies an existing document, creating a new document with the same content.
3487
+ * Does not require re-uploading the document file.
3488
+ */
3489
+ copyDocument(options) {
3490
+ return (options.client ?? this.client).post({
3491
+ url: "/documents/{document_id}/copy",
3492
+ ...options,
3493
+ headers: {
3494
+ "Content-Type": "application/json",
3495
+ ...options.headers
3496
+ }
3497
+ });
3498
+ }
3499
+ /**
3500
+ * Read a Figma (.fig) design as text with the caller's view access: its
3501
+ * pages, each page's top-level frames and sections with their text, the
3502
+ * components their instances use, and the file's components, styles and
3503
+ * variables.
3504
+ */
3505
+ readDesign(options) {
3506
+ return (options.client ?? this.client).get({ url: "/documents/{document_id}/design", ...options });
3507
+ }
3508
+ /**
3509
+ * Generates a presigned url to download the raw content of the document
3510
+ * For files with modification layers, they will not be applied in the downloaded file.
3511
+ */
3512
+ exportDocument(options) {
3513
+ return (options.client ?? this.client).get({ url: "/documents/{document_id}/export", ...options });
3514
+ }
3515
+ /**
3516
+ * Handler for `GET /documents/{document_id}/github_prs`.
3517
+ *
3518
+ * Returns GitHub pull requests associated with a task document.
3519
+ * Returns 400 if the document is not a task.
3520
+ */
3521
+ getDocumentGithubPullRequests(options) {
3522
+ return (options.client ?? this.client).get({ url: "/documents/{document_id}/github_prs", ...options });
2905
3523
  }
2906
3524
  /**
2907
3525
  * Read an Illustrator (.ai) document as text with the caller's view access:
@@ -2925,6 +3543,28 @@ var Sdk = class _Sdk extends HeyApiClient {
2925
3543
  getDocumentLocationV3(options) {
2926
3544
  return (options.client ?? this.client).get({ url: "/documents/{document_id}/location_v3", ...options });
2927
3545
  }
3546
+ /**
3547
+ * Read a markdown document's or task's body with the revision it was read
3548
+ * at, to write it back with `PUT` without overwriting anyone's edits.
3549
+ */
3550
+ getDocumentMarkdown(options) {
3551
+ return (options.client ?? this.client).get({ url: "/documents/{document_id}/markdown", ...options });
3552
+ }
3553
+ /**
3554
+ * Replace a markdown document's or task's body, only if the document is still
3555
+ * at the revision the caller read. Top-level blocks whose Markdown is
3556
+ * unchanged keep their comments and formatting; changed blocks are replaced.
3557
+ */
3558
+ writeDocumentMarkdown(options) {
3559
+ return (options.client ?? this.client).put({
3560
+ url: "/documents/{document_id}/markdown",
3561
+ ...options,
3562
+ headers: {
3563
+ "Content-Type": "application/json",
3564
+ ...options.headers
3565
+ }
3566
+ });
3567
+ }
2928
3568
  /**
2929
3569
  * Permanently deletes a document.
2930
3570
  */
@@ -3032,6 +3672,68 @@ var Sdk = class _Sdk extends HeyApiClient {
3032
3672
  }
3033
3673
  });
3034
3674
  }
3675
+ /**
3676
+ * Edit a native spreadsheet by instructions with the caller's edit access:
3677
+ * a writer model reads the workbook and saves one atomic batch, with AI
3678
+ * admission and billing. A workbook changed while it worked saves nothing
3679
+ * and answers 409.
3680
+ *
3681
+ * A client that disconnects drops the worker request, which cancels the
3682
+ * edit before its save.
3683
+ */
3684
+ editSpreadsheetWithAi(options) {
3685
+ return (options.client ?? this.client).post({
3686
+ url: "/documents/{document_id}/spreadsheet/ai-edit",
3687
+ ...options,
3688
+ headers: {
3689
+ "Content-Type": "application/json",
3690
+ ...options.headers
3691
+ }
3692
+ });
3693
+ }
3694
+ /**
3695
+ * Evaluate scratch formulas against a native spreadsheet with view access,
3696
+ * optionally with hypothetical inputs. Nothing is saved.
3697
+ */
3698
+ calculateSpreadsheet(options) {
3699
+ return (options.client ?? this.client).post({
3700
+ url: "/documents/{document_id}/spreadsheet/calculate",
3701
+ ...options,
3702
+ headers: {
3703
+ "Content-Type": "application/json",
3704
+ ...options.headers
3705
+ }
3706
+ });
3707
+ }
3708
+ /**
3709
+ * Apply one atomic batch of operations to a native spreadsheet with edit
3710
+ * access. Every operation validates before anything is saved; a workbook that
3711
+ * changed since `expectedRevision` rejects the batch with 409.
3712
+ */
3713
+ editSpreadsheet(options) {
3714
+ return (options.client ?? this.client).post({
3715
+ url: "/documents/{document_id}/spreadsheet/edits",
3716
+ ...options,
3717
+ headers: {
3718
+ "Content-Type": "application/json",
3719
+ ...options.headers
3720
+ }
3721
+ });
3722
+ }
3723
+ /**
3724
+ * Read a native spreadsheet with view access: every sheet's summary, and the
3725
+ * cells of the requested ranges. Returns the revision an edit needs.
3726
+ */
3727
+ readSpreadsheet(options) {
3728
+ return (options.client ?? this.client).post({
3729
+ url: "/documents/{document_id}/spreadsheet/read",
3730
+ ...options,
3731
+ headers: {
3732
+ "Content-Type": "application/json",
3733
+ ...options.headers
3734
+ }
3735
+ });
3736
+ }
3035
3737
  /**
3036
3738
  * Gets the team-share state of a document. The team is resolved from the
3037
3739
  * document owner's team membership; `teamId` is omitted when the owner does
@@ -3413,6 +4115,19 @@ var Sdk = class _Sdk extends HeyApiClient {
3413
4115
  }
3414
4116
  });
3415
4117
  }
4118
+ /**
4119
+ * Replace a form's icon and color without changing its content timestamp.
4120
+ */
4121
+ setFormAppearance(options) {
4122
+ return (options.client ?? this.client).put({
4123
+ url: "/forms/{id}/appearance",
4124
+ ...options,
4125
+ headers: {
4126
+ "Content-Type": "application/json",
4127
+ ...options.headers
4128
+ }
4129
+ });
4130
+ }
3416
4131
  /**
3417
4132
  * Open the editor-only collaborative layout, or publish its latest valid
3418
4133
  * revision. Content stays in the existing collaboration surface.
@@ -3593,6 +4308,12 @@ var Sdk = class _Sdk extends HeyApiClient {
3593
4308
  listHarnesses(options) {
3594
4309
  return (options?.client ?? this.client).get({ url: "/harnesses", ...options });
3595
4310
  }
4311
+ /**
4312
+ * Handler for `GET /harnesses/directory`.
4313
+ */
4314
+ listHarnessDirectory(options) {
4315
+ return (options?.client ?? this.client).get({ url: "/harnesses/directory", ...options });
4316
+ }
3596
4317
  /**
3597
4318
  * Handler for `DELETE /harnesses/me`.
3598
4319
  *
@@ -3638,6 +4359,28 @@ var Sdk = class _Sdk extends HeyApiClient {
3638
4359
  }
3639
4360
  });
3640
4361
  }
4362
+ /**
4363
+ * Handler for `GET /harnesses/{harness_id}/residents`.
4364
+ */
4365
+ listHarnessResidents(options) {
4366
+ return (options.client ?? this.client).get({ url: "/harnesses/{harness_id}/residents", ...options });
4367
+ }
4368
+ /**
4369
+ * Handler for `PUT /harnesses/{harness_id}/team-access`.
4370
+ *
4371
+ * Requires the owner's own session: an agent can ask for access to a machine
4372
+ * but never open one, since that grants code execution on it.
4373
+ */
4374
+ setHarnessTeamAccess(options) {
4375
+ return (options.client ?? this.client).put({
4376
+ url: "/harnesses/{harness_id}/team-access",
4377
+ ...options,
4378
+ headers: {
4379
+ "Content-Type": "application/json",
4380
+ ...options.headers
4381
+ }
4382
+ });
4383
+ }
3641
4384
  /**
3642
4385
  * Health check
3643
4386
  */
@@ -3681,6 +4424,13 @@ var Sdk = class _Sdk extends HeyApiClient {
3681
4424
  }
3682
4425
  });
3683
4426
  }
4427
+ /**
4428
+ * Page the initiatives the caller can view, filtered by name and canonical properties,
4429
+ * with each row's properties and progress over the tasks the caller can view.
4430
+ */
4431
+ pageInitiatives(options) {
4432
+ return (options?.client ?? this.client).get({ url: "/initiatives/page", ...options });
4433
+ }
3684
4434
  /**
3685
4435
  * Delete the initiative the caller owns.
3686
4436
  */
@@ -3706,6 +4456,36 @@ var Sdk = class _Sdk extends HeyApiClient {
3706
4456
  }
3707
4457
  });
3708
4458
  }
4459
+ /**
4460
+ * Read an initiative's creation, edits, property changes and task membership
4461
+ * changes, newest first.
4462
+ *
4463
+ * Task references require current view access to the task, so a page can hold
4464
+ * fewer records than `limit`, even none. Follow `nextCursor` with the same
4465
+ * window until it is absent.
4466
+ */
4467
+ getInitiativeActivity(options) {
4468
+ return (options.client ?? this.client).get({ url: "/initiatives/{initiative_id}/activity", ...options });
4469
+ }
4470
+ /**
4471
+ * Replace a project's appearance without changing content timestamps.
4472
+ */
4473
+ setInitiativeAppearance(options) {
4474
+ return (options.client ?? this.client).put({
4475
+ url: "/initiatives/{initiative_id}/appearance",
4476
+ ...options,
4477
+ headers: {
4478
+ "Content-Type": "application/json",
4479
+ ...options.headers
4480
+ }
4481
+ });
4482
+ }
4483
+ /**
4484
+ * Read the description of an initiative the caller can view.
4485
+ */
4486
+ getInitiativeDescription(options) {
4487
+ return (options.client ?? this.client).get({ url: "/initiatives/{initiative_id}/description", ...options });
4488
+ }
3709
4489
  /**
3710
4490
  * Gets the instructions document for the current user
3711
4491
  */
@@ -3870,6 +4650,363 @@ var Sdk = class _Sdk extends HeyApiClient {
3870
4650
  }
3871
4651
  });
3872
4652
  }
4653
+ /**
4654
+ * Search the agent's catalog: metadata and current access only.
4655
+ */
4656
+ passwordsAgentSearch(options) {
4657
+ return (options.client ?? this.client).get({ url: "/passwords/agent/teams/{team}/items", ...options });
4658
+ }
4659
+ /**
4660
+ * Create a login or API item attributed to this agent.
4661
+ */
4662
+ passwordsAgentCreate(options) {
4663
+ return (options.client ?? this.client).post({
4664
+ url: "/passwords/agent/teams/{team}/items",
4665
+ ...options,
4666
+ headers: {
4667
+ "Content-Type": "application/json",
4668
+ ...options.headers
4669
+ }
4670
+ });
4671
+ }
4672
+ /**
4673
+ * Replace supplied fields of a login or API item.
4674
+ */
4675
+ passwordsAgentUpdate(options) {
4676
+ return (options.client ?? this.client).patch({
4677
+ url: "/passwords/agent/teams/{team}/items/{item}",
4678
+ ...options,
4679
+ headers: {
4680
+ "Content-Type": "application/json",
4681
+ ...options.headers
4682
+ }
4683
+ });
4684
+ }
4685
+ /**
4686
+ * Ask authorized humans for access to an item.
4687
+ */
4688
+ passwordsAgentRequestAccess(options) {
4689
+ return (options.client ?? this.client).post({
4690
+ url: "/passwords/agent/teams/{team}/items/{item}/access-requests",
4691
+ ...options,
4692
+ headers: {
4693
+ "Content-Type": "application/json",
4694
+ ...options.headers
4695
+ }
4696
+ });
4697
+ }
4698
+ /**
4699
+ * This agent's own request state for the item.
4700
+ */
4701
+ passwordsAgentMyRequest(options) {
4702
+ return (options.client ?? this.client).get({ url: "/passwords/agent/teams/{team}/items/{item}/access-requests/mine", ...options });
4703
+ }
4704
+ /**
4705
+ * Disclose one selected field to the agent's capability.
4706
+ */
4707
+ passwordsAgentDisclose(options) {
4708
+ return (options.client ?? this.client).post({
4709
+ url: "/passwords/agent/teams/{team}/items/{item}/disclose",
4710
+ ...options,
4711
+ headers: {
4712
+ "Content-Type": "application/json",
4713
+ ...options.headers
4714
+ }
4715
+ });
4716
+ }
4717
+ /**
4718
+ * Enroll a verification-code seed on an item this agent created.
4719
+ */
4720
+ passwordsAgentSetTotp(options) {
4721
+ return (options.client ?? this.client).put({
4722
+ url: "/passwords/agent/teams/{team}/items/{item}/totp",
4723
+ ...options,
4724
+ headers: {
4725
+ "Content-Type": "application/json",
4726
+ ...options.headers
4727
+ }
4728
+ });
4729
+ }
4730
+ /**
4731
+ * The current verification code of a login or verification-code item.
4732
+ */
4733
+ passwordsAgentTotpCode(options) {
4734
+ return (options.client ?? this.client).post({
4735
+ url: "/passwords/agent/teams/{team}/items/{item}/totp/code",
4736
+ ...options,
4737
+ headers: {
4738
+ "Content-Type": "application/json",
4739
+ ...options.headers
4740
+ }
4741
+ });
4742
+ }
4743
+ /**
4744
+ * List current teams available to the authenticated human.
4745
+ */
4746
+ passwordsTeams(options) {
4747
+ return (options?.client ?? this.client).get({ url: "/passwords/teams", ...options });
4748
+ }
4749
+ /**
4750
+ * Pending agent requests on items the caller may manage.
4751
+ */
4752
+ passwordsAgentAccessRequests(options) {
4753
+ return (options.client ?? this.client).get({ url: "/passwords/teams/{team}/agent-access-requests", ...options });
4754
+ }
4755
+ /**
4756
+ * List the authenticated team’s folders.
4757
+ */
4758
+ passwordsFolders(options) {
4759
+ return (options.client ?? this.client).get({ url: "/passwords/teams/{team}/folders", ...options });
4760
+ }
4761
+ /**
4762
+ * Create a folder within the authenticated team.
4763
+ */
4764
+ passwordsCreateFolder(options) {
4765
+ return (options.client ?? this.client).post({
4766
+ url: "/passwords/teams/{team}/folders",
4767
+ ...options,
4768
+ headers: {
4769
+ "Content-Type": "application/json",
4770
+ ...options.headers
4771
+ }
4772
+ });
4773
+ }
4774
+ /**
4775
+ * Delete a folder within the authenticated team.
4776
+ */
4777
+ passwordsRemoveFolder(options) {
4778
+ return (options.client ?? this.client).delete({ url: "/passwords/teams/{team}/folders/{folder}", ...options });
4779
+ }
4780
+ /**
4781
+ * Rename a folder within the authenticated team.
4782
+ */
4783
+ passwordsRenameFolder(options) {
4784
+ return (options.client ?? this.client).put({
4785
+ url: "/passwords/teams/{team}/folders/{folder}",
4786
+ ...options,
4787
+ headers: {
4788
+ "Content-Type": "application/json",
4789
+ ...options.headers
4790
+ }
4791
+ });
4792
+ }
4793
+ /**
4794
+ * Move a folder under another folder of the team, or to the top level.
4795
+ */
4796
+ passwordsMoveFolder(options) {
4797
+ return (options.client ?? this.client).put({
4798
+ url: "/passwords/teams/{team}/folders/{folder}/parent",
4799
+ ...options,
4800
+ headers: {
4801
+ "Content-Type": "application/json",
4802
+ ...options.headers
4803
+ }
4804
+ });
4805
+ }
4806
+ /**
4807
+ * Import normalized credentials with independently retryable per-item outcomes.
4808
+ */
4809
+ passwordsImportBatch(options) {
4810
+ return (options.client ?? this.client).post({
4811
+ url: "/passwords/teams/{team}/imports/{import_id}/items",
4812
+ ...options,
4813
+ headers: {
4814
+ "Content-Type": "application/json",
4815
+ ...options.headers
4816
+ }
4817
+ });
4818
+ }
4819
+ /**
4820
+ * Search authorized metadata without resolving private values.
4821
+ */
4822
+ passwordsList(options) {
4823
+ return (options.client ?? this.client).get({ url: "/passwords/teams/{team}/items", ...options });
4824
+ }
4825
+ /**
4826
+ * Create one item using an idempotent logical operation identifier.
4827
+ */
4828
+ passwordsCreate(options) {
4829
+ return (options.client ?? this.client).post({
4830
+ url: "/passwords/teams/{team}/items",
4831
+ ...options,
4832
+ headers: {
4833
+ "Content-Type": "application/json",
4834
+ ...options.headers
4835
+ }
4836
+ });
4837
+ }
4838
+ /**
4839
+ * Visible items named like the given names, for an import's duplicate check;
4840
+ * names travel in the body so they stay out of URLs and access logs.
4841
+ */
4842
+ passwordsMatch(options) {
4843
+ return (options.client ?? this.client).post({
4844
+ url: "/passwords/teams/{team}/items/match",
4845
+ ...options,
4846
+ headers: {
4847
+ "Content-Type": "application/json",
4848
+ ...options.headers
4849
+ }
4850
+ });
4851
+ }
4852
+ /**
4853
+ * Delete an owned item with a resumable provider fence.
4854
+ */
4855
+ passwordsRemove(options) {
4856
+ return (options.client ?? this.client).delete({ url: "/passwords/teams/{team}/items/{item}", ...options });
4857
+ }
4858
+ /**
4859
+ * Read authorized item metadata only.
4860
+ */
4861
+ passwordsDetail(options) {
4862
+ return (options.client ?? this.client).get({ url: "/passwords/teams/{team}/items/{item}", ...options });
4863
+ }
4864
+ /**
4865
+ * Change metadata without resolving private values.
4866
+ */
4867
+ passwordsPatch(options) {
4868
+ return (options.client ?? this.client).patch({
4869
+ url: "/passwords/teams/{team}/items/{item}",
4870
+ ...options,
4871
+ headers: {
4872
+ "Content-Type": "application/json",
4873
+ ...options.headers
4874
+ }
4875
+ });
4876
+ }
4877
+ /**
4878
+ * Save a new protected value version and its metadata.
4879
+ */
4880
+ passwordsUpdate(options) {
4881
+ return (options.client ?? this.client).put({
4882
+ url: "/passwords/teams/{team}/items/{item}",
4883
+ ...options,
4884
+ headers: {
4885
+ "Content-Type": "application/json",
4886
+ ...options.headers
4887
+ }
4888
+ });
4889
+ }
4890
+ /**
4891
+ * List recorded activity for an authorized item.
4892
+ */
4893
+ passwordsActivity(options) {
4894
+ return (options.client ?? this.client).get({ url: "/passwords/teams/{team}/items/{item}/activity", ...options });
4895
+ }
4896
+ /**
4897
+ * Approve or deny a pending agent request.
4898
+ */
4899
+ passwordsAgentResolveRequest(options) {
4900
+ return (options.client ?? this.client).post({
4901
+ url: "/passwords/teams/{team}/items/{item}/agent-access-requests/{request}/resolve",
4902
+ ...options,
4903
+ headers: {
4904
+ "Content-Type": "application/json",
4905
+ ...options.headers
4906
+ }
4907
+ });
4908
+ }
4909
+ /**
4910
+ * Revoke an agent's standing approval, or its grant and approval.
4911
+ */
4912
+ passwordsAgentRevoke(options) {
4913
+ return (options.client ?? this.client).post({
4914
+ url: "/passwords/teams/{team}/items/{item}/agents/{agent}/revoke",
4915
+ ...options,
4916
+ headers: {
4917
+ "Content-Type": "application/json",
4918
+ ...options.headers
4919
+ }
4920
+ });
4921
+ }
4922
+ /**
4923
+ * Disclose values for an explicitly audited clipboard action.
4924
+ */
4925
+ passwordsCopy(options) {
4926
+ return (options.client ?? this.client).post({
4927
+ url: "/passwords/teams/{team}/items/{item}/copy",
4928
+ ...options,
4929
+ headers: {
4930
+ "Content-Type": "application/json",
4931
+ ...options.headers
4932
+ }
4933
+ });
4934
+ }
4935
+ /**
4936
+ * List protected-value version metadata.
4937
+ */
4938
+ passwordsHistory(options) {
4939
+ return (options.client ?? this.client).get({ url: "/passwords/teams/{team}/items/{item}/history", ...options });
4940
+ }
4941
+ /**
4942
+ * Disclose a current or historical value with normal human-session item access.
4943
+ */
4944
+ passwordsReveal(options) {
4945
+ return (options.client ?? this.client).post({
4946
+ url: "/passwords/teams/{team}/items/{item}/reveal",
4947
+ ...options,
4948
+ headers: {
4949
+ "Content-Type": "application/json",
4950
+ ...options.headers
4951
+ }
4952
+ });
4953
+ }
4954
+ /**
4955
+ * Read the owned item’s explicit recipient set.
4956
+ */
4957
+ passwordsGrants(options) {
4958
+ return (options.client ?? this.client).get({ url: "/passwords/teams/{team}/items/{item}/share", ...options });
4959
+ }
4960
+ /**
4961
+ * Replace the owned item’s explicit recipient set.
4962
+ */
4963
+ passwordsShare(options) {
4964
+ return (options.client ?? this.client).put({
4965
+ url: "/passwords/teams/{team}/items/{item}/share",
4966
+ ...options,
4967
+ headers: {
4968
+ "Content-Type": "application/json",
4969
+ ...options.headers
4970
+ }
4971
+ });
4972
+ }
4973
+ /**
4974
+ * Remove a verification-code seed with normal human-session edit access.
4975
+ */
4976
+ passwordsRemoveTotp(options) {
4977
+ return (options.client ?? this.client).delete({ url: "/passwords/teams/{team}/items/{item}/totp", ...options });
4978
+ }
4979
+ /**
4980
+ * Enroll or replace a verification-code seed with normal human-session edit access.
4981
+ */
4982
+ passwordsSetTotp(options) {
4983
+ return (options.client ?? this.client).put({
4984
+ url: "/passwords/teams/{team}/items/{item}/totp",
4985
+ ...options,
4986
+ headers: {
4987
+ "Content-Type": "application/json",
4988
+ ...options.headers
4989
+ }
4990
+ });
4991
+ }
4992
+ /**
4993
+ * Resolve the current verification code with normal human-session item access.
4994
+ */
4995
+ passwordsTotp(options) {
4996
+ return (options.client ?? this.client).post({ url: "/passwords/teams/{team}/items/{item}/totp/code", ...options });
4997
+ }
4998
+ /**
4999
+ * Read only the current account identifier with normal human view authorization.
5000
+ */
5001
+ passwordsUsername(options) {
5002
+ return (options.client ?? this.client).get({ url: "/passwords/teams/{team}/items/{item}/username", ...options });
5003
+ }
5004
+ /**
5005
+ * Read only the current account identifier and record an explicit clipboard action.
5006
+ */
5007
+ passwordsCopyUsername(options) {
5008
+ return (options.client ?? this.client).post({ url: "/passwords/teams/{team}/items/{item}/username/copy", ...options });
5009
+ }
3873
5010
  /**
3874
5011
  * Gets the users pinned items
3875
5012
  */
@@ -3979,6 +5116,13 @@ var Sdk = class _Sdk extends HeyApiClient {
3979
5116
  }
3980
5117
  });
3981
5118
  }
5119
+ /**
5120
+ * Where the caller's folder upload stands, so the uploader can follow it to
5121
+ * the end even when a websocket update is missed.
5122
+ */
5123
+ getUploadExtractStatusHandler(options) {
5124
+ return (options.client ?? this.client).get({ url: "/projects/upload_extract/{request_id}", ...options });
5125
+ }
3982
5126
  /**
3983
5127
  * Soft-delete a project and all of its children.
3984
5128
  */
@@ -4022,7 +5166,8 @@ var Sdk = class _Sdk extends HeyApiClient {
4022
5166
  return (options.client ?? this.client).put({ url: "/projects/{id}/revert_delete", ...options });
4023
5167
  }
4024
5168
  /**
4025
- * Gets the users recently deleted items.
5169
+ * Gets one page of the user's trashed documents, chats and folders, most
5170
+ * recently trashed first.
4026
5171
  */
4027
5172
  recentlyDeleted(options) {
4028
5173
  return (options?.client ?? this.client).get({ url: "/recents/deleted", ...options });
@@ -4065,6 +5210,45 @@ var Sdk = class _Sdk extends HeyApiClient {
4065
5210
  }
4066
5211
  });
4067
5212
  }
5213
+ listSavedViewDefinitions(options) {
5214
+ return (options?.client ?? this.client).get({ url: "/saved_views/definitions", ...options });
5215
+ }
5216
+ createSavedViewDefinition(options) {
5217
+ return (options.client ?? this.client).post({
5218
+ url: "/saved_views/definitions",
5219
+ ...options,
5220
+ headers: {
5221
+ "Content-Type": "application/json",
5222
+ ...options.headers
5223
+ }
5224
+ });
5225
+ }
5226
+ reorderSavedViewDefinitions(options) {
5227
+ return (options.client ?? this.client).put({
5228
+ url: "/saved_views/definitions/order",
5229
+ ...options,
5230
+ headers: {
5231
+ "Content-Type": "application/json",
5232
+ ...options.headers
5233
+ }
5234
+ });
5235
+ }
5236
+ deleteSavedViewDefinition(options) {
5237
+ return (options.client ?? this.client).delete({ url: "/saved_views/definitions/{saved_view_id}", ...options });
5238
+ }
5239
+ getSavedViewDefinition(options) {
5240
+ return (options.client ?? this.client).get({ url: "/saved_views/definitions/{saved_view_id}", ...options });
5241
+ }
5242
+ updateSavedViewDefinition(options) {
5243
+ return (options.client ?? this.client).patch({
5244
+ url: "/saved_views/definitions/{saved_view_id}",
5245
+ ...options,
5246
+ headers: {
5247
+ "Content-Type": "application/json",
5248
+ ...options.headers
5249
+ }
5250
+ });
5251
+ }
4068
5252
  excludeDefaultViewHandler(options) {
4069
5253
  return (options.client ?? this.client).post({
4070
5254
  url: "/saved_views/exclude_default",