Skip to content
Closed
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 @@ -41,5 +41,5 @@
"files": ["dist/**/*.js", "dist/**/*.d.ts", "!dist/**/*.js.map", "!dist/**/*.test.*", "README.md"]
}
},
"sdkVersion": "1.3.0"
"sdkVersion": "1.3.1"
}
1 change: 1 addition & 0 deletions .fernignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ src/version.ts
src/webhooks.ts
src/wrapper.ts
tests/unit/webhooks.test.ts
changelog.md
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
## 1.3.1 - 2026-01-06
* SDK regeneration
* Unable to analyze changes with AI, incrementing PATCH version.

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.3.0",
"version": "1.3.1",
"private": false,
"repository": {
"type": "git",
Expand Down
3 changes: 0 additions & 3 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,6 @@ await client.billing.upsertBillingCoupon({
await client.billing.upsertBillingCustomer({
email: "email",
externalId: "external_id",
failedToImport: true,
meta: {
"key": "value"
},
Expand Down Expand Up @@ -1055,7 +1054,6 @@ await client.billing.upsertBillingCustomer({

```typescript
await client.billing.listCustomersWithSubscriptions({
failedToImport: true,
name: "name",
providerType: "schematic",
q: "q",
Expand Down Expand Up @@ -1111,7 +1109,6 @@ await client.billing.listCustomersWithSubscriptions({

```typescript
await client.billing.countCustomers({
failedToImport: true,
name: "name",
providerType: "schematic",
q: "q",
Expand Down
4 changes: 2 additions & 2 deletions src/BaseClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,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.3.0",
"User-Agent": "@schematichq/schematic-typescript-node/1.3.0",
"X-Fern-SDK-Version": "1.3.1",
"User-Agent": "@schematichq/schematic-typescript-node/AUTO",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
15 changes: 2 additions & 13 deletions src/api/resources/billing/client/Client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,6 @@ export class BillingClient {
* await client.billing.upsertBillingCustomer({
* email: "email",
* externalId: "external_id",
* failedToImport: true,
* meta: {
* "key": "value"
* },
Expand Down Expand Up @@ -467,7 +466,6 @@ export class BillingClient {
*
* @example
* await client.billing.listCustomersWithSubscriptions({
* failedToImport: true,
* name: "name",
* providerType: "schematic",
* q: "q",
Expand All @@ -486,7 +484,7 @@ export class BillingClient {
request: Schematic.ListCustomersWithSubscriptionsRequest = {},
requestOptions?: BillingClient.RequestOptions,
): Promise<core.WithRawResponse<Schematic.ListCustomersWithSubscriptionsResponse>> {
const { companyIds, failedToImport, name, providerType, q, limit, offset } = request;
const { companyIds, name, providerType, q, limit, offset } = request;
const _queryParams: Record<string, string | string[] | object | object[] | null> = {};
if (companyIds != null) {
if (Array.isArray(companyIds)) {
Expand All @@ -496,10 +494,6 @@ export class BillingClient {
}
}

if (failedToImport != null) {
_queryParams.failed_to_import = failedToImport.toString();
}

if (name != null) {
_queryParams.name = name;
}
Expand Down Expand Up @@ -638,7 +632,6 @@ export class BillingClient {
*
* @example
* await client.billing.countCustomers({
* failedToImport: true,
* name: "name",
* providerType: "schematic",
* q: "q",
Expand All @@ -657,7 +650,7 @@ export class BillingClient {
request: Schematic.CountCustomersRequest = {},
requestOptions?: BillingClient.RequestOptions,
): Promise<core.WithRawResponse<Schematic.CountCustomersResponse>> {
const { companyIds, failedToImport, name, providerType, q, limit, offset } = request;
const { companyIds, name, providerType, q, limit, offset } = request;
const _queryParams: Record<string, string | string[] | object | object[] | null> = {};
if (companyIds != null) {
if (Array.isArray(companyIds)) {
Expand All @@ -667,10 +660,6 @@ export class BillingClient {
}
}

if (failedToImport != null) {
_queryParams.failed_to_import = failedToImport.toString();
}

if (name != null) {
_queryParams.name = name;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import type * as Schematic from "../../../../index";
*/
export interface CountBillingProductsRequest {
ids?: string | string[];
/** Filter products that are active */
/** Filter products that are active. Defaults to true if not specified */
isActive?: boolean;
name?: string;
priceUsageType?: Schematic.BillingPriceUsageType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import type * as Schematic from "../../../../index";
/**
* @example
* {
* failedToImport: true,
* name: "name",
* providerType: "schematic",
* q: "q",
Expand All @@ -15,7 +14,6 @@ import type * as Schematic from "../../../../index";
*/
export interface CountCustomersRequest {
companyIds?: string | string[];
failedToImport?: boolean;
name?: string;
providerType?: Schematic.BillingProviderType;
q?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import type * as Schematic from "../../../../index";
* {
* email: "email",
* externalId: "external_id",
* failedToImport: true,
* meta: {
* "key": "value"
* },
Expand All @@ -19,7 +18,6 @@ export interface CreateBillingCustomerRequestBody {
defaultPaymentMethodId?: string;
email: string;
externalId: string;
failedToImport: boolean;
meta: Record<string, string>;
name: string;
providerType?: Schematic.BillingProviderType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import type * as Schematic from "../../../../index";
*/
export interface ListBillingProductsRequest {
ids?: string | string[];
/** Filter products that are active */
/** Filter products that are active. Defaults to true if not specified */
isActive?: boolean;
name?: string;
priceUsageType?: Schematic.BillingPriceUsageType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import type * as Schematic from "../../../../index";
/**
* @example
* {
* failedToImport: true,
* name: "name",
* providerType: "schematic",
* q: "q",
Expand All @@ -15,7 +14,6 @@ import type * as Schematic from "../../../../index";
*/
export interface ListCustomersWithSubscriptionsRequest {
companyIds?: string | string[];
failedToImport?: boolean;
name?: string;
providerType?: Schematic.BillingProviderType;
q?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type * as Schematic from "../../../index";
*/
export interface CountBillingProductsParams {
ids?: string[];
/** Filter products that are active */
/** Filter products that are active. Defaults to true if not specified */
isActive?: boolean;
/** Page limit (default 100) */
limit?: number;
Expand Down
1 change: 0 additions & 1 deletion src/api/resources/billing/types/CountCustomersParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import type * as Schematic from "../../../index";
*/
export interface CountCustomersParams {
companyIds?: string[];
failedToImport?: boolean;
/** Page limit (default 100) */
limit?: number;
name?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type * as Schematic from "../../../index";
*/
export interface ListBillingProductsParams {
ids?: string[];
/** Filter products that are active */
/** Filter products that are active. Defaults to true if not specified */
isActive?: boolean;
/** Page limit (default 100) */
limit?: number;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import type * as Schematic from "../../../index";
*/
export interface ListCustomersWithSubscriptionsParams {
companyIds?: string[];
failedToImport?: boolean;
/** Page limit (default 100) */
limit?: number;
name?: string;
Expand Down
2 changes: 2 additions & 0 deletions src/api/types/BillingCreditGrantResponseData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ export interface BillingCreditGrantResponseData {
quantity: number;
quantityRemaining: number;
quantityUsed: number;
renewalEnabled: boolean;
renewalPeriod?: Schematic.BillingPlanCreditGrantResetCadence;
sourceLabel: string;
transfers?: Schematic.CreditTransferResponseData[];
updatedAt: Date;
Expand Down
1 change: 0 additions & 1 deletion src/api/types/BillingCustomerResponseData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export interface BillingCustomerResponseData {
deletedAt?: Date;
email: string;
externalId: string;
failedToImport: boolean;
id: string;
name: string;
providerType: Schematic.BillingProviderType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ export interface BillingCustomerWithSubscriptionsResponseData {
deletedAt?: Date;
email: string;
externalId: string;
failedToImport: boolean;
id: string;
name: string;
providerType: Schematic.BillingProviderType;
Expand Down
2 changes: 2 additions & 0 deletions src/api/types/CreditCompanyGrantView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ export interface CreditCompanyGrantView {
quantity: number;
quantityRemaining: number;
quantityUsed: number;
renewalEnabled: boolean;
renewalPeriod?: Schematic.BillingPlanCreditGrantResetCadence;
singularName?: string;
sourceLabel: string;
transfers?: Schematic.CreditTransferView[];
Expand Down
2 changes: 1 addition & 1 deletion src/api/types/EventDetailResponseData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export interface EventDetailResponseData {
status: Schematic.EventStatus;
subtype?: string;
type: Schematic.EventType;
updatedAt: Date;
updatedAt?: Date;
user?: Schematic.PreviewObject;
userId?: string;
}
2 changes: 1 addition & 1 deletion src/api/types/EventResponseData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ export interface EventResponseData {
status: Schematic.EventStatus;
subtype?: string;
type: Schematic.EventType;
updatedAt: Date;
updatedAt?: Date;
userId?: string;
}
2 changes: 1 addition & 1 deletion src/api/types/RawEventResponseData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
export interface RawEventResponseData {
capturedAt: Date;
eventId?: string;
remoteAddr: string;
remoteAddr?: string;
remoteIp: string;
userAgent: string;
}
2 changes: 2 additions & 0 deletions src/api/types/WebhookRequestType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,7 @@ export const WebhookRequestType = {
UserCreated: "user.created",
UserDeleted: "user.deleted",
UserUpdated: "user.updated",
AutoTopupHardFailure: "auto.topup.hard.failure",
AutoTopupRetryExceeded: "auto.topup.retry.exceeded",
} as const;
export type WebhookRequestType = (typeof WebhookRequestType)[keyof typeof WebhookRequestType];
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ export const CreateBillingCustomerRequestBody: core.serialization.Schema<
),
email: core.serialization.string(),
externalId: core.serialization.property("external_id", core.serialization.string()),
failedToImport: core.serialization.property("failed_to_import", core.serialization.boolean()),
meta: core.serialization.record(core.serialization.string(), core.serialization.string()),
name: core.serialization.string(),
providerType: core.serialization.property("provider_type", BillingProviderType.optional()),
Expand All @@ -28,7 +27,6 @@ export declare namespace CreateBillingCustomerRequestBody {
default_payment_method_id?: string | null;
email: string;
external_id: string;
failed_to_import: boolean;
meta: Record<string, string>;
name: string;
provider_type?: BillingProviderType.Raw | null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export const CountCustomersParams: core.serialization.ObjectSchema<
"company_ids",
core.serialization.list(core.serialization.string()).optional(),
),
failedToImport: core.serialization.property("failed_to_import", core.serialization.boolean().optional()),
limit: core.serialization.number().optional(),
name: core.serialization.string().optional(),
offset: core.serialization.number().optional(),
Expand All @@ -24,7 +23,6 @@ export const CountCustomersParams: core.serialization.ObjectSchema<
export declare namespace CountCustomersParams {
export interface Raw {
company_ids?: string[] | null;
failed_to_import?: boolean | null;
limit?: number | null;
name?: string | null;
offset?: number | null;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export const ListCustomersWithSubscriptionsParams: core.serialization.ObjectSche
"company_ids",
core.serialization.list(core.serialization.string()).optional(),
),
failedToImport: core.serialization.property("failed_to_import", core.serialization.boolean().optional()),
limit: core.serialization.number().optional(),
name: core.serialization.string().optional(),
offset: core.serialization.number().optional(),
Expand All @@ -24,7 +23,6 @@ export const ListCustomersWithSubscriptionsParams: core.serialization.ObjectSche
export declare namespace ListCustomersWithSubscriptionsParams {
export interface Raw {
company_ids?: string[] | null;
failed_to_import?: boolean | null;
limit?: number | null;
name?: string | null;
offset?: number | null;
Expand Down
5 changes: 5 additions & 0 deletions src/serialization/types/BillingCreditGrantResponseData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import * as core from "../../core";
import type * as serializers from "../index";
import { BillingCreditGrantReason } from "./BillingCreditGrantReason";
import { BillingCreditGrantZeroedOutReason } from "./BillingCreditGrantZeroedOutReason";
import { BillingPlanCreditGrantResetCadence } from "./BillingPlanCreditGrantResetCadence";
import { BillingPriceResponseData } from "./BillingPriceResponseData";
import { CreditTransferResponseData } from "./CreditTransferResponseData";

Expand All @@ -27,6 +28,8 @@ export const BillingCreditGrantResponseData: core.serialization.ObjectSchema<
quantity: core.serialization.number(),
quantityRemaining: core.serialization.property("quantity_remaining", core.serialization.number()),
quantityUsed: core.serialization.property("quantity_used", core.serialization.number()),
renewalEnabled: core.serialization.property("renewal_enabled", core.serialization.boolean()),
renewalPeriod: core.serialization.property("renewal_period", BillingPlanCreditGrantResetCadence.optional()),
sourceLabel: core.serialization.property("source_label", core.serialization.string()),
transfers: core.serialization.list(CreditTransferResponseData).optional(),
updatedAt: core.serialization.property("updated_at", core.serialization.date()),
Expand All @@ -52,6 +55,8 @@ export declare namespace BillingCreditGrantResponseData {
quantity: number;
quantity_remaining: number;
quantity_used: number;
renewal_enabled: boolean;
renewal_period?: BillingPlanCreditGrantResetCadence.Raw | null;
source_label: string;
transfers?: CreditTransferResponseData.Raw[] | null;
updated_at: string;
Expand Down
2 changes: 0 additions & 2 deletions src/serialization/types/BillingCustomerResponseData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export const BillingCustomerResponseData: core.serialization.ObjectSchema<
deletedAt: core.serialization.property("deleted_at", core.serialization.date().optional()),
email: core.serialization.string(),
externalId: core.serialization.property("external_id", core.serialization.string()),
failedToImport: core.serialization.property("failed_to_import", core.serialization.boolean()),
id: core.serialization.string(),
name: core.serialization.string(),
providerType: core.serialization.property("provider_type", BillingProviderType),
Expand All @@ -26,7 +25,6 @@ export declare namespace BillingCustomerResponseData {
deleted_at?: string | null;
email: string;
external_id: string;
failed_to_import: boolean;
id: string;
name: string;
provider_type: BillingProviderType.Raw;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export const BillingCustomerWithSubscriptionsResponseData: core.serialization.Ob
deletedAt: core.serialization.property("deleted_at", core.serialization.date().optional()),
email: core.serialization.string(),
externalId: core.serialization.property("external_id", core.serialization.string()),
failedToImport: core.serialization.property("failed_to_import", core.serialization.boolean()),
id: core.serialization.string(),
name: core.serialization.string(),
providerType: core.serialization.property("provider_type", BillingProviderType),
Expand All @@ -28,7 +27,6 @@ export declare namespace BillingCustomerWithSubscriptionsResponseData {
deleted_at?: string | null;
email: string;
external_id: string;
failed_to_import: boolean;
id: string;
name: string;
provider_type: BillingProviderType.Raw;
Expand Down
Loading
Loading