@breign/client 1.0.213 → 1.0.214

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 (59) hide show
  1. package/README.md +1 -5
  2. package/dist/apis/GitApi.d.ts +166 -0
  3. package/dist/apis/GitApi.js +406 -0
  4. package/dist/apis/index.d.ts +1 -0
  5. package/dist/apis/index.js +1 -0
  6. package/dist/models/AgentExecutionGroupChoiceUio.d.ts +6 -0
  7. package/dist/models/AgentExecutionGroupChoiceUio.js +2 -0
  8. package/dist/models/AgentExecutionNodeChoiceUio.d.ts +6 -0
  9. package/dist/models/AgentExecutionNodeChoiceUio.js +2 -0
  10. package/dist/models/AgentExecutionUio.d.ts +7 -0
  11. package/dist/models/AgentExecutionUio.js +3 -0
  12. package/dist/models/AgentPatchUio.d.ts +7 -0
  13. package/dist/models/AgentPatchUio.js +3 -0
  14. package/dist/models/AgentSubtaskConfigurationUio.d.ts +39 -0
  15. package/dist/models/AgentSubtaskConfigurationUio.js +51 -0
  16. package/dist/models/AgentSubtaskModelUio.d.ts +38 -0
  17. package/dist/models/AgentSubtaskModelUio.js +54 -0
  18. package/dist/models/AgentUio.d.ts +7 -0
  19. package/dist/models/AgentUio.js +3 -0
  20. package/dist/models/GitBotConnectionCreateUio.d.ts +38 -0
  21. package/dist/models/GitBotConnectionCreateUio.js +52 -0
  22. package/dist/models/GitConnectionKindUio.d.ts +26 -0
  23. package/dist/models/GitConnectionKindUio.js +52 -0
  24. package/dist/models/GitConnectionUio.d.ts +115 -0
  25. package/dist/models/GitConnectionUio.js +101 -0
  26. package/dist/models/GitGithubAppConnectionCreateUio.d.ts +56 -0
  27. package/dist/models/GitGithubAppConnectionCreateUio.js +62 -0
  28. package/dist/models/GitOAuthAppCreateUio.d.ts +51 -0
  29. package/dist/models/GitOAuthAppCreateUio.js +63 -0
  30. package/dist/models/GitOAuthAppUio.d.ts +81 -0
  31. package/dist/models/GitOAuthAppUio.js +77 -0
  32. package/dist/models/GitOAuthAppUpdateUio.d.ts +38 -0
  33. package/dist/models/GitOAuthAppUpdateUio.js +50 -0
  34. package/dist/models/GitOAuthAuthorizeRequestUio.d.ts +32 -0
  35. package/dist/models/GitOAuthAuthorizeRequestUio.js +48 -0
  36. package/dist/models/GitOAuthAuthorizeResponseUio.d.ts +32 -0
  37. package/dist/models/GitOAuthAuthorizeResponseUio.js +50 -0
  38. package/dist/models/GitOAuthCompleteRequestUio.d.ts +38 -0
  39. package/dist/models/GitOAuthCompleteRequestUio.js +54 -0
  40. package/dist/models/GitOAuthCompleteResponseUio.d.ts +39 -0
  41. package/dist/models/GitOAuthCompleteResponseUio.js +55 -0
  42. package/dist/models/GitOAuthConfigUio.d.ts +32 -0
  43. package/dist/models/GitOAuthConfigUio.js +50 -0
  44. package/dist/models/GitProviderUio.d.ts +25 -0
  45. package/dist/models/GitProviderUio.js +51 -0
  46. package/dist/models/NodeAgentGitConfigAuthorUio.d.ts +38 -0
  47. package/dist/models/NodeAgentGitConfigAuthorUio.js +54 -0
  48. package/dist/models/NodeAgentGitConfigUio.d.ts +46 -0
  49. package/dist/models/NodeAgentGitConfigUio.js +56 -0
  50. package/dist/models/NodeGitRepositoryConnectionUio.d.ts +46 -0
  51. package/dist/models/NodeGitRepositoryConnectionUio.js +60 -0
  52. package/dist/models/NodeGitRepositoryUio.d.ts +79 -0
  53. package/dist/models/NodeGitRepositoryUio.js +82 -0
  54. package/dist/models/SetAgentExecutionRequestUio.d.ts +8 -1
  55. package/dist/models/SetAgentExecutionRequestUio.js +3 -0
  56. package/dist/models/index.d.ts +19 -0
  57. package/dist/models/index.js +19 -0
  58. package/dist/openapi.json +820 -0
  59. package/package.json +1 -1
