@breign/client 1.0.172 → 1.0.174

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 (54) 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 +83 -1
  6. package/dist/apis/ExecutionNodesApi.js +186 -0
  7. package/dist/models/AiGatewayInternalSettingsSummaryUio.d.ts +63 -0
  8. package/dist/models/AiGatewayInternalSettingsSummaryUio.js +69 -0
  9. package/dist/models/AiGatewayUsageCostUio.d.ts +60 -0
  10. package/dist/models/AiGatewayUsageCostUio.js +62 -0
  11. package/dist/models/AiGatewayUsageUio.d.ts +7 -0
  12. package/dist/models/AiGatewayUsageUio.js +3 -0
  13. package/dist/models/AllowPlatformEnginesUio.d.ts +32 -0
  14. package/dist/models/AllowPlatformEnginesUio.js +50 -0
  15. package/dist/models/DefaultEngineRequestUio.d.ts +6 -0
  16. package/dist/models/DefaultEngineRequestUio.js +2 -0
  17. package/dist/models/DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio.d.ts +44 -0
  18. package/dist/models/DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio.js +58 -0
  19. package/dist/models/DeletePlatformEngineResponseUio.d.ts +45 -0
  20. package/dist/models/DeletePlatformEngineResponseUio.js +59 -0
  21. package/dist/models/ExecutionNodeDetailUio.d.ts +7 -0
  22. package/dist/models/ExecutionNodeDetailUio.js +5 -0
  23. package/dist/models/ExecutionNodeOrganizationUio.d.ts +44 -0
  24. package/dist/models/ExecutionNodeOrganizationUio.js +58 -0
  25. package/dist/models/ExecutionNodeSettingsUio.d.ts +33 -0
  26. package/dist/models/ExecutionNodeSettingsUio.js +51 -0
  27. package/dist/models/ExecutionNodeUio.d.ts +7 -0
  28. package/dist/models/ExecutionNodeUio.js +5 -0
  29. package/dist/models/ModelDefinitionUio.d.ts +33 -0
  30. package/dist/models/ModelDefinitionUio.js +17 -0
  31. package/dist/models/NodeAssociationPolicyUio.d.ts +26 -0
  32. package/dist/models/NodeAssociationPolicyUio.js +52 -0
  33. package/dist/models/NodeSessionDetailUio.d.ts +1 -1
  34. package/dist/models/NodeSessionUio.d.ts +1 -1
  35. package/dist/models/OrganisationPlatformEngineUsageUio.d.ts +44 -0
  36. package/dist/models/OrganisationPlatformEngineUsageUio.js +58 -0
  37. package/dist/models/OrganizationExecutionNodeAgentUio.d.ts +52 -0
  38. package/dist/models/OrganizationExecutionNodeAgentUio.js +66 -0
  39. package/dist/models/OrganizationExecutionNodeUio.d.ts +97 -0
  40. package/dist/models/OrganizationExecutionNodeUio.js +97 -0
  41. package/dist/models/OrganizationExecutionNodeUserUio.d.ts +38 -0
  42. package/dist/models/OrganizationExecutionNodeUserUio.js +54 -0
  43. package/dist/models/OrganizationUio.d.ts +6 -0
  44. package/dist/models/OrganizationUio.js +2 -0
  45. package/dist/models/PlatformEngineUsageUio.d.ts +48 -0
  46. package/dist/models/PlatformEngineUsageUio.js +58 -0
  47. package/dist/models/ProviderCreateRequestUio.d.ts +12 -0
  48. package/dist/models/ProviderCreateRequestUio.js +4 -0
  49. package/dist/models/ProviderUio.d.ts +12 -0
  50. package/dist/models/ProviderUio.js +4 -0
  51. package/dist/models/index.d.ts +13 -0
  52. package/dist/models/index.js +13 -0
  53. package/dist/openapi.json +970 -33
  54. package/package.json +1 -1
