@graph8/sdk 0.251.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 +9 -2
  2. package/dist/cli.js +216 -0
  3. package/dist/index.d.mts +104 -7
  4. package/dist/index.d.ts +104 -7
  5. package/dist/index.js +44 -3
  6. package/dist/index.js.map +1 -1
  7. package/dist/index.mjs +44 -3
  8. package/dist/index.mjs.map +1 -1
  9. package/dist/react.d.mts +102 -7
  10. package/dist/react.d.ts +102 -7
  11. package/dist/react.js +62 -11
  12. package/dist/react.js.map +1 -1
  13. package/dist/react.mjs +53 -12
  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,63 @@
1
+ export { g8 } from "./core";
2
+ export { G8Error, request, paginate, isRetryableStatus, parseRetryAfter, backoffDelayMs } from "./http";
3
+ export type { RequestOptions, PaginatedResponse } from "./http";
4
+ export type { G8Config, G8PrivacyConfig, TrackProperties, IdentifyProperties, EnrichLookupResult } from "./types";
5
+ export type { VisitorCompany, VisitorScore } from "./visitors";
6
+ export type { CopilotConfig } from "./copilot";
7
+ export type { ChatConfig } from "./chat";
8
+ export type { CalendarConfig, TimeSlot, Booking, BookingRequest } from "./calendar";
9
+ export type { PersonEnrichment, CompanyEnrichment, EmailVerification, SearchFilter, SearchResults } from "./enrich";
10
+ export type { Sequence, AddToSequenceConfig, SequenceListItem, SequenceListParams, SequenceDetail, SequenceContactItem, SequenceContactsParams, SequenceActionResult, SequenceKind, SequenceStepType, SequenceStepInputType, SequenceStepConfig, SequenceChannelConfig, SequenceCreateParams, SequenceCreateResult, SequenceUpdateParams, SequenceStepUpdateParams, SequencePreviewStep, SequencePreviewChannel, SequencePreview, SequenceAnalytics, } from "./sequences";
11
+ export type { InboxChannel, InboxContact, InboxTag, InboxAssignee, InboxMessage, InboxThread, InboxListParams, InboxAssignResult, InboxTagResult, InboxDraft, InboxSendParams, InboxSendResult, } from "./inbox";
12
+ export type { Campaign, CampaignCreateConfig, CampaignLaunchExecution, CampaignLaunchResult, } from "./campaigns";
13
+ export type { App, AppInstallation, AppUsageSummary, AppLimit, AppCreateParams, AppStatus, InstallStatus, } from "./apps";
14
+ export { createAppPlatformClient, MIN_TAIL_LINES, MAX_TAIL_LINES } from "./appPlatform";
15
+ export type { Deployment, DeploymentStatus, CreateDeploymentParams, AppDomain, DomainVerificationStatus, DomainVerificationInstructions, AppSecretMetadata, AppSourceParams, SourceProvider, SchemaVersion, SchemaVersionStatus, AppLogs, ContainerLog, } from "./appPlatform";
16
+ export type { CustomObject, CreateCustomObject, CustomObjectIcon, CreateCustomObjectAttribute, UpdateCustomObjectAttribute, UpdateCustomObject, CustomObjectAttribute, CustomObjectRecord, CustomObjectHistory, CustomObjectHistoryEntry, CustomObjectMutation, CustomObjectMutations, ListRecordsParams, ObjectPagination, } from "./objects";
17
+ export type { IntentSignals } from "./signals";
18
+ export type { VoicePagination, DialerSessionSummary, DialerSessionsListResult, DialerSessionsListParams, DialerStatsParams, DialerReportFilters, DialerReportMetric, DialerStatsResult, DialerNumberInfo, DialerNumbersListResult, MissedCallback, MissedCallbacksResult, CallGradingResult, DialerAgentSummary, DialerAgentsListResult, DialerAgentsListParams, DialerSessionCreateParams, DialerSessionCreateResult, DialerSessionStatus, DialerSessionStatusUpdateResult, DialerSessionResumeResult, } from "./voice";
19
+ export type { WebhookEvent, WebhookEventPayload, ConstructEventOptions } from "./webhooks";
20
+ export { constructEvent, WebhookSignatureError, KNOWN_WEBHOOK_EVENTS } from "./webhooks";
21
+ export type { Contact, ContactListParams, ContactCreateParams, ContactUpdateParams, ContactUpsertParams, ContactUpsertResult, ContactDetail, ContactBulkGetItem, ContactColumn, ContactColumnCreateParams, } from "./contacts";
22
+ export type { Company, CompanyListParams, CompanyUpdateParams, CompanyContact, CompanyColumn, CompanyColumnCreateParams, CompanyCreateParams, CompanyCreateResult, } from "./companies";
23
+ export type { ContactList, ListContact } from "./lists";
24
+ export type { Note } from "./notes";
25
+ export type { Mailbox, MailboxListItem, MailboxListParams, MailboxCreateParams, MailboxUpdateParams, MailboxTestConnectionParams, MailboxTestConnectionResult, MailboxConnectionTestLegResult, MailboxDeleteResult, MailboxWarmupAnalytics, MailboxWarmupAnalyticsData, MailboxWarmupDailyStat, } from "./mailboxes";
26
+ export type { Newsletter, NewsletterIssue, NewsletterTemplate, NewsletterSubscriber, NewsletterIssueKpis, NewsletterCreateParams, NewsletterIssueCreateParams, NewsletterIssueUpdateParams, NewsletterListParams, } from "./newsletter";
27
+ export type { Task, TaskCreateParams, TaskUpdateParams, TaskListParams } from "./tasks";
28
+ export type { Field, CreatedField, FieldCreateParams, FieldDeleteParams, SetFieldValueParams, } from "./fields";
29
+ export type { Deal, DealCreateParams, DealUpdateParams, DealContactRole, DealListParams, Pipeline, PipelineStage, ContactDeal, PaginationMeta, } from "./deals";
30
+ export type { QuoteSummary, QuoteDetail, QuoteLineItem, QuoteStatus, QuoteCreateParams, QuoteUpdateParams, QuoteSendParams, QuoteListParams, QuotableProduct, QuoteSettings, } from "./quotes";
31
+ export type { StagePipeline, StagePipelineStage, StagePipelineCreateParams, StagePipelineUpdateParams, StageCreateParams, StageUpdateParams, EvidenceKey, PipelineSuggestion, } from "./pipelines";
32
+ export type { Workflow, WorkflowNode, WorkflowConnection, WorkflowConfig, WorkflowCreateParams, WorkflowUpdateParams, WorkflowExecution, WorkflowListParams, NodeTypeSchema, } from "./workflows";
33
+ export type { Skill, SkillType, SkillInputField, SkillCreateLLMParams, SkillCreateAPIParams, SkillUpdateLLMParams, SkillUpdateAPIParams, SkillTemplate, SkillListParams, } from "./skills";
34
+ export type { IntentKeyword, IntentPage, IntentVisitor, IntentCompany, IntentContact, IntentStats, } from "./intent";
35
+ export type { GlobalContextDocument, Persona, ICP, IntelligenceData, ResearchReport, } from "./studio";
36
+ export type { MeetingSummary, MeetingDetail, MeetingAttendee, MeetingTranscriptLine, MeetingAnalysis, MeetingListParams, } from "./meetings";
37
+ export type { AudienceSync, AudienceSyncPlatform, AudienceSyncMode, AudienceSyncCreateParams, AudienceSyncUpdateParams, AudienceSyncRun, AudienceSyncError, } from "./audiences";
38
+ export type { SearchOperator, SearchCondition, SearchParams, SearchSaveParams, SearchContactItem, SearchCompanyItem, SearchSaveResult, } from "./search";
39
+ export type { AgencyInfo, AgencyClient } from "./agency";
40
+ export type { MarketplaceProfile, MarketplaceOffer, MarketplaceHiring } from "./marketplace";
41
+ export type { Snippet } from "./snippet";
42
+ export { createGraph8AppClient, createGraph8ServiceClient } from "./appClient";
43
+ export type { Graph8AppClient, Graph8AppClientConfig, Graph8ServiceClient, Graph8ServiceClientConfig, } from "./appClient";
44
+ export { createTokenManager, createAppRequester, exchangeBrowserToken, exchangeServiceToken, DEFAULT_APP_API, } from "./appTokens";
45
+ export type { AppTokenResponse, TokenManager, AppRequest, AppRequestOptions } from "./appTokens";
46
+ export { createApiClient, API_BASE_PATH } from "./api";
47
+ export type { ApiClient, ApiDispatcher, ApiNamespaces, ApiMethod, ApiCallOptions, ApiInput, ApiOutput, ApiPageItem, ApiOperationInfo, } from "./api";
48
+ export { API_OPERATIONS, API_OPERATION_IDS, API_OPERATION_COUNT } from "./generated/operations";
49
+ export type { ApiOperationId, ApiHttpMethod, ApiTag, ApiOperationTuple } from "./generated/operations";
50
+ export type { ApiOperationMap } from "./generated/operation-types";
51
+ export type { ApiNamespaceMap } from "./generated/namespaces";
52
+ /**
53
+ * Every schema the Developer API contract publishes, as a namespace.
54
+ *
55
+ * Namespaced rather than flattened on purpose: 696 bare type names through
56
+ * `export *` would eventually collide with a hand-written one (`Contact`,
57
+ * `Company`, `Sequence`, ... all already exist above), and a duplicate-symbol
58
+ * collision in the barrel is exactly the failure this package has hit before.
59
+ *
60
+ * import type { G8Contract } from "@graph8/sdk";
61
+ * function render(c: G8Contract.ContactResponse) { ... }
62
+ */
63
+ export type * as G8Contract from "./generated/schemas";
@@ -0,0 +1,196 @@
1
+ export interface IntentKeyword {
2
+ id: string;
3
+ keyword: string;
4
+ domain: string | null;
5
+ include_patterns: string[];
6
+ exclude_patterns: string[];
7
+ page_count: number;
8
+ visitor_count: number;
9
+ company_count: number;
10
+ contact_count: number;
11
+ created_at: string | null;
12
+ }
13
+ export interface IntentPage {
14
+ url: string;
15
+ title: string | null;
16
+ keyword: string | null;
17
+ domain: string;
18
+ visitor_count: number;
19
+ last_seen: string | null;
20
+ }
21
+ export interface IntentVisitor {
22
+ visitor_id: string;
23
+ company_domain: string | null;
24
+ company_name: string | null;
25
+ page_url: string;
26
+ first_seen: string | null;
27
+ last_seen: string | null;
28
+ visit_count: number;
29
+ }
30
+ export interface IntentCompany {
31
+ domain: string;
32
+ name: string | null;
33
+ industry: string | null;
34
+ employee_count: string | null;
35
+ visit_count: number;
36
+ last_seen: string | null;
37
+ }
38
+ /** One company row from `intent.urlCompanies()`. Richer than {@link IntentCompany},
39
+ * which describes the keyword-companies surface. */
40
+ export interface IntentUrlCompany {
41
+ company_id: number | null;
42
+ name: string | null;
43
+ domain: string | null;
44
+ industry: string | null;
45
+ employee_count: number | null;
46
+ logo_url: string | null;
47
+ audience: string;
48
+ visit_count: number;
49
+ contacts_seen: number;
50
+ last_seen: string | null;
51
+ }
52
+ /** Response of `intent.urlCompanies()`. This endpoint returns a bare aggregate,
53
+ * not the `{ data }` envelope the rest of the Developer API uses. */
54
+ export interface IntentUrlCompaniesResponse {
55
+ url: string;
56
+ total_companies: number;
57
+ b2b_count: number;
58
+ b2c_count: number;
59
+ companies: IntentUrlCompany[];
60
+ }
61
+ export interface IntentContact {
62
+ contact_id: number | null;
63
+ email: string | null;
64
+ full_name: string | null;
65
+ company: string | null;
66
+ job_title: string | null;
67
+ last_seen: string | null;
68
+ }
69
+ export interface IntentStats {
70
+ total_keywords: number;
71
+ total_pages: number;
72
+ total_visitors_30d: number;
73
+ total_companies_30d: number;
74
+ }
75
+ /**
76
+ * Intent + visitor tracking. Distinct from `g8.signals` (which is summary scoring) —
77
+ * this module exposes keyword tracking, page-level visitor data, and account-level
78
+ * intent signals from your own site (or from competitor URLs you've added).
79
+ *
80
+ * Requires API key (server-side).
81
+ *
82
+ * Backed by:
83
+ * GET /api/v1/intent/stats
84
+ * POST /api/v1/intent/keywords/list
85
+ * POST /api/v1/intent/keywords/create-from-domain
86
+ * DELETE /api/v1/intent/keywords/{keyword_id}
87
+ * POST /api/v1/intent/keywords/{keyword_id}/companies
88
+ * POST /api/v1/intent/keywords/{keyword_id}/contacts
89
+ * POST /api/v1/intent/keywords/{keyword_id}/urls
90
+ * POST /api/v1/intent/pages-by-domain
91
+ * POST /api/v1/intent/pages/search
92
+ * POST /api/v1/intent/pages/visitors
93
+ * POST /api/v1/intent/pages/contacts
94
+ * POST /api/v1/intent/pages/visitor-counts
95
+ * POST /api/v1/intent/url-companies
96
+ */
97
+ export declare const createIntentClient: (apiKey: string, apiUrl?: string) => {
98
+ /** Org-level intent stats (totals over the last 30 days). */
99
+ stats(): Promise<{
100
+ data: IntentStats;
101
+ }>;
102
+ /** List tracked keywords with optional pagination. */
103
+ listKeywords(params?: {
104
+ page?: number;
105
+ limit?: number;
106
+ search?: string;
107
+ }): Promise<{
108
+ data: IntentKeyword[];
109
+ }>;
110
+ /** Create a keyword group from a domain (auto-tracks all pages). */
111
+ createFromDomain(domain: string): Promise<{
112
+ data: IntentKeyword;
113
+ }>;
114
+ /** Stop tracking a keyword (irreversible — historical data is retained). */
115
+ deleteKeyword(keywordId: string): Promise<{
116
+ data: {
117
+ deleted: boolean;
118
+ };
119
+ }>;
120
+ /** Companies showing interest in a tracked keyword. */
121
+ keywordCompanies(keywordId: string, params?: {
122
+ limit?: number;
123
+ date_from?: string;
124
+ date_to?: string;
125
+ }): Promise<{
126
+ data: IntentCompany[];
127
+ }>;
128
+ /** Contacts showing interest in a tracked keyword. */
129
+ keywordContacts(keywordId: string, params?: {
130
+ limit?: number;
131
+ date_from?: string;
132
+ date_to?: string;
133
+ }): Promise<{
134
+ data: IntentContact[];
135
+ }>;
136
+ /** URLs associated with a keyword (pages visitors landed on while interested). */
137
+ keywordUrls(keywordId: string, params?: {
138
+ limit?: number;
139
+ }): Promise<{
140
+ data: IntentPage[];
141
+ }>;
142
+ /** Pages tracked on a specific domain. */
143
+ pagesByDomain(domain: string, params?: {
144
+ limit?: number;
145
+ }): Promise<{
146
+ data: IntentPage[];
147
+ }>;
148
+ /** Search tracked pages by URL fragment or keyword. */
149
+ searchPages(query: string, params?: {
150
+ limit?: number;
151
+ }): Promise<{
152
+ data: IntentPage[];
153
+ }>;
154
+ /** Get visitor records for a specific page URL. */
155
+ pageVisitors(pageUrl: string, params?: {
156
+ limit?: number;
157
+ date_from?: string;
158
+ date_to?: string;
159
+ }): Promise<{
160
+ data: IntentVisitor[];
161
+ }>;
162
+ /** Get contacts who visited a specific page URL. */
163
+ pageContacts(pageUrl: string, params?: {
164
+ limit?: number;
165
+ }): Promise<{
166
+ data: IntentContact[];
167
+ }>;
168
+ /** Visitor count aggregates by page (pass an array of URLs). */
169
+ pageVisitorCounts(urls: string[]): Promise<{
170
+ data: Array<{
171
+ url: string;
172
+ visitor_count: number;
173
+ }>;
174
+ }>;
175
+ /**
176
+ * Find companies whose users visited a specific URL (intent search).
177
+ *
178
+ * Previously posted to the bare-host `/intent-search/url-companies`, bypassing
179
+ * the shared `post()` helper. That route is JWT-only, so this method could
180
+ * never actually work with an API key. It now goes through
181
+ * `/api/v1/intent/url-companies` like the rest of the intent surface (g8 issue
182
+ * #16536).
183
+ *
184
+ * Returns a bare aggregate, NOT the `{ data }` envelope — the previous
185
+ * `{ data: IntentCompany[] }` signature never matched what the API sends.
186
+ *
187
+ * `date_from` / `date_to` are accepted for backwards compatibility but have
188
+ * never been read by this endpoint; use `days` to set the lookback window.
189
+ */
190
+ urlCompanies(url: string, params?: {
191
+ limit?: number;
192
+ days?: number;
193
+ date_from?: string;
194
+ date_to?: string;
195
+ }): Promise<IntentUrlCompaniesResponse>;
196
+ };
@@ -0,0 +1,44 @@
1
+ export interface ContactList {
2
+ id: number;
3
+ title: string;
4
+ type: "contacts" | "companies";
5
+ contact_count: number | null;
6
+ created_at: string | null;
7
+ }
8
+ export interface ListContact {
9
+ id: number;
10
+ first_name: string | null;
11
+ last_name: string | null;
12
+ work_email: string | null;
13
+ job_title: string | null;
14
+ company_name: string | null;
15
+ }
16
+ /**
17
+ * Lists API - manage contact and company lists. Requires API key (server-side).
18
+ */
19
+ export declare const createListsClient: (apiKey: string, apiUrl?: string) => {
20
+ /** List all lists. */
21
+ list(page?: number, limit?: number): Promise<{
22
+ data: ContactList[];
23
+ total: number;
24
+ }>;
25
+ /** Create a new list. */
26
+ create(title: string, type?: "contacts" | "companies"): Promise<ContactList>;
27
+ /** Delete a list (soft-delete). */
28
+ delete(listId: number): Promise<{
29
+ deleted: boolean;
30
+ }>;
31
+ /** Get contacts in a list. */
32
+ contacts(listId: number, page?: number, limit?: number): Promise<{
33
+ data: ListContact[];
34
+ total: number;
35
+ }>;
36
+ /** Add contacts to a list. */
37
+ addContacts(listId: number, contactIds: number[]): Promise<{
38
+ added: number;
39
+ }>;
40
+ /** Remove contacts from a list. */
41
+ removeContacts(listId: number, contactIds: number[]): Promise<{
42
+ removed: number;
43
+ }>;
44
+ };
@@ -0,0 +1,240 @@
1
+ /**
2
+ * A sending mailbox. Mirrors `MailboxResponse`
3
+ * (`developer_api/interfaces/dtos/mailboxes.py:14-30`).
4
+ *
5
+ * Credentials (`smtp_password` / `imap_password`) are write-only server-side
6
+ * and are never returned by any endpoint, so this type deliberately has no
7
+ * field for them — see `mailbox_row_to_response()` (mailboxes.py:96-116),
8
+ * which drops anything credential-shaped before building the response.
9
+ */
10
+ export interface Mailbox {
11
+ id: number;
12
+ email: string | null;
13
+ display_name: string | null;
14
+ /** active | paused | disconnected | expired | ... */
15
+ connection_status: string | null;
16
+ provider: string | null;
17
+ daily_limit: number | null;
18
+ allows_nurture: boolean | null;
19
+ warmup_enabled: boolean | null;
20
+ is_archived: boolean | null;
21
+ created_by: string | null;
22
+ created_at: string | null;
23
+ updated_at: string | null;
24
+ }
25
+ /**
26
+ * One row from `GET /api/v1/mailboxes` (list). This is a DIFFERENT, wider
27
+ * shape than `Mailbox`: the route predates the lifecycle router and returns a
28
+ * raw dict (`response_model=ApiResponse[list[dict]]`), not `MailboxResponse` —
29
+ * see `gtm_context_router.py:1090-1178`.
30
+ *
31
+ * Note `id` is a STRING here (`str(row.id)`, gtm_context_router.py:1163) while
32
+ * every lifecycle route (`get`/`update`/`delete`/`testConnection`) takes a
33
+ * NUMERIC `mailbox_id`. This is a real asymmetry in the backend, not an SDK
34
+ * typo — cast if you need to feed a list result into a lifecycle call.
35
+ */
36
+ export interface MailboxListItem {
37
+ id: string;
38
+ email: string | null;
39
+ display_name: string | null;
40
+ provider: string | null;
41
+ source: string | null;
42
+ connection_status: string | null;
43
+ is_archived: boolean | null;
44
+ shared_with_team: boolean | null;
45
+ team_id: string | null;
46
+ team_name: string | null;
47
+ daily_limit: number | null;
48
+ created_by: string | null;
49
+ created_at: string | null;
50
+ updated_at: string | null;
51
+ /** Cheap DB-level warmup state. For live engagement metrics use `warmup()`. */
52
+ warmup_provider: string | null;
53
+ warmup_status: string | null;
54
+ smartlead_warmup_enabled: boolean | null;
55
+ }
56
+ /** Query params for `GET /api/v1/mailboxes` (gtm_context_router.py:1091-1098). */
57
+ export interface MailboxListParams {
58
+ limit?: number;
59
+ include_archived?: boolean;
60
+ /** Filter by connection_status (active|paused|disconnected|expired|...). */
61
+ connection_status?: string;
62
+ }
63
+ /**
64
+ * Connect an existing mailbox over IMAP/SMTP. Mirrors `MailboxCreateRequest`
65
+ * field-for-field (`developer_api/interfaces/dtos/mailboxes.py:33-56`).
66
+ *
67
+ * Google/Microsoft mailboxes are not connectable through this endpoint: OAuth
68
+ * needs a browser redirect an API call cannot complete. Connect those in the
69
+ * app for now.
70
+ */
71
+ export interface MailboxCreateParams {
72
+ email: string;
73
+ smtp_address: string;
74
+ smtp_username: string;
75
+ /** Write-only. Never returned by any endpoint. */
76
+ smtp_password: string;
77
+ imap_address: string;
78
+ imap_username: string;
79
+ /** Write-only. Never returned by any endpoint. */
80
+ imap_password: string;
81
+ display_name?: string;
82
+ smtp_port?: number;
83
+ imap_port?: number;
84
+ authentication?: string;
85
+ enable_starttls_auto?: boolean;
86
+ /** Max sends per day for this mailbox. */
87
+ daily_limit?: number;
88
+ signature_html?: string;
89
+ signature_plain?: string;
90
+ use_html_signature?: boolean;
91
+ }
92
+ /**
93
+ * Partial update — only supplied fields change. Mirrors `MailboxUpdateRequest`
94
+ * field-for-field (`developer_api/interfaces/dtos/mailboxes.py:59-75`); every
95
+ * field is optional there, so every field is optional here.
96
+ */
97
+ export interface MailboxUpdateParams {
98
+ display_name?: string;
99
+ smtp_address?: string;
100
+ smtp_port?: number;
101
+ smtp_username?: string;
102
+ /** Write-only. */
103
+ smtp_password?: string;
104
+ imap_address?: string;
105
+ imap_port?: number;
106
+ imap_username?: string;
107
+ /** Write-only. */
108
+ imap_password?: string;
109
+ daily_limit?: number;
110
+ allows_nurture?: boolean;
111
+ signature_html?: string;
112
+ signature_plain?: string;
113
+ use_html_signature?: boolean;
114
+ }
115
+ /**
116
+ * Optionally override credentials for a connection test without saving them.
117
+ * Mirrors `MailboxTestConnectionRequest` field-for-field
118
+ * (`developer_api/interfaces/dtos/mailboxes.py:78-88`) — every field is
119
+ * optional there (and here); send `{}` to test what is already stored.
120
+ */
121
+ export interface MailboxTestConnectionParams {
122
+ smtp_address?: string;
123
+ smtp_port?: number;
124
+ smtp_username?: string;
125
+ smtp_password?: string;
126
+ imap_address?: string;
127
+ imap_port?: number;
128
+ imap_username?: string;
129
+ imap_password?: string;
130
+ }
131
+ /** Result of `DELETE /api/v1/mailboxes/{id}`. Mirrors `MailboxDeleteResponse` (mailboxes.py:91-93). */
132
+ export interface MailboxDeleteResult {
133
+ deleted: boolean;
134
+ mailbox_id: number;
135
+ }
136
+ /** One leg (SMTP or IMAP) of a connection test result (connection_tester.py test_smtp/test_imap). */
137
+ export interface MailboxConnectionTestLegResult {
138
+ success: boolean;
139
+ error?: string;
140
+ }
141
+ /**
142
+ * Result of `POST /api/v1/mailboxes/{id}/test-connection`. This route has no
143
+ * Pydantic response model (`response_model=ApiResponse[dict]`) — shape taken
144
+ * from `mailboxes/usecases/test_connection/handler.py:89-94`.
145
+ */
146
+ export interface MailboxTestConnectionResult {
147
+ success: boolean;
148
+ connection_status: string;
149
+ smtp: MailboxConnectionTestLegResult;
150
+ imap: MailboxConnectionTestLegResult;
151
+ }
152
+ /** One day of warmup send/receive counts (mailboxes/infrastructure/warmup_service.py DailyWarmupStats). */
153
+ export interface MailboxWarmupDailyStat {
154
+ date: string;
155
+ sent: number;
156
+ inbox: number;
157
+ spam: number;
158
+ received: number;
159
+ replies: number;
160
+ saved_from_spam: number;
161
+ }
162
+ /**
163
+ * Provider warmup analytics (mailboxes/infrastructure/warmup_service.py
164
+ * WarmupAnalytics, ~line 99). Some fields are provider-specific: `health_score`
165
+ * is Instantly-only, `reputation` / `is_warmup_blocked` / `blocked_reason` /
166
+ * `is_suspended` are SmartLead-only.
167
+ */
168
+ export interface MailboxWarmupAnalyticsData {
169
+ provider: string;
170
+ /** active | paused | disabled | error | connection_error | sending_error | soft_bounce_error */
171
+ status: string;
172
+ total_sent: number;
173
+ total_inbox: number;
174
+ total_spam: number;
175
+ total_received: number;
176
+ inbox_rate: number;
177
+ health_score: number | null;
178
+ reputation: number | null;
179
+ is_warmup_blocked: boolean | null;
180
+ blocked_reason: string | null;
181
+ is_suspended: boolean | null;
182
+ error_message: string | null;
183
+ daily_stats: MailboxWarmupDailyStat[];
184
+ raw_account: Record<string, unknown> | null;
185
+ raw_analytics: Record<string, unknown> | null;
186
+ }
187
+ /**
188
+ * Result of `GET /api/v1/mailboxes/{id}/warmup`. No Pydantic response model
189
+ * (`response_model=ApiResponse[dict]`) — shape taken from
190
+ * `gtm_context_router.py:1292-1298` (success/not-configured path) and
191
+ * `:1278-1284` (provider-transport-error path, which omits `warmup_settings`
192
+ * and adds `error` instead).
193
+ */
194
+ export interface MailboxWarmupAnalytics {
195
+ success: boolean;
196
+ warmup_enabled: boolean | null;
197
+ provider: string | null;
198
+ analytics: MailboxWarmupAnalyticsData | null;
199
+ warmup_settings?: unknown;
200
+ /** Only present when the provider HTTP call itself failed. */
201
+ error?: string;
202
+ }
203
+ /**
204
+ * Mailboxes API - connect, read, update, test and delete sending mailboxes,
205
+ * plus list + live warmup analytics. Requires API key (server-side).
206
+ *
207
+ * Backed by:
208
+ * GET /api/v1/mailboxes (gtm_context_router.py:1090)
209
+ * GET /api/v1/mailboxes/{mailbox_id}/warmup (gtm_context_router.py:1187)
210
+ * POST /api/v1/mailboxes (mailboxes_router.py:101)
211
+ * GET /api/v1/mailboxes/{mailbox_id} (mailboxes_router.py:141)
212
+ * PATCH /api/v1/mailboxes/{mailbox_id} (mailboxes_router.py:161)
213
+ * DELETE /api/v1/mailboxes/{mailbox_id} (mailboxes_router.py:196)
214
+ * POST /api/v1/mailboxes/{mailbox_id}/test-connection (mailboxes_router.py:214)
215
+ *
216
+ * Google/Microsoft mailboxes cannot be connected through `create()` — that
217
+ * needs a browser OAuth redirect. Connect those in the app.
218
+ */
219
+ export declare const createMailboxesClient: (apiKey: string, apiUrl?: string) => {
220
+ /** List sending mailboxes in the org. */
221
+ list(params?: MailboxListParams): Promise<{
222
+ data: MailboxListItem[];
223
+ }>;
224
+ /** Get live warmup analytics for a single mailbox (a provider HTTP round-trip, ~300-800ms). */
225
+ warmup(mailboxId: number): Promise<MailboxWarmupAnalytics>;
226
+ /** Connect an existing mailbox over IMAP/SMTP. */
227
+ create(params: MailboxCreateParams): Promise<Mailbox>;
228
+ /** Get a single mailbox by id. Credentials are never included. */
229
+ get(mailboxId: number): Promise<Mailbox>;
230
+ /** Update a mailbox. Only supplied fields change; omitted fields are untouched. */
231
+ update(mailboxId: number, params: MailboxUpdateParams): Promise<Mailbox>;
232
+ /** Delete a mailbox. Sequences already referencing it stop being able to send from it. */
233
+ delete(mailboxId: number): Promise<MailboxDeleteResult>;
234
+ /**
235
+ * Verify a mailbox's IMAP/SMTP credentials and refresh its connection status.
236
+ * Call with no params (or `{}`) to test what is stored; supply overrides to
237
+ * test candidate values without saving them.
238
+ */
239
+ testConnection(mailboxId: number, params?: MailboxTestConnectionParams): Promise<MailboxTestConnectionResult>;
240
+ };
@@ -0,0 +1,62 @@
1
+ export interface MarketplaceProfile {
2
+ id: string;
3
+ email: string;
4
+ first_name?: string | null;
5
+ last_name?: string | null;
6
+ marketplace_role?: string | null;
7
+ country_code?: string | null;
8
+ monthly_rate_usd?: string | null;
9
+ per_meeting_rate_usd?: string | null;
10
+ availability_status?: string | null;
11
+ bio?: string | null;
12
+ is_complete: boolean;
13
+ }
14
+ export interface MarketplaceOffer {
15
+ id: string;
16
+ org_id: string;
17
+ org_name?: string | null;
18
+ sdr_id: string;
19
+ status: string;
20
+ monthly_rate_usd?: string | null;
21
+ per_meeting_rate_usd?: string | null;
22
+ created_at?: string | null;
23
+ }
24
+ export interface MarketplaceHiring {
25
+ id: string;
26
+ org_id: string;
27
+ sdr_id: string;
28
+ status: string;
29
+ sdr_name?: string | null;
30
+ sdr_role?: string | null;
31
+ sdr_email?: string | null;
32
+ monthly_rate_usd?: string | null;
33
+ per_meeting_rate_usd?: string | null;
34
+ started_at?: string | null;
35
+ }
36
+ /**
37
+ * Marketplace API — for SDR/AE talent on the graph8 marketplace. View your
38
+ * profile, see pending hire offers and respond to them, and list your active
39
+ * hirings. Requires a personal API key (server-side). Built on the hardened
40
+ * HTTP core, so every method throws a typed `G8Error` on failure and retries
41
+ * transient errors.
42
+ *
43
+ * Backed by `/api/v1/marketplace`.
44
+ */
45
+ export declare const createMarketplaceClient: (apiKey: string, apiUrl?: string) => {
46
+ /** Your own marketplace SDR profile. */
47
+ profile(): Promise<MarketplaceProfile>;
48
+ /** Pending hire offers you can accept or reject. */
49
+ offers(): Promise<{
50
+ offers: MarketplaceOffer[];
51
+ count: number;
52
+ }>;
53
+ /** Accept a pending hire offer (by hiring id). */
54
+ acceptOffer(hiringId: string): Promise<Record<string, unknown>>;
55
+ /** Reject a pending hire offer (by hiring id). */
56
+ rejectOffer(hiringId: string): Promise<Record<string, unknown>>;
57
+ /** Your active hiring contracts. */
58
+ hirings(): Promise<{
59
+ hirings: MarketplaceHiring[];
60
+ count: number;
61
+ }>;
62
+ };
@@ -0,0 +1,70 @@
1
+ export interface MeetingAttendee {
2
+ name: string | null;
3
+ email: string;
4
+ role: "host" | "prospect" | "guest" | string;
5
+ contact_id?: number | null;
6
+ }
7
+ export interface MeetingTranscriptLine {
8
+ speaker: string;
9
+ text: string;
10
+ timestamp: number;
11
+ }
12
+ export interface MeetingAnalysis {
13
+ sentiment: "positive" | "neutral" | "negative";
14
+ summary: string;
15
+ next_steps: string[];
16
+ objections: string[];
17
+ talk_listen_ratio: number | null;
18
+ }
19
+ export interface MeetingSummary {
20
+ id: string;
21
+ status: "scheduled" | "completed" | "cancelled" | "no_show";
22
+ event_type: string | null;
23
+ scheduled_at: string;
24
+ duration_minutes: number;
25
+ attendees: MeetingAttendee[];
26
+ contact_id: number | null;
27
+ conferencing_provider: string | null;
28
+ conferencing_url: string | null;
29
+ recording_url: string | null;
30
+ created_at: string;
31
+ }
32
+ export interface MeetingDetail extends MeetingSummary {
33
+ transcript: MeetingTranscriptLine[] | null;
34
+ analysis: MeetingAnalysis | null;
35
+ }
36
+ export interface MeetingListParams {
37
+ status?: "scheduled" | "completed" | "cancelled" | "no_show";
38
+ date_from?: string;
39
+ date_to?: string;
40
+ attendee_id?: string;
41
+ event_type?: string;
42
+ contact_id?: number;
43
+ page?: number;
44
+ limit?: number;
45
+ }
46
+ /**
47
+ * Meetings API - read-only access to scheduled, completed, and cancelled meetings.
48
+ * Booking happens via `g8.calendar.*` (write-key safe, browser only) — this surface
49
+ * is for reading meeting records, transcripts, and AI analysis.
50
+ *
51
+ * Requires API key (server-side).
52
+ *
53
+ * Backed by:
54
+ * GET /api/v1/inbox/meetings
55
+ * GET /api/v1/inbox/meetings/{meeting_id}
56
+ */
57
+ export declare const createMeetingsClient: (apiKey: string, apiUrl?: string) => {
58
+ /** List meetings with optional filters. Returns summary rows without transcript / analysis. */
59
+ list(params?: MeetingListParams): Promise<{
60
+ data: MeetingSummary[];
61
+ pagination?: {
62
+ page: number;
63
+ limit: number;
64
+ total: number;
65
+ has_next: boolean;
66
+ };
67
+ }>;
68
+ /** Get full meeting detail including transcript + AI analysis (transcript available 1-5 min after meeting ends). */
69
+ get(meetingId: string): Promise<MeetingDetail>;
70
+ };