@@ -0,0 +1,60 @@
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.NodeGitRepositoryConnectionUioModeEnum = void 0;
17
+ exports.instanceOfNodeGitRepositoryConnectionUio = instanceOfNodeGitRepositoryConnectionUio;
18
+ exports.NodeGitRepositoryConnectionUioFromJSON = NodeGitRepositoryConnectionUioFromJSON;
19
+ exports.NodeGitRepositoryConnectionUioFromJSONTyped = NodeGitRepositoryConnectionUioFromJSONTyped;
20
+ exports.NodeGitRepositoryConnectionUioToJSON = NodeGitRepositoryConnectionUioToJSON;
21
+ exports.NodeGitRepositoryConnectionUioToJSONTyped = NodeGitRepositoryConnectionUioToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.NodeGitRepositoryConnectionUioModeEnum = {
26
+ User: 'user',
27
+ Organization: 'organization'
28
+ };
29
+ /**
30
+ * Check if a given object implements the NodeGitRepositoryConnectionUio interface.
31
+ */
32
+ function instanceOfNodeGitRepositoryConnectionUio(value) {
33
+ if (!('mode' in value) || value['mode'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function NodeGitRepositoryConnectionUioFromJSON(json) {
38
+ return NodeGitRepositoryConnectionUioFromJSONTyped(json, false);
39
+ }
40
+ function NodeGitRepositoryConnectionUioFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'mode': json['mode'],
46
+ 'connectionId': json['connectionId'] == null ? undefined : json['connectionId'],
47
+ };
48
+ }
49
+ function NodeGitRepositoryConnectionUioToJSON(json) {
50
+ return NodeGitRepositoryConnectionUioToJSONTyped(json, false);
51
+ }
52
+ function NodeGitRepositoryConnectionUioToJSONTyped(value, ignoreDiscriminator = false) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'mode': value['mode'],
58
+ 'connectionId': value['connectionId'],
59
+ };
60
+ }
@@ -0,0 +1,79 @@
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 { NodeGitRepositoryConnectionUio } from './NodeGitRepositoryConnectionUio';
13
+ /**
14
+ * Un dépôt sur lequel l'agent travaille ; cloné par le nœud dans le dossier `alias`.
15
+ * @export
16
+ * @interface NodeGitRepositoryUio
17
+ */
18
+ export interface NodeGitRepositoryUio {
19
+ /**
20
+ * Dossier du dépôt dans l'environnement, en minuscules (lettres, chiffres, . _ -).
21
+ * @type {string}
22
+ * @memberof NodeGitRepositoryUio
23
+ */
24
+ alias: string;
25
+ /**
26
+ * URL HTTPS du dépôt, sans identifiants.
27
+ * @type {string}
28
+ * @memberof NodeGitRepositoryUio
29
+ */
30
+ url: string;
31
+ /**
32
+ *
33
+ * @type {string}
34
+ * @memberof NodeGitRepositoryUio
35
+ */
36
+ baseBranch: string;
37
+ /**
38
+ *
39
+ * @type {NodeGitRepositoryConnectionUio}
40
+ * @memberof NodeGitRepositoryUio
41
+ */
42
+ connection: NodeGitRepositoryConnectionUio;
43
+ /**
44
+ * Cloné à la création de l'environnement, ou seulement quand l'agent le demande.
45
+ * @type {string}
46
+ * @memberof NodeGitRepositoryUio
47
+ */
48
+ clone?: NodeGitRepositoryUioCloneEnum;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof NodeGitRepositoryUio
53
+ */
54
+ access?: NodeGitRepositoryUioAccessEnum;
55
+ }
56
+ /**
57
+ * @export
58
+ */
59
+ export declare const NodeGitRepositoryUioCloneEnum: {
60
+ readonly Eager: "eager";
61
+ readonly OnDemand: "on_demand";
62
+ };
63
+ export type NodeGitRepositoryUioCloneEnum = typeof NodeGitRepositoryUioCloneEnum[keyof typeof NodeGitRepositoryUioCloneEnum];
64
+ /**
65
+ * @export
66
+ */
67
+ export declare const NodeGitRepositoryUioAccessEnum: {
68
+ readonly Read: "read";
69
+ readonly Write: "write";
70
+ };
71
+ export type NodeGitRepositoryUioAccessEnum = typeof NodeGitRepositoryUioAccessEnum[keyof typeof NodeGitRepositoryUioAccessEnum];
72
+ /**
73
+ * Check if a given object implements the NodeGitRepositoryUio interface.
74
+ */
75
+ export declare function instanceOfNodeGitRepositoryUio(value: object): value is NodeGitRepositoryUio;
76
+ export declare function NodeGitRepositoryUioFromJSON(json: any): NodeGitRepositoryUio;
77
+ export declare function NodeGitRepositoryUioFromJSONTyped(json: any, ignoreDiscriminator: boolean): NodeGitRepositoryUio;
78
+ export declare function NodeGitRepositoryUioToJSON(json: any): NodeGitRepositoryUio;
79
+ export declare function NodeGitRepositoryUioToJSONTyped(value?: NodeGitRepositoryUio | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,82 @@
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.NodeGitRepositoryUioAccessEnum = exports.NodeGitRepositoryUioCloneEnum = void 0;
17
+ exports.instanceOfNodeGitRepositoryUio = instanceOfNodeGitRepositoryUio;
18
+ exports.NodeGitRepositoryUioFromJSON = NodeGitRepositoryUioFromJSON;
19
+ exports.NodeGitRepositoryUioFromJSONTyped = NodeGitRepositoryUioFromJSONTyped;
20
+ exports.NodeGitRepositoryUioToJSON = NodeGitRepositoryUioToJSON;
21
+ exports.NodeGitRepositoryUioToJSONTyped = NodeGitRepositoryUioToJSONTyped;
22
+ const NodeGitRepositoryConnectionUio_1 = require("./NodeGitRepositoryConnectionUio");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.NodeGitRepositoryUioCloneEnum = {
27
+ Eager: 'eager',
28
+ OnDemand: 'on_demand'
29
+ };
30
+ /**
31
+ * @export
32
+ */
33
+ exports.NodeGitRepositoryUioAccessEnum = {
34
+ Read: 'read',
35
+ Write: 'write'
36
+ };
37
+ /**
38
+ * Check if a given object implements the NodeGitRepositoryUio interface.
39
+ */
40
+ function instanceOfNodeGitRepositoryUio(value) {
41
+ if (!('alias' in value) || value['alias'] === undefined)
42
+ return false;
43
+ if (!('url' in value) || value['url'] === undefined)
44
+ return false;
45
+ if (!('baseBranch' in value) || value['baseBranch'] === undefined)
46
+ return false;
47
+ if (!('connection' in value) || value['connection'] === undefined)
48
+ return false;
49
+ return true;
50
+ }
51
+ function NodeGitRepositoryUioFromJSON(json) {
52
+ return NodeGitRepositoryUioFromJSONTyped(json, false);
53
+ }
54
+ function NodeGitRepositoryUioFromJSONTyped(json, ignoreDiscriminator) {
55
+ if (json == null) {
56
+ return json;
57
+ }
58
+ return {
59
+ 'alias': json['alias'],
60
+ 'url': json['url'],
61
+ 'baseBranch': json['baseBranch'],
62
+ 'connection': (0, NodeGitRepositoryConnectionUio_1.NodeGitRepositoryConnectionUioFromJSON)(json['connection']),
63
+ 'clone': json['clone'] == null ? undefined : json['clone'],
64
+ 'access': json['access'] == null ? undefined : json['access'],
65
+ };
66
+ }
67
+ function NodeGitRepositoryUioToJSON(json) {
68
+ return NodeGitRepositoryUioToJSONTyped(json, false);
69
+ }
70
+ function NodeGitRepositoryUioToJSONTyped(value, ignoreDiscriminator = false) {
71
+ if (value == null) {
72
+ return value;
73
+ }
74
+ return {
75
+ 'alias': value['alias'],
76
+ 'url': value['url'],
77
+ 'baseBranch': value['baseBranch'],
78
+ 'connection': (0, NodeGitRepositoryConnectionUio_1.NodeGitRepositoryConnectionUioToJSON)(value['connection']),
79
+ 'clone': value['clone'],
80
+ 'access': value['access'],
81
+ };
82
+ }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { NodeAgentGitConfigUio } from './NodeAgentGitConfigUio';
12
13
  /**
13
14
  * `{ mode: server }` ramène l'agent sur le serveur Breign. `{ mode: node, … }` le fait tourner sur un nœud ; seul son propriétaire peut le choisir, sur un runtime et un alias déclarés. `{ mode: group, … }` le rattache à un groupe de nœuds de son organisation (`nodeGroup.read`).
14
15
  * @export
@@ -52,7 +53,7 @@ export interface SetAgentExecutionRequestUio {
52
53
  */
53
54
  runtime?: SetAgentExecutionRequestUioRuntimeEnum;
54
55
  /**
55
- *
56
+ * Sans `git`, le dossier du nœud ; ignoré avec `git`.
56
57
  * @type {string}
57
58
  * @memberof SetAgentExecutionRequestUio
58
59
  */
@@ -63,6 +64,12 @@ export interface SetAgentExecutionRequestUio {
63
64
  * @memberof SetAgentExecutionRequestUio
64
65
  */
65
66
  autoResume?: boolean;
67
+ /**
68
+ * Les dépôts Git de l'agent, clonés par le nœud (nœuds v3) ; remplace `workspaceAlias`.
69
+ * @type {NodeAgentGitConfigUio}
70
+ * @memberof SetAgentExecutionRequestUio
71
+ */
72
+ git?: NodeAgentGitConfigUio | null;
66
73
  }
67
74
  /**
68
75
  * @export
@@ -19,6 +19,7 @@ exports.SetAgentExecutionRequestUioFromJSON = SetAgentExecutionRequestUioFromJSO
19
19
  exports.SetAgentExecutionRequestUioFromJSONTyped = SetAgentExecutionRequestUioFromJSONTyped;
20
20
  exports.SetAgentExecutionRequestUioToJSON = SetAgentExecutionRequestUioToJSON;
21
21
  exports.SetAgentExecutionRequestUioToJSONTyped = SetAgentExecutionRequestUioToJSONTyped;
22
+ const NodeAgentGitConfigUio_1 = require("./NodeAgentGitConfigUio");
22
23
  /**
23
24
  * @export
24
25
  */
@@ -59,6 +60,7 @@ function SetAgentExecutionRequestUioFromJSONTyped(json, ignoreDiscriminator) {
59
60
  'runtime': json['runtime'] == null ? undefined : json['runtime'],
60
61
  'workspaceAlias': json['workspaceAlias'] == null ? undefined : json['workspaceAlias'],
61
62
  'autoResume': json['autoResume'] == null ? undefined : json['autoResume'],
63
+ 'git': json['git'] == null ? undefined : (0, NodeAgentGitConfigUio_1.NodeAgentGitConfigUioFromJSON)(json['git']),
62
64
  };
63
65
  }
