@knowledge-stack/ksapi 1.84.0 → 1.86.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 (43) hide show
  1. package/.openapi-generator/FILES +4 -2
  2. package/README.md +6 -5
  3. package/dist/apis/DocumentCheckoutApi.d.ts +158 -0
  4. package/dist/apis/DocumentCheckoutApi.js +197 -0
  5. package/dist/apis/WorkflowRunsApi.d.ts +13 -101
  6. package/dist/apis/WorkflowRunsApi.js +6 -93
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/esm/apis/DocumentCheckoutApi.d.ts +158 -0
  10. package/dist/esm/apis/DocumentCheckoutApi.js +160 -0
  11. package/dist/esm/apis/WorkflowRunsApi.d.ts +13 -101
  12. package/dist/esm/apis/WorkflowRunsApi.js +7 -94
  13. package/dist/esm/apis/index.d.ts +1 -0
  14. package/dist/esm/apis/index.js +1 -0
  15. package/dist/esm/models/DocumentCheckoutResponse.d.ts +65 -0
  16. package/dist/esm/models/DocumentCheckoutResponse.js +56 -0
  17. package/dist/esm/models/DocumentResponse.d.ts +7 -0
  18. package/dist/esm/models/DocumentResponse.js +3 -0
  19. package/dist/esm/models/index.d.ts +1 -1
  20. package/dist/esm/models/index.js +1 -1
  21. package/dist/models/DocumentCheckoutResponse.d.ts +65 -0
  22. package/dist/models/DocumentCheckoutResponse.js +64 -0
  23. package/dist/models/DocumentResponse.d.ts +7 -0
  24. package/dist/models/DocumentResponse.js +3 -0
  25. package/dist/models/index.d.ts +1 -1
  26. package/dist/models/index.js +1 -1
  27. package/docs/DocumentCheckoutApi.md +233 -0
  28. package/docs/{RunLockResponse.md → DocumentCheckoutResponse.md} +13 -11
  29. package/docs/DocumentResponse.md +2 -0
  30. package/docs/FolderResponseOrDocumentResponse.md +2 -0
  31. package/docs/WorkflowRunsApi.md +3 -153
  32. package/package.json +1 -1
  33. package/src/apis/DocumentCheckoutApi.ts +296 -0
  34. package/src/apis/WorkflowRunsApi.ts +12 -184
  35. package/src/apis/index.ts +1 -0
  36. package/src/models/DocumentCheckoutResponse.ts +110 -0
  37. package/src/models/DocumentResponse.ts +15 -0
  38. package/src/models/index.ts +1 -1
  39. package/dist/esm/models/RunLockResponse.d.ts +0 -59
  40. package/dist/esm/models/RunLockResponse.js +0 -52
  41. package/dist/models/RunLockResponse.d.ts +0 -59
  42. package/dist/models/RunLockResponse.js +0 -60
  43. package/src/models/RunLockResponse.ts +0 -101
