@graph8/sdk 0.264.0 → 0.277.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 +3 -3
- package/dist/index.d.mts +140 -24
- package/dist/index.d.ts +140 -24
- package/dist/index.js +14 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -5
- package/dist/index.mjs.map +1 -1
- package/dist/react.d.mts +139 -22
- package/dist/react.d.ts +139 -22
- package/dist/react.js +13 -4
- package/dist/react.js.map +1 -1
- package/dist/react.mjs +13 -4
- package/dist/react.mjs.map +1 -1
- package/dist/types/core.d.ts +3 -1
- package/dist/types/enrich.d.ts +11 -4
- package/dist/types/index.d.ts +1 -1
- package/dist/types/react.d.ts +7 -3
- package/dist/types/search.d.ts +25 -1
- package/dist/types/version.d.ts +2 -2
- package/dist/types/webhooks.d.ts +2 -2
- package/docs/agents.md +7 -6
- package/docs/api/README.md +2 -2
- package/docs/api/accounts.d.ts +6 -0
- package/docs/api/adCampaigns.d.ts +6 -0
- package/docs/api/adCreatives.d.ts +6 -0
- package/docs/api/agency.d.ts +6 -0
- package/docs/api/agent.d.ts +6 -0
- package/docs/api/agents.d.ts +6 -0
- package/docs/api/aiInbox.d.ts +6 -0
- package/docs/api/analytics.d.ts +6 -0
- package/docs/api/apiKeys.d.ts +6 -0
- package/docs/api/appDeployments.d.ts +6 -0
- package/docs/api/appDomains.d.ts +6 -0
- package/docs/api/appLogs.d.ts +6 -0
- package/docs/api/appObjects.d.ts +6 -0
- package/docs/api/appPages.d.ts +6 -0
- package/docs/api/appPlatformTokens.d.ts +6 -0
- package/docs/api/appointments.d.ts +20 -2
- package/docs/api/appointments.md +27 -11
- package/docs/api/apps.d.ts +6 -0
- package/docs/api/apps.md +7 -5
- package/docs/api/assertUpsert.d.ts +12 -0
- package/docs/api/assertUpsert.md +4 -0
- package/docs/api/audienceSyncs.d.ts +6 -0
- package/docs/api/brandKit.d.ts +6 -0
- package/docs/api/bugReports.d.ts +6 -0
- package/docs/api/by-path.md +1 -0
- package/docs/api/calendarInvites.d.ts +6 -0
- package/docs/api/campaignWorkflows.d.ts +6 -0
- package/docs/api/campaigns.d.ts +6 -0
- package/docs/api/channels.d.ts +6 -0
- package/docs/api/cliCampaigns.d.ts +6 -0
- package/docs/api/cliPipelines.d.ts +6 -0
- package/docs/api/clickHouse.d.ts +6 -0
- package/docs/api/companies.d.ts +10 -2
- package/docs/api/companies.md +9 -2
- package/docs/api/companyIntelligence.d.ts +6 -0
- package/docs/api/contacts.d.ts +19 -4
- package/docs/api/contacts.md +13 -5
- package/docs/api/content.d.ts +6 -0
- package/docs/api/contentGridSkills.d.ts +6 -0
- package/docs/api/copilot.d.ts +6 -0
- package/docs/api/crmSyncs.d.ts +6 -0
- package/docs/api/customerSuccess.d.ts +6 -0
- package/docs/api/deals.d.ts +6 -0
- package/docs/api/deliverability.d.ts +6 -0
- package/docs/api/desk.d.ts +6 -0
- package/docs/api/dialer.d.ts +6 -0
- package/docs/api/documents.d.ts +6 -0
- package/docs/api/duplicates.d.ts +6 -0
- package/docs/api/eSignature.d.ts +6 -0
- package/docs/api/enrichment.d.ts +6 -0
- package/docs/api/events.d.ts +6 -0
- package/docs/api/fields.d.ts +6 -0
- package/docs/api/forms.d.ts +6 -0
- package/docs/api/gtmCampaigns.d.ts +6 -0
- package/docs/api/gtmContext.d.ts +6 -0
- package/docs/api/gtmDeliverability.d.ts +6 -0
- package/docs/api/gtmKnowledgeBase.d.ts +6 -0
- package/docs/api/gtmLibrary.d.ts +6 -0
- package/docs/api/imageLibrary.d.ts +6 -0
- package/docs/api/imports.d.ts +6 -0
- package/docs/api/inbox.d.ts +6 -0
- package/docs/api/install.d.ts +6 -0
- package/docs/api/installedApps.d.ts +6 -0
- package/docs/api/integrationStatus.d.ts +6 -0
- package/docs/api/integrations.d.ts +6 -0
- package/docs/api/intent.d.ts +6 -0
- package/docs/api/knowledge.d.ts +6 -0
- package/docs/api/knowledgeBase.d.ts +6 -0
- package/docs/api/landingPages.d.ts +6 -0
- package/docs/api/leads.d.ts +6 -0
- package/docs/api/library.d.ts +6 -0
- package/docs/api/linkedIn.d.ts +6 -0
- package/docs/api/linkedInOutreach.d.ts +6 -0
- package/docs/api/lists.d.ts +13 -0
- package/docs/api/lists.md +7 -0
- package/docs/api/logs.d.ts +6 -0
- package/docs/api/mailboxes.d.ts +6 -0
- package/docs/api/marketplace.d.ts +6 -0
- package/docs/api/mcp.d.ts +6 -0
- package/docs/api/me.d.ts +6 -0
- package/docs/api/meetings.d.ts +6 -0
- package/docs/api/newsletter.d.ts +6 -0
- package/docs/api/notes.d.ts +6 -0
- package/docs/api/notifications.d.ts +6 -0
- package/docs/api/objects.d.ts +6 -0
- package/docs/api/openSearch.d.ts +6 -0
- package/docs/api/ops.d.ts +6 -0
- package/docs/api/orgGovernance.d.ts +6 -0
- package/docs/api/orgVideos.d.ts +6 -0
- package/docs/api/organizationSettings.d.ts +6 -0
- package/docs/api/phoneNumbers.d.ts +6 -0
- package/docs/api/profile.d.ts +6 -0
- package/docs/api/programmaticPages.d.ts +6 -0
- package/docs/api/providerDomains.d.ts +6 -0
- package/docs/api/providerUsage.d.ts +6 -0
- package/docs/api/public.d.ts +6 -0
- package/docs/api/publicCopilot.d.ts +6 -0
- package/docs/api/publicSignals.d.ts +6 -0
- package/docs/api/publicVisitors.d.ts +6 -0
- package/docs/api/quotes.d.ts +6 -0
- package/docs/api/radarReports.d.ts +6 -0
- package/docs/api/recordRoles.d.ts +6 -0
- package/docs/api/repos.d.ts +6 -0
- package/docs/api/research.d.ts +6 -0
- package/docs/api/revenue.d.ts +6 -0
- package/docs/api/revenueAnalytics.d.ts +6 -0
- package/docs/api/revenueLifecycle.d.ts +11 -1
- package/docs/api/revenueLifecycle.md +11 -2
- package/docs/api/revenueRecords.d.ts +6 -0
- package/docs/api/roles.d.ts +49 -2
- package/docs/api/roles.md +65 -1
- package/docs/api/salesCoach.d.ts +6 -0
- package/docs/api/scans.d.ts +6 -0
- package/docs/api/scheduleBuy.d.ts +6 -0
- package/docs/api/scraping.d.ts +6 -0
- package/docs/api/search.d.ts +9 -1
- package/docs/api/search.md +3 -2
- package/docs/api/seo.d.ts +6 -0
- package/docs/api/sequenceLifecycle.d.ts +6 -0
- package/docs/api/sequences.d.ts +6 -0
- package/docs/api/settings.d.ts +6 -0
- package/docs/api/signals.d.ts +6 -0
- package/docs/api/signatures.d.ts +6 -0
- package/docs/api/snippet.d.ts +6 -0
- package/docs/api/socialPublishing.d.ts +6 -0
- package/docs/api/studioDocuments.d.ts +6 -0
- package/docs/api/support.d.ts +6 -0
- package/docs/api/suppressions.d.ts +6 -0
- package/docs/api/surveys.d.ts +6 -0
- package/docs/api/tasks.d.ts +6 -0
- package/docs/api/teamMembers.d.ts +6 -0
- package/docs/api/teams.d.ts +6 -0
- package/docs/api/usage.d.ts +6 -0
- package/docs/api/visitors.d.ts +6 -0
- package/docs/api/voice.d.ts +6 -0
- package/docs/api/webChat.d.ts +6 -0
- package/docs/api/webhooks.d.ts +6 -0
- package/docs/api/websiteEditor.d.ts +6 -0
- package/docs/api/work.d.ts +6 -0
- package/docs/api/workbench.d.ts +6 -0
- package/docs/api/workflows.d.ts +6 -0
- package/docs/sdk-clients.md +5 -5
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -858,6 +858,7 @@ var EXTERNAL_ROUTES = {
|
|
|
858
858
|
"/quotes/{quote_id}/unarchive",
|
|
859
859
|
"/radar/alerts/dispatch",
|
|
860
860
|
"/repos/{repo_id}/campaigns/{campaign_id}/launch",
|
|
861
|
+
"/roles/invite",
|
|
861
862
|
"/sales-coach/interviews/{interview_id}/members",
|
|
862
863
|
"/sales-coach/interviews/{interview_id}/members/{member_id}/send-invite",
|
|
863
864
|
"/sequencer/content/voice/test-call",
|
|
@@ -940,7 +941,7 @@ var EXTERNAL_ROUTES = {
|
|
|
940
941
|
};
|
|
941
942
|
|
|
942
943
|
// src/version.ts
|
|
943
|
-
var SDK_VERSION = "0.
|
|
944
|
+
var SDK_VERSION = "0.277.0";
|
|
944
945
|
var SDK_CLIENT_ID = `js-sdk/${SDK_VERSION}`;
|
|
945
946
|
|
|
946
947
|
// src/http.ts
|
|
@@ -1204,7 +1205,10 @@ var DEFAULT_API6 = "https://be.graph8.com";
|
|
|
1204
1205
|
var createEnrichClient = (apiKey, apiUrl) => {
|
|
1205
1206
|
const baseUrl = apiUrl || DEFAULT_API6;
|
|
1206
1207
|
return {
|
|
1207
|
-
/**
|
|
1208
|
+
/**
|
|
1209
|
+
* Look up a person by email, LinkedIn, or name + company. Costs 2 credits per
|
|
1210
|
+
* lookup, charged even when no match is found (`found: false`).
|
|
1211
|
+
*/
|
|
1208
1212
|
async person(params) {
|
|
1209
1213
|
const resp = await request(baseUrl, "/api/v1/enrichment/lookup/person", apiKey, {
|
|
1210
1214
|
method: "POST",
|
|
@@ -1212,7 +1216,10 @@ var createEnrichClient = (apiKey, apiUrl) => {
|
|
|
1212
1216
|
});
|
|
1213
1217
|
return resp.data ?? resp;
|
|
1214
1218
|
},
|
|
1215
|
-
/**
|
|
1219
|
+
/**
|
|
1220
|
+
* Look up a company by domain or name. Costs 2 credits per lookup, charged
|
|
1221
|
+
* even when no match is found (`found: false`).
|
|
1222
|
+
*/
|
|
1216
1223
|
async company(params) {
|
|
1217
1224
|
const resp = await request(baseUrl, "/api/v1/enrichment/lookup/company", apiKey, {
|
|
1218
1225
|
method: "POST",
|
|
@@ -1228,7 +1235,7 @@ var createEnrichClient = (apiKey, apiUrl) => {
|
|
|
1228
1235
|
});
|
|
1229
1236
|
return resp.data ?? resp;
|
|
1230
1237
|
},
|
|
1231
|
-
/** Search 700M+ contacts with filters.
|
|
1238
|
+
/** Search 700M+ contacts with filters. Does not consume credits. */
|
|
1232
1239
|
async search(filters, page = 1, limit = 25) {
|
|
1233
1240
|
const resp = await request(baseUrl, "/api/v1/search/contacts", apiKey, {
|
|
1234
1241
|
method: "POST",
|
|
@@ -1645,6 +1652,7 @@ var KNOWN_WEBHOOK_EVENTS = [
|
|
|
1645
1652
|
"campaign.created",
|
|
1646
1653
|
"campaign.updated",
|
|
1647
1654
|
"campaign.deleted",
|
|
1655
|
+
"campaign.restored",
|
|
1648
1656
|
"campaign.launched",
|
|
1649
1657
|
"campaign.paused",
|
|
1650
1658
|
"campaign.completed",
|
|
@@ -2134,7 +2142,7 @@ var createMailboxesClient = (apiKey, apiUrl) => {
|
|
|
2134
2142
|
};
|
|
2135
2143
|
|
|
2136
2144
|
// src/generated/operations.ts
|
|
2137
|
-
var API_OPERATION_COUNT =
|
|
2145
|
+
var API_OPERATION_COUNT = 3253;
|
|
2138
2146
|
var API_OPERATIONS = {
|
|
2139
2147
|
accept_audience_pipeline_filters_campaigns__campaign_id__audience_pipeline_accept_filters_post: ["POST", "/campaigns/{campaign_id}/audience-pipeline/accept-filters", "campaigns", "acceptAudiencePipelineFilters", "billable", "campaigns:run"],
|
|
2140
2148
|
accept_my_offer_marketplace_me_offers__hiring_id__accept_post: ["POST", "/marketplace/me/offers/{hiring_id}/accept", "marketplace", "acceptMyOffer", "billable", "marketplace:run"],
|
|
@@ -3792,6 +3800,7 @@ var API_OPERATIONS = {
|
|
|
3792
3800
|
infer_skill_variable_skills_infer_variable_post: ["POST", "/skills/infer-variable", "workflows", "inferSkillVariable", "write", "workflows:write"],
|
|
3793
3801
|
install_app_installed_apps_post: ["POST", "/installed-apps", "installedApps", "installApp", "write", "apps:write"],
|
|
3794
3802
|
intent_stats_intent_stats_get: ["GET", "/intent/stats", "intent", "intentStats", "read", "intent:read"],
|
|
3803
|
+
invite_member_roles_invite_post: ["POST", "/roles/invite", "roles", "inviteMember", "external", "account:run"],
|
|
3795
3804
|
invoke_app_page_action_app_pages__page_id__actions__alias___action_name__post: ["POST", "/app-pages/{page_id}/actions/{alias}/{action_name}", "appPages", "invokeAppPageAction", "write", "apps:write"],
|
|
3796
3805
|
issue_my_work_certificate_marketplace_me_work_certificates_post: ["POST", "/marketplace/me/work-certificates", "marketplace", "issueMyWorkCertificate", "billable", "marketplace:run"],
|
|
3797
3806
|
issue_service_token_service_token_post: ["POST", "/service-token", "appPlatformTokens", "issueServiceToken", "write", null],
|