@breign/client 1.0.56 → 1.0.58

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 (41) hide show
  1. package/dist/apis/ConversationsApi.d.ts +5 -5
  2. package/dist/apis/ConversationsApi.js +4 -3
  3. package/dist/apis/ToolsApi.d.ts +12 -1
  4. package/dist/apis/ToolsApi.js +27 -0
  5. package/dist/models/AttachmentCreateRequestUio.d.ts +5 -39
  6. package/dist/models/AttachmentCreateRequestUio.js +22 -32
  7. package/dist/models/AttachmentCreateResponseUio.d.ts +24 -0
  8. package/dist/models/AttachmentCreateResponseUio.js +64 -0
  9. package/dist/models/AttachmentDetailsResponseUio.d.ts +23 -0
  10. package/dist/models/AttachmentDetailsResponseUio.js +57 -0
  11. package/dist/models/AttachmentTypeUio.d.ts +1 -0
  12. package/dist/models/AttachmentTypeUio.js +2 -1
  13. package/dist/models/ChatContextAttachmentUio.d.ts +23 -0
  14. package/dist/models/ChatContextAttachmentUio.js +57 -0
  15. package/dist/models/ConnectOAuth2Tool200ResponseUio.d.ts +32 -0
  16. package/dist/models/ConnectOAuth2Tool200ResponseUio.js +50 -0
  17. package/dist/models/ContextUio.d.ts +3 -3
  18. package/dist/models/ContextUio.js +3 -3
  19. package/dist/models/FileAttachmentCreateRequestUio.d.ts +63 -0
  20. package/dist/models/FileAttachmentCreateRequestUio.js +73 -0
  21. package/dist/models/FileAttachmentDetailsResponseUio.d.ts +89 -0
  22. package/dist/models/FileAttachmentDetailsResponseUio.js +85 -0
  23. package/dist/models/FileAttachmentProcessedOneOfUio.d.ts +9 -3
  24. package/dist/models/FileAttachmentProcessedOneOfUio.js +9 -3
  25. package/dist/models/FileAttachmentUio.d.ts +1 -1
  26. package/dist/models/FileAttachmentUploadResponseUio.d.ts +103 -0
  27. package/dist/models/FileAttachmentUploadResponseUio.js +93 -0
  28. package/dist/models/ImageAttachment1Uio.d.ts +94 -0
  29. package/dist/models/ImageAttachment1Uio.js +90 -0
  30. package/dist/models/ImageAttachmentCreateRequestUio.d.ts +69 -0
  31. package/dist/models/ImageAttachmentCreateRequestUio.js +75 -0
  32. package/dist/models/ImageAttachmentDetailsResponseUio.d.ts +94 -0
  33. package/dist/models/ImageAttachmentDetailsResponseUio.js +90 -0
  34. package/dist/models/ImageAttachmentUio.d.ts +94 -0
  35. package/dist/models/ImageAttachmentUio.js +90 -0
  36. package/dist/models/ImageAttachmentUploadResponseUio.d.ts +108 -0
  37. package/dist/models/ImageAttachmentUploadResponseUio.js +98 -0
  38. package/dist/models/index.d.ts +12 -0
  39. package/dist/models/index.js +12 -0
  40. package/dist/openapi.json +249 -6
  41. package/package.json +1 -1
