@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
@@ -0,0 +1,84 @@
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
+ *
14
+ * @export
15
+ * @interface ReasoningPart
16
+ */
17
+ export interface ReasoningPart {
18
+ /**
19
+ * Stable per-message part id (uuid)
20
+ * @type {string}
21
+ * @memberof ReasoningPart
22
+ */
23
+ id: string;
24
+ /**
25
+ * 0-based order within the message
26
+ * @type {number}
27
+ * @memberof ReasoningPart
28
+ */
29
+ seq: number;
30
+ /**
31
+ *
32
+ * @type {Date}
33
+ * @memberof ReasoningPart
34
+ */
35
+ startTime: Date;
36
+ /**
37
+ *
38
+ * @type {Date}
39
+ * @memberof ReasoningPart
40
+ */
41
+ endTime?: Date | null;
42
+ /**
43
+ *
44
+ * @type {ReasoningPartKindEnum}
45
+ * @memberof ReasoningPart
46
+ */
47
+ kind?: ReasoningPartKindEnum;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof ReasoningPart
52
+ */
53
+ text: string;
54
+ }
55
+ /**
56
+ * @export
57
+ */
58
+ export declare const ReasoningPartKindEnum: {
59
+ readonly Reasoning: "reasoning";
60
+ };
61
+ export type ReasoningPartKindEnum = typeof ReasoningPartKindEnum[keyof typeof ReasoningPartKindEnum];
62
+ export declare const ReasoningPartPropertyValidationAttributesMap: {
63
+ [property: string]: {
64
+ maxLength?: number;
65
+ minLength?: number;
66
+ pattern?: string;
67
+ maximum?: number;
68
+ exclusiveMaximum?: boolean;
69
+ minimum?: number;
70
+ exclusiveMinimum?: boolean;
71
+ multipleOf?: number;
72
+ maxItems?: number;
73
+ minItems?: number;
74
+ uniqueItems?: boolean;
75
+ };
76
+ };
77
+ /**
78
+ * Check if a given object implements the ReasoningPart interface.
79
+ */
80
+ export declare function instanceOfReasoningPart(value: object): value is ReasoningPart;
81
+ export declare function ReasoningPartFromJSON(json: any): ReasoningPart;
82
+ export declare function ReasoningPartFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReasoningPart;
83
+ export declare function ReasoningPartToJSON(json: any): ReasoningPart;
84
+ export declare function ReasoningPartToJSONTyped(value?: ReasoningPart | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,79 @@
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.ReasoningPartPropertyValidationAttributesMap = exports.ReasoningPartKindEnum = void 0;
17
+ exports.instanceOfReasoningPart = instanceOfReasoningPart;
18
+ exports.ReasoningPartFromJSON = ReasoningPartFromJSON;
19
+ exports.ReasoningPartFromJSONTyped = ReasoningPartFromJSONTyped;
20
+ exports.ReasoningPartToJSON = ReasoningPartToJSON;
21
+ exports.ReasoningPartToJSONTyped = ReasoningPartToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.ReasoningPartKindEnum = {
26
+ Reasoning: 'reasoning'
27
+ };
28
+ exports.ReasoningPartPropertyValidationAttributesMap = {
29
+ seq: {
30
+ minimum: 0,
31
+ exclusiveMinimum: false,
32
+ },
33
+ };
34
+ /**
35
+ * Check if a given object implements the ReasoningPart interface.
36
+ */
37
+ function instanceOfReasoningPart(value) {
38
+ if (!('id' in value) || value['id'] === undefined)
39
+ return false;
40
+ if (!('seq' in value) || value['seq'] === undefined)
41
+ return false;
42
+ if (!('startTime' in value) || value['startTime'] === undefined)
43
+ return false;
44
+ if (!('text' in value) || value['text'] === undefined)
45
+ return false;
46
+ return true;
47
+ }
48
+ function ReasoningPartFromJSON(json) {
49
+ return ReasoningPartFromJSONTyped(json, false);
50
+ }
51
+ function ReasoningPartFromJSONTyped(json, ignoreDiscriminator) {
52
+ if (json == null) {
53
+ return json;
54
+ }
55
+ return {
56
+ 'id': json['id'],
57
+ 'seq': json['seq'],
58
+ 'startTime': (new Date(json['start_time'])),
59
+ 'endTime': json['end_time'] == null ? undefined : (new Date(json['end_time'])),
60
+ 'kind': json['kind'] == null ? undefined : json['kind'],
61
+ 'text': json['text'],
62
+ };
63
+ }
64
+ function ReasoningPartToJSON(json) {
65
+ return ReasoningPartToJSONTyped(json, false);
66
+ }
67
+ function ReasoningPartToJSONTyped(value, ignoreDiscriminator = false) {
68
+ if (value == null) {
69
+ return value;
70
+ }
71
+ return {
72
+ 'id': value['id'],
73
+ 'seq': value['seq'],
74
+ 'start_time': value['startTime'].toISOString(),
75
+ 'end_time': value['endTime'] == null ? value['endTime'] : value['endTime'].toISOString(),
76
+ 'kind': value['kind'],
77
+ 'text': value['text'],
78
+ };
79
+ }
@@ -14,59 +14,53 @@ import type { StepKind } from './StepKind';
14
14
  /**
15
15
  *
16
16
  * @export
17
- * @interface StepInput
17
+ * @interface Step
18
18
  */
19
- export interface StepInput {
19
+ export interface Step {
20
20
  /**
21
21
  * Stable step identifier within the message
22
22
  * @type {string}
23
- * @memberof StepInput
23
+ * @memberof Step
24
24
  */
25
25
  id: string;
26
26
  /**
27
27
  * The name of the step
28
28
  * @type {string}
29
- * @memberof StepInput
29
+ * @memberof Step
30
30
  */
31
31
  name: string;
32
32
  /**
33
33
  *
34
34
  * @type {StepKind}
35
- * @memberof StepInput
35
+ * @memberof Step
36
36
  */
37
37
  kind: StepKind;
38
38
  /**
39
39
  *
40
40
  * @type {Args}
41
- * @memberof StepInput
41
+ * @memberof Step
42
42
  */
43
43
  args?: Args | null;
44
44
  /**
45
45
  *
46
46
  * @type {string}
47
- * @memberof StepInput
47
+ * @memberof Step
48
48
  */
49
49
  detail?: string | null;
50
50
  /**
51
51
  * The start time of the step
52
52
  * @type {Date}
53
- * @memberof StepInput
53
+ * @memberof Step
54
54
  */
55
55
  startTime: Date;
56
56
  /**
57
57
  *
58
58
  * @type {Date}
59
- * @memberof StepInput
59
+ * @memberof Step
60
60
  */
61
61
  endTime?: Date | null;
62
- /**
63
- *
64
- * @type {Array<StepInput>}
65
- * @memberof StepInput
66
- */
67
- steps?: Array<StepInput> | null;
68
62
  }
69
- export declare const StepInputPropertyValidationAttributesMap: {
63
+ export declare const StepPropertyValidationAttributesMap: {
70
64
  [property: string]: {
71
65
  maxLength?: number;
72
66
  minLength?: number;
@@ -82,10 +76,10 @@ export declare const StepInputPropertyValidationAttributesMap: {
82
76
  };
83
77
  };
84
78
  /**
85
- * Check if a given object implements the StepInput interface.
79
+ * Check if a given object implements the Step interface.
86
80
  */
87
- export declare function instanceOfStepInput(value: object): value is StepInput;
88
- export declare function StepInputFromJSON(json: any): StepInput;
89
- export declare function StepInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): StepInput;
90
- export declare function StepInputToJSON(json: any): StepInput;
91
- export declare function StepInputToJSONTyped(value?: StepInput | null, ignoreDiscriminator?: boolean): any;
81
+ export declare function instanceOfStep(value: object): value is Step;
82
+ export declare function StepFromJSON(json: any): Step;
83
+ export declare function StepFromJSONTyped(json: any, ignoreDiscriminator: boolean): Step;
84
+ export declare function StepToJSON(json: any): Step;
85
+ export declare function StepToJSONTyped(value?: Step | null, ignoreDiscriminator?: boolean): any;
@@ -13,19 +13,19 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.StepInputPropertyValidationAttributesMap = void 0;
17
- exports.instanceOfStepInput = instanceOfStepInput;
18
- exports.StepInputFromJSON = StepInputFromJSON;
19
- exports.StepInputFromJSONTyped = StepInputFromJSONTyped;
20
- exports.StepInputToJSON = StepInputToJSON;
21
- exports.StepInputToJSONTyped = StepInputToJSONTyped;
16
+ exports.StepPropertyValidationAttributesMap = void 0;
17
+ exports.instanceOfStep = instanceOfStep;
18
+ exports.StepFromJSON = StepFromJSON;
19
+ exports.StepFromJSONTyped = StepFromJSONTyped;
20
+ exports.StepToJSON = StepToJSON;
21
+ exports.StepToJSONTyped = StepToJSONTyped;
22
22
  const Args_1 = require("./Args");
23
23
  const StepKind_1 = require("./StepKind");
24
- exports.StepInputPropertyValidationAttributesMap = {};
24
+ exports.StepPropertyValidationAttributesMap = {};
25
25
  /**
26
- * Check if a given object implements the StepInput interface.
26
+ * Check if a given object implements the Step interface.
27
27
  */
28
- function instanceOfStepInput(value) {
28
+ function instanceOfStep(value) {
29
29
  if (!('id' in value) || value['id'] === undefined)
30
30
  return false;
31
31
  if (!('name' in value) || value['name'] === undefined)
@@ -36,10 +36,10 @@ function instanceOfStepInput(value) {
36
36
  return false;
37
37
  return true;
38
38
  }
39
- function StepInputFromJSON(json) {
40
- return StepInputFromJSONTyped(json, false);
39
+ function StepFromJSON(json) {
40
+ return StepFromJSONTyped(json, false);
41
41
  }
42
- function StepInputFromJSONTyped(json, ignoreDiscriminator) {
42
+ function StepFromJSONTyped(json, ignoreDiscriminator) {
43
43
  if (json == null) {
44
44
  return json;
45
45
  }
@@ -51,13 +51,12 @@ function StepInputFromJSONTyped(json, ignoreDiscriminator) {
51
51
  'detail': json['detail'] == null ? undefined : json['detail'],
52
52
  'startTime': (new Date(json['start_time'])),
53
53
  'endTime': json['end_time'] == null ? undefined : (new Date(json['end_time'])),
54
- 'steps': json['steps'] == null ? undefined : (json['steps'].map(StepInputFromJSON)),
55
54
  };
56
55
  }
57
- function StepInputToJSON(json) {
58
- return StepInputToJSONTyped(json, false);
56
+ function StepToJSON(json) {
57
+ return StepToJSONTyped(json, false);
59
58
  }
60
- function StepInputToJSONTyped(value, ignoreDiscriminator = false) {
59
+ function StepToJSONTyped(value, ignoreDiscriminator = false) {
61
60
  if (value == null) {
62
61
  return value;
63
62
  }
@@ -69,6 +68,5 @@ function StepInputToJSONTyped(value, ignoreDiscriminator = false) {
69
68
  'detail': value['detail'],
70
69
  'start_time': value['startTime'].toISOString(),
71
70
  'end_time': value['endTime'] == null ? value['endTime'] : value['endTime'].toISOString(),
72
- 'steps': value['steps'] == null ? undefined : (value['steps'].map(StepInputToJSON)),
73
71
  };
74
72
  }
@@ -16,7 +16,6 @@
16
16
  export declare const StepKind: {
17
17
  readonly Reasoning: "reasoning";
18
18
  readonly ToolCall: "tool_call";
19
- readonly Subagent: "subagent";
20
19
  };
21
20
  export type StepKind = typeof StepKind[keyof typeof StepKind];
22
21
  export declare function instanceOfStepKind(value: any): boolean;
@@ -25,8 +25,7 @@ exports.StepKindToJSONTyped = StepKindToJSONTyped;
25
25
  */
26
26
  exports.StepKind = {
27
27
  Reasoning: 'reasoning',
28
- ToolCall: 'tool_call',
29
- Subagent: 'subagent'
28
+ ToolCall: 'tool_call'
30
29
  };
31
30
  function instanceOfStepKind(value) {
32
31
  for (const key in exports.StepKind) {
@@ -0,0 +1,91 @@
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 { Citation } from './Citation';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface TextPart
17
+ */
18
+ export interface TextPart {
19
+ /**
20
+ * Stable per-message part id (uuid)
21
+ * @type {string}
22
+ * @memberof TextPart
23
+ */
24
+ id: string;
25
+ /**
26
+ * 0-based order within the message
27
+ * @type {number}
28
+ * @memberof TextPart
29
+ */
30
+ seq: number;
31
+ /**
32
+ *
33
+ * @type {Date}
34
+ * @memberof TextPart
35
+ */
36
+ startTime: Date;
37
+ /**
38
+ *
39
+ * @type {Date}
40
+ * @memberof TextPart
41
+ */
42
+ endTime?: Date | null;
43
+ /**
44
+ *
45
+ * @type {TextPartKindEnum}
46
+ * @memberof TextPart
47
+ */
48
+ kind?: TextPartKindEnum;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof TextPart
53
+ */
54
+ text: string;
55
+ /**
56
+ *
57
+ * @type {Array<Citation>}
58
+ * @memberof TextPart
59
+ */
60
+ citations?: Array<Citation> | null;
61
+ }
62
+ /**
63
+ * @export
64
+ */
65
+ export declare const TextPartKindEnum: {
66
+ readonly Text: "text";
67
+ };
68
+ export type TextPartKindEnum = typeof TextPartKindEnum[keyof typeof TextPartKindEnum];
69
+ export declare const TextPartPropertyValidationAttributesMap: {
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 TextPart interface.
86
+ */
87
+ export declare function instanceOfTextPart(value: object): value is TextPart;
88
+ export declare function TextPartFromJSON(json: any): TextPart;
89
+ export declare function TextPartFromJSONTyped(json: any, ignoreDiscriminator: boolean): TextPart;
90
+ export declare function TextPartToJSON(json: any): TextPart;
91
+ export declare function TextPartToJSONTyped(value?: TextPart | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,82 @@
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.TextPartPropertyValidationAttributesMap = exports.TextPartKindEnum = void 0;
17
+ exports.instanceOfTextPart = instanceOfTextPart;
18
+ exports.TextPartFromJSON = TextPartFromJSON;
19
+ exports.TextPartFromJSONTyped = TextPartFromJSONTyped;
20
+ exports.TextPartToJSON = TextPartToJSON;
21
+ exports.TextPartToJSONTyped = TextPartToJSONTyped;
22
+ const Citation_1 = require("./Citation");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.TextPartKindEnum = {
27
+ Text: 'text'
28
+ };
29
+ exports.TextPartPropertyValidationAttributesMap = {
30
+ seq: {
31
+ minimum: 0,
32
+ exclusiveMinimum: false,
33
+ },
34
+ };
35
+ /**
36
+ * Check if a given object implements the TextPart interface.
37
+ */
38
+ function instanceOfTextPart(value) {
39
+ if (!('id' in value) || value['id'] === undefined)
40
+ return false;
41
+ if (!('seq' in value) || value['seq'] === undefined)
42
+ return false;
43
+ if (!('startTime' in value) || value['startTime'] === undefined)
44
+ return false;
45
+ if (!('text' in value) || value['text'] === undefined)
46
+ return false;
47
+ return true;
48
+ }
49
+ function TextPartFromJSON(json) {
50
+ return TextPartFromJSONTyped(json, false);
51
+ }
52
+ function TextPartFromJSONTyped(json, ignoreDiscriminator) {
53
+ if (json == null) {
54
+ return json;
55
+ }
56
+ return {
57
+ 'id': json['id'],
58
+ 'seq': json['seq'],
59
+ 'startTime': (new Date(json['start_time'])),
60
+ 'endTime': json['end_time'] == null ? undefined : (new Date(json['end_time'])),
61
+ 'kind': json['kind'] == null ? undefined : json['kind'],
62
+ 'text': json['text'],
63
+ 'citations': json['citations'] == null ? undefined : (json['citations'].map(Citation_1.CitationFromJSON)),
64
+ };
65
+ }
66
+ function TextPartToJSON(json) {
67
+ return TextPartToJSONTyped(json, false);
68
+ }
69
+ function TextPartToJSONTyped(value, ignoreDiscriminator = false) {
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+ return {
74
+ 'id': value['id'],
75
+ 'seq': value['seq'],
76
+ 'start_time': value['startTime'].toISOString(),
77
+ 'end_time': value['endTime'] == null ? value['endTime'] : value['endTime'].toISOString(),
78
+ 'kind': value['kind'],
79
+ 'text': value['text'],
80
+ 'citations': value['citations'] == null ? undefined : (value['citations'].map(Citation_1.CitationToJSON)),
81
+ };
82
+ }
@@ -0,0 +1,33 @@
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 { DocEditPart } from './DocEditPart';
13
+ import type { ReasoningPart } from './ReasoningPart';
14
+ import type { TextPart } from './TextPart';
15
+ import type { ToolPart } from './ToolPart';
16
+ /**
17
+ * @type TextPartOrReasoningPartOrToolPartOrDocEditPart
18
+ *
19
+ * @export
20
+ */
21
+ export type TextPartOrReasoningPartOrToolPartOrDocEditPart = {
22
+ kind: 'doc_edit';
23
+ } & DocEditPart | {
24
+ kind: 'reasoning';
25
+ } & ReasoningPart | {
26
+ kind: 'text';
27
+ } & TextPart | {
28
+ kind: 'tool';
29
+ } & ToolPart;
30
+ export declare function TextPartOrReasoningPartOrToolPartOrDocEditPartFromJSON(json: any): TextPartOrReasoningPartOrToolPartOrDocEditPart;
31
+ export declare function TextPartOrReasoningPartOrToolPartOrDocEditPartFromJSONTyped(json: any, ignoreDiscriminator: boolean): TextPartOrReasoningPartOrToolPartOrDocEditPart;
32
+ export declare function TextPartOrReasoningPartOrToolPartOrDocEditPartToJSON(json: any): any;
33
+ export declare function TextPartOrReasoningPartOrToolPartOrDocEditPartToJSONTyped(value?: TextPartOrReasoningPartOrToolPartOrDocEditPart | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,63 @@
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.TextPartOrReasoningPartOrToolPartOrDocEditPartFromJSON = TextPartOrReasoningPartOrToolPartOrDocEditPartFromJSON;
17
+ exports.TextPartOrReasoningPartOrToolPartOrDocEditPartFromJSONTyped = TextPartOrReasoningPartOrToolPartOrDocEditPartFromJSONTyped;
18
+ exports.TextPartOrReasoningPartOrToolPartOrDocEditPartToJSON = TextPartOrReasoningPartOrToolPartOrDocEditPartToJSON;
19
+ exports.TextPartOrReasoningPartOrToolPartOrDocEditPartToJSONTyped = TextPartOrReasoningPartOrToolPartOrDocEditPartToJSONTyped;
20
+ const DocEditPart_1 = require("./DocEditPart");
21
+ const ReasoningPart_1 = require("./ReasoningPart");
22
+ const TextPart_1 = require("./TextPart");
23
+ const ToolPart_1 = require("./ToolPart");
24
+ function TextPartOrReasoningPartOrToolPartOrDocEditPartFromJSON(json) {
25
+ return TextPartOrReasoningPartOrToolPartOrDocEditPartFromJSONTyped(json, false);
26
+ }
27
+ function TextPartOrReasoningPartOrToolPartOrDocEditPartFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ switch (json['kind']) {
32
+ case 'doc_edit':
33
+ return Object.assign({}, (0, DocEditPart_1.DocEditPartFromJSONTyped)(json, true), { kind: 'doc_edit' });
34
+ case 'reasoning':
35
+ return Object.assign({}, (0, ReasoningPart_1.ReasoningPartFromJSONTyped)(json, true), { kind: 'reasoning' });
36
+ case 'text':
37
+ return Object.assign({}, (0, TextPart_1.TextPartFromJSONTyped)(json, true), { kind: 'text' });
38
+ case 'tool':
39
+ return Object.assign({}, (0, ToolPart_1.ToolPartFromJSONTyped)(json, true), { kind: 'tool' });
40
+ default:
41
+ return json;
42
+ }
43
+ }
44
+ function TextPartOrReasoningPartOrToolPartOrDocEditPartToJSON(json) {
45
+ return TextPartOrReasoningPartOrToolPartOrDocEditPartToJSONTyped(json, false);
46
+ }
47
+ function TextPartOrReasoningPartOrToolPartOrDocEditPartToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ switch (value['kind']) {
52
+ case 'doc_edit':
53
+ return Object.assign({}, (0, DocEditPart_1.DocEditPartToJSON)(value), { kind: 'doc_edit' });
54
+ case 'reasoning':
55
+ return Object.assign({}, (0, ReasoningPart_1.ReasoningPartToJSON)(value), { kind: 'reasoning' });
56
+ case 'text':
57
+ return Object.assign({}, (0, TextPart_1.TextPartToJSON)(value), { kind: 'text' });
58
+ case 'tool':
59
+ return Object.assign({}, (0, ToolPart_1.ToolPartToJSON)(value), { kind: 'tool' });
60
+ default:
61
+ return value;
62
+ }
63
+ }
@@ -0,0 +1,75 @@
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 { TextPartOrReasoningPartOrToolPartOrDocEditPart } from './TextPartOrReasoningPartOrToolPartOrDocEditPart';
13
+ import type { CheckpointDetails } from './CheckpointDetails';
14
+ import type { Step } from './Step';
15
+ import type { MessageUsage } from './MessageUsage';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface ThreadMessageDetails
20
+ */
21
+ export interface ThreadMessageDetails {
22
+ /**
23
+ *
24
+ * @type {Array<TextPartOrReasoningPartOrToolPartOrDocEditPart>}
25
+ * @memberof ThreadMessageDetails
26
+ */
27
+ parts?: Array<TextPartOrReasoningPartOrToolPartOrDocEditPart>;
28
+ /**
29
+ *
30
+ * @type {MessageUsage}
31
+ * @memberof ThreadMessageDetails
32
+ */
33
+ usage?: MessageUsage | null;
34
+ /**
35
+ *
36
+ * @type {Array<Step>}
37
+ * @memberof ThreadMessageDetails
38
+ */
39
+ steps?: Array<Step>;
40
+ /**
41
+ * Agent history checkpoint. Present only on role=SYSTEM messages written by the agent's archival path.
42
+ * @type {CheckpointDetails}
43
+ * @memberof ThreadMessageDetails
44
+ */
45
+ checkpoint?: CheckpointDetails | null;
46
+ /**
47
+ * Model registry id (FE-stable, e.g. ``qwen-flash``) that produced this assistant message. ``None`` for legacy rows that pre-date model selection.
48
+ * @type {string}
49
+ * @memberof ThreadMessageDetails
50
+ */
51
+ modelId?: string | null;
52
+ }
53
+ export declare const ThreadMessageDetailsPropertyValidationAttributesMap: {
54
+ [property: string]: {
55
+ maxLength?: number;
56
+ minLength?: number;
57
+ pattern?: string;
58
+ maximum?: number;
59
+ exclusiveMaximum?: boolean;
60
+ minimum?: number;
61
+ exclusiveMinimum?: boolean;
62
+ multipleOf?: number;
63
+ maxItems?: number;
64
+ minItems?: number;
65
+ uniqueItems?: boolean;
66
+ };
67
+ };
68
+ /**
69
+ * Check if a given object implements the ThreadMessageDetails interface.
70
+ */
71
+ export declare function instanceOfThreadMessageDetails(value: object): value is ThreadMessageDetails;
72
+ export declare function ThreadMessageDetailsFromJSON(json: any): ThreadMessageDetails;
73
+ export declare function ThreadMessageDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): ThreadMessageDetails;
74
+ export declare function ThreadMessageDetailsToJSON(json: any): ThreadMessageDetails;
75
+ export declare function ThreadMessageDetailsToJSONTyped(value?: ThreadMessageDetails | null, ignoreDiscriminator?: boolean): any;