@knowledge-stack/ksapi 1.57.0 → 1.59.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 (77) hide show
  1. package/.openapi-generator/FILES +12 -2
  2. package/README.md +16 -6
  3. package/dist/apis/FoldersApi.d.ts +63 -4
  4. package/dist/apis/FoldersApi.js +64 -3
  5. package/dist/apis/PathPartsApi.d.ts +45 -1
  6. package/dist/apis/PathPartsApi.js +44 -0
  7. package/dist/apis/SectionsApi.d.ts +44 -0
  8. package/dist/apis/SectionsApi.js +43 -0
  9. package/dist/apis/WorkflowsApi.d.ts +144 -59
  10. package/dist/apis/WorkflowsApi.js +131 -49
  11. package/dist/esm/apis/FoldersApi.d.ts +63 -4
  12. package/dist/esm/apis/FoldersApi.js +64 -3
  13. package/dist/esm/apis/PathPartsApi.d.ts +45 -1
  14. package/dist/esm/apis/PathPartsApi.js +45 -1
  15. package/dist/esm/apis/SectionsApi.d.ts +44 -0
  16. package/dist/esm/apis/SectionsApi.js +43 -0
  17. package/dist/esm/apis/WorkflowsApi.d.ts +144 -59
  18. package/dist/esm/apis/WorkflowsApi.js +132 -50
  19. package/dist/esm/models/AncestryResponse.d.ts +48 -0
  20. package/dist/esm/models/AncestryResponse.js +45 -0
  21. package/dist/esm/models/PathPartAncestorItem.d.ts +96 -0
  22. package/dist/esm/models/PathPartAncestorItem.js +77 -0
  23. package/dist/esm/models/SearchSortOrder.d.ts +26 -0
  24. package/dist/esm/models/SearchSortOrder.js +44 -0
  25. package/dist/esm/models/SearchablePartType.d.ts +25 -0
  26. package/dist/esm/models/SearchablePartType.js +43 -0
  27. package/dist/esm/models/TemporalWorkflowStatusResponse.d.ts +83 -0
  28. package/dist/esm/models/TemporalWorkflowStatusResponse.js +66 -0
  29. package/dist/esm/models/WorkflowActionResponse.d.ts +1 -1
  30. package/dist/esm/models/WorkflowCancelResponse.d.ts +53 -0
  31. package/dist/esm/models/WorkflowCancelResponse.js +48 -0
  32. package/dist/esm/models/index.d.ts +6 -1
  33. package/dist/esm/models/index.js +6 -1
  34. package/dist/models/AncestryResponse.d.ts +48 -0
  35. package/dist/models/AncestryResponse.js +53 -0
  36. package/dist/models/PathPartAncestorItem.d.ts +96 -0
  37. package/dist/models/PathPartAncestorItem.js +85 -0
  38. package/dist/models/SearchSortOrder.d.ts +26 -0
  39. package/dist/models/SearchSortOrder.js +52 -0
  40. package/dist/models/SearchablePartType.d.ts +25 -0
  41. package/dist/models/SearchablePartType.js +51 -0
  42. package/dist/models/TemporalWorkflowStatusResponse.d.ts +83 -0
  43. package/dist/models/TemporalWorkflowStatusResponse.js +74 -0
  44. package/dist/models/WorkflowActionResponse.d.ts +1 -1
  45. package/dist/models/WorkflowCancelResponse.d.ts +53 -0
  46. package/dist/models/WorkflowCancelResponse.js +56 -0
  47. package/dist/models/index.d.ts +6 -1
  48. package/dist/models/index.js +6 -1
  49. package/docs/AncestryResponse.md +35 -0
  50. package/docs/FoldersApi.md +94 -4
  51. package/docs/PathPartAncestorItem.md +51 -0
  52. package/docs/PathPartsApi.md +75 -0
  53. package/docs/{WorkflowAction.md → SearchSortOrder.md} +5 -5
  54. package/docs/SearchablePartType.md +33 -0
  55. package/docs/SectionsApi.md +75 -0
  56. package/docs/TemporalWorkflowStatusResponse.md +47 -0
  57. package/docs/WorkflowActionResponse.md +1 -1
  58. package/docs/WorkflowCancelResponse.md +37 -0
  59. package/docs/WorkflowsApi.md +183 -36
  60. package/package.json +1 -1
  61. package/src/apis/FoldersApi.ts +136 -7
  62. package/src/apis/PathPartsApi.ts +88 -0
  63. package/src/apis/SectionsApi.ts +81 -0
  64. package/src/apis/WorkflowsApi.ts +249 -90
  65. package/src/models/AncestryResponse.ts +91 -0
  66. package/src/models/PathPartAncestorItem.ts +165 -0
  67. package/src/models/SearchSortOrder.ts +54 -0
  68. package/src/models/SearchablePartType.ts +53 -0
  69. package/src/models/TemporalWorkflowStatusResponse.ts +136 -0
  70. package/src/models/WorkflowActionResponse.ts +1 -1
  71. package/src/models/WorkflowCancelResponse.ts +92 -0
  72. package/src/models/index.ts +6 -1
  73. package/dist/esm/models/WorkflowAction.d.ts +0 -25
  74. package/dist/esm/models/WorkflowAction.js +0 -43
  75. package/dist/models/WorkflowAction.d.ts +0 -25
  76. package/dist/models/WorkflowAction.js +0 -51
  77. package/src/models/WorkflowAction.ts +0 -53