@@ -0,0 +1,108 @@
1
+ /**
2
+ * brain-client
3
+ * Api ands models for brain-app and brain-app
4
+ *
5
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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 { FileAttachmentStatusUio } from './FileAttachmentStatusUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface ImageAttachmentUploadResponseUio
17
+ */
18
+ export interface ImageAttachmentUploadResponseUio {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof ImageAttachmentUploadResponseUio
23
+ */
24
+ type: ImageAttachmentUploadResponseUioTypeEnum;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof ImageAttachmentUploadResponseUio
29
+ */
30
+ id: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof ImageAttachmentUploadResponseUio
35
+ */
36
+ name: string;
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof ImageAttachmentUploadResponseUio
41
+ */
42
+ mimeType: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof ImageAttachmentUploadResponseUio
47
+ */
48
+ ext: string;
49
+ /**
50
+ *
51
+ * @type {number}
52
+ * @memberof ImageAttachmentUploadResponseUio
53
+ */
54
+ size: number;
55
+ /**
56
+ *
57
+ * @type {string}
58
+ * @memberof ImageAttachmentUploadResponseUio
59
+ */
60
+ key: string;
61
+ /**
62
+ * Presigned URL to access the image
63
+ * @type {string}
64
+ * @memberof ImageAttachmentUploadResponseUio
65
+ */
66
+ url?: string;
67
+ /**
68
+ * Base64 inline data URL (optional)
69
+ * @type {string}
70
+ * @memberof ImageAttachmentUploadResponseUio
71
+ */
72
+ inlineDataUrl?: string;
73
+ /**
74
+ *
75
+ * @type {FileAttachmentStatusUio}
76
+ * @memberof ImageAttachmentUploadResponseUio
77
+ */
78
+ status: FileAttachmentStatusUio;
79
+ /**
80
+ *
81
+ * @type {string}
82
+ * @memberof ImageAttachmentUploadResponseUio
83
+ */
84
+ postURL: string;
85
+ /**
86
+ *
87
+ * @type {{ [key: string]: any; }}
88
+ * @memberof ImageAttachmentUploadResponseUio
89
+ */
90
+ formData: {
91
+ [key: string]: any;
92
+ };
93
+ }
94
+ /**
95
+ * @export
96
+ */
97
+ export declare const ImageAttachmentUploadResponseUioTypeEnum: {
98
+ readonly Image: "image";
99
+ };
100
+ export type ImageAttachmentUploadResponseUioTypeEnum = typeof ImageAttachmentUploadResponseUioTypeEnum[keyof typeof ImageAttachmentUploadResponseUioTypeEnum];
101
+ /**
102
+ * Check if a given object implements the ImageAttachmentUploadResponseUio interface.
103
+ */
104
+ export declare function instanceOfImageAttachmentUploadResponseUio(value: object): value is ImageAttachmentUploadResponseUio;
105
+ export declare function ImageAttachmentUploadResponseUioFromJSON(json: any): ImageAttachmentUploadResponseUio;
106
+ export declare function ImageAttachmentUploadResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ImageAttachmentUploadResponseUio;
107
+ export declare function ImageAttachmentUploadResponseUioToJSON(json: any): ImageAttachmentUploadResponseUio;
108
+ export declare function ImageAttachmentUploadResponseUioToJSONTyped(value?: ImageAttachmentUploadResponseUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,98 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * brain-client
6
+ * Api ands models for brain-app and brain-app
7
+ *
8
+ * The version of the OpenAPI document: 0.0.0-SNAPSHOT
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.ImageAttachmentUploadResponseUioTypeEnum = void 0;
17
+ exports.instanceOfImageAttachmentUploadResponseUio = instanceOfImageAttachmentUploadResponseUio;
18
+ exports.ImageAttachmentUploadResponseUioFromJSON = ImageAttachmentUploadResponseUioFromJSON;
19
+ exports.ImageAttachmentUploadResponseUioFromJSONTyped = ImageAttachmentUploadResponseUioFromJSONTyped;
20
+ exports.ImageAttachmentUploadResponseUioToJSON = ImageAttachmentUploadResponseUioToJSON;
21
+ exports.ImageAttachmentUploadResponseUioToJSONTyped = ImageAttachmentUploadResponseUioToJSONTyped;
22
+ const FileAttachmentStatusUio_1 = require("./FileAttachmentStatusUio");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.ImageAttachmentUploadResponseUioTypeEnum = {
27
+ Image: 'image'
28
+ };
29
+ /**
30
+ * Check if a given object implements the ImageAttachmentUploadResponseUio interface.
31
+ */
32
+ function instanceOfImageAttachmentUploadResponseUio(value) {
33
+ if (!('type' in value) || value['type'] === undefined)
34
+ return false;
35
+ if (!('id' in value) || value['id'] === undefined)
36
+ return false;
37
+ if (!('name' in value) || value['name'] === undefined)
38
+ return false;
39
+ if (!('mimeType' in value) || value['mimeType'] === undefined)
40
+ return false;
41
+ if (!('ext' in value) || value['ext'] === undefined)
42
+ return false;
43
+ if (!('size' in value) || value['size'] === undefined)
44
+ return false;
45
+ if (!('key' in value) || value['key'] === undefined)
46
+ return false;
47
+ if (!('status' in value) || value['status'] === undefined)
48
+ return false;
49
+ if (!('postURL' in value) || value['postURL'] === undefined)
50
+ return false;
51
+ if (!('formData' in value) || value['formData'] === undefined)
52
+ return false;
53
+ return true;
54
+ }
55
+ function ImageAttachmentUploadResponseUioFromJSON(json) {
56
+ return ImageAttachmentUploadResponseUioFromJSONTyped(json, false);
57
+ }
58
+ function ImageAttachmentUploadResponseUioFromJSONTyped(json, ignoreDiscriminator) {
59
+ if (json == null) {
60
+ return json;
61
+ }
62
+ return {
63
+ 'type': json['type'],
64
+ 'id': json['id'],
65
+ 'name': json['name'],
66
+ 'mimeType': json['mimeType'],
67
+ 'ext': json['ext'],
68
+ 'size': json['size'],
69
+ 'key': json['key'],
70
+ 'url': json['url'] == null ? undefined : json['url'],
71
+ 'inlineDataUrl': json['inlineDataUrl'] == null ? undefined : json['inlineDataUrl'],
72
+ 'status': (0, FileAttachmentStatusUio_1.FileAttachmentStatusUioFromJSON)(json['status']),
73
+ 'postURL': json['postURL'],
74
+ 'formData': json['formData'],
75
+ };
76
+ }
77
+ function ImageAttachmentUploadResponseUioToJSON(json) {
78
+ return ImageAttachmentUploadResponseUioToJSONTyped(json, false);
79
+ }
80
+ function ImageAttachmentUploadResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
81
+ if (value == null) {
82
+ return value;
83
+ }
84
+ return {
85
+ 'type': value['type'],
86
+ 'id': value['id'],
87
+ 'name': value['name'],
88
+ 'mimeType': value['mimeType'],
89
+ 'ext': value['ext'],
90
+ 'size': value['size'],
91
+ 'key': value['key'],
92
+ 'url': value['url'],
93
+ 'inlineDataUrl': value['inlineDataUrl'],
94
+ 'status': (0, FileAttachmentStatusUio_1.FileAttachmentStatusUioToJSON)(value['status']),
95
+ 'postURL': value['postURL'],
96
+ 'formData': value['formData'],
97
+ };
98
+ }
@@ -50,6 +50,8 @@ export * from './AppTextToSpeechResponseUio';
50
50
  export * from './AppUio';
