@breign/client 1.0.171 → 1.0.173

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 (72) hide show
  1. package/dist/apis/AdminApi.d.ts +110 -1
  2. package/dist/apis/AdminApi.js +263 -0
  3. package/dist/apis/AiGatewayApi.d.ts +41 -5
  4. package/dist/apis/AiGatewayApi.js +80 -7
  5. package/dist/apis/ExecutionNodesApi.d.ts +165 -0
  6. package/dist/apis/ExecutionNodesApi.js +399 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/models/AgentExecutionNodeChoiceUio.d.ts +58 -0
  10. package/dist/models/AgentExecutionNodeChoiceUio.js +68 -0
  11. package/dist/models/AgentExecutionNodeUio.d.ts +50 -0
  12. package/dist/models/AgentExecutionNodeUio.js +62 -0
  13. package/dist/models/AgentExecutionUio.d.ts +80 -0
  14. package/dist/models/AgentExecutionUio.js +79 -0
  15. package/dist/models/AiGatewayInternalSettingsSummaryUio.d.ts +63 -0
  16. package/dist/models/AiGatewayInternalSettingsSummaryUio.js +69 -0
  17. package/dist/models/AiGatewayUsageCostUio.d.ts +60 -0
  18. package/dist/models/AiGatewayUsageCostUio.js +62 -0
  19. package/dist/models/AiGatewayUsageUio.d.ts +7 -0
  20. package/dist/models/AiGatewayUsageUio.js +3 -0
  21. package/dist/models/AllowPlatformEnginesUio.d.ts +32 -0
  22. package/dist/models/AllowPlatformEnginesUio.js +50 -0
  23. package/dist/models/DefaultEngineRequestUio.d.ts +6 -0
  24. package/dist/models/DefaultEngineRequestUio.js +2 -0
  25. package/dist/models/DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio.d.ts +44 -0
  26. package/dist/models/DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio.js +58 -0
  27. package/dist/models/DeletePlatformEngineResponseUio.d.ts +45 -0
  28. package/dist/models/DeletePlatformEngineResponseUio.js +59 -0
  29. package/dist/models/ExecutionNodeAgentUio.d.ts +82 -0
  30. package/dist/models/ExecutionNodeAgentUio.js +86 -0
  31. package/dist/models/ExecutionNodeDetailUio.d.ts +111 -0
  32. package/dist/models/ExecutionNodeDetailUio.js +107 -0
  33. package/dist/models/ExecutionNodeRuntimeUio.d.ts +46 -0
  34. package/dist/models/ExecutionNodeRuntimeUio.js +60 -0
  35. package/dist/models/ExecutionNodeUio.d.ts +104 -0
  36. package/dist/models/ExecutionNodeUio.js +100 -0
  37. package/dist/models/ExecutionNodeWorkspaceUio.d.ts +38 -0
  38. package/dist/models/ExecutionNodeWorkspaceUio.js +54 -0
  39. package/dist/models/ModelDefinitionUio.d.ts +33 -0
  40. package/dist/models/ModelDefinitionUio.js +17 -0
  41. package/dist/models/NodeSessionDetailUio.d.ts +133 -0
  42. package/dist/models/NodeSessionDetailUio.js +113 -0
  43. package/dist/models/NodeSessionLogEntryUio.d.ts +58 -0
  44. package/dist/models/NodeSessionLogEntryUio.js +70 -0
  45. package/dist/models/NodeSessionLogsUio.d.ts +51 -0
  46. package/dist/models/NodeSessionLogsUio.js +63 -0
  47. package/dist/models/NodeSessionMetricsUio.d.ts +74 -0
  48. package/dist/models/NodeSessionMetricsUio.js +62 -0
  49. package/dist/models/NodeSessionProgressUio.d.ts +44 -0
  50. package/dist/models/NodeSessionProgressUio.js +54 -0
  51. package/dist/models/NodeSessionStateUio.d.ts +29 -0
  52. package/dist/models/NodeSessionStateUio.js +55 -0
  53. package/dist/models/NodeSessionUio.d.ts +127 -0
  54. package/dist/models/NodeSessionUio.js +111 -0
  55. package/dist/models/NodeTurnCancelResultUio.d.ts +32 -0
  56. package/dist/models/NodeTurnCancelResultUio.js +50 -0
  57. package/dist/models/OrganisationPlatformEngineUsageUio.d.ts +44 -0
  58. package/dist/models/OrganisationPlatformEngineUsageUio.js +58 -0
  59. package/dist/models/OrganizationUio.d.ts +6 -0
  60. package/dist/models/OrganizationUio.js +2 -0
  61. package/dist/models/PlatformEngineUsageUio.d.ts +48 -0
  62. package/dist/models/PlatformEngineUsageUio.js +58 -0
  63. package/dist/models/ProviderCreateRequestUio.d.ts +12 -0
  64. package/dist/models/ProviderCreateRequestUio.js +4 -0
  65. package/dist/models/ProviderUio.d.ts +12 -0
  66. package/dist/models/ProviderUio.js +4 -0
  67. package/dist/models/SetAgentExecutionRequestUio.d.ts +72 -0
  68. package/dist/models/SetAgentExecutionRequestUio.js +73 -0
  69. package/dist/models/index.d.ts +24 -0
  70. package/dist/models/index.js +24 -0
  71. package/dist/openapi.json +3235 -1739
  72. package/package.json +1 -1
