@knowledge-stack/ksapi 1.117.0 → 1.119.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 (229) hide show
  1. package/.openapi-generator/FILES +40 -4
  2. package/README.md +27 -4
  3. package/dist/apis/DataSourcesApi.d.ts +211 -9
  4. package/dist/apis/DataSourcesApi.js +260 -4
  5. package/dist/apis/DocumentVersionsApi.d.ts +4 -4
  6. package/dist/apis/DocumentVersionsApi.js +2 -2
  7. package/dist/apis/FoldersApi.d.ts +9 -9
  8. package/dist/apis/FoldersApi.js +2 -2
  9. package/dist/esm/apis/DataSourcesApi.d.ts +211 -9
  10. package/dist/esm/apis/DataSourcesApi.js +261 -5
  11. package/dist/esm/apis/DocumentVersionsApi.d.ts +4 -4
  12. package/dist/esm/apis/DocumentVersionsApi.js +2 -2
  13. package/dist/esm/apis/FoldersApi.d.ts +9 -9
  14. package/dist/esm/apis/FoldersApi.js +3 -3
  15. package/dist/esm/models/BlockChangeType.d.ts +26 -0
  16. package/dist/esm/models/BlockChangeType.js +44 -0
  17. package/dist/esm/models/BlockKind.d.ts +28 -0
  18. package/dist/esm/models/BlockKind.js +46 -0
  19. package/dist/esm/models/BulkModelTablesRequest.d.ts +48 -0
  20. package/dist/esm/models/BulkModelTablesRequest.js +50 -0
  21. package/dist/esm/models/BulkModelTablesResponse.d.ts +48 -0
  22. package/dist/esm/models/BulkModelTablesResponse.js +45 -0
  23. package/dist/esm/models/CellChange.d.ts +47 -0
  24. package/dist/esm/models/CellChange.js +14 -0
  25. package/dist/esm/models/CellDiff.d.ts +7 -0
  26. package/dist/esm/models/CellDiff.js +5 -0
  27. package/dist/esm/models/ChangeClass.d.ts +29 -0
  28. package/dist/esm/models/ChangeClass.js +47 -0
  29. package/dist/esm/models/CloneWorkflowRunRequest.d.ts +1 -1
  30. package/dist/esm/models/DataSourceDescriptionResponse.d.ts +53 -0
  31. package/dist/esm/models/DataSourceDescriptionResponse.js +48 -0
  32. package/dist/esm/models/DataSourceDetailResponse.d.ts +13 -4
  33. package/dist/esm/models/DataSourceDetailResponse.js +6 -4
  34. package/dist/esm/models/DataSourceSchemaListItem.d.ts +53 -0
  35. package/dist/esm/models/DataSourceSchemaListItem.js +48 -0
  36. package/dist/esm/models/DataSourceSchemaListResponse.d.ts +3 -3
  37. package/dist/esm/models/DataSourceSchemaListResponse.js +3 -3
  38. package/dist/esm/models/DataSourceSchemaResponse.d.ts +95 -1
  39. package/dist/esm/models/DataSourceSchemaResponse.js +61 -0
  40. package/dist/esm/models/DataSourceTableResponse.d.ts +8 -5
  41. package/dist/esm/models/DataSourceTableResponse.js +4 -2
  42. package/dist/esm/models/DiffFormat.d.ts +2 -0
  43. package/dist/esm/models/DiffFormat.js +3 -1
  44. package/dist/esm/models/DocumentBlockChange.d.ts +174 -0
  45. package/dist/esm/models/DocumentBlockChange.js +97 -0
  46. package/dist/esm/models/DocumentDiff.d.ts +102 -0
  47. package/dist/esm/models/DocumentDiff.js +77 -0
  48. package/dist/esm/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse.d.ts → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse.d.ts} +9 -6
  49. package/dist/esm/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse.js → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse.js} +11 -6
  50. package/dist/esm/models/InputSnapshot.d.ts +10 -3
  51. package/dist/esm/models/InputSnapshot.js +3 -1
  52. package/dist/esm/models/ModelTableResult.d.ts +81 -0
  53. package/dist/esm/models/ModelTableResult.js +63 -0
  54. package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator.d.ts +66 -0
  55. package/dist/esm/models/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator.js → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator.js} +12 -12
  56. package/dist/esm/models/PartType.d.ts +1 -0
  57. package/dist/esm/models/PartType.js +1 -0
  58. package/dist/esm/models/PixelRegion.d.ts +65 -0
  59. package/dist/esm/models/PixelRegion.js +56 -0
  60. package/dist/esm/models/ReferenceType.d.ts +1 -0
  61. package/dist/esm/models/ReferenceType.js +1 -0
  62. package/dist/esm/models/RevisionEdit.d.ts +71 -0
  63. package/dist/esm/models/RevisionEdit.js +57 -0
  64. package/dist/esm/models/SearchablePartType.d.ts +2 -0
  65. package/dist/esm/models/SearchablePartType.js +2 -0
  66. package/dist/esm/models/SheetVisibilityChange.d.ts +63 -0
  67. package/dist/esm/models/SheetVisibilityChange.js +52 -0
  68. package/dist/esm/models/StructuredChange.d.ts +69 -0
  69. package/dist/esm/models/StructuredChange.js +57 -0
  70. package/dist/esm/models/StructuredChangeType.d.ts +26 -0
  71. package/dist/esm/models/StructuredChangeType.js +44 -0
  72. package/dist/esm/models/StructuredDiff.d.ts +82 -0
  73. package/dist/esm/models/StructuredDiff.js +65 -0
  74. package/dist/esm/models/TableCellChange.d.ts +72 -0
  75. package/dist/esm/models/TableCellChange.js +61 -0
  76. package/dist/esm/models/UpdateApiConnectionRequest.d.ts +16 -0
  77. package/dist/esm/models/UpdateApiConnectionRequest.js +8 -0
  78. package/dist/esm/models/UpdateDataSourceRequest.d.ts +58 -0
  79. package/dist/esm/models/UpdateDataSourceRequest.js +49 -0
  80. package/dist/esm/models/UpdateWorkflowRunRequest.d.ts +1 -1
  81. package/dist/esm/models/VersionDiffResponse.d.ts +72 -1
  82. package/dist/esm/models/VersionDiffResponse.js +25 -0
  83. package/dist/esm/models/index.d.ts +20 -2
  84. package/dist/esm/models/index.js +20 -2
  85. package/dist/models/BlockChangeType.d.ts +26 -0
  86. package/dist/models/BlockChangeType.js +52 -0
  87. package/dist/models/BlockKind.d.ts +28 -0
  88. package/dist/models/BlockKind.js +54 -0
  89. package/dist/models/BulkModelTablesRequest.d.ts +48 -0
  90. package/dist/models/BulkModelTablesRequest.js +58 -0
  91. package/dist/models/BulkModelTablesResponse.d.ts +48 -0
  92. package/dist/models/BulkModelTablesResponse.js +53 -0
  93. package/dist/models/CellChange.d.ts +47 -0
  94. package/dist/models/CellChange.js +14 -0
  95. package/dist/models/CellDiff.d.ts +7 -0
  96. package/dist/models/CellDiff.js +5 -0
  97. package/dist/models/ChangeClass.d.ts +29 -0
  98. package/dist/models/ChangeClass.js +55 -0
  99. package/dist/models/CloneWorkflowRunRequest.d.ts +1 -1
  100. package/dist/models/DataSourceDescriptionResponse.d.ts +53 -0
  101. package/dist/models/DataSourceDescriptionResponse.js +56 -0
  102. package/dist/models/DataSourceDetailResponse.d.ts +13 -4
  103. package/dist/models/DataSourceDetailResponse.js +6 -4
  104. package/dist/models/DataSourceSchemaListItem.d.ts +53 -0
  105. package/dist/models/DataSourceSchemaListItem.js +56 -0
  106. package/dist/models/DataSourceSchemaListResponse.d.ts +3 -3
  107. package/dist/models/DataSourceSchemaListResponse.js +3 -3
  108. package/dist/models/DataSourceSchemaResponse.d.ts +95 -1
  109. package/dist/models/DataSourceSchemaResponse.js +62 -1
  110. package/dist/models/DataSourceTableResponse.d.ts +8 -5
  111. package/dist/models/DataSourceTableResponse.js +4 -2
  112. package/dist/models/DiffFormat.d.ts +2 -0
  113. package/dist/models/DiffFormat.js +3 -1
  114. package/dist/models/DocumentBlockChange.d.ts +174 -0
  115. package/dist/models/DocumentBlockChange.js +105 -0
  116. package/dist/models/DocumentDiff.d.ts +102 -0
  117. package/dist/models/DocumentDiff.js +85 -0
  118. package/dist/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse.d.ts → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse.d.ts} +9 -6
  119. package/dist/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse.js → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse.js} +15 -10
  120. package/dist/models/InputSnapshot.d.ts +10 -3
  121. package/dist/models/InputSnapshot.js +3 -1
  122. package/dist/models/ModelTableResult.d.ts +81 -0
  123. package/dist/models/ModelTableResult.js +71 -0
  124. package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator.d.ts +66 -0
  125. package/dist/models/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator.js → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator.js} +18 -18
  126. package/dist/models/PartType.d.ts +1 -0
  127. package/dist/models/PartType.js +1 -0
  128. package/dist/models/PixelRegion.d.ts +65 -0
  129. package/dist/models/PixelRegion.js +64 -0
  130. package/dist/models/ReferenceType.d.ts +1 -0
  131. package/dist/models/ReferenceType.js +1 -0
  132. package/dist/models/RevisionEdit.d.ts +71 -0
  133. package/dist/models/RevisionEdit.js +65 -0
  134. package/dist/models/SearchablePartType.d.ts +2 -0
  135. package/dist/models/SearchablePartType.js +2 -0
  136. package/dist/models/SheetVisibilityChange.d.ts +63 -0
  137. package/dist/models/SheetVisibilityChange.js +60 -0
  138. package/dist/models/StructuredChange.d.ts +69 -0
  139. package/dist/models/StructuredChange.js +65 -0
  140. package/dist/models/StructuredChangeType.d.ts +26 -0
  141. package/dist/models/StructuredChangeType.js +52 -0
  142. package/dist/models/StructuredDiff.d.ts +82 -0
  143. package/dist/models/StructuredDiff.js +73 -0
  144. package/dist/models/TableCellChange.d.ts +72 -0
  145. package/dist/models/TableCellChange.js +69 -0
  146. package/dist/models/UpdateApiConnectionRequest.d.ts +16 -0
  147. package/dist/models/UpdateApiConnectionRequest.js +8 -0
  148. package/dist/models/UpdateDataSourceRequest.d.ts +58 -0
  149. package/dist/models/UpdateDataSourceRequest.js +57 -0
  150. package/dist/models/UpdateWorkflowRunRequest.d.ts +1 -1
  151. package/dist/models/VersionDiffResponse.d.ts +72 -1
  152. package/dist/models/VersionDiffResponse.js +25 -0
  153. package/dist/models/index.d.ts +20 -2
  154. package/dist/models/index.js +20 -2
  155. package/docs/BlockChangeType.md +32 -0
  156. package/docs/BlockKind.md +32 -0
  157. package/docs/BulkModelTablesRequest.md +35 -0
  158. package/docs/BulkModelTablesResponse.md +35 -0
  159. package/docs/CellChange.md +15 -1
  160. package/docs/CellDiff.md +2 -0
  161. package/docs/ChangeClass.md +33 -0
  162. package/docs/ChunksApi.md +1 -1
  163. package/docs/DataSourceDescriptionResponse.md +37 -0
  164. package/docs/DataSourceDetailResponse.md +5 -3
  165. package/docs/DataSourceSchemaListItem.md +37 -0
  166. package/docs/DataSourceSchemaListResponse.md +1 -1
  167. package/docs/DataSourceSchemaResponse.md +29 -0
  168. package/docs/DataSourceTableResponse.md +3 -3
  169. package/docs/DataSourcesApi.md +394 -2
  170. package/docs/DocumentBlockChange.md +73 -0
  171. package/docs/DocumentDiff.md +51 -0
  172. package/docs/DocumentVersionsApi.md +1 -1
  173. package/docs/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse.md → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse.md} +12 -6
  174. package/docs/FoldersApi.md +5 -5
  175. package/docs/InputSnapshot.md +1 -1
  176. package/docs/ModelTableResult.md +43 -0
  177. package/docs/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator.md → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator.md} +5 -5
  178. package/docs/PixelRegion.md +41 -0
  179. package/docs/RevisionEdit.md +41 -0
  180. package/docs/SheetVisibilityChange.md +39 -0
  181. package/docs/StructuredChange.md +41 -0
  182. package/docs/StructuredChangeType.md +32 -0
  183. package/docs/StructuredDiff.md +45 -0
  184. package/docs/TableCellChange.md +43 -0
  185. package/docs/UpdateApiConnectionRequest.md +5 -1
  186. package/docs/UpdateDataSourceRequest.md +37 -0
  187. package/docs/VersionDiffResponse.md +23 -1
  188. package/package.json +1 -1
  189. package/src/apis/DataSourcesApi.ts +481 -8
  190. package/src/apis/DocumentVersionsApi.ts +4 -4
  191. package/src/apis/FoldersApi.ts +13 -13
  192. package/src/models/BlockChangeType.ts +54 -0
  193. package/src/models/BlockKind.ts +56 -0
  194. package/src/models/BulkModelTablesRequest.ts +95 -0
  195. package/src/models/BulkModelTablesResponse.ts +91 -0
  196. package/src/models/CellChange.ts +61 -0
  197. package/src/models/CellDiff.ts +16 -0
  198. package/src/models/ChangeClass.ts +57 -0
  199. package/src/models/CloneWorkflowRunRequest.ts +1 -1
  200. package/src/models/DataSourceDescriptionResponse.ts +92 -0
  201. package/src/models/DataSourceDetailResponse.ts +24 -13
  202. package/src/models/DataSourceSchemaListItem.ts +92 -0
  203. package/src/models/DataSourceSchemaListResponse.ts +10 -10
  204. package/src/models/DataSourceSchemaResponse.ts +157 -1
  205. package/src/models/DataSourceTableResponse.ts +11 -7
  206. package/src/models/DiffFormat.ts +3 -1
  207. package/src/models/DocumentBlockChange.ts +297 -0
  208. package/src/models/DocumentDiff.ts +169 -0
  209. package/src/models/{FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse.ts → FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse.ts} +19 -8
  210. package/src/models/InputSnapshot.ts +11 -4
  211. package/src/models/ModelTableResult.ts +136 -0
  212. package/src/models/{PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator.ts → PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceSchemaResponseDataSourceTableResponseApiConnectionResponseDiscriminator.ts} +25 -25
  213. package/src/models/PartType.ts +1 -0
  214. package/src/models/PixelRegion.ts +110 -0
  215. package/src/models/ReferenceType.ts +1 -0
  216. package/src/models/RevisionEdit.ts +125 -0
  217. package/src/models/SearchablePartType.ts +2 -0
  218. package/src/models/SheetVisibilityChange.ts +105 -0
  219. package/src/models/StructuredChange.ts +123 -0
  220. package/src/models/StructuredChangeType.ts +54 -0
  221. package/src/models/StructuredDiff.ts +140 -0
  222. package/src/models/TableCellChange.ts +129 -0
  223. package/src/models/UpdateApiConnectionRequest.ts +24 -0
  224. package/src/models/UpdateDataSourceRequest.ts +99 -0
  225. package/src/models/UpdateWorkflowRunRequest.ts +1 -1
  226. package/src/models/VersionDiffResponse.ts +112 -1
  227. package/src/models/index.ts +20 -2
  228. package/dist/esm/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator.d.ts +0 -66
  229. package/dist/models/PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseWorkflowDefinitionResponseWorkflowRunResponseDataSourceResponseDataSourceTableResponseApiConnectionResponseDiscriminator.d.ts +0 -66
