@knowledge-stack/ksapi 3.2.1 → 3.3.1

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 (63) hide show
  1. package/.openapi-generator/FILES +10 -0
  2. package/README.md +7 -2
  3. package/dist/apis/DataSourcesApi.d.ts +14 -14
  4. package/dist/apis/DataSourcesApi.js +14 -7
  5. package/dist/esm/apis/DataSourcesApi.d.ts +14 -14
  6. package/dist/esm/apis/DataSourcesApi.js +14 -7
  7. package/dist/esm/models/ConnectionSummary.d.ts +65 -0
  8. package/dist/esm/models/ConnectionSummary.js +54 -0
  9. package/dist/esm/models/CreateDataSourceRequest.d.ts +16 -2
  10. package/dist/esm/models/CreateDataSourceRequest.js +8 -6
  11. package/dist/esm/models/DataSourceResponse.d.ts +26 -2
  12. package/dist/esm/models/DataSourceResponse.js +11 -0
  13. package/dist/esm/models/SourceConfigSummary.d.ts +71 -0
  14. package/dist/esm/models/SourceConfigSummary.js +71 -0
  15. package/dist/esm/models/SourceType.d.ts +25 -0
  16. package/dist/esm/models/SourceType.js +43 -0
  17. package/dist/esm/models/UpdateDataSourceRequest.d.ts +14 -0
  18. package/dist/esm/models/UpdateDataSourceRequest.js +6 -0
  19. package/dist/esm/models/YidingConfig.d.ts +77 -0
  20. package/dist/esm/models/YidingConfig.js +78 -0
  21. package/dist/esm/models/YidingCursor.d.ts +53 -0
  22. package/dist/esm/models/YidingCursor.js +44 -0
  23. package/dist/esm/models/index.d.ts +5 -0
  24. package/dist/esm/models/index.js +5 -0
  25. package/dist/models/ConnectionSummary.d.ts +65 -0
  26. package/dist/models/ConnectionSummary.js +62 -0
  27. package/dist/models/CreateDataSourceRequest.d.ts +16 -2
  28. package/dist/models/CreateDataSourceRequest.js +8 -6
  29. package/dist/models/DataSourceResponse.d.ts +26 -2
  30. package/dist/models/DataSourceResponse.js +11 -0
  31. package/dist/models/SourceConfigSummary.d.ts +71 -0
  32. package/dist/models/SourceConfigSummary.js +79 -0
  33. package/dist/models/SourceType.d.ts +25 -0
  34. package/dist/models/SourceType.js +51 -0
  35. package/dist/models/UpdateDataSourceRequest.d.ts +14 -0
  36. package/dist/models/UpdateDataSourceRequest.js +6 -0
  37. package/dist/models/YidingConfig.d.ts +77 -0
  38. package/dist/models/YidingConfig.js +86 -0
  39. package/dist/models/YidingCursor.d.ts +53 -0
  40. package/dist/models/YidingCursor.js +52 -0
  41. package/dist/models/index.d.ts +5 -0
  42. package/dist/models/index.js +5 -0
  43. package/docs/ConnectionSummary.md +41 -0
  44. package/docs/CreateDataSourceRequest.md +4 -0
  45. package/docs/DataSourceResponse.md +7 -1
  46. package/docs/DataSourcesApi.md +4 -3
  47. package/docs/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaR.md +6 -0
  48. package/docs/SourceConfigSummary.md +43 -0
  49. package/docs/SourceType.md +33 -0
  50. package/docs/UpdateDataSourceRequest.md +4 -0
  51. package/docs/YidingConfig.md +45 -0
  52. package/docs/YidingCursor.md +37 -0
  53. package/package.json +1 -1
  54. package/src/apis/DataSourcesApi.ts +22 -15
  55. package/src/models/ConnectionSummary.ts +109 -0
  56. package/src/models/CreateDataSourceRequest.ts +34 -6
  57. package/src/models/DataSourceResponse.ts +51 -2
  58. package/src/models/SourceConfigSummary.ts +130 -0
  59. package/src/models/SourceType.ts +53 -0
  60. package/src/models/UpdateDataSourceRequest.ts +30 -0
  61. package/src/models/YidingConfig.ts +142 -0
  62. package/src/models/YidingCursor.ts +90 -0
  63. package/src/models/index.ts +5 -0
@@ -83,6 +83,7 @@ docs/ColumnReference.md
83
83
  docs/CommonFileExclusionReason.md
84
84
  docs/CompleteUploadRequest.md
85
85
  docs/ConnectionConfig.md
86
+ docs/ConnectionSummary.md
86
87
  docs/ContentsSortOrder.md
87
88
  docs/CreateApiConnectionRequest.md
88
89
  docs/CreateApiKeyRequest.md
@@ -321,6 +322,8 @@ docs/SkillSearchResult.md
321
322
  docs/SkillVersionResponse.md
322
323
  docs/SkillsApi.md
323
324
  docs/SortDirection.md
325
+ docs/SourceConfigSummary.md
326
+ docs/SourceType.md
324
327
  docs/StartWorkflowRunRequest.md
325
328
  docs/Step.md
326
329
  docs/StepKind.md
@@ -437,6 +440,8 @@ docs/XlsxCellAnchorInput.md
437
440
  docs/XlsxCellAnchorInputOrDocxParagraphAnchorInput.md
438
441
  docs/XlsxCellAnchorOutput.md
439
442
  docs/XlsxCellAnchorOutputOrDocxParagraphAnchorOutput.md
443
+ docs/YidingConfig.md
444
+ docs/YidingCursor.md
440
445
  docs/ZipFileResult.md
441
446
  docs/ZipIngestionStatusResponse.md
442
447
  docs/ZipMemberStatusResponse.md
@@ -553,6 +558,7 @@ src/models/ColumnReference.ts
553
558
  src/models/CommonFileExclusionReason.ts
554
559
  src/models/CompleteUploadRequest.ts
555
560
  src/models/ConnectionConfig.ts
561
+ src/models/ConnectionSummary.ts
556
562
  src/models/ContentsSortOrder.ts
557
563
  src/models/CreateApiConnectionRequest.ts
558
564
  src/models/CreateApiKeyRequest.ts
@@ -776,6 +782,8 @@ src/models/SkillResponse.ts
776
782
  src/models/SkillSearchResult.ts
777
783
  src/models/SkillVersionResponse.ts
778
784
  src/models/SortDirection.ts
785
+ src/models/SourceConfigSummary.ts
786
+ src/models/SourceType.ts
779
787
  src/models/StartWorkflowRunRequest.ts
780
788
  src/models/Step.ts
781
789
  src/models/StepKind.ts
@@ -878,6 +886,8 @@ src/models/XlsxCellAnchorInput.ts
878
886
  src/models/XlsxCellAnchorInputOrDocxParagraphAnchorInput.ts
879
887
  src/models/XlsxCellAnchorOutput.ts
880
888
  src/models/XlsxCellAnchorOutputOrDocxParagraphAnchorOutput.ts
889
+ src/models/YidingConfig.ts
890
+ src/models/YidingCursor.ts
881
891
  src/models/ZipFileResult.ts
882
892
  src/models/ZipIngestionStatusResponse.ts
883
893
  src/models/ZipMemberStatusResponse.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @knowledge-stack/ksapi@3.2.1
1
+ # @knowledge-stack/ksapi@3.3.1
2
2
 