64
66
  function SetAgentExecutionRequestUioToJSON(json) {
@@ -77,5 +79,6 @@ function SetAgentExecutionRequestUioToJSONTyped(value, ignoreDiscriminator = fal
77
79
  'runtime': value['runtime'],
78
80
  'workspaceAlias': value['workspaceAlias'],
79
81
  'autoResume': value['autoResume'],
82
+ 'git': (0, NodeAgentGitConfigUio_1.NodeAgentGitConfigUioToJSON)(value['git']),
80
83
  };
81
84
  }
@@ -82,6 +82,8 @@ export * from './AgentSandboxConfigurationUio';
82
82
  export * from './AgentSandboxNetworkConfigurationUio';
83
83
  export * from './AgentSubscriptionTextInteractionsUio';
84
84
  export * from './AgentSubscriptionUio';
85
+ export * from './AgentSubtaskConfigurationUio';
86
+ export * from './AgentSubtaskModelUio';
85
87
  export * from './AgentTicketActivityUio';
86
88
  export * from './AgentTicketCreationUio';
87
89
  export * from './AgentTokenBreakdownUio';
@@ -371,6 +373,19 @@ export * from './FlowOptionsUio';
371
373
  export * from './FlowUio';
372
374
  export * from './GetJwks200ResponseUio';
