@hubspot/app-connect-sdk 1.0.0-alpha.2 → 1.0.0-alpha.21

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 (731) hide show
  1. package/.turbo/turbo-format$colon$check.log +1 -1
  2. package/.turbo/turbo-test.log +101 -57
  3. package/.turbo/turbo-tsdown.log +474 -469
  4. package/build/tsconfig.browser.tsbuildinfo +1 -1
  5. package/build/tsconfig.server.tsbuildinfo +1 -1
  6. package/dist/browser/{HubSpotAppConnect-BW45gyDs.js → HubSpotAppConnect-721kYr9d.js} +17 -23
  7. package/dist/browser/HubSpotAppConnect-721kYr9d.js.map +1 -0
  8. package/dist/browser/{create-vctOhpX9.js → create-DxEyGG-k.js} +336 -100
  9. package/dist/browser/create-DxEyGG-k.js.map +1 -0
  10. package/dist/browser/index.d.ts +2 -2
  11. package/dist/browser/index.js +1 -1
  12. package/dist/browser/react/lovable.d.ts +9 -2
  13. package/dist/browser/react/lovable.js +7 -4
  14. package/dist/browser/react/lovable.js.map +1 -1
  15. package/dist/browser/react.d.ts +2 -3
  16. package/dist/browser/react.js +1 -1
  17. package/dist/browser/{types-rTQw6A54.d.ts → types-C3wed8dU.d.ts} +52 -7
  18. package/dist/server/api-client-core/apis/account/account-info-types.generated.d.ts +73 -85
  19. package/dist/server/api-client-core/apis/account/account-info.generated.d.ts +3 -3
  20. package/dist/server/api-client-core/apis/account/account-info.generated.js +4 -3
  21. package/dist/server/api-client-core/apis/account/account-info.generated.js.map +1 -1
  22. package/dist/server/api-client-core/apis/account/audit-logs-types.generated.d.ts +203 -215
  23. package/dist/server/api-client-core/apis/account/audit-logs.generated.d.ts +3 -3
  24. package/dist/server/api-client-core/apis/account/audit-logs.generated.js +4 -3
  25. package/dist/server/api-client-core/apis/account/audit-logs.generated.js.map +1 -1
  26. package/dist/server/api-client-core/apis/auth/oauth-types.generated.d.ts +78 -90
  27. package/dist/server/api-client-core/apis/auth/oauth.generated.d.ts +1 -1
  28. package/dist/server/api-client-core/apis/auth/oauth.generated.js +3 -2
  29. package/dist/server/api-client-core/apis/auth/oauth.generated.js.map +1 -1
  30. package/dist/server/api-client-core/apis/automation/actions-types.generated.d.ts +779 -794
  31. package/dist/server/api-client-core/apis/automation/actions.generated.d.ts +6 -3
  32. package/dist/server/api-client-core/apis/automation/actions.generated.js +101 -102
  33. package/dist/server/api-client-core/apis/automation/actions.generated.js.map +1 -1
  34. package/dist/server/api-client-core/apis/automation/sequences-types.generated.d.ts +370 -382
  35. package/dist/server/api-client-core/apis/automation/sequences.generated.d.ts +1 -1
  36. package/dist/server/api-client-core/apis/automation/sequences.generated.js +3 -2
  37. package/dist/server/api-client-core/apis/automation/sequences.generated.js.map +1 -1
  38. package/dist/server/api-client-core/apis/business-units-types.generated.d.ts +43 -55
  39. package/dist/server/api-client-core/apis/business-units.generated.d.ts +3 -3
  40. package/dist/server/api-client-core/apis/business-units.generated.js +4 -3
  41. package/dist/server/api-client-core/apis/business-units.generated.js.map +1 -1
  42. package/dist/server/api-client-core/apis/cms/authors-types.generated.d.ts +420 -445
  43. package/dist/server/api-client-core/apis/cms/authors.generated.d.ts +4 -3
  44. package/dist/server/api-client-core/apis/cms/authors.generated.js +155 -158
  45. package/dist/server/api-client-core/apis/cms/authors.generated.js.map +1 -1
  46. package/dist/server/api-client-core/apis/cms/blog-settings-types.generated.d.ts +270 -295
  47. package/dist/server/api-client-core/apis/cms/blog-settings.generated.d.ts +4 -3
  48. package/dist/server/api-client-core/apis/cms/blog-settings.generated.js +35 -38
  49. package/dist/server/api-client-core/apis/cms/blog-settings.generated.js.map +1 -1
  50. package/dist/server/api-client-core/apis/cms/cms-content-audit-types.generated.d.ts +107 -131
  51. package/dist/server/api-client-core/apis/cms/cms-content-audit.generated.d.ts +3 -3
  52. package/dist/server/api-client-core/apis/cms/cms-content-audit.generated.js +6 -5
  53. package/dist/server/api-client-core/apis/cms/cms-content-audit.generated.js.map +1 -1
  54. package/dist/server/api-client-core/apis/cms/domains-types.generated.d.ts +155 -167
  55. package/dist/server/api-client-core/apis/cms/domains.generated.d.ts +2 -2
  56. package/dist/server/api-client-core/apis/cms/domains.generated.js +3 -2
  57. package/dist/server/api-client-core/apis/cms/domains.generated.js.map +1 -1
  58. package/dist/server/api-client-core/apis/cms/hubdb-types.generated.d.ts +876 -889
  59. package/dist/server/api-client-core/apis/cms/hubdb.generated.d.ts +4 -3
  60. package/dist/server/api-client-core/apis/cms/hubdb.generated.js +184 -185
  61. package/dist/server/api-client-core/apis/cms/hubdb.generated.js.map +1 -1
  62. package/dist/server/api-client-core/apis/cms/media-bridge-types.generated.d.ts +1550 -1575
  63. package/dist/server/api-client-core/apis/cms/media-bridge.generated.d.ts +4 -3
  64. package/dist/server/api-client-core/apis/cms/media-bridge.generated.js +161 -164
  65. package/dist/server/api-client-core/apis/cms/media-bridge.generated.js.map +1 -1
  66. package/dist/server/api-client-core/apis/cms/pages-types.generated.d.ts +1583 -1547
  67. package/dist/server/api-client-core/apis/cms/pages.generated.d.ts +15 -3
  68. package/dist/server/api-client-core/apis/cms/pages.generated.js +335 -326
  69. package/dist/server/api-client-core/apis/cms/pages.generated.js.map +1 -1
  70. package/dist/server/api-client-core/apis/cms/posts-types.generated.d.ts +900 -904
  71. package/dist/server/api-client-core/apis/cms/posts.generated.d.ts +7 -3
  72. package/dist/server/api-client-core/apis/cms/posts.generated.js +197 -196
  73. package/dist/server/api-client-core/apis/cms/posts.generated.js.map +1 -1
  74. package/dist/server/api-client-core/apis/cms/site-search-types.generated.d.ts +162 -174
  75. package/dist/server/api-client-core/apis/cms/site-search.generated.d.ts +3 -3
  76. package/dist/server/api-client-core/apis/cms/site-search.generated.js +4 -3
  77. package/dist/server/api-client-core/apis/cms/site-search.generated.js.map +1 -1
  78. package/dist/server/api-client-core/apis/cms/source-code-types.generated.d.ts +148 -172
  79. package/dist/server/api-client-core/apis/cms/source-code.generated.d.ts +3 -3
  80. package/dist/server/api-client-core/apis/cms/source-code.generated.js +40 -43
  81. package/dist/server/api-client-core/apis/cms/source-code.generated.js.map +1 -1
  82. package/dist/server/api-client-core/apis/cms/tags-types.generated.d.ts +406 -420
  83. package/dist/server/api-client-core/apis/cms/tags.generated.d.ts +5 -3
  84. package/dist/server/api-client-core/apis/cms/tags.generated.js +157 -158
  85. package/dist/server/api-client-core/apis/cms/tags.generated.js.map +1 -1
  86. package/dist/server/api-client-core/apis/cms/url-mappings-types.generated.d.ts +127 -139
  87. package/dist/server/api-client-core/apis/cms/url-mappings.generated.d.ts +3 -3
  88. package/dist/server/api-client-core/apis/cms/url-mappings.generated.js +4 -3
  89. package/dist/server/api-client-core/apis/cms/url-mappings.generated.js.map +1 -1
  90. package/dist/server/api-client-core/apis/cms/url-redirects-types.generated.d.ts +170 -182
  91. package/dist/server/api-client-core/apis/cms/url-redirects.generated.d.ts +3 -3
  92. package/dist/server/api-client-core/apis/cms/url-redirects.generated.js +4 -3
  93. package/dist/server/api-client-core/apis/cms/url-redirects.generated.js.map +1 -1
  94. package/dist/server/api-client-core/apis/communication-preferences/subscriptions-types.generated.d.ts +728 -742
  95. package/dist/server/api-client-core/apis/communication-preferences/subscriptions.generated.d.ts +5 -3
  96. package/dist/server/api-client-core/apis/communication-preferences/subscriptions.generated.js +66 -69
  97. package/dist/server/api-client-core/apis/communication-preferences/subscriptions.generated.js.map +1 -1
  98. package/dist/server/api-client-core/apis/conversations/custom-channels-types.generated.d.ts +445 -471
  99. package/dist/server/api-client-core/apis/conversations/custom-channels.generated.d.ts +5 -3
  100. package/dist/server/api-client-core/apis/conversations/custom-channels.generated.js +70 -73
  101. package/dist/server/api-client-core/apis/conversations/custom-channels.generated.js.map +1 -1
  102. package/dist/server/api-client-core/apis/conversations/visitor-identification-types.generated.d.ts +28 -40
  103. package/dist/server/api-client-core/apis/conversations/visitor-identification.generated.d.ts +3 -3
  104. package/dist/server/api-client-core/apis/conversations/visitor-identification.generated.js +3 -2
  105. package/dist/server/api-client-core/apis/conversations/visitor-identification.generated.js.map +1 -1
  106. package/dist/server/api-client-core/apis/conversations-types.generated.d.ts +768 -781
  107. package/dist/server/api-client-core/apis/conversations.generated.d.ts +4 -3
  108. package/dist/server/api-client-core/apis/conversations.generated.js +101 -102
  109. package/dist/server/api-client-core/apis/conversations.generated.js.map +1 -1
  110. package/dist/server/api-client-core/apis/crm/app-uninstalls-types.generated.d.ts +8 -19
  111. package/dist/server/api-client-core/apis/crm/app-uninstalls.generated.d.ts +3 -3
  112. package/dist/server/api-client-core/apis/crm/app-uninstalls.generated.js +3 -2
  113. package/dist/server/api-client-core/apis/crm/app-uninstalls.generated.js.map +1 -1
  114. package/dist/server/api-client-core/apis/crm/appointments-types.generated.d.ts +887 -891
  115. package/dist/server/api-client-core/apis/crm/appointments.generated.d.ts +7 -3
  116. package/dist/server/api-client-core/apis/crm/appointments.generated.js +105 -106
  117. package/dist/server/api-client-core/apis/crm/appointments.generated.js.map +1 -1
  118. package/dist/server/api-client-core/apis/crm/associations-schema-types.generated.d.ts +247 -260
  119. package/dist/server/api-client-core/apis/crm/associations-schema.generated.d.ts +4 -3
  120. package/dist/server/api-client-core/apis/crm/associations-schema.generated.js +48 -49
  121. package/dist/server/api-client-core/apis/crm/associations-schema.generated.js.map +1 -1
  122. package/dist/server/api-client-core/apis/crm/associations-types.generated.d.ts +576 -590
  123. package/dist/server/api-client-core/apis/crm/associations.generated.d.ts +5 -3
  124. package/dist/server/api-client-core/apis/crm/associations.generated.js +71 -72
  125. package/dist/server/api-client-core/apis/crm/associations.generated.js.map +1 -1
  126. package/dist/server/api-client-core/apis/crm/calling-extensions-types.generated.d.ts +355 -379
  127. package/dist/server/api-client-core/apis/crm/calling-extensions.generated.d.ts +3 -3
  128. package/dist/server/api-client-core/apis/crm/calling-extensions.generated.js +34 -37
  129. package/dist/server/api-client-core/apis/crm/calling-extensions.generated.js.map +1 -1
  130. package/dist/server/api-client-core/apis/crm/calls-types.generated.d.ts +755 -769
  131. package/dist/server/api-client-core/apis/crm/calls.generated.d.ts +5 -3
  132. package/dist/server/api-client-core/apis/crm/calls.generated.js +58 -57
  133. package/dist/server/api-client-core/apis/crm/calls.generated.js.map +1 -1
  134. package/dist/server/api-client-core/apis/crm/carts-types.generated.d.ts +755 -769
  135. package/dist/server/api-client-core/apis/crm/carts.generated.d.ts +5 -3
  136. package/dist/server/api-client-core/apis/crm/carts.generated.js +58 -57
  137. package/dist/server/api-client-core/apis/crm/carts.generated.js.map +1 -1
  138. package/dist/server/api-client-core/apis/crm/commerce-payments-types.generated.d.ts +755 -769
  139. package/dist/server/api-client-core/apis/crm/commerce-payments.generated.d.ts +5 -3
  140. package/dist/server/api-client-core/apis/crm/commerce-payments.generated.js +58 -57
  141. package/dist/server/api-client-core/apis/crm/commerce-payments.generated.js.map +1 -1
  142. package/dist/server/api-client-core/apis/crm/commerce-subscriptions-types.generated.d.ts +752 -766
  143. package/dist/server/api-client-core/apis/crm/commerce-subscriptions.generated.d.ts +5 -3
  144. package/dist/server/api-client-core/apis/crm/commerce-subscriptions.generated.js +58 -57
  145. package/dist/server/api-client-core/apis/crm/commerce-subscriptions.generated.js.map +1 -1
  146. package/dist/server/api-client-core/apis/crm/communications-types.generated.d.ts +755 -769
  147. package/dist/server/api-client-core/apis/crm/communications.generated.d.ts +5 -3
  148. package/dist/server/api-client-core/apis/crm/communications.generated.js +58 -57
  149. package/dist/server/api-client-core/apis/crm/communications.generated.js.map +1 -1
  150. package/dist/server/api-client-core/apis/crm/companies-types.generated.d.ts +769 -795
  151. package/dist/server/api-client-core/apis/crm/companies.generated.d.ts +5 -3
  152. package/dist/server/api-client-core/apis/crm/companies.generated.js +59 -58
  153. package/dist/server/api-client-core/apis/crm/companies.generated.js.map +1 -1
  154. package/dist/server/api-client-core/apis/crm/contacts-types.generated.d.ts +786 -812
  155. package/dist/server/api-client-core/apis/crm/contacts.generated.d.ts +5 -3
  156. package/dist/server/api-client-core/apis/crm/contacts.generated.js +60 -61
  157. package/dist/server/api-client-core/apis/crm/contacts.generated.js.map +1 -1
  158. package/dist/server/api-client-core/apis/crm/contracts-types.generated.d.ts +796 -777
  159. package/dist/server/api-client-core/apis/crm/contracts.generated.d.ts +8 -3
  160. package/dist/server/api-client-core/apis/crm/contracts.generated.js +60 -57
  161. package/dist/server/api-client-core/apis/crm/contracts.generated.js.map +1 -1
  162. package/dist/server/api-client-core/apis/crm/courses-types.generated.d.ts +758 -772
  163. package/dist/server/api-client-core/apis/crm/courses.generated.d.ts +5 -3
  164. package/dist/server/api-client-core/apis/crm/courses.generated.js +58 -57
  165. package/dist/server/api-client-core/apis/crm/courses.generated.js.map +1 -1
  166. package/dist/server/api-client-core/apis/crm/crm-owners-types.generated.d.ts +103 -115
  167. package/dist/server/api-client-core/apis/crm/crm-owners.generated.d.ts +3 -3
  168. package/dist/server/api-client-core/apis/crm/crm-owners.generated.js +4 -3
  169. package/dist/server/api-client-core/apis/crm/crm-owners.generated.js.map +1 -1
  170. package/dist/server/api-client-core/apis/crm/custom-objects-types.generated.d.ts +833 -848
  171. package/dist/server/api-client-core/apis/crm/custom-objects.generated.d.ts +6 -3
  172. package/dist/server/api-client-core/apis/crm/custom-objects.generated.js +91 -90
  173. package/dist/server/api-client-core/apis/crm/custom-objects.generated.js.map +1 -1
  174. package/dist/server/api-client-core/apis/crm/deal-splits-types.generated.d.ts +158 -170
  175. package/dist/server/api-client-core/apis/crm/deal-splits.generated.d.ts +3 -3
  176. package/dist/server/api-client-core/apis/crm/deal-splits.generated.js +4 -3
  177. package/dist/server/api-client-core/apis/crm/deal-splits.generated.js.map +1 -1
  178. package/dist/server/api-client-core/apis/crm/deals-types.generated.d.ts +771 -785
  179. package/dist/server/api-client-core/apis/crm/deals.generated.d.ts +5 -3
  180. package/dist/server/api-client-core/apis/crm/deals.generated.js +59 -58
  181. package/dist/server/api-client-core/apis/crm/deals.generated.js.map +1 -1
  182. package/dist/server/api-client-core/apis/crm/discounts-types.generated.d.ts +754 -768
  183. package/dist/server/api-client-core/apis/crm/discounts.generated.d.ts +5 -3
  184. package/dist/server/api-client-core/apis/crm/discounts.generated.js +58 -57
  185. package/dist/server/api-client-core/apis/crm/discounts.generated.js.map +1 -1
  186. package/dist/server/api-client-core/apis/crm/emails-types.generated.d.ts +755 -769
  187. package/dist/server/api-client-core/apis/crm/emails.generated.d.ts +5 -3
  188. package/dist/server/api-client-core/apis/crm/emails.generated.js +58 -57
  189. package/dist/server/api-client-core/apis/crm/emails.generated.js.map +1 -1
  190. package/dist/server/api-client-core/apis/crm/exports-types.generated.d.ts +227 -251
  191. package/dist/server/api-client-core/apis/crm/exports.generated.d.ts +2 -2
  192. package/dist/server/api-client-core/apis/crm/exports.generated.js +4 -5
  193. package/dist/server/api-client-core/apis/crm/exports.generated.js.map +1 -1
  194. package/dist/server/api-client-core/apis/crm/feedback-submissions-types.generated.d.ts +551 -565
  195. package/dist/server/api-client-core/apis/crm/feedback-submissions.generated.d.ts +5 -3
  196. package/dist/server/api-client-core/apis/crm/feedback-submissions.generated.js +45 -46
  197. package/dist/server/api-client-core/apis/crm/feedback-submissions.generated.js.map +1 -1
  198. package/dist/server/api-client-core/apis/crm/fees-types.generated.d.ts +755 -769
  199. package/dist/server/api-client-core/apis/crm/fees.generated.d.ts +5 -3
  200. package/dist/server/api-client-core/apis/crm/fees.generated.js +58 -57
  201. package/dist/server/api-client-core/apis/crm/fees.generated.js.map +1 -1
  202. package/dist/server/api-client-core/apis/crm/goal-targets-types.generated.d.ts +755 -769
  203. package/dist/server/api-client-core/apis/crm/goal-targets.generated.d.ts +5 -3
  204. package/dist/server/api-client-core/apis/crm/goal-targets.generated.js +58 -57
  205. package/dist/server/api-client-core/apis/crm/goal-targets.generated.js.map +1 -1
  206. package/dist/server/api-client-core/apis/crm/imports-types.generated.d.ts +305 -329
  207. package/dist/server/api-client-core/apis/crm/imports.generated.d.ts +2 -2
  208. package/dist/server/api-client-core/apis/crm/imports.generated.js +20 -23
  209. package/dist/server/api-client-core/apis/crm/imports.generated.js.map +1 -1
  210. package/dist/server/api-client-core/apis/crm/invoices-types.generated.d.ts +755 -769
  211. package/dist/server/api-client-core/apis/crm/invoices.generated.d.ts +5 -3
  212. package/dist/server/api-client-core/apis/crm/invoices.generated.js +58 -57
  213. package/dist/server/api-client-core/apis/crm/invoices.generated.js.map +1 -1
  214. package/dist/server/api-client-core/apis/crm/leads-types.generated.d.ts +755 -769
  215. package/dist/server/api-client-core/apis/crm/leads.generated.d.ts +5 -3
  216. package/dist/server/api-client-core/apis/crm/leads.generated.js +58 -57
  217. package/dist/server/api-client-core/apis/crm/leads.generated.js.map +1 -1
  218. package/dist/server/api-client-core/apis/crm/limits-tracking-types.generated.d.ts +251 -263
  219. package/dist/server/api-client-core/apis/crm/limits-tracking.generated.d.ts +3 -3
  220. package/dist/server/api-client-core/apis/crm/limits-tracking.generated.js +4 -3
  221. package/dist/server/api-client-core/apis/crm/limits-tracking.generated.js.map +1 -1
  222. package/dist/server/api-client-core/apis/crm/line-items-types.generated.d.ts +755 -769
  223. package/dist/server/api-client-core/apis/crm/line-items.generated.d.ts +5 -3
  224. package/dist/server/api-client-core/apis/crm/line-items.generated.js +58 -57
  225. package/dist/server/api-client-core/apis/crm/line-items.generated.js.map +1 -1
  226. package/dist/server/api-client-core/apis/crm/listings-types.generated.d.ts +758 -772
  227. package/dist/server/api-client-core/apis/crm/listings.generated.d.ts +5 -3
  228. package/dist/server/api-client-core/apis/crm/listings.generated.js +58 -57
  229. package/dist/server/api-client-core/apis/crm/listings.generated.js.map +1 -1
  230. package/dist/server/api-client-core/apis/crm/lists-types.generated.d.ts +2075 -2111
  231. package/dist/server/api-client-core/apis/crm/lists.generated.d.ts +2 -2
  232. package/dist/server/api-client-core/apis/crm/lists.generated.js +97 -98
  233. package/dist/server/api-client-core/apis/crm/lists.generated.js.map +1 -1
  234. package/dist/server/api-client-core/apis/crm/meetings-types.generated.d.ts +755 -769
  235. package/dist/server/api-client-core/apis/crm/meetings.generated.d.ts +5 -3
  236. package/dist/server/api-client-core/apis/crm/meetings.generated.js +58 -57
  237. package/dist/server/api-client-core/apis/crm/meetings.generated.js.map +1 -1
  238. package/dist/server/api-client-core/apis/crm/notes-types.generated.d.ts +755 -769
  239. package/dist/server/api-client-core/apis/crm/notes.generated.d.ts +5 -3
  240. package/dist/server/api-client-core/apis/crm/notes.generated.js +58 -57
  241. package/dist/server/api-client-core/apis/crm/notes.generated.js.map +1 -1
  242. package/dist/server/api-client-core/apis/crm/object-library-types.generated.d.ts +24 -36
  243. package/dist/server/api-client-core/apis/crm/object-library.generated.d.ts +3 -3
  244. package/dist/server/api-client-core/apis/crm/object-library.generated.js +4 -3
  245. package/dist/server/api-client-core/apis/crm/object-library.generated.js.map +1 -1
  246. package/dist/server/api-client-core/apis/crm/objects-types.generated.d.ts +620 -645
  247. package/dist/server/api-client-core/apis/crm/objects.generated.d.ts +4 -3
  248. package/dist/server/api-client-core/apis/crm/objects.generated.js +66 -67
  249. package/dist/server/api-client-core/apis/crm/objects.generated.js.map +1 -1
  250. package/dist/server/api-client-core/apis/crm/orders-types.generated.d.ts +747 -761
  251. package/dist/server/api-client-core/apis/crm/orders.generated.d.ts +5 -3
  252. package/dist/server/api-client-core/apis/crm/orders.generated.js +58 -57
  253. package/dist/server/api-client-core/apis/crm/orders.generated.js.map +1 -1
  254. package/dist/server/api-client-core/apis/crm/partner-clients-types.generated.d.ts +646 -660
  255. package/dist/server/api-client-core/apis/crm/partner-clients.generated.d.ts +5 -3
  256. package/dist/server/api-client-core/apis/crm/partner-clients.generated.js +63 -62
  257. package/dist/server/api-client-core/apis/crm/partner-clients.generated.js.map +1 -1
  258. package/dist/server/api-client-core/apis/crm/partner-services-types.generated.d.ts +646 -660
  259. package/dist/server/api-client-core/apis/crm/partner-services.generated.d.ts +5 -3
  260. package/dist/server/api-client-core/apis/crm/partner-services.generated.js +63 -62
  261. package/dist/server/api-client-core/apis/crm/partner-services.generated.js.map +1 -1
  262. package/dist/server/api-client-core/apis/crm/pipelines-types.generated.d.ts +320 -332
  263. package/dist/server/api-client-core/apis/crm/pipelines.generated.d.ts +2 -2
  264. package/dist/server/api-client-core/apis/crm/pipelines.generated.js +3 -2
  265. package/dist/server/api-client-core/apis/crm/pipelines.generated.js.map +1 -1
  266. package/dist/server/api-client-core/apis/crm/postal-mail-types.generated.d.ts +744 -758
  267. package/dist/server/api-client-core/apis/crm/postal-mail.generated.d.ts +5 -3
  268. package/dist/server/api-client-core/apis/crm/postal-mail.generated.js +58 -57
  269. package/dist/server/api-client-core/apis/crm/postal-mail.generated.js.map +1 -1
  270. package/dist/server/api-client-core/apis/crm/products-types.generated.d.ts +747 -761
  271. package/dist/server/api-client-core/apis/crm/products.generated.d.ts +5 -3
  272. package/dist/server/api-client-core/apis/crm/products.generated.js +58 -57
  273. package/dist/server/api-client-core/apis/crm/products.generated.js.map +1 -1
  274. package/dist/server/api-client-core/apis/crm/projects-types.generated.d.ts +761 -787
  275. package/dist/server/api-client-core/apis/crm/projects.generated.d.ts +5 -3
  276. package/dist/server/api-client-core/apis/crm/projects.generated.js +59 -58
  277. package/dist/server/api-client-core/apis/crm/projects.generated.js.map +1 -1
  278. package/dist/server/api-client-core/apis/crm/properties-types.generated.d.ts +526 -528
  279. package/dist/server/api-client-core/apis/crm/properties.generated.d.ts +5 -3
  280. package/dist/server/api-client-core/apis/crm/properties.generated.js +79 -78
  281. package/dist/server/api-client-core/apis/crm/properties.generated.js.map +1 -1
  282. package/dist/server/api-client-core/apis/crm/property-validations-types.generated.d.ts +71 -83
  283. package/dist/server/api-client-core/apis/crm/property-validations.generated.d.ts +3 -3
  284. package/dist/server/api-client-core/apis/crm/property-validations.generated.js +4 -3
  285. package/dist/server/api-client-core/apis/crm/property-validations.generated.js.map +1 -1
  286. package/dist/server/api-client-core/apis/crm/public-app-crm-cards-types.generated.d.ts +409 -433
  287. package/dist/server/api-client-core/apis/crm/public-app-crm-cards.generated.d.ts +3 -3
  288. package/dist/server/api-client-core/apis/crm/public-app-crm-cards.generated.js +24 -25
  289. package/dist/server/api-client-core/apis/crm/public-app-crm-cards.generated.js.map +1 -1
  290. package/dist/server/api-client-core/apis/crm/public-app-feature-flags-types.generated.d.ts +156 -169
  291. package/dist/server/api-client-core/apis/crm/public-app-feature-flags.generated.d.ts +4 -3
  292. package/dist/server/api-client-core/apis/crm/public-app-feature-flags.generated.js +55 -56
  293. package/dist/server/api-client-core/apis/crm/public-app-feature-flags.generated.js.map +1 -1
  294. package/dist/server/api-client-core/apis/crm/quotes-types.generated.d.ts +747 -761
  295. package/dist/server/api-client-core/apis/crm/quotes.generated.d.ts +5 -3
  296. package/dist/server/api-client-core/apis/crm/quotes.generated.js +58 -57
  297. package/dist/server/api-client-core/apis/crm/quotes.generated.js.map +1 -1
  298. package/dist/server/api-client-core/apis/crm/schemas-types.generated.d.ts +575 -600
  299. package/dist/server/api-client-core/apis/crm/schemas.generated.d.ts +4 -3
  300. package/dist/server/api-client-core/apis/crm/schemas.generated.js +33 -34
  301. package/dist/server/api-client-core/apis/crm/schemas.generated.js.map +1 -1
  302. package/dist/server/api-client-core/apis/crm/services-types.generated.d.ts +750 -764
  303. package/dist/server/api-client-core/apis/crm/services.generated.d.ts +5 -3
  304. package/dist/server/api-client-core/apis/crm/services.generated.js +58 -57
  305. package/dist/server/api-client-core/apis/crm/services.generated.js.map +1 -1
  306. package/dist/server/api-client-core/apis/crm/tasks-types.generated.d.ts +747 -761
  307. package/dist/server/api-client-core/apis/crm/tasks.generated.d.ts +5 -3
  308. package/dist/server/api-client-core/apis/crm/tasks.generated.js +58 -57
  309. package/dist/server/api-client-core/apis/crm/tasks.generated.js.map +1 -1
  310. package/dist/server/api-client-core/apis/crm/taxes-types.generated.d.ts +747 -761
  311. package/dist/server/api-client-core/apis/crm/taxes.generated.d.ts +5 -3
  312. package/dist/server/api-client-core/apis/crm/taxes.generated.js +58 -57
  313. package/dist/server/api-client-core/apis/crm/taxes.generated.js.map +1 -1
  314. package/dist/server/api-client-core/apis/crm/tickets-types.generated.d.ts +764 -790
  315. package/dist/server/api-client-core/apis/crm/tickets.generated.d.ts +5 -3
  316. package/dist/server/api-client-core/apis/crm/tickets.generated.js +59 -58
  317. package/dist/server/api-client-core/apis/crm/tickets.generated.js.map +1 -1
  318. package/dist/server/api-client-core/apis/crm/timeline-types.generated.d.ts +136 -149
  319. package/dist/server/api-client-core/apis/crm/timeline.generated.d.ts +4 -3
  320. package/dist/server/api-client-core/apis/crm/timeline.generated.js +5 -6
  321. package/dist/server/api-client-core/apis/crm/timeline.generated.js.map +1 -1
  322. package/dist/server/api-client-core/apis/crm/transcriptions-types.generated.d.ts +104 -117
  323. package/dist/server/api-client-core/apis/crm/transcriptions.generated.d.ts +4 -3
  324. package/dist/server/api-client-core/apis/crm/transcriptions.generated.js +7 -10
  325. package/dist/server/api-client-core/apis/crm/transcriptions.generated.js.map +1 -1
  326. package/dist/server/api-client-core/apis/crm/users-types.generated.d.ts +747 -761
  327. package/dist/server/api-client-core/apis/crm/users.generated.d.ts +5 -3
  328. package/dist/server/api-client-core/apis/crm/users.generated.js +58 -57
  329. package/dist/server/api-client-core/apis/crm/users.generated.js.map +1 -1
  330. package/dist/server/api-client-core/apis/crm/video-conferencing-extension-types.generated.d.ts +28 -40
  331. package/dist/server/api-client-core/apis/crm/video-conferencing-extension.generated.d.ts +3 -3
  332. package/dist/server/api-client-core/apis/crm/video-conferencing-extension.generated.js +4 -3
  333. package/dist/server/api-client-core/apis/crm/video-conferencing-extension.generated.js.map +1 -1
  334. package/dist/server/api-client-core/apis/events/manage-event-definitions-types.generated.d.ts +909 -945
  335. package/dist/server/api-client-core/apis/events/manage-event-definitions.generated.d.ts +3 -3
  336. package/dist/server/api-client-core/apis/events/manage-event-definitions.generated.js +29 -30
  337. package/dist/server/api-client-core/apis/events/manage-event-definitions.generated.js.map +1 -1
  338. package/dist/server/api-client-core/apis/events/send-event-completions-types.generated.d.ts +49 -62
  339. package/dist/server/api-client-core/apis/events/send-event-completions.generated.d.ts +4 -3
  340. package/dist/server/api-client-core/apis/events/send-event-completions.generated.js +4 -5
  341. package/dist/server/api-client-core/apis/events/send-event-completions.generated.js.map +1 -1
  342. package/dist/server/api-client-core/apis/events-types.generated.d.ts +99 -111
  343. package/dist/server/api-client-core/apis/events.generated.d.ts +3 -3
  344. package/dist/server/api-client-core/apis/events.generated.js +4 -3
  345. package/dist/server/api-client-core/apis/events.generated.js.map +1 -1
  346. package/dist/server/api-client-core/apis/files-types.generated.d.ts +636 -649
  347. package/dist/server/api-client-core/apis/files.generated.d.ts +4 -3
  348. package/dist/server/api-client-core/apis/files.generated.js +112 -113
  349. package/dist/server/api-client-core/apis/files.generated.js.map +1 -1
  350. package/dist/server/api-client-core/apis/marketing/campaigns-public-api-types.generated.d.ts +799 -816
  351. package/dist/server/api-client-core/apis/marketing/campaigns-public-api.generated.d.ts +8 -3
  352. package/dist/server/api-client-core/apis/marketing/campaigns-public-api.generated.js +126 -127
  353. package/dist/server/api-client-core/apis/marketing/campaigns-public-api.generated.js.map +1 -1
  354. package/dist/server/api-client-core/apis/marketing/marketing-emails-types.generated.d.ts +745 -769
  355. package/dist/server/api-client-core/apis/marketing/marketing-emails.generated.d.ts +3 -3
  356. package/dist/server/api-client-core/apis/marketing/marketing-emails.generated.js +100 -103
  357. package/dist/server/api-client-core/apis/marketing/marketing-emails.generated.js.map +1 -1
  358. package/dist/server/api-client-core/apis/marketing/marketing-events-types.generated.d.ts +1504 -1546
  359. package/dist/server/api-client-core/apis/marketing/marketing-events.generated.d.ts +9 -3
  360. package/dist/server/api-client-core/apis/marketing/marketing-events.generated.js +162 -167
  361. package/dist/server/api-client-core/apis/marketing/marketing-events.generated.js.map +1 -1
  362. package/dist/server/api-client-core/apis/marketing/single-send-types.generated.d.ts +91 -103
  363. package/dist/server/api-client-core/apis/marketing/single-send.generated.d.ts +3 -3
  364. package/dist/server/api-client-core/apis/marketing/single-send.generated.js +3 -2
  365. package/dist/server/api-client-core/apis/marketing/single-send.generated.js.map +1 -1
  366. package/dist/server/api-client-core/apis/marketing/transactional-single-send-types.generated.d.ts +187 -200
  367. package/dist/server/api-client-core/apis/marketing/transactional-single-send.generated.d.ts +4 -3
  368. package/dist/server/api-client-core/apis/marketing/transactional-single-send.generated.js +14 -15
  369. package/dist/server/api-client-core/apis/marketing/transactional-single-send.generated.js.map +1 -1
  370. package/dist/server/api-client-core/apis/meta/origins-types.generated.d.ts +41 -53
  371. package/dist/server/api-client-core/apis/meta/origins.generated.d.ts +3 -3
  372. package/dist/server/api-client-core/apis/meta/origins.generated.js +4 -3
  373. package/dist/server/api-client-core/apis/meta/origins.generated.js.map +1 -1
  374. package/dist/server/api-client-core/apis/scheduler/meetings-types.generated.d.ts +850 -863
  375. package/dist/server/api-client-core/apis/scheduler/meetings.generated.d.ts +4 -3
  376. package/dist/server/api-client-core/apis/scheduler/meetings.generated.js +28 -29
  377. package/dist/server/api-client-core/apis/scheduler/meetings.generated.js.map +1 -1
  378. package/dist/server/api-client-core/apis/settings/multicurrency-types.generated.d.ts +281 -296
  379. package/dist/server/api-client-core/apis/settings/multicurrency.generated.d.ts +6 -3
  380. package/dist/server/api-client-core/apis/settings/multicurrency.generated.js +32 -33
  381. package/dist/server/api-client-core/apis/settings/multicurrency.generated.js.map +1 -1
  382. package/dist/server/api-client-core/apis/settings/tax-rates-types.generated.d.ts +71 -83
  383. package/dist/server/api-client-core/apis/settings/tax-rates.generated.d.ts +3 -3
  384. package/dist/server/api-client-core/apis/settings/tax-rates.generated.js +4 -3
  385. package/dist/server/api-client-core/apis/settings/tax-rates.generated.js.map +1 -1
  386. package/dist/server/api-client-core/apis/settings/user-provisioning-types.generated.d.ts +202 -250
  387. package/dist/server/api-client-core/apis/settings/user-provisioning.generated.d.ts +3 -3
  388. package/dist/server/api-client-core/apis/settings/user-provisioning.generated.js +23 -26
  389. package/dist/server/api-client-core/apis/settings/user-provisioning.generated.js.map +1 -1
  390. package/dist/server/api-client-core/apis/webhooks-journal-types.generated.d.ts +490 -526
  391. package/dist/server/api-client-core/apis/webhooks-journal.generated.d.ts +3 -3
  392. package/dist/server/api-client-core/apis/webhooks-journal.generated.js +65 -70
  393. package/dist/server/api-client-core/apis/webhooks-journal.generated.js.map +1 -1
  394. package/dist/server/api-client-core/apis/webhooks-types.generated.d.ts +816 -852
  395. package/dist/server/api-client-core/apis/webhooks.generated.d.ts +3 -3
  396. package/dist/server/api-client-core/apis/webhooks.generated.js +93 -98
  397. package/dist/server/api-client-core/apis/webhooks.generated.js.map +1 -1
  398. package/dist/server/api-client-core/binary-data.js.map +1 -1
  399. package/dist/server/api-client-core/client.js +5 -1
  400. package/dist/server/api-client-core/client.js.map +1 -1
  401. package/dist/server/api-client-core/codegen-helpers/file-op-wrappers.js.map +1 -1
  402. package/dist/server/api-client-core/errors.js.map +1 -1
  403. package/dist/server/api-client-core/op.js.map +1 -1
  404. package/dist/server/api-client-core/pagination.d.ts +2 -2
  405. package/dist/server/api-client-core/pagination.js +2 -2
  406. package/dist/server/api-client-core/pagination.js.map +1 -1
  407. package/dist/server/api-client-core/plugins/fetch-transport.js +33 -9
  408. package/dist/server/api-client-core/plugins/fetch-transport.js.map +1 -1
  409. package/dist/server/api-client-core/types.d.ts +1 -1
  410. package/dist/server/api-client.d.ts +184 -184
  411. package/dist/server/api-client.js +89 -89
  412. package/dist/server/constants.js +33 -6
  413. package/dist/server/constants.js.map +1 -1
  414. package/dist/server/deno/start.js.map +1 -1
  415. package/dist/server/hono/hono-request-handler.js +32 -23
  416. package/dist/server/hono/hono-request-handler.js.map +1 -1
  417. package/dist/server/hono/hubspot-connect-routes/auth-complete.js +158 -0
  418. package/dist/server/hono/hubspot-connect-routes/auth-complete.js.map +1 -0
  419. package/dist/server/hono/hubspot-connect-routes/auth-init-session.js +25 -12
  420. package/dist/server/hono/hubspot-connect-routes/auth-init-session.js.map +1 -1
  421. package/dist/server/hono/hubspot-connect-routes/auth-logout.js +32 -9
  422. package/dist/server/hono/hubspot-connect-routes/auth-logout.js.map +1 -1
  423. package/dist/server/hono/hubspot-connect-routes/auth-refresh.js +32 -18
  424. package/dist/server/hono/hubspot-connect-routes/auth-refresh.js.map +1 -1
  425. package/dist/server/hono/hubspot-connect-routes/cimd-client-metadata-types.js.map +1 -1
  426. package/dist/server/hono/hubspot-connect-routes/cimd-public-routes.js +4 -1
  427. package/dist/server/hono/hubspot-connect-routes/cimd-public-routes.js.map +1 -1
  428. package/dist/server/hono/hubspot-connect-routes/fetch-hubspot-client-metadata.js.map +1 -1
  429. package/dist/server/hono/hubspot-connect-routes/hubspot-connect-routes.js +4 -2
  430. package/dist/server/hono/hubspot-connect-routes/hubspot-connect-routes.js.map +1 -1
  431. package/dist/server/hono/hubspot-connect-routes/load-hubspot-connect-routes-env.js +5 -5
  432. package/dist/server/hono/hubspot-connect-routes/load-hubspot-connect-routes-env.js.map +1 -1
  433. package/dist/server/hono/hubspot-connect-routes/oauth-client.js.map +1 -1
  434. package/dist/server/hono/hubspot-connect-routes/utils.js +53 -6
  435. package/dist/server/hono/hubspot-connect-routes/utils.js.map +1 -1
  436. package/dist/server/hono/hubspot-connect-routes/whoami.js +51 -0
  437. package/dist/server/hono/hubspot-connect-routes/whoami.js.map +1 -0
  438. package/dist/server/hono/types.d.ts +9 -10
  439. package/dist/server/hono/utils/cookie-utils.js +2 -1
  440. package/dist/server/hono/utils/cookie-utils.js.map +1 -1
  441. package/dist/server/hono/utils/cors-middleware.js +85 -0
  442. package/dist/server/hono/utils/cors-middleware.js.map +1 -0
  443. package/dist/server/import-app-keys.js.map +1 -1
  444. package/dist/server/lovable/create-app-function-start.d.ts +1 -1
  445. package/dist/server/lovable/create-app-function-start.js +4 -6
  446. package/dist/server/lovable/create-app-function-start.js.map +1 -1
  447. package/dist/server/lovable/hubspot-connect/index.js.map +1 -1
  448. package/dist/server/lovable/hubspot-connect/run-hubspot-connect-lovable-server.js +14 -15
  449. package/dist/server/lovable/hubspot-connect/run-hubspot-connect-lovable-server.js.map +1 -1
  450. package/dist/server/sanitize-request.js +14 -11
  451. package/dist/server/sanitize-request.js.map +1 -1
  452. package/dist/server/secure-start-core.js +4 -5
  453. package/dist/server/secure-start-core.js.map +1 -1
  454. package/dist/server/shared/constants.js +22 -9
  455. package/dist/server/shared/constants.js.map +1 -1
  456. package/dist/server/shared/encoding/base64.js.map +1 -1
  457. package/dist/server/shared/encoding/sha256.js.map +1 -1
  458. package/dist/server/shared/logger.js.map +1 -1
  459. package/dist/server/types.d.ts +1 -35
  460. package/dist/server/utils/cookie-utils.js.map +1 -1
  461. package/dist/server/utils/dpop-utils.js.map +1 -1
  462. package/dist/server/utils/env-utils.js +60 -7
  463. package/dist/server/utils/env-utils.js.map +1 -1
  464. package/dist/server/utils/hubspot-dpop-auth-headers.js +38 -0
  465. package/dist/server/utils/hubspot-dpop-auth-headers.js.map +1 -0
  466. package/dist/server/utils/jwk-utils.js.map +1 -1
  467. package/dist/server/utils/jwt-utils.js.map +1 -1
  468. package/package.json +15 -21
  469. package/src/browser/app-connect-controller/README.md +5 -2
  470. package/src/browser/app-connect-controller/connect-start.test.ts +157 -0
  471. package/src/browser/app-connect-controller/connect-start.ts +18 -3
  472. package/src/browser/app-connect-controller/constants.ts +6 -4
  473. package/src/browser/app-connect-controller/create.ts +8 -2
  474. package/src/browser/app-connect-controller/disconnect.ts +5 -7
  475. package/src/browser/app-connect-controller/init.test.ts +275 -0
  476. package/src/browser/app-connect-controller/init.ts +44 -19
  477. package/src/browser/app-connect-controller/oauth-complete.test.ts +110 -0
  478. package/src/browser/app-connect-controller/oauth-complete.ts +53 -0
  479. package/src/browser/app-connect-controller/oauth-popup.test.ts +239 -0
  480. package/src/browser/app-connect-controller/oauth-popup.ts +160 -0
  481. package/src/browser/app-connect-controller/types.ts +3 -0
  482. package/src/browser/app-connect-controller/utils/iframe-utils.ts +12 -0
  483. package/src/browser/app-connect-controller/utils/resolve-oauth-connect-mode.test.ts +35 -0
  484. package/src/browser/app-connect-controller/utils/resolve-oauth-connect-mode.ts +21 -0
  485. package/src/browser/app-connect-controller/utils/session-utils.test.ts +73 -22
  486. package/src/browser/app-connect-controller/utils/session-utils.ts +74 -33
  487. package/src/browser/app-connect-controller/view-state.test.ts +1 -0
  488. package/src/browser/app-connect-controller/view-state.ts +1 -0
  489. package/src/browser/index.ts +1 -0
  490. package/src/browser/react/components/AppConnectHeader/AppConnectHeader.tsx +21 -34
  491. package/src/browser/react/components/ConnectButton/ConnectButton.tsx +1 -1
  492. package/src/browser/react/lovable/LovableHubSpotAppConnect.tsx +12 -2
  493. package/src/browser/types.ts +30 -5
  494. package/src/server/api-client-core/__tests__/errors.test.ts +309 -0
  495. package/src/server/api-client-core/__tests__/operation-headers.test.ts +251 -0
  496. package/src/server/api-client-core/apis/account/account-info-types.generated.ts +74 -88
  497. package/src/server/api-client-core/apis/account/account-info.generated.ts +2 -4
  498. package/src/server/api-client-core/apis/account/audit-logs-types.generated.ts +346 -360
  499. package/src/server/api-client-core/apis/account/audit-logs.generated.ts +2 -4
  500. package/src/server/api-client-core/apis/auth/oauth-types.generated.ts +81 -99
  501. package/src/server/api-client-core/apis/auth/oauth.generated.ts +1 -3
  502. package/src/server/api-client-core/apis/automation/actions-types.generated.ts +1162 -1188
  503. package/src/server/api-client-core/apis/automation/actions.generated.ts +10 -12
  504. package/src/server/api-client-core/apis/automation/sequences-types.generated.ts +379 -393
  505. package/src/server/api-client-core/apis/automation/sequences.generated.ts +1 -3
  506. package/src/server/api-client-core/apis/business-units-types.generated.ts +43 -59
  507. package/src/server/api-client-core/apis/business-units.generated.ts +9 -10
  508. package/src/server/api-client-core/apis/cms/authors-types.generated.ts +3823 -3853
  509. package/src/server/api-client-core/apis/cms/authors.generated.ts +31 -37
  510. package/src/server/api-client-core/apis/cms/blog-settings-types.generated.ts +3667 -3696
  511. package/src/server/api-client-core/apis/cms/blog-settings.generated.ts +46 -51
  512. package/src/server/api-client-core/apis/cms/cms-content-audit-types.generated.ts +138 -163
  513. package/src/server/api-client-core/apis/cms/cms-content-audit.generated.ts +2 -10
  514. package/src/server/api-client-core/apis/cms/domains-types.generated.ts +153 -167
  515. package/src/server/api-client-core/apis/cms/domains.generated.ts +2 -4
  516. package/src/server/api-client-core/apis/cms/hubdb-types.generated.ts +1013 -1063
  517. package/src/server/api-client-core/apis/cms/hubdb.generated.ts +3 -5
  518. package/src/server/api-client-core/apis/cms/media-bridge-types.generated.ts +8623 -8657
  519. package/src/server/api-client-core/apis/cms/media-bridge.generated.ts +16 -22
  520. package/src/server/api-client-core/apis/cms/pages-types.generated.ts +5259 -5272
  521. package/src/server/api-client-core/apis/cms/pages.generated.ts +262 -226
  522. package/src/server/api-client-core/apis/cms/posts-types.generated.ts +4420 -4438
  523. package/src/server/api-client-core/apis/cms/posts.generated.ts +108 -106
  524. package/src/server/api-client-core/apis/cms/site-search-types.generated.ts +1867 -1881
  525. package/src/server/api-client-core/apis/cms/site-search.generated.ts +2 -4
  526. package/src/server/api-client-core/apis/cms/source-code-types.generated.ts +144 -177
  527. package/src/server/api-client-core/apis/cms/source-code.generated.ts +15 -23
  528. package/src/server/api-client-core/apis/cms/tags-types.generated.ts +3820 -3845
  529. package/src/server/api-client-core/apis/cms/tags.generated.ts +80 -82
  530. package/src/server/api-client-core/apis/cms/url-mappings-types.generated.ts +188 -202
  531. package/src/server/api-client-core/apis/cms/url-mappings.generated.ts +2 -4
  532. package/src/server/api-client-core/apis/cms/url-redirects-types.generated.ts +182 -196
  533. package/src/server/api-client-core/apis/cms/url-redirects.generated.ts +2 -4
  534. package/src/server/api-client-core/apis/communication-preferences/subscriptions-types.generated.ts +810 -828
  535. package/src/server/api-client-core/apis/communication-preferences/subscriptions.generated.ts +66 -63
  536. package/src/server/api-client-core/apis/conversations/custom-channels-types.generated.ts +564 -601
  537. package/src/server/api-client-core/apis/conversations/custom-channels.generated.ts +90 -86
  538. package/src/server/api-client-core/apis/conversations/visitor-identification-types.generated.ts +31 -44
  539. package/src/server/api-client-core/apis/conversations/visitor-identification.generated.ts +6 -8
  540. package/src/server/api-client-core/apis/conversations-types.generated.ts +955 -991
  541. package/src/server/api-client-core/apis/conversations.generated.ts +6 -5
  542. package/src/server/api-client-core/apis/crm/app-uninstalls-types.generated.ts +7 -19
  543. package/src/server/api-client-core/apis/crm/app-uninstalls.generated.ts +2 -4
  544. package/src/server/api-client-core/apis/crm/appointments-types.generated.ts +965 -969
  545. package/src/server/api-client-core/apis/crm/appointments.generated.ts +143 -137
  546. package/src/server/api-client-core/apis/crm/associations-schema-types.generated.ts +292 -322
  547. package/src/server/api-client-core/apis/crm/associations-schema.generated.ts +17 -19
  548. package/src/server/api-client-core/apis/crm/associations-types.generated.ts +657 -675
  549. package/src/server/api-client-core/apis/crm/associations.generated.ts +70 -70
  550. package/src/server/api-client-core/apis/crm/calling-extensions-types.generated.ts +417 -441
  551. package/src/server/api-client-core/apis/crm/calling-extensions.generated.ts +62 -69
  552. package/src/server/api-client-core/apis/crm/calls-types.generated.ts +839 -856
  553. package/src/server/api-client-core/apis/crm/calls.generated.ts +42 -44
  554. package/src/server/api-client-core/apis/crm/carts-types.generated.ts +839 -856
  555. package/src/server/api-client-core/apis/crm/carts.generated.ts +42 -44
  556. package/src/server/api-client-core/apis/crm/commerce-payments-types.generated.ts +847 -856
  557. package/src/server/api-client-core/apis/crm/commerce-payments.generated.ts +73 -73
  558. package/src/server/api-client-core/apis/crm/commerce-subscriptions-types.generated.ts +844 -853
  559. package/src/server/api-client-core/apis/crm/commerce-subscriptions.generated.ts +50 -51
  560. package/src/server/api-client-core/apis/crm/communications-types.generated.ts +846 -856
  561. package/src/server/api-client-core/apis/crm/communications.generated.ts +73 -73
  562. package/src/server/api-client-core/apis/crm/companies-types.generated.ts +859 -885
  563. package/src/server/api-client-core/apis/crm/companies.generated.ts +44 -50
  564. package/src/server/api-client-core/apis/crm/contacts-types.generated.ts +875 -907
  565. package/src/server/api-client-core/apis/crm/contacts.generated.ts +46 -52
  566. package/src/server/api-client-core/apis/crm/contracts-types.generated.ts +894 -862
  567. package/src/server/api-client-core/apis/crm/contracts.generated.ts +66 -56
  568. package/src/server/api-client-core/apis/crm/courses-types.generated.ts +842 -859
  569. package/src/server/api-client-core/apis/crm/courses.generated.ts +42 -44
  570. package/src/server/api-client-core/apis/crm/crm-owners-types.generated.ts +102 -115
  571. package/src/server/api-client-core/apis/crm/crm-owners.generated.ts +2 -4
  572. package/src/server/api-client-core/apis/crm/custom-objects-types.generated.ts +900 -915
  573. package/src/server/api-client-core/apis/crm/custom-objects.generated.ts +128 -126
  574. package/src/server/api-client-core/apis/crm/deal-splits-types.generated.ts +157 -170
  575. package/src/server/api-client-core/apis/crm/deal-splits.generated.ts +2 -4
  576. package/src/server/api-client-core/apis/crm/deals-types.generated.ts +858 -875
  577. package/src/server/api-client-core/apis/crm/deals.generated.ts +42 -44
  578. package/src/server/api-client-core/apis/crm/discounts-types.generated.ts +842 -855
  579. package/src/server/api-client-core/apis/crm/discounts.generated.ts +42 -44
  580. package/src/server/api-client-core/apis/crm/emails-types.generated.ts +839 -856
  581. package/src/server/api-client-core/apis/crm/emails.generated.ts +42 -44
  582. package/src/server/api-client-core/apis/crm/exports-types.generated.ts +284 -314
  583. package/src/server/api-client-core/apis/crm/exports.generated.ts +6 -11
  584. package/src/server/api-client-core/apis/crm/feedback-submissions-types.generated.ts +607 -622
  585. package/src/server/api-client-core/apis/crm/feedback-submissions.generated.ts +84 -80
  586. package/src/server/api-client-core/apis/crm/fees-types.generated.ts +839 -856
  587. package/src/server/api-client-core/apis/crm/fees.generated.ts +42 -44
  588. package/src/server/api-client-core/apis/crm/goal-targets-types.generated.ts +845 -856
  589. package/src/server/api-client-core/apis/crm/goal-targets.generated.ts +50 -51
  590. package/src/server/api-client-core/apis/crm/imports-types.generated.ts +663 -692
  591. package/src/server/api-client-core/apis/crm/imports.generated.ts +2 -7
  592. package/src/server/api-client-core/apis/crm/invoices-types.generated.ts +839 -856
  593. package/src/server/api-client-core/apis/crm/invoices.generated.ts +42 -44
  594. package/src/server/api-client-core/apis/crm/leads-types.generated.ts +839 -856
  595. package/src/server/api-client-core/apis/crm/leads.generated.ts +42 -44
  596. package/src/server/api-client-core/apis/crm/limits-tracking-types.generated.ts +263 -275
  597. package/src/server/api-client-core/apis/crm/limits-tracking.generated.ts +2 -4
  598. package/src/server/api-client-core/apis/crm/line-items-types.generated.ts +843 -856
  599. package/src/server/api-client-core/apis/crm/line-items.generated.ts +42 -44
  600. package/src/server/api-client-core/apis/crm/listings-types.generated.ts +842 -859
  601. package/src/server/api-client-core/apis/crm/listings.generated.ts +42 -44
  602. package/src/server/api-client-core/apis/crm/lists-types.generated.ts +2794 -2845
  603. package/src/server/api-client-core/apis/crm/lists.generated.ts +8 -20
  604. package/src/server/api-client-core/apis/crm/meetings-types.generated.ts +839 -856
  605. package/src/server/api-client-core/apis/crm/meetings.generated.ts +42 -44
  606. package/src/server/api-client-core/apis/crm/notes-types.generated.ts +839 -856
  607. package/src/server/api-client-core/apis/crm/notes.generated.ts +42 -44
  608. package/src/server/api-client-core/apis/crm/object-library-types.generated.ts +26 -39
  609. package/src/server/api-client-core/apis/crm/object-library.generated.ts +2 -4
  610. package/src/server/api-client-core/apis/crm/objects-types.generated.ts +688 -716
  611. package/src/server/api-client-core/apis/crm/objects.generated.ts +79 -83
  612. package/src/server/api-client-core/apis/crm/orders-types.generated.ts +829 -846
  613. package/src/server/api-client-core/apis/crm/orders.generated.ts +45 -47
  614. package/src/server/api-client-core/apis/crm/partner-clients-types.generated.ts +721 -735
  615. package/src/server/api-client-core/apis/crm/partner-clients.generated.ts +60 -60
  616. package/src/server/api-client-core/apis/crm/partner-services-types.generated.ts +720 -734
  617. package/src/server/api-client-core/apis/crm/partner-services.generated.ts +60 -60
  618. package/src/server/api-client-core/apis/crm/pipelines-types.generated.ts +366 -388
  619. package/src/server/api-client-core/apis/crm/pipelines.generated.ts +2 -4
  620. package/src/server/api-client-core/apis/crm/postal-mail-types.generated.ts +830 -843
  621. package/src/server/api-client-core/apis/crm/postal-mail.generated.ts +45 -47
  622. package/src/server/api-client-core/apis/crm/products-types.generated.ts +829 -846
  623. package/src/server/api-client-core/apis/crm/products.generated.ts +45 -47
  624. package/src/server/api-client-core/apis/crm/projects-types.generated.ts +845 -875
  625. package/src/server/api-client-core/apis/crm/projects.generated.ts +47 -53
  626. package/src/server/api-client-core/apis/crm/properties-types.generated.ts +623 -626
  627. package/src/server/api-client-core/apis/crm/properties.generated.ts +33 -28
  628. package/src/server/api-client-core/apis/crm/property-validations-types.generated.ts +160 -174
  629. package/src/server/api-client-core/apis/crm/property-validations.generated.ts +2 -6
  630. package/src/server/api-client-core/apis/crm/public-app-crm-cards-types.generated.ts +467 -494
  631. package/src/server/api-client-core/apis/crm/public-app-crm-cards.generated.ts +7 -15
  632. package/src/server/api-client-core/apis/crm/public-app-feature-flags-types.generated.ts +166 -177
  633. package/src/server/api-client-core/apis/crm/public-app-feature-flags.generated.ts +6 -8
  634. package/src/server/api-client-core/apis/crm/quotes-types.generated.ts +829 -846
  635. package/src/server/api-client-core/apis/crm/quotes.generated.ts +45 -47
  636. package/src/server/api-client-core/apis/crm/schemas-types.generated.ts +613 -640
  637. package/src/server/api-client-core/apis/crm/schemas.generated.ts +8 -14
  638. package/src/server/api-client-core/apis/crm/services-types.generated.ts +832 -849
  639. package/src/server/api-client-core/apis/crm/services.generated.ts +45 -47
  640. package/src/server/api-client-core/apis/crm/tasks-types.generated.ts +829 -846
  641. package/src/server/api-client-core/apis/crm/tasks.generated.ts +45 -47
  642. package/src/server/api-client-core/apis/crm/taxes-types.generated.ts +829 -846
  643. package/src/server/api-client-core/apis/crm/taxes.generated.ts +45 -47
  644. package/src/server/api-client-core/apis/crm/tickets-types.generated.ts +848 -878
  645. package/src/server/api-client-core/apis/crm/tickets.generated.ts +47 -53
  646. package/src/server/api-client-core/apis/crm/timeline-types.generated.ts +144 -161
  647. package/src/server/api-client-core/apis/crm/timeline.generated.ts +6 -8
  648. package/src/server/api-client-core/apis/crm/transcriptions-types.generated.ts +149 -164
  649. package/src/server/api-client-core/apis/crm/transcriptions.generated.ts +22 -22
  650. package/src/server/api-client-core/apis/crm/users-types.generated.ts +829 -846
  651. package/src/server/api-client-core/apis/crm/users.generated.ts +45 -47
  652. package/src/server/api-client-core/apis/crm/video-conferencing-extension-types.generated.ts +29 -42
  653. package/src/server/api-client-core/apis/crm/video-conferencing-extension.generated.ts +17 -19
  654. package/src/server/api-client-core/apis/events/manage-event-definitions-types.generated.ts +1509 -1558
  655. package/src/server/api-client-core/apis/events/manage-event-definitions.generated.ts +55 -65
  656. package/src/server/api-client-core/apis/events/send-event-completions-types.generated.ts +51 -68
  657. package/src/server/api-client-core/apis/events/send-event-completions.generated.ts +10 -10
  658. package/src/server/api-client-core/apis/events-types.generated.ts +97 -110
  659. package/src/server/api-client-core/apis/events.generated.ts +2 -4
  660. package/src/server/api-client-core/apis/files-types.generated.ts +727 -757
  661. package/src/server/api-client-core/apis/files.generated.ts +3 -5
  662. package/src/server/api-client-core/apis/marketing/campaigns-public-api-types.generated.ts +1221 -1234
  663. package/src/server/api-client-core/apis/marketing/campaigns-public-api.generated.ts +45 -47
  664. package/src/server/api-client-core/apis/marketing/marketing-emails-types.generated.ts +3704 -3733
  665. package/src/server/api-client-core/apis/marketing/marketing-emails.generated.ts +44 -52
  666. package/src/server/api-client-core/apis/marketing/marketing-events-types.generated.ts +1787 -1848
  667. package/src/server/api-client-core/apis/marketing/marketing-events.generated.ts +236 -241
  668. package/src/server/api-client-core/apis/marketing/single-send-types.generated.ts +142 -155
  669. package/src/server/api-client-core/apis/marketing/single-send.generated.ts +2 -6
  670. package/src/server/api-client-core/apis/marketing/transactional-single-send-types.generated.ts +253 -269
  671. package/src/server/api-client-core/apis/marketing/transactional-single-send.generated.ts +32 -31
  672. package/src/server/api-client-core/apis/meta/origins-types.generated.ts +40 -56
  673. package/src/server/api-client-core/apis/meta/origins.generated.ts +2 -4
  674. package/src/server/api-client-core/apis/scheduler/meetings-types.generated.ts +1001 -1014
  675. package/src/server/api-client-core/apis/scheduler/meetings.generated.ts +6 -8
  676. package/src/server/api-client-core/apis/settings/multicurrency-types.generated.ts +1906 -1912
  677. package/src/server/api-client-core/apis/settings/multicurrency.generated.ts +64 -63
  678. package/src/server/api-client-core/apis/settings/tax-rates-types.generated.ts +71 -85
  679. package/src/server/api-client-core/apis/settings/tax-rates.generated.ts +2 -4
  680. package/src/server/api-client-core/apis/settings/user-provisioning-types.generated.ts +207 -257
  681. package/src/server/api-client-core/apis/settings/user-provisioning.generated.ts +8 -24
  682. package/src/server/api-client-core/apis/webhooks-journal-types.generated.ts +740 -771
  683. package/src/server/api-client-core/apis/webhooks-journal.generated.ts +47 -59
  684. package/src/server/api-client-core/apis/webhooks-types.generated.ts +1194 -1228
  685. package/src/server/api-client-core/apis/webhooks.generated.ts +52 -64
  686. package/src/server/api-client-core/client.ts +5 -1
  687. package/src/server/api-client-core/pagination.ts +2 -2
  688. package/src/server/api-client-core/plugins/fetch-transport.ts +70 -12
  689. package/src/server/api-client-core/types.ts +1 -1
  690. package/src/server/constants.ts +29 -4
  691. package/src/server/hono/hono-request-handler.ts +68 -27
  692. package/src/server/hono/hubspot-connect-routes/auth-complete.test.ts +394 -0
  693. package/src/server/hono/hubspot-connect-routes/{auth-callback.ts → auth-complete.ts} +81 -30
  694. package/src/server/hono/hubspot-connect-routes/auth-init-session.test.ts +114 -30
  695. package/src/server/hono/hubspot-connect-routes/auth-init-session.ts +35 -10
  696. package/src/server/hono/hubspot-connect-routes/auth-logout.test.ts +13 -0
  697. package/src/server/hono/hubspot-connect-routes/auth-logout.ts +39 -10
  698. package/src/server/hono/hubspot-connect-routes/auth-refresh.test.ts +6 -0
  699. package/src/server/hono/hubspot-connect-routes/auth-refresh.ts +24 -9
  700. package/src/server/hono/hubspot-connect-routes/cimd-public-routes.test.ts +7 -6
  701. package/src/server/hono/hubspot-connect-routes/cimd-public-routes.ts +5 -1
  702. package/src/server/hono/hubspot-connect-routes/hubspot-connect-routes.ts +11 -3
  703. package/src/server/hono/hubspot-connect-routes/load-hubspot-connect-routes-env.test.ts +17 -24
  704. package/src/server/hono/hubspot-connect-routes/load-hubspot-connect-routes-env.ts +8 -8
  705. package/src/server/hono/hubspot-connect-routes/utils.test.ts +16 -46
  706. package/src/server/hono/hubspot-connect-routes/utils.ts +61 -5
  707. package/src/server/hono/hubspot-connect-routes/whoami.ts +74 -0
  708. package/src/server/hono/types.ts +11 -10
  709. package/src/server/hono/utils/cookie-utils.ts +27 -2
  710. package/src/server/hono/utils/cors-middleware.test.ts +80 -0
  711. package/src/server/hono/utils/cors-middleware.ts +95 -0
  712. package/src/server/lovable/create-app-function-start.ts +4 -7
  713. package/src/server/lovable/hubspot-connect/run-hubspot-connect-lovable-server.ts +21 -16
  714. package/src/server/sanitize-request.ts +15 -12
  715. package/src/server/secure-start-core.ts +7 -6
  716. package/src/server/types.ts +2 -38
  717. package/src/server/utils/env-utils.test.ts +140 -12
  718. package/src/server/utils/env-utils.ts +80 -6
  719. package/src/server/utils/hubspot-dpop-auth-headers.test.ts +43 -0
  720. package/src/server/utils/hubspot-dpop-auth-headers.ts +48 -0
  721. package/src/shared/constants.ts +40 -3
  722. package/src/shared/wire-types.ts +49 -0
  723. package/dist/browser/HubSpotAppConnect-BW45gyDs.js.map +0 -1
  724. package/dist/browser/create-vctOhpX9.js.map +0 -1
  725. package/dist/server/hono/hubspot-connect-routes/auth-callback.js +0 -125
  726. package/dist/server/hono/hubspot-connect-routes/auth-callback.js.map +0 -1
  727. package/dist/server/proxy.js +0 -68
  728. package/dist/server/proxy.js.map +0 -1
  729. package/src/server/hono/hubspot-connect-routes/auth-callback.test.ts +0 -225
  730. package/src/server/proxy.test.ts +0 -80
  731. package/src/server/proxy.ts +0 -116
