@airweave/sdk 0.8.85 → 0.8.87

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.
@@ -48,8 +48,8 @@ class AirweaveSDKClient {
48
48
  this._options = Object.assign(Object.assign({}, _options), { headers: (0, headers_js_1.mergeHeaders)({
49
49
  "X-Fern-Language": "JavaScript",
50
50
  "X-Fern-SDK-Name": "@airweave/sdk",
51
- "X-Fern-SDK-Version": "v0.8.85",
52
- "User-Agent": "@airweave/sdk/v0.8.85",
51
+ "X-Fern-SDK-Version": "v0.8.87",
52
+ "User-Agent": "@airweave/sdk/v0.8.87",
53
53
  "X-Fern-Runtime": core.RUNTIME.type,
54
54
  "X-Fern-Runtime-Version": core.RUNTIME.version,
55
55
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -106,12 +106,21 @@ export declare class SourceConnections {
106
106
  /**
107
107
  * Permanently delete a source connection and all its synced data.
108
108
  *
109
- * This operation:
110
- * - Removes all entities synced from this source from the vector database
111
- * - Cancels any scheduled or running sync jobs
112
- * - Deletes the connection configuration and credentials
109
+ * **What happens when you delete:**
113
110
  *
114
- * **Warning**: This action cannot be undone. All synced data will be permanently deleted.
111
+ * 1. Any running sync is cancelled and the API waits (up to 15 s) for the
112
+ * worker to stop writing.
113
+ * 2. The source connection, sync configuration, job history, and entity
114
+ * metadata are cascade-deleted from the database.
115
+ * 3. A background cleanup workflow is scheduled to remove data from the
116
+ * vector database (Vespa) and raw data storage (ARF). This may take
117
+ * several minutes for large datasets but does **not** block the response.
118
+ *
119
+ * The API returns immediately after step 2. Vector database cleanup happens
120
+ * asynchronously -- the data becomes unsearchable as soon as the database
121
+ * records are deleted.
122
+ *
123
+ * **Warning**: This action cannot be undone.
115
124
  *
116
125
  * @param {string} sourceConnectionId - Unique identifier of the source connection to delete (UUID)
117
126
  * @param {SourceConnections.RequestOptions} requestOptions - Request-specific configuration.
@@ -182,12 +191,14 @@ export declare class SourceConnections {
182
191
  * includes status, timing information, and entity counts.
183
192
  *
184
193
  * Job statuses:
185
- * - **PENDING**: Job is queued and waiting to start
194
+ * - **PENDING**: Job is queued, waiting for the worker to pick it up
186
195
  * - **RUNNING**: Sync is actively pulling and processing data
187
196
  * - **COMPLETED**: Sync finished successfully
188
- * - **FAILED**: Sync encountered an error
189
- * - **CANCELLED**: Sync was manually cancelled
190
- * - **CANCELLING**: Cancellation has been requested
197
+ * - **FAILED**: Sync encountered an unrecoverable error
198
+ * - **CANCELLING**: Cancellation has been requested. The worker is
199
+ * gracefully stopping the pipeline and cleaning up destination data.
200
+ * - **CANCELLED**: Sync was cancelled. The worker has fully stopped
201
+ * and destination data cleanup has been scheduled.
191
202
  *
192
203
  * @param {string} sourceConnectionId - Unique identifier of the source connection (UUID)
193
204
  * @param {AirweaveSDK.GetSourceConnectionJobsSourceConnectionsSourceConnectionIdJobsGetRequest} request
@@ -207,11 +218,19 @@ export declare class SourceConnections {
207
218
  /**
208
219
  * Request cancellation of a running sync job.
209
220
  *
210
- * The job will be marked as CANCELLING and the sync workflow will stop at the
211
- * next checkpoint. Already-processed entities are retained.
221
+ * **State lifecycle**: `PENDING` / `RUNNING` `CANCELLING` `CANCELLED`
222
+ *
223
+ * 1. The API immediately marks the job as **CANCELLING** in the database.
224
+ * 2. A cancellation signal is sent to the Temporal workflow.
225
+ * 3. The worker receives the signal, gracefully stops the sync pipeline
226
+ * (cancels worker pool, source stream), and marks the job as **CANCELLED**.
227
+ *
228
+ * Already-processed entities are retained in the vector database.
229
+ * If the worker is unresponsive, a background cleanup job will force the
230
+ * transition to CANCELLED after 3 minutes.
212
231
  *
213
- * **Note**: Cancellation is asynchronous. The job status will change to CANCELLED
214
- * once the workflow has fully stopped.
232
+ * **Note**: Only jobs in `PENDING` or `RUNNING` state can be cancelled.
233
+ * Attempting to cancel a `COMPLETED`, `FAILED`, or `CANCELLED` job returns 400.
215
234
  *
216
235
  * @param {string} sourceConnectionId - Unique identifier of the source connection (UUID)
217
236
  * @param {string} jobId - Unique identifier of the sync job to cancel (UUID)
@@ -295,12 +295,21 @@ class SourceConnections {
295
295
  /**
296
296
  * Permanently delete a source connection and all its synced data.
297
297
  *
298
- * This operation:
299
- * - Removes all entities synced from this source from the vector database
300
- * - Cancels any scheduled or running sync jobs
301
- * - Deletes the connection configuration and credentials
298
+ * **What happens when you delete:**
302
299
  *
303
- * **Warning**: This action cannot be undone. All synced data will be permanently deleted.
300
+ * 1. Any running sync is cancelled and the API waits (up to 15 s) for the
301
+ * worker to stop writing.
302
+ * 2. The source connection, sync configuration, job history, and entity
303
+ * metadata are cascade-deleted from the database.
304
+ * 3. A background cleanup workflow is scheduled to remove data from the
305
+ * vector database (Vespa) and raw data storage (ARF). This may take
306
+ * several minutes for large datasets but does **not** block the response.
307
+ *
308
+ * The API returns immediately after step 2. Vector database cleanup happens
309
+ * asynchronously -- the data becomes unsearchable as soon as the database
310
+ * records are deleted.
311
+ *
312
+ * **Warning**: This action cannot be undone.
304
313
  *
305
314
  * @param {string} sourceConnectionId - Unique identifier of the source connection to delete (UUID)
306
315
  * @param {SourceConnections.RequestOptions} requestOptions - Request-specific configuration.
@@ -531,12 +540,14 @@ class SourceConnections {
531
540
  * includes status, timing information, and entity counts.
532
541
  *
533
542
  * Job statuses:
534
- * - **PENDING**: Job is queued and waiting to start
543
+ * - **PENDING**: Job is queued, waiting for the worker to pick it up
535
544
  * - **RUNNING**: Sync is actively pulling and processing data
536
545
  * - **COMPLETED**: Sync finished successfully
537
- * - **FAILED**: Sync encountered an error
538
- * - **CANCELLED**: Sync was manually cancelled
539
- * - **CANCELLING**: Cancellation has been requested
546
+ * - **FAILED**: Sync encountered an unrecoverable error
547
+ * - **CANCELLING**: Cancellation has been requested. The worker is
548
+ * gracefully stopping the pipeline and cleaning up destination data.
549
+ * - **CANCELLED**: Sync was cancelled. The worker has fully stopped
550
+ * and destination data cleanup has been scheduled.
540
551
  *
541
552
  * @param {string} sourceConnectionId - Unique identifier of the source connection (UUID)
542
553
  * @param {AirweaveSDK.GetSourceConnectionJobsSourceConnectionsSourceConnectionIdJobsGetRequest} request
@@ -611,11 +622,19 @@ class SourceConnections {
611
622
  /**
612
623
  * Request cancellation of a running sync job.
613
624
  *
614
- * The job will be marked as CANCELLING and the sync workflow will stop at the
615
- * next checkpoint. Already-processed entities are retained.
625
+ * **State lifecycle**: `PENDING` / `RUNNING` `CANCELLING` `CANCELLED`
626
+ *
627
+ * 1. The API immediately marks the job as **CANCELLING** in the database.
628
+ * 2. A cancellation signal is sent to the Temporal workflow.
629
+ * 3. The worker receives the signal, gracefully stops the sync pipeline
630
+ * (cancels worker pool, source stream), and marks the job as **CANCELLED**.
631
+ *
632
+ * Already-processed entities are retained in the vector database.
633
+ * If the worker is unresponsive, a background cleanup job will force the
634
+ * transition to CANCELLED after 3 minutes.
616
635
  *
617
- * **Note**: Cancellation is asynchronous. The job status will change to CANCELLED
618
- * once the workflow has fully stopped.
636
+ * **Note**: Only jobs in `PENDING` or `RUNNING` state can be cancelled.
637
+ * Attempting to cancel a `COMPLETED`, `FAILED`, or `CANCELLED` job returns 400.
619
638
  *
620
639
  * @param {string} sourceConnectionId - Unique identifier of the source connection (UUID)
621
640
  * @param {string} jobId - Unique identifier of the sync job to cancel (UUID)
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "v0.8.85";
1
+ export declare const SDK_VERSION = "v0.8.87";
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SDK_VERSION = void 0;
4
- exports.SDK_VERSION = "v0.8.85";
4
+ exports.SDK_VERSION = "v0.8.87";
@@ -12,8 +12,8 @@ export class AirweaveSDKClient {
12
12
  this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
13
13
  "X-Fern-Language": "JavaScript",
14
14
  "X-Fern-SDK-Name": "@airweave/sdk",
15
- "X-Fern-SDK-Version": "v0.8.85",
16
- "User-Agent": "@airweave/sdk/v0.8.85",
15
+ "X-Fern-SDK-Version": "v0.8.87",
16
+ "User-Agent": "@airweave/sdk/v0.8.87",
17
17
  "X-Fern-Runtime": core.RUNTIME.type,
18
18
  "X-Fern-Runtime-Version": core.RUNTIME.version,
19
19
  }, _options === null || _options === void 0 ? void 0 : _options.headers) });
@@ -106,12 +106,21 @@ export declare class SourceConnections {
106
106
  /**
107
107
  * Permanently delete a source connection and all its synced data.
108
108
  *
109
- * This operation:
110
- * - Removes all entities synced from this source from the vector database
111
- * - Cancels any scheduled or running sync jobs
112
- * - Deletes the connection configuration and credentials
109
+ * **What happens when you delete:**
113
110
  *
114
- * **Warning**: This action cannot be undone. All synced data will be permanently deleted.
111
+ * 1. Any running sync is cancelled and the API waits (up to 15 s) for the
112
+ * worker to stop writing.
113
+ * 2. The source connection, sync configuration, job history, and entity
114
+ * metadata are cascade-deleted from the database.
115
+ * 3. A background cleanup workflow is scheduled to remove data from the
116
+ * vector database (Vespa) and raw data storage (ARF). This may take
117
+ * several minutes for large datasets but does **not** block the response.
118
+ *
119
+ * The API returns immediately after step 2. Vector database cleanup happens
120
+ * asynchronously -- the data becomes unsearchable as soon as the database
121
+ * records are deleted.
122
+ *
123
+ * **Warning**: This action cannot be undone.
115
124
  *
116
125
  * @param {string} sourceConnectionId - Unique identifier of the source connection to delete (UUID)
117
126
  * @param {SourceConnections.RequestOptions} requestOptions - Request-specific configuration.
@@ -182,12 +191,14 @@ export declare class SourceConnections {
182
191
  * includes status, timing information, and entity counts.
183
192
  *
184
193
  * Job statuses:
185
- * - **PENDING**: Job is queued and waiting to start
194
+ * - **PENDING**: Job is queued, waiting for the worker to pick it up
186
195
  * - **RUNNING**: Sync is actively pulling and processing data
187
196
  * - **COMPLETED**: Sync finished successfully
188
- * - **FAILED**: Sync encountered an error
189
- * - **CANCELLED**: Sync was manually cancelled
190
- * - **CANCELLING**: Cancellation has been requested
197
+ * - **FAILED**: Sync encountered an unrecoverable error
198
+ * - **CANCELLING**: Cancellation has been requested. The worker is
199
+ * gracefully stopping the pipeline and cleaning up destination data.
200
+ * - **CANCELLED**: Sync was cancelled. The worker has fully stopped
201
+ * and destination data cleanup has been scheduled.
191
202
  *
192
203
  * @param {string} sourceConnectionId - Unique identifier of the source connection (UUID)
193
204
  * @param {AirweaveSDK.GetSourceConnectionJobsSourceConnectionsSourceConnectionIdJobsGetRequest} request
@@ -207,11 +218,19 @@ export declare class SourceConnections {
207
218
  /**
208
219
  * Request cancellation of a running sync job.
209
220
  *
210
- * The job will be marked as CANCELLING and the sync workflow will stop at the
211
- * next checkpoint. Already-processed entities are retained.
221
+ * **State lifecycle**: `PENDING` / `RUNNING` `CANCELLING` `CANCELLED`
222
+ *
223
+ * 1. The API immediately marks the job as **CANCELLING** in the database.
224
+ * 2. A cancellation signal is sent to the Temporal workflow.
225
+ * 3. The worker receives the signal, gracefully stops the sync pipeline
226
+ * (cancels worker pool, source stream), and marks the job as **CANCELLED**.
227
+ *
228
+ * Already-processed entities are retained in the vector database.
229
+ * If the worker is unresponsive, a background cleanup job will force the
230
+ * transition to CANCELLED after 3 minutes.
212
231
  *
213
- * **Note**: Cancellation is asynchronous. The job status will change to CANCELLED
214
- * once the workflow has fully stopped.
232
+ * **Note**: Only jobs in `PENDING` or `RUNNING` state can be cancelled.
233
+ * Attempting to cancel a `COMPLETED`, `FAILED`, or `CANCELLED` job returns 400.
215
234
  *
216
235
  * @param {string} sourceConnectionId - Unique identifier of the source connection (UUID)
217
236
  * @param {string} jobId - Unique identifier of the sync job to cancel (UUID)
@@ -259,12 +259,21 @@ export class SourceConnections {
259
259
  /**
260
260
  * Permanently delete a source connection and all its synced data.
261
261
  *
262
- * This operation:
263
- * - Removes all entities synced from this source from the vector database
264
- * - Cancels any scheduled or running sync jobs
265
- * - Deletes the connection configuration and credentials
262
+ * **What happens when you delete:**
266
263
  *
267
- * **Warning**: This action cannot be undone. All synced data will be permanently deleted.
264
+ * 1. Any running sync is cancelled and the API waits (up to 15 s) for the
265
+ * worker to stop writing.
266
+ * 2. The source connection, sync configuration, job history, and entity
267
+ * metadata are cascade-deleted from the database.
268
+ * 3. A background cleanup workflow is scheduled to remove data from the
269
+ * vector database (Vespa) and raw data storage (ARF). This may take
270
+ * several minutes for large datasets but does **not** block the response.
271
+ *
272
+ * The API returns immediately after step 2. Vector database cleanup happens
273
+ * asynchronously -- the data becomes unsearchable as soon as the database
274
+ * records are deleted.
275
+ *
276
+ * **Warning**: This action cannot be undone.
268
277
  *
269
278
  * @param {string} sourceConnectionId - Unique identifier of the source connection to delete (UUID)
270
279
  * @param {SourceConnections.RequestOptions} requestOptions - Request-specific configuration.
@@ -495,12 +504,14 @@ export class SourceConnections {
495
504
  * includes status, timing information, and entity counts.
496
505
  *
497
506
  * Job statuses:
498
- * - **PENDING**: Job is queued and waiting to start
507
+ * - **PENDING**: Job is queued, waiting for the worker to pick it up
499
508
  * - **RUNNING**: Sync is actively pulling and processing data
500
509
  * - **COMPLETED**: Sync finished successfully
501
- * - **FAILED**: Sync encountered an error
502
- * - **CANCELLED**: Sync was manually cancelled
503
- * - **CANCELLING**: Cancellation has been requested
510
+ * - **FAILED**: Sync encountered an unrecoverable error
511
+ * - **CANCELLING**: Cancellation has been requested. The worker is
512
+ * gracefully stopping the pipeline and cleaning up destination data.
513
+ * - **CANCELLED**: Sync was cancelled. The worker has fully stopped
514
+ * and destination data cleanup has been scheduled.
504
515
  *
505
516
  * @param {string} sourceConnectionId - Unique identifier of the source connection (UUID)
506
517
  * @param {AirweaveSDK.GetSourceConnectionJobsSourceConnectionsSourceConnectionIdJobsGetRequest} request
@@ -575,11 +586,19 @@ export class SourceConnections {
575
586
  /**
576
587
  * Request cancellation of a running sync job.
577
588
  *
578
- * The job will be marked as CANCELLING and the sync workflow will stop at the
579
- * next checkpoint. Already-processed entities are retained.
589
+ * **State lifecycle**: `PENDING` / `RUNNING` `CANCELLING` `CANCELLED`
590
+ *
591
+ * 1. The API immediately marks the job as **CANCELLING** in the database.
592
+ * 2. A cancellation signal is sent to the Temporal workflow.
593
+ * 3. The worker receives the signal, gracefully stops the sync pipeline
594
+ * (cancels worker pool, source stream), and marks the job as **CANCELLED**.
595
+ *
596
+ * Already-processed entities are retained in the vector database.
597
+ * If the worker is unresponsive, a background cleanup job will force the
598
+ * transition to CANCELLED after 3 minutes.
580
599
  *
581
- * **Note**: Cancellation is asynchronous. The job status will change to CANCELLED
582
- * once the workflow has fully stopped.
600
+ * **Note**: Only jobs in `PENDING` or `RUNNING` state can be cancelled.
601
+ * Attempting to cancel a `COMPLETED`, `FAILED`, or `CANCELLED` job returns 400.
583
602
  *
584
603
  * @param {string} sourceConnectionId - Unique identifier of the source connection (UUID)
585
604
  * @param {string} jobId - Unique identifier of the sync job to cancel (UUID)
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "v0.8.85";
1
+ export declare const SDK_VERSION = "v0.8.87";
@@ -1 +1 @@
1
- export const SDK_VERSION = "v0.8.85";
1
+ export const SDK_VERSION = "v0.8.87";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@airweave/sdk",
3
- "version": "v0.8.85",
3
+ "version": "v0.8.87",
4
4
  "private": false,
5
5
  "repository": "github:airweave-ai/typescript-sdk",
6
6
  "type": "commonjs",
package/reference.md CHANGED
@@ -985,13 +985,21 @@ await client.sourceConnections.get("550e8400-e29b-41d4-a716-446655440000");
985
985
 
986
986
  Permanently delete a source connection and all its synced data.
987
987
 
988
- This operation:
988
+ **What happens when you delete:**
989
+
990
+ 1. Any running sync is cancelled and the API waits (up to 15 s) for the
991
+ worker to stop writing.
992
+ 2. The source connection, sync configuration, job history, and entity
993
+ metadata are cascade-deleted from the database.
994
+ 3. A background cleanup workflow is scheduled to remove data from the
995
+ vector database (Vespa) and raw data storage (ARF). This may take
996
+ several minutes for large datasets but does **not** block the response.
989
997
 
990
- - Removes all entities synced from this source from the vector database
991
- - Cancels any scheduled or running sync jobs
992
- - Deletes the connection configuration and credentials
998
+ The API returns immediately after step 2. Vector database cleanup happens
999
+ asynchronously -- the data becomes unsearchable as soon as the database
1000
+ records are deleted.
993
1001
 
994
- **Warning**: This action cannot be undone. All synced data will be permanently deleted.
1002
+ **Warning**: This action cannot be undone.
995
1003
 
996
1004
  </dd>
997
1005
  </dl>
@@ -1221,12 +1229,14 @@ includes status, timing information, and entity counts.
1221
1229
 
1222
1230
  Job statuses:
1223
1231
 
1224
- - **PENDING**: Job is queued and waiting to start
1232
+ - **PENDING**: Job is queued, waiting for the worker to pick it up
1225
1233
  - **RUNNING**: Sync is actively pulling and processing data
1226
1234
  - **COMPLETED**: Sync finished successfully
1227
- - **FAILED**: Sync encountered an error
1228
- - **CANCELLED**: Sync was manually cancelled
1229
- - **CANCELLING**: Cancellation has been requested
1235
+ - **FAILED**: Sync encountered an unrecoverable error
1236
+ - **CANCELLING**: Cancellation has been requested. The worker is
1237
+ gracefully stopping the pipeline and cleaning up destination data.
1238
+ - **CANCELLED**: Sync was cancelled. The worker has fully stopped
1239
+ and destination data cleanup has been scheduled.
1230
1240
  </dd>
1231
1241
  </dl>
1232
1242
  </dd>
@@ -1300,11 +1310,19 @@ await client.sourceConnections.getSourceConnectionJobs("550e8400-e29b-41d4-a716-
1300
1310
 
1301
1311
  Request cancellation of a running sync job.
1302
1312
 
1303
- The job will be marked as CANCELLING and the sync workflow will stop at the
1304
- next checkpoint. Already-processed entities are retained.
1313
+ **State lifecycle**: `PENDING` / `RUNNING` `CANCELLING` `CANCELLED`
1314
+
1315
+ 1. The API immediately marks the job as **CANCELLING** in the database.
1316
+ 2. A cancellation signal is sent to the Temporal workflow.
1317
+ 3. The worker receives the signal, gracefully stops the sync pipeline
1318
+ (cancels worker pool, source stream), and marks the job as **CANCELLED**.
1319
+
1320
+ Already-processed entities are retained in the vector database.
1321
+ If the worker is unresponsive, a background cleanup job will force the
1322
+ transition to CANCELLED after 3 minutes.
1305
1323
 
1306
- **Note**: Cancellation is asynchronous. The job status will change to CANCELLED
1307
- once the workflow has fully stopped.
1324
+ **Note**: Only jobs in `PENDING` or `RUNNING` state can be cancelled.
1325
+ Attempting to cancel a `COMPLETED`, `FAILED`, or `CANCELLED` job returns 400.
1308
1326
 
1309
1327
  </dd>
1310
1328
  </dl>