@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,1788 +1,1746 @@
1
1
  import { Operation } from "../../types.js";
2
2
 
3
3
  //#region src/server/api-client-core/apis/marketing/marketing-events-types.generated.d.ts
4
- declare namespace MarketingMarketingEvents {
5
- namespace Basic {
6
- type CreateInput = Schemas.MarketingEventCreateRequestParams;
7
- type CreateOutput = Schemas.MarketingEventDefaultResponse;
8
- interface DeleteByExternalEventIdInput {
9
- externalAccountId: string;
10
- externalEventId: string;
11
- }
12
- type DeleteByExternalEventIdOutput = void;
13
- interface DeleteInput {
14
- /**
15
- * The internal id of the marketing event in HubSpot.
16
- */
17
- objectId: string;
18
- }
19
- type DeleteOutput = void;
20
- interface GetByExternalEventIdInput {
21
- externalAccountId: string;
22
- externalEventId: string;
23
- }
24
- type GetByExternalEventIdOutput = Schemas.MarketingEventPublicReadResponse;
25
- interface GetInput {
26
- /**
27
- * The internal id of the marketing event in HubSpot.
28
- */
29
- objectId: string;
30
- }
31
- type GetOutput = Schemas.MarketingEventPublicReadResponseV2;
32
- interface ListInput {
33
- /**
34
- * The cursor indicating the position of the last retrieved item.
35
- */
36
- after?: string;
37
- /**
38
- * The limit for response size. The default value is 10, the max number is 100
39
- */
40
- limit?: number;
41
- }
42
- type ListOutput = Schemas.CollectionResponseMarketingEventPublicReadResponseV2ForwardPaging;
43
- interface UpdateByExternalEventIdInput {
44
- data: Schemas.MarketingEventUpdateRequestParams;
45
- externalAccountId: string;
46
- externalEventId: string;
47
- }
48
- type UpdateByExternalEventIdOutput = Schemas.MarketingEventPublicDefaultResponse;
49
- interface UpdateInput {
50
- data: Schemas.MarketingEventPublicUpdateRequestV2;
51
- /**
52
- * The internal id of the marketing event in HubSpot.
53
- */
54
- objectId: string;
55
- }
56
- type UpdateOutput = Schemas.MarketingEventPublicDefaultResponseV2;
57
- interface UpsertByExternalEventIdInput {
58
- data: Schemas.MarketingEventCreateRequestParams;
59
- externalEventId: string;
60
- }
61
- type UpsertByExternalEventIdOutput = Schemas.MarketingEventPublicDefaultResponse;
62
- }
63
- namespace Batch {
64
- type DeleteBatchByExternalEventIdInput = Schemas.BatchInputMarketingEventExternalUniqueIdentifier;
65
- type DeleteBatchByExternalEventIdOutput = void;
66
- type DeleteBatchInput = Schemas.BatchInputMarketingEventPublicObjectIdDeleteRequest;
67
- type DeleteBatchOutput = void;
68
- type UpdateBatchInput = Schemas.BatchInputMarketingEventPublicUpdateRequestFullV2;
69
- type UpdateBatchOutput = Schemas.BatchResponseMarketingEventPublicDefaultResponseV2;
70
- type UpsertBatchInput = Schemas.BatchInputMarketingEventCreateRequestParams;
71
- type UpsertBatchOutput = Schemas.BatchResponseMarketingEventPublicDefaultResponse;
72
- }
73
- namespace EventAttendees {
74
- interface CreateByEventIdAndContactIdInput {
75
- data: Schemas.BatchInputMarketingEventSubscriber;
76
- /**
77
- * The internal id of the marketing event in HubSpot.
78
- */
79
- objectId: string;
80
- /**
81
- * The attendance state value. It may be 'register', 'attend' or 'cancel'
82
- */
83
- subscriberState: string;
84
- }
85
- type CreateByEventIdAndContactIdOutput = Schemas.BatchResponseSubscriberVidResponse;
86
- interface CreateByEventIdAndEmailInput {
87
- data: Schemas.BatchInputMarketingEventEmailSubscriber;
88
- /**
89
- * The internal id of the marketing event in HubSpot.
90
- */
91
- objectId: string;
92
- /**
93
- * The attendance state value. It may be 'register', 'attend' or 'cancel'
94
- */
95
- subscriberState: string;
96
- }
97
- type CreateByEventIdAndEmailOutput = Schemas.BatchResponseSubscriberEmailResponse;
98
- interface CreateByExternalEventIdAndContactIdInput {
99
- data: Schemas.BatchInputMarketingEventSubscriber;
100
- externalAccountId?: string;
101
- externalEventId: string;
102
- subscriberState: string;
103
- }
104
- type CreateByExternalEventIdAndContactIdOutput = Schemas.BatchResponseSubscriberVidResponse;
105
- interface CreateByExternalEventIdAndEmailInput {
106
- data: Schemas.BatchInputMarketingEventEmailSubscriber;
107
- externalAccountId?: string;
108
- externalEventId: string;
109
- subscriberState: string;
110
- }
111
- type CreateByExternalEventIdAndEmailOutput = Schemas.BatchResponseSubscriberEmailResponse;
112
- }
113
- namespace EventStatus {
114
- interface CancelByExternalEventIdInput {
115
- externalAccountId: string;
116
- externalEventId: string;
117
- }
118
- type CancelByExternalEventIdOutput = Schemas.MarketingEventDefaultResponse;
119
- interface CompleteByExternalEventIdInput {
120
- data: Schemas.MarketingEventCompleteRequestParams;
121
- externalAccountId: string;
122
- externalEventId: string;
123
- }
124
- type CompleteByExternalEventIdOutput = Schemas.MarketingEventDefaultResponse;
125
- }
126
- namespace Identifiers {
127
- interface SearchByExternalEventIdInput {
128
- q: string;
129
- }
130
- type SearchByExternalEventIdOutput = Schemas.CollectionResponseSearchPublicResponseWrapperNoPaging;
131
- interface SearchIdentifiersByExternalEventIdInput {
132
- /**
133
- * The id of the marketing event in the external event application.
134
- */
135
- externalEventId: string;
136
- }
137
- type SearchIdentifiersByExternalEventIdOutput = Schemas.CollectionResponseWithTotalMarketingEventIdentifiersResponse;
138
- }
139
- namespace ListAssociations {
140
- interface AssociateByExternalAccountInput {
141
- /**
142
- * The accountId that is associated with this marketing event in the external event application.
143
- */
144
- externalAccountId: string;
145
- /**
146
- * The id of the marketing event in the external event application.
147
- */
148
- externalEventId: string;
149
- /**
150
- * The ILS ID of the list.
151
- */
152
- listId: string;
153
- }
154
- type AssociateByExternalAccountOutput = void;
155
- interface AssociateInput {
156
- /**
157
- * The ILS ID of the list.
158
- */
159
- listId: string;
160
- /**
161
- * The internal id of the marketing event in HubSpot.
162
- */
163
- marketingEventId: string;
164
- }
165
- type AssociateOutput = void;
166
- interface DeleteByExternalAccountInput {
167
- /**
168
- * The accountId that is associated with this marketing event in the external event application.
169
- */
170
- externalAccountId: string;
171
- /**
172
- * The id of the marketing event in the external event application.
173
- */
174
- externalEventId: string;
175
- /**
176
- * The ILS ID of the list.
177
- */
178
- listId: string;
179
- }
180
- type DeleteByExternalAccountOutput = void;
181
- interface DeleteInput {
182
- /**
183
- * The ILS ID of the list.
184
- */
185
- listId: string;
186
- /**
187
- * The internal id of the marketing event in HubSpot.
188
- */
189
- marketingEventId: string;
190
- }
191
- type DeleteOutput = void;
192
- interface ListByExternalAccountInput {
193
- /**
194
- * The accountId that is associated with this marketing event in the external event application.
195
- */
196
- externalAccountId: string;
197
- /**
198
- * The id of the marketing event in the external event application.
199
- */
200
- externalEventId: string;
201
- }
202
- type ListByExternalAccountOutput = Schemas.CollectionResponseWithTotalPublicList;
203
- interface ListInput {
204
- /**
205
- * The internal id of the marketing event in HubSpot.
206
- */
207
- marketingEventId: string;
208
- }
209
- type ListOutput = Schemas.CollectionResponseWithTotalPublicList;
210
- }
211
- namespace ParticipantState {
212
- interface GetByExternalAccountAndEventIdInput {
213
- /**
214
- * The accountId that is associated with this marketing event in the external event application.
215
- */
216
- externalAccountId: string;
217
- /**
218
- * The id of the marketing event in the external event application.
219
- */
220
- externalEventId: string;
221
- }
222
- type GetByExternalAccountAndEventIdOutput = Schemas.AttendanceCounters;
223
- interface GetByIdInput {
224
- /**
225
- * The internal id of the marketing event in HubSpot.
226
- */
227
- marketingEventId: number;
228
- }
229
- type GetByIdOutput = Schemas.AttendanceCounters;
230
- interface ListBreakdownByContactInput {
231
- /**
232
- * The cursor indicating the position of the last retrieved item.
233
- */
234
- after?: string;
235
- /**
236
- * The identifier of the Contact. It may be email or internal id.
237
- */
238
- contactIdentifier: string;
239
- /**
240
- * The limit for response size. The default value is 10, the max number is 100
241
- */
242
- limit?: number;
243
- /**
244
- * The participation state value. It may be REGISTERED, CANCELLED, ATTENDED, NO_SHOW
245
- */
246
- state?: string;
247
- }
248
- type ListBreakdownByContactOutput = Schemas.CollectionResponseWithTotalParticipationBreakdown;
249
- interface ListBreakdownByExternalAccountAndEventIdInput {
250
- /**
251
- * The cursor indicating the position of the last retrieved item.
252
- */
253
- after?: string;
254
- /**
255
- * The identifier of the Contact. It may be email or internal id.
256
- */
257
- contactIdentifier?: string;
258
- /**
259
- * The accountId that is associated with this marketing event in the external event application.
260
- */
261
- externalAccountId: string;
262
- /**
263
- * The id of the marketing event in the external event application.
264
- */
265
- externalEventId: string;
266
- /**
267
- * The limit for response size. The default value is 10, the max number is 100
268
- */
269
- limit?: number;
270
- /**
271
- * The participation state value. It may be REGISTERED, CANCELLED, ATTENDED, NO_SHOW
272
- */
273
- state?: string;
274
- }
275
- type ListBreakdownByExternalAccountAndEventIdOutput = Schemas.CollectionResponseWithTotalParticipationBreakdown;
276
- interface ListBreakdownByIdInput {
277
- /**
278
- * The cursor indicating the position of the last retrieved item.
279
- */
280
- after?: string;
281
- /**
282
- * The identifier of the Contact. It may be email or internal id.
283
- */
284
- contactIdentifier?: string;
285
- /**
286
- * The limit for response size. The default value is 10, the max number is 100
287
- */
288
- limit?: number;
289
- /**
290
- * The internal id of the marketing event in HubSpot.
291
- */
292
- marketingEventId: number;
293
- /**
294
- * The participation state value. It may be REGISTERED, CANCELLED, ATTENDED, NO_SHOW
295
- */
296
- state?: string;
297
- }
298
- type ListBreakdownByIdOutput = Schemas.CollectionResponseWithTotalParticipationBreakdown;
299
- }
300
- namespace Schemas {
301
- interface AppInfo {
302
- /**
303
- * The ID of the application
304
- */
305
- id: string;
306
- /**
307
- * The name of the application
308
- */
309
- name: string;
310
- }
311
- interface AttendanceCounters {
312
- /**
313
- * Number of attended contact records of a marketing event
314
- */
315
- attended: number;
316
- /**
317
- * Number of cancelled contact records of a marketing event
318
- */
319
- cancelled: number;
320
- /**
321
- * Number of no-show contact records of a marketing event
322
- */
323
- noShows: number;
324
- /**
325
- * Number of registered contact records of a marketing event
326
- */
327
- registered: number;
328
- }
329
- interface BatchInputMarketingEventCreateRequestParams {
330
- inputs: Schemas.MarketingEventCreateRequestParams[];
331
- }
332
- interface BatchInputMarketingEventEmailSubscriber {
333
- /**
334
- * List of marketing event details to create or update
335
- */
336
- inputs: Schemas.MarketingEventEmailSubscriber[];
337
- }
338
- interface BatchInputMarketingEventExternalUniqueIdentifier {
339
- inputs: Schemas.MarketingEventExternalUniqueIdentifier[];
340
- }
341
- interface BatchInputMarketingEventPublicObjectIdDeleteRequest {
342
- inputs: Schemas.MarketingEventPublicObjectIdDeleteRequest[];
343
- }
344
- interface BatchInputMarketingEventPublicUpdateRequestFullV2 {
345
- inputs: Schemas.MarketingEventPublicUpdateRequestFullV2[];
346
- }
347
- interface BatchInputMarketingEventSubscriber {
348
- /**
349
- * List of HubSpot contacts to subscribe to the marketing event
350
- */
351
- inputs: Schemas.MarketingEventSubscriber[];
352
- }
353
- interface BatchResponseMarketingEventPublicDefaultResponse {
354
- /**
355
- * Timestamp of when the request was completed.
356
- */
357
- completedAt: string;
358
- errors?: Schemas.StandardError[];
359
- /**
360
- * Result of the request.
361
- */
362
- links?: Record<string, string>;
363
- /**
364
- * The number of errors that occurred during the request.
365
- */
366
- numErrors?: number;
367
- /**
368
- * Timestamp of when the request was sent.
369
- */
370
- requestedAt?: string;
371
- results: Schemas.MarketingEventPublicDefaultResponse[];
372
- /**
373
- * Timestamp of when the request started processing.
374
- */
375
- startedAt: string;
376
- /**
377
- * Status of the response.
378
- */
379
- status: 'CANCELED' | 'COMPLETE' | 'PENDING' | 'PROCESSING';
380
- }
381
- interface BatchResponseMarketingEventPublicDefaultResponseV2 {
382
- /**
383
- * Timestamp of when the request was processed.
384
- */
385
- completedAt: string;
386
- /**
387
- * Result object of the request.
388
- */
389
- links?: Record<string, string>;
390
- /**
391
- * Timestamp of when the request was sent.
392
- */
393
- requestedAt?: string;
394
- results: Schemas.MarketingEventPublicDefaultResponseV2[];
395
- /**
396
- * Timestamp of when the request started processing.
397
- */
398
- startedAt: string;
399
- /**
400
- * The status of the response.
401
- */
402
- status: 'CANCELED' | 'COMPLETE' | 'PENDING' | 'PROCESSING';
403
- }
404
- interface BatchResponseSubscriberEmailResponse {
405
- /**
406
- * Timestamp that represents when the request finished processing
407
- */
408
- completedAt: string;
409
- errors?: Schemas.StandardError[];
410
- /**
411
- * Result of the request
412
- */
413
- links?: Record<string, string>;
414
- /**
415
- * The number of errors that occurred during the processing
416
- */
417
- numErrors?: number;
418
- /**
419
- * Timestamp that represents when the request was made
420
- */
421
- requestedAt?: string;
422
- results: Schemas.SubscriberEmailResponse[];
423
- /**
424
- * Timestamp that represents when the request started processing
425
- */
426
- startedAt: string;
427
- /**
428
- * The status of the request processing
429
- */
430
- status: 'CANCELED' | 'COMPLETE' | 'PENDING' | 'PROCESSING';
431
- }
432
- interface BatchResponseSubscriberVidResponse {
433
- /**
434
- * Timestamp that represents when the request finished processing
435
- */
436
- completedAt: string;
437
- errors?: Schemas.StandardError[];
438
- /**
439
- * Result of the request
440
- */
441
- links?: Record<string, string>;
442
- /**
443
- * The number of errors that occurred during the processing
444
- */
445
- numErrors?: number;
446
- /**
447
- * Timestamp that represents when the request was made
448
- */
449
- requestedAt?: string;
450
- results: Schemas.SubscriberVidResponse[];
451
- /**
452
- * Timestamp that represents when the request started processing
453
- */
454
- startedAt: string;
455
- /**
456
- * The status of the request processing
457
- */
458
- status: 'CANCELED' | 'COMPLETE' | 'PENDING' | 'PROCESSING';
459
- }
460
- interface CollectionResponseMarketingEventPublicReadResponseV2ForwardPaging {
461
- paging?: Schemas.ForwardPaging;
462
- results: Schemas.MarketingEventPublicReadResponseV2[];
463
- }
464
- interface CollectionResponseSearchPublicResponseWrapperNoPaging {
465
- results: Schemas.SearchPublicResponseWrapper[];
466
- }
467
- interface CollectionResponseWithTotalMarketingEventIdentifiersResponse {
468
- paging?: Schemas.Paging;
469
- results: Schemas.MarketingEventIdentifiersResponse[];
470
- total: number;
471
- }
472
- interface CollectionResponseWithTotalParticipationBreakdown {
473
- paging?: Schemas.Paging;
474
- results: Schemas.ParticipationBreakdown[];
475
- total: number;
476
- }
477
- interface CollectionResponseWithTotalPublicList {
478
- paging?: Schemas.Paging;
479
- results: Schemas.PublicList[];
480
- total: number;
481
- }
482
- interface ContactAssociation {
483
- /**
484
- * The internal ID of the contact in HubSpot
485
- */
486
- contactId: string;
487
- /**
488
- * The email of the contact in HubSpot
489
- */
490
- email: string;
491
- /**
492
- * The first name of the contact in HubSpot
493
- */
494
- firstname?: string;
495
- /**
496
- * The last name of the contact in HubSpot
497
- */
498
- lastname?: string;
499
- }
500
- interface CrmPropertyWrapper {
501
- /**
502
- * The name of the property in the CRM
503
- */
504
- name: string;
505
- /**
506
- * The value of the property in the CRM
507
- */
508
- value: string;
509
- }
510
- interface ErrorDetail {
511
- /**
512
- * The status code associated with the error detail
513
- */
514
- code?: string;
515
- /**
516
- * Context about the error condition
517
- */
518
- context?: Record<string, string[]>;
519
- /**
520
- * The name of the field or parameter in which the error was found.
521
- */
522
- in?: string;
523
- /**
524
- * A human readable message describing the error along with remediation steps where appropriate
525
- */
526
- message: string;
527
- /**
528
- * A specific category that contains more specific detail about the error
529
- */
530
- subCategory?: string;
531
- }
532
- interface EventDetailSettings {
533
- /**
534
- * The id of the application the settings are for
535
- */
536
- appId: number;
537
- /**
538
- * The url that will be used to fetch marketing event details by id
539
- */
540
- eventDetailsUrl: string;
541
- }
542
- interface EventDetailSettingsUrl {
543
- /**
544
- * The url that will be used to fetch marketing event details by id. Must contain a `%s` character sequence that will be substituted with the event id. For example: `https://my.event.app/events/%s`
545
- */
546
- eventDetailsUrl: string;
547
- }
548
- interface ForwardPaging {
549
- next?: Schemas.NextPage;
550
- }
551
- interface MarketingEventAssociation {
552
- /**
553
- * The account ID that is associated with this marketing event in the external event application
554
- */
555
- externalAccountId?: string;
556
- /**
557
- * The event ID that is associated with this marketing event in the external event application
558
- */
559
- externalEventId?: string;
560
- /**
561
- * The internal ID of the marketing event in HubSpot
562
- */
563
- marketingEventId: string;
564
- /**
565
- * The name of the marketing event in HubSpot
566
- */
567
- name: string;
568
- }
569
- interface MarketingEventCompleteRequestParams {
570
- /**
571
- * The end date and time of the marketing event in ISO 8601 format
572
- */
573
- endDateTime: string;
574
- /**
575
- * The start date and time of the marketing event in ISO 8601 format
576
- */
577
- startDateTime: string;
578
- }
579
- interface MarketingEventCreateRequestParams {
580
- /**
581
- * A list of PropertyValues. These can be whatever kind of property names and values you want. However, they must already exist on the HubSpot account's definition of the MarketingEvent Object. If they don't they will be filtered out and not set.
582
- * In order to do this you'll need to create a new PropertyGroup on the HubSpot account's MarketingEvent object for your specific app and create the Custom Property you want to track on that HubSpot account. Do not create any new default properties on the MarketingEvent object as that will apply to all HubSpot accounts.
583
- *
584
- */
585
- customProperties: Schemas.PropertyValue[];
586
- /**
587
- * The end date and time of the marketing event.
588
- */
589
- endDateTime?: string;
590
- /**
591
- * Indicates if the marketing event has been cancelled. Defaults to `false`
592
- */
593
- eventCancelled?: boolean;
594
- /**
595
- * Indicates if the marketing event has been completed. Defaults to `false`
596
- */
597
- eventCompleted?: boolean;
598
- /**
599
- * The description of the marketing event.
600
- */
601
- eventDescription?: string;
602
- /**
603
- * The name of the marketing event.
604
- */
605
- eventName: string;
606
- /**
607
- * The name of the organizer of the marketing event.
608
- */
609
- eventOrganizer: string;
610
- /**
611
- * Describes what type of event this is. For example: `WEBINAR`, `CONFERENCE`, `WORKSHOP`
612
- */
613
- eventType?: string;
614
- /**
615
- * A URL in the external event application where the marketing event can be managed.
616
- */
617
- eventUrl?: string;
618
- /**
619
- * The accountId that is associated with this marketing event in the external event application.
620
- */
621
- externalAccountId: string;
622
- /**
623
- * The id of the marketing event in the external event application.
624
- */
625
- externalEventId: string;
626
- /**
627
- * The start date and time of the marketing event.
628
- */
629
- startDateTime?: string;
630
- }
631
- interface MarketingEventDefaultResponse {
632
- /**
633
- * A list of PropertyValues. These can be whatever kind of property names and values you want. However, they must already exist on the HubSpot account's definition of the MarketingEvent Object. If they don't they will be filtered out and not set.
634
- * In order to do this you'll need to create a new PropertyGroup on the HubSpot account's MarketingEvent object for your specific app and create the Custom Property you want to track on that HubSpot account. Do not create any new default properties on the MarketingEvent object as that will apply to all HubSpot accounts.
635
- *
636
- */
637
- customProperties: Schemas.PropertyValue[];
638
- /**
639
- * The end date and time of the marketing event.
640
- */
641
- endDateTime?: string;
642
- /**
643
- * Indicates if the marketing event has been cancelled.
644
- */
645
- eventCancelled?: boolean;
646
- /**
647
- * Indicates if the marketing event has been completed.
648
- */
649
- eventCompleted?: boolean;
650
- /**
651
- * The description of the marketing event.
652
- */
653
- eventDescription?: string;
654
- /**
655
- * The name of the marketing event.
656
- */
657
- eventName: string;
658
- /**
659
- * The name of the organizer of the marketing event.
660
- */
661
- eventOrganizer: string;
662
- /**
663
- * The type of the marketing event.
664
- */
665
- eventType?: string;
666
- /**
667
- * The URL in the external event application where the marketing event can be managed.
668
- */
669
- eventUrl?: string;
670
- /**
671
- * The ID of the marketing event CRM object
672
- */
673
- objectId?: string;
674
- /**
675
- * The start date and time of the marketing event.
676
- */
677
- startDateTime?: string;
678
- }
679
- interface MarketingEventEmailSubscriber {
680
- /**
681
- * The key-value set that contains properties of the contact.
682
- */
683
- contactProperties: Record<string, string>;
684
- /**
685
- * The email address of the contact in HubSpot to associate with the event.
686
- */
687
- email: string;
688
- /**
689
- * Timestamp in milliseconds at which the contact subscribed to the event.
690
- */
691
- interactionDateTime: number;
692
- /**
693
- * The key-value set that contains properties of the marketing event.
694
- */
695
- properties: Record<string, string>;
696
- }
697
- interface MarketingEventExternalUniqueIdentifier {
698
- /**
699
- * The id of the application that created the marketing event in HubSpot.
700
- */
701
- appId: number;
702
- /**
703
- * The accountId that is associated with this marketing event in the external event application.
704
- */
705
- externalAccountId: string;
706
- /**
707
- * The id of the marketing event in the external event application.
708
- */
709
- externalEventId: string;
710
- }
711
- interface MarketingEventIdentifiersResponse {
712
- appInfo?: Schemas.AppInfo;
713
- /**
714
- * The accountId that is associated with this marketing event in the external event application
715
- */
716
- externalAccountId?: string;
717
- /**
718
- * The ID that is associated with this marketing event in the external event application
719
- */
720
- externalEventId: string;
721
- /**
722
- * The name of the marketing event
723
- */
724
- marketingEventName: string;
725
- /**
726
- * The internal ID of the marketing event in HubSpot CRM
727
- */
728
- objectId: string;
729
- }
730
- interface MarketingEventPublicDefaultResponse {
731
- /**
732
- * The creation date and time of the marketing event.
733
- */
734
- createdAt: string;
735
- /**
736
- * A list of PropertyValues. These can be whatever kind of property names and values you want. However, they must already exist on the HubSpot account's definition of the MarketingEvent Object. If they don't they will be filtered out and not set.
737
- * In order to do this you'll need to create a new PropertyGroup on the HubSpot account's MarketingEvent object for your specific app and create the Custom Property you want to track on that HubSpot account. Do not create any new default properties on the MarketingEvent object as that will apply to all HubSpot accounts.
738
- *
739
- */
740
- customProperties: Schemas.PropertyValue[];
741
- /**
742
- * The end date and time of the marketing event.
743
- */
744
- endDateTime?: string;
745
- /**
746
- * Indicates if the marketing event has been cancelled.
747
- */
748
- eventCancelled?: boolean;
749
- /**
750
- * Indicates if the marketing event has been completed.
751
- */
752
- eventCompleted?: boolean;
753
- /**
754
- * The description of the marketing event.
755
- */
756
- eventDescription?: string;
757
- /**
758
- * The name of the marketing event.
759
- */
760
- eventName: string;
761
- /**
762
- * The name of the organizer of the marketing event.
763
- */
764
- eventOrganizer: string;
765
- /**
766
- * The type of the marketing event.
767
- */
768
- eventType?: string;
769
- /**
770
- * A URL in the external event application where the marketing event can be managed.
771
- */
772
- eventUrl?: string;
773
- /**
774
- * The ID of the marketing event CRM object.
775
- */
776
- id: string;
777
- /**
778
- * The ID of the marketing event CRM object.
779
- */
780
- objectId?: string;
781
- /**
782
- * The start date and time of the marketing event.
783
- */
784
- startDateTime?: string;
785
- /**
786
- * The update date and time of the marketing event.
787
- */
788
- updatedAt: string;
789
- }
790
- interface MarketingEventPublicDefaultResponseV2 {
791
- appInfo?: Schemas.AppInfo;
792
- /**
793
- * The creation date and time of the marketing event
794
- */
795
- createdAt: string;
796
- customProperties: Schemas.CrmPropertyWrapper[];
797
- /**
798
- * The end date and time of the marketing event
799
- */
800
- endDateTime?: string;
801
- /**
802
- * Indicates if the marketing event has been cancelled
803
- */
804
- eventCancelled?: boolean;
805
- /**
806
- * Indicates if the marketing event has been completed
807
- */
808
- eventCompleted?: boolean;
809
- /**
810
- * The description of the marketing event
811
- */
812
- eventDescription?: string;
813
- /**
814
- * The name of the marketing event
815
- */
816
- eventName: string;
817
- /**
818
- * The name of the organizer of the marketing event
819
- */
820
- eventOrganizer?: string;
821
- /**
822
- * The type of the marketing event
823
- */
824
- eventType?: string;
825
- /**
826
- * A URL in the external event application where the marketing event can be managed
827
- */
828
- eventUrl?: string;
829
- /**
830
- * The internal ID of the marketing event in HubSpot
831
- */
832
- objectId: string;
833
- /**
834
- * The start date and time of the marketing event
835
- */
836
- startDateTime?: string;
837
- /**
838
- * The update date and time of the marketing event
839
- */
840
- updatedAt: string;
841
- }
842
- interface MarketingEventPublicObjectIdDeleteRequest {
843
- /**
844
- * The internal ID of the marketing event in HubSpot
845
- */
846
- objectId: string;
847
- }
848
- interface MarketingEventPublicReadResponse {
849
- /**
850
- * The number of HubSpot contacts that attended this marketing event.
851
- */
852
- attendees: number;
853
- /**
854
- * The number of HubSpot contacts that registered for this marketing event, but later cancelled their registration.
855
- */
856
- cancellations: number;
857
- /**
858
- * The creation date and time of the marketing event.
859
- */
860
- createdAt: string;
861
- /**
862
- * A list of PropertyValues. These can be whatever kind of property names and values you want. However, they must already exist on the HubSpot account's definition of the MarketingEvent Object. If they don't they will be filtered out and not set.
863
- * In order to do this you'll need to create a new PropertyGroup on the HubSpot account's MarketingEvent object for your specific app and create the Custom Property you want to track on that HubSpot account. Do not create any new default properties on the MarketingEvent object as that will apply to all HubSpot accounts.
864
- *
865
- */
866
- customProperties: Schemas.PropertyValue[];
867
- /**
868
- * The end date and time of the marketing event.
869
- */
870
- endDateTime?: string;
871
- /**
872
- * Indicates if the marketing event has been cancelled.
873
- */
874
- eventCancelled?: boolean;
875
- /**
876
- * Indicates if the marketing event has been completed.
877
- */
878
- eventCompleted?: boolean;
879
- /**
880
- * The description of the marketing event.
881
- */
882
- eventDescription?: string;
883
- /**
884
- * The name of the marketing event.
885
- */
886
- eventName: string;
887
- /**
888
- * The name of the organizer of the marketing event.
889
- */
890
- eventOrganizer: string;
891
- /**
892
- * The type of the marketing event.
893
- */
894
- eventType?: string;
895
- /**
896
- * A URL in the external event application where the marketing event can be managed.
897
- */
898
- eventUrl?: string;
899
- /**
900
- * The id of the marketing event in the external event application.
901
- */
902
- externalEventId: string;
903
- /**
904
- * The ID of the marketing event CRM object.
905
- */
906
- id: string;
907
- /**
908
- * The number of HubSpot contacts that registered for this marketing event, but did not attend. This field only had a value when the event is over.
909
- */
910
- noShows: number;
911
- /**
912
- * The ID of the marketing event CRM object.
913
- */
914
- objectId?: string;
915
- /**
916
- * The number of HubSpot contacts that registered for this marketing event.
917
- */
918
- registrants: number;
919
- /**
920
- * The start date and time of the marketing event.
921
- */
922
- startDateTime?: string;
923
- /**
924
- * The update date and time of the marketing event.
925
- */
926
- updatedAt: string;
927
- }
928
- interface MarketingEventPublicReadResponseV2 {
929
- appInfo?: Schemas.AppInfo;
930
- /**
931
- * Number of attended contact records of a marketing event
932
- */
933
- attendees?: number;
934
- /**
935
- * Number of cancelled contact records of a marketing event
936
- */
937
- cancellations?: number;
938
- /**
939
- * The creation date and time of the marketing event
940
- */
941
- createdAt: string;
942
- customProperties: Schemas.CrmPropertyWrapper[];
943
- /**
944
- * The end date and time of the marketing event
945
- */
946
- endDateTime?: string;
947
- /**
948
- * Indicates if the marketing event has been cancelled
949
- */
950
- eventCancelled?: boolean;
951
- /**
952
- * Indicates if the marketing event has been completed
953
- */
954
- eventCompleted?: boolean;
955
- /**
956
- * The description of the marketing event
957
- */
958
- eventDescription?: string;
959
- /**
960
- * The name of the marketing event
961
- */
962
- eventName: string;
963
- /**
964
- * The name of the organizer of the marketing event
965
- */
966
- eventOrganizer?: string;
967
- /**
968
- * The status of the marketing event
969
- */
970
- eventStatus?: string;
971
- eventStatusV2?: string;
972
- /**
973
- * The type of the marketing event
974
- */
975
- eventType?: string;
976
- /**
977
- * A URL in the external event application where the marketing event can be managed
978
- */
979
- eventUrl?: string;
980
- /**
981
- * The ID that is associated with this marketing event in the external event application
982
- */
983
- externalEventId?: string;
984
- /**
985
- * Number of no-show contact records of a marketing event
986
- */
987
- noShows?: number;
988
- /**
989
- * The internal ID of the marketing event in HubSpot
990
- */
991
- objectId: string;
992
- /**
993
- * Number of registered contact records of a marketing event
994
- */
995
- registrants?: number;
996
- /**
997
- * The start date and time of the marketing event
998
- */
999
- startDateTime?: string;
1000
- /**
1001
- * The update date and time of the marketing event
1002
- */
1003
- updatedAt: string;
1004
- }
1005
- interface MarketingEventPublicUpdateRequestFullV2 {
1006
- customProperties: Schemas.PropertyValue[];
1007
- /**
1008
- * The end date and time of the marketing event
1009
- */
1010
- endDateTime?: string;
1011
- /**
1012
- * Indicates if the marketing event has been cancelled
1013
- */
1014
- eventCancelled?: boolean;
1015
- /**
1016
- * The description of the marketing event
1017
- */
1018
- eventDescription?: string;
1019
- /**
1020
- * The name of the marketing event
1021
- */
1022
- eventName?: string;
1023
- /**
1024
- * The name of the organizer of the marketing event
1025
- */
1026
- eventOrganizer?: string;
1027
- /**
1028
- * The type of the marketing event
1029
- */
1030
- eventType?: string;
1031
- /**
1032
- * A URL in the external event application where the marketing event can be managed
1033
- */
1034
- eventUrl?: string;
1035
- /**
1036
- * The internal ID of the marketing event in HubSpot
1037
- */
1038
- objectId: string;
1039
- /**
1040
- * The start date and time of the marketing event
1041
- */
1042
- startDateTime?: string;
1043
- }
1044
- interface MarketingEventPublicUpdateRequestV2 {
1045
- customProperties: Schemas.PropertyValue[];
1046
- /**
1047
- * The end date and time of the marketing event
1048
- */
1049
- endDateTime?: string;
1050
- /**
1051
- * Indicates if the marketing event has been cancelled
1052
- */
1053
- eventCancelled?: boolean;
1054
- /**
1055
- * The description of the marketing event
1056
- */
1057
- eventDescription?: string;
1058
- /**
1059
- * The name of the marketing event
1060
- */
1061
- eventName?: string;
1062
- /**
1063
- * The name of the organizer of the marketing event
1064
- */
1065
- eventOrganizer?: string;
1066
- /**
1067
- * The type of the marketing event
1068
- */
1069
- eventType?: string;
1070
- /**
1071
- * A URL in the external event application where the marketing event can be managed
1072
- */
1073
- eventUrl?: string;
1074
- /**
1075
- * The start date and time of the marketing event
1076
- */
1077
- startDateTime?: string;
1078
- }
1079
- interface MarketingEventSubscriber {
1080
- /**
1081
- * Timestamp in milliseconds at which the contact subscribed to the event.
1082
- */
1083
- interactionDateTime: number;
1084
- /**
1085
- * The key-value set of the properties of the contact
1086
- */
1087
- properties: Record<string, string>;
1088
- /**
1089
- * The ID of the contact in HubSpot
1090
- */
1091
- vid: number;
1092
- }
1093
- interface MarketingEventUpdateRequestParams {
1094
- /**
1095
- * A list of PropertyValues. These can be whatever kind of property names and values you want. However, they must already exist on the HubSpot account's definition of the MarketingEvent Object. If they don't they will be filtered out and not set.
1096
- * In order to do this you'll need to create a new PropertyGroup on the HubSpot account's MarketingEvent object for your specific app and create the Custom Property you want to track on that HubSpot account. Do not create any new default properties on the MarketingEvent object as that will apply to all HubSpot accounts.
1097
- *
1098
- */
1099
- customProperties: Schemas.PropertyValue[];
1100
- /**
1101
- * The end date and time of the marketing event.
1102
- */
1103
- endDateTime?: string;
1104
- /**
1105
- * Indicates if the marketing event has been cancelled. Defaults to `false`
1106
- */
1107
- eventCancelled?: boolean;
1108
- /**
1109
- * Indicates if the marketing event has been completed. Defaults to `false`
1110
- */
1111
- eventCompleted?: boolean;
1112
- /**
1113
- * The description of the marketing event.
1114
- */
1115
- eventDescription?: string;
1116
- /**
1117
- * The name of the marketing event.
1118
- */
1119
- eventName?: string;
1120
- /**
1121
- * The name of the organizer of the marketing event.
1122
- */
1123
- eventOrganizer?: string;
1124
- /**
1125
- * Describes what type of event this is. For example: `WEBINAR`, `CONFERENCE`, `WORKSHOP`
1126
- */
1127
- eventType?: string;
1128
- /**
1129
- * A URL in the external event application where the marketing event can be managed.
1130
- */
1131
- eventUrl?: string;
1132
- /**
1133
- * The start date and time of the marketing event.
1134
- */
1135
- startDateTime?: string;
1136
- }
1137
- /**
1138
- * Specifies the paging information needed to retrieve the next set of results in a paginated API response
1139
- */
1140
- interface NextPage {
1141
- /**
1142
- * The ID element at the start of the page
1143
- */
1144
- after: string;
1145
- /**
1146
- * Link to the next page
1147
- */
1148
- link?: string;
1149
- }
1150
- interface Paging {
1151
- next?: Schemas.NextPage;
1152
- prev?: Schemas.PreviousPage;
1153
- }
1154
- interface ParticipationAssociations {
1155
- contact: Schemas.ContactAssociation;
1156
- marketingEvent: Schemas.MarketingEventAssociation;
1157
- }
1158
- interface ParticipationBreakdown {
1159
- associations: Schemas.ParticipationAssociations;
1160
- /**
1161
- * The creation time and date of the target marketing event
1162
- */
1163
- createdAt: string;
1164
- /**
1165
- * The internal ID of the target marketing event
1166
- */
1167
- id: string;
1168
- properties: Schemas.ParticipationProperties;
1169
- }
1170
- interface ParticipationProperties {
1171
- /**
1172
- * The number of seconds the participation lasted
1173
- */
1174
- attendanceDurationSeconds?: number;
1175
- /**
1176
- * Percentage of the participation duration relative to the event duration
1177
- */
1178
- attendancePercentage?: string;
1179
- /**
1180
- * The state of the participation
1181
- */
1182
- attendanceState: 'ATTENDED' | 'CANCELLED' | 'EMPTY' | 'NO_SHOW' | 'REGISTERED';
1183
- /**
1184
- * Timestamp of when the participation occurred
1185
- */
1186
- occurredAt: number;
1187
- }
1188
- /**
1189
- * specifies the paging information needed to retrieve the previous set of results in a paginated API response
1190
- */
1191
- interface PreviousPage {
1192
- /**
1193
- * A paging cursor token for retrieving previous pages.
1194
- */
1195
- before: string;
1196
- /**
1197
- * A URL that can be used to retrieve the previous pages' results.
1198
- */
1199
- link?: string;
1200
- }
1201
- /**
1202
- * Represents a single custom property of a marketing event, storing its name, value, metadata (like source, timestamp, and sensitivity), and related audit information for tracking changes.
1203
- */
1204
- interface PropertyValue {
1205
- /**
1206
- * Level of data sensitivity
1207
- */
1208
- dataSensitivity: 'high' | 'none' | 'standard';
1209
- /**
1210
- * Indicates whether the property is encrypted
1211
- */
1212
- isEncrypted: boolean;
1213
- /**
1214
- * Indicates whether the property value is stored as a large value in the storage
1215
- */
1216
- isLargeValue: boolean;
1217
- /**
1218
- * Name of custom property
1219
- */
1220
- name: string;
1221
- /**
1222
- * The timestamp that indicates when the value being written is persisted in storage
1223
- */
1224
- persistenceTimestamp: number;
1225
- /**
1226
- * The ID of the request
1227
- */
1228
- requestId: string;
1229
- /**
1230
- * Indicates whether the property is selected
1231
- */
1232
- selectedByUser: boolean;
1233
- /**
1234
- * Timestamp of when the property was selected by the user
1235
- */
1236
- selectedByUserTimestamp: number;
1237
- /**
1238
- * Source of the property
1239
- */
1240
- source: 'ACADEMY' | 'ACCEPTANCE_TEST' | 'ACTIVITY_AUTO_ASSOCIATE' | 'ACTIVITY_LOG_REVERT' | 'ADS' | 'AI_GROUP' | 'ANALYTICS' | 'API' | 'APPROVALS' | 'ASSISTS' | 'ASSOCIATIONS' | 'AUTO_ASSOCIATE_BY_DOMAIN' | 'AUTOMATION_JOURNEY' | 'AUTOMATION_PLATFORM' | 'AVATARS_SERVICE' | 'BATCH_UPDATE' | 'BCC_TO_CRM' | 'BEHAVIORAL_EVENTS' | 'BET_ASSIGNMENT' | 'BET_CRM_CONNECTOR' | 'BIDEN' | 'BILLING' | 'BOT' | 'CALCULATED' | 'CENTRAL_EXCHANGE_RATES' | 'CHATSPOT' | 'CLONE_OBJECTS' | 'COMMUNICATOR' | 'COMPANIES' | 'COMPANY_FAMILIES' | 'COMPANY_INSIGHTS' | 'CONNECTED_ACCOUNT' | 'CONTACTS' | 'CONTACTS_WEB' | 'CONTENT_MEMBERSHIP' | 'CONVERSATIONAL_ENRICHMENT' | 'CONVERSATIONS' | 'CRM_PROCESSES_PLATFORM' | 'CRM_UI' | 'CRM_UI_BULK_ACTION' | 'CUSTOMER_AGENT' | 'DATA_ENRICHMENT' | 'DATA_QUALITY' | 'DATASET' | 'DEALS' | 'DEFAULT' | 'DELETE_OBJECTS' | 'EMAIL' | 'EMAIL_INBOX_IMPORT' | 'EMAIL_INTEGRATION' | 'ENGAGEMENTS' | 'EXTENSION' | 'FILE_MANAGER' | 'FLYWHEEL_PRODUCT_DATA_SYNC' | 'FORECASTING' | 'FORM' | 'FORWARD_TO_CRM' | 'GMAIL_INTEGRATION' | 'GOALS' | 'HEISENBERG' | 'HELP_DESK' | 'HELP_DESK_AI' | 'IMPORT' | 'INTEGRATION' | 'INTEGRATIONS_PLATFORM' | 'INTEGRATIONS_SYNC' | 'INTENT' | 'INTERNAL_PROCESSING' | 'LEADIN' | 'LEGAL_BASIS_REMEDIATION' | 'MARKET_SOURCING' | 'MARKETPLACE' | 'MARKETS' | 'MEETINGS' | 'MERGE_COMPANIES' | 'MERGE_CONTACTS' | 'MERGE_OBJECTS' | 'MERGE_REVERT_OBJECTS' | 'MICROAPPS' | 'MIGRATION' | 'MOBILE_ANDROID' | 'MOBILE_IOS' | 'PAYMENTS' | 'PIPELINE_SETTINGS' | 'PLAYBOOKS' | 'PORTAL_OBJECT_SYNC' | 'PORTAL_USER_ASSOCIATOR' | 'PRESENTATIONS' | 'PRIMARY_AUTOMATION' | 'PROPERTY_DEFAULT_VALUE' | 'PROPERTY_RESTORE' | 'PROPERTY_SETTINGS' | 'PROSPECTING_AGENT' | 'QUOTAS' | 'QUOTES' | 'RECYCLING_BIN' | 'RESTORE_OBJECTS' | 'REVENUE_PLATFORM' | 'SALES' | 'SALES_MESSAGES' | 'SALESFORCE' | 'SEQUENCES' | 'SETTINGS' | 'SIDEKICK' | 'SIGNALS' | 'SLACK_INTEGRATION' | 'SMART_DATA_CAPTURE' | 'SOCIAL' | 'SUCCESS' | 'TALLY' | 'TASK' | 'UNKNOWN' | 'WAL_INCREMENTAL' | 'WORK_UI' | 'WORKFLOW_CONTACT_DELETE_ACTION' | 'WORKFLOWS';
1241
- /**
1242
- * ID of the source of the property
1243
- */
1244
- sourceId: string;
1245
- /**
1246
- * Label of the source of the property
1247
- */
1248
- sourceLabel: string;
1249
- /**
1250
- * Source metadata encoded as a base64 string
1251
- */
1252
- sourceMetadata: string;
1253
- /**
1254
- * Indicates which upstream service made the property change
1255
- */
1256
- sourceUpstreamDeployable: string;
1257
- /**
1258
- * The unique identifier associated with the source.
1259
- */
1260
- sourceVid: number[];
1261
- /**
1262
- * Timestamp of the request
1263
- */
1264
- timestamp: number;
1265
- /**
1266
- * The unit
1267
- */
1268
- unit: string;
1269
- /**
1270
- * The ID of the user who last updated the property
1271
- */
1272
- updatedByUserId: number;
1273
- /**
1274
- * Indicates if the persistence timestamp is the same as storage version timestamp
1275
- */
1276
- useTimestampAsPersistenceTimestamp: boolean;
1277
- /**
1278
- * Custom property value
1279
- */
1280
- value: string;
1281
- }
1282
- interface PublicList {
1283
- /**
1284
- * Timestamp of the creation of the list
1285
- */
1286
- createdAt?: string;
1287
- /**
1288
- * The ID of the user who created the list
1289
- */
1290
- createdById?: string;
1291
- /**
1292
- * Timestamp of the deletion of the list
1293
- */
1294
- deletedAt?: string;
1295
- /**
1296
- * Timestamp of the last update of the list filters
1297
- */
1298
- filtersUpdatedAt?: string;
1299
- /**
1300
- * An internal ID of the list
1301
- */
1302
- listId: string;
1303
- /**
1304
- * A number that represents a version of the list
1305
- */
1306
- listVersion: number;
1307
- /**
1308
- * The name of the list
1309
- */
1310
- name: string;
1311
- /**
1312
- * The internal ID of the object type of the list
1313
- */
1314
- objectTypeId: string;
1315
- /**
1316
- * Represents the current processing status of the list
1317
- */
1318
- processingStatus: string;
1319
- /**
1320
- * Processing type of the list
1321
- */
1322
- processingType: string;
1323
- /**
1324
- * The size of the result list
1325
- */
1326
- size?: number;
1327
- /**
1328
- * Timestamp of the last update of the list
1329
- */
1330
- updatedAt?: string;
1331
- /**
1332
- * The ID of the user who last updated the list
1333
- */
1334
- updatedById?: string;
1335
- }
1336
- interface SearchPublicResponseWrapper {
1337
- /**
1338
- * The ID of the source application of the marketing event
1339
- */
1340
- appId: number;
1341
- /**
1342
- * The account ID associated with this marketing event in the external application
1343
- */
1344
- externalAccountId: string;
1345
- /**
1346
- * The ID of the marketing event in the external event application
1347
- */
1348
- externalEventId: string;
1349
- /**
1350
- * The internal ID of the marketing event in HubSpot
1351
- */
1352
- objectId: string;
1353
- }
1354
- /**
1355
- * Ye olde error
1356
- */
1357
- interface StandardError {
1358
- /**
1359
- * The category of the error
1360
- */
1361
- category: string;
1362
- /**
1363
- * The object that contains details of the errors
1364
- */
1365
- context: Record<string, string[]>;
1366
- /**
1367
- * The detailed error objects.
1368
- */
1369
- errors: Schemas.ErrorDetail[];
1370
- /**
1371
- * The ID of the request
1372
- */
1373
- id?: string;
1374
- /**
1375
- * Results of the request
1376
- */
1377
- links: Record<string, string>;
1378
- /**
1379
- * A human readable message describing the error along with remediation steps where appropriate
1380
- */
1381
- message: string;
1382
- /**
1383
- * Status of the response
1384
- */
1385
- status: string;
1386
- /**
1387
- * The Sub-category of the error
1388
- */
1389
- subCategory?: Record<string, never>;
1390
- }
1391
- interface SubscriberEmailResponse {
1392
- /**
1393
- * The email of the contact
1394
- */
1395
- email: string;
1396
- /**
1397
- * The internal ID of the contact
1398
- */
1399
- vid: number;
1400
- }
1401
- interface SubscriberVidResponse {
1402
- /**
1403
- * The internal ID of the contact
1404
- */
1405
- vid: number;
1406
- }
1407
- }
1408
- namespace Settings {
1409
- interface CreateOrUpdateInput {
1410
- appId: number;
1411
- data: Schemas.EventDetailSettingsUrl;
1412
- }
1413
- type CreateOrUpdateOutput = Schemas.EventDetailSettings;
1414
- interface GetInput {
1415
- appId: number;
1416
- }
1417
- type GetOutput = Schemas.EventDetailSettings;
1418
- }
1419
- namespace SubscriberStateChanges {
1420
- interface RecordByEmailInput {
1421
- data: Schemas.BatchInputMarketingEventEmailSubscriber;
1422
- externalAccountId: string;
1423
- externalEventId: string;
1424
- subscriberState: string;
1425
- }
1426
- type RecordByEmailOutput = void;
1427
- interface RecordByIdInput {
1428
- data: Schemas.BatchInputMarketingEventSubscriber;
1429
- externalAccountId: string;
1430
- externalEventId: string;
1431
- subscriberState: string;
1432
- }
1433
- type RecordByIdOutput = void;
4
+ declare namespace MarketingMarketingEventsSchemas {
5
+ interface AppInfo {
6
+ /**
7
+ * The ID of the application
8
+ */
9
+ id: string;
10
+ /**
11
+ * The name of the application
12
+ */
13
+ name: string;
14
+ }
15
+ interface AttendanceCounters {
16
+ /**
17
+ * Number of attended contact records of a marketing event
18
+ */
19
+ attended: number;
20
+ /**
21
+ * Number of cancelled contact records of a marketing event
22
+ */
23
+ cancelled: number;
24
+ /**
25
+ * Number of no-show contact records of a marketing event
26
+ */
27
+ noShows: number;
28
+ /**
29
+ * Number of registered contact records of a marketing event
30
+ */
31
+ registered: number;
32
+ }
33
+ interface BatchInputMarketingEventCreateRequestParams {
34
+ inputs: MarketingEventCreateRequestParams[];
35
+ }
36
+ interface BatchInputMarketingEventEmailSubscriber {
37
+ /**
38
+ * List of marketing event details to create or update
39
+ */
40
+ inputs: MarketingEventEmailSubscriber[];
41
+ }
42
+ interface BatchInputMarketingEventExternalUniqueIdentifier {
43
+ inputs: MarketingEventExternalUniqueIdentifier[];
44
+ }
45
+ interface BatchInputMarketingEventPublicObjectIdDeleteRequest {
46
+ inputs: MarketingEventPublicObjectIdDeleteRequest[];
47
+ }
48
+ interface BatchInputMarketingEventPublicUpdateRequestFullV2 {
49
+ inputs: MarketingEventPublicUpdateRequestFullV2[];
50
+ }
51
+ interface BatchInputMarketingEventSubscriber {
52
+ /**
53
+ * List of HubSpot contacts to subscribe to the marketing event
54
+ */
55
+ inputs: MarketingEventSubscriber[];
56
+ }
57
+ interface BatchResponseMarketingEventPublicDefaultResponse {
58
+ /**
59
+ * Timestamp of when the request was completed.
60
+ */
61
+ completedAt: string;
62
+ errors?: StandardError[];
63
+ /**
64
+ * Result of the request.
65
+ */
66
+ links?: Record<string, string>;
67
+ /**
68
+ * The number of errors that occurred during the request.
69
+ */
70
+ numErrors?: number;
71
+ /**
72
+ * Timestamp of when the request was sent.
73
+ */
74
+ requestedAt?: string;
75
+ results: MarketingEventPublicDefaultResponse[];
76
+ /**
77
+ * Timestamp of when the request started processing.
78
+ */
79
+ startedAt: string;
80
+ /**
81
+ * Status of the response.
82
+ */
83
+ status: 'CANCELED' | 'COMPLETE' | 'PENDING' | 'PROCESSING';
84
+ }
85
+ interface BatchResponseMarketingEventPublicDefaultResponseV2 {
86
+ /**
87
+ * Timestamp of when the request was processed.
88
+ */
89
+ completedAt: string;
90
+ /**
91
+ * Result object of the request.
92
+ */
93
+ links?: Record<string, string>;
94
+ /**
95
+ * Timestamp of when the request was sent.
96
+ */
97
+ requestedAt?: string;
98
+ results: MarketingEventPublicDefaultResponseV2[];
99
+ /**
100
+ * Timestamp of when the request started processing.
101
+ */
102
+ startedAt: string;
103
+ /**
104
+ * The status of the response.
105
+ */
106
+ status: 'CANCELED' | 'COMPLETE' | 'PENDING' | 'PROCESSING';
107
+ }
108
+ interface BatchResponseSubscriberEmailResponse {
109
+ /**
110
+ * Timestamp that represents when the request finished processing
111
+ */
112
+ completedAt: string;
113
+ errors?: StandardError[];
114
+ /**
115
+ * Result of the request
116
+ */
117
+ links?: Record<string, string>;
118
+ /**
119
+ * The number of errors that occurred during the processing
120
+ */
121
+ numErrors?: number;
122
+ /**
123
+ * Timestamp that represents when the request was made
124
+ */
125
+ requestedAt?: string;
126
+ results: SubscriberEmailResponse[];
127
+ /**
128
+ * Timestamp that represents when the request started processing
129
+ */
130
+ startedAt: string;
131
+ /**
132
+ * The status of the request processing
133
+ */
134
+ status: 'CANCELED' | 'COMPLETE' | 'PENDING' | 'PROCESSING';
135
+ }
136
+ interface BatchResponseSubscriberVidResponse {
137
+ /**
138
+ * Timestamp that represents when the request finished processing
139
+ */
140
+ completedAt: string;
141
+ errors?: StandardError[];
142
+ /**
143
+ * Result of the request
144
+ */
145
+ links?: Record<string, string>;
146
+ /**
147
+ * The number of errors that occurred during the processing
148
+ */
149
+ numErrors?: number;
150
+ /**
151
+ * Timestamp that represents when the request was made
152
+ */
153
+ requestedAt?: string;
154
+ results: SubscriberVidResponse[];
155
+ /**
156
+ * Timestamp that represents when the request started processing
157
+ */
158
+ startedAt: string;
159
+ /**
160
+ * The status of the request processing
161
+ */
162
+ status: 'CANCELED' | 'COMPLETE' | 'PENDING' | 'PROCESSING';
163
+ }
164
+ interface CollectionResponseMarketingEventPublicReadResponseV2ForwardPaging {
165
+ paging?: ForwardPaging;
166
+ results: MarketingEventPublicReadResponseV2[];
167
+ }
168
+ interface CollectionResponseSearchPublicResponseWrapperNoPaging {
169
+ results: SearchPublicResponseWrapper[];
170
+ }
171
+ interface CollectionResponseWithTotalMarketingEventIdentifiersResponse {
172
+ paging?: Paging;
173
+ results: MarketingEventIdentifiersResponse[];
174
+ total: number;
175
+ }
176
+ interface CollectionResponseWithTotalParticipationBreakdown {
177
+ paging?: Paging;
178
+ results: ParticipationBreakdown[];
179
+ total: number;
180
+ }
181
+ interface CollectionResponseWithTotalPublicList {
182
+ paging?: Paging;
183
+ results: PublicList[];
184
+ total: number;
185
+ }
186
+ interface ContactAssociation {
187
+ /**
188
+ * The internal ID of the contact in HubSpot
189
+ */
190
+ contactId: string;
191
+ /**
192
+ * The email of the contact in HubSpot
193
+ */
194
+ email: string;
195
+ /**
196
+ * The first name of the contact in HubSpot
197
+ */
198
+ firstname?: string;
199
+ /**
200
+ * The last name of the contact in HubSpot
201
+ */
202
+ lastname?: string;
203
+ }
204
+ interface CrmPropertyWrapper {
205
+ /**
206
+ * The name of the property in the CRM
207
+ */
208
+ name: string;
209
+ /**
210
+ * The value of the property in the CRM
211
+ */
212
+ value: string;
213
+ }
214
+ interface ErrorDetail {
215
+ /**
216
+ * The status code associated with the error detail
217
+ */
218
+ code?: string;
219
+ /**
220
+ * Context about the error condition
221
+ */
222
+ context?: Record<string, string[]>;
223
+ /**
224
+ * The name of the field or parameter in which the error was found.
225
+ */
226
+ in?: string;
227
+ /**
228
+ * A human readable message describing the error along with remediation steps where appropriate
229
+ */
230
+ message: string;
231
+ /**
232
+ * A specific category that contains more specific detail about the error
233
+ */
234
+ subCategory?: string;
235
+ }
236
+ interface EventDetailSettings {
237
+ /**
238
+ * The id of the application the settings are for
239
+ */
240
+ appId: number;
241
+ /**
242
+ * The url that will be used to fetch marketing event details by id
243
+ */
244
+ eventDetailsUrl: string;
245
+ }
246
+ interface EventDetailSettingsUrl {
247
+ /**
248
+ * The url that will be used to fetch marketing event details by id. Must contain a `%s` character sequence that will be substituted with the event id. For example: `https://my.event.app/events/%s`
249
+ */
250
+ eventDetailsUrl: string;
251
+ }
252
+ interface ForwardPaging {
253
+ next?: NextPage;
254
+ }
255
+ interface MarketingEventAssociation {
256
+ /**
257
+ * The account ID that is associated with this marketing event in the external event application
258
+ */
259
+ externalAccountId?: string;
260
+ /**
261
+ * The event ID that is associated with this marketing event in the external event application
262
+ */
263
+ externalEventId?: string;
264
+ /**
265
+ * The internal ID of the marketing event in HubSpot
266
+ */
267
+ marketingEventId: string;
268
+ /**
269
+ * The name of the marketing event in HubSpot
270
+ */
271
+ name: string;
272
+ }
273
+ interface MarketingEventCompleteRequestParams {
274
+ /**
275
+ * The end date and time of the marketing event in ISO 8601 format
276
+ */
277
+ endDateTime: string;
278
+ /**
279
+ * The start date and time of the marketing event in ISO 8601 format
280
+ */
281
+ startDateTime: string;
282
+ }
283
+ interface MarketingEventCreateRequestParams {
284
+ /**
285
+ * A list of PropertyValues. These can be whatever kind of property names and values you want. However, they must already exist on the HubSpot account's definition of the MarketingEvent Object. If they don't they will be filtered out and not set.
286
+ * In order to do this you'll need to create a new PropertyGroup on the HubSpot account's MarketingEvent object for your specific app and create the Custom Property you want to track on that HubSpot account. Do not create any new default properties on the MarketingEvent object as that will apply to all HubSpot accounts.
287
+ *
288
+ */
289
+ customProperties: PropertyValue[];
290
+ /**
291
+ * The end date and time of the marketing event.
292
+ */
293
+ endDateTime?: string;
294
+ /**
295
+ * Indicates if the marketing event has been cancelled. Defaults to `false`
296
+ */
297
+ eventCancelled?: boolean;
298
+ /**
299
+ * Indicates if the marketing event has been completed. Defaults to `false`
300
+ */
301
+ eventCompleted?: boolean;
302
+ /**
303
+ * The description of the marketing event.
304
+ */
305
+ eventDescription?: string;
306
+ /**
307
+ * The name of the marketing event.
308
+ */
309
+ eventName: string;
310
+ /**
311
+ * The name of the organizer of the marketing event.
312
+ */
313
+ eventOrganizer: string;
314
+ /**
315
+ * Describes what type of event this is. For example: `WEBINAR`, `CONFERENCE`, `WORKSHOP`
316
+ */
317
+ eventType?: string;
318
+ /**
319
+ * A URL in the external event application where the marketing event can be managed.
320
+ */
321
+ eventUrl?: string;
322
+ /**
323
+ * The accountId that is associated with this marketing event in the external event application.
324
+ */
325
+ externalAccountId: string;
326
+ /**
327
+ * The id of the marketing event in the external event application.
328
+ */
329
+ externalEventId: string;
330
+ /**
331
+ * The start date and time of the marketing event.
332
+ */
333
+ startDateTime?: string;
334
+ }
335
+ interface MarketingEventDefaultResponse {
336
+ /**
337
+ * A list of PropertyValues. These can be whatever kind of property names and values you want. However, they must already exist on the HubSpot account's definition of the MarketingEvent Object. If they don't they will be filtered out and not set.
338
+ * In order to do this you'll need to create a new PropertyGroup on the HubSpot account's MarketingEvent object for your specific app and create the Custom Property you want to track on that HubSpot account. Do not create any new default properties on the MarketingEvent object as that will apply to all HubSpot accounts.
339
+ *
340
+ */
341
+ customProperties: PropertyValue[];
342
+ /**
343
+ * The end date and time of the marketing event.
344
+ */
345
+ endDateTime?: string;
346
+ /**
347
+ * Indicates if the marketing event has been cancelled.
348
+ */
349
+ eventCancelled?: boolean;
350
+ /**
351
+ * Indicates if the marketing event has been completed.
352
+ */
353
+ eventCompleted?: boolean;
354
+ /**
355
+ * The description of the marketing event.
356
+ */
357
+ eventDescription?: string;
358
+ /**
359
+ * The name of the marketing event.
360
+ */
361
+ eventName: string;
362
+ /**
363
+ * The name of the organizer of the marketing event.
364
+ */
365
+ eventOrganizer: string;
366
+ /**
367
+ * The type of the marketing event.
368
+ */
369
+ eventType?: string;
370
+ /**
371
+ * The URL in the external event application where the marketing event can be managed.
372
+ */
373
+ eventUrl?: string;
374
+ /**
375
+ * The ID of the marketing event CRM object
376
+ */
377
+ objectId?: string;
378
+ /**
379
+ * The start date and time of the marketing event.
380
+ */
381
+ startDateTime?: string;
382
+ }
383
+ interface MarketingEventEmailSubscriber {
384
+ /**
385
+ * The key-value set that contains properties of the contact.
386
+ */
387
+ contactProperties: Record<string, string>;
388
+ /**
389
+ * The email address of the contact in HubSpot to associate with the event.
390
+ */
391
+ email: string;
392
+ /**
393
+ * Timestamp in milliseconds at which the contact subscribed to the event.
394
+ */
395
+ interactionDateTime: number;
396
+ /**
397
+ * The key-value set that contains properties of the marketing event.
398
+ */
399
+ properties: Record<string, string>;
400
+ }
401
+ interface MarketingEventExternalUniqueIdentifier {
402
+ /**
403
+ * The id of the application that created the marketing event in HubSpot.
404
+ */
405
+ appId: number;
406
+ /**
407
+ * The accountId that is associated with this marketing event in the external event application.
408
+ */
409
+ externalAccountId: string;
410
+ /**
411
+ * The id of the marketing event in the external event application.
412
+ */
413
+ externalEventId: string;
414
+ }
415
+ interface MarketingEventIdentifiersResponse {
416
+ appInfo?: AppInfo;
417
+ /**
418
+ * The accountId that is associated with this marketing event in the external event application
419
+ */
420
+ externalAccountId?: string;
421
+ /**
422
+ * The ID that is associated with this marketing event in the external event application
423
+ */
424
+ externalEventId: string;
425
+ /**
426
+ * The name of the marketing event
427
+ */
428
+ marketingEventName: string;
429
+ /**
430
+ * The internal ID of the marketing event in HubSpot CRM
431
+ */
432
+ objectId: string;
433
+ }
434
+ interface MarketingEventPublicDefaultResponse {
435
+ /**
436
+ * The creation date and time of the marketing event.
437
+ */
438
+ createdAt: string;
439
+ /**
440
+ * A list of PropertyValues. These can be whatever kind of property names and values you want. However, they must already exist on the HubSpot account's definition of the MarketingEvent Object. If they don't they will be filtered out and not set.
441
+ * In order to do this you'll need to create a new PropertyGroup on the HubSpot account's MarketingEvent object for your specific app and create the Custom Property you want to track on that HubSpot account. Do not create any new default properties on the MarketingEvent object as that will apply to all HubSpot accounts.
442
+ *
443
+ */
444
+ customProperties: PropertyValue[];
445
+ /**
446
+ * The end date and time of the marketing event.
447
+ */
448
+ endDateTime?: string;
449
+ /**
450
+ * Indicates if the marketing event has been cancelled.
451
+ */
452
+ eventCancelled?: boolean;
453
+ /**
454
+ * Indicates if the marketing event has been completed.
455
+ */
456
+ eventCompleted?: boolean;
457
+ /**
458
+ * The description of the marketing event.
459
+ */
460
+ eventDescription?: string;
461
+ /**
462
+ * The name of the marketing event.
463
+ */
464
+ eventName: string;
465
+ /**
466
+ * The name of the organizer of the marketing event.
467
+ */
468
+ eventOrganizer: string;
469
+ /**
470
+ * The type of the marketing event.
471
+ */
472
+ eventType?: string;
473
+ /**
474
+ * A URL in the external event application where the marketing event can be managed.
475
+ */
476
+ eventUrl?: string;
477
+ /**
478
+ * The ID of the marketing event CRM object.
479
+ */
480
+ id: string;
481
+ /**
482
+ * The ID of the marketing event CRM object.
483
+ */
484
+ objectId?: string;
485
+ /**
486
+ * The start date and time of the marketing event.
487
+ */
488
+ startDateTime?: string;
489
+ /**
490
+ * The update date and time of the marketing event.
491
+ */
492
+ updatedAt: string;
493
+ }
494
+ interface MarketingEventPublicDefaultResponseV2 {
495
+ appInfo?: AppInfo;
496
+ /**
497
+ * The creation date and time of the marketing event
498
+ */
499
+ createdAt: string;
500
+ customProperties: CrmPropertyWrapper[];
501
+ /**
502
+ * The end date and time of the marketing event
503
+ */
504
+ endDateTime?: string;
505
+ /**
506
+ * Indicates if the marketing event has been cancelled
507
+ */
508
+ eventCancelled?: boolean;
509
+ /**
510
+ * Indicates if the marketing event has been completed
511
+ */
512
+ eventCompleted?: boolean;
513
+ /**
514
+ * The description of the marketing event
515
+ */
516
+ eventDescription?: string;
517
+ /**
518
+ * The name of the marketing event
519
+ */
520
+ eventName: string;
521
+ /**
522
+ * The name of the organizer of the marketing event
523
+ */
524
+ eventOrganizer?: string;
525
+ /**
526
+ * The type of the marketing event
527
+ */
528
+ eventType?: string;
529
+ /**
530
+ * A URL in the external event application where the marketing event can be managed
531
+ */
532
+ eventUrl?: string;
533
+ /**
534
+ * The internal ID of the marketing event in HubSpot
535
+ */
536
+ objectId: string;
537
+ /**
538
+ * The start date and time of the marketing event
539
+ */
540
+ startDateTime?: string;
541
+ /**
542
+ * The update date and time of the marketing event
543
+ */
544
+ updatedAt: string;
545
+ }
546
+ interface MarketingEventPublicObjectIdDeleteRequest {
547
+ /**
548
+ * The internal ID of the marketing event in HubSpot
549
+ */
550
+ objectId: string;
551
+ }
552
+ interface MarketingEventPublicReadResponse {
553
+ /**
554
+ * The number of HubSpot contacts that attended this marketing event.
555
+ */
556
+ attendees: number;
557
+ /**
558
+ * The number of HubSpot contacts that registered for this marketing event, but later cancelled their registration.
559
+ */
560
+ cancellations: number;
561
+ /**
562
+ * The creation date and time of the marketing event.
563
+ */
564
+ createdAt: string;
565
+ /**
566
+ * A list of PropertyValues. These can be whatever kind of property names and values you want. However, they must already exist on the HubSpot account's definition of the MarketingEvent Object. If they don't they will be filtered out and not set.
567
+ * In order to do this you'll need to create a new PropertyGroup on the HubSpot account's MarketingEvent object for your specific app and create the Custom Property you want to track on that HubSpot account. Do not create any new default properties on the MarketingEvent object as that will apply to all HubSpot accounts.
568
+ *
569
+ */
570
+ customProperties: PropertyValue[];
571
+ /**
572
+ * The end date and time of the marketing event.
573
+ */
574
+ endDateTime?: string;
575
+ /**
576
+ * Indicates if the marketing event has been cancelled.
577
+ */
578
+ eventCancelled?: boolean;
579
+ /**
580
+ * Indicates if the marketing event has been completed.
581
+ */
582
+ eventCompleted?: boolean;
583
+ /**
584
+ * The description of the marketing event.
585
+ */
586
+ eventDescription?: string;
587
+ /**
588
+ * The name of the marketing event.
589
+ */
590
+ eventName: string;
591
+ /**
592
+ * The name of the organizer of the marketing event.
593
+ */
594
+ eventOrganizer: string;
595
+ /**
596
+ * The type of the marketing event.
597
+ */
598
+ eventType?: string;
599
+ /**
600
+ * A URL in the external event application where the marketing event can be managed.
601
+ */
602
+ eventUrl?: string;
603
+ /**
604
+ * The id of the marketing event in the external event application.
605
+ */
606
+ externalEventId: string;
607
+ /**
608
+ * The ID of the marketing event CRM object.
609
+ */
610
+ id: string;
611
+ /**
612
+ * The number of HubSpot contacts that registered for this marketing event, but did not attend. This field only had a value when the event is over.
613
+ */
614
+ noShows: number;
615
+ /**
616
+ * The ID of the marketing event CRM object.
617
+ */
618
+ objectId?: string;
619
+ /**
620
+ * The number of HubSpot contacts that registered for this marketing event.
621
+ */
622
+ registrants: number;
623
+ /**
624
+ * The start date and time of the marketing event.
625
+ */
626
+ startDateTime?: string;
627
+ /**
628
+ * The update date and time of the marketing event.
629
+ */
630
+ updatedAt: string;
631
+ }
632
+ interface MarketingEventPublicReadResponseV2 {
633
+ appInfo?: AppInfo;
634
+ /**
635
+ * Number of attended contact records of a marketing event
636
+ */
637
+ attendees?: number;
638
+ /**
639
+ * Number of cancelled contact records of a marketing event
640
+ */
641
+ cancellations?: number;
642
+ /**
643
+ * The creation date and time of the marketing event
644
+ */
645
+ createdAt: string;
646
+ customProperties: CrmPropertyWrapper[];
647
+ /**
648
+ * The end date and time of the marketing event
649
+ */
650
+ endDateTime?: string;
651
+ /**
652
+ * Indicates if the marketing event has been cancelled
653
+ */
654
+ eventCancelled?: boolean;
655
+ /**
656
+ * Indicates if the marketing event has been completed
657
+ */
658
+ eventCompleted?: boolean;
659
+ /**
660
+ * The description of the marketing event
661
+ */
662
+ eventDescription?: string;
663
+ /**
664
+ * The name of the marketing event
665
+ */
666
+ eventName: string;
667
+ /**
668
+ * The name of the organizer of the marketing event
669
+ */
670
+ eventOrganizer?: string;
671
+ /**
672
+ * The status of the marketing event
673
+ */
674
+ eventStatus?: string;
675
+ eventStatusV2?: string;
676
+ /**
677
+ * The type of the marketing event
678
+ */
679
+ eventType?: string;
680
+ /**
681
+ * A URL in the external event application where the marketing event can be managed
682
+ */
683
+ eventUrl?: string;
684
+ /**
685
+ * The ID that is associated with this marketing event in the external event application
686
+ */
687
+ externalEventId?: string;
688
+ /**
689
+ * Number of no-show contact records of a marketing event
690
+ */
691
+ noShows?: number;
692
+ /**
693
+ * The internal ID of the marketing event in HubSpot
694
+ */
695
+ objectId: string;
696
+ /**
697
+ * Number of registered contact records of a marketing event
698
+ */
699
+ registrants?: number;
700
+ /**
701
+ * The start date and time of the marketing event
702
+ */
703
+ startDateTime?: string;
704
+ /**
705
+ * The update date and time of the marketing event
706
+ */
707
+ updatedAt: string;
708
+ }
709
+ interface MarketingEventPublicUpdateRequestFullV2 {
710
+ customProperties: PropertyValue[];
711
+ /**
712
+ * The end date and time of the marketing event
713
+ */
714
+ endDateTime?: string;
715
+ /**
716
+ * Indicates if the marketing event has been cancelled
717
+ */
718
+ eventCancelled?: boolean;
719
+ /**
720
+ * The description of the marketing event
721
+ */
722
+ eventDescription?: string;
723
+ /**
724
+ * The name of the marketing event
725
+ */
726
+ eventName?: string;
727
+ /**
728
+ * The name of the organizer of the marketing event
729
+ */
730
+ eventOrganizer?: string;
731
+ /**
732
+ * The type of the marketing event
733
+ */
734
+ eventType?: string;
735
+ /**
736
+ * A URL in the external event application where the marketing event can be managed
737
+ */
738
+ eventUrl?: string;
739
+ /**
740
+ * The internal ID of the marketing event in HubSpot
741
+ */
742
+ objectId: string;
743
+ /**
744
+ * The start date and time of the marketing event
745
+ */
746
+ startDateTime?: string;
747
+ }
748
+ interface MarketingEventPublicUpdateRequestV2 {
749
+ customProperties: PropertyValue[];
750
+ /**
751
+ * The end date and time of the marketing event
752
+ */
753
+ endDateTime?: string;
754
+ /**
755
+ * Indicates if the marketing event has been cancelled
756
+ */
757
+ eventCancelled?: boolean;
758
+ /**
759
+ * The description of the marketing event
760
+ */
761
+ eventDescription?: string;
762
+ /**
763
+ * The name of the marketing event
764
+ */
765
+ eventName?: string;
766
+ /**
767
+ * The name of the organizer of the marketing event
768
+ */
769
+ eventOrganizer?: string;
770
+ /**
771
+ * The type of the marketing event
772
+ */
773
+ eventType?: string;
774
+ /**
775
+ * A URL in the external event application where the marketing event can be managed
776
+ */
777
+ eventUrl?: string;
778
+ /**
779
+ * The start date and time of the marketing event
780
+ */
781
+ startDateTime?: string;
782
+ }
783
+ interface MarketingEventSubscriber {
784
+ /**
785
+ * Timestamp in milliseconds at which the contact subscribed to the event.
786
+ */
787
+ interactionDateTime: number;
788
+ /**
789
+ * The key-value set of the properties of the contact
790
+ */
791
+ properties: Record<string, string>;
792
+ /**
793
+ * The ID of the contact in HubSpot
794
+ */
795
+ vid: number;
796
+ }
797
+ interface MarketingEventUpdateRequestParams {
798
+ /**
799
+ * A list of PropertyValues. These can be whatever kind of property names and values you want. However, they must already exist on the HubSpot account's definition of the MarketingEvent Object. If they don't they will be filtered out and not set.
800
+ * In order to do this you'll need to create a new PropertyGroup on the HubSpot account's MarketingEvent object for your specific app and create the Custom Property you want to track on that HubSpot account. Do not create any new default properties on the MarketingEvent object as that will apply to all HubSpot accounts.
801
+ *
802
+ */
803
+ customProperties: PropertyValue[];
804
+ /**
805
+ * The end date and time of the marketing event.
806
+ */
807
+ endDateTime?: string;
808
+ /**
809
+ * Indicates if the marketing event has been cancelled. Defaults to `false`
810
+ */
811
+ eventCancelled?: boolean;
812
+ /**
813
+ * Indicates if the marketing event has been completed. Defaults to `false`
814
+ */
815
+ eventCompleted?: boolean;
816
+ /**
817
+ * The description of the marketing event.
818
+ */
819
+ eventDescription?: string;
820
+ /**
821
+ * The name of the marketing event.
822
+ */
823
+ eventName?: string;
824
+ /**
825
+ * The name of the organizer of the marketing event.
826
+ */
827
+ eventOrganizer?: string;
828
+ /**
829
+ * Describes what type of event this is. For example: `WEBINAR`, `CONFERENCE`, `WORKSHOP`
830
+ */
831
+ eventType?: string;
832
+ /**
833
+ * A URL in the external event application where the marketing event can be managed.
834
+ */
835
+ eventUrl?: string;
836
+ /**
837
+ * The start date and time of the marketing event.
838
+ */
839
+ startDateTime?: string;
840
+ }
841
+ /**
842
+ * Specifies the paging information needed to retrieve the next set of results in a paginated API response
843
+ */
844
+ interface NextPage {
845
+ /**
846
+ * The ID element at the start of the page
847
+ */
848
+ after: string;
849
+ /**
850
+ * Link to the next page
851
+ */
852
+ link?: string;
853
+ }
854
+ interface Paging {
855
+ next?: NextPage;
856
+ prev?: PreviousPage;
857
+ }
858
+ interface ParticipationAssociations {
859
+ contact: ContactAssociation;
860
+ marketingEvent: MarketingEventAssociation;
861
+ }
862
+ interface ParticipationBreakdown {
863
+ associations: ParticipationAssociations;
864
+ /**
865
+ * The creation time and date of the target marketing event
866
+ */
867
+ createdAt: string;
868
+ /**
869
+ * The internal ID of the target marketing event
870
+ */
871
+ id: string;
872
+ properties: ParticipationProperties;
873
+ }
874
+ interface ParticipationProperties {
875
+ /**
876
+ * The number of seconds the participation lasted
877
+ */
878
+ attendanceDurationSeconds?: number;
879
+ /**
880
+ * Percentage of the participation duration relative to the event duration
881
+ */
882
+ attendancePercentage?: string;
883
+ /**
884
+ * The state of the participation
885
+ */
886
+ attendanceState: 'ATTENDED' | 'CANCELLED' | 'EMPTY' | 'NO_SHOW' | 'REGISTERED';
887
+ /**
888
+ * Timestamp of when the participation occurred
889
+ */
890
+ occurredAt: number;
891
+ }
892
+ /**
893
+ * specifies the paging information needed to retrieve the previous set of results in a paginated API response
894
+ */
895
+ interface PreviousPage {
896
+ /**
897
+ * A paging cursor token for retrieving previous pages.
898
+ */
899
+ before: string;
900
+ /**
901
+ * A URL that can be used to retrieve the previous pages' results.
902
+ */
903
+ link?: string;
904
+ }
905
+ /**
906
+ * Represents a single custom property of a marketing event, storing its name, value, metadata (like source, timestamp, and sensitivity), and related audit information for tracking changes.
907
+ */
908
+ interface PropertyValue {
909
+ /**
910
+ * Level of data sensitivity
911
+ */
912
+ dataSensitivity: 'high' | 'none' | 'standard';
913
+ /**
914
+ * Indicates whether the property is encrypted
915
+ */
916
+ isEncrypted: boolean;
917
+ /**
918
+ * Indicates whether the property value is stored as a large value in the storage
919
+ */
920
+ isLargeValue: boolean;
921
+ /**
922
+ * Name of custom property
923
+ */
924
+ name: string;
925
+ /**
926
+ * The timestamp that indicates when the value being written is persisted in storage
927
+ */
928
+ persistenceTimestamp: number;
929
+ /**
930
+ * The ID of the request
931
+ */
932
+ requestId: string;
933
+ /**
934
+ * Indicates whether the property is selected
935
+ */
936
+ selectedByUser: boolean;
937
+ /**
938
+ * Timestamp of when the property was selected by the user
939
+ */
940
+ selectedByUserTimestamp: number;
941
+ /**
942
+ * Source of the property
943
+ */
944
+ source: 'ACADEMY' | 'ACCEPTANCE_TEST' | 'ACTIVITY_AUTO_ASSOCIATE' | 'ACTIVITY_LOG_REVERT' | 'ADS' | 'AI_GROUP' | 'ANALYTICS' | 'API' | 'APPROVALS' | 'ASSISTS' | 'ASSOCIATIONS' | 'AUTO_ASSOCIATE_BY_DOMAIN' | 'AUTOMATION_JOURNEY' | 'AUTOMATION_PLATFORM' | 'AVATARS_SERVICE' | 'BATCH_UPDATE' | 'BCC_TO_CRM' | 'BEHAVIORAL_EVENTS' | 'BET_ASSIGNMENT' | 'BET_CRM_CONNECTOR' | 'BIDEN' | 'BILLING' | 'BOT' | 'CALCULATED' | 'CENTRAL_EXCHANGE_RATES' | 'CHATSPOT' | 'CLONE_OBJECTS' | 'COMMUNICATOR' | 'COMPANIES' | 'COMPANY_FAMILIES' | 'COMPANY_INSIGHTS' | 'CONNECTED_ACCOUNT' | 'CONTACTS' | 'CONTACTS_WEB' | 'CONTENT_MEMBERSHIP' | 'CONVERSATIONAL_ENRICHMENT' | 'CONVERSATIONS' | 'CRM_PROCESSES_PLATFORM' | 'CRM_UI' | 'CRM_UI_BULK_ACTION' | 'CUSTOMER_AGENT' | 'DATA_ENRICHMENT' | 'DATA_QUALITY' | 'DATASET' | 'DEALS' | 'DEFAULT' | 'DELETE_OBJECTS' | 'EMAIL' | 'EMAIL_INBOX_IMPORT' | 'EMAIL_INTEGRATION' | 'ENGAGEMENTS' | 'EXTENSION' | 'FILE_MANAGER' | 'FLYWHEEL_PRODUCT_DATA_SYNC' | 'FORECASTING' | 'FORM' | 'FORWARD_TO_CRM' | 'GMAIL_INTEGRATION' | 'GOALS' | 'HEISENBERG' | 'HELP_DESK' | 'HELP_DESK_AI' | 'IMPORT' | 'INTEGRATION' | 'INTEGRATIONS_PLATFORM' | 'INTEGRATIONS_SYNC' | 'INTENT' | 'INTERNAL_PROCESSING' | 'LEADIN' | 'LEGAL_BASIS_REMEDIATION' | 'MARKET_SOURCING' | 'MARKETPLACE' | 'MARKETS' | 'MEETINGS' | 'MERGE_COMPANIES' | 'MERGE_CONTACTS' | 'MERGE_OBJECTS' | 'MERGE_REVERT_OBJECTS' | 'MICROAPPS' | 'MIGRATION' | 'MOBILE_ANDROID' | 'MOBILE_IOS' | 'PAYMENTS' | 'PIPELINE_SETTINGS' | 'PLAYBOOKS' | 'PORTAL_OBJECT_SYNC' | 'PORTAL_USER_ASSOCIATOR' | 'PRESENTATIONS' | 'PRIMARY_AUTOMATION' | 'PROPERTY_DEFAULT_VALUE' | 'PROPERTY_RESTORE' | 'PROPERTY_SETTINGS' | 'PROSPECTING_AGENT' | 'QUOTAS' | 'QUOTES' | 'RECYCLING_BIN' | 'RESTORE_OBJECTS' | 'REVENUE_PLATFORM' | 'SALES' | 'SALES_MESSAGES' | 'SALESFORCE' | 'SEQUENCES' | 'SETTINGS' | 'SIDEKICK' | 'SIGNALS' | 'SLACK_INTEGRATION' | 'SMART_DATA_CAPTURE' | 'SOCIAL' | 'SUCCESS' | 'TALLY' | 'TASK' | 'UNKNOWN' | 'WAL_INCREMENTAL' | 'WORK_UI' | 'WORKFLOW_CONTACT_DELETE_ACTION' | 'WORKFLOWS';
945
+ /**
946
+ * ID of the source of the property
947
+ */
948
+ sourceId: string;
949
+ /**
950
+ * Label of the source of the property
951
+ */
952
+ sourceLabel: string;
953
+ /**
954
+ * Source metadata encoded as a base64 string
955
+ */
956
+ sourceMetadata: string;
957
+ /**
958
+ * Indicates which upstream service made the property change
959
+ */
960
+ sourceUpstreamDeployable: string;
961
+ /**
962
+ * The unique identifier associated with the source.
963
+ */
964
+ sourceVid: number[];
965
+ /**
966
+ * Timestamp of the request
967
+ */
968
+ timestamp: number;
969
+ /**
970
+ * The unit
971
+ */
972
+ unit: string;
973
+ /**
974
+ * The ID of the user who last updated the property
975
+ */
976
+ updatedByUserId: number;
977
+ /**
978
+ * Indicates if the persistence timestamp is the same as storage version timestamp
979
+ */
980
+ useTimestampAsPersistenceTimestamp: boolean;
981
+ /**
982
+ * Custom property value
983
+ */
984
+ value: string;
985
+ }
986
+ interface PublicList {
987
+ /**
988
+ * Timestamp of the creation of the list
989
+ */
990
+ createdAt?: string;
991
+ /**
992
+ * The ID of the user who created the list
993
+ */
994
+ createdById?: string;
995
+ /**
996
+ * Timestamp of the deletion of the list
997
+ */
998
+ deletedAt?: string;
999
+ /**
1000
+ * Timestamp of the last update of the list filters
1001
+ */
1002
+ filtersUpdatedAt?: string;
1003
+ /**
1004
+ * An internal ID of the list
1005
+ */
1006
+ listId: string;
1007
+ /**
1008
+ * A number that represents a version of the list
1009
+ */
1010
+ listVersion: number;
1011
+ /**
1012
+ * The name of the list
1013
+ */
1014
+ name: string;
1015
+ /**
1016
+ * The internal ID of the object type of the list
1017
+ */
1018
+ objectTypeId: string;
1019
+ /**
1020
+ * Represents the current processing status of the list
1021
+ */
1022
+ processingStatus: string;
1023
+ /**
1024
+ * Processing type of the list
1025
+ */
1026
+ processingType: string;
1027
+ /**
1028
+ * The size of the result list
1029
+ */
1030
+ size?: number;
1031
+ /**
1032
+ * Timestamp of the last update of the list
1033
+ */
1034
+ updatedAt?: string;
1035
+ /**
1036
+ * The ID of the user who last updated the list
1037
+ */
1038
+ updatedById?: string;
1039
+ }
1040
+ interface SearchPublicResponseWrapper {
1041
+ /**
1042
+ * The ID of the source application of the marketing event
1043
+ */
1044
+ appId: number;
1045
+ /**
1046
+ * The account ID associated with this marketing event in the external application
1047
+ */
1048
+ externalAccountId: string;
1049
+ /**
1050
+ * The ID of the marketing event in the external event application
1051
+ */
1052
+ externalEventId: string;
1053
+ /**
1054
+ * The internal ID of the marketing event in HubSpot
1055
+ */
1056
+ objectId: string;
1057
+ }
1058
+ /**
1059
+ * Ye olde error
1060
+ */
1061
+ interface StandardError {
1062
+ /**
1063
+ * The category of the error
1064
+ */
1065
+ category: string;
1066
+ /**
1067
+ * The object that contains details of the errors
1068
+ */
1069
+ context: Record<string, string[]>;
1070
+ /**
1071
+ * The detailed error objects.
1072
+ */
1073
+ errors: ErrorDetail[];
1074
+ /**
1075
+ * The ID of the request
1076
+ */
1077
+ id?: string;
1078
+ /**
1079
+ * Results of the request
1080
+ */
1081
+ links: Record<string, string>;
1082
+ /**
1083
+ * A human readable message describing the error along with remediation steps where appropriate
1084
+ */
1085
+ message: string;
1086
+ /**
1087
+ * Status of the response
1088
+ */
1089
+ status: string;
1090
+ /**
1091
+ * The Sub-category of the error
1092
+ */
1093
+ subCategory?: Record<string, never>;
1094
+ }
1095
+ interface SubscriberEmailResponse {
1096
+ /**
1097
+ * The email of the contact
1098
+ */
1099
+ email: string;
1100
+ /**
1101
+ * The internal ID of the contact
1102
+ */
1103
+ vid: number;
1104
+ }
1105
+ interface SubscriberVidResponse {
1106
+ /**
1107
+ * The internal ID of the contact
1108
+ */
1109
+ vid: number;
1110
+ }
1111
+ }
1112
+ declare namespace MarketingMarketingevents {
1113
+ type CreateInput = MarketingMarketingEventsSchemas.MarketingEventCreateRequestParams;
1114
+ type CreateOutput = MarketingMarketingEventsSchemas.MarketingEventDefaultResponse;
1115
+ type DeleteBatchByExternalEventIdInput = MarketingMarketingEventsSchemas.BatchInputMarketingEventExternalUniqueIdentifier;
1116
+ type DeleteBatchByExternalEventIdOutput = void;
1117
+ type DeleteBatchInput = MarketingMarketingEventsSchemas.BatchInputMarketingEventPublicObjectIdDeleteRequest;
1118
+ type DeleteBatchOutput = void;
1119
+ interface DeleteByExternalEventIdInput {
1120
+ externalAccountId: string;
1121
+ externalEventId: string;
1122
+ }
1123
+ type DeleteByExternalEventIdOutput = void;
1124
+ interface DeleteInput {
1125
+ /**
1126
+ * The internal id of the marketing event in HubSpot.
1127
+ */
1128
+ objectId: string;
1129
+ }
1130
+ type DeleteOutput = void;
1131
+ interface GetByExternalEventIdInput {
1132
+ externalAccountId: string;
1133
+ externalEventId: string;
1134
+ }
1135
+ type GetByExternalEventIdOutput = MarketingMarketingEventsSchemas.MarketingEventPublicReadResponse;
1136
+ interface GetInput {
1137
+ /**
1138
+ * The internal id of the marketing event in HubSpot.
1139
+ */
1140
+ objectId: string;
1141
+ }
1142
+ type GetOutput = MarketingMarketingEventsSchemas.MarketingEventPublicReadResponseV2;
1143
+ interface ListInput {
1144
+ /**
1145
+ * The cursor indicating the position of the last retrieved item.
1146
+ */
1147
+ after?: string;
1148
+ /**
1149
+ * The limit for response size. The default value is 10, the max number is 100
1150
+ */
1151
+ limit?: number;
1434
1152
  }
1153
+ type ListOutput = MarketingMarketingEventsSchemas.CollectionResponseMarketingEventPublicReadResponseV2ForwardPaging;
1154
+ interface SearchByExternalEventIdInput {
1155
+ q: string;
1156
+ }
1157
+ type SearchByExternalEventIdOutput = MarketingMarketingEventsSchemas.CollectionResponseSearchPublicResponseWrapperNoPaging;
1158
+ interface SearchIdentifiersByExternalEventIdInput {
1159
+ /**
1160
+ * The id of the marketing event in the external event application.
1161
+ */
1162
+ externalEventId: string;
1163
+ }
1164
+ type SearchIdentifiersByExternalEventIdOutput = MarketingMarketingEventsSchemas.CollectionResponseWithTotalMarketingEventIdentifiersResponse;
1165
+ type UpdateBatchInput = MarketingMarketingEventsSchemas.BatchInputMarketingEventPublicUpdateRequestFullV2;
1166
+ type UpdateBatchOutput = MarketingMarketingEventsSchemas.BatchResponseMarketingEventPublicDefaultResponseV2;
1167
+ interface UpdateByExternalEventIdInput {
1168
+ data: MarketingMarketingEventsSchemas.MarketingEventUpdateRequestParams;
1169
+ externalAccountId: string;
1170
+ externalEventId: string;
1171
+ }
1172
+ type UpdateByExternalEventIdOutput = MarketingMarketingEventsSchemas.MarketingEventPublicDefaultResponse;
1173
+ interface UpdateInput {
1174
+ data: MarketingMarketingEventsSchemas.MarketingEventPublicUpdateRequestV2;
1175
+ /**
1176
+ * The internal id of the marketing event in HubSpot.
1177
+ */
1178
+ objectId: string;
1179
+ }
1180
+ type UpdateOutput = MarketingMarketingEventsSchemas.MarketingEventPublicDefaultResponseV2;
1181
+ type UpsertBatchInput = MarketingMarketingEventsSchemas.BatchInputMarketingEventCreateRequestParams;
1182
+ type UpsertBatchOutput = MarketingMarketingEventsSchemas.BatchResponseMarketingEventPublicDefaultResponse;
1183
+ interface UpsertByExternalEventIdInput {
1184
+ data: MarketingMarketingEventsSchemas.MarketingEventCreateRequestParams;
1185
+ externalEventId: string;
1186
+ }
1187
+ type UpsertByExternalEventIdOutput = MarketingMarketingEventsSchemas.MarketingEventPublicDefaultResponse;
1435
1188
  /**
1436
1189
  * Usage example:
1437
1190
  * ```ts
1438
- * import { marketingMarketingEvents } from '@hubspot/api-client-core';
1439
- * client.send(marketingMarketingEvents.basic.create(input));
1191
+ * import { marketingMarketingevents } from '@hubspot/api-client-core';
1192
+ * client.send(marketingMarketingevents.create(input));
1440
1193
  * ```
1441
1194
  */
1442
- interface BasicAPI {
1195
+ interface API {
1443
1196
  /**
1444
1197
  * Create a marketing event
1445
1198
  * @apiPath /marketing/marketing-events/2026-03/events
1446
1199
  * @apiMethod POST
1447
1200
  * @requiredScopes marketing-events-write
1448
1201
  */
1449
- create: (input: Basic.CreateInput) => Operation<Basic.CreateOutput>;
1202
+ create: (input: CreateInput) => Operation<CreateOutput>;
1450
1203
  /**
1451
1204
  * Delete Marketing Event by objectId
1452
1205
  * @apiPath /marketing/marketing-events/2026-03/{objectId}
1453
1206
  * @apiMethod DELETE
1454
1207
  * @requiredScopes marketing-events-write
1455
1208
  */
1456
- delete: (input: Basic.DeleteInput) => Operation<Basic.DeleteOutput>;
1209
+ delete: (input: DeleteInput) => Operation<DeleteOutput>;
1210
+ /**
1211
+ * Delete Multiple Marketing Events by ObjectId
1212
+ * @apiPath /marketing/marketing-events/2026-03/batch/archive
1213
+ * @apiMethod POST
1214
+ * @requiredScopes marketing-events-write
1215
+ */
1216
+ deleteBatch: (input: DeleteBatchInput) => Operation<DeleteBatchOutput>;
1217
+ /**
1218
+ * Delete Multiple Marketing Events by External Ids
1219
+ * @apiPath /marketing/marketing-events/2026-03/events/delete
1220
+ * @apiMethod POST
1221
+ * @requiredScopes marketing-events-write
1222
+ */
1223
+ deleteBatchByExternalEventId: (input: DeleteBatchByExternalEventIdInput) => Operation<DeleteBatchByExternalEventIdOutput>;
1457
1224
  /**
1458
1225
  * Delete Marketing Event by External Ids
1459
1226
  * @apiPath /marketing/marketing-events/2026-03/events/{externalEventId}
1460
1227
  * @apiMethod DELETE
1461
1228
  * @requiredScopes marketing-events-write
1462
1229
  */
1463
- deleteByExternalEventId: (input: Basic.DeleteByExternalEventIdInput) => Operation<Basic.DeleteByExternalEventIdOutput>;
1230
+ deleteByExternalEventId: (input: DeleteByExternalEventIdInput) => Operation<DeleteByExternalEventIdOutput>;
1464
1231
  /**
1465
1232
  * Get Marketing Event by objectId
1466
1233
  * @apiPath /marketing/marketing-events/2026-03/{objectId}
1467
1234
  * @apiMethod GET
1468
1235
  * @requiredScopes marketing-events-read
1469
1236
  */
1470
- get: (input: Basic.GetInput) => Operation<Basic.GetOutput>;
1237
+ get: (input: GetInput) => Operation<GetOutput>;
1471
1238
  /**
1472
1239
  * Get Marketing Event by External IDs
1473
1240
  * @apiPath /marketing/marketing-events/2026-03/events/{externalEventId}
1474
1241
  * @apiMethod GET
1475
1242
  * @requiredScopes marketing-events-read
1476
1243
  */
1477
- getByExternalEventId: (input: Basic.GetByExternalEventIdInput) => Operation<Basic.GetByExternalEventIdOutput>;
1244
+ getByExternalEventId: (input: GetByExternalEventIdInput) => Operation<GetByExternalEventIdOutput>;
1478
1245
  /**
1479
1246
  * @apiPath /marketing/marketing-events/2026-03
1480
1247
  * @apiMethod GET
1481
1248
  * @requiredScopes marketing-events-read
1482
1249
  */
1483
- list: (input?: Basic.ListInput) => Operation<Basic.ListOutput>;
1250
+ list: (input?: ListInput) => Operation<ListOutput>;
1251
+ /**
1252
+ * Find App-Specific Marketing Events by External Event Id
1253
+ * @apiPath /marketing/marketing-events/2026-03/events/search
1254
+ * @apiMethod GET
1255
+ * @requiredScopes marketing-events-read
1256
+ */
1257
+ searchByExternalEventId: (input: SearchByExternalEventIdInput) => Operation<SearchByExternalEventIdOutput>;
1258
+ /**
1259
+ * Find Marketing Events by External Event Id
1260
+ * @apiPath /marketing/marketing-events/2026-03/{externalEventId}/identifiers
1261
+ * @apiMethod GET
1262
+ * @requiredScopes marketing-events-read
1263
+ */
1264
+ searchIdentifiersByExternalEventId: (input: SearchIdentifiersByExternalEventIdInput) => Operation<SearchIdentifiersByExternalEventIdOutput>;
1484
1265
  /**
1485
1266
  * Update Marketing Event by objectId
1486
1267
  * @apiPath /marketing/marketing-events/2026-03/{objectId}
1487
1268
  * @apiMethod PATCH
1488
1269
  * @requiredScopes marketing-events-write
1489
1270
  */
1490
- update: (input: Basic.UpdateInput) => Operation<Basic.UpdateOutput>;
1271
+ update: (input: UpdateInput) => Operation<UpdateOutput>;
1272
+ /**
1273
+ * Update Multiple Marketing Events by ObjectId
1274
+ * @apiPath /marketing/marketing-events/2026-03/batch/update
1275
+ * @apiMethod POST
1276
+ * @requiredScopes marketing-events-write
1277
+ */
1278
+ updateBatch: (input: UpdateBatchInput) => Operation<UpdateBatchOutput>;
1491
1279
  /**
1492
1280
  * Update Marketing Event by External IDs
1493
1281
  * @apiPath /marketing/marketing-events/2026-03/events/{externalEventId}
1494
1282
  * @apiMethod PATCH
1495
1283
  * @requiredScopes marketing-events-write
1496
1284
  */
1497
- updateByExternalEventId: (input: Basic.UpdateByExternalEventIdInput) => Operation<Basic.UpdateByExternalEventIdOutput>;
1285
+ updateByExternalEventId: (input: UpdateByExternalEventIdInput) => Operation<UpdateByExternalEventIdOutput>;
1286
+ /**
1287
+ * Create or Update Multiple Marketing Events
1288
+ * @apiPath /marketing/marketing-events/2026-03/events/upsert
1289
+ * @apiMethod POST
1290
+ * @requiredScopes marketing-events-write
1291
+ */
1292
+ upsertBatch: (input: UpsertBatchInput) => Operation<UpsertBatchOutput>;
1498
1293
  /**
1499
1294
  * Create or update a marketing event
1500
1295
  * @apiPath /marketing/marketing-events/2026-03/events/{externalEventId}
1501
1296
  * @apiMethod PUT
1502
1297
  * @requiredScopes marketing-events-write
1503
1298
  */
1504
- upsertByExternalEventId: (input: Basic.UpsertByExternalEventIdInput) => Operation<Basic.UpsertByExternalEventIdOutput>;
1299
+ upsertByExternalEventId: (input: UpsertByExternalEventIdInput) => Operation<UpsertByExternalEventIdOutput>;
1505
1300
  }
1506
- /**
1507
- * Usage example:
1508
- * ```ts
1509
- * import { marketingMarketingEvents } from '@hubspot/api-client-core';
1510
- * client.send(marketingMarketingEvents.batch.deleteBatch(input));
1511
- * ```
1512
- */
1513
- interface BatchAPI {
1301
+ }
1302
+ declare namespace MarketingMarketingeventsAttendance {
1303
+ interface CreateByEventIdAndContactIdInput {
1304
+ data: MarketingMarketingEventsSchemas.BatchInputMarketingEventSubscriber;
1514
1305
  /**
1515
- * Delete Multiple Marketing Events by ObjectId
1516
- * @apiPath /marketing/marketing-events/2026-03/batch/archive
1517
- * @apiMethod POST
1518
- * @requiredScopes marketing-events-write
1306
+ * The internal id of the marketing event in HubSpot.
1519
1307
  */
1520
- deleteBatch: (input: Batch.DeleteBatchInput) => Operation<Batch.DeleteBatchOutput>;
1308
+ objectId: string;
1521
1309
  /**
1522
- * Delete Multiple Marketing Events by External Ids
1523
- * @apiPath /marketing/marketing-events/2026-03/events/delete
1524
- * @apiMethod POST
1525
- * @requiredScopes marketing-events-write
1310
+ * The attendance state value. It may be 'register', 'attend' or 'cancel'
1526
1311
  */
1527
- deleteBatchByExternalEventId: (input: Batch.DeleteBatchByExternalEventIdInput) => Operation<Batch.DeleteBatchByExternalEventIdOutput>;
1312
+ subscriberState: string;
1313
+ }
1314
+ type CreateByEventIdAndContactIdOutput = MarketingMarketingEventsSchemas.BatchResponseSubscriberVidResponse;
1315
+ interface CreateByEventIdAndEmailInput {
1316
+ data: MarketingMarketingEventsSchemas.BatchInputMarketingEventEmailSubscriber;
1528
1317
  /**
1529
- * Update Multiple Marketing Events by ObjectId
1530
- * @apiPath /marketing/marketing-events/2026-03/batch/update
1531
- * @apiMethod POST
1532
- * @requiredScopes marketing-events-write
1318
+ * The internal id of the marketing event in HubSpot.
1533
1319
  */
1534
- updateBatch: (input: Batch.UpdateBatchInput) => Operation<Batch.UpdateBatchOutput>;
1320
+ objectId: string;
1535
1321
  /**
1536
- * Create or Update Multiple Marketing Events
1537
- * @apiPath /marketing/marketing-events/2026-03/events/upsert
1538
- * @apiMethod POST
1539
- * @requiredScopes marketing-events-write
1322
+ * The attendance state value. It may be 'register', 'attend' or 'cancel'
1540
1323
  */
1541
- upsertBatch: (input: Batch.UpsertBatchInput) => Operation<Batch.UpsertBatchOutput>;
1324
+ subscriberState: string;
1325
+ }
1326
+ type CreateByEventIdAndEmailOutput = MarketingMarketingEventsSchemas.BatchResponseSubscriberEmailResponse;
1327
+ interface CreateByExternalEventIdAndContactIdInput {
1328
+ data: MarketingMarketingEventsSchemas.BatchInputMarketingEventSubscriber;
1329
+ externalAccountId?: string;
1330
+ externalEventId: string;
1331
+ subscriberState: string;
1542
1332
  }
1333
+ type CreateByExternalEventIdAndContactIdOutput = MarketingMarketingEventsSchemas.BatchResponseSubscriberVidResponse;
1334
+ interface CreateByExternalEventIdAndEmailInput {
1335
+ data: MarketingMarketingEventsSchemas.BatchInputMarketingEventEmailSubscriber;
1336
+ externalAccountId?: string;
1337
+ externalEventId: string;
1338
+ subscriberState: string;
1339
+ }
1340
+ type CreateByExternalEventIdAndEmailOutput = MarketingMarketingEventsSchemas.BatchResponseSubscriberEmailResponse;
1543
1341
  /**
1544
1342
  * Usage example:
1545
1343
  * ```ts
1546
- * import { marketingMarketingEvents } from '@hubspot/api-client-core';
1547
- * client.send(marketingMarketingEvents.eventAttendees.createByEventIdAndContactId(input));
1344
+ * import { marketingMarketingeventsAttendance } from '@hubspot/api-client-core';
1345
+ * client.send(marketingMarketingeventsAttendance.createByEventIdAndContactId(input));
1548
1346
  * ```
1549
1347
  */
1550
- interface EventAttendeesAPI {
1348
+ interface API {
1551
1349
  /**
1552
1350
  * Record Participants by ContactId with Marketing Event Object Id
1553
1351
  * @apiPath /marketing/marketing-events/2026-03/{objectId}/attendance/{subscriberState}/create
1554
1352
  * @apiMethod POST
1555
1353
  * @requiredScopes marketing-events-write
1556
1354
  */
1557
- createByEventIdAndContactId: (input: EventAttendees.CreateByEventIdAndContactIdInput) => Operation<EventAttendees.CreateByEventIdAndContactIdOutput>;
1355
+ createByEventIdAndContactId: (input: CreateByEventIdAndContactIdInput) => Operation<CreateByEventIdAndContactIdOutput>;
1558
1356
  /**
1559
1357
  * Record Participants by Email with Marketing Event Object Id
1560
1358
  * @apiPath /marketing/marketing-events/2026-03/{objectId}/attendance/{subscriberState}/email-create
1561
1359
  * @apiMethod POST
1562
1360
  * @requiredScopes marketing-events-write
1563
1361
  */
1564
- createByEventIdAndEmail: (input: EventAttendees.CreateByEventIdAndEmailInput) => Operation<EventAttendees.CreateByEventIdAndEmailOutput>;
1362
+ createByEventIdAndEmail: (input: CreateByEventIdAndEmailInput) => Operation<CreateByEventIdAndEmailOutput>;
1565
1363
  /**
1566
1364
  * Record Participants by ContactId with Marketing Event External Ids
1567
1365
  * @apiPath /marketing/marketing-events/2026-03/attendance/{externalEventId}/{subscriberState}/create
1568
1366
  * @apiMethod POST
1569
1367
  * @requiredScopes marketing-events-write
1570
1368
  */
1571
- createByExternalEventIdAndContactId: (input: EventAttendees.CreateByExternalEventIdAndContactIdInput) => Operation<EventAttendees.CreateByExternalEventIdAndContactIdOutput>;
1369
+ createByExternalEventIdAndContactId: (input: CreateByExternalEventIdAndContactIdInput) => Operation<CreateByExternalEventIdAndContactIdOutput>;
1572
1370
  /**
1573
1371
  * Record Participants by Email with Marketing Event External Ids
1574
1372
  * @apiPath /marketing/marketing-events/2026-03/attendance/{externalEventId}/{subscriberState}/email-create
1575
1373
  * @apiMethod POST
1576
1374
  * @requiredScopes marketing-events-write
1577
1375
  */
1578
- createByExternalEventIdAndEmail: (input: EventAttendees.CreateByExternalEventIdAndEmailInput) => Operation<EventAttendees.CreateByExternalEventIdAndEmailOutput>;
1376
+ createByExternalEventIdAndEmail: (input: CreateByExternalEventIdAndEmailInput) => Operation<CreateByExternalEventIdAndEmailOutput>;
1579
1377
  }
1378
+ }
1379
+ declare namespace MarketingMarketingeventsEvents {
1380
+ interface CancelByExternalEventIdInput {
1381
+ externalAccountId: string;
1382
+ externalEventId: string;
1383
+ }
1384
+ type CancelByExternalEventIdOutput = MarketingMarketingEventsSchemas.MarketingEventDefaultResponse;
1385
+ interface CompleteByExternalEventIdInput {
1386
+ data: MarketingMarketingEventsSchemas.MarketingEventCompleteRequestParams;
1387
+ externalAccountId: string;
1388
+ externalEventId: string;
1389
+ }
1390
+ type CompleteByExternalEventIdOutput = MarketingMarketingEventsSchemas.MarketingEventDefaultResponse;
1580
1391
  /**
1581
1392
  * Usage example:
1582
1393
  * ```ts
1583
- * import { marketingMarketingEvents } from '@hubspot/api-client-core';
1584
- * client.send(marketingMarketingEvents.eventStatus.cancelByExternalEventId(input));
1394
+ * import { marketingMarketingeventsEvents } from '@hubspot/api-client-core';
1395
+ * client.send(marketingMarketingeventsEvents.cancelByExternalEventId(input));
1585
1396
  * ```
1586
1397
  */
1587
- interface EventStatusAPI {
1398
+ interface API {
1588
1399
  /**
1589
1400
  * Mark a marketing event as cancelled
1590
1401
  * @apiPath /marketing/marketing-events/2026-03/events/{externalEventId}/cancel
1591
1402
  * @apiMethod POST
1592
1403
  * @requiredScopes marketing-events-write
1593
1404
  */
1594
- cancelByExternalEventId: (input: EventStatus.CancelByExternalEventIdInput) => Operation<EventStatus.CancelByExternalEventIdOutput>;
1405
+ cancelByExternalEventId: (input: CancelByExternalEventIdInput) => Operation<CancelByExternalEventIdOutput>;
1595
1406
  /**
1596
1407
  * Mark a marketing event as completed
1597
1408
  * @apiPath /marketing/marketing-events/2026-03/events/{externalEventId}/complete
1598
1409
  * @apiMethod POST
1599
1410
  * @requiredScopes marketing-events-write
1600
1411
  */
1601
- completeByExternalEventId: (input: EventStatus.CompleteByExternalEventIdInput) => Operation<EventStatus.CompleteByExternalEventIdOutput>;
1412
+ completeByExternalEventId: (input: CompleteByExternalEventIdInput) => Operation<CompleteByExternalEventIdOutput>;
1602
1413
  }
1603
- /**
1604
- * Usage example:
1605
- * ```ts
1606
- * import { marketingMarketingEvents } from '@hubspot/api-client-core';
1607
- * client.send(marketingMarketingEvents.identifiers.searchByExternalEventId(input));
1608
- * ```
1609
- */
1610
- interface IdentifiersAPI {
1414
+ }
1415
+ declare namespace MarketingMarketingeventsListassociations {
1416
+ interface AssociateByExternalAccountInput {
1611
1417
  /**
1612
- * Find App-Specific Marketing Events by External Event Id
1613
- * @apiPath /marketing/marketing-events/2026-03/events/search
1614
- * @apiMethod GET
1615
- * @requiredScopes marketing-events-read
1418
+ * The accountId that is associated with this marketing event in the external event application.
1616
1419
  */
1617
- searchByExternalEventId: (input: Identifiers.SearchByExternalEventIdInput) => Operation<Identifiers.SearchByExternalEventIdOutput>;
1420
+ externalAccountId: string;
1618
1421
  /**
1619
- * Find Marketing Events by External Event Id
1620
- * @apiPath /marketing/marketing-events/2026-03/{externalEventId}/identifiers
1621
- * @apiMethod GET
1622
- * @requiredScopes marketing-events-read
1422
+ * The id of the marketing event in the external event application.
1423
+ */
1424
+ externalEventId: string;
1425
+ /**
1426
+ * The ILS ID of the list.
1427
+ */
1428
+ listId: string;
1429
+ }
1430
+ type AssociateByExternalAccountOutput = void;
1431
+ interface AssociateInput {
1432
+ /**
1433
+ * The ILS ID of the list.
1434
+ */
1435
+ listId: string;
1436
+ /**
1437
+ * The internal id of the marketing event in HubSpot.
1438
+ */
1439
+ marketingEventId: string;
1440
+ }
1441
+ type AssociateOutput = void;
1442
+ interface DeleteByExternalAccountInput {
1443
+ /**
1444
+ * The accountId that is associated with this marketing event in the external event application.
1445
+ */
1446
+ externalAccountId: string;
1447
+ /**
1448
+ * The id of the marketing event in the external event application.
1449
+ */
1450
+ externalEventId: string;
1451
+ /**
1452
+ * The ILS ID of the list.
1453
+ */
1454
+ listId: string;
1455
+ }
1456
+ type DeleteByExternalAccountOutput = void;
1457
+ interface DeleteInput {
1458
+ /**
1459
+ * The ILS ID of the list.
1460
+ */
1461
+ listId: string;
1462
+ /**
1463
+ * The internal id of the marketing event in HubSpot.
1464
+ */
1465
+ marketingEventId: string;
1466
+ }
1467
+ type DeleteOutput = void;
1468
+ interface ListByExternalAccountInput {
1469
+ /**
1470
+ * The accountId that is associated with this marketing event in the external event application.
1623
1471
  */
1624
- searchIdentifiersByExternalEventId: (input: Identifiers.SearchIdentifiersByExternalEventIdInput) => Operation<Identifiers.SearchIdentifiersByExternalEventIdOutput>;
1472
+ externalAccountId: string;
1473
+ /**
1474
+ * The id of the marketing event in the external event application.
1475
+ */
1476
+ externalEventId: string;
1477
+ }
1478
+ type ListByExternalAccountOutput = MarketingMarketingEventsSchemas.CollectionResponseWithTotalPublicList;
1479
+ interface ListInput {
1480
+ /**
1481
+ * The internal id of the marketing event in HubSpot.
1482
+ */
1483
+ marketingEventId: string;
1625
1484
  }
1485
+ type ListOutput = MarketingMarketingEventsSchemas.CollectionResponseWithTotalPublicList;
1626
1486
  /**
1627
1487
  * Usage example:
1628
1488
  * ```ts
1629
- * import { marketingMarketingEvents } from '@hubspot/api-client-core';
1630
- * client.send(marketingMarketingEvents.listAssociations.associate(input));
1489
+ * import { marketingMarketingeventsListassociations } from '@hubspot/api-client-core';
1490
+ * client.send(marketingMarketingeventsListassociations.associate(input));
1631
1491
  * ```
1632
1492
  */
1633
- interface ListAssociationsAPI {
1493
+ interface API {
1634
1494
  /**
1635
1495
  * Associate a list with a marketing event
1636
1496
  * @apiPath /marketing/marketing-events/2026-03/associations/{marketingEventId}/lists/{listId}
1637
1497
  * @apiMethod PUT
1638
1498
  * @requiredScopes marketing-events-write
1639
1499
  */
1640
- associate: (input: ListAssociations.AssociateInput) => Operation<ListAssociations.AssociateOutput>;
1500
+ associate: (input: AssociateInput) => Operation<AssociateOutput>;
1641
1501
  /**
1642
1502
  * Associate a list with a marketing event
1643
1503
  * @apiPath /marketing/marketing-events/2026-03/associations/{externalAccountId}/{externalEventId}/lists/{listId}
1644
1504
  * @apiMethod PUT
1645
1505
  * @requiredScopes marketing-events-write
1646
1506
  */
1647
- associateByExternalAccount: (input: ListAssociations.AssociateByExternalAccountInput) => Operation<ListAssociations.AssociateByExternalAccountOutput>;
1507
+ associateByExternalAccount: (input: AssociateByExternalAccountInput) => Operation<AssociateByExternalAccountOutput>;
1648
1508
  /**
1649
1509
  * Disassociate a list from a marketing event
1650
1510
  * @apiPath /marketing/marketing-events/2026-03/associations/{marketingEventId}/lists/{listId}
1651
1511
  * @apiMethod DELETE
1652
1512
  * @requiredScopes marketing-events-write
1653
1513
  */
1654
- delete: (input: ListAssociations.DeleteInput) => Operation<ListAssociations.DeleteOutput>;
1514
+ delete: (input: DeleteInput) => Operation<DeleteOutput>;
1655
1515
  /**
1656
1516
  * Disassociate a list from a marketing event
1657
1517
  * @apiPath /marketing/marketing-events/2026-03/associations/{externalAccountId}/{externalEventId}/lists/{listId}
1658
1518
  * @apiMethod DELETE
1659
1519
  * @requiredScopes marketing-events-write
1660
1520
  */
1661
- deleteByExternalAccount: (input: ListAssociations.DeleteByExternalAccountInput) => Operation<ListAssociations.DeleteByExternalAccountOutput>;
1521
+ deleteByExternalAccount: (input: DeleteByExternalAccountInput) => Operation<DeleteByExternalAccountOutput>;
1662
1522
  /**
1663
1523
  * Get lists associated with a marketing event
1664
1524
  * @apiPath /marketing/marketing-events/2026-03/associations/{marketingEventId}/lists
1665
1525
  * @apiMethod GET
1666
1526
  * @requiredScopes marketing-events-write
1667
1527
  */
1668
- list: (input: ListAssociations.ListInput) => Operation<ListAssociations.ListOutput>;
1528
+ list: (input: ListInput) => Operation<ListOutput>;
1669
1529
  /**
1670
1530
  * Get lists associated with a marketing event
1671
1531
  * @apiPath /marketing/marketing-events/2026-03/associations/{externalAccountId}/{externalEventId}/lists
1672
1532
  * @apiMethod GET
1673
1533
  * @requiredScopes marketing-events-write
1674
1534
  */
1675
- listByExternalAccount: (input: ListAssociations.ListByExternalAccountInput) => Operation<ListAssociations.ListByExternalAccountOutput>;
1535
+ listByExternalAccount: (input: ListByExternalAccountInput) => Operation<ListByExternalAccountOutput>;
1536
+ }
1537
+ }
1538
+ declare namespace MarketingMarketingeventsParticipations {
1539
+ interface GetByExternalAccountAndEventIdInput {
1540
+ /**
1541
+ * The accountId that is associated with this marketing event in the external event application.
1542
+ */
1543
+ externalAccountId: string;
1544
+ /**
1545
+ * The id of the marketing event in the external event application.
1546
+ */
1547
+ externalEventId: string;
1548
+ }
1549
+ type GetByExternalAccountAndEventIdOutput = MarketingMarketingEventsSchemas.AttendanceCounters;
1550
+ interface GetByIdInput {
1551
+ /**
1552
+ * The internal id of the marketing event in HubSpot.
1553
+ */
1554
+ marketingEventId: number;
1555
+ }
1556
+ type GetByIdOutput = MarketingMarketingEventsSchemas.AttendanceCounters;
1557
+ interface ListBreakdownByContactInput {
1558
+ /**
1559
+ * The cursor indicating the position of the last retrieved item.
1560
+ */
1561
+ after?: string;
1562
+ /**
1563
+ * The identifier of the Contact. It may be email or internal id.
1564
+ */
1565
+ contactIdentifier: string;
1566
+ /**
1567
+ * The limit for response size. The default value is 10, the max number is 100
1568
+ */
1569
+ limit?: number;
1570
+ /**
1571
+ * The participation state value. It may be REGISTERED, CANCELLED, ATTENDED, NO_SHOW
1572
+ */
1573
+ state?: string;
1574
+ }
1575
+ type ListBreakdownByContactOutput = MarketingMarketingEventsSchemas.CollectionResponseWithTotalParticipationBreakdown;
1576
+ interface ListBreakdownByExternalAccountAndEventIdInput {
1577
+ /**
1578
+ * The cursor indicating the position of the last retrieved item.
1579
+ */
1580
+ after?: string;
1581
+ /**
1582
+ * The identifier of the Contact. It may be email or internal id.
1583
+ */
1584
+ contactIdentifier?: string;
1585
+ /**
1586
+ * The accountId that is associated with this marketing event in the external event application.
1587
+ */
1588
+ externalAccountId: string;
1589
+ /**
1590
+ * The id of the marketing event in the external event application.
1591
+ */
1592
+ externalEventId: string;
1593
+ /**
1594
+ * The limit for response size. The default value is 10, the max number is 100
1595
+ */
1596
+ limit?: number;
1597
+ /**
1598
+ * The participation state value. It may be REGISTERED, CANCELLED, ATTENDED, NO_SHOW
1599
+ */
1600
+ state?: string;
1601
+ }
1602
+ type ListBreakdownByExternalAccountAndEventIdOutput = MarketingMarketingEventsSchemas.CollectionResponseWithTotalParticipationBreakdown;
1603
+ interface ListBreakdownByIdInput {
1604
+ /**
1605
+ * The cursor indicating the position of the last retrieved item.
1606
+ */
1607
+ after?: string;
1608
+ /**
1609
+ * The identifier of the Contact. It may be email or internal id.
1610
+ */
1611
+ contactIdentifier?: string;
1612
+ /**
1613
+ * The limit for response size. The default value is 10, the max number is 100
1614
+ */
1615
+ limit?: number;
1616
+ /**
1617
+ * The internal id of the marketing event in HubSpot.
1618
+ */
1619
+ marketingEventId: number;
1620
+ /**
1621
+ * The participation state value. It may be REGISTERED, CANCELLED, ATTENDED, NO_SHOW
1622
+ */
1623
+ state?: string;
1676
1624
  }
1625
+ type ListBreakdownByIdOutput = MarketingMarketingEventsSchemas.CollectionResponseWithTotalParticipationBreakdown;
1677
1626
  /**
1678
1627
  * Usage example:
1679
1628
  * ```ts
1680
- * import { marketingMarketingEvents } from '@hubspot/api-client-core';
1681
- * client.send(marketingMarketingEvents.participantState.getByExternalAccountAndEventId(input));
1629
+ * import { marketingMarketingeventsParticipations } from '@hubspot/api-client-core';
1630
+ * client.send(marketingMarketingeventsParticipations.getByExternalAccountAndEventId(input));
1682
1631
  * ```
1683
1632
  */
1684
- interface ParticipantStateAPI {
1633
+ interface API {
1685
1634
  /**
1686
1635
  * Read participations counters by Marketing Event external identifier
1687
1636
  * @apiPath /marketing/marketing-events/2026-03/participations/{externalAccountId}/{externalEventId}
1688
1637
  * @apiMethod GET
1689
1638
  * @requiredScopes marketing-events-read
1690
1639
  */
1691
- getByExternalAccountAndEventId: (input: ParticipantState.GetByExternalAccountAndEventIdInput) => Operation<ParticipantState.GetByExternalAccountAndEventIdOutput>;
1640
+ getByExternalAccountAndEventId: (input: GetByExternalAccountAndEventIdInput) => Operation<GetByExternalAccountAndEventIdOutput>;
1692
1641
  /**
1693
1642
  * Read participations counters by Marketing Event internal identifier
1694
1643
  * @apiPath /marketing/marketing-events/2026-03/participations/{marketingEventId}
1695
1644
  * @apiMethod GET
1696
1645
  * @requiredScopes marketing-events-read
1697
1646
  */
1698
- getById: (input: ParticipantState.GetByIdInput) => Operation<ParticipantState.GetByIdOutput>;
1647
+ getById: (input: GetByIdInput) => Operation<GetByIdOutput>;
1699
1648
  /**
1700
1649
  * Read participations breakdown by Contact identifier
1701
1650
  * @apiPath /marketing/marketing-events/2026-03/participations/contacts/{contactIdentifier}/breakdown
1702
1651
  * @apiMethod GET
1703
1652
  * @requiredScopes marketing-events-read
1704
1653
  */
1705
- listBreakdownByContact: (input: ParticipantState.ListBreakdownByContactInput) => Operation<ParticipantState.ListBreakdownByContactOutput>;
1654
+ listBreakdownByContact: (input: ListBreakdownByContactInput) => Operation<ListBreakdownByContactOutput>;
1706
1655
  /**
1707
1656
  * Read participations breakdown by Marketing Event external identifier
1708
1657
  * @apiPath /marketing/marketing-events/2026-03/participations/{externalAccountId}/{externalEventId}/breakdown
1709
1658
  * @apiMethod GET
1710
1659
  * @requiredScopes marketing-events-read
1711
1660
  */
1712
- listBreakdownByExternalAccountAndEventId: (input: ParticipantState.ListBreakdownByExternalAccountAndEventIdInput) => Operation<ParticipantState.ListBreakdownByExternalAccountAndEventIdOutput>;
1661
+ listBreakdownByExternalAccountAndEventId: (input: ListBreakdownByExternalAccountAndEventIdInput) => Operation<ListBreakdownByExternalAccountAndEventIdOutput>;
1713
1662
  /**
1714
1663
  * Read participations breakdown by Marketing Event internal identifier
1715
1664
  * @apiPath /marketing/marketing-events/2026-03/participations/{marketingEventId}/breakdown
1716
1665
  * @apiMethod GET
1717
1666
  * @requiredScopes marketing-events-read
1718
1667
  */
1719
- listBreakdownById: (input: ParticipantState.ListBreakdownByIdInput) => Operation<ParticipantState.ListBreakdownByIdOutput>;
1668
+ listBreakdownById: (input: ListBreakdownByIdInput) => Operation<ListBreakdownByIdOutput>;
1669
+ }
1670
+ }
1671
+ declare namespace MarketingMarketingeventsSettings {
1672
+ interface CreateOrUpdateInput {
1673
+ appId: number;
1674
+ data: MarketingMarketingEventsSchemas.EventDetailSettingsUrl;
1675
+ }
1676
+ type CreateOrUpdateOutput = MarketingMarketingEventsSchemas.EventDetailSettings;
1677
+ interface GetInput {
1678
+ appId: number;
1720
1679
  }
1680
+ type GetOutput = MarketingMarketingEventsSchemas.EventDetailSettings;
1721
1681
  /**
1722
1682
  * Usage example:
1723
1683
  * ```ts
1724
- * import { marketingMarketingEvents } from '@hubspot/api-client-core';
1725
- * client.send(marketingMarketingEvents.settings.createOrUpdate(input));
1684
+ * import { marketingMarketingeventsSettings } from '@hubspot/api-client-core';
1685
+ * client.send(marketingMarketingeventsSettings.createOrUpdate(input));
1726
1686
  * ```
1727
1687
  */
1728
- interface SettingsAPI {
1688
+ interface API {
1729
1689
  /**
1730
1690
  * Update the application settings
1731
1691
  * @apiPath /marketing/marketing-events/2026-03/{appId}/settings
1732
1692
  * @apiMethod POST
1733
1693
  * @requiredScopes developers-write
1734
1694
  */
1735
- createOrUpdate: (input: Settings.CreateOrUpdateInput) => Operation<Settings.CreateOrUpdateOutput>;
1695
+ createOrUpdate: (input: CreateOrUpdateInput) => Operation<CreateOrUpdateOutput>;
1736
1696
  /**
1737
1697
  * Retrieve the application settings
1738
1698
  * @apiPath /marketing/marketing-events/2026-03/{appId}/settings
1739
1699
  * @apiMethod GET
1740
1700
  * @requiredScopes developers-read
1741
1701
  */
1742
- get: (input: Settings.GetInput) => Operation<Settings.GetOutput>;
1702
+ get: (input: GetInput) => Operation<GetOutput>;
1703
+ }
1704
+ }
1705
+ declare namespace MarketingMarketingeventsSubscriberstate {
1706
+ interface RecordByEmailInput {
1707
+ data: MarketingMarketingEventsSchemas.BatchInputMarketingEventEmailSubscriber;
1708
+ externalAccountId: string;
1709
+ externalEventId: string;
1710
+ subscriberState: string;
1711
+ }
1712
+ type RecordByEmailOutput = void;
1713
+ interface RecordByIdInput {
1714
+ data: MarketingMarketingEventsSchemas.BatchInputMarketingEventSubscriber;
1715
+ externalAccountId: string;
1716
+ externalEventId: string;
1717
+ subscriberState: string;
1743
1718
  }
1719
+ type RecordByIdOutput = void;
1744
1720
  /**
1745
1721
  * Usage example:
1746
1722
  * ```ts
1747
- * import { marketingMarketingEvents } from '@hubspot/api-client-core';
1748
- * client.send(marketingMarketingEvents.subscriberStateChanges.recordByEmail(input));
1723
+ * import { marketingMarketingeventsSubscriberstate } from '@hubspot/api-client-core';
1724
+ * client.send(marketingMarketingeventsSubscriberstate.recordByEmail(input));
1749
1725
  * ```
1750
1726
  */
1751
- interface SubscriberStateChangesAPI {
1727
+ interface API {
1752
1728
  /**
1753
1729
  * Record a subscriber state by contact email
1754
1730
  * @apiPath /marketing/marketing-events/2026-03/events/{externalEventId}/{subscriberState}/email-upsert
1755
1731
  * @apiMethod POST
1756
1732
  * @requiredScopes marketing-events-write
1757
1733
  */
1758
- recordByEmail: (input: SubscriberStateChanges.RecordByEmailInput) => Operation<SubscriberStateChanges.RecordByEmailOutput>;
1734
+ recordByEmail: (input: RecordByEmailInput) => Operation<RecordByEmailOutput>;
1759
1735
  /**
1760
1736
  * Record a subscriber state by contact ID
1761
1737
  * @apiPath /marketing/marketing-events/2026-03/events/{externalEventId}/{subscriberState}/upsert
1762
1738
  * @apiMethod POST
1763
1739
  * @requiredScopes marketing-events-write
1764
1740
  */
1765
- recordById: (input: SubscriberStateChanges.RecordByIdInput) => Operation<SubscriberStateChanges.RecordByIdOutput>;
1766
- }
1767
- /**
1768
- * Usage example:
1769
- * ```ts
1770
- * import { marketingMarketingEvents } from '@hubspot/api-client-core';
1771
- * client.send(marketingMarketingEvents.basic.create(input));
1772
- * ```
1773
- */
1774
- interface API {
1775
- basic: BasicAPI;
1776
- batch: BatchAPI;
1777
- eventAttendees: EventAttendeesAPI;
1778
- eventStatus: EventStatusAPI;
1779
- identifiers: IdentifiersAPI;
1780
- listAssociations: ListAssociationsAPI;
1781
- participantState: ParticipantStateAPI;
1782
- settings: SettingsAPI;
1783
- subscriberStateChanges: SubscriberStateChangesAPI;
1741
+ recordById: (input: RecordByIdInput) => Operation<RecordByIdOutput>;
1784
1742
  }
1785
1743
  }
1786
1744
  //#endregion
1787
- export { MarketingMarketingEvents };
1745
+ export { MarketingMarketingEventsSchemas, MarketingMarketingevents, MarketingMarketingeventsAttendance, MarketingMarketingeventsEvents, MarketingMarketingeventsListassociations, MarketingMarketingeventsParticipations, MarketingMarketingeventsSettings, MarketingMarketingeventsSubscriberstate };
1788
1746
  //# sourceMappingURL=marketing-events-types.generated.d.ts.map