@breign/client 1.0.159 → 1.0.161

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 (34) hide show
  1. package/dist/apis/AiGatewayApi.d.ts +28 -1
  2. package/dist/apis/AiGatewayApi.js +63 -0
  3. package/dist/apis/PromptsApi.d.ts +41 -1
  4. package/dist/apis/PromptsApi.js +92 -0
  5. package/dist/models/AgentRateLimitSettingsUio.d.ts +80 -0
  6. package/dist/models/AgentRateLimitSettingsUio.js +80 -0
  7. package/dist/models/AgentRateLimitSettingsUpdateRequestUio.d.ts +50 -0
  8. package/dist/models/AgentRateLimitSettingsUpdateRequestUio.js +54 -0
  9. package/dist/models/AiGatewayModelTokenQuotaUio.d.ts +64 -0
  10. package/dist/models/AiGatewayModelTokenQuotaUio.js +72 -0
  11. package/dist/models/AiGatewaySettingsUio.d.ts +57 -0
  12. package/dist/models/AiGatewaySettingsUio.js +65 -0
  13. package/dist/models/AiGatewaySettingsUpdateRequestUio.d.ts +39 -0
  14. package/dist/models/AiGatewaySettingsUpdateRequestUio.js +51 -0
  15. package/dist/models/ChunkContentCreateUio.d.ts +16 -1
  16. package/dist/models/ChunkContentCreateUio.js +9 -0
  17. package/dist/models/FileAttachmentUploadResponseUio.d.ts +16 -1
  18. package/dist/models/FileAttachmentUploadResponseUio.js +9 -0
  19. package/dist/models/FileCreationResponseUio.d.ts +17 -2
  20. package/dist/models/FileCreationResponseUio.js +9 -0
  21. package/dist/models/ImageAttachmentUploadResponseUio.d.ts +16 -1
  22. package/dist/models/ImageAttachmentUploadResponseUio.js +9 -0
  23. package/dist/models/PromptRateLimitResponseUio.d.ts +50 -0
  24. package/dist/models/PromptRateLimitResponseUio.js +62 -0
  25. package/dist/models/S3UploadBodyUio.d.ts +17 -2
  26. package/dist/models/S3UploadBodyUio.js +9 -0
  27. package/dist/models/UploadImageToKnowledgeBaseLibrary200ResponseUio.d.ts +3 -4
  28. package/dist/models/UploadImageToKnowledgeBaseLibrary200ResponseUio.js +3 -2
  29. package/dist/models/UploadMethodUio.d.ts +25 -0
  30. package/dist/models/UploadMethodUio.js +51 -0
  31. package/dist/models/index.d.ts +7 -0
  32. package/dist/models/index.js +7 -0
  33. package/dist/openapi.json +418 -3
  34. package/package.json +1 -1
@@ -0,0 +1,62 @@
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.instanceOfPromptRateLimitResponseUio = instanceOfPromptRateLimitResponseUio;
17
+ exports.PromptRateLimitResponseUioFromJSON = PromptRateLimitResponseUioFromJSON;
18
+ exports.PromptRateLimitResponseUioFromJSONTyped = PromptRateLimitResponseUioFromJSONTyped;
19
+ exports.PromptRateLimitResponseUioToJSON = PromptRateLimitResponseUioToJSON;
20
+ exports.PromptRateLimitResponseUioToJSONTyped = PromptRateLimitResponseUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the PromptRateLimitResponseUio interface.
23
+ */
24
+ function instanceOfPromptRateLimitResponseUio(value) {
25
+ if (!('limit' in value) || value['limit'] === undefined)
26
+ return false;
27
+ if (!('used' in value) || value['used'] === undefined)
28
+ return false;
29
+ if (!('remaining' in value) || value['remaining'] === undefined)
30
+ return false;
31
+ if (!('resetSeconds' in value) || value['resetSeconds'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function PromptRateLimitResponseUioFromJSON(json) {
36
+ return PromptRateLimitResponseUioFromJSONTyped(json, false);
37
+ }
38
+ function PromptRateLimitResponseUioFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'limit': json['limit'],
44
+ 'used': json['used'],
45
+ 'remaining': json['remaining'],
46
+ 'resetSeconds': json['resetSeconds'],
47
+ };
48
+ }
49
+ function PromptRateLimitResponseUioToJSON(json) {
50
+ return PromptRateLimitResponseUioToJSONTyped(json, false);
51
+ }
52
+ function PromptRateLimitResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'limit': value['limit'],
58
+ 'used': value['used'],
59
+ 'remaining': value['remaining'],
60
+ 'resetSeconds': value['resetSeconds'],
61
+ };
62
+ }
@@ -9,20 +9,35 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { UploadMethodUio } from './UploadMethodUio';
12
13
  /**
13
- *
14
+ * Presigned upload target. `method` tells how to send the file: POST is a multipart form with the `formData` fields then the file as `file`; PUT is the raw file as body with `headers`.
14
15
  * @export
15
16
  * @interface S3UploadBodyUio
16
17
  */
