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
2 changes: 1 addition & 1 deletion .fern/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
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.4.3",
"version": "1.4.4",
"private": false,
"repository": {
"type": "git",
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.4.3",
"User-Agent": "@schematichq/schematic-typescript-node/1.4.3",
"X-Fern-SDK-Version": "1.4.4",
"User-Agent": "@schematichq/schematic-typescript-node/1.4.4",
"X-Fern-Runtime": core.RUNTIME.type,
"X-Fern-Runtime-Version": core.RUNTIME.version,
},
Expand Down
2 changes: 1 addition & 1 deletion src/api/types/CaptureRawEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
export interface CaptureRawEvent {
capturedAt: Date;
eventId?: string;
rawBytes: number[];
rawBytes: string;
remoteIp: string;
userAgent: string;
}
10 changes: 10 additions & 0 deletions src/api/types/DataEventPayload.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// This file was auto-generated by Fern from our API Definition.

import type * as Schematic from "../index";

export interface DataEventPayload {
apiKey: string;
body?: Record<string, unknown>;
sentAt?: Date;
type: Schematic.EventType;
}
1 change: 1 addition & 0 deletions src/api/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
4 changes: 2 additions & 2 deletions src/serialization/types/CaptureRawEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()),
});
Expand All @@ -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;
}
Expand Down
25 changes: 25 additions & 0 deletions src/serialization/types/DataEventPayload.ts
Original file line number Diff line number Diff line change
@@ -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<string, unknown> | null;
sent_at?: string | null;
type: EventType.Raw;
}
}
1 change: 1 addition & 0 deletions src/serialization/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down