diff --git a/.release-please-manifest.json b/.release-please-manifest.json index fed4b17f..c3e01e1e 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.52.0" + ".": "0.53.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index c9c765c9..8fecdef1 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 87 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/profound/profound-25502ba3007bb25dd1af82d8e272d0467cf15ab8b57570cdcbe24b5cf62f567d.yml -openapi_spec_hash: 103914800b7e3e7c988d6dfb5f5bd9f6 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/profound/profound-bdd5abf413157386df160f4ce86f7973c08a0d2ae65942614cc48931ac0f2cbf.yml +openapi_spec_hash: 7b81d32586bcb581ad89c6c4829ee0d2 config_hash: 7304513d147b0895755069cc9f155331 diff --git a/CHANGELOG.md b/CHANGELOG.md index 02658eb0..7f174d80 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Changelog +## 0.53.0 (2026-07-09) + +Full Changelog: [v0.52.0...v0.53.0](https://github.com/cooper-square-technologies/profound-python-sdk/compare/v0.52.0...v0.53.0) + +### Features + +* **api:** api update ([8f9ca07](https://github.com/cooper-square-technologies/profound-python-sdk/commit/8f9ca0757439a795ead43e408ad8a4bcc3373fd7)) +* **api:** api update ([ed38871](https://github.com/cooper-square-technologies/profound-python-sdk/commit/ed388718647a7b1a8648be93c0ee9e01728ed567)) + ## 0.52.0 (2026-07-02) Full Changelog: [v0.51.0...v0.52.0](https://github.com/cooper-square-technologies/profound-python-sdk/compare/v0.51.0...v0.52.0) diff --git a/pyproject.toml b/pyproject.toml index 475ac40d..bd5d6bb6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "profound" -version = "0.52.0" +version = "0.53.0" description = "The official Python library for the profound API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/profound/_version.py b/src/profound/_version.py index c553c8b1..fa206d86 100644 --- a/src/profound/_version.py +++ b/src/profound/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "profound" -__version__ = "0.52.0" # x-release-please-version +__version__ = "0.53.0" # x-release-please-version diff --git a/src/profound/resources/reports/accuracy.py b/src/profound/resources/reports/accuracy.py index 803b4ab9..d5aefa7e 100644 --- a/src/profound/resources/reports/accuracy.py +++ b/src/profound/resources/reports/accuracy.py @@ -353,8 +353,21 @@ def create_cluster_example_runs( cluster_id: str, end_date: str, start_date: str, + citation_categories: Optional[SequenceNotStr[str]] | Omit = omit, + comparison_end_date: Optional[str] | Omit = omit, + comparison_start_date: Optional[str] | Omit = omit, + exclude_topic_ids: bool | Omit = omit, + include_no_persona: bool | Omit = omit, + include_no_tag: bool | Omit = omit, limit: int | Omit = omit, offset: int | Omit = omit, + persona_ids: Optional[SequenceNotStr[str]] | Omit = omit, + platform_ids: Optional[SequenceNotStr[str]] | Omit = omit, + prompt_ids: Optional[SequenceNotStr[str]] | Omit = omit, + region_ids: Optional[SequenceNotStr[str]] | Omit = omit, + tag_filter_type: Literal["all", "any"] | Omit = omit, + tag_ids: Optional[SequenceNotStr[str]] | Omit = omit, + topic_ids: Optional[SequenceNotStr[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. extra_headers: Headers | None = None, @@ -382,8 +395,21 @@ def create_cluster_example_runs( "cluster_id": cluster_id, "end_date": end_date, "start_date": start_date, + "citation_categories": citation_categories, + "comparison_end_date": comparison_end_date, + "comparison_start_date": comparison_start_date, + "exclude_topic_ids": exclude_topic_ids, + "include_no_persona": include_no_persona, + "include_no_tag": include_no_tag, "limit": limit, "offset": offset, + "persona_ids": persona_ids, + "platform_ids": platform_ids, + "prompt_ids": prompt_ids, + "region_ids": region_ids, + "tag_filter_type": tag_filter_type, + "tag_ids": tag_ids, + "topic_ids": topic_ids, }, accuracy_create_cluster_example_runs_params.AccuracyCreateClusterExampleRunsParams, ), @@ -1173,8 +1199,21 @@ async def create_cluster_example_runs( cluster_id: str, end_date: str, start_date: str, + citation_categories: Optional[SequenceNotStr[str]] | Omit = omit, + comparison_end_date: Optional[str] | Omit = omit, + comparison_start_date: Optional[str] | Omit = omit, + exclude_topic_ids: bool | Omit = omit, + include_no_persona: bool | Omit = omit, + include_no_tag: bool | Omit = omit, limit: int | Omit = omit, offset: int | Omit = omit, + persona_ids: Optional[SequenceNotStr[str]] | Omit = omit, + platform_ids: Optional[SequenceNotStr[str]] | Omit = omit, + prompt_ids: Optional[SequenceNotStr[str]] | Omit = omit, + region_ids: Optional[SequenceNotStr[str]] | Omit = omit, + tag_filter_type: Literal["all", "any"] | Omit = omit, + tag_ids: Optional[SequenceNotStr[str]] | Omit = omit, + topic_ids: Optional[SequenceNotStr[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. extra_headers: Headers | None = None, @@ -1202,8 +1241,21 @@ async def create_cluster_example_runs( "cluster_id": cluster_id, "end_date": end_date, "start_date": start_date, + "citation_categories": citation_categories, + "comparison_end_date": comparison_end_date, + "comparison_start_date": comparison_start_date, + "exclude_topic_ids": exclude_topic_ids, + "include_no_persona": include_no_persona, + "include_no_tag": include_no_tag, "limit": limit, "offset": offset, + "persona_ids": persona_ids, + "platform_ids": platform_ids, + "prompt_ids": prompt_ids, + "region_ids": region_ids, + "tag_filter_type": tag_filter_type, + "tag_ids": tag_ids, + "topic_ids": topic_ids, }, accuracy_create_cluster_example_runs_params.AccuracyCreateClusterExampleRunsParams, ), diff --git a/src/profound/resources/reports/factcheck/claims.py b/src/profound/resources/reports/factcheck/claims.py index 6000b0a9..3aac8630 100644 --- a/src/profound/resources/reports/factcheck/claims.py +++ b/src/profound/resources/reports/factcheck/claims.py @@ -76,7 +76,7 @@ def query_claims( group_by: Optional single dim to section the claims (e.g. per model). Empty → one flat claim list. - include: Claim detail: theme, reasoning, models, evidence, citation_sources. + include: Optional per-claim detail fields to add to each claim (see options). limit: Claims (or sections) per page; default 25. @@ -144,7 +144,7 @@ def stream_claims( group_by: Optional single dim to section the claims (e.g. per model). Empty → one flat claim list. - include: Claim detail: theme, reasoning, models, evidence, citation_sources. + include: Optional per-claim detail fields to add to each claim (see options). limit: Claims (or sections) per page; default 25. @@ -234,7 +234,7 @@ async def query_claims( group_by: Optional single dim to section the claims (e.g. per model). Empty → one flat claim list. - include: Claim detail: theme, reasoning, models, evidence, citation_sources. + include: Optional per-claim detail fields to add to each claim (see options). limit: Claims (or sections) per page; default 25. @@ -302,7 +302,7 @@ async def stream_claims( group_by: Optional single dim to section the claims (e.g. per model). Empty → one flat claim list. - include: Claim detail: theme, reasoning, models, evidence, citation_sources. + include: Optional per-claim detail fields to add to each claim (see options). limit: Claims (or sections) per page; default 25. diff --git a/src/profound/resources/reports/factcheck/factcheck.py b/src/profound/resources/reports/factcheck/factcheck.py index 8de9e268..48ab187a 100644 --- a/src/profound/resources/reports/factcheck/factcheck.py +++ b/src/profound/resources/reports/factcheck/factcheck.py @@ -85,8 +85,8 @@ def query_scores( filter: A leaf (`field`/`op`/`value`) or an `and`/`or`/`not` group. - group_by: 1-2 of date/model/region/persona/prompt/topic/tag/theme (or one `citation`). - Empty → headline. + group_by: Up to two dimensions to slice by; empty returns the headline score. `citation` + must be alone. limit: Rows per page; default 100. @@ -150,8 +150,8 @@ def stream_scores( filter: A leaf (`field`/`op`/`value`) or an `and`/`or`/`not` group. - group_by: 1-2 of date/model/region/persona/prompt/topic/tag/theme (or one `citation`). - Empty → headline. + group_by: Up to two dimensions to slice by; empty returns the headline score. `citation` + must be alone. limit: Rows per page; default 100. @@ -241,8 +241,8 @@ async def query_scores( filter: A leaf (`field`/`op`/`value`) or an `and`/`or`/`not` group. - group_by: 1-2 of date/model/region/persona/prompt/topic/tag/theme (or one `citation`). - Empty → headline. + group_by: Up to two dimensions to slice by; empty returns the headline score. `citation` + must be alone. limit: Rows per page; default 100. @@ -306,8 +306,8 @@ async def stream_scores( filter: A leaf (`field`/`op`/`value`) or an `and`/`or`/`not` group. - group_by: 1-2 of date/model/region/persona/prompt/topic/tag/theme (or one `citation`). - Empty → headline. + group_by: Up to two dimensions to slice by; empty returns the headline score. `citation` + must be alone. limit: Rows per page; default 100. diff --git a/src/profound/resources/reports/reports.py b/src/profound/resources/reports/reports.py index a94035bc..685c9a37 100644 --- a/src/profound/resources/reports/reports.py +++ b/src/profound/resources/reports/reports.py @@ -1073,7 +1073,7 @@ def sentiment_v2( start_date: Union[str, datetime], comparison_end_date: Union[str, datetime, None] | Omit = omit, comparison_start_date: Union[str, datetime, None] | Omit = omit, - date_interval: Literal["hour", "day", "week", "month", "quarter", "year", "relative_week"] | Omit = omit, + date_bucket: Literal["day", "week", "month"] | Omit = omit, dimensions: List[ Literal[ "date", "topic", "region", "model", "prompt", "persona", "tag", "theme", "claim", "run", "asset_name" @@ -1105,7 +1105,7 @@ def sentiment_v2( comparison_start_date: Start of the previous period for delta computation. - date_interval: Date interval for the report. Only used when dimensions includes date. + date_bucket: Date bucket for the report. Only used when dimensions includes date. dimensions: Dimensions to group the report by. @@ -1135,7 +1135,7 @@ def sentiment_v2( "start_date": start_date, "comparison_end_date": comparison_end_date, "comparison_start_date": comparison_start_date, - "date_interval": date_interval, + "date_bucket": date_bucket, "dimensions": dimensions, "filters": filters, "order_by": order_by, @@ -2837,7 +2837,7 @@ async def sentiment_v2( start_date: Union[str, datetime], comparison_end_date: Union[str, datetime, None] | Omit = omit, comparison_start_date: Union[str, datetime, None] | Omit = omit, - date_interval: Literal["hour", "day", "week", "month", "quarter", "year", "relative_week"] | Omit = omit, + date_bucket: Literal["day", "week", "month"] | Omit = omit, dimensions: List[ Literal[ "date", "topic", "region", "model", "prompt", "persona", "tag", "theme", "claim", "run", "asset_name" @@ -2869,7 +2869,7 @@ async def sentiment_v2( comparison_start_date: Start of the previous period for delta computation. - date_interval: Date interval for the report. Only used when dimensions includes date. + date_bucket: Date bucket for the report. Only used when dimensions includes date. dimensions: Dimensions to group the report by. @@ -2899,7 +2899,7 @@ async def sentiment_v2( "start_date": start_date, "comparison_end_date": comparison_end_date, "comparison_start_date": comparison_start_date, - "date_interval": date_interval, + "date_bucket": date_bucket, "dimensions": dimensions, "filters": filters, "order_by": order_by, diff --git a/src/profound/types/report_sentiment_v2_params.py b/src/profound/types/report_sentiment_v2_params.py index 5631647e..9e802c2c 100644 --- a/src/profound/types/report_sentiment_v2_params.py +++ b/src/profound/types/report_sentiment_v2_params.py @@ -20,10 +20,10 @@ "FilterSentimentV2PersonaIDFilter", "FilterSentimentV2TagIDFilter", "FilterSentimentV2RunIDFilter", - "FilterSentimentV2ThemeIDFilter", "FilterSentimentV2ThemeFilter", - "FilterSentimentV2ClaimIDFilter", "FilterSentimentV2ClaimFilter", + "FilterSentimentV2ThemeIDFilter", + "FilterSentimentV2ClaimIDFilter", "FilterSentimentV2SentimentFilter", ] @@ -53,8 +53,8 @@ class ReportSentimentV2Params(TypedDict, total=False): comparison_start_date: Annotated[Union[str, datetime, None], PropertyInfo(format="iso8601")] """Start of the previous period for delta computation.""" - date_interval: Literal["hour", "day", "week", "month", "quarter", "year", "relative_week"] - """Date interval for the report. Only used when dimensions includes date.""" + date_bucket: Literal["day", "week", "month"] + """Date bucket for the report. Only used when dimensions includes date.""" dimensions: List[ Literal["date", "topic", "region", "model", "prompt", "persona", "tag", "theme", "claim", "run", "asset_name"] @@ -131,14 +131,6 @@ class FilterSentimentV2RunIDFilter(TypedDict, total=False): value: Required[Union[str, SequenceNotStr[str]]] -class FilterSentimentV2ThemeIDFilter(TypedDict, total=False): - field: Required[Literal["theme_id"]] - - operator: Required[Literal["is", "not_is", "in", "not_in"]] - - value: Required[Union[str, SequenceNotStr[str]]] - - class FilterSentimentV2ThemeFilter(TypedDict, total=False): field: Required[Literal["theme"]] @@ -159,14 +151,6 @@ class FilterSentimentV2ThemeFilter(TypedDict, total=False): value: Required[Union[str, SequenceNotStr[str]]] -class FilterSentimentV2ClaimIDFilter(TypedDict, total=False): - field: Required[Literal["claim_id"]] - - operator: Required[Literal["is", "not_is", "in", "not_in"]] - - value: Required[Union[str, SequenceNotStr[str]]] - - class FilterSentimentV2ClaimFilter(TypedDict, total=False): field: Required[Literal["claim"]] @@ -187,6 +171,22 @@ class FilterSentimentV2ClaimFilter(TypedDict, total=False): value: Required[Union[str, SequenceNotStr[str]]] +class FilterSentimentV2ThemeIDFilter(TypedDict, total=False): + field: Required[Literal["theme_id"]] + + operator: Required[Literal["is", "not_is", "in", "not_in"]] + + value: Required[Union[str, SequenceNotStr[str]]] + + +class FilterSentimentV2ClaimIDFilter(TypedDict, total=False): + field: Required[Literal["claim_id"]] + + operator: Required[Literal["is", "not_is", "in", "not_in"]] + + value: Required[Union[str, SequenceNotStr[str]]] + + class FilterSentimentV2SentimentFilter(TypedDict, total=False): field: Required[Literal["sentiment"]] @@ -203,9 +203,9 @@ class FilterSentimentV2SentimentFilter(TypedDict, total=False): FilterSentimentV2PersonaIDFilter, FilterSentimentV2TagIDFilter, FilterSentimentV2RunIDFilter, - FilterSentimentV2ThemeIDFilter, FilterSentimentV2ThemeFilter, - FilterSentimentV2ClaimIDFilter, FilterSentimentV2ClaimFilter, + FilterSentimentV2ThemeIDFilter, + FilterSentimentV2ClaimIDFilter, FilterSentimentV2SentimentFilter, ] diff --git a/src/profound/types/report_sentiment_v2_response.py b/src/profound/types/report_sentiment_v2_response.py index f91a8a1a..329342cc 100644 --- a/src/profound/types/report_sentiment_v2_response.py +++ b/src/profound/types/report_sentiment_v2_response.py @@ -69,8 +69,6 @@ class DataGroupMetadata(BaseModel): claim: Optional[str] = None - claim_id: Optional[str] = None - created_at: Optional[str] = None api_model_id: Optional[str] = FieldInfo(alias="model_id", default=None) @@ -91,8 +89,6 @@ class DataGroupMetadata(BaseModel): theme: Optional[str] = None - theme_id: Optional[str] = None - topic_id: Optional[str] = None 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 1e8a59f3..ef7071ee 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 @@ -2,7 +2,10 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +from typing import Optional +from typing_extensions import Literal, Required, TypedDict + +from ..._types import SequenceNotStr __all__ = ["AccuracyCreateClusterExampleRunsParams"] @@ -16,6 +19,32 @@ class AccuracyCreateClusterExampleRunsParams(TypedDict, total=False): start_date: Required[str] + citation_categories: Optional[SequenceNotStr[str]] + + comparison_end_date: Optional[str] + + comparison_start_date: Optional[str] + + exclude_topic_ids: bool + + include_no_persona: bool + + include_no_tag: bool + limit: int offset: int + + persona_ids: Optional[SequenceNotStr[str]] + + platform_ids: Optional[SequenceNotStr[str]] + + prompt_ids: Optional[SequenceNotStr[str]] + + region_ids: Optional[SequenceNotStr[str]] + + tag_filter_type: Literal["all", "any"] + + tag_ids: Optional[SequenceNotStr[str]] + + topic_ids: Optional[SequenceNotStr[str]] diff --git a/src/profound/types/reports/factcheck/claim_query_claims_params.py b/src/profound/types/reports/factcheck/claim_query_claims_params.py index 8afe9511..9c3c679f 100644 --- a/src/profound/types/reports/factcheck/claim_query_claims_params.py +++ b/src/profound/types/reports/factcheck/claim_query_claims_params.py @@ -29,7 +29,7 @@ class ClaimQueryClaimsParams(TypedDict, total=False): """ include: Optional[List[Literal["theme", "reasoning", "models", "evidence", "citation_sources"]]] - """Claim detail: theme, reasoning, models, evidence, citation_sources.""" + """Optional per-claim detail fields to add to each claim (see options).""" limit: Optional[int] """Claims (or sections) per page; default 25.""" diff --git a/src/profound/types/reports/factcheck/claim_stream_claims_params.py b/src/profound/types/reports/factcheck/claim_stream_claims_params.py index 40be47f9..f2d6e520 100644 --- a/src/profound/types/reports/factcheck/claim_stream_claims_params.py +++ b/src/profound/types/reports/factcheck/claim_stream_claims_params.py @@ -29,7 +29,7 @@ class ClaimStreamClaimsParams(TypedDict, total=False): """ include: Optional[List[Literal["theme", "reasoning", "models", "evidence", "citation_sources"]]] - """Claim detail: theme, reasoning, models, evidence, citation_sources.""" + """Optional per-claim detail fields to add to each claim (see options).""" limit: Optional[int] """Claims (or sections) per page; default 25.""" diff --git a/src/profound/types/reports/factcheck_query_scores_params.py b/src/profound/types/reports/factcheck_query_scores_params.py index 1926270d..03f9b888 100644 --- a/src/profound/types/reports/factcheck_query_scores_params.py +++ b/src/profound/types/reports/factcheck_query_scores_params.py @@ -23,9 +23,9 @@ class FactcheckQueryScoresParams(TypedDict, total=False): """A leaf (`field`/`op`/`value`) or an `and`/`or`/`not` group.""" group_by: List[Literal["date", "model", "region", "persona", "prompt", "topic", "tag", "citation", "theme"]] - """1-2 of date/model/region/persona/prompt/topic/tag/theme (or one `citation`). + """Up to two dimensions to slice by; empty returns the headline score. - Empty → headline. + `citation` must be alone. """ limit: Optional[int] diff --git a/src/profound/types/reports/factcheck_stream_scores_params.py b/src/profound/types/reports/factcheck_stream_scores_params.py index 1f2edbf1..7d093fc5 100644 --- a/src/profound/types/reports/factcheck_stream_scores_params.py +++ b/src/profound/types/reports/factcheck_stream_scores_params.py @@ -23,9 +23,9 @@ class FactcheckStreamScoresParams(TypedDict, total=False): """A leaf (`field`/`op`/`value`) or an `and`/`or`/`not` group.""" group_by: List[Literal["date", "model", "region", "persona", "prompt", "topic", "tag", "citation", "theme"]] - """1-2 of date/model/region/persona/prompt/topic/tag/theme (or one `citation`). + """Up to two dimensions to slice by; empty returns the headline score. - Empty → headline. + `citation` must be alone. """ limit: Optional[int] diff --git a/tests/api_resources/reports/test_accuracy.py b/tests/api_resources/reports/test_accuracy.py index c9625bd5..224ff46b 100644 --- a/tests/api_resources/reports/test_accuracy.py +++ b/tests/api_resources/reports/test_accuracy.py @@ -302,8 +302,21 @@ def test_method_create_cluster_example_runs_with_all_params(self, client: Profou cluster_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", end_date="end_date", start_date="start_date", + citation_categories=["string"], + comparison_end_date="comparison_end_date", + comparison_start_date="comparison_start_date", + exclude_topic_ids=True, + include_no_persona=True, + include_no_tag=True, limit=1, offset=0, + persona_ids=["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"], + platform_ids=["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"], + prompt_ids=["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"], + region_ids=["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"], + tag_filter_type="all", + tag_ids=["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"], + topic_ids=["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"], ) assert_matches_type(AccuracyCreateClusterExampleRunsResponse, accuracy, path=["response"]) @@ -1056,8 +1069,21 @@ async def test_method_create_cluster_example_runs_with_all_params(self, async_cl cluster_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", end_date="end_date", start_date="start_date", + citation_categories=["string"], + comparison_end_date="comparison_end_date", + comparison_start_date="comparison_start_date", + exclude_topic_ids=True, + include_no_persona=True, + include_no_tag=True, limit=1, offset=0, + persona_ids=["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"], + platform_ids=["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"], + prompt_ids=["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"], + region_ids=["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"], + tag_filter_type="all", + tag_ids=["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"], + topic_ids=["182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e"], ) assert_matches_type(AccuracyCreateClusterExampleRunsResponse, accuracy, path=["response"]) diff --git a/tests/api_resources/test_reports.py b/tests/api_resources/test_reports.py index c48a158a..222ee0f5 100644 --- a/tests/api_resources/test_reports.py +++ b/tests/api_resources/test_reports.py @@ -590,7 +590,7 @@ def test_streaming_response_query_query_fanouts(self, client: Profound) -> None: def test_method_query_sentiment(self, client: Profound) -> None: report = client.reports.query_sentiment( asset="asset", - category_id="category_id", + category_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", end_date="end_date", start_date="start_date", ) @@ -601,7 +601,7 @@ def test_method_query_sentiment(self, client: Profound) -> None: def test_method_query_sentiment_with_all_params(self, client: Profound) -> None: report = client.reports.query_sentiment( asset="asset", - category_id="category_id", + category_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", end_date="end_date", start_date="start_date", comparison_end_date="comparison_end_date", @@ -632,7 +632,7 @@ def test_method_query_sentiment_with_all_params(self, client: Profound) -> None: def test_raw_response_query_sentiment(self, client: Profound) -> None: response = client.reports.with_raw_response.query_sentiment( asset="asset", - category_id="category_id", + category_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", end_date="end_date", start_date="start_date", ) @@ -647,7 +647,7 @@ def test_raw_response_query_sentiment(self, client: Profound) -> None: def test_streaming_response_query_sentiment(self, client: Profound) -> None: with client.reports.with_streaming_response.query_sentiment( asset="asset", - category_id="category_id", + category_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", end_date="end_date", start_date="start_date", ) as response: @@ -816,7 +816,7 @@ def test_method_sentiment_v2_with_all_params(self, client: Profound) -> None: start_date=parse_datetime("2019-12-27T18:11:19.117Z"), comparison_end_date=parse_datetime("2019-12-27T18:11:19.117Z"), comparison_start_date=parse_datetime("2019-12-27T18:11:19.117Z"), - date_interval="hour", + date_bucket="day", dimensions=["date"], filters=[ { @@ -1137,7 +1137,7 @@ def test_streaming_response_stream_sentiment(self, client: Profound) -> None: def test_method_stream_sentiment_v2(self, client: Profound) -> None: report = client.reports.stream_sentiment_v2( asset="asset", - category_id="category_id", + category_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", end_date="end_date", start_date="start_date", ) @@ -1148,7 +1148,7 @@ def test_method_stream_sentiment_v2(self, client: Profound) -> None: def test_method_stream_sentiment_v2_with_all_params(self, client: Profound) -> None: report = client.reports.stream_sentiment_v2( asset="asset", - category_id="category_id", + category_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", end_date="end_date", start_date="start_date", comparison_end_date="comparison_end_date", @@ -1179,7 +1179,7 @@ def test_method_stream_sentiment_v2_with_all_params(self, client: Profound) -> N def test_raw_response_stream_sentiment_v2(self, client: Profound) -> None: response = client.reports.with_raw_response.stream_sentiment_v2( asset="asset", - category_id="category_id", + category_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", end_date="end_date", start_date="start_date", ) @@ -1194,7 +1194,7 @@ def test_raw_response_stream_sentiment_v2(self, client: Profound) -> None: def test_streaming_response_stream_sentiment_v2(self, client: Profound) -> None: with client.reports.with_streaming_response.stream_sentiment_v2( asset="asset", - category_id="category_id", + category_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", end_date="end_date", start_date="start_date", ) as response: @@ -1977,7 +1977,7 @@ async def test_streaming_response_query_query_fanouts(self, async_client: AsyncP async def test_method_query_sentiment(self, async_client: AsyncProfound) -> None: report = await async_client.reports.query_sentiment( asset="asset", - category_id="category_id", + category_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", end_date="end_date", start_date="start_date", ) @@ -1988,7 +1988,7 @@ async def test_method_query_sentiment(self, async_client: AsyncProfound) -> None async def test_method_query_sentiment_with_all_params(self, async_client: AsyncProfound) -> None: report = await async_client.reports.query_sentiment( asset="asset", - category_id="category_id", + category_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", end_date="end_date", start_date="start_date", comparison_end_date="comparison_end_date", @@ -2019,7 +2019,7 @@ async def test_method_query_sentiment_with_all_params(self, async_client: AsyncP async def test_raw_response_query_sentiment(self, async_client: AsyncProfound) -> None: response = await async_client.reports.with_raw_response.query_sentiment( asset="asset", - category_id="category_id", + category_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", end_date="end_date", start_date="start_date", ) @@ -2034,7 +2034,7 @@ async def test_raw_response_query_sentiment(self, async_client: AsyncProfound) - async def test_streaming_response_query_sentiment(self, async_client: AsyncProfound) -> None: async with async_client.reports.with_streaming_response.query_sentiment( asset="asset", - category_id="category_id", + category_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", end_date="end_date", start_date="start_date", ) as response: @@ -2203,7 +2203,7 @@ async def test_method_sentiment_v2_with_all_params(self, async_client: AsyncProf start_date=parse_datetime("2019-12-27T18:11:19.117Z"), comparison_end_date=parse_datetime("2019-12-27T18:11:19.117Z"), comparison_start_date=parse_datetime("2019-12-27T18:11:19.117Z"), - date_interval="hour", + date_bucket="day", dimensions=["date"], filters=[ { @@ -2524,7 +2524,7 @@ async def test_streaming_response_stream_sentiment(self, async_client: AsyncProf async def test_method_stream_sentiment_v2(self, async_client: AsyncProfound) -> None: report = await async_client.reports.stream_sentiment_v2( asset="asset", - category_id="category_id", + category_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", end_date="end_date", start_date="start_date", ) @@ -2535,7 +2535,7 @@ async def test_method_stream_sentiment_v2(self, async_client: AsyncProfound) -> async def test_method_stream_sentiment_v2_with_all_params(self, async_client: AsyncProfound) -> None: report = await async_client.reports.stream_sentiment_v2( asset="asset", - category_id="category_id", + category_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", end_date="end_date", start_date="start_date", comparison_end_date="comparison_end_date", @@ -2566,7 +2566,7 @@ async def test_method_stream_sentiment_v2_with_all_params(self, async_client: As async def test_raw_response_stream_sentiment_v2(self, async_client: AsyncProfound) -> None: response = await async_client.reports.with_raw_response.stream_sentiment_v2( asset="asset", - category_id="category_id", + category_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", end_date="end_date", start_date="start_date", ) @@ -2581,7 +2581,7 @@ async def test_raw_response_stream_sentiment_v2(self, async_client: AsyncProfoun async def test_streaming_response_stream_sentiment_v2(self, async_client: AsyncProfound) -> None: async with async_client.reports.with_streaming_response.stream_sentiment_v2( asset="asset", - category_id="category_id", + category_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e", end_date="end_date", start_date="start_date", ) as response: