@knowledge-stack/ksapi 1.120.1 → 1.121.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 (113) hide show
  1. package/.openapi-generator/FILES +22 -8
  2. package/README.md +13 -6
  3. package/dist/esm/models/CreateThreadMessageRequest.d.ts +3 -3
  4. package/dist/esm/models/CreateThreadMessageRequest.js +3 -3
  5. package/dist/esm/models/DocEditPart.d.ts +122 -0
  6. package/dist/esm/models/DocEditPart.js +92 -0
  7. package/dist/esm/models/Input.d.ts +41 -0
  8. package/dist/esm/models/Input.js +32 -0
  9. package/dist/esm/models/MessageUsage.d.ts +53 -0
  10. package/dist/esm/models/MessageUsage.js +57 -0
  11. package/dist/esm/models/ReasoningPart.d.ts +84 -0
  12. package/dist/esm/models/ReasoningPart.js +71 -0
  13. package/dist/esm/models/{StepInput.d.ts → Step.d.ts} +16 -22
  14. package/dist/esm/models/{StepInput.js → Step.js} +9 -11
  15. package/dist/esm/models/StepKind.d.ts +0 -1
  16. package/dist/esm/models/StepKind.js +1 -2
  17. package/dist/esm/models/TextPart.d.ts +91 -0
  18. package/dist/esm/models/TextPart.js +74 -0
  19. package/dist/esm/models/TextPartOrReasoningPartOrToolPartOrDocEditPart.d.ts +33 -0
  20. package/dist/esm/models/TextPartOrReasoningPartOrToolPartOrDocEditPart.js +57 -0
  21. package/dist/esm/models/ThreadMessageDetails.d.ts +75 -0
  22. package/dist/esm/models/ThreadMessageDetails.js +58 -0
  23. package/dist/esm/models/ThreadMessageResponse.d.ts +10 -3
  24. package/dist/esm/models/ThreadMessageResponse.js +6 -3
  25. package/dist/esm/models/ToolPart.d.ts +130 -0
  26. package/dist/esm/models/ToolPart.js +89 -0
  27. package/dist/esm/models/ToolStatus.d.ts +27 -0
  28. package/dist/esm/models/ToolStatus.js +45 -0
  29. package/dist/esm/models/WorkflowRunAsset.d.ts +87 -0
  30. package/dist/esm/models/WorkflowRunAsset.js +66 -0
  31. package/dist/esm/models/WorkflowRunResponse.d.ts +22 -3
  32. package/dist/esm/models/WorkflowRunResponse.js +12 -3
  33. package/dist/esm/models/index.d.ts +11 -4
  34. package/dist/esm/models/index.js +11 -4
  35. package/dist/models/CreateThreadMessageRequest.d.ts +3 -3
  36. package/dist/models/CreateThreadMessageRequest.js +3 -3
  37. package/dist/models/DocEditPart.d.ts +122 -0
  38. package/dist/models/DocEditPart.js +100 -0
  39. package/dist/models/Input.d.ts +41 -0
  40. package/dist/models/Input.js +40 -0
  41. package/dist/models/MessageUsage.d.ts +53 -0
  42. package/dist/models/MessageUsage.js +65 -0
  43. package/dist/models/ReasoningPart.d.ts +84 -0
  44. package/dist/models/ReasoningPart.js +79 -0
  45. package/dist/models/{StepInput.d.ts → Step.d.ts} +16 -22
  46. package/dist/models/{StepInput.js → Step.js} +15 -17
  47. package/dist/models/StepKind.d.ts +0 -1
  48. package/dist/models/StepKind.js +1 -2
  49. package/dist/models/TextPart.d.ts +91 -0
  50. package/dist/models/TextPart.js +82 -0
  51. package/dist/models/TextPartOrReasoningPartOrToolPartOrDocEditPart.d.ts +33 -0
  52. package/dist/models/TextPartOrReasoningPartOrToolPartOrDocEditPart.js +63 -0
  53. package/dist/models/ThreadMessageDetails.d.ts +75 -0
  54. package/dist/models/ThreadMessageDetails.js +66 -0
  55. package/dist/models/ThreadMessageResponse.d.ts +10 -3
  56. package/dist/models/ThreadMessageResponse.js +6 -3
  57. package/dist/models/ToolPart.d.ts +130 -0
  58. package/dist/models/ToolPart.js +97 -0
  59. package/dist/models/ToolStatus.d.ts +27 -0
  60. package/dist/models/ToolStatus.js +53 -0
  61. package/dist/models/WorkflowRunAsset.d.ts +87 -0
  62. package/dist/models/WorkflowRunAsset.js +74 -0
  63. package/dist/models/WorkflowRunResponse.d.ts +22 -3
  64. package/dist/models/WorkflowRunResponse.js +12 -3
  65. package/dist/models/index.d.ts +11 -4
  66. package/dist/models/index.js +11 -4
  67. package/docs/CreateThreadMessageRequest.md +1 -1
  68. package/docs/DocEditPart.md +54 -0
  69. package/docs/FolderResponseOrDocumentResponseOrWorkflowDefinitionResponseOrWorkflowRunResponseOrDataSourceResponseOrDataSourceSchemaResponseOrDataSourceTableResponseOrApiConnectionResponse.md +8 -2
  70. package/docs/{ThreadMessageDetailsInput.md → Input.md} +4 -10
  71. package/docs/MessageUsage.md +37 -0
  72. package/docs/{StepOutput.md → ReasoningPart.md} +10 -14
  73. package/docs/{StepInput.md → Step.md} +4 -6
  74. package/docs/TextPart.md +46 -0
  75. package/docs/TextPartOrReasoningPartOrToolPartOrDocEditPart.md +72 -0
  76. package/docs/{ThreadMessageDetailsOutput.md → ThreadMessageDetails.md} +9 -5
  77. package/docs/ThreadMessageResponse.md +3 -1
  78. package/docs/ToolPart.md +58 -0
  79. package/docs/ToolStatus.md +32 -0
  80. package/docs/WorkflowRunAsset.md +45 -0
  81. package/docs/WorkflowRunResponse.md +8 -2
  82. package/package.json +1 -1
  83. package/src/models/CreateThreadMessageRequest.ts +11 -11
  84. package/src/models/DocEditPart.ts +191 -0
  85. package/src/models/Input.ts +63 -0
  86. package/src/models/MessageUsage.ts +100 -0
  87. package/src/models/ReasoningPart.ts +140 -0
  88. package/src/models/{StepInput.ts → Step.ts} +18 -26
  89. package/src/models/StepKind.ts +1 -2
  90. package/src/models/TextPart.ts +156 -0
  91. package/src/models/TextPartOrReasoningPartOrToolPartOrDocEditPart.ts +94 -0
  92. package/src/models/ThreadMessageDetails.ts +146 -0
  93. package/src/models/ThreadMessageResponse.ts +25 -10
  94. package/src/models/ToolPart.ts +212 -0
  95. package/src/models/ToolStatus.ts +55 -0
  96. package/src/models/WorkflowRunAsset.ts +153 -0
  97. package/src/models/WorkflowRunResponse.ts +38 -6
  98. package/src/models/index.ts +11 -4
  99. package/dist/esm/models/StepOutput.d.ts +0 -91
  100. package/dist/esm/models/StepOutput.js +0 -66
  101. package/dist/esm/models/ThreadMessageDetailsInput.d.ts +0 -61
  102. package/dist/esm/models/ThreadMessageDetailsInput.js +0 -52
  103. package/dist/esm/models/ThreadMessageDetailsOutput.d.ts +0 -61
  104. package/dist/esm/models/ThreadMessageDetailsOutput.js +0 -52
  105. package/dist/models/StepOutput.d.ts +0 -91
  106. package/dist/models/StepOutput.js +0 -74
  107. package/dist/models/ThreadMessageDetailsInput.d.ts +0 -61
  108. package/dist/models/ThreadMessageDetailsInput.js +0 -60
  109. package/dist/models/ThreadMessageDetailsOutput.d.ts +0 -61
  110. package/dist/models/ThreadMessageDetailsOutput.js +0 -60
  111. package/src/models/StepOutput.ts +0 -159
  112. package/src/models/ThreadMessageDetailsInput.ts +0 -116
  113. package/src/models/ThreadMessageDetailsOutput.ts +0 -116
