@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.
- package/README.md +9 -2
- package/dist/cli.js +216 -0
- package/dist/index.d.mts +104 -7
- package/dist/index.d.ts +104 -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 +102 -7
- package/dist/react.d.ts +102 -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 +1696 -0
- package/docs/api/deals.md +2432 -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,721 @@
|
|
|
1
|
+
/* Generated by sdk/js/scripts/generate-agent-docs.ts from developer-contract/openapi.json. Regenerated on every build. */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Types for `g8.api.campaigns` (Campaigns): 29 operations.
|
|
5
|
+
*
|
|
6
|
+
* For reading. In code, import from the package instead:
|
|
7
|
+
* import type { ApiInput, ApiOutput, G8Contract } from "@graph8/sdk";
|
|
8
|
+
* type In = ApiInput<"accept_audience_pipeline_filters_campaigns__campaign_id__audience_pipeline_accept_filters_post">;
|
|
9
|
+
*
|
|
10
|
+
* Reference with examples: campaigns.md
|
|
11
|
+
*/
|
|
12
|
+
/* eslint-disable */
|
|
13
|
+
|
|
14
|
+
/** `g8.api.campaigns.<member>` -> the operationId it calls. */
|
|
15
|
+
export interface CampaignsMembers {
|
|
16
|
+
acceptAudiencePipelineFilters: "accept_audience_pipeline_filters_campaigns__campaign_id__audience_pipeline_accept_filters_post";
|
|
17
|
+
archiveCampaignIdea: "archive_campaign_idea_campaigns_ideas__idea_id__archive_post";
|
|
18
|
+
createManualCampaignIdea: "create_manual_campaign_idea_campaigns_ideas_manual_post";
|
|
19
|
+
deleteCampaign: "delete_campaign_campaigns__campaign_id__delete";
|
|
20
|
+
deleteCampaignIdea: "delete_campaign_idea_campaigns_ideas__idea_id__delete";
|
|
21
|
+
generateCampaignIdeas: "generate_campaign_ideas_campaigns_generate_ideas_post";
|
|
22
|
+
generateCampaignIdeasAsync: "generate_campaign_ideas_async_campaigns_generate_ideas_async_post";
|
|
23
|
+
generateCampaignStepContent: "generate_campaign_step_content_campaigns__campaign_id__sequence_steps__step_id__generate_post";
|
|
24
|
+
getAudiencePipelineStatus: "get_audience_pipeline_status_campaigns__campaign_id__audience_pipeline_status_get";
|
|
25
|
+
getAudiencePipelineSuggestedFilters: "get_audience_pipeline_suggested_filters_campaigns__campaign_id__audience_pipeline_suggested_filters_get";
|
|
26
|
+
getCampaignDashboard: "get_campaign_dashboard_campaigns__campaign_id__dashboard_get";
|
|
27
|
+
getCampaignGeneratedFile: "get_campaign_generated_file_campaigns__campaign_id__files__file_type__get";
|
|
28
|
+
getCampaignGenerationOptions: "get_campaign_generation_options_campaigns_generation_options_get";
|
|
29
|
+
getCampaignGenerationStatus: "get_campaign_generation_status_campaigns__campaign_id__status_get";
|
|
30
|
+
getCampaignIdeasTaskStatus: "get_campaign_ideas_task_status_campaigns_ideas_status__task_id__get";
|
|
31
|
+
linkLandingPageToCampaign: "link_landing_page_to_campaign_campaigns__campaign_id__landing_pages_post";
|
|
32
|
+
listCampaignAudienceListOptions: "list_campaign_audience_list_options_campaigns_audience_lists_options_get";
|
|
33
|
+
listCampaignGeneratedFiles: "list_campaign_generated_files_campaigns__campaign_id__files_get";
|
|
34
|
+
listCampaignLandingPages: "list_campaign_landing_pages_campaigns__campaign_id__landing_pages_get";
|
|
35
|
+
listCampaignsForPicker: "list_campaigns_for_picker_campaigns_picker_get";
|
|
36
|
+
previewCampaignAudienceProfile: "preview_campaign_audience_profile_campaigns_audience_profile_preview_post";
|
|
37
|
+
previewCampaignDocumentManifest: "preview_campaign_document_manifest_campaigns_document_manifest_preview_post";
|
|
38
|
+
recommendCampaignPersonas: "recommend_campaign_personas_campaigns_recommend_personas_post";
|
|
39
|
+
regenerateCampaignDocument: "regenerate_campaign_document_campaigns__campaign_id__documents__document_id__regenerate_post";
|
|
40
|
+
suggestCampaignConcepts: "suggest_campaign_concepts_campaigns_suggest_post";
|
|
41
|
+
toggleCampaignIdeaFavorite: "toggle_campaign_idea_favorite_campaigns_ideas__idea_id__favorite_post";
|
|
42
|
+
triggerAudiencePipeline: "trigger_audience_pipeline_campaigns__campaign_id__audience_pipeline_trigger_post";
|
|
43
|
+
unlinkLandingPageFromCampaign: "unlink_landing_page_from_campaign_campaigns__campaign_id__landing_pages__landing_page_id__delete";
|
|
44
|
+
updateCampaignIdea: "update_campaign_idea_campaigns_ideas__idea_id__patch";
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/** Input and output of every `g8.api.campaigns` operation, keyed by operationId. */
|
|
48
|
+
export interface CampaignsOperations {
|
|
49
|
+
/**
|
|
50
|
+
* POST /campaigns/{campaign_id}/audience-pipeline/accept-filters
|
|
51
|
+
* Accept Audience Pipeline Filters
|
|
52
|
+
* tier: billable · scope: campaigns:run
|
|
53
|
+
*/
|
|
54
|
+
accept_audience_pipeline_filters_campaigns__campaign_id__audience_pipeline_accept_filters_post: {
|
|
55
|
+
input: {
|
|
56
|
+
path: {
|
|
57
|
+
/** Campaign id or slug; resolved inside the key's organisation. */
|
|
58
|
+
campaign_id: string;
|
|
59
|
+
};
|
|
60
|
+
headers?: {
|
|
61
|
+
"X-Target-Org-Id"?: string | null;
|
|
62
|
+
};
|
|
63
|
+
body: AudiencePipelineAcceptFiltersRequest;
|
|
64
|
+
};
|
|
65
|
+
output: ApiResponse_AudiencePipelineAcceptResult_;
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* POST /campaigns/ideas/{idea_id}/archive
|
|
69
|
+
* Archive Campaign Idea
|
|
70
|
+
* tier: write · scope: campaigns:write
|
|
71
|
+
*/
|
|
72
|
+
archive_campaign_idea_campaigns_ideas__idea_id__archive_post: {
|
|
73
|
+
input: {
|
|
74
|
+
path: {
|
|
75
|
+
/** Campaign idea id. */
|
|
76
|
+
idea_id: string;
|
|
77
|
+
};
|
|
78
|
+
query?: {
|
|
79
|
+
/** Why it was archived. */
|
|
80
|
+
reason?: string | null;
|
|
81
|
+
};
|
|
82
|
+
headers?: {
|
|
83
|
+
"X-Target-Org-Id"?: string | null;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
output: ApiResponse_StudioContentPayload_;
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* POST /campaigns/ideas/manual
|
|
90
|
+
* Create Manual Campaign Idea
|
|
91
|
+
* tier: write · scope: campaigns:write
|
|
92
|
+
*/
|
|
93
|
+
create_manual_campaign_idea_campaigns_ideas_manual_post: {
|
|
94
|
+
input: {
|
|
95
|
+
headers?: {
|
|
96
|
+
"X-Target-Org-Id"?: string | null;
|
|
97
|
+
};
|
|
98
|
+
body: Record<string, unknown>;
|
|
99
|
+
};
|
|
100
|
+
output: ApiResponse_StudioContentPayload_;
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* DELETE /campaigns/{campaign_id}
|
|
104
|
+
* Delete Campaign
|
|
105
|
+
* tier: destructive · scope: campaigns:delete
|
|
106
|
+
*/
|
|
107
|
+
delete_campaign_campaigns__campaign_id__delete: {
|
|
108
|
+
input: {
|
|
109
|
+
path: {
|
|
110
|
+
/** Campaign id or slug. */
|
|
111
|
+
campaign_id: string;
|
|
112
|
+
};
|
|
113
|
+
headers?: {
|
|
114
|
+
"X-Target-Org-Id"?: string | null;
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
output: ApiResponse_StudioContentPayload_;
|
|
118
|
+
};
|
|
119
|
+
/**
|
|
120
|
+
* DELETE /campaigns/ideas/{idea_id}
|
|
121
|
+
* Delete Campaign Idea
|
|
122
|
+
* tier: destructive · scope: campaigns:delete
|
|
123
|
+
*/
|
|
124
|
+
delete_campaign_idea_campaigns_ideas__idea_id__delete: {
|
|
125
|
+
input: {
|
|
126
|
+
path: {
|
|
127
|
+
/** Campaign idea id. */
|
|
128
|
+
idea_id: string;
|
|
129
|
+
};
|
|
130
|
+
headers?: {
|
|
131
|
+
"X-Target-Org-Id"?: string | null;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
output: ApiResponse_StudioContentPayload_;
|
|
135
|
+
};
|
|
136
|
+
/**
|
|
137
|
+
* POST /campaigns/generate-ideas
|
|
138
|
+
* Generate Campaign Ideas
|
|
139
|
+
* tier: billable · scope: campaigns:run
|
|
140
|
+
*/
|
|
141
|
+
generate_campaign_ideas_campaigns_generate_ideas_post: {
|
|
142
|
+
input: {
|
|
143
|
+
query?: {
|
|
144
|
+
/** How many ideas. Scales the spend. */
|
|
145
|
+
num_ideas?: number;
|
|
146
|
+
/** Free-text steer for the generator. */
|
|
147
|
+
user_direction?: string | null;
|
|
148
|
+
};
|
|
149
|
+
headers?: {
|
|
150
|
+
"X-Target-Org-Id"?: string | null;
|
|
151
|
+
};
|
|
152
|
+
body: SuggestCampaignsRequest;
|
|
153
|
+
};
|
|
154
|
+
output: ApiResponse_StudioContentListPayload_;
|
|
155
|
+
};
|
|
156
|
+
/**
|
|
157
|
+
* POST /campaigns/generate-ideas-async
|
|
158
|
+
* Generate Campaign Ideas Async
|
|
159
|
+
* tier: billable · scope: campaigns:run
|
|
160
|
+
*/
|
|
161
|
+
generate_campaign_ideas_async_campaigns_generate_ideas_async_post: {
|
|
162
|
+
input: {
|
|
163
|
+
headers?: {
|
|
164
|
+
"X-Target-Org-Id"?: string | null;
|
|
165
|
+
};
|
|
166
|
+
body: AsyncGenerateIdeasRequest;
|
|
167
|
+
};
|
|
168
|
+
output: ApiResponse_StudioContentPayload_;
|
|
169
|
+
};
|
|
170
|
+
/**
|
|
171
|
+
* POST /campaigns/{campaign_id}/sequence/steps/{step_id}/generate
|
|
172
|
+
* Generate Campaign Step Content
|
|
173
|
+
* tier: billable · scope: campaigns:run
|
|
174
|
+
*/
|
|
175
|
+
generate_campaign_step_content_campaigns__campaign_id__sequence_steps__step_id__generate_post: {
|
|
176
|
+
input: {
|
|
177
|
+
path: {
|
|
178
|
+
/** Campaign id or slug. */
|
|
179
|
+
campaign_id: string;
|
|
180
|
+
/** Sequence step id, from `GET /campaigns/{campaign_id}/sequence`. */
|
|
181
|
+
step_id: string;
|
|
182
|
+
};
|
|
183
|
+
headers?: {
|
|
184
|
+
"X-Target-Org-Id"?: string | null;
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
output: ApiResponse_StudioContentPayload_;
|
|
188
|
+
};
|
|
189
|
+
/**
|
|
190
|
+
* GET /campaigns/{campaign_id}/audience-pipeline/status
|
|
191
|
+
* Get Audience Pipeline Status
|
|
192
|
+
* tier: read · scope: campaigns:read
|
|
193
|
+
*/
|
|
194
|
+
get_audience_pipeline_status_campaigns__campaign_id__audience_pipeline_status_get: {
|
|
195
|
+
input: {
|
|
196
|
+
path: {
|
|
197
|
+
/** Campaign id or slug; resolved inside the key's organisation. */
|
|
198
|
+
campaign_id: string;
|
|
199
|
+
};
|
|
200
|
+
headers?: {
|
|
201
|
+
"X-Target-Org-Id"?: string | null;
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
output: ApiResponse_AudiencePipelineStatus_;
|
|
205
|
+
};
|
|
206
|
+
/**
|
|
207
|
+
* GET /campaigns/{campaign_id}/audience-pipeline/suggested-filters
|
|
208
|
+
* Get Audience Pipeline Suggested Filters
|
|
209
|
+
* tier: read · scope: campaigns:read
|
|
210
|
+
*/
|
|
211
|
+
get_audience_pipeline_suggested_filters_campaigns__campaign_id__audience_pipeline_suggested_filters_get: {
|
|
212
|
+
input: {
|
|
213
|
+
path: {
|
|
214
|
+
/** Campaign id or slug; resolved inside the key's organisation. */
|
|
215
|
+
campaign_id: string;
|
|
216
|
+
};
|
|
217
|
+
headers?: {
|
|
218
|
+
"X-Target-Org-Id"?: string | null;
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
output: ApiResponse_AudiencePipelineSuggestedFilters_;
|
|
222
|
+
};
|
|
223
|
+
/**
|
|
224
|
+
* GET /campaigns/{campaign_id}/dashboard
|
|
225
|
+
* Get Campaign Dashboard
|
|
226
|
+
* tier: billable · scope: campaigns:run
|
|
227
|
+
*/
|
|
228
|
+
get_campaign_dashboard_campaigns__campaign_id__dashboard_get: {
|
|
229
|
+
input: {
|
|
230
|
+
path: {
|
|
231
|
+
/** Campaign id or slug. */
|
|
232
|
+
campaign_id: string;
|
|
233
|
+
};
|
|
234
|
+
headers?: {
|
|
235
|
+
"X-Target-Org-Id"?: string | null;
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
output: ApiResponse_StudioContentPayload_;
|
|
239
|
+
};
|
|
240
|
+
/**
|
|
241
|
+
* GET /campaigns/{campaign_id}/files/{file_type}
|
|
242
|
+
* Get Campaign Generated File
|
|
243
|
+
* tier: read · scope: campaigns:read
|
|
244
|
+
*/
|
|
245
|
+
get_campaign_generated_file_campaigns__campaign_id__files__file_type__get: {
|
|
246
|
+
input: {
|
|
247
|
+
path: {
|
|
248
|
+
/** Campaign id or slug. */
|
|
249
|
+
campaign_id: string;
|
|
250
|
+
/** A file type from `GET /campaigns/{campaign_id}/files`. */
|
|
251
|
+
file_type: string;
|
|
252
|
+
};
|
|
253
|
+
headers?: {
|
|
254
|
+
"X-Target-Org-Id"?: string | null;
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
output: ApiResponse_StudioContentPayload_;
|
|
258
|
+
};
|
|
259
|
+
/**
|
|
260
|
+
* GET /campaigns/generation-options
|
|
261
|
+
* Get Campaign Generation Options
|
|
262
|
+
* tier: read · scope: campaigns:read
|
|
263
|
+
*/
|
|
264
|
+
get_campaign_generation_options_campaigns_generation_options_get: {
|
|
265
|
+
input: {
|
|
266
|
+
headers?: {
|
|
267
|
+
"X-Target-Org-Id"?: string | null;
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
output: ApiResponse_StudioContentPayload_;
|
|
271
|
+
};
|
|
272
|
+
/**
|
|
273
|
+
* GET /campaigns/{campaign_id}/status
|
|
274
|
+
* Get Campaign Generation Status
|
|
275
|
+
* tier: read · scope: campaigns:read
|
|
276
|
+
*/
|
|
277
|
+
get_campaign_generation_status_campaigns__campaign_id__status_get: {
|
|
278
|
+
input: {
|
|
279
|
+
path: {
|
|
280
|
+
/** Campaign id or slug. */
|
|
281
|
+
campaign_id: string;
|
|
282
|
+
};
|
|
283
|
+
headers?: {
|
|
284
|
+
"X-Target-Org-Id"?: string | null;
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
output: ApiResponse_StudioContentPayload_;
|
|
288
|
+
};
|
|
289
|
+
/**
|
|
290
|
+
* GET /campaigns/ideas/status/{task_id}
|
|
291
|
+
* Get Campaign Ideas Task Status
|
|
292
|
+
* tier: read · scope: campaigns:read
|
|
293
|
+
*/
|
|
294
|
+
get_campaign_ideas_task_status_campaigns_ideas_status__task_id__get: {
|
|
295
|
+
input: {
|
|
296
|
+
path: {
|
|
297
|
+
/** Task id returned by `POST /campaigns/generate-ideas-async`. */
|
|
298
|
+
task_id: string;
|
|
299
|
+
};
|
|
300
|
+
headers?: {
|
|
301
|
+
"X-Target-Org-Id"?: string | null;
|
|
302
|
+
};
|
|
303
|
+
};
|
|
304
|
+
output: ApiResponse_StudioContentPayload_;
|
|
305
|
+
};
|
|
306
|
+
/**
|
|
307
|
+
* POST /campaigns/{campaign_id}/landing-pages
|
|
308
|
+
* Link Landing Page To Campaign
|
|
309
|
+
* tier: write · scope: campaigns:write
|
|
310
|
+
*/
|
|
311
|
+
link_landing_page_to_campaign_campaigns__campaign_id__landing_pages_post: {
|
|
312
|
+
input: {
|
|
313
|
+
path: {
|
|
314
|
+
/** Campaign id or slug. */
|
|
315
|
+
campaign_id: string;
|
|
316
|
+
};
|
|
317
|
+
headers?: {
|
|
318
|
+
"X-Target-Org-Id"?: string | null;
|
|
319
|
+
};
|
|
320
|
+
body: LinkLandingPageRequest;
|
|
321
|
+
};
|
|
322
|
+
output: ApiResponse_StudioContentPayload_;
|
|
323
|
+
};
|
|
324
|
+
/**
|
|
325
|
+
* GET /campaigns/audience-lists/options
|
|
326
|
+
* List Campaign Audience List Options
|
|
327
|
+
* tier: read · scope: campaigns:read
|
|
328
|
+
*/
|
|
329
|
+
list_campaign_audience_list_options_campaigns_audience_lists_options_get: {
|
|
330
|
+
input: {
|
|
331
|
+
query?: {
|
|
332
|
+
/** Substring match on the list name. */
|
|
333
|
+
search?: string | null;
|
|
334
|
+
};
|
|
335
|
+
headers?: {
|
|
336
|
+
"X-Target-Org-Id"?: string | null;
|
|
337
|
+
};
|
|
338
|
+
};
|
|
339
|
+
output: ApiResponse_StudioContentListPayload_;
|
|
340
|
+
};
|
|
341
|
+
/**
|
|
342
|
+
* GET /campaigns/{campaign_id}/files
|
|
343
|
+
* List Campaign Generated Files
|
|
344
|
+
* tier: read · scope: campaigns:read
|
|
345
|
+
*/
|
|
346
|
+
list_campaign_generated_files_campaigns__campaign_id__files_get: {
|
|
347
|
+
input: {
|
|
348
|
+
path: {
|
|
349
|
+
/** Campaign id or slug. */
|
|
350
|
+
campaign_id: string;
|
|
351
|
+
};
|
|
352
|
+
headers?: {
|
|
353
|
+
"X-Target-Org-Id"?: string | null;
|
|
354
|
+
};
|
|
355
|
+
};
|
|
356
|
+
output: ApiResponse_StudioContentListPayload_;
|
|
357
|
+
};
|
|
358
|
+
/**
|
|
359
|
+
* GET /campaigns/{campaign_id}/landing-pages
|
|
360
|
+
* List Campaign Landing Pages
|
|
361
|
+
* tier: read · scope: campaigns:read
|
|
362
|
+
*/
|
|
363
|
+
list_campaign_landing_pages_campaigns__campaign_id__landing_pages_get: {
|
|
364
|
+
input: {
|
|
365
|
+
path: {
|
|
366
|
+
/** Campaign id or slug. */
|
|
367
|
+
campaign_id: string;
|
|
368
|
+
};
|
|
369
|
+
headers?: {
|
|
370
|
+
"X-Target-Org-Id"?: string | null;
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
output: ApiResponse_StudioContentListPayload_;
|
|
374
|
+
};
|
|
375
|
+
/**
|
|
376
|
+
* GET /campaigns/picker
|
|
377
|
+
* List Campaigns For Picker
|
|
378
|
+
* tier: read · scope: campaigns:read
|
|
379
|
+
*/
|
|
380
|
+
list_campaigns_for_picker_campaigns_picker_get: {
|
|
381
|
+
input: {
|
|
382
|
+
headers?: {
|
|
383
|
+
"X-Target-Org-Id"?: string | null;
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
output: ApiResponse_StudioContentListPayload_;
|
|
387
|
+
};
|
|
388
|
+
/**
|
|
389
|
+
* POST /campaigns/audience-profile/preview
|
|
390
|
+
* Preview Campaign Audience Profile
|
|
391
|
+
* tier: read · scope: campaigns:read
|
|
392
|
+
*/
|
|
393
|
+
preview_campaign_audience_profile_campaigns_audience_profile_preview_post: {
|
|
394
|
+
input: {
|
|
395
|
+
headers?: {
|
|
396
|
+
"X-Target-Org-Id"?: string | null;
|
|
397
|
+
};
|
|
398
|
+
body: AudienceProfilePreviewRequest;
|
|
399
|
+
};
|
|
400
|
+
output: ApiResponse_StudioContentPayload_;
|
|
401
|
+
};
|
|
402
|
+
/**
|
|
403
|
+
* POST /campaigns/document-manifest/preview
|
|
404
|
+
* Preview Campaign Document Manifest
|
|
405
|
+
* tier: read · scope: campaigns:read
|
|
406
|
+
*/
|
|
407
|
+
preview_campaign_document_manifest_campaigns_document_manifest_preview_post: {
|
|
408
|
+
input: {
|
|
409
|
+
headers?: {
|
|
410
|
+
"X-Target-Org-Id"?: string | null;
|
|
411
|
+
};
|
|
412
|
+
body: CampaignDocumentManifestRequest;
|
|
413
|
+
};
|
|
414
|
+
output: ApiResponse_StudioContentPayload_;
|
|
415
|
+
};
|
|
416
|
+
/**
|
|
417
|
+
* POST /campaigns/recommend-personas
|
|
418
|
+
* Recommend Campaign Personas
|
|
419
|
+
* tier: billable · scope: campaigns:run
|
|
420
|
+
*/
|
|
421
|
+
recommend_campaign_personas_campaigns_recommend_personas_post: {
|
|
422
|
+
input: {
|
|
423
|
+
headers?: {
|
|
424
|
+
"X-Target-Org-Id"?: string | null;
|
|
425
|
+
};
|
|
426
|
+
body: PersonaRecommendationRequest;
|
|
427
|
+
};
|
|
428
|
+
output: ApiResponse_StudioContentPayload_;
|
|
429
|
+
};
|
|
430
|
+
/**
|
|
431
|
+
* POST /campaigns/{campaign_id}/documents/{document_id}/regenerate
|
|
432
|
+
* Regenerate Campaign Document
|
|
433
|
+
* tier: billable · scope: campaigns:run
|
|
434
|
+
*/
|
|
435
|
+
regenerate_campaign_document_campaigns__campaign_id__documents__document_id__regenerate_post: {
|
|
436
|
+
input: {
|
|
437
|
+
path: {
|
|
438
|
+
/** Campaign id or slug. */
|
|
439
|
+
campaign_id: string;
|
|
440
|
+
/** Campaign document id. */
|
|
441
|
+
document_id: string;
|
|
442
|
+
};
|
|
443
|
+
headers?: {
|
|
444
|
+
"X-Target-Org-Id"?: string | null;
|
|
445
|
+
};
|
|
446
|
+
};
|
|
447
|
+
output: ApiResponse_StudioContentPayload_;
|
|
448
|
+
};
|
|
449
|
+
/**
|
|
450
|
+
* POST /campaigns/suggest
|
|
451
|
+
* Suggest Campaign Concepts
|
|
452
|
+
* tier: read · scope: campaigns:read
|
|
453
|
+
*/
|
|
454
|
+
suggest_campaign_concepts_campaigns_suggest_post: {
|
|
455
|
+
input: {
|
|
456
|
+
headers?: {
|
|
457
|
+
"X-Target-Org-Id"?: string | null;
|
|
458
|
+
};
|
|
459
|
+
body: SuggestCampaignsRequest;
|
|
460
|
+
};
|
|
461
|
+
output: ApiResponse_StudioContentPayload_;
|
|
462
|
+
};
|
|
463
|
+
/**
|
|
464
|
+
* POST /campaigns/ideas/{idea_id}/favorite
|
|
465
|
+
* Toggle Campaign Idea Favorite
|
|
466
|
+
* tier: write · scope: campaigns:write
|
|
467
|
+
*/
|
|
468
|
+
toggle_campaign_idea_favorite_campaigns_ideas__idea_id__favorite_post: {
|
|
469
|
+
input: {
|
|
470
|
+
path: {
|
|
471
|
+
/** Campaign idea id. */
|
|
472
|
+
idea_id: string;
|
|
473
|
+
};
|
|
474
|
+
headers?: {
|
|
475
|
+
"X-Target-Org-Id"?: string | null;
|
|
476
|
+
};
|
|
477
|
+
};
|
|
478
|
+
output: ApiResponse_StudioContentPayload_;
|
|
479
|
+
};
|
|
480
|
+
/**
|
|
481
|
+
* POST /campaigns/{campaign_id}/audience-pipeline/trigger
|
|
482
|
+
* Trigger Audience Pipeline
|
|
483
|
+
* tier: billable · scope: campaigns:run
|
|
484
|
+
*/
|
|
485
|
+
trigger_audience_pipeline_campaigns__campaign_id__audience_pipeline_trigger_post: {
|
|
486
|
+
input: {
|
|
487
|
+
path: {
|
|
488
|
+
/** Campaign id or slug; resolved inside the key's organisation. */
|
|
489
|
+
campaign_id: string;
|
|
490
|
+
};
|
|
491
|
+
headers?: {
|
|
492
|
+
"X-Target-Org-Id"?: string | null;
|
|
493
|
+
};
|
|
494
|
+
};
|
|
495
|
+
output: ApiResponse_AudiencePipelineTriggerResult_;
|
|
496
|
+
};
|
|
497
|
+
/**
|
|
498
|
+
* DELETE /campaigns/{campaign_id}/landing-pages/{landing_page_id}
|
|
499
|
+
* Unlink Landing Page From Campaign
|
|
500
|
+
* tier: destructive · scope: campaigns:delete
|
|
501
|
+
*/
|
|
502
|
+
unlink_landing_page_from_campaign_campaigns__campaign_id__landing_pages__landing_page_id__delete: {
|
|
503
|
+
input: {
|
|
504
|
+
path: {
|
|
505
|
+
/** Campaign id or slug. */
|
|
506
|
+
campaign_id: string;
|
|
507
|
+
/** The landing page to detach. */
|
|
508
|
+
landing_page_id: string;
|
|
509
|
+
};
|
|
510
|
+
headers?: {
|
|
511
|
+
"X-Target-Org-Id"?: string | null;
|
|
512
|
+
};
|
|
513
|
+
};
|
|
514
|
+
output: ApiResponse_StudioContentPayload_;
|
|
515
|
+
};
|
|
516
|
+
/**
|
|
517
|
+
* PATCH /campaigns/ideas/{idea_id}
|
|
518
|
+
* Update Campaign Idea
|
|
519
|
+
* tier: write · scope: campaigns:write
|
|
520
|
+
*/
|
|
521
|
+
update_campaign_idea_campaigns_ideas__idea_id__patch: {
|
|
522
|
+
input: {
|
|
523
|
+
path: {
|
|
524
|
+
/** Campaign idea id. */
|
|
525
|
+
idea_id: string;
|
|
526
|
+
};
|
|
527
|
+
headers?: {
|
|
528
|
+
"X-Target-Org-Id"?: string | null;
|
|
529
|
+
};
|
|
530
|
+
body: Record<string, unknown>;
|
|
531
|
+
};
|
|
532
|
+
output: ApiResponse_StudioContentPayload_;
|
|
533
|
+
};
|
|
534
|
+
}
|
|
535
|
+
|
|
536
|
+
// 20 schemas referenced above (the same as G8Contract.<Name>).
|
|
537
|
+
|
|
538
|
+
export interface ApiResponse_AudiencePipelineAcceptResult_ {
|
|
539
|
+
data: AudiencePipelineAcceptResult;
|
|
540
|
+
pagination?: PaginationMeta | null;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
export interface ApiResponse_AudiencePipelineStatus_ {
|
|
544
|
+
data: AudiencePipelineStatus;
|
|
545
|
+
pagination?: PaginationMeta | null;
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
export interface ApiResponse_AudiencePipelineSuggestedFilters_ {
|
|
549
|
+
data: AudiencePipelineSuggestedFilters;
|
|
550
|
+
pagination?: PaginationMeta | null;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
export interface ApiResponse_AudiencePipelineTriggerResult_ {
|
|
554
|
+
data: AudiencePipelineTriggerResult;
|
|
555
|
+
pagination?: PaginationMeta | null;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
export interface ApiResponse_StudioContentListPayload_ {
|
|
559
|
+
data: StudioContentListPayload;
|
|
560
|
+
pagination?: PaginationMeta | null;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
export interface ApiResponse_StudioContentPayload_ {
|
|
564
|
+
data: StudioContentPayload;
|
|
565
|
+
pagination?: PaginationMeta | null;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
/**
|
|
569
|
+
* The same generation, run in the background. SPENDS CREDIT.
|
|
570
|
+
*
|
|
571
|
+
* Returns a task id immediately. `num_ideas` is the cost multiplier.
|
|
572
|
+
*/
|
|
573
|
+
export interface AsyncGenerateIdeasRequest {
|
|
574
|
+
audience_list_id?: number | null;
|
|
575
|
+
audience_source?: string | null;
|
|
576
|
+
campaign_goal: string;
|
|
577
|
+
campaign_type?: string | null;
|
|
578
|
+
execution_targets?: Array<string> | null;
|
|
579
|
+
/** How many ideas to generate. Scales the spend. */
|
|
580
|
+
num_ideas?: number | null;
|
|
581
|
+
/** Ignored for tenancy. The organisation is the API key's own. */
|
|
582
|
+
organization_id: string;
|
|
583
|
+
persona_mode?: string | null;
|
|
584
|
+
preferred_channels?: Array<string> | null;
|
|
585
|
+
target_personas?: Array<string> | null;
|
|
586
|
+
user_direction?: string | null;
|
|
587
|
+
website_url: string;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
/**
|
|
591
|
+
* Mirrors `AcceptFiltersRequest`.
|
|
592
|
+
*
|
|
593
|
+
* `run_pipeline` defaults to TRUE: accepting filters normally STARTS the run,
|
|
594
|
+
* which builds a list and can start a credit-spending enrichment. Send
|
|
595
|
+
* `false` to only save the filters.
|
|
596
|
+
*/
|
|
597
|
+
export interface AudiencePipelineAcceptFiltersRequest {
|
|
598
|
+
filters: Array<Record<string, unknown>>;
|
|
599
|
+
/** Custom list name (defaults to '{campaign_name} Audience') */
|
|
600
|
+
list_name?: string | null;
|
|
601
|
+
run_pipeline?: boolean;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
/**
|
|
605
|
+
* The app's answer to accepting filters: `status` is `filters_saved` when
|
|
606
|
+
* `run_pipeline` was false, `pipeline_started` (with a `chain_id`) otherwise.
|
|
607
|
+
*/
|
|
608
|
+
export interface AudiencePipelineAcceptResult {
|
|
609
|
+
campaign_id: string;
|
|
610
|
+
chain_id?: string | null;
|
|
611
|
+
status: string;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
/**
|
|
615
|
+
* Mirrors `AudiencePipelineStatusResponse`. Where the pipeline is, and what
|
|
616
|
+
* it has produced so far.
|
|
617
|
+
*/
|
|
618
|
+
export interface AudiencePipelineStatus {
|
|
619
|
+
completed_at?: string | null;
|
|
620
|
+
enrichment_job_id?: string | null;
|
|
621
|
+
error?: string | null;
|
|
622
|
+
keyword_ids?: Array<string> | null;
|
|
623
|
+
list_id?: string | null;
|
|
624
|
+
/** Pipeline state: idle | suggested | extracting_filters | creating_list | provisioning_keywords | checking_enrichment | enriching | completed | failed */
|
|
625
|
+
pipeline_status?: string;
|
|
626
|
+
started_at?: string | null;
|
|
627
|
+
suggested_filters?: Array<Record<string, unknown>> | null;
|
|
628
|
+
/** Pre-filled list name based on campaign name */
|
|
629
|
+
suggested_list_name?: string | null;
|
|
630
|
+
total_contacts?: number;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
* Mirrors `SuggestedFiltersResponse`. The targeting filters the pipeline
|
|
635
|
+
* would build the list from, and where they came from.
|
|
636
|
+
*/
|
|
637
|
+
export interface AudiencePipelineSuggestedFilters {
|
|
638
|
+
filters: Array<Record<string, unknown>>;
|
|
639
|
+
/** Where filters came from: user_modified | targeting_doc */
|
|
640
|
+
source: string;
|
|
641
|
+
/** Pre-filled list name based on campaign name */
|
|
642
|
+
suggested_list_name?: string | null;
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
/** The app's answer to a trigger: `{"status": "started", "chain_id": ..., "campaign_id": ...}`. */
|
|
646
|
+
export interface AudiencePipelineTriggerResult {
|
|
647
|
+
campaign_id: string;
|
|
648
|
+
chain_id?: string | null;
|
|
649
|
+
status: string;
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
/** Profile an audience list. Spends nothing. */
|
|
653
|
+
export interface AudienceProfilePreviewRequest {
|
|
654
|
+
audience_id: number;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
/** Preview which documents a campaign would generate. Spends nothing. */
|
|
658
|
+
export interface CampaignDocumentManifestRequest {
|
|
659
|
+
audience_source?: string | null;
|
|
660
|
+
campaign_focus?: string | null;
|
|
661
|
+
channels: Array<string>;
|
|
662
|
+
execution_targets?: Array<string> | null;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
/** Attach an existing landing page to a campaign. Spends nothing. */
|
|
666
|
+
export interface LinkLandingPageRequest {
|
|
667
|
+
landing_page_id: string;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
export interface PaginationMeta {
|
|
671
|
+
/** Whether there are more pages */
|
|
672
|
+
has_next: boolean;
|
|
673
|
+
/** Items per page */
|
|
674
|
+
limit: number;
|
|
675
|
+
/** Opaque cursor for the next page; null when there are no more items. Pass it back as the `cursor` query param to fetch the following page without computing page numbers. */
|
|
676
|
+
next_cursor?: string | null;
|
|
677
|
+
/** Current page number (1-indexed) */
|
|
678
|
+
page: number;
|
|
679
|
+
/** Total number of items */
|
|
680
|
+
total: number;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
/**
|
|
684
|
+
* Recommend target personas from the company's own data. SPENDS CREDIT.
|
|
685
|
+
*
|
|
686
|
+
* `organization_id` is IGNORED - the org always comes from the key. It is
|
|
687
|
+
* mirrored because the app's model carries it, and dropping a field a caller
|
|
688
|
+
* sends would be a silent 422 on a body Studio itself produces.
|
|
689
|
+
*/
|
|
690
|
+
export interface PersonaRecommendationRequest {
|
|
691
|
+
/** Ignored. The organisation is the API key's own. */
|
|
692
|
+
organization_id?: string | null;
|
|
693
|
+
website_url: string;
|
|
694
|
+
}
|
|
695
|
+
|
|
696
|
+
/**
|
|
697
|
+
* A LIST result, open-shaped, with `items` always present.
|
|
698
|
+
*
|
|
699
|
+
* The app returns a bare list from some routes and a named key from others
|
|
700
|
+
* (`pages`, `grids`, `images`, `creatives`, `reports`, `items`). Both are
|
|
701
|
+
* published: the original key is preserved AND mirrored onto `items`, so a
|
|
702
|
+
* client can page any Studio collection the same way without a per-route
|
|
703
|
+
* lookup table.
|
|
704
|
+
*/
|
|
705
|
+
export interface StudioContentListPayload {
|
|
706
|
+
items?: Array<unknown>;
|
|
707
|
+
[key: string]: unknown;
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
/** One Studio object, open-shaped. See the module docstring. */
|
|
711
|
+
export type StudioContentPayload = Record<string, unknown>;
|
|
712
|
+
|
|
713
|
+
/** Generate campaign ideas from a goal. SPENDS CREDIT. */
|
|
714
|
+
export interface SuggestCampaignsRequest {
|
|
715
|
+
campaign_goal: string;
|
|
716
|
+
campaign_type?: string | null;
|
|
717
|
+
/** Ignored. The organisation is the API key's own. */
|
|
718
|
+
organization_id?: string | null;
|
|
719
|
+
target_persona?: string | null;
|
|
720
|
+
website_url: string;
|
|
721
|
+
}
|