51
51
  export * from './AppUpdateRequestUio';
52
52
  export * from './AttachmentCreateRequestUio';
53
+ export * from './AttachmentCreateResponseUio';
54
+ export * from './AttachmentDetailsResponseUio';
53
55
  export * from './AttachmentTypeUio';
54
56
  export * from './AudioFile1Uio';
55
57
  export * from './AudioFileOrBufferUio';
@@ -62,6 +64,7 @@ export * from './AuthCodeResponseUio';
62
64
  export * from './AuthTypeUio';
63
65
  export * from './BodyWithIdUio';
64
66
  export * from './BodyWithMessageUio';
67
+ export * from './ChatContextAttachmentUio';
65
68
  export * from './ChatContextLocationUio';
66
69
  export * from './ChatContextUio';
67
70
  export * from './ChatMessageAudioInnerUio';
@@ -76,6 +79,7 @@ export * from './ChunkCreateRequestUio';
76
79
  export * from './ChunkCreateResponseUio';
77
80
  export * from './ChunkUio';
78
81
  export * from './ConfigurationDefaultFillerPhrasesUio';
82
+ export * from './ConnectOAuth2Tool200ResponseUio';
79
83
  export * from './ContentsToolsUio';
80
84
  export * from './ContextUio';
81
85
  export * from './ConversationFlowNodeEntrypointsUio';