17
18
  export interface S3UploadBodyUio {
18
19
  /**
19
- *
20
+ * Upload URL, to call with `method` despite its name.
20
21
  * @type {string}
21
22
  * @memberof S3UploadBodyUio
22
23
  */
23
24
  postURL: string;
24
25
  /**
25
26
  *
27
+ * @type {UploadMethodUio}
28
+ * @memberof S3UploadBodyUio
29
+ */
30
+ method: UploadMethodUio;
31
+ /**
32
+ * Headers to send with the upload request. Empty for POST.
33
+ * @type {{ [key: string]: string; }}
34
+ * @memberof S3UploadBodyUio
35
+ */
36
+ headers: {
37
+ [key: string]: string;
38
+ };
39
+ /**
40
+ * Form fields of a POST upload. Empty for PUT.
26
41
  * @type {{ [key: string]: any; }}
27
42
  * @memberof S3UploadBodyUio
28
43
  */
@@ -18,12 +18,17 @@ exports.S3UploadBodyUioFromJSON = S3UploadBodyUioFromJSON;
18
18
  exports.S3UploadBodyUioFromJSONTyped = S3UploadBodyUioFromJSONTyped;
19
19
  exports.S3UploadBodyUioToJSON = S3UploadBodyUioToJSON;
20
20
  exports.S3UploadBodyUioToJSONTyped = S3UploadBodyUioToJSONTyped;
21
+ const UploadMethodUio_1 = require("./UploadMethodUio");
21
22
  /**
22
23
  * Check if a given object implements the S3UploadBodyUio interface.
23
24
  */
24
25
  function instanceOfS3UploadBodyUio(value) {
25
26
  if (!('postURL' in value) || value['postURL'] === undefined)
26
27
  return false;
28
+ if (!('method' in value) || value['method'] === undefined)
29
+ return false;
30
+ if (!('headers' in value) || value['headers'] === undefined)
31
+ return false;
27
32
  if (!('formData' in value) || value['formData'] === undefined)
28
33
  return false;
29
34
  return true;
@@ -37,6 +42,8 @@ function S3UploadBodyUioFromJSONTyped(json, ignoreDiscriminator) {
37
42
  }
38
43
  return {
39
44
  'postURL': json['postURL'],
45
+ 'method': (0, UploadMethodUio_1.UploadMethodUioFromJSON)(json['method']),
46
+ 'headers': json['headers'],
40
47
  'formData': json['formData'],
41
48
  };
42
49
  }
@@ -49,6 +56,8 @@ function S3UploadBodyUioToJSONTyped(value, ignoreDiscriminator = false) {
49
56
  }
50
57
  return {
51
58
  'postURL': value['postURL'],
59
+ 'method': (0, UploadMethodUio_1.UploadMethodUioToJSON)(value['method']),
60
+ 'headers': value['headers'],
52
61
  'formData': value['formData'],
53
62
  };
54
63
  }
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { ImageKnowledgeUio } from './ImageKnowledgeUio';
13
+ import type { S3UploadBodyUio } from './S3UploadBodyUio';
13
14
  /**
14
15
  *
15
16
  * @export
@@ -24,12 +25,10 @@ export interface UploadImageToKnowledgeBaseLibrary200ResponseUio {
24
25
  image: ImageKnowledgeUio;
25
26
  /**
26
27
  *
27
- * @type {{ [key: string]: any; }}
28
+ * @type {S3UploadBodyUio}
28
29
  * @memberof UploadImageToKnowledgeBaseLibrary200ResponseUio
29
30
  */
30
- presigned: {
31
- [key: string]: any;
32
- };
31
+ presigned: S3UploadBodyUio;
33
32
  }
34
33
  /**
35
34
  * Check if a given object implements the UploadImageToKnowledgeBaseLibrary200ResponseUio interface.
@@ -19,6 +19,7 @@ exports.UploadImageToKnowledgeBaseLibrary200ResponseUioFromJSONTyped = UploadIma
19
19
  exports.UploadImageToKnowledgeBaseLibrary200ResponseUioToJSON = UploadImageToKnowledgeBaseLibrary200ResponseUioToJSON;
20
20
  exports.UploadImageToKnowledgeBaseLibrary200ResponseUioToJSONTyped = UploadImageToKnowledgeBaseLibrary200ResponseUioToJSONTyped;
21
21
  const ImageKnowledgeUio_1 = require("./ImageKnowledgeUio");
22
+ const S3UploadBodyUio_1 = require("./S3UploadBodyUio");
22
23
  /**
23
24
  * Check if a given object implements the UploadImageToKnowledgeBaseLibrary200ResponseUio interface.
24
25
  */
