aparavi-client 1.0.2

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.
Files changed (169) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +523 -0
  3. package/dist/aparavi-client-typescript-1.0.0.tgz +0 -0
  4. package/dist/aparavi-client-typescript-1.0.1.tgz +0 -0
  5. package/dist/cjs/client.js +1002 -0
  6. package/dist/cjs/client.js.map +1 -0
  7. package/dist/cjs/constants.js +37 -0
  8. package/dist/cjs/constants.js.map +1 -0
  9. package/dist/cjs/core/DAPBase.js +313 -0
  10. package/dist/cjs/core/DAPBase.js.map +1 -0
  11. package/dist/cjs/core/DAPClient.js +173 -0
  12. package/dist/cjs/core/DAPClient.js.map +1 -0
  13. package/dist/cjs/core/TransportBase.js +131 -0
  14. package/dist/cjs/core/TransportBase.js.map +1 -0
  15. package/dist/cjs/core/TransportWebSocket.js +492 -0
  16. package/dist/cjs/core/TransportWebSocket.js.map +1 -0
  17. package/dist/cjs/exceptions/index.js +109 -0
  18. package/dist/cjs/exceptions/index.js.map +1 -0
  19. package/dist/cjs/index.js +56 -0
  20. package/dist/cjs/index.js.map +1 -0
  21. package/dist/cjs/package.json +3 -0
  22. package/dist/cjs/schema/Doc.js +79 -0
  23. package/dist/cjs/schema/Doc.js.map +1 -0
  24. package/dist/cjs/schema/DocFilter.js +133 -0
  25. package/dist/cjs/schema/DocFilter.js.map +1 -0
  26. package/dist/cjs/schema/DocGroup.js +235 -0
  27. package/dist/cjs/schema/DocGroup.js.map +1 -0
  28. package/dist/cjs/schema/DocMetadata.js +57 -0
  29. package/dist/cjs/schema/DocMetadata.js.map +1 -0
  30. package/dist/cjs/schema/Question.js +414 -0
  31. package/dist/cjs/schema/Question.js.map +1 -0
  32. package/dist/cjs/schema/index.js +50 -0
  33. package/dist/cjs/schema/index.js.map +1 -0
  34. package/dist/cjs/types/client.js +26 -0
  35. package/dist/cjs/types/client.js.map +1 -0
  36. package/dist/cjs/types/data.js +26 -0
  37. package/dist/cjs/types/data.js.map +1 -0
  38. package/dist/cjs/types/events.js +119 -0
  39. package/dist/cjs/types/events.js.map +1 -0
  40. package/dist/cjs/types/index.js +50 -0
  41. package/dist/cjs/types/index.js.map +1 -0
  42. package/dist/cjs/types/pipeline.js +26 -0
  43. package/dist/cjs/types/pipeline.js.map +1 -0
  44. package/dist/cjs/types/task.js +115 -0
  45. package/dist/cjs/types/task.js.map +1 -0
  46. package/dist/cli/cli/aparavi.js +1401 -0
  47. package/dist/cli/cli/aparavi.js.map +1 -0
  48. package/dist/cli/src/client.js +1002 -0
  49. package/dist/cli/src/client.js.map +1 -0
  50. package/dist/cli/src/constants.js +37 -0
  51. package/dist/cli/src/constants.js.map +1 -0
  52. package/dist/cli/src/core/DAPBase.js +313 -0
  53. package/dist/cli/src/core/DAPBase.js.map +1 -0
  54. package/dist/cli/src/core/DAPClient.js +173 -0
  55. package/dist/cli/src/core/DAPClient.js.map +1 -0
  56. package/dist/cli/src/core/TransportBase.js +131 -0
  57. package/dist/cli/src/core/TransportBase.js.map +1 -0
  58. package/dist/cli/src/core/TransportWebSocket.js +492 -0
  59. package/dist/cli/src/core/TransportWebSocket.js.map +1 -0
  60. package/dist/cli/src/exceptions/index.js +109 -0
  61. package/dist/cli/src/exceptions/index.js.map +1 -0
  62. package/dist/cli/src/index.js +56 -0
  63. package/dist/cli/src/index.js.map +1 -0
  64. package/dist/cli/src/schema/Doc.js +79 -0
  65. package/dist/cli/src/schema/Doc.js.map +1 -0
  66. package/dist/cli/src/schema/DocFilter.js +133 -0
  67. package/dist/cli/src/schema/DocFilter.js.map +1 -0
  68. package/dist/cli/src/schema/DocGroup.js +235 -0
  69. package/dist/cli/src/schema/DocGroup.js.map +1 -0
  70. package/dist/cli/src/schema/DocMetadata.js +57 -0
  71. package/dist/cli/src/schema/DocMetadata.js.map +1 -0
  72. package/dist/cli/src/schema/Question.js +414 -0
  73. package/dist/cli/src/schema/Question.js.map +1 -0
  74. package/dist/cli/src/schema/index.js +50 -0
  75. package/dist/cli/src/schema/index.js.map +1 -0
  76. package/dist/cli/src/types/client.js +26 -0
  77. package/dist/cli/src/types/client.js.map +1 -0
  78. package/dist/cli/src/types/data.js +26 -0
  79. package/dist/cli/src/types/data.js.map +1 -0
  80. package/dist/cli/src/types/events.js +119 -0
  81. package/dist/cli/src/types/events.js.map +1 -0
  82. package/dist/cli/src/types/index.js +50 -0
  83. package/dist/cli/src/types/index.js.map +1 -0
  84. package/dist/cli/src/types/pipeline.js +26 -0
  85. package/dist/cli/src/types/pipeline.js.map +1 -0
  86. package/dist/cli/src/types/task.js +115 -0
  87. package/dist/cli/src/types/task.js.map +1 -0
  88. package/dist/esm/client.js +997 -0
  89. package/dist/esm/client.js.map +1 -0
  90. package/dist/esm/constants.js +34 -0
  91. package/dist/esm/constants.js.map +1 -0
  92. package/dist/esm/core/DAPBase.js +309 -0
  93. package/dist/esm/core/DAPBase.js.map +1 -0
  94. package/dist/esm/core/DAPClient.js +169 -0
  95. package/dist/esm/core/DAPClient.js.map +1 -0
  96. package/dist/esm/core/TransportBase.js +127 -0
  97. package/dist/esm/core/TransportBase.js.map +1 -0
  98. package/dist/esm/core/TransportWebSocket.js +488 -0
  99. package/dist/esm/core/TransportWebSocket.js.map +1 -0
  100. package/dist/esm/exceptions/index.js +100 -0
  101. package/dist/esm/exceptions/index.js.map +1 -0
  102. package/dist/esm/index.js +40 -0
  103. package/dist/esm/index.js.map +1 -0
  104. package/dist/esm/package.json +3 -0
  105. package/dist/esm/schema/Doc.js +75 -0
  106. package/dist/esm/schema/Doc.js.map +1 -0
  107. package/dist/esm/schema/DocFilter.js +129 -0
  108. package/dist/esm/schema/DocFilter.js.map +1 -0
  109. package/dist/esm/schema/DocGroup.js +231 -0
  110. package/dist/esm/schema/DocGroup.js.map +1 -0
  111. package/dist/esm/schema/DocMetadata.js +53 -0
  112. package/dist/esm/schema/DocMetadata.js.map +1 -0
  113. package/dist/esm/schema/Question.js +409 -0
  114. package/dist/esm/schema/Question.js.map +1 -0
  115. package/dist/esm/schema/index.js +34 -0
  116. package/dist/esm/schema/index.js.map +1 -0
  117. package/dist/esm/types/client.js +25 -0
  118. package/dist/esm/types/client.js.map +1 -0
  119. package/dist/esm/types/data.js +25 -0
  120. package/dist/esm/types/data.js.map +1 -0
  121. package/dist/esm/types/events.js +116 -0
  122. package/dist/esm/types/events.js.map +1 -0
  123. package/dist/esm/types/index.js +34 -0
  124. package/dist/esm/types/index.js.map +1 -0
  125. package/dist/esm/types/pipeline.js +25 -0
  126. package/dist/esm/types/pipeline.js.map +1 -0
  127. package/dist/esm/types/task.js +112 -0
  128. package/dist/esm/types/task.js.map +1 -0
  129. package/dist/types/client.d.ts +395 -0
  130. package/dist/types/client.d.ts.map +1 -0
  131. package/dist/types/constants.d.ts +34 -0
  132. package/dist/types/constants.d.ts.map +1 -0
  133. package/dist/types/core/DAPBase.d.ts +140 -0
  134. package/dist/types/core/DAPBase.d.ts.map +1 -0
  135. package/dist/types/core/DAPClient.d.ts +83 -0
  136. package/dist/types/core/DAPClient.d.ts.map +1 -0
  137. package/dist/types/core/TransportBase.d.ts +94 -0
  138. package/dist/types/core/TransportBase.d.ts.map +1 -0
  139. package/dist/types/core/TransportWebSocket.d.ts +78 -0
  140. package/dist/types/core/TransportWebSocket.d.ts.map +1 -0
  141. package/dist/types/exceptions/index.d.ts +81 -0
  142. package/dist/types/exceptions/index.d.ts.map +1 -0
  143. package/dist/types/index.d.ts +36 -0
  144. package/dist/types/index.d.ts.map +1 -0
  145. package/dist/types/schema/Doc.d.ts +69 -0
  146. package/dist/types/schema/Doc.d.ts.map +1 -0
  147. package/dist/types/schema/DocFilter.d.ts +101 -0
  148. package/dist/types/schema/DocFilter.d.ts.map +1 -0
  149. package/dist/types/schema/DocGroup.d.ts +113 -0
  150. package/dist/types/schema/DocGroup.d.ts.map +1 -0
  151. package/dist/types/schema/DocMetadata.d.ts +61 -0
  152. package/dist/types/schema/DocMetadata.d.ts.map +1 -0
  153. package/dist/types/schema/Question.d.ts +163 -0
  154. package/dist/types/schema/Question.d.ts.map +1 -0
  155. package/dist/types/schema/index.d.ts +34 -0
  156. package/dist/types/schema/index.d.ts.map +1 -0
  157. package/dist/types/types/client.d.ts +140 -0
  158. package/dist/types/types/client.d.ts.map +1 -0
  159. package/dist/types/types/data.d.ts +95 -0
  160. package/dist/types/types/data.d.ts.map +1 -0
  161. package/dist/types/types/events.d.ts +246 -0
  162. package/dist/types/types/events.d.ts.map +1 -0
  163. package/dist/types/types/index.d.ts +34 -0
  164. package/dist/types/types/index.d.ts.map +1 -0
  165. package/dist/types/types/pipeline.d.ts +61 -0
  166. package/dist/types/types/pipeline.d.ts.map +1 -0
  167. package/dist/types/types/task.d.ts +265 -0
  168. package/dist/types/types/task.d.ts.map +1 -0
  169. package/package.json +75 -0