@@ -92,11 +96,14 @@ export * from './DocumentAddRequestUio';
92
96
  export * from './EngineOptionsUio';
93
97
  export * from './EngineUio';
94
98
  export * from './EphemeralInstanceUio';
99
+ export * from './FileAttachmentCreateRequestUio';
100
+ export * from './FileAttachmentDetailsResponseUio';
95
101
  export * from './FileAttachmentProcessedOneOf1Uio';
96
102
  export * from './FileAttachmentProcessedOneOfUio';
97
103
  export * from './FileAttachmentProcessedUio';
98
104
  export * from './FileAttachmentStatusUio';
99
105
  export * from './FileAttachmentUio';
106
+ export * from './FileAttachmentUploadResponseUio';
100
107
  export * from './FileCreationRequestUio';
101
108
  export * from './FileCreationResponseUio';
102
109
  export * from './FileFormDataUio';
@@ -120,6 +127,11 @@ export * from './HealthCheckResponseComponentsApiUio';
120
127
  export * from './HealthCheckResponseComponentsUio';
121
128
  export * from './HealthCheckResponseUio';
122
129
  export * from './HealthStatusUio';
130
+ export * from './ImageAttachment1Uio';
131
+ export * from './ImageAttachmentCreateRequestUio';
132
+ export * from './ImageAttachmentDetailsResponseUio';
133
+ export * from './ImageAttachmentUio';
134
+ export * from './ImageAttachmentUploadResponseUio';
123
135
  export * from './ImageKnowledgeUio';
124
136
  export * from './ImportFileToAgentKnowledge200ResponseUio';
125
137
  export * from './InputUio';
@@ -68,6 +68,8 @@ __exportStar(require("./AppTextToSpeechResponseUio"), exports);
68
68
  __exportStar(require("./AppUio"), exports);
69
69
  __exportStar(require("./AppUpdateRequestUio"), exports);
70
70
  __exportStar(require("./AttachmentCreateRequestUio"), exports);
71
+ __exportStar(require("./AttachmentCreateResponseUio"), exports);
72
+ __exportStar(require("./AttachmentDetailsResponseUio"), exports);
71
73
  __exportStar(require("./AttachmentTypeUio"), exports);
72
74
  __exportStar(require("./AudioFile1Uio"), exports);
73
75
  __exportStar(require("./AudioFileOrBufferUio"), exports);
@@ -80,6 +82,7 @@ __exportStar(require("./AuthCodeResponseUio"), exports);
80
82
  __exportStar(require("./AuthTypeUio"), exports);
81
83
  __exportStar(require("./BodyWithIdUio"), exports);
82
84
  __exportStar(require("./BodyWithMessageUio"), exports);
85
+ __exportStar(require("./ChatContextAttachmentUio"), exports);
83
86
  __exportStar(require("./ChatContextLocationUio"), exports);
84
87
  __exportStar(require("./ChatContextUio"), exports);
85
88
  __exportStar(require("./ChatMessageAudioInnerUio"), exports);
@@ -94,6 +97,7 @@ __exportStar(require("./ChunkCreateRequestUio"), exports);
94
97
  __exportStar(require("./ChunkCreateResponseUio"), exports);
