@schematichq/schematic-typescript-node 1.4.2 → 1.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9,7 +9,6 @@ import { BillingPriceResponseData } from "./BillingPriceResponseData";
9
9
  export declare const BillingCreditBundleResponseData: core.serialization.ObjectSchema<serializers.BillingCreditBundleResponseData.Raw, Schematic.BillingCreditBundleResponseData>;
10
10
  export declare namespace BillingCreditBundleResponseData {
11
11
  interface Raw {
12
- billing_invoice_id?: string | null;
13
12
  bundle_type: BillingCreditBundleType.Raw;
14
13
  created_at: string;
15
14
  credit_description?: string | null;
@@ -9,7 +9,6 @@ import { BillingProductPriceResponseData } from "./BillingProductPriceResponseDa
9
9
  export declare const BillingCreditBundleView: core.serialization.ObjectSchema<serializers.BillingCreditBundleView.Raw, Schematic.BillingCreditBundleView>;
10
10
  export declare namespace BillingCreditBundleView {
11
11
  interface Raw {
12
- billing_invoice_id?: string | null;
13
12
  bundle_type: BillingCreditBundleType.Raw;
14
13
  created_at: string;
15
14
  credit_description?: string | null;
@@ -0,0 +1,13 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ export declare const CaptureRawEvent: core.serialization.ObjectSchema<serializers.CaptureRawEvent.Raw, Schematic.CaptureRawEvent>;
5
+ export declare namespace CaptureRawEvent {
6
+ interface Raw {
7
+ captured_at: string;
8
+ event_id?: string | null;
9
+ raw_bytes: string;
10
+ remote_ip: string;
11
+ user_agent: string;
12
+ }
13
+ }
@@ -0,0 +1,10 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ import { CaptureRawEvent } from "./CaptureRawEvent";
5
+ export declare const CaptureRawEventBatch: core.serialization.ObjectSchema<serializers.CaptureRawEventBatch.Raw, Schematic.CaptureRawEventBatch>;
6
+ export declare namespace CaptureRawEventBatch {
7
+ interface Raw {
8
+ events: CaptureRawEvent.Raw[];
9
+ }
10
+ }
@@ -2,9 +2,11 @@ import type * as Schematic from "../../api/index";
2
2
  import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
4
  import { CheckFlagResponseData } from "./CheckFlagResponseData";
5
+ import { DatastreamCompanyPlan } from "./DatastreamCompanyPlan";
5
6
  export declare const CheckFlagsResponseData: core.serialization.ObjectSchema<serializers.CheckFlagsResponseData.Raw, Schematic.CheckFlagsResponseData>;
6
7
  export declare namespace CheckFlagsResponseData {
7
8
  interface Raw {
8
9
  flags: CheckFlagResponseData.Raw[];
10
+ plan?: DatastreamCompanyPlan.Raw | null;
9
11
  }
10
12
  }
@@ -0,0 +1,13 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ import { EventType } from "./EventType";
5
+ export declare const DataEventPayload: core.serialization.ObjectSchema<serializers.DataEventPayload.Raw, Schematic.DataEventPayload>;
6
+ export declare namespace DataEventPayload {
7
+ interface Raw {
8
+ api_key: string;
9
+ body?: Record<string, unknown> | null;
10
+ sent_at?: string | null;
11
+ type: EventType.Raw;
12
+ }
13
+ }
@@ -0,0 +1,11 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ export declare const DatastreamCompanyPlan: core.serialization.ObjectSchema<serializers.DatastreamCompanyPlan.Raw, Schematic.DatastreamCompanyPlan>;
5
+ export declare namespace DatastreamCompanyPlan {
6
+ interface Raw {
7
+ id: string;
8
+ name: string;
9
+ trial_end_date?: string | null;
10
+ }
11
+ }
@@ -9,6 +9,7 @@ import { PlanChangeAction } from "./PlanChangeAction";
9
9
  import { PlanChangeBasePlanAction } from "./PlanChangeBasePlanAction";
10
10
  import { PlanChangeSubscriptionAction } from "./PlanChangeSubscriptionAction";
11
11
  import { PlanSnapshotView } from "./PlanSnapshotView";
12
+ import { PlanVersionSnapshotView } from "./PlanVersionSnapshotView";
12
13
  import { SubscriptionTraitUpdate } from "./SubscriptionTraitUpdate";
13
14
  export declare const PlanChangeResponseData: core.serialization.ObjectSchema<serializers.PlanChangeResponseData.Raw, Schematic.PlanChangeResponseData>;
14
15
  export declare namespace PlanChangeResponseData {
@@ -21,12 +22,14 @@ export declare namespace PlanChangeResponseData {
21
22
  audit_log?: AuditLogListResponseData.Raw | null;
22
23
  base_plan?: PlanSnapshotView.Raw | null;
23
24
  base_plan_action?: PlanChangeBasePlanAction.Raw | null;
25
+ base_plan_version?: PlanVersionSnapshotView.Raw | null;
24
26
  company?: CompanyResponseData.Raw | null;
25
27
  company_id: string;
26
28
  created_at: string;
27
29
  environment_id: string;
28
30
  id: string;
29
31
  previous_base_plan?: PlanSnapshotView.Raw | null;
32
+ previous_base_plan_version?: PlanVersionSnapshotView.Raw | null;
30
33
  request_id?: string | null;
31
34
  subscription_change_action?: PlanChangeSubscriptionAction.Raw | null;
32
35
  traits_updated: SubscriptionTraitUpdate.Raw[];
@@ -0,0 +1,11 @@
1
+ import type * as Schematic from "../../api/index";
2
+ import * as core from "../../core";
3
+ import type * as serializers from "../index";
4
+ export declare const PlanVersionSnapshotView: core.serialization.ObjectSchema<serializers.PlanVersionSnapshotView.Raw, Schematic.PlanVersionSnapshotView>;
5
+ export declare namespace PlanVersionSnapshotView {
6
+ interface Raw {
7
+ id: string;
8
+ name: string;
9
+ version: number;
10
+ }
11
+ }
@@ -1,13 +1,14 @@
1
1
  import type * as Schematic from "../../api/index";
2
2
  import * as core from "../../core";
3
3
  import type * as serializers from "../index";
4
+ import { ActorType } from "./ActorType";
4
5
  import { EnvironmentResponseData } from "./EnvironmentResponseData";
5
6
  export declare const WhoAmIResponseData: core.serialization.ObjectSchema<serializers.WhoAmIResponseData.Raw, Schematic.WhoAmIResponseData>;
6
7
  export declare namespace WhoAmIResponseData {
7
8
  interface Raw {
8
9
  account_id: string;
9
10
  account_name: string;
10
- actor_type: string;
11
+ actor_type: ActorType.Raw;
11
12
  api_key_id?: string | null;
12
13
  environment_id?: string | null;
13
14
  environments: EnvironmentResponseData.Raw[];
@@ -47,6 +47,8 @@ export * from "./BillingSubscriptionResponseData";
47
47
  export * from "./BillingSubscriptionTrialEndSetting";
48
48
  export * from "./BillingSubscriptionView";
49
49
  export * from "./BillingTiersMode";
50
+ export * from "./CaptureRawEvent";
51
+ export * from "./CaptureRawEventBatch";
50
52
  export * from "./ChangeSubscriptionInternalRequestBody";
51
53
  export * from "./ChangeSubscriptionRequestBody";
52
54
  export * from "./ChargeType";
@@ -134,10 +136,12 @@ export * from "./CreditUsage";
134
136
  export * from "./CreditUsageAggregation";
135
137
  export * from "./CustomPlanConfig";
136
138
  export * from "./CustomPlanViewConfigResponseData";
139
+ export * from "./DataEventPayload";
137
140
  export * from "./DataExportOutputFileType";
138
141
  export * from "./DataExportResponseData";
139
142
  export * from "./DataExportStatus";
140
143
  export * from "./DataExportType";
144
+ export * from "./DatastreamCompanyPlan";
141
145
  export * from "./DeleteBillingPlanCreditGrantRequestBody";
142
146
  export * from "./DeleteResponse";
143
147
  export * from "./DuplicatePlanEntitlementsResponseResponseData";
@@ -230,6 +234,7 @@ export * from "./PlanVersionMigrationResponseData";
230
234
  export * from "./PlanVersionMigrationStatus";
231
235
  export * from "./PlanVersionMigrationStrategy";
232
236
  export * from "./PlanVersionResponseData";
237
+ export * from "./PlanVersionSnapshotView";
233
238
  export * from "./PlanVersionStatus";
234
239
  export * from "./PlanViewPublicResponseData";
235
240
  export * from "./PreviewObject";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schematichq/schematic-typescript-node",
3
- "version": "1.4.2",
3
+ "version": "1.4.4",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -25,29 +25,29 @@
25
25
  "test:cloudflare": "node scripts/test-cloudflare.mjs"
26
26
  },
27
27
  "dependencies": {
28
- "@types/ws": "^8.18.1",
29
28
  "form-data": "^4.0.4",
30
29
  "formdata-node": "^6.0.3",
31
30
  "node-fetch": "^2.7.0",
32
31
  "readable-stream": "^4.5.2",
33
- "ws": "^8.18.1"
32
+ "ws": "^8.18.1",
33
+ "@types/ws": "^8.18.1"
34
34
  },
35
35
  "devDependencies": {
36
- "@biomejs/biome": "2.3.1",
37
- "@jest/globals": "^29.7.0",
38
- "@types/jest": "^29.5.14",
39
- "@types/node": "^18.19.70",
40
36
  "@types/node-fetch": "^2.6.12",
41
37
  "@types/readable-stream": "^4.0.18",
42
- "esbuild": "^0.25.9",
38
+ "webpack": "^5.97.1",
39
+ "ts-loader": "^9.5.1",
43
40
  "jest": "^29.7.0",
41
+ "@jest/globals": "^29.7.0",
42
+ "@types/jest": "^29.5.14",
43
+ "ts-jest": "^29.3.4",
44
44
  "jest-environment-jsdom": "^29.7.0",
45
- "miniflare": "^4.20260305.0",
46
45
  "msw": "2.11.2",
47
- "ts-jest": "^29.3.4",
48
- "ts-loader": "^9.5.1",
46
+ "@types/node": "^18.19.70",
49
47
  "typescript": "~5.7.2",
50
- "webpack": "^5.97.1"
48
+ "@biomejs/biome": "2.3.1",
49
+ "esbuild": "^0.25.9",
50
+ "miniflare": "^4.20260305.0"
51
51
  },
52
52
  "browser": {
53
53
  "fs": false,