@breign/client 1.0.131 → 1.0.133

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 (38) hide show
  1. package/dist/apis/AiGatewayApi.d.ts +108 -1
  2. package/dist/apis/AiGatewayApi.js +218 -1
  3. package/dist/apis/ConversationsApi.d.ts +28 -1
  4. package/dist/apis/ConversationsApi.js +59 -0
  5. package/dist/models/AgentChatOverviewEntryUio.d.ts +56 -0
  6. package/dist/models/AgentChatOverviewEntryUio.js +64 -0
  7. package/dist/models/AiGatewayV1CreditsUio.d.ts +38 -0
  8. package/dist/models/AiGatewayV1CreditsUio.js +52 -0
  9. package/dist/models/AiGatewayV1EndpointPricingUio.d.ts +50 -0
  10. package/dist/models/AiGatewayV1EndpointPricingUio.js +54 -0
  11. package/dist/models/AiGatewayV1EndpointUio.d.ts +111 -0
  12. package/dist/models/AiGatewayV1EndpointUio.js +85 -0
  13. package/dist/models/AiGatewayV1GenerationDataUio.d.ts +146 -0
  14. package/dist/models/AiGatewayV1GenerationDataUio.js +96 -0
  15. package/dist/models/AiGatewayV1GenerationUio.d.ts +33 -0
  16. package/dist/models/AiGatewayV1GenerationUio.js +51 -0
  17. package/dist/models/AiGatewayV1ModelEndpointsDataArchitectureUio.d.ts +56 -0
  18. package/dist/models/AiGatewayV1ModelEndpointsDataArchitectureUio.js +56 -0
  19. package/dist/models/AiGatewayV1ModelEndpointsDataUio.d.ts +70 -0
  20. package/dist/models/AiGatewayV1ModelEndpointsDataUio.js +72 -0
  21. package/dist/models/AiGatewayV1ModelEndpointsUio.d.ts +33 -0
  22. package/dist/models/AiGatewayV1ModelEndpointsUio.js +51 -0
  23. package/dist/models/AiGatewayV1ModelListUio.d.ts +46 -0
  24. package/dist/models/AiGatewayV1ModelListUio.js +62 -0
  25. package/dist/models/AiGatewayV1ModelPricingUio.d.ts +50 -0
  26. package/dist/models/AiGatewayV1ModelPricingUio.js +54 -0
  27. package/dist/models/AiGatewayV1ModelUio.d.ts +114 -0
  28. package/dist/models/AiGatewayV1ModelUio.js +99 -0
  29. package/dist/models/AiGatewayV1ReportRowUio.d.ts +140 -0
  30. package/dist/models/AiGatewayV1ReportRowUio.js +104 -0
  31. package/dist/models/AiGatewayV1ReportUio.d.ts +33 -0
  32. package/dist/models/AiGatewayV1ReportUio.js +51 -0
  33. package/dist/models/MarkConversationReadRequestUio.d.ts +32 -0
  34. package/dist/models/MarkConversationReadRequestUio.js +48 -0
  35. package/dist/models/index.d.ts +15 -0
  36. package/dist/models/index.js +15 -0
  37. package/dist/openapi.json +1242 -313
  38. package/package.json +1 -1
