@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
@@ -1,6 +1,7 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export * from './AcceptInviteResponse';
4
+ export * from './AncestryResponse';
4
5
  export * from './ApiKeyResponse';
5
6
  export * from './Args';
6
7
  export * from './BrandingLogoType';
@@ -83,6 +84,7 @@ export * from './PartType';
83
84
  export * from './PasswordResetRequest';
84
85
  export * from './PasswordResetWithTokenRequest';
85
86
  export * from './PathOrder';
87
+ export * from './PathPartAncestorItem';
86
88
  export * from './PathPartResponse';
87
89
  export * from './PathPartTagsResponse';
88
90
  export * from './PermissionCapability';
@@ -97,7 +99,9 @@ export * from './ResolvedReferenceOutput';
97
99
  export * from './RootResponse';
98
100
  export * from './SSOInitiateResponse';
99
101
  export * from './ScoredChunkResponse';
102
+ export * from './SearchSortOrder';
100
103
  export * from './SearchType';
104
+ export * from './SearchablePartType';
101
105
  export * from './SectionContentItem';
102
106
  export * from './SectionContentItemOrChunkContentItem';
103
107
  export * from './SectionResponse';
@@ -110,6 +114,7 @@ export * from './SubtreeChunkGroup';
110
114
  export * from './SubtreeChunksResponse';
111
115
  export * from './SupportedLanguage';
112
116
  export * from './TagResponse';
117
+ export * from './TemporalWorkflowStatusResponse';
113
118
  export * from './TenantBrandingResponse';
114
119
  export * from './TenantResponse';
115
120
  export * from './TenantSettingsResponse';
@@ -137,7 +142,7 @@ export * from './UserMessageResponse';
137
142
  export * from './UserResponse';
138
143
  export * from './ValidationError';
139
144
  export * from './VersionChunkIdsResponse';
140
- export * from './WorkflowAction';
141
145
  export * from './WorkflowActionResponse';
146
+ export * from './WorkflowCancelResponse';
142
147
  export * from './WorkflowDetailResponse';
143
148
  export * from './WorkflowSummaryResponse';
