@breign/client 1.0.182 → 1.0.184

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 (33) hide show
  1. package/dist/apis/AdminApi.d.ts +14 -1
  2. package/dist/apis/AdminApi.js +31 -0
  3. package/dist/apis/EngineApi.d.ts +15 -1
  4. package/dist/apis/EngineApi.js +34 -0
  5. package/dist/apis/TicketsApi.d.ts +16 -1
  6. package/dist/apis/TicketsApi.js +37 -0
  7. package/dist/models/AiGatewayInternalSettingsSummaryUio.d.ts +7 -0
  8. package/dist/models/AiGatewayInternalSettingsSummaryUio.js +3 -0
  9. package/dist/models/AiGatewayModelTokenQuotaUio.d.ts +1 -1
  10. package/dist/models/AiGatewaySettingsUio.d.ts +7 -0
  11. package/dist/models/AiGatewaySettingsUio.js +3 -0
  12. package/dist/models/AiGatewaySettingsUpdateRequestUio.d.ts +7 -0
  13. package/dist/models/AiGatewaySettingsUpdateRequestUio.js +3 -0
  14. package/dist/models/AiGatewayUserBudgetUio.d.ts +58 -0
  15. package/dist/models/AiGatewayUserBudgetUio.js +67 -0
  16. package/dist/models/InboxItemKindUio.d.ts +2 -1
  17. package/dist/models/InboxItemKindUio.js +2 -1
  18. package/dist/models/ModelDefinitionUio.d.ts +1 -1
  19. package/dist/models/TicketApprovalDecisionUio.d.ts +26 -0
  20. package/dist/models/TicketApprovalDecisionUio.js +52 -0
  21. package/dist/models/TicketApprovalRequestUio.d.ts +39 -0
  22. package/dist/models/TicketApprovalRequestUio.js +53 -0
  23. package/dist/models/TicketEventKindUio.d.ts +2 -1
  24. package/dist/models/TicketEventKindUio.js +2 -1
  25. package/dist/models/TicketEventUio.d.ts +1 -1
  26. package/dist/models/TokenPriceSuggestionRequestUio.d.ts +39 -0
  27. package/dist/models/TokenPriceSuggestionRequestUio.js +55 -0
  28. package/dist/models/TokenPriceSuggestionUio.d.ts +70 -0
  29. package/dist/models/TokenPriceSuggestionUio.js +72 -0
  30. package/dist/models/index.d.ts +5 -0
  31. package/dist/models/index.js +5 -0
  32. package/dist/openapi.json +275 -7
  33. package/package.json +1 -1