@@ -1,60 +0,0 @@
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.RunLockResponsePropertyValidationAttributesMap = void 0;
17
- exports.instanceOfRunLockResponse = instanceOfRunLockResponse;
18
- exports.RunLockResponseFromJSON = RunLockResponseFromJSON;
19
- exports.RunLockResponseFromJSONTyped = RunLockResponseFromJSONTyped;
20
- exports.RunLockResponseToJSON = RunLockResponseToJSON;
21
- exports.RunLockResponseToJSONTyped = RunLockResponseToJSONTyped;
22
- exports.RunLockResponsePropertyValidationAttributesMap = {};
23
- /**
24
- * Check if a given object implements the RunLockResponse interface.
25
- */
26
- function instanceOfRunLockResponse(value) {
27
- if (!('runId' in value) || value['runId'] === undefined)
28
- return false;
29
- if (!('lockUserId' in value) || value['lockUserId'] === undefined)
30
- return false;
31
- if (!('lockAcquiredAt' in value) || value['lockAcquiredAt'] === undefined)
32
- return false;
33
- return true;
34
- }
35
- function RunLockResponseFromJSON(json) {
36
- return RunLockResponseFromJSONTyped(json, false);
37
- }
38
- function RunLockResponseFromJSONTyped(json, ignoreDiscriminator) {
39
- if (json == null) {
40
- return json;
41
- }
42
- return {
43
- 'runId': json['run_id'],
44
- 'lockUserId': json['lock_user_id'],
45
- 'lockAcquiredAt': (json['lock_acquired_at'] == null ? null : new Date(json['lock_acquired_at'])),
46
- };
47
- }
48
- function RunLockResponseToJSON(json) {
49
- return RunLockResponseToJSONTyped(json, false);
50
- }
51
- function RunLockResponseToJSONTyped(value, ignoreDiscriminator = false) {
52
- if (value == null) {
53
- return value;
54
- }
55
- return {
56
- 'run_id': value['runId'],
57
- 'lock_user_id': value['lockUserId'],
58
- 'lock_acquired_at': value['lockAcquiredAt'] == null ? value['lockAcquiredAt'] : value['lockAcquiredAt'].toISOString(),
59
- };
60
- }
@@ -1,101 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * Knowledge Stack API
5
- * Knowledge Stack backend API for authentication and knowledge management
6
- *
7
- * The version of the OpenAPI document: 0.1.0
8
- *
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
- import { mapValues } from '../runtime';
16
- /**
17
- * Reviewer-lock state on a workflow run.
18
- * @export
19
- * @interface RunLockResponse
20
- */
21
- export interface RunLockResponse {
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof RunLockResponse
26
- */
27
- runId: string;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof RunLockResponse
32
- */
33
- lockUserId: string | null;
34
- /**
35
- *
36
- * @type {Date}
37
- * @memberof RunLockResponse
38
- */
39
- lockAcquiredAt: Date | null;
40
- }
41
- export const RunLockResponsePropertyValidationAttributesMap: {
42
- [property: string]: {
43
- maxLength?: number,
44
- minLength?: number,
45
- pattern?: string,
46
- maximum?: number,
47
- exclusiveMaximum?: boolean,
48
- minimum?: number,
49
- exclusiveMinimum?: boolean,
50
- multipleOf?: number,
51
- maxItems?: number,
52
- minItems?: number,
53
- uniqueItems?: boolean
54
- }
55
- } = {
56
- }
57
-
58
-
59
- /**
60
- * Check if a given object implements the RunLockResponse interface.
61
- */
62
- export function instanceOfRunLockResponse(value: object): value is RunLockResponse {
63
- if (!('runId' in value) || value['runId'] === undefined) return false;
64
- if (!('lockUserId' in value) || value['lockUserId'] === undefined) return false;
65
- if (!('lockAcquiredAt' in value) || value['lockAcquiredAt'] === undefined) return false;
66
- return true;
67
- }
68
-
69
- export function RunLockResponseFromJSON(json: any): RunLockResponse {
70
- return RunLockResponseFromJSONTyped(json, false);
71
- }
72
-
73
- export function RunLockResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RunLockResponse {
74
- if (json == null) {
75
- return json;
76
- }
77
- return {
78
-
79
- 'runId': json['run_id'],
80
- 'lockUserId': json['lock_user_id'],
81
- 'lockAcquiredAt': (json['lock_acquired_at'] == null ? null : new Date(json['lock_acquired_at'])),
82
- };
83
- }
84
-
85
- export function RunLockResponseToJSON(json: any): RunLockResponse {
86
- return RunLockResponseToJSONTyped(json, false);
87
- }
88
-
89
- export function RunLockResponseToJSONTyped(value?: RunLockResponse | null, ignoreDiscriminator: boolean = false): any {
90
- if (value == null) {
91
- return value;
92
- }
93
-
94
- return {
95
-
96
- 'run_id': value['runId'],
97
- 'lock_user_id': value['lockUserId'],
98
- 'lock_acquired_at': value['lockAcquiredAt'] == null ? value['lockAcquiredAt'] : value['lockAcquiredAt'].toISOString(),
99
- };
100
- }
101
-