@@ -1,1016 +1,980 @@
1
1
  import { Operation } from "../types.js";
2
2
 
3
3
  //#region src/server/api-client-core/apis/webhooks-types.generated.d.ts
4
- declare namespace Webhooks {
5
- namespace Advanced {
6
- type CreateCrmSnapshotsInput = Schemas.CrmObjectSnapshotBatchRequest;
7
- type CreateCrmSnapshotsOutput = Schemas.CrmObjectSnapshotBatchResponse;
8
- type CreateSubscriptionFilterInput = Schemas.FilterCreateRequest;
9
- type CreateSubscriptionFilterOutput = Schemas.FilterCreateResponse;
10
- }
11
- namespace Basic {
12
- interface CreateEventSubscriptionInput {
13
- /**
14
- * The identifier for the app.
15
- */
16
- appId: number;
17
- data: Schemas.SubscriptionCreateRequest;
18
- }
19
- type CreateEventSubscriptionOutput = Schemas.SubscriptionResponse;
20
- type CreateJournalSubscriptionInput = Schemas.SubscriptionUpsertRequest;
21
- type CreateJournalSubscriptionOutput = Schemas.SubscriptionResponse_1;
22
- interface DeleteEventSubscriptionInput {
23
- /**
24
- * The identifier for the app.
25
- */
26
- appId: number;
27
- /**
28
- * The identifier for the subscription.
29
- */
30
- subscriptionId: number;
31
- }
32
- type DeleteEventSubscriptionOutput = void;
33
- interface DeleteJournalSubscriptionForPortalInput {
34
- /**
35
- * The unique identifier of the portal whose webhook journal subscription is to be deleted.
36
- */
37
- portalId: number;
38
- }
39
- type DeleteJournalSubscriptionForPortalOutput = void;
40
- interface DeleteJournalSubscriptionInput {
41
- /**
42
- * The unique identifier of the subscription to delete.
43
- */
44
- subscriptionId: number;
45
- }
46
- type DeleteJournalSubscriptionOutput = void;
47
- interface DeleteSettingsInput {
48
- /**
49
- * The identifier for the app.
50
- */
51
- appId: number;
52
- }
53
- type DeleteSettingsOutput = void;
54
- interface DeleteSubscriptionFilterInput {
55
- /**
56
- * The unique identifier of the filter to delete.
57
- */
58
- filterId: number;
59
- }
60
- type DeleteSubscriptionFilterOutput = void;
61
- interface GetEarliestJournalEntryInput {
62
- /**
63
- * The ID of the portal installation to filter the journal entries. It is an integer.
64
- */
65
- installPortalId?: number;
66
- }
67
- type GetEarliestJournalEntryOutput = void;
68
- interface GetEarliestLocalJournalEntryInput {
69
- /**
70
- * The ID of the portal installation to filter the journal entries by. This parameter is optional and should be an integer.
71
- */
72
- installPortalId?: number;
73
- }
74
- type GetEarliestLocalJournalEntryOutput = void;
75
- interface GetEventSubscriptionInput {
76
- /**
77
- * The identifier for the app.
78
- */
79
- appId: number;
80
- /**
81
- * The identifier for the subscription.
82
- */
83
- subscriptionId: number;
84
- }
85
- type GetEventSubscriptionOutput = Schemas.SubscriptionResponse;
86
- interface GetJournalStatusInput {
87
- /**
88
- * The unique identifier (UUID) of the status to retrieve.
89
- */
90
- statusId: string;
91
- }
92
- type GetJournalStatusOutput = Schemas.SnapshotStatusResponse;
93
- interface GetJournalSubscriptionInput {
94
- /**
95
- * The unique identifier of the subscription to retrieve. It must be an integer.
96
- */
97
- subscriptionId: number;
98
- }
99
- type GetJournalSubscriptionOutput = Schemas.SubscriptionResponse_1;
100
- interface GetLatestJournalEntryInput {
101
- /**
102
- * The ID of the portal installation to filter the journal entries. It is an integer value.
103
- */
104
- installPortalId?: number;
105
- }
106
- type GetLatestJournalEntryOutput = void;
107
- interface GetLatestLocalJournalEntryInput {
108
- /**
109
- * The ID of the portal for which to retrieve the latest journal entries. This parameter is optional and should be an integer.
110
- */
111
- installPortalId?: number;
112
- }
113
- type GetLatestLocalJournalEntryOutput = void;
114
- interface GetLocalJournalStatusInput {
115
- /**
116
- * The unique identifier (UUID) of the status to retrieve.
117
- */
118
- statusId: string;
119
- }
120
- type GetLocalJournalStatusOutput = Schemas.SnapshotStatusResponse;
121
- interface GetNextJournalEntriesInput {
122
- /**
123
- * The ID of the portal installation to filter the webhook journal entries. This is an optional parameter.
124
- */
125
- installPortalId?: number;
126
- /**
127
- * The offset from which to start retrieving the next batch of webhook journal entries. This parameter is required and identifies the starting point for the batch retrieval.
128
- */
129
- offset: string;
130
- }
131
- type GetNextJournalEntriesOutput = void;
132
- interface GetNextLocalJournalEntriesInput {
133
- /**
134
- * The ID of the portal where the webhook is installed. This is an integer value.
135
- */
136
- installPortalId?: number;
137
- /**
138
- * The starting point for retrieving the next set of journal entries. This is a string value.
139
- */
140
- offset: string;
141
- }
142
- type GetNextLocalJournalEntriesOutput = void;
143
- interface GetSettingsInput {
144
- /**
145
- * The identifier for the app.
146
- */
147
- appId: number;
148
- }
149
- type GetSettingsOutput = Schemas.SettingsResponse;
150
- interface GetSubscriptionFilterInput {
151
- /**
152
- * The unique identifier of the filter to retrieve.
153
- */
154
- filterId: number;
155
- }
156
- type GetSubscriptionFilterOutput = Schemas.FilterResponse;
157
- interface ListEventSubscriptionsInput {
158
- /**
159
- * The identifier for the app.
160
- */
161
- appId: number;
162
- }
163
- type ListEventSubscriptionsOutput = Schemas.SubscriptionListResponse;
164
- type ListJournalSubscriptionsOutput = Schemas.CollectionResponseSubscriptionResponseNoPaging;
165
- interface ListSubscriptionFiltersInput {
166
- /**
167
- * The unique identifier of the subscription for which to retrieve filters.
168
- */
169
- subscriptionId: number;
170
- }
171
- type ListSubscriptionFiltersOutput = Schemas.FilterResponse[];
172
- interface UpdateEventSubscriptionInput {
173
- /**
174
- * The identifier for the app.
175
- */
176
- appId: number;
177
- data: Schemas.SubscriptionPatchRequest;
178
- /**
179
- * The identifier for the subscription.
180
- */
181
- subscriptionId: number;
182
- }
183
- type UpdateEventSubscriptionOutput = Schemas.SubscriptionResponse;
184
- interface UpdateSettingsInput {
185
- /**
186
- * The identifier for the app.
187
- */
188
- appId: number;
189
- data: Schemas.SettingsChangeRequest;
190
- }
191
- type UpdateSettingsOutput = Schemas.SettingsResponse;
192
- }
193
- namespace Batch {
194
- interface CreateBatchEventSubscriptionsInput {
195
- /**
196
- * The identifier for the app.
197
- */
198
- appId: number;
199
- data: Schemas.BatchInputSubscriptionBatchUpdateRequest;
200
- }
201
- type CreateBatchEventSubscriptionsOutput = Schemas.BatchResponseSubscriptionResponse;
202
- interface GetEarliestJournalBatchInput {
203
- /**
204
- * The maximum number of journal entries to retrieve in the batch. This must be an integer with a minimum value of 1.
205
- */
206
- count: number;
207
- /**
208
- * The ID of the portal installation to filter the webhook journal entries by. This is an integer value.
209
- */
210
- installPortalId?: number;
211
- }
212
- type GetEarliestJournalBatchOutput = Schemas.BatchResponseJournalFetchResponse;
213
- interface GetEarliestLocalJournalBatchInput {
214
- /**
215
- * The number of earliest entries to retrieve from the webhook journal. Must be an integer with a minimum value of 1.
216
- */
217
- count: number;
218
- /**
219
- * The ID of the portal where the webhooks are installed. This is an integer value.
220
- */
221
- installPortalId?: number;
222
- }
223
- type GetEarliestLocalJournalBatchOutput = Schemas.BatchResponseJournalFetchResponse;
224
- interface GetJournalBatchByRequestInput {
225
- data: Schemas.BatchInputString;
226
- /**
227
- * The ID of the portal where the webhooks are installed. This is an integer value.
228
- */
229
- installPortalId?: number;
230
- }
231
- type GetJournalBatchByRequestOutput = Schemas.BatchResponseJournalFetchResponse;
232
- interface GetJournalBatchFromOffsetInput {
233
- /**
234
- * The number of journal entries to fetch in the batch. This is an integer value with a minimum of 1.
235
- */
236
- count: number;
237
- /**
238
- * The ID of the portal installation. This is an integer value used to specify the portal context for the request.
239
- */
240
- installPortalId?: number;
241
- /**
242
- * The starting point for fetching the next batch of journal entries. This is a string value that indicates the offset position.
243
- */
244
- offset: string;
245
- }
246
- type GetJournalBatchFromOffsetOutput = Schemas.BatchResponseJournalFetchResponse;
247
- interface GetLatestJournalBatchInput {
248
- /**
249
- * The number of journal entries to retrieve. This is a required integer parameter with a minimum value of 1.
250
- */
251
- count: number;
252
- /**
253
- * The ID of the portal installation. This is an integer value used to identify the specific portal.
254
- */
255
- installPortalId?: number;
256
- }
257
- type GetLatestJournalBatchOutput = Schemas.BatchResponseJournalFetchResponse;
258
- interface GetLatestLocalJournalBatchInput {
259
- /**
260
- * The number of journal entries to retrieve. Must be an integer with a minimum value of 1.
261
- */
262
- count: number;
263
- /**
264
- * The ID of the portal installation. This parameter is optional and used to filter the journal entries by a specific portal.
265
- */
266
- installPortalId?: number;
267
- }
268
- type GetLatestLocalJournalBatchOutput = Schemas.BatchResponseJournalFetchResponse;
269
- interface GetLocalJournalBatchByRequestInput {
270
- data: Schemas.BatchInputString;
271
- /**
272
- * The ID of the portal where the webhooks are installed. This parameter is optional and is used to specify the target portal.
273
- */
274
- installPortalId?: number;
275
- }
276
- type GetLocalJournalBatchByRequestOutput = Schemas.BatchResponseJournalFetchResponse;
277
- interface GetLocalJournalBatchFromOffsetInput {
278
- /**
279
- * The number of journal entries to retrieve. This is an integer value with a minimum of 1.
280
- */
281
- count: number;
282
- /**
283
- * The ID of the portal installation. This is an integer value used to specify the portal context for the request.
284
- */
285
- installPortalId?: number;
286
- /**
287
- * The starting point for fetching the batch of journal entries. This is a string value that indicates the offset position.
288
- */
289
- offset: string;
290
- }
291
- type GetLocalJournalBatchFromOffsetOutput = Schemas.BatchResponseJournalFetchResponse;
292
- }
293
- namespace Schemas {
294
- interface ActionOverrideRequest {
295
- /**
296
- * An array of strings, each representing an associated object type ID relevant to the action override.
297
- */
298
- associatedObjectTypeIds?: string[];
299
- /**
300
- * An array of integers representing list IDs that are associated with the action override. The integers are in int64 format.
301
- */
302
- listIds?: number[];
303
- /**
304
- * An array of integers, each representing an object ID for which the action override is applicable. The integers are in int64 format.
305
- */
306
- objectIds?: number[];
307
- /**
308
- * An array of strings representing the properties to be overridden in the action. Each string corresponds to a property name.
309
- */
310
- properties?: string[];
311
- }
312
- interface AppLifecycleEventSubscriptionUpsertRequest {
313
- eventTypeId: string;
314
- properties: string[];
315
- subscriptionType: 'APP_LIFECYCLE_EVENT' | 'ASSOCIATION' | 'EVENT' | 'GDPR_PRIVACY_DELETION' | 'LIST_MEMBERSHIP' | 'OBJECT';
316
- }
317
- interface AssociationSubscriptionUpsertRequest {
318
- actions: ('ADDED_TO_LIST' | 'APP_INSTALL' | 'APP_UNINSTALL' | 'ASSOCIATION_ADDED' | 'ASSOCIATION_REMOVED' | 'CREATE' | 'DELETE' | 'GDPR_DELETE' | 'MERGE' | 'REMOVED_FROM_LIST' | 'RESTORE' | 'SNAPSHOT' | 'UPDATE')[];
319
- associatedObjectTypeIds: string[];
320
- objectIds: number[];
321
- objectTypeId: string;
322
- portalId: number;
323
- subscriptionType: 'APP_LIFECYCLE_EVENT' | 'ASSOCIATION' | 'EVENT' | 'GDPR_PRIVACY_DELETION' | 'LIST_MEMBERSHIP' | 'OBJECT';
324
- }
325
- interface BatchInputString {
326
- /**
327
- * An array of strings to be processed. This property is required.
328
- */
329
- inputs: string[];
330
- }
331
- interface BatchInputSubscriptionBatchUpdateRequest {
332
- /**
333
- * An array of SubscriptionBatchUpdateRequest objects, each representing a subscription to be updated. This property is required.
334
- */
335
- inputs: Schemas.SubscriptionBatchUpdateRequest[];
336
- }
337
- interface BatchResponseJournalFetchResponse {
338
- /**
339
- * The date and time when the batch operation was completed, in ISO 8601 format.
340
- */
341
- completedAt: string;
342
- /**
343
- * A map of link names to associated URIs related to the batch operation.
344
- */
345
- links?: Record<string, string>;
346
- /**
347
- * The date and time when the batch operation was requested, in ISO 8601 format.
348
- */
349
- requestedAt?: string;
350
- /**
351
- * An array of results from the batch operation, each represented as a JournalFetchResponse object.
352
- */
353
- results: Schemas.JournalFetchResponse[];
354
- /**
355
- * The date and time when the batch operation started, in ISO 8601 format.
356
- */
357
- startedAt: string;
358
- /**
359
- * The current status of the batch operation. Valid values include 'PENDING', 'PROCESSING', 'CANCELED', and 'COMPLETE'.
360
- */
361
- status: 'CANCELED' | 'COMPLETE' | 'PENDING' | 'PROCESSING';
362
- }
363
- interface BatchResponseSubscriptionResponse {
364
- /**
365
- * The date and time when the batch operation was completed, in ISO 8601 format.
366
- */
367
- completedAt: string;
368
- /**
369
- * A map of link names to associated URIs providing additional information about the batch operation.
370
- */
371
- links?: Record<string, string>;
372
- /**
373
- * The date and time when the batch operation was requested, in ISO 8601 format.
374
- */
375
- requestedAt?: string;
376
- /**
377
- * An array containing the results of the batch operation, with each item representing an individual subscription response.
378
- */
379
- results: Schemas.SubscriptionResponse[];
380
- /**
381
- * The date and time when the batch operation started, in ISO 8601 format.
382
- */
383
- startedAt: string;
384
- /**
385
- * The current status of the batch operation. Valid values include 'PENDING', 'PROCESSING', 'CANCELED', and 'COMPLETE'.
386
- */
387
- status: 'CANCELED' | 'COMPLETE' | 'PENDING' | 'PROCESSING';
388
- }
389
- interface CollectionResponseSubscriptionResponseNoPaging {
390
- /**
391
- * An array of SubscriptionResponse objects, each representing a subscription's details such as actions, appId, createdAt, and other relevant properties.
392
- */
393
- results: Schemas.SubscriptionResponse_1[];
394
- }
395
- interface Condition {
396
- /**
397
- * A string indicating the type of filter being applied. Valid value is 'CRM_OBJECT_PROPERTY'.
398
- */
399
- filterType: 'CRM_OBJECT_PROPERTY';
400
- /**
401
- * A string specifying the operation to be performed in the condition. Valid values include 'EQ', 'N_EQ', 'LT', 'GT', 'LTE', 'GTE', 'CONTAINS', 'STARTS_WITH', 'ENDS_WITH', 'IN', 'NOT_IN', 'IS_EMPTY', and 'IS_NOT_EMPTY'.
402
- */
403
- operator: 'CONTAINS' | 'ENDS_WITH' | 'EQ' | 'GT' | 'GTE' | 'IN' | 'IS_EMPTY' | 'IS_NOT_EMPTY' | 'LT' | 'LTE' | 'N_EQ' | 'NOT_IN' | 'STARTS_WITH';
404
- /**
405
- * A string representing the specific property of the CRM object that the condition applies to.
406
- */
407
- property: string;
408
- /**
409
- * A string representing the value to be compared against the specified property when using single-value operators.
410
- */
411
- value?: string;
412
- /**
413
- * An array of strings used to specify multiple values for comparison when using operators that support multiple values, such as 'IN' or 'NOT_IN'.
414
- */
415
- values?: string[];
416
- }
417
- interface CrmObjectSnapshotBatchRequest {
418
- /**
419
- * An array of CrmObjectSnapshotRequest objects, each representing a request to create a snapshot for a specific CRM object. This property is required.
420
- */
421
- snapshotRequests: Schemas.CrmObjectSnapshotRequest[];
422
- }
423
- interface CrmObjectSnapshotBatchResponse {
424
- /**
425
- * An array of CrmObjectSnapshotResponse objects, each representing the result of a snapshot operation for a specific CRM object. This property is required.
426
- */
427
- snapshotResponses: Schemas.CrmObjectSnapshotResponse[];
428
- }
429
- interface CrmObjectSnapshotRequest {
430
- /**
431
- * An integer representing the unique identifier of the CRM object for which the snapshot is requested.
432
- */
433
- objectId: number;
434
- /**
435
- * A string representing the type identifier of the CRM object, specifying what kind of object it is within HubSpot.
436
- */
437
- objectTypeId: string;
438
- /**
439
- * An integer representing the unique identifier of the HubSpot account (portal) where the CRM object resides.
440
- */
441
- portalId: number;
442
- /**
443
- * An array of strings, each representing a property of the CRM object that should be included in the snapshot.
444
- */
445
- properties: string[];
446
- }
447
- interface CrmObjectSnapshotResponse {
448
- /**
449
- * An integer representing the unique identifier of the CRM object for which the snapshot is taken.
450
- */
451
- objectId: number;
452
- /**
453
- * A string indicating the type of the CRM object, such as contact, company, or deal.
454
- */
455
- objectTypeId: string;
456
- /**
457
- * An integer representing the unique identifier of the HubSpot portal associated with the CRM object.
458
- */
459
- portalId: number;
460
- /**
461
- * A UUID string representing the status identifier of the snapshot request, indicating the current state of the snapshot process.
462
- */
463
- snapshotStatusId: string;
464
- }
465
- /**
466
- * Defines a single condition for searching CRM objects, specifying the property to filter on, the operator to use (such as equals, greater than, or contains), and the value(s) to compare against.
467
- */
468
- interface Filter {
469
- /**
470
- * An array of conditions that define the criteria for the filter. Each condition specifies a property, an operator, and optionally a value or values.
471
- */
472
- conditions: Schemas.Condition[];
473
- }
474
- interface FilterCreateRequest {
475
- filter: Schemas.Filter;
476
- /**
477
- * The unique identifier of the subscription to which the filter will be applied. It is an integer formatted as int64.
478
- */
479
- subscriptionId: number;
480
- }
481
- interface FilterCreateResponse {
482
- /**
483
- * The unique identifier for the created filter. It is an integer formatted as int64.
484
- */
485
- filterId: number;
486
- }
487
- interface FilterResponse {
488
- /**
489
- * A Unix timestamp in milliseconds indicating when the filter was created.
490
- */
491
- createdAt: number;
492
- filter: Schemas.Filter;
493
- /**
494
- * The unique identifier for the filter. It is an integer in int64 format.
495
- */
496
- id: number;
497
- }
498
- interface GdprPrivacyDeletionSubscriptionUpsertRequest {
499
- actions: ('ADDED_TO_LIST' | 'APP_INSTALL' | 'APP_UNINSTALL' | 'ASSOCIATION_ADDED' | 'ASSOCIATION_REMOVED' | 'CREATE' | 'DELETE' | 'GDPR_DELETE' | 'MERGE' | 'REMOVED_FROM_LIST' | 'RESTORE' | 'SNAPSHOT' | 'UPDATE')[];
500
- objectTypeId: string;
501
- portalId: number;
502
- subscriptionType: 'APP_LIFECYCLE_EVENT' | 'ASSOCIATION' | 'EVENT' | 'GDPR_PRIVACY_DELETION' | 'LIST_MEMBERSHIP' | 'OBJECT';
503
- }
504
- interface JournalFetchResponse {
505
- /**
506
- * The unique identifier for the current offset of the journal entry, formatted as a UUID.
507
- */
508
- currentOffset: string;
509
- /**
510
- * The date and time when the URL will expire, in ISO 8601 format.
511
- */
512
- expiresAt: string;
513
- /**
514
- * The URL where the journal entry can be accessed. It is a string.
515
- */
516
- url: string;
517
- }
518
- interface ListMembershipSubscriptionUpsertRequest {
519
- actions: ('ADDED_TO_LIST' | 'APP_INSTALL' | 'APP_UNINSTALL' | 'ASSOCIATION_ADDED' | 'ASSOCIATION_REMOVED' | 'CREATE' | 'DELETE' | 'GDPR_DELETE' | 'MERGE' | 'REMOVED_FROM_LIST' | 'RESTORE' | 'SNAPSHOT' | 'UPDATE')[];
520
- listIds: number[];
521
- objectIds: number[];
522
- portalId: number;
523
- subscriptionType: 'APP_LIFECYCLE_EVENT' | 'ASSOCIATION' | 'EVENT' | 'GDPR_PRIVACY_DELETION' | 'LIST_MEMBERSHIP' | 'OBJECT';
524
- }
525
- interface ObjectSubscriptionUpsertRequest {
526
- actions: ('ADDED_TO_LIST' | 'APP_INSTALL' | 'APP_UNINSTALL' | 'ASSOCIATION_ADDED' | 'ASSOCIATION_REMOVED' | 'CREATE' | 'DELETE' | 'GDPR_DELETE' | 'MERGE' | 'REMOVED_FROM_LIST' | 'RESTORE' | 'SNAPSHOT' | 'UPDATE')[];
527
- objectIds: number[];
528
- objectTypeId: string;
529
- portalId: number;
530
- properties: string[];
531
- subscriptionType: 'APP_LIFECYCLE_EVENT' | 'ASSOCIATION' | 'EVENT' | 'GDPR_PRIVACY_DELETION' | 'LIST_MEMBERSHIP' | 'OBJECT';
532
- }
533
- interface SettingsChangeRequest {
534
- /**
535
- * The URL to which webhook events will be sent. It is a string.
536
- */
537
- targetUrl: string;
538
- throttling: Schemas.ThrottlingSettings;
539
- }
540
- interface SettingsResponse {
541
- /**
542
- * The date and time when the webhook settings were created, in ISO 8601 format.
543
- */
544
- createdAt: string;
545
- /**
546
- * The URL to which the webhook events will be sent. It is a string.
547
- */
548
- targetUrl: string;
549
- throttling: Schemas.ThrottlingSettings;
550
- /**
551
- * The date and time when the webhook settings were last updated, in ISO 8601 format.
552
- */
553
- updatedAt?: string;
554
- }
555
- interface SnapshotStatusResponse {
556
- /**
557
- * The timestamp indicating when the snapshot operation was completed, represented as a Unix timestamp in milliseconds.
558
- */
559
- completedAt?: number;
560
- /**
561
- * A code representing the error that occurred, if any. Possible values are 'TIMEOUT', 'VALIDATION_ERROR', 'INTERNAL_ERROR', and 'PERMISSION_DENIED'.
562
- */
563
- errorCode?: 'INTERNAL_ERROR' | 'PERMISSION_DENIED' | 'TIMEOUT' | 'VALIDATION_ERROR';
564
- /**
565
- * The unique identifier for the snapshot operation, represented as a UUID.
566
- */
567
- id: string;
568
- /**
569
- * The timestamp indicating when the snapshot operation was initiated, represented as a Unix timestamp in milliseconds.
570
- */
571
- initiatedAt: number;
572
- /**
573
- * A descriptive message providing additional information about the snapshot operation or error.
574
- */
575
- message?: string;
576
- /**
577
- * The current status of the snapshot. Valid values include 'PENDING', 'IN_PROGRESS', 'COMPLETED', 'FAILED', and 'EXPIRED'.
578
- */
579
- status: 'COMPLETED' | 'EXPIRED' | 'FAILED' | 'IN_PROGRESS' | 'PENDING';
580
- }
581
- interface SubscriptionBatchUpdateRequest {
582
- /**
583
- * A boolean indicating whether the subscription is active.
584
- */
585
- active: boolean;
586
- /**
587
- * The unique identifier for the subscription. It is an integer.
588
- */
589
- id: number;
590
- }
591
- interface SubscriptionCreateRequest {
592
- /**
593
- * A boolean indicating whether the subscription is active.
594
- */
595
- active: boolean;
596
- /**
597
- * A string representing the type of event to subscribe to. Valid values include various property changes, creations, deletions, merges, restorations, association changes, and event completions.
598
- */
599
- eventType: 'company.associationChange' | 'company.creation' | 'company.deletion' | 'company.merge' | 'company.propertyChange' | 'company.restore' | 'contact.associationChange' | 'contact.creation' | 'contact.deletion' | 'contact.merge' | 'contact.privacyDeletion' | 'contact.propertyChange' | 'contact.restore' | 'conversation.creation' | 'conversation.deletion' | 'conversation.newMessage' | 'conversation.privacyDeletion' | 'conversation.propertyChange' | 'deal.associationChange' | 'deal.creation' | 'deal.deletion' | 'deal.merge' | 'deal.propertyChange' | 'deal.restore' | 'event.completed' | 'line_item.associationChange' | 'line_item.creation' | 'line_item.deletion' | 'line_item.merge' | 'line_item.propertyChange' | 'line_item.restore' | 'object.associationChange' | 'object.creation' | 'object.deletion' | 'object.merge' | 'object.propertyChange' | 'object.restore' | 'product.creation' | 'product.deletion' | 'product.merge' | 'product.propertyChange' | 'product.restore' | 'ticket.associationChange' | 'ticket.creation' | 'ticket.deletion' | 'ticket.merge' | 'ticket.propertyChange' | 'ticket.restore';
600
- /**
601
- * A string providing a human-readable name for the event type.
602
- */
603
- eventTypeName?: string;
604
- /**
605
- * A string representing the ID of the object type associated with the subscription.
606
- */
607
- objectTypeId?: string;
608
- /**
609
- * A string indicating the specific property name related to the event type, if applicable.
610
- */
611
- propertyName?: string;
612
- }
613
- interface SubscriptionListResponse {
614
- /**
615
- * An array of subscription responses, each detailing a specific subscription's properties and status.
616
- */
617
- results: Schemas.SubscriptionResponse[];
618
- }
619
- interface SubscriptionPatchRequest {
620
- /**
621
- * A boolean indicating whether the subscription is active. If true, the subscription is active; if false, it is inactive.
622
- */
623
- active?: boolean;
624
- }
625
- interface SubscriptionResponse {
626
- /**
627
- * A boolean indicating whether the subscription is currently active.
628
- */
629
- active: boolean;
630
- /**
631
- * The date and time when the subscription was created, in ISO 8601 format.
632
- */
633
- createdAt: string;
634
- /**
635
- * The type of event that triggers the subscription. Valid values include various property changes, creations, deletions, merges, restores, and association changes for different HubSpot objects.
636
- */
637
- eventType: 'company.associationChange' | 'company.creation' | 'company.deletion' | 'company.merge' | 'company.propertyChange' | 'company.restore' | 'contact.associationChange' | 'contact.creation' | 'contact.deletion' | 'contact.merge' | 'contact.privacyDeletion' | 'contact.propertyChange' | 'contact.restore' | 'conversation.creation' | 'conversation.deletion' | 'conversation.newMessage' | 'conversation.privacyDeletion' | 'conversation.propertyChange' | 'deal.associationChange' | 'deal.creation' | 'deal.deletion' | 'deal.merge' | 'deal.propertyChange' | 'deal.restore' | 'event.completed' | 'line_item.associationChange' | 'line_item.creation' | 'line_item.deletion' | 'line_item.merge' | 'line_item.propertyChange' | 'line_item.restore' | 'object.associationChange' | 'object.creation' | 'object.deletion' | 'object.merge' | 'object.propertyChange' | 'object.restore' | 'product.creation' | 'product.deletion' | 'product.merge' | 'product.propertyChange' | 'product.restore' | 'ticket.associationChange' | 'ticket.creation' | 'ticket.deletion' | 'ticket.merge' | 'ticket.propertyChange' | 'ticket.restore';
638
- /**
639
- * The name of the event type for the subscription.
640
- */
641
- eventTypeName?: string;
642
- /**
643
- * The unique identifier for the subscription. It is an integer formatted as int64.
644
- */
645
- id: string;
646
- /**
647
- * The identifier for the object type associated with the subscription. It is a string.
648
- */
649
- objectTypeId?: string;
650
- /**
651
- * The name of the property associated with the subscription event, if applicable.
652
- */
653
- propertyName?: string;
654
- /**
655
- * The date and time when the subscription was last updated, in ISO 8601 format.
656
- */
657
- updatedAt?: string;
658
- }
659
- interface SubscriptionResponse_1 {
660
- /**
661
- * An object containing action overrides, where each key is an action and the value is an ActionOverrideRequest object.
662
- */
663
- actionOverrides?: Record<string, Schemas.ActionOverrideRequest>;
664
- /**
665
- * A list of actions that trigger the subscription. Possible values include 'CREATE', 'UPDATE', 'DELETE', 'MERGE', 'RESTORE', 'ASSOCIATION_ADDED', 'ASSOCIATION_REMOVED', 'SNAPSHOT', 'APP_INSTALL', 'APP_UNINSTALL', 'ADDED_TO_LIST', 'REMOVED_FROM_LIST', and 'GDPR_DELETE'.
666
- */
667
- actions: ('ADDED_TO_LIST' | 'APP_INSTALL' | 'APP_UNINSTALL' | 'ASSOCIATION_ADDED' | 'ASSOCIATION_REMOVED' | 'CREATE' | 'DELETE' | 'GDPR_DELETE' | 'MERGE' | 'REMOVED_FROM_LIST' | 'RESTORE' | 'SNAPSHOT' | 'UPDATE')[];
668
- /**
669
- * The unique identifier for the app associated with the subscription. It is an integer formatted as int64.
670
- */
671
- appId: number;
672
- /**
673
- * A list of associated object type IDs. Each ID is a string.
674
- */
675
- associatedObjectTypeIds?: string[];
676
- /**
677
- * The date and time when the subscription was created, in ISO 8601 format.
678
- */
679
- createdAt: string;
680
- /**
681
- * The ID of the user who created the subscription. It is an integer formatted as int64.
682
- */
683
- createdBy?: number;
684
- /**
685
- * The date and time when the subscription was deleted, in ISO 8601 format, if applicable.
686
- */
687
- deletedAt?: string;
688
- /**
689
- * The unique identifier for the subscription. It is an integer formatted as int64.
690
- */
691
- id: number;
692
- /**
693
- * A list of list IDs associated with the subscription. Each ID is an integer formatted as int64.
694
- */
695
- listIds?: number[];
696
- /**
697
- * A list of object IDs associated with the subscription. Each ID is an integer formatted as int64.
698
- */
699
- objectIds?: number[];
700
- /**
701
- * The identifier for the object type associated with the subscription. It is a string.
702
- */
703
- objectTypeId: string;
704
- /**
705
- * The unique identifier for the portal associated with the subscription. It is an integer formatted as int64.
706
- */
707
- portalId?: number;
708
- /**
709
- * A list of property names associated with the subscription. Each property is a string.
710
- */
711
- properties?: string[];
712
- /**
713
- * The type of subscription, which can be one of the following: 'OBJECT', 'ASSOCIATION', 'EVENT', 'APP_LIFECYCLE_EVENT', 'LIST_MEMBERSHIP', or 'GDPR_PRIVACY_DELETION'.
714
- */
715
- subscriptionType: 'APP_LIFECYCLE_EVENT' | 'ASSOCIATION' | 'EVENT' | 'GDPR_PRIVACY_DELETION' | 'LIST_MEMBERSHIP' | 'OBJECT';
716
- /**
717
- * The date and time when the subscription was last updated, in ISO 8601 format.
718
- */
719
- updatedAt: string;
720
- }
721
- type SubscriptionUpsertRequest = Schemas.ObjectSubscriptionUpsertRequest | Schemas.AssociationSubscriptionUpsertRequest | Schemas.AppLifecycleEventSubscriptionUpsertRequest | Schemas.ListMembershipSubscriptionUpsertRequest | Schemas.GdprPrivacyDeletionSubscriptionUpsertRequest;
722
- interface ThrottlingSettings {
723
- /**
724
- * The maximum number of concurrent requests allowed. This is an integer value.
725
- */
726
- maxConcurrentRequests: number;
727
- }
4
+ declare namespace WebhooksSchemas {
5
+ interface ActionOverrideRequest {
6
+ /**
7
+ * An array of strings, each representing an associated object type ID relevant to the action override.
8
+ */
9
+ associatedObjectTypeIds?: string[];
10
+ /**
11
+ * An array of integers representing list IDs that are associated with the action override. The integers are in int64 format.
12
+ */
13
+ listIds?: number[];
14
+ /**
15
+ * An array of integers, each representing an object ID for which the action override is applicable. The integers are in int64 format.
16
+ */
17
+ objectIds?: number[];
18
+ /**
19
+ * An array of strings representing the properties to be overridden in the action. Each string corresponds to a property name.
20
+ */
21
+ properties?: string[];
22
+ }
23
+ interface AppLifecycleEventSubscriptionUpsertRequest {
24
+ eventTypeId: string;
25
+ properties: string[];
26
+ subscriptionType: 'APP_LIFECYCLE_EVENT' | 'ASSOCIATION' | 'EVENT' | 'GDPR_PRIVACY_DELETION' | 'LIST_MEMBERSHIP' | 'OBJECT';
27
+ }
28
+ interface AssociationSubscriptionUpsertRequest {
29
+ actions: ('ADDED_TO_LIST' | 'APP_INSTALL' | 'APP_UNINSTALL' | 'ASSOCIATION_ADDED' | 'ASSOCIATION_REMOVED' | 'CREATE' | 'DELETE' | 'GDPR_DELETE' | 'MERGE' | 'REMOVED_FROM_LIST' | 'RESTORE' | 'SNAPSHOT' | 'UPDATE')[];
30
+ associatedObjectTypeIds: string[];
31
+ objectIds: number[];
32
+ objectTypeId: string;
33
+ portalId: number;
34
+ subscriptionType: 'APP_LIFECYCLE_EVENT' | 'ASSOCIATION' | 'EVENT' | 'GDPR_PRIVACY_DELETION' | 'LIST_MEMBERSHIP' | 'OBJECT';
35
+ }
36
+ interface BatchInputString {
37
+ /**
38
+ * An array of strings to be processed. This property is required.
39
+ */
40
+ inputs: string[];
41
+ }
42
+ interface BatchInputSubscriptionBatchUpdateRequest {
43
+ /**
44
+ * An array of SubscriptionBatchUpdateRequest objects, each representing a subscription to be updated. This property is required.
45
+ */
46
+ inputs: SubscriptionBatchUpdateRequest[];
47
+ }
48
+ interface BatchResponseJournalFetchResponse {
49
+ /**
50
+ * The date and time when the batch operation was completed, in ISO 8601 format.
51
+ */
52
+ completedAt: string;
53
+ /**
54
+ * A map of link names to associated URIs related to the batch operation.
55
+ */
56
+ links?: Record<string, string>;
57
+ /**
58
+ * The date and time when the batch operation was requested, in ISO 8601 format.
59
+ */
60
+ requestedAt?: string;
61
+ /**
62
+ * An array of results from the batch operation, each represented as a JournalFetchResponse object.
63
+ */
64
+ results: JournalFetchResponse[];
65
+ /**
66
+ * The date and time when the batch operation started, in ISO 8601 format.
67
+ */
68
+ startedAt: string;
69
+ /**
70
+ * The current status of the batch operation. Valid values include 'PENDING', 'PROCESSING', 'CANCELED', and 'COMPLETE'.
71
+ */
72
+ status: 'CANCELED' | 'COMPLETE' | 'PENDING' | 'PROCESSING';
73
+ }
74
+ interface BatchResponseSubscriptionResponse {
75
+ /**
76
+ * The date and time when the batch operation was completed, in ISO 8601 format.
77
+ */
78
+ completedAt: string;
79
+ /**
80
+ * A map of link names to associated URIs providing additional information about the batch operation.
81
+ */
82
+ links?: Record<string, string>;
83
+ /**
84
+ * The date and time when the batch operation was requested, in ISO 8601 format.
85
+ */
86
+ requestedAt?: string;
87
+ /**
88
+ * An array containing the results of the batch operation, with each item representing an individual subscription response.
89
+ */
90
+ results: SubscriptionResponse[];
91
+ /**
92
+ * The date and time when the batch operation started, in ISO 8601 format.
93
+ */
94
+ startedAt: string;
95
+ /**
96
+ * The current status of the batch operation. Valid values include 'PENDING', 'PROCESSING', 'CANCELED', and 'COMPLETE'.
97
+ */
98
+ status: 'CANCELED' | 'COMPLETE' | 'PENDING' | 'PROCESSING';
99
+ }
100
+ interface CollectionResponseSubscriptionResponseNoPaging {
101
+ /**
102
+ * An array of SubscriptionResponse objects, each representing a subscription's details such as actions, appId, createdAt, and other relevant properties.
103
+ */
104
+ results: SubscriptionResponse_1[];
105
+ }
106
+ interface Condition {
107
+ /**
108
+ * A string indicating the type of filter being applied. Valid value is 'CRM_OBJECT_PROPERTY'.
109
+ */
110
+ filterType: 'CRM_OBJECT_PROPERTY';
111
+ /**
112
+ * A string specifying the operation to be performed in the condition. Valid values include 'EQ', 'N_EQ', 'LT', 'GT', 'LTE', 'GTE', 'CONTAINS', 'STARTS_WITH', 'ENDS_WITH', 'IN', 'NOT_IN', 'IS_EMPTY', and 'IS_NOT_EMPTY'.
113
+ */
114
+ operator: 'CONTAINS' | 'ENDS_WITH' | 'EQ' | 'GT' | 'GTE' | 'IN' | 'IS_EMPTY' | 'IS_NOT_EMPTY' | 'LT' | 'LTE' | 'N_EQ' | 'NOT_IN' | 'STARTS_WITH';
115
+ /**
116
+ * A string representing the specific property of the CRM object that the condition applies to.
117
+ */
118
+ property: string;
119
+ /**
120
+ * A string representing the value to be compared against the specified property when using single-value operators.
121
+ */
122
+ value?: string;
123
+ /**
124
+ * An array of strings used to specify multiple values for comparison when using operators that support multiple values, such as 'IN' or 'NOT_IN'.
125
+ */
126
+ values?: string[];
127
+ }
128
+ interface CrmObjectSnapshotBatchRequest {
129
+ /**
130
+ * An array of CrmObjectSnapshotRequest objects, each representing a request to create a snapshot for a specific CRM object. This property is required.
131
+ */
132
+ snapshotRequests: CrmObjectSnapshotRequest[];
133
+ }
134
+ interface CrmObjectSnapshotBatchResponse {
135
+ /**
136
+ * An array of CrmObjectSnapshotResponse objects, each representing the result of a snapshot operation for a specific CRM object. This property is required.
137
+ */
138
+ snapshotResponses: CrmObjectSnapshotResponse[];
139
+ }
140
+ interface CrmObjectSnapshotRequest {
141
+ /**
142
+ * An integer representing the unique identifier of the CRM object for which the snapshot is requested.
143
+ */
144
+ objectId: number;
145
+ /**
146
+ * A string representing the type identifier of the CRM object, specifying what kind of object it is within HubSpot.
147
+ */
148
+ objectTypeId: string;
149
+ /**
150
+ * An integer representing the unique identifier of the HubSpot account (portal) where the CRM object resides.
151
+ */
152
+ portalId: number;
153
+ /**
154
+ * An array of strings, each representing a property of the CRM object that should be included in the snapshot.
155
+ */
156
+ properties: string[];
157
+ }
158
+ interface CrmObjectSnapshotResponse {
159
+ /**
160
+ * An integer representing the unique identifier of the CRM object for which the snapshot is taken.
161
+ */
162
+ objectId: number;
163
+ /**
164
+ * A string indicating the type of the CRM object, such as contact, company, or deal.
165
+ */
166
+ objectTypeId: string;
167
+ /**
168
+ * An integer representing the unique identifier of the HubSpot portal associated with the CRM object.
169
+ */
170
+ portalId: number;
171
+ /**
172
+ * A UUID string representing the status identifier of the snapshot request, indicating the current state of the snapshot process.
173
+ */
174
+ snapshotStatusId: string;
728
175
  }
729
176
  /**
730
- * Usage example:
731
- * ```ts
732
- * import { webhooks } from '@hubspot/api-client-core';
733
- * client.send(webhooks.advanced.createCrmSnapshots(input));
734
- * ```
177
+ * Defines a single condition for searching CRM objects, specifying the property to filter on, the operator to use (such as equals, greater than, or contains), and the value(s) to compare against.
735
178
  */
736
- interface AdvancedAPI {
179
+ interface Filter {
737
180
  /**
738
- * Create Snapshot
739
- * @apiPath /webhooks-journal/snapshots/2026-03/crm
740
- * @apiMethod POST
741
- * @requiredScopes webhooks-journal-snapshot-management
181
+ * An array of conditions that define the criteria for the filter. Each condition specifies a property, an operator, and optionally a value or values.
742
182
  */
743
- createCrmSnapshots: (input: Advanced.CreateCrmSnapshotsInput) => Operation<Advanced.CreateCrmSnapshotsOutput>;
183
+ conditions: Condition[];
184
+ }
185
+ interface FilterCreateRequest {
186
+ filter: Filter;
744
187
  /**
745
- * Create Filter
746
- * @apiPath /webhooks-journal/subscriptions/2026-03/filters
747
- * @apiMethod POST
748
- * @requiredScopes webhooks-journal-subscription-management
188
+ * The unique identifier of the subscription to which the filter will be applied. It is an integer formatted as int64.
189
+ */
190
+ subscriptionId: number;
191
+ }
192
+ interface FilterCreateResponse {
193
+ /**
194
+ * The unique identifier for the created filter. It is an integer formatted as int64.
195
+ */
196
+ filterId: number;
197
+ }
198
+ interface FilterResponse {
199
+ /**
200
+ * A Unix timestamp in milliseconds indicating when the filter was created.
201
+ */
202
+ createdAt: number;
203
+ filter: Filter;
204
+ /**
205
+ * The unique identifier for the filter. It is an integer in int64 format.
206
+ */
207
+ id: number;
208
+ }
209
+ interface GdprPrivacyDeletionSubscriptionUpsertRequest {
210
+ actions: ('ADDED_TO_LIST' | 'APP_INSTALL' | 'APP_UNINSTALL' | 'ASSOCIATION_ADDED' | 'ASSOCIATION_REMOVED' | 'CREATE' | 'DELETE' | 'GDPR_DELETE' | 'MERGE' | 'REMOVED_FROM_LIST' | 'RESTORE' | 'SNAPSHOT' | 'UPDATE')[];
211
+ objectTypeId: string;
212
+ portalId: number;
213
+ subscriptionType: 'APP_LIFECYCLE_EVENT' | 'ASSOCIATION' | 'EVENT' | 'GDPR_PRIVACY_DELETION' | 'LIST_MEMBERSHIP' | 'OBJECT';
214
+ }
215
+ interface JournalFetchResponse {
216
+ /**
217
+ * The unique identifier for the current offset of the journal entry, formatted as a UUID.
218
+ */
219
+ currentOffset: string;
220
+ /**
221
+ * The date and time when the URL will expire, in ISO 8601 format.
222
+ */
223
+ expiresAt: string;
224
+ /**
225
+ * The URL where the journal entry can be accessed. It is a string.
226
+ */
227
+ url: string;
228
+ }
229
+ interface ListMembershipSubscriptionUpsertRequest {
230
+ actions: ('ADDED_TO_LIST' | 'APP_INSTALL' | 'APP_UNINSTALL' | 'ASSOCIATION_ADDED' | 'ASSOCIATION_REMOVED' | 'CREATE' | 'DELETE' | 'GDPR_DELETE' | 'MERGE' | 'REMOVED_FROM_LIST' | 'RESTORE' | 'SNAPSHOT' | 'UPDATE')[];
231
+ listIds: number[];
232
+ objectIds: number[];
233
+ portalId: number;
234
+ subscriptionType: 'APP_LIFECYCLE_EVENT' | 'ASSOCIATION' | 'EVENT' | 'GDPR_PRIVACY_DELETION' | 'LIST_MEMBERSHIP' | 'OBJECT';
235
+ }
236
+ interface ObjectSubscriptionUpsertRequest {
237
+ actions: ('ADDED_TO_LIST' | 'APP_INSTALL' | 'APP_UNINSTALL' | 'ASSOCIATION_ADDED' | 'ASSOCIATION_REMOVED' | 'CREATE' | 'DELETE' | 'GDPR_DELETE' | 'MERGE' | 'REMOVED_FROM_LIST' | 'RESTORE' | 'SNAPSHOT' | 'UPDATE')[];
238
+ objectIds: number[];
239
+ objectTypeId: string;
240
+ portalId: number;
241
+ properties: string[];
242
+ subscriptionType: 'APP_LIFECYCLE_EVENT' | 'ASSOCIATION' | 'EVENT' | 'GDPR_PRIVACY_DELETION' | 'LIST_MEMBERSHIP' | 'OBJECT';
243
+ }
244
+ interface SettingsChangeRequest {
245
+ /**
246
+ * The URL to which webhook events will be sent. It is a string.
247
+ */
248
+ targetUrl: string;
249
+ throttling: ThrottlingSettings;
250
+ }
251
+ interface SettingsResponse {
252
+ /**
253
+ * The date and time when the webhook settings were created, in ISO 8601 format.
254
+ */
255
+ createdAt: string;
256
+ /**
257
+ * The URL to which the webhook events will be sent. It is a string.
258
+ */
259
+ targetUrl: string;
260
+ throttling: ThrottlingSettings;
261
+ /**
262
+ * The date and time when the webhook settings were last updated, in ISO 8601 format.
263
+ */
264
+ updatedAt?: string;
265
+ }
266
+ interface SnapshotStatusResponse {
267
+ /**
268
+ * The timestamp indicating when the snapshot operation was completed, represented as a Unix timestamp in milliseconds.
269
+ */
270
+ completedAt?: number;
271
+ /**
272
+ * A code representing the error that occurred, if any. Possible values are 'TIMEOUT', 'VALIDATION_ERROR', 'INTERNAL_ERROR', and 'PERMISSION_DENIED'.
273
+ */
274
+ errorCode?: 'INTERNAL_ERROR' | 'PERMISSION_DENIED' | 'TIMEOUT' | 'VALIDATION_ERROR';
275
+ /**
276
+ * The unique identifier for the snapshot operation, represented as a UUID.
277
+ */
278
+ id: string;
279
+ /**
280
+ * The timestamp indicating when the snapshot operation was initiated, represented as a Unix timestamp in milliseconds.
281
+ */
282
+ initiatedAt: number;
283
+ /**
284
+ * A descriptive message providing additional information about the snapshot operation or error.
285
+ */
286
+ message?: string;
287
+ /**
288
+ * The current status of the snapshot. Valid values include 'PENDING', 'IN_PROGRESS', 'COMPLETED', 'FAILED', and 'EXPIRED'.
289
+ */
290
+ status: 'COMPLETED' | 'EXPIRED' | 'FAILED' | 'IN_PROGRESS' | 'PENDING';
291
+ }
292
+ interface SubscriptionBatchUpdateRequest {
293
+ /**
294
+ * A boolean indicating whether the subscription is active.
295
+ */
296
+ active: boolean;
297
+ /**
298
+ * The unique identifier for the subscription. It is an integer.
299
+ */
300
+ id: number;
301
+ }
302
+ interface SubscriptionCreateRequest {
303
+ /**
304
+ * A boolean indicating whether the subscription is active.
305
+ */
306
+ active: boolean;
307
+ /**
308
+ * A string representing the type of event to subscribe to. Valid values include various property changes, creations, deletions, merges, restorations, association changes, and event completions.
309
+ */
310
+ eventType: 'company.associationChange' | 'company.creation' | 'company.deletion' | 'company.merge' | 'company.propertyChange' | 'company.restore' | 'contact.associationChange' | 'contact.creation' | 'contact.deletion' | 'contact.merge' | 'contact.privacyDeletion' | 'contact.propertyChange' | 'contact.restore' | 'conversation.creation' | 'conversation.deletion' | 'conversation.newMessage' | 'conversation.privacyDeletion' | 'conversation.propertyChange' | 'deal.associationChange' | 'deal.creation' | 'deal.deletion' | 'deal.merge' | 'deal.propertyChange' | 'deal.restore' | 'event.completed' | 'line_item.associationChange' | 'line_item.creation' | 'line_item.deletion' | 'line_item.merge' | 'line_item.propertyChange' | 'line_item.restore' | 'object.associationChange' | 'object.creation' | 'object.deletion' | 'object.merge' | 'object.propertyChange' | 'object.restore' | 'product.creation' | 'product.deletion' | 'product.merge' | 'product.propertyChange' | 'product.restore' | 'ticket.associationChange' | 'ticket.creation' | 'ticket.deletion' | 'ticket.merge' | 'ticket.propertyChange' | 'ticket.restore';
311
+ /**
312
+ * A string providing a human-readable name for the event type.
313
+ */
314
+ eventTypeName?: string;
315
+ /**
316
+ * A string representing the ID of the object type associated with the subscription.
317
+ */
318
+ objectTypeId?: string;
319
+ /**
320
+ * A string indicating the specific property name related to the event type, if applicable.
321
+ */
322
+ propertyName?: string;
323
+ }
324
+ interface SubscriptionListResponse {
325
+ /**
326
+ * An array of subscription responses, each detailing a specific subscription's properties and status.
327
+ */
328
+ results: SubscriptionResponse[];
329
+ }
330
+ interface SubscriptionPatchRequest {
331
+ /**
332
+ * A boolean indicating whether the subscription is active. If true, the subscription is active; if false, it is inactive.
333
+ */
334
+ active?: boolean;
335
+ }
336
+ interface SubscriptionResponse {
337
+ /**
338
+ * A boolean indicating whether the subscription is currently active.
339
+ */
340
+ active: boolean;
341
+ /**
342
+ * The date and time when the subscription was created, in ISO 8601 format.
343
+ */
344
+ createdAt: string;
345
+ /**
346
+ * The type of event that triggers the subscription. Valid values include various property changes, creations, deletions, merges, restores, and association changes for different HubSpot objects.
347
+ */
348
+ eventType: 'company.associationChange' | 'company.creation' | 'company.deletion' | 'company.merge' | 'company.propertyChange' | 'company.restore' | 'contact.associationChange' | 'contact.creation' | 'contact.deletion' | 'contact.merge' | 'contact.privacyDeletion' | 'contact.propertyChange' | 'contact.restore' | 'conversation.creation' | 'conversation.deletion' | 'conversation.newMessage' | 'conversation.privacyDeletion' | 'conversation.propertyChange' | 'deal.associationChange' | 'deal.creation' | 'deal.deletion' | 'deal.merge' | 'deal.propertyChange' | 'deal.restore' | 'event.completed' | 'line_item.associationChange' | 'line_item.creation' | 'line_item.deletion' | 'line_item.merge' | 'line_item.propertyChange' | 'line_item.restore' | 'object.associationChange' | 'object.creation' | 'object.deletion' | 'object.merge' | 'object.propertyChange' | 'object.restore' | 'product.creation' | 'product.deletion' | 'product.merge' | 'product.propertyChange' | 'product.restore' | 'ticket.associationChange' | 'ticket.creation' | 'ticket.deletion' | 'ticket.merge' | 'ticket.propertyChange' | 'ticket.restore';
349
+ /**
350
+ * The name of the event type for the subscription.
351
+ */
352
+ eventTypeName?: string;
353
+ /**
354
+ * The unique identifier for the subscription. It is an integer formatted as int64.
355
+ */
356
+ id: string;
357
+ /**
358
+ * The identifier for the object type associated with the subscription. It is a string.
359
+ */
360
+ objectTypeId?: string;
361
+ /**
362
+ * The name of the property associated with the subscription event, if applicable.
363
+ */
364
+ propertyName?: string;
365
+ /**
366
+ * The date and time when the subscription was last updated, in ISO 8601 format.
367
+ */
368
+ updatedAt?: string;
369
+ }
370
+ interface SubscriptionResponse_1 {
371
+ /**
372
+ * An object containing action overrides, where each key is an action and the value is an ActionOverrideRequest object.
373
+ */
374
+ actionOverrides?: Record<string, ActionOverrideRequest>;
375
+ /**
376
+ * A list of actions that trigger the subscription. Possible values include 'CREATE', 'UPDATE', 'DELETE', 'MERGE', 'RESTORE', 'ASSOCIATION_ADDED', 'ASSOCIATION_REMOVED', 'SNAPSHOT', 'APP_INSTALL', 'APP_UNINSTALL', 'ADDED_TO_LIST', 'REMOVED_FROM_LIST', and 'GDPR_DELETE'.
377
+ */
378
+ actions: ('ADDED_TO_LIST' | 'APP_INSTALL' | 'APP_UNINSTALL' | 'ASSOCIATION_ADDED' | 'ASSOCIATION_REMOVED' | 'CREATE' | 'DELETE' | 'GDPR_DELETE' | 'MERGE' | 'REMOVED_FROM_LIST' | 'RESTORE' | 'SNAPSHOT' | 'UPDATE')[];
379
+ /**
380
+ * The unique identifier for the app associated with the subscription. It is an integer formatted as int64.
381
+ */
382
+ appId: number;
383
+ /**
384
+ * A list of associated object type IDs. Each ID is a string.
385
+ */
386
+ associatedObjectTypeIds?: string[];
387
+ /**
388
+ * The date and time when the subscription was created, in ISO 8601 format.
389
+ */
390
+ createdAt: string;
391
+ /**
392
+ * The ID of the user who created the subscription. It is an integer formatted as int64.
393
+ */
394
+ createdBy?: number;
395
+ /**
396
+ * The date and time when the subscription was deleted, in ISO 8601 format, if applicable.
397
+ */
398
+ deletedAt?: string;
399
+ /**
400
+ * The unique identifier for the subscription. It is an integer formatted as int64.
401
+ */
402
+ id: number;
403
+ /**
404
+ * A list of list IDs associated with the subscription. Each ID is an integer formatted as int64.
405
+ */
406
+ listIds?: number[];
407
+ /**
408
+ * A list of object IDs associated with the subscription. Each ID is an integer formatted as int64.
409
+ */
410
+ objectIds?: number[];
411
+ /**
412
+ * The identifier for the object type associated with the subscription. It is a string.
413
+ */
414
+ objectTypeId: string;
415
+ /**
416
+ * The unique identifier for the portal associated with the subscription. It is an integer formatted as int64.
417
+ */
418
+ portalId?: number;
419
+ /**
420
+ * A list of property names associated with the subscription. Each property is a string.
421
+ */
422
+ properties?: string[];
423
+ /**
424
+ * The type of subscription, which can be one of the following: 'OBJECT', 'ASSOCIATION', 'EVENT', 'APP_LIFECYCLE_EVENT', 'LIST_MEMBERSHIP', or 'GDPR_PRIVACY_DELETION'.
425
+ */
426
+ subscriptionType: 'APP_LIFECYCLE_EVENT' | 'ASSOCIATION' | 'EVENT' | 'GDPR_PRIVACY_DELETION' | 'LIST_MEMBERSHIP' | 'OBJECT';
427
+ /**
428
+ * The date and time when the subscription was last updated, in ISO 8601 format.
429
+ */
430
+ updatedAt: string;
431
+ }
432
+ type SubscriptionUpsertRequest = ObjectSubscriptionUpsertRequest | AssociationSubscriptionUpsertRequest | AppLifecycleEventSubscriptionUpsertRequest | ListMembershipSubscriptionUpsertRequest | GdprPrivacyDeletionSubscriptionUpsertRequest;
433
+ interface ThrottlingSettings {
434
+ /**
435
+ * The maximum number of concurrent requests allowed. This is an integer value.
436
+ */
437
+ maxConcurrentRequests: number;
438
+ }
439
+ }
440
+ declare namespace WebhooksWebhooks {
441
+ interface CreateBatchEventSubscriptionsInput {
442
+ /**
443
+ * The identifier for the app.
444
+ */
445
+ appId: number;
446
+ data: WebhooksSchemas.BatchInputSubscriptionBatchUpdateRequest;
447
+ }
448
+ type CreateBatchEventSubscriptionsOutput = WebhooksSchemas.BatchResponseSubscriptionResponse;
449
+ type CreateCrmSnapshotsInput = WebhooksSchemas.CrmObjectSnapshotBatchRequest;
450
+ type CreateCrmSnapshotsOutput = WebhooksSchemas.CrmObjectSnapshotBatchResponse;
451
+ interface CreateEventSubscriptionInput {
452
+ /**
453
+ * The identifier for the app.
454
+ */
455
+ appId: number;
456
+ data: WebhooksSchemas.SubscriptionCreateRequest;
457
+ }
458
+ type CreateEventSubscriptionOutput = WebhooksSchemas.SubscriptionResponse;
459
+ type CreateJournalSubscriptionInput = WebhooksSchemas.SubscriptionUpsertRequest;
460
+ type CreateJournalSubscriptionOutput = WebhooksSchemas.SubscriptionResponse_1;
461
+ type CreateSubscriptionFilterInput = WebhooksSchemas.FilterCreateRequest;
462
+ type CreateSubscriptionFilterOutput = WebhooksSchemas.FilterCreateResponse;
463
+ interface DeleteEventSubscriptionInput {
464
+ /**
465
+ * The identifier for the app.
466
+ */
467
+ appId: number;
468
+ /**
469
+ * The identifier for the subscription.
470
+ */
471
+ subscriptionId: number;
472
+ }
473
+ type DeleteEventSubscriptionOutput = void;
474
+ interface DeleteJournalSubscriptionForPortalInput {
475
+ /**
476
+ * The unique identifier of the portal whose webhook journal subscription is to be deleted.
477
+ */
478
+ portalId: number;
479
+ }
480
+ type DeleteJournalSubscriptionForPortalOutput = void;
481
+ interface DeleteJournalSubscriptionInput {
482
+ /**
483
+ * The unique identifier of the subscription to delete.
484
+ */
485
+ subscriptionId: number;
486
+ }
487
+ type DeleteJournalSubscriptionOutput = void;
488
+ interface DeleteSettingsInput {
489
+ /**
490
+ * The identifier for the app.
491
+ */
492
+ appId: number;
493
+ }
494
+ type DeleteSettingsOutput = void;
495
+ interface DeleteSubscriptionFilterInput {
496
+ /**
497
+ * The unique identifier of the filter to delete.
749
498
  */
750
- createSubscriptionFilter: (input: Advanced.CreateSubscriptionFilterInput) => Operation<Advanced.CreateSubscriptionFilterOutput>;
499
+ filterId: number;
751
500
  }
501
+ type DeleteSubscriptionFilterOutput = void;
502
+ interface GetEarliestJournalBatchInput {
503
+ /**
504
+ * The maximum number of journal entries to retrieve in the batch. This must be an integer with a minimum value of 1.
505
+ */
506
+ count: number;
507
+ /**
508
+ * The ID of the portal installation to filter the webhook journal entries by. This is an integer value.
509
+ */
510
+ installPortalId?: number;
511
+ }
512
+ type GetEarliestJournalBatchOutput = WebhooksSchemas.BatchResponseJournalFetchResponse;
513
+ interface GetEarliestJournalEntryInput {
514
+ /**
515
+ * The ID of the portal installation to filter the journal entries. It is an integer.
516
+ */
517
+ installPortalId?: number;
518
+ }
519
+ type GetEarliestJournalEntryOutput = void;
520
+ interface GetEarliestLocalJournalBatchInput {
521
+ /**
522
+ * The number of earliest entries to retrieve from the webhook journal. Must be an integer with a minimum value of 1.
523
+ */
524
+ count: number;
525
+ /**
526
+ * The ID of the portal where the webhooks are installed. This is an integer value.
527
+ */
528
+ installPortalId?: number;
529
+ }
530
+ type GetEarliestLocalJournalBatchOutput = WebhooksSchemas.BatchResponseJournalFetchResponse;
531
+ interface GetEarliestLocalJournalEntryInput {
532
+ /**
533
+ * The ID of the portal installation to filter the journal entries by. This parameter is optional and should be an integer.
534
+ */
535
+ installPortalId?: number;
536
+ }
537
+ type GetEarliestLocalJournalEntryOutput = void;
538
+ interface GetEventSubscriptionInput {
539
+ /**
540
+ * The identifier for the app.
541
+ */
542
+ appId: number;
543
+ /**
544
+ * The identifier for the subscription.
545
+ */
546
+ subscriptionId: number;
547
+ }
548
+ type GetEventSubscriptionOutput = WebhooksSchemas.SubscriptionResponse;
549
+ interface GetJournalBatchByRequestInput {
550
+ data: WebhooksSchemas.BatchInputString;
551
+ /**
552
+ * The ID of the portal where the webhooks are installed. This is an integer value.
553
+ */
554
+ installPortalId?: number;
555
+ }
556
+ type GetJournalBatchByRequestOutput = WebhooksSchemas.BatchResponseJournalFetchResponse;
557
+ interface GetJournalBatchFromOffsetInput {
558
+ /**
559
+ * The number of journal entries to fetch in the batch. This is an integer value with a minimum of 1.
560
+ */
561
+ count: number;
562
+ /**
563
+ * The ID of the portal installation. This is an integer value used to specify the portal context for the request.
564
+ */
565
+ installPortalId?: number;
566
+ /**
567
+ * The starting point for fetching the next batch of journal entries. This is a string value that indicates the offset position.
568
+ */
569
+ offset: string;
570
+ }
571
+ type GetJournalBatchFromOffsetOutput = WebhooksSchemas.BatchResponseJournalFetchResponse;
572
+ interface GetJournalStatusInput {
573
+ /**
574
+ * The unique identifier (UUID) of the status to retrieve.
575
+ */
576
+ statusId: string;
577
+ }
578
+ type GetJournalStatusOutput = WebhooksSchemas.SnapshotStatusResponse;
579
+ interface GetJournalSubscriptionInput {
580
+ /**
581
+ * The unique identifier of the subscription to retrieve. It must be an integer.
582
+ */
583
+ subscriptionId: number;
584
+ }
585
+ type GetJournalSubscriptionOutput = WebhooksSchemas.SubscriptionResponse_1;
586
+ interface GetLatestJournalBatchInput {
587
+ /**
588
+ * The number of journal entries to retrieve. This is a required integer parameter with a minimum value of 1.
589
+ */
590
+ count: number;
591
+ /**
592
+ * The ID of the portal installation. This is an integer value used to identify the specific portal.
593
+ */
594
+ installPortalId?: number;
595
+ }
596
+ type GetLatestJournalBatchOutput = WebhooksSchemas.BatchResponseJournalFetchResponse;
597
+ interface GetLatestJournalEntryInput {
598
+ /**
599
+ * The ID of the portal installation to filter the journal entries. It is an integer value.
600
+ */
601
+ installPortalId?: number;
602
+ }
603
+ type GetLatestJournalEntryOutput = void;
604
+ interface GetLatestLocalJournalBatchInput {
605
+ /**
606
+ * The number of journal entries to retrieve. Must be an integer with a minimum value of 1.
607
+ */
608
+ count: number;
609
+ /**
610
+ * The ID of the portal installation. This parameter is optional and used to filter the journal entries by a specific portal.
611
+ */
612
+ installPortalId?: number;
613
+ }
614
+ type GetLatestLocalJournalBatchOutput = WebhooksSchemas.BatchResponseJournalFetchResponse;
615
+ interface GetLatestLocalJournalEntryInput {
616
+ /**
617
+ * The ID of the portal for which to retrieve the latest journal entries. This parameter is optional and should be an integer.
618
+ */
619
+ installPortalId?: number;
620
+ }
621
+ type GetLatestLocalJournalEntryOutput = void;
622
+ interface GetLocalJournalBatchByRequestInput {
623
+ data: WebhooksSchemas.BatchInputString;
624
+ /**
625
+ * The ID of the portal where the webhooks are installed. This parameter is optional and is used to specify the target portal.
626
+ */
627
+ installPortalId?: number;
628
+ }
629
+ type GetLocalJournalBatchByRequestOutput = WebhooksSchemas.BatchResponseJournalFetchResponse;
630
+ interface GetLocalJournalBatchFromOffsetInput {
631
+ /**
632
+ * The number of journal entries to retrieve. This is an integer value with a minimum of 1.
633
+ */
634
+ count: number;
635
+ /**
636
+ * The ID of the portal installation. This is an integer value used to specify the portal context for the request.
637
+ */
638
+ installPortalId?: number;
639
+ /**
640
+ * The starting point for fetching the batch of journal entries. This is a string value that indicates the offset position.
641
+ */
642
+ offset: string;
643
+ }
644
+ type GetLocalJournalBatchFromOffsetOutput = WebhooksSchemas.BatchResponseJournalFetchResponse;
645
+ interface GetLocalJournalStatusInput {
646
+ /**
647
+ * The unique identifier (UUID) of the status to retrieve.
648
+ */
649
+ statusId: string;
650
+ }
651
+ type GetLocalJournalStatusOutput = WebhooksSchemas.SnapshotStatusResponse;
652
+ interface GetNextJournalEntriesInput {
653
+ /**
654
+ * The ID of the portal installation to filter the webhook journal entries. This is an optional parameter.
655
+ */
656
+ installPortalId?: number;
657
+ /**
658
+ * The offset from which to start retrieving the next batch of webhook journal entries. This parameter is required and identifies the starting point for the batch retrieval.
659
+ */
660
+ offset: string;
661
+ }
662
+ type GetNextJournalEntriesOutput = void;
663
+ interface GetNextLocalJournalEntriesInput {
664
+ /**
665
+ * The ID of the portal where the webhook is installed. This is an integer value.
666
+ */
667
+ installPortalId?: number;
668
+ /**
669
+ * The starting point for retrieving the next set of journal entries. This is a string value.
670
+ */
671
+ offset: string;
672
+ }
673
+ type GetNextLocalJournalEntriesOutput = void;
674
+ interface GetSettingsInput {
675
+ /**
676
+ * The identifier for the app.
677
+ */
678
+ appId: number;
679
+ }
680
+ type GetSettingsOutput = WebhooksSchemas.SettingsResponse;
681
+ interface GetSubscriptionFilterInput {
682
+ /**
683
+ * The unique identifier of the filter to retrieve.
684
+ */
685
+ filterId: number;
686
+ }
687
+ type GetSubscriptionFilterOutput = WebhooksSchemas.FilterResponse;
688
+ interface ListEventSubscriptionsInput {
689
+ /**
690
+ * The identifier for the app.
691
+ */
692
+ appId: number;
693
+ }
694
+ type ListEventSubscriptionsOutput = WebhooksSchemas.SubscriptionListResponse;
695
+ type ListJournalSubscriptionsOutput = WebhooksSchemas.CollectionResponseSubscriptionResponseNoPaging;
696
+ interface ListSubscriptionFiltersInput {
697
+ /**
698
+ * The unique identifier of the subscription for which to retrieve filters.
699
+ */
700
+ subscriptionId: number;
701
+ }
702
+ type ListSubscriptionFiltersOutput = WebhooksSchemas.FilterResponse[];
703
+ interface UpdateEventSubscriptionInput {
704
+ /**
705
+ * The identifier for the app.
706
+ */
707
+ appId: number;
708
+ data: WebhooksSchemas.SubscriptionPatchRequest;
709
+ /**
710
+ * The identifier for the subscription.
711
+ */
712
+ subscriptionId: number;
713
+ }
714
+ type UpdateEventSubscriptionOutput = WebhooksSchemas.SubscriptionResponse;
715
+ interface UpdateSettingsInput {
716
+ /**
717
+ * The identifier for the app.
718
+ */
719
+ appId: number;
720
+ data: WebhooksSchemas.SettingsChangeRequest;
721
+ }
722
+ type UpdateSettingsOutput = WebhooksSchemas.SettingsResponse;
752
723
  /**
753
724
  * Usage example:
754
725
  * ```ts
755
- * import { webhooks } from '@hubspot/api-client-core';
756
- * client.send(webhooks.basic.createEventSubscription(input));
726
+ * import { webhooksWebhooks } from '@hubspot/api-client-core';
727
+ * client.send(webhooksWebhooks.createBatchEventSubscriptions(input));
757
728
  * ```
758
729
  */
759
- interface BasicAPI {
730
+ interface API {
731
+ /**
732
+ * Batch create event subscriptions
733
+ * @apiPath /webhooks/2026-03/{appId}/subscriptions/batch/update
734
+ * @apiMethod POST
735
+ * @requiredScopes developers-write, private-apps-write
736
+ */
737
+ createBatchEventSubscriptions: (input: CreateBatchEventSubscriptionsInput) => Operation<CreateBatchEventSubscriptionsOutput>;
738
+ /**
739
+ * Create Snapshot
740
+ * @apiPath /webhooks-journal/snapshots/2026-03/crm
741
+ * @apiMethod POST
742
+ * @requiredScopes webhooks-journal-snapshot-management
743
+ */
744
+ createCrmSnapshots: (input: CreateCrmSnapshotsInput) => Operation<CreateCrmSnapshotsOutput>;
760
745
  /**
761
746
  * Create an event subscription
762
747
  * @apiPath /webhooks/2026-03/{appId}/subscriptions
763
748
  * @apiMethod POST
764
749
  * @requiredScopes developers-write, private-apps-write
765
750
  */
766
- createEventSubscription: (input: Basic.CreateEventSubscriptionInput) => Operation<Basic.CreateEventSubscriptionOutput>;
751
+ createEventSubscription: (input: CreateEventSubscriptionInput) => Operation<CreateEventSubscriptionOutput>;
767
752
  /**
768
753
  * Create Subscription
769
754
  * @apiPath /webhooks-journal/subscriptions/2026-03
770
755
  * @apiMethod POST
771
756
  * @requiredScopes webhooks-journal-subscription-management
772
757
  */
773
- createJournalSubscription: (input: Basic.CreateJournalSubscriptionInput) => Operation<Basic.CreateJournalSubscriptionOutput>;
758
+ createJournalSubscription: (input: CreateJournalSubscriptionInput) => Operation<CreateJournalSubscriptionOutput>;
759
+ /**
760
+ * Create Filter
761
+ * @apiPath /webhooks-journal/subscriptions/2026-03/filters
762
+ * @apiMethod POST
763
+ * @requiredScopes webhooks-journal-subscription-management
764
+ */
765
+ createSubscriptionFilter: (input: CreateSubscriptionFilterInput) => Operation<CreateSubscriptionFilterOutput>;
774
766
  /**
775
767
  * Delete event subscription
776
768
  * @apiPath /webhooks/2026-03/{appId}/subscriptions/{subscriptionId}
777
769
  * @apiMethod DELETE
778
770
  * @requiredScopes developers-write, private-apps-write
779
771
  */
780
- deleteEventSubscription: (input: Basic.DeleteEventSubscriptionInput) => Operation<Basic.DeleteEventSubscriptionOutput>;
772
+ deleteEventSubscription: (input: DeleteEventSubscriptionInput) => Operation<DeleteEventSubscriptionOutput>;
781
773
  /**
782
774
  * Delete subscription
783
775
  * @apiPath /webhooks-journal/subscriptions/2026-03/{subscriptionId}
784
776
  * @apiMethod DELETE
785
777
  * @requiredScopes webhooks-journal-subscription-management
786
778
  */
787
- deleteJournalSubscription: (input: Basic.DeleteJournalSubscriptionInput) => Operation<Basic.DeleteJournalSubscriptionOutput>;
779
+ deleteJournalSubscription: (input: DeleteJournalSubscriptionInput) => Operation<DeleteJournalSubscriptionOutput>;
788
780
  /**
789
781
  * Delete subscription
790
782
  * @apiPath /webhooks-journal/subscriptions/2026-03/portals/{portalId}
791
783
  * @apiMethod DELETE
792
784
  * @requiredScopes webhooks-journal-subscription-management
793
785
  */
794
- deleteJournalSubscriptionForPortal: (input: Basic.DeleteJournalSubscriptionForPortalInput) => Operation<Basic.DeleteJournalSubscriptionForPortalOutput>;
786
+ deleteJournalSubscriptionForPortal: (input: DeleteJournalSubscriptionForPortalInput) => Operation<DeleteJournalSubscriptionForPortalOutput>;
795
787
  /**
796
788
  * Delete webhook settings
797
789
  * @apiPath /webhooks/2026-03/{appId}/settings
798
790
  * @apiMethod DELETE
799
791
  * @requiredScopes developers-write, private-apps-write
800
792
  */
801
- deleteSettings: (input: Basic.DeleteSettingsInput) => Operation<Basic.DeleteSettingsOutput>;
793
+ deleteSettings: (input: DeleteSettingsInput) => Operation<DeleteSettingsOutput>;
802
794
  /**
803
795
  * Delete filter
804
796
  * @apiPath /webhooks-journal/subscriptions/2026-03/filters/{filterId}
805
797
  * @apiMethod DELETE
806
798
  * @requiredScopes webhooks-journal-subscription-management
807
799
  */
808
- deleteSubscriptionFilter: (input: Basic.DeleteSubscriptionFilterInput) => Operation<Basic.DeleteSubscriptionFilterOutput>;
800
+ deleteSubscriptionFilter: (input: DeleteSubscriptionFilterInput) => Operation<DeleteSubscriptionFilterOutput>;
801
+ /**
802
+ * Retrieve Batch
803
+ * @apiPath /webhooks-journal/journal/2026-03/batch/earliest/{count}
804
+ * @apiMethod GET
805
+ * @requiredScopes webhooks-journal-data-access
806
+ */
807
+ getEarliestJournalBatch: (input: GetEarliestJournalBatchInput) => Operation<GetEarliestJournalBatchOutput>;
809
808
  /**
810
809
  * Retrieve earliest
811
810
  * @apiPath /webhooks-journal/journal/2026-03/earliest
812
811
  * @apiMethod GET
813
812
  * @requiredScopes webhooks-journal-data-access
814
813
  */
815
- getEarliestJournalEntry: (input?: Basic.GetEarliestJournalEntryInput) => Operation<Basic.GetEarliestJournalEntryOutput>;
814
+ getEarliestJournalEntry: (input?: GetEarliestJournalEntryInput) => Operation<GetEarliestJournalEntryOutput>;
815
+ /**
816
+ * Retrieve Batch
817
+ * @apiPath /webhooks-journal/journal-local/2026-03/batch/earliest/{count}
818
+ * @apiMethod GET
819
+ * @requiredScopes webhooks-journal-data-access
820
+ */
821
+ getEarliestLocalJournalBatch: (input: GetEarliestLocalJournalBatchInput) => Operation<GetEarliestLocalJournalBatchOutput>;
816
822
  /**
817
823
  * Retrieve earliest
818
824
  * @apiPath /webhooks-journal/journal-local/2026-03/earliest
819
825
  * @apiMethod GET
820
826
  * @requiredScopes webhooks-journal-data-access
821
827
  */
822
- getEarliestLocalJournalEntry: (input?: Basic.GetEarliestLocalJournalEntryInput) => Operation<Basic.GetEarliestLocalJournalEntryOutput>;
828
+ getEarliestLocalJournalEntry: (input?: GetEarliestLocalJournalEntryInput) => Operation<GetEarliestLocalJournalEntryOutput>;
823
829
  /**
824
830
  * Read an event subscription
825
831
  * @apiPath /webhooks/2026-03/{appId}/subscriptions/{subscriptionId}
826
832
  * @apiMethod GET
827
833
  * @requiredScopes developers-read, private-apps-read
828
834
  */
829
- getEventSubscription: (input: Basic.GetEventSubscriptionInput) => Operation<Basic.GetEventSubscriptionOutput>;
835
+ getEventSubscription: (input: GetEventSubscriptionInput) => Operation<GetEventSubscriptionOutput>;
836
+ /**
837
+ * Batch read
838
+ * @apiPath /webhooks-journal/journal/2026-03/batch/read
839
+ * @apiMethod POST
840
+ * @requiredScopes webhooks-journal-data-access
841
+ */
842
+ getJournalBatchByRequest: (input: GetJournalBatchByRequestInput) => Operation<GetJournalBatchByRequestOutput>;
843
+ /**
844
+ * Fetch Batch Entries
845
+ * @apiPath /webhooks-journal/journal/2026-03/batch/{offset}/next/{count}
846
+ * @apiMethod GET
847
+ * @requiredScopes webhooks-journal-data-access
848
+ */
849
+ getJournalBatchFromOffset: (input: GetJournalBatchFromOffsetInput) => Operation<GetJournalBatchFromOffsetOutput>;
830
850
  /**
831
851
  * Retrieve status
832
852
  * @apiPath /webhooks-journal/journal/2026-03/status/{statusId}
833
853
  * @apiMethod GET
834
854
  * @requiredScopes webhooks-journal-snapshot-management
835
855
  */
836
- getJournalStatus: (input: Basic.GetJournalStatusInput) => Operation<Basic.GetJournalStatusOutput>;
856
+ getJournalStatus: (input: GetJournalStatusInput) => Operation<GetJournalStatusOutput>;
837
857
  /**
838
858
  * Retrieve subscription
839
859
  * @apiPath /webhooks-journal/subscriptions/2026-03/{subscriptionId}
840
860
  * @apiMethod GET
841
861
  * @requiredScopes webhooks-journal-subscription-read
842
862
  */
843
- getJournalSubscription: (input: Basic.GetJournalSubscriptionInput) => Operation<Basic.GetJournalSubscriptionOutput>;
863
+ getJournalSubscription: (input: GetJournalSubscriptionInput) => Operation<GetJournalSubscriptionOutput>;
864
+ /**
865
+ * Retrieve latest batch
866
+ * @apiPath /webhooks-journal/journal/2026-03/batch/latest/{count}
867
+ * @apiMethod GET
868
+ * @requiredScopes webhooks-journal-data-access
869
+ */
870
+ getLatestJournalBatch: (input: GetLatestJournalBatchInput) => Operation<GetLatestJournalBatchOutput>;
844
871
  /**
845
872
  * Retrieve latest journal
846
873
  * @apiPath /webhooks-journal/journal/2026-03/latest
847
874
  * @apiMethod GET
848
875
  * @requiredScopes webhooks-journal-data-access
849
876
  */
850
- getLatestJournalEntry: (input?: Basic.GetLatestJournalEntryInput) => Operation<Basic.GetLatestJournalEntryOutput>;
877
+ getLatestJournalEntry: (input?: GetLatestJournalEntryInput) => Operation<GetLatestJournalEntryOutput>;
878
+ /**
879
+ * Retrieve latest batch
880
+ * @apiPath /webhooks-journal/journal-local/2026-03/batch/latest/{count}
881
+ * @apiMethod GET
882
+ * @requiredScopes webhooks-journal-data-access
883
+ */
884
+ getLatestLocalJournalBatch: (input: GetLatestLocalJournalBatchInput) => Operation<GetLatestLocalJournalBatchOutput>;
851
885
  /**
852
886
  * Retrieve latest journal
853
887
  * @apiPath /webhooks-journal/journal-local/2026-03/latest
854
888
  * @apiMethod GET
855
889
  * @requiredScopes webhooks-journal-data-access
856
890
  */
857
- getLatestLocalJournalEntry: (input?: Basic.GetLatestLocalJournalEntryInput) => Operation<Basic.GetLatestLocalJournalEntryOutput>;
891
+ getLatestLocalJournalEntry: (input?: GetLatestLocalJournalEntryInput) => Operation<GetLatestLocalJournalEntryOutput>;
892
+ /**
893
+ * Batch read
894
+ * @apiPath /webhooks-journal/journal-local/2026-03/batch/read
895
+ * @apiMethod POST
896
+ * @requiredScopes webhooks-journal-data-access
897
+ */
898
+ getLocalJournalBatchByRequest: (input: GetLocalJournalBatchByRequestInput) => Operation<GetLocalJournalBatchByRequestOutput>;
899
+ /**
900
+ * Retrieve batch
901
+ * @apiPath /webhooks-journal/journal-local/2026-03/batch/{offset}/next/{count}
902
+ * @apiMethod GET
903
+ * @requiredScopes webhooks-journal-data-access
904
+ */
905
+ getLocalJournalBatchFromOffset: (input: GetLocalJournalBatchFromOffsetInput) => Operation<GetLocalJournalBatchFromOffsetOutput>;
858
906
  /**
859
907
  * Retrieve status
860
908
  * @apiPath /webhooks-journal/journal-local/2026-03/status/{statusId}
861
909
  * @apiMethod GET
862
910
  * @requiredScopes webhooks-journal-snapshot-management
863
911
  */
864
- getLocalJournalStatus: (input: Basic.GetLocalJournalStatusInput) => Operation<Basic.GetLocalJournalStatusOutput>;
912
+ getLocalJournalStatus: (input: GetLocalJournalStatusInput) => Operation<GetLocalJournalStatusOutput>;
865
913
  /**
866
914
  * Retrieve Next Batch
867
915
  * @apiPath /webhooks-journal/journal/2026-03/offset/{offset}/next
868
916
  * @apiMethod GET
869
917
  * @requiredScopes webhooks-journal-data-access
870
918
  */
871
- getNextJournalEntries: (input: Basic.GetNextJournalEntriesInput) => Operation<Basic.GetNextJournalEntriesOutput>;
919
+ getNextJournalEntries: (input: GetNextJournalEntriesInput) => Operation<GetNextJournalEntriesOutput>;
872
920
  /**
873
921
  * Retrieve Next Batch
874
922
  * @apiPath /webhooks-journal/journal-local/2026-03/offset/{offset}/next
875
923
  * @apiMethod GET
876
924
  * @requiredScopes webhooks-journal-data-access
877
925
  */
878
- getNextLocalJournalEntries: (input: Basic.GetNextLocalJournalEntriesInput) => Operation<Basic.GetNextLocalJournalEntriesOutput>;
926
+ getNextLocalJournalEntries: (input: GetNextLocalJournalEntriesInput) => Operation<GetNextLocalJournalEntriesOutput>;
879
927
  /**
880
928
  * Read webhook settings
881
929
  * @apiPath /webhooks/2026-03/{appId}/settings
882
930
  * @apiMethod GET
883
931
  * @requiredScopes developers-read, private-apps-read
884
932
  */
885
- getSettings: (input: Basic.GetSettingsInput) => Operation<Basic.GetSettingsOutput>;
933
+ getSettings: (input: GetSettingsInput) => Operation<GetSettingsOutput>;
886
934
  /**
887
935
  * Retrieve filter
888
936
  * @apiPath /webhooks-journal/subscriptions/2026-03/filters/{filterId}
889
937
  * @apiMethod GET
890
938
  * @requiredScopes webhooks-journal-subscription-read
891
939
  */
892
- getSubscriptionFilter: (input: Basic.GetSubscriptionFilterInput) => Operation<Basic.GetSubscriptionFilterOutput>;
940
+ getSubscriptionFilter: (input: GetSubscriptionFilterInput) => Operation<GetSubscriptionFilterOutput>;
893
941
  /**
894
942
  * Read event subscriptions
895
943
  * @apiPath /webhooks/2026-03/{appId}/subscriptions
896
944
  * @apiMethod GET
897
945
  * @requiredScopes developers-read, private-apps-read
898
946
  */
899
- listEventSubscriptions: (input: Basic.ListEventSubscriptionsInput) => Operation<Basic.ListEventSubscriptionsOutput>;
947
+ listEventSubscriptions: (input: ListEventSubscriptionsInput) => Operation<ListEventSubscriptionsOutput>;
900
948
  /**
901
949
  * List subscriptions
902
950
  * @apiPath /webhooks-journal/subscriptions/2026-03
903
951
  * @apiMethod GET
904
952
  * @requiredScopes webhooks-journal-subscription-read
905
953
  */
906
- listJournalSubscriptions: () => Operation<Basic.ListJournalSubscriptionsOutput>;
954
+ listJournalSubscriptions: () => Operation<ListJournalSubscriptionsOutput>;
907
955
  /**
908
956
  * Retrieve Filters
909
957
  * @apiPath /webhooks-journal/subscriptions/2026-03/filters/subscription/{subscriptionId}
910
958
  * @apiMethod GET
911
959
  * @requiredScopes webhooks-journal-subscription-read
912
960
  */
913
- listSubscriptionFilters: (input: Basic.ListSubscriptionFiltersInput) => Operation<Basic.ListSubscriptionFiltersOutput>;
961
+ listSubscriptionFilters: (input: ListSubscriptionFiltersInput) => Operation<ListSubscriptionFiltersOutput>;
914
962
  /**
915
963
  * Update an event subscription
916
964
  * @apiPath /webhooks/2026-03/{appId}/subscriptions/{subscriptionId}
917
965
  * @apiMethod PATCH
918
966
  * @requiredScopes developers-write, private-apps-write
919
967
  */
920
- updateEventSubscription: (input: Basic.UpdateEventSubscriptionInput) => Operation<Basic.UpdateEventSubscriptionOutput>;
968
+ updateEventSubscription: (input: UpdateEventSubscriptionInput) => Operation<UpdateEventSubscriptionOutput>;
921
969
  /**
922
970
  * Update webhook settings
923
971
  * @apiPath /webhooks/2026-03/{appId}/settings
924
972
  * @apiMethod PUT
925
973
  * @requiredScopes developers-write, private-apps-write
926
974
  */
927
- updateSettings: (input: Basic.UpdateSettingsInput) => Operation<Basic.UpdateSettingsOutput>;
928
- }
929
- /**
930
- * Usage example:
931
- * ```ts
932
- * import { webhooks } from '@hubspot/api-client-core';
933
- * client.send(webhooks.batch.createBatchEventSubscriptions(input));
934
- * ```
935
- */
936
- interface BatchAPI {
937
- /**
938
- * Batch create event subscriptions
939
- * @apiPath /webhooks/2026-03/{appId}/subscriptions/batch/update
940
- * @apiMethod POST
941
- * @requiredScopes developers-write, private-apps-write
942
- */
943
- createBatchEventSubscriptions: (input: Batch.CreateBatchEventSubscriptionsInput) => Operation<Batch.CreateBatchEventSubscriptionsOutput>;
944
- /**
945
- * Retrieve Batch
946
- * @apiPath /webhooks-journal/journal/2026-03/batch/earliest/{count}
947
- * @apiMethod GET
948
- * @requiredScopes webhooks-journal-data-access
949
- */
950
- getEarliestJournalBatch: (input: Batch.GetEarliestJournalBatchInput) => Operation<Batch.GetEarliestJournalBatchOutput>;
951
- /**
952
- * Retrieve Batch
953
- * @apiPath /webhooks-journal/journal-local/2026-03/batch/earliest/{count}
954
- * @apiMethod GET
955
- * @requiredScopes webhooks-journal-data-access
956
- */
957
- getEarliestLocalJournalBatch: (input: Batch.GetEarliestLocalJournalBatchInput) => Operation<Batch.GetEarliestLocalJournalBatchOutput>;
958
- /**
959
- * Batch read
960
- * @apiPath /webhooks-journal/journal/2026-03/batch/read
961
- * @apiMethod POST
962
- * @requiredScopes webhooks-journal-data-access
963
- */
964
- getJournalBatchByRequest: (input: Batch.GetJournalBatchByRequestInput) => Operation<Batch.GetJournalBatchByRequestOutput>;
965
- /**
966
- * Fetch Batch Entries
967
- * @apiPath /webhooks-journal/journal/2026-03/batch/{offset}/next/{count}
968
- * @apiMethod GET
969
- * @requiredScopes webhooks-journal-data-access
970
- */
971
- getJournalBatchFromOffset: (input: Batch.GetJournalBatchFromOffsetInput) => Operation<Batch.GetJournalBatchFromOffsetOutput>;
972
- /**
973
- * Retrieve latest batch
974
- * @apiPath /webhooks-journal/journal/2026-03/batch/latest/{count}
975
- * @apiMethod GET
976
- * @requiredScopes webhooks-journal-data-access
977
- */
978
- getLatestJournalBatch: (input: Batch.GetLatestJournalBatchInput) => Operation<Batch.GetLatestJournalBatchOutput>;
979
- /**
980
- * Retrieve latest batch
981
- * @apiPath /webhooks-journal/journal-local/2026-03/batch/latest/{count}
982
- * @apiMethod GET
983
- * @requiredScopes webhooks-journal-data-access
984
- */
985
- getLatestLocalJournalBatch: (input: Batch.GetLatestLocalJournalBatchInput) => Operation<Batch.GetLatestLocalJournalBatchOutput>;
986
- /**
987
- * Batch read
988
- * @apiPath /webhooks-journal/journal-local/2026-03/batch/read
989
- * @apiMethod POST
990
- * @requiredScopes webhooks-journal-data-access
991
- */
992
- getLocalJournalBatchByRequest: (input: Batch.GetLocalJournalBatchByRequestInput) => Operation<Batch.GetLocalJournalBatchByRequestOutput>;
993
- /**
994
- * Retrieve batch
995
- * @apiPath /webhooks-journal/journal-local/2026-03/batch/{offset}/next/{count}
996
- * @apiMethod GET
997
- * @requiredScopes webhooks-journal-data-access
998
- */
999
- getLocalJournalBatchFromOffset: (input: Batch.GetLocalJournalBatchFromOffsetInput) => Operation<Batch.GetLocalJournalBatchFromOffsetOutput>;
1000
- }
1001
- /**
1002
- * Usage example:
1003
- * ```ts
1004
- * import { webhooks } from '@hubspot/api-client-core';
1005
- * client.send(webhooks.advanced.createCrmSnapshots(input));
1006
- * ```
1007
- */
1008
- interface API {
1009
- advanced: AdvancedAPI;
1010
- basic: BasicAPI;
1011
- batch: BatchAPI;
975
+ updateSettings: (input: UpdateSettingsInput) => Operation<UpdateSettingsOutput>;
1012
976
  }
1013
977
  }
1014
978
  //#endregion
1015
- export { Webhooks };
979
+ export { WebhooksSchemas, WebhooksWebhooks };
1016
980
  //# sourceMappingURL=webhooks-types.generated.d.ts.map