@@ -38,7 +39,7 @@ function UploadImageToKnowledgeBaseLibrary200ResponseUioFromJSONTyped(json, igno
38
39
  }
39
40
  return {
40
41
  'image': (0, ImageKnowledgeUio_1.ImageKnowledgeUioFromJSON)(json['image']),
41
- 'presigned': json['presigned'],
42
+ 'presigned': (0, S3UploadBodyUio_1.S3UploadBodyUioFromJSON)(json['presigned']),
42
43
  };
43
44
  }
44
45
  function UploadImageToKnowledgeBaseLibrary200ResponseUioToJSON(json) {
@@ -50,6 +51,6 @@ function UploadImageToKnowledgeBaseLibrary200ResponseUioToJSONTyped(value, ignor
50
51
  }
51
52
  return {
52
53
  'image': (0, ImageKnowledgeUio_1.ImageKnowledgeUioToJSON)(value['image']),
53
- 'presigned': value['presigned'],
54
+ 'presigned': (0, S3UploadBodyUio_1.S3UploadBodyUioToJSON)(value['presigned']),
54
55
  };
55
56
  }
@@ -0,0 +1,25 @@
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
+ * How to send the file to `postURL`, set by the storage provider.
14
+ * @export
15
+ */
16
+ export declare const UploadMethodUio: {
17
+ readonly Post: "POST";
18
+ readonly Put: "PUT";
19
+ };
20
+ export type UploadMethodUio = typeof UploadMethodUio[keyof typeof UploadMethodUio];
21
+ export declare function instanceOfUploadMethodUio(value: any): boolean;
22
+ export declare function UploadMethodUioFromJSON(json: any): UploadMethodUio;
23
+ export declare function UploadMethodUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): UploadMethodUio;
24
+ export declare function UploadMethodUioToJSON(value?: UploadMethodUio | null): any;
25
+ export declare function UploadMethodUioToJSONTyped(value: any, ignoreDiscriminator: boolean): UploadMethodUio;
@@ -0,0 +1,51 @@
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.UploadMethodUio = void 0;
17
+ exports.instanceOfUploadMethodUio = instanceOfUploadMethodUio;
18
+ exports.UploadMethodUioFromJSON = UploadMethodUioFromJSON;
19
+ exports.UploadMethodUioFromJSONTyped = UploadMethodUioFromJSONTyped;
20
+ exports.UploadMethodUioToJSON = UploadMethodUioToJSON;
21
+ exports.UploadMethodUioToJSONTyped = UploadMethodUioToJSONTyped;
22
+ /**
23
+ * How to send the file to `postURL`, set by the storage provider.
24
+ * @export
25
+ */
26
+ exports.UploadMethodUio = {
27
+ Post: 'POST',
28
+ Put: 'PUT'
29
+ };
30
+ function instanceOfUploadMethodUio(value) {
31
+ for (const key in exports.UploadMethodUio) {
32
+ if (Object.prototype.hasOwnProperty.call(exports.UploadMethodUio, key)) {
33
+ if (exports.UploadMethodUio[key] === value) {
34
+ return true;
35
+ }
36
+ }
37
+ }
38
+ return false;
39
+ }
40
+ function UploadMethodUioFromJSON(json) {
41
+ return UploadMethodUioFromJSONTyped(json, false);
42
+ }
43
+ function UploadMethodUioFromJSONTyped(json, ignoreDiscriminator) {
44
+ return json;
45
+ }
46
+ function UploadMethodUioToJSON(value) {
47
+ return value;
48
+ }
49
+ function UploadMethodUioToJSONTyped(value, ignoreDiscriminator) {
50
+ return value;
51
+ }
@@ -54,6 +54,8 @@ export * from './AgentModuleTypeUio';
54
54
  export * from './AgentModuleUio';
55
55
  export * from './AgentPatchEngineUio';
56
56
  export * from './AgentPatchUio';
57
+ export * from './AgentRateLimitSettingsUio';
58
+ export * from './AgentRateLimitSettingsUpdateRequestUio';
57
59
  export * from './AgentRefUio';
58
60
  export * from './AgentRequestUio';
59
61
  export * from './AgentRoleDetailsUio';
@@ -79,7 +81,10 @@ export * from './AiGatewayErrorUio';
79
81
  export * from './AiGatewayMessageUio';