@@ -0,0 +1,34 @@
1
+ /**
2
+ * MIT License
3
+ *
4
+ * Copyright (c) 2024 Aparavi Development Team
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in all
14
+ * copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ * SOFTWARE.
23
+ */
24
+ /**
25
+ * Type definitions for the Aparavi TypeScript SDK.
26
+ *
27
+ * Re-exports all type definitions from individual modules for convenient imports.
28
+ */
29
+ export * from './client';
30
+ export * from './data';
31
+ export * from './events';
32
+ export * from './pipeline';
33
+ export * from './task';
34
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../aparavi-client/src/types/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH;;;;GAIG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC"}
@@ -0,0 +1,25 @@
1
+ /**
2
+ * MIT License
3
+ *
4
+ * Copyright (c) 2024 Aparavi Development Team
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in all
14
+ * copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ * SOFTWARE.
23
+ */
24
+ export {};
25
+ //# sourceMappingURL=pipeline.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pipeline.js","sourceRoot":"","sources":["../../../aparavi-client/src/types/pipeline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG"}
@@ -0,0 +1,112 @@
1
+ /**
2
+ * MIT License
3
+ *
4
+ * Copyright (c) 2024 Aparavi Development Team
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in all
14
+ * copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ * SOFTWARE.
23
+ */
24
+ /**
25
+ * Task Management Types: Comprehensive Status Tracking and Event Management System.
26
+ *
27
+ * This module defines the complete type system for sophisticated task lifecycle management,
28
+ * real-time status monitoring, and event-driven communication in distributed computational
29
+ * pipeline systems. It provides structured data models for tracking complex task execution
30
+ * states, processing statistics, error management, and pipeline flow visualization.
31
+ */
32
+ /**
33
+ * Task lifecycle state enumeration for comprehensive state management.
34
+ *
35
+ * This enumeration defines all possible states in the task execution lifecycle,
36
+ * providing clear state transitions and enabling proper resource management,
37
+ * error handling, and client notification. Each state represents a distinct
38
+ * phase with specific characteristics and available operations.
39
+ *
40
+ * Lifecycle Phases:
41
+ * ----------------
42
+ * NONE: Initial state before any resources are allocated or configuration
43
+ * is processed. Tasks in this state can be safely discarded without
44
+ * cleanup operations.
45
+ *
46
+ * STARTING: Resource allocation and initial setup phase. Ports are allocated,
47
+ * temporary files created, and subprocess preparation occurs.
48
+ *
49
+ * INITIALIZING: Subprocess has been created and is performing pipeline
50
+ * initialization. Service interfaces are being established.
51
+ *
52
+ * RUNNING: Task is operational and processing requests. All interfaces
53
+ * are available and the pipeline is actively executing.
54
+ *
55
+ * STOPPING: Graceful shutdown initiated. Subprocess is being terminated
56
+ * and resources are being cleaned up.
57
+ *
58
+ * COMPLETED: Task finished successfully. All resources cleaned up and
59
+ * final status available for client queries.
60
+ *
61
+ * CANCELLED: Task was terminated before completion. Resources cleaned up
62
+ * and termination reason available in status.
63
+ *
64
+ * State Transitions:
65
+ * -----------------
66
+ * Normal execution flow:
67
+ * NONE → STARTING → INITIALIZING → RUNNING → STOPPING → COMPLETED
68
+ *
69
+ * Cancellation flow:
70
+ * Any state → STOPPING → CANCELLED
71
+ *
72
+ * Error handling:
73
+ * Any state → STOPPING → COMPLETED (with error exit code)
74
+ *
75
+ * Resource Management:
76
+ * -------------------
77
+ * - NONE/COMPLETED/CANCELLED: No active resources requiring cleanup
78
+ * - STARTING/INITIALIZING/RUNNING: Active resources requiring cleanup
79
+ * - STOPPING: Cleanup in progress, resources being deallocated
80
+ *
81
+ * Client Operations:
82
+ * -----------------
83
+ * - NONE: Configuration and launch operations available
84
+ * - STARTING/INITIALIZING: Status monitoring available
85
+ * - RUNNING: Full debugging and data processing operations available
86
+ * - STOPPING: Limited status monitoring, operations being rejected
87
+ * - COMPLETED/CANCELLED: Status queries only, task cleanup may be initiated
88
+ *
89
+ * Wait Operations:
90
+ * ---------------
91
+ * Clients can wait for specific state transitions using wait_for_running()
92
+ * and similar methods. State transitions trigger event notifications to
93
+ * all subscribed monitoring clients.
94
+ */
95
+ export var TASK_STATE;
96
+ (function (TASK_STATE) {
97
+ /** Initial state - no resources allocated */
98
+ TASK_STATE[TASK_STATE["NONE"] = 0] = "NONE";
99
+ /** Resource allocation and subprocess preparation */
100
+ TASK_STATE[TASK_STATE["STARTING"] = 1] = "STARTING";
101
+ /** Subprocess initialization and service startup */
102
+ TASK_STATE[TASK_STATE["INITIALIZING"] = 2] = "INITIALIZING";
103
+ /** Operational state - processing requests */
104
+ TASK_STATE[TASK_STATE["RUNNING"] = 3] = "RUNNING";
105
+ /** Graceful shutdown and resource cleanup in progress */
106
+ TASK_STATE[TASK_STATE["STOPPING"] = 4] = "STOPPING";
107
+ /** Successful completion - resources cleaned up */
108
+ TASK_STATE[TASK_STATE["COMPLETED"] = 5] = "COMPLETED";
109
+ /** Terminated before completion - resources cleaned up */
110
+ TASK_STATE[TASK_STATE["CANCELLED"] = 6] = "CANCELLED";
111
+ })(TASK_STATE || (TASK_STATE = {}));
112
+ //# sourceMappingURL=task.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"task.js","sourceRoot":"","sources":["../../../aparavi-client/src/types/task.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH;;;;;;;GAOG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AACH,MAAM,CAAN,IAAY,UAqBX;AArBD,WAAY,UAAU;IACrB,6CAA6C;IAC7C,2CAAQ,CAAA;IAER,qDAAqD;IACrD,mDAAY,CAAA;IAEZ,oDAAoD;IACpD,2DAAgB,CAAA;IAEhB,8CAA8C;IAC9C,iDAAW,CAAA;IAEX,yDAAyD;IACzD,mDAAY,CAAA;IAEZ,mDAAmD;IACnD,qDAAa,CAAA;IAEb,0DAA0D;IAC1D,qDAAa,CAAA;AACd,CAAC,EArBW,UAAU,KAAV,UAAU,QAqBrB"}
@@ -0,0 +1,395 @@
1
+ /**
2
+ * MIT License
3
+ *
4
+ * Copyright (c) 2024 Aparavi Development Team
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in all
14
+ * copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ * SOFTWARE.
23
+ */
24
+ import { DAPClient } from './core/DAPClient';
25
+ import { DAPMessage, AparaviClientConfig } from './types';
26
+ import { TASK_STATUS, UPLOAD_RESULT, PIPELINE_RESULT, PipelineConfig } from './types';
27
+ import { Question } from './schema/Question';
28
+ /**
29
+ * Streaming data pipe for sending large datasets to Aparavi pipelines.
30
+ *
31
+ * DataPipe provides a stream-like interface for uploading data to an Aparavi
32
+ * pipeline. It handles the low-level protocol details of opening, writing to,
33
+ * and closing data pipes on the server.
34
+ *
35
+ * Usage pattern:
36
+ * 1. Create pipe using client.pipe()
37
+ * 2. Call open() to establish the pipe
38
+ * 3. Call write() multiple times with data chunks
39
+ * 4. Call close() to finalize and get results
40
+ *
41
+ * @example
42
+ * ```typescript
43
+ * const pipe = await client.pipe(token, { filename: 'data.json' }, 'application/json');
44
+ * await pipe.open();
45
+ * await pipe.write(new TextEncoder().encode('{"data": "value"}'));
46
+ * const result = await pipe.close();
47
+ * ```
48
+ */
49
+ export declare class DataPipe {
50
+ private _client;
51
+ private _token;
52
+ private _objinfo;
53
+ private _mimeType;
54
+ private _provider?;
55
+ private _pipeId?;
56
+ private _opened;
57
+ private _closed;
58
+ /**
59
+ * Creates a new DataPipe instance.
60
+ *
61
+ * @param client - The AparaviClient instance managing this pipe
62
+ * @param token - Task token for the pipeline receiving the data
63
+ * @param objinfo - Metadata about the object being sent (e.g., filename, size)
64
+ * @param mimeType - MIME type of the data being sent (default: 'application/octet-stream')
65
+ * @param provider - Optional provider name for the data source
66
+ */
67
+ constructor(client: AparaviClient, token: string, objinfo?: Record<string, any>, mimeType?: string, provider?: string);
68
+ /**
69
+ * Check if the pipe is currently open for writing.
70
+ *
71
+ * @returns true if the pipe has been opened and not yet closed
72
+ */
73
+ get isOpened(): boolean;
74
+ /**
75
+ * Get the unique ID assigned to this pipe by the server.
76
+ *
77
+ * This ID is assigned when the pipe is opened and is used for subsequent
78
+ * write operations. It remains undefined until open() is called successfully.
79
+ *
80
+ * @returns The server-assigned pipe ID, or undefined if not yet opened
81
+ */
82
+ get pipeId(): number | undefined;
83
+ /**
84
+ * Open the pipe for data transmission.
85
+ *
86
+ * Establishes a data pipe on the server for streaming data to the pipeline.
87
+ * Must be called before any write() operations. The server will assign a
88
+ * unique pipe ID that is used for subsequent operations.
89
+ *
90
+ * @returns This DataPipe instance (for method chaining)
91
+ * @throws Error if the pipe is already opened or if the pipeline is not running
92
+ */
93
+ open(): Promise<DataPipe>;
94
+ /**
95
+ * Write data to the pipe.
96
+ *
97
+ * Sends a chunk of data through the pipe to the server pipeline. Can be called
98
+ * multiple times to stream large datasets. The pipe must be opened first.
99
+ *
100
+ * @param buffer - Data to write, must be a Uint8Array
101
+ * @throws Error if the pipe is not opened, buffer is invalid, or write fails
102
+ */
103
+ write(buffer: Uint8Array): Promise<void>;
104
+ /**
105
+ * Close the pipe and get the processing results.
106
+ *
107
+ * Finalizes the data stream and signals the server that no more data will be sent.
108
+ * The server processes any buffered data and returns the final result. After closing,
109
+ * the pipe cannot be reopened or written to again.
110
+ *
111
+ * @returns The processing result from the server, or undefined if already closed
112
+ * @throws Error if closing the pipe fails
113
+ */
114
+ close(): Promise<PIPELINE_RESULT | undefined>;
115
+ }
116
+ /**
117
+ * Main Aparavi client for connecting to Aparavi servers and services.
118
+ *
119
+ * This client provides a comprehensive API for interacting with Aparavi services,
120
+ * including connection management, pipeline execution, data operations, AI chat,
121
+ * event handling, and server connectivity testing.
122
+ *
123
+ * Key features:
124
+ * - Single shared WebSocket connection for all operations
125
+ * - Connection management (connect/disconnect) with optional persistence
126
+ * - Automatic reconnection when persist mode is enabled
127
+ * - Pipeline execution (use, terminate, getTaskStatus)
128
+ * - Data operations (send, sendFiles, pipe)
129
+ * - AI chat functionality (chat)
130
+ * - Event handling (setEvents, event callbacks)
131
+ * - Server connectivity testing (ping)
132
+ * - Full TypeScript type safety
133
+ */
134
+ export declare class AparaviClient extends DAPClient {
135
+ private _uri;
136
+ private _apikey?;
137
+ private _env;
138
+ private _callerOnEvent?;
139
+ private _callerOnConnected?;
140
+ private _callerOnDisconnected?;
141
+ private _dapAttempted;
142
+ private _dapSend?;
143
+ private _nextChatId;
144
+ private _persist;
145
+ private _reconnectTimeout?;
146
+ private _reconnectDelay;
147
+ private _manualDisconnect;
148
+ /**
149
+ * Creates a new AparaviClient instance.
150
+ *
151
+ * Configuration priority (highest to lowest):
152
+ * 1. Values passed in config parameter (auth, uri)
153
+ * 2. Values from env parameter (if provided)
154
+ * 3. Values from .env file (Node.js only)
155
+ * 4. Default values
156
+ *
157
+ * @param config - Configuration options for the client
158
+ * @param config.auth - API key for authentication (required)
159
+ * @param config.uri - Server URI (default: CONST_DEFAULT_SERVICE)
160
+ * @param config.env - Environment variables dictionary for configuration and substitution
161
+ * @param config.onEvent - Callback for server events
162
+ * @param config.onConnected - Callback when connection is established
163
+ * @param config.onDisconnected - Callback when connection is lost
164
+ * @param config.persist - Enable automatic reconnection
165
+ * @param config.reconnectDelay - Delay between reconnection attempts in ms
166
+ * @param config.module - Optional module name for client identification
167
+ *
168
+ * @throws Error if auth is not provided via config, env, or .env file
169
+ *
170
+ * @example
171
+ * ```typescript
172
+ * // Using explicit auth and URI
173
+ * const client = new AparaviClient({
174
+ * auth: 'your-api-key',
175
+ * uri: 'wss://your-server.com',
176
+ * persist: true,
177
+ * onEvent: (event) => console.log('Event:', event)
178
+ * });
179
+ *
180
+ * // Using custom env dictionary
181
+ * const client = new AparaviClient({
182
+ * env: {
183
+ * APARAVI_APIKEY: 'your-api-key',
184
+ * APARAVI_URI: 'wss://your-server.com',
185
+ * APARAVI_PROJECT_ID: 'my-project'
186
+ * }
187
+ * });
188
+ * ```
189
+ */
190
+ constructor(config?: AparaviClientConfig);
191
+ /**
192
+ * Convert HTTP/HTTPS URI to WebSocket URI
193
+ */
194
+ private static _convertToWebSocketUri;
195
+ /**
196
+ * Clear any pending reconnection timeout
197
+ */
198
+ private _clearReconnectTimeout;
199
+ /**
200
+ * Schedule a reconnection attempt after the configured delay
201
+ */
202
+ private _scheduleReconnect;
203
+ /**
204
+ * Check if the client is currently connected to the Aparavi server.
205
+ */
206
+ isConnected(): boolean;
207
+ /**
208
+ * Connect to the Aparavi server.
209
+ *
210
+ * Must be called before executing pipelines or other operations.
211
+ * In persist mode, enables automatic reconnection on disconnect.
212
+ */
213
+ connect(): Promise<void>;
214
+ /**
215
+ * Disconnect from the Aparavi server and stop automatic reconnection.
216
+ *
217
+ * Should be called when finished with the client to clean up resources.
218
+ */
219
+ disconnect(): Promise<void>;
220
+ /**
221
+ * Send a request to the Aparavi server.
222
+ */
223
+ request(request: DAPMessage): Promise<DAPMessage>;
224
+ /**
225
+ * Test connectivity to the Aparavi server.
226
+ *
227
+ * Sends a lightweight ping request to the server to verify it's responding
228
+ * and reachable. This is useful for connectivity testing, health checks,
229
+ * and measuring response times.
230
+ */
231
+ ping(token?: string): Promise<void>;
232
+ /**
233
+ * Substitute environment variables in a string.
234
+ * Replaces ${APARAVI_*} patterns with values from client's env dictionary.
235
+ * If variable is not found, leaves it unchanged.
236
+ */
237
+ private substituteEnvVars;
238
+ /**
239
+ * Recursively process an object/array to substitute environment variables.
240
+ * Only processes string values, leaving other types unchanged.
241
+ */
242
+ private processEnvSubstitution;
243
+ /**
244
+ * Start an Aparavi pipeline for processing data.
245
+ *
246
+ * This method loads and executes a pipeline configuration. It automatically performs
247
+ * environment variable substitution on the pipeline config, replacing ${APARAVI_*}
248
+ * placeholders with values from the .env file.
249
+ *
250
+ * @param options - Pipeline execution options
251
+ * @param options.token - Custom token for the pipeline (auto-generated if not provided)
252
+ * @param options.filepath - Path to JSON file containing pipeline configuration
253
+ * @param options.pipeline - Pipeline configuration object (alternative to filepath)
254
+ * @param options.source - Override pipeline source
255
+ * @param options.threads - Number of threads for execution (default: 1)
256
+ * @param options.useExisting - Use existing pipeline instance
257
+ * @param options.args - Command line arguments to pass to pipeline
258
+ *
259
+ * @returns Promise resolving to an object containing the task token and other metadata
260
+ * @throws Error if neither pipeline nor filepath is provided
261
+ *
262
+ * @example
263
+ * ```typescript
264
+ * // Using pipeline file
265
+ * const result = await client.use({ filepath: './pipeline.json' });
266
+ *
267
+ * // Using pipeline object
268
+ * const result = await client.use({
269
+ * pipeline: { components: [...], source: 'local', project_id: '123' }
270
+ * });
271
+ *
272
+ * // With environment variable substitution
273
+ * // Pipeline config: { "endpoint": "${APARAVI_URI}/api" }
274
+ * // Will be replaced with actual APARAVI_URI value from .env
275
+ * ```
276
+ */
277
+ use(options?: {
278
+ token?: string;
279
+ filepath?: string;
280
+ pipeline?: PipelineConfig;
281
+ source?: string;
282
+ threads?: number;
283
+ useExisting?: boolean;
284
+ args?: string[];
285
+ }): Promise<Record<string, any> & {
286
+ token: string;
287
+ }>;
288
+ /**
289
+ * Terminate a running pipeline.
290
+ */
291
+ terminate(token: string): Promise<void>;
292
+ /**
293
+ * Get the current status of a running pipeline.
294
+ */
295
+ getTaskStatus(token: string): Promise<TASK_STATUS>;
296
+ /**
297
+ * Create a data pipe for streaming operations.
298
+ */
299
+ pipe(token: string, objinfo?: Record<string, any>, mimeType?: string, provider?: string): Promise<DataPipe>;
300
+ /**
301
+ * Send data to a running pipeline.
302
+ */
303
+ send(token: string, data: string | Uint8Array, objinfo?: Record<string, any>, mimetype?: string): Promise<PIPELINE_RESULT | undefined>;
304
+ /**
305
+ * Upload multiple files to a pipeline with progress tracking and parallel execution.
306
+ *
307
+ * This method efficiently uploads files in parallel with configurable concurrency control.
308
+ * Each file is streamed through a data pipe, and progress events are emitted through the
309
+ * event system for all subscribers. The order of results matches the input file order.
310
+ *
311
+ * Progress events are sent through the event system as 'apaevt_status_upload' events
312
+ * (matching Python client behavior) rather than through a callback parameter.
313
+ *
314
+ * @param files - Array of file objects with optional metadata and MIME types
315
+ * @param token - Pipeline task token to receive the uploads
316
+ * @param maxConcurrent - Maximum number of concurrent uploads (default: 5)
317
+ *
318
+ * @returns Promise resolving to array of UPLOAD_RESULT objects in the same order as input
319
+ *
320
+ * @example
321
+ * ```typescript
322
+ * // Subscribe to upload events
323
+ * client.on('apaevt_status_upload', (event) => {
324
+ * console.log(`${event.body.filepath}: ${event.body.bytes_sent}/${event.body.file_size}`);
325
+ * });
326
+ *
327
+ * // Upload files
328
+ * const results = await client.sendFiles(
329
+ * [
330
+ * { file: fileObject1 },
331
+ * { file: fileObject2, mimetype: 'application/json' },
332
+ * { file: fileObject3, objinfo: { custom: 'metadata' } }
333
+ * ],
334
+ * 'task-token',
335
+ * 10 // Upload max 10 files concurrently
336
+ * );
337
+ * ```
338
+ */
339
+ sendFiles(files: Array<{
340
+ file: File;
341
+ objinfo?: Record<string, any>;
342
+ mimetype?: string;
343
+ }>, token: string, maxConcurrent?: number): Promise<UPLOAD_RESULT[]>;
344
+ /**
345
+ * Ask a question to Aparavi's AI and get an intelligent response.
346
+ */
347
+ chat(options: {
348
+ token: string;
349
+ question: Question;
350
+ }): Promise<PIPELINE_RESULT>;
351
+ /**
352
+ * Send events to debugging interface if available (for development).
353
+ */
354
+ private _sendVSCodeEvent;
355
+ /**
356
+ * Handle incoming events from the Aparavi server.
357
+ */
358
+ onEvent(message: DAPMessage): Promise<void>;
359
+ /**
360
+ * Handle connected events from the Aparavi server.
361
+ */
362
+ onConnected(connectionInfo: string): Promise<void>;
363
+ /**
364
+ * Handle disconnected events from the Aparavi server.
365
+ */
366
+ onDisconnected(reason: string, hasError: boolean): Promise<void>;
367
+ /**
368
+ * Subscribe to specific types of events from the server.
369
+ */
370
+ setEvents(token: string, eventTypes: string[]): Promise<void>;
371
+ /**
372
+ * Async disposal support for 'await using' pattern.
373
+ * Equivalent to Python's __aexit__
374
+ */
375
+ [Symbol.asyncDispose](): Promise<void>;
376
+ /**
377
+ * Static factory method for automatic connection management.
378
+ * Equivalent to Python's async with pattern
379
+ */
380
+ static withConnection<T>(config: AparaviClientConfig, callback: (client: AparaviClient) => Promise<T>): Promise<T>;
381
+ /**
382
+ * Get connection information (TypeScript-specific convenience)
383
+ */
384
+ getConnectionInfo(): {
385
+ connected: boolean;
386
+ transport: string;
387
+ uri: string;
388
+ };
389
+ /**
390
+ * Get API key (for debugging/validation)
391
+ */
392
+ getApiKey(): string | undefined;
393
+ }
394
+ export { AparaviClient as default };
395
+ //# sourceMappingURL=client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../aparavi-client/src/client.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAGH,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAiB,mBAAmB,EAAuC,MAAM,SAAS,CAAC;AAC9G,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AG,OAAO,CAAC,IAAI,CAAC;IAoBjD;;OAEG;IACG,WAAW,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAexD;;OAEG;IACG,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IAiBtE;;OAEG;IACG,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IAqBnE;;;OAGG;IACG,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC;IAI5C;;;OAGG;WACU,cAAc,CAAC,CAAC,EAC5B,MAAM,EAAE,mBAAmB,EAC3B,QAAQ,EAAE,CAAC,MAAM,EAAE,aAAa,KAAK,OAAO,CAAC,CAAC,CAAC,GAC7C,OAAO,CAAC,CAAC,CAAC;IAcb;;OAEG;IACH,iBAAiB,IAAI;QACpB,SAAS,EAAE,OAAO,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;QAClB,GAAG,EAAE,MAAM,CAAC;KACZ;IAQD;;OAEG;IACH,SAAS,IAAI,MAAM,GAAG,SAAS;CAG/B;AAED,OAAO,EAAE,aAAa,IAAI,OAAO,EAAE,CAAC"}
@@ -0,0 +1,34 @@
1
+ /**
2
+ * MIT License
3
+ *
4
+ * Copyright (c) 2024 Aparavi Development Team
5
+ *
6
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ * of this software and associated documentation files (the "Software"), to deal
8
+ * in the Software without restriction, including without limitation the rights
9
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ * copies of the Software, and to permit persons to whom the Software is
11
+ * furnished to do so, subject to the following conditions:
12
+ *
13
+ * The above copyright notice and this permission notice shall be included in all
14
+ * copies or substantial portions of the Software.
15
+ *
16
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ * SOFTWARE.
23
+ */
24
+ /**
25
+ * Default Aparavi service endpoint URL.
26
+ * Used when no custom URI is provided in the client configuration.
27
+ */
28
+ export declare const CONST_DEFAULT_SERVICE = "https://eaas.aparavi.com";
29
+ /**
30
+ * WebSocket connection timeout in seconds.
31
+ * If no communication occurs within this period, the connection may be considered stale.
32
+ */
33
+ export declare const CONST_SOCKET_TIMEOUT = 180;
34
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../aparavi-client/src/constants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH;;;GAGG;AACH,eAAO,MAAM,qBAAqB,6BAA6B,CAAC;AAEhE;;;GAGG;AACH,eAAO,MAAM,oBAAoB,MAAM,CAAC"}