Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"standardwebhooks": ">=1.0.1,<2"
}
},
"originGitCommit": "a8385f85d8b0cc8af98ef34e231b7e07a49b2c22",
"originGitCommit": "22a57996a4b74e95d3d9a0629b868da53e5e2b01",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"requestedVersion": "2.2.0",
Expand Down
8 changes: 7 additions & 1 deletion .fern/replay.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

36 changes: 34 additions & 2 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -39665,7 +39665,7 @@ client.stats.retrieve(
<dl>
<dd>

**account_id:** `typing.Optional[str]` — The account this query concerns, for example biz_AbC123.
**account_id:** `typing.Optional[str]` — Account this query concerns, prefixed `biz_`, or `platform` for all of Whop.

</dd>
</dl>
Expand Down Expand Up @@ -39921,6 +39921,22 @@ client.stats.retrieve(
<dl>
<dd>

**business_type:** `typing.Optional[str]` — Filter to one business type, for example `education`. Pair with `breakdown_by=business_type` to split by business type. Available on metrics that list `business_type`.

</dd>
</dl>

<dl>
<dd>

**industry_type:** `typing.Optional[str]` — Filter to one industry type, for example `options_trading`. Pair with `breakdown_by=industry_type` to split by industry type. Available on metrics that list `industry_type`.

</dd>
</dl>

<dl>
<dd>

**conversion_window:** `typing.Optional[str]` — Funnel only. Time allowed from the first event to the final event: integer minutes, hours, or days, up to 30d.

</dd>
Expand Down Expand Up @@ -50481,7 +50497,7 @@ client.stats.time_series.retrieve(
<dl>
<dd>

**account_id:** `typing.Optional[str]` — The account this query concerns, for example biz_AbC123.
**account_id:** `typing.Optional[str]` — Account this query concerns, prefixed `biz_`, or `platform` for all of Whop.

</dd>
</dl>
Expand Down Expand Up @@ -50737,6 +50753,22 @@ client.stats.time_series.retrieve(
<dl>
<dd>

**business_type:** `typing.Optional[str]` — Filter to one business type, for example `education`. Pair with `breakdown_by=business_type` to split by business type. Available on metrics that list `business_type`.

</dd>
</dl>

<dl>
<dd>

**industry_type:** `typing.Optional[str]` — Filter to one industry type, for example `options_trading`. Pair with `breakdown_by=industry_type` to split by industry type. Available on metrics that list `industry_type`.

</dd>
</dl>

<dl>
<dd>

**conversion_window:** `typing.Optional[str]` — Funnel only. Time allowed from the first event to the final event: integer minutes, hours, or days, up to 30d.

</dd>
Expand Down
24 changes: 22 additions & 2 deletions src/whop_sdk/stats/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ def retrieve(
ad_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
snapshot_window: typing.Optional[RetrieveStatsRequestSnapshotWindow] = None,
event: typing.Optional[str] = None,
business_type: typing.Optional[str] = None,
industry_type: typing.Optional[str] = None,
conversion_window: typing.Optional[str] = None,
mature_only: typing.Optional[bool] = None,
steps: typing.Optional[RetrieveStatsRequestSteps] = None,
Expand Down Expand Up @@ -153,7 +155,7 @@ def retrieve(
End of the range — a date (YYYY-MM-DD), expanded to the end of that day, or an ISO 8601 timestamp (for example 2026-07-17T16:37:00Z), used exactly. Funnel entry ranges cannot exceed 90 days.

account_id : typing.Optional[str]
The account this query concerns, for example biz_AbC123.
Account this query concerns, prefixed `biz_`, or `platform` for all of Whop.

user_id : typing.Optional[str]
The user this query concerns, for example user_AbC123. Available on metrics that support user subjects, such as account_balance.
Expand Down Expand Up @@ -248,6 +250,12 @@ def retrieve(
event : typing.Optional[str]
Filter the events metric to one or more full event names, for example payment.completed or pixel.lead. Comma-separated names match any listed event. Use group_by=event for separate groups. Available on metrics that list event.

business_type : typing.Optional[str]
Filter to one business type, for example `education`. Pair with `breakdown_by=business_type` to split by business type. Available on metrics that list `business_type`.

industry_type : typing.Optional[str]
Filter to one industry type, for example `options_trading`. Pair with `breakdown_by=industry_type` to split by industry type. Available on metrics that list `industry_type`.

conversion_window : typing.Optional[str]
Funnel only. Time allowed from the first event to the final event: integer minutes, hours, or days, up to 30d.

Expand Down Expand Up @@ -406,6 +414,8 @@ def retrieve(
ad_ids=ad_ids,
snapshot_window=snapshot_window,
event=event,
business_type=business_type,
industry_type=industry_type,
conversion_window=conversion_window,
mature_only=mature_only,
steps=steps,
Expand Down Expand Up @@ -551,6 +561,8 @@ async def retrieve(
ad_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
snapshot_window: typing.Optional[RetrieveStatsRequestSnapshotWindow] = None,
event: typing.Optional[str] = None,
business_type: typing.Optional[str] = None,
industry_type: typing.Optional[str] = None,
conversion_window: typing.Optional[str] = None,
mature_only: typing.Optional[bool] = None,
steps: typing.Optional[RetrieveStatsRequestSteps] = None,
Expand Down Expand Up @@ -600,7 +612,7 @@ async def retrieve(
End of the range — a date (YYYY-MM-DD), expanded to the end of that day, or an ISO 8601 timestamp (for example 2026-07-17T16:37:00Z), used exactly. Funnel entry ranges cannot exceed 90 days.

account_id : typing.Optional[str]
The account this query concerns, for example biz_AbC123.
Account this query concerns, prefixed `biz_`, or `platform` for all of Whop.

user_id : typing.Optional[str]
The user this query concerns, for example user_AbC123. Available on metrics that support user subjects, such as account_balance.
Expand Down Expand Up @@ -695,6 +707,12 @@ async def retrieve(
event : typing.Optional[str]
Filter the events metric to one or more full event names, for example payment.completed or pixel.lead. Comma-separated names match any listed event. Use group_by=event for separate groups. Available on metrics that list event.

business_type : typing.Optional[str]
Filter to one business type, for example `education`. Pair with `breakdown_by=business_type` to split by business type. Available on metrics that list `business_type`.

industry_type : typing.Optional[str]
Filter to one industry type, for example `options_trading`. Pair with `breakdown_by=industry_type` to split by industry type. Available on metrics that list `industry_type`.

conversion_window : typing.Optional[str]
Funnel only. Time allowed from the first event to the final event: integer minutes, hours, or days, up to 30d.

Expand Down Expand Up @@ -861,6 +879,8 @@ async def main() -> None:
ad_ids=ad_ids,
snapshot_window=snapshot_window,
event=event,
business_type=business_type,
industry_type=industry_type,
conversion_window=conversion_window,
mature_only=mature_only,
steps=steps,
Expand Down
24 changes: 22 additions & 2 deletions src/whop_sdk/stats/raw_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ def retrieve(
ad_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
snapshot_window: typing.Optional[RetrieveStatsRequestSnapshotWindow] = None,
event: typing.Optional[str] = None,
business_type: typing.Optional[str] = None,
industry_type: typing.Optional[str] = None,
conversion_window: typing.Optional[str] = None,
mature_only: typing.Optional[bool] = None,
steps: typing.Optional[RetrieveStatsRequestSteps] = None,
Expand Down Expand Up @@ -152,7 +154,7 @@ def retrieve(
End of the range — a date (YYYY-MM-DD), expanded to the end of that day, or an ISO 8601 timestamp (for example 2026-07-17T16:37:00Z), used exactly. Funnel entry ranges cannot exceed 90 days.

account_id : typing.Optional[str]
The account this query concerns, for example biz_AbC123.
Account this query concerns, prefixed `biz_`, or `platform` for all of Whop.

user_id : typing.Optional[str]
The user this query concerns, for example user_AbC123. Available on metrics that support user subjects, such as account_balance.
Expand Down Expand Up @@ -247,6 +249,12 @@ def retrieve(
event : typing.Optional[str]
Filter the events metric to one or more full event names, for example payment.completed or pixel.lead. Comma-separated names match any listed event. Use group_by=event for separate groups. Available on metrics that list event.

business_type : typing.Optional[str]
Filter to one business type, for example `education`. Pair with `breakdown_by=business_type` to split by business type. Available on metrics that list `business_type`.

industry_type : typing.Optional[str]
Filter to one industry type, for example `options_trading`. Pair with `breakdown_by=industry_type` to split by industry type. Available on metrics that list `industry_type`.

conversion_window : typing.Optional[str]
Funnel only. Time allowed from the first event to the final event: integer minutes, hours, or days, up to 30d.

Expand Down Expand Up @@ -390,6 +398,8 @@ def retrieve(
"ad_ids": ad_ids,
"snapshot_window": snapshot_window,
"event": event,
"business_type": business_type,
"industry_type": industry_type,
"conversion_window": conversion_window,
"mature_only": mature_only,
"steps": convert_and_respect_annotation_metadata(
Expand Down Expand Up @@ -530,6 +540,8 @@ async def retrieve(
ad_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
snapshot_window: typing.Optional[RetrieveStatsRequestSnapshotWindow] = None,
event: typing.Optional[str] = None,
business_type: typing.Optional[str] = None,
industry_type: typing.Optional[str] = None,
conversion_window: typing.Optional[str] = None,
mature_only: typing.Optional[bool] = None,
steps: typing.Optional[RetrieveStatsRequestSteps] = None,
Expand Down Expand Up @@ -579,7 +591,7 @@ async def retrieve(
End of the range — a date (YYYY-MM-DD), expanded to the end of that day, or an ISO 8601 timestamp (for example 2026-07-17T16:37:00Z), used exactly. Funnel entry ranges cannot exceed 90 days.

account_id : typing.Optional[str]
The account this query concerns, for example biz_AbC123.
Account this query concerns, prefixed `biz_`, or `platform` for all of Whop.

user_id : typing.Optional[str]
The user this query concerns, for example user_AbC123. Available on metrics that support user subjects, such as account_balance.
Expand Down Expand Up @@ -674,6 +686,12 @@ async def retrieve(
event : typing.Optional[str]
Filter the events metric to one or more full event names, for example payment.completed or pixel.lead. Comma-separated names match any listed event. Use group_by=event for separate groups. Available on metrics that list event.

business_type : typing.Optional[str]
Filter to one business type, for example `education`. Pair with `breakdown_by=business_type` to split by business type. Available on metrics that list `business_type`.

industry_type : typing.Optional[str]
Filter to one industry type, for example `options_trading`. Pair with `breakdown_by=industry_type` to split by industry type. Available on metrics that list `industry_type`.

conversion_window : typing.Optional[str]
Funnel only. Time allowed from the first event to the final event: integer minutes, hours, or days, up to 30d.

Expand Down Expand Up @@ -817,6 +835,8 @@ async def retrieve(
"ad_ids": ad_ids,
"snapshot_window": snapshot_window,
"event": event,
"business_type": business_type,
"industry_type": industry_type,
"conversion_window": conversion_window,
"mature_only": mature_only,
"steps": convert_and_respect_annotation_metadata(
Expand Down
24 changes: 22 additions & 2 deletions src/whop_sdk/stats/time_series/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ def retrieve(
ad_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
snapshot_window: typing.Optional[RetrieveTimeSeriesRequestSnapshotWindow] = None,
event: typing.Optional[str] = None,
business_type: typing.Optional[str] = None,
industry_type: typing.Optional[str] = None,
conversion_window: typing.Optional[str] = None,
mature_only: typing.Optional[bool] = None,
steps: typing.Optional[RetrieveTimeSeriesRequestSteps] = None,
Expand Down Expand Up @@ -144,7 +146,7 @@ def retrieve(
End of the range — a date (YYYY-MM-DD), expanded to the end of that day, or an ISO 8601 timestamp (for example 2026-07-17T16:37:00Z), used exactly. Funnel entry ranges cannot exceed 90 days.

account_id : typing.Optional[str]
The account this query concerns, for example biz_AbC123.
Account this query concerns, prefixed `biz_`, or `platform` for all of Whop.

user_id : typing.Optional[str]
The user this query concerns, for example user_AbC123. Available on metrics that support user subjects, such as account_balance.
Expand Down Expand Up @@ -239,6 +241,12 @@ def retrieve(
event : typing.Optional[str]
Filter the events metric to one or more full event names, for example payment.completed or pixel.lead. Comma-separated names match any listed event. Use group_by=event for separate groups. Available on metrics that list event.

business_type : typing.Optional[str]
Filter to one business type, for example `education`. Pair with `breakdown_by=business_type` to split by business type. Available on metrics that list `business_type`.

industry_type : typing.Optional[str]
Filter to one industry type, for example `options_trading`. Pair with `breakdown_by=industry_type` to split by industry type. Available on metrics that list `industry_type`.

conversion_window : typing.Optional[str]
Funnel only. Time allowed from the first event to the final event: integer minutes, hours, or days, up to 30d.

Expand Down Expand Up @@ -397,6 +405,8 @@ def retrieve(
ad_ids=ad_ids,
snapshot_window=snapshot_window,
event=event,
business_type=business_type,
industry_type=industry_type,
conversion_window=conversion_window,
mature_only=mature_only,
steps=steps,
Expand Down Expand Up @@ -523,6 +533,8 @@ async def retrieve(
ad_ids: typing.Optional[typing.Union[str, typing.Sequence[str]]] = None,
snapshot_window: typing.Optional[RetrieveTimeSeriesRequestSnapshotWindow] = None,
event: typing.Optional[str] = None,
business_type: typing.Optional[str] = None,
industry_type: typing.Optional[str] = None,
conversion_window: typing.Optional[str] = None,
mature_only: typing.Optional[bool] = None,
steps: typing.Optional[RetrieveTimeSeriesRequestSteps] = None,
Expand Down Expand Up @@ -572,7 +584,7 @@ async def retrieve(
End of the range — a date (YYYY-MM-DD), expanded to the end of that day, or an ISO 8601 timestamp (for example 2026-07-17T16:37:00Z), used exactly. Funnel entry ranges cannot exceed 90 days.

account_id : typing.Optional[str]
The account this query concerns, for example biz_AbC123.
Account this query concerns, prefixed `biz_`, or `platform` for all of Whop.

user_id : typing.Optional[str]
The user this query concerns, for example user_AbC123. Available on metrics that support user subjects, such as account_balance.
Expand Down Expand Up @@ -667,6 +679,12 @@ async def retrieve(
event : typing.Optional[str]
Filter the events metric to one or more full event names, for example payment.completed or pixel.lead. Comma-separated names match any listed event. Use group_by=event for separate groups. Available on metrics that list event.

business_type : typing.Optional[str]
Filter to one business type, for example `education`. Pair with `breakdown_by=business_type` to split by business type. Available on metrics that list `business_type`.

industry_type : typing.Optional[str]
Filter to one industry type, for example `options_trading`. Pair with `breakdown_by=industry_type` to split by industry type. Available on metrics that list `industry_type`.

conversion_window : typing.Optional[str]
Funnel only. Time allowed from the first event to the final event: integer minutes, hours, or days, up to 30d.

Expand Down Expand Up @@ -833,6 +851,8 @@ async def main() -> None:
ad_ids=ad_ids,
snapshot_window=snapshot_window,
event=event,
business_type=business_type,
industry_type=industry_type,
conversion_window=conversion_window,
mature_only=mature_only,
steps=steps,
Expand Down
Loading
Loading