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
10 changes: 5 additions & 5 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-typescript-node-sdk",
"generatorVersion": "3.107.3",
"generatorVersion": "3.108.6",
"generatorConfig": {
"allowCustomFetcher": true,
"includeApiReference": true,
Expand Down Expand Up @@ -37,7 +37,7 @@
},
"resolutions": {
"sharp": "^0.35.4",
"undici": "7.29.1"
"undici": "7.30.1"
},
"scripts": {
"build": "node build.js",
Expand All @@ -57,10 +57,10 @@
]
}
},
"originGitCommit": "9c3d404a6ed3ff63811ecbef9e2814ea8607f22d",
"originGitCommit": "e6a4fb2c8313262a81b70c5f06e15eaeb196abba",
"originGitCommitIsDirty": false,
"invokedBy": "ci",
"requestedVersion": "1.6.8",
"requestedVersion": "1.6.9",
"ciProvider": "github",
"sdkVersion": "1.6.8"
"sdkVersion": "1.6.9"
}
4,471 changes: 4,239 additions & 232 deletions .fern/replay.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@schematichq/schematic-typescript-node",
"version": "1.6.8",
"version": "1.6.9",
"private": false,
"repository": {
"type": "git",
Expand Down
66 changes: 65 additions & 1 deletion reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -650,6 +650,7 @@ await client.accounts.countApiKeys({
```typescript
await client.accounts.listAuditLogs({
actorType: "api_key",
companyId: "company_id",
endTime: new Date("2024-01-15T09:30:00.000Z"),
environmentId: "environment_id",
q: "q",
Expand Down Expand Up @@ -756,6 +757,7 @@ await client.accounts.getAuditLog("audit_log_id");
```typescript
await client.accounts.countAuditLogs({
actorType: "api_key",
companyId: "company_id",
endTime: new Date("2024-01-15T09:30:00.000Z"),
environmentId: "environment_id",
q: "q",
Expand Down Expand Up @@ -6711,6 +6713,7 @@ await client.checkout.updateCustomerSubscriptionTrialEnd("subscription_id");

```typescript
await client.companies.listCompanies({
cancelAtPeriodEnd: true,
creditTypeIds: ["credit_type_ids"],
hasScheduledDowngrade: true,
ids: ["ids"],
Expand Down Expand Up @@ -6926,6 +6929,66 @@ await client.companies.deleteCompany("company_id", {
</dl>


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

<details><summary><code>client.companies.<a href="/src/api/resources/companies/client/Client.ts">getCompanyInferenceCost</a>(company_id, { ...params }) -> Schematic.GetCompanyInferenceCostResponse</code></summary>
<dl>
<dd>

#### 🔌 Usage

<dl>
<dd>

<dl>
<dd>

```typescript
await client.companies.getCompanyInferenceCost("company_id", {
endTime: new Date("2024-01-15T09:30:00.000Z"),
startTime: new Date("2024-01-15T09:30:00.000Z")
});

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

#### ⚙️ Parameters

<dl>
<dd>

<dl>
<dd>

**company_id:** `string` — company_id

</dd>
</dl>

<dl>
<dd>

**request:** `Schematic.GetCompanyInferenceCostRequest`

</dd>
</dl>

<dl>
<dd>

**requestOptions:** `CompaniesClient.RequestOptions`

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


</dd>
</dl>
</details>
Expand All @@ -6944,6 +7007,7 @@ await client.companies.deleteCompany("company_id", {

```typescript
await client.companies.countCompanies({
cancelAtPeriodEnd: true,
creditTypeIds: ["credit_type_ids"],
hasScheduledDowngrade: true,
ids: ["ids"],
Expand Down Expand Up @@ -8251,7 +8315,7 @@ await client.companies.countEntityTraits({

```typescript
await client.companies.listPlanChanges({
action: "amendment",
action: "access_reinstated",
basePlanAction: "fallback",
companyId: "company_id",
companyIds: ["company_ids"],
Expand Down
4 changes: 2 additions & 2 deletions src/BaseClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ export function normalizeClientOptions<T extends BaseClientOptions = BaseClientO
{
"X-Fern-Language": "JavaScript",
"X-Fern-SDK-Name": "@schematichq/schematic-typescript-node",
"X-Fern-SDK-Version": "1.6.8",
"User-Agent": "@schematichq/schematic-typescript-node/1.6.8",
"X-Fern-SDK-Version": "1.6.9",
"User-Agent": "@schematichq/schematic-typescript-node/1.6.9",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
8 changes: 6 additions & 2 deletions src/api/resources/accounts/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -874,6 +874,7 @@ export class AccountsClient {
* @example
* await client.accounts.listAuditLogs({
* actorType: "api_key",
* companyId: "company_id",
* endTime: new Date("2024-01-15T09:30:00.000Z"),
* environmentId: "environment_id",
* q: "q",
Expand All @@ -893,12 +894,13 @@ export class AccountsClient {
request: Schematic.ListAuditLogsRequest = {},
requestOptions?: AccountsClient.RequestOptions,
): Promise<core.WithRawResponse<Schematic.ListAuditLogsResponse>> {
const { actorType, endTime, environmentId, q, startTime, limit, offset } = request;
const { actorType, companyId, endTime, environmentId, q, startTime, limit, offset } = request;
const _queryParams: Record<string, unknown> = {
actor_type:
actorType != null
? serializers.ActorType.jsonOrThrow(actorType, { unrecognizedObjectKeys: "strip" })
: undefined,
company_id: companyId,
end_time: endTime != null ? endTime?.toISOString() : undefined,
environment_id: environmentId,
q,
Expand Down Expand Up @@ -1147,6 +1149,7 @@ export class AccountsClient {
* @example
* await client.accounts.countAuditLogs({
* actorType: "api_key",
* companyId: "company_id",
* endTime: new Date("2024-01-15T09:30:00.000Z"),
* environmentId: "environment_id",
* q: "q",
Expand All @@ -1166,12 +1169,13 @@ export class AccountsClient {
request: Schematic.CountAuditLogsRequest = {},
requestOptions?: AccountsClient.RequestOptions,
): Promise<core.WithRawResponse<Schematic.CountAuditLogsResponse>> {
const { actorType, endTime, environmentId, q, startTime, limit, offset } = request;
const { actorType, companyId, endTime, environmentId, q, startTime, limit, offset } = request;
const _queryParams: Record<string, unknown> = {
actor_type:
actorType != null
? serializers.ActorType.jsonOrThrow(actorType, { unrecognizedObjectKeys: "strip" })
: undefined,
company_id: companyId,
end_time: endTime != null ? endTime?.toISOString() : undefined,
environment_id: environmentId,
q,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import type * as Schematic from "../../../../index";
* @example
* {
* actorType: "api_key",
* companyId: "company_id",
* endTime: new Date("2024-01-15T09:30:00.000Z"),
* environmentId: "environment_id",
* q: "q",
Expand All @@ -16,6 +17,7 @@ import type * as Schematic from "../../../../index";
*/
export interface CountAuditLogsRequest {
actorType?: Schematic.ActorType;
companyId?: string;
endTime?: Date;
environmentId?: string;
q?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import type * as Schematic from "../../../../index";
* @example
* {
* actorType: "api_key",
* companyId: "company_id",
* endTime: new Date("2024-01-15T09:30:00.000Z"),
* environmentId: "environment_id",
* q: "q",
Expand All @@ -16,6 +17,7 @@ import type * as Schematic from "../../../../index";
*/
export interface ListAuditLogsRequest {
actorType?: Schematic.ActorType;
companyId?: string;
endTime?: Date;
environmentId?: string;
q?: string;
Expand Down
1 change: 1 addition & 0 deletions src/api/resources/accounts/types/CountAuditLogsParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import type * as Schematic from "../../../index";
*/
export interface CountAuditLogsParams {
actorType?: Schematic.ActorType;
companyId?: string;
endTime?: Date;
environmentId?: string;
/** Page limit (default 100) */
Expand Down
1 change: 1 addition & 0 deletions src/api/resources/accounts/types/ListAuditLogsParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import type * as Schematic from "../../../index";
*/
export interface ListAuditLogsParams {
actorType?: Schematic.ActorType;
companyId?: string;
endTime?: Date;
environmentId?: string;
/** Page limit (default 100) */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ import type * as Schematic from "../../../../index";
*/
export interface UpdateCompanyBillingProfileRequestBody {
collectionMethod: Schematic.BillingCollectionMethod;
currency?: Schematic.Currency;
daysUntilDue?: number;
gatingDays?: number;
isDefault?: boolean;
name?: string;
overdraftLimit?: number;
paymentGating?: Schematic.PaymentGating;
paymentMethodId?: string;
prorationBehavior?: Schematic.ProrationBehavior;
}
Loading
Loading