From ed388718647a7b1a8648be93c0ee9e01728ed567 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 2 Jul 2026 22:17:25 +0000 Subject: [PATCH 01/14] feat(api): api update --- .stats.yml | 4 +- .../resources/reports/factcheck/claims.py | 8 ++-- .../resources/reports/factcheck/factcheck.py | 16 +++---- src/profound/resources/reports/reports.py | 12 ++--- .../types/report_sentiment_v2_params.py | 44 +++++++++---------- .../types/report_sentiment_v2_response.py | 4 -- .../factcheck/claim_query_claims_params.py | 2 +- .../factcheck/claim_stream_claims_params.py | 2 +- .../reports/factcheck_query_scores_params.py | 4 +- .../reports/factcheck_stream_scores_params.py | 4 +- tests/api_resources/test_reports.py | 36 +++++++-------- 11 files changed, 66 insertions(+), 70 deletions(-) diff --git a/.stats.yml b/.stats.yml index c9c765c9..371987f6 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-3633608266306ca549459674e566aa41a21dd7e0d58b79514dd39b5607b1a3a9.yml +openapi_spec_hash: fb18c3d12a1cc476c8509647d4f1d4ad config_hash: 7304513d147b0895755069cc9f155331 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/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/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: From 5e846a9f3b42a6a2d245aa4a8a2227f929f9a90e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 6 Jul 2026 16:17:35 +0000 Subject: [PATCH 02/14] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 371987f6..1b45e814 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-3633608266306ca549459674e566aa41a21dd7e0d58b79514dd39b5607b1a3a9.yml -openapi_spec_hash: fb18c3d12a1cc476c8509647d4f1d4ad +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/profound/profound-8cccc4b05de28bb4124ae8faf1f0790acad6d26a01fc69e13a8914c3eebdc592.yml +openapi_spec_hash: 74101ee88b1c2405a18ff729311a419c config_hash: 7304513d147b0895755069cc9f155331 From 2e210b53030aab10e4d0e975c1b90645021805d3 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 6 Jul 2026 18:17:34 +0000 Subject: [PATCH 03/14] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1b45e814..1be8c571 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-8cccc4b05de28bb4124ae8faf1f0790acad6d26a01fc69e13a8914c3eebdc592.yml -openapi_spec_hash: 74101ee88b1c2405a18ff729311a419c +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/profound/profound-e6db7d69b84bc536c9a31706a107fa47becb50d4304b16c10eebe996cca466db.yml +openapi_spec_hash: 368e5c3be5eecfdb67ed2f99d62d7b9d config_hash: 7304513d147b0895755069cc9f155331 From 8c60b8f90c36b4f4df45de4a095e06ddb234b812 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Mon, 6 Jul 2026 22:17:39 +0000 Subject: [PATCH 04/14] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1be8c571..f6d90c69 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-e6db7d69b84bc536c9a31706a107fa47becb50d4304b16c10eebe996cca466db.yml -openapi_spec_hash: 368e5c3be5eecfdb67ed2f99d62d7b9d +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/profound/profound-a0b84089aae9468d3b2ea6574ab854797d6a4679a37beb4e8b0079ec073fc08d.yml +openapi_spec_hash: 7cc78f9b65550c324c049ff17d90c9d4 config_hash: 7304513d147b0895755069cc9f155331 From c016c86167bd442d30257e01a4297caa4f06f2ea Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 7 Jul 2026 15:17:37 +0000 Subject: [PATCH 05/14] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index f6d90c69..8eb5ecaf 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-a0b84089aae9468d3b2ea6574ab854797d6a4679a37beb4e8b0079ec073fc08d.yml -openapi_spec_hash: 7cc78f9b65550c324c049ff17d90c9d4 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/profound/profound-1ace79cd06f590da5e8059a6a18416ff937c2fe3eb20ec5d2a8378891b01de22.yml +openapi_spec_hash: 3e2736f89a2de54a094eb1b9411b2c82 config_hash: 7304513d147b0895755069cc9f155331 From f2eb3d4cefc9c79acb1eb996382ce6b0e74bf6b4 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 7 Jul 2026 17:17:38 +0000 Subject: [PATCH 06/14] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8eb5ecaf..d2497346 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-1ace79cd06f590da5e8059a6a18416ff937c2fe3eb20ec5d2a8378891b01de22.yml -openapi_spec_hash: 3e2736f89a2de54a094eb1b9411b2c82 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/profound/profound-f8e9cebf09f626ec6f3748d8a089925f665e5447509ad800032a0c60496f338a.yml +openapi_spec_hash: 818468fc2b19dfc291f9b12b322ef3ec config_hash: 7304513d147b0895755069cc9f155331 From 77a429d062359a40bc4916d991bc9f9bb711f106 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 7 Jul 2026 19:17:38 +0000 Subject: [PATCH 07/14] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index d2497346..7b93d2e2 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-f8e9cebf09f626ec6f3748d8a089925f665e5447509ad800032a0c60496f338a.yml -openapi_spec_hash: 818468fc2b19dfc291f9b12b322ef3ec +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/profound/profound-dfee6415b1df45c7fa1576bf32dc4ffacd3abe8201b18aebb8390b992462b767.yml +openapi_spec_hash: d72fc2354129008e8c9313f828d6e7f5 config_hash: 7304513d147b0895755069cc9f155331 From 2a252a1254f28c741e5b52378e1ba5c0b378aa76 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 7 Jul 2026 20:17:28 +0000 Subject: [PATCH 08/14] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 7b93d2e2..52c2bf96 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-dfee6415b1df45c7fa1576bf32dc4ffacd3abe8201b18aebb8390b992462b767.yml -openapi_spec_hash: d72fc2354129008e8c9313f828d6e7f5 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/profound/profound-ca4da4785c2e3a727565e66e68fafcc2d5e7fec3b9f49f157e2e7ec4402447a2.yml +openapi_spec_hash: 2beb0851646d66c64665865089001c20 config_hash: 7304513d147b0895755069cc9f155331 From fa937ac19112b6fe5068897e5ca28d6af1fd3c6c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 8 Jul 2026 16:17:32 +0000 Subject: [PATCH 09/14] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 52c2bf96..8dad48a4 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-ca4da4785c2e3a727565e66e68fafcc2d5e7fec3b9f49f157e2e7ec4402447a2.yml -openapi_spec_hash: 2beb0851646d66c64665865089001c20 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/profound/profound-cc11071632e8654daaf213be5ef5fb3f9673953efb10931398f7421170d2360a.yml +openapi_spec_hash: 05c6ee7fc1a450308e7d8269a98238c9 config_hash: 7304513d147b0895755069cc9f155331 From ae449259b8f0770c10c9b6f4cb4b4aede607e8ec Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 8 Jul 2026 20:17:29 +0000 Subject: [PATCH 10/14] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 8dad48a4..af6c3b42 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-cc11071632e8654daaf213be5ef5fb3f9673953efb10931398f7421170d2360a.yml -openapi_spec_hash: 05c6ee7fc1a450308e7d8269a98238c9 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/profound/profound-12b46553d75abc59a81c7f145614539ef0e5c696c9a7edd2d2708c66b8b4243f.yml +openapi_spec_hash: 7c5485705a01f2bcfde6788ba4d202ed config_hash: 7304513d147b0895755069cc9f155331 From b68adc08f2991a14bfc2e3dffa4ae21a4c0bbaf6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 9 Jul 2026 00:17:31 +0000 Subject: [PATCH 11/14] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index af6c3b42..7e45245e 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-12b46553d75abc59a81c7f145614539ef0e5c696c9a7edd2d2708c66b8b4243f.yml -openapi_spec_hash: 7c5485705a01f2bcfde6788ba4d202ed +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/profound/profound-e4ef62125348173fd5c226f8b5d72849de737e93945e873a6016d2f161fae1db.yml +openapi_spec_hash: 5ed731d198215a39269dc779d5b59649 config_hash: 7304513d147b0895755069cc9f155331 From 6ded577974644f00728b81a52c23ada3f65036d8 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 9 Jul 2026 03:17:28 +0000 Subject: [PATCH 12/14] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 7e45245e..f5588780 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-e4ef62125348173fd5c226f8b5d72849de737e93945e873a6016d2f161fae1db.yml -openapi_spec_hash: 5ed731d198215a39269dc779d5b59649 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/profound/profound-0c060fd7bcbadcbf3bc5972c328243ccff92216b8c110a8faf49948523aa6b23.yml +openapi_spec_hash: 3da851513c9eae4291f1065b60d075ca config_hash: 7304513d147b0895755069cc9f155331 From 8f9ca0757439a795ead43e408ad8a4bcc3373fd7 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 9 Jul 2026 23:17:39 +0000 Subject: [PATCH 13/14] feat(api): api update --- .stats.yml | 4 +- src/profound/resources/reports/accuracy.py | 52 +++++++++++++++++++ ...racy_create_cluster_example_runs_params.py | 31 ++++++++++- tests/api_resources/reports/test_accuracy.py | 26 ++++++++++ 4 files changed, 110 insertions(+), 3 deletions(-) diff --git a/.stats.yml b/.stats.yml index f5588780..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-0c060fd7bcbadcbf3bc5972c328243ccff92216b8c110a8faf49948523aa6b23.yml -openapi_spec_hash: 3da851513c9eae4291f1065b60d075ca +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/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/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/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"]) From 69965e5eac3c27dc104e3d2dc9f0cfea312b76dd Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 9 Jul 2026 23:18:08 +0000 Subject: [PATCH 14/14] release: 0.53.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 9 +++++++++ pyproject.toml | 2 +- src/profound/_version.py | 2 +- 4 files changed, 12 insertions(+), 3 deletions(-) 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/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