95
98
  __exportStar(require("./ChunkUio"), exports);
96
99
  __exportStar(require("./ConfigurationDefaultFillerPhrasesUio"), exports);
100
+ __exportStar(require("./ConnectOAuth2Tool200ResponseUio"), exports);
97
101
  __exportStar(require("./ContentsToolsUio"), exports);
98
102
  __exportStar(require("./ContextUio"), exports);
99
103
  __exportStar(require("./ConversationFlowNodeEntrypointsUio"), exports);
@@ -110,11 +114,14 @@ __exportStar(require("./DocumentAddRequestUio"), exports);
110
114
  __exportStar(require("./EngineOptionsUio"), exports);
111
115
  __exportStar(require("./EngineUio"), exports);
112
116
  __exportStar(require("./EphemeralInstanceUio"), exports);
117
+ __exportStar(require("./FileAttachmentCreateRequestUio"), exports);
118
+ __exportStar(require("./FileAttachmentDetailsResponseUio"), exports);
113
119
  __exportStar(require("./FileAttachmentProcessedOneOf1Uio"), exports);
114
120
  __exportStar(require("./FileAttachmentProcessedOneOfUio"), exports);
115
121
  __exportStar(require("./FileAttachmentProcessedUio"), exports);
116
122
  __exportStar(require("./FileAttachmentStatusUio"), exports);
117
123
  __exportStar(require("./FileAttachmentUio"), exports);
124
+ __exportStar(require("./FileAttachmentUploadResponseUio"), exports);
118
125
  __exportStar(require("./FileCreationRequestUio"), exports);
119
126
  __exportStar(require("./FileCreationResponseUio"), exports);
120
127
  __exportStar(require("./FileFormDataUio"), exports);
@@ -138,6 +145,11 @@ __exportStar(require("./HealthCheckResponseComponentsApiUio"), exports);
138
145
  __exportStar(require("./HealthCheckResponseComponentsUio"), exports);
139
146
  __exportStar(require("./HealthCheckResponseUio"), exports);
140
147
  __exportStar(require("./HealthStatusUio"), exports);
148
+ __exportStar(require("./ImageAttachment1Uio"), exports);
149
+ __exportStar(require("./ImageAttachmentCreateRequestUio"), exports);
150
+ __exportStar(require("./ImageAttachmentDetailsResponseUio"), exports);
151
+ __exportStar(require("./ImageAttachmentUio"), exports);
152
+ __exportStar(require("./ImageAttachmentUploadResponseUio"), exports);
141
153
  __exportStar(require("./ImageKnowledgeUio"), exports);
142
154
  __exportStar(require("./ImportFileToAgentKnowledge200ResponseUio"), exports);
143
155
  __exportStar(require("./InputUio"), exports);
package/dist/openapi.json CHANGED
@@ -3036,6 +3036,16 @@
3036
3036
  "required" : true
3037
3037
  },
3038
3038
  "responses" : {
3039
+ "201" : {
3040
+ "content" : {
3041
+ "application/json" : {
3042
+ "schema" : {
3043
+ "$ref" : "#/components/schemas/AttachmentCreateResponse"
3044
+ }
3045
+ }
3046
+ },
3047
+ "description" : "Attachment created"
3048
+ },
3039
3049
  "400" : {
3040
3050
  "description" : "Invalid request"
3041
3051
  },
@@ -3119,7 +3129,7 @@
3119
3129
  "content" : {
3120
3130
  "application/json" : {
3121
3131
  "schema" : {
3122
- "$ref" : "#/components/schemas/FileAttachment"
3132
+ "$ref" : "#/components/schemas/AttachmentDetailsResponse"
3123
3133
  }
3124
3134
  }
3125
3135
  },
@@ -5597,6 +5607,49 @@
5597
5607
  "tags" : [ "tools" ]
5598
5608
  }
5599
5609
  },
