@knowledge-stack/ksapi 1.117.0 → 1.118.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/.openapi-generator/FILES +2 -0
  2. package/README.md +4 -2
  3. package/dist/apis/DataSourcesApi.d.ts +42 -1
  4. package/dist/apis/DataSourcesApi.js +53 -0
  5. package/dist/esm/apis/DataSourcesApi.d.ts +42 -1
  6. package/dist/esm/apis/DataSourcesApi.js +54 -1
  7. package/dist/esm/models/CloneWorkflowRunRequest.d.ts +1 -1
  8. package/dist/esm/models/InputSnapshot.d.ts +10 -3
  9. package/dist/esm/models/InputSnapshot.js +3 -1
  10. package/dist/esm/models/UpdateApiConnectionRequest.d.ts +16 -0
  11. package/dist/esm/models/UpdateApiConnectionRequest.js +8 -0
  12. package/dist/esm/models/UpdateDataSourceRequest.d.ts +58 -0
  13. package/dist/esm/models/UpdateDataSourceRequest.js +49 -0
  14. package/dist/esm/models/UpdateWorkflowRunRequest.d.ts +1 -1
  15. package/dist/esm/models/index.d.ts +1 -0
  16. package/dist/esm/models/index.js +1 -0
  17. package/dist/models/CloneWorkflowRunRequest.d.ts +1 -1
  18. package/dist/models/InputSnapshot.d.ts +10 -3
  19. package/dist/models/InputSnapshot.js +3 -1
  20. package/dist/models/UpdateApiConnectionRequest.d.ts +16 -0
  21. package/dist/models/UpdateApiConnectionRequest.js +8 -0
  22. package/dist/models/UpdateDataSourceRequest.d.ts +58 -0
  23. package/dist/models/UpdateDataSourceRequest.js +57 -0
  24. package/dist/models/UpdateWorkflowRunRequest.d.ts +1 -1
  25. package/dist/models/index.d.ts +1 -0
  26. package/dist/models/index.js +1 -0
  27. package/docs/DataSourcesApi.md +79 -0
  28. package/docs/InputSnapshot.md +1 -1
  29. package/docs/UpdateApiConnectionRequest.md +5 -1
  30. package/docs/UpdateDataSourceRequest.md +37 -0
  31. package/package.json +1 -1
  32. package/src/apis/DataSourcesApi.ts +99 -0
  33. package/src/models/CloneWorkflowRunRequest.ts +1 -1
  34. package/src/models/InputSnapshot.ts +11 -4
  35. package/src/models/UpdateApiConnectionRequest.ts +24 -0
  36. package/src/models/UpdateDataSourceRequest.ts +99 -0
  37. package/src/models/UpdateWorkflowRunRequest.ts +1 -1
  38. package/src/models/index.ts +1 -0
@@ -0,0 +1,99 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Knowledge Stack API
5
+ * Knowledge Stack backend API for authentication and knowledge management
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
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ * Rename and/or move a connector (PATCH). Both fields optional.
18
+ *
19
+ * A body with both ``None`` is rejected as a no-op 400. ``name`` renames
20
+ * the connector path_part; ``parent_path_part_id`` moves it under a new
21
+ * FOLDER (the move cascades ``materialized_path`` to the modeled-table
22
+ * children). Connection credentials and engine are not editable here.
23
+ * @export
24
+ * @interface UpdateDataSourceRequest
25
+ */
26
+ export interface UpdateDataSourceRequest {
27
+ /**
28
+ *
29
+ * @type {string}
30
+ * @memberof UpdateDataSourceRequest
31
+ */
32
+ name?: string | null;
33
+ /**
34
+ * New parent FOLDER path_part to move the connector under.
35
+ * @type {string}
36
+ * @memberof UpdateDataSourceRequest
37
+ */
38
+ parentPathPartId?: string | null;
39
+ }
40
+ export const UpdateDataSourceRequestPropertyValidationAttributesMap: {
41
+ [property: string]: {
42
+ maxLength?: number,
43
+ minLength?: number,
44
+ pattern?: string,
45
+ maximum?: number,
46
+ exclusiveMaximum?: boolean,
47
+ minimum?: number,
48
+ exclusiveMinimum?: boolean,
49
+ multipleOf?: number,
50
+ maxItems?: number,
51
+ minItems?: number,
52
+ uniqueItems?: boolean
53
+ }
54
+ } = {
55
+ name: {
56
+ maxLength: 255,
57
+ minLength: 1,
58
+ },
59
+ }
60
+
61
+
62
+ /**
63
+ * Check if a given object implements the UpdateDataSourceRequest interface.
64
+ */
65
+ export function instanceOfUpdateDataSourceRequest(value: object): value is UpdateDataSourceRequest {
66
+ return true;
67
+ }
68
+
69
+ export function UpdateDataSourceRequestFromJSON(json: any): UpdateDataSourceRequest {
70
+ return UpdateDataSourceRequestFromJSONTyped(json, false);
71
+ }
72
+
73
+ export function UpdateDataSourceRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateDataSourceRequest {
74
+ if (json == null) {
75
+ return json;
76
+ }
77
+ return {
78
+
79
+ 'name': json['name'] == null ? undefined : json['name'],
80
+ 'parentPathPartId': json['parent_path_part_id'] == null ? undefined : json['parent_path_part_id'],
81
+ };
82
+ }
83
+
84
+ export function UpdateDataSourceRequestToJSON(json: any): UpdateDataSourceRequest {
85
+ return UpdateDataSourceRequestToJSONTyped(json, false);
86
+ }
87
+
88
+ export function UpdateDataSourceRequestToJSONTyped(value?: UpdateDataSourceRequest | null, ignoreDiscriminator: boolean = false): any {
89
+ if (value == null) {
90
+ return value;
91
+ }
92
+
93
+ return {
94
+
95
+ 'name': value['name'],
96
+ 'parent_path_part_id': value['parentPathPartId'],
97
+ };
98
+ }
99
+
@@ -25,7 +25,7 @@ import { mapValues } from '../runtime';
25
25
  */
26
26
  export interface UpdateWorkflowRunRequest {
27
27
  /**
28
- * New KB-reference scope (DOCUMENT + FOLDER pp_ids). Replaces the row's ``input_path_part_ids`` wholesale. Uploaded files live in ``inputs/`` and are walked at Start; they are not part of this list.
28
+ * New KB-reference scope (DOCUMENT + FOLDER + DATA_SOURCE + API_CONNECTION pp_ids). Replaces the row's ``input_path_part_ids`` wholesale. Uploaded files live in ``inputs/`` and are walked at Start; they are not part of this list.
29
29
  * @type {Array<string>}
30
30
  * @memberof UpdateWorkflowRunRequest
31
31
  */
@@ -254,6 +254,7 @@ export * from './TrashItemResponse';
254
254
  export * from './UpdateApiConnectionRequest';
255
255
  export * from './UpdateChunkContentRequest';
256
256
  export * from './UpdateChunkMetadataRequest';
257
+ export * from './UpdateDataSourceRequest';
257
258
  export * from './UpdateDocumentRequest';
258
259
  export * from './UpdateFolderRequest';
259
260
  export * from './UpdateGroupPermissionRequest';