@breign/client 1.0.131 → 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 (32) hide show
  1. package/dist/apis/AiGatewayApi.d.ts +108 -1
  2. package/dist/apis/AiGatewayApi.js +218 -1
  3. package/dist/models/AiGatewayV1CreditsUio.d.ts +38 -0
  4. package/dist/models/AiGatewayV1CreditsUio.js +52 -0
  5. package/dist/models/AiGatewayV1EndpointPricingUio.d.ts +50 -0
  6. package/dist/models/AiGatewayV1EndpointPricingUio.js +54 -0
  7. package/dist/models/AiGatewayV1EndpointUio.d.ts +111 -0
  8. package/dist/models/AiGatewayV1EndpointUio.js +85 -0
  9. package/dist/models/AiGatewayV1GenerationDataUio.d.ts +146 -0
  10. package/dist/models/AiGatewayV1GenerationDataUio.js +96 -0
  11. package/dist/models/AiGatewayV1GenerationUio.d.ts +33 -0
  12. package/dist/models/AiGatewayV1GenerationUio.js +51 -0
  13. package/dist/models/AiGatewayV1ModelEndpointsDataArchitectureUio.d.ts +56 -0
  14. package/dist/models/AiGatewayV1ModelEndpointsDataArchitectureUio.js +56 -0
  15. package/dist/models/AiGatewayV1ModelEndpointsDataUio.d.ts +70 -0
  16. package/dist/models/AiGatewayV1ModelEndpointsDataUio.js +72 -0
  17. package/dist/models/AiGatewayV1ModelEndpointsUio.d.ts +33 -0
  18. package/dist/models/AiGatewayV1ModelEndpointsUio.js +51 -0
  19. package/dist/models/AiGatewayV1ModelListUio.d.ts +46 -0
  20. package/dist/models/AiGatewayV1ModelListUio.js +62 -0
  21. package/dist/models/AiGatewayV1ModelPricingUio.d.ts +50 -0
  22. package/dist/models/AiGatewayV1ModelPricingUio.js +54 -0
  23. package/dist/models/AiGatewayV1ModelUio.d.ts +114 -0
  24. package/dist/models/AiGatewayV1ModelUio.js +99 -0
  25. package/dist/models/AiGatewayV1ReportRowUio.d.ts +140 -0
  26. package/dist/models/AiGatewayV1ReportRowUio.js +104 -0
  27. package/dist/models/AiGatewayV1ReportUio.d.ts +33 -0
  28. package/dist/models/AiGatewayV1ReportUio.js +51 -0
  29. package/dist/models/index.d.ts +13 -0
  30. package/dist/models/index.js +13 -0
  31. package/dist/openapi.json +1176 -364
  32. package/package.json +1 -1
