@breign/client 1.0.57 → 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 (37) hide show
  1. package/dist/apis/ConversationsApi.d.ts +5 -5
  2. package/dist/apis/ConversationsApi.js +4 -3
  3. package/dist/models/AttachmentCreateRequestUio.d.ts +5 -39
  4. package/dist/models/AttachmentCreateRequestUio.js +22 -32
  5. package/dist/models/AttachmentCreateResponseUio.d.ts +24 -0
  6. package/dist/models/AttachmentCreateResponseUio.js +64 -0
  7. package/dist/models/AttachmentDetailsResponseUio.d.ts +23 -0
  8. package/dist/models/AttachmentDetailsResponseUio.js +57 -0
  9. package/dist/models/AttachmentTypeUio.d.ts +1 -0
  10. package/dist/models/AttachmentTypeUio.js +2 -1
  11. package/dist/models/ChatContextAttachmentUio.d.ts +23 -0
  12. package/dist/models/ChatContextAttachmentUio.js +57 -0
  13. package/dist/models/ContextUio.d.ts +3 -3
  14. package/dist/models/ContextUio.js +3 -3
  15. package/dist/models/FileAttachmentCreateRequestUio.d.ts +63 -0
  16. package/dist/models/FileAttachmentCreateRequestUio.js +73 -0
  17. package/dist/models/FileAttachmentDetailsResponseUio.d.ts +89 -0
  18. package/dist/models/FileAttachmentDetailsResponseUio.js +85 -0
  19. package/dist/models/FileAttachmentProcessedOneOfUio.d.ts +9 -3
  20. package/dist/models/FileAttachmentProcessedOneOfUio.js +9 -3
  21. package/dist/models/FileAttachmentUio.d.ts +1 -1
  22. package/dist/models/FileAttachmentUploadResponseUio.d.ts +103 -0
  23. package/dist/models/FileAttachmentUploadResponseUio.js +93 -0
  24. package/dist/models/ImageAttachment1Uio.d.ts +94 -0
  25. package/dist/models/ImageAttachment1Uio.js +90 -0
  26. package/dist/models/ImageAttachmentCreateRequestUio.d.ts +69 -0
  27. package/dist/models/ImageAttachmentCreateRequestUio.js +75 -0
  28. package/dist/models/ImageAttachmentDetailsResponseUio.d.ts +94 -0
  29. package/dist/models/ImageAttachmentDetailsResponseUio.js +90 -0
  30. package/dist/models/ImageAttachmentUio.d.ts +94 -0
  31. package/dist/models/ImageAttachmentUio.js +90 -0
  32. package/dist/models/ImageAttachmentUploadResponseUio.d.ts +108 -0
  33. package/dist/models/ImageAttachmentUploadResponseUio.js +98 -0
  34. package/dist/models/index.d.ts +11 -0
  35. package/dist/models/index.js +11 -0
  36. package/dist/openapi.json +194 -6
  37. package/package.json +1 -1
@@ -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';
@@ -93,11 +96,14 @@ export * from './DocumentAddRequestUio';
93
96
  export * from './EngineOptionsUio';
94
97
  export * from './EngineUio';
95
98
  export * from './EphemeralInstanceUio';
99
+ export * from './FileAttachmentCreateRequestUio';
100
+ export * from './FileAttachmentDetailsResponseUio';
96
101
  export * from './FileAttachmentProcessedOneOf1Uio';
97
102
  export * from './FileAttachmentProcessedOneOfUio';
98
103
  export * from './FileAttachmentProcessedUio';
99
104
  export * from './FileAttachmentStatusUio';
100
105
  export * from './FileAttachmentUio';
106
+ export * from './FileAttachmentUploadResponseUio';
101
107
  export * from './FileCreationRequestUio';
102
108
  export * from './FileCreationResponseUio';
103
109
  export * from './FileFormDataUio';
@@ -121,6 +127,11 @@ export * from './HealthCheckResponseComponentsApiUio';
121
127
  export * from './HealthCheckResponseComponentsUio';
122
128
  export * from './HealthCheckResponseUio';
123
129
  export * from './HealthStatusUio';
130
+ export * from './ImageAttachment1Uio';
131
+ export * from './ImageAttachmentCreateRequestUio';
132
+ export * from './ImageAttachmentDetailsResponseUio';
133
+ export * from './ImageAttachmentUio';
134
+ export * from './ImageAttachmentUploadResponseUio';
124
135
  export * from './ImageKnowledgeUio';
125
136
  export * from './ImportFileToAgentKnowledge200ResponseUio';
126
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);
@@ -111,11 +114,14 @@ __exportStar(require("./DocumentAddRequestUio"), exports);
111
114
  __exportStar(require("./EngineOptionsUio"), exports);
112
115
  __exportStar(require("./EngineUio"), exports);
113
116
  __exportStar(require("./EphemeralInstanceUio"), exports);
