@graph8/sdk 0.251.0 → 0.262.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.
- package/README.md +9 -2
- package/dist/cli.js +216 -0
- package/dist/index.d.mts +105 -7
- package/dist/index.d.ts +105 -7
- package/dist/index.js +44 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +44 -3
- package/dist/index.mjs.map +1 -1
- package/dist/react.d.mts +103 -7
- package/dist/react.d.ts +103 -7
- package/dist/react.js +62 -11
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +53 -12
- package/dist/react.mjs.map +1 -1
- package/dist/types/README.md +7 -0
- package/dist/types/agency.d.ts +20 -0
- package/dist/types/agentSetup.d.ts +57 -0
- package/dist/types/api.d.ts +127 -0
- package/dist/types/appClient.d.ts +99 -0
- package/dist/types/appPlatform.d.ts +269 -0
- package/dist/types/appTokens.d.ts +125 -0
- package/dist/types/apps.d.ts +130 -0
- package/dist/types/audiences.d.ts +88 -0
- package/dist/types/calendar.d.ts +55 -0
- package/dist/types/campaigns.d.ts +61 -0
- package/dist/types/chat.d.ts +35 -0
- package/dist/types/cli.d.ts +14 -0
- package/dist/types/companies.d.ts +123 -0
- package/dist/types/contacts.d.ts +200 -0
- package/dist/types/copilot.d.ts +31 -0
- package/dist/types/core.d.ts +1052 -0
- package/dist/types/deals.d.ts +215 -0
- package/dist/types/enrich.d.ts +51 -0
- package/dist/types/fields.d.ts +84 -0
- package/dist/types/forms.d.ts +16 -0
- package/dist/types/http.d.ts +141 -0
- package/dist/types/inbox.d.ts +123 -0
- package/dist/types/index.d.ts +63 -0
- package/dist/types/intent.d.ts +196 -0
- package/dist/types/lists.d.ts +44 -0
- package/dist/types/mailboxes.d.ts +240 -0
- package/dist/types/marketplace.d.ts +62 -0
- package/dist/types/meetings.d.ts +70 -0
- package/dist/types/newsletter.d.ts +212 -0
- package/dist/types/notes.d.ts +57 -0
- package/dist/types/objects.d.ts +281 -0
- package/dist/types/pipelines.d.ts +135 -0
- package/dist/types/quotes.d.ts +143 -0
- package/dist/types/react.d.ts +978 -0
- package/dist/types/search.d.ts +99 -0
- package/dist/types/sequences.d.ts +255 -0
- package/dist/types/signals.d.ts +28 -0
- package/dist/types/skills.d.ts +176 -0
- package/dist/types/snippet.d.ts +24 -0
- package/dist/types/studio.d.ts +161 -0
- package/dist/types/tasks.d.ts +101 -0
- package/dist/types/types.d.ts +45 -0
- package/dist/types/utils.d.ts +21 -0
- package/dist/types/version.d.ts +10 -0
- package/dist/types/visitors.d.ts +29 -0
- package/dist/types/voice.d.ts +304 -0
- package/dist/types/webhooks.d.ts +71 -0
- package/dist/types/workflows.d.ts +229 -0
- package/docs/agents.md +748 -0
- package/docs/api/README.md +165 -0
- package/docs/api/accounts.d.ts +396 -0
- package/docs/api/accounts.md +644 -0
- package/docs/api/adCampaigns.d.ts +707 -0
- package/docs/api/adCampaigns.md +1091 -0
- package/docs/api/adCreatives.d.ts +996 -0
- package/docs/api/adCreatives.md +1708 -0
- package/docs/api/agency.d.ts +556 -0
- package/docs/api/agency.md +845 -0
- package/docs/api/agent.d.ts +330 -0
- package/docs/api/agent.md +514 -0
- package/docs/api/agents.d.ts +1622 -0
- package/docs/api/agents.md +2860 -0
- package/docs/api/aiInbox.d.ts +1984 -0
- package/docs/api/aiInbox.md +3490 -0
- package/docs/api/analytics.d.ts +1273 -0
- package/docs/api/analytics.md +2095 -0
- package/docs/api/apiKeys.d.ts +252 -0
- package/docs/api/apiKeys.md +318 -0
- package/docs/api/appDeployments.d.ts +236 -0
- package/docs/api/appDeployments.md +471 -0
- package/docs/api/appDomains.d.ts +171 -0
- package/docs/api/appDomains.md +281 -0
- package/docs/api/appLogs.d.ts +120 -0
- package/docs/api/appLogs.md +159 -0
- package/docs/api/appObjects.d.ts +415 -0
- package/docs/api/appObjects.md +568 -0
- package/docs/api/appPages.d.ts +557 -0
- package/docs/api/appPages.md +796 -0
- package/docs/api/appPlatformTokens.d.ts +123 -0
- package/docs/api/appPlatformTokens.md +172 -0
- package/docs/api/appointments.d.ts +2361 -0
- package/docs/api/appointments.md +3917 -0
- package/docs/api/apps.d.ts +822 -0
- package/docs/api/apps.md +1342 -0
- package/docs/api/assertUpsert.d.ts +286 -0
- package/docs/api/assertUpsert.md +370 -0
- package/docs/api/audienceSyncs.d.ts +259 -0
- package/docs/api/audienceSyncs.md +395 -0
- package/docs/api/brandKit.d.ts +686 -0
- package/docs/api/brandKit.md +1133 -0
- package/docs/api/bugReports.d.ts +181 -0
- package/docs/api/bugReports.md +268 -0
- package/docs/api/by-path.md +3260 -0
- package/docs/api/calendarInvites.d.ts +117 -0
- package/docs/api/calendarInvites.md +148 -0
- package/docs/api/campaignWorkflows.d.ts +152 -0
- package/docs/api/campaignWorkflows.md +200 -0
- package/docs/api/campaigns.d.ts +721 -0
- package/docs/api/campaigns.md +1236 -0
- package/docs/api/channels.d.ts +171 -0
- package/docs/api/channels.md +235 -0
- package/docs/api/cliCampaigns.d.ts +205 -0
- package/docs/api/cliCampaigns.md +256 -0
- package/docs/api/cliPipelines.d.ts +324 -0
- package/docs/api/cliPipelines.md +562 -0
- package/docs/api/clickHouse.d.ts +115 -0
- package/docs/api/clickHouse.md +138 -0
- package/docs/api/companies.d.ts +1636 -0
- package/docs/api/companies.md +2211 -0
- package/docs/api/companyIntelligence.d.ts +299 -0
- package/docs/api/companyIntelligence.md +488 -0
- package/docs/api/contacts.d.ts +2173 -0
- package/docs/api/contacts.md +3143 -0
- package/docs/api/content.d.ts +968 -0
- package/docs/api/content.md +1667 -0
- package/docs/api/contentGridSkills.d.ts +177 -0
- package/docs/api/contentGridSkills.md +271 -0
- package/docs/api/copilot.d.ts +1017 -0
- package/docs/api/copilot.md +1765 -0
- package/docs/api/crmSyncs.d.ts +215 -0
- package/docs/api/crmSyncs.md +301 -0
- package/docs/api/customerSuccess.d.ts +491 -0
- package/docs/api/customerSuccess.md +776 -0
- package/docs/api/deals.d.ts +1697 -0
- package/docs/api/deals.md +2436 -0
- package/docs/api/deliverability.d.ts +418 -0
- package/docs/api/deliverability.md +677 -0
- package/docs/api/desk.d.ts +1765 -0
- package/docs/api/desk.md +3007 -0
- package/docs/api/dialer.d.ts +1185 -0
- package/docs/api/dialer.md +2166 -0
- package/docs/api/dialerAnalytics.d.ts +187 -0
- package/docs/api/dialerAnalytics.md +257 -0
- package/docs/api/documents.d.ts +895 -0
- package/docs/api/documents.md +1440 -0
- package/docs/api/duplicates.d.ts +195 -0
- package/docs/api/duplicates.md +315 -0
- package/docs/api/eSign.d.ts +38 -0
- package/docs/api/eSign.md +54 -0
- package/docs/api/eSignature.d.ts +242 -0
- package/docs/api/eSignature.md +341 -0
- package/docs/api/enrichment.d.ts +3207 -0
- package/docs/api/enrichment.md +5225 -0
- package/docs/api/events.d.ts +115 -0
- package/docs/api/events.md +105 -0
- package/docs/api/fields.d.ts +482 -0
- package/docs/api/fields.md +566 -0
- package/docs/api/forms.d.ts +1012 -0
- package/docs/api/forms.md +1542 -0
- package/docs/api/gtmCampaigns.d.ts +662 -0
- package/docs/api/gtmCampaigns.md +1044 -0
- package/docs/api/gtmContext.d.ts +1187 -0
- package/docs/api/gtmContext.md +2112 -0
- package/docs/api/gtmDeliverability.d.ts +60 -0
- package/docs/api/gtmDeliverability.md +63 -0
- package/docs/api/gtmKnowledgeBase.d.ts +76 -0
- package/docs/api/gtmKnowledgeBase.md +91 -0
- package/docs/api/gtmLaunchHelpers.d.ts +123 -0
- package/docs/api/gtmLaunchHelpers.md +148 -0
- package/docs/api/gtmLibrary.d.ts +448 -0
- package/docs/api/gtmLibrary.md +780 -0
- package/docs/api/health.d.ts +39 -0
- package/docs/api/health.md +58 -0
- package/docs/api/imageLibrary.d.ts +341 -0
- package/docs/api/imageLibrary.md +569 -0
- package/docs/api/imports.d.ts +157 -0
- package/docs/api/imports.md +174 -0
- package/docs/api/inbox.d.ts +709 -0
- package/docs/api/inbox.md +1067 -0
- package/docs/api/install.d.ts +213 -0
- package/docs/api/install.md +317 -0
- package/docs/api/installedApps.d.ts +131 -0
- package/docs/api/installedApps.md +241 -0
- package/docs/api/integrationStatus.d.ts +142 -0
- package/docs/api/integrationStatus.md +205 -0
- package/docs/api/integrations.d.ts +2327 -0
- package/docs/api/integrations.md +3791 -0
- package/docs/api/intent.d.ts +482 -0
- package/docs/api/intent.md +858 -0
- package/docs/api/knowledge.d.ts +501 -0
- package/docs/api/knowledge.md +843 -0
- package/docs/api/knowledgeBase.d.ts +84 -0
- package/docs/api/knowledgeBase.md +96 -0
- package/docs/api/landingPages.d.ts +1411 -0
- package/docs/api/landingPages.md +2488 -0
- package/docs/api/leads.d.ts +133 -0
- package/docs/api/leads.md +180 -0
- package/docs/api/library.d.ts +217 -0
- package/docs/api/library.md +338 -0
- package/docs/api/linkedIn.d.ts +227 -0
- package/docs/api/linkedIn.md +289 -0
- package/docs/api/linkedInOutreach.d.ts +727 -0
- package/docs/api/linkedInOutreach.md +990 -0
- package/docs/api/lists.d.ts +1106 -0
- package/docs/api/lists.md +1609 -0
- package/docs/api/logs.d.ts +71 -0
- package/docs/api/logs.md +70 -0
- package/docs/api/mailboxes.d.ts +1050 -0
- package/docs/api/mailboxes.md +1690 -0
- package/docs/api/marketingIntelligence.d.ts +256 -0
- package/docs/api/marketingIntelligence.md +454 -0
- package/docs/api/marketplace.d.ts +3173 -0
- package/docs/api/marketplace.md +5953 -0
- package/docs/api/mcp.d.ts +69 -0
- package/docs/api/mcp.md +69 -0
- package/docs/api/me.d.ts +54 -0
- package/docs/api/me.md +56 -0
- package/docs/api/meetings.d.ts +539 -0
- package/docs/api/meetings.md +747 -0
- package/docs/api/newsletter.d.ts +1613 -0
- package/docs/api/newsletter.md +2746 -0
- package/docs/api/notes.d.ts +517 -0
- package/docs/api/notes.md +888 -0
- package/docs/api/notifications.d.ts +94 -0
- package/docs/api/notifications.md +105 -0
- package/docs/api/objects.d.ts +621 -0
- package/docs/api/objects.md +1098 -0
- package/docs/api/openSearch.d.ts +234 -0
- package/docs/api/openSearch.md +297 -0
- package/docs/api/ops.d.ts +299 -0
- package/docs/api/ops.md +339 -0
- package/docs/api/orgGovernance.d.ts +393 -0
- package/docs/api/orgGovernance.md +623 -0
- package/docs/api/orgVideos.d.ts +184 -0
- package/docs/api/orgVideos.md +252 -0
- package/docs/api/organizationSettings.d.ts +626 -0
- package/docs/api/organizationSettings.md +911 -0
- package/docs/api/phoneNumbers.d.ts +484 -0
- package/docs/api/phoneNumbers.md +777 -0
- package/docs/api/profile.d.ts +329 -0
- package/docs/api/profile.md +540 -0
- package/docs/api/programmaticPages.d.ts +400 -0
- package/docs/api/programmaticPages.md +626 -0
- package/docs/api/providerDomains.d.ts +866 -0
- package/docs/api/providerDomains.md +1446 -0
- package/docs/api/providerUsage.d.ts +129 -0
- package/docs/api/providerUsage.md +186 -0
- package/docs/api/public.d.ts +69 -0
- package/docs/api/public.md +78 -0
- package/docs/api/publicCopilot.d.ts +67 -0
- package/docs/api/publicCopilot.md +80 -0
- package/docs/api/publicSignals.d.ts +66 -0
- package/docs/api/publicSignals.md +71 -0
- package/docs/api/publicVisitors.d.ts +97 -0
- package/docs/api/publicVisitors.md +118 -0
- package/docs/api/quotes.d.ts +1564 -0
- package/docs/api/quotes.md +2553 -0
- package/docs/api/radar.d.ts +808 -0
- package/docs/api/radar.md +1431 -0
- package/docs/api/radarReports.d.ts +208 -0
- package/docs/api/radarReports.md +306 -0
- package/docs/api/recordRoles.d.ts +143 -0
- package/docs/api/recordRoles.md +175 -0
- package/docs/api/repos.d.ts +146 -0
- package/docs/api/repos.md +211 -0
- package/docs/api/research.d.ts +295 -0
- package/docs/api/research.md +534 -0
- package/docs/api/revenue.d.ts +402 -0
- package/docs/api/revenue.md +608 -0
- package/docs/api/revenueAnalytics.d.ts +147 -0
- package/docs/api/revenueAnalytics.md +212 -0
- package/docs/api/revenueLifecycle.d.ts +207 -0
- package/docs/api/revenueLifecycle.md +274 -0
- package/docs/api/revenueRecords.d.ts +372 -0
- package/docs/api/revenueRecords.md +563 -0
- package/docs/api/roles.d.ts +431 -0
- package/docs/api/roles.md +812 -0
- package/docs/api/salesCoach.d.ts +877 -0
- package/docs/api/salesCoach.md +1540 -0
- package/docs/api/sandbox.d.ts +210 -0
- package/docs/api/sandbox.md +380 -0
- package/docs/api/scans.d.ts +104 -0
- package/docs/api/scans.md +136 -0
- package/docs/api/scheduleBuy.d.ts +293 -0
- package/docs/api/scheduleBuy.md +431 -0
- package/docs/api/scraping.d.ts +266 -0
- package/docs/api/scraping.md +383 -0
- package/docs/api/sdrAnalytics.d.ts +138 -0
- package/docs/api/sdrAnalytics.md +246 -0
- package/docs/api/search.d.ts +598 -0
- package/docs/api/search.md +866 -0
- package/docs/api/seo.d.ts +447 -0
- package/docs/api/seo.md +660 -0
- package/docs/api/sequenceLifecycle.d.ts +439 -0
- package/docs/api/sequenceLifecycle.md +513 -0
- package/docs/api/sequences.d.ts +1936 -0
- package/docs/api/sequences.md +3232 -0
- package/docs/api/settings.d.ts +448 -0
- package/docs/api/settings.md +731 -0
- package/docs/api/signals.d.ts +1441 -0
- package/docs/api/signals.md +2526 -0
- package/docs/api/signatures.d.ts +719 -0
- package/docs/api/signatures.md +1247 -0
- package/docs/api/skills.d.ts +230 -0
- package/docs/api/skills.md +466 -0
- package/docs/api/snippet.d.ts +85 -0
- package/docs/api/snippet.md +106 -0
- package/docs/api/socialPublishing.d.ts +824 -0
- package/docs/api/socialPublishing.md +1245 -0
- package/docs/api/studioDocuments.d.ts +244 -0
- package/docs/api/studioDocuments.md +348 -0
- package/docs/api/support.d.ts +90 -0
- package/docs/api/support.md +76 -0
- package/docs/api/suppressions.d.ts +241 -0
- package/docs/api/suppressions.md +343 -0
- package/docs/api/surveys.d.ts +847 -0
- package/docs/api/surveys.md +1223 -0
- package/docs/api/tasks.d.ts +813 -0
- package/docs/api/tasks.md +1344 -0
- package/docs/api/teamMembers.d.ts +668 -0
- package/docs/api/teamMembers.md +1040 -0
- package/docs/api/teams.d.ts +784 -0
- package/docs/api/teams.md +1395 -0
- package/docs/api/usage.d.ts +277 -0
- package/docs/api/usage.md +389 -0
- package/docs/api/visitors.d.ts +690 -0
- package/docs/api/visitors.md +1075 -0
- package/docs/api/voice.d.ts +4661 -0
- package/docs/api/voice.md +7905 -0
- package/docs/api/webAnalytics.d.ts +964 -0
- package/docs/api/webAnalytics.md +1452 -0
- package/docs/api/webChat.d.ts +1704 -0
- package/docs/api/webChat.md +2048 -0
- package/docs/api/webhooks.d.ts +251 -0
- package/docs/api/webhooks.md +386 -0
- package/docs/api/websiteEditor.d.ts +324 -0
- package/docs/api/websiteEditor.md +517 -0
- package/docs/api/work.d.ts +2298 -0
- package/docs/api/work.md +3096 -0
- package/docs/api/workbench.d.ts +2962 -0
- package/docs/api/workbench.md +4884 -0
- package/docs/api/workflows.d.ts +1218 -0
- package/docs/api/workflows.md +2302 -0
- package/docs/sdk-clients.md +4339 -0
- package/package.json +10 -3
|
@@ -0,0 +1,1052 @@
|
|
|
1
|
+
import type { AnalyticsInterface } from "@jitsu/js";
|
|
2
|
+
import type { G8Config, TrackProperties, IdentifyProperties } from "./types";
|
|
3
|
+
import { createFormsClient } from "./forms";
|
|
4
|
+
import { createVisitorsClient } from "./visitors";
|
|
5
|
+
import { createCopilotClient } from "./copilot";
|
|
6
|
+
import { createChatClient } from "./chat";
|
|
7
|
+
import { createCalendarClient } from "./calendar";
|
|
8
|
+
import { createEnrichClient } from "./enrich";
|
|
9
|
+
import { createSequencesClient } from "./sequences";
|
|
10
|
+
import { createCampaignsClient } from "./campaigns";
|
|
11
|
+
import { createSignalsClient } from "./signals";
|
|
12
|
+
import { createVoiceClient } from "./voice";
|
|
13
|
+
import { createWebhooksClient } from "./webhooks";
|
|
14
|
+
import { createContactsClient } from "./contacts";
|
|
15
|
+
import { createCompaniesClient } from "./companies";
|
|
16
|
+
import { createListsClient } from "./lists";
|
|
17
|
+
import { createNotesClient } from "./notes";
|
|
18
|
+
import { createMailboxesClient } from "./mailboxes";
|
|
19
|
+
import { createApiClient } from "./api";
|
|
20
|
+
import { createNewsletterClient } from "./newsletter";
|
|
21
|
+
import { createTasksClient } from "./tasks";
|
|
22
|
+
import { createAppsClient } from "./apps";
|
|
23
|
+
import { createAppPlatformClient } from "./appPlatform";
|
|
24
|
+
import { createFieldsClient } from "./fields";
|
|
25
|
+
import { createObjectsClient } from "./objects";
|
|
26
|
+
import { createDealsClient } from "./deals";
|
|
27
|
+
import { createInboxClient } from "./inbox";
|
|
28
|
+
import { createQuotesClient } from "./quotes";
|
|
29
|
+
import { createPipelinesClient } from "./pipelines";
|
|
30
|
+
import { createWorkflowsClient } from "./workflows";
|
|
31
|
+
import { createSkillsClient } from "./skills";
|
|
32
|
+
import { createIntentClient } from "./intent";
|
|
33
|
+
import { createStudioClient } from "./studio";
|
|
34
|
+
import { createMeetingsClient } from "./meetings";
|
|
35
|
+
import { createAudiencesClient } from "./audiences";
|
|
36
|
+
import { createSearchClient } from "./search";
|
|
37
|
+
import { createAgencyClient } from "./agency";
|
|
38
|
+
import { createMarketplaceClient } from "./marketplace";
|
|
39
|
+
import { createSnippetClient } from "./snippet";
|
|
40
|
+
/**
|
|
41
|
+
* graph8 SDK client.
|
|
42
|
+
*
|
|
43
|
+
* Handles event tracking, identity, and progressive forms.
|
|
44
|
+
*
|
|
45
|
+
* Usage:
|
|
46
|
+
* import { g8 } from '@graph8/sdk';
|
|
47
|
+
* g8.init({ writeKey: 'your_write_key' });
|
|
48
|
+
* g8.track('page_view', { page: '/pricing' });
|
|
49
|
+
* g8.identify('user@acme.com', { name: 'John', company: 'Acme' });
|
|
50
|
+
*/
|
|
51
|
+
declare class G8 {
|
|
52
|
+
/** @internal */ client: AnalyticsInterface | null;
|
|
53
|
+
/** @internal */ config: G8Config | null;
|
|
54
|
+
/** @internal */ _forms: ReturnType<typeof createFormsClient> | null;
|
|
55
|
+
/** @internal */ _visitors: ReturnType<typeof createVisitorsClient> | null;
|
|
56
|
+
/** @internal */ _copilot: ReturnType<typeof createCopilotClient> | null;
|
|
57
|
+
/** @internal */ _chat: ReturnType<typeof createChatClient> | null;
|
|
58
|
+
/** @internal */ _calendar: ReturnType<typeof createCalendarClient> | null;
|
|
59
|
+
/** @internal */ _enrich: ReturnType<typeof createEnrichClient> | null;
|
|
60
|
+
/** @internal */ _sequences: ReturnType<typeof createSequencesClient> | null;
|
|
61
|
+
/** @internal */ _campaigns: ReturnType<typeof createCampaignsClient> | null;
|
|
62
|
+
/** @internal */ _signals: ReturnType<typeof createSignalsClient> | null;
|
|
63
|
+
/** @internal */ _voice: ReturnType<typeof createVoiceClient> | null;
|
|
64
|
+
/** @internal */ _webhooks: ReturnType<typeof createWebhooksClient> | null;
|
|
65
|
+
/** @internal */ _contacts: ReturnType<typeof createContactsClient> | null;
|
|
66
|
+
/** @internal */ _companies: ReturnType<typeof createCompaniesClient> | null;
|
|
67
|
+
/** @internal */ _lists: ReturnType<typeof createListsClient> | null;
|
|
68
|
+
/** @internal */ _notes: ReturnType<typeof createNotesClient> | null;
|
|
69
|
+
/** @internal */ _mailboxes: ReturnType<typeof createMailboxesClient> | null;
|
|
70
|
+
/** @internal */ _api: ReturnType<typeof createApiClient> | null;
|
|
71
|
+
/** @internal */ _newsletter: ReturnType<typeof createNewsletterClient> | null;
|
|
72
|
+
/** @internal */ _tasks: ReturnType<typeof createTasksClient> | null;
|
|
73
|
+
/** @internal */ _fields: ReturnType<typeof createFieldsClient> | null;
|
|
74
|
+
/** @internal */ _apps: ReturnType<typeof createAppsClient> | null;
|
|
75
|
+
/** @internal */ _appPlatform: ReturnType<typeof createAppPlatformClient> | null;
|
|
76
|
+
/** @internal */ _objects: ReturnType<typeof createObjectsClient> | null;
|
|
77
|
+
/** @internal */ _deals: ReturnType<typeof createDealsClient> | null;
|
|
78
|
+
/** @internal */ _inbox: ReturnType<typeof createInboxClient> | null;
|
|
79
|
+
/** @internal */ _quotes: ReturnType<typeof createQuotesClient> | null;
|
|
80
|
+
/** @internal */ _pipelines: ReturnType<typeof createPipelinesClient> | null;
|
|
81
|
+
/** @internal */ _workflows: ReturnType<typeof createWorkflowsClient> | null;
|
|
82
|
+
/** @internal */ _skills: ReturnType<typeof createSkillsClient> | null;
|
|
83
|
+
/** @internal */ _intent: ReturnType<typeof createIntentClient> | null;
|
|
84
|
+
/** @internal */ _studio: ReturnType<typeof createStudioClient> | null;
|
|
85
|
+
/** @internal */ _meetings: ReturnType<typeof createMeetingsClient> | null;
|
|
86
|
+
/** @internal */ _audiences: ReturnType<typeof createAudiencesClient> | null;
|
|
87
|
+
/** @internal */ _search: ReturnType<typeof createSearchClient> | null;
|
|
88
|
+
/** @internal */ _agency: ReturnType<typeof createAgencyClient> | null;
|
|
89
|
+
/** @internal */ _marketplace: ReturnType<typeof createMarketplaceClient> | null;
|
|
90
|
+
/** @internal */ _snippet: ReturnType<typeof createSnippetClient> | null;
|
|
91
|
+
/**
|
|
92
|
+
* Initialize the graph8 SDK. Must be called before any other method.
|
|
93
|
+
* Safe to call on the server (SSR) - becomes a no-op for tracking.
|
|
94
|
+
*/
|
|
95
|
+
init(config: G8Config): void;
|
|
96
|
+
/** Track a custom event. */
|
|
97
|
+
track(event: string, properties?: TrackProperties): void;
|
|
98
|
+
/** Identify a user with properties. */
|
|
99
|
+
identify(userId: string, properties?: IdentifyProperties): void;
|
|
100
|
+
/** Track a page view. */
|
|
101
|
+
page(properties?: TrackProperties): void;
|
|
102
|
+
/** Clear user identity (on logout). */
|
|
103
|
+
reset(): void;
|
|
104
|
+
/** Progressive form helpers. */
|
|
105
|
+
get forms(): {
|
|
106
|
+
lookup(email: string): Promise<import("./types").EnrichLookupResult>;
|
|
107
|
+
};
|
|
108
|
+
/** Visitor intelligence - IP to company, engagement scoring. */
|
|
109
|
+
get visitors(): {
|
|
110
|
+
identify(): Promise<import("./visitors").VisitorCompany>;
|
|
111
|
+
score(): Promise<import("./visitors").VisitorScore>;
|
|
112
|
+
onIntent(level: "low" | "medium" | "high", callback: (visitor: import("./visitors").VisitorCompany & import("./visitors").VisitorScore) => void): () => void;
|
|
113
|
+
};
|
|
114
|
+
/** AI copilot widget. */
|
|
115
|
+
get copilot(): {
|
|
116
|
+
open(config?: import("./copilot").CopilotConfig): void;
|
|
117
|
+
ask(message: string): Promise<string>;
|
|
118
|
+
registerAction(name: string, handler: (params: Record<string, unknown>) => void | Promise<void>): void;
|
|
119
|
+
on(event: "message" | "error" | "open" | "close" | "tool_used", callback: (data: Record<string, unknown>) => void): void;
|
|
120
|
+
close(): void;
|
|
121
|
+
};
|
|
122
|
+
/** Webchat widget. */
|
|
123
|
+
get chat(): {
|
|
124
|
+
open(config?: import("./chat").ChatConfig): void;
|
|
125
|
+
send(message: string): void;
|
|
126
|
+
on(event: "message" | "error" | "open" | "close" | "human_transfer", callback: (data: Record<string, unknown>) => void): void;
|
|
127
|
+
configure(config: Partial<import("./chat").ChatConfig>): void;
|
|
128
|
+
close(): void;
|
|
129
|
+
};
|
|
130
|
+
/** Calendar and booking. */
|
|
131
|
+
get calendar(): {
|
|
132
|
+
show(config: import("./calendar").CalendarConfig): void;
|
|
133
|
+
embed(selector: string, config: import("./calendar").CalendarConfig): void;
|
|
134
|
+
slots(username: string, eventSlug: string, range: {
|
|
135
|
+
start: string;
|
|
136
|
+
end: string;
|
|
137
|
+
}): Promise<import("./calendar").TimeSlot[]>;
|
|
138
|
+
book(request: import("./calendar").BookingRequest): Promise<import("./calendar").Booking | null>;
|
|
139
|
+
on(event: "booked" | "cancelled" | "slot_selected", callback: (data: Record<string, unknown>) => void): void;
|
|
140
|
+
};
|
|
141
|
+
/** Enrichment API (requires API key). */
|
|
142
|
+
get enrich(): {
|
|
143
|
+
person(params: {
|
|
144
|
+
email?: string;
|
|
145
|
+
linkedin_url?: string;
|
|
146
|
+
first_name?: string;
|
|
147
|
+
last_name?: string;
|
|
148
|
+
company_domain?: string;
|
|
149
|
+
}): Promise<import("./enrich").PersonEnrichment>;
|
|
150
|
+
company(params: {
|
|
151
|
+
domain?: string;
|
|
152
|
+
name?: string;
|
|
153
|
+
}): Promise<import("./enrich").CompanyEnrichment>;
|
|
154
|
+
verifyEmail(email: string): Promise<import("./enrich").EmailVerification>;
|
|
155
|
+
search(filters: import("./enrich").SearchFilter[], page?: number, limit?: number): Promise<import("./enrich").SearchResults>;
|
|
156
|
+
};
|
|
157
|
+
/** Sequences (requires API key). */
|
|
158
|
+
get sequences(): {
|
|
159
|
+
list: {
|
|
160
|
+
(): Promise<import("./sequences").SequenceListItem[]>;
|
|
161
|
+
(page: number, limit?: number): Promise<import("./sequences").SequenceListItem[]>;
|
|
162
|
+
(params: import("./sequences").SequenceListParams): Promise<import("./sequences").SequenceListItem[]>;
|
|
163
|
+
};
|
|
164
|
+
get(sequenceId: string): Promise<import("./sequences").SequenceDetail>;
|
|
165
|
+
contacts(sequenceId: string, params?: import("./sequences").SequenceContactsParams): Promise<{
|
|
166
|
+
data: import("./sequences").SequenceContactItem[];
|
|
167
|
+
pagination?: import("./sequences").PaginationMeta;
|
|
168
|
+
}>;
|
|
169
|
+
add(config: import("./sequences").AddToSequenceConfig, idempotencyKey?: string): Promise<import("./sequences").SequenceActionResult>;
|
|
170
|
+
create(payload: import("./sequences").SequenceCreateParams, idempotencyKey?: string): Promise<import("./sequences").SequenceCreateResult>;
|
|
171
|
+
update(sequenceId: string, fields: import("./sequences").SequenceUpdateParams): Promise<import("./sequences").SequenceActionResult>;
|
|
172
|
+
updateStep(sequenceId: string, stepId: string, fields: import("./sequences").SequenceStepUpdateParams): Promise<import("./sequences").SequenceActionResult>;
|
|
173
|
+
delete(sequenceId: string): Promise<import("./sequences").SequenceActionResult>;
|
|
174
|
+
run(sequenceId: string, idempotencyKey?: string): Promise<import("./sequences").SequenceActionResult>;
|
|
175
|
+
pause(sequenceId: string, idempotencyKey?: string): Promise<import("./sequences").SequenceActionResult>;
|
|
176
|
+
resume(sequenceId: string, idempotencyKey?: string): Promise<import("./sequences").SequenceActionResult>;
|
|
177
|
+
preview(sequenceId: string): Promise<import("./sequences").SequencePreview>;
|
|
178
|
+
analytics(sequenceId: string): Promise<import("./sequences").SequenceAnalytics>;
|
|
179
|
+
};
|
|
180
|
+
/** Campaigns (requires API key). */
|
|
181
|
+
get campaigns(): {
|
|
182
|
+
list(page?: number, limit?: number): Promise<import("./campaigns").Campaign[]>;
|
|
183
|
+
get(campaignId: string): Promise<import("./campaigns").Campaign>;
|
|
184
|
+
create(config: import("./campaigns").CampaignCreateConfig): Promise<import("./campaigns").Campaign>;
|
|
185
|
+
launch(campaignId: string): Promise<import("./campaigns").CampaignLaunchResult>;
|
|
186
|
+
};
|
|
187
|
+
/** Intent signals. */
|
|
188
|
+
get signals(): {
|
|
189
|
+
company(domain: string): Promise<import("./signals").IntentSignals>;
|
|
190
|
+
stream(domains: string[], callback: (signals: import("./signals").IntentSignals[]) => void): () => void;
|
|
191
|
+
};
|
|
192
|
+
/** Voice AI (requires API key). */
|
|
193
|
+
get voice(): {
|
|
194
|
+
on(event: "error" | "connected" | "ended" | "transcription", callback: (data: Record<string, unknown>) => void): void;
|
|
195
|
+
dialer: {
|
|
196
|
+
listSessions(params?: import("./voice").DialerSessionsListParams): Promise<import("./voice").DialerSessionsListResult>;
|
|
197
|
+
createSession(payload: import("./voice").DialerSessionCreateParams): Promise<import("./voice").DialerSessionCreateResult>;
|
|
198
|
+
updateSessionStatus(sessionId: string, status: import("./voice").DialerSessionStatus): Promise<import("./voice").DialerSessionStatusUpdateResult>;
|
|
199
|
+
resumeSession(sessionId: string, maxContacts?: number): Promise<import("./voice").DialerSessionResumeResult>;
|
|
200
|
+
stats(params?: import("./voice").DialerStatsParams): Promise<import("./voice").DialerStatsResult>;
|
|
201
|
+
numbers(userEmail?: string): Promise<import("./voice").DialerNumbersListResult>;
|
|
202
|
+
missedCallbacks(limit?: number): Promise<import("./voice").MissedCallbacksResult>;
|
|
203
|
+
callGrading(roomName: string): Promise<import("./voice").CallGradingResult>;
|
|
204
|
+
agents(params?: import("./voice").DialerAgentsListParams): Promise<import("./voice").DialerAgentsListResult>;
|
|
205
|
+
callTranscript(roomName: string): Promise<{
|
|
206
|
+
data: {
|
|
207
|
+
status: string;
|
|
208
|
+
transcript: Array<{
|
|
209
|
+
speaker: string;
|
|
210
|
+
text: string;
|
|
211
|
+
timestamp: number;
|
|
212
|
+
}>;
|
|
213
|
+
};
|
|
214
|
+
}>;
|
|
215
|
+
listCalls(params?: {
|
|
216
|
+
contact_id?: number;
|
|
217
|
+
user_email?: string;
|
|
218
|
+
campaign_id?: string;
|
|
219
|
+
date_from?: string;
|
|
220
|
+
date_to?: string;
|
|
221
|
+
limit?: number;
|
|
222
|
+
page?: number;
|
|
223
|
+
}): Promise<{
|
|
224
|
+
data: Array<Record<string, unknown>>;
|
|
225
|
+
pagination?: import("./voice").VoicePagination;
|
|
226
|
+
}>;
|
|
227
|
+
listCallsForContact(contactId: number, extra?: {
|
|
228
|
+
limit?: number;
|
|
229
|
+
}): Promise<{
|
|
230
|
+
data: Array<Record<string, unknown>>;
|
|
231
|
+
}>;
|
|
232
|
+
listCallsForSdr(userEmail: string, extra?: {
|
|
233
|
+
limit?: number;
|
|
234
|
+
date_from?: string;
|
|
235
|
+
date_to?: string;
|
|
236
|
+
}): Promise<{
|
|
237
|
+
data: Array<Record<string, unknown>>;
|
|
238
|
+
}>;
|
|
239
|
+
};
|
|
240
|
+
};
|
|
241
|
+
/** Webhook event listeners (requires API key). */
|
|
242
|
+
get webhooks(): {
|
|
243
|
+
baseUrl: string;
|
|
244
|
+
knownEvents: readonly ["campaign.created", "campaign.updated", "campaign.deleted", "campaign.launched", "campaign.paused", "campaign.completed", "campaign.status_changed", "campaign.content_ready", "document.generated", "document.failed", "intelligence.completed", "intelligence.failed", "company.enriched", "company_intelligence.completed", "audience.ready", "audience.failed", "sequence.draft_created", "sequence.started", "sequence.paused", "sequence.completed", "engagement.email_sent", "engagement.email_replied", "engagement.email_bounced", "engagement.email_skipped", "engagement.call_dispatched", "engagement.call_connected", "engagement.call_graded", "engagement.sms_sent", "engagement.sms_replied", "engagement.whatsapp_sent", "engagement.linkedin_connection_sent", "engagement.linkedin_message_sent", "engagement.linkedin_inmail_sent", "engagement.linkedin_reply_received", "engagement.linkedin_connection_accepted", "meeting.booked", "meeting.cancelled", "meeting.rescheduled", "deal.won", "crm.record.created", "crm.record.updated", "crm.record.archived", "crm.record.restored", "sequence.contact_enrolled", "sequence.contact_removed", "sequence.step_completed", "sequence.step_failed", "engagement.contact_unsubscribed", "engagement.sms_delivered", "engagement.sms_failed", "engagement.whatsapp_delivered", "engagement.whatsapp_failed", "engagement.call_started", "engagement.call_completed", "engagement.call_disposition_set", "engagement.voicemail_detected", "engagement.voicemail_left", "engagement.email_clicked", "engagement.link_clicked", "engagement.call_recording_ready", "meeting.no_show", "voice_ai.call_started", "voice_ai.call_completed", "voice_ai.voicemail_left", "deal.created", "deal.updated", "deal.stage_changed", "deal.deleted", "quote.created", "quote.updated", "quote.sent", "quote.resent", "quote.resend_failed", "quote.link_generated", "quote.viewed", "quote.accepted", "quote.declined", "quote.expired", "quote.voided", "quote.superseded", "quote.archived", "quote.unarchived", "quote.payment_received", "quote.payment_failed", "quote.subscription_canceled", "quote.provisioned", "form.submitted", "visitor.identified", "intent.signal", "task.created", "task.updated", "task.completed", "task.deleted", "enrichment.job_completed", "enrichment.job_failed", "workflow.execution_completed", "workflow.execution_failed"];
|
|
245
|
+
constructEvent(payload: string, signature: string, timestamp: string | number, secret: string, opts?: import("./webhooks").ConstructEventOptions): import("./webhooks").WebhookEventPayload;
|
|
246
|
+
};
|
|
247
|
+
/** Contacts CRUD (requires API key). */
|
|
248
|
+
get contacts(): {
|
|
249
|
+
list(params?: import("./contacts").ContactListParams): Promise<{
|
|
250
|
+
data: import("./contacts").Contact[];
|
|
251
|
+
total: number;
|
|
252
|
+
}>;
|
|
253
|
+
getMany: (contactIds: number[], options?: {
|
|
254
|
+
includeCustomFields?: boolean;
|
|
255
|
+
}) => Promise<import("./contacts").ContactBulkGetItem[]>;
|
|
256
|
+
listDetailed(params?: import("./contacts").ContactListParams, options?: {
|
|
257
|
+
includeCustomFields?: boolean;
|
|
258
|
+
}): Promise<{
|
|
259
|
+
data: import("./contacts").ContactDetail[];
|
|
260
|
+
total: number;
|
|
261
|
+
missing: number[];
|
|
262
|
+
}>;
|
|
263
|
+
get(contactId: number): Promise<import("./contacts").Contact>;
|
|
264
|
+
create(contact: import("./contacts").ContactCreateParams, idempotencyKey?: string): Promise<import("./contacts").Contact>;
|
|
265
|
+
upsert(contact: import("./contacts").ContactUpsertParams): Promise<import("./contacts").ContactUpsertResult>;
|
|
266
|
+
update(contactId: number, fields: import("./contacts").ContactUpdateParams): Promise<{
|
|
267
|
+
updated: number;
|
|
268
|
+
}>;
|
|
269
|
+
delete(contactId: number): Promise<{
|
|
270
|
+
deleted: boolean;
|
|
271
|
+
}>;
|
|
272
|
+
listColumns(listId?: number): Promise<{
|
|
273
|
+
data: import("./contacts").ContactColumn[];
|
|
274
|
+
}>;
|
|
275
|
+
createColumn(params: import("./contacts").ContactColumnCreateParams): Promise<import("./contacts").ContactColumn>;
|
|
276
|
+
};
|
|
277
|
+
/** Companies CRUD (requires API key). */
|
|
278
|
+
get companies(): {
|
|
279
|
+
create(params: import("./companies").CompanyCreateParams): Promise<import("./companies").CompanyCreateResult>;
|
|
280
|
+
list(params?: import("./companies").CompanyListParams): Promise<{
|
|
281
|
+
data: import("./companies").Company[];
|
|
282
|
+
total: number;
|
|
283
|
+
}>;
|
|
284
|
+
get(companyId: number): Promise<import("./companies").Company>;
|
|
285
|
+
contacts(companyId: number, limit?: number, offset?: number): Promise<{
|
|
286
|
+
data: import("./companies").CompanyContact[];
|
|
287
|
+
total: number;
|
|
288
|
+
}>;
|
|
289
|
+
update(companyId: number, fields: import("./companies").CompanyUpdateParams): Promise<{
|
|
290
|
+
updated: number;
|
|
291
|
+
}>;
|
|
292
|
+
delete(companyId: number): Promise<{
|
|
293
|
+
deleted: boolean;
|
|
294
|
+
}>;
|
|
295
|
+
listColumns(listId?: number): Promise<{
|
|
296
|
+
data: import("./companies").CompanyColumn[];
|
|
297
|
+
}>;
|
|
298
|
+
createColumn(params: import("./companies").CompanyColumnCreateParams): Promise<import("./companies").CompanyColumn>;
|
|
299
|
+
};
|
|
300
|
+
/** Lists management (requires API key). */
|
|
301
|
+
get lists(): {
|
|
302
|
+
list(page?: number, limit?: number): Promise<{
|
|
303
|
+
data: import("./lists").ContactList[];
|
|
304
|
+
total: number;
|
|
305
|
+
}>;
|
|
306
|
+
create(title: string, type?: "contacts" | "companies"): Promise<import("./lists").ContactList>;
|
|
307
|
+
delete(listId: number): Promise<{
|
|
308
|
+
deleted: boolean;
|
|
309
|
+
}>;
|
|
310
|
+
contacts(listId: number, page?: number, limit?: number): Promise<{
|
|
311
|
+
data: import("./lists").ListContact[];
|
|
312
|
+
total: number;
|
|
313
|
+
}>;
|
|
314
|
+
addContacts(listId: number, contactIds: number[]): Promise<{
|
|
315
|
+
added: number;
|
|
316
|
+
}>;
|
|
317
|
+
removeContacts(listId: number, contactIds: number[]): Promise<{
|
|
318
|
+
removed: number;
|
|
319
|
+
}>;
|
|
320
|
+
};
|
|
321
|
+
/** Notes on contacts, companies and deals (requires API key). */
|
|
322
|
+
get notes(): {
|
|
323
|
+
list(contactId: number): Promise<{
|
|
324
|
+
data: import("./notes").Note[];
|
|
325
|
+
}>;
|
|
326
|
+
create(contactId: number, content: string): Promise<import("./notes").Note>;
|
|
327
|
+
listForCompany(companyId: number): Promise<{
|
|
328
|
+
data: import("./notes").Note[];
|
|
329
|
+
}>;
|
|
330
|
+
createForCompany(companyId: number, content: string): Promise<import("./notes").Note>;
|
|
331
|
+
listForDeal(dealId: string): Promise<{
|
|
332
|
+
data: import("./notes").Note[];
|
|
333
|
+
}>;
|
|
334
|
+
createForDeal(dealId: string, content: string): Promise<import("./notes").Note>;
|
|
335
|
+
update(noteId: string, content: string): Promise<import("./notes").Note>;
|
|
336
|
+
delete(noteId: string): Promise<{
|
|
337
|
+
data: {
|
|
338
|
+
deleted: boolean;
|
|
339
|
+
};
|
|
340
|
+
}>;
|
|
341
|
+
};
|
|
342
|
+
/** Sending mailboxes — connect, read, update, test-connection, delete, list, warmup (requires API key). */
|
|
343
|
+
get mailboxes(): {
|
|
344
|
+
list(params?: import("./mailboxes").MailboxListParams): Promise<{
|
|
345
|
+
data: import("./mailboxes").MailboxListItem[];
|
|
346
|
+
}>;
|
|
347
|
+
warmup(mailboxId: number): Promise<import("./mailboxes").MailboxWarmupAnalytics>;
|
|
348
|
+
create(params: import("./mailboxes").MailboxCreateParams): Promise<import("./mailboxes").Mailbox>;
|
|
349
|
+
get(mailboxId: number): Promise<import("./mailboxes").Mailbox>;
|
|
350
|
+
update(mailboxId: number, params: import("./mailboxes").MailboxUpdateParams): Promise<import("./mailboxes").Mailbox>;
|
|
351
|
+
delete(mailboxId: number): Promise<import("./mailboxes").MailboxDeleteResult>;
|
|
352
|
+
testConnection(mailboxId: number, params?: import("./mailboxes").MailboxTestConnectionParams): Promise<import("./mailboxes").MailboxTestConnectionResult>;
|
|
353
|
+
};
|
|
354
|
+
/**
|
|
355
|
+
* The full published Developer API, generated from the contract (requires API key).
|
|
356
|
+
*
|
|
357
|
+
* Covers every operation the API serves, including the surfaces that have no
|
|
358
|
+
* hand-written client. Two equivalent call styles:
|
|
359
|
+
*
|
|
360
|
+
* await g8.api.contacts.listContacts({ query: { limit: 50 } });
|
|
361
|
+
* await g8.api.call("list_contacts_contacts_get", { query: { limit: 50 } });
|
|
362
|
+
*
|
|
363
|
+
* Unlike the ergonomic clients above it returns the response envelope exactly
|
|
364
|
+
* as the contract declares it — nothing is unwrapped or renamed. Prefer the
|
|
365
|
+
* hand-written client when one exists; reach for this for everything else.
|
|
366
|
+
*/
|
|
367
|
+
get api(): import("./api").ApiClient;
|
|
368
|
+
/** Newsletters, issues and subscribers (requires API key). */
|
|
369
|
+
get newsletter(): {
|
|
370
|
+
list(params?: import("./newsletter").NewsletterListParams): Promise<{
|
|
371
|
+
data: import("./newsletter").Newsletter[];
|
|
372
|
+
}>;
|
|
373
|
+
create(params: import("./newsletter").NewsletterCreateParams): Promise<import("./newsletter").Newsletter>;
|
|
374
|
+
templates(): Promise<{
|
|
375
|
+
data: import("./newsletter").NewsletterTemplate[];
|
|
376
|
+
}>;
|
|
377
|
+
get(newsletterId: string): Promise<import("./newsletter").Newsletter>;
|
|
378
|
+
listIssues(newsletterId: string): Promise<{
|
|
379
|
+
data: import("./newsletter").NewsletterIssue[];
|
|
380
|
+
}>;
|
|
381
|
+
createIssue(newsletterId: string, params: import("./newsletter").NewsletterIssueCreateParams): Promise<import("./newsletter").NewsletterIssue>;
|
|
382
|
+
getIssue(newsletterId: string, issueId: string): Promise<import("./newsletter").NewsletterIssue>;
|
|
383
|
+
updateIssue(newsletterId: string, issueId: string, params: import("./newsletter").NewsletterIssueUpdateParams): Promise<import("./newsletter").NewsletterIssue>;
|
|
384
|
+
duplicateIssue(newsletterId: string, issueId: string): Promise<import("./newsletter").NewsletterIssue>;
|
|
385
|
+
sendIssue(newsletterId: string, issueId: string, opts?: {
|
|
386
|
+
idempotencyKey?: string;
|
|
387
|
+
scheduled_at?: string;
|
|
388
|
+
}): Promise<{
|
|
389
|
+
data: unknown;
|
|
390
|
+
}>;
|
|
391
|
+
sendTestEmail(newsletterId: string, issueId: string, testEmail: string): Promise<{
|
|
392
|
+
data: unknown;
|
|
393
|
+
}>;
|
|
394
|
+
issueKpis(newsletterId: string, issueId: string): Promise<import("./newsletter").NewsletterIssueKpis>;
|
|
395
|
+
listSubscribers(newsletterId: string, params?: import("./newsletter").NewsletterListParams): Promise<{
|
|
396
|
+
data: import("./newsletter").NewsletterSubscriber[];
|
|
397
|
+
}>;
|
|
398
|
+
addSubscriber(newsletterId: string, email: string, opts?: {
|
|
399
|
+
first_name?: string;
|
|
400
|
+
last_name?: string;
|
|
401
|
+
}): Promise<import("./newsletter").NewsletterSubscriber>;
|
|
402
|
+
unsubscribe(newsletterId: string, subscriberId: string): Promise<{
|
|
403
|
+
data: unknown;
|
|
404
|
+
}>;
|
|
405
|
+
};
|
|
406
|
+
/** Tasks on contacts (requires API key). */
|
|
407
|
+
get tasks(): {
|
|
408
|
+
listForContact(contactId: number, status?: string): Promise<{
|
|
409
|
+
data: import("./tasks").Task[];
|
|
410
|
+
}>;
|
|
411
|
+
list(params?: import("./tasks").TaskListParams): Promise<{
|
|
412
|
+
data: import("./tasks").Task[];
|
|
413
|
+
}>;
|
|
414
|
+
create(contactId: number, task: import("./tasks").TaskCreateParams): Promise<import("./tasks").Task>;
|
|
415
|
+
update(taskId: string, fields: import("./tasks").TaskUpdateParams): Promise<import("./tasks").Task>;
|
|
416
|
+
delete(taskId: string): Promise<{
|
|
417
|
+
data: {
|
|
418
|
+
deleted: boolean;
|
|
419
|
+
};
|
|
420
|
+
}>;
|
|
421
|
+
};
|
|
422
|
+
/** Custom fields management (requires API key). */
|
|
423
|
+
get fields(): {
|
|
424
|
+
listContactFields(listId?: number): Promise<{
|
|
425
|
+
data: import("./fields").Field[];
|
|
426
|
+
}>;
|
|
427
|
+
listCompanyFields(listId?: number): Promise<{
|
|
428
|
+
data: import("./fields").Field[];
|
|
429
|
+
}>;
|
|
430
|
+
create(params: import("./fields").FieldCreateParams): Promise<import("./fields").CreatedField>;
|
|
431
|
+
delete(columnId: number, params?: import("./fields").FieldDeleteParams): Promise<{
|
|
432
|
+
data: {
|
|
433
|
+
column_id: number;
|
|
434
|
+
deleted: boolean;
|
|
435
|
+
};
|
|
436
|
+
}>;
|
|
437
|
+
setValue(columnId: number, params: import("./fields").SetFieldValueParams): Promise<{
|
|
438
|
+
data: {
|
|
439
|
+
column_id: number;
|
|
440
|
+
record_id: number;
|
|
441
|
+
updated: boolean;
|
|
442
|
+
};
|
|
443
|
+
}>;
|
|
444
|
+
};
|
|
445
|
+
/** Apps you build on graph8 — lifecycle, installs, usage, limits (requires API key). PREVIEW. */
|
|
446
|
+
get apps(): {
|
|
447
|
+
list(): Promise<{
|
|
448
|
+
data: import("./apps").App[];
|
|
449
|
+
}>;
|
|
450
|
+
get(appId: string): Promise<import("./apps").App>;
|
|
451
|
+
create(params: import("./apps").AppCreateParams): Promise<import("./apps").App>;
|
|
452
|
+
setStatus(appId: string, status: Exclude<import("./apps").AppStatus, "suspended">): Promise<import("./apps").App>;
|
|
453
|
+
listInstalls(appId: string): Promise<{
|
|
454
|
+
data: import("./apps").AppInstallation[];
|
|
455
|
+
}>;
|
|
456
|
+
usage(appId: string, period?: string): Promise<import("./apps").AppUsageSummary>;
|
|
457
|
+
getLimit(appId: string): Promise<import("./apps").AppLimit | null>;
|
|
458
|
+
};
|
|
459
|
+
/**
|
|
460
|
+
* Ship a hosted app: bind a source, deploy, promote, attach a hostname, read
|
|
461
|
+
* build logs (requires API key). PREVIEW.
|
|
462
|
+
*
|
|
463
|
+
* Separate from `apps` on purpose. `apps` is the app's IDENTITY -- create it,
|
|
464
|
+
* see who installed it, what it cost. This is its LIFECYCLE, and the two have
|
|
465
|
+
* different blast radii: a mistake here takes a customer's app down.
|
|
466
|
+
*/
|
|
467
|
+
get appPlatform(): {
|
|
468
|
+
setSource(appId: string, params: import("./appPlatform").AppSourceParams): Promise<Record<string, unknown>>;
|
|
469
|
+
clearSource(appId: string): Promise<Record<string, unknown>>;
|
|
470
|
+
listDeployments(appId: string): Promise<{
|
|
471
|
+
data: import("./appPlatform").Deployment[];
|
|
472
|
+
}>;
|
|
473
|
+
deploy(appId: string, params: import("./appPlatform").CreateDeploymentParams): Promise<import("./appPlatform").Deployment>;
|
|
474
|
+
getDeployment(appId: string, deploymentId: string): Promise<import("./appPlatform").Deployment>;
|
|
475
|
+
activeDeployment(appId: string): Promise<import("./appPlatform").Deployment | null>;
|
|
476
|
+
promote(appId: string, deploymentId: string, imageDigest: string): Promise<import("./appPlatform").Deployment>;
|
|
477
|
+
rollback(appId: string, deploymentId: string): Promise<import("./appPlatform").Deployment>;
|
|
478
|
+
deploymentLogs(appId: string, deploymentId: string, tailLines?: number): Promise<import("./appPlatform").AppLogs>;
|
|
479
|
+
logs(appId: string, tailLines?: number): Promise<import("./appPlatform").AppLogs>;
|
|
480
|
+
listDomains(appId: string): Promise<{
|
|
481
|
+
data: import("./appPlatform").AppDomain[];
|
|
482
|
+
}>;
|
|
483
|
+
claimDomain(appId: string, hostname: string): Promise<import("./appPlatform").DomainVerificationInstructions>;
|
|
484
|
+
verifyDomain(appId: string, hostname: string): Promise<import("./appPlatform").AppDomain>;
|
|
485
|
+
releaseDomain(appId: string, hostname: string): Promise<{
|
|
486
|
+
hostname: string;
|
|
487
|
+
released: boolean;
|
|
488
|
+
}>;
|
|
489
|
+
listSecrets(appId: string): Promise<{
|
|
490
|
+
data: import("./appPlatform").AppSecretMetadata[];
|
|
491
|
+
}>;
|
|
492
|
+
putSecret(appId: string, secretKey: string, providerRef?: string): Promise<import("./appPlatform").AppSecretMetadata>;
|
|
493
|
+
deleteSecret(appId: string, secretKey: string): Promise<{
|
|
494
|
+
secret_key: string;
|
|
495
|
+
removed: boolean;
|
|
496
|
+
}>;
|
|
497
|
+
publishSchemaVersion(appId: string, objects: unknown[]): Promise<{
|
|
498
|
+
version: import("./appPlatform").SchemaVersion;
|
|
499
|
+
}>;
|
|
500
|
+
listSchemaVersions(appId: string): Promise<{
|
|
501
|
+
data: import("./appPlatform").SchemaVersion[];
|
|
502
|
+
}>;
|
|
503
|
+
};
|
|
504
|
+
/** Custom object types, their schema, and their records (requires API key). PREVIEW. */
|
|
505
|
+
get objects(): {
|
|
506
|
+
list(params?: {
|
|
507
|
+
include_archived?: boolean;
|
|
508
|
+
}): Promise<{
|
|
509
|
+
data: import("./objects").CustomObject[];
|
|
510
|
+
}>;
|
|
511
|
+
create(input: import("./objects").CreateCustomObject): Promise<import("./objects").CustomObject>;
|
|
512
|
+
update(objectSlug: string, input: import("./objects").UpdateCustomObject): Promise<import("./objects").CustomObject>;
|
|
513
|
+
archive(objectSlug: string): Promise<import("./objects").CustomObject>;
|
|
514
|
+
get(objectSlug: string): Promise<import("./objects").CustomObject>;
|
|
515
|
+
listAttributes(objectSlug: string, params?: {
|
|
516
|
+
include_archived?: boolean;
|
|
517
|
+
}): Promise<{
|
|
518
|
+
data: import("./objects").CustomObjectAttribute[];
|
|
519
|
+
}>;
|
|
520
|
+
createAttribute(objectSlug: string, input: import("./objects").CreateCustomObjectAttribute): Promise<import("./objects").CustomObjectAttribute>;
|
|
521
|
+
updateAttribute(objectSlug: string, attributeSlug: string, input: import("./objects").UpdateCustomObjectAttribute): Promise<import("./objects").CustomObjectAttribute>;
|
|
522
|
+
archiveAttribute(objectSlug: string, attributeSlug: string): Promise<import("./objects").CustomObjectAttribute>;
|
|
523
|
+
listRecords(objectSlug: string, params?: import("./objects").ListRecordsParams): Promise<{
|
|
524
|
+
data: import("./objects").CustomObjectRecord[];
|
|
525
|
+
pagination?: import("./objects").ObjectPagination;
|
|
526
|
+
}>;
|
|
527
|
+
createRecord(objectSlug: string, values: Record<string, unknown>): Promise<import("./objects").CustomObjectRecord>;
|
|
528
|
+
upsertRecord(objectSlug: string, matchingAttribute: string, values: Record<string, unknown>, options?: {
|
|
529
|
+
expectedRevision?: number;
|
|
530
|
+
}): Promise<import("./objects").CustomObjectRecord>;
|
|
531
|
+
getRecord(objectSlug: string, recordId: string): Promise<import("./objects").CustomObjectRecord>;
|
|
532
|
+
updateRecord(objectSlug: string, recordId: string, values: Record<string, unknown>, options?: {
|
|
533
|
+
expectedRevision?: number;
|
|
534
|
+
appendValues?: Record<string, unknown[]>;
|
|
535
|
+
removeValues?: Record<string, unknown[]>;
|
|
536
|
+
}): Promise<import("./objects").CustomObjectRecord>;
|
|
537
|
+
archiveRecord(objectSlug: string, recordId: string): Promise<import("./objects").CustomObjectRecord>;
|
|
538
|
+
restoreRecord(objectSlug: string, recordId: string): Promise<import("./objects").CustomObjectRecord>;
|
|
539
|
+
history(objectSlug: string, recordId: string, limit?: number): Promise<import("./objects").CustomObjectHistory>;
|
|
540
|
+
changes(objectSlug: string, recordId: string, options?: {
|
|
541
|
+
limit?: number;
|
|
542
|
+
cursor?: string;
|
|
543
|
+
}): Promise<import("./objects").CustomObjectMutations>;
|
|
544
|
+
};
|
|
545
|
+
/** Deals and pipelines (requires API key). */
|
|
546
|
+
get deals(): {
|
|
547
|
+
pipelines(): Promise<{
|
|
548
|
+
data: import("./deals").Pipeline[];
|
|
549
|
+
}>;
|
|
550
|
+
list(params?: import("./deals").DealListParams): Promise<{
|
|
551
|
+
data: import("./deals").Deal[];
|
|
552
|
+
pagination?: import("./deals").PaginationMeta;
|
|
553
|
+
}>;
|
|
554
|
+
create(deal: import("./deals").DealCreateParams): Promise<import("./deals").Deal>;
|
|
555
|
+
get(dealId: string): Promise<import("./deals").Deal>;
|
|
556
|
+
update(dealId: string, fields: import("./deals").DealUpdateParams): Promise<import("./deals").Deal>;
|
|
557
|
+
delete(dealId: string): Promise<{
|
|
558
|
+
data: {
|
|
559
|
+
deleted: boolean;
|
|
560
|
+
};
|
|
561
|
+
}>;
|
|
562
|
+
forContact(contactId: number): Promise<{
|
|
563
|
+
data: import("./deals").ContactDeal[];
|
|
564
|
+
}>;
|
|
565
|
+
forCompany(companyId: number): Promise<{
|
|
566
|
+
data: import("./deals").ContactDeal[];
|
|
567
|
+
}>;
|
|
568
|
+
};
|
|
569
|
+
/** Multi-channel inbox — read + reply across email, SMS, LinkedIn (requires API key). */
|
|
570
|
+
get inbox(): {
|
|
571
|
+
list(params?: import("./inbox").InboxListParams): Promise<{
|
|
572
|
+
data: import("./inbox").InboxThread[];
|
|
573
|
+
}>;
|
|
574
|
+
get(replyId: string, channel?: import("./inbox").InboxChannel): Promise<import("./inbox").InboxThread>;
|
|
575
|
+
assign(replyId: string, assigneeEmail: string, channel?: import("./inbox").InboxChannel): Promise<import("./inbox").InboxAssignResult>;
|
|
576
|
+
tag(replyId: string, tagIds: string[], channel?: import("./inbox").InboxChannel): Promise<import("./inbox").InboxTagResult>;
|
|
577
|
+
draft(replyId: string, channel?: import("./inbox").InboxChannel): Promise<import("./inbox").InboxDraft>;
|
|
578
|
+
send(replyId: string, payload: import("./inbox").InboxSendParams): Promise<import("./inbox").InboxSendResult>;
|
|
579
|
+
};
|
|
580
|
+
/** Quote-to-cash: draft, send, sign, payment-link quotes (requires API key). */
|
|
581
|
+
get quotes(): {
|
|
582
|
+
list(params?: import("./quotes").QuoteListParams): Promise<{
|
|
583
|
+
data: import("./quotes").QuoteSummary[];
|
|
584
|
+
pagination?: import("./quotes").PaginationMeta;
|
|
585
|
+
}>;
|
|
586
|
+
get(quoteId: string): Promise<import("./quotes").QuoteDetail>;
|
|
587
|
+
create(quote: import("./quotes").QuoteCreateParams): Promise<import("./quotes").QuoteDetail>;
|
|
588
|
+
update(quoteId: string, fields: import("./quotes").QuoteUpdateParams): Promise<import("./quotes").QuoteDetail>;
|
|
589
|
+
delete(quoteId: string): Promise<{
|
|
590
|
+
data: {
|
|
591
|
+
deleted: boolean;
|
|
592
|
+
};
|
|
593
|
+
}>;
|
|
594
|
+
duplicate(quoteId: string): Promise<import("./quotes").QuoteDetail>;
|
|
595
|
+
editAsDraft(quoteId: string): Promise<{
|
|
596
|
+
data: {
|
|
597
|
+
id: string;
|
|
598
|
+
status: string;
|
|
599
|
+
};
|
|
600
|
+
}>;
|
|
601
|
+
send(quoteId: string, params: import("./quotes").QuoteSendParams): Promise<import("./quotes").QuoteDetail>;
|
|
602
|
+
products(): Promise<{
|
|
603
|
+
data: import("./quotes").QuotableProduct[];
|
|
604
|
+
}>;
|
|
605
|
+
settings(): Promise<import("./quotes").QuoteSettings>;
|
|
606
|
+
forContact(contactId: number): Promise<{
|
|
607
|
+
data: import("./quotes").QuoteSummary[];
|
|
608
|
+
}>;
|
|
609
|
+
forCompany(companyId: number): Promise<{
|
|
610
|
+
data: import("./quotes").QuoteSummary[];
|
|
611
|
+
}>;
|
|
612
|
+
};
|
|
613
|
+
/** Stage Checklist v2 pipelines: workflow stages with evidence + scripts (requires API key). */
|
|
614
|
+
get pipelines(): {
|
|
615
|
+
list(): Promise<{
|
|
616
|
+
data: import("./pipelines").StagePipeline[];
|
|
617
|
+
}>;
|
|
618
|
+
get(pipelineId: string): Promise<import("./pipelines").StagePipeline>;
|
|
619
|
+
evidenceLibrary(): Promise<{
|
|
620
|
+
data: import("./pipelines").EvidenceKey[];
|
|
621
|
+
}>;
|
|
622
|
+
create(params: import("./pipelines").StagePipelineCreateParams): Promise<import("./pipelines").StagePipeline>;
|
|
623
|
+
update(pipelineId: string, fields: import("./pipelines").StagePipelineUpdateParams): Promise<import("./pipelines").StagePipeline>;
|
|
624
|
+
delete(pipelineId: string): Promise<{
|
|
625
|
+
data: {
|
|
626
|
+
deleted: boolean;
|
|
627
|
+
};
|
|
628
|
+
}>;
|
|
629
|
+
createStage(pipelineId: string, stage: import("./pipelines").StageCreateParams): Promise<import("./pipelines").StagePipelineStage>;
|
|
630
|
+
updateStage(pipelineId: string, stageId: string, fields: import("./pipelines").StageUpdateParams): Promise<import("./pipelines").StagePipelineStage>;
|
|
631
|
+
reorderStages(pipelineId: string, stageIds: string[]): Promise<{
|
|
632
|
+
data: import("./pipelines").StagePipelineStage[];
|
|
633
|
+
}>;
|
|
634
|
+
deleteStage(pipelineId: string, stageId: string): Promise<{
|
|
635
|
+
data: {
|
|
636
|
+
deleted: boolean;
|
|
637
|
+
};
|
|
638
|
+
}>;
|
|
639
|
+
suggest(): Promise<{
|
|
640
|
+
data: import("./pipelines").PipelineSuggestion;
|
|
641
|
+
}>;
|
|
642
|
+
fromSuggestion(suggestionId: string, overrides?: Partial<{
|
|
643
|
+
name: string;
|
|
644
|
+
target: string;
|
|
645
|
+
}>): Promise<import("./pipelines").StagePipeline>;
|
|
646
|
+
};
|
|
647
|
+
/** Workflow builder — multi-node automation graphs with execution lifecycle (requires API key). */
|
|
648
|
+
get workflows(): {
|
|
649
|
+
list(params?: import("./workflows").WorkflowListParams): Promise<{
|
|
650
|
+
data: import("./workflows").Workflow[];
|
|
651
|
+
}>;
|
|
652
|
+
get(workflowId: string): Promise<import("./workflows").Workflow>;
|
|
653
|
+
create(params: import("./workflows").WorkflowCreateParams): Promise<import("./workflows").Workflow>;
|
|
654
|
+
update(workflowId: string, fields: import("./workflows").WorkflowUpdateParams): Promise<import("./workflows").Workflow>;
|
|
655
|
+
delete(workflowId: string): Promise<{
|
|
656
|
+
data: {
|
|
657
|
+
deleted: boolean;
|
|
658
|
+
};
|
|
659
|
+
}>;
|
|
660
|
+
validate(workflow: {
|
|
661
|
+
config: import("./workflows").WorkflowConfig;
|
|
662
|
+
trigger_config?: Record<string, unknown>;
|
|
663
|
+
}): Promise<{
|
|
664
|
+
data: {
|
|
665
|
+
valid: boolean;
|
|
666
|
+
errors: Array<{
|
|
667
|
+
node_id?: string;
|
|
668
|
+
field?: string;
|
|
669
|
+
message: string;
|
|
670
|
+
}>;
|
|
671
|
+
};
|
|
672
|
+
}>;
|
|
673
|
+
execute(workflowId: string, triggerPayload?: Record<string, unknown>): Promise<import("./workflows").WorkflowExecution>;
|
|
674
|
+
getExecution(executionId: string): Promise<import("./workflows").WorkflowExecution>;
|
|
675
|
+
pauseExecution(executionId: string): Promise<{
|
|
676
|
+
data: {
|
|
677
|
+
paused: boolean;
|
|
678
|
+
};
|
|
679
|
+
}>;
|
|
680
|
+
resumeExecution(executionId: string): Promise<{
|
|
681
|
+
data: {
|
|
682
|
+
resumed: boolean;
|
|
683
|
+
};
|
|
684
|
+
}>;
|
|
685
|
+
stopExecution(executionId: string): Promise<{
|
|
686
|
+
data: {
|
|
687
|
+
stopped: boolean;
|
|
688
|
+
};
|
|
689
|
+
}>;
|
|
690
|
+
getTriggerStatus(workflowId: string): Promise<{
|
|
691
|
+
data: {
|
|
692
|
+
status: string;
|
|
693
|
+
details: Record<string, unknown>;
|
|
694
|
+
};
|
|
695
|
+
}>;
|
|
696
|
+
resetTrigger(workflowId: string): Promise<{
|
|
697
|
+
data: {
|
|
698
|
+
reset: boolean;
|
|
699
|
+
};
|
|
700
|
+
}>;
|
|
701
|
+
nodeTypes(params?: {
|
|
702
|
+
type?: string;
|
|
703
|
+
}): Promise<{
|
|
704
|
+
data: import("./workflows").NodeTypeSchema[];
|
|
705
|
+
}>;
|
|
706
|
+
listSlackUsers(): Promise<{
|
|
707
|
+
data: Array<{
|
|
708
|
+
id: string;
|
|
709
|
+
name: string;
|
|
710
|
+
email: string | null;
|
|
711
|
+
}>;
|
|
712
|
+
}>;
|
|
713
|
+
listSlackChannels(): Promise<{
|
|
714
|
+
data: Array<{
|
|
715
|
+
id: string;
|
|
716
|
+
name: string;
|
|
717
|
+
is_private: boolean;
|
|
718
|
+
}>;
|
|
719
|
+
}>;
|
|
720
|
+
listRoamUsers(): Promise<{
|
|
721
|
+
data: Array<{
|
|
722
|
+
id: string;
|
|
723
|
+
name: string;
|
|
724
|
+
email: string | null;
|
|
725
|
+
}>;
|
|
726
|
+
}>;
|
|
727
|
+
listRoamGroups(): Promise<{
|
|
728
|
+
data: Array<{
|
|
729
|
+
id: string;
|
|
730
|
+
name: string;
|
|
731
|
+
}>;
|
|
732
|
+
}>;
|
|
733
|
+
listMcpServers(): Promise<{
|
|
734
|
+
data: Array<{
|
|
735
|
+
id: string;
|
|
736
|
+
name: string;
|
|
737
|
+
url: string;
|
|
738
|
+
}>;
|
|
739
|
+
}>;
|
|
740
|
+
listDispositions(): Promise<{
|
|
741
|
+
data: Array<{
|
|
742
|
+
id: string;
|
|
743
|
+
label: string;
|
|
744
|
+
}>;
|
|
745
|
+
}>;
|
|
746
|
+
listFormFields(formId: string): Promise<{
|
|
747
|
+
data: Array<{
|
|
748
|
+
name: string;
|
|
749
|
+
type: string;
|
|
750
|
+
required: boolean;
|
|
751
|
+
}>;
|
|
752
|
+
}>;
|
|
753
|
+
};
|
|
754
|
+
/** Skill authoring — LLM and API building blocks that workflows compose (requires API key). */
|
|
755
|
+
get skills(): {
|
|
756
|
+
list(params?: import("./skills").SkillListParams): Promise<{
|
|
757
|
+
data: import("./skills").Skill[];
|
|
758
|
+
}>;
|
|
759
|
+
get(skillId: string): Promise<import("./skills").Skill>;
|
|
760
|
+
getVariables(skillId: string): Promise<{
|
|
761
|
+
data: import("./skills").SkillInputField[];
|
|
762
|
+
}>;
|
|
763
|
+
listModels(): Promise<{
|
|
764
|
+
data: Array<{
|
|
765
|
+
id: string;
|
|
766
|
+
label: string;
|
|
767
|
+
provider: string;
|
|
768
|
+
}>;
|
|
769
|
+
}>;
|
|
770
|
+
listTemplates(params?: {
|
|
771
|
+
type?: import("./skills").SkillType;
|
|
772
|
+
}): Promise<{
|
|
773
|
+
data: import("./skills").SkillTemplate[];
|
|
774
|
+
}>;
|
|
775
|
+
createLLM(params: import("./skills").SkillCreateLLMParams): Promise<import("./skills").Skill>;
|
|
776
|
+
createAPI(params: import("./skills").SkillCreateAPIParams): Promise<import("./skills").Skill>;
|
|
777
|
+
createFromTemplate(params: {
|
|
778
|
+
title: string;
|
|
779
|
+
template_id: string;
|
|
780
|
+
overrides?: Record<string, unknown>;
|
|
781
|
+
}): Promise<import("./skills").Skill>;
|
|
782
|
+
createFromNode(params: {
|
|
783
|
+
title: string;
|
|
784
|
+
description?: string;
|
|
785
|
+
node_id: string;
|
|
786
|
+
input_mapping?: Record<string, string>;
|
|
787
|
+
output_mapping?: Record<string, string>;
|
|
788
|
+
}): Promise<import("./skills").Skill>;
|
|
789
|
+
updateLLM(skillId: string, fields: import("./skills").SkillUpdateLLMParams): Promise<import("./skills").Skill>;
|
|
790
|
+
updateAPI(skillId: string, fields: import("./skills").SkillUpdateAPIParams): Promise<import("./skills").Skill>;
|
|
791
|
+
delete(skillId: string): Promise<{
|
|
792
|
+
data: {
|
|
793
|
+
deleted: boolean;
|
|
794
|
+
};
|
|
795
|
+
}>;
|
|
796
|
+
validate(skill: Partial<import("./skills").Skill>): Promise<{
|
|
797
|
+
data: {
|
|
798
|
+
valid: boolean;
|
|
799
|
+
errors: string[];
|
|
800
|
+
};
|
|
801
|
+
}>;
|
|
802
|
+
execute(skillId: string, inputPayload: Record<string, unknown>): Promise<{
|
|
803
|
+
data: {
|
|
804
|
+
output: Record<string, unknown>;
|
|
805
|
+
latency_ms: number;
|
|
806
|
+
tokens?: number;
|
|
807
|
+
error: string | null;
|
|
808
|
+
};
|
|
809
|
+
}>;
|
|
810
|
+
};
|
|
811
|
+
/** Intent tracking — keyword groups, page visitors, account-level intent (requires API key). */
|
|
812
|
+
get intent(): {
|
|
813
|
+
stats(): Promise<{
|
|
814
|
+
data: import("./intent").IntentStats;
|
|
815
|
+
}>;
|
|
816
|
+
listKeywords(params?: {
|
|
817
|
+
page?: number;
|
|
818
|
+
limit?: number;
|
|
819
|
+
search?: string;
|
|
820
|
+
}): Promise<{
|
|
821
|
+
data: import("./intent").IntentKeyword[];
|
|
822
|
+
}>;
|
|
823
|
+
createFromDomain(domain: string): Promise<{
|
|
824
|
+
data: import("./intent").IntentKeyword;
|
|
825
|
+
}>;
|
|
826
|
+
deleteKeyword(keywordId: string): Promise<{
|
|
827
|
+
data: {
|
|
828
|
+
deleted: boolean;
|
|
829
|
+
};
|
|
830
|
+
}>;
|
|
831
|
+
keywordCompanies(keywordId: string, params?: {
|
|
832
|
+
limit?: number;
|
|
833
|
+
date_from?: string;
|
|
834
|
+
date_to?: string;
|
|
835
|
+
}): Promise<{
|
|
836
|
+
data: import("./intent").IntentCompany[];
|
|
837
|
+
}>;
|
|
838
|
+
keywordContacts(keywordId: string, params?: {
|
|
839
|
+
limit?: number;
|
|
840
|
+
date_from?: string;
|
|
841
|
+
date_to?: string;
|
|
842
|
+
}): Promise<{
|
|
843
|
+
data: import("./intent").IntentContact[];
|
|
844
|
+
}>;
|
|
845
|
+
keywordUrls(keywordId: string, params?: {
|
|
846
|
+
limit?: number;
|
|
847
|
+
}): Promise<{
|
|
848
|
+
data: import("./intent").IntentPage[];
|
|
849
|
+
}>;
|
|
850
|
+
pagesByDomain(domain: string, params?: {
|
|
851
|
+
limit?: number;
|
|
852
|
+
}): Promise<{
|
|
853
|
+
data: import("./intent").IntentPage[];
|
|
854
|
+
}>;
|
|
855
|
+
searchPages(query: string, params?: {
|
|
856
|
+
limit?: number;
|
|
857
|
+
}): Promise<{
|
|
858
|
+
data: import("./intent").IntentPage[];
|
|
859
|
+
}>;
|
|
860
|
+
pageVisitors(pageUrl: string, params?: {
|
|
861
|
+
limit?: number;
|
|
862
|
+
date_from?: string;
|
|
863
|
+
date_to?: string;
|
|
864
|
+
}): Promise<{
|
|
865
|
+
data: import("./intent").IntentVisitor[];
|
|
866
|
+
}>;
|
|
867
|
+
pageContacts(pageUrl: string, params?: {
|
|
868
|
+
limit?: number;
|
|
869
|
+
}): Promise<{
|
|
870
|
+
data: import("./intent").IntentContact[];
|
|
871
|
+
}>;
|
|
872
|
+
pageVisitorCounts(urls: string[]): Promise<{
|
|
873
|
+
data: Array<{
|
|
874
|
+
url: string;
|
|
875
|
+
visitor_count: number;
|
|
876
|
+
}>;
|
|
877
|
+
}>;
|
|
878
|
+
urlCompanies(url: string, params?: {
|
|
879
|
+
limit?: number;
|
|
880
|
+
days?: number;
|
|
881
|
+
date_from?: string;
|
|
882
|
+
date_to?: string;
|
|
883
|
+
}): Promise<import("./intent").IntentUrlCompaniesResponse>;
|
|
884
|
+
};
|
|
885
|
+
/** Studio context — ICPs, personas, brand briefs, intelligence, AI research reports (requires API key). */
|
|
886
|
+
get studio(): {
|
|
887
|
+
globalContext(params?: {
|
|
888
|
+
category?: string;
|
|
889
|
+
limit?: number;
|
|
890
|
+
include_content?: boolean;
|
|
891
|
+
}): Promise<{
|
|
892
|
+
data: import("./studio").GlobalContextDocument[];
|
|
893
|
+
}>;
|
|
894
|
+
icps(params?: {
|
|
895
|
+
status?: string;
|
|
896
|
+
limit?: number;
|
|
897
|
+
}): Promise<{
|
|
898
|
+
data: import("./studio").ICP[];
|
|
899
|
+
}>;
|
|
900
|
+
personas(params?: {
|
|
901
|
+
status?: string;
|
|
902
|
+
limit
|
|
903
|
+
/** @internal */ ? /** @internal */: number;
|
|
904
|
+
}): Promise<{
|
|
905
|
+
data: import("./studio").Persona[];
|
|
906
|
+
}>;
|
|
907
|
+
intelligenceData(params?: {
|
|
908
|
+
source_type?: string;
|
|
909
|
+
limit?: number;
|
|
910
|
+
}): Promise<{
|
|
911
|
+
data: import("./studio").IntelligenceData[];
|
|
912
|
+
}>;
|
|
913
|
+
researchReports(params?: {
|
|
914
|
+
category?: string;
|
|
915
|
+
limit?: number;
|
|
916
|
+
}): Promise<{
|
|
917
|
+
data: import("./studio").ResearchReport[];
|
|
918
|
+
}>;
|
|
919
|
+
createIcp(body: {
|
|
920
|
+
name: string;
|
|
921
|
+
website_url: string;
|
|
922
|
+
description?: string;
|
|
923
|
+
firmographics?: Record<string, unknown>;
|
|
924
|
+
tech_stack?: Record<string, unknown>;
|
|
925
|
+
buying_signals?: unknown[];
|
|
926
|
+
estimated_market_size?: number;
|
|
927
|
+
}): Promise<{
|
|
928
|
+
data: import("./studio").ICP;
|
|
929
|
+
}>;
|
|
930
|
+
updateIcp(icpId: string, body: {
|
|
931
|
+
name?: string;
|
|
932
|
+
description?: string;
|
|
933
|
+
firmographics?: Record<string, unknown>;
|
|
934
|
+
tech_stack?: Record<string, unknown>;
|
|
935
|
+
buying_signals?: unknown[];
|
|
936
|
+
estimated_market_size?: number;
|
|
937
|
+
}): Promise<{
|
|
938
|
+
data: import("./studio").ICP;
|
|
939
|
+
}>;
|
|
940
|
+
archiveIcp(icpId: string): Promise<{
|
|
941
|
+
data: import("./studio").ICP;
|
|
942
|
+
}>;
|
|
943
|
+
createPersona(body: {
|
|
944
|
+
title: string;
|
|
945
|
+
website_url: string;
|
|
946
|
+
priority?: number;
|
|
947
|
+
confidence?: string;
|
|
948
|
+
why_target?: string;
|
|
949
|
+
key_signals?: unknown[];
|
|
950
|
+
expected_receptivity?: string;
|
|
951
|
+
campaign_approach?: string;
|
|
952
|
+
recommended_goal?: string;
|
|
953
|
+
source?: string;
|
|
954
|
+
}): Promise<{
|
|
955
|
+
data: import("./studio").Persona;
|
|
956
|
+
}>;
|
|
957
|
+
updatePersona(personaId: string, body: {
|
|
958
|
+
title?: string;
|
|
959
|
+
priority?: number;
|
|
960
|
+
confidence?: string;
|
|
961
|
+
why_target?: string;
|
|
962
|
+
key_signals?: unknown[];
|
|
963
|
+
expected_receptivity?: string;
|
|
964
|
+
campaign_approach?: string;
|
|
965
|
+
recommended_goal?: string;
|
|
966
|
+
status?: string;
|
|
967
|
+
}): Promise<{
|
|
968
|
+
data: import("./studio").Persona;
|
|
969
|
+
}>;
|
|
970
|
+
archivePersona(personaId: string): Promise<{
|
|
971
|
+
data: import("./studio").Persona;
|
|
972
|
+
}>;
|
|
973
|
+
};
|
|
974
|
+
/** Meetings — read scheduled, completed, cancelled meetings with transcripts + AI analysis (requires API key). */
|
|
975
|
+
get meetings(): {
|
|
976
|
+
list(params?: import("./meetings").MeetingListParams): Promise<{
|
|
977
|
+
data: import("./meetings").MeetingSummary[];
|
|
978
|
+
pagination?: {
|
|
979
|
+
page: number;
|
|
980
|
+
limit: number;
|
|
981
|
+
total: number;
|
|
982
|
+
has_next: boolean;
|
|
983
|
+
};
|
|
984
|
+
}>;
|
|
985
|
+
get(meetingId: string): Promise<import("./meetings").MeetingDetail>;
|
|
986
|
+
};
|
|
987
|
+
/** Audiences — sync audience lists to ad platforms (Meta, LinkedIn, Google, X) (requires API key). */
|
|
988
|
+
get audiences(): {
|
|
989
|
+
list(): Promise<{
|
|
990
|
+
data: import("./audiences").AudienceSync[];
|
|
991
|
+
}>;
|
|
992
|
+
create(params: import("./audiences").AudienceSyncCreateParams): Promise<import("./audiences").AudienceSync>;
|
|
993
|
+
get(configId: number): Promise<import("./audiences").AudienceSync>;
|
|
994
|
+
update(configId: number, fields: import("./audiences").AudienceSyncUpdateParams): Promise<import("./audiences").AudienceSync>;
|
|
995
|
+
delete(configId: number): Promise<{
|
|
996
|
+
data: Record<string, unknown>;
|
|
997
|
+
}>;
|
|
998
|
+
trigger(configId: number): Promise<{
|
|
999
|
+
data: Record<string, unknown>;
|
|
1000
|
+
}>;
|
|
1001
|
+
runs(configId: number): Promise<{
|
|
1002
|
+
data: import("./audiences").AudienceSyncRun[];
|
|
1003
|
+
}>;
|
|
1004
|
+
errors(configId: number): Promise<{
|
|
1005
|
+
data: import("./audiences").AudienceSyncError[];
|
|
1006
|
+
}>;
|
|
1007
|
+
};
|
|
1008
|
+
/** Search — prospect open-data contacts + companies by filter, optionally save to a list (requires API key). */
|
|
1009
|
+
get search(): {
|
|
1010
|
+
contacts(params?: import("./search").SearchParams): Promise<{
|
|
1011
|
+
data: import("./search").SearchContactItem[];
|
|
1012
|
+
}>;
|
|
1013
|
+
companies(params?: import("./search").SearchParams): Promise<{
|
|
1014
|
+
data: import("./search").SearchCompanyItem[];
|
|
1015
|
+
}>;
|
|
1016
|
+
saveContacts(params: import("./search").SearchSaveParams): Promise<import("./search").SearchSaveResult>;
|
|
1017
|
+
saveCompanies(params: import("./search").SearchSaveParams): Promise<import("./search").SearchSaveResult>;
|
|
1018
|
+
};
|
|
1019
|
+
/** Agency — for agency keys: discover the agency credential + the client orgs it may target (requires API key). */
|
|
1020
|
+
get agency(): {
|
|
1021
|
+
me(): Promise<import("./agency").AgencyInfo>;
|
|
1022
|
+
clients(): Promise<{
|
|
1023
|
+
data: import("./agency").AgencyClient[];
|
|
1024
|
+
}>;
|
|
1025
|
+
};
|
|
1026
|
+
/** Marketplace — for SDR/AE talent: profile, hire offers (accept/reject), active hirings (requires API key). */
|
|
1027
|
+
get marketplace(): {
|
|
1028
|
+
profile(): Promise<import("./marketplace").MarketplaceProfile>;
|
|
1029
|
+
offers(): Promise<{
|
|
1030
|
+
offers: import("./marketplace").MarketplaceOffer[];
|
|
1031
|
+
count: number;
|
|
1032
|
+
}>;
|
|
1033
|
+
acceptOffer(hiringId: string): Promise<Record<string, unknown>>;
|
|
1034
|
+
rejectOffer(hiringId: string): Promise<Record<string, unknown>>;
|
|
1035
|
+
hirings(): Promise<{
|
|
1036
|
+
hirings: import("./marketplace").MarketplaceHiring[];
|
|
1037
|
+
count: number;
|
|
1038
|
+
}>;
|
|
1039
|
+
};
|
|
1040
|
+
/** Snippet — fetch your org's tracking snippet (write key + React/script-tag embeds + config) for embedding (requires API key). */
|
|
1041
|
+
get snippet(): {
|
|
1042
|
+
get(): Promise<import("./snippet").Snippet>;
|
|
1043
|
+
};
|
|
1044
|
+
/** Whether the SDK has been initialized. */
|
|
1045
|
+
get initialized(): boolean;
|
|
1046
|
+
/** @internal */
|
|
1047
|
+
_assertInit(): void;
|
|
1048
|
+
/** @internal */
|
|
1049
|
+
_assertKey(module: string): void;
|
|
1050
|
+
}
|
|
1051
|
+
export declare const g8: G8;
|
|
1052
|
+
export {};
|