@@ -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;
@@ -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.instanceOfAiGatewayV1GenerationUio = instanceOfAiGatewayV1GenerationUio;
17
+ exports.AiGatewayV1GenerationUioFromJSON = AiGatewayV1GenerationUioFromJSON;
18
+ exports.AiGatewayV1GenerationUioFromJSONTyped = AiGatewayV1GenerationUioFromJSONTyped;
19
+ exports.AiGatewayV1GenerationUioToJSON = AiGatewayV1GenerationUioToJSON;
20
+ exports.AiGatewayV1GenerationUioToJSONTyped = AiGatewayV1GenerationUioToJSONTyped;
21
+ const AiGatewayV1GenerationDataUio_1 = require("./AiGatewayV1GenerationDataUio");
22
+ /**
23
+ * Check if a given object implements the AiGatewayV1GenerationUio interface.
24
+ */
25
+ function instanceOfAiGatewayV1GenerationUio(value) {
26
+ if (!('data' in value) || value['data'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function AiGatewayV1GenerationUioFromJSON(json) {
31
+ return AiGatewayV1GenerationUioFromJSONTyped(json, false);
32
+ }
33
+ function AiGatewayV1GenerationUioFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'data': (0, AiGatewayV1GenerationDataUio_1.AiGatewayV1GenerationDataUioFromJSON)(json['data']),
39
+ };
40
+ }
41
+ function AiGatewayV1GenerationUioToJSON(json) {
42
+ return AiGatewayV1GenerationUioToJSONTyped(json, false);
43
+ }
44
+ function AiGatewayV1GenerationUioToJSONTyped(value, ignoreDiscriminator = false) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'data': (0, AiGatewayV1GenerationDataUio_1.AiGatewayV1GenerationDataUioToJSON)(value['data']),
50
+ };
51
+ }
@@ -0,0 +1,56 @@
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 AiGatewayV1ModelEndpointsDataArchitectureUio
16
+ */
17
+ export interface AiGatewayV1ModelEndpointsDataArchitectureUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AiGatewayV1ModelEndpointsDataArchitectureUio
22
+ */
23
+ tokenizer?: string | null;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof AiGatewayV1ModelEndpointsDataArchitectureUio
28
+ */
29
+ instructType?: string | null;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof AiGatewayV1ModelEndpointsDataArchitectureUio
34
+ */
35
+ modality?: string;
36
+ /**
37
+ *
38
+ * @type {Array<string>}
39
+ * @memberof AiGatewayV1ModelEndpointsDataArchitectureUio
40
+ */
41
+ inputModalities?: Array<string>;
42
+ /**
43
+ *
44
+ * @type {Array<string>}
45
+ * @memberof AiGatewayV1ModelEndpointsDataArchitectureUio
46
+ */
47
+ outputModalities?: Array<string>;
48
+ }
49
+ /**
50
+ * Check if a given object implements the AiGatewayV1ModelEndpointsDataArchitectureUio interface.
51
+ */
52
+ export declare function instanceOfAiGatewayV1ModelEndpointsDataArchitectureUio(value: object): value is AiGatewayV1ModelEndpointsDataArchitectureUio;
53
+ export declare function AiGatewayV1ModelEndpointsDataArchitectureUioFromJSON(json: any): AiGatewayV1ModelEndpointsDataArchitectureUio;
54
+ export declare function AiGatewayV1ModelEndpointsDataArchitectureUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): AiGatewayV1ModelEndpointsDataArchitectureUio;
55
+ export declare function AiGatewayV1ModelEndpointsDataArchitectureUioToJSON(json: any): AiGatewayV1ModelEndpointsDataArchitectureUio;
56
+ export declare function AiGatewayV1ModelEndpointsDataArchitectureUioToJSONTyped(value?: AiGatewayV1ModelEndpointsDataArchitectureUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
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.instanceOfAiGatewayV1ModelEndpointsDataArchitectureUio = instanceOfAiGatewayV1ModelEndpointsDataArchitectureUio;
17
+ exports.AiGatewayV1ModelEndpointsDataArchitectureUioFromJSON = AiGatewayV1ModelEndpointsDataArchitectureUioFromJSON;
18
+ exports.AiGatewayV1ModelEndpointsDataArchitectureUioFromJSONTyped = AiGatewayV1ModelEndpointsDataArchitectureUioFromJSONTyped;
19
+ exports.AiGatewayV1ModelEndpointsDataArchitectureUioToJSON = AiGatewayV1ModelEndpointsDataArchitectureUioToJSON;
20
+ exports.AiGatewayV1ModelEndpointsDataArchitectureUioToJSONTyped = AiGatewayV1ModelEndpointsDataArchitectureUioToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AiGatewayV1ModelEndpointsDataArchitectureUio interface.
23
+ */
24
+ function instanceOfAiGatewayV1ModelEndpointsDataArchitectureUio(value) {
25
+ return true;
26
+ }
27
+ function AiGatewayV1ModelEndpointsDataArchitectureUioFromJSON(json) {
28
+ return AiGatewayV1ModelEndpointsDataArchitectureUioFromJSONTyped(json, false);
29
+ }
30
+ function AiGatewayV1ModelEndpointsDataArchitectureUioFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'tokenizer': json['tokenizer'] == null ? undefined : json['tokenizer'],
36
+ 'instructType': json['instruct_type'] == null ? undefined : json['instruct_type'],
37
+ 'modality': json['modality'] == null ? undefined : json['modality'],
38
+ 'inputModalities': json['input_modalities'] == null ? undefined : json['input_modalities'],
39
+ 'outputModalities': json['output_modalities'] == null ? undefined : json['output_modalities'],
40
+ };
41
+ }
42
+ function AiGatewayV1ModelEndpointsDataArchitectureUioToJSON(json) {
43
+ return AiGatewayV1ModelEndpointsDataArchitectureUioToJSONTyped(json, false);
44
+ }
45
+ function AiGatewayV1ModelEndpointsDataArchitectureUioToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'tokenizer': value['tokenizer'],
51
+ 'instruct_type': value['instructType'],
52
+ 'modality': value['modality'],
53
+ 'input_modalities': value['inputModalities'],
54
+ 'output_modalities': value['outputModalities'],
55
+ };
56
+ }