@@ -0,0 +1,39 @@
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 { TicketApprovalDecisionUio } from './TicketApprovalDecisionUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface TicketApprovalRequestUio
17
+ */
18
+ export interface TicketApprovalRequestUio {
19
+ /**
20
+ *
21
+ * @type {TicketApprovalDecisionUio}
22
+ * @memberof TicketApprovalRequestUio
23
+ */
24
+ decision: TicketApprovalDecisionUio;
25
+ /**
26
+ *
27
+ * @type {string}
28
+ * @memberof TicketApprovalRequestUio
29
+ */
30
+ comment?: string;
31
+ }
32
+ /**
33
+ * Check if a given object implements the TicketApprovalRequestUio interface.
34
+ */
35
+ export declare function instanceOfTicketApprovalRequestUio(value: object): value is TicketApprovalRequestUio;
36
+ export declare function TicketApprovalRequestUioFromJSON(json: any): TicketApprovalRequestUio;
37
+ export declare function TicketApprovalRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): TicketApprovalRequestUio;
38
+ export declare function TicketApprovalRequestUioToJSON(json: any): TicketApprovalRequestUio;
39
+ export declare function TicketApprovalRequestUioToJSONTyped(value?: TicketApprovalRequestUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,53 @@
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.instanceOfTicketApprovalRequestUio = instanceOfTicketApprovalRequestUio;
17
+ exports.TicketApprovalRequestUioFromJSON = TicketApprovalRequestUioFromJSON;
18
+ exports.TicketApprovalRequestUioFromJSONTyped = TicketApprovalRequestUioFromJSONTyped;
19
+ exports.TicketApprovalRequestUioToJSON = TicketApprovalRequestUioToJSON;
20
+ exports.TicketApprovalRequestUioToJSONTyped = TicketApprovalRequestUioToJSONTyped;
21
+ const TicketApprovalDecisionUio_1 = require("./TicketApprovalDecisionUio");
22
+ /**
23
+ * Check if a given object implements the TicketApprovalRequestUio interface.
24
+ */
25
+ function instanceOfTicketApprovalRequestUio(value) {
26
+ if (!('decision' in value) || value['decision'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function TicketApprovalRequestUioFromJSON(json) {
31
+ return TicketApprovalRequestUioFromJSONTyped(json, false);
32
+ }
33
+ function TicketApprovalRequestUioFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'decision': (0, TicketApprovalDecisionUio_1.TicketApprovalDecisionUioFromJSON)(json['decision']),
39
+ 'comment': json['comment'] == null ? undefined : json['comment'],
40
+ };
41
+ }
42
+ function TicketApprovalRequestUioToJSON(json) {
43
+ return TicketApprovalRequestUioToJSONTyped(json, false);
44
+ }
45
+ function TicketApprovalRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'decision': (0, TicketApprovalDecisionUio_1.TicketApprovalDecisionUioToJSON)(value['decision']),
51
+ 'comment': value['comment'],
52
+ };
53
+ }
@@ -10,13 +10,14 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * comment et report sont écrits par un humain ou un agent ; question porte une question d'agent à un humain ; event est une trace système (création, statut, assignation…).
13
+ * comment et report sont écrits par un humain ou un agent ; question porte une question d'agent à un humain ; approval une demande d'approbation d'un agent ; event est une trace système (création, statut, assignation…).
14
14
  * @export
15
15
  */
16
16
  export declare const TicketEventKindUio: {
17
17
  readonly Comment: "comment";
18
18
  readonly Report: "report";
19
19
  readonly Question: "question";
20
+ readonly Approval: "approval";
20
21
  readonly Event: "event";
21
22
  };
22
23
  export type TicketEventKindUio = typeof TicketEventKindUio[keyof typeof TicketEventKindUio];
@@ -20,13 +20,14 @@ exports.TicketEventKindUioFromJSONTyped = TicketEventKindUioFromJSONTyped;
20
20
  exports.TicketEventKindUioToJSON = TicketEventKindUioToJSON;
21
21
  exports.TicketEventKindUioToJSONTyped = TicketEventKindUioToJSONTyped;
22
22
  /**
23
- * comment et report sont écrits par un humain ou un agent ; question porte une question d'agent à un humain ; event est une trace système (création, statut, assignation…).
23
+ * comment et report sont écrits par un humain ou un agent ; question porte une question d'agent à un humain ; approval une demande d'approbation d'un agent ; event est une trace système (création, statut, assignation…).
24
24
  * @export
25
25
  */
26
26
  exports.TicketEventKindUio = {
27
27
  Comment: 'comment',
28
28
  Report: 'report',
29
29
  Question: 'question',
30
+ Approval: 'approval',
30
31
  Event: 'event'
31
32
  };
