@railtownai/railengine-ingest 0.0.5 → 0.0.6
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/README.md +1 -1
- package/dist/cjs/index.js +3 -3
- package/dist/esm/index.js +3 -3
- package/dist/types/client.d.ts +3 -3
- package/dist/types/models.d.ts +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @railtownai/railengine-ingest
|
|
2
2
|
|
|
3
|
-
JavaScript/TypeScript SDK for [Railtown AI
|
|
3
|
+
JavaScript/TypeScript SDK for [Railtown AI Railengine](https://railengine.ai/) - Ingestion package. This package provides a simple interface for publishing data to Railengine and handling webhook events.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
package/dist/cjs/index.js
CHANGED
|
@@ -331,11 +331,11 @@ class WebhookHandler {
|
|
|
331
331
|
}
|
|
332
332
|
|
|
333
333
|
/**
|
|
334
|
-
* Client for ingesting data to
|
|
334
|
+
* Client for ingesting data to Railengine.
|
|
335
335
|
*/
|
|
336
336
|
class RailEngineIngest {
|
|
337
337
|
/**
|
|
338
|
-
* Initialize the
|
|
338
|
+
* Initialize the Railengine ingestion client.
|
|
339
339
|
*
|
|
340
340
|
* @param options - Configuration options
|
|
341
341
|
* @throws {RailtownBadRequestError} If ENGINE_TOKEN is missing or invalid
|
|
@@ -356,7 +356,7 @@ class RailEngineIngest {
|
|
|
356
356
|
this.timeout = options.timeout ?? 30000;
|
|
357
357
|
}
|
|
358
358
|
/**
|
|
359
|
-
* Send data to
|
|
359
|
+
* Send data to Railengine ingestion endpoint.
|
|
360
360
|
*
|
|
361
361
|
* @param data - Data to ingest. Can be an object, JSON string, or Zod-validated object (if schema provided).
|
|
362
362
|
* @param charset - Character encoding for the request. Defaults to "utf-8".
|
package/dist/esm/index.js
CHANGED
|
@@ -329,11 +329,11 @@ class WebhookHandler {
|
|
|
329
329
|
}
|
|
330
330
|
|
|
331
331
|
/**
|
|
332
|
-
* Client for ingesting data to
|
|
332
|
+
* Client for ingesting data to Railengine.
|
|
333
333
|
*/
|
|
334
334
|
class RailEngineIngest {
|
|
335
335
|
/**
|
|
336
|
-
* Initialize the
|
|
336
|
+
* Initialize the Railengine ingestion client.
|
|
337
337
|
*
|
|
338
338
|
* @param options - Configuration options
|
|
339
339
|
* @throws {RailtownBadRequestError} If ENGINE_TOKEN is missing or invalid
|
|
@@ -354,7 +354,7 @@ class RailEngineIngest {
|
|
|
354
354
|
this.timeout = options.timeout ?? 30000;
|
|
355
355
|
}
|
|
356
356
|
/**
|
|
357
|
-
* Send data to
|
|
357
|
+
* Send data to Railengine ingestion endpoint.
|
|
358
358
|
*
|
|
359
359
|
* @param data - Data to ingest. Can be an object, JSON string, or Zod-validated object (if schema provided).
|
|
360
360
|
* @param charset - Character encoding for the request. Defaults to "utf-8".
|
package/dist/types/client.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export interface RailEngineIngestOptions<T = unknown> {
|
|
|
12
12
|
timeout?: number;
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
|
-
* Client for ingesting data to
|
|
15
|
+
* Client for ingesting data to Railengine.
|
|
16
16
|
*/
|
|
17
17
|
export declare class RailEngineIngest<T = unknown> {
|
|
18
18
|
/** Logic App ingestion URL from decoded ENGINE_TOKEN */
|
|
@@ -26,14 +26,14 @@ export declare class RailEngineIngest<T = unknown> {
|
|
|
26
26
|
/** Request timeout in milliseconds */
|
|
27
27
|
private readonly timeout;
|
|
28
28
|
/**
|
|
29
|
-
* Initialize the
|
|
29
|
+
* Initialize the Railengine ingestion client.
|
|
30
30
|
*
|
|
31
31
|
* @param options - Configuration options
|
|
32
32
|
* @throws {RailtownBadRequestError} If ENGINE_TOKEN is missing or invalid
|
|
33
33
|
*/
|
|
34
34
|
constructor(options?: RailEngineIngestOptions<T>);
|
|
35
35
|
/**
|
|
36
|
-
* Send data to
|
|
36
|
+
* Send data to Railengine ingestion endpoint.
|
|
37
37
|
*
|
|
38
38
|
* @param data - Data to ingest. Can be an object, JSON string, or Zod-validated object (if schema provided).
|
|
39
39
|
* @param charset - Character encoding for the request. Defaults to "utf-8".
|
package/dist/types/models.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
"name": "@railtownai/railengine-ingest",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"author": "Railtown AI",
|
|
5
|
-
"version": "0.0.
|
|
6
|
-
"description": "JavaScript/TypeScript SDK for Railtown AI
|
|
5
|
+
"version": "0.0.6",
|
|
6
|
+
"description": "JavaScript/TypeScript SDK for Railtown AI Railengine - Ingestion",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "./dist/cjs/index.js",
|
|
9
9
|
"types": "./dist/types/index.d.ts",
|