@@ -1,66 +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
- import { ArgsFromJSON, ArgsToJSON, } from './Args';
15
- import { StepKindFromJSON, StepKindToJSON, } from './StepKind';
16
- export const StepOutputPropertyValidationAttributesMap = {};
17
- /**
18
- * Check if a given object implements the StepOutput interface.
19
- */
20
- export function instanceOfStepOutput(value) {
21
- if (!('id' in value) || value['id'] === undefined)
22
- return false;
23
- if (!('name' in value) || value['name'] === undefined)
24
- return false;
25
- if (!('kind' in value) || value['kind'] === undefined)
26
- return false;
27
- if (!('startTime' in value) || value['startTime'] === undefined)
28
- return false;
29
- return true;
30
- }
31
- export function StepOutputFromJSON(json) {
32
- return StepOutputFromJSONTyped(json, false);
33
- }
34
- export function StepOutputFromJSONTyped(json, ignoreDiscriminator) {
35
- if (json == null) {
36
- return json;
37
- }
38
- return {
39
- 'id': json['id'],
40
- 'name': json['name'],
41
- 'kind': StepKindFromJSON(json['kind']),
42
- 'args': json['args'] == null ? undefined : ArgsFromJSON(json['args']),
43
- 'detail': json['detail'] == null ? undefined : json['detail'],
44
- 'startTime': (new Date(json['start_time'])),
45
- 'endTime': json['end_time'] == null ? undefined : (new Date(json['end_time'])),
46
- 'steps': json['steps'] == null ? undefined : (json['steps'].map(StepOutputFromJSON)),
47
- };
48
- }
49
- export function StepOutputToJSON(json) {
50
- return StepOutputToJSONTyped(json, false);
51
- }
52
- export function StepOutputToJSONTyped(value, ignoreDiscriminator = false) {
53
- if (value == null) {
54
- return value;
55
- }
56
- return {
57
- 'id': value['id'],
58
- 'name': value['name'],
59
- 'kind': StepKindToJSON(value['kind']),
60
- 'args': ArgsToJSON(value['args']),
61
- 'detail': value['detail'],
62
- 'start_time': value['startTime'].toISOString(),
63
- 'end_time': value['endTime'] == null ? value['endTime'] : value['endTime'].toISOString(),
64
- 'steps': value['steps'] == null ? undefined : (value['steps'].map(StepOutputToJSON)),
65
- };
66
- }
@@ -1,61 +0,0 @@
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 { CheckpointDetails } from './CheckpointDetails';
13
- import type { StepInput } from './StepInput';
14
- /**
15
- *
16
- * @export
17
- * @interface ThreadMessageDetailsInput
18
- */
19
- export interface ThreadMessageDetailsInput {
20
- /**
21
- *
22
- * @type {Array<StepInput>}
23
- * @memberof ThreadMessageDetailsInput
24
- */
25
- steps?: Array<StepInput>;
26
- /**
27
- * Agent history checkpoint. Present only on role=SYSTEM messages written by the agent's archival path.
28
- * @type {CheckpointDetails}
29
- * @memberof ThreadMessageDetailsInput
30
- */
31
- checkpoint?: CheckpointDetails | null;
32
- /**
33
- * Model registry id (FE-stable, e.g. ``qwen-flash``) that produced this assistant message. ``None`` for legacy rows that pre-date model selection.
34
- * @type {string}
35
- * @memberof ThreadMessageDetailsInput
36
- */
37
- modelId?: string | null;
38
- }
39
- export declare const ThreadMessageDetailsInputPropertyValidationAttributesMap: {
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
- };
54
- /**
55
- * Check if a given object implements the ThreadMessageDetailsInput interface.
56
- */
57
- export declare function instanceOfThreadMessageDetailsInput(value: object): value is ThreadMessageDetailsInput;
58
- export declare function ThreadMessageDetailsInputFromJSON(json: any): ThreadMessageDetailsInput;
59
- export declare function ThreadMessageDetailsInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ThreadMessageDetailsInput;
60
- export declare function ThreadMessageDetailsInputToJSON(json: any): ThreadMessageDetailsInput;
61
- export declare function ThreadMessageDetailsInputToJSONTyped(value?: ThreadMessageDetailsInput | null, ignoreDiscriminator?: boolean): any;
@@ -1,52 +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
- import { CheckpointDetailsFromJSON, CheckpointDetailsToJSON, } from './CheckpointDetails';
15
- import { StepInputFromJSON, StepInputToJSON, } from './StepInput';
16
- export const ThreadMessageDetailsInputPropertyValidationAttributesMap = {
17
- modelId: {
18
- maxLength: 64,
19
- },
20
- };
21
- /**
22
- * Check if a given object implements the ThreadMessageDetailsInput interface.
23
- */
24
- export function instanceOfThreadMessageDetailsInput(value) {
25
- return true;
26
- }
27
- export function ThreadMessageDetailsInputFromJSON(json) {
28
- return ThreadMessageDetailsInputFromJSONTyped(json, false);
29
- }
30
- export function ThreadMessageDetailsInputFromJSONTyped(json, ignoreDiscriminator) {
31
- if (json == null) {
32
- return json;
33
- }
34
- return {
35
- 'steps': json['steps'] == null ? undefined : (json['steps'].map(StepInputFromJSON)),
36
- 'checkpoint': json['checkpoint'] == null ? undefined : CheckpointDetailsFromJSON(json['checkpoint']),
37
- 'modelId': json['model_id'] == null ? undefined : json['model_id'],
38
- };
39
- }
40
- export function ThreadMessageDetailsInputToJSON(json) {
41
- return ThreadMessageDetailsInputToJSONTyped(json, false);
42
- }
43
- export function ThreadMessageDetailsInputToJSONTyped(value, ignoreDiscriminator = false) {
44
- if (value == null) {
45
- return value;
46
- }
47
- return {
48
- 'steps': value['steps'] == null ? undefined : (value['steps'].map(StepInputToJSON)),
49
- 'checkpoint': CheckpointDetailsToJSON(value['checkpoint']),
50
- 'model_id': value['modelId'],
51
- };
52
- }
@@ -1,61 +0,0 @@
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 { StepOutput } from './StepOutput';
13
- import type { CheckpointDetails } from './CheckpointDetails';
14
- /**
15
- *
16
- * @export
17
- * @interface ThreadMessageDetailsOutput
18
- */
19
- export interface ThreadMessageDetailsOutput {
20
- /**
21
- *
22
- * @type {Array<StepOutput>}
23
- * @memberof ThreadMessageDetailsOutput
24
- */
25
- steps?: Array<StepOutput>;
26
- /**
27
- * Agent history checkpoint. Present only on role=SYSTEM messages written by the agent's archival path.
28
- * @type {CheckpointDetails}
29
- * @memberof ThreadMessageDetailsOutput
30
- */
31
- checkpoint?: CheckpointDetails | null;
32
- /**
33
- * Model registry id (FE-stable, e.g. ``qwen-flash``) that produced this assistant message. ``None`` for legacy rows that pre-date model selection.
34
- * @type {string}
35
- * @memberof ThreadMessageDetailsOutput
36
- */
37
- modelId?: string | null;
38
- }
39
- export declare const ThreadMessageDetailsOutputPropertyValidationAttributesMap: {
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
- };
54
- /**
55
- * Check if a given object implements the ThreadMessageDetailsOutput interface.
56
- */
57
- export declare function instanceOfThreadMessageDetailsOutput(value: object): value is ThreadMessageDetailsOutput;
58
- export declare function ThreadMessageDetailsOutputFromJSON(json: any): ThreadMessageDetailsOutput;
59
- export declare function ThreadMessageDetailsOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ThreadMessageDetailsOutput;
60
- export declare function ThreadMessageDetailsOutputToJSON(json: any): ThreadMessageDetailsOutput;
61
- export declare function ThreadMessageDetailsOutputToJSONTyped(value?: ThreadMessageDetailsOutput | null, ignoreDiscriminator?: boolean): any;
@@ -1,52 +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
- import { StepOutputFromJSON, StepOutputToJSON, } from './StepOutput';
15
- import { CheckpointDetailsFromJSON, CheckpointDetailsToJSON, } from './CheckpointDetails';
16
- export const ThreadMessageDetailsOutputPropertyValidationAttributesMap = {
17
- modelId: {
18
- maxLength: 64,
19
- },
20
- };
21
- /**
22
- * Check if a given object implements the ThreadMessageDetailsOutput interface.
23
- */
24
- export function instanceOfThreadMessageDetailsOutput(value) {
25
- return true;
26
- }
27
- export function ThreadMessageDetailsOutputFromJSON(json) {
28
- return ThreadMessageDetailsOutputFromJSONTyped(json, false);
29
- }
30
- export function ThreadMessageDetailsOutputFromJSONTyped(json, ignoreDiscriminator) {
31
- if (json == null) {
32
- return json;
33
- }
34
- return {
35
- 'steps': json['steps'] == null ? undefined : (json['steps'].map(StepOutputFromJSON)),
36
- 'checkpoint': json['checkpoint'] == null ? undefined : CheckpointDetailsFromJSON(json['checkpoint']),
37
- 'modelId': json['model_id'] == null ? undefined : json['model_id'],
38
- };
39
- }
40
- export function ThreadMessageDetailsOutputToJSON(json) {
41
- return ThreadMessageDetailsOutputToJSONTyped(json, false);
42
- }
43
- export function ThreadMessageDetailsOutputToJSONTyped(value, ignoreDiscriminator = false) {
44
- if (value == null) {
45
- return value;
46
- }
47
- return {
48
- 'steps': value['steps'] == null ? undefined : (value['steps'].map(StepOutputToJSON)),
49
- 'checkpoint': CheckpointDetailsToJSON(value['checkpoint']),
50
- 'model_id': value['modelId'],
51
- };
52
- }
@@ -1,91 +0,0 @@
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 { Args } from './Args';
13
- import type { StepKind } from './StepKind';
14
- /**
15
- *
16
- * @export
17
- * @interface StepOutput
18
- */
19
- export interface StepOutput {
20
- /**
21
- * Stable step identifier within the message
22
- * @type {string}
23
- * @memberof StepOutput
24
- */
25
- id: string;
26
- /**
27
- * The name of the step
28
- * @type {string}
29
- * @memberof StepOutput
30
- */
31
- name: string;
32
- /**
33
- *
34
- * @type {StepKind}
35
- * @memberof StepOutput
36
- */
37
- kind: StepKind;
38
- /**
39
- *
40
- * @type {Args}
41
- * @memberof StepOutput
42
- */
43
- args?: Args | null;
44
- /**
45
- *
46
- * @type {string}
47
- * @memberof StepOutput
48
- */
49
- detail?: string | null;
50
- /**
51
- * The start time of the step
52
- * @type {Date}
53
- * @memberof StepOutput
54
- */
55
- startTime: Date;
56
- /**
57
- *
58
- * @type {Date}
59
- * @memberof StepOutput
60
- */
61
- endTime?: Date | null;
62
- /**
63
- *
64
- * @type {Array<StepOutput>}
65
- * @memberof StepOutput
66
- */
67
- steps?: Array<StepOutput> | null;
68
- }
69
- export declare const StepOutputPropertyValidationAttributesMap: {
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
- };
84
- /**
85
- * Check if a given object implements the StepOutput interface.
86
- */
87
- export declare function instanceOfStepOutput(value: object): value is StepOutput;
88
- export declare function StepOutputFromJSON(json: any): StepOutput;
89
- export declare function StepOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): StepOutput;
90
- export declare function StepOutputToJSON(json: any): StepOutput;
91
- export declare function StepOutputToJSONTyped(value?: StepOutput | null, ignoreDiscriminator?: boolean): any;
@@ -1,74 +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.StepOutputPropertyValidationAttributesMap = void 0;
17
- exports.instanceOfStepOutput = instanceOfStepOutput;
18
- exports.StepOutputFromJSON = StepOutputFromJSON;
19
- exports.StepOutputFromJSONTyped = StepOutputFromJSONTyped;
20
- exports.StepOutputToJSON = StepOutputToJSON;
21
- exports.StepOutputToJSONTyped = StepOutputToJSONTyped;
22
- const Args_1 = require("./Args");
23
- const StepKind_1 = require("./StepKind");
24
- exports.StepOutputPropertyValidationAttributesMap = {};
25
- /**
26
- * Check if a given object implements the StepOutput interface.
27
- */
28
- function instanceOfStepOutput(value) {
29
- if (!('id' in value) || value['id'] === undefined)
30
- return false;
31
- if (!('name' in value) || value['name'] === undefined)
32
- return false;
33
- if (!('kind' in value) || value['kind'] === undefined)
34
- return false;
35
- if (!('startTime' in value) || value['startTime'] === undefined)
36
- return false;
37
- return true;
38
- }
39
- function StepOutputFromJSON(json) {
40
- return StepOutputFromJSONTyped(json, false);
41
- }
42
- function StepOutputFromJSONTyped(json, ignoreDiscriminator) {
43
- if (json == null) {
44
- return json;
45
- }
46
- return {
47
- 'id': json['id'],
48
- 'name': json['name'],
49
- 'kind': (0, StepKind_1.StepKindFromJSON)(json['kind']),
50
- 'args': json['args'] == null ? undefined : (0, Args_1.ArgsFromJSON)(json['args']),
51
- 'detail': json['detail'] == null ? undefined : json['detail'],
52
- 'startTime': (new Date(json['start_time'])),
53
- 'endTime': json['end_time'] == null ? undefined : (new Date(json['end_time'])),
54
- 'steps': json['steps'] == null ? undefined : (json['steps'].map(StepOutputFromJSON)),
55
- };
56
- }
57
- function StepOutputToJSON(json) {
58
- return StepOutputToJSONTyped(json, false);
59
- }
60
- function StepOutputToJSONTyped(value, ignoreDiscriminator = false) {
61
- if (value == null) {
62
- return value;
63
- }
64
- return {
65
- 'id': value['id'],
66
- 'name': value['name'],
67
- 'kind': (0, StepKind_1.StepKindToJSON)(value['kind']),
68
- 'args': (0, Args_1.ArgsToJSON)(value['args']),
69
- 'detail': value['detail'],
70
- 'start_time': value['startTime'].toISOString(),
71
- 'end_time': value['endTime'] == null ? value['endTime'] : value['endTime'].toISOString(),
72
- 'steps': value['steps'] == null ? undefined : (value['steps'].map(StepOutputToJSON)),
73
- };
74
- }
@@ -1,61 +0,0 @@
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 { CheckpointDetails } from './CheckpointDetails';
13
- import type { StepInput } from './StepInput';
14
- /**
15
- *
16
- * @export
17
- * @interface ThreadMessageDetailsInput
18
- */
19
- export interface ThreadMessageDetailsInput {
20
- /**
21
- *
22
- * @type {Array<StepInput>}
23
- * @memberof ThreadMessageDetailsInput
24
- */
25
- steps?: Array<StepInput>;
26
- /**
27
- * Agent history checkpoint. Present only on role=SYSTEM messages written by the agent's archival path.
28
- * @type {CheckpointDetails}
29
- * @memberof ThreadMessageDetailsInput
30
- */
31
- checkpoint?: CheckpointDetails | null;
32
- /**
33
- * Model registry id (FE-stable, e.g. ``qwen-flash``) that produced this assistant message. ``None`` for legacy rows that pre-date model selection.
34
- * @type {string}
35
- * @memberof ThreadMessageDetailsInput
36
- */
37
- modelId?: string | null;
38
- }
39
- export declare const ThreadMessageDetailsInputPropertyValidationAttributesMap: {
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
- };
54
- /**
55
- * Check if a given object implements the ThreadMessageDetailsInput interface.
56
- */
57
- export declare function instanceOfThreadMessageDetailsInput(value: object): value is ThreadMessageDetailsInput;
58
- export declare function ThreadMessageDetailsInputFromJSON(json: any): ThreadMessageDetailsInput;
59
- export declare function ThreadMessageDetailsInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ThreadMessageDetailsInput;
60
- export declare function ThreadMessageDetailsInputToJSON(json: any): ThreadMessageDetailsInput;
61
- export declare function ThreadMessageDetailsInputToJSONTyped(value?: ThreadMessageDetailsInput | null, ignoreDiscriminator?: boolean): any;
@@ -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.ThreadMessageDetailsInputPropertyValidationAttributesMap = void 0;
17
- exports.instanceOfThreadMessageDetailsInput = instanceOfThreadMessageDetailsInput;
18
- exports.ThreadMessageDetailsInputFromJSON = ThreadMessageDetailsInputFromJSON;
19
- exports.ThreadMessageDetailsInputFromJSONTyped = ThreadMessageDetailsInputFromJSONTyped;
20
- exports.ThreadMessageDetailsInputToJSON = ThreadMessageDetailsInputToJSON;
21
- exports.ThreadMessageDetailsInputToJSONTyped = ThreadMessageDetailsInputToJSONTyped;
22
- const CheckpointDetails_1 = require("./CheckpointDetails");
23
- const StepInput_1 = require("./StepInput");
24
- exports.ThreadMessageDetailsInputPropertyValidationAttributesMap = {
25
- modelId: {
26
- maxLength: 64,
27
- },
28
- };
29
- /**
30
- * Check if a given object implements the ThreadMessageDetailsInput interface.
31
- */
32
- function instanceOfThreadMessageDetailsInput(value) {
33
- return true;
34
- }
35
- function ThreadMessageDetailsInputFromJSON(json) {
36
- return ThreadMessageDetailsInputFromJSONTyped(json, false);
37
- }
38
- function ThreadMessageDetailsInputFromJSONTyped(json, ignoreDiscriminator) {
39
- if (json == null) {
40
- return json;
41
- }
42
- return {
43
- 'steps': json['steps'] == null ? undefined : (json['steps'].map(StepInput_1.StepInputFromJSON)),
44
- 'checkpoint': json['checkpoint'] == null ? undefined : (0, CheckpointDetails_1.CheckpointDetailsFromJSON)(json['checkpoint']),
45
- 'modelId': json['model_id'] == null ? undefined : json['model_id'],
46
- };
47
- }
48
- function ThreadMessageDetailsInputToJSON(json) {
49
- return ThreadMessageDetailsInputToJSONTyped(json, false);
50
- }
51
- function ThreadMessageDetailsInputToJSONTyped(value, ignoreDiscriminator = false) {
52
- if (value == null) {
53
- return value;
54
- }
55
- return {
56
- 'steps': value['steps'] == null ? undefined : (value['steps'].map(StepInput_1.StepInputToJSON)),
57
- 'checkpoint': (0, CheckpointDetails_1.CheckpointDetailsToJSON)(value['checkpoint']),
58
- 'model_id': value['modelId'],
59
- };
60
- }
@@ -1,61 +0,0 @@
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 { StepOutput } from './StepOutput';
13
- import type { CheckpointDetails } from './CheckpointDetails';
14
- /**
15
- *
16
- * @export
17
- * @interface ThreadMessageDetailsOutput
18
- */
19
- export interface ThreadMessageDetailsOutput {
20
- /**
21
- *
22
- * @type {Array<StepOutput>}
23
- * @memberof ThreadMessageDetailsOutput
24
- */
25
- steps?: Array<StepOutput>;
26
- /**
27
- * Agent history checkpoint. Present only on role=SYSTEM messages written by the agent's archival path.
28
- * @type {CheckpointDetails}
29
- * @memberof ThreadMessageDetailsOutput
30
- */
31
- checkpoint?: CheckpointDetails | null;
32
- /**
33
- * Model registry id (FE-stable, e.g. ``qwen-flash``) that produced this assistant message. ``None`` for legacy rows that pre-date model selection.
34
- * @type {string}
35
- * @memberof ThreadMessageDetailsOutput
36
- */
37
- modelId?: string | null;
38
- }
39
- export declare const ThreadMessageDetailsOutputPropertyValidationAttributesMap: {
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
- };
54
- /**
55
- * Check if a given object implements the ThreadMessageDetailsOutput interface.
56
- */
57
- export declare function instanceOfThreadMessageDetailsOutput(value: object): value is ThreadMessageDetailsOutput;
58
- export declare function ThreadMessageDetailsOutputFromJSON(json: any): ThreadMessageDetailsOutput;
59
- export declare function ThreadMessageDetailsOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ThreadMessageDetailsOutput;
60
- export declare function ThreadMessageDetailsOutputToJSON(json: any): ThreadMessageDetailsOutput;
61
- export declare function ThreadMessageDetailsOutputToJSONTyped(value?: ThreadMessageDetailsOutput | null, ignoreDiscriminator?: boolean): any;