5610
+ "/tools/{toolId}/oauth/connect" : {
5611
+ "post" : {
5612
+ "operationId" : "connectOAuth2Tool",
5613
+ "parameters" : [ {
5614
+ "description" : "Tool identifier",
5615
+ "in" : "path",
5616
+ "name" : "toolId",
5617
+ "required" : true,
5618
+ "schema" : {
5619
+ "type" : "string"
5620
+ }
5621
+ } ],
5622
+ "responses" : {
5623
+ "200" : {
5624
+ "content" : {
5625
+ "application/json" : {
5626
+ "schema" : {
5627
+ "$ref" : "#/components/schemas/connectOAuth2Tool_200_response"
5628
+ }
5629
+ }
5630
+ },
5631
+ "description" : "Tool connection initialized"
5632
+ },
5633
+ "400" : {
5634
+ "description" : "Tool connection failed"
5635
+ },
5636
+ "401" : {
5637
+ "description" : "Unauthorized"
5638
+ },
5639
+ "403" : {
5640
+ "description" : "Forbidden"
5641
+ },
5642
+ "404" : {
5643
+ "description" : "Tool not found"
5644
+ },
5645
+ "500" : {
5646
+ "description" : "Internal server error"
5647
+ }
5648
+ },
5649
+ "summary" : "Connect a tool via OAuth2",
5650
+ "tags" : [ "tools" ]
5651
+ }
5652
+ },
5600
5653
  "/tools/{toolId}/token" : {
5601
5654
  "put" : {
5602
5655
  "operationId" : "setToolToken",
@@ -7576,7 +7629,6 @@
7576
7629
  "type" : "string"
7577
7630
  },
7578
7631
  "url" : {
7579
- "description" : "URL to access the attachment",
7580
7632
  "type" : "string"
7581
7633
  },
7582
7634
  "status" : {
@@ -8453,7 +8505,7 @@
8453
8505
  "properties" : {
8454
8506
  "attachments" : {
8455
8507
  "items" : {
8456
- "$ref" : "#/components/schemas/FileAttachment"
8508
+ "$ref" : "#/components/schemas/ChatContextAttachment"
8457
8509
  },
8458
8510
  "type" : "array"
8459
8511
  }
@@ -8462,9 +8514,17 @@
8462
8514
  "type" : "object"
8463
8515
  },
8464
8516
  "AttachmentCreateRequest" : {
8517
+ "oneOf" : [ {
8518
+ "$ref" : "#/components/schemas/FileAttachmentCreateRequest"
8519
+ }, {
8520
+ "$ref" : "#/components/schemas/ImageAttachmentCreateRequest"
8521
+ } ]
8522
+ },
8523
+ "FileAttachmentCreateRequest" : {
8465
8524
  "properties" : {
8466
8525
  "type" : {
8467
- "$ref" : "#/components/schemas/AttachmentType"
8526
+ "enum" : [ "file" ],
8527
+ "type" : "string"
8468
8528
  },
8469
8529
  "name" : {
8470
8530
  "type" : "string"
@@ -8472,16 +8532,140 @@
8472
8532
  "mimeType" : {
8473
8533
  "type" : "string"
8474
8534
  },
8535
+ "ext" : {
8536
+ "type" : "string"
8537
+ },
8475
8538
  "size" : {
8476
8539
  "type" : "number"
8540
+ }
8541
+ },
8542
+ "required" : [ "ext", "mimeType", "name", "size", "type" ],
8543
+ "type" : "object"
8544
+ },
8545
+ "ImageAttachmentCreateRequest" : {
8546
+ "properties" : {
8547
+ "type" : {
8548
+ "enum" : [ "image" ],
8549
+ "type" : "string"
8550
+ },
8551
+ "name" : {
8552
+ "type" : "string"
8553
+ },
8554
+ "mimeType" : {
8555
+ "type" : "string"
8477
8556
  },
8478
8557
  "ext" : {
8479
8558
  "type" : "string"
8559
+ },
8560
+ "size" : {
8561
+ "type" : "number"
8562
+ },
8563
+ "dataUrl" : {
8564
+ "description" : "Optional inline base64 image data",
8565
+ "type" : "string"
8480
8566
  }
8481
8567
  },
8482
8568
  "required" : [ "ext", "mimeType", "name", "size", "type" ],
8483
8569
  "type" : "object"
8484
8570
  },
8571
+ "AttachmentCreateResponse" : {
8572
+ "oneOf" : [ {
8573
+ "$ref" : "#/components/schemas/FileAttachmentUploadResponse"
8574
+ }, {
8575
+ "$ref" : "#/components/schemas/ImageAttachmentUploadResponse"
8576
+ }, {
8577
+ "$ref" : "#/components/schemas/ImageAttachmentInlineResponse"
8578
+ } ]
8579
+ },
8580
+ "FileAttachmentUploadResponse" : {
8581
+ "allOf" : [ {
8582
+ "$ref" : "#/components/schemas/FileAttachment"
8583
+ }, {
8584
+ "$ref" : "#/components/schemas/S3UploadBody"
8585
+ } ]
8586
+ },
8587
+ "ImageAttachmentUploadResponse" : {
8588
+ "allOf" : [ {
8589
+ "$ref" : "#/components/schemas/ImageAttachment_1"
8590
+ }, {
8591
+ "$ref" : "#/components/schemas/S3UploadBody"
8592
+ } ]
8593
+ },
8594
+ "ImageAttachmentInlineResponse" : {
8595
+ "$ref" : "#/components/schemas/ImageAttachment"
8596
+ },
8597
+ "ImageAttachment" : {
8598
+ "properties" : {
8599
+ "type" : {
8600
+ "enum" : [ "image" ],
8601
+ "type" : "string"
8602
+ },
8603
+ "id" : {
8604
+ "type" : "string"
8605
+ },
8606
+ "name" : {
8607
+ "type" : "string"
8608
+ },
8609
+ "mimeType" : {
8610
+ "type" : "string"
8611
+ },
8612
+ "ext" : {
8613
+ "type" : "string"
8614
+ },
8615
+ "size" : {
8616
+ "type" : "number"
8617
+ },
8618
+ "key" : {
8619
+ "type" : "string"
8620
+ },
8621
+ "url" : {
8622
+ "description" : "Presigned URL to access the image",
8623
+ "type" : "string"
8624
+ },
8625
+ "inlineDataUrl" : {
8626
+ "description" : "Base64 inline data URL (optional)",
8627
+ "type" : "string"
8628
+ },
8629
+ "status" : {
8630
+ "$ref" : "#/components/schemas/FileAttachmentStatus"
8631
+ }
8632
+ },
8633
+ "required" : [ "ext", "id", "key", "mimeType", "name", "size", "status", "type" ],
8634
+ "type" : "object"
8635
+ },
8636
+ "AttachmentDetailsResponse" : {
8637
+ "oneOf" : [ {
8638
+ "$ref" : "#/components/schemas/FileAttachmentDetailsResponse"
8639
+ }, {
8640
+ "$ref" : "#/components/schemas/ImageAttachmentDetailsResponse"
8641
+ } ]
8642
+ },
8643
+ "FileAttachmentDetailsResponse" : {
8644
+ "allOf" : [ {
8645
+ "$ref" : "#/components/schemas/FileAttachment"
8646
+ }, {
8647
+ "properties" : {
8648
+ "url" : {
8649
+ "description" : "Presigned download URL (if available)",
8650
+ "type" : "string"
8651
+ }
8652
+ },
8653
+ "type" : "object"
8654
+ } ]
8655
+ },
8656
+ "ImageAttachmentDetailsResponse" : {
8657
+ "allOf" : [ {
8658
+ "$ref" : "#/components/schemas/ImageAttachment_1"
8659
+ }, {
8660
+ "properties" : {
8661
+ "url" : {
8662
+ "description" : "Presigned download URL (if available)",
8663
+ "type" : "string"
8664
+ }
8665
+ },
8666
+ "type" : "object"
8667
+ } ]
8668
+ },
8485
8669
  "BodyWithMessage" : {
8486
8670
  "properties" : {
8487
8671
  "message" : {
@@ -9366,7 +9550,7 @@
9366
9550
  "type" : "string"
9367
9551
  },
9368
9552
  "AttachmentType" : {
9369
- "enum" : [ "file" ],
9553
+ "enum" : [ "file", "image" ],
9370
9554
  "type" : "string"
9371
9555
  },
9372
9556
  "FileAttachmentStatus" : {
@@ -9441,6 +9625,52 @@
9441
9625
  "enum" : [ "reference" ],
9442
9626
  "type" : "string"
9443
9627
  },
9628
+ "ChatContextAttachment" : {
9629
+ "oneOf" : [ {
9630
+ "$ref" : "#/components/schemas/FileAttachment"
9631
+ }, {
9632
+ "$ref" : "#/components/schemas/ImageAttachment_1"
9633
+ } ]
9634
+ },
9635
+ "ImageAttachment_1" : {
9636
+ "properties" : {
9637
+ "type" : {
9638
+ "enum" : [ "image" ],
9639
+ "type" : "string"
9640
+ },
9641
+ "id" : {
9642
+ "type" : "string"
9643
+ },
9644
+ "name" : {
9645
+ "type" : "string"
9646
+ },
9647
+ "mimeType" : {
9648
+ "type" : "string"
9649
+ },
9650
+ "ext" : {
9651
+ "type" : "string"
9652
+ },
9653
+ "size" : {
9654
+ "type" : "number"
9655
+ },
9656
+ "key" : {
9657
+ "type" : "string"
9658
+ },
9659
+ "url" : {
9660
+ "description" : "Presigned URL to access the image",
9661
+ "type" : "string"
9662
+ },
9663
+ "inlineDataUrl" : {
9664
+ "description" : "Base64 inline data URL (optional)",
9665
+ "type" : "string"
9666
+ },
9667
+ "status" : {
9668
+ "$ref" : "#/components/schemas/FileAttachmentStatus"
9669
+ }
9670
+ },
9671
+ "required" : [ "ext", "id", "key", "mimeType", "name", "size", "status", "type" ],
9672
+ "type" : "object"
9673
+ },
9444
9674
  "ProviderType" : {
9445
9675
  "enum" : [ "ollama", "openai", "mistral", "other" ],
9446
9676
  "type" : "string"
@@ -9541,6 +9771,18 @@
9541
9771
  "required" : [ "image" ],
9542
9772
  "type" : "object"
9543
9773
  },
9774
+ "connectOAuth2Tool_200_response" : {
9775
+ "additionalProperties" : false,
9776
+ "properties" : {
9777
+ "authorizationUrl" : {
9778
+ "description" : "URL to redirect the user for OAuth2 authorization",
9779
+ "format" : "uri",
9780
+ "type" : "string"
9781
+ }
9782
+ },
9783
+ "required" : [ "authorizationUrl" ],
9784
+ "type" : "object"
9785
+ },
9544
9786
  "KnowledgeBase_files_inner" : {
9545
9787
  "properties" : {
9546
9788
  "id" : {
@@ -9699,7 +9941,8 @@
9699
9941
  "FileAttachment_processed_oneOf" : {
9700
9942
  "properties" : {
9701
9943
  "type" : {
9702
- "$ref" : "#/components/schemas/AttachmentType"
9944
+ "enum" : [ "file" ],
9945
+ "type" : "string"
9703
9946
  },
9704
9947
  "key" : {
9705
9948
  "type" : "string"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.56",
3
+ "version": "1.0.58",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",