@knowledge-stack/ksapi 1.56.0 → 1.57.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 (85) hide show
  1. package/.openapi-generator/FILES +10 -0
  2. package/README.md +7 -2
  3. package/dist/apis/DocumentVersionsApi.d.ts +8 -5
  4. package/dist/apis/DocumentVersionsApi.js +5 -2
  5. package/dist/apis/ThreadMessagesApi.d.ts +6 -6
  6. package/dist/apis/ThreadMessagesApi.js +2 -2
  7. package/dist/esm/apis/DocumentVersionsApi.d.ts +8 -5
  8. package/dist/esm/apis/DocumentVersionsApi.js +5 -2
  9. package/dist/esm/apis/ThreadMessagesApi.d.ts +6 -6
  10. package/dist/esm/apis/ThreadMessagesApi.js +2 -2
  11. package/dist/esm/models/CreateThreadMessageRequest.d.ts +6 -0
  12. package/dist/esm/models/CreateThreadMessageRequest.js +2 -0
  13. package/dist/esm/models/DocumentVersionContentTypeFilter.d.ts +25 -0
  14. package/dist/esm/models/DocumentVersionContentTypeFilter.js +43 -0
  15. package/dist/esm/models/EnrichedThreadMessageContent.d.ts +13 -0
  16. package/dist/esm/models/EnrichedThreadMessageContent.js +5 -0
  17. package/dist/esm/models/NonFilesystemReferenceType.d.ts +27 -0
  18. package/dist/esm/models/NonFilesystemReferenceType.js +45 -0
  19. package/dist/esm/models/ReferenceType.d.ts +34 -0
  20. package/dist/esm/models/ReferenceType.js +52 -0
  21. package/dist/esm/models/ResolvedReferenceInput.d.ts +70 -0
  22. package/dist/esm/models/ResolvedReferenceInput.js +55 -0
  23. package/dist/esm/models/ResolvedReferenceOutput.d.ts +69 -0
  24. package/dist/esm/models/ResolvedReferenceOutput.js +54 -0
  25. package/dist/esm/models/StepInput.d.ts +6 -0
  26. package/dist/esm/models/StepInput.js +4 -0
  27. package/dist/esm/models/StepKind.d.ts +1 -0
  28. package/dist/esm/models/StepKind.js +1 -0
  29. package/dist/esm/models/StepOutput.d.ts +6 -0
  30. package/dist/esm/models/StepOutput.js +4 -0
  31. package/dist/esm/models/ThreadMessageContent.d.ts +13 -0
  32. package/dist/esm/models/ThreadMessageContent.js +5 -0
  33. package/dist/esm/models/index.d.ts +5 -0
  34. package/dist/esm/models/index.js +5 -0
  35. package/dist/models/CreateThreadMessageRequest.d.ts +6 -0
  36. package/dist/models/CreateThreadMessageRequest.js +2 -0
  37. package/dist/models/DocumentVersionContentTypeFilter.d.ts +25 -0
  38. package/dist/models/DocumentVersionContentTypeFilter.js +51 -0
  39. package/dist/models/EnrichedThreadMessageContent.d.ts +13 -0
  40. package/dist/models/EnrichedThreadMessageContent.js +5 -0
  41. package/dist/models/NonFilesystemReferenceType.d.ts +27 -0
  42. package/dist/models/NonFilesystemReferenceType.js +53 -0
  43. package/dist/models/ReferenceType.d.ts +34 -0
  44. package/dist/models/ReferenceType.js +60 -0
  45. package/dist/models/ResolvedReferenceInput.d.ts +70 -0
  46. package/dist/models/ResolvedReferenceInput.js +63 -0
  47. package/dist/models/ResolvedReferenceOutput.d.ts +69 -0
  48. package/dist/models/ResolvedReferenceOutput.js +62 -0
  49. package/dist/models/StepInput.d.ts +6 -0
  50. package/dist/models/StepInput.js +4 -0
  51. package/dist/models/StepKind.d.ts +1 -0
  52. package/dist/models/StepKind.js +1 -0
  53. package/dist/models/StepOutput.d.ts +6 -0
  54. package/dist/models/StepOutput.js +4 -0
  55. package/dist/models/ThreadMessageContent.d.ts +13 -0
  56. package/dist/models/ThreadMessageContent.js +5 -0
  57. package/dist/models/index.d.ts +5 -0
  58. package/dist/models/index.js +5 -0
  59. package/docs/CreateThreadMessageRequest.md +2 -0
  60. package/docs/DocumentVersionContentTypeFilter.md +33 -0
  61. package/docs/DocumentVersionsApi.md +5 -2
  62. package/docs/EnrichedThreadMessageContent.md +4 -0
  63. package/docs/NonFilesystemReferenceType.md +33 -0
  64. package/docs/ReferenceType.md +32 -0
  65. package/docs/ResolvedReferenceInput.md +41 -0
  66. package/docs/ResolvedReferenceOutput.md +41 -0
  67. package/docs/StepInput.md +2 -0
  68. package/docs/StepOutput.md +2 -0
  69. package/docs/ThreadMessageContent.md +4 -0
  70. package/docs/ThreadMessagesApi.md +3 -3
  71. package/package.json +1 -1
  72. package/src/apis/DocumentVersionsApi.ts +14 -4
  73. package/src/apis/ThreadMessagesApi.ts +6 -6
  74. package/src/models/CreateThreadMessageRequest.ts +8 -0
  75. package/src/models/DocumentVersionContentTypeFilter.ts +53 -0
  76. package/src/models/EnrichedThreadMessageContent.ts +23 -0
  77. package/src/models/NonFilesystemReferenceType.ts +55 -0
  78. package/src/models/ReferenceType.ts +62 -0
  79. package/src/models/ResolvedReferenceInput.ts +123 -0
  80. package/src/models/ResolvedReferenceOutput.ts +113 -0
  81. package/src/models/StepInput.ts +9 -0
  82. package/src/models/StepKind.ts +1 -0
  83. package/src/models/StepOutput.ts +9 -0
  84. package/src/models/ThreadMessageContent.ts +23 -0
  85. package/src/models/index.ts +5 -0