3
3
  A TypeScript SDK client for the localhost API.
4
4
 
@@ -374,6 +374,7 @@ All URIs are relative to *http://localhost:8000*
374
374
  - [CommonFileExclusionReason](docs/CommonFileExclusionReason.md)
375
375
  - [CompleteUploadRequest](docs/CompleteUploadRequest.md)
376
376
  - [ConnectionConfig](docs/ConnectionConfig.md)
377
+ - [ConnectionSummary](docs/ConnectionSummary.md)
377
378
  - [ContentsSortOrder](docs/ContentsSortOrder.md)
378
379
  - [CreateApiConnectionRequest](docs/CreateApiConnectionRequest.md)
379
380
  - [CreateApiKeyRequest](docs/CreateApiKeyRequest.md)
@@ -597,6 +598,8 @@ All URIs are relative to *http://localhost:8000*
597
598
  - [SkillSearchResult](docs/SkillSearchResult.md)
598
599
  - [SkillVersionResponse](docs/SkillVersionResponse.md)
599
600
  - [SortDirection](docs/SortDirection.md)
601
+ - [SourceConfigSummary](docs/SourceConfigSummary.md)
602
+ - [SourceType](docs/SourceType.md)
600
603
  - [StartWorkflowRunRequest](docs/StartWorkflowRunRequest.md)
601
604
  - [Step](docs/Step.md)
602
605
  - [StepKind](docs/StepKind.md)
@@ -699,6 +702,8 @@ All URIs are relative to *http://localhost:8000*
699
702
  - [XlsxCellAnchorInputOrDocxParagraphAnchorInput](docs/XlsxCellAnchorInputOrDocxParagraphAnchorInput.md)
700
703
  - [XlsxCellAnchorOutput](docs/XlsxCellAnchorOutput.md)
701
704
  - [XlsxCellAnchorOutputOrDocxParagraphAnchorOutput](docs/XlsxCellAnchorOutputOrDocxParagraphAnchorOutput.md)
705
+ - [YidingConfig](docs/YidingConfig.md)
706
+ - [YidingCursor](docs/YidingCursor.md)
702
707
  - [ZipFileResult](docs/ZipFileResult.md)
703
708
  - [ZipIngestionStatusResponse](docs/ZipIngestionStatusResponse.md)
704
709
  - [ZipMemberStatusResponse](docs/ZipMemberStatusResponse.md)