@@ -0,0 +1,45 @@
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
+ import { PathPartAncestorItemFromJSON, PathPartAncestorItemToJSON, } from './PathPartAncestorItem';
15
+ /**
16
+ * Check if a given object implements the AncestryResponse interface.
17
+ */
18
+ export function instanceOfAncestryResponse(value) {
19
+ if (!('ancestors' in value) || value['ancestors'] === undefined)
20
+ return false;
21
+ return true;
22
+ }
23
+ export function AncestryResponseFromJSON(json) {
24
+ return AncestryResponseFromJSONTyped(json, false);
25
+ }
26
+ export function AncestryResponseFromJSONTyped(json, ignoreDiscriminator) {
27
+ if (json == null) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'ancestors': (json['ancestors'].map(PathPartAncestorItemFromJSON)),
32
+ };
33
+ }
34
+ export function AncestryResponseToJSON(json) {
35
+ return AncestryResponseToJSONTyped(json, false);
36
+ }
37
+ export function AncestryResponseToJSONTyped(value, ignoreDiscriminator = false) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'ancestors': (value['ancestors'].map(PathPartAncestorItemToJSON)),
43
+ };
44
+ }
45
+ export const AncestryResponsePropertyValidationAttributesMap = {};
@@ -0,0 +1,96 @@
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 { PartType } from './PartType';
13
+ /**
14
+ * Single ancestor item in an ancestry chain.
15
+ * @export
16
+ * @interface PathPartAncestorItem
17
+ */
18
+ export interface PathPartAncestorItem {
19
+ /**
20
+ * PathPart ID
21
+ * @type {string}
22
+ * @memberof PathPartAncestorItem
23
+ */
24
+ pathPartId: string;
25
+ /**
26
+ * Item name
27
+ * @type {string}
28
+ * @memberof PathPartAncestorItem
29
+ */
30
+ name: string;
31
+ /**
32
+ *
33
+ * @type {PartType}
34
+ * @memberof PathPartAncestorItem
35
+ */
36
+ partType: PartType;
37
+ /**
38
+ * Parent PathPart ID
39
+ * @type {string}
40
+ * @memberof PathPartAncestorItem
41
+ */
42
+ parentPathId: string | null;
43
+ /**
44
+ * ID of the underlying object
45
+ * @type {string}
46
+ * @memberof PathPartAncestorItem
47
+ */
48
+ metadataObjId: string | null;
49
+ /**
50
+ * Full materialized path from root
51
+ * @type {string}
52
+ * @memberof PathPartAncestorItem
53
+ */
54
+ materializedPath: string;
55
+ /**
56
+ * Whether this path part is system-managed
57
+ * @type {boolean}
58
+ * @memberof PathPartAncestorItem
59
+ */
60
+ systemManaged: boolean;
61
+ /**
62
+ * Creation timestamp
63
+ * @type {Date}
64
+ * @memberof PathPartAncestorItem
65
+ */
66
+ createdAt: Date;
67
+ /**
68
+ * Last update timestamp
69
+ * @type {Date}
70
+ * @memberof PathPartAncestorItem
71
+ */
72
+ updatedAt: Date;
73
+ }
74
+ /**
75
+ * Check if a given object implements the PathPartAncestorItem interface.
76
+ */
77
+ export declare function instanceOfPathPartAncestorItem(value: object): value is PathPartAncestorItem;
78
+ export declare function PathPartAncestorItemFromJSON(json: any): PathPartAncestorItem;
79
+ export declare function PathPartAncestorItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): PathPartAncestorItem;
80
+ export declare function PathPartAncestorItemToJSON(json: any): PathPartAncestorItem;
81
+ export declare function PathPartAncestorItemToJSONTyped(value?: PathPartAncestorItem | null, ignoreDiscriminator?: boolean): any;
82
+ export declare const PathPartAncestorItemPropertyValidationAttributesMap: {
83
+ [property: string]: {
84
+ maxLength?: number;
85
+ minLength?: number;
86
+ pattern?: string;
87
+ maximum?: number;
88
+ exclusiveMaximum?: boolean;
89
+ minimum?: number;
90
+ exclusiveMinimum?: boolean;
91
+ multipleOf?: number;
92
+ maxItems?: number;
93
+ minItems?: number;
94
+ uniqueItems?: boolean;
95
+ };
96
+ };
@@ -0,0 +1,77 @@
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
+ import { PartTypeFromJSON, PartTypeToJSON, } from './PartType';
15
+ /**
16
+ * Check if a given object implements the PathPartAncestorItem interface.
17
+ */
18
+ export function instanceOfPathPartAncestorItem(value) {
19
+ if (!('pathPartId' in value) || value['pathPartId'] === undefined)
20
+ return false;
21
+ if (!('name' in value) || value['name'] === undefined)
22
+ return false;
23
+ if (!('partType' in value) || value['partType'] === undefined)
24
+ return false;
25
+ if (!('parentPathId' in value) || value['parentPathId'] === undefined)
26
+ return false;
27
+ if (!('metadataObjId' in value) || value['metadataObjId'] === undefined)
28
+ return false;
29
+ if (!('materializedPath' in value) || value['materializedPath'] === undefined)
30
+ return false;
31
+ if (!('systemManaged' in value) || value['systemManaged'] === undefined)
32
+ return false;
33
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
34
+ return false;
35
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ export function PathPartAncestorItemFromJSON(json) {
40
+ return PathPartAncestorItemFromJSONTyped(json, false);
41
+ }
42
+ export function PathPartAncestorItemFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'pathPartId': json['path_part_id'],
48
+ 'name': json['name'],
49
+ 'partType': PartTypeFromJSON(json['part_type']),
50
+ 'parentPathId': json['parent_path_id'],
51
+ 'metadataObjId': json['metadata_obj_id'],
52
+ 'materializedPath': json['materialized_path'],
53
+ 'systemManaged': json['system_managed'],
54
+ 'createdAt': (new Date(json['created_at'])),
55
+ 'updatedAt': (new Date(json['updated_at'])),
56
+ };
57
+ }
58
+ export function PathPartAncestorItemToJSON(json) {
59
+ return PathPartAncestorItemToJSONTyped(json, false);
60
+ }
61
+ export function PathPartAncestorItemToJSONTyped(value, ignoreDiscriminator = false) {
62
+ if (value == null) {
63
+ return value;
64
+ }
65
+ return {
66
+ 'path_part_id': value['pathPartId'],
67
+ 'name': value['name'],
68
+ 'part_type': PartTypeToJSON(value['partType']),
69
+ 'parent_path_id': value['parentPathId'],
70
+ 'metadata_obj_id': value['metadataObjId'],
71
+ 'materialized_path': value['materializedPath'],
72
+ 'system_managed': value['systemManaged'],
73
+ 'created_at': value['createdAt'].toISOString(),
74
+ 'updated_at': value['updatedAt'].toISOString(),
75
+ };
76
+ }
77
+ export const PathPartAncestorItemPropertyValidationAttributesMap = {};
@@ -0,0 +1,26 @@
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
+ /**
13
+ * Sort order options for search results.
14
+ * @export
15
+ */
16
+ export declare const SearchSortOrder: {
17
+ readonly Name: "NAME";
18
+ readonly UpdatedAt: "UPDATED_AT";
19
+ readonly CreatedAt: "CREATED_AT";
20
+ };
21
+ export type SearchSortOrder = typeof SearchSortOrder[keyof typeof SearchSortOrder];
22
+ export declare function instanceOfSearchSortOrder(value: any): boolean;
23
+ export declare function SearchSortOrderFromJSON(json: any): SearchSortOrder;
24
+ export declare function SearchSortOrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchSortOrder;
25
+ export declare function SearchSortOrderToJSON(value?: SearchSortOrder | null): any;
26
+ export declare function SearchSortOrderToJSONTyped(value: any, ignoreDiscriminator: boolean): SearchSortOrder;
@@ -0,0 +1,44 @@
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
+ * Sort order options for search results.
16
+ * @export
17
+ */
18
+ export const SearchSortOrder = {
19
+ Name: 'NAME',
20
+ UpdatedAt: 'UPDATED_AT',
21
+ CreatedAt: 'CREATED_AT'
22
+ };
23
+ export function instanceOfSearchSortOrder(value) {
24
+ for (const key in SearchSortOrder) {
25
+ if (Object.prototype.hasOwnProperty.call(SearchSortOrder, key)) {
26
+ if (SearchSortOrder[key] === value) {
27
+ return true;
28
+ }
29
+ }
30
+ }
31
+ return false;
32
+ }
33
+ export function SearchSortOrderFromJSON(json) {
34
+ return SearchSortOrderFromJSONTyped(json, false);
35
+ }
36
+ export function SearchSortOrderFromJSONTyped(json, ignoreDiscriminator) {
37
+ return json;
38
+ }
39
+ export function SearchSortOrderToJSON(value) {
40
+ return value;
41
+ }
42
+ export function SearchSortOrderToJSONTyped(value, ignoreDiscriminator) {
43
+ return value;
44
+ }
@@ -0,0 +1,25 @@
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
+ /**
13
+ * Part types that can be searched.
14
+ * @export
15
+ */
16
+ export declare const SearchablePartType: {
17
+ readonly Folder: "FOLDER";
18
+ readonly Document: "DOCUMENT";
19
+ };
20
+ export type SearchablePartType = typeof SearchablePartType[keyof typeof SearchablePartType];
21
+ export declare function instanceOfSearchablePartType(value: any): boolean;
22
+ export declare function SearchablePartTypeFromJSON(json: any): SearchablePartType;
23
+ export declare function SearchablePartTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchablePartType;
24
+ export declare function SearchablePartTypeToJSON(value?: SearchablePartType | null): any;
25
+ export declare function SearchablePartTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): SearchablePartType;
@@ -0,0 +1,43 @@
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
+ * Part types that can be searched.
16
+ * @export
17
+ */
18
+ export const SearchablePartType = {
19
+ Folder: 'FOLDER',
20
+ Document: 'DOCUMENT'
21
+ };
22
+ export function instanceOfSearchablePartType(value) {
23
+ for (const key in SearchablePartType) {
24
+ if (Object.prototype.hasOwnProperty.call(SearchablePartType, key)) {
25
+ if (SearchablePartType[key] === value) {
26
+ return true;
27
+ }
28
+ }
29
+ }
30
+ return false;
31
+ }
32
+ export function SearchablePartTypeFromJSON(json) {
33
+ return SearchablePartTypeFromJSONTyped(json, false);
34
+ }
35
+ export function SearchablePartTypeFromJSONTyped(json, ignoreDiscriminator) {
36
+ return json;
37
+ }
38
+ export function SearchablePartTypeToJSON(value) {
39
+ return value;
40
+ }
41
+ export function SearchablePartTypeToJSONTyped(value, ignoreDiscriminator) {
42
+ return value;
43
+ }
@@ -0,0 +1,83 @@
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
+ /**
13
+ * Generic Temporal workflow status — no DB interaction.
14
+ * @export
15
+ * @interface TemporalWorkflowStatusResponse
16
+ */
17
+ export interface TemporalWorkflowStatusResponse {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof TemporalWorkflowStatusResponse
22
+ */
23
+ workflowId: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof TemporalWorkflowStatusResponse
28
+ */
29
+ temporalStatus: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof TemporalWorkflowStatusResponse
34
+ */
35
+ workflowType: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof TemporalWorkflowStatusResponse
40
+ */
41
+ taskQueue: string;
42
+ /**
43
+ *
44
+ * @type {Date}
45
+ * @memberof TemporalWorkflowStatusResponse
46
+ */
47
+ startTime: Date;
48
+ /**
49
+ *
50
+ * @type {Date}
51
+ * @memberof TemporalWorkflowStatusResponse
52
+ */
53
+ closeTime?: Date | null;
54
+ /**
55
+ *
56
+ * @type {string}
57
+ * @memberof TemporalWorkflowStatusResponse
58
+ */
59
+ runId: string;
60
+ }
61
+ /**
62
+ * Check if a given object implements the TemporalWorkflowStatusResponse interface.
63
+ */
64
+ export declare function instanceOfTemporalWorkflowStatusResponse(value: object): value is TemporalWorkflowStatusResponse;
65
+ export declare function TemporalWorkflowStatusResponseFromJSON(json: any): TemporalWorkflowStatusResponse;
66
+ export declare function TemporalWorkflowStatusResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TemporalWorkflowStatusResponse;
67
+ export declare function TemporalWorkflowStatusResponseToJSON(json: any): TemporalWorkflowStatusResponse;
68
+ export declare function TemporalWorkflowStatusResponseToJSONTyped(value?: TemporalWorkflowStatusResponse | null, ignoreDiscriminator?: boolean): any;
69
+ export declare const TemporalWorkflowStatusResponsePropertyValidationAttributesMap: {
70
+ [property: string]: {
71
+ maxLength?: number;
72
+ minLength?: number;
73
+ pattern?: string;
74
+ maximum?: number;
75
+ exclusiveMaximum?: boolean;
76
+ minimum?: number;
77
+ exclusiveMinimum?: boolean;
78
+ multipleOf?: number;
79
+ maxItems?: number;
80
+ minItems?: number;
81
+ uniqueItems?: boolean;
82
+ };
83
+ };
@@ -0,0 +1,66 @@
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
+ * Check if a given object implements the TemporalWorkflowStatusResponse interface.
16
+ */
17
+ export function instanceOfTemporalWorkflowStatusResponse(value) {
18
+ if (!('workflowId' in value) || value['workflowId'] === undefined)
19
+ return false;
20
+ if (!('temporalStatus' in value) || value['temporalStatus'] === undefined)
21
+ return false;
22
+ if (!('workflowType' in value) || value['workflowType'] === undefined)
23
+ return false;
24
+ if (!('taskQueue' in value) || value['taskQueue'] === undefined)
25
+ return false;
26
+ if (!('startTime' in value) || value['startTime'] === undefined)
27
+ return false;
28
+ if (!('runId' in value) || value['runId'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ export function TemporalWorkflowStatusResponseFromJSON(json) {
33
+ return TemporalWorkflowStatusResponseFromJSONTyped(json, false);
34
+ }
35
+ export function TemporalWorkflowStatusResponseFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'workflowId': json['workflow_id'],
41
+ 'temporalStatus': json['temporal_status'],
42
+ 'workflowType': json['workflow_type'],
43
+ 'taskQueue': json['task_queue'],
44
+ 'startTime': (new Date(json['start_time'])),
45
+ 'closeTime': json['close_time'] == null ? undefined : (new Date(json['close_time'])),
46
+ 'runId': json['run_id'],
47
+ };
48
+ }
49
+ export function TemporalWorkflowStatusResponseToJSON(json) {
50
+ return TemporalWorkflowStatusResponseToJSONTyped(json, false);
51
+ }
52
+ export function TemporalWorkflowStatusResponseToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'workflow_id': value['workflowId'],
58
+ 'temporal_status': value['temporalStatus'],
59
+ 'workflow_type': value['workflowType'],
60
+ 'task_queue': value['taskQueue'],
61
+ 'start_time': value['startTime'].toISOString(),
62
+ 'close_time': value['closeTime'] == null ? value['closeTime'] : value['closeTime'].toISOString(),
63
+ 'run_id': value['runId'],
64
+ };
65
+ }
66
+ export const TemporalWorkflowStatusResponsePropertyValidationAttributesMap = {};
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * POST response for cancel/rerun.
13
+ * POST response for rerun.
14
14
  * @export