373
375
  export * from './GetUploadLimits200ResponseUio';
376
+ export * from './GitBotConnectionCreateUio';
377
+ export * from './GitConnectionKindUio';
378
+ export * from './GitConnectionUio';
379
+ export * from './GitGithubAppConnectionCreateUio';
380
+ export * from './GitOAuthAppCreateUio';
381
+ export * from './GitOAuthAppUio';
382
+ export * from './GitOAuthAppUpdateUio';
383
+ export * from './GitOAuthAuthorizeRequestUio';
384
+ export * from './GitOAuthAuthorizeResponseUio';
385
+ export * from './GitOAuthCompleteRequestUio';
386
+ export * from './GitOAuthCompleteResponseUio';
387
+ export * from './GitOAuthConfigUio';
388
+ export * from './GitProviderUio';
374
389
  export * from './GitlabAccessLevelUio';
375
390
  export * from './GitlabBotAccountCreateUio';
376
391
  export * from './GitlabBotAccountSummaryUio';
@@ -515,7 +530,11 @@ export * from './ModelUserAccessUio';
515
530
  export * from './MoveTicketsRequestUio';
516
531
  export * from './MoveTicketsResultUio';
517
532
  export * from './MovedTicketUio';
533
+ export * from './NodeAgentGitConfigAuthorUio';
534
+ export * from './NodeAgentGitConfigUio';
518
535
  export * from './NodeAssociationPolicyUio';