@@ -727,7 +732,7 @@ and is automatically generated by the
727
732
  [OpenAPI Generator](https://openapi-generator.tech) project:
728
733
 
729
734
  - API version: `0.1.0`
730
- - Package version: `3.2.1`
735
+ - Package version: `3.3.1`
731
736
  - Generator version: `7.21.0`
732
737
  - Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
733
738
 
@@ -107,7 +107,7 @@ export interface DataSourcesApiInterface {
107
107
  */
108
108
  deleteDataSourceRequestOpts(requestParameters: DeleteDataSourceRequest): Promise<runtime.RequestOpts>;
109
109
  /**
110
- * Move a connector and its schemas/tables to trash. Soft-delete via the path_part subtree (schemas + tables are children, so they trash with it). Each modeled table\'s summary Qdrant point carries that table\'s path_part, so the set-trashed workflow flips it to trashed too — keeping trashed tables out of the agent\'s table search (best-effort, mirrors the document delete path).
110
+ * Move a connector and its schemas/tables to trash. Soft-delete via the path_part subtree (schemas + tables are children, so they trash with it). Each modeled table\'s summary Qdrant point carries that table\'s path_part, so the set-trashed workflow flips it to trashed too — keeping trashed tables out of the agent\'s table search (best-effort, mirrors the document delete path). A YIDINGSYNC connector also owns a daily crawl schedule, which is removed here: left behind, it would fire every night at a connector that is gone. The check is not redundant — unlike the best-effort trash sync above, ``delete_connector_schedule`` re-raises anything that is not NOT_FOUND, so calling it for a DIRECT connector would put a Temporal outage in the way of a delete that never needed Temporal at all.
111
111
  * @summary Delete Data Source Handler
112
112
  * @param {string} dataSourceId
113
113
  * @param {*} [options] Override http request option.
@@ -116,7 +116,7 @@ export interface DataSourcesApiInterface {
116
116
  */
117
117
  deleteDataSourceRaw(requestParameters: DeleteDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
118
118
  /**
119
- * Move a connector and its schemas/tables to trash. Soft-delete via the path_part subtree (schemas + tables are children, so they trash with it). Each modeled table\'s summary Qdrant point carries that table\'s path_part, so the set-trashed workflow flips it to trashed too — keeping trashed tables out of the agent\'s table search (best-effort, mirrors the document delete path).
119
+ * Move a connector and its schemas/tables to trash. Soft-delete via the path_part subtree (schemas + tables are children, so they trash with it). Each modeled table\'s summary Qdrant point carries that table\'s path_part, so the set-trashed workflow flips it to trashed too — keeping trashed tables out of the agent\'s table search (best-effort, mirrors the document delete path). A YIDINGSYNC connector also owns a daily crawl schedule, which is removed here: left behind, it would fire every night at a connector that is gone. The check is not redundant — unlike the best-effort trash sync above, ``delete_connector_schedule`` re-raises anything that is not NOT_FOUND, so calling it for a DIRECT connector would put a Temporal outage in the way of a delete that never needed Temporal at all.
120
120
  * Delete Data Source Handler
121
121
  */
122
122
  deleteDataSource(requestParameters: DeleteDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -350,7 +350,7 @@ export interface DataSourcesApiInterface {
350
350
  */
351
351
  syncDataSourceRequestOpts(requestParameters: SyncDataSourceRequest): Promise<runtime.RequestOpts>;
352
352
  /**
353
- * Reconcile modeled tables against the live external catalog. Requires ``can_write``. Re-introspects each modeled schema and, per table: a schema change (columns added/removed/retyped) refreshes ``column_config`` (preserving the admin\'s ``exposed``/``comment`` field-modeling) and re-summarizes + re-embeds; an unchanged table is a no-op; a table dropped from the source is soft-deleted (keeping the \"was modeled, now gone\" record) and its embedding purged. It never models tables that were not imported.
353
+ * Reconcile modeled tables against the live external catalog. Requires ``can_write``. Re-introspects each modeled schema and, per table: a schema change (columns added/removed/retyped) refreshes ``column_config`` (preserving the admin\'s ``exposed``/``comment`` field-modeling) and re-summarizes + re-embeds; an unchanged table is a no-op; a table dropped from the source is soft-deleted (keeping the \"was modeled, now gone\" record) and its embedding purged. It never models tables that were not imported. A crawler-fed connector has no catalog to reconcile against, so it starts a crawl instead and returns 202.
354
354
  * @summary Sync Data Source Handler
355
355
  * @param {string} dataSourceId
356
356
  * @param {*} [options] Override http request option.
@@ -359,10 +359,10 @@ export interface DataSourcesApiInterface {
359
359
  */
360
360
  syncDataSourceRaw(requestParameters: SyncDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataSourceSyncResponse>>;
361
361
  /**
362
- * Reconcile modeled tables against the live external catalog. Requires ``can_write``. Re-introspects each modeled schema and, per table: a schema change (columns added/removed/retyped) refreshes ``column_config`` (preserving the admin\'s ``exposed``/``comment`` field-modeling) and re-summarizes + re-embeds; an unchanged table is a no-op; a table dropped from the source is soft-deleted (keeping the \"was modeled, now gone\" record) and its embedding purged. It never models tables that were not imported.
362
+ * Reconcile modeled tables against the live external catalog. Requires ``can_write``. Re-introspects each modeled schema and, per table: a schema change (columns added/removed/retyped) refreshes ``column_config`` (preserving the admin\'s ``exposed``/``comment`` field-modeling) and re-summarizes + re-embeds; an unchanged table is a no-op; a table dropped from the source is soft-deleted (keeping the \"was modeled, now gone\" record) and its embedding purged. It never models tables that were not imported. A crawler-fed connector has no catalog to reconcile against, so it starts a crawl instead and returns 202.
363
363
  * Sync Data Source Handler
364
364
  */
365
- syncDataSource(requestParameters: SyncDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataSourceSyncResponse>;
365
+ syncDataSource(requestParameters: SyncDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataSourceSyncResponse | null | undefined>;
366
366
  /**
367
367
  * Creates request options for testDataSourceConnection without sending the request
368
368
  * @param {string} dataSourceId
@@ -414,7 +414,7 @@ export interface DataSourcesApiInterface {
414
414
  */
415
415
  updateDataSourceRequestOpts(requestParameters: UpdateDataSourceOperationRequest): Promise<runtime.RequestOpts>;
416
416
  /**
417
- * Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move); supplying ``connection_config`` additionally requires OWNER/ADMIN. Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable.
417
+ * Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move); supplying ``connection_config`` additionally requires OWNER/ADMIN. Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable. A fresh ``source_config`` re-arms the crawl schedule, so changing ``cron`` takes effect immediately rather than at the next provisioning.
418
418
  * @summary Update Data Source Handler
419
419
  * @param {string} dataSourceId
420
420
  * @param {UpdateDataSourceRequest} updateDataSourceRequest
@@ -424,7 +424,7 @@ export interface DataSourcesApiInterface {
424
424
  */
425
425
  updateDataSourceRaw(requestParameters: UpdateDataSourceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataSourceResponse>>;
426
426
  /**
427
- * Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move); supplying ``connection_config`` additionally requires OWNER/ADMIN. Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable.
427
+ * Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move); supplying ``connection_config`` additionally requires OWNER/ADMIN. Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable. A fresh ``source_config`` re-arms the crawl schedule, so changing ``cron`` takes effect immediately rather than at the next provisioning.
428
428
  * Update Data Source Handler
429
429
  */
430
430
  updateDataSource(requestParameters: UpdateDataSourceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataSourceResponse>;
@@ -477,12 +477,12 @@ export declare class DataSourcesApi extends runtime.BaseAPI implements DataSourc
477
477
  */
478
478
  deleteDataSourceRequestOpts(requestParameters: DeleteDataSourceRequest): Promise<runtime.RequestOpts>;
479
479
  /**
480
- * Move a connector and its schemas/tables to trash. Soft-delete via the path_part subtree (schemas + tables are children, so they trash with it). Each modeled table\'s summary Qdrant point carries that table\'s path_part, so the set-trashed workflow flips it to trashed too — keeping trashed tables out of the agent\'s table search (best-effort, mirrors the document delete path).
480
+ * Move a connector and its schemas/tables to trash. Soft-delete via the path_part subtree (schemas + tables are children, so they trash with it). Each modeled table\'s summary Qdrant point carries that table\'s path_part, so the set-trashed workflow flips it to trashed too — keeping trashed tables out of the agent\'s table search (best-effort, mirrors the document delete path). A YIDINGSYNC connector also owns a daily crawl schedule, which is removed here: left behind, it would fire every night at a connector that is gone. The check is not redundant — unlike the best-effort trash sync above, ``delete_connector_schedule`` re-raises anything that is not NOT_FOUND, so calling it for a DIRECT connector would put a Temporal outage in the way of a delete that never needed Temporal at all.
481
481
  * Delete Data Source Handler
482
482
  */
483
483
  deleteDataSourceRaw(requestParameters: DeleteDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
484
484
  /**
485
- * Move a connector and its schemas/tables to trash. Soft-delete via the path_part subtree (schemas + tables are children, so they trash with it). Each modeled table\'s summary Qdrant point carries that table\'s path_part, so the set-trashed workflow flips it to trashed too — keeping trashed tables out of the agent\'s table search (best-effort, mirrors the document delete path).
485
+ * Move a connector and its schemas/tables to trash. Soft-delete via the path_part subtree (schemas + tables are children, so they trash with it). Each modeled table\'s summary Qdrant point carries that table\'s path_part, so the set-trashed workflow flips it to trashed too — keeping trashed tables out of the agent\'s table search (best-effort, mirrors the document delete path). A YIDINGSYNC connector also owns a daily crawl schedule, which is removed here: left behind, it would fire every night at a connector that is gone. The check is not redundant — unlike the best-effort trash sync above, ``delete_connector_schedule`` re-raises anything that is not NOT_FOUND, so calling it for a DIRECT connector would put a Temporal outage in the way of a delete that never needed Temporal at all.
486
486
  * Delete Data Source Handler
487
487
  */
488
488
  deleteDataSource(requestParameters: DeleteDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -631,15 +631,15 @@ export declare class DataSourcesApi extends runtime.BaseAPI implements DataSourc
631
631
  */
632
632
  syncDataSourceRequestOpts(requestParameters: SyncDataSourceRequest): Promise<runtime.RequestOpts>;
633
633
  /**
634
- * Reconcile modeled tables against the live external catalog. Requires ``can_write``. Re-introspects each modeled schema and, per table: a schema change (columns added/removed/retyped) refreshes ``column_config`` (preserving the admin\'s ``exposed``/``comment`` field-modeling) and re-summarizes + re-embeds; an unchanged table is a no-op; a table dropped from the source is soft-deleted (keeping the \"was modeled, now gone\" record) and its embedding purged. It never models tables that were not imported.
634
+ * Reconcile modeled tables against the live external catalog. Requires ``can_write``. Re-introspects each modeled schema and, per table: a schema change (columns added/removed/retyped) refreshes ``column_config`` (preserving the admin\'s ``exposed``/``comment`` field-modeling) and re-summarizes + re-embeds; an unchanged table is a no-op; a table dropped from the source is soft-deleted (keeping the \"was modeled, now gone\" record) and its embedding purged. It never models tables that were not imported. A crawler-fed connector has no catalog to reconcile against, so it starts a crawl instead and returns 202.
635
635
  * Sync Data Source Handler
636
636
  */
637
637
  syncDataSourceRaw(requestParameters: SyncDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataSourceSyncResponse>>;
638
638
  /**
639
- * Reconcile modeled tables against the live external catalog. Requires ``can_write``. Re-introspects each modeled schema and, per table: a schema change (columns added/removed/retyped) refreshes ``column_config`` (preserving the admin\'s ``exposed``/``comment`` field-modeling) and re-summarizes + re-embeds; an unchanged table is a no-op; a table dropped from the source is soft-deleted (keeping the \"was modeled, now gone\" record) and its embedding purged. It never models tables that were not imported.
639
+ * Reconcile modeled tables against the live external catalog. Requires ``can_write``. Re-introspects each modeled schema and, per table: a schema change (columns added/removed/retyped) refreshes ``column_config`` (preserving the admin\'s ``exposed``/``comment`` field-modeling) and re-summarizes + re-embeds; an unchanged table is a no-op; a table dropped from the source is soft-deleted (keeping the \"was modeled, now gone\" record) and its embedding purged. It never models tables that were not imported. A crawler-fed connector has no catalog to reconcile against, so it starts a crawl instead and returns 202.
640
640
  * Sync Data Source Handler
641
641
  */
642
- syncDataSource(requestParameters: SyncDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataSourceSyncResponse>;
642
+ syncDataSource(requestParameters: SyncDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataSourceSyncResponse | null | undefined>;
643
643
  /**
644
644
  * Creates request options for testDataSourceConnection without sending the request
645
645
  */
@@ -673,12 +673,12 @@ export declare class DataSourcesApi extends runtime.BaseAPI implements DataSourc
673
673
  */
674
674
  updateDataSourceRequestOpts(requestParameters: UpdateDataSourceOperationRequest): Promise<runtime.RequestOpts>;
675
675
  /**
676
- * Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move); supplying ``connection_config`` additionally requires OWNER/ADMIN. Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable.
676
+ * Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move); supplying ``connection_config`` additionally requires OWNER/ADMIN. Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable. A fresh ``source_config`` re-arms the crawl schedule, so changing ``cron`` takes effect immediately rather than at the next provisioning.
677
677
  * Update Data Source Handler
678
678
  */
679
679
  updateDataSourceRaw(requestParameters: UpdateDataSourceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataSourceResponse>>;
680
680
  /**
681
- * Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move); supplying ``connection_config`` additionally requires OWNER/ADMIN. Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable.
681
+ * Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move); supplying ``connection_config`` additionally requires OWNER/ADMIN. Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable. A fresh ``source_config`` re-arms the crawl schedule, so changing ``cron`` takes effect immediately rather than at the next provisioning.
682
682
  * Update Data Source Handler
683
683
  */
684
684
  updateDataSource(requestParameters: UpdateDataSourceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataSourceResponse>;
@@ -139,7 +139,7 @@ class DataSourcesApi extends runtime.BaseAPI {
139
139
  });
140
140
  }
141
141
  /**
142
- * Move a connector and its schemas/tables to trash. Soft-delete via the path_part subtree (schemas + tables are children, so they trash with it). Each modeled table\'s summary Qdrant point carries that table\'s path_part, so the set-trashed workflow flips it to trashed too — keeping trashed tables out of the agent\'s table search (best-effort, mirrors the document delete path).
142
+ * Move a connector and its schemas/tables to trash. Soft-delete via the path_part subtree (schemas + tables are children, so they trash with it). Each modeled table\'s summary Qdrant point carries that table\'s path_part, so the set-trashed workflow flips it to trashed too — keeping trashed tables out of the agent\'s table search (best-effort, mirrors the document delete path). A YIDINGSYNC connector also owns a daily crawl schedule, which is removed here: left behind, it would fire every night at a connector that is gone. The check is not redundant — unlike the best-effort trash sync above, ``delete_connector_schedule`` re-raises anything that is not NOT_FOUND, so calling it for a DIRECT connector would put a Temporal outage in the way of a delete that never needed Temporal at all.
143
143
  * Delete Data Source Handler
144
144
  */
145
145
  deleteDataSourceRaw(requestParameters, initOverrides) {
@@ -150,7 +150,7 @@ class DataSourcesApi extends runtime.BaseAPI {
150
150
  });
151
151
  }
152
152
  /**
153
- * Move a connector and its schemas/tables to trash. Soft-delete via the path_part subtree (schemas + tables are children, so they trash with it). Each modeled table\'s summary Qdrant point carries that table\'s path_part, so the set-trashed workflow flips it to trashed too — keeping trashed tables out of the agent\'s table search (best-effort, mirrors the document delete path).
153
+ * Move a connector and its schemas/tables to trash. Soft-delete via the path_part subtree (schemas + tables are children, so they trash with it). Each modeled table\'s summary Qdrant point carries that table\'s path_part, so the set-trashed workflow flips it to trashed too — keeping trashed tables out of the agent\'s table search (best-effort, mirrors the document delete path). A YIDINGSYNC connector also owns a daily crawl schedule, which is removed here: left behind, it would fire every night at a connector that is gone. The check is not redundant — unlike the best-effort trash sync above, ``delete_connector_schedule`` re-raises anything that is not NOT_FOUND, so calling it for a DIRECT connector would put a Temporal outage in the way of a delete that never needed Temporal at all.
154
154
  * Delete Data Source Handler
155
155
  */
156
156
  deleteDataSource(requestParameters, initOverrides) {
@@ -691,7 +691,7 @@ class DataSourcesApi extends runtime.BaseAPI {
691
691
  });
692
692
  }
693
693
  /**
694
- * Reconcile modeled tables against the live external catalog. Requires ``can_write``. Re-introspects each modeled schema and, per table: a schema change (columns added/removed/retyped) refreshes ``column_config`` (preserving the admin\'s ``exposed``/``comment`` field-modeling) and re-summarizes + re-embeds; an unchanged table is a no-op; a table dropped from the source is soft-deleted (keeping the \"was modeled, now gone\" record) and its embedding purged. It never models tables that were not imported.
694
+ * Reconcile modeled tables against the live external catalog. Requires ``can_write``. Re-introspects each modeled schema and, per table: a schema change (columns added/removed/retyped) refreshes ``column_config`` (preserving the admin\'s ``exposed``/``comment`` field-modeling) and re-summarizes + re-embeds; an unchanged table is a no-op; a table dropped from the source is soft-deleted (keeping the \"was modeled, now gone\" record) and its embedding purged. It never models tables that were not imported. A crawler-fed connector has no catalog to reconcile against, so it starts a crawl instead and returns 202.
695
695
  * Sync Data Source Handler
696
696
  */
697
697
  syncDataSourceRaw(requestParameters, initOverrides) {
@@ -702,13 +702,20 @@ class DataSourcesApi extends runtime.BaseAPI {
702
702
  });
703
703
  }
704
704
  /**
705
- * Reconcile modeled tables against the live external catalog. Requires ``can_write``. Re-introspects each modeled schema and, per table: a schema change (columns added/removed/retyped) refreshes ``column_config`` (preserving the admin\'s ``exposed``/``comment`` field-modeling) and re-summarizes + re-embeds; an unchanged table is a no-op; a table dropped from the source is soft-deleted (keeping the \"was modeled, now gone\" record) and its embedding purged. It never models tables that were not imported.
705
+ * Reconcile modeled tables against the live external catalog. Requires ``can_write``. Re-introspects each modeled schema and, per table: a schema change (columns added/removed/retyped) refreshes ``column_config`` (preserving the admin\'s ``exposed``/``comment`` field-modeling) and re-summarizes + re-embeds; an unchanged table is a no-op; a table dropped from the source is soft-deleted (keeping the \"was modeled, now gone\" record) and its embedding purged. It never models tables that were not imported. A crawler-fed connector has no catalog to reconcile against, so it starts a crawl instead and returns 202.
706
706
  * Sync Data Source Handler
707
707
  */
708
708
  syncDataSource(requestParameters, initOverrides) {
709
709
  return __awaiter(this, void 0, void 0, function* () {
710
710
  const response = yield this.syncDataSourceRaw(requestParameters, initOverrides);
711
- return yield response.value();
711
+ switch (response.raw.status) {
712
+ case 200:
713
+ return yield response.value();
714
+ case 202:
715
+ return null;
716
+ default:
717
+ return yield response.value();
718
+ }
712
719
  });
713
720
  }
714
721
  /**
@@ -840,7 +847,7 @@ class DataSourcesApi extends runtime.BaseAPI {
840
847
  });
841
848
  }
842
849
  /**
843
- * Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move); supplying ``connection_config`` additionally requires OWNER/ADMIN. Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable.
850
+ * Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move); supplying ``connection_config`` additionally requires OWNER/ADMIN. Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable. A fresh ``source_config`` re-arms the crawl schedule, so changing ``cron`` takes effect immediately rather than at the next provisioning.
844
851
  * Update Data Source Handler
845
852
  */
846
853
  updateDataSourceRaw(requestParameters, initOverrides) {
@@ -851,7 +858,7 @@ class DataSourcesApi extends runtime.BaseAPI {
851
858
  });
852
859
  }
853
860
  /**
854
- * Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move); supplying ``connection_config`` additionally requires OWNER/ADMIN. Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable.
861
+ * Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move); supplying ``connection_config`` additionally requires OWNER/ADMIN. Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable. A fresh ``source_config`` re-arms the crawl schedule, so changing ``cron`` takes effect immediately rather than at the next provisioning.
855
862
  * Update Data Source Handler
856
863
  */
857
864
  updateDataSource(requestParameters, initOverrides) {
@@ -107,7 +107,7 @@ export interface DataSourcesApiInterface {
107
107
  */
108
108
  deleteDataSourceRequestOpts(requestParameters: DeleteDataSourceRequest): Promise<runtime.RequestOpts>;
109
109
  /**
110
- * Move a connector and its schemas/tables to trash. Soft-delete via the path_part subtree (schemas + tables are children, so they trash with it). Each modeled table\'s summary Qdrant point carries that table\'s path_part, so the set-trashed workflow flips it to trashed too — keeping trashed tables out of the agent\'s table search (best-effort, mirrors the document delete path).
110
+ * Move a connector and its schemas/tables to trash. Soft-delete via the path_part subtree (schemas + tables are children, so they trash with it). Each modeled table\'s summary Qdrant point carries that table\'s path_part, so the set-trashed workflow flips it to trashed too — keeping trashed tables out of the agent\'s table search (best-effort, mirrors the document delete path). A YIDINGSYNC connector also owns a daily crawl schedule, which is removed here: left behind, it would fire every night at a connector that is gone. The check is not redundant — unlike the best-effort trash sync above, ``delete_connector_schedule`` re-raises anything that is not NOT_FOUND, so calling it for a DIRECT connector would put a Temporal outage in the way of a delete that never needed Temporal at all.
111
111
  * @summary Delete Data Source Handler
112
112
  * @param {string} dataSourceId
113
113
  * @param {*} [options] Override http request option.
@@ -116,7 +116,7 @@ export interface DataSourcesApiInterface {
116
116
  */
117
117
  deleteDataSourceRaw(requestParameters: DeleteDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
118
118
  /**
119
- * Move a connector and its schemas/tables to trash. Soft-delete via the path_part subtree (schemas + tables are children, so they trash with it). Each modeled table\'s summary Qdrant point carries that table\'s path_part, so the set-trashed workflow flips it to trashed too — keeping trashed tables out of the agent\'s table search (best-effort, mirrors the document delete path).
119
+ * Move a connector and its schemas/tables to trash. Soft-delete via the path_part subtree (schemas + tables are children, so they trash with it). Each modeled table\'s summary Qdrant point carries that table\'s path_part, so the set-trashed workflow flips it to trashed too — keeping trashed tables out of the agent\'s table search (best-effort, mirrors the document delete path). A YIDINGSYNC connector also owns a daily crawl schedule, which is removed here: left behind, it would fire every night at a connector that is gone. The check is not redundant — unlike the best-effort trash sync above, ``delete_connector_schedule`` re-raises anything that is not NOT_FOUND, so calling it for a DIRECT connector would put a Temporal outage in the way of a delete that never needed Temporal at all.
120
120
  * Delete Data Source Handler
121
121
  */
122
122
  deleteDataSource(requestParameters: DeleteDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -350,7 +350,7 @@ export interface DataSourcesApiInterface {
350
350
  */
351
351
  syncDataSourceRequestOpts(requestParameters: SyncDataSourceRequest): Promise<runtime.RequestOpts>;
352
352
  /**
353
- * Reconcile modeled tables against the live external catalog. Requires ``can_write``. Re-introspects each modeled schema and, per table: a schema change (columns added/removed/retyped) refreshes ``column_config`` (preserving the admin\'s ``exposed``/``comment`` field-modeling) and re-summarizes + re-embeds; an unchanged table is a no-op; a table dropped from the source is soft-deleted (keeping the \"was modeled, now gone\" record) and its embedding purged. It never models tables that were not imported.
353
+ * Reconcile modeled tables against the live external catalog. Requires ``can_write``. Re-introspects each modeled schema and, per table: a schema change (columns added/removed/retyped) refreshes ``column_config`` (preserving the admin\'s ``exposed``/``comment`` field-modeling) and re-summarizes + re-embeds; an unchanged table is a no-op; a table dropped from the source is soft-deleted (keeping the \"was modeled, now gone\" record) and its embedding purged. It never models tables that were not imported. A crawler-fed connector has no catalog to reconcile against, so it starts a crawl instead and returns 202.
354
354
  * @summary Sync Data Source Handler
355
355
  * @param {string} dataSourceId
356
356
  * @param {*} [options] Override http request option.
@@ -359,10 +359,10 @@ export interface DataSourcesApiInterface {
359
359
  */
360
360
  syncDataSourceRaw(requestParameters: SyncDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataSourceSyncResponse>>;
361
361
  /**
362
- * Reconcile modeled tables against the live external catalog. Requires ``can_write``. Re-introspects each modeled schema and, per table: a schema change (columns added/removed/retyped) refreshes ``column_config`` (preserving the admin\'s ``exposed``/``comment`` field-modeling) and re-summarizes + re-embeds; an unchanged table is a no-op; a table dropped from the source is soft-deleted (keeping the \"was modeled, now gone\" record) and its embedding purged. It never models tables that were not imported.
362
+ * Reconcile modeled tables against the live external catalog. Requires ``can_write``. Re-introspects each modeled schema and, per table: a schema change (columns added/removed/retyped) refreshes ``column_config`` (preserving the admin\'s ``exposed``/``comment`` field-modeling) and re-summarizes + re-embeds; an unchanged table is a no-op; a table dropped from the source is soft-deleted (keeping the \"was modeled, now gone\" record) and its embedding purged. It never models tables that were not imported. A crawler-fed connector has no catalog to reconcile against, so it starts a crawl instead and returns 202.
363
363
  * Sync Data Source Handler
364
364
  */
365
- syncDataSource(requestParameters: SyncDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataSourceSyncResponse>;
365
+ syncDataSource(requestParameters: SyncDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataSourceSyncResponse | null | undefined>;
366
366
  /**
367
367
  * Creates request options for testDataSourceConnection without sending the request
368
368
  * @param {string} dataSourceId
@@ -414,7 +414,7 @@ export interface DataSourcesApiInterface {
414
414
  */
415
415
  updateDataSourceRequestOpts(requestParameters: UpdateDataSourceOperationRequest): Promise<runtime.RequestOpts>;
416
416
  /**
417
- * Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move); supplying ``connection_config`` additionally requires OWNER/ADMIN. Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable.
417
+ * Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move); supplying ``connection_config`` additionally requires OWNER/ADMIN. Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable. A fresh ``source_config`` re-arms the crawl schedule, so changing ``cron`` takes effect immediately rather than at the next provisioning.
418
418
  * @summary Update Data Source Handler
419
419
  * @param {string} dataSourceId
420
420
  * @param {UpdateDataSourceRequest} updateDataSourceRequest
@@ -424,7 +424,7 @@ export interface DataSourcesApiInterface {
424
424
  */
425
425
  updateDataSourceRaw(requestParameters: UpdateDataSourceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataSourceResponse>>;
426
426
  /**
427
- * Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move); supplying ``connection_config`` additionally requires OWNER/ADMIN. Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable.
427
+ * Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move); supplying ``connection_config`` additionally requires OWNER/ADMIN. Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable. A fresh ``source_config`` re-arms the crawl schedule, so changing ``cron`` takes effect immediately rather than at the next provisioning.
428
428
  * Update Data Source Handler
429
429
  */
430
430
  updateDataSource(requestParameters: UpdateDataSourceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataSourceResponse>;
@@ -477,12 +477,12 @@ export declare class DataSourcesApi extends runtime.BaseAPI implements DataSourc
477
477
  */
478
478
  deleteDataSourceRequestOpts(requestParameters: DeleteDataSourceRequest): Promise<runtime.RequestOpts>;
479
479
  /**
480
- * Move a connector and its schemas/tables to trash. Soft-delete via the path_part subtree (schemas + tables are children, so they trash with it). Each modeled table\'s summary Qdrant point carries that table\'s path_part, so the set-trashed workflow flips it to trashed too — keeping trashed tables out of the agent\'s table search (best-effort, mirrors the document delete path).
480
+ * Move a connector and its schemas/tables to trash. Soft-delete via the path_part subtree (schemas + tables are children, so they trash with it). Each modeled table\'s summary Qdrant point carries that table\'s path_part, so the set-trashed workflow flips it to trashed too — keeping trashed tables out of the agent\'s table search (best-effort, mirrors the document delete path). A YIDINGSYNC connector also owns a daily crawl schedule, which is removed here: left behind, it would fire every night at a connector that is gone. The check is not redundant — unlike the best-effort trash sync above, ``delete_connector_schedule`` re-raises anything that is not NOT_FOUND, so calling it for a DIRECT connector would put a Temporal outage in the way of a delete that never needed Temporal at all.
481
481
  * Delete Data Source Handler
482
482
  */
483
483
  deleteDataSourceRaw(requestParameters: DeleteDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
484
484
  /**
485
- * Move a connector and its schemas/tables to trash. Soft-delete via the path_part subtree (schemas + tables are children, so they trash with it). Each modeled table\'s summary Qdrant point carries that table\'s path_part, so the set-trashed workflow flips it to trashed too — keeping trashed tables out of the agent\'s table search (best-effort, mirrors the document delete path).
485
+ * Move a connector and its schemas/tables to trash. Soft-delete via the path_part subtree (schemas + tables are children, so they trash with it). Each modeled table\'s summary Qdrant point carries that table\'s path_part, so the set-trashed workflow flips it to trashed too — keeping trashed tables out of the agent\'s table search (best-effort, mirrors the document delete path). A YIDINGSYNC connector also owns a daily crawl schedule, which is removed here: left behind, it would fire every night at a connector that is gone. The check is not redundant — unlike the best-effort trash sync above, ``delete_connector_schedule`` re-raises anything that is not NOT_FOUND, so calling it for a DIRECT connector would put a Temporal outage in the way of a delete that never needed Temporal at all.
486
486
  * Delete Data Source Handler
487
487
  */
488
488
  deleteDataSource(requestParameters: DeleteDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -631,15 +631,15 @@ export declare class DataSourcesApi extends runtime.BaseAPI implements DataSourc
631
631
  */
632
632
  syncDataSourceRequestOpts(requestParameters: SyncDataSourceRequest): Promise<runtime.RequestOpts>;
633
633
  /**
634
- * Reconcile modeled tables against the live external catalog. Requires ``can_write``. Re-introspects each modeled schema and, per table: a schema change (columns added/removed/retyped) refreshes ``column_config`` (preserving the admin\'s ``exposed``/``comment`` field-modeling) and re-summarizes + re-embeds; an unchanged table is a no-op; a table dropped from the source is soft-deleted (keeping the \"was modeled, now gone\" record) and its embedding purged. It never models tables that were not imported.
634
+ * Reconcile modeled tables against the live external catalog. Requires ``can_write``. Re-introspects each modeled schema and, per table: a schema change (columns added/removed/retyped) refreshes ``column_config`` (preserving the admin\'s ``exposed``/``comment`` field-modeling) and re-summarizes + re-embeds; an unchanged table is a no-op; a table dropped from the source is soft-deleted (keeping the \"was modeled, now gone\" record) and its embedding purged. It never models tables that were not imported. A crawler-fed connector has no catalog to reconcile against, so it starts a crawl instead and returns 202.
635
635
  * Sync Data Source Handler
636
636
  */
637
637
  syncDataSourceRaw(requestParameters: SyncDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataSourceSyncResponse>>;
638
638
  /**
639
- * Reconcile modeled tables against the live external catalog. Requires ``can_write``. Re-introspects each modeled schema and, per table: a schema change (columns added/removed/retyped) refreshes ``column_config`` (preserving the admin\'s ``exposed``/``comment`` field-modeling) and re-summarizes + re-embeds; an unchanged table is a no-op; a table dropped from the source is soft-deleted (keeping the \"was modeled, now gone\" record) and its embedding purged. It never models tables that were not imported.
639
+ * Reconcile modeled tables against the live external catalog. Requires ``can_write``. Re-introspects each modeled schema and, per table: a schema change (columns added/removed/retyped) refreshes ``column_config`` (preserving the admin\'s ``exposed``/``comment`` field-modeling) and re-summarizes + re-embeds; an unchanged table is a no-op; a table dropped from the source is soft-deleted (keeping the \"was modeled, now gone\" record) and its embedding purged. It never models tables that were not imported. A crawler-fed connector has no catalog to reconcile against, so it starts a crawl instead and returns 202.
640
640
  * Sync Data Source Handler
641
641
  */
642
- syncDataSource(requestParameters: SyncDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataSourceSyncResponse>;
642
+ syncDataSource(requestParameters: SyncDataSourceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataSourceSyncResponse | null | undefined>;
643
643
  /**
644
644
  * Creates request options for testDataSourceConnection without sending the request
645
645
  */
@@ -673,12 +673,12 @@ export declare class DataSourcesApi extends runtime.BaseAPI implements DataSourc
673
673
  */
674
674
  updateDataSourceRequestOpts(requestParameters: UpdateDataSourceOperationRequest): Promise<runtime.RequestOpts>;
675
675
  /**
676
- * Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move); supplying ``connection_config`` additionally requires OWNER/ADMIN. Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable.
676
+ * Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move); supplying ``connection_config`` additionally requires OWNER/ADMIN. Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable. A fresh ``source_config`` re-arms the crawl schedule, so changing ``cron`` takes effect immediately rather than at the next provisioning.
677
677
  * Update Data Source Handler
678
678
  */
679
679
  updateDataSourceRaw(requestParameters: UpdateDataSourceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataSourceResponse>>;
680
680
  /**
681
- * Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move); supplying ``connection_config`` additionally requires OWNER/ADMIN. Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable.
681
+ * Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move); supplying ``connection_config`` additionally requires OWNER/ADMIN. Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable. A fresh ``source_config`` re-arms the crawl schedule, so changing ``cron`` takes effect immediately rather than at the next provisioning.
682
682
  * Update Data Source Handler
683
683
  */
684
684
  updateDataSource(requestParameters: UpdateDataSourceOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataSourceResponse>;
@@ -103,7 +103,7 @@ export class DataSourcesApi extends runtime.BaseAPI {
103
103
  });
104
104
  }
105
105
  /**
106
- * Move a connector and its schemas/tables to trash. Soft-delete via the path_part subtree (schemas + tables are children, so they trash with it). Each modeled table\'s summary Qdrant point carries that table\'s path_part, so the set-trashed workflow flips it to trashed too — keeping trashed tables out of the agent\'s table search (best-effort, mirrors the document delete path).
106
+ * Move a connector and its schemas/tables to trash. Soft-delete via the path_part subtree (schemas + tables are children, so they trash with it). Each modeled table\'s summary Qdrant point carries that table\'s path_part, so the set-trashed workflow flips it to trashed too — keeping trashed tables out of the agent\'s table search (best-effort, mirrors the document delete path). A YIDINGSYNC connector also owns a daily crawl schedule, which is removed here: left behind, it would fire every night at a connector that is gone. The check is not redundant — unlike the best-effort trash sync above, ``delete_connector_schedule`` re-raises anything that is not NOT_FOUND, so calling it for a DIRECT connector would put a Temporal outage in the way of a delete that never needed Temporal at all.
107
107
  * Delete Data Source Handler
108
108
  */
109
109
  deleteDataSourceRaw(requestParameters, initOverrides) {
@@ -114,7 +114,7 @@ export class DataSourcesApi extends runtime.BaseAPI {
114
114
  });
115
115
  }
116
116
  /**
117
- * Move a connector and its schemas/tables to trash. Soft-delete via the path_part subtree (schemas + tables are children, so they trash with it). Each modeled table\'s summary Qdrant point carries that table\'s path_part, so the set-trashed workflow flips it to trashed too — keeping trashed tables out of the agent\'s table search (best-effort, mirrors the document delete path).
117
+ * Move a connector and its schemas/tables to trash. Soft-delete via the path_part subtree (schemas + tables are children, so they trash with it). Each modeled table\'s summary Qdrant point carries that table\'s path_part, so the set-trashed workflow flips it to trashed too — keeping trashed tables out of the agent\'s table search (best-effort, mirrors the document delete path). A YIDINGSYNC connector also owns a daily crawl schedule, which is removed here: left behind, it would fire every night at a connector that is gone. The check is not redundant — unlike the best-effort trash sync above, ``delete_connector_schedule`` re-raises anything that is not NOT_FOUND, so calling it for a DIRECT connector would put a Temporal outage in the way of a delete that never needed Temporal at all.
118
118
  * Delete Data Source Handler
119
119
  */
120
120
  deleteDataSource(requestParameters, initOverrides) {
@@ -655,7 +655,7 @@ export class DataSourcesApi extends runtime.BaseAPI {
655
655
  });
656
656
  }
657
657
  /**
658
- * Reconcile modeled tables against the live external catalog. Requires ``can_write``. Re-introspects each modeled schema and, per table: a schema change (columns added/removed/retyped) refreshes ``column_config`` (preserving the admin\'s ``exposed``/``comment`` field-modeling) and re-summarizes + re-embeds; an unchanged table is a no-op; a table dropped from the source is soft-deleted (keeping the \"was modeled, now gone\" record) and its embedding purged. It never models tables that were not imported.
658
+ * Reconcile modeled tables against the live external catalog. Requires ``can_write``. Re-introspects each modeled schema and, per table: a schema change (columns added/removed/retyped) refreshes ``column_config`` (preserving the admin\'s ``exposed``/``comment`` field-modeling) and re-summarizes + re-embeds; an unchanged table is a no-op; a table dropped from the source is soft-deleted (keeping the \"was modeled, now gone\" record) and its embedding purged. It never models tables that were not imported. A crawler-fed connector has no catalog to reconcile against, so it starts a crawl instead and returns 202.
659
659
  * Sync Data Source Handler
660
660
  */
661
661
  syncDataSourceRaw(requestParameters, initOverrides) {
@@ -666,13 +666,20 @@ export class DataSourcesApi extends runtime.BaseAPI {
666
666
  });
667
667
  }
668
668
  /**
669
- * Reconcile modeled tables against the live external catalog. Requires ``can_write``. Re-introspects each modeled schema and, per table: a schema change (columns added/removed/retyped) refreshes ``column_config`` (preserving the admin\'s ``exposed``/``comment`` field-modeling) and re-summarizes + re-embeds; an unchanged table is a no-op; a table dropped from the source is soft-deleted (keeping the \"was modeled, now gone\" record) and its embedding purged. It never models tables that were not imported.
669
+ * Reconcile modeled tables against the live external catalog. Requires ``can_write``. Re-introspects each modeled schema and, per table: a schema change (columns added/removed/retyped) refreshes ``column_config`` (preserving the admin\'s ``exposed``/``comment`` field-modeling) and re-summarizes + re-embeds; an unchanged table is a no-op; a table dropped from the source is soft-deleted (keeping the \"was modeled, now gone\" record) and its embedding purged. It never models tables that were not imported. A crawler-fed connector has no catalog to reconcile against, so it starts a crawl instead and returns 202.
670
670
  * Sync Data Source Handler
671
671
  */
672
672
  syncDataSource(requestParameters, initOverrides) {
673
673
  return __awaiter(this, void 0, void 0, function* () {
674
674
  const response = yield this.syncDataSourceRaw(requestParameters, initOverrides);
675
- return yield response.value();
675
+ switch (response.raw.status) {
676
+ case 200:
677
+ return yield response.value();
678
+ case 202:
679
+ return null;
680
+ default:
681
+ return yield response.value();
682
+ }
676
683
  });
677
684
  }
678
685
  /**
@@ -804,7 +811,7 @@ export class DataSourcesApi extends runtime.BaseAPI {
804
811
  });
805
812
  }
806
813
  /**
807
- * Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move); supplying ``connection_config`` additionally requires OWNER/ADMIN. Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable.
814
+ * Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move); supplying ``connection_config`` additionally requires OWNER/ADMIN. Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable. A fresh ``source_config`` re-arms the crawl schedule, so changing ``cron`` takes effect immediately rather than at the next provisioning.
808
815
  * Update Data Source Handler
809
816
  */
810
817
  updateDataSourceRaw(requestParameters, initOverrides) {
@@ -815,7 +822,7 @@ export class DataSourcesApi extends runtime.BaseAPI {
815
822
  });
816
823
  }
817
824
  /**
818
- * Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move); supplying ``connection_config`` additionally requires OWNER/ADMIN. Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable.
825
+ * Rename, move, and/or re-credential a connector. Requires ``can_write`` on the connector (and on the destination folder for a move); supplying ``connection_config`` additionally requires OWNER/ADMIN. Fresh ``connection_config`` is re-validated against the DB before persisting (bad creds → 400, consistent with create); creds are never echoed back. ``engine`` is immutable. A fresh ``source_config`` re-arms the crawl schedule, so changing ``cron`` takes effect immediately rather than at the next provisioning.
819
826
  * Update Data Source Handler
820
827
  */
821
828
  updateDataSource(requestParameters, initOverrides) {
@@ -0,0 +1,65 @@
1
+ /**
2
+ * Knowledge Stack API
3
+ * Knowledge Stack backend API for authentication and knowledge management. ## Integrating (RPA / machine clients) **Base URL.** Knowledge Stack is self-hosted — point at your own deployment host (see `servers`). The `localhost` entry is for local development only. **Authentication.** Send `Authorization: Bearer <api-key>` on every request. Mint an API key once via `POST /v1/api-keys` from a signed-in browser session; the raw `sk-user-...` secret is returned **only** at creation, so store it then. A key inherits its owning user\'s live tenant role and path permissions — create RPA keys from a least-privilege user, and set `expires_at` for rotation. The `ks_uat` cookie scheme is browser-only and cannot be used by headless clients. **Async work is polled, not pushed.** There are no outbound webhooks. - `POST /v1/documents/ingest` returns `201` immediately with a `workflow_id`; poll `GET /v1/system-jobs/document_versions/{workflow_id}` until `status` is terminal (anything other than `pending`/`processing`). The `Location` response header points at this poll resource. - `POST /v1/workflow-runs/{run_id}/start` returns `202`; poll `GET /v1/workflow-runs/{run_id}` until `execution_state` is `COMPLETED` or `FAILED`. The `Location` header points at the run resource. - `POST /v1/agent/ask` is **synchronous** — it blocks until the agent finishes and returns the answer inline. Use a generous HTTP timeout. **Pagination.** List endpoints accept `limit`/`offset` and return `{items, total, limit, offset}`. **Errors.** Every non-2xx body is `{detail, code, request_id}`. `code` is a stable value from a closed set (see the `ErrorResponse` schema\'s `code` enum) — branch on it rather than parsing `detail`. Quota rejections return `429` with a `Retry-After` header; transient lock contention returns a retryable `503`. Quote `request_id` (also the `x-request-id` response header) to support. **Idempotency.** `POST /v1/workflow-runs` accepts an `idempotency_key` to dedupe retried run creation. `agent/ask` charges one message *before* running and does not refund a client-cancelled call.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Where a connector points, with the password left out.
14
+ * @export
15
+ * @interface ConnectionSummary
16
+ */
17
+ export interface ConnectionSummary {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ConnectionSummary
22
+ */
23
+ host: string;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof ConnectionSummary
28
+ */
29
+ port?: number | null;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ConnectionSummary
34
+ */
35
+ database: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ConnectionSummary
40
+ */
41
+ username: string;
42
+ }
43
+ export declare const ConnectionSummaryPropertyValidationAttributesMap: {
44
+ [property: string]: {
45
+ maxLength?: number;
46
+ minLength?: number;
47
+ pattern?: string;
48
+ maximum?: number;
49
+ exclusiveMaximum?: boolean;
50
+ minimum?: number;
51
+ exclusiveMinimum?: boolean;
52
+ multipleOf?: number;
53
+ maxItems?: number;
54
+ minItems?: number;
55
+ uniqueItems?: boolean;
56
+ };
57
+ };
58
+ /**
59
+ * Check if a given object implements the ConnectionSummary interface.
60
+ */
61
+ export declare function instanceOfConnectionSummary(value: object): value is ConnectionSummary;
62
+ export declare function ConnectionSummaryFromJSON(json: any): ConnectionSummary;
63
+ export declare function ConnectionSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConnectionSummary;
64
+ export declare function ConnectionSummaryToJSON(json: any): ConnectionSummary;
65
+ export declare function ConnectionSummaryToJSONTyped(value?: ConnectionSummary | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Knowledge Stack API
5
+ * Knowledge Stack backend API for authentication and knowledge management. ## Integrating (RPA / machine clients) **Base URL.** Knowledge Stack is self-hosted — point at your own deployment host (see `servers`). The `localhost` entry is for local development only. **Authentication.** Send `Authorization: Bearer <api-key>` on every request. Mint an API key once via `POST /v1/api-keys` from a signed-in browser session; the raw `sk-user-...` secret is returned **only** at creation, so store it then. A key inherits its owning user\'s live tenant role and path permissions — create RPA keys from a least-privilege user, and set `expires_at` for rotation. The `ks_uat` cookie scheme is browser-only and cannot be used by headless clients. **Async work is polled, not pushed.** There are no outbound webhooks. - `POST /v1/documents/ingest` returns `201` immediately with a `workflow_id`; poll `GET /v1/system-jobs/document_versions/{workflow_id}` until `status` is terminal (anything other than `pending`/`processing`). The `Location` response header points at this poll resource. - `POST /v1/workflow-runs/{run_id}/start` returns `202`; poll `GET /v1/workflow-runs/{run_id}` until `execution_state` is `COMPLETED` or `FAILED`. The `Location` header points at the run resource. - `POST /v1/agent/ask` is **synchronous** — it blocks until the agent finishes and returns the answer inline. Use a generous HTTP timeout. **Pagination.** List endpoints accept `limit`/`offset` and return `{items, total, limit, offset}`. **Errors.** Every non-2xx body is `{detail, code, request_id}`. `code` is a stable value from a closed set (see the `ErrorResponse` schema\'s `code` enum) — branch on it rather than parsing `detail`. Quota rejections return `429` with a `Retry-After` header; transient lock contention returns a retryable `503`. Quote `request_id` (also the `x-request-id` response header) to support. **Idempotency.** `POST /v1/workflow-runs` accepts an `idempotency_key` to dedupe retried run creation. `agent/ask` charges one message *before* running and does not refund a client-cancelled call.
6
+ *
7
+ * The version of the OpenAPI document: 0.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+ export const ConnectionSummaryPropertyValidationAttributesMap = {};
15
+ /**
16
+ * Check if a given object implements the ConnectionSummary interface.
17
+ */
18
+ export function instanceOfConnectionSummary(value) {
19
+ if (!('host' in value) || value['host'] === undefined)
20
+ return false;
21
+ if (!('database' in value) || value['database'] === undefined)
22
+ return false;
23
+ if (!('username' in value) || value['username'] === undefined)
24
+ return false;
25
+ return true;
26
+ }
27
+ export function ConnectionSummaryFromJSON(json) {
28
+ return ConnectionSummaryFromJSONTyped(json, false);
29
+ }
30
+ export function ConnectionSummaryFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'host': json['host'],
36
+ 'port': json['port'] == null ? undefined : json['port'],
37
+ 'database': json['database'],
38
+ 'username': json['username'],
39
+ };
40
+ }
41
+ export function ConnectionSummaryToJSON(json) {
42
+ return ConnectionSummaryToJSONTyped(json, false);
43
+ }
44
+ export function ConnectionSummaryToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'host': value['host'],
50
+ 'port': value['port'],
51
+ 'database': value['database'],
52
+ 'username': value['username'],
53
+ };
54
+ }