@graph8/sdk 0.245.0 → 0.260.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (350) hide show
  1. package/README.md +19 -5
  2. package/dist/cli.js +216 -0
  3. package/dist/index.d.mts +283 -12
  4. package/dist/index.d.ts +283 -12
  5. package/dist/index.js +88 -2
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.mjs +88 -2
  8. package/dist/index.mjs.map +1 -1
  9. package/dist/react.d.mts +274 -12
  10. package/dist/react.d.ts +274 -12
  11. package/dist/react.js +106 -10
  12. package/dist/react.js.map +1 -1
  13. package/dist/react.mjs +97 -11
  14. package/dist/react.mjs.map +1 -1
  15. package/dist/types/README.md +7 -0
  16. package/dist/types/agency.d.ts +20 -0
  17. package/dist/types/agentSetup.d.ts +57 -0
  18. package/dist/types/api.d.ts +127 -0
  19. package/dist/types/appClient.d.ts +99 -0
  20. package/dist/types/appPlatform.d.ts +269 -0
  21. package/dist/types/appTokens.d.ts +125 -0
  22. package/dist/types/apps.d.ts +130 -0
  23. package/dist/types/audiences.d.ts +88 -0
  24. package/dist/types/calendar.d.ts +55 -0
  25. package/dist/types/campaigns.d.ts +61 -0
  26. package/dist/types/chat.d.ts +35 -0
  27. package/dist/types/cli.d.ts +14 -0
  28. package/dist/types/companies.d.ts +123 -0
  29. package/dist/types/contacts.d.ts +200 -0
  30. package/dist/types/copilot.d.ts +31 -0
  31. package/dist/types/core.d.ts +1052 -0
  32. package/dist/types/deals.d.ts +215 -0
  33. package/dist/types/enrich.d.ts +51 -0
  34. package/dist/types/fields.d.ts +84 -0
  35. package/dist/types/forms.d.ts +16 -0
  36. package/dist/types/http.d.ts +141 -0
  37. package/dist/types/inbox.d.ts +123 -0
  38. package/dist/types/index.d.ts +63 -0
  39. package/dist/types/intent.d.ts +196 -0
  40. package/dist/types/lists.d.ts +44 -0
  41. package/dist/types/mailboxes.d.ts +240 -0
  42. package/dist/types/marketplace.d.ts +62 -0
  43. package/dist/types/meetings.d.ts +70 -0
  44. package/dist/types/newsletter.d.ts +212 -0
  45. package/dist/types/notes.d.ts +57 -0
  46. package/dist/types/objects.d.ts +281 -0
  47. package/dist/types/pipelines.d.ts +135 -0
  48. package/dist/types/quotes.d.ts +143 -0
  49. package/dist/types/react.d.ts +978 -0
  50. package/dist/types/search.d.ts +99 -0
  51. package/dist/types/sequences.d.ts +255 -0
  52. package/dist/types/signals.d.ts +28 -0
  53. package/dist/types/skills.d.ts +176 -0
  54. package/dist/types/snippet.d.ts +24 -0
  55. package/dist/types/studio.d.ts +161 -0
  56. package/dist/types/tasks.d.ts +101 -0
  57. package/dist/types/types.d.ts +45 -0
  58. package/dist/types/utils.d.ts +21 -0
  59. package/dist/types/version.d.ts +10 -0
  60. package/dist/types/visitors.d.ts +29 -0
  61. package/dist/types/voice.d.ts +304 -0
  62. package/dist/types/webhooks.d.ts +71 -0
  63. package/dist/types/workflows.d.ts +229 -0
  64. package/docs/agents.md +748 -0
  65. package/docs/api/README.md +165 -0
  66. package/docs/api/accounts.d.ts +396 -0
  67. package/docs/api/accounts.md +644 -0
  68. package/docs/api/adCampaigns.d.ts +707 -0
  69. package/docs/api/adCampaigns.md +1091 -0
  70. package/docs/api/adCreatives.d.ts +996 -0
  71. package/docs/api/adCreatives.md +1708 -0
  72. package/docs/api/agency.d.ts +556 -0
  73. package/docs/api/agency.md +845 -0
  74. package/docs/api/agent.d.ts +330 -0
  75. package/docs/api/agent.md +514 -0
  76. package/docs/api/agents.d.ts +1622 -0
  77. package/docs/api/agents.md +2860 -0
  78. package/docs/api/aiInbox.d.ts +1984 -0
  79. package/docs/api/aiInbox.md +3490 -0
  80. package/docs/api/analytics.d.ts +1273 -0
  81. package/docs/api/analytics.md +2095 -0
  82. package/docs/api/apiKeys.d.ts +252 -0
  83. package/docs/api/apiKeys.md +318 -0
  84. package/docs/api/appDeployments.d.ts +236 -0
  85. package/docs/api/appDeployments.md +471 -0
  86. package/docs/api/appDomains.d.ts +171 -0
  87. package/docs/api/appDomains.md +281 -0
  88. package/docs/api/appLogs.d.ts +120 -0
  89. package/docs/api/appLogs.md +159 -0
  90. package/docs/api/appObjects.d.ts +415 -0
  91. package/docs/api/appObjects.md +568 -0
  92. package/docs/api/appPages.d.ts +557 -0
  93. package/docs/api/appPages.md +796 -0
  94. package/docs/api/appPlatformTokens.d.ts +123 -0
  95. package/docs/api/appPlatformTokens.md +172 -0
  96. package/docs/api/appointments.d.ts +2361 -0
  97. package/docs/api/appointments.md +3917 -0
  98. package/docs/api/apps.d.ts +822 -0
  99. package/docs/api/apps.md +1342 -0
  100. package/docs/api/assertUpsert.d.ts +286 -0
  101. package/docs/api/assertUpsert.md +370 -0
  102. package/docs/api/audienceSyncs.d.ts +259 -0
  103. package/docs/api/audienceSyncs.md +395 -0
  104. package/docs/api/brandKit.d.ts +686 -0
  105. package/docs/api/brandKit.md +1133 -0
  106. package/docs/api/bugReports.d.ts +181 -0
  107. package/docs/api/bugReports.md +268 -0
  108. package/docs/api/by-path.md +3260 -0
  109. package/docs/api/calendarInvites.d.ts +117 -0
  110. package/docs/api/calendarInvites.md +148 -0
  111. package/docs/api/campaignWorkflows.d.ts +152 -0
  112. package/docs/api/campaignWorkflows.md +200 -0
  113. package/docs/api/campaigns.d.ts +721 -0
  114. package/docs/api/campaigns.md +1236 -0
  115. package/docs/api/channels.d.ts +171 -0
  116. package/docs/api/channels.md +235 -0
  117. package/docs/api/cliCampaigns.d.ts +205 -0
  118. package/docs/api/cliCampaigns.md +256 -0
  119. package/docs/api/cliPipelines.d.ts +324 -0
  120. package/docs/api/cliPipelines.md +562 -0
  121. package/docs/api/clickHouse.d.ts +115 -0
  122. package/docs/api/clickHouse.md +138 -0
  123. package/docs/api/companies.d.ts +1636 -0
  124. package/docs/api/companies.md +2211 -0
  125. package/docs/api/companyIntelligence.d.ts +299 -0
  126. package/docs/api/companyIntelligence.md +488 -0
  127. package/docs/api/contacts.d.ts +2173 -0
  128. package/docs/api/contacts.md +3143 -0
  129. package/docs/api/content.d.ts +968 -0
  130. package/docs/api/content.md +1667 -0
  131. package/docs/api/contentGridSkills.d.ts +177 -0
  132. package/docs/api/contentGridSkills.md +271 -0
  133. package/docs/api/copilot.d.ts +1017 -0
  134. package/docs/api/copilot.md +1765 -0
  135. package/docs/api/crmSyncs.d.ts +215 -0
  136. package/docs/api/crmSyncs.md +301 -0
  137. package/docs/api/customerSuccess.d.ts +491 -0
  138. package/docs/api/customerSuccess.md +776 -0
  139. package/docs/api/deals.d.ts +1696 -0
  140. package/docs/api/deals.md +2432 -0
  141. package/docs/api/deliverability.d.ts +418 -0
  142. package/docs/api/deliverability.md +677 -0
  143. package/docs/api/desk.d.ts +1765 -0
  144. package/docs/api/desk.md +3007 -0
  145. package/docs/api/dialer.d.ts +1185 -0
  146. package/docs/api/dialer.md +2166 -0
  147. package/docs/api/dialerAnalytics.d.ts +187 -0
  148. package/docs/api/dialerAnalytics.md +257 -0
  149. package/docs/api/documents.d.ts +895 -0
  150. package/docs/api/documents.md +1440 -0
  151. package/docs/api/duplicates.d.ts +195 -0
  152. package/docs/api/duplicates.md +315 -0
  153. package/docs/api/eSign.d.ts +38 -0
  154. package/docs/api/eSign.md +54 -0
  155. package/docs/api/eSignature.d.ts +242 -0
  156. package/docs/api/eSignature.md +341 -0
  157. package/docs/api/enrichment.d.ts +3207 -0
  158. package/docs/api/enrichment.md +5225 -0
  159. package/docs/api/events.d.ts +115 -0
  160. package/docs/api/events.md +105 -0
  161. package/docs/api/fields.d.ts +482 -0
  162. package/docs/api/fields.md +566 -0
  163. package/docs/api/forms.d.ts +1012 -0
  164. package/docs/api/forms.md +1542 -0
  165. package/docs/api/gtmCampaigns.d.ts +662 -0
  166. package/docs/api/gtmCampaigns.md +1044 -0
  167. package/docs/api/gtmContext.d.ts +1187 -0
  168. package/docs/api/gtmContext.md +2112 -0
  169. package/docs/api/gtmDeliverability.d.ts +60 -0
  170. package/docs/api/gtmDeliverability.md +63 -0
  171. package/docs/api/gtmKnowledgeBase.d.ts +76 -0
  172. package/docs/api/gtmKnowledgeBase.md +91 -0
  173. package/docs/api/gtmLaunchHelpers.d.ts +123 -0
  174. package/docs/api/gtmLaunchHelpers.md +148 -0
  175. package/docs/api/gtmLibrary.d.ts +448 -0
  176. package/docs/api/gtmLibrary.md +780 -0
  177. package/docs/api/health.d.ts +39 -0
  178. package/docs/api/health.md +58 -0
  179. package/docs/api/imageLibrary.d.ts +341 -0
  180. package/docs/api/imageLibrary.md +569 -0
  181. package/docs/api/imports.d.ts +157 -0
  182. package/docs/api/imports.md +174 -0
  183. package/docs/api/inbox.d.ts +709 -0
  184. package/docs/api/inbox.md +1067 -0
  185. package/docs/api/install.d.ts +213 -0
  186. package/docs/api/install.md +317 -0
  187. package/docs/api/installedApps.d.ts +131 -0
  188. package/docs/api/installedApps.md +241 -0
  189. package/docs/api/integrationStatus.d.ts +142 -0
  190. package/docs/api/integrationStatus.md +205 -0
  191. package/docs/api/integrations.d.ts +2327 -0
  192. package/docs/api/integrations.md +3791 -0
  193. package/docs/api/intent.d.ts +482 -0
  194. package/docs/api/intent.md +858 -0
  195. package/docs/api/knowledge.d.ts +501 -0
  196. package/docs/api/knowledge.md +843 -0
  197. package/docs/api/knowledgeBase.d.ts +84 -0
  198. package/docs/api/knowledgeBase.md +96 -0
  199. package/docs/api/landingPages.d.ts +1411 -0
  200. package/docs/api/landingPages.md +2488 -0
  201. package/docs/api/leads.d.ts +133 -0
  202. package/docs/api/leads.md +180 -0
  203. package/docs/api/library.d.ts +217 -0
  204. package/docs/api/library.md +338 -0
  205. package/docs/api/linkedIn.d.ts +227 -0
  206. package/docs/api/linkedIn.md +289 -0
  207. package/docs/api/linkedInOutreach.d.ts +727 -0
  208. package/docs/api/linkedInOutreach.md +990 -0
  209. package/docs/api/lists.d.ts +1106 -0
  210. package/docs/api/lists.md +1609 -0
  211. package/docs/api/logs.d.ts +71 -0
  212. package/docs/api/logs.md +70 -0
  213. package/docs/api/mailboxes.d.ts +1050 -0
  214. package/docs/api/mailboxes.md +1690 -0
  215. package/docs/api/marketingIntelligence.d.ts +256 -0
  216. package/docs/api/marketingIntelligence.md +454 -0
  217. package/docs/api/marketplace.d.ts +3173 -0
  218. package/docs/api/marketplace.md +5953 -0
  219. package/docs/api/mcp.d.ts +69 -0
  220. package/docs/api/mcp.md +69 -0
  221. package/docs/api/me.d.ts +54 -0
  222. package/docs/api/me.md +56 -0
  223. package/docs/api/meetings.d.ts +539 -0
  224. package/docs/api/meetings.md +747 -0
  225. package/docs/api/newsletter.d.ts +1613 -0
  226. package/docs/api/newsletter.md +2746 -0
  227. package/docs/api/notes.d.ts +517 -0
  228. package/docs/api/notes.md +888 -0
  229. package/docs/api/notifications.d.ts +94 -0
  230. package/docs/api/notifications.md +105 -0
  231. package/docs/api/objects.d.ts +621 -0
  232. package/docs/api/objects.md +1098 -0
  233. package/docs/api/openSearch.d.ts +234 -0
  234. package/docs/api/openSearch.md +297 -0
  235. package/docs/api/ops.d.ts +299 -0
  236. package/docs/api/ops.md +339 -0
  237. package/docs/api/orgGovernance.d.ts +393 -0
  238. package/docs/api/orgGovernance.md +623 -0
  239. package/docs/api/orgVideos.d.ts +184 -0
  240. package/docs/api/orgVideos.md +252 -0
  241. package/docs/api/organizationSettings.d.ts +626 -0
  242. package/docs/api/organizationSettings.md +911 -0
  243. package/docs/api/phoneNumbers.d.ts +484 -0
  244. package/docs/api/phoneNumbers.md +777 -0
  245. package/docs/api/profile.d.ts +329 -0
  246. package/docs/api/profile.md +540 -0
  247. package/docs/api/programmaticPages.d.ts +400 -0
  248. package/docs/api/programmaticPages.md +626 -0
  249. package/docs/api/providerDomains.d.ts +866 -0
  250. package/docs/api/providerDomains.md +1446 -0
  251. package/docs/api/providerUsage.d.ts +129 -0
  252. package/docs/api/providerUsage.md +186 -0
  253. package/docs/api/public.d.ts +69 -0
  254. package/docs/api/public.md +78 -0
  255. package/docs/api/publicCopilot.d.ts +67 -0
  256. package/docs/api/publicCopilot.md +80 -0
  257. package/docs/api/publicSignals.d.ts +66 -0
  258. package/docs/api/publicSignals.md +71 -0
  259. package/docs/api/publicVisitors.d.ts +97 -0
  260. package/docs/api/publicVisitors.md +118 -0
  261. package/docs/api/quotes.d.ts +1564 -0
  262. package/docs/api/quotes.md +2553 -0
  263. package/docs/api/radar.d.ts +808 -0
  264. package/docs/api/radar.md +1431 -0
  265. package/docs/api/radarReports.d.ts +208 -0
  266. package/docs/api/radarReports.md +306 -0
  267. package/docs/api/recordRoles.d.ts +143 -0
  268. package/docs/api/recordRoles.md +175 -0
  269. package/docs/api/repos.d.ts +146 -0
  270. package/docs/api/repos.md +211 -0
  271. package/docs/api/research.d.ts +295 -0
  272. package/docs/api/research.md +534 -0
  273. package/docs/api/revenue.d.ts +402 -0
  274. package/docs/api/revenue.md +608 -0
  275. package/docs/api/revenueAnalytics.d.ts +147 -0
  276. package/docs/api/revenueAnalytics.md +212 -0
  277. package/docs/api/revenueLifecycle.d.ts +207 -0
  278. package/docs/api/revenueLifecycle.md +274 -0
  279. package/docs/api/revenueRecords.d.ts +372 -0
  280. package/docs/api/revenueRecords.md +563 -0
  281. package/docs/api/roles.d.ts +431 -0
  282. package/docs/api/roles.md +812 -0
  283. package/docs/api/salesCoach.d.ts +877 -0
  284. package/docs/api/salesCoach.md +1540 -0
  285. package/docs/api/sandbox.d.ts +210 -0
  286. package/docs/api/sandbox.md +380 -0
  287. package/docs/api/scans.d.ts +104 -0
  288. package/docs/api/scans.md +136 -0
  289. package/docs/api/scheduleBuy.d.ts +293 -0
  290. package/docs/api/scheduleBuy.md +431 -0
  291. package/docs/api/scraping.d.ts +266 -0
  292. package/docs/api/scraping.md +383 -0
  293. package/docs/api/sdrAnalytics.d.ts +138 -0
  294. package/docs/api/sdrAnalytics.md +246 -0
  295. package/docs/api/search.d.ts +598 -0
  296. package/docs/api/search.md +866 -0
  297. package/docs/api/seo.d.ts +447 -0
  298. package/docs/api/seo.md +660 -0
  299. package/docs/api/sequenceLifecycle.d.ts +439 -0
  300. package/docs/api/sequenceLifecycle.md +513 -0
  301. package/docs/api/sequences.d.ts +1936 -0
  302. package/docs/api/sequences.md +3232 -0
  303. package/docs/api/settings.d.ts +448 -0
  304. package/docs/api/settings.md +731 -0
  305. package/docs/api/signals.d.ts +1441 -0
  306. package/docs/api/signals.md +2526 -0
  307. package/docs/api/signatures.d.ts +719 -0
  308. package/docs/api/signatures.md +1247 -0
  309. package/docs/api/skills.d.ts +230 -0
  310. package/docs/api/skills.md +466 -0
  311. package/docs/api/snippet.d.ts +85 -0
  312. package/docs/api/snippet.md +106 -0
  313. package/docs/api/socialPublishing.d.ts +824 -0
  314. package/docs/api/socialPublishing.md +1245 -0
  315. package/docs/api/studioDocuments.d.ts +244 -0
  316. package/docs/api/studioDocuments.md +348 -0
  317. package/docs/api/support.d.ts +90 -0
  318. package/docs/api/support.md +76 -0
  319. package/docs/api/suppressions.d.ts +241 -0
  320. package/docs/api/suppressions.md +343 -0
  321. package/docs/api/surveys.d.ts +847 -0
  322. package/docs/api/surveys.md +1223 -0
  323. package/docs/api/tasks.d.ts +813 -0
  324. package/docs/api/tasks.md +1344 -0
  325. package/docs/api/teamMembers.d.ts +668 -0
  326. package/docs/api/teamMembers.md +1040 -0
  327. package/docs/api/teams.d.ts +784 -0
  328. package/docs/api/teams.md +1395 -0
  329. package/docs/api/usage.d.ts +277 -0
  330. package/docs/api/usage.md +389 -0
  331. package/docs/api/visitors.d.ts +690 -0
  332. package/docs/api/visitors.md +1075 -0
  333. package/docs/api/voice.d.ts +4661 -0
  334. package/docs/api/voice.md +7905 -0
  335. package/docs/api/webAnalytics.d.ts +964 -0
  336. package/docs/api/webAnalytics.md +1452 -0
  337. package/docs/api/webChat.d.ts +1704 -0
  338. package/docs/api/webChat.md +2048 -0
  339. package/docs/api/webhooks.d.ts +251 -0
  340. package/docs/api/webhooks.md +386 -0
  341. package/docs/api/websiteEditor.d.ts +324 -0
  342. package/docs/api/websiteEditor.md +517 -0
  343. package/docs/api/work.d.ts +2298 -0
  344. package/docs/api/work.md +3096 -0
  345. package/docs/api/workbench.d.ts +2962 -0
  346. package/docs/api/workbench.md +4884 -0
  347. package/docs/api/workflows.d.ts +1218 -0
  348. package/docs/api/workflows.md +2302 -0
  349. package/docs/sdk-clients.md +4339 -0
  350. package/package.json +10 -3
