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-java-sdk",
"generatorVersion": "4.32.4",
"generatorVersion": "4.37.6",
"generatorConfig": {
"client-class-name": "BaseSchematic",
"generate-unknown-as-json-node": true,
Expand All @@ -15,10 +15,10 @@
"testImplementation com.github.codemonstur:embedded-redis:1.4.3"
]
},
"originGitCommit": "9c3d404a6ed3ff63811ecbef9e2814ea8607f22d",
"originGitCommit": "e6a4fb2c8313262a81b70c5f06e15eaeb196abba",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"requestedVersion": "1.6.6",
"requestedVersion": "1.6.7",
"ciProvider": "github",
"sdkVersion": "1.6.6"
"sdkVersion": "1.6.7"
}
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.

4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ java {

group = 'com.schematichq'

version = '1.6.6'
version = '1.6.7'

jar {
dependsOn(":generatePomFileForMavenPublication")
Expand Down Expand Up @@ -94,7 +94,7 @@ publishing {
maven(MavenPublication) {
groupId = 'com.schematichq'
artifactId = 'schematic-java'
version = '1.6.6'
version = '1.6.7'
from components.java
pom {
name = 'Schematic'
Expand Down
141 changes: 136 additions & 5 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -642,6 +642,7 @@ client.accounts().listAuditLogs(
ListAuditLogsRequest
.builder()
.actorType(ActorType.API_KEY)
.companyId("company_id")
.endTime(OffsetDateTime.parse("2024-01-15T09:30:00Z"))
.environmentId("environment_id")
.q("q")
Expand Down Expand Up @@ -672,6 +673,14 @@ client.accounts().listAuditLogs(
<dl>
<dd>

**companyId:** `Optional<String>`

</dd>
</dl>

<dl>
<dd>

**endTime:** `Optional<OffsetDateTime>`

</dd>
Expand Down Expand Up @@ -781,6 +790,7 @@ client.accounts().countAuditLogs(
CountAuditLogsRequest
.builder()
.actorType(ActorType.API_KEY)
.companyId("company_id")
.endTime(OffsetDateTime.parse("2024-01-15T09:30:00Z"))
.environmentId("environment_id")
.q("q")
Expand Down Expand Up @@ -811,6 +821,14 @@ client.accounts().countAuditLogs(
<dl>
<dd>

**companyId:** `Optional<String>`

</dd>
</dl>

<dl>
<dd>

**endTime:** `Optional<OffsetDateTime>`

</dd>
Expand Down Expand Up @@ -3562,6 +3580,14 @@ client.billing().updateCompanyBillingProfile(
<dl>
<dd>

**currency:** `Optional<Currency>`

</dd>
</dl>

<dl>
<dd>

**daysUntilDue:** `Optional<Long>`

</dd>
Expand All @@ -3570,6 +3596,14 @@ client.billing().updateCompanyBillingProfile(
<dl>
<dd>

**gatingDays:** `Optional<Long>`

</dd>
</dl>

<dl>
<dd>

**isDefault:** `Optional<Boolean>`

</dd>
Expand All @@ -3586,6 +3620,22 @@ client.billing().updateCompanyBillingProfile(
<dl>
<dd>

**overdraftLimit:** `Optional<Long>`

</dd>
</dl>

<dl>
<dd>

**paymentGating:** `Optional<PaymentGating>`

</dd>
</dl>

<dl>
<dd>

**paymentMethodId:** `Optional<String>`

</dd>
Expand Down Expand Up @@ -6826,7 +6876,7 @@ client.credits().reserveCredits(
<dl>
<dd>

**expiresAt:** `Optional<OffsetDateTime>` — 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
**expiresAt:** `Optional<OffsetDateTime>` — 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 @@ -9175,6 +9225,7 @@ client.companies().listCompanies(
.subscriptionTypes(
Arrays.asList(SubscriptionType.FREE)
)
.cancelAtPeriodEnd(true)
.hasScheduledDowngrade(true)
.monetizedSubscriptions(true)
.planId("plan_id")
Expand Down Expand Up @@ -9206,6 +9257,14 @@ client.companies().listCompanies(
<dl>
<dd>

**cancelAtPeriodEnd:** `Optional<Boolean>` — 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>

**creditTypeIds:** `Optional<String>` — Filter companies by one or more credit type IDs (each ID starts with bcrd_)

</dd>
Expand All @@ -9214,7 +9273,7 @@ client.companies().listCompanies(
<dl>
<dd>

**hasScheduledDowngrade:** `Optional<Boolean>` — Filter companies that have a pending scheduled downgrade
**hasScheduledDowngrade:** `Optional<Boolean>` — If true, filter companies that have a pending scheduled downgrade; if false, filter companies that do not

</dd>
</dl>
Expand Down Expand Up @@ -9526,6 +9585,69 @@ client.companies().deleteCompany(
</dl>


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

<details><summary><code>client.companies.getCompanyInferenceCost(companyId) -> GetCompanyInferenceCostResponse</code></summary>
<dl>
<dd>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```java
client.companies().getCompanyInferenceCost(
"company_id",
GetCompanyInferenceCostRequest
.builder()
.endTime(OffsetDateTime.parse("2024-01-15T09:30:00Z"))
.startTime(OffsetDateTime.parse("2024-01-15T09:30:00Z"))
.build()
);
```
</dd>
</dl>
</dd>
</dl>

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**companyId:** `String` — company_id

</dd>
</dl>

<dl>
<dd>

**endTime:** `Optional<OffsetDateTime>` — 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>

**startTime:** `Optional<OffsetDateTime>` — Start of the window (inclusive). Pass together with end_time; when both are omitted, the company's current billing period is used

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


</dd>
</dl>
</details>
Expand Down Expand Up @@ -9564,6 +9686,7 @@ client.companies().countCompanies(
.subscriptionTypes(
Arrays.asList(SubscriptionType.FREE)
)
.cancelAtPeriodEnd(true)
.hasScheduledDowngrade(true)
.monetizedSubscriptions(true)
.planId("plan_id")
Expand Down Expand Up @@ -9595,6 +9718,14 @@ client.companies().countCompanies(
<dl>
<dd>

**cancelAtPeriodEnd:** `Optional<Boolean>` — 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>

**creditTypeIds:** `Optional<String>` — Filter companies by one or more credit type IDs (each ID starts with bcrd_)

</dd>
Expand All @@ -9603,7 +9734,7 @@ client.companies().countCompanies(
<dl>
<dd>

**hasScheduledDowngrade:** `Optional<Boolean>` — Filter companies that have a pending scheduled downgrade
**hasScheduledDowngrade:** `Optional<Boolean>` — If true, filter companies that have a pending scheduled downgrade; if false, filter companies that do not

</dd>
</dl>
Expand Down Expand Up @@ -11214,7 +11345,7 @@ client.companies().listPlanChanges(
.companyIds(
Arrays.asList("company_ids")
)
.action(PlanChangeAction.AMENDMENT)
.action(PlanChangeAction.ACCESS_REINSTATED)
.basePlanAction(PlanChangeBasePlanAction.FALLBACK)
.companyId("company_id")
.limit(1000000L)
Expand Down Expand Up @@ -19637,7 +19768,7 @@ client.features().checkAndReserveFlag(
<dl>
<dd>

**expiresAt:** `Optional<OffsetDateTime>` — 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
**expiresAt:** `Optional<OffsetDateTime>` — 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