32
33
  function instanceOfTicketEventKindUio(value) {
@@ -48,7 +48,7 @@ export interface TicketEventUio {
48
48
  */
49
49
  body: string | null;
50
50
  /**
51
- * Détails selon le type : pour event, { action, from?, to?, member? } ; pour report, { title } ; pour question, { humanRequest: TicketQuestion } ; mentions dans { mentions: MemberRef[] }.
51
+ * Détails selon le type : pour event, { action, from?, to?, member? } ; pour report, { title } ; pour question, { humanRequest: TicketQuestion } ; pour approval, { approval: TicketApproval } ; mentions dans { mentions: MemberRef[] }.
52
52
  * @type {{ [key: string]: any; }}
53
53
  * @memberof TicketEventUio
54
54
  */
@@ -0,0 +1,39 @@
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 { ProviderTypeUio } from './ProviderTypeUio';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface TokenPriceSuggestionRequestUio
17
+ */
18
+ export interface TokenPriceSuggestionRequestUio {
19
+ /**
20
+ *
21
+ * @type {ProviderTypeUio}
22
+ * @memberof TokenPriceSuggestionRequestUio
23
+ */
24
+ providerType: ProviderTypeUio;
25
+ /**
26
+ * Identifiants des modèles chez le fournisseur (`modelId`).
27
+ * @type {Array<string>}
28
+ * @memberof TokenPriceSuggestionRequestUio
29
+ */
30
+ modelIds: Array<string>;
31
+ }
32
+ /**
33
+ * Check if a given object implements the TokenPriceSuggestionRequestUio interface.
34
+ */
35
+ export declare function instanceOfTokenPriceSuggestionRequestUio(value: object): value is TokenPriceSuggestionRequestUio;
36
+ export declare function TokenPriceSuggestionRequestUioFromJSON(json: any): TokenPriceSuggestionRequestUio;
37
+ export declare function TokenPriceSuggestionRequestUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenPriceSuggestionRequestUio;
38
+ export declare function TokenPriceSuggestionRequestUioToJSON(json: any): TokenPriceSuggestionRequestUio;
39
+ export declare function TokenPriceSuggestionRequestUioToJSONTyped(value?: TokenPriceSuggestionRequestUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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.instanceOfTokenPriceSuggestionRequestUio = instanceOfTokenPriceSuggestionRequestUio;
17
+ exports.TokenPriceSuggestionRequestUioFromJSON = TokenPriceSuggestionRequestUioFromJSON;
18
+ exports.TokenPriceSuggestionRequestUioFromJSONTyped = TokenPriceSuggestionRequestUioFromJSONTyped;
19
+ exports.TokenPriceSuggestionRequestUioToJSON = TokenPriceSuggestionRequestUioToJSON;
20
+ exports.TokenPriceSuggestionRequestUioToJSONTyped = TokenPriceSuggestionRequestUioToJSONTyped;
21
+ const ProviderTypeUio_1 = require("./ProviderTypeUio");
22
+ /**
23
+ * Check if a given object implements the TokenPriceSuggestionRequestUio interface.
24
+ */
25
+ function instanceOfTokenPriceSuggestionRequestUio(value) {
26
+ if (!('providerType' in value) || value['providerType'] === undefined)
27
+ return false;
28
+ if (!('modelIds' in value) || value['modelIds'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function TokenPriceSuggestionRequestUioFromJSON(json) {
33
+ return TokenPriceSuggestionRequestUioFromJSONTyped(json, false);
34
+ }
35
+ function TokenPriceSuggestionRequestUioFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'providerType': (0, ProviderTypeUio_1.ProviderTypeUioFromJSON)(json['providerType']),
41
+ 'modelIds': json['modelIds'],
42
+ };
43
+ }
44
+ function TokenPriceSuggestionRequestUioToJSON(json) {
45
+ return TokenPriceSuggestionRequestUioToJSONTyped(json, false);
46
+ }
47
+ function TokenPriceSuggestionRequestUioToJSONTyped(value, ignoreDiscriminator = false) {
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'providerType': (0, ProviderTypeUio_1.ProviderTypeUioToJSON)(value['providerType']),
53
+ 'modelIds': value['modelIds'],
54
+ };
55
+ }
@@ -0,0 +1,70 @@
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 TokenPriceSuggestionUio
16
+ */
17
+ export interface TokenPriceSuggestionUio {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof TokenPriceSuggestionUio
22
+ */
23
+ modelId: string;
24
+ /**
25
+ * Prix d'un million de tokens en entrée.
26
+ * @type {number}
27
+ * @memberof TokenPriceSuggestionUio
28
+ */
29
+ inputTokenPrice?: number;
30
+ /**
31
+ * Prix d'un million de tokens en sortie.
32
+ * @type {number}
33
+ * @memberof TokenPriceSuggestionUio
34
+ */
35
+ outputTokenPrice?: number;
36
+ /**
37
+ * Devise des prix (ISO 4217).
38
+ * @type {string}
39
+ * @memberof TokenPriceSuggestionUio
40
+ */
41
+ currency: string;
42
+ /**
43
+ * configuration = tarifs déjà enregistrés par Breign ; catalog = catalogue public (models.dev).
44
+ * @type {string}
45
+ * @memberof TokenPriceSuggestionUio
46
+ */
47
+ source: TokenPriceSuggestionUioSourceEnum;
48
+ /**
49
+ * Devise d'origine quand les prix ont été convertis en euros au taux du jour (BCE). Absent sans conversion.
50
+ * @type {string}
51
+ * @memberof TokenPriceSuggestionUio
52
+ */
53
+ convertedFrom?: string;
54
+ }
55
+ /**
56
+ * @export
57
+ */
58
+ export declare const TokenPriceSuggestionUioSourceEnum: {
59
+ readonly Configuration: "configuration";
60
+ readonly Catalog: "catalog";
61
+ };
62
+ export type TokenPriceSuggestionUioSourceEnum = typeof TokenPriceSuggestionUioSourceEnum[keyof typeof TokenPriceSuggestionUioSourceEnum];
63
+ /**
64
+ * Check if a given object implements the TokenPriceSuggestionUio interface.
65
+ */
66
+ export declare function instanceOfTokenPriceSuggestionUio(value: object): value is TokenPriceSuggestionUio;
67
+ export declare function TokenPriceSuggestionUioFromJSON(json: any): TokenPriceSuggestionUio;
68
+ export declare function TokenPriceSuggestionUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): TokenPriceSuggestionUio;
69
+ export declare function TokenPriceSuggestionUioToJSON(json: any): TokenPriceSuggestionUio;
70
+ export declare function TokenPriceSuggestionUioToJSONTyped(value?: TokenPriceSuggestionUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,72 @@
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.TokenPriceSuggestionUioSourceEnum = void 0;
17
+ exports.instanceOfTokenPriceSuggestionUio = instanceOfTokenPriceSuggestionUio;
18
+ exports.TokenPriceSuggestionUioFromJSON = TokenPriceSuggestionUioFromJSON;
19
+ exports.TokenPriceSuggestionUioFromJSONTyped = TokenPriceSuggestionUioFromJSONTyped;
20
+ exports.TokenPriceSuggestionUioToJSON = TokenPriceSuggestionUioToJSON;
21
+ exports.TokenPriceSuggestionUioToJSONTyped = TokenPriceSuggestionUioToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.TokenPriceSuggestionUioSourceEnum = {
26
+ Configuration: 'configuration',
27
+ Catalog: 'catalog'
28
+ };
29
+ /**
30
+ * Check if a given object implements the TokenPriceSuggestionUio interface.
31
+ */
32
+ function instanceOfTokenPriceSuggestionUio(value) {
33
+ if (!('modelId' in value) || value['modelId'] === undefined)
34
+ return false;
35
+ if (!('currency' in value) || value['currency'] === undefined)
36
+ return false;
37
+ if (!('source' in value) || value['source'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ function TokenPriceSuggestionUioFromJSON(json) {
42
+ return TokenPriceSuggestionUioFromJSONTyped(json, false);
43
+ }
44
+ function TokenPriceSuggestionUioFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'modelId': json['modelId'],
50
+ 'inputTokenPrice': json['inputTokenPrice'] == null ? undefined : json['inputTokenPrice'],
51
+ 'outputTokenPrice': json['outputTokenPrice'] == null ? undefined : json['outputTokenPrice'],
52
+ 'currency': json['currency'],
53
+ 'source': json['source'],
54
+ 'convertedFrom': json['convertedFrom'] == null ? undefined : json['convertedFrom'],
55
+ };
56
+ }
57
+ function TokenPriceSuggestionUioToJSON(json) {
58
+ return TokenPriceSuggestionUioToJSONTyped(json, false);
59
+ }
60
+ function TokenPriceSuggestionUioToJSONTyped(value, ignoreDiscriminator = false) {
61
+ if (value == null) {
62
+ return value;
63
+ }
64
+ return {
65
+ 'modelId': value['modelId'],
66
+ 'inputTokenPrice': value['inputTokenPrice'],
67
+ 'outputTokenPrice': value['outputTokenPrice'],
68
+ 'currency': value['currency'],
69
+ 'source': value['source'],
70
+ 'convertedFrom': value['convertedFrom'],
71
+ };
72
+ }
@@ -106,6 +106,7 @@ export * from './AiGatewayUsageCostUio';
106
106
  export * from './AiGatewayUsagePointUio';
107
107
  export * from './AiGatewayUsageTotalUio';
108
108
  export * from './AiGatewayUsageUio';
109
+ export * from './AiGatewayUserBudgetUio';
109
110
  export * from './AiGatewayV1CreditsUio';
110
111
  export * from './AiGatewayV1EndpointPricingUio';
111
112
  export * from './AiGatewayV1EndpointUio';
@@ -584,6 +585,8 @@ export * from './TicketAgentExecutionUio';
584
585
  export * from './TicketAgentPlanUio';
585
586
  export * from './TicketAgentRunStatusUio';
586
587
  export * from './TicketAgentUsageUio';
588
+ export * from './TicketApprovalDecisionUio';
589
+ export * from './TicketApprovalRequestUio';
587
590
  export * from './TicketArtifactDownloadUrlUio';
588
591
  export * from './TicketArtifactSourceUio';
589
592
  export * from './TicketArtifactStatusUio';
@@ -607,6 +610,8 @@ export * from './TicketStartModeUio';
607
610
  export * from './TicketStatusUio';
608
611
  export * from './TicketUio';
609
612
  export * from './TicketUsageUio';
613
+ export * from './TokenPriceSuggestionRequestUio';
614
+ export * from './TokenPriceSuggestionUio';
610
615
  export * from './TokenUsageUio';
611
616
  export * from './ToolActionUio';
612
617
  export * from './ToolAllowedToolsRequestUio';
@@ -124,6 +124,7 @@ __exportStar(require("./AiGatewayUsageCostUio"), exports);
124
124
  __exportStar(require("./AiGatewayUsagePointUio"), exports);
125
125
  __exportStar(require("./AiGatewayUsageTotalUio"), exports);
126
126
  __exportStar(require("./AiGatewayUsageUio"), exports);
127
+ __exportStar(require("./AiGatewayUserBudgetUio"), exports);
127
128
  __exportStar(require("./AiGatewayV1CreditsUio"), exports);
128
129
  __exportStar(require("./AiGatewayV1EndpointPricingUio"), exports);
129
130
  __exportStar(require("./AiGatewayV1EndpointUio"), exports);
@@ -602,6 +603,8 @@ __exportStar(require("./TicketAgentExecutionUio"), exports);
602
603
  __exportStar(require("./TicketAgentPlanUio"), exports);
603
604
  __exportStar(require("./TicketAgentRunStatusUio"), exports);
604
605
  __exportStar(require("./TicketAgentUsageUio"), exports);
606
+ __exportStar(require("./TicketApprovalDecisionUio"), exports);
607
+ __exportStar(require("./TicketApprovalRequestUio"), exports);
605
608
  __exportStar(require("./TicketArtifactDownloadUrlUio"), exports);
606
609
  __exportStar(require("./TicketArtifactSourceUio"), exports);
607
610
  __exportStar(require("./TicketArtifactStatusUio"), exports);
@@ -625,6 +628,8 @@ __exportStar(require("./TicketStartModeUio"), exports);
625
628
  __exportStar(require("./TicketStatusUio"), exports);
626
629
  __exportStar(require("./TicketUio"), exports);
627
630
  __exportStar(require("./TicketUsageUio"), exports);
631
+ __exportStar(require("./TokenPriceSuggestionRequestUio"), exports);
632
+ __exportStar(require("./TokenPriceSuggestionUio"), exports);
628
633
  __exportStar(require("./TokenUsageUio"), exports);
629
634
  __exportStar(require("./ToolActionUio"), exports);
630
635
  __exportStar(require("./ToolAllowedToolsRequestUio"), exports);