536
+ export * from './NodeGitRepositoryConnectionUio';
537
+ export * from './NodeGitRepositoryUio';
519
538
  export * from './NodeGroupAgentUio';
520
539
  export * from './NodeGroupBulkIdsUio';
521
540
  export * from './NodeGroupBulkResultResultsInnerUio';
@@ -100,6 +100,8 @@ __exportStar(require("./AgentSandboxConfigurationUio"), exports);
100
100
  __exportStar(require("./AgentSandboxNetworkConfigurationUio"), exports);
101
101
  __exportStar(require("./AgentSubscriptionTextInteractionsUio"), exports);
102
102
  __exportStar(require("./AgentSubscriptionUio"), exports);
103
+ __exportStar(require("./AgentSubtaskConfigurationUio"), exports);
104
+ __exportStar(require("./AgentSubtaskModelUio"), exports);
103
105
  __exportStar(require("./AgentTicketActivityUio"), exports);
104
106
  __exportStar(require("./AgentTicketCreationUio"), exports);
105
107
  __exportStar(require("./AgentTokenBreakdownUio"), exports);
@@ -389,6 +391,19 @@ __exportStar(require("./FlowOptionsUio"), exports);
389
391
  __exportStar(require("./FlowUio"), exports);
390
392
  __exportStar(require("./GetJwks200ResponseUio"), exports);
391
393
  __exportStar(require("./GetUploadLimits200ResponseUio"), exports);
394
+ __exportStar(require("./GitBotConnectionCreateUio"), exports);
395
+ __exportStar(require("./GitConnectionKindUio"), exports);
396
+ __exportStar(require("./GitConnectionUio"), exports);
397
+ __exportStar(require("./GitGithubAppConnectionCreateUio"), exports);
398
+ __exportStar(require("./GitOAuthAppCreateUio"), exports);
399
+ __exportStar(require("./GitOAuthAppUio"), exports);
400
+ __exportStar(require("./GitOAuthAppUpdateUio"), exports);
401
+ __exportStar(require("./GitOAuthAuthorizeRequestUio"), exports);
402
+ __exportStar(require("./GitOAuthAuthorizeResponseUio"), exports);
403
+ __exportStar(require("./GitOAuthCompleteRequestUio"), exports);
404
+ __exportStar(require("./GitOAuthCompleteResponseUio"), exports);
405
+ __exportStar(require("./GitOAuthConfigUio"), exports);
406
+ __exportStar(require("./GitProviderUio"), exports);
392
407
  __exportStar(require("./GitlabAccessLevelUio"), exports);
393
408
  __exportStar(require("./GitlabBotAccountCreateUio"), exports);
394
409
  __exportStar(require("./GitlabBotAccountSummaryUio"), exports);
@@ -533,7 +548,11 @@ __exportStar(require("./ModelUserAccessUio"), exports);
533
548
  __exportStar(require("./MoveTicketsRequestUio"), exports);
534
549
  __exportStar(require("./MoveTicketsResultUio"), exports);
535
550
  __exportStar(require("./MovedTicketUio"), exports);
551
+ __exportStar(require("./NodeAgentGitConfigAuthorUio"), exports);
552
+ __exportStar(require("./NodeAgentGitConfigUio"), exports);
536
553
  __exportStar(require("./NodeAssociationPolicyUio"), exports);
554
+ __exportStar(require("./NodeGitRepositoryConnectionUio"), exports);
555
+ __exportStar(require("./NodeGitRepositoryUio"), exports);
537
556
  __exportStar(require("./NodeGroupAgentUio"), exports);
538
557
  __exportStar(require("./NodeGroupBulkIdsUio"), exports);
539
558
  __exportStar(require("./NodeGroupBulkResultResultsInnerUio"), exports);