diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 284ce936..f7e971ea 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.60.0" + ".": "0.61.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 8f316d7a..deda51ba 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## [0.61.0](https://github.com/cooper-square-technologies/profound-python-sdk/compare/v0.60.0...v0.61.0) (2026-09-25) + + +### ⚠ BREAKING CHANGES + +* **api:** 3 breaking changes to the SDK surface. + - Property `bot_provider_filter.value` type changed from `enum(openai | anthropic | chatgpt | …) | Array` to `enum(openai | anthropic | chatgpt | …) | Array`. + - Property `otf_intent_shares_query.platforms` type changed from `Array` to `Array`. + - Property `otf_volume_request.platforms` type changed from `Array` to `Array`. + +### Features + +* **api:** update property bot_provider_filter.value (+21 more changes) ([9db93d3](https://github.com/cooper-square-technologies/profound-python-sdk/commit/9db93d313f6cff0d4e977d3359ebe7683fecd304)) + ## [0.60.0](https://github.com/cooper-square-technologies/profound-python-sdk/compare/v0.59.2...v0.60.0) (2026-09-22) diff --git a/api.md b/api.md index cbcca0f5..88f32ffa 100644 --- a/api.md +++ b/api.md @@ -145,9 +145,9 @@ Complete reference of every operation, grouped by resource. See [the README](./R - [Get Account Insights](#get-account-insights) - [`PromptVolumes`](#promptvolumes) - [`PromptVolumes Volume`](#promptvolumes-volume) - - [Get On The Fly Volume](#get-on-the-fly-volume) + - [Get Keyword Volume](#get-keyword-volume) - [`PromptVolumes Intents`](#promptvolumes-intents) - - [Get On The Fly Intent Shares](#get-on-the-fly-intent-shares) + - [Get Keyword Intent Shares](#get-keyword-intent-shares) ## Setup @@ -2281,15 +2281,13 @@ ad_account = client.ads.openai_ads.ad_account.retrieve_insights() ### `PromptVolumes Volume` -#### Get On The Fly Volume +#### Get Keyword Volume Weekly and monthly volume projections for one keyword. -Each organization can look up 1,000 distinct normalized keywords per UTC -day. Repeats consume no additional allowance. New keywords over the cap -return 429 with X-KeywordQuota-* and Retry-After headers. Quota admission -requires Redis (503 when unavailable); empty results and query failures -retain the reservation. Slices with at most two users are omitted. +Each organization can look up 1,000 distinct keywords per UTC day; over +the cap returns 429 with Retry-After. Slices with two or fewer users are +omitted for privacy. | Direction | Type | | --- | --- | @@ -2307,14 +2305,12 @@ volume = client.prompt_volumes.volume.on_the_fly( ### `PromptVolumes Intents` -#### Get On The Fly Intent Shares +#### Get Keyword Intent Shares Intent shares for one keyword across the requested cohort weeks. -Shares are fractions from 0 to 1 over classified matching conversations. -Cohorts with at most two matching users are omitted for privacy. This -endpoint shares the volume endpoint's burst limit but consumes no daily -keyword quota. +Shares are fractions from 0 to 1. Cohorts with two or fewer matching users +are omitted for privacy. Doesn't use the daily keyword allowance. | Direction | Type | | --- | --- | diff --git a/pyproject.toml b/pyproject.toml index a6807e92..55879f62 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "profound" -version = "0.60.0" # x-release-please-version +version = "0.61.0" # x-release-please-version description = "profound Python client." readme = "README.md" license = "Apache-2.0" diff --git a/scalar-sdk.manifest.json b/scalar-sdk.manifest.json index 581a557b..4c8f4e76 100644 --- a/scalar-sdk.manifest.json +++ b/scalar-sdk.manifest.json @@ -1,7 +1,7 @@ { "name": "Profound", "slug": "profound", - "generatorVersion": "0.33.2", + "generatorVersion": "0.33.3", "servers": [ "https://api.tryprofound.com" ], @@ -234,6 +234,27 @@ "format": "uuid" } }, + { + "name": "languages", + "publicName": "languages", + "required": false, + "deprecated": false, + "type": { + "kind": "union", + "variants": [ + { + "kind": "array", + "items": { + "kind": "primitive", + "type": "string" + } + }, + { + "kind": "null" + } + ] + } + }, { "name": "topic_ids", "publicName": "topic_ids", @@ -1301,6 +1322,27 @@ "format": "uuid" } }, + { + "name": "languages", + "publicName": "languages", + "required": false, + "deprecated": false, + "type": { + "kind": "union", + "variants": [ + { + "kind": "array", + "items": { + "kind": "primitive", + "type": "string" + } + }, + { + "kind": "null" + } + ] + } + }, { "name": "topic_ids", "publicName": "topic_ids", @@ -5023,7 +5065,6 @@ "duckduckgo", "you", "you.com", - "xai", "grok", "gemini", "mistral", @@ -5050,7 +5091,6 @@ "Duckduckgo", "You", "YouCom", - "Xai", "Grok", "Gemini", "Mistral", @@ -5086,7 +5126,6 @@ false, false, false, - false, false ] }, @@ -5109,7 +5148,6 @@ "duckduckgo", "you", "you.com", - "xai", "grok", "gemini", "mistral", @@ -5136,7 +5174,6 @@ "Duckduckgo", "You", "YouCom", - "Xai", "Grok", "Gemini", "Mistral", @@ -5172,7 +5209,6 @@ false, false, false, - false, false ] } @@ -8075,6 +8111,27 @@ "format": "uuid" } }, + { + "name": "languages", + "publicName": "languages", + "required": false, + "deprecated": false, + "type": { + "kind": "union", + "variants": [ + { + "kind": "array", + "items": { + "kind": "primitive", + "type": "string" + } + }, + { + "kind": "null" + } + ] + } + }, { "name": "topic_ids", "publicName": "topic_ids", @@ -8737,6 +8794,27 @@ "format": "uuid" } }, + { + "name": "languages", + "publicName": "languages", + "required": false, + "deprecated": false, + "type": { + "kind": "union", + "variants": [ + { + "kind": "array", + "items": { + "kind": "primitive", + "type": "string" + } + }, + { + "kind": "null" + } + ] + } + }, { "name": "topic_ids", "publicName": "topic_ids", @@ -9493,6 +9571,27 @@ "format": "uuid" } }, + { + "name": "languages", + "publicName": "languages", + "required": false, + "deprecated": false, + "type": { + "kind": "union", + "variants": [ + { + "kind": "array", + "items": { + "kind": "primitive", + "type": "string" + } + }, + { + "kind": "null" + } + ] + } + }, { "name": "topic_ids", "publicName": "topic_ids", @@ -14377,6 +14476,27 @@ "format": "uuid" } }, + { + "name": "languages", + "publicName": "languages", + "required": false, + "deprecated": false, + "type": { + "kind": "union", + "variants": [ + { + "kind": "array", + "items": { + "kind": "primitive", + "type": "string" + } + }, + { + "kind": "null" + } + ] + } + }, { "name": "topic_ids", "publicName": "topic_ids", @@ -14873,6 +14993,27 @@ "format": "uuid" } }, + { + "name": "languages", + "publicName": "languages", + "required": false, + "deprecated": false, + "type": { + "kind": "union", + "variants": [ + { + "kind": "array", + "items": { + "kind": "primitive", + "type": "string" + } + }, + { + "kind": "null" + } + ] + } + }, { "name": "topic_ids", "publicName": "topic_ids", @@ -15395,6 +15536,27 @@ "format": "uuid" } }, + { + "name": "languages", + "publicName": "languages", + "required": false, + "deprecated": false, + "type": { + "kind": "union", + "variants": [ + { + "kind": "array", + "items": { + "kind": "primitive", + "type": "string" + } + }, + { + "kind": "null" + } + ] + } + }, { "name": "topic_ids", "publicName": "topic_ids", @@ -17725,8 +17887,22 @@ "type": { "kind": "array", "items": { - "kind": "primitive", - "type": "string" + "kind": "enum", + "values": [ + "chatgpt.com", + "gemini.google.com", + "perplexity.ai" + ], + "names": [ + "ChatgptCom", + "GeminiGoogleCom", + "PerplexityAi" + ], + "deprecations": [ + false, + false, + false + ] } } } @@ -17924,8 +18100,22 @@ "type": { "kind": "array", "items": { - "kind": "primitive", - "type": "string" + "kind": "enum", + "values": [ + "chatgpt.com", + "gemini.google.com", + "perplexity.ai" + ], + "names": [ + "ChatgptCom", + "GeminiGoogleCom", + "PerplexityAi" + ], + "deprecations": [ + false, + false, + false + ] } } }, @@ -32439,6 +32629,27 @@ "format": "uuid" } }, + { + "name": "languages", + "publicName": "languages", + "required": false, + "deprecated": false, + "type": { + "kind": "union", + "variants": [ + { + "kind": "array", + "items": { + "kind": "primitive", + "type": "string" + } + }, + { + "kind": "null" + } + ] + } + }, { "name": "topic_ids", "publicName": "topic_ids", @@ -43768,6 +43979,7 @@ "comparison_start_date", "comparison_end_date", "category_id", + "languages", "topic_ids", "exclude_topic_ids", "tag_ids", @@ -43788,6 +44000,7 @@ "comparison_start_date", "comparison_end_date", "category_id", + "languages", "topic_ids", "exclude_topic_ids", "tag_ids", @@ -43823,6 +44036,10 @@ "name": "category_id", "required": true }, + { + "name": "languages", + "required": false + }, { "name": "topic_ids", "required": false @@ -43959,6 +44176,7 @@ "comparison_start_date", "comparison_end_date", "category_id", + "languages", "topic_ids", "exclude_topic_ids", "tag_ids", @@ -43986,6 +44204,7 @@ "comparison_start_date", "comparison_end_date", "category_id", + "languages", "topic_ids", "exclude_topic_ids", "tag_ids", @@ -44028,6 +44247,10 @@ "name": "category_id", "required": true }, + { + "name": "languages", + "required": false + }, { "name": "topic_ids", "required": false @@ -44396,6 +44619,7 @@ "comparison_start_date", "comparison_end_date", "category_id", + "languages", "topic_ids", "exclude_topic_ids", "tag_ids", @@ -44419,6 +44643,7 @@ "comparison_start_date", "comparison_end_date", "category_id", + "languages", "topic_ids", "exclude_topic_ids", "tag_ids", @@ -44457,6 +44682,10 @@ "name": "category_id", "required": true }, + { + "name": "languages", + "required": false + }, { "name": "topic_ids", "required": false @@ -44605,6 +44834,7 @@ "comparison_start_date", "comparison_end_date", "category_id", + "languages", "topic_ids", "exclude_topic_ids", "tag_ids", @@ -44628,6 +44858,7 @@ "comparison_start_date", "comparison_end_date", "category_id", + "languages", "topic_ids", "exclude_topic_ids", "tag_ids", @@ -44666,6 +44897,10 @@ "name": "category_id", "required": true }, + { + "name": "languages", + "required": false + }, { "name": "topic_ids", "required": false @@ -44814,6 +45049,7 @@ "comparison_start_date", "comparison_end_date", "category_id", + "languages", "topic_ids", "exclude_topic_ids", "tag_ids", @@ -44833,6 +45069,7 @@ "comparison_start_date", "comparison_end_date", "category_id", + "languages", "topic_ids", "exclude_topic_ids", "tag_ids", @@ -44867,6 +45104,10 @@ "name": "category_id", "required": true }, + { + "name": "languages", + "required": false + }, { "name": "topic_ids", "required": false @@ -44999,6 +45240,7 @@ "comparison_start_date", "comparison_end_date", "category_id", + "languages", "topic_ids", "exclude_topic_ids", "tag_ids", @@ -45018,6 +45260,7 @@ "comparison_start_date", "comparison_end_date", "category_id", + "languages", "topic_ids", "exclude_topic_ids", "tag_ids", @@ -45052,6 +45295,10 @@ "name": "category_id", "required": true }, + { + "name": "languages", + "required": false + }, { "name": "topic_ids", "required": false @@ -45184,6 +45431,7 @@ "comparison_start_date", "comparison_end_date", "category_id", + "languages", "topic_ids", "exclude_topic_ids", "tag_ids", @@ -45203,6 +45451,7 @@ "comparison_start_date", "comparison_end_date", "category_id", + "languages", "topic_ids", "exclude_topic_ids", "tag_ids", @@ -45237,6 +45486,10 @@ "name": "category_id", "required": true }, + { + "name": "languages", + "required": false + }, { "name": "topic_ids", "required": false @@ -45369,6 +45622,7 @@ "comparison_start_date", "comparison_end_date", "category_id", + "languages", "topic_ids", "exclude_topic_ids", "tag_ids", @@ -45392,6 +45646,7 @@ "comparison_start_date", "comparison_end_date", "category_id", + "languages", "topic_ids", "exclude_topic_ids", "tag_ids", @@ -45430,6 +45685,10 @@ "name": "category_id", "required": true }, + { + "name": "languages", + "required": false + }, { "name": "topic_ids", "required": false @@ -45578,6 +45837,7 @@ "comparison_start_date", "comparison_end_date", "category_id", + "languages", "topic_ids", "exclude_topic_ids", "tag_ids", @@ -45599,6 +45859,7 @@ "comparison_start_date", "comparison_end_date", "category_id", + "languages", "topic_ids", "exclude_topic_ids", "tag_ids", @@ -45635,6 +45896,10 @@ "name": "category_id", "required": true }, + { + "name": "languages", + "required": false + }, { "name": "topic_ids", "required": false diff --git a/src/profound/_version.py b/src/profound/_version.py index 8317ea22..124ea4fb 100644 --- a/src/profound/_version.py +++ b/src/profound/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Scalar. See README.md for details. __title__ = "profound" -__version__ = "0.60.0" # x-release-please-version +__version__ = "0.61.0" # x-release-please-version diff --git a/src/profound/resources/prompt_volumes/intents.py b/src/profound/resources/prompt_volumes/intents.py index 6d040093..1ee74410 100644 --- a/src/profound/resources/prompt_volumes/intents.py +++ b/src/profound/resources/prompt_volumes/intents.py @@ -4,7 +4,7 @@ import httpx -from typing import Union +from typing import List, Union from datetime import date from typing_extensions import Literal from ..._types import SequenceNotStr @@ -43,7 +43,7 @@ def on_the_fly( start_date: Union[str, date], end_date: Union[str, date], regions: SequenceNotStr[str] | Omit = omit, - platforms: SequenceNotStr[str] | Omit = omit, + platforms: List[Literal["chatgpt.com", "gemini.google.com", "perplexity.ai"]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -54,18 +54,16 @@ def on_the_fly( """ Intent shares for one keyword across the requested cohort weeks. - Shares are fractions from 0 to 1 over classified matching conversations. - Cohorts with at most two matching users are omitted for privacy. This - endpoint shares the volume endpoint's burst limit but consumes no daily - keyword quota. + Shares are fractions from 0 to 1. Cohorts with two or fewer matching users + are omitted for privacy. Doesn't use the daily keyword allowance. Args: keyword: Body parameter. matching_type: Body parameter. start_date: Body parameter. end_date: Body parameter. - regions: Body parameter. - platforms: Body parameter. + regions: ISO 3166-1 alpha-3 country codes (e.g. USA). Omit to include every region. + platforms: Platforms to restrict to. Omit to include every platform. extra_headers: Send extra headers with the request. extra_query: Send extra query parameters with the request. extra_body: Send extra JSON properties with the request. @@ -121,7 +119,7 @@ async def on_the_fly( start_date: Union[str, date], end_date: Union[str, date], regions: SequenceNotStr[str] | Omit = omit, - platforms: SequenceNotStr[str] | Omit = omit, + platforms: List[Literal["chatgpt.com", "gemini.google.com", "perplexity.ai"]] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -132,18 +130,16 @@ async def on_the_fly( """ Intent shares for one keyword across the requested cohort weeks. - Shares are fractions from 0 to 1 over classified matching conversations. - Cohorts with at most two matching users are omitted for privacy. This - endpoint shares the volume endpoint's burst limit but consumes no daily - keyword quota. + Shares are fractions from 0 to 1. Cohorts with two or fewer matching users + are omitted for privacy. Doesn't use the daily keyword allowance. Args: keyword: Body parameter. matching_type: Body parameter. start_date: Body parameter. end_date: Body parameter. - regions: Body parameter. - platforms: Body parameter. + regions: ISO 3166-1 alpha-3 country codes (e.g. USA). Omit to include every region. + platforms: Platforms to restrict to. Omit to include every platform. extra_headers: Send extra headers with the request. extra_query: Send extra query parameters with the request. extra_body: Send extra JSON properties with the request. diff --git a/src/profound/resources/prompt_volumes/volume.py b/src/profound/resources/prompt_volumes/volume.py index 10d8a67b..39d023f0 100644 --- a/src/profound/resources/prompt_volumes/volume.py +++ b/src/profound/resources/prompt_volumes/volume.py @@ -4,7 +4,7 @@ import httpx -from typing import Optional, Union +from typing import List, Optional, Union from datetime import date from typing_extensions import Literal from ..._types import SequenceNotStr @@ -43,7 +43,7 @@ def on_the_fly( start_date: Union[str, date], end_date: Union[str, date], regions: SequenceNotStr[str] | Omit = omit, - platforms: SequenceNotStr[str] | Omit = omit, + platforms: List[Literal["chatgpt.com", "gemini.google.com", "perplexity.ai"]] | Omit = omit, organization_id: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -55,19 +55,17 @@ def on_the_fly( """ Weekly and monthly volume projections for one keyword. - Each organization can look up 1,000 distinct normalized keywords per UTC - day. Repeats consume no additional allowance. New keywords over the cap - return 429 with X-KeywordQuota-* and Retry-After headers. Quota admission - requires Redis (503 when unavailable); empty results and query failures - retain the reservation. Slices with at most two users are omitted. + Each organization can look up 1,000 distinct keywords per UTC day; over + the cap returns 429 with Retry-After. Slices with two or fewer users are + omitted for privacy. Args: keyword: Body parameter. matching_type: Body parameter. start_date: Body parameter. end_date: Body parameter. - regions: Body parameter. - platforms: Body parameter. + regions: ISO 3166-1 alpha-3 country codes (e.g. USA). Omit to include every region. + platforms: Platforms to restrict to. Omit to include every platform. organization_id: Organization whose daily keyword allowance is used. Required in the JSON request body for API keys with multiple organizations that have API access. If omitted or null, defaults to the API key's sole organization with API access or the token's active organization. For OAuth/M2M tokens, any supplied organization_id must match the token's organization. extra_headers: Send extra headers with the request. extra_query: Send extra query parameters with the request. @@ -125,7 +123,7 @@ async def on_the_fly( start_date: Union[str, date], end_date: Union[str, date], regions: SequenceNotStr[str] | Omit = omit, - platforms: SequenceNotStr[str] | Omit = omit, + platforms: List[Literal["chatgpt.com", "gemini.google.com", "perplexity.ai"]] | Omit = omit, organization_id: Optional[str] | Omit = omit, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -137,19 +135,17 @@ async def on_the_fly( """ Weekly and monthly volume projections for one keyword. - Each organization can look up 1,000 distinct normalized keywords per UTC - day. Repeats consume no additional allowance. New keywords over the cap - return 429 with X-KeywordQuota-* and Retry-After headers. Quota admission - requires Redis (503 when unavailable); empty results and query failures - retain the reservation. Slices with at most two users are omitted. + Each organization can look up 1,000 distinct keywords per UTC day; over + the cap returns 429 with Retry-After. Slices with two or fewer users are + omitted for privacy. Args: keyword: Body parameter. matching_type: Body parameter. start_date: Body parameter. end_date: Body parameter. - regions: Body parameter. - platforms: Body parameter. + regions: ISO 3166-1 alpha-3 country codes (e.g. USA). Omit to include every region. + platforms: Platforms to restrict to. Omit to include every platform. organization_id: Organization whose daily keyword allowance is used. Required in the JSON request body for API keys with multiple organizations that have API access. If omitted or null, defaults to the API key's sole organization with API access or the token's active organization. For OAuth/M2M tokens, any supplied organization_id must match the token's organization. extra_headers: Send extra headers with the request. extra_query: Send extra query parameters with the request. diff --git a/src/profound/resources/reports/accuracy.py b/src/profound/resources/reports/accuracy.py index c586b495..3e5a00ea 100644 --- a/src/profound/resources/reports/accuracy.py +++ b/src/profound/resources/reports/accuracy.py @@ -70,6 +70,7 @@ def create_overview( comparison_start_date: Optional[str] | Omit = omit, comparison_end_date: Optional[str] | Omit = omit, category_id: str, + languages: Optional[SequenceNotStr[str]] | Omit = omit, topic_ids: Optional[SequenceNotStr[str]] | Omit = omit, exclude_topic_ids: bool | Omit = omit, tag_ids: Optional[SequenceNotStr[str]] | Omit = omit, @@ -99,6 +100,7 @@ def create_overview( comparison_start_date: Body parameter. comparison_end_date: Body parameter. category_id: Body parameter. + languages: Body parameter. topic_ids: Body parameter. exclude_topic_ids: Body parameter. tag_ids: Body parameter. @@ -143,6 +145,7 @@ def create_overview( "comparison_start_date": comparison_start_date, "comparison_end_date": comparison_end_date, "category_id": category_id, + "languages": languages, "topic_ids": topic_ids, "exclude_topic_ids": exclude_topic_ids, "tag_ids": tag_ids, @@ -173,6 +176,7 @@ def create_breakdown( comparison_start_date: Optional[str] | Omit = omit, comparison_end_date: Optional[str] | Omit = omit, category_id: str, + languages: Optional[SequenceNotStr[str]] | Omit = omit, topic_ids: Optional[SequenceNotStr[str]] | Omit = omit, exclude_topic_ids: bool | Omit = omit, tag_ids: Optional[SequenceNotStr[str]] | Omit = omit, @@ -211,6 +215,7 @@ def create_breakdown( comparison_start_date: Body parameter. comparison_end_date: Body parameter. category_id: Body parameter. + languages: Body parameter. topic_ids: Body parameter. exclude_topic_ids: Body parameter. tag_ids: Body parameter. @@ -266,6 +271,7 @@ def create_breakdown( "comparison_start_date": comparison_start_date, "comparison_end_date": comparison_end_date, "category_id": category_id, + "languages": languages, "topic_ids": topic_ids, "exclude_topic_ids": exclude_topic_ids, "tag_ids": tag_ids, @@ -413,6 +419,7 @@ def create_inaccurate_themes( comparison_start_date: Optional[str] | Omit = omit, comparison_end_date: Optional[str] | Omit = omit, category_id: str, + languages: Optional[SequenceNotStr[str]] | Omit = omit, topic_ids: Optional[SequenceNotStr[str]] | Omit = omit, exclude_topic_ids: bool | Omit = omit, tag_ids: Optional[SequenceNotStr[str]] | Omit = omit, @@ -445,6 +452,7 @@ def create_inaccurate_themes( comparison_start_date: Body parameter. comparison_end_date: Body parameter. category_id: Body parameter. + languages: Body parameter. topic_ids: Body parameter. exclude_topic_ids: Body parameter. tag_ids: Body parameter. @@ -495,6 +503,7 @@ def create_inaccurate_themes( "comparison_start_date": comparison_start_date, "comparison_end_date": comparison_end_date, "category_id": category_id, + "languages": languages, "topic_ids": topic_ids, "exclude_topic_ids": exclude_topic_ids, "tag_ids": tag_ids, @@ -528,6 +537,7 @@ def create_inaccurate_clusters( comparison_start_date: Optional[str] | Omit = omit, comparison_end_date: Optional[str] | Omit = omit, category_id: str, + languages: Optional[SequenceNotStr[str]] | Omit = omit, topic_ids: Optional[SequenceNotStr[str]] | Omit = omit, exclude_topic_ids: bool | Omit = omit, tag_ids: Optional[SequenceNotStr[str]] | Omit = omit, @@ -560,6 +570,7 @@ def create_inaccurate_clusters( comparison_start_date: Body parameter. comparison_end_date: Body parameter. category_id: Body parameter. + languages: Body parameter. topic_ids: Body parameter. exclude_topic_ids: Body parameter. tag_ids: Body parameter. @@ -609,6 +620,7 @@ def create_inaccurate_clusters( "comparison_start_date": comparison_start_date, "comparison_end_date": comparison_end_date, "category_id": category_id, + "languages": languages, "topic_ids": topic_ids, "exclude_topic_ids": exclude_topic_ids, "tag_ids": tag_ids, @@ -642,6 +654,7 @@ def create_inaccuracy_drivers( comparison_start_date: Optional[str] | Omit = omit, comparison_end_date: Optional[str] | Omit = omit, category_id: str, + languages: Optional[SequenceNotStr[str]] | Omit = omit, topic_ids: Optional[SequenceNotStr[str]] | Omit = omit, exclude_topic_ids: bool | Omit = omit, tag_ids: Optional[SequenceNotStr[str]] | Omit = omit, @@ -670,6 +683,7 @@ def create_inaccuracy_drivers( comparison_start_date: Body parameter. comparison_end_date: Body parameter. category_id: Body parameter. + languages: Body parameter. topic_ids: Body parameter. exclude_topic_ids: Body parameter. tag_ids: Body parameter. @@ -713,6 +727,7 @@ def create_inaccuracy_drivers( "comparison_start_date": comparison_start_date, "comparison_end_date": comparison_end_date, "category_id": category_id, + "languages": languages, "topic_ids": topic_ids, "exclude_topic_ids": exclude_topic_ids, "tag_ids": tag_ids, @@ -742,6 +757,7 @@ def create_top_inaccurate_claims( comparison_start_date: Optional[str] | Omit = omit, comparison_end_date: Optional[str] | Omit = omit, category_id: str, + languages: Optional[SequenceNotStr[str]] | Omit = omit, topic_ids: Optional[SequenceNotStr[str]] | Omit = omit, exclude_topic_ids: bool | Omit = omit, tag_ids: Optional[SequenceNotStr[str]] | Omit = omit, @@ -770,6 +786,7 @@ def create_top_inaccurate_claims( comparison_start_date: Body parameter. comparison_end_date: Body parameter. category_id: Body parameter. + languages: Body parameter. topic_ids: Body parameter. exclude_topic_ids: Body parameter. tag_ids: Body parameter. @@ -813,6 +830,7 @@ def create_top_inaccurate_claims( "comparison_start_date": comparison_start_date, "comparison_end_date": comparison_end_date, "category_id": category_id, + "languages": languages, "topic_ids": topic_ids, "exclude_topic_ids": exclude_topic_ids, "tag_ids": tag_ids, @@ -842,6 +860,7 @@ def create_claim_breakdown( comparison_start_date: Optional[str] | Omit = omit, comparison_end_date: Optional[str] | Omit = omit, category_id: str, + languages: Optional[SequenceNotStr[str]] | Omit = omit, topic_ids: Optional[SequenceNotStr[str]] | Omit = omit, exclude_topic_ids: bool | Omit = omit, tag_ids: Optional[SequenceNotStr[str]] | Omit = omit, @@ -870,6 +889,7 @@ def create_claim_breakdown( comparison_start_date: Body parameter. comparison_end_date: Body parameter. category_id: Body parameter. + languages: Body parameter. topic_ids: Body parameter. exclude_topic_ids: Body parameter. tag_ids: Body parameter. @@ -913,6 +933,7 @@ def create_claim_breakdown( "comparison_start_date": comparison_start_date, "comparison_end_date": comparison_end_date, "category_id": category_id, + "languages": languages, "topic_ids": topic_ids, "exclude_topic_ids": exclude_topic_ids, "tag_ids": tag_ids, @@ -942,6 +963,7 @@ def create_claim_citations( comparison_start_date: Optional[str] | Omit = omit, comparison_end_date: Optional[str] | Omit = omit, category_id: str, + languages: Optional[SequenceNotStr[str]] | Omit = omit, topic_ids: Optional[SequenceNotStr[str]] | Omit = omit, exclude_topic_ids: bool | Omit = omit, tag_ids: Optional[SequenceNotStr[str]] | Omit = omit, @@ -974,6 +996,7 @@ def create_claim_citations( comparison_start_date: Body parameter. comparison_end_date: Body parameter. category_id: Body parameter. + languages: Body parameter. topic_ids: Body parameter. exclude_topic_ids: Body parameter. tag_ids: Body parameter. @@ -1024,6 +1047,7 @@ def create_claim_citations( "comparison_start_date": comparison_start_date, "comparison_end_date": comparison_end_date, "category_id": category_id, + "languages": languages, "topic_ids": topic_ids, "exclude_topic_ids": exclude_topic_ids, "tag_ids": tag_ids, @@ -1057,6 +1081,7 @@ def create_cluster_example_runs( comparison_start_date: Optional[str] | Omit = omit, comparison_end_date: Optional[str] | Omit = omit, category_id: str, + languages: Optional[SequenceNotStr[str]] | Omit = omit, topic_ids: Optional[SequenceNotStr[str]] | Omit = omit, exclude_topic_ids: bool | Omit = omit, tag_ids: Optional[SequenceNotStr[str]] | Omit = omit, @@ -1087,6 +1112,7 @@ def create_cluster_example_runs( comparison_start_date: Body parameter. comparison_end_date: Body parameter. category_id: Body parameter. + languages: Body parameter. topic_ids: Body parameter. exclude_topic_ids: Body parameter. tag_ids: Body parameter. @@ -1134,6 +1160,7 @@ def create_cluster_example_runs( "comparison_start_date": comparison_start_date, "comparison_end_date": comparison_end_date, "category_id": category_id, + "languages": languages, "topic_ids": topic_ids, "exclude_topic_ids": exclude_topic_ids, "tag_ids": tag_ids, @@ -1267,6 +1294,7 @@ async def create_overview( comparison_start_date: Optional[str] | Omit = omit, comparison_end_date: Optional[str] | Omit = omit, category_id: str, + languages: Optional[SequenceNotStr[str]] | Omit = omit, topic_ids: Optional[SequenceNotStr[str]] | Omit = omit, exclude_topic_ids: bool | Omit = omit, tag_ids: Optional[SequenceNotStr[str]] | Omit = omit, @@ -1296,6 +1324,7 @@ async def create_overview( comparison_start_date: Body parameter. comparison_end_date: Body parameter. category_id: Body parameter. + languages: Body parameter. topic_ids: Body parameter. exclude_topic_ids: Body parameter. tag_ids: Body parameter. @@ -1340,6 +1369,7 @@ async def create_overview( "comparison_start_date": comparison_start_date, "comparison_end_date": comparison_end_date, "category_id": category_id, + "languages": languages, "topic_ids": topic_ids, "exclude_topic_ids": exclude_topic_ids, "tag_ids": tag_ids, @@ -1370,6 +1400,7 @@ async def create_breakdown( comparison_start_date: Optional[str] | Omit = omit, comparison_end_date: Optional[str] | Omit = omit, category_id: str, + languages: Optional[SequenceNotStr[str]] | Omit = omit, topic_ids: Optional[SequenceNotStr[str]] | Omit = omit, exclude_topic_ids: bool | Omit = omit, tag_ids: Optional[SequenceNotStr[str]] | Omit = omit, @@ -1408,6 +1439,7 @@ async def create_breakdown( comparison_start_date: Body parameter. comparison_end_date: Body parameter. category_id: Body parameter. + languages: Body parameter. topic_ids: Body parameter. exclude_topic_ids: Body parameter. tag_ids: Body parameter. @@ -1463,6 +1495,7 @@ async def create_breakdown( "comparison_start_date": comparison_start_date, "comparison_end_date": comparison_end_date, "category_id": category_id, + "languages": languages, "topic_ids": topic_ids, "exclude_topic_ids": exclude_topic_ids, "tag_ids": tag_ids, @@ -1610,6 +1643,7 @@ async def create_inaccurate_themes( comparison_start_date: Optional[str] | Omit = omit, comparison_end_date: Optional[str] | Omit = omit, category_id: str, + languages: Optional[SequenceNotStr[str]] | Omit = omit, topic_ids: Optional[SequenceNotStr[str]] | Omit = omit, exclude_topic_ids: bool | Omit = omit, tag_ids: Optional[SequenceNotStr[str]] | Omit = omit, @@ -1642,6 +1676,7 @@ async def create_inaccurate_themes( comparison_start_date: Body parameter. comparison_end_date: Body parameter. category_id: Body parameter. + languages: Body parameter. topic_ids: Body parameter. exclude_topic_ids: Body parameter. tag_ids: Body parameter. @@ -1692,6 +1727,7 @@ async def create_inaccurate_themes( "comparison_start_date": comparison_start_date, "comparison_end_date": comparison_end_date, "category_id": category_id, + "languages": languages, "topic_ids": topic_ids, "exclude_topic_ids": exclude_topic_ids, "tag_ids": tag_ids, @@ -1725,6 +1761,7 @@ async def create_inaccurate_clusters( comparison_start_date: Optional[str] | Omit = omit, comparison_end_date: Optional[str] | Omit = omit, category_id: str, + languages: Optional[SequenceNotStr[str]] | Omit = omit, topic_ids: Optional[SequenceNotStr[str]] | Omit = omit, exclude_topic_ids: bool | Omit = omit, tag_ids: Optional[SequenceNotStr[str]] | Omit = omit, @@ -1757,6 +1794,7 @@ async def create_inaccurate_clusters( comparison_start_date: Body parameter. comparison_end_date: Body parameter. category_id: Body parameter. + languages: Body parameter. topic_ids: Body parameter. exclude_topic_ids: Body parameter. tag_ids: Body parameter. @@ -1806,6 +1844,7 @@ async def create_inaccurate_clusters( "comparison_start_date": comparison_start_date, "comparison_end_date": comparison_end_date, "category_id": category_id, + "languages": languages, "topic_ids": topic_ids, "exclude_topic_ids": exclude_topic_ids, "tag_ids": tag_ids, @@ -1839,6 +1878,7 @@ async def create_inaccuracy_drivers( comparison_start_date: Optional[str] | Omit = omit, comparison_end_date: Optional[str] | Omit = omit, category_id: str, + languages: Optional[SequenceNotStr[str]] | Omit = omit, topic_ids: Optional[SequenceNotStr[str]] | Omit = omit, exclude_topic_ids: bool | Omit = omit, tag_ids: Optional[SequenceNotStr[str]] | Omit = omit, @@ -1867,6 +1907,7 @@ async def create_inaccuracy_drivers( comparison_start_date: Body parameter. comparison_end_date: Body parameter. category_id: Body parameter. + languages: Body parameter. topic_ids: Body parameter. exclude_topic_ids: Body parameter. tag_ids: Body parameter. @@ -1910,6 +1951,7 @@ async def create_inaccuracy_drivers( "comparison_start_date": comparison_start_date, "comparison_end_date": comparison_end_date, "category_id": category_id, + "languages": languages, "topic_ids": topic_ids, "exclude_topic_ids": exclude_topic_ids, "tag_ids": tag_ids, @@ -1939,6 +1981,7 @@ async def create_top_inaccurate_claims( comparison_start_date: Optional[str] | Omit = omit, comparison_end_date: Optional[str] | Omit = omit, category_id: str, + languages: Optional[SequenceNotStr[str]] | Omit = omit, topic_ids: Optional[SequenceNotStr[str]] | Omit = omit, exclude_topic_ids: bool | Omit = omit, tag_ids: Optional[SequenceNotStr[str]] | Omit = omit, @@ -1967,6 +2010,7 @@ async def create_top_inaccurate_claims( comparison_start_date: Body parameter. comparison_end_date: Body parameter. category_id: Body parameter. + languages: Body parameter. topic_ids: Body parameter. exclude_topic_ids: Body parameter. tag_ids: Body parameter. @@ -2010,6 +2054,7 @@ async def create_top_inaccurate_claims( "comparison_start_date": comparison_start_date, "comparison_end_date": comparison_end_date, "category_id": category_id, + "languages": languages, "topic_ids": topic_ids, "exclude_topic_ids": exclude_topic_ids, "tag_ids": tag_ids, @@ -2039,6 +2084,7 @@ async def create_claim_breakdown( comparison_start_date: Optional[str] | Omit = omit, comparison_end_date: Optional[str] | Omit = omit, category_id: str, + languages: Optional[SequenceNotStr[str]] | Omit = omit, topic_ids: Optional[SequenceNotStr[str]] | Omit = omit, exclude_topic_ids: bool | Omit = omit, tag_ids: Optional[SequenceNotStr[str]] | Omit = omit, @@ -2067,6 +2113,7 @@ async def create_claim_breakdown( comparison_start_date: Body parameter. comparison_end_date: Body parameter. category_id: Body parameter. + languages: Body parameter. topic_ids: Body parameter. exclude_topic_ids: Body parameter. tag_ids: Body parameter. @@ -2110,6 +2157,7 @@ async def create_claim_breakdown( "comparison_start_date": comparison_start_date, "comparison_end_date": comparison_end_date, "category_id": category_id, + "languages": languages, "topic_ids": topic_ids, "exclude_topic_ids": exclude_topic_ids, "tag_ids": tag_ids, @@ -2139,6 +2187,7 @@ async def create_claim_citations( comparison_start_date: Optional[str] | Omit = omit, comparison_end_date: Optional[str] | Omit = omit, category_id: str, + languages: Optional[SequenceNotStr[str]] | Omit = omit, topic_ids: Optional[SequenceNotStr[str]] | Omit = omit, exclude_topic_ids: bool | Omit = omit, tag_ids: Optional[SequenceNotStr[str]] | Omit = omit, @@ -2171,6 +2220,7 @@ async def create_claim_citations( comparison_start_date: Body parameter. comparison_end_date: Body parameter. category_id: Body parameter. + languages: Body parameter. topic_ids: Body parameter. exclude_topic_ids: Body parameter. tag_ids: Body parameter. @@ -2221,6 +2271,7 @@ async def create_claim_citations( "comparison_start_date": comparison_start_date, "comparison_end_date": comparison_end_date, "category_id": category_id, + "languages": languages, "topic_ids": topic_ids, "exclude_topic_ids": exclude_topic_ids, "tag_ids": tag_ids, @@ -2254,6 +2305,7 @@ async def create_cluster_example_runs( comparison_start_date: Optional[str] | Omit = omit, comparison_end_date: Optional[str] | Omit = omit, category_id: str, + languages: Optional[SequenceNotStr[str]] | Omit = omit, topic_ids: Optional[SequenceNotStr[str]] | Omit = omit, exclude_topic_ids: bool | Omit = omit, tag_ids: Optional[SequenceNotStr[str]] | Omit = omit, @@ -2284,6 +2336,7 @@ async def create_cluster_example_runs( comparison_start_date: Body parameter. comparison_end_date: Body parameter. category_id: Body parameter. + languages: Body parameter. topic_ids: Body parameter. exclude_topic_ids: Body parameter. tag_ids: Body parameter. @@ -2331,6 +2384,7 @@ async def create_cluster_example_runs( "comparison_start_date": comparison_start_date, "comparison_end_date": comparison_end_date, "category_id": category_id, + "languages": languages, "topic_ids": topic_ids, "exclude_topic_ids": exclude_topic_ids, "tag_ids": tag_ids, diff --git a/src/profound/types/prompt_volumes/intent_on_the_fly_params.py b/src/profound/types/prompt_volumes/intent_on_the_fly_params.py index 2595d7b1..8fc2c435 100644 --- a/src/profound/types/prompt_volumes/intent_on_the_fly_params.py +++ b/src/profound/types/prompt_volumes/intent_on_the_fly_params.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Union +from typing import List, Union from datetime import date from typing_extensions import Annotated, Literal, Required, TypedDict from ..._types import SequenceNotStr @@ -22,5 +22,7 @@ class IntentOnTheFlyParams(TypedDict, total=False): end_date: Required[Annotated[Union[str, date], PropertyInfo(format="iso8601")]] regions: SequenceNotStr[str] + """ISO 3166-1 alpha-3 country codes (e.g. USA). Omit to include every region.""" - platforms: SequenceNotStr[str] + platforms: List[Literal["chatgpt.com", "gemini.google.com", "perplexity.ai"]] + """Platforms to restrict to. Omit to include every platform.""" diff --git a/src/profound/types/prompt_volumes/volume_on_the_fly_params.py b/src/profound/types/prompt_volumes/volume_on_the_fly_params.py index 10aef311..9f2c089f 100644 --- a/src/profound/types/prompt_volumes/volume_on_the_fly_params.py +++ b/src/profound/types/prompt_volumes/volume_on_the_fly_params.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Optional, Union +from typing import List, Optional, Union from datetime import date from typing_extensions import Annotated, Literal, Required, TypedDict from ..._types import SequenceNotStr @@ -22,8 +22,10 @@ class VolumeOnTheFlyParams(TypedDict, total=False): end_date: Required[Annotated[Union[str, date], PropertyInfo(format="iso8601")]] regions: SequenceNotStr[str] + """ISO 3166-1 alpha-3 country codes (e.g. USA). Omit to include every region.""" - platforms: SequenceNotStr[str] + platforms: List[Literal["chatgpt.com", "gemini.google.com", "perplexity.ai"]] + """Platforms to restrict to. Omit to include every platform.""" organization_id: Optional[str] """Organization whose daily keyword allowance is used. Required in the JSON request body for API keys with multiple organizations that have API access. If omitted or null, defaults to the API key's sole organization with API access or the token's active organization. For OAuth/M2M tokens, any supplied organization_id must match the token's organization.""" diff --git a/src/profound/types/reports/accuracy_create_breakdown_params.py b/src/profound/types/reports/accuracy_create_breakdown_params.py index 03c940c9..5bd6e955 100644 --- a/src/profound/types/reports/accuracy_create_breakdown_params.py +++ b/src/profound/types/reports/accuracy_create_breakdown_params.py @@ -20,6 +20,8 @@ class AccuracyCreateBreakdownParams(TypedDict, total=False): category_id: Required[str] + languages: Optional[SequenceNotStr[str]] + topic_ids: Optional[SequenceNotStr[str]] exclude_topic_ids: bool diff --git a/src/profound/types/reports/accuracy_create_claim_breakdown_params.py b/src/profound/types/reports/accuracy_create_claim_breakdown_params.py index af4e7495..8dc39d67 100644 --- a/src/profound/types/reports/accuracy_create_claim_breakdown_params.py +++ b/src/profound/types/reports/accuracy_create_claim_breakdown_params.py @@ -20,6 +20,8 @@ class AccuracyCreateClaimBreakdownParams(TypedDict, total=False): category_id: Required[str] + languages: Optional[SequenceNotStr[str]] + topic_ids: Optional[SequenceNotStr[str]] exclude_topic_ids: bool diff --git a/src/profound/types/reports/accuracy_create_claim_citations_params.py b/src/profound/types/reports/accuracy_create_claim_citations_params.py index bcc8cefa..987042dc 100644 --- a/src/profound/types/reports/accuracy_create_claim_citations_params.py +++ b/src/profound/types/reports/accuracy_create_claim_citations_params.py @@ -20,6 +20,8 @@ class AccuracyCreateClaimCitationsParams(TypedDict, total=False): category_id: Required[str] + languages: Optional[SequenceNotStr[str]] + topic_ids: Optional[SequenceNotStr[str]] exclude_topic_ids: bool diff --git a/src/profound/types/reports/accuracy_create_claim_citations_response.py b/src/profound/types/reports/accuracy_create_claim_citations_response.py index aa3bc924..a663803a 100644 --- a/src/profound/types/reports/accuracy_create_claim_citations_response.py +++ b/src/profound/types/reports/accuracy_create_claim_citations_response.py @@ -25,8 +25,10 @@ class Data(BaseModel): citation_count: float = FieldInfo(alias="citationCount") citation_share: float = FieldInfo(alias="citationShare") + """Citation share as a 0-100 percentage; 0.4718 means 0.4718%.""" citation_share_delta: Optional[float] = FieldInfo(alias="citationShareDelta", default=None) + """Change in citation share in percentage points.""" class AccuracyCreateClaimCitationsResponse(BaseModel): diff --git a/src/profound/types/reports/accuracy_create_cluster_example_runs_params.py b/src/profound/types/reports/accuracy_create_cluster_example_runs_params.py index 08568a68..c4782283 100644 --- a/src/profound/types/reports/accuracy_create_cluster_example_runs_params.py +++ b/src/profound/types/reports/accuracy_create_cluster_example_runs_params.py @@ -20,6 +20,8 @@ class AccuracyCreateClusterExampleRunsParams(TypedDict, total=False): category_id: Required[str] + languages: Optional[SequenceNotStr[str]] + topic_ids: Optional[SequenceNotStr[str]] exclude_topic_ids: bool diff --git a/src/profound/types/reports/accuracy_create_inaccuracy_drivers_params.py b/src/profound/types/reports/accuracy_create_inaccuracy_drivers_params.py index 81c9c32e..bd9ce2c1 100644 --- a/src/profound/types/reports/accuracy_create_inaccuracy_drivers_params.py +++ b/src/profound/types/reports/accuracy_create_inaccuracy_drivers_params.py @@ -20,6 +20,8 @@ class AccuracyCreateInaccuracyDriversParams(TypedDict, total=False): category_id: Required[str] + languages: Optional[SequenceNotStr[str]] + topic_ids: Optional[SequenceNotStr[str]] exclude_topic_ids: bool diff --git a/src/profound/types/reports/accuracy_create_inaccuracy_drivers_response.py b/src/profound/types/reports/accuracy_create_inaccuracy_drivers_response.py index 285a8631..aceeef41 100644 --- a/src/profound/types/reports/accuracy_create_inaccuracy_drivers_response.py +++ b/src/profound/types/reports/accuracy_create_inaccuracy_drivers_response.py @@ -21,8 +21,10 @@ class Data(BaseModel): snippet_claim_id: str = FieldInfo(alias="snippetClaimId") claim_occurrence: float = FieldInfo(alias="claimOccurrence") + """Claim response share as a 0-100 percent, not citation share.""" claim_occurrence_delta: Optional[float] = FieldInfo(alias="claimOccurrenceDelta", default=None) + """Change in claim occurrence in percentage points.""" href: str diff --git a/src/profound/types/reports/accuracy_create_inaccurate_clusters_params.py b/src/profound/types/reports/accuracy_create_inaccurate_clusters_params.py index a5570ec0..152ad0b2 100644 --- a/src/profound/types/reports/accuracy_create_inaccurate_clusters_params.py +++ b/src/profound/types/reports/accuracy_create_inaccurate_clusters_params.py @@ -20,6 +20,8 @@ class AccuracyCreateInaccurateClustersParams(TypedDict, total=False): category_id: Required[str] + languages: Optional[SequenceNotStr[str]] + topic_ids: Optional[SequenceNotStr[str]] exclude_topic_ids: bool diff --git a/src/profound/types/reports/accuracy_create_inaccurate_themes_params.py b/src/profound/types/reports/accuracy_create_inaccurate_themes_params.py index 0802c8e9..b21e4988 100644 --- a/src/profound/types/reports/accuracy_create_inaccurate_themes_params.py +++ b/src/profound/types/reports/accuracy_create_inaccurate_themes_params.py @@ -20,6 +20,8 @@ class AccuracyCreateInaccurateThemesParams(TypedDict, total=False): category_id: Required[str] + languages: Optional[SequenceNotStr[str]] + topic_ids: Optional[SequenceNotStr[str]] exclude_topic_ids: bool diff --git a/src/profound/types/reports/accuracy_create_overview_params.py b/src/profound/types/reports/accuracy_create_overview_params.py index ddbfc86d..4f4dc29e 100644 --- a/src/profound/types/reports/accuracy_create_overview_params.py +++ b/src/profound/types/reports/accuracy_create_overview_params.py @@ -20,6 +20,8 @@ class AccuracyCreateOverviewParams(TypedDict, total=False): category_id: Required[str] + languages: Optional[SequenceNotStr[str]] + topic_ids: Optional[SequenceNotStr[str]] exclude_topic_ids: bool diff --git a/src/profound/types/reports/accuracy_create_top_inaccurate_claims_params.py b/src/profound/types/reports/accuracy_create_top_inaccurate_claims_params.py index 76167247..5a3cf135 100644 --- a/src/profound/types/reports/accuracy_create_top_inaccurate_claims_params.py +++ b/src/profound/types/reports/accuracy_create_top_inaccurate_claims_params.py @@ -20,6 +20,8 @@ class AccuracyCreateTopInaccurateClaimsParams(TypedDict, total=False): category_id: Required[str] + languages: Optional[SequenceNotStr[str]] + topic_ids: Optional[SequenceNotStr[str]] exclude_topic_ids: bool diff --git a/src/profound/types/shared/bot_provider_filter.py b/src/profound/types/shared/bot_provider_filter.py index 4d1036b9..022cb1a5 100644 --- a/src/profound/types/shared/bot_provider_filter.py +++ b/src/profound/types/shared/bot_provider_filter.py @@ -41,7 +41,6 @@ class BotProviderFilter(BaseModel): "duckduckgo", "you", "you.com", - "xai", "grok", "gemini", "mistral", @@ -69,7 +68,6 @@ class BotProviderFilter(BaseModel): "duckduckgo", "you", "you.com", - "xai", "grok", "gemini", "mistral", diff --git a/src/profound/types/shared_params/bot_provider_filter.py b/src/profound/types/shared_params/bot_provider_filter.py index ff8616ab..b340802d 100644 --- a/src/profound/types/shared_params/bot_provider_filter.py +++ b/src/profound/types/shared_params/bot_provider_filter.py @@ -42,7 +42,6 @@ class BotProviderFilter(TypedDict, total=False): "duckduckgo", "you", "you.com", - "xai", "grok", "gemini", "mistral", @@ -70,7 +69,6 @@ class BotProviderFilter(TypedDict, total=False): "duckduckgo", "you", "you.com", - "xai", "grok", "gemini", "mistral", diff --git a/tests/smoke-test.py b/tests/smoke-test.py index 4cc49c23..f8523fef 100644 --- a/tests/smoke-test.py +++ b/tests/smoke-test.py @@ -1192,6 +1192,7 @@ def _smoke_case_90() -> None: comparison_start_date="", comparison_end_date="", category_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", + languages=[""], topic_ids=["7c9e6679-7425-40de-944b-e07fc1f90ae7"], exclude_topic_ids=False, tag_ids=["7c9e6679-7425-40de-944b-e07fc1f90ae7"], @@ -1232,6 +1233,7 @@ def _smoke_case_92() -> None: comparison_start_date="", comparison_end_date="", category_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", + languages=[""], topic_ids=["7c9e6679-7425-40de-944b-e07fc1f90ae7"], exclude_topic_ids=False, tag_ids=["7c9e6679-7425-40de-944b-e07fc1f90ae7"], @@ -1295,6 +1297,7 @@ def _smoke_case_96() -> None: comparison_start_date="", comparison_end_date="", category_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", + languages=[""], topic_ids=["7c9e6679-7425-40de-944b-e07fc1f90ae7"], exclude_topic_ids=False, tag_ids=["7c9e6679-7425-40de-944b-e07fc1f90ae7"], @@ -1336,6 +1339,7 @@ def _smoke_case_98() -> None: comparison_start_date="", comparison_end_date="", category_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", + languages=[""], topic_ids=["7c9e6679-7425-40de-944b-e07fc1f90ae7"], exclude_topic_ids=False, tag_ids=["7c9e6679-7425-40de-944b-e07fc1f90ae7"], @@ -1375,6 +1379,7 @@ def _smoke_case_100() -> None: comparison_start_date="", comparison_end_date="", category_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", + languages=[""], topic_ids=["7c9e6679-7425-40de-944b-e07fc1f90ae7"], exclude_topic_ids=False, tag_ids=["7c9e6679-7425-40de-944b-e07fc1f90ae7"], @@ -1410,6 +1415,7 @@ def _smoke_case_102() -> None: comparison_start_date="", comparison_end_date="", category_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", + languages=[""], topic_ids=["7c9e6679-7425-40de-944b-e07fc1f90ae7"], exclude_topic_ids=False, tag_ids=["7c9e6679-7425-40de-944b-e07fc1f90ae7"], @@ -1445,6 +1451,7 @@ def _smoke_case_104() -> None: comparison_start_date="", comparison_end_date="", category_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", + languages=[""], topic_ids=["7c9e6679-7425-40de-944b-e07fc1f90ae7"], exclude_topic_ids=False, tag_ids=["7c9e6679-7425-40de-944b-e07fc1f90ae7"], @@ -1483,6 +1490,7 @@ def _smoke_case_106() -> None: comparison_start_date="", comparison_end_date="", category_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", + languages=[""], topic_ids=["7c9e6679-7425-40de-944b-e07fc1f90ae7"], exclude_topic_ids=False, tag_ids=["7c9e6679-7425-40de-944b-e07fc1f90ae7"], @@ -1524,6 +1532,7 @@ def _smoke_case_108() -> None: comparison_start_date="", comparison_end_date="", category_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", + languages=[""], topic_ids=["7c9e6679-7425-40de-944b-e07fc1f90ae7"], exclude_topic_ids=False, tag_ids=["7c9e6679-7425-40de-944b-e07fc1f90ae7"], @@ -2239,7 +2248,7 @@ def _smoke_case_189() -> None: start_date="2024-01-01", end_date="2024-01-01", regions=[""], - platforms=[""], + platforms=["chatgpt.com"], organization_id="7c9e6679-7425-40de-944b-e07fc1f90ae7", ) @@ -2260,7 +2269,7 @@ def _smoke_case_191() -> None: start_date="2024-01-01", end_date="2024-01-01", regions=[""], - platforms=[""], + platforms=["chatgpt.com"], )