@@ -0,0 +1,38 @@
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 AiGatewayV1CreditsUio
16
+ */
17
+ export interface AiGatewayV1CreditsUio {
18
+ /**
19
+ * Toujours null — Breign n'a pas de notion de crédits prépayés
20
+ * @type {string}
21
+ * @memberof AiGatewayV1CreditsUio
22
+ */
23
+ balance?: string | null;
24
+ /**
25
+ * Dépense cumulée de l'organisation, calculée depuis la configuration de prix
26
+ * @type {string}
27
+ * @memberof AiGatewayV1CreditsUio
28
+ */
29
+ totalUsed: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the AiGatewayV1CreditsUio interface.
33
+ */
34
+ export declare function instanceOfAiGatewayV1CreditsUio(value: object): value is AiGatewayV1CreditsUio;
35
+ export declare function AiGatewayV1CreditsUioFromJSON(json: any): AiGatewayV1CreditsUio;
36
+ export declare function AiGatewayV1CreditsUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewayV1CreditsUio;
37
+ export declare function AiGatewayV1CreditsUioToJSON(json: any): AiGatewayV1CreditsUio;
38
+ export declare function AiGatewayV1CreditsUioToJSONTyped(value?: AiGatewayV1CreditsUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
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.instanceOfAiGatewayV1CreditsUio = instanceOfAiGatewayV1CreditsUio;
17
+ exports.AiGatewayV1CreditsUioFromJSON = AiGatewayV1CreditsUioFromJSON;
18
+ exports.AiGatewayV1CreditsUioFromJSONTyped = AiGatewayV1CreditsUioFromJSONTyped;
19
+ exports.AiGatewayV1CreditsUioToJSON = AiGatewayV1CreditsUioToJSON;
20
+ exports.AiGatewayV1CreditsUioToJSONTyped = AiGatewayV1CreditsUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AiGatewayV1CreditsUio interface.
23
+ */
24
+ function instanceOfAiGatewayV1CreditsUio(value) {
25
+ if (!('totalUsed' in value) || value['totalUsed'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function AiGatewayV1CreditsUioFromJSON(json) {
30
+ return AiGatewayV1CreditsUioFromJSONTyped(json, false);
31
+ }
32
+ function AiGatewayV1CreditsUioFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'balance': json['balance'] == null ? undefined : json['balance'],
38
+ 'totalUsed': json['total_used'],
39
+ };
40
+ }
41
+ function AiGatewayV1CreditsUioToJSON(json) {
42
+ return AiGatewayV1CreditsUioToJSONTyped(json, false);
43
+ }
44
+ function AiGatewayV1CreditsUioToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'balance': value['balance'],
50
+ 'total_used': value['totalUsed'],
51
+ };
52
+ }
@@ -0,0 +1,50 @@
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 AiGatewayV1EndpointPricingUio
16
+ */
17
+ export interface AiGatewayV1EndpointPricingUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AiGatewayV1EndpointPricingUio
22
+ */
23
+ prompt?: string | null;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AiGatewayV1EndpointPricingUio
28
+ */
29
+ completion?: string | null;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof AiGatewayV1EndpointPricingUio
34
+ */
35
+ inputCacheRead?: string | null;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof AiGatewayV1EndpointPricingUio
40
+ */
41
+ inputCacheWrite?: string | null;
42
+ }
43
+ /**
44
+ * Check if a given object implements the AiGatewayV1EndpointPricingUio interface.
45
+ */
46
+ export declare function instanceOfAiGatewayV1EndpointPricingUio(value: object): value is AiGatewayV1EndpointPricingUio;
47
+ export declare function AiGatewayV1EndpointPricingUioFromJSON(json: any): AiGatewayV1EndpointPricingUio;
48
+ export declare function AiGatewayV1EndpointPricingUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewayV1EndpointPricingUio;
49
+ export declare function AiGatewayV1EndpointPricingUioToJSON(json: any): AiGatewayV1EndpointPricingUio;
50
+ export declare function AiGatewayV1EndpointPricingUioToJSONTyped(value?: AiGatewayV1EndpointPricingUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
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.instanceOfAiGatewayV1EndpointPricingUio = instanceOfAiGatewayV1EndpointPricingUio;
17
+ exports.AiGatewayV1EndpointPricingUioFromJSON = AiGatewayV1EndpointPricingUioFromJSON;
18
+ exports.AiGatewayV1EndpointPricingUioFromJSONTyped = AiGatewayV1EndpointPricingUioFromJSONTyped;
19
+ exports.AiGatewayV1EndpointPricingUioToJSON = AiGatewayV1EndpointPricingUioToJSON;
20
+ exports.AiGatewayV1EndpointPricingUioToJSONTyped = AiGatewayV1EndpointPricingUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AiGatewayV1EndpointPricingUio interface.
23
+ */
24
+ function instanceOfAiGatewayV1EndpointPricingUio(value) {
25
+ return true;
26
+ }
27
+ function AiGatewayV1EndpointPricingUioFromJSON(json) {
28
+ return AiGatewayV1EndpointPricingUioFromJSONTyped(json, false);
29
+ }
30
+ function AiGatewayV1EndpointPricingUioFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'prompt': json['prompt'] == null ? undefined : json['prompt'],
36
+ 'completion': json['completion'] == null ? undefined : json['completion'],
37
+ 'inputCacheRead': json['input_cache_read'] == null ? undefined : json['input_cache_read'],
38
+ 'inputCacheWrite': json['input_cache_write'] == null ? undefined : json['input_cache_write'],
39
+ };
40
+ }
41
+ function AiGatewayV1EndpointPricingUioToJSON(json) {
42
+ return AiGatewayV1EndpointPricingUioToJSONTyped(json, false);
43
+ }
44
+ function AiGatewayV1EndpointPricingUioToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'prompt': value['prompt'],
50
+ 'completion': value['completion'],
51
+ 'input_cache_read': value['inputCacheRead'],
52
+ 'input_cache_write': value['inputCacheWrite'],
53
+ };
54
+ }
@@ -0,0 +1,111 @@
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 { AiGatewayV1EndpointPricingUio } from './AiGatewayV1EndpointPricingUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AiGatewayV1EndpointUio
17
+ */
18
+ export interface AiGatewayV1EndpointUio {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof AiGatewayV1EndpointUio
23
+ */
24
+ name: string;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof AiGatewayV1EndpointUio
29
+ */
30
+ modelName: string;
31
+ /**
32
+ *
33
+ * @type {number}
34
+ * @memberof AiGatewayV1EndpointUio
35
+ */
36
+ contextLength?: number | null;
37
+ /**
38
+ *
39
+ * @type {AiGatewayV1EndpointPricingUio}
40
+ * @memberof AiGatewayV1EndpointUio
41
+ */
42
+ pricing?: AiGatewayV1EndpointPricingUio | null;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof AiGatewayV1EndpointUio
47
+ */
48
+ providerName: string;
49
+ /**
50
+ *
51
+ * @type {number}
52
+ * @memberof AiGatewayV1EndpointUio
53
+ */
54
+ maxCompletionTokens?: number | null;
55
+ /**
56
+ *
57
+ * @type {Array<string>}
58
+ * @memberof AiGatewayV1EndpointUio
59
+ */
60
+ supportedParameters: Array<string>;
61
+ /**
62
+ * 0 lorsque l'endpoint est actif
63
+ * @type {number}
64
+ * @memberof AiGatewayV1EndpointUio
65
+ */
66
+ status: number;
67
+ /**
68
+ * Toujours null — Breign ne collecte pas de télémétrie de disponibilité
69
+ * @type {number}
70
+ * @memberof AiGatewayV1EndpointUio
71
+ */
72
+ uptimeLast15m?: number | null;
73
+ /**
74
+ * Toujours null — Breign ne collecte pas de télémétrie de disponibilité
75
+ * @type {number}
76
+ * @memberof AiGatewayV1EndpointUio
77
+ */
78
+ uptimeLast1h?: number | null;
79
+ /**
80
+ * Toujours null — Breign ne collecte pas de télémétrie de disponibilité
81
+ * @type {number}
82
+ * @memberof AiGatewayV1EndpointUio
83
+ */
84
+ uptimeLast1d?: number | null;
85
+ /**
86
+ * Toujours null — débit non mesuré par endpoint provider
87
+ * @type {object}
88
+ * @memberof AiGatewayV1EndpointUio
89
+ */
90
+ throughputLast1h?: object | null;
91
+ /**
92
+ * Toujours null — latence non mesurée par endpoint provider
93
+ * @type {object}
94
+ * @memberof AiGatewayV1EndpointUio
95
+ */
96
+ latencyLast1h?: object | null;
97
+ /**
98
+ *
99
+ * @type {boolean}
100
+ * @memberof AiGatewayV1EndpointUio
101
+ */
102
+ supportsImplicitCaching?: boolean | null;
103
+ }
104
+ /**
105
+ * Check if a given object implements the AiGatewayV1EndpointUio interface.
106
+ */
107
+ export declare function instanceOfAiGatewayV1EndpointUio(value: object): value is AiGatewayV1EndpointUio;
108
+ export declare function AiGatewayV1EndpointUioFromJSON(json: any): AiGatewayV1EndpointUio;
109
+ export declare function AiGatewayV1EndpointUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewayV1EndpointUio;
110
+ export declare function AiGatewayV1EndpointUioToJSON(json: any): AiGatewayV1EndpointUio;
111
+ export declare function AiGatewayV1EndpointUioToJSONTyped(value?: AiGatewayV1EndpointUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,85 @@
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.instanceOfAiGatewayV1EndpointUio = instanceOfAiGatewayV1EndpointUio;
17
+ exports.AiGatewayV1EndpointUioFromJSON = AiGatewayV1EndpointUioFromJSON;
18
+ exports.AiGatewayV1EndpointUioFromJSONTyped = AiGatewayV1EndpointUioFromJSONTyped;
19
+ exports.AiGatewayV1EndpointUioToJSON = AiGatewayV1EndpointUioToJSON;
20
+ exports.AiGatewayV1EndpointUioToJSONTyped = AiGatewayV1EndpointUioToJSONTyped;
21
+ const AiGatewayV1EndpointPricingUio_1 = require("./AiGatewayV1EndpointPricingUio");
22
+ /**
23
+ * Check if a given object implements the AiGatewayV1EndpointUio interface.
24
+ */
25
+ function instanceOfAiGatewayV1EndpointUio(value) {
26
+ if (!('name' in value) || value['name'] === undefined)
27
+ return false;
28
+ if (!('modelName' in value) || value['modelName'] === undefined)
29
+ return false;
30
+ if (!('providerName' in value) || value['providerName'] === undefined)
31
+ return false;
32
+ if (!('supportedParameters' in value) || value['supportedParameters'] === undefined)
33
+ return false;
34
+ if (!('status' in value) || value['status'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ function AiGatewayV1EndpointUioFromJSON(json) {
39
+ return AiGatewayV1EndpointUioFromJSONTyped(json, false);
40
+ }
41
+ function AiGatewayV1EndpointUioFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'name': json['name'],
47
+ 'modelName': json['model_name'],
48
+ 'contextLength': json['context_length'] == null ? undefined : json['context_length'],
49
+ 'pricing': json['pricing'] == null ? undefined : (0, AiGatewayV1EndpointPricingUio_1.AiGatewayV1EndpointPricingUioFromJSON)(json['pricing']),
50
+ 'providerName': json['provider_name'],
51
+ 'maxCompletionTokens': json['max_completion_tokens'] == null ? undefined : json['max_completion_tokens'],
52
+ 'supportedParameters': json['supported_parameters'],
53
+ 'status': json['status'],
54
+ 'uptimeLast15m': json['uptime_last_15m'] == null ? undefined : json['uptime_last_15m'],
55
+ 'uptimeLast1h': json['uptime_last_1h'] == null ? undefined : json['uptime_last_1h'],
56
+ 'uptimeLast1d': json['uptime_last_1d'] == null ? undefined : json['uptime_last_1d'],
57
+ 'throughputLast1h': json['throughput_last_1h'] == null ? undefined : json['throughput_last_1h'],
58
+ 'latencyLast1h': json['latency_last_1h'] == null ? undefined : json['latency_last_1h'],
59
+ 'supportsImplicitCaching': json['supports_implicit_caching'] == null ? undefined : json['supports_implicit_caching'],
60
+ };
61
+ }
62
+ function AiGatewayV1EndpointUioToJSON(json) {
63
+ return AiGatewayV1EndpointUioToJSONTyped(json, false);
64
+ }
65
+ function AiGatewayV1EndpointUioToJSONTyped(value, ignoreDiscriminator = false) {
66
+ if (value == null) {
67
+ return value;
68
+ }
69
+ return {
70
+ 'name': value['name'],
71
+ 'model_name': value['modelName'],
72
+ 'context_length': value['contextLength'],
73
+ 'pricing': (0, AiGatewayV1EndpointPricingUio_1.AiGatewayV1EndpointPricingUioToJSON)(value['pricing']),
74
+ 'provider_name': value['providerName'],
75
+ 'max_completion_tokens': value['maxCompletionTokens'],
76
+ 'supported_parameters': value['supportedParameters'],
77
+ 'status': value['status'],
78
+ 'uptime_last_15m': value['uptimeLast15m'],
79
+ 'uptime_last_1h': value['uptimeLast1h'],
80
+ 'uptime_last_1d': value['uptimeLast1d'],
81
+ 'throughput_last_1h': value['throughputLast1h'],
82
+ 'latency_last_1h': value['latencyLast1h'],
83
+ 'supports_implicit_caching': value['supportsImplicitCaching'],
84
+ };
85
+ }
@@ -0,0 +1,146 @@
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 AiGatewayV1GenerationDataUio
16
+ */
17
+ export interface AiGatewayV1GenerationDataUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AiGatewayV1GenerationDataUio
22
+ */
23
+ id: string;
24
+ /**
25
+ * Null lorsque le modèle n'est pas tarifé
26
+ * @type {number}
27
+ * @memberof AiGatewayV1GenerationDataUio
28
+ */
29
+ totalCost?: number | null;
30
+ /**
31
+ * Toujours 0 — Breign ne sert pas d'appels BYOK
32
+ * @type {number}
33
+ * @memberof AiGatewayV1GenerationDataUio
34
+ */
35
+ upstreamInferenceCost?: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof AiGatewayV1GenerationDataUio
40
+ */
41
+ usage?: number | null;
42
+ /**
43
+ *
44
+ * @type {Date}
45
+ * @memberof AiGatewayV1GenerationDataUio
46
+ */
47
+ createdAt: Date;
48
+ /**
49
+ *
50
+ * @type {string}
51
+ * @memberof AiGatewayV1GenerationDataUio
52
+ */
53
+ model: string;
54
+ /**
55
+ *
56
+ * @type {boolean}
57
+ * @memberof AiGatewayV1GenerationDataUio
58
+ */
59
+ isByok?: boolean;
60
+ /**
61
+ *
62
+ * @type {string}
63
+ * @memberof AiGatewayV1GenerationDataUio
64
+ */
65
+ providerName: string;
66
+ /**
67
+ *
68
+ * @type {boolean}
69
+ * @memberof AiGatewayV1GenerationDataUio
70
+ */
71
+ streamed: boolean;
72
+ /**
73
+ *
74
+ * @type {string}
75
+ * @memberof AiGatewayV1GenerationDataUio
76
+ */
77
+ finishReason?: string | null;
78
+ /**
79
+ * Temps jusqu'au premier token ; null hors streaming
80
+ * @type {number}
81
+ * @memberof AiGatewayV1GenerationDataUio
82
+ */
83
+ latency?: number | null;
84
+ /**
85
+ *
86
+ * @type {number}
87
+ * @memberof AiGatewayV1GenerationDataUio
88
+ */
89
+ generationTime?: number | null;
90
+ /**
91
+ *
92
+ * @type {number}
93
+ * @memberof AiGatewayV1GenerationDataUio
94
+ */
95
+ tokensPrompt?: number;
96
+ /**
97
+ *
98
+ * @type {number}
99
+ * @memberof AiGatewayV1GenerationDataUio
100
+ */
101
+ tokensCompletion?: number;
102
+ /**
103
+ *
104
+ * @type {number}
105
+ * @memberof AiGatewayV1GenerationDataUio
106
+ */
107
+ nativeTokensPrompt?: number;
108
+ /**
109
+ *
110
+ * @type {number}
111
+ * @memberof AiGatewayV1GenerationDataUio
112
+ */
113
+ nativeTokensCompletion?: number;
114
+ /**
115
+ *
116
+ * @type {number}
117
+ * @memberof AiGatewayV1GenerationDataUio
118
+ */
119
+ nativeTokensReasoning?: number;
120
+ /**
121
+ *
122
+ * @type {number}
123
+ * @memberof AiGatewayV1GenerationDataUio
124
+ */
125
+ nativeTokensCached?: number;
126
+ /**
127
+ *
128
+ * @type {number}
129
+ * @memberof AiGatewayV1GenerationDataUio
130
+ */
131
+ nativeTokensCacheCreation?: number;
132
+ /**
133
+ * Toujours 0 — la recherche web n'est pas proposée
134
+ * @type {number}
135
+ * @memberof AiGatewayV1GenerationDataUio
136
+ */
137
+ billableWebSearchCalls?: number;
138
+ }
139
+ /**
140
+ * Check if a given object implements the AiGatewayV1GenerationDataUio interface.
141
+ */
142
+ export declare function instanceOfAiGatewayV1GenerationDataUio(value: object): value is AiGatewayV1GenerationDataUio;
143
+ export declare function AiGatewayV1GenerationDataUioFromJSON(json: any): AiGatewayV1GenerationDataUio;
144
+ export declare function AiGatewayV1GenerationDataUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewayV1GenerationDataUio;
145
+ export declare function AiGatewayV1GenerationDataUioToJSON(json: any): AiGatewayV1GenerationDataUio;
146
+ export declare function AiGatewayV1GenerationDataUioToJSONTyped(value?: AiGatewayV1GenerationDataUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,96 @@
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.instanceOfAiGatewayV1GenerationDataUio = instanceOfAiGatewayV1GenerationDataUio;
17
+ exports.AiGatewayV1GenerationDataUioFromJSON = AiGatewayV1GenerationDataUioFromJSON;
18
+ exports.AiGatewayV1GenerationDataUioFromJSONTyped = AiGatewayV1GenerationDataUioFromJSONTyped;
19
+ exports.AiGatewayV1GenerationDataUioToJSON = AiGatewayV1GenerationDataUioToJSON;
20
+ exports.AiGatewayV1GenerationDataUioToJSONTyped = AiGatewayV1GenerationDataUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AiGatewayV1GenerationDataUio interface.
23
+ */
24
+ function instanceOfAiGatewayV1GenerationDataUio(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('createdAt' in value) || value['createdAt'] === undefined)
28
+ return false;
29
+ if (!('model' in value) || value['model'] === undefined)
30
+ return false;
31
+ if (!('providerName' in value) || value['providerName'] === undefined)
32
+ return false;
33
+ if (!('streamed' in value) || value['streamed'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function AiGatewayV1GenerationDataUioFromJSON(json) {
38
+ return AiGatewayV1GenerationDataUioFromJSONTyped(json, false);
39
+ }
40
+ function AiGatewayV1GenerationDataUioFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'id': json['id'],
46
+ 'totalCost': json['total_cost'] == null ? undefined : json['total_cost'],
47
+ 'upstreamInferenceCost': json['upstream_inference_cost'] == null ? undefined : json['upstream_inference_cost'],
48
+ 'usage': json['usage'] == null ? undefined : json['usage'],
49
+ 'createdAt': (new Date(json['created_at'])),
50
+ 'model': json['model'],
51
+ 'isByok': json['is_byok'] == null ? undefined : json['is_byok'],
52
+ 'providerName': json['provider_name'],
53
+ 'streamed': json['streamed'],
54
+ 'finishReason': json['finish_reason'] == null ? undefined : json['finish_reason'],
55
+ 'latency': json['latency'] == null ? undefined : json['latency'],
56
+ 'generationTime': json['generation_time'] == null ? undefined : json['generation_time'],
57
+ 'tokensPrompt': json['tokens_prompt'] == null ? undefined : json['tokens_prompt'],
58
+ 'tokensCompletion': json['tokens_completion'] == null ? undefined : json['tokens_completion'],
59
+ 'nativeTokensPrompt': json['native_tokens_prompt'] == null ? undefined : json['native_tokens_prompt'],
60
+ 'nativeTokensCompletion': json['native_tokens_completion'] == null ? undefined : json['native_tokens_completion'],
61
+ 'nativeTokensReasoning': json['native_tokens_reasoning'] == null ? undefined : json['native_tokens_reasoning'],
62
+ 'nativeTokensCached': json['native_tokens_cached'] == null ? undefined : json['native_tokens_cached'],
63
+ 'nativeTokensCacheCreation': json['native_tokens_cache_creation'] == null ? undefined : json['native_tokens_cache_creation'],
64
+ 'billableWebSearchCalls': json['billable_web_search_calls'] == null ? undefined : json['billable_web_search_calls'],
65
+ };
66
+ }
67
+ function AiGatewayV1GenerationDataUioToJSON(json) {
68
+ return AiGatewayV1GenerationDataUioToJSONTyped(json, false);
69
+ }
70
+ function AiGatewayV1GenerationDataUioToJSONTyped(value, ignoreDiscriminator = false) {
71
+ if (value == null) {
72
+ return value;
73
+ }
74
+ return {
75
+ 'id': value['id'],
76
+ 'total_cost': value['totalCost'],
77
+ 'upstream_inference_cost': value['upstreamInferenceCost'],
78
+ 'usage': value['usage'],
79
+ 'created_at': ((value['createdAt']).toISOString()),
80
+ 'model': value['model'],
81
+ 'is_byok': value['isByok'],
82
+ 'provider_name': value['providerName'],
83
+ 'streamed': value['streamed'],
84
+ 'finish_reason': value['finishReason'],
85
+ 'latency': value['latency'],
86
+ 'generation_time': value['generationTime'],
87
+ 'tokens_prompt': value['tokensPrompt'],
88
+ 'tokens_completion': value['tokensCompletion'],
89
+ 'native_tokens_prompt': value['nativeTokensPrompt'],
90
+ 'native_tokens_completion': value['nativeTokensCompletion'],
91
+ 'native_tokens_reasoning': value['nativeTokensReasoning'],
92
+ 'native_tokens_cached': value['nativeTokensCached'],
93
+ 'native_tokens_cache_creation': value['nativeTokensCacheCreation'],
94
+ 'billable_web_search_calls': value['billableWebSearchCalls'],
95
+ };
96
+ }
@@ -0,0 +1,33 @@
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 { AiGatewayV1GenerationDataUio } from './AiGatewayV1GenerationDataUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AiGatewayV1GenerationUio
17
+ */
18
+ export interface AiGatewayV1GenerationUio {
19
+ /**
20
+ *
21
+ * @type {AiGatewayV1GenerationDataUio}
22
+ * @memberof AiGatewayV1GenerationUio
23
+ */
24
+ data: AiGatewayV1GenerationDataUio;
25
+ }
26
+ /**
27
+ * Check if a given object implements the AiGatewayV1GenerationUio interface.
28
+ */
29
+ export declare function instanceOfAiGatewayV1GenerationUio(value: object): value is AiGatewayV1GenerationUio;
30
+ export declare function AiGatewayV1GenerationUioFromJSON(json: any): AiGatewayV1GenerationUio;
31
+ export declare function AiGatewayV1GenerationUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewayV1GenerationUio;
32
+ export declare function AiGatewayV1GenerationUioToJSON(json: any): AiGatewayV1GenerationUio;
33
+ export declare function AiGatewayV1GenerationUioToJSONTyped(value?: AiGatewayV1GenerationUio | null, ignoreDiscriminator?: boolean): any;