@@ -46,6 +46,8 @@ function instanceOfDataSourceTableResponse(value) {
46
46
  return false;
47
47
  if (!('dataSourceId' in value) || value['dataSourceId'] === undefined)
48
48
  return false;
49
+ if (!('dataSourceSchemaId' in value) || value['dataSourceSchemaId'] === undefined)
50
+ return false;
49
51
  if (!('tableName' in value) || value['tableName'] === undefined)
50
52
  return false;
51
53
  if (!('description' in value) || value['description'] === undefined)
@@ -78,8 +80,8 @@ function DataSourceTableResponseFromJSONTyped(json, ignoreDiscriminator) {
78
80
  'tenantId': json['tenant_id'],
79
81
  'name': json['name'],
80
82
  'dataSourceId': json['data_source_id'],
83
+ 'dataSourceSchemaId': json['data_source_schema_id'],
81
84
  'tableName': json['table_name'],
82
- 'schemaName': json['schema_name'] == null ? undefined : json['schema_name'],
83
85
  'description': json['description'],
84
86
  'columnConfig': json['column_config'],
85
87
  'approvalState': (0, PathPartApprovalState_1.PathPartApprovalStateFromJSON)(json['approval_state']),
@@ -104,8 +106,8 @@ function DataSourceTableResponseToJSONTyped(value, ignoreDiscriminator = false)
104
106
  'tenant_id': value['tenantId'],
105
107
  'name': value['name'],
106
108
  'data_source_id': value['dataSourceId'],
109
+ 'data_source_schema_id': value['dataSourceSchemaId'],
107
110
  'table_name': value['tableName'],
108
- 'schema_name': value['schemaName'],
109
111
  'description': value['description'],
110
112
  'column_config': value['columnConfig'],
111
113
  'approval_state': (0, PathPartApprovalState_1.PathPartApprovalStateToJSON)(value['approvalState']),
@@ -16,6 +16,8 @@
16
16
  export declare const DiffFormat: {
17
17
  readonly Text: "text";
18
18
  readonly Cells: "cells";
19
+ readonly Structured: "structured";
20
+ readonly Document: "document";
19
21
  };
20
22
  export type DiffFormat = typeof DiffFormat[keyof typeof DiffFormat];
21
23
  export declare function instanceOfDiffFormat(value: any): boolean;
@@ -25,7 +25,9 @@ exports.DiffFormatToJSONTyped = DiffFormatToJSONTyped;
25
25
  */
26
26
  exports.DiffFormat = {
27
27
  Text: 'text',
28
- Cells: 'cells'
28
+ Cells: 'cells',
29
+ Structured: 'structured',
30
+ Document: 'document'
29
31
  };
30
32
  function instanceOfDiffFormat(value) {
31
33
  for (const key in exports.DiffFormat) {
@@ -0,0 +1,174 @@
1
+ /**
2
+ * Knowledge Stack API
3
+ * Knowledge Stack backend API for authentication and knowledge management
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
+ import type { TableCellChange } from './TableCellChange';
13
+ import type { ChangeClass } from './ChangeClass';
14
+ import type { PixelRegion } from './PixelRegion';
15
+ import type { BlockChangeType } from './BlockChangeType';
16
+ import type { DiffSpan } from './DiffSpan';
17
+ import type { RevisionEdit } from './RevisionEdit';
18
+ import type { BlockKind } from './BlockKind';
19
+ /**
20
+ * One changed block in a Word document, ordered by position.
21
+ *
22
+ * ``from_paragraph_index``/``to_paragraph_index`` are the 0-based position of
23
+ * the ``<w:p>`` in ``word/document.xml`` body (the same index citation anchors
24
+ * use, so the frontend aligns changes to its docx render). ``anchor_text`` is a
25
+ * text-match fallback for that alignment. ``old``/``new`` are null on the
26
+ * absent side; ``*_spans`` mark changed word ranges (CJK-aware).
27
+ * @export
28
+ * @interface DocumentBlockChange
29
+ */
30
+ export interface DocumentBlockChange {
31
+ /**
32
+ *
33
+ * @type {BlockChangeType}
34
+ * @memberof DocumentBlockChange
35
+ */
36
+ type: BlockChangeType;
37
+ /**
38
+ *
39
+ * @type {BlockKind}
40
+ * @memberof DocumentBlockChange
41
+ */
42
+ kind: BlockKind;
43
+ /**
44
+ *
45
+ * @type {ChangeClass}
46
+ * @memberof DocumentBlockChange
47
+ */
48
+ changeClass: ChangeClass;
49
+ /**
50
+ *
51
+ * @type {number}
52
+ * @memberof DocumentBlockChange
53
+ */
54
+ fromParagraphIndex: number | null;
55
+ /**
56
+ *
57
+ * @type {number}
58
+ * @memberof DocumentBlockChange
59
+ */
60
+ toParagraphIndex: number | null;
61
+ /**
62
+ *
63
+ * @type {string}
64
+ * @memberof DocumentBlockChange
65
+ */
66
+ oldText?: string | null;
67
+ /**
68
+ *
69
+ * @type {string}
70
+ * @memberof DocumentBlockChange
71
+ */
72
+ newText?: string | null;
73
+ /**
74
+ *
75
+ * @type {Array<DiffSpan>}
76
+ * @memberof DocumentBlockChange
77
+ */
78
+ oldSpans?: Array<DiffSpan> | null;
79
+ /**
80
+ *
81
+ * @type {Array<DiffSpan>}
82
+ * @memberof DocumentBlockChange
83
+ */
84
+ newSpans?: Array<DiffSpan> | null;
85
+ /**
86
+ *
87
+ * @type {boolean}
88
+ * @memberof DocumentBlockChange
89
+ */
90
+ formattingChanged?: boolean;
91
+ /**
92
+ *
93
+ * @type {string}
94
+ * @memberof DocumentBlockChange
95
+ */
96
+ numericDelta?: string | null;
97
+ /**
98
+ *
99
+ * @type {string}
100
+ * @memberof DocumentBlockChange
101
+ */
102
+ numericPct?: string | null;
103
+ /**
104
+ *
105
+ * @type {string}
106
+ * @memberof DocumentBlockChange
107
+ */
108
+ anchorText?: string | null;
109
+ /**
110
+ *
111
+ * @type {string}
112
+ * @memberof DocumentBlockChange
113
+ */
114
+ surface?: string;
115
+ /**
116
+ *
117
+ * @type {Array<TableCellChange>}
118
+ * @memberof DocumentBlockChange
119
+ */
120
+ cellChanges?: Array<TableCellChange> | null;
121
+ /**
122
+ *
123
+ * @type {Array<RevisionEdit>}
124
+ * @memberof DocumentBlockChange
125
+ */
126
+ revisions?: Array<RevisionEdit> | null;
127
+ /**
128
+ *
129
+ * @type {string}
130
+ * @memberof DocumentBlockChange
131
+ */
132
+ oldImageRef?: string | null;
133
+ /**
134
+ *
135
+ * @type {string}
136
+ * @memberof DocumentBlockChange
137
+ */
138
+ newImageRef?: string | null;
139
+ /**
140
+ *
141
+ * @type {Array<PixelRegion>}
142
+ * @memberof DocumentBlockChange
143
+ */
144
+ imageRegions?: Array<PixelRegion> | null;
145
+ /**
146
+ *
147
+ * @type {string}
148
+ * @memberof DocumentBlockChange
149
+ */
150
+ imageNote?: string | null;
151
+ }
152
+ export declare const DocumentBlockChangePropertyValidationAttributesMap: {
153
+ [property: string]: {
154
+ maxLength?: number;
155
+ minLength?: number;
156
+ pattern?: string;
157
+ maximum?: number;
158
+ exclusiveMaximum?: boolean;
159
+ minimum?: number;
160
+ exclusiveMinimum?: boolean;
161
+ multipleOf?: number;
162
+ maxItems?: number;
163
+ minItems?: number;
164
+ uniqueItems?: boolean;
165
+ };
166
+ };
167
+ /**
168
+ * Check if a given object implements the DocumentBlockChange interface.
169
+ */
170
+ export declare function instanceOfDocumentBlockChange(value: object): value is DocumentBlockChange;
171
+ export declare function DocumentBlockChangeFromJSON(json: any): DocumentBlockChange;
172
+ export declare function DocumentBlockChangeFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentBlockChange;
173
+ export declare function DocumentBlockChangeToJSON(json: any): DocumentBlockChange;
174
+ export declare function DocumentBlockChangeToJSONTyped(value?: DocumentBlockChange | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,105 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Knowledge Stack API
6
+ * Knowledge Stack backend API for authentication and knowledge management
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.DocumentBlockChangePropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfDocumentBlockChange = instanceOfDocumentBlockChange;
18
+ exports.DocumentBlockChangeFromJSON = DocumentBlockChangeFromJSON;
19
+ exports.DocumentBlockChangeFromJSONTyped = DocumentBlockChangeFromJSONTyped;
20
+ exports.DocumentBlockChangeToJSON = DocumentBlockChangeToJSON;
21
+ exports.DocumentBlockChangeToJSONTyped = DocumentBlockChangeToJSONTyped;
22
+ const TableCellChange_1 = require("./TableCellChange");
23
+ const ChangeClass_1 = require("./ChangeClass");
24
+ const PixelRegion_1 = require("./PixelRegion");
25
+ const BlockChangeType_1 = require("./BlockChangeType");
26
+ const DiffSpan_1 = require("./DiffSpan");
27
+ const RevisionEdit_1 = require("./RevisionEdit");
28
+ const BlockKind_1 = require("./BlockKind");
29
+ exports.DocumentBlockChangePropertyValidationAttributesMap = {};
30
+ /**
31
+ * Check if a given object implements the DocumentBlockChange interface.
32
+ */
33
+ function instanceOfDocumentBlockChange(value) {
34
+ if (!('type' in value) || value['type'] === undefined)
35
+ return false;
36
+ if (!('kind' in value) || value['kind'] === undefined)
37
+ return false;
38
+ if (!('changeClass' in value) || value['changeClass'] === undefined)
39
+ return false;
40
+ if (!('fromParagraphIndex' in value) || value['fromParagraphIndex'] === undefined)
41
+ return false;
42
+ if (!('toParagraphIndex' in value) || value['toParagraphIndex'] === undefined)
43
+ return false;
44
+ return true;
45
+ }
46
+ function DocumentBlockChangeFromJSON(json) {
47
+ return DocumentBlockChangeFromJSONTyped(json, false);
48
+ }
49
+ function DocumentBlockChangeFromJSONTyped(json, ignoreDiscriminator) {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+ 'type': (0, BlockChangeType_1.BlockChangeTypeFromJSON)(json['type']),
55
+ 'kind': (0, BlockKind_1.BlockKindFromJSON)(json['kind']),
56
+ 'changeClass': (0, ChangeClass_1.ChangeClassFromJSON)(json['change_class']),
57
+ 'fromParagraphIndex': json['from_paragraph_index'],
58
+ 'toParagraphIndex': json['to_paragraph_index'],
59
+ 'oldText': json['old_text'] == null ? undefined : json['old_text'],
60
+ 'newText': json['new_text'] == null ? undefined : json['new_text'],
61
+ 'oldSpans': json['old_spans'] == null ? undefined : (json['old_spans'].map(DiffSpan_1.DiffSpanFromJSON)),
62
+ 'newSpans': json['new_spans'] == null ? undefined : (json['new_spans'].map(DiffSpan_1.DiffSpanFromJSON)),
63
+ 'formattingChanged': json['formatting_changed'] == null ? undefined : json['formatting_changed'],
64
+ 'numericDelta': json['numeric_delta'] == null ? undefined : json['numeric_delta'],
65
+ 'numericPct': json['numeric_pct'] == null ? undefined : json['numeric_pct'],
66
+ 'anchorText': json['anchor_text'] == null ? undefined : json['anchor_text'],
67
+ 'surface': json['surface'] == null ? undefined : json['surface'],
68
+ 'cellChanges': json['cell_changes'] == null ? undefined : (json['cell_changes'].map(TableCellChange_1.TableCellChangeFromJSON)),
69
+ 'revisions': json['revisions'] == null ? undefined : (json['revisions'].map(RevisionEdit_1.RevisionEditFromJSON)),
70
+ 'oldImageRef': json['old_image_ref'] == null ? undefined : json['old_image_ref'],
71
+ 'newImageRef': json['new_image_ref'] == null ? undefined : json['new_image_ref'],
72
+ 'imageRegions': json['image_regions'] == null ? undefined : (json['image_regions'].map(PixelRegion_1.PixelRegionFromJSON)),
73
+ 'imageNote': json['image_note'] == null ? undefined : json['image_note'],
74
+ };
75
+ }
76
+ function DocumentBlockChangeToJSON(json) {
77
+ return DocumentBlockChangeToJSONTyped(json, false);
78
+ }
79
+ function DocumentBlockChangeToJSONTyped(value, ignoreDiscriminator = false) {
80
+ if (value == null) {
81
+ return value;
82
+ }
83
+ return {
84
+ 'type': (0, BlockChangeType_1.BlockChangeTypeToJSON)(value['type']),
85
+ 'kind': (0, BlockKind_1.BlockKindToJSON)(value['kind']),
86
+ 'change_class': (0, ChangeClass_1.ChangeClassToJSON)(value['changeClass']),
87
+ 'from_paragraph_index': value['fromParagraphIndex'],
88
+ 'to_paragraph_index': value['toParagraphIndex'],
89
+ 'old_text': value['oldText'],
90
+ 'new_text': value['newText'],
91
+ 'old_spans': value['oldSpans'] == null ? undefined : (value['oldSpans'].map(DiffSpan_1.DiffSpanToJSON)),
92
+ 'new_spans': value['newSpans'] == null ? undefined : (value['newSpans'].map(DiffSpan_1.DiffSpanToJSON)),
93
+ 'formatting_changed': value['formattingChanged'],
94
+ 'numeric_delta': value['numericDelta'],
95
+ 'numeric_pct': value['numericPct'],
96
+ 'anchor_text': value['anchorText'],
97
+ 'surface': value['surface'],
98
+ 'cell_changes': value['cellChanges'] == null ? undefined : (value['cellChanges'].map(TableCellChange_1.TableCellChangeToJSON)),
99
+ 'revisions': value['revisions'] == null ? undefined : (value['revisions'].map(RevisionEdit_1.RevisionEditToJSON)),
100
+ 'old_image_ref': value['oldImageRef'],
101
+ 'new_image_ref': value['newImageRef'],
102
+ 'image_regions': value['imageRegions'] == null ? undefined : (value['imageRegions'].map(PixelRegion_1.PixelRegionToJSON)),
103
+ 'image_note': value['imageNote'],
104
+ };
105
+ }
@@ -0,0 +1,102 @@
1
+ /**
2
+ * Knowledge Stack API
3
+ * Knowledge Stack backend API for authentication and knowledge management
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
+ import type { DocumentBlockChange } from './DocumentBlockChange';
13
+ /**
14
+ * A structured block diff of two Word (.docx) versions.
15
+ *
16
+ * ``added``/``removed``/``modified`` are full totals; ``blocks`` is capped and
17
+ * ``omitted_blocks`` reports exactly how many were dropped (never a silent
18
+ * cap). ``surfaces_checked`` attests which OOXML surfaces were diffed,
19
+ * ``unaccepted_revisions`` counts tracked changes present (the rendered text
20
+ * may not be final), and ``decode_degraded`` flags a partial parse.
21
+ * @export
22
+ * @interface DocumentDiff
23
+ */
24
+ export interface DocumentDiff {
25
+ /**
26
+ *
27
+ * @type {Array<DocumentBlockChange>}
28
+ * @memberof DocumentDiff
29
+ */
30
+ blocks: Array<DocumentBlockChange>;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof DocumentDiff
35
+ */
36
+ added: number;
37
+ /**
38
+ *
39
+ * @type {number}
40
+ * @memberof DocumentDiff
41
+ */
42
+ removed: number;
43
+ /**
44
+ *
45
+ * @type {number}
46
+ * @memberof DocumentDiff
47
+ */
48
+ modified: number;
49
+ /**
50
+ *
51
+ * @type {boolean}
52
+ * @memberof DocumentDiff
53
+ */
54
+ truncated: boolean;
55
+ /**
56
+ *
57
+ * @type {number}
58
+ * @memberof DocumentDiff
59
+ */
60
+ omittedBlocks: number;
61
+ /**
62
+ *
63
+ * @type {Array<string>}
64
+ * @memberof DocumentDiff
65
+ */
66
+ surfacesChecked: Array<string>;
67
+ /**
68
+ *
69
+ * @type {number}
70
+ * @memberof DocumentDiff
71
+ */
72
+ unacceptedRevisions: number;
73
+ /**
74
+ *
75
+ * @type {boolean}
76
+ * @memberof DocumentDiff
77
+ */
78
+ decodeDegraded: boolean;
79
+ }
80
+ export declare const DocumentDiffPropertyValidationAttributesMap: {
81
+ [property: string]: {
82
+ maxLength?: number;
83
+ minLength?: number;
84
+ pattern?: string;
85
+ maximum?: number;
86
+ exclusiveMaximum?: boolean;
87
+ minimum?: number;
88
+ exclusiveMinimum?: boolean;
89
+ multipleOf?: number;
90
+ maxItems?: number;
91
+ minItems?: number;
92
+ uniqueItems?: boolean;
93
+ };
94
+ };
95
+ /**
96
+ * Check if a given object implements the DocumentDiff interface.
97
+ */
98
+ export declare function instanceOfDocumentDiff(value: object): value is DocumentDiff;
99
+ export declare function DocumentDiffFromJSON(json: any): DocumentDiff;
100
+ export declare function DocumentDiffFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentDiff;
101
+ export declare function DocumentDiffToJSON(json: any): DocumentDiff;
102
+ export declare function DocumentDiffToJSONTyped(value?: DocumentDiff | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,85 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Knowledge Stack API
6
+ * Knowledge Stack backend API for authentication and knowledge management
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.DocumentDiffPropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfDocumentDiff = instanceOfDocumentDiff;
18
+ exports.DocumentDiffFromJSON = DocumentDiffFromJSON;
19
+ exports.DocumentDiffFromJSONTyped = DocumentDiffFromJSONTyped;
20
+ exports.DocumentDiffToJSON = DocumentDiffToJSON;
21
+ exports.DocumentDiffToJSONTyped = DocumentDiffToJSONTyped;
22
+ const DocumentBlockChange_1 = require("./DocumentBlockChange");
23
+ exports.DocumentDiffPropertyValidationAttributesMap = {};
24
+ /**
25
+ * Check if a given object implements the DocumentDiff interface.
26
+ */
27
+ function instanceOfDocumentDiff(value) {
28
+ if (!('blocks' in value) || value['blocks'] === undefined)
29
+ return false;
30
+ if (!('added' in value) || value['added'] === undefined)
31
+ return false;
32
+ if (!('removed' in value) || value['removed'] === undefined)
33
+ return false;
34
+ if (!('modified' in value) || value['modified'] === undefined)
35
+ return false;
36
+ if (!('truncated' in value) || value['truncated'] === undefined)
37
+ return false;
38
+ if (!('omittedBlocks' in value) || value['omittedBlocks'] === undefined)
39
+ return false;
40
+ if (!('surfacesChecked' in value) || value['surfacesChecked'] === undefined)
41
+ return false;
42
+ if (!('unacceptedRevisions' in value) || value['unacceptedRevisions'] === undefined)
43
+ return false;
44
+ if (!('decodeDegraded' in value) || value['decodeDegraded'] === undefined)
45
+ return false;
46
+ return true;
47
+ }
48
+ function DocumentDiffFromJSON(json) {
49
+ return DocumentDiffFromJSONTyped(json, false);
50
+ }
51
+ function DocumentDiffFromJSONTyped(json, ignoreDiscriminator) {
52
+ if (json == null) {
53
+ return json;
54
+ }
55
+ return {
56
+ 'blocks': (json['blocks'].map(DocumentBlockChange_1.DocumentBlockChangeFromJSON)),
57
+ 'added': json['added'],
58
+ 'removed': json['removed'],
59
+ 'modified': json['modified'],
60
+ 'truncated': json['truncated'],
61
+ 'omittedBlocks': json['omitted_blocks'],
62
+ 'surfacesChecked': json['surfaces_checked'],
63
+ 'unacceptedRevisions': json['unaccepted_revisions'],
64
+ 'decodeDegraded': json['decode_degraded'],
65
+ };
66
+ }
67
+ function DocumentDiffToJSON(json) {
68
+ return DocumentDiffToJSONTyped(json, false);
69
+ }
70
+ function DocumentDiffToJSONTyped(value, ignoreDiscriminator = false) {
71
+ if (value == null) {
72
+ return value;
73
+ }
74
+ return {
75
+ 'blocks': (value['blocks'].map(DocumentBlockChange_1.DocumentBlockChangeToJSON)),
76
+ 'added': value['added'],
77
+ 'removed': value['removed'],
78
+ 'modified': value['modified'],
79
+ 'truncated': value['truncated'],
80
+ 'omitted_blocks': value['omittedBlocks'],
81
+ 'surfaces_checked': value['surfacesChecked'],
82
+ 'unaccepted_revisions': value['unacceptedRevisions'],
83
+ 'decode_degraded': value['decodeDegraded'],
84
+ };
85
+ }
@@ -11,21 +11,24 @@
11
11
  */
12
12
  import type { ApiConnectionResponse } from './ApiConnectionResponse';
13
13
  import type { DataSourceResponse } from './DataSourceResponse';
14
+ import type { DataSourceSchemaResponse } from './DataSourceSchemaResponse';
14
15
  import type { DataSourceTableResponse } from './DataSourceTableResponse';
15
16
  import type { DocumentResponse } from './DocumentResponse';
16
17
  import type { FolderResponse } from './FolderResponse';
17
18
  import type { WorkflowDefinitionResponse } from './WorkflowDefinitionResponse';
18
19
  import type { WorkflowRunResponse } from './WorkflowRunResponse';
19
20
  /**
20
- * @type FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse
21
+ * @type FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse
21
22
  *
22
23
  * @export
23
24
  */
24
- export type FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse = {
25
+ export type FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse = {
25
26
  partType: 'API_CONNECTION';
26
27
  } & ApiConnectionResponse | {
27
28
  partType: 'DATA_SOURCE';
28
29
  } & DataSourceResponse | {
30
+ partType: 'DATA_SOURCE_SCHEMA';
31
+ } & DataSourceSchemaResponse | {
29
32
  partType: 'DATA_SOURCE_TABLE';
30
33
  } & DataSourceTableResponse | {
31
34
  partType: 'DOCUMENT';
@@ -36,7 +39,7 @@ export type FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkfl
36
39
  } & WorkflowDefinitionResponse | {
37
40
  partType: 'WORKFLOW_RUN';
38
41
  } & WorkflowRunResponse;
39
- export declare function FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponseFromJSON(json: any): FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse;
40
- export declare function FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse;
41
- export declare function FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponseToJSON(json: any): any;
42
- export declare function FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponseToJSONTyped(value?: FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponse | null, ignoreDiscriminator?: boolean): any;
42
+ export declare function FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponseFromJSON(json: any): FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse;
43
+ export declare function FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse;
44
+ export declare function FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponseToJSON(json: any): any;
45
+ export declare function FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponseToJSONTyped(value?: FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse | null, ignoreDiscriminator?: boolean): any;
@@ -13,21 +13,22 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponseFromJSON = FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponseFromJSON;
17
- exports.FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponseFromJSONTyped = FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponseFromJSONTyped;
18
- exports.FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponseToJSON = FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponseToJSON;
19
- exports.FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponseToJSONTyped = FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponseToJSONTyped;
16
+ exports.FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponseFromJSON = FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponseFromJSON;
17
+ exports.FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponseFromJSONTyped = FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponseFromJSONTyped;
18
+ exports.FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponseToJSON = FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponseToJSON;
19
+ exports.FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponseToJSONTyped = FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponseToJSONTyped;
20
20
  const ApiConnectionResponse_1 = require("./ApiConnectionResponse");
21
21
  const DataSourceResponse_1 = require("./DataSourceResponse");
22
+ const DataSourceSchemaResponse_1 = require("./DataSourceSchemaResponse");
22
23
  const DataSourceTableResponse_1 = require("./DataSourceTableResponse");
23
24
  const DocumentResponse_1 = require("./DocumentResponse");
24
25
  const FolderResponse_1 = require("./FolderResponse");
25
26
  const WorkflowDefinitionResponse_1 = require("./WorkflowDefinitionResponse");
26
27
  const WorkflowRunResponse_1 = require("./WorkflowRunResponse");
27
- function FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponseFromJSON(json) {
28
- return FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponseFromJSONTyped(json, false);
28
+ function FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponseFromJSON(json) {
29
+ return FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponseFromJSONTyped(json, false);
29
30
  }
30
- function FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponseFromJSONTyped(json, ignoreDiscriminator) {
31
+ function FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponseFromJSONTyped(json, ignoreDiscriminator) {
31
32
  if (json == null) {
32
33
  return json;
33
34
  }
@@ -36,6 +37,8 @@ function FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowR
36
37
  return Object.assign({}, (0, ApiConnectionResponse_1.ApiConnectionResponseFromJSONTyped)(json, true), { partType: 'API_CONNECTION' });
37
38
  case 'DATA_SOURCE':
38
39
  return Object.assign({}, (0, DataSourceResponse_1.DataSourceResponseFromJSONTyped)(json, true), { partType: 'DATA_SOURCE' });
40
+ case 'DATA_SOURCE_SCHEMA':
41
+ return Object.assign({}, (0, DataSourceSchemaResponse_1.DataSourceSchemaResponseFromJSONTyped)(json, true), { partType: 'DATA_SOURCE_SCHEMA' });
39
42
  case 'DATA_SOURCE_TABLE':
40
43
  return Object.assign({}, (0, DataSourceTableResponse_1.DataSourceTableResponseFromJSONTyped)(json, true), { partType: 'DATA_SOURCE_TABLE' });
41
44
  case 'DOCUMENT':
@@ -50,10 +53,10 @@ function FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowR
50
53
  return json;
51
54
  }
52
55
  }
53
- function FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponseToJSON(json) {
54
- return FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponseToJSONTyped(json, false);
56
+ function FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponseToJSON(json) {
57
+ return FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponseToJSONTyped(json, false);
55
58
  }
56
- function FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceTableResponseOrApiConnectionResponseToJSONTyped(value, ignoreDiscriminator = false) {
59
+ function FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponseToJSONTyped(value, ignoreDiscriminator = false) {
57
60
  if (value == null) {
58
61
  return value;
59
62
  }
@@ -62,6 +65,8 @@ function FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowR
62
65
  return Object.assign({}, (0, ApiConnectionResponse_1.ApiConnectionResponseToJSON)(value), { partType: 'API_CONNECTION' });
63
66
  case 'DATA_SOURCE':
64
67
  return Object.assign({}, (0, DataSourceResponse_1.DataSourceResponseToJSON)(value), { partType: 'DATA_SOURCE' });
68
+ case 'DATA_SOURCE_SCHEMA':
69
+ return Object.assign({}, (0, DataSourceSchemaResponse_1.DataSourceSchemaResponseToJSON)(value), { partType: 'DATA_SOURCE_SCHEMA' });
65
70
  case 'DATA_SOURCE_TABLE':
66
71
  return Object.assign({}, (0, DataSourceTableResponse_1.DataSourceTableResponseToJSON)(value), { partType: 'DATA_SOURCE_TABLE' });
67
72
  case 'DOCUMENT':
@@ -22,15 +22,20 @@
22
22
  * FOLDER path_part itself; its contents are NOT captured here and
23
23
  * are enumerated live by the runner (see ``materialized_path`` for
24
24
  * subtree scoping).
25
+ * * ``DATA_SOURCE`` / ``API_CONNECTION`` — a live connector reference
26
+ * (DB / API). ``path_part_id`` is the connector path_part itself; the
27
+ * runner queries it live via its connector tools, nothing is captured
28
+ * here.
25
29
  *
26
- * The underlying PDO id (DocumentVersion or Folder) is resolved live at
27
- * run time from ``path_part.metadata_obj_id``, not stored here.
30
+ * The underlying PDO id (DocumentVersion / Folder / connector) is
31
+ * resolved live at run time from ``path_part.metadata_obj_id``, not
32
+ * stored here.
28
33
  * @export
29
34
  * @interface InputSnapshot
30
35
  */
31
36
  export interface InputSnapshot {
32
37
  /**
33
- * DOCUMENT_VERSION path_part of the pinned input version, or the FOLDER path_part of a live folder reference — see ``part_type``.
38
+ * DOCUMENT_VERSION path_part of the pinned input version, or the path_part of a live FOLDER / DATA_SOURCE / API_CONNECTION reference — see ``part_type``.
34
39
  * @type {string}
35
40
  * @memberof InputSnapshot
36
41
  */
@@ -54,6 +59,8 @@ export interface InputSnapshot {
54
59
  export declare const InputSnapshotPartTypeEnum: {
55
60
  readonly DocumentVersion: "DOCUMENT_VERSION";
56
61
  readonly Folder: "FOLDER";
62
+ readonly DataSource: "DATA_SOURCE";
63
+ readonly ApiConnection: "API_CONNECTION";
57
64
  };
58
65
  export type InputSnapshotPartTypeEnum = typeof InputSnapshotPartTypeEnum[keyof typeof InputSnapshotPartTypeEnum];
59
66
  export declare const InputSnapshotPropertyValidationAttributesMap: {