@breign/client 1.0.130 → 1.0.132

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 (40) hide show
  1. package/dist/apis/AiGatewayApi.d.ts +133 -1
  2. package/dist/apis/AiGatewayApi.js +264 -1
  3. package/dist/models/AiGatewayUsageBreakdownItemUio.d.ts +62 -0
  4. package/dist/models/AiGatewayUsageBreakdownItemUio.js +70 -0
  5. package/dist/models/AiGatewayUsagePointUio.d.ts +56 -0
  6. package/dist/models/AiGatewayUsagePointUio.js +66 -0
  7. package/dist/models/AiGatewayUsageTotalUio.d.ts +62 -0
  8. package/dist/models/AiGatewayUsageTotalUio.js +70 -0
  9. package/dist/models/AiGatewayUsageUio.d.ts +59 -0
  10. package/dist/models/AiGatewayUsageUio.js +69 -0
  11. package/dist/models/AiGatewayV1CreditsUio.d.ts +38 -0
  12. package/dist/models/AiGatewayV1CreditsUio.js +52 -0
  13. package/dist/models/AiGatewayV1EndpointPricingUio.d.ts +50 -0
  14. package/dist/models/AiGatewayV1EndpointPricingUio.js +54 -0
  15. package/dist/models/AiGatewayV1EndpointUio.d.ts +111 -0
  16. package/dist/models/AiGatewayV1EndpointUio.js +85 -0
  17. package/dist/models/AiGatewayV1GenerationDataUio.d.ts +146 -0
  18. package/dist/models/AiGatewayV1GenerationDataUio.js +96 -0
  19. package/dist/models/AiGatewayV1GenerationUio.d.ts +33 -0
  20. package/dist/models/AiGatewayV1GenerationUio.js +51 -0
  21. package/dist/models/AiGatewayV1ModelEndpointsDataArchitectureUio.d.ts +56 -0
  22. package/dist/models/AiGatewayV1ModelEndpointsDataArchitectureUio.js +56 -0
  23. package/dist/models/AiGatewayV1ModelEndpointsDataUio.d.ts +70 -0
  24. package/dist/models/AiGatewayV1ModelEndpointsDataUio.js +72 -0
  25. package/dist/models/AiGatewayV1ModelEndpointsUio.d.ts +33 -0
  26. package/dist/models/AiGatewayV1ModelEndpointsUio.js +51 -0
  27. package/dist/models/AiGatewayV1ModelListUio.d.ts +46 -0
  28. package/dist/models/AiGatewayV1ModelListUio.js +62 -0
  29. package/dist/models/AiGatewayV1ModelPricingUio.d.ts +50 -0
  30. package/dist/models/AiGatewayV1ModelPricingUio.js +54 -0
  31. package/dist/models/AiGatewayV1ModelUio.d.ts +114 -0
  32. package/dist/models/AiGatewayV1ModelUio.js +99 -0
  33. package/dist/models/AiGatewayV1ReportRowUio.d.ts +140 -0
  34. package/dist/models/AiGatewayV1ReportRowUio.js +104 -0
  35. package/dist/models/AiGatewayV1ReportUio.d.ts +33 -0
  36. package/dist/models/AiGatewayV1ReportUio.js +51 -0
  37. package/dist/models/index.d.ts +17 -0
  38. package/dist/models/index.js +17 -0
  39. package/dist/openapi.json +1337 -345
  40. package/package.json +1 -1