@@ -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
+ }
@@ -0,0 +1,45 @@
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 { DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio } from './DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface DeletePlatformEngineResponseUio
17
+ */
18
+ export interface DeletePlatformEngineResponseUio {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof DeletePlatformEngineResponseUio
23
+ */
24
+ message: string;
25
+ /**
26
+ *
27
+ * @type {number}
28
+ * @memberof DeletePlatformEngineResponseUio
29
+ */
30
+ agentsEngineUnsetCount: number;
31
+ /**
32
+ *
33
+ * @type {Array<DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio>}
34
+ * @memberof DeletePlatformEngineResponseUio
35
+ */
36
+ knowledgeBasesAffected: Array<DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio>;
37
+ }
38
+ /**
39
+ * Check if a given object implements the DeletePlatformEngineResponseUio interface.
40
+ */
41
+ export declare function instanceOfDeletePlatformEngineResponseUio(value: object): value is DeletePlatformEngineResponseUio;
42
+ export declare function DeletePlatformEngineResponseUioFromJSON(json: any): DeletePlatformEngineResponseUio;
43
+ export declare function DeletePlatformEngineResponseUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): DeletePlatformEngineResponseUio;
44
+ export declare function DeletePlatformEngineResponseUioToJSON(json: any): DeletePlatformEngineResponseUio;
45
+ export declare function DeletePlatformEngineResponseUioToJSONTyped(value?: DeletePlatformEngineResponseUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
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.instanceOfDeletePlatformEngineResponseUio = instanceOfDeletePlatformEngineResponseUio;
17
+ exports.DeletePlatformEngineResponseUioFromJSON = DeletePlatformEngineResponseUioFromJSON;
18
+ exports.DeletePlatformEngineResponseUioFromJSONTyped = DeletePlatformEngineResponseUioFromJSONTyped;
19
+ exports.DeletePlatformEngineResponseUioToJSON = DeletePlatformEngineResponseUioToJSON;
20
+ exports.DeletePlatformEngineResponseUioToJSONTyped = DeletePlatformEngineResponseUioToJSONTyped;
21
+ const DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio_1 = require("./DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio");
22
+ /**
23
+ * Check if a given object implements the DeletePlatformEngineResponseUio interface.
24
+ */
25
+ function instanceOfDeletePlatformEngineResponseUio(value) {
26
+ if (!('message' in value) || value['message'] === undefined)
27
+ return false;
28
+ if (!('agentsEngineUnsetCount' in value) || value['agentsEngineUnsetCount'] === undefined)
29
+ return false;
30
+ if (!('knowledgeBasesAffected' in value) || value['knowledgeBasesAffected'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ function DeletePlatformEngineResponseUioFromJSON(json) {
35
+ return DeletePlatformEngineResponseUioFromJSONTyped(json, false);
36
+ }
37
+ function DeletePlatformEngineResponseUioFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'message': json['message'],
43
+ 'agentsEngineUnsetCount': json['agentsEngineUnsetCount'],
44
+ 'knowledgeBasesAffected': (json['knowledgeBasesAffected'].map(DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio_1.DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUioFromJSON)),
45
+ };
46
+ }
47
+ function DeletePlatformEngineResponseUioToJSON(json) {
48
+ return DeletePlatformEngineResponseUioToJSONTyped(json, false);
49
+ }
50
+ function DeletePlatformEngineResponseUioToJSONTyped(value, ignoreDiscriminator = false) {
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'message': value['message'],
56
+ 'agentsEngineUnsetCount': value['agentsEngineUnsetCount'],
57
+ 'knowledgeBasesAffected': (value['knowledgeBasesAffected'].map(DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUio_1.DeletePlatformEngineResponseKnowledgeBasesAffectedInnerUioToJSON)),
58
+ };
59
+ }
@@ -11,6 +11,7 @@
11
11
  */
12
12
  import type { ExecutionNodeAgentUio } from './ExecutionNodeAgentUio';
13
13
  import type { ExecutionNodeWorkspaceUio } from './ExecutionNodeWorkspaceUio';
14
+ import type { ExecutionNodeOrganizationUio } from './ExecutionNodeOrganizationUio';
14
15
  import type { ExecutionNodeRuntimeUio } from './ExecutionNodeRuntimeUio';
15
16
  import type { NodeSessionUio } from './NodeSessionUio';
16
17
  /**
@@ -79,6 +80,12 @@ export interface ExecutionNodeDetailUio {
79
80
  * @memberof ExecutionNodeDetailUio
80
81
  */
81
82
  createdAt: string;
83
+ /**
84
+ * Les organisations auxquelles le nœud est associé, par date d'association.
85
+ * @type {Array<ExecutionNodeOrganizationUio>}
86
+ * @memberof ExecutionNodeDetailUio
87
+ */
88
+ organizations: Array<ExecutionNodeOrganizationUio>;
82
89
  /**
83
90
  *
84
91
  * @type {Array<ExecutionNodeAgentUio>}
@@ -21,6 +21,7 @@ exports.ExecutionNodeDetailUioToJSON = ExecutionNodeDetailUioToJSON;
21
21
  exports.ExecutionNodeDetailUioToJSONTyped = ExecutionNodeDetailUioToJSONTyped;
22
22
  const ExecutionNodeAgentUio_1 = require("./ExecutionNodeAgentUio");
23
23
  const ExecutionNodeWorkspaceUio_1 = require("./ExecutionNodeWorkspaceUio");
24
+ const ExecutionNodeOrganizationUio_1 = require("./ExecutionNodeOrganizationUio");
24
25
  const ExecutionNodeRuntimeUio_1 = require("./ExecutionNodeRuntimeUio");
25
26
  const NodeSessionUio_1 = require("./NodeSessionUio");
26
27
  /**
@@ -55,6 +56,8 @@ function instanceOfExecutionNodeDetailUio(value) {
55
56
  return false;
56
57
  if (!('createdAt' in value) || value['createdAt'] === undefined)
57
58
  return false;
59
+ if (!('organizations' in value) || value['organizations'] === undefined)
60
+ return false;
58
61
  if (!('agents' in value) || value['agents'] === undefined)
59
62
  return false;
60
63
  if (!('sessions' in value) || value['sessions'] === undefined)
@@ -79,6 +82,7 @@ function ExecutionNodeDetailUioFromJSONTyped(json, ignoreDiscriminator) {
79
82
  'lastSeenAt': json['lastSeenAt'],
80
83
  'revokedAt': json['revokedAt'],
81
84
  'createdAt': json['createdAt'],
85
+ 'organizations': (json['organizations'].map(ExecutionNodeOrganizationUio_1.ExecutionNodeOrganizationUioFromJSON)),
82
86
  'agents': (json['agents'].map(ExecutionNodeAgentUio_1.ExecutionNodeAgentUioFromJSON)),
83
87
  'sessions': (json['sessions'].map(NodeSessionUio_1.NodeSessionUioFromJSON)),
84
88
  };
@@ -101,6 +105,7 @@ function ExecutionNodeDetailUioToJSONTyped(value, ignoreDiscriminator = false) {
101
105
  'lastSeenAt': value['lastSeenAt'],
102
106
  'revokedAt': value['revokedAt'],
103
107
  'createdAt': value['createdAt'],
108
+ 'organizations': (value['organizations'].map(ExecutionNodeOrganizationUio_1.ExecutionNodeOrganizationUioToJSON)),
104
109
  'agents': (value['agents'].map(ExecutionNodeAgentUio_1.ExecutionNodeAgentUioToJSON)),
105
110
  'sessions': (value['sessions'].map(NodeSessionUio_1.NodeSessionUioToJSON)),
106
111
  };
@@ -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
+ * Une organisation à laquelle le nœud est associé : seuls les agents de ces organisations peuvent y tourner. Le propriétaire associe son nœud depuis Breign Mate, organisation par organisation.
14
+ * @export
15
+ * @interface ExecutionNodeOrganizationUio
16
+ */
17
+ export interface ExecutionNodeOrganizationUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof ExecutionNodeOrganizationUio
22
+ */
23
+ organizationId: string;
24
+ /**
25
+ * Nom de l'organisation, résolu par l'API. Null pour une organisation supprimée.
26
+ * @type {string}
27
+ * @memberof ExecutionNodeOrganizationUio
28
+ */
29
+ organizationName: string | null;
30
+ /**
31
+ *
32
+ * @type {string}
33
+ * @memberof ExecutionNodeOrganizationUio
34
+ */
35
+ associatedAt: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the ExecutionNodeOrganizationUio interface.
39
+ */
40
+ export declare function instanceOfExecutionNodeOrganizationUio(value: object): value is ExecutionNodeOrganizationUio;
41
+ export declare function ExecutionNodeOrganizationUioFromJSON(json: any): ExecutionNodeOrganizationUio;
42
+ export declare function ExecutionNodeOrganizationUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExecutionNodeOrganizationUio;
43
+ export declare function ExecutionNodeOrganizationUioToJSON(json: any): ExecutionNodeOrganizationUio;
44
+ export declare function ExecutionNodeOrganizationUioToJSONTyped(value?: ExecutionNodeOrganizationUio | null, ignoreDiscriminator?: boolean): any;