@@ -0,0 +1,80 @@
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 { AgentExecutionNodeChoiceUio } from './AgentExecutionNodeChoiceUio';
13
+ import type { AgentExecutionNodeUio } from './AgentExecutionNodeUio';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface AgentExecutionUio
18
+ */
19
+ export interface AgentExecutionUio {
20
+ /**
21
+ *
22
+ * @type {string}
23
+ * @memberof AgentExecutionUio
24
+ */
25
+ mode: AgentExecutionUioModeEnum;
26
+ /**
27
+ *
28
+ * @type {AgentExecutionNodeUio}
29
+ * @memberof AgentExecutionUio
30
+ */
31
+ node?: AgentExecutionNodeUio;
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof AgentExecutionUio
36
+ */
37
+ runtime?: AgentExecutionUioRuntimeEnum;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof AgentExecutionUio
42
+ */
43
+ workspaceAlias?: string;
44
+ /**
45
+ *
46
+ * @type {boolean}
47
+ * @memberof AgentExecutionUio
48
+ */
49
+ autoResume?: boolean;
50
+ /**
51
+ *
52
+ * @type {Array<AgentExecutionNodeChoiceUio>}
53
+ * @memberof AgentExecutionUio
54
+ */
55
+ availableNodes: Array<AgentExecutionNodeChoiceUio>;
56
+ }
57
+ /**
58
+ * @export
59
+ */
60
+ export declare const AgentExecutionUioModeEnum: {
61
+ readonly Server: "server";
62
+ readonly Node: "node";
63
+ };
64
+ export type AgentExecutionUioModeEnum = typeof AgentExecutionUioModeEnum[keyof typeof AgentExecutionUioModeEnum];
65
+ /**
66
+ * @export
67
+ */
68
+ export declare const AgentExecutionUioRuntimeEnum: {
69
+ readonly Claude: "claude";
70
+ readonly Opencode: "opencode";
71
+ };
72
+ export type AgentExecutionUioRuntimeEnum = typeof AgentExecutionUioRuntimeEnum[keyof typeof AgentExecutionUioRuntimeEnum];
73
+ /**
74
+ * Check if a given object implements the AgentExecutionUio interface.
75
+ */
76
+ export declare function instanceOfAgentExecutionUio(value: object): value is AgentExecutionUio;
77
+ export declare function AgentExecutionUioFromJSON(json: any): AgentExecutionUio;
78
+ export declare function AgentExecutionUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentExecutionUio;
79
+ export declare function AgentExecutionUioToJSON(json: any): AgentExecutionUio;
80
+ export declare function AgentExecutionUioToJSONTyped(value?: AgentExecutionUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,79 @@
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.AgentExecutionUioRuntimeEnum = exports.AgentExecutionUioModeEnum = void 0;
17
+ exports.instanceOfAgentExecutionUio = instanceOfAgentExecutionUio;
18
+ exports.AgentExecutionUioFromJSON = AgentExecutionUioFromJSON;
19
+ exports.AgentExecutionUioFromJSONTyped = AgentExecutionUioFromJSONTyped;
20
+ exports.AgentExecutionUioToJSON = AgentExecutionUioToJSON;
21
+ exports.AgentExecutionUioToJSONTyped = AgentExecutionUioToJSONTyped;
22
+ const AgentExecutionNodeChoiceUio_1 = require("./AgentExecutionNodeChoiceUio");
23
+ const AgentExecutionNodeUio_1 = require("./AgentExecutionNodeUio");
24
+ /**
25
+ * @export
26
+ */
27
+ exports.AgentExecutionUioModeEnum = {
28
+ Server: 'server',
29
+ Node: 'node'
30
+ };
31
+ /**
32
+ * @export
33
+ */
34
+ exports.AgentExecutionUioRuntimeEnum = {
35
+ Claude: 'claude',
36
+ Opencode: 'opencode'
37
+ };
38
+ /**
39
+ * Check if a given object implements the AgentExecutionUio interface.
40
+ */
41
+ function instanceOfAgentExecutionUio(value) {
42
+ if (!('mode' in value) || value['mode'] === undefined)
43
+ return false;
44
+ if (!('availableNodes' in value) || value['availableNodes'] === undefined)
45
+ return false;
46
+ return true;
47
+ }
48
+ function AgentExecutionUioFromJSON(json) {
49
+ return AgentExecutionUioFromJSONTyped(json, false);
50
+ }
51
+ function AgentExecutionUioFromJSONTyped(json, ignoreDiscriminator) {
52
+ if (json == null) {
53
+ return json;
54
+ }
55
+ return {
56
+ 'mode': json['mode'],
57
+ 'node': json['node'] == null ? undefined : (0, AgentExecutionNodeUio_1.AgentExecutionNodeUioFromJSON)(json['node']),
58
+ 'runtime': json['runtime'] == null ? undefined : json['runtime'],
59
+ 'workspaceAlias': json['workspaceAlias'] == null ? undefined : json['workspaceAlias'],
60
+ 'autoResume': json['autoResume'] == null ? undefined : json['autoResume'],
61
+ 'availableNodes': (json['availableNodes'].map(AgentExecutionNodeChoiceUio_1.AgentExecutionNodeChoiceUioFromJSON)),
62
+ };
63
+ }
64
+ function AgentExecutionUioToJSON(json) {
65
+ return AgentExecutionUioToJSONTyped(json, false);
66
+ }
67
+ function AgentExecutionUioToJSONTyped(value, ignoreDiscriminator = false) {
68
+ if (value == null) {
69
+ return value;
70
+ }
71
+ return {
72
+ 'mode': value['mode'],
73
+ 'node': (0, AgentExecutionNodeUio_1.AgentExecutionNodeUioToJSON)(value['node']),
74
+ 'runtime': value['runtime'],
75
+ 'workspaceAlias': value['workspaceAlias'],
76
+ 'autoResume': value['autoResume'],
77
+ 'availableNodes': (value['availableNodes'].map(AgentExecutionNodeChoiceUio_1.AgentExecutionNodeChoiceUioToJSON)),
78
+ };
79
+ }
@@ -0,0 +1,63 @@
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 { AiGatewayModelTokenQuotaUio } from './AiGatewayModelTokenQuotaUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AiGatewayInternalSettingsSummaryUio
17
+ */
18
+ export interface AiGatewayInternalSettingsSummaryUio {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof AiGatewayInternalSettingsSummaryUio
23
+ */
24
+ organizationId: string;
25
+ /**
26
+ * Max requests per minute per subject; null means unlimited
27
+ * @type {number}
28
+ * @memberof AiGatewayInternalSettingsSummaryUio
29
+ */
30
+ gatewayRpm: number | null;
31
+ /**
32
+ *
33
+ * @type {Array<AiGatewayModelTokenQuotaUio>}
34
+ * @memberof AiGatewayInternalSettingsSummaryUio
35
+ */
36
+ modelTokenQuotas: Array<AiGatewayModelTokenQuotaUio>;
37
+ /**
38
+ *
39
+ * @type {Date}
40
+ * @memberof AiGatewayInternalSettingsSummaryUio
41
+ */
42
+ updatedAt: Date;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof AiGatewayInternalSettingsSummaryUio
47
+ */
48
+ updatedBy?: string | null;
49
+ /**
50
+ * Usage du quota le plus entamé sur sa période en cours ; null sans quota.
51
+ * @type {number}
52
+ * @memberof AiGatewayInternalSettingsSummaryUio
53
+ */
54
+ maxQuotaRatio: number | null;
55
+ }
56
+ /**
57
+ * Check if a given object implements the AiGatewayInternalSettingsSummaryUio interface.
58
+ */
59
+ export declare function instanceOfAiGatewayInternalSettingsSummaryUio(value: object): value is AiGatewayInternalSettingsSummaryUio;
60
+ export declare function AiGatewayInternalSettingsSummaryUioFromJSON(json: any): AiGatewayInternalSettingsSummaryUio;
61
+ export declare function AiGatewayInternalSettingsSummaryUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewayInternalSettingsSummaryUio;
62
+ export declare function AiGatewayInternalSettingsSummaryUioToJSON(json: any): AiGatewayInternalSettingsSummaryUio;
63
+ export declare function AiGatewayInternalSettingsSummaryUioToJSONTyped(value?: AiGatewayInternalSettingsSummaryUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,69 @@
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.instanceOfAiGatewayInternalSettingsSummaryUio = instanceOfAiGatewayInternalSettingsSummaryUio;
17
+ exports.AiGatewayInternalSettingsSummaryUioFromJSON = AiGatewayInternalSettingsSummaryUioFromJSON;
18
+ exports.AiGatewayInternalSettingsSummaryUioFromJSONTyped = AiGatewayInternalSettingsSummaryUioFromJSONTyped;
19
+ exports.AiGatewayInternalSettingsSummaryUioToJSON = AiGatewayInternalSettingsSummaryUioToJSON;
20
+ exports.AiGatewayInternalSettingsSummaryUioToJSONTyped = AiGatewayInternalSettingsSummaryUioToJSONTyped;
21
+ const AiGatewayModelTokenQuotaUio_1 = require("./AiGatewayModelTokenQuotaUio");
22
+ /**
23
+ * Check if a given object implements the AiGatewayInternalSettingsSummaryUio interface.
24
+ */
25
+ function instanceOfAiGatewayInternalSettingsSummaryUio(value) {
26
+ if (!('organizationId' in value) || value['organizationId'] === undefined)
27
+ return false;
28
+ if (!('gatewayRpm' in value) || value['gatewayRpm'] === undefined)
29
+ return false;
30
+ if (!('modelTokenQuotas' in value) || value['modelTokenQuotas'] === undefined)
31
+ return false;
32
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined)
33
+ return false;
34
+ if (!('maxQuotaRatio' in value) || value['maxQuotaRatio'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ function AiGatewayInternalSettingsSummaryUioFromJSON(json) {
39
+ return AiGatewayInternalSettingsSummaryUioFromJSONTyped(json, false);
40
+ }
41
+ function AiGatewayInternalSettingsSummaryUioFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'organizationId': json['organizationId'],
47
+ 'gatewayRpm': json['gatewayRpm'],
48
+ 'modelTokenQuotas': (json['modelTokenQuotas'].map(AiGatewayModelTokenQuotaUio_1.AiGatewayModelTokenQuotaUioFromJSON)),
49
+ 'updatedAt': (new Date(json['updatedAt'])),
50
+ 'updatedBy': json['updatedBy'] == null ? undefined : json['updatedBy'],
51
+ 'maxQuotaRatio': json['maxQuotaRatio'],
52
+ };
53
+ }
54
+ function AiGatewayInternalSettingsSummaryUioToJSON(json) {
55
+ return AiGatewayInternalSettingsSummaryUioToJSONTyped(json, false);
56
+ }
57
+ function AiGatewayInternalSettingsSummaryUioToJSONTyped(value, ignoreDiscriminator = false) {
58
+ if (value == null) {
59
+ return value;
60
+ }
61
+ return {
62
+ 'organizationId': value['organizationId'],
63
+ 'gatewayRpm': value['gatewayRpm'],
64
+ 'modelTokenQuotas': (value['modelTokenQuotas'].map(AiGatewayModelTokenQuotaUio_1.AiGatewayModelTokenQuotaUioToJSON)),
65
+ 'updatedAt': ((value['updatedAt']).toISOString()),
66
+ 'updatedBy': value['updatedBy'],
67
+ 'maxQuotaRatio': value['maxQuotaRatio'],
68
+ };
69
+ }
@@ -0,0 +1,60 @@
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
+ * Coût estimé, joint seulement sur le périmètre des modèles Breign (réservé au superAdmin).
14
+ * @export
15
+ * @interface AiGatewayUsageCostUio
16
+ */
17
+ export interface AiGatewayUsageCostUio {
18
+ /**
19
+ * Montant par devise ISO ; deux devises ne s'additionnent pas.
20
+ * @type {{ [key: string]: number; }}
21
+ * @memberof AiGatewayUsageCostUio
22
+ */
23
+ total: {
24
+ [key: string]: number;
25
+ };
26
+ /**
27
+ *
28
+ * @type {{ [key: string]: { [key: string]: number; }; }}
29
+ * @memberof AiGatewayUsageCostUio
30
+ */
31
+ byModel: {
32
+ [key: string]: {
33
+ [key: string]: number;
34
+ };
35
+ };
36
+ /**
37
+ *
38
+ * @type {{ [key: string]: { [key: string]: number; }; }}
39
+ * @memberof AiGatewayUsageCostUio
40
+ */
41
+ byUser: {
42
+ [key: string]: {
43
+ [key: string]: number;
44
+ };
45
+ };
46
+ /**
47
+ * Tokens sans prix connu ; le coût est alors une estimation partielle.
48
+ * @type {number}
49
+ * @memberof AiGatewayUsageCostUio
50
+ */
51
+ unpricedTokens: number;
52
+ }
53
+ /**
54
+ * Check if a given object implements the AiGatewayUsageCostUio interface.
55
+ */
56
+ export declare function instanceOfAiGatewayUsageCostUio(value: object): value is AiGatewayUsageCostUio;
57
+ export declare function AiGatewayUsageCostUioFromJSON(json: any): AiGatewayUsageCostUio;
58
+ export declare function AiGatewayUsageCostUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewayUsageCostUio;
59
+ export declare function AiGatewayUsageCostUioToJSON(json: any): AiGatewayUsageCostUio;
60
+ export declare function AiGatewayUsageCostUioToJSONTyped(value?: AiGatewayUsageCostUio | null, ignoreDiscriminator?: boolean): any;
@@ -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.instanceOfAiGatewayUsageCostUio = instanceOfAiGatewayUsageCostUio;
17
+ exports.AiGatewayUsageCostUioFromJSON = AiGatewayUsageCostUioFromJSON;
18
+ exports.AiGatewayUsageCostUioFromJSONTyped = AiGatewayUsageCostUioFromJSONTyped;
19
+ exports.AiGatewayUsageCostUioToJSON = AiGatewayUsageCostUioToJSON;
20
+ exports.AiGatewayUsageCostUioToJSONTyped = AiGatewayUsageCostUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AiGatewayUsageCostUio interface.
23
+ */
24
+ function instanceOfAiGatewayUsageCostUio(value) {
25
+ if (!('total' in value) || value['total'] === undefined)
26
+ return false;
27
+ if (!('byModel' in value) || value['byModel'] === undefined)
28
+ return false;
29
+ if (!('byUser' in value) || value['byUser'] === undefined)
30
+ return false;
31
+ if (!('unpricedTokens' in value) || value['unpricedTokens'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function AiGatewayUsageCostUioFromJSON(json) {
36
+ return AiGatewayUsageCostUioFromJSONTyped(json, false);
37
+ }
38
+ function AiGatewayUsageCostUioFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'total': json['total'],
44
+ 'byModel': json['byModel'],
45
+ 'byUser': json['byUser'],
46
+ 'unpricedTokens': json['unpricedTokens'],
47
+ };
48
+ }
49
+ function AiGatewayUsageCostUioToJSON(json) {
50
+ return AiGatewayUsageCostUioToJSONTyped(json, false);
51
+ }
52
+ function AiGatewayUsageCostUioToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'total': value['total'],
58
+ 'byModel': value['byModel'],
59
+ 'byUser': value['byUser'],
60
+ 'unpricedTokens': value['unpricedTokens'],
61
+ };
62
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { AiGatewayUsageCostUio } from './AiGatewayUsageCostUio';
12
13
  import type { AiGatewayUsageTotalUio } from './AiGatewayUsageTotalUio';
13
14
  import type { AiGatewayUsagePointUio } from './AiGatewayUsagePointUio';
14
15
  import type { AiGatewayUsageBreakdownItemUio } from './AiGatewayUsageBreakdownItemUio';
@@ -48,6 +49,12 @@ export interface AiGatewayUsageUio {
48
49
  * @memberof AiGatewayUsageUio
49
50
  */
50
51
  byUser: Array<AiGatewayUsageBreakdownItemUio>;
52
+ /**
53
+ *
54
+ * @type {AiGatewayUsageCostUio}
55
+ * @memberof AiGatewayUsageUio
56
+ */
57
+ cost?: AiGatewayUsageCostUio;
51
58
  }
52
59
  /**
53
60
  * Check if a given object implements the AiGatewayUsageUio interface.
@@ -18,6 +18,7 @@ exports.AiGatewayUsageUioFromJSON = AiGatewayUsageUioFromJSON;
18
18
  exports.AiGatewayUsageUioFromJSONTyped = AiGatewayUsageUioFromJSONTyped;
19
19
  exports.AiGatewayUsageUioToJSON = AiGatewayUsageUioToJSON;
20
20
  exports.AiGatewayUsageUioToJSONTyped = AiGatewayUsageUioToJSONTyped;
21
+ const AiGatewayUsageCostUio_1 = require("./AiGatewayUsageCostUio");
21
22
  const AiGatewayUsageTotalUio_1 = require("./AiGatewayUsageTotalUio");
22
23
  const AiGatewayUsagePointUio_1 = require("./AiGatewayUsagePointUio");
23
24
  const AiGatewayUsageBreakdownItemUio_1 = require("./AiGatewayUsageBreakdownItemUio");
@@ -50,6 +51,7 @@ function AiGatewayUsageUioFromJSONTyped(json, ignoreDiscriminator) {
50
51
  'byModel': (json['byModel'].map(AiGatewayUsageBreakdownItemUio_1.AiGatewayUsageBreakdownItemUioFromJSON)),
51
52
  'byProvider': (json['byProvider'].map(AiGatewayUsageBreakdownItemUio_1.AiGatewayUsageBreakdownItemUioFromJSON)),
52
53
  'byUser': (json['byUser'].map(AiGatewayUsageBreakdownItemUio_1.AiGatewayUsageBreakdownItemUioFromJSON)),
54
+ 'cost': json['cost'] == null ? undefined : (0, AiGatewayUsageCostUio_1.AiGatewayUsageCostUioFromJSON)(json['cost']),
53
55
  };
54
56
  }
55
57
  function AiGatewayUsageUioToJSON(json) {
@@ -65,5 +67,6 @@ function AiGatewayUsageUioToJSONTyped(value, ignoreDiscriminator = false) {
65
67
  'byModel': (value['byModel'].map(AiGatewayUsageBreakdownItemUio_1.AiGatewayUsageBreakdownItemUioToJSON)),
66
68
  'byProvider': (value['byProvider'].map(AiGatewayUsageBreakdownItemUio_1.AiGatewayUsageBreakdownItemUioToJSON)),
67
69
  'byUser': (value['byUser'].map(AiGatewayUsageBreakdownItemUio_1.AiGatewayUsageBreakdownItemUioToJSON)),
70
+ 'cost': (0, AiGatewayUsageCostUio_1.AiGatewayUsageCostUioToJSON)(value['cost']),
68
71
  };
69
72
  }
@@ -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 AllowPlatformEnginesUio
16
+ */
17
+ export interface AllowPlatformEnginesUio {
18
+ /**
19
+ *
20
+ * @type {boolean}
21
+ * @memberof AllowPlatformEnginesUio
22
+ */
23
+ allowPlatformEngines: boolean;
24
+ }
25
+ /**
26
+ * Check if a given object implements the AllowPlatformEnginesUio interface.
27
+ */
28
+ export declare function instanceOfAllowPlatformEnginesUio(value: object): value is AllowPlatformEnginesUio;
29
+ export declare function AllowPlatformEnginesUioFromJSON(json: any): AllowPlatformEnginesUio;
30
+ export declare function AllowPlatformEnginesUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AllowPlatformEnginesUio;
31
+ export declare function AllowPlatformEnginesUioToJSON(json: any): AllowPlatformEnginesUio;
32
+ export declare function AllowPlatformEnginesUioToJSONTyped(value?: AllowPlatformEnginesUio | 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.instanceOfAllowPlatformEnginesUio = instanceOfAllowPlatformEnginesUio;
17
+ exports.AllowPlatformEnginesUioFromJSON = AllowPlatformEnginesUioFromJSON;
18
+ exports.AllowPlatformEnginesUioFromJSONTyped = AllowPlatformEnginesUioFromJSONTyped;
19
+ exports.AllowPlatformEnginesUioToJSON = AllowPlatformEnginesUioToJSON;
20
+ exports.AllowPlatformEnginesUioToJSONTyped = AllowPlatformEnginesUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AllowPlatformEnginesUio interface.
23
+ */
24
+ function instanceOfAllowPlatformEnginesUio(value) {
25
+ if (!('allowPlatformEngines' in value) || value['allowPlatformEngines'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function AllowPlatformEnginesUioFromJSON(json) {
30
+ return AllowPlatformEnginesUioFromJSONTyped(json, false);
31
+ }
32
+ function AllowPlatformEnginesUioFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'allowPlatformEngines': json['allowPlatformEngines'],
38
+ };
39
+ }
40
+ function AllowPlatformEnginesUioToJSON(json) {
41
+ return AllowPlatformEnginesUioToJSONTyped(json, false);
42
+ }
43
+ function AllowPlatformEnginesUioToJSONTyped(value, ignoreDiscriminator = false) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'allowPlatformEngines': value['allowPlatformEngines'],
49
+ };
50
+ }
@@ -27,6 +27,12 @@ export interface DefaultEngineRequestUio {
27
27
  * @memberof DefaultEngineRequestUio
28
28
  */
29
29
  model: string;
30
+ /**
31
+ * Requis quand le moteur est un moteur plateforme, pour savoir quelle organisation reçoit ce modèle par défaut.
32
+ * @type {string}
33
+ * @memberof DefaultEngineRequestUio
34
+ */
35
+ organizationId?: string;
30
36
  /**
31
37
  *
32
38
  * @type {{ [key: string]: any; }}
@@ -38,6 +38,7 @@ function DefaultEngineRequestUioFromJSONTyped(json, ignoreDiscriminator) {
38
38
  return {
39
39
  'providerId': json['providerId'],
40
40
  'model': json['model'],
41
+ 'organizationId': json['organizationId'] == null ? undefined : json['organizationId'],
41
42
  'options': json['options'] == null ? undefined : json['options'],
42
43
  };
43
44
  }
@@ -51,6 +52,7 @@ function DefaultEngineRequestUioToJSONTyped(value, ignoreDiscriminator = false)
51
52
  return {
52
53
  'providerId': value['providerId'],
53
54
  'model': value['model'],
55
+ 'organizationId': value['organizationId'],
54
56
  'options': value['options'],
55
57
  };
56
58
  }
@@ -0,0 +1,44 @@
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 DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio
16
+ */
17
+ export interface DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio
28
+ */
29
+ name: string;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio
34
+ */
35
+ organizationId: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio interface.
39
+ */
40
+ export declare function instanceOfDeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio(value: object): value is DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio;
41
+ export declare function DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUioFromJSON(json: any): DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio;
42
+ export declare function DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio;
43
+ export declare function DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUioToJSON(json: any): DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio;
44
+ export declare function DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUioToJSONTyped(value?: DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,58 @@
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.instanceOfDeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio = instanceOfDeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio;
17
+ exports.DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUioFromJSON = DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUioFromJSON;
18
+ exports.DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUioFromJSONTyped = DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUioFromJSONTyped;
19
+ exports.DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUioToJSON = DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUioToJSON;
20
+ exports.DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUioToJSONTyped = DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio interface.
23
+ */
24
+ function instanceOfDeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('name' in value) || value['name'] === undefined)
28
+ return false;
29
+ if (!('organizationId' in value) || value['organizationId'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUioFromJSON(json) {
34
+ return DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUioFromJSONTyped(json, false);
35
+ }
36
+ function DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUioFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'id': json['id'],
42
+ 'name': json['name'],
43
+ 'organizationId': json['organizationId'],
44
+ };
45
+ }
46
+ function DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUioToJSON(json) {
47
+ return DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUioToJSONTyped(json, false);
48
+ }
49
+ function DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUioToJSONTyped(value, ignoreDiscriminator = false) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'id': value['id'],
55
+ 'name': value['name'],
56
+ 'organizationId': value['organizationId'],
57
+ };
58
+ }