@breign/client 1.0.100 → 1.0.101

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.
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ConfigurationDefaultFillerPhrasesUio, DefaultClientPricesUio, PriceConfigurationUio } from '../models/index';
13
+ import type { ConfigurationDefaultFillerPhrasesUio, DefaultClientPricesUio, PriceConfigurationUio, UploadLimitsResponseUio } from '../models/index';
14
14
  export interface UpdateDefaultClientPricesRequest {
15
15
  defaultClientPricesUio: DefaultClientPricesUio;
16
16
  }
@@ -51,6 +51,16 @@ export declare class ConfigurationApi extends runtime.BaseAPI {
51
51
  * Get default prices
52
52
  */
53
53
  getDefaultPrices(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<PriceConfigurationUio>;
54
+ /**
55
+ * Returns max file size for conversation context attachments (from server configuration).
56
+ * Get conversation upload limits
57
+ */
58
+ getUploadLimitsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UploadLimitsResponseUio>>;
59
+ /**
60
+ * Returns max file size for conversation context attachments (from server configuration).
61
+ * Get conversation upload limits
62
+ */
63
+ getUploadLimits(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UploadLimitsResponseUio>;
54
64
  /**
55
65
  * Updates the default pricing for client interactions (admin only)
56
66
  * Update default client prices
@@ -131,6 +131,32 @@ class ConfigurationApi extends runtime.BaseAPI {
131
131
  const response = await this.getDefaultPricesRaw(initOverrides);
132
132
  return await response.value();
133
133
  }
134
+ /**
135
+ * Returns max file size for conversation context attachments (from server configuration).
136
+ * Get conversation upload limits
137
+ */
138
+ async getUploadLimitsRaw(initOverrides) {
139
+ const queryParameters = {};
140
+ const headerParameters = {};
141
+ if (this.configuration && this.configuration.apiKey) {
142
+ headerParameters["X-API-Key"] = await this.configuration.apiKey("X-API-Key"); // ApiKeyAuth authentication
143
+ }
144
+ const response = await this.request({
145
+ path: `/configuration/upload-limits`,
146
+ method: 'GET',
147
+ headers: headerParameters,
148
+ query: queryParameters,
149
+ }, initOverrides);
150
+ return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UploadLimitsResponseUioFromJSON)(jsonValue));
151
+ }
152
+ /**
153
+ * Returns max file size for conversation context attachments (from server configuration).
154
+ * Get conversation upload limits
155
+ */
156
+ async getUploadLimits(initOverrides) {
157
+ const response = await this.getUploadLimitsRaw(initOverrides);
158
+ return await response.value();
159
+ }
134
160
  /**
135
161
  * Updates the default pricing for client interactions (admin only)
136
162
  * Update default client prices
@@ -0,0 +1,32 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface UploadLimitsResponseUio
16
+ */
17
+ export interface UploadLimitsResponseUio {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof UploadLimitsResponseUio
22
+ */
23
+ conversationAttachmentMaxBytes: number;
24
+ }
25
+ /**
26
+ * Check if a given object implements the UploadLimitsResponseUio interface.
27
+ */
28
+ export declare function instanceOfUploadLimitsResponseUio(value: object): value is UploadLimitsResponseUio;
29
+ export declare function UploadLimitsResponseUioFromJSON(json: any): UploadLimitsResponseUio;
30
+ export declare function UploadLimitsResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): UploadLimitsResponseUio;
31
+ export declare function UploadLimitsResponseUioToJSON(json: any): UploadLimitsResponseUio;
32
+ export declare function UploadLimitsResponseUioToJSONTyped(value?: UploadLimitsResponseUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,50 @@
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.instanceOfUploadLimitsResponseUio = instanceOfUploadLimitsResponseUio;
17
+ exports.UploadLimitsResponseUioFromJSON = UploadLimitsResponseUioFromJSON;
18
+ exports.UploadLimitsResponseUioFromJSONTyped = UploadLimitsResponseUioFromJSONTyped;
19
+ exports.UploadLimitsResponseUioToJSON = UploadLimitsResponseUioToJSON;
20
+ exports.UploadLimitsResponseUioToJSONTyped = UploadLimitsResponseUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the UploadLimitsResponseUio interface.
23
+ */
24
+ function instanceOfUploadLimitsResponseUio(value) {
25
+ if (!('conversationAttachmentMaxBytes' in value) || value['conversationAttachmentMaxBytes'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function UploadLimitsResponseUioFromJSON(json) {
30
+ return UploadLimitsResponseUioFromJSONTyped(json, false);
31
+ }
32
+ function UploadLimitsResponseUioFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'conversationAttachmentMaxBytes': json['conversationAttachmentMaxBytes'],
38
+ };
39
+ }
40
+ function UploadLimitsResponseUioToJSON(json) {
41
+ return UploadLimitsResponseUioToJSONTyped(json, false);
42
+ }
43
+ function UploadLimitsResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'conversationAttachmentMaxBytes': value['conversationAttachmentMaxBytes'],
49
+ };
50
+ }
@@ -255,5 +255,6 @@ export * from './ToolUpdateRequestUio';
255
255
  export * from './ToolUsedUio';