80
82
  export * from './AiGatewayModelListDataInnerUio';
81
83
  export * from './AiGatewayModelListUio';
84
+ export * from './AiGatewayModelTokenQuotaUio';
82
85
  export * from './AiGatewayModelUio';
86
+ export * from './AiGatewaySettingsUio';
87
+ export * from './AiGatewaySettingsUpdateRequestUio';
83
88
  export * from './AiGatewayUsageBreakdownItemUio';
84
89
  export * from './AiGatewayUsagePointUio';
85
90
  export * from './AiGatewayUsageTotalUio';
@@ -389,6 +394,7 @@ export * from './PromptCreateResponseUio';
389
394
  export * from './PromptFlowCreateRequestUio';
390
395
  export * from './PromptFlowCreateResponseUio';
391
396
  export * from './PromptInitUio';
397
+ export * from './PromptRateLimitResponseUio';
392
398
  export * from './ProviderCreateRequestUio';
393
399
  export * from './ProviderTypeUio';
394
400
  export * from './ProviderUio';
@@ -490,6 +496,7 @@ export * from './UpdateToolStaticCredentialsRequestUio';
490
496
  export * from './UpdateUserChatPreferencesRequestUio';
491
497
  export * from './UploadImageToKnowledgeBaseLibrary200ResponseUio';
492
498
  export * from './UploadImageToKnowledgeBaseLibraryRequestUio';
499
+ export * from './UploadMethodUio';
493
500
  export * from './UploadedStatusUpdateRequestUio';
494
501
  export * from './UserAccessRolesRequestUio';
495
502
  export * from './UserAccessUio';
@@ -72,6 +72,8 @@ __exportStar(require("./AgentModuleTypeUio"), exports);
72
72
  __exportStar(require("./AgentModuleUio"), exports);
73
73
  __exportStar(require("./AgentPatchEngineUio"), exports);
74
74
  __exportStar(require("./AgentPatchUio"), exports);
75
+ __exportStar(require("./AgentRateLimitSettingsUio"), exports);
76
+ __exportStar(require("./AgentRateLimitSettingsUpdateRequestUio"), exports);
75
77
  __exportStar(require("./AgentRefUio"), exports);
76
78
  __exportStar(require("./AgentRequestUio"), exports);
77
79
  __exportStar(require("./AgentRoleDetailsUio"), exports);
@@ -97,7 +99,10 @@ __exportStar(require("./AiGatewayErrorUio"), exports);
97
99
  __exportStar(require("./AiGatewayMessageUio"), exports);
98
100
  __exportStar(require("./AiGatewayModelListDataInnerUio"), exports);
99
101
  __exportStar(require("./AiGatewayModelListUio"), exports);
102
+ __exportStar(require("./AiGatewayModelTokenQuotaUio"), exports);
100
103
  __exportStar(require("./AiGatewayModelUio"), exports);
104
+ __exportStar(require("./AiGatewaySettingsUio"), exports);
105
+ __exportStar(require("./AiGatewaySettingsUpdateRequestUio"), exports);
101
106
  __exportStar(require("./AiGatewayUsageBreakdownItemUio"), exports);
102
107
  __exportStar(require("./AiGatewayUsagePointUio"), exports);
103
108
  __exportStar(require("./AiGatewayUsageTotalUio"), exports);
@@ -407,6 +412,7 @@ __exportStar(require("./PromptCreateResponseUio"), exports);
407
412
  __exportStar(require("./PromptFlowCreateRequestUio"), exports);
408
413
  __exportStar(require("./PromptFlowCreateResponseUio"), exports);
409
414
  __exportStar(require("./PromptInitUio"), exports);
415
+ __exportStar(require("./PromptRateLimitResponseUio"), exports);
410
416
  __exportStar(require("./ProviderCreateRequestUio"), exports);
411
417
  __exportStar(require("./ProviderTypeUio"), exports);
412
418
  __exportStar(require("./ProviderUio"), exports);
@@ -508,6 +514,7 @@ __exportStar(require("./UpdateToolStaticCredentialsRequestUio"), exports);
508
514
  __exportStar(require("./UpdateUserChatPreferencesRequestUio"), exports);
509
515
  __exportStar(require("./UploadImageToKnowledgeBaseLibrary200ResponseUio"), exports);
510
516
  __exportStar(require("./UploadImageToKnowledgeBaseLibraryRequestUio"), exports);
517
+ __exportStar(require("./UploadMethodUio"), exports);
511
518
  __exportStar(require("./UploadedStatusUpdateRequestUio"), exports);
512
519
  __exportStar(require("./UserAccessRolesRequestUio"), exports);
513
520
  __exportStar(require("./UserAccessUio"), exports);