From 62ea183a4e092339386f8b3e7ed512f80920b3e0 Mon Sep 17 00:00:00 2001 From: "fern-api[bot]" <115122769+fern-api[bot]@users.noreply.github.com> Date: Thu, 12 Mar 2026 15:29:34 +0000 Subject: [PATCH] SDK regeneration --- .fern/metadata.json | 2 +- package.json | 2 +- src/BaseClient.ts | 4 ++-- src/api/types/CaptureRawEvent.ts | 2 +- src/api/types/DataEventPayload.ts | 10 +++++++++ src/api/types/index.ts | 1 + src/serialization/types/CaptureRawEvent.ts | 4 ++-- src/serialization/types/DataEventPayload.ts | 25 +++++++++++++++++++++ src/serialization/types/index.ts | 1 + yarn.lock | 6 ++--- 10 files changed, 47 insertions(+), 10 deletions(-) create mode 100644 src/api/types/DataEventPayload.ts create mode 100644 src/serialization/types/DataEventPayload.ts diff --git a/.fern/metadata.json b/.fern/metadata.json index 8a72998..06bdfed 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -46,5 +46,5 @@ "files": ["dist/**/*.js", "dist/**/*.d.ts", "!dist/**/*.js.map", "!dist/**/*.test.*", "README.md"] } }, - "sdkVersion": "1.4.3" + "sdkVersion": "1.4.4" } diff --git a/package.json b/package.json index 4740a4c..449251b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@schematichq/schematic-typescript-node", - "version": "1.4.3", + "version": "1.4.4", "private": false, "repository": { "type": "git", diff --git a/src/BaseClient.ts b/src/BaseClient.ts index eaea864..691a485 100644 --- a/src/BaseClient.ts +++ b/src/BaseClient.ts @@ -52,8 +52,8 @@ export function normalizeClientOptions; + sentAt?: Date; + type: Schematic.EventType; +} diff --git a/src/api/types/index.ts b/src/api/types/index.ts index 1a12a0f..4421c2d 100644 --- a/src/api/types/index.ts +++ b/src/api/types/index.ts @@ -136,6 +136,7 @@ export * from "./CreditUsage"; export * from "./CreditUsageAggregation"; export * from "./CustomPlanConfig"; export * from "./CustomPlanViewConfigResponseData"; +export * from "./DataEventPayload"; export * from "./DataExportOutputFileType"; export * from "./DataExportResponseData"; export * from "./DataExportStatus"; diff --git a/src/serialization/types/CaptureRawEvent.ts b/src/serialization/types/CaptureRawEvent.ts index 73abaa8..77555d2 100644 --- a/src/serialization/types/CaptureRawEvent.ts +++ b/src/serialization/types/CaptureRawEvent.ts @@ -10,7 +10,7 @@ export const CaptureRawEvent: core.serialization.ObjectSchema< > = core.serialization.object({ capturedAt: core.serialization.property("captured_at", core.serialization.date()), eventId: core.serialization.property("event_id", core.serialization.string().optional()), - rawBytes: core.serialization.property("raw_bytes", core.serialization.list(core.serialization.number())), + rawBytes: core.serialization.property("raw_bytes", core.serialization.string()), remoteIp: core.serialization.property("remote_ip", core.serialization.string()), userAgent: core.serialization.property("user_agent", core.serialization.string()), }); @@ -19,7 +19,7 @@ export declare namespace CaptureRawEvent { export interface Raw { captured_at: string; event_id?: string | null; - raw_bytes: number[]; + raw_bytes: string; remote_ip: string; user_agent: string; } diff --git a/src/serialization/types/DataEventPayload.ts b/src/serialization/types/DataEventPayload.ts new file mode 100644 index 0000000..ae3b790 --- /dev/null +++ b/src/serialization/types/DataEventPayload.ts @@ -0,0 +1,25 @@ +// This file was auto-generated by Fern from our API Definition. + +import type * as Schematic from "../../api/index"; +import * as core from "../../core"; +import type * as serializers from "../index"; +import { EventType } from "./EventType"; + +export const DataEventPayload: core.serialization.ObjectSchema< + serializers.DataEventPayload.Raw, + Schematic.DataEventPayload +> = core.serialization.object({ + apiKey: core.serialization.property("api_key", core.serialization.string()), + body: core.serialization.record(core.serialization.string(), core.serialization.unknown()).optional(), + sentAt: core.serialization.property("sent_at", core.serialization.date().optional()), + type: EventType, +}); + +export declare namespace DataEventPayload { + export interface Raw { + api_key: string; + body?: Record | null; + sent_at?: string | null; + type: EventType.Raw; + } +} diff --git a/src/serialization/types/index.ts b/src/serialization/types/index.ts index 1a12a0f..4421c2d 100644 --- a/src/serialization/types/index.ts +++ b/src/serialization/types/index.ts @@ -136,6 +136,7 @@ export * from "./CreditUsage"; export * from "./CreditUsageAggregation"; export * from "./CustomPlanConfig"; export * from "./CustomPlanViewConfigResponseData"; +export * from "./DataEventPayload"; export * from "./DataExportOutputFileType"; export * from "./DataExportResponseData"; export * from "./DataExportStatus"; diff --git a/yarn.lock b/yarn.lock index 357a67d..edfcc19 100644 --- a/yarn.lock +++ b/yarn.lock @@ -371,9 +371,9 @@ "@jridgewell/trace-mapping" "0.3.9" "@emnapi/runtime@^1.7.0": - version "1.8.1" - resolved "https://registry.yarnpkg.com/@emnapi/runtime/-/runtime-1.8.1.tgz#550fa7e3c0d49c5fb175a116e8cd70614f9a22a5" - integrity sha512-mehfKSMWjjNol8659Z8KxEMrdSJDDot5SXMq00dM8BN4o+CLNXQ0xH2V7EchNHV4RmbZLmmPdEaXZc5H2FXmDg== + version "1.9.0" + resolved "https://registry.yarnpkg.com/@emnapi/runtime/-/runtime-1.9.0.tgz#91c54a6e77c36154c125e873409472e2b70efd5b" + integrity sha512-QN75eB0IH2ywSpRpNddCRfQIhmJYBCJ1x5Lb3IscKAL8bMnVAKnRg8dCoXbHzVLLH7P38N2Z3mtulB7W0J0FKw== dependencies: tslib "^2.4.0"