@@ -0,0 +1,53 @@
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
+
16
+ /**
17
+ * Filter for the type of content rows to return.
18
+ * @export
19
+ */
20
+ export const DocumentVersionContentTypeFilter = {
21
+ Section: 'SECTION',
22
+ Chunk: 'CHUNK'
23
+ } as const;
24
+ export type DocumentVersionContentTypeFilter = typeof DocumentVersionContentTypeFilter[keyof typeof DocumentVersionContentTypeFilter];
25
+
26
+
27
+ export function instanceOfDocumentVersionContentTypeFilter(value: any): boolean {
28
+ for (const key in DocumentVersionContentTypeFilter) {
29
+ if (Object.prototype.hasOwnProperty.call(DocumentVersionContentTypeFilter, key)) {
30
+ if (DocumentVersionContentTypeFilter[key as keyof typeof DocumentVersionContentTypeFilter] === value) {
31
+ return true;
32
+ }
33
+ }
34
+ }
35
+ return false;
36
+ }
37
+
38
+ export function DocumentVersionContentTypeFilterFromJSON(json: any): DocumentVersionContentTypeFilter {
39
+ return DocumentVersionContentTypeFilterFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function DocumentVersionContentTypeFilterFromJSONTyped(json: any, ignoreDiscriminator: boolean): DocumentVersionContentTypeFilter {
43
+ return json as DocumentVersionContentTypeFilter;
44
+ }
45
+
46
+ export function DocumentVersionContentTypeFilterToJSON(value?: DocumentVersionContentTypeFilter | null): any {
47
+ return value as any;
48
+ }
49
+
50
+ export function DocumentVersionContentTypeFilterToJSONTyped(value: any, ignoreDiscriminator: boolean): DocumentVersionContentTypeFilter {
51
+ return value as DocumentVersionContentTypeFilter;
52
+ }
53
+
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { ResolvedReferenceOutput } from './ResolvedReferenceOutput';
17
+ import {
18
+ ResolvedReferenceOutputFromJSON,
19
+ ResolvedReferenceOutputFromJSONTyped,
20
+ ResolvedReferenceOutputToJSON,
21
+ ResolvedReferenceOutputToJSONTyped,
22
+ } from './ResolvedReferenceOutput';
16
23
  import type { EnrichedCitation } from './EnrichedCitation';
17
24
  import {
18
25
  EnrichedCitationFromJSON,
@@ -33,12 +40,24 @@ export interface EnrichedThreadMessageContent {
33
40
  * @memberof EnrichedThreadMessageContent
34
41
  */
35
42
  text: string;
43
+ /**
44
+ * Whether this message represents a terminal assistant error
45
+ * @type {boolean}
46
+ * @memberof EnrichedThreadMessageContent
47
+ */
48
+ isError?: boolean | null;
36
49
  /**
37
50
  * A list of citations with document context
38
51
  * @type {Array<EnrichedCitation>}
39
52
  * @memberof EnrichedThreadMessageContent
40
53
  */
41
54
  citations?: Array<EnrichedCitation> | null;
55
+ /**
56
+ * Resolved inline references attached to this message
57
+ * @type {Array<ResolvedReferenceOutput>}
58
+ * @memberof EnrichedThreadMessageContent
59
+ */
60
+ references?: Array<ResolvedReferenceOutput> | null;
42
61
  }
43
62
 
44
63
  /**
@@ -60,7 +79,9 @@ export function EnrichedThreadMessageContentFromJSONTyped(json: any, ignoreDiscr
60
79
  return {
61
80
 
62
81
  'text': json['text'],
82
+ 'isError': json['is_error'] == null ? undefined : json['is_error'],
63
83
  'citations': json['citations'] == null ? undefined : ((json['citations'] as Array<any>).map(EnrichedCitationFromJSON)),
84
+ 'references': json['references'] == null ? undefined : ((json['references'] as Array<any>).map(ResolvedReferenceOutputFromJSON)),
64
85
  };
65
86
  }
66
87
 
@@ -76,7 +97,9 @@ export function EnrichedThreadMessageContentToJSONTyped(value?: EnrichedThreadMe
76
97
  return {
77
98
 
78
99
  'text': value['text'],
100
+ 'is_error': value['isError'],
79
101
  'citations': value['citations'] == null ? undefined : ((value['citations'] as Array<any>).map(EnrichedCitationToJSON)),
102
+ 'references': value['references'] == null ? undefined : ((value['references'] as Array<any>).map(ResolvedReferenceOutputToJSON)),
80
103
  };
81
104
  }
82
105
 
@@ -0,0 +1,55 @@
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
+
16
+ /**
17
+ * Supported reference types that do not map to filesystem PartType.
18
+ * @export
19
+ */
20
+ export const NonFilesystemReferenceType = {
21
+ Image: 'image',
22
+ Memory: 'memory',
23
+ Tag: 'tag',
24
+ User: 'user'
25
+ } as const;
26
+ export type NonFilesystemReferenceType = typeof NonFilesystemReferenceType[keyof typeof NonFilesystemReferenceType];
27
+
28
+
29
+ export function instanceOfNonFilesystemReferenceType(value: any): boolean {
30
+ for (const key in NonFilesystemReferenceType) {
31
+ if (Object.prototype.hasOwnProperty.call(NonFilesystemReferenceType, key)) {
32
+ if (NonFilesystemReferenceType[key as keyof typeof NonFilesystemReferenceType] === value) {
33
+ return true;
34
+ }
35
+ }
36
+ }
37
+ return false;
38
+ }
39
+
40
+ export function NonFilesystemReferenceTypeFromJSON(json: any): NonFilesystemReferenceType {
41
+ return NonFilesystemReferenceTypeFromJSONTyped(json, false);
42
+ }
43
+
44
+ export function NonFilesystemReferenceTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): NonFilesystemReferenceType {
45
+ return json as NonFilesystemReferenceType;
46
+ }
47
+
48
+ export function NonFilesystemReferenceTypeToJSON(value?: NonFilesystemReferenceType | null): any {
49
+ return value as any;
50
+ }
51
+
52
+ export function NonFilesystemReferenceTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): NonFilesystemReferenceType {
53
+ return value as NonFilesystemReferenceType;
54
+ }
55
+
@@ -0,0 +1,62 @@
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
+
16
+ /**
17
+ *
18
+ * @export
19
+ */
20
+ export const ReferenceType = {
21
+ Folder: 'FOLDER',
22
+ Document: 'DOCUMENT',
23
+ DocumentVersion: 'DOCUMENT_VERSION',
24
+ Section: 'SECTION',
25
+ Chunk: 'CHUNK',
26
+ Thread: 'THREAD',
27
+ ThreadMessage: 'THREAD_MESSAGE',
28
+ Image: 'image',
29
+ Memory: 'memory',
30
+ Tag: 'tag',
31
+ User: 'user'
32
+ } as const;
33
+ export type ReferenceType = typeof ReferenceType[keyof typeof ReferenceType];
34
+
35
+
36
+ export function instanceOfReferenceType(value: any): boolean {
37
+ for (const key in ReferenceType) {
38
+ if (Object.prototype.hasOwnProperty.call(ReferenceType, key)) {
39
+ if (ReferenceType[key as keyof typeof ReferenceType] === value) {
40
+ return true;
41
+ }
42
+ }
43
+ }
44
+ return false;
45
+ }
46
+
47
+ export function ReferenceTypeFromJSON(json: any): ReferenceType {
48
+ return ReferenceTypeFromJSONTyped(json, false);
49
+ }
50
+
51
+ export function ReferenceTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReferenceType {
52
+ return json as ReferenceType;
53
+ }
54
+
55
+ export function ReferenceTypeToJSON(value?: ReferenceType | null): any {
56
+ return value as any;
57
+ }
58
+
59
+ export function ReferenceTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): ReferenceType {
60
+ return value as ReferenceType;
61
+ }
62
+
@@ -0,0 +1,123 @@
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
+ import type { ReferenceType } from './ReferenceType';
17
+ import {
18
+ ReferenceTypeFromJSON,
19
+ ReferenceTypeFromJSONTyped,
20
+ ReferenceTypeToJSON,
21
+ ReferenceTypeToJSONTyped,
22
+ } from './ReferenceType';
23
+
24
+ /**
25
+ * A parsed reference enriched with display name and path from the database.
26
+ *
27
+ * Uses ``extra="ignore"`` (not ``"forbid"``) because SDK dicts may contain
28
+ * fields not yet modelled here. Adding ``"forbid"`` would cause runtime
29
+ * deserialization failures whenever the SDK adds a new field.
30
+ * @export
31
+ * @interface ResolvedReferenceInput
32
+ */
33
+ export interface ResolvedReferenceInput {
34
+ /**
35
+ *
36
+ * @type {ReferenceType}
37
+ * @memberof ResolvedReferenceInput
38
+ */
39
+ refType: ReferenceType;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof ResolvedReferenceInput
44
+ */
45
+ entityId: string;
46
+ /**
47
+ * Human-readable name for the entity
48
+ * @type {string}
49
+ * @memberof ResolvedReferenceInput
50
+ */
51
+ displayName: string;
52
+ /**
53
+ * Full materialized path (None for entities without path parts, e.g. tags, users)
54
+ * @type {string}
55
+ * @memberof ResolvedReferenceInput
56
+ */
57
+ materializedPath?: string | null;
58
+ }
59
+
60
+
61
+
62
+ /**
63
+ * Check if a given object implements the ResolvedReferenceInput interface.
64
+ */
65
+ export function instanceOfResolvedReferenceInput(value: object): value is ResolvedReferenceInput {
66
+ if (!('refType' in value) || value['refType'] === undefined) return false;
67
+ if (!('entityId' in value) || value['entityId'] === undefined) return false;
68
+ if (!('displayName' in value) || value['displayName'] === undefined) return false;
69
+ return true;
70
+ }
71
+
72
+ export function ResolvedReferenceInputFromJSON(json: any): ResolvedReferenceInput {
73
+ return ResolvedReferenceInputFromJSONTyped(json, false);
74
+ }
75
+
76
+ export function ResolvedReferenceInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResolvedReferenceInput {
77
+ if (json == null) {
78
+ return json;
79
+ }
80
+ return {
81
+
82
+ 'refType': ReferenceTypeFromJSON(json['ref_type']),
83
+ 'entityId': json['entity_id'],
84
+ 'displayName': json['display_name'],
85
+ 'materializedPath': json['materialized_path'] == null ? undefined : json['materialized_path'],
86
+ };
87
+ }
88
+
89
+ export function ResolvedReferenceInputToJSON(json: any): ResolvedReferenceInput {
90
+ return ResolvedReferenceInputToJSONTyped(json, false);
91
+ }
92
+
93
+ export function ResolvedReferenceInputToJSONTyped(value?: ResolvedReferenceInput | null, ignoreDiscriminator: boolean = false): any {
94
+ if (value == null) {
95
+ return value;
96
+ }
97
+
98
+ return {
99
+
100
+ 'ref_type': ReferenceTypeToJSON(value['refType']),
101
+ 'entity_id': value['entityId'],
102
+ 'display_name': value['displayName'],
103
+ 'materialized_path': value['materializedPath'],
104
+ };
105
+ }
106
+
107
+ export const ResolvedReferenceInputPropertyValidationAttributesMap: {
108
+ [property: string]: {
109
+ maxLength?: number,
110
+ minLength?: number,
111
+ pattern?: string,
112
+ maximum?: number,
113
+ exclusiveMaximum?: boolean,
114
+ minimum?: number,
115
+ exclusiveMinimum?: boolean,
116
+ multipleOf?: number,
117
+ maxItems?: number,
118
+ minItems?: number,
119
+ uniqueItems?: boolean
120
+ }
121
+ } = {
122
+ }
123
+
@@ -0,0 +1,113 @@
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
+ * A parsed reference enriched with display name and path from the database.
18
+ *
19
+ * Uses ``extra="ignore"`` (not ``"forbid"``) because SDK dicts may contain
20
+ * fields not yet modelled here. Adding ``"forbid"`` would cause runtime
21
+ * deserialization failures whenever the SDK adds a new field.
22
+ * @export
23
+ * @interface ResolvedReferenceOutput
24
+ */
25
+ export interface ResolvedReferenceOutput {
26
+ /**
27
+ *
28
+ * @type {string}
29
+ * @memberof ResolvedReferenceOutput
30
+ */
31
+ refType: string;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof ResolvedReferenceOutput
36
+ */
37
+ entityId: string;
38
+ /**
39
+ * Human-readable name for the entity
40
+ * @type {string}
41
+ * @memberof ResolvedReferenceOutput
42
+ */
43
+ displayName: string;
44
+ /**
45
+ * Full materialized path (None for entities without path parts, e.g. tags, users)
46
+ * @type {string}
47
+ * @memberof ResolvedReferenceOutput
48
+ */
49
+ materializedPath?: string | null;
50
+ }
51
+
52
+ /**
53
+ * Check if a given object implements the ResolvedReferenceOutput interface.
54
+ */
55
+ export function instanceOfResolvedReferenceOutput(value: object): value is ResolvedReferenceOutput {
56
+ if (!('refType' in value) || value['refType'] === undefined) return false;
57
+ if (!('entityId' in value) || value['entityId'] === undefined) return false;
58
+ if (!('displayName' in value) || value['displayName'] === undefined) return false;
59
+ return true;
60
+ }
61
+
62
+ export function ResolvedReferenceOutputFromJSON(json: any): ResolvedReferenceOutput {
63
+ return ResolvedReferenceOutputFromJSONTyped(json, false);
64
+ }
65
+
66
+ export function ResolvedReferenceOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): ResolvedReferenceOutput {
67
+ if (json == null) {
68
+ return json;
69
+ }
70
+ return {
71
+
72
+ 'refType': json['ref_type'],
73
+ 'entityId': json['entity_id'],
74
+ 'displayName': json['display_name'],
75
+ 'materializedPath': json['materialized_path'] == null ? undefined : json['materialized_path'],
76
+ };
77
+ }
78
+
79
+ export function ResolvedReferenceOutputToJSON(json: any): ResolvedReferenceOutput {
80
+ return ResolvedReferenceOutputToJSONTyped(json, false);
81
+ }
82
+
83
+ export function ResolvedReferenceOutputToJSONTyped(value?: ResolvedReferenceOutput | null, ignoreDiscriminator: boolean = false): any {
84
+ if (value == null) {
85
+ return value;
86
+ }
87
+
88
+ return {
89
+
90
+ 'ref_type': value['refType'],
91
+ 'entity_id': value['entityId'],
92
+ 'display_name': value['displayName'],
93
+ 'materialized_path': value['materializedPath'],
94
+ };
95
+ }
96
+
97
+ export const ResolvedReferenceOutputPropertyValidationAttributesMap: {
98
+ [property: string]: {
99
+ maxLength?: number,
100
+ minLength?: number,
101
+ pattern?: string,
102
+ maximum?: number,
103
+ exclusiveMaximum?: boolean,
104
+ minimum?: number,
105
+ exclusiveMinimum?: boolean,
106
+ multipleOf?: number,
107
+ maxItems?: number,
108
+ minItems?: number,
109
+ uniqueItems?: boolean
110
+ }
111
+ } = {
112
+ }
113
+
@@ -34,6 +34,12 @@ import {
34
34
  * @interface StepInput
35
35
  */
36
36
  export interface StepInput {
37
+ /**
38
+ * Stable step identifier within the message
39
+ * @type {string}
40
+ * @memberof StepInput
41
+ */
42
+ id: string;
37
43
  /**
38
44
  * The name of the step
39
45
  * @type {string}
@@ -84,6 +90,7 @@ export interface StepInput {
84
90
  * Check if a given object implements the StepInput interface.
85
91
  */
86
92
  export function instanceOfStepInput(value: object): value is StepInput {
93
+ if (!('id' in value) || value['id'] === undefined) return false;
87
94
  if (!('name' in value) || value['name'] === undefined) return false;
88
95
  if (!('kind' in value) || value['kind'] === undefined) return false;
89
96
  if (!('startTime' in value) || value['startTime'] === undefined) return false;
@@ -100,6 +107,7 @@ export function StepInputFromJSONTyped(json: any, ignoreDiscriminator: boolean):
100
107
  }
101
108
  return {
102
109
 
110
+ 'id': json['id'],
103
111
  'name': json['name'],
104
112
  'kind': StepKindFromJSON(json['kind']),
105
113
  'args': json['args'] == null ? undefined : ArgsFromJSON(json['args']),
@@ -121,6 +129,7 @@ export function StepInputToJSONTyped(value?: StepInput | null, ignoreDiscriminat
121
129
 
122
130
  return {
123
131
 
132
+ 'id': value['id'],
124
133
  'name': value['name'],
125
134
  'kind': StepKindToJSON(value['kind']),
126
135
  'args': ArgsToJSON(value['args']),
@@ -18,6 +18,7 @@
18
18
  * @export
19
19
  */
20
20
  export const StepKind = {
21
+ Reasoning: 'reasoning',
21
22
  ToolCall: 'tool_call',
22
23
  Subagent: 'subagent'
23
24
  } as const;
@@ -34,6 +34,12 @@ import {
34
34
  * @interface StepOutput
35
35
  */
36
36
  export interface StepOutput {
37
+ /**
38
+ * Stable step identifier within the message
39
+ * @type {string}
40
+ * @memberof StepOutput
41
+ */
42
+ id: string;
37
43
  /**
38
44
  * The name of the step
39
45
  * @type {string}
@@ -84,6 +90,7 @@ export interface StepOutput {
84
90
  * Check if a given object implements the StepOutput interface.
85
91
  */
86
92
  export function instanceOfStepOutput(value: object): value is StepOutput {
93
+ if (!('id' in value) || value['id'] === undefined) return false;
87
94
  if (!('name' in value) || value['name'] === undefined) return false;
88
95
  if (!('kind' in value) || value['kind'] === undefined) return false;
89
96
  if (!('startTime' in value) || value['startTime'] === undefined) return false;
@@ -100,6 +107,7 @@ export function StepOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean)
100
107
  }
101
108
  return {
102
109
 
110
+ 'id': json['id'],
103
111
  'name': json['name'],
104
112
  'kind': StepKindFromJSON(json['kind']),
105
113
  'args': json['args'] == null ? undefined : ArgsFromJSON(json['args']),
@@ -121,6 +129,7 @@ export function StepOutputToJSONTyped(value?: StepOutput | null, ignoreDiscrimin
121
129
 
122
130
  return {
123
131
 
132
+ 'id': value['id'],
124
133
  'name': value['name'],
125
134
  'kind': StepKindToJSON(value['kind']),
126
135
  'args': ArgsToJSON(value['args']),
@@ -20,6 +20,13 @@ import {
20
20
  CitationToJSON,
21
21
  CitationToJSONTyped,
22
22
  } from './Citation';
23
+ import type { ResolvedReferenceInput } from './ResolvedReferenceInput';
24
+ import {
25
+ ResolvedReferenceInputFromJSON,
26
+ ResolvedReferenceInputFromJSONTyped,
27
+ ResolvedReferenceInputToJSON,
28
+ ResolvedReferenceInputToJSONTyped,
29
+ } from './ResolvedReferenceInput';
23
30
 
24
31
  /**
25
32
  *
@@ -33,12 +40,24 @@ export interface ThreadMessageContent {
33
40
  * @memberof ThreadMessageContent
34
41
  */
35
42
  text: string;
43
+ /**
44
+ * Whether this message represents a terminal assistant error
45
+ * @type {boolean}
46
+ * @memberof ThreadMessageContent
47
+ */
48
+ isError?: boolean | null;
36
49
  /**
37
50
  * A list of citations from the message
38
51
  * @type {Array<Citation>}
39
52
  * @memberof ThreadMessageContent
40
53
  */
41
54
  citations?: Array<Citation> | null;
55
+ /**
56
+ * Resolved inline references attached to this message
57
+ * @type {Array<ResolvedReferenceInput>}
58
+ * @memberof ThreadMessageContent
59
+ */
60
+ references?: Array<ResolvedReferenceInput> | null;
42
61
  }
43
62
 
44
63
  /**
@@ -60,7 +79,9 @@ export function ThreadMessageContentFromJSONTyped(json: any, ignoreDiscriminator
60
79
  return {
61
80
 
62
81
  'text': json['text'],
82
+ 'isError': json['is_error'] == null ? undefined : json['is_error'],
63
83
  'citations': json['citations'] == null ? undefined : ((json['citations'] as Array<any>).map(CitationFromJSON)),
84
+ 'references': json['references'] == null ? undefined : ((json['references'] as Array<any>).map(ResolvedReferenceInputFromJSON)),
64
85
  };
65
86
  }
66
87
 
@@ -76,7 +97,9 @@ export function ThreadMessageContentToJSONTyped(value?: ThreadMessageContent | n
76
97
  return {
77
98
 
78
99
  'text': value['text'],
100
+ 'is_error': value['isError'],
79
101
  'citations': value['citations'] == null ? undefined : ((value['citations'] as Array<any>).map(CitationToJSON)),
102
+ 'references': value['references'] == null ? undefined : ((value['references'] as Array<any>).map(ResolvedReferenceInputToJSON)),
80
103
  };
81
104
  }
82
105
 
@@ -35,6 +35,7 @@ export * from './DocumentResponse';
35
35
  export * from './DocumentType';
36
36
  export * from './DocumentVersionAction';
37
37
  export * from './DocumentVersionActionResponse';
38
+ export * from './DocumentVersionContentTypeFilter';
38
39
  export * from './DocumentVersionMetadata';
39
40
  export * from './DocumentVersionMetadataUpdate';
40
41
  export * from './DocumentVersionResponse';
@@ -62,6 +63,7 @@ export * from './LineageGraphResponse';
62
63
  export * from './LineageNodeResponse';
63
64
  export * from './LocationInner';
64
65
  export * from './MessageRole';
66
+ export * from './NonFilesystemReferenceType';
65
67
  export * from './OAuth2Config';
66
68
  export * from './PaginatedResponseAnnotatedUnionFolderResponseDocumentResponseDiscriminator';
67
69
  export * from './PaginatedResponseAnnotatedUnionSectionContentItemChunkContentItemDiscriminator';
@@ -89,6 +91,9 @@ export * from './PipelineState';
89
91
  export * from './PipelineStatus';
90
92
  export * from './Polygon';
91
93
  export * from './PolygonReference';
94
+ export * from './ReferenceType';
95
+ export * from './ResolvedReferenceInput';
96
+ export * from './ResolvedReferenceOutput';
92
97
  export * from './RootResponse';
93
98
  export * from './SSOInitiateResponse';
94
99
  export * from './ScoredChunkResponse';