@@ -0,0 +1,1106 @@
1
+ /* Generated by sdk/js/scripts/generate-agent-docs.ts from developer-contract/openapi.json. Regenerated on every build. */
2
+
3
+ /**
4
+ * Types for `g8.api.lists` (Lists): 36 operations.
5
+ *
6
+ * For reading. In code, import from the package instead:
7
+ * import type { ApiInput, ApiOutput, G8Contract } from "@graph8/sdk";
8
+ * type In = ApiInput<"add_contacts_to_list_lists__list_id__contacts_post">;
9
+ *
10
+ * Reference with examples: lists.md
11
+ */
12
+ /* eslint-disable */
13
+
14
+ /** `g8.api.lists.<member>` -> the operationId it calls. */
15
+ export interface ListsMembers {
16
+ addContactsToList: "add_contacts_to_list_lists__list_id__contacts_post";
17
+ addDealsToList: "add_deals_to_list_lists__audience_id__deals_post";
18
+ assignListToFolder: "assign_list_to_folder_lists_folders_assignments__audience_id__put";
19
+ assignListsToFolder: "assign_lists_to_folder_lists_folders_assignments_put";
20
+ checkListIntegrity: "check_list_integrity_lists__list_id__integrity_check_post";
21
+ createEmptyList: "create_empty_list_lists_create_empty_post";
22
+ createList: "create_list_lists_post";
23
+ createListFolder: "create_list_folder_lists_folders_post";
24
+ createMasterList: "create_master_list_lists_masters_post";
25
+ deleteCompaniesFromList: "delete_companies_from_list_lists__audience_id__companies_delete";
26
+ deleteLeadsFromList: "delete_leads_from_list_lists__audience_id__leads_delete";
27
+ deleteList: "delete_list_lists__list_id__delete";
28
+ deleteListFolder: "delete_list_folder_lists_folders__folder_id__delete";
29
+ deleteSuppressionsFromList: "delete_suppressions_from_list_lists__audience_id__suppressions_delete";
30
+ downloadList: "download_list_lists__audience_id__download_get";
31
+ generateTrackedLinks: "generate_tracked_links_lists__audience_id__generate_tracked_links_post";
32
+ getListColumnCapabilities: "get_list_column_capabilities_lists__audience_id__column_capabilities_get";
33
+ getListContacts: "get_list_contacts_lists__list_id__contacts_get";
34
+ getListKeywordLinks: "get_list_keyword_links_lists__audience_id__keyword_links_get";
35
+ getListPerformance: "get_list_performance_lists_performance_get";
36
+ getTrackedLinkColumns: "get_tracked_link_columns_lists__audience_id__tracked_links_columns_get";
37
+ listDataColumns: "list_data_columns_lists__list_id__data_columns_get";
38
+ listListFolders: "list_list_folders_lists_folders_get";
39
+ listLists: "list_lists_lists_get";
40
+ listMasterLists: "list_master_lists_lists_masters_get";
41
+ patchDynamicValue: "patch_dynamic_value_lists__audience_id__dynamic_value_patch";
42
+ previewListOwnerTransfer: "preview_list_owner_transfer_lists__audience_id__owner_preview_get";
43
+ reassignListOwner: "reassign_list_owner_lists__audience_id__owner_patch";
44
+ recordListOpened: "record_list_opened_lists_folders_activity__audience_id__post";
45
+ refreshDynamicList: "refresh_dynamic_list_lists__audience_id__refresh_post";
46
+ refreshMasterListNow: "refresh_master_list_now_lists__audience_id__master_refresh_post";
47
+ removeContactsFromList: "remove_contacts_from_list_lists__list_id__contacts_delete";
48
+ starList: "star_list_lists_folders_stars__audience_id__put";
49
+ updateList: "update_list_lists__list_id__patch";
50
+ updateListFolder: "update_list_folder_lists_folders__folder_id__patch";
51
+ updateMasterListConfig: "update_master_list_config_lists__audience_id__master_config_patch";
52
+ }
53
+
54
+ /** Input and output of every `g8.api.lists` operation, keyed by operationId. */
55
+ export interface ListsOperations {
56
+ /**
57
+ * POST /lists/{list_id}/contacts
58
+ * Add Contacts To List
59
+ * tier: write · scope: lists:write
60
+ */
61
+ add_contacts_to_list_lists__list_id__contacts_post: {
62
+ input: {
63
+ path: {
64
+ /** List ID */
65
+ list_id: number;
66
+ };
67
+ headers?: {
68
+ "X-Target-Org-Id"?: string | null;
69
+ };
70
+ body: AddContactsToListRequest;
71
+ };
72
+ output: ApiResponse_dict_;
73
+ };
74
+ /**
75
+ * POST /lists/{audience_id}/deals
76
+ * Add Deals To List
77
+ * tier: write · scope: lists:write
78
+ */
79
+ add_deals_to_list_lists__audience_id__deals_post: {
80
+ input: {
81
+ path: {
82
+ /** List (audience) id. */
83
+ audience_id: number;
84
+ };
85
+ headers?: {
86
+ "X-Target-Org-Id"?: string | null;
87
+ };
88
+ body: AddDealsToListRequest;
89
+ };
90
+ output: ApiResponse_ListPayload_;
91
+ };
92
+ /**
93
+ * PUT /lists/folders/assignments/{audience_id}
94
+ * Assign List To Folder
95
+ * tier: write · scope: lists:write
96
+ */
97
+ assign_list_to_folder_lists_folders_assignments__audience_id__put: {
98
+ input: {
99
+ path: {
100
+ audience_id: number;
101
+ };
102
+ headers?: {
103
+ "X-Target-Org-Id"?: string | null;
104
+ };
105
+ body: ListFolderAssignRequest;
106
+ };
107
+ output: void;
108
+ };
109
+ /**
110
+ * PUT /lists/folders/assignments
111
+ * Assign Lists To Folder
112
+ * tier: write · scope: lists:write
113
+ */
114
+ assign_lists_to_folder_lists_folders_assignments_put: {
115
+ input: {
116
+ headers?: {
117
+ "X-Target-Org-Id"?: string | null;
118
+ };
119
+ body: ListFolderBulkAssignRequest;
120
+ };
121
+ output: void;
122
+ };
123
+ /**
124
+ * POST /lists/{list_id}/integrity-check
125
+ * Check List Integrity
126
+ * tier: read · scope: lists:read
127
+ */
128
+ check_list_integrity_lists__list_id__integrity_check_post: {
129
+ input: {
130
+ path: {
131
+ /** List (audience) id. */
132
+ list_id: number;
133
+ };
134
+ headers?: {
135
+ "X-Target-Org-Id"?: string | null;
136
+ };
137
+ body?: IntegrityCheckRequest;
138
+ };
139
+ output: ApiResponse_SequencerPayload_;
140
+ };
141
+ /**
142
+ * POST /lists/create-empty
143
+ * Create Empty List
144
+ * tier: write · scope: lists:write
145
+ */
146
+ create_empty_list_lists_create_empty_post: {
147
+ input: {
148
+ headers?: {
149
+ "X-Target-Org-Id"?: string | null;
150
+ };
151
+ body: CreateEmptyListRequest;
152
+ };
153
+ output: ApiResponse_ListPayload_;
154
+ };
155
+ /**
156
+ * POST /lists
157
+ * Create List
158
+ * tier: write · scope: lists:write
159
+ */
160
+ create_list_lists_post: {
161
+ input: {
162
+ headers?: {
163
+ "X-Target-Org-Id"?: string | null;
164
+ };
165
+ body: ListCreateRequest;
166
+ };
167
+ output: ApiResponse_ListCreateResponse_;
168
+ };
169
+ /**
170
+ * POST /lists/folders
171
+ * Create List Folder
172
+ * tier: write · scope: lists:write
173
+ */
174
+ create_list_folder_lists_folders_post: {
175
+ input: {
176
+ headers?: {
177
+ "X-Target-Org-Id"?: string | null;
178
+ };
179
+ body: ListFolderCreateRequest;
180
+ };
181
+ output: ApiResponse_ListFolderResponse_;
182
+ };
183
+ /**
184
+ * POST /lists/masters
185
+ * Create Master List
186
+ * tier: write · scope: lists:write
187
+ */
188
+ create_master_list_lists_masters_post: {
189
+ input: {
190
+ headers?: {
191
+ "X-Target-Org-Id"?: string | null;
192
+ };
193
+ body: CreateMasterListRequest;
194
+ };
195
+ output: ApiResponse_ListPayload_;
196
+ };
197
+ /**
198
+ * DELETE /lists/{audience_id}/companies
199
+ * Delete Companies From List
200
+ * tier: destructive · scope: lists:delete
201
+ */
202
+ delete_companies_from_list_lists__audience_id__companies_delete: {
203
+ input: {
204
+ path: {
205
+ /** List (audience) id. */
206
+ audience_id: number;
207
+ };
208
+ query?: {
209
+ /** AgGrid filter JSON. Every company in the list matching it is removed, IN ADDITION to `company_ids` - the two combine rather than the filter narrowing the ids. */
210
+ agFilterModel?: string | null;
211
+ };
212
+ headers?: {
213
+ "X-Target-Org-Id"?: string | null;
214
+ };
215
+ body: DeleteCompaniesFromListRequest;
216
+ };
217
+ output: ApiResponse_ListPayload_;
218
+ };
219
+ /**
220
+ * DELETE /lists/{audience_id}/leads
221
+ * Delete Leads From List
222
+ * tier: destructive · scope: lists:delete
223
+ */
224
+ delete_leads_from_list_lists__audience_id__leads_delete: {
225
+ input: {
226
+ path: {
227
+ /** List (audience) id. */
228
+ audience_id: number;
229
+ };
230
+ headers?: {
231
+ "X-Target-Org-Id"?: string | null;
232
+ };
233
+ body: DeleteLeadsFromListRequest;
234
+ };
235
+ output: ApiResponse_ListPayload_;
236
+ };
237
+ /**
238
+ * DELETE /lists/{list_id}
239
+ * Delete List
240
+ * tier: destructive · scope: lists:delete
241
+ */
242
+ delete_list_lists__list_id__delete: {
243
+ input: {
244
+ path: {
245
+ /** List ID */
246
+ list_id: number;
247
+ };
248
+ headers?: {
249
+ "X-Target-Org-Id"?: string | null;
250
+ };
251
+ };
252
+ output: ApiResponse_dict_;
253
+ };
254
+ /**
255
+ * DELETE /lists/folders/{folder_id}
256
+ * Delete List Folder
257
+ * tier: destructive · scope: lists:delete
258
+ */
259
+ delete_list_folder_lists_folders__folder_id__delete: {
260
+ input: {
261
+ path: {
262
+ /** Folder id. */
263
+ folder_id: string;
264
+ };
265
+ headers?: {
266
+ "X-Target-Org-Id"?: string | null;
267
+ };
268
+ };
269
+ output: void;
270
+ };
271
+ /**
272
+ * DELETE /lists/{audience_id}/suppressions
273
+ * Delete Suppressions From List
274
+ * tier: destructive · scope: lists:delete
275
+ */
276
+ delete_suppressions_from_list_lists__audience_id__suppressions_delete: {
277
+ input: {
278
+ path: {
279
+ /** List (audience) id. */
280
+ audience_id: number;
281
+ };
282
+ headers?: {
283
+ "X-Target-Org-Id"?: string | null;
284
+ };
285
+ body: DeleteSuppressionsFromListRequest;
286
+ };
287
+ output: ApiResponse_ListPayload_;
288
+ };
289
+ /**
290
+ * GET /lists/{audience_id}/download
291
+ * Download List
292
+ * tier: read · scope: lists:read
293
+ */
294
+ download_list_lists__audience_id__download_get: {
295
+ input: {
296
+ path: {
297
+ audience_id: number;
298
+ };
299
+ query?: {
300
+ /** `csv` or `xlsx`. */
301
+ format?: "csv" | "xlsx";
302
+ /** Only these columns. Omit for every column. LinkedIn profile URLs are always kept, as in the app. */
303
+ columns?: Array<string> | null;
304
+ };
305
+ headers?: {
306
+ "X-Target-Org-Id"?: string | null;
307
+ };
308
+ };
309
+ output: ApiResponse_ListDownloadPayload_;
310
+ };
311
+ /**
312
+ * POST /lists/{audience_id}/generate-tracked-links
313
+ * Generate Tracked Links
314
+ * tier: write · scope: lists:write
315
+ */
316
+ generate_tracked_links_lists__audience_id__generate_tracked_links_post: {
317
+ input: {
318
+ path: {
319
+ /** List (audience) id. */
320
+ audience_id: number;
321
+ };
322
+ headers?: {
323
+ "X-Target-Org-Id"?: string | null;
324
+ };
325
+ body: GenerateTrackedLinksRequest;
326
+ };
327
+ output: ApiResponse_ListPayload_;
328
+ };
329
+ /**
330
+ * GET /lists/{audience_id}/column-capabilities
331
+ * Get List Column Capabilities
332
+ * tier: read · scope: lists:read
333
+ */
334
+ get_list_column_capabilities_lists__audience_id__column_capabilities_get: {
335
+ input: {
336
+ path: {
337
+ /** List (audience) id. */
338
+ audience_id: number;
339
+ };
340
+ query: {
341
+ /** Which grid's columns: contacts or companies. */
342
+ object_type: "mashup_contacts" | "mashup_companies";
343
+ };
344
+ headers?: {
345
+ "X-Target-Org-Id"?: string | null;
346
+ };
347
+ };
348
+ output: ApiResponse_ListPayload_;
349
+ };
350
+ /**
351
+ * GET /lists/{list_id}/contacts
352
+ * Get List Contacts
353
+ * tier: read · scope: lists:read
354
+ */
355
+ get_list_contacts_lists__list_id__contacts_get: {
356
+ input: {
357
+ path: {
358
+ /** List ID */
359
+ list_id: number;
360
+ };
361
+ query?: {
362
+ /** Page number (1-indexed) */
363
+ page?: number;
364
+ /** Items per page (max 200) */
365
+ limit?: number;
366
+ };
367
+ headers?: {
368
+ "X-Target-Org-Id"?: string | null;
369
+ };
370
+ };
371
+ output: ApiResponse_list_ContactListItem__;
372
+ };
373
+ /**
374
+ * GET /lists/{audience_id}/keyword-links
375
+ * Get List Keyword Links
376
+ * tier: read · scope: lists:read
377
+ */
378
+ get_list_keyword_links_lists__audience_id__keyword_links_get: {
379
+ input: {
380
+ path: {
381
+ /** List (audience) id. */
382
+ audience_id: number;
383
+ };
384
+ headers?: {
385
+ "X-Target-Org-Id"?: string | null;
386
+ };
387
+ };
388
+ output: ApiResponse_ListCollectionPayload_;
389
+ };
390
+ /**
391
+ * GET /lists/performance
392
+ * Get List Performance
393
+ * tier: read · scope: lists:read
394
+ */
395
+ get_list_performance_lists_performance_get: {
396
+ input: {
397
+ query?: {
398
+ /** Filter to a single list. Omit for all lists. */
399
+ list_id?: number | null;
400
+ /** Restrict sends/events to the last N days. Omit for all-time. Ignored when start_date and end_date are both supplied. */
401
+ days?: number | null;
402
+ /** Inclusive start of an anchored range, `YYYY-MM-DD`. Requires end_date. */
403
+ start_date?: string | null;
404
+ /** Inclusive end of an anchored range, `YYYY-MM-DD`. */
405
+ end_date?: string | null;
406
+ };
407
+ headers?: {
408
+ "X-Target-Org-Id"?: string | null;
409
+ };
410
+ };
411
+ output: ApiResponse_ListPerformanceResponse_;
412
+ };
413
+ /**
414
+ * GET /lists/{audience_id}/tracked-links/columns
415
+ * Get Tracked Link Columns
416
+ * tier: read · scope: lists:read
417
+ */
418
+ get_tracked_link_columns_lists__audience_id__tracked_links_columns_get: {
419
+ input: {
420
+ path: {
421
+ /** List (audience) id. */
422
+ audience_id: number;
423
+ };
424
+ headers?: {
425
+ "X-Target-Org-Id"?: string | null;
426
+ };
427
+ };
428
+ output: ApiResponse_ListPayload_;
429
+ };
430
+ /**
431
+ * GET /lists/{list_id}/data-columns
432
+ * List Data Columns
433
+ * tier: read · scope: lists:read
434
+ */
435
+ list_data_columns_lists__list_id__data_columns_get: {
436
+ input: {
437
+ path: {
438
+ /** List (audience) id. */
439
+ list_id: number;
440
+ };
441
+ headers?: {
442
+ "X-Target-Org-Id"?: string | null;
443
+ };
444
+ };
445
+ output: ApiResponse_SequencerListPayload_;
446
+ };
447
+ /**
448
+ * GET /lists/folders
449
+ * List List Folders
450
+ * tier: read · scope: lists:read
451
+ */
452
+ list_list_folders_lists_folders_get: {
453
+ input: {
454
+ headers?: {
455
+ "X-Target-Org-Id"?: string | null;
456
+ };
457
+ };
458
+ output: ApiResponse_ListFolderIndexResponse_;
459
+ };
460
+ /**
461
+ * GET /lists
462
+ * List Lists
463
+ * tier: read · scope: lists:read
464
+ */
465
+ list_lists_lists_get: {
466
+ input: {
467
+ query?: {
468
+ /** Page number (1-indexed) */
469
+ page?: number;
470
+ /** Items per page (max 200) */
471
+ limit?: number;
472
+ };
473
+ headers?: {
474
+ "X-Target-Org-Id"?: string | null;
475
+ };
476
+ };
477
+ output: ApiResponse_list_ListResponse__;
478
+ };
479
+ /**
480
+ * GET /lists/masters
481
+ * List Master Lists
482
+ * tier: read · scope: lists:read
483
+ */
484
+ list_master_lists_lists_masters_get: {
485
+ input: {
486
+ headers?: {
487
+ "X-Target-Org-Id"?: string | null;
488
+ };
489
+ };
490
+ output: ApiResponse_ListCollectionPayload_;
491
+ };
492
+ /**
493
+ * PATCH /lists/{audience_id}/dynamic-value
494
+ * Patch Dynamic Value
495
+ * tier: write · scope: lists:write
496
+ */
497
+ patch_dynamic_value_lists__audience_id__dynamic_value_patch: {
498
+ input: {
499
+ path: {
500
+ /** List (audience) id. */
501
+ audience_id: number;
502
+ };
503
+ headers?: {
504
+ "X-Target-Org-Id"?: string | null;
505
+ };
506
+ body: PatchDynamicValueRequest;
507
+ };
508
+ output: ApiResponse_ListPayload_;
509
+ };
510
+ /**
511
+ * GET /lists/{audience_id}/owner/preview
512
+ * Preview List Owner Transfer
513
+ * tier: read · scope: lists:read
514
+ */
515
+ preview_list_owner_transfer_lists__audience_id__owner_preview_get: {
516
+ input: {
517
+ path: {
518
+ /** List (audience) id. */
519
+ audience_id: number;
520
+ };
521
+ query: {
522
+ /** Candidate owner's PropelAuth user id. */
523
+ new_owner_user_id: string;
524
+ };
525
+ headers?: {
526
+ "X-Target-Org-Id"?: string | null;
527
+ };
528
+ };
529
+ output: ApiResponse_ListPayload_;
530
+ };
531
+ /**
532
+ * PATCH /lists/{audience_id}/owner
533
+ * Reassign List Owner
534
+ * tier: write · scope: lists:write
535
+ */
536
+ reassign_list_owner_lists__audience_id__owner_patch: {
537
+ input: {
538
+ path: {
539
+ /** List (audience) id. */
540
+ audience_id: number;
541
+ };
542
+ headers?: {
543
+ "X-Target-Org-Id"?: string | null;
544
+ };
545
+ body: ReassignListOwnerRequest;
546
+ };
547
+ output: ApiResponse_ListPayload_;
548
+ };
549
+ /**
550
+ * POST /lists/folders/activity/{audience_id}
551
+ * Record List Opened
552
+ * tier: write · scope: lists:write
553
+ */
554
+ record_list_opened_lists_folders_activity__audience_id__post: {
555
+ input: {
556
+ path: {
557
+ /** The list (audience) id. */
558
+ audience_id: number;
559
+ };
560
+ headers?: {
561
+ "X-Target-Org-Id"?: string | null;
562
+ };
563
+ };
564
+ output: void;
565
+ };
566
+ /**
567
+ * POST /lists/{audience_id}/refresh
568
+ * Refresh Dynamic List
569
+ * tier: write · scope: lists:write
570
+ */
571
+ refresh_dynamic_list_lists__audience_id__refresh_post: {
572
+ input: {
573
+ path: {
574
+ /** List (audience) id. */
575
+ audience_id: number;
576
+ };
577
+ headers?: {
578
+ "X-Target-Org-Id"?: string | null;
579
+ };
580
+ };
581
+ output: ApiResponse_ListPayload_;
582
+ };
583
+ /**
584
+ * POST /lists/{audience_id}/master-refresh
585
+ * Refresh Master List Now
586
+ * tier: write · scope: lists:write
587
+ */
588
+ refresh_master_list_now_lists__audience_id__master_refresh_post: {
589
+ input: {
590
+ path: {
591
+ /** List (audience) id. */
592
+ audience_id: number;
593
+ };
594
+ headers?: {
595
+ "X-Target-Org-Id"?: string | null;
596
+ };
597
+ };
598
+ output: ApiResponse_ListPayload_;
599
+ };
600
+ /**
601
+ * DELETE /lists/{list_id}/contacts
602
+ * Remove Contacts From List
603
+ * tier: destructive · scope: lists:delete
604
+ */
605
+ remove_contacts_from_list_lists__list_id__contacts_delete: {
606
+ input: {
607
+ path: {
608
+ /** List ID */
609
+ list_id: number;
610
+ };
611
+ headers?: {
612
+ "X-Target-Org-Id"?: string | null;
613
+ };
614
+ body: RemoveContactsFromListRequest;
615
+ };
616
+ output: ApiResponse_dict_;
617
+ };
618
+ /**
619
+ * PUT /lists/folders/stars/{audience_id}
620
+ * Star List
621
+ * tier: write · scope: lists:write
622
+ */
623
+ star_list_lists_folders_stars__audience_id__put: {
624
+ input: {
625
+ path: {
626
+ /** The list (audience) id. */
627
+ audience_id: number;
628
+ };
629
+ headers?: {
630
+ "X-Target-Org-Id"?: string | null;
631
+ };
632
+ body: ListStarRequest;
633
+ };
634
+ output: void;
635
+ };
636
+ /**
637
+ * PATCH /lists/{list_id}
638
+ * Update List
639
+ * tier: write · scope: lists:write
640
+ */
641
+ update_list_lists__list_id__patch: {
642
+ input: {
643
+ path: {
644
+ /** List ID */
645
+ list_id: number;
646
+ };
647
+ headers?: {
648
+ "X-Target-Org-Id"?: string | null;
649
+ };
650
+ body: ListUpdateRequest;
651
+ };
652
+ output: ApiResponse_ListResponse_;
653
+ };
654
+ /**
655
+ * PATCH /lists/folders/{folder_id}
656
+ * Update List Folder
657
+ * tier: write · scope: lists:write
658
+ */
659
+ update_list_folder_lists_folders__folder_id__patch: {
660
+ input: {
661
+ path: {
662
+ /** Folder id. */
663
+ folder_id: string;
664
+ };
665
+ headers?: {
666
+ "X-Target-Org-Id"?: string | null;
667
+ };
668
+ body: ListFolderUpdateRequest;
669
+ };
670
+ output: ApiResponse_ListFolderResponse_;
671
+ };
672
+ /**
673
+ * PATCH /lists/{audience_id}/master-config
674
+ * Update Master List Config
675
+ * tier: write · scope: lists:write
676
+ */
677
+ update_master_list_config_lists__audience_id__master_config_patch: {
678
+ input: {
679
+ path: {
680
+ /** List (audience) id. */
681
+ audience_id: number;
682
+ };
683
+ headers?: {
684
+ "X-Target-Org-Id"?: string | null;
685
+ };
686
+ body: UpdateMasterListConfigRequest;
687
+ };
688
+ output: ApiResponse_ListPayload_;
689
+ };
690
+ }
691
+
692
+ // 46 schemas referenced above (the same as G8Contract.<Name>).
693
+
694
+ /** Request body for adding contacts to a list. */
695
+ export interface AddContactsToListRequest {
696
+ /** Required on retry after a 409 CONFLICT_REVIEW_REQUIRED response: 'add_all' adds ready + every warned contact, 'skip_all' adds only ready contacts, 'custom' adds ready + the ids in include_warned_ids. Blocked contacts are always excluded regardless of this value. */
697
+ conflict_resolution?: ("add_all" | "skip_all" | "custom") | null;
698
+ /** List of contact IDs to add */
699
+ contact_ids: Array<number>;
700
+ /** With conflict_resolution='custom', the warned contact ids to also add. */
701
+ include_warned_ids?: Array<string> | null;
702
+ }
703
+
704
+ /**
705
+ * Put deals on a deals list.
706
+ *
707
+ * Deal ids are STRINGS here while contact, company, suppression and lead ids
708
+ * are integers. That is the app's own typing and it is mirrored rather than
709
+ * smoothed over: coercing would make a mistyped id a silent miss.
710
+ */
711
+ export interface AddDealsToListRequest {
712
+ /** Deal ids (strings, unlike the others). */
713
+ deal_ids: Array<string>;
714
+ /** Where the addition came from, for the audit trail. */
715
+ source?: string | null;
716
+ }
717
+
718
+ export interface ApiResponse_ListCollectionPayload_ {
719
+ data: ListCollectionPayload;
720
+ pagination?: PaginationMeta | null;
721
+ }
722
+
723
+ export interface ApiResponse_ListCreateResponse_ {
724
+ data: ListCreateResponse;
725
+ pagination?: PaginationMeta | null;
726
+ }
727
+
728
+ export interface ApiResponse_ListDownloadPayload_ {
729
+ data: ListDownloadPayload;
730
+ pagination?: PaginationMeta | null;
731
+ }
732
+
733
+ export interface ApiResponse_ListFolderIndexResponse_ {
734
+ data: ListFolderIndexResponse;
735
+ pagination?: PaginationMeta | null;
736
+ }
737
+
738
+ export interface ApiResponse_ListFolderResponse_ {
739
+ data: ListFolderResponse;
740
+ pagination?: PaginationMeta | null;
741
+ }
742
+
743
+ export interface ApiResponse_ListPayload_ {
744
+ data: ListPayload;
745
+ pagination?: PaginationMeta | null;
746
+ }
747
+
748
+ export interface ApiResponse_ListPerformanceResponse_ {
749
+ data: ListPerformanceResponse;
750
+ pagination?: PaginationMeta | null;
751
+ }
752
+
753
+ export interface ApiResponse_ListResponse_ {
754
+ data: ListResponse;
755
+ pagination?: PaginationMeta | null;
756
+ }
757
+
758
+ export interface ApiResponse_SequencerListPayload_ {
759
+ data: SequencerListPayload;
760
+ pagination?: PaginationMeta | null;
761
+ }
762
+
763
+ export interface ApiResponse_SequencerPayload_ {
764
+ data: SequencerPayload;
765
+ pagination?: PaginationMeta | null;
766
+ }
767
+
768
+ export interface ApiResponse_dict_ {
769
+ data: Record<string, unknown>;
770
+ pagination?: PaginationMeta | null;
771
+ }
772
+
773
+ export interface ApiResponse_list_ContactListItem__ {
774
+ data: Array<ContactListItem>;
775
+ pagination?: PaginationMeta | null;
776
+ }
777
+
778
+ export interface ApiResponse_list_ListResponse__ {
779
+ data: Array<ListResponse>;
780
+ pagination?: PaginationMeta | null;
781
+ }
782
+
783
+ /** Lighter contact representation for list endpoints. */
784
+ export interface ContactListItem {
785
+ city?: string | null;
786
+ company_id?: number | null;
787
+ country?: string | null;
788
+ custom_fields?: (Record<string, string | null>) | null;
789
+ direct_phone?: string | null;
790
+ first_name?: string | null;
791
+ id?: number | null;
792
+ job_department?: string | null;
793
+ job_title?: string | null;
794
+ last_name?: string | null;
795
+ linkedin_url?: string | null;
796
+ mobile_phone?: string | null;
797
+ owner_id?: string | null;
798
+ owner_name?: string | null;
799
+ seniority_level?: string | null;
800
+ state?: string | null;
801
+ work_email?: string | null;
802
+ }
803
+
804
+ /**
805
+ * Create a list with nothing in it, to fill later.
806
+ *
807
+ * `idempotency_key` is worth using: without one, a retried create makes a
808
+ * SECOND empty list, and a duplicate list is harder to notice than a failed
809
+ * request.
810
+ */
811
+ export interface CreateEmptyListRequest {
812
+ description?: string | null;
813
+ /** Retry-safe: the same key returns the same list. */
814
+ idempotency_key?: string | null;
815
+ /** A dynamic list re-runs its query; a static one keeps what it is given. */
816
+ is_dynamic?: boolean;
817
+ request_fingerprint?: string | null;
818
+ /** Where the list comes from, e.g. `csv`. */
819
+ source: "csv" | "graph8" | "FormSubmission" | "visitor" | "salesforce" | "hubspot" | "keyword" | "intent" | "workbench";
820
+ status?: "completed" | "processing" | "failed";
821
+ title: string;
822
+ /** What the list holds. The wire name is `type`; the app's field is `type_` because `type` is a Python builtin, and the alias keeps the wire name identical to the app's. */
823
+ type?: "contacts" | "companies" | "suppressions" | "deals" | "leads";
824
+ }
825
+
826
+ /** A list that is the UNION of other lists, kept in sync. */
827
+ export interface CreateMasterListRequest {
828
+ /** Take EVERY list of this type instead of the named ones, including ones created later. `source_list_ids` is then ignored. */
829
+ include_all_sources?: boolean;
830
+ /** The lists to union. */
831
+ source_list_ids?: Array<number>;
832
+ title: string;
833
+ /** Wire name is `type`; see `CreateEmptyListRequest`. */
834
+ type?: "contacts" | "companies" | "suppressions" | "deals" | "leads";
835
+ }
836
+
837
+ export interface DeleteCompaniesFromListRequest {
838
+ company_ids?: Array<number>;
839
+ }
840
+
841
+ export interface DeleteLeadsFromListRequest {
842
+ /** The leads to remove. */
843
+ lead_ids: Array<number>;
844
+ }
845
+
846
+ export interface DeleteSuppressionsFromListRequest {
847
+ /** The suppressions to remove. */
848
+ suppression_ids: Array<number>;
849
+ }
850
+
851
+ /** Mint one tracked URL per row, into a column on the list. */
852
+ export interface GenerateTrackedLinksRequest {
853
+ /** Column to write the links into. */
854
+ column_title?: string | null;
855
+ /** Absolute http(s) URL every link points at. */
856
+ destination_url: string;
857
+ /** What this set of links is called. */
858
+ link_name: string;
859
+ /** Query parameters to interpolate per row, e.g. {'utm_term': '{company}'}. */
860
+ params_template?: Record<string, string>;
861
+ /** Where the token goes on a NON-shortened URL: `fragment` (#t=…) or `query` (?g8t=…). Ignored when `shorten` is on. */
862
+ placement?: "fragment" | "query";
863
+ /** Use the short-link domain. */
864
+ shorten?: boolean;
865
+ stream_id?: string | null;
866
+ }
867
+
868
+ /** Which fields to measure. Mirrors the app's `IntegrityCheckRequest`. */
869
+ export interface IntegrityCheckRequest {
870
+ /** Enrichment / AI / dynamic columns to measure on top of the default fields - the `column_name_db` values from `GET /lists/{list_id}/data-columns`. */
871
+ extra_fields?: Array<string> | null;
872
+ }
873
+
874
+ /** An open envelope for a LIST result, so a bare list keeps its shape. */
875
+ export interface ListCollectionPayload {
876
+ items?: Array<unknown>;
877
+ [key: string]: unknown;
878
+ }
879
+
880
+ /** Request body for creating a new list. */
881
+ export interface ListCreateRequest {
882
+ /** Optional note describing the list's purpose, readable by agents (#16641) */
883
+ description?: string | null;
884
+ /** Name of the list */
885
+ title: string;
886
+ /** List type: contacts, companies, suppressions, deals, leads */
887
+ type?: string;
888
+ }
889
+
890
+ export interface ListCreateResponse {
891
+ description?: string | null;
892
+ id: number;
893
+ status?: string | null;
894
+ title: string;
895
+ total?: number;
896
+ type?: string | null;
897
+ }
898
+
899
+ /**
900
+ * A list's rows as a file, inside the JSON envelope.
901
+ *
902
+ * CSV comes back as text (`encoding: "utf-8"`). XLSX is binary, so it comes
903
+ * back base64-encoded (`encoding: "base64"`); decode it to get the workbook.
904
+ */
905
+ export interface ListDownloadPayload {
906
+ content: string;
907
+ encoding: "utf-8" | "base64";
908
+ filename: string;
909
+ format: "csv" | "xlsx";
910
+ media_type: string;
911
+ }
912
+
913
+ /** File one list into a folder. */
914
+ export interface ListFolderAssignRequest {
915
+ /** The folder. Null takes the list OUT of every folder. */
916
+ folder_id?: string | null;
917
+ }
918
+
919
+ /** File several lists into one folder. */
920
+ export interface ListFolderBulkAssignRequest {
921
+ /** The lists to move, 1 to 500. */
922
+ audience_ids: Array<number>;
923
+ /** The folder. Null takes the list OUT of every folder. */
924
+ folder_id?: string | null;
925
+ }
926
+
927
+ export interface ListFolderCreateRequest {
928
+ /** Folder title. */
929
+ title: string;
930
+ /** Defaults to `private` when omitted. */
931
+ visibility?: ("private" | "org") | null;
932
+ }
933
+
934
+ /**
935
+ * Folders the caller owns, plus org-visible folders owned by teammates.
936
+ *
937
+ * `folders` keeps its existing meaning - "mine". `shared_folders` is
938
+ * browse-only, mirroring the app so a rebuilt UI can render the same split.
939
+ */
940
+ export interface ListFolderIndexResponse {
941
+ /** Map of list id -> folder id for every filed list. */
942
+ assignments?: Record<string, string>;
943
+ folders?: Array<ListFolderResponse>;
944
+ shared_folders?: Array<ListFolderResponse>;
945
+ /** List ids the caller has starred. */
946
+ starred_ids?: Array<number>;
947
+ }
948
+
949
+ /** A folder a developer can group lists into. */
950
+ export interface ListFolderResponse {
951
+ created_at?: string | null;
952
+ /** User id that created the folder. */
953
+ created_by: string;
954
+ /** Folder id. */
955
+ id: string;
956
+ /** True when the calling key's org owns the folder. */
957
+ is_owner: boolean;
958
+ /** Number of lists currently filed in this folder. */
959
+ list_count: number;
960
+ /** Display title. */
961
+ title: string;
962
+ updated_at?: string | null;
963
+ /** `private` (owner only) or `org` (browse-only for teammates). */
964
+ visibility: string;
965
+ }
966
+
967
+ /** Either field may be changed independently; omit a field to leave it. */
968
+ export interface ListFolderUpdateRequest {
969
+ title?: string | null;
970
+ visibility?: ("private" | "org") | null;
971
+ }
972
+
973
+ /**
974
+ * An open envelope for a list, a capability map or a job result.
975
+ *
976
+ * Open because several of these return the whole `Audience`, whose shape
977
+ * carries per-source metadata that differs between an uploaded file, a
978
+ * dynamic query and a master list - and grows with them.
979
+ */
980
+ export type ListPayload = Record<string, unknown>;
981
+
982
+ /** Per-list engagement counters. Fields mirror the app's own item. */
983
+ export interface ListPerformanceItem {
984
+ list_id?: number | null;
985
+ title?: string | null;
986
+ [key: string]: unknown;
987
+ }
988
+
989
+ export interface ListPerformanceResponse {
990
+ items?: Array<ListPerformanceItem>;
991
+ }
992
+
993
+ /** Audience/list representation for the public API. */
994
+ export interface ListResponse {
995
+ created_at?: string | null;
996
+ created_by?: string | null;
997
+ /** Agent/human-readable note describing the list's purpose (#16641) */
998
+ description?: string | null;
999
+ id: number;
1000
+ is_dynamic?: boolean;
1001
+ /** Source of the list */
1002
+ source?: string | null;
1003
+ status?: string | null;
1004
+ tags?: Array<string>;
1005
+ title: string;
1006
+ total?: number;
1007
+ /** List type (contacts, companies, suppressions, deals, leads) */
1008
+ type?: string | null;
1009
+ updated_at?: string | null;
1010
+ }
1011
+
1012
+ /** Star or unstar a list. */
1013
+ export interface ListStarRequest {
1014
+ /** True to star, false to unstar. */
1015
+ starred: boolean;
1016
+ }
1017
+
1018
+ /** Request body for updating an existing list's name and/or description. */
1019
+ export interface ListUpdateRequest {
1020
+ /** New purpose note for the list (#16641). Omit to leave the current description unchanged; send an empty string to clear it. */
1021
+ description?: string | null;
1022
+ /** New name for the list */
1023
+ title: string;
1024
+ }
1025
+
1026
+ export interface PaginationMeta {
1027
+ /** Whether there are more pages */
1028
+ has_next: boolean;
1029
+ /** Items per page */
1030
+ limit: number;
1031
+ /** Opaque cursor for the next page; null when there are no more items. Pass it back as the `cursor` query param to fetch the following page without computing page numbers. */
1032
+ next_cursor?: string | null;
1033
+ /** Current page number (1-indexed) */
1034
+ page: number;
1035
+ /** Total number of items */
1036
+ total: number;
1037
+ }
1038
+
1039
+ /**
1040
+ * Write one cell of a user-owned dynamic column.
1041
+ *
1042
+ * `expected_value` is an optimistic-concurrency check: send what you believe
1043
+ * is there and the write is refused if it has moved. Omit it and the write
1044
+ * wins unconditionally, which on a shared grid means overwriting a
1045
+ * colleague's edit without knowing.
1046
+ */
1047
+ export interface PatchDynamicValueRequest {
1048
+ /** Dynamic column key, e.g. `udo_notes`. */
1049
+ column_key: string;
1050
+ /** Refuse the write unless the cell still holds this. Omit to force. */
1051
+ expected_value?: unknown | null;
1052
+ object_type: "mashup_contacts" | "mashup_companies";
1053
+ /** Grid row id. */
1054
+ record_id: number;
1055
+ /** New value. Null CLEARS the cell. */
1056
+ value?: unknown | null;
1057
+ }
1058
+
1059
+ /**
1060
+ * Hand a list to someone else.
1061
+ *
1062
+ * `mode` decides how far the transfer reaches, and the difference is not
1063
+ * cosmetic: `list_and_records` re-owns every CONTACT in the list as well,
1064
+ * which changes who can see them under record-level scoping. Preview it
1065
+ * first with `GET /lists/{id}/owner/preview`.
1066
+ */
1067
+ export interface ReassignListOwnerRequest {
1068
+ /** `list_only` moves just the list. `list_and_records` also re-owns every record in it, which can change who else can see them. */
1069
+ mode?: "list_only" | "list_and_records";
1070
+ /** Must agree with the user id - the app verifies both. Typed as an email at the request layer because the app's model is `EmailStr` and is built inside the handler: a malformed address would otherwise raise there and escape as a 500 rather than a 422. */
1071
+ owner_email: string;
1072
+ owner_user_id: string;
1073
+ }
1074
+
1075
+ /** Request body for removing contacts from a list. */
1076
+ export interface RemoveContactsFromListRequest {
1077
+ /** List of contact IDs to remove */
1078
+ contact_ids: Array<number>;
1079
+ }
1080
+
1081
+ /** An open envelope around a LIST of sequencer records, as `items`. */
1082
+ export interface SequencerListPayload {
1083
+ items?: Array<unknown>;
1084
+ [key: string]: unknown;
1085
+ }
1086
+
1087
+ /**
1088
+ * An open envelope around one sequencer record.
1089
+ *
1090
+ * Open because templates, schedules and channels carry nested step data and
1091
+ * configuration that grows as channels are added.
1092
+ */
1093
+ export type SequencerPayload = Record<string, unknown>;
1094
+
1095
+ /**
1096
+ * Replace a master list's sources.
1097
+ *
1098
+ * A REPLACE, not a merge: a source you omit stops feeding the master list.
1099
+ * Saved synchronously, and the re-sync runs in the background afterwards, so
1100
+ * a 200 here means the config is stored, not that the membership has caught
1101
+ * up.
1102
+ */
1103
+ export interface UpdateMasterListConfigRequest {
1104
+ include_all_sources?: boolean;
1105
+ source_list_ids?: Array<number>;
1106
+ }