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
8 changes: 4 additions & 4 deletions .fern/metadata.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"cliVersion": "5.50.0",
"generatorName": "fernapi/fern-python-sdk",
"generatorVersion": "5.30.0",
"generatorVersion": "5.30.2",
"generatorConfig": {
"inline_request_params": true,
"client": {
Expand All @@ -23,10 +23,10 @@
}
]
},
"originGitCommit": "96570a6bf7ba01ea0851f22f559b8c62c1c9b5d4",
"originGitCommit": "097aa15ba0f43a259cf91d408a481997d078fb57",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"requestedVersion": "1.4.0",
"requestedVersion": "1.4.1",
"ciProvider": "github",
"sdkVersion": "1.4.0"
"sdkVersion": "1.4.1"
}
19,771 changes: 19,769 additions & 2 deletions .fern/replay.lock

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions .fernignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,15 @@ src/schematic/event_capture.py
src/schematic/http_client.py
src/schematic/logging.py
src/schematic/datastream/
src/schematic/leases/
src/schematic/webhook_utils/
src/schematic/webhooks/verification.py
tests/custom/
tests/datastream/
tests/leases/
tests/conformance/
tests/lease_support.py
conformance/
tests/webhook_utils/
CLAUDE.md
WASM_VERSION
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ dynamic = ["version"]

