:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
/**
* Auto-generated from the Django backend OpenAPI schema.
* MCP service uses these Zod schemas for generated tool handlers.
* To regenerate: hogli build:openapi
*
* PostHog API - MCP 9 enabled ops
* OpenAPI spec version: 1.0.0
*/
import * as zod from 'zod'
export const SubscriptionsListParams = () => zod.object({
project_id: zod
.string()
.describe(
"Project ID of the project you're trying to access. To find the ID of the project, make a call to \/api\/projects\/."
),
})
export const subscriptionsListQueryLimitMax = 1000
export const SubscriptionsListQueryParams = () => zod.object({
created_by: zod.string().optional().describe('Filter by creator user UUID.'),
dashboard: zod.number().optional().describe('Filter by dashboard ID.'),
dashboard_tiles: zod
.number()
.optional()
.describe('Filter to subscriptions on insights that are tiles of the given dashboard ID.'),
insight: zod.number().optional().describe('Filter by insight ID.'),
insights: zod.string().optional().describe('Filter by a comma-separated list of insight IDs.'),
limit: zod
.number()
.max(subscriptionsListQueryLimitMax)
.optional()
.describe('Number of results to return per page.'),
offset: zod.number().optional().describe('The initial index from which to return the results.'),
ordering: zod.string().optional().describe('Which field to use when ordering the results.'),
resource_type: zod
.enum(['ai_prompt', 'dashboard', 'insight'])
.optional()
.describe('Filter by subscription resource: insight, dashboard export, or AI report.'),
search: zod.string().optional().describe('A search term.'),
target_type: zod
.enum(['email', 'slack', 'teams'])
.optional()
.describe('Filter by delivery channel: email, Slack, or Microsoft Teams.'),
})
export const SubscriptionsCreateParams = () => zod.object({
project_id: zod
.string()
.describe(
"Project ID of the project you're trying to access. To find the ID of the project, make a call to \/api\/projects\/."
),
})
export const subscriptionsCreateBodyAiPromptConfigOneWindowOneModeDefault = `since_last_sent`
export const subscriptionsCreateBodyAiPromptConfigOneWindowOneStartDaysAgoMax = 365
export const subscriptionsCreateBodyAiPromptConfigOneWindowOneEndDaysAgoMin = 0
export const subscriptionsCreateBodyAiPromptConfigOneWindowOneEndDaysAgoMax = 365
export const subscriptionsCreateBodyIntervalMax = 2147483647
export const subscriptionsCreateBodyBysetposMin = -2147483648
export const subscriptionsCreateBodyBysetposMax = 2147483647
export const subscriptionsCreateBodyCountMin = -2147483648
export const subscriptionsCreateBodyCountMax = 2147483647
export const subscriptionsCreateBodyTitleMax = 100
export const subscriptionsCreateBodySummaryPromptGuideMax = 500
export const subscriptionsCreateBodyDeliveryConfigOnePostAllInsightsInMainMessageDefault = false
export const SubscriptionsCreateBody = () => zod
.object({
dashboard: zod
.number()
.nullish()
.describe('Dashboard ID to subscribe to (mutually exclusive with insight on create).'),
insight: zod
.number()
.nullish()
.describe('Insight ID to subscribe to (mutually exclusive with dashboard on create).'),
dashboard_export_insights: zod
.array(zod.number())
.optional()
.describe(
'List of insight IDs from the dashboard to include. Required for dashboard subscriptions, max 20.'
),
prompt: zod
.string()
.nullish()
.describe(
"Free-text prompt that drives the AI-generated report. Required when resource_type is 'ai_prompt'. Max 4000 characters."
),
ai_prompt_config: zod
.object({
window: zod
.object({
mode: zod
.enum(['since_last_sent', 'last_n_days', 'days_ago_range'])
.describe(
'\* `since_last_sent` - Since last report\n\* `last_n_days` - Last N days\n\* `days_ago_range` - Between X and Y days ago'
)
.default(subscriptionsCreateBodyAiPromptConfigOneWindowOneModeDefault)
.describe(
"What the report analyzes each run:\n\* `since_last_sent` (default) — everything since the previous successful scheduled delivery (gap-free; test\/manual sends don't move the anchor)\n\* `last_n_days` — a fixed trailing window of start_days_ago days\n\* `days_ago_range` — the explicit range from start_days_ago to end_days_ago days ago\n\n\* `since_last_sent` - Since last report\n\* `last_n_days` - Last N days\n\* `days_ago_range` - Between X and Y days ago"
),
start_days_ago: zod
.number()
.min(1)
.max(subscriptionsCreateBodyAiPromptConfigOneWindowOneStartDaysAgoMax)
.nullish()
.describe(
"Lower bound of the analysis window, in days before the run. Required for 'last_n_days' (the N) and 'days_ago_range'; ignored for 'since_last_sent'. 1-365."
),
end_days_ago: zod
.number()
.min(subscriptionsCreateBodyAiPromptConfigOneWindowOneEndDaysAgoMin)
.max(subscriptionsCreateBodyAiPromptConfigOneWindowOneEndDaysAgoMax)
.nullish()
.describe(
"Upper bound of the analysis window, in days before the run (0 = now). Required for 'days_ago_range' and must be less than start_days_ago; ignored for other modes. 0-365."
),
})
.optional()
.describe(
"Analysis window for the report. Omitted = 'since_last_sent' (everything since the previous scheduled delivery)."
),
})
.optional()
.describe(
"Configuration for AI report subscriptions (analysis window, future knobs). Only valid when resource_type is 'ai_prompt'. Replaced wholesale on writes."
),
target_type: zod
.enum(['email', 'slack', 'teams'])
.describe('\* `email` - Email\n\* `slack` - Slack\n\* `teams` - Microsoft Teams')
.describe(
'Delivery channel: email, slack, or teams.\n\n\* `email` - Email\n\* `slack` - Slack\n\* `teams` - Microsoft Teams'
),
target_value: zod
.string()
.describe(
'Recipient(s): comma-separated email addresses for email, Slack channel name\/ID for slack, or a Microsoft Teams webhook URL for teams. A Teams webhook URL is only ever returned as its host, because the URL authorizes a post to the channel by itself. On update, omit the field to keep the stored URL, or send a full URL to replace it.'
),
frequency: zod
.enum(['daily', 'weekly', 'monthly', 'yearly'])
.describe('\* `daily` - Daily\n\* `weekly` - Weekly\n\* `monthly` - Monthly\n\* `yearly` - Yearly')
.describe(
'How often to deliver: daily, weekly, monthly, or yearly.\n\n\* `daily` - Daily\n\* `weekly` - Weekly\n\* `monthly` - Monthly\n\* `yearly` - Yearly'
),
interval: zod
.number()
.min(1)
.max(subscriptionsCreateBodyIntervalMax)
.describe(
'Interval multiplier (e.g. 2 with weekly frequency means every 2 weeks). Required on create; must be 1 or greater.'
),
byweekday: zod
.array(
zod
.enum(['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday'])
.describe(
'\* `monday` - Monday\n\* `tuesday` - Tuesday\n\* `wednesday` - Wednesday\n\* `thursday` - Thursday\n\* `friday` - Friday\n\* `saturday` - Saturday\n\* `sunday` - Sunday'
)
)
.nullish()
.describe(
'Days of week for daily or weekly subscriptions: monday, tuesday, wednesday, thursday, friday, saturday, sunday.'
),
bysetpos: zod
.number()
.min(subscriptionsCreateBodyBysetposMin)
.max(subscriptionsCreateBodyBysetposMax)
.nullish()
.describe('Position within byweekday set for monthly frequency (e.g. 1 for first, -1 for last).'),
count: zod
.number()
.min(subscriptionsCreateBodyCountMin)
.max(subscriptionsCreateBodyCountMax)
.nullish()
.describe('Total number of deliveries before the subscription stops. Null for unlimited.'),
start_date: zod.iso
.datetime({ offset: true })
.describe(
'When to start delivering (ISO 8601 datetime). The date anchors the recurrence and may be in the past. Deliveries run on half-hour cycles at :00 and :30. Other minute values are accepted for backward compatibility, but delivery happens during the next cycle instead of at that exact minute.'
),
until_date: zod.iso
.datetime({ offset: true })
.nullish()
.describe('When to stop delivering (ISO 8601 datetime). Null for indefinite.'),
enabled: zod
.boolean()
.optional()
.describe(
'Whether the subscription is active. Set to false to pause delivery without deleting. Auto-set to false when the delivery integration becomes invalid.'
),
title: zod
.string()
.max(subscriptionsCreateBodyTitleMax)
.nullish()
.describe('Human-readable name for this subscription.'),
integration_id: zod
.number()
.nullish()
.describe('ID of a connected Slack integration. Required when target_type is slack.'),
send_test_now: zod
.boolean()
.optional()
.describe(
'Whether to immediately deliver the subscription once on save so the editor can confirm it looks right. Defaults to true on create. When omitted on update, a delivery is sent only if the edit changed what gets delivered (recipient, channel, source) or re-enabled the subscription. The recurring schedule is unaffected.'
),
summary_enabled: zod
.boolean()
.optional()
.describe(
"Whether to attach an AI-generated summary to each delivery (insight and dashboard subscriptions only). Requires the organization to have approved AI data processing, and is subject to the org's active-summary cap and AI credit budget; otherwise the write is rejected. Not applicable to prompt subscriptions, which are themselves AI-generated."
),
summary_prompt_guide: zod
.string()
.max(subscriptionsCreateBodySummaryPromptGuideMax)
.optional()
.describe(
'Optional free-text guidance (max 500 chars) steering the AI summary, e.g. which metrics to emphasize. Only settable when AI summary context is enabled for the organization; clearing it (empty string) is always allowed.'
),
delivery_config: zod
.object({
post_all_insights_in_main_message: zod
.boolean()
.default(subscriptionsCreateBodyDeliveryConfigOnePostAllInsightsInMainMessageDefault)
.describe(
"Slack subscriptions only. Insight and dashboard subscriptions: when true, upload all insight images together in the main Slack message instead of posting the first image in the main message and the rest as threaded replies. Prompt subscriptions: when true, post the chart images in the main message with the summary; when false, post them in the first thread reply. Defaults to false. The request is rejected when target_type is not 'slack', or when an insight or dashboard subscription's Slack integration does not hold the files:write permission. Omit it unless the user asks for all images or charts in the main message."
),
include_images: zod
.boolean()
.optional()
.describe(
'Prompt subscriptions only: include generated chart images. Defaults to true when omitted. The request is rejected when the subscription sets insight or dashboard instead of prompt. It does not control the AI summary on an insight or dashboard subscription: use summary_enabled and summary_prompt_guide for that.'
),
include_feedback: zod
.boolean()
.optional()
.describe(
'Prompt subscriptions only: include report feedback links. Defaults to true when omitted. The request is rejected when the subscription sets insight or dashboard instead of prompt. It does not control the AI summary on an insight or dashboard subscription: use summary_enabled and summary_prompt_guide for that.'
),
include_manage_link: zod
.boolean()
.optional()
.describe(
'Prompt subscriptions only: include a link to manage the subscription. Defaults to true when omitted. The request is rejected when the subscription sets insight or dashboard instead of prompt. It does not control the AI summary on an insight or dashboard subscription: use summary_enabled and summary_prompt_guide for that.'
),
include_posthog_hint: zod
.boolean()
.optional()
.describe(
'Prompt subscriptions only: include PostHog product guidance. Defaults to true when omitted. Only a Slack report renders the guidance. Email and Microsoft Teams reports leave it out and accept the option without an error, unlike post_all_insights_in_main_message. The request is rejected when the subscription sets insight or dashboard instead of prompt. It does not control the AI summary on an insight or dashboard subscription: use summary_enabled and summary_prompt_guide for that.'
),
})
.describe('Typed view over the Subscription.delivery_config JSON blob.')
.optional()
.describe(
"Per-delivery rendering options. Every option applies to one subscription kind or delivery target only, and each option's own description says where it applies and whether a mismatch is rejected or ignored. Omit this field unless the user asks for one of the options."
),
})
.describe('Standard Subscription serializer.')
export const SubscriptionsRetrieveParams = () => zod.object({
id: zod.number().describe('A unique integer value identifying this subscription.'),
project_id: zod
.string()
.describe(
"Project ID of the project you're trying to access. To find the ID of the project, make a call to \/api\/projects\/."
),
})
export const SubscriptionsPartialUpdateParams = () => zod.object({
id: zod.number().describe('A unique integer value identifying this subscription.'),
project_id: zod
.string()
.describe(
"Project ID of the project you're trying to access. To find the ID of the project, make a call to \/api\/projects\/."
),
})
export const subscriptionsPartialUpdateBodyAiPromptConfigOneWindowOneModeDefault = `since_last_sent`
export const subscriptionsPartialUpdateBodyAiPromptConfigOneWindowOneStartDaysAgoMax = 365
export const subscriptionsPartialUpdateBodyAiPromptConfigOneWindowOneEndDaysAgoMin = 0
export const subscriptionsPartialUpdateBodyAiPromptConfigOneWindowOneEndDaysAgoMax = 365
export const subscriptionsPartialUpdateBodyIntervalMax = 2147483647
export const subscriptionsPartialUpdateBodyBysetposMin = -2147483648
export const subscriptionsPartialUpdateBodyBysetposMax = 2147483647
export const subscriptionsPartialUpdateBodyCountMin = -2147483648
export const subscriptionsPartialUpdateBodyCountMax = 2147483647
export const subscriptionsPartialUpdateBodyTitleMax = 100
export const subscriptionsPartialUpdateBodySummaryPromptGuideMax = 500
export const subscriptionsPartialUpdateBodyDeliveryConfigOnePostAllInsightsInMainMessageDefault = false
export const SubscriptionsPartialUpdateBody = () => zod
.object({
dashboard: zod
.number()
.nullish()
.describe('Dashboard ID to subscribe to (mutually exclusive with insight on create).'),
insight: zod
.number()
.nullish()
.describe('Insight ID to subscribe to (mutually exclusive with dashboard on create).'),
dashboard_export_insights: zod
.array(zod.number())
.optional()
.describe(
'List of insight IDs from the dashboard to include. Required for dashboard subscriptions, max 20.'
),
prompt: zod
.string()
.nullish()
.describe(
"Free-text prompt that drives the AI-generated report. Required when resource_type is 'ai_prompt'. Max 4000 characters."
),
ai_prompt_config: zod
.object({
window: zod
.object({
mode: zod
.enum(['since_last_sent', 'last_n_days', 'days_ago_range'])
.describe(
'\* `since_last_sent` - Since last report\n\* `last_n_days` - Last N days\n\* `days_ago_range` - Between X and Y days ago'
)
.default(subscriptionsPartialUpdateBodyAiPromptConfigOneWindowOneModeDefault)
.describe(
"What the report analyzes each run:\n\* `since_last_sent` (default) — everything since the previous successful scheduled delivery (gap-free; test\/manual sends don't move the anchor)\n\* `last_n_days` — a fixed trailing window of start_days_ago days\n\* `days_ago_range` — the explicit range from start_days_ago to end_days_ago days ago\n\n\* `since_last_sent` - Since last report\n\* `last_n_days` - Last N days\n\* `days_ago_range` - Between X and Y days ago"
),
start_days_ago: zod
.number()
.min(1)
.max(subscriptionsPartialUpdateBodyAiPromptConfigOneWindowOneStartDaysAgoMax)
.nullish()
.describe(
"Lower bound of the analysis window, in days before the run. Required for 'last_n_days' (the N) and 'days_ago_range'; ignored for 'since_last_sent'. 1-365."
),
end_days_ago: zod
.number()
.min(subscriptionsPartialUpdateBodyAiPromptConfigOneWindowOneEndDaysAgoMin)
.max(subscriptionsPartialUpdateBodyAiPromptConfigOneWindowOneEndDaysAgoMax)
.nullish()
.describe(
"Upper bound of the analysis window, in days before the run (0 = now). Required for 'days_ago_range' and must be less than start_days_ago; ignored for other modes. 0-365."
),
})
.optional()
.describe(
"Analysis window for the report. Omitted = 'since_last_sent' (everything since the previous scheduled delivery)."
),
})
.optional()
.describe(
"Configuration for AI report subscriptions (analysis window, future knobs). Only valid when resource_type is 'ai_prompt'. Replaced wholesale on writes."
),
target_type: zod
.enum(['email', 'slack', 'teams'])
.describe('\* `email` - Email\n\* `slack` - Slack\n\* `teams` - Microsoft Teams')
.optional()
.describe(
'Delivery channel: email, slack, or teams.\n\n\* `email` - Email\n\* `slack` - Slack\n\* `teams` - Microsoft Teams'
),
target_value: zod
.string()
.optional()
.describe(
'Recipient(s): comma-separated email addresses for email, Slack channel name\/ID for slack, or a Microsoft Teams webhook URL for teams. A Teams webhook URL is only ever returned as its host, because the URL authorizes a post to the channel by itself. On update, omit the field to keep the stored URL, or send a full URL to replace it.'
),
frequency: zod
.enum(['daily', 'weekly', 'monthly', 'yearly'])
.describe('\* `daily` - Daily\n\* `weekly` - Weekly\n\* `monthly` - Monthly\n\* `yearly` - Yearly')
.optional()
.describe(
'How often to deliver: daily, weekly, monthly, or yearly.\n\n\* `daily` - Daily\n\* `weekly` - Weekly\n\* `monthly` - Monthly\n\* `yearly` - Yearly'
),
interval: zod
.number()
.min(1)
.max(subscriptionsPartialUpdateBodyIntervalMax)
.optional()
.describe(
'Interval multiplier (e.g. 2 with weekly frequency means every 2 weeks). Required on create; must be 1 or greater.'
),
byweekday: zod
.array(
zod
.enum(['monday', 'tuesday', 'wednesday', 'thursday', 'friday', 'saturday', 'sunday'])
.describe(
'\* `monday` - Monday\n\* `tuesday` - Tuesday\n\* `wednesday` - Wednesday\n\* `thursday` - Thursday\n\* `friday` - Friday\n\* `saturday` - Saturday\n\* `sunday` - Sunday'
)
)
.nullish()
.describe(
'Days of week for daily or weekly subscriptions: monday, tuesday, wednesday, thursday, friday, saturday, sunday.'
),
bysetpos: zod
.number()
.min(subscriptionsPartialUpdateBodyBysetposMin)
.max(subscriptionsPartialUpdateBodyBysetposMax)
.nullish()
.describe('Position within byweekday set for monthly frequency (e.g. 1 for first, -1 for last).'),
count: zod
.number()
.min(subscriptionsPartialUpdateBodyCountMin)
.max(subscriptionsPartialUpdateBodyCountMax)
.nullish()
.describe('Total number of deliveries before the subscription stops. Null for unlimited.'),
start_date: zod.iso
.datetime({ offset: true })
.optional()
.describe(
'When to start delivering (ISO 8601 datetime). The date anchors the recurrence and may be in the past. Deliveries run on half-hour cycles at :00 and :30. Other minute values are accepted for backward compatibility, but delivery happens during the next cycle instead of at that exact minute.'
),
until_date: zod.iso
.datetime({ offset: true })
.nullish()
.describe('When to stop delivering (ISO 8601 datetime). Null for indefinite.'),
enabled: zod
.boolean()
.optional()
.describe(
'Whether the subscription is active. Set to false to pause delivery without deleting. Auto-set to false when the delivery integration becomes invalid.'
),
title: zod
.string()
.max(subscriptionsPartialUpdateBodyTitleMax)
.nullish()
.describe('Human-readable name for this subscription.'),
integration_id: zod
.number()
.nullish()
.describe('ID of a connected Slack integration. Required when target_type is slack.'),
summary_enabled: zod
.boolean()
.optional()
.describe(
"Whether to attach an AI-generated summary to each delivery (insight and dashboard subscriptions only). Requires the organization to have approved AI data processing, and is subject to the org's active-summary cap and AI credit budget; otherwise the write is rejected. Not applicable to prompt subscriptions, which are themselves AI-generated."
),
summary_prompt_guide: zod
.string()
.max(subscriptionsPartialUpdateBodySummaryPromptGuideMax)
.optional()
.describe(
'Optional free-text guidance (max 500 chars) steering the AI summary, e.g. which metrics to emphasize. Only settable when AI summary context is enabled for the organization; clearing it (empty string) is always allowed.'
),
delivery_config: zod
.object({
post_all_insights_in_main_message: zod
.boolean()
.default(subscriptionsPartialUpdateBodyDeliveryConfigOnePostAllInsightsInMainMessageDefault)
.describe(
"Slack subscriptions only. Insight and dashboard subscriptions: when true, upload all insight images together in the main Slack message instead of posting the first image in the main message and the rest as threaded replies. Prompt subscriptions: when true, post the chart images in the main message with the summary; when false, post them in the first thread reply. Defaults to false. The request is rejected when target_type is not 'slack', or when an insight or dashboard subscription's Slack integration does not hold the files:write permission. Omit it unless the user asks for all images or charts in the main message."
),
include_images: zod
.boolean()
.optional()
.describe(
'Prompt subscriptions only: include generated chart images. Defaults to true when omitted. The request is rejected when the subscription sets insight or dashboard instead of prompt. It does not control the AI summary on an insight or dashboard subscription: use summary_enabled and summary_prompt_guide for that.'
),
include_feedback: zod
.boolean()
.optional()
.describe(
'Prompt subscriptions only: include report feedback links. Defaults to true when omitted. The request is rejected when the subscription sets insight or dashboard instead of prompt. It does not control the AI summary on an insight or dashboard subscription: use summary_enabled and summary_prompt_guide for that.'
),
include_manage_link: zod
.boolean()
.optional()
.describe(
'Prompt subscriptions only: include a link to manage the subscription. Defaults to true when omitted. The request is rejected when the subscription sets insight or dashboard instead of prompt. It does not control the AI summary on an insight or dashboard subscription: use summary_enabled and summary_prompt_guide for that.'
),
include_posthog_hint: zod
.boolean()
.optional()
.describe(
'Prompt subscriptions only: include PostHog product guidance. Defaults to true when omitted. Only a Slack report renders the guidance. Email and Microsoft Teams reports leave it out and accept the option without an error, unlike post_all_insights_in_main_message. The request is rejected when the subscription sets insight or dashboard instead of prompt. It does not control the AI summary on an insight or dashboard subscription: use summary_enabled and summary_prompt_guide for that.'
),
})
.describe('Typed view over the Subscription.delivery_config JSON blob.')
.optional()
.describe(
"Per-delivery rendering options. Every option applies to one subscription kind or delivery target only, and each option's own description says where it applies and whether a mismatch is rejected or ignored. Omit this field unless the user asks for one of the options."
),
})
.describe('Standard Subscription serializer.')
/**
* Hard delete of this model is not allowed. Use a patch API call to set "deleted" to true
*/
export const SubscriptionsDestroyParams = () => zod.object({
id: zod.number().describe('A unique integer value identifying this subscription.'),
project_id: zod
.string()
.describe(
"Project ID of the project you're trying to access. To find the ID of the project, make a call to \/api\/projects\/."
),
})
export const SubscriptionsTestDeliveryCreateParams = () => zod.object({
id: zod.number().describe('A unique integer value identifying this subscription.'),
project_id: zod
.string()
.describe(
"Project ID of the project you're trying to access. To find the ID of the project, make a call to \/api\/projects\/."
),
})
/**
* Paginated delivery history for a subscription. Requires premium subscriptions.
* @summary List subscription deliveries
*/
export const SubscriptionsDeliveriesListParams = () => zod.object({
project_id: zod
.string()
.describe(
"Project ID of the project you're trying to access. To find the ID of the project, make a call to \/api\/projects\/."
),
subscription_id: zod.number(),
})
export const SubscriptionsDeliveriesListQueryParams = () => zod.object({
cursor: zod.string().optional().describe('The pagination cursor value.'),
status: zod
.enum(['completed', 'failed', 'skipped', 'starting'])
.optional()
.describe('Return only deliveries in this run status (starting, completed, failed, or skipped).'),
})
/**
* Fetch one delivery row by id.
* @summary Retrieve subscription delivery
*/
export const SubscriptionsDeliveriesRetrieveParams = () => zod.object({
id: zod.string().describe('A UUID string identifying this subscription delivery.'),
project_id: zod
.string()
.describe(
"Project ID of the project you're trying to access. To find the ID of the project, make a call to \/api\/projects\/."
),
subscription_id: zod.number(),
})
/**
* Completed deliveries that include an AI summary, across every active subscription on one insight or dashboard, newest first. Requires viewer access to the insight or dashboard.
* @summary List AI summaries for an insight or dashboard
*/
export const SubscriptionsSummariesListParams = () => zod.object({
project_id: zod
.string()
.describe(
"Project ID of the project you're trying to access. To find the ID of the project, make a call to \/api\/projects\/."
),
})
export const SubscriptionsSummariesListQueryParams = () => zod.object({
cursor: zod.string().optional().describe('The pagination cursor value.'),
dashboard: zod
.number()
.min(1)
.optional()
.describe(
'Dashboard ID. Returns summaries from the subscriptions on this dashboard. Set either dashboard or insight.'
),
insight: zod
.number()
.min(1)
.optional()
.describe(
'Insight ID. Returns summaries from the subscriptions on this insight. Set either insight or dashboard.'
),
})