@tari-project/ootle-ts-bindings 1.52.0 → 1.53.0

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.
package/dist/index.d.ts CHANGED
@@ -9,6 +9,10 @@ export * from "./types/ArgDef";
9
9
  export * from "./types/Assertion";
10
10
  export * from "./types/AtomicCondition";
11
11
  export * from "./types/AuthHook";
12
+ export * from "./types/DiagnosticEvent";
13
+ export * from "./types/DiagnosticEventFilter";
14
+ export * from "./types/DiagnosticEventRecord";
15
+ export * from "./types/DiagnosticLevel";
12
16
  export * from "./types/BlobHashes";
13
17
  export * from "./types/Blobs";
14
18
  export * from "./types/Blob";
package/dist/index.js CHANGED
@@ -11,6 +11,10 @@ export * from "./types/ArgDef";
11
11
  export * from "./types/Assertion";
12
12
  export * from "./types/AtomicCondition";
13
13
  export * from "./types/AuthHook";
14
+ export * from "./types/DiagnosticEvent";
15
+ export * from "./types/DiagnosticEventFilter";
16
+ export * from "./types/DiagnosticEventRecord";
17
+ export * from "./types/DiagnosticLevel";
14
18
  export * from "./types/BlobHashes";
15
19
  export * from "./types/Blobs";
16
20
  export * from "./types/Blob";
@@ -0,0 +1,10 @@
1
+ import type { DiagnosticLevel } from "./DiagnosticLevel";
2
+ export type DiagnosticEvent = {
3
+ timestamp: number;
4
+ level: DiagnosticLevel;
5
+ topic: string;
6
+ message: string;
7
+ fields: {
8
+ [key in string]?: string;
9
+ };
10
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { DiagnosticLevel } from "./DiagnosticLevel";
2
+ export type DiagnosticEventFilter = {
3
+ min_level: DiagnosticLevel | null;
4
+ topic_prefix: string | null;
5
+ since: number | null;
6
+ until: number | null;
7
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ import type { DiagnosticLevel } from "./DiagnosticLevel";
2
+ export type DiagnosticEventRecord = {
3
+ id: number;
4
+ timestamp: number;
5
+ level: DiagnosticLevel;
6
+ topic: string;
7
+ message: string;
8
+ fields: {
9
+ [key in string]?: string;
10
+ };
11
+ };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export type DiagnosticLevel = "info" | "warn" | "error";
@@ -0,0 +1,2 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { DiagnosticLevel } from "../DiagnosticLevel";
2
+ export type ClearDiagnosticEventsRequest = {
3
+ min_level: DiagnosticLevel | null;
4
+ topic_prefix: string | null;
5
+ since: number | null;
6
+ until: number | null;
7
+ };
@@ -0,0 +1,3 @@
1
+ export type ClearDiagnosticEventsResponse = {
2
+ deleted: number;
3
+ };
@@ -0,0 +1,2 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
@@ -0,0 +1,9 @@
1
+ import type { DiagnosticLevel } from "../DiagnosticLevel";
2
+ export type GetDiagnosticEventsRequest = {
3
+ min_level: DiagnosticLevel | null;
4
+ topic_prefix: string | null;
5
+ since: number | null;
6
+ until: number | null;
7
+ before_id: number | null;
8
+ limit: number | null;
9
+ };
@@ -0,0 +1,6 @@
1
+ import type { DiagnosticEventRecord } from "../DiagnosticEventRecord";
2
+ export type GetDiagnosticEventsResponse = {
3
+ events: Array<DiagnosticEventRecord>;
4
+ next_cursor: number | null;
5
+ bounds: [number, number] | null;
6
+ };
@@ -1,3 +1,7 @@
1
+ export * from "./types/validator-node-client/ClearDiagnosticEventsRequest";
2
+ export * from "./types/validator-node-client/ClearDiagnosticEventsResponse";
3
+ export * from "./types/validator-node-client/GetDiagnosticEventsRequest";
4
+ export * from "./types/validator-node-client/GetDiagnosticEventsResponse";
1
5
  export * from "./types/validator-node-client/ValidatorNodeChange";
2
6
  export * from "./types/validator-node-client/VNSubmitTransactionRequest";
3
7
  export * from "./types/validator-node-client/GetFilteredBlocksCountRequest";
@@ -1,5 +1,9 @@
1
1
  // Copyright 2026 The Tari Project
2
2
  // SPDX-License-Identifier: BSD-3-Clause
3
+ export * from "./types/validator-node-client/ClearDiagnosticEventsRequest";
4
+ export * from "./types/validator-node-client/ClearDiagnosticEventsResponse";
5
+ export * from "./types/validator-node-client/GetDiagnosticEventsRequest";
6
+ export * from "./types/validator-node-client/GetDiagnosticEventsResponse";
3
7
  export * from "./types/validator-node-client/ValidatorNodeChange";
4
8
  export * from "./types/validator-node-client/VNSubmitTransactionRequest";
5
9
  export * from "./types/validator-node-client/GetFilteredBlocksCountRequest";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tari-project/ootle-ts-bindings",
3
- "version": "1.52.0",
3
+ "version": "1.53.0",
4
4
  "private": false,
5
5
  "publishConfig": {
6
6
  "access": "public"