15
15
  * @interface WorkflowActionResponse
16
16
  */
@@ -0,0 +1,53 @@
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
+ /**
13
+ * Response for generic workflow cancellation.
14
+ * @export
15
+ * @interface WorkflowCancelResponse
16
+ */
17
+ export interface WorkflowCancelResponse {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof WorkflowCancelResponse
22
+ */
23
+ workflowId: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof WorkflowCancelResponse
28
+ */
29
+ message: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the WorkflowCancelResponse interface.
33
+ */
34
+ export declare function instanceOfWorkflowCancelResponse(value: object): value is WorkflowCancelResponse;
35
+ export declare function WorkflowCancelResponseFromJSON(json: any): WorkflowCancelResponse;
36
+ export declare function WorkflowCancelResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WorkflowCancelResponse;
37
+ export declare function WorkflowCancelResponseToJSON(json: any): WorkflowCancelResponse;
38
+ export declare function WorkflowCancelResponseToJSONTyped(value?: WorkflowCancelResponse | null, ignoreDiscriminator?: boolean): any;
39
+ export declare const WorkflowCancelResponsePropertyValidationAttributesMap: {
40
+ [property: string]: {
41
+ maxLength?: number;
42
+ minLength?: number;
43
+ pattern?: string;
44
+ maximum?: number;
45
+ exclusiveMaximum?: boolean;
46
+ minimum?: number;
47
+ exclusiveMinimum?: boolean;
48
+ multipleOf?: number;
49
+ maxItems?: number;
50
+ minItems?: number;
51
+ uniqueItems?: boolean;
52
+ };
53
+ };
@@ -0,0 +1,48 @@
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
+ * Check if a given object implements the WorkflowCancelResponse interface.
16
+ */
17
+ export function instanceOfWorkflowCancelResponse(value) {
18
+ if (!('workflowId' in value) || value['workflowId'] === undefined)
19
+ return false;
20
+ if (!('message' in value) || value['message'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function WorkflowCancelResponseFromJSON(json) {
25
+ return WorkflowCancelResponseFromJSONTyped(json, false);
26
+ }
27
+ export function WorkflowCancelResponseFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'workflowId': json['workflow_id'],
33
+ 'message': json['message'],
34
+ };
35
+ }
36
+ export function WorkflowCancelResponseToJSON(json) {
37
+ return WorkflowCancelResponseToJSONTyped(json, false);
38
+ }
39
+ export function WorkflowCancelResponseToJSONTyped(value, ignoreDiscriminator = false) {
40
+ if (value == null) {
41
+ return value;
42
+ }
43
+ return {
44
+ 'workflow_id': value['workflowId'],
45
+ 'message': value['message'],
46
+ };
47
+ }
48
+ export const WorkflowCancelResponsePropertyValidationAttributesMap = {};
@@ -1,4 +1,5 @@
1
1
  export * from './AcceptInviteResponse';
2
+ export * from './AncestryResponse';
2
3
  export * from './ApiKeyResponse';
3
4
  export * from './Args';
4
5
  export * from './BrandingLogoType';
@@ -81,6 +82,7 @@ export * from './PartType';
81
82
  export * from './PasswordResetRequest';
82
83
  export * from './PasswordResetWithTokenRequest';
83
84
  export * from './PathOrder';
85
+ export * from './PathPartAncestorItem';
84
86
  export * from './PathPartResponse';
85
87
  export * from './PathPartTagsResponse';
86
88
  export * from './PermissionCapability';
@@ -95,7 +97,9 @@ export * from './ResolvedReferenceOutput';
95
97
  export * from './RootResponse';
96
98
  export * from './SSOInitiateResponse';
97
99
  export * from './ScoredChunkResponse';
100
+ export * from './SearchSortOrder';
98
101
  export * from './SearchType';
102
+ export * from './SearchablePartType';
99
103
  export * from './SectionContentItem';
100
104
  export * from './SectionContentItemOrChunkContentItem';
101
105
  export * from './SectionResponse';
@@ -108,6 +112,7 @@ export * from './SubtreeChunkGroup';
108
112
  export * from './SubtreeChunksResponse';
109
113
  export * from './SupportedLanguage';
110
114
  export * from './TagResponse';
115
+ export * from './TemporalWorkflowStatusResponse';
111
116
  export * from './TenantBrandingResponse';
112
117
  export * from './TenantResponse';
113
118
  export * from './TenantSettingsResponse';
@@ -135,7 +140,7 @@ export * from './UserMessageResponse';
135
140
  export * from './UserResponse';
136
141
  export * from './ValidationError';
137
142
  export * from './VersionChunkIdsResponse';
138
- export * from './WorkflowAction';
139
143
  export * from './WorkflowActionResponse';
144
+ export * from './WorkflowCancelResponse';
140
145
  export * from './WorkflowDetailResponse';
141
146
  export * from './WorkflowSummaryResponse';