[tool.poetry]
name = "schematichq"
version = "1.4.0"
version = "1.4.1"
description = ""
readme = "README.md"
authors = []
Expand Down
58 changes: 56 additions & 2 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -17333,6 +17333,8 @@ client.plans.list_plans(
q="q",
scoped_to_company_id="scoped_to_company_id",
with_entitlements=True,
with_published_version=True,
without_entitlement_for_include_drafts=True,
without_entitlement_for="without_entitlement_for",
without_paid_product_id=True,
limit=1000000,
Expand Down Expand Up @@ -17465,6 +17467,22 @@ client.plans.list_plans(
<dl>
<dd>

**with_published_version:** `typing.Optional[bool]` — Only return plans that have a published version

</dd>
</dl>

<dl>
<dd>

**without_entitlement_for_include_drafts:** `typing.Optional[bool]` — With without_entitlement_for, also treat an entitlement on a plan's draft version as existing

</dd>
</dl>

<dl>
<dd>

**without_entitlement_for:** `typing.Optional[str]` — Filter out plans that already have a plan entitlement for the specified feature ID

</dd>
Expand Down Expand Up @@ -18153,6 +18171,8 @@ client.plans.count_plans(
q="q",
scoped_to_company_id="scoped_to_company_id",
with_entitlements=True,
with_published_version=True,
without_entitlement_for_include_drafts=True,
without_entitlement_for="without_entitlement_for",
without_paid_product_id=True,
limit=1000000,
Expand Down Expand Up @@ -18285,6 +18305,22 @@ client.plans.count_plans(
<dl>
<dd>

**with_published_version:** `typing.Optional[bool]` — Only return plans that have a published version

</dd>
</dl>

<dl>
<dd>

**without_entitlement_for_include_drafts:** `typing.Optional[bool]` — With without_entitlement_for, also treat an entitlement on a plan's draft version as existing

</dd>
</dl>

<dl>
<dd>

**without_entitlement_for:** `typing.Optional[str]` — Filter out plans that already have a plan entitlement for the specified feature ID

</dd>
Expand Down Expand Up @@ -24803,6 +24839,7 @@ client = Schematic(
)

client.planmigrations.list_migrations(
feature_id="feature_id",
plan_version_id="plan_version_id",
status="cancelled",
limit=1000000,
Expand All @@ -24823,7 +24860,15 @@ client.planmigrations.list_migrations(
<dl>
<dd>

**plan_version_id:** `str`
**feature_id:** `typing.Optional[str]`

</dd>
</dl>

<dl>
<dd>

**plan_version_id:** `typing.Optional[str]`

</dd>
</dl>
Expand Down Expand Up @@ -25262,6 +25307,7 @@ client = Schematic(
)

client.planmigrations.count_migrations(
feature_id="feature_id",
plan_version_id="plan_version_id",
status="cancelled",
limit=1000000,
Expand All @@ -25282,7 +25328,15 @@ client.planmigrations.count_migrations(
<dl>
<dd>

**plan_version_id:** `str`
**feature_id:** `typing.Optional[str]`

</dd>
</dl>

<dl>
<dd>

**plan_version_id:** `typing.Optional[str]`

</dd>
</dl>
Expand Down
4 changes: 2 additions & 2 deletions src/schematic/core/client_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ def get_headers(self) -> typing.Dict[str, str]:
import platform

headers: typing.Dict[str, str] = {
"User-Agent": "schematichq/1.4.0",
"User-Agent": "schematichq/1.4.1",
"X-Fern-Language": "Python",
"X-Fern-Runtime": f"python/{platform.python_version()}",
"X-Fern-Platform": f"{platform.system().lower()}/{platform.release()}",
"X-Fern-SDK-Name": "schematichq",
"X-Fern-SDK-Version": "1.4.0",
"X-Fern-SDK-Version": "1.4.1",
**(self.get_custom_headers() or {}),
}
headers["X-Schematic-Api-Key"] = self.api_key
Expand Down
60 changes: 48 additions & 12 deletions src/schematic/planmigrations/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ def count_company_migrations(
def list_migrations(
self,
*,
plan_version_id: str,
feature_id: typing.Optional[str] = None,
plan_version_id: typing.Optional[str] = None,
status: typing.Optional[PlanVersionMigrationStatus] = None,
limit: typing.Optional[int] = None,
offset: typing.Optional[int] = None,
Expand All @@ -193,7 +194,9 @@ def list_migrations(
"""
Parameters
----------
plan_version_id : str
feature_id : typing.Optional[str]

plan_version_id : typing.Optional[str]

status : typing.Optional[PlanVersionMigrationStatus]

Expand All @@ -219,14 +222,20 @@ def list_migrations(
api_key="YOUR_API_KEY",
)
client.planmigrations.list_migrations(
feature_id="feature_id",
plan_version_id="plan_version_id",
status="cancelled",
limit=1000000,
offset=1000000,
)
"""
_response = self._raw_client.list_migrations(
plan_version_id=plan_version_id, status=status, limit=limit, offset=offset, request_options=request_options
feature_id=feature_id,
plan_version_id=plan_version_id,
status=status,
limit=limit,
offset=offset,
request_options=request_options,
)
return _response.data

Expand Down Expand Up @@ -441,7 +450,8 @@ def retry_migration(
def count_migrations(
self,
*,
plan_version_id: str,
feature_id: typing.Optional[str] = None,
plan_version_id: typing.Optional[str] = None,
status: typing.Optional[PlanVersionMigrationStatus] = None,
limit: typing.Optional[int] = None,
offset: typing.Optional[int] = None,
Expand All @@ -450,7 +460,9 @@ def count_migrations(
"""
Parameters
----------
plan_version_id : str
feature_id : typing.Optional[str]

plan_version_id : typing.Optional[str]

status : typing.Optional[PlanVersionMigrationStatus]

Expand All @@ -476,14 +488,20 @@ def count_migrations(
api_key="YOUR_API_KEY",
)
client.planmigrations.count_migrations(
feature_id="feature_id",
plan_version_id="plan_version_id",
status="cancelled",
limit=1000000,
offset=1000000,
)
"""
_response = self._raw_client.count_migrations(
plan_version_id=plan_version_id, status=status, limit=limit, offset=offset, request_options=request_options
feature_id=feature_id,
plan_version_id=plan_version_id,
status=status,
limit=limit,
offset=offset,
request_options=request_options,
)
return _response.data

Expand Down Expand Up @@ -723,7 +741,8 @@ async def main() -> None:
async def list_migrations(
self,
*,
plan_version_id: str,
feature_id: typing.Optional[str] = None,
plan_version_id: typing.Optional[str] = None,
status: typing.Optional[PlanVersionMigrationStatus] = None,
limit: typing.Optional[int] = None,
offset: typing.Optional[int] = None,
Expand All @@ -732,7 +751,9 @@ async def list_migrations(
"""
Parameters
----------
plan_version_id : str
feature_id : typing.Optional[str]

plan_version_id : typing.Optional[str]

status : typing.Optional[PlanVersionMigrationStatus]

Expand Down Expand Up @@ -763,6 +784,7 @@ async def list_migrations(

async def main() -> None:
await client.planmigrations.list_migrations(
feature_id="feature_id",
plan_version_id="plan_version_id",
status="cancelled",
limit=1000000,
Expand All @@ -773,7 +795,12 @@ async def main() -> None:
asyncio.run(main())
"""
_response = await self._raw_client.list_migrations(
plan_version_id=plan_version_id, status=status, limit=limit, offset=offset, request_options=request_options
feature_id=feature_id,
plan_version_id=plan_version_id,
status=status,
limit=limit,
offset=offset,
request_options=request_options,
)
return _response.data

Expand Down Expand Up @@ -1028,7 +1055,8 @@ async def main() -> None:
async def count_migrations(
self,
*,
plan_version_id: str,
feature_id: typing.Optional[str] = None,
plan_version_id: typing.Optional[str] = None,
status: typing.Optional[PlanVersionMigrationStatus] = None,
limit: typing.Optional[int] = None,
offset: typing.Optional[int] = None,
Expand All @@ -1037,7 +1065,9 @@ async def count_migrations(
"""
Parameters
----------
plan_version_id : str
feature_id : typing.Optional[str]

plan_version_id : typing.Optional[str]

status : typing.Optional[PlanVersionMigrationStatus]

Expand Down Expand Up @@ -1068,6 +1098,7 @@ async def count_migrations(

async def main() -> None:
await client.planmigrations.count_migrations(
feature_id="feature_id",
plan_version_id="plan_version_id",
status="cancelled",
limit=1000000,
Expand All @@ -1078,7 +1109,12 @@ async def main() -> None:
asyncio.run(main())
"""
_response = await self._raw_client.count_migrations(
plan_version_id=plan_version_id, status=status, limit=limit, offset=offset, request_options=request_options
feature_id=feature_id,
plan_version_id=plan_version_id,
status=status,
limit=limit,
offset=offset,
request_options=request_options,
)
return _response.data

Expand Down
Loading
Loading