@@ -0,0 +1,48 @@
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 { PathPartAncestorItem } from './PathPartAncestorItem';
13
+ /**
14
+ * Response containing the ancestry chain from root to target (inclusive).
15
+ * @export
16
+ * @interface AncestryResponse
17
+ */
18
+ export interface AncestryResponse {
19
+ /**
20
+ * Ancestors ordered root-to-leaf
21
+ * @type {Array<PathPartAncestorItem>}
22
+ * @memberof AncestryResponse
23
+ */
24
+ ancestors: Array<PathPartAncestorItem>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the AncestryResponse interface.
28
+ */
29
+ export declare function instanceOfAncestryResponse(value: object): value is AncestryResponse;
30
+ export declare function AncestryResponseFromJSON(json: any): AncestryResponse;
31
+ export declare function AncestryResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AncestryResponse;
32
+ export declare function AncestryResponseToJSON(json: any): AncestryResponse;
33
+ export declare function AncestryResponseToJSONTyped(value?: AncestryResponse | null, ignoreDiscriminator?: boolean): any;
34
+ export declare const AncestryResponsePropertyValidationAttributesMap: {
35
+ [property: string]: {
36
+ maxLength?: number;
37
+ minLength?: number;
38
+ pattern?: string;
39
+ maximum?: number;
40
+ exclusiveMaximum?: boolean;
41
+ minimum?: number;
42
+ exclusiveMinimum?: boolean;
43
+ multipleOf?: number;
44
+ maxItems?: number;
45
+ minItems?: number;
46
+ uniqueItems?: boolean;
47
+ };
48
+ };
@@ -0,0 +1,53 @@
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.AncestryResponsePropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfAncestryResponse = instanceOfAncestryResponse;
18
+ exports.AncestryResponseFromJSON = AncestryResponseFromJSON;
19
+ exports.AncestryResponseFromJSONTyped = AncestryResponseFromJSONTyped;
20
+ exports.AncestryResponseToJSON = AncestryResponseToJSON;
21
+ exports.AncestryResponseToJSONTyped = AncestryResponseToJSONTyped;
22
+ const PathPartAncestorItem_1 = require("./PathPartAncestorItem");
23
+ /**
24
+ * Check if a given object implements the AncestryResponse interface.
25
+ */
26
+ function instanceOfAncestryResponse(value) {
27
+ if (!('ancestors' in value) || value['ancestors'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function AncestryResponseFromJSON(json) {
32
+ return AncestryResponseFromJSONTyped(json, false);
33
+ }
34
+ function AncestryResponseFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'ancestors': (json['ancestors'].map(PathPartAncestorItem_1.PathPartAncestorItemFromJSON)),
40
+ };
41
+ }
42
+ function AncestryResponseToJSON(json) {
43
+ return AncestryResponseToJSONTyped(json, false);
44
+ }
45
+ function AncestryResponseToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'ancestors': (value['ancestors'].map(PathPartAncestorItem_1.PathPartAncestorItemToJSON)),
51
+ };
52
+ }
53
+ exports.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,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.PathPartAncestorItemPropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfPathPartAncestorItem = instanceOfPathPartAncestorItem;
18
+ exports.PathPartAncestorItemFromJSON = PathPartAncestorItemFromJSON;
19
+ exports.PathPartAncestorItemFromJSONTyped = PathPartAncestorItemFromJSONTyped;
20
+ exports.PathPartAncestorItemToJSON = PathPartAncestorItemToJSON;
21
+ exports.PathPartAncestorItemToJSONTyped = PathPartAncestorItemToJSONTyped;
22
+ const PartType_1 = require("./PartType");
23
+ /**
24
+ * Check if a given object implements the PathPartAncestorItem interface.
25
+ */
26
+ function instanceOfPathPartAncestorItem(value) {
27
+ if (!('pathPartId' in value) || value['pathPartId'] === undefined)
28
+ return false;
29
+ if (!('name' in value) || value['name'] === undefined)
30
+ return false;
31
+ if (!('partType' in value) || value['partType'] === undefined)
32
+ return false;
33
+ if (!('parentPathId' in value) || value['parentPathId'] === undefined)
34
+ return false;
35
+ if (!('metadataObjId' in value) || value['metadataObjId'] === undefined)
36
+ return false;
37
+ if (!('materializedPath' in value) || value['materializedPath'] === undefined)
38
+ return false;
39
+ if (!('systemManaged' in value) || value['systemManaged'] === undefined)
40
+ return false;
41
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
42
+ return false;
43
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
44
+ return false;
45
+ return true;
46
+ }
47
+ function PathPartAncestorItemFromJSON(json) {
48
+ return PathPartAncestorItemFromJSONTyped(json, false);
49
+ }
50
+ function PathPartAncestorItemFromJSONTyped(json, ignoreDiscriminator) {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+ 'pathPartId': json['path_part_id'],
56
+ 'name': json['name'],
57
+ 'partType': (0, PartType_1.PartTypeFromJSON)(json['part_type']),
58
+ 'parentPathId': json['parent_path_id'],
59
+ 'metadataObjId': json['metadata_obj_id'],
60
+ 'materializedPath': json['materialized_path'],
61
+ 'systemManaged': json['system_managed'],
62
+ 'createdAt': (new Date(json['created_at'])),
63
+ 'updatedAt': (new Date(json['updated_at'])),
64
+ };
65
+ }
66
+ function PathPartAncestorItemToJSON(json) {
67
+ return PathPartAncestorItemToJSONTyped(json, false);
68
+ }
69
+ function PathPartAncestorItemToJSONTyped(value, ignoreDiscriminator = false) {
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+ return {
74
+ 'path_part_id': value['pathPartId'],
75
+ 'name': value['name'],
76
+ 'part_type': (0, PartType_1.PartTypeToJSON)(value['partType']),
77
+ 'parent_path_id': value['parentPathId'],
78
+ 'metadata_obj_id': value['metadataObjId'],
79
+ 'materialized_path': value['materializedPath'],
80
+ 'system_managed': value['systemManaged'],
81
+ 'created_at': value['createdAt'].toISOString(),
82
+ 'updated_at': value['updatedAt'].toISOString(),
83
+ };
84
+ }
85
+ exports.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,52 @@
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.SearchSortOrder = void 0;
17
+ exports.instanceOfSearchSortOrder = instanceOfSearchSortOrder;
18
+ exports.SearchSortOrderFromJSON = SearchSortOrderFromJSON;
19
+ exports.SearchSortOrderFromJSONTyped = SearchSortOrderFromJSONTyped;
20
+ exports.SearchSortOrderToJSON = SearchSortOrderToJSON;
21
+ exports.SearchSortOrderToJSONTyped = SearchSortOrderToJSONTyped;
22
+ /**
23
+ * Sort order options for search results.
24
+ * @export
25
+ */
26
+ exports.SearchSortOrder = {
27
+ Name: 'NAME',
28
+ UpdatedAt: 'UPDATED_AT',
29
+ CreatedAt: 'CREATED_AT'
30
+ };
31
+ function instanceOfSearchSortOrder(value) {
32
+ for (const key in exports.SearchSortOrder) {
33
+ if (Object.prototype.hasOwnProperty.call(exports.SearchSortOrder, key)) {
34
+ if (exports.SearchSortOrder[key] === value) {
35
+ return true;
36
+ }
37
+ }
38
+ }
39
+ return false;
40
+ }
41
+ function SearchSortOrderFromJSON(json) {
42
+ return SearchSortOrderFromJSONTyped(json, false);
43
+ }
44
+ function SearchSortOrderFromJSONTyped(json, ignoreDiscriminator) {
45
+ return json;
46
+ }
47
+ function SearchSortOrderToJSON(value) {
48
+ return value;
49
+ }
50
+ function SearchSortOrderToJSONTyped(value, ignoreDiscriminator) {
51
+ return value;
52
+ }
@@ -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,51 @@
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.SearchablePartType = void 0;
17
+ exports.instanceOfSearchablePartType = instanceOfSearchablePartType;
18
+ exports.SearchablePartTypeFromJSON = SearchablePartTypeFromJSON;
19
+ exports.SearchablePartTypeFromJSONTyped = SearchablePartTypeFromJSONTyped;
20
+ exports.SearchablePartTypeToJSON = SearchablePartTypeToJSON;
21
+ exports.SearchablePartTypeToJSONTyped = SearchablePartTypeToJSONTyped;
22
+ /**
23
+ * Part types that can be searched.
24
+ * @export
25
+ */
26
+ exports.SearchablePartType = {
27
+ Folder: 'FOLDER',
28
+ Document: 'DOCUMENT'
29
+ };
30
+ function instanceOfSearchablePartType(value) {
31
+ for (const key in exports.SearchablePartType) {
32
+ if (Object.prototype.hasOwnProperty.call(exports.SearchablePartType, key)) {
33
+ if (exports.SearchablePartType[key] === value) {
34
+ return true;
35
+ }
36
+ }
37
+ }
38
+ return false;
39
+ }
40
+ function SearchablePartTypeFromJSON(json) {
41
+ return SearchablePartTypeFromJSONTyped(json, false);
42
+ }
43
+ function SearchablePartTypeFromJSONTyped(json, ignoreDiscriminator) {
44
+ return json;
45
+ }
46
+ function SearchablePartTypeToJSON(value) {
47
+ return value;
48
+ }
49
+ function SearchablePartTypeToJSONTyped(value, ignoreDiscriminator) {
50
+ return value;
51
+ }
@@ -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,74 @@
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.TemporalWorkflowStatusResponsePropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfTemporalWorkflowStatusResponse = instanceOfTemporalWorkflowStatusResponse;
18
+ exports.TemporalWorkflowStatusResponseFromJSON = TemporalWorkflowStatusResponseFromJSON;
19
+ exports.TemporalWorkflowStatusResponseFromJSONTyped = TemporalWorkflowStatusResponseFromJSONTyped;
20
+ exports.TemporalWorkflowStatusResponseToJSON = TemporalWorkflowStatusResponseToJSON;
21
+ exports.TemporalWorkflowStatusResponseToJSONTyped = TemporalWorkflowStatusResponseToJSONTyped;
22
+ /**
23
+ * Check if a given object implements the TemporalWorkflowStatusResponse interface.
24
+ */
25
+ function instanceOfTemporalWorkflowStatusResponse(value) {
26
+ if (!('workflowId' in value) || value['workflowId'] === undefined)
27
+ return false;
28
+ if (!('temporalStatus' in value) || value['temporalStatus'] === undefined)
29
+ return false;
30
+ if (!('workflowType' in value) || value['workflowType'] === undefined)
31
+ return false;
32
+ if (!('taskQueue' in value) || value['taskQueue'] === undefined)
33
+ return false;
34
+ if (!('startTime' in value) || value['startTime'] === undefined)
35
+ return false;
36
+ if (!('runId' in value) || value['runId'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ function TemporalWorkflowStatusResponseFromJSON(json) {
41
+ return TemporalWorkflowStatusResponseFromJSONTyped(json, false);
42
+ }
43
+ function TemporalWorkflowStatusResponseFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'workflowId': json['workflow_id'],
49
+ 'temporalStatus': json['temporal_status'],
50
+ 'workflowType': json['workflow_type'],
51
+ 'taskQueue': json['task_queue'],
52
+ 'startTime': (new Date(json['start_time'])),
53
+ 'closeTime': json['close_time'] == null ? undefined : (new Date(json['close_time'])),
54
+ 'runId': json['run_id'],
55
+ };
56
+ }
57
+ function TemporalWorkflowStatusResponseToJSON(json) {
58
+ return TemporalWorkflowStatusResponseToJSONTyped(json, false);
59
+ }
60
+ function TemporalWorkflowStatusResponseToJSONTyped(value, ignoreDiscriminator = false) {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+ 'workflow_id': value['workflowId'],
66
+ 'temporal_status': value['temporalStatus'],
67
+ 'workflow_type': value['workflowType'],
68
+ 'task_queue': value['taskQueue'],
69
+ 'start_time': value['startTime'].toISOString(),
70
+ 'close_time': value['closeTime'] == null ? value['closeTime'] : value['closeTime'].toISOString(),
71
+ 'run_id': value['runId'],
72
+ };
73
+ }
74
+ exports.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
  */