@@ -0,0 +1,66 @@
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.instanceOfAiGatewayUsagePointUio = instanceOfAiGatewayUsagePointUio;
17
+ exports.AiGatewayUsagePointUioFromJSON = AiGatewayUsagePointUioFromJSON;
18
+ exports.AiGatewayUsagePointUioFromJSONTyped = AiGatewayUsagePointUioFromJSONTyped;
19
+ exports.AiGatewayUsagePointUioToJSON = AiGatewayUsagePointUioToJSON;
20
+ exports.AiGatewayUsagePointUioToJSONTyped = AiGatewayUsagePointUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AiGatewayUsagePointUio interface.
23
+ */
24
+ function instanceOfAiGatewayUsagePointUio(value) {
25
+ if (!('bucket' in value) || value['bucket'] === undefined)
26
+ return false;
27
+ if (!('label' in value) || value['label'] === undefined)
28
+ return false;
29
+ if (!('requests' in value) || value['requests'] === undefined)
30
+ return false;
31
+ if (!('inputTokens' in value) || value['inputTokens'] === undefined)
32
+ return false;
33
+ if (!('outputTokens' in value) || value['outputTokens'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function AiGatewayUsagePointUioFromJSON(json) {
38
+ return AiGatewayUsagePointUioFromJSONTyped(json, false);
39
+ }
40
+ function AiGatewayUsagePointUioFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'bucket': json['bucket'],
46
+ 'label': json['label'],
47
+ 'requests': json['requests'],
48
+ 'inputTokens': json['inputTokens'],
49
+ 'outputTokens': json['outputTokens'],
50
+ };
51
+ }
52
+ function AiGatewayUsagePointUioToJSON(json) {
53
+ return AiGatewayUsagePointUioToJSONTyped(json, false);
54
+ }
55
+ function AiGatewayUsagePointUioToJSONTyped(value, ignoreDiscriminator = false) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'bucket': value['bucket'],
61
+ 'label': value['label'],
62
+ 'requests': value['requests'],
63
+ 'inputTokens': value['inputTokens'],
64
+ 'outputTokens': value['outputTokens'],
65
+ };
66
+ }
@@ -0,0 +1,62 @@
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 AiGatewayUsageTotalUio
16
+ */
17
+ export interface AiGatewayUsageTotalUio {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof AiGatewayUsageTotalUio
22
+ */
23
+ requests: number;
24
+ /**
25
+ *
26
+ * @type {number}
27
+ * @memberof AiGatewayUsageTotalUio
28
+ */
29
+ inputTokens: number;
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof AiGatewayUsageTotalUio
34
+ */
35
+ outputTokens: number;
36
+ /**
37
+ *
38
+ * @type {number}
39
+ * @memberof AiGatewayUsageTotalUio
40
+ */
41
+ reasoningTokens: number;
42
+ /**
43
+ *
44
+ * @type {number}
45
+ * @memberof AiGatewayUsageTotalUio
46
+ */
47
+ totalTokens: number;
48
+ /**
49
+ *
50
+ * @type {number}
51
+ * @memberof AiGatewayUsageTotalUio
52
+ */
53
+ uniqueUsers: number;
54
+ }
55
+ /**
56
+ * Check if a given object implements the AiGatewayUsageTotalUio interface.
57
+ */
58
+ export declare function instanceOfAiGatewayUsageTotalUio(value: object): value is AiGatewayUsageTotalUio;
59
+ export declare function AiGatewayUsageTotalUioFromJSON(json: any): AiGatewayUsageTotalUio;
60
+ export declare function AiGatewayUsageTotalUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewayUsageTotalUio;
61
+ export declare function AiGatewayUsageTotalUioToJSON(json: any): AiGatewayUsageTotalUio;
62
+ export declare function AiGatewayUsageTotalUioToJSONTyped(value?: AiGatewayUsageTotalUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,70 @@
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.instanceOfAiGatewayUsageTotalUio = instanceOfAiGatewayUsageTotalUio;
17
+ exports.AiGatewayUsageTotalUioFromJSON = AiGatewayUsageTotalUioFromJSON;
18
+ exports.AiGatewayUsageTotalUioFromJSONTyped = AiGatewayUsageTotalUioFromJSONTyped;
19
+ exports.AiGatewayUsageTotalUioToJSON = AiGatewayUsageTotalUioToJSON;
20
+ exports.AiGatewayUsageTotalUioToJSONTyped = AiGatewayUsageTotalUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AiGatewayUsageTotalUio interface.
23
+ */
24
+ function instanceOfAiGatewayUsageTotalUio(value) {
25
+ if (!('requests' in value) || value['requests'] === undefined)
26
+ return false;
27
+ if (!('inputTokens' in value) || value['inputTokens'] === undefined)
28
+ return false;
29
+ if (!('outputTokens' in value) || value['outputTokens'] === undefined)
30
+ return false;
31
+ if (!('reasoningTokens' in value) || value['reasoningTokens'] === undefined)
32
+ return false;
33
+ if (!('totalTokens' in value) || value['totalTokens'] === undefined)
34
+ return false;
35
+ if (!('uniqueUsers' in value) || value['uniqueUsers'] === undefined)
36
+ return false;
37
+ return true;
38
+ }
39
+ function AiGatewayUsageTotalUioFromJSON(json) {
40
+ return AiGatewayUsageTotalUioFromJSONTyped(json, false);
41
+ }
42
+ function AiGatewayUsageTotalUioFromJSONTyped(json, ignoreDiscriminator) {
43
+ if (json == null) {
44
+ return json;
45
+ }
46
+ return {
47
+ 'requests': json['requests'],
48
+ 'inputTokens': json['inputTokens'],
49
+ 'outputTokens': json['outputTokens'],
50
+ 'reasoningTokens': json['reasoningTokens'],
51
+ 'totalTokens': json['totalTokens'],
52
+ 'uniqueUsers': json['uniqueUsers'],
53
+ };
54
+ }
55
+ function AiGatewayUsageTotalUioToJSON(json) {
56
+ return AiGatewayUsageTotalUioToJSONTyped(json, false);
57
+ }
58
+ function AiGatewayUsageTotalUioToJSONTyped(value, ignoreDiscriminator = false) {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'requests': value['requests'],
64
+ 'inputTokens': value['inputTokens'],
65
+ 'outputTokens': value['outputTokens'],
66
+ 'reasoningTokens': value['reasoningTokens'],
67
+ 'totalTokens': value['totalTokens'],
68
+ 'uniqueUsers': value['uniqueUsers'],
69
+ };
70
+ }
@@ -0,0 +1,59 @@
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 { AiGatewayUsageTotalUio } from './AiGatewayUsageTotalUio';
13
+ import type { AiGatewayUsagePointUio } from './AiGatewayUsagePointUio';
14
+ import type { AiGatewayUsageBreakdownItemUio } from './AiGatewayUsageBreakdownItemUio';
15
+ /**
16
+ *
17
+ * @export
18
+ * @interface AiGatewayUsageUio
19
+ */
20
+ export interface AiGatewayUsageUio {
21
+ /**
22
+ *
23
+ * @type {AiGatewayUsageTotalUio}
24
+ * @memberof AiGatewayUsageUio
25
+ */
26
+ total: AiGatewayUsageTotalUio;
27
+ /**
28
+ *
29
+ * @type {Array<AiGatewayUsagePointUio>}
30
+ * @memberof AiGatewayUsageUio
31
+ */
32
+ series: Array<AiGatewayUsagePointUio>;
33
+ /**
34
+ *
35
+ * @type {Array<AiGatewayUsageBreakdownItemUio>}
36
+ * @memberof AiGatewayUsageUio
37
+ */
38
+ byModel: Array<AiGatewayUsageBreakdownItemUio>;
39
+ /**
40
+ *
41
+ * @type {Array<AiGatewayUsageBreakdownItemUio>}
42
+ * @memberof AiGatewayUsageUio
43
+ */
44
+ byProvider: Array<AiGatewayUsageBreakdownItemUio>;
45
+ /**
46
+ *
47
+ * @type {Array<AiGatewayUsageBreakdownItemUio>}
48
+ * @memberof AiGatewayUsageUio
49
+ */
50
+ byUser: Array<AiGatewayUsageBreakdownItemUio>;
51
+ }
52
+ /**
53
+ * Check if a given object implements the AiGatewayUsageUio interface.
54
+ */
55
+ export declare function instanceOfAiGatewayUsageUio(value: object): value is AiGatewayUsageUio;
56
+ export declare function AiGatewayUsageUioFromJSON(json: any): AiGatewayUsageUio;
57
+ export declare function AiGatewayUsageUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewayUsageUio;
58
+ export declare function AiGatewayUsageUioToJSON(json: any): AiGatewayUsageUio;
59
+ export declare function AiGatewayUsageUioToJSONTyped(value?: AiGatewayUsageUio | 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.instanceOfAiGatewayUsageUio = instanceOfAiGatewayUsageUio;
17
+ exports.AiGatewayUsageUioFromJSON = AiGatewayUsageUioFromJSON;
18
+ exports.AiGatewayUsageUioFromJSONTyped = AiGatewayUsageUioFromJSONTyped;
19
+ exports.AiGatewayUsageUioToJSON = AiGatewayUsageUioToJSON;
20
+ exports.AiGatewayUsageUioToJSONTyped = AiGatewayUsageUioToJSONTyped;
21
+ const AiGatewayUsageTotalUio_1 = require("./AiGatewayUsageTotalUio");
22
+ const AiGatewayUsagePointUio_1 = require("./AiGatewayUsagePointUio");
23
+ const AiGatewayUsageBreakdownItemUio_1 = require("./AiGatewayUsageBreakdownItemUio");
24
+ /**
25
+ * Check if a given object implements the AiGatewayUsageUio interface.
26
+ */
27
+ function instanceOfAiGatewayUsageUio(value) {
28
+ if (!('total' in value) || value['total'] === undefined)
29
+ return false;
30
+ if (!('series' in value) || value['series'] === undefined)
31
+ return false;
32
+ if (!('byModel' in value) || value['byModel'] === undefined)
33
+ return false;
34
+ if (!('byProvider' in value) || value['byProvider'] === undefined)
35
+ return false;
36
+ if (!('byUser' in value) || value['byUser'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ function AiGatewayUsageUioFromJSON(json) {
41
+ return AiGatewayUsageUioFromJSONTyped(json, false);
42
+ }
43
+ function AiGatewayUsageUioFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'total': (0, AiGatewayUsageTotalUio_1.AiGatewayUsageTotalUioFromJSON)(json['total']),
49
+ 'series': (json['series'].map(AiGatewayUsagePointUio_1.AiGatewayUsagePointUioFromJSON)),
50
+ 'byModel': (json['byModel'].map(AiGatewayUsageBreakdownItemUio_1.AiGatewayUsageBreakdownItemUioFromJSON)),
51
+ 'byProvider': (json['byProvider'].map(AiGatewayUsageBreakdownItemUio_1.AiGatewayUsageBreakdownItemUioFromJSON)),
52
+ 'byUser': (json['byUser'].map(AiGatewayUsageBreakdownItemUio_1.AiGatewayUsageBreakdownItemUioFromJSON)),
53
+ };
54
+ }
55
+ function AiGatewayUsageUioToJSON(json) {
56
+ return AiGatewayUsageUioToJSONTyped(json, false);
57
+ }
58
+ function AiGatewayUsageUioToJSONTyped(value, ignoreDiscriminator = false) {
59
+ if (value == null) {
60
+ return value;
61
+ }
62
+ return {
63
+ 'total': (0, AiGatewayUsageTotalUio_1.AiGatewayUsageTotalUioToJSON)(value['total']),
64
+ 'series': (value['series'].map(AiGatewayUsagePointUio_1.AiGatewayUsagePointUioToJSON)),
65
+ 'byModel': (value['byModel'].map(AiGatewayUsageBreakdownItemUio_1.AiGatewayUsageBreakdownItemUioToJSON)),
66
+ 'byProvider': (value['byProvider'].map(AiGatewayUsageBreakdownItemUio_1.AiGatewayUsageBreakdownItemUioToJSON)),
67
+ 'byUser': (value['byUser'].map(AiGatewayUsageBreakdownItemUio_1.AiGatewayUsageBreakdownItemUioToJSON)),
68
+ };
69
+ }
@@ -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;