117
+ __exportStar(require("./FileAttachmentCreateRequestUio"), exports);
118
+ __exportStar(require("./FileAttachmentDetailsResponseUio"), exports);
114
119
  __exportStar(require("./FileAttachmentProcessedOneOf1Uio"), exports);
115
120
  __exportStar(require("./FileAttachmentProcessedOneOfUio"), exports);
116
121
  __exportStar(require("./FileAttachmentProcessedUio"), exports);
117
122
  __exportStar(require("./FileAttachmentStatusUio"), exports);
118
123
  __exportStar(require("./FileAttachmentUio"), exports);
124
+ __exportStar(require("./FileAttachmentUploadResponseUio"), exports);
119
125
  __exportStar(require("./FileCreationRequestUio"), exports);
120
126
  __exportStar(require("./FileCreationResponseUio"), exports);
121
127
  __exportStar(require("./FileFormDataUio"), exports);
@@ -139,6 +145,11 @@ __exportStar(require("./HealthCheckResponseComponentsApiUio"), exports);
139
145
  __exportStar(require("./HealthCheckResponseComponentsUio"), exports);
140
146
  __exportStar(require("./HealthCheckResponseUio"), exports);
141
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);
142
153
  __exportStar(require("./ImageKnowledgeUio"), exports);
143
154
  __exportStar(require("./ImportFileToAgentKnowledge200ResponseUio"), exports);
144
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
  },
@@ -7619,7 +7629,6 @@
7619
7629
  "type" : "string"
7620
7630
  },
7621
7631
  "url" : {
7622
- "description" : "URL to access the attachment",
7623
7632
  "type" : "string"
7624
7633
  },
7625
7634
  "status" : {
@@ -8496,7 +8505,7 @@
8496
8505
  "properties" : {
8497
8506
  "attachments" : {
8498
8507
  "items" : {
8499
- "$ref" : "#/components/schemas/FileAttachment"
8508
+ "$ref" : "#/components/schemas/ChatContextAttachment"
8500
8509
  },
8501
8510
  "type" : "array"
8502
8511
  }
@@ -8505,9 +8514,17 @@
8505
8514
  "type" : "object"
8506
8515
  },
8507
8516
  "AttachmentCreateRequest" : {
8517
+ "oneOf" : [ {
8518
+ "$ref" : "#/components/schemas/FileAttachmentCreateRequest"
8519
+ }, {
8520
+ "$ref" : "#/components/schemas/ImageAttachmentCreateRequest"
8521
+ } ]
8522
+ },
8523
+ "FileAttachmentCreateRequest" : {
8508
8524
  "properties" : {
8509
8525
  "type" : {
8510
- "$ref" : "#/components/schemas/AttachmentType"
8526
+ "enum" : [ "file" ],
8527
+ "type" : "string"
8511
8528
  },
8512
8529
  "name" : {
8513
8530
  "type" : "string"
@@ -8515,16 +8532,140 @@
8515
8532
  "mimeType" : {
8516
8533
  "type" : "string"
8517
8534
  },
8535
+ "ext" : {
8536
+ "type" : "string"
8537
+ },
8518
8538
  "size" : {
8519
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"
8520
8556
  },
8521
8557
  "ext" : {
8522
8558
  "type" : "string"
8559
+ },
8560
+ "size" : {
8561
+ "type" : "number"
8562
+ },
8563
+ "dataUrl" : {
8564
+ "description" : "Optional inline base64 image data",
8565
+ "type" : "string"
8523
8566
  }
8524
8567
  },
8525
8568
  "required" : [ "ext", "mimeType", "name", "size", "type" ],
8526
8569
  "type" : "object"
8527
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
+ },
8528
8669
  "BodyWithMessage" : {
8529
8670
  "properties" : {
8530
8671
  "message" : {
@@ -9409,7 +9550,7 @@
9409
9550
  "type" : "string"
9410
9551
  },
9411
9552
  "AttachmentType" : {
9412
- "enum" : [ "file" ],
9553
+ "enum" : [ "file", "image" ],
9413
9554
  "type" : "string"
9414
9555
  },
9415
9556
  "FileAttachmentStatus" : {
@@ -9484,6 +9625,52 @@
9484
9625
  "enum" : [ "reference" ],
9485
9626
  "type" : "string"
9486
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
+ },
9487
9674
  "ProviderType" : {
9488
9675
  "enum" : [ "ollama", "openai", "mistral", "other" ],
9489
9676
  "type" : "string"
@@ -9754,7 +9941,8 @@
9754
9941
  "FileAttachment_processed_oneOf" : {
9755
9942
  "properties" : {
9756
9943
  "type" : {
9757
- "$ref" : "#/components/schemas/AttachmentType"
9944
+ "enum" : [ "file" ],
9945
+ "type" : "string"
9758
9946
  },
9759
9947
  "key" : {
9760
9948
  "type" : "string"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.57",
3
+ "version": "1.0.58",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",