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.41.10",
"generatorVersion": "5.41.16",
"generatorConfig": {
"inline_request_params": true,
"client": {
Expand Down Expand Up @@ -52,10 +52,10 @@
},
"pyproject_toml": "[[tool.poetry.include]]\npath = \"src/schematic/datastream/wasm/*.wasm\"\nformat = [\"sdist\", \"wheel\"]\n\n[[tool.mypy.overrides]]\nmodule = \"redis.*\"\nignore_missing_imports = true\n"
},
"originGitCommit": "6d2cbedf447a3e0916031392e5a8ec1c46d245d3",
"originGitCommit": "e6a4fb2c8313262a81b70c5f06e15eaeb196abba",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"requestedVersion": "1.4.7",
"requestedVersion": "1.4.8",
"ciProvider": "github",
"sdkVersion": "1.4.7"
"sdkVersion": "1.4.8"
}
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.

308 changes: 156 additions & 152 deletions poetry.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ license-files = ["LICENSE"]

[tool.poetry]
name = "schematichq"
version = "1.4.7"
version = "1.4.8"
description = ""
readme = "README.md"
authors = []
Expand Down
156 changes: 151 additions & 5 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -891,6 +891,7 @@ client = Schematic(

client.accounts.list_audit_logs(
actor_type="api_key",
company_id="company_id",
end_time=datetime.datetime.fromisoformat("2024-01-15T09:30:00+00:00"),
environment_id="environment_id",
q="q",
Expand Down Expand Up @@ -921,6 +922,14 @@ client.accounts.list_audit_logs(
<dl>
<dd>

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

</dd>
</dl>

<dl>
<dd>

**end_time:** `typing.Optional[datetime.datetime]`

</dd>
Expand Down Expand Up @@ -1064,6 +1073,7 @@ client = Schematic(

client.accounts.count_audit_logs(
actor_type="api_key",
company_id="company_id",
end_time=datetime.datetime.fromisoformat("2024-01-15T09:30:00+00:00"),
environment_id="environment_id",
q="q",
Expand Down Expand Up @@ -1094,6 +1104,14 @@ client.accounts.count_audit_logs(
<dl>
<dd>

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

</dd>
</dl>

<dl>
<dd>

**end_time:** `typing.Optional[datetime.datetime]`

</dd>
Expand Down Expand Up @@ -4338,6 +4356,14 @@ client.billing.update_company_billing_profile(
<dl>
<dd>

**currency:** `typing.Optional[Currency]`

</dd>
</dl>

<dl>
<dd>

**days_until_due:** `typing.Optional[int]`

</dd>
Expand All @@ -4346,6 +4372,14 @@ client.billing.update_company_billing_profile(
<dl>
<dd>

**gating_days:** `typing.Optional[int]`

</dd>
</dl>

<dl>
<dd>

**is_default:** `typing.Optional[bool]`

</dd>
Expand All @@ -4362,6 +4396,22 @@ client.billing.update_company_billing_profile(
<dl>
<dd>

**overdraft_limit:** `typing.Optional[int]`

</dd>
</dl>

<dl>
<dd>

**payment_gating:** `typing.Optional[PaymentGating]`

</dd>
</dl>

<dl>
<dd>

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

</dd>
Expand Down Expand Up @@ -8255,7 +8305,7 @@ client.credits.reserve_credits(
<dl>
<dd>

**expires_at:** `typing.Optional[datetime.datetime]` — When the hold lapses if no track event settles it; defaults to one minute from now and may be at most one hour out. The unspent hold is refunded on expiry
**expires_at:** `typing.Optional[datetime.datetime]` — When the hold lapses if no track event settles it; defaults to one minute from now and may be at most 24 hours out. The unspent hold is refunded on expiry

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

client.companies.list_companies(
cancel_at_period_end=True,
credit_type_ids=[
"credit_type_ids"
],
Expand Down Expand Up @@ -11190,6 +11241,14 @@ client.companies.list_companies(
<dl>
<dd>

**cancel_at_period_end:** `typing.Optional[bool]` — If true, filter companies with an active subscription that is set to cancel at the end of the current period; if false, filter companies without one

</dd>
</dl>

<dl>
<dd>

**credit_type_ids:** `typing.Optional[typing.Union[str, typing.Sequence[str]]]` — Filter companies by one or more credit type IDs (each ID starts with bcrd_)

</dd>
Expand All @@ -11198,7 +11257,7 @@ client.companies.list_companies(
<dl>
<dd>

**has_scheduled_downgrade:** `typing.Optional[bool]` — Filter companies that have a pending scheduled downgrade
**has_scheduled_downgrade:** `typing.Optional[bool]` — If true, filter companies that have a pending scheduled downgrade; if false, filter companies that do not

</dd>
</dl>
Expand Down Expand Up @@ -11563,6 +11622,84 @@ client.companies.delete_company(
</dl>


</dd>
</dl>
</details>

<details><summary><code>client.companies.<a href="src/schematic/companies/client.py">get_company_inference_cost</a>(...) -> GetCompanyInferenceCostResponse</code></summary>
<dl>
<dd>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```python
from schematic import Schematic
from schematic.environment import SchematicEnvironment
import datetime

client = Schematic(
api_key="<value>",
environment=SchematicEnvironment.DEFAULT,
)

client.companies.get_company_inference_cost(
company_id="company_id",
end_time=datetime.datetime.fromisoformat("2024-01-15T09:30:00+00:00"),
start_time=datetime.datetime.fromisoformat("2024-01-15T09:30:00+00:00"),
)

```
</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**company_id:** `str` — company_id

</dd>
</dl>

<dl>
<dd>

**end_time:** `typing.Optional[datetime.datetime]` — End of the window (exclusive). Pass together with start_time; when both are omitted, the company's current billing period is used

</dd>
</dl>

<dl>
<dd>

**start_time:** `typing.Optional[datetime.datetime]` — Start of the window (inclusive). Pass together with end_time; when both are omitted, the company's current billing period is used

</dd>
</dl>

<dl>
<dd>

**request_options:** `typing.Optional[RequestOptions]` — Request-specific configuration.

</dd>
</dl>
</dd>
</dl>


</dd>
</dl>
</details>
Expand All @@ -11589,6 +11726,7 @@ client = Schematic(
)

client.companies.count_companies(
cancel_at_period_end=True,
credit_type_ids=[
"credit_type_ids"
],
Expand Down Expand Up @@ -11638,6 +11776,14 @@ client.companies.count_companies(
<dl>
<dd>

**cancel_at_period_end:** `typing.Optional[bool]` — If true, filter companies with an active subscription that is set to cancel at the end of the current period; if false, filter companies without one

</dd>
</dl>

<dl>
<dd>

**credit_type_ids:** `typing.Optional[typing.Union[str, typing.Sequence[str]]]` — Filter companies by one or more credit type IDs (each ID starts with bcrd_)

</dd>
Expand All @@ -11646,7 +11792,7 @@ client.companies.count_companies(
<dl>
<dd>

**has_scheduled_downgrade:** `typing.Optional[bool]` — Filter companies that have a pending scheduled downgrade
**has_scheduled_downgrade:** `typing.Optional[bool]` — If true, filter companies that have a pending scheduled downgrade; if false, filter companies that do not

</dd>
</dl>
Expand Down Expand Up @@ -13607,7 +13753,7 @@ client = Schematic(
)

client.companies.list_plan_changes(
action="amendment",
action="access_reinstated",
base_plan_action="fallback",
company_id="company_id",
company_ids=[
Expand Down Expand Up @@ -23524,7 +23670,7 @@ client.features.check_and_reserve_flag(
<dl>
<dd>

**expires_at:** `typing.Optional[datetime.datetime]` — When the hold lapses if no track or inference event settles it; defaults to one minute from now and may be at most one hour out. The unspent hold is refunded on expiry
**expires_at:** `typing.Optional[datetime.datetime]` — When the hold lapses if no track or inference event settles it; defaults to one minute from now and may be at most 24 hours out. The unspent hold is refunded on expiry

</dd>
</dl>
Expand Down
Loading
Loading