256
256
  export * from './TransactionUio';
257
257
  export * from './UpdateConversationTitleRequestUio';
258
+ export * from './UploadLimitsResponseUio';
258
259
  export * from './UserUio';
259
260
  export * from './UserUserUio';
@@ -273,5 +273,6 @@ __exportStar(require("./ToolUpdateRequestUio"), exports);
273
273
  __exportStar(require("./ToolUsedUio"), exports);
274
274
  __exportStar(require("./TransactionUio"), exports);
275
275
  __exportStar(require("./UpdateConversationTitleRequestUio"), exports);
276
+ __exportStar(require("./UploadLimitsResponseUio"), exports);
276
277
  __exportStar(require("./UserUio"), exports);
277
278
  __exportStar(require("./UserUserUio"), exports);
package/dist/openapi.json CHANGED
@@ -3411,6 +3411,26 @@
3411
3411
  "tags" : [ "configuration" ]
3412
3412
  }
3413
3413
  },
3414
+ "/configuration/upload-limits" : {
3415
+ "get" : {
3416
+ "description" : "Returns max file size for conversation context attachments (from server configuration).",
3417
+ "operationId" : "getUploadLimits",
3418
+ "responses" : {
3419
+ "200" : {
3420
+ "content" : {
3421
+ "application/json" : {
3422
+ "schema" : {
3423
+ "$ref" : "#/components/schemas/UploadLimitsResponse"
3424
+ }
3425
+ }
3426
+ },
3427
+ "description" : "Upload limits"
3428
+ }
3429
+ },
3430
+ "summary" : "Get conversation upload limits",
3431
+ "tags" : [ "configuration" ]
3432
+ }
3433
+ },
3414
3434
  "/contents/permanents/{contentId}" : {
3415
3435
  "get" : {
3416
3436
  "description" : "Retrieves a permanent audio file by its ID",
@@ -11342,6 +11362,16 @@
11342
11362
  "required" : [ "currency", "price" ],
11343
11363
  "type" : "object"
11344
11364
  },
11365
+ "UploadLimitsResponse" : {
11366
+ "properties" : {
11367
+ "conversationAttachmentMaxBytes" : {
11368
+ "format" : "int64",
11369
+ "type" : "integer"
11370
+ }
11371
+ },
11372
+ "required" : [ "conversationAttachmentMaxBytes" ],
11373
+ "type" : "object"
11374
+ },
11345
11375
  "AudioFile" : {
11346
11376
  "properties" : {
11347
11377
  "id" : {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@breign/client",
3
- "version": "1.0.100",
3
+ "version": "1.0.101",
4
4
  "main": "dist/index.js",
5
5
  "exports": {
6
6
  ".": "./dist/index.js",