@breign/client 1.0.177 → 1.0.179

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 (43) hide show
  1. package/dist/apis/McpApi.d.ts +33 -0
  2. package/dist/apis/McpApi.js +88 -0
  3. package/dist/apis/ScheduledTasksApi.d.ts +78 -1
  4. package/dist/apis/ScheduledTasksApi.js +192 -0
  5. package/dist/models/AgentBuilderMcpConfigurationUio.d.ts +32 -0
  6. package/dist/models/AgentBuilderMcpConfigurationUio.js +48 -0
  7. package/dist/models/AgentPatchUio.d.ts +7 -0
  8. package/dist/models/AgentPatchUio.js +3 -0
  9. package/dist/models/AgentUio.d.ts +7 -0
  10. package/dist/models/AgentUio.js +3 -0
  11. package/dist/models/ScheduledTaskCreateUio.d.ts +1 -1
  12. package/dist/models/ScheduledTaskRunTriggerUio.d.ts +37 -12
  13. package/dist/models/ScheduledTaskRunTriggerUio.js +21 -34
  14. package/dist/models/ScheduledTaskUio.d.ts +8 -1
  15. package/dist/models/ScheduledTaskUio.js +3 -0
  16. package/dist/models/TaskTriggerUio.d.ts +8 -1
  17. package/dist/models/TaskTriggerUio.js +4 -1
  18. package/dist/models/ToolAllowedToolsRequestUio.d.ts +16 -0
  19. package/dist/models/ToolAllowedToolsRequestUio.js +10 -0
  20. package/dist/models/ToolAllowedToolsResponseUio.d.ts +16 -0
  21. package/dist/models/ToolAllowedToolsResponseUio.js +10 -0
  22. package/dist/models/ToolApprovalUio.d.ts +2 -1
  23. package/dist/models/ToolApprovalUio.js +2 -1
  24. package/dist/models/ToolCallResultRequestUio.d.ts +1 -1
  25. package/dist/models/ToolCallUio.d.ts +1 -1
  26. package/dist/models/ToolSecureMcpUio.d.ts +16 -0
  27. package/dist/models/ToolSecureMcpUio.js +10 -0
  28. package/dist/models/WebhookEndpointUio.d.ts +82 -0
  29. package/dist/models/WebhookEndpointUio.js +84 -0
  30. package/dist/models/WebhookEndpointUpdateUio.d.ts +46 -0
  31. package/dist/models/WebhookEndpointUpdateUio.js +58 -0
  32. package/dist/models/WebhookEventListUio.d.ts +33 -0
  33. package/dist/models/WebhookEventListUio.js +51 -0
  34. package/dist/models/WebhookEventUio.d.ts +87 -0
  35. package/dist/models/WebhookEventUio.js +87 -0
  36. package/dist/models/WebhookTestRequestUio.d.ts +38 -0
  37. package/dist/models/WebhookTestRequestUio.js +50 -0
  38. package/dist/models/WebhookTestResponseUio.d.ts +32 -0
  39. package/dist/models/WebhookTestResponseUio.js +50 -0
  40. package/dist/models/index.d.ts +7 -0
  41. package/dist/models/index.js +7 -0
  42. package/dist/openapi.json +610 -11
  43. package/package.json +1 -1
@@ -26,6 +26,7 @@ const AgentSandboxConfigurationUio_1 = require("./AgentSandboxConfigurationUio")
26
26
  const AgentMcpExposureConfigurationUio_1 = require("./AgentMcpExposureConfigurationUio");
27
27
  const AgentSubscriptionUio_1 = require("./AgentSubscriptionUio");
28
28
  const AgentCodeModeConfigurationUio_1 = require("./AgentCodeModeConfigurationUio");
29
+ const AgentBuilderMcpConfigurationUio_1 = require("./AgentBuilderMcpConfigurationUio");
29
30
  const SpeechToTextConfigUio_1 = require("./SpeechToTextConfigUio");
30
31
  const AgentMemoryConfigurationUio_1 = require("./AgentMemoryConfigurationUio");
31
32
  const AgentPatchEngineUio_1 = require("./AgentPatchEngineUio");
@@ -74,6 +75,7 @@ function AgentPatchUioFromJSONTyped(json, ignoreDiscriminator) {
74
75
  'computerUseConfiguration': json['computerUseConfiguration'] == null ? undefined : (0, AgentComputerUseConfigurationUio_1.AgentComputerUseConfigurationUioFromJSON)(json['computerUseConfiguration']),
75
76
  'agentCallConfiguration': json['agentCallConfiguration'] == null ? undefined : (0, AgentCallConfigurationUio_1.AgentCallConfigurationUioFromJSON)(json['agentCallConfiguration']),
76
77
  'mcpExposureConfiguration': json['mcpExposureConfiguration'] == null ? undefined : (0, AgentMcpExposureConfigurationUio_1.AgentMcpExposureConfigurationUioFromJSON)(json['mcpExposureConfiguration']),
78
+ 'builderMcpConfiguration': json['builderMcpConfiguration'] == null ? undefined : (0, AgentBuilderMcpConfigurationUio_1.AgentBuilderMcpConfigurationUioFromJSON)(json['builderMcpConfiguration']),
77
79
  'humanEscalationConfiguration': json['humanEscalationConfiguration'] == null ? undefined : (0, AgentHumanEscalationConfigurationUio_1.AgentHumanEscalationConfigurationUioFromJSON)(json['humanEscalationConfiguration']),
78
80
  'codeModeConfiguration': json['codeModeConfiguration'] == null ? undefined : (0, AgentCodeModeConfigurationUio_1.AgentCodeModeConfigurationUioFromJSON)(json['codeModeConfiguration']),
79
81
  };
@@ -114,6 +116,7 @@ function AgentPatchUioToJSONTyped(value, ignoreDiscriminator = false) {
114
116
  'computerUseConfiguration': (0, AgentComputerUseConfigurationUio_1.AgentComputerUseConfigurationUioToJSON)(value['computerUseConfiguration']),
115
117
  'agentCallConfiguration': (0, AgentCallConfigurationUio_1.AgentCallConfigurationUioToJSON)(value['agentCallConfiguration']),
116
118
  'mcpExposureConfiguration': (0, AgentMcpExposureConfigurationUio_1.AgentMcpExposureConfigurationUioToJSON)(value['mcpExposureConfiguration']),
119
+ 'builderMcpConfiguration': (0, AgentBuilderMcpConfigurationUio_1.AgentBuilderMcpConfigurationUioToJSON)(value['builderMcpConfiguration']),
117
120
  'humanEscalationConfiguration': (0, AgentHumanEscalationConfigurationUio_1.AgentHumanEscalationConfigurationUioToJSON)(value['humanEscalationConfiguration']),
118
121
  'codeModeConfiguration': (0, AgentCodeModeConfigurationUio_1.AgentCodeModeConfigurationUioToJSON)(value['codeModeConfiguration']),
119
122
  };
@@ -21,6 +21,7 @@ import type { AgentSubscriptionUio } from './AgentSubscriptionUio';
21
21
  import type { AgentToolUio } from './AgentToolUio';
22
22
  import type { AgentCodeModeConfigurationUio } from './AgentCodeModeConfigurationUio';
23
23
  import type { AgentCreatorUio } from './AgentCreatorUio';
24
+ import type { AgentBuilderMcpConfigurationUio } from './AgentBuilderMcpConfigurationUio';
24
25
  import type { SpeechToTextConfigUio } from './SpeechToTextConfigUio';
25
26
  import type { AgentMemoryConfigurationUio } from './AgentMemoryConfigurationUio';
26
27
  import type { AgentTypeUio } from './AgentTypeUio';
@@ -222,6 +223,12 @@ export interface AgentUio {
222
223
  * @memberof AgentUio
223
224
  */
224
225
  mcpExposureConfiguration?: AgentMcpExposureConfigurationUio | null;
226
+ /**
227
+ *
228
+ * @type {AgentBuilderMcpConfigurationUio}
229
+ * @memberof AgentUio
230
+ */
231
+ builderMcpConfiguration?: AgentBuilderMcpConfigurationUio | null;
225
232
  /**
226
233
  *
227
234
  * @type {AgentHumanEscalationConfigurationUio}
@@ -31,6 +31,7 @@ const AgentSubscriptionUio_1 = require("./AgentSubscriptionUio");
31
31
  const AgentToolUio_1 = require("./AgentToolUio");
32
32
  const AgentCodeModeConfigurationUio_1 = require("./AgentCodeModeConfigurationUio");
33
33
  const AgentCreatorUio_1 = require("./AgentCreatorUio");
34
+ const AgentBuilderMcpConfigurationUio_1 = require("./AgentBuilderMcpConfigurationUio");
34
35
  const SpeechToTextConfigUio_1 = require("./SpeechToTextConfigUio");
35
36
  const AgentMemoryConfigurationUio_1 = require("./AgentMemoryConfigurationUio");
36
37
  const AgentTypeUio_1 = require("./AgentTypeUio");
@@ -107,6 +108,7 @@ function AgentUioFromJSONTyped(json, ignoreDiscriminator) {
107
108
  'computerUseConfiguration': json['computerUseConfiguration'] == null ? undefined : (0, AgentComputerUseConfigurationUio_1.AgentComputerUseConfigurationUioFromJSON)(json['computerUseConfiguration']),
108
109
  'agentCallConfiguration': json['agentCallConfiguration'] == null ? undefined : (0, AgentCallConfigurationUio_1.AgentCallConfigurationUioFromJSON)(json['agentCallConfiguration']),
109
110
  'mcpExposureConfiguration': json['mcpExposureConfiguration'] == null ? undefined : (0, AgentMcpExposureConfigurationUio_1.AgentMcpExposureConfigurationUioFromJSON)(json['mcpExposureConfiguration']),
111
+ 'builderMcpConfiguration': json['builderMcpConfiguration'] == null ? undefined : (0, AgentBuilderMcpConfigurationUio_1.AgentBuilderMcpConfigurationUioFromJSON)(json['builderMcpConfiguration']),
110
112
  'humanEscalationConfiguration': json['humanEscalationConfiguration'] == null ? undefined : (0, AgentHumanEscalationConfigurationUio_1.AgentHumanEscalationConfigurationUioFromJSON)(json['humanEscalationConfiguration']),
111
113
  'codeModeConfiguration': json['codeModeConfiguration'] == null ? undefined : (0, AgentCodeModeConfigurationUio_1.AgentCodeModeConfigurationUioFromJSON)(json['codeModeConfiguration']),
112
114
  'creator': json['creator'] == null ? undefined : (0, AgentCreatorUio_1.AgentCreatorUioFromJSON)(json['creator']),
@@ -155,6 +157,7 @@ function AgentUioToJSONTyped(value, ignoreDiscriminator = false) {
155
157
  'computerUseConfiguration': (0, AgentComputerUseConfigurationUio_1.AgentComputerUseConfigurationUioToJSON)(value['computerUseConfiguration']),
156
158
  'agentCallConfiguration': (0, AgentCallConfigurationUio_1.AgentCallConfigurationUioToJSON)(value['agentCallConfiguration']),
157
159
  'mcpExposureConfiguration': (0, AgentMcpExposureConfigurationUio_1.AgentMcpExposureConfigurationUioToJSON)(value['mcpExposureConfiguration']),
160
+ 'builderMcpConfiguration': (0, AgentBuilderMcpConfigurationUio_1.AgentBuilderMcpConfigurationUioToJSON)(value['builderMcpConfiguration']),
158
161
  'humanEscalationConfiguration': (0, AgentHumanEscalationConfigurationUio_1.AgentHumanEscalationConfigurationUioToJSON)(value['humanEscalationConfiguration']),
159
162
  'codeModeConfiguration': (0, AgentCodeModeConfigurationUio_1.AgentCodeModeConfigurationUioToJSON)(value['codeModeConfiguration']),
160
163
  'creator': (0, AgentCreatorUio_1.AgentCreatorUioToJSON)(value['creator']),
@@ -12,7 +12,7 @@
12
12
  import type { TaskScheduleUio } from './TaskScheduleUio';
13
13
  import type { TaskTriggerUio } from './TaskTriggerUio';
14
14
  /**
15
- * `schedule` is required unless `trigger.type` is `event` (then `mode` must be `recurring`).
15
+ * `schedule` is required unless `trigger.type` is `event` or `webhook` (then `mode` must be `recurring`). A `webhook` trigger creates the webhook, returned in `webhook` with its secret (shown once).
16
16
  * @export
17
17
  * @interface ScheduledTaskCreateUio
18
18
  */
@@ -13,7 +13,7 @@ import type { ExternalEventRoutingUio } from './ExternalEventRoutingUio';
13
13
  import type { ScheduledTaskRunTriggerAuthorUio } from './ScheduledTaskRunTriggerAuthorUio';
14
14
  import type { ExternalEventStatusUio } from './ExternalEventStatusUio';
15
15
  /**
16
- * The GitLab mention that triggered a run.
16
+ * The external event that triggered a run: a GitLab mention (`source: gitlab`, GitLab fields set) or a webhook call (`source: webhook`: `thread`, `contentType`, `payload`).
17
17
  * @export
18
18
  * @interface ScheduledTaskRunTriggerUio
19
19
  */
@@ -30,6 +30,30 @@ export interface ScheduledTaskRunTriggerUio {
30
30
  * @memberof ScheduledTaskRunTriggerUio
31
31
  */
32
32
  source: ScheduledTaskRunTriggerUioSourceEnum;
33
+ /**
34
+ * webhook only — the `X-Breign-Thread` of the call.
35
+ * @type {string}
36
+ * @memberof ScheduledTaskRunTriggerUio
37
+ */
38
+ thread?: string | null;
39
+ /**
40
+ * webhook only.
41
+ * @type {string}
42
+ * @memberof ScheduledTaskRunTriggerUio
43
+ */
44
+ contentType?: string;
45
+ /**
46
+ * webhook only — the body received (untrusted caller data), or its start as text.
47
+ * @type {any}
48
+ * @memberof ScheduledTaskRunTriggerUio
49
+ */
50
+ payload?: any | null;
51
+ /**
52
+ * webhook only.
53
+ * @type {boolean}
54
+ * @memberof ScheduledTaskRunTriggerUio
55
+ */
56
+ payloadTruncated?: boolean;
33
57
  /**
34
58
  *
35
59
  * @type {ExternalEventStatusUio}
@@ -47,67 +71,67 @@ export interface ScheduledTaskRunTriggerUio {
47
71
  * @type {string}
48
72
  * @memberof ScheduledTaskRunTriggerUio
49
73
  */
50
- projectPath: string;
74
+ projectPath?: string;
51
75
  /**
52
76
  *
53
77
  * @type {string}
54
78
  * @memberof ScheduledTaskRunTriggerUio
55
79
  */
56
- targetType: ScheduledTaskRunTriggerUioTargetTypeEnum;
80
+ targetType?: ScheduledTaskRunTriggerUioTargetTypeEnum;
57
81
  /**
58
82
  *
59
83
  * @type {number}
60
84
  * @memberof ScheduledTaskRunTriggerUio
61
85
  */
62
- targetIid: number | null;
86
+ targetIid?: number | null;
63
87
  /**
64
88
  *
65
89
  * @type {string}
66
90
  * @memberof ScheduledTaskRunTriggerUio
67
91
  */
68
- targetTitle: string | null;
92
+ targetTitle?: string | null;
69
93
  /**
70
94
  *
71
95
  * @type {string}
72
96
  * @memberof ScheduledTaskRunTriggerUio
73
97
  */
74
- targetUrl: string | null;
98
+ targetUrl?: string | null;
75
99
  /**
76
100
  *
77
101
  * @type {string}
78
102
  * @memberof ScheduledTaskRunTriggerUio
79
103
  */
80
- noteUrl: string | null;
104
+ noteUrl?: string | null;
81
105
  /**
82
106
  *
83
107
  * @type {ScheduledTaskRunTriggerAuthorUio}
84
108
  * @memberof ScheduledTaskRunTriggerUio
85
109
  */
86
- author: ScheduledTaskRunTriggerAuthorUio;
110
+ author?: ScheduledTaskRunTriggerAuthorUio;
87
111
  /**
88
112
  * The comment text (untrusted user content).
89
113
  * @type {string}
90
114
  * @memberof ScheduledTaskRunTriggerUio
91
115
  */
92
- body: string;
116
+ body?: string;
93
117
  /**
94
118
  *
95
119
  * @type {string}
96
120
  * @memberof ScheduledTaskRunTriggerUio
97
121
  */
98
- botUsername: string | null;
122
+ botUsername?: string | null;
99
123
  /**
100
124
  *
101
125
  * @type {ExternalEventRoutingUio}
102
126
  * @memberof ScheduledTaskRunTriggerUio
103
127
  */
104
- routing: ExternalEventRoutingUio | null;
128
+ routing?: ExternalEventRoutingUio | null;
105
129
  /**
106
130
  *
107
131
  * @type {string}
108
132
  * @memberof ScheduledTaskRunTriggerUio
109
133
  */
110
- replyUrl: string | null;
134
+ replyUrl?: string | null;
111
135
  /**
112
136
  *
113
137
  * @type {string}
@@ -120,6 +144,7 @@ export interface ScheduledTaskRunTriggerUio {
120
144
  */
121
145
  export declare const ScheduledTaskRunTriggerUioSourceEnum: {
122
146
  readonly Gitlab: "gitlab";
147
+ readonly Webhook: "webhook";
123
148
  };
124
149
  export type ScheduledTaskRunTriggerUioSourceEnum = typeof ScheduledTaskRunTriggerUioSourceEnum[keyof typeof ScheduledTaskRunTriggerUioSourceEnum];
125
150
  /**
@@ -26,7 +26,8 @@ const ExternalEventStatusUio_1 = require("./ExternalEventStatusUio");
26
26
  * @export
27
27
  */
28
28
  exports.ScheduledTaskRunTriggerUioSourceEnum = {
29
- Gitlab: 'gitlab'
29
+ Gitlab: 'gitlab',
30
+ Webhook: 'webhook'
30
31
  };
31
32
  /**
32
33
  * @export
@@ -49,28 +50,6 @@ function instanceOfScheduledTaskRunTriggerUio(value) {
49
50
  return false;
50
51
  if (!('receivedAt' in value) || value['receivedAt'] === undefined)
51
52
  return false;
52
- if (!('projectPath' in value) || value['projectPath'] === undefined)
53
- return false;
54
- if (!('targetType' in value) || value['targetType'] === undefined)
55
- return false;
56
- if (!('targetIid' in value) || value['targetIid'] === undefined)
57
- return false;
58
- if (!('targetTitle' in value) || value['targetTitle'] === undefined)
59
- return false;
60
- if (!('targetUrl' in value) || value['targetUrl'] === undefined)
61
- return false;
62
- if (!('noteUrl' in value) || value['noteUrl'] === undefined)
63
- return false;
64
- if (!('author' in value) || value['author'] === undefined)
65
- return false;
66
- if (!('body' in value) || value['body'] === undefined)
67
- return false;
68
- if (!('botUsername' in value) || value['botUsername'] === undefined)
69
- return false;
70
- if (!('routing' in value) || value['routing'] === undefined)
71
- return false;
72
- if (!('replyUrl' in value) || value['replyUrl'] === undefined)
73
- return false;
74
53
  if (!('conversationId' in value) || value['conversationId'] === undefined)
75
54
  return false;
76
55
  return true;
@@ -85,19 +64,23 @@ function ScheduledTaskRunTriggerUioFromJSONTyped(json, ignoreDiscriminator) {
85
64
  return {
86
65
  'eventId': json['eventId'],
87
66
  'source': json['source'],
67
+ 'thread': json['thread'] == null ? undefined : json['thread'],
68
+ 'contentType': json['contentType'] == null ? undefined : json['contentType'],
69
+ 'payload': json['payload'] == null ? undefined : json['payload'],
70
+ 'payloadTruncated': json['payloadTruncated'] == null ? undefined : json['payloadTruncated'],
88
71
  'status': (0, ExternalEventStatusUio_1.ExternalEventStatusUioFromJSON)(json['status']),
89
72
  'receivedAt': (new Date(json['receivedAt'])),
90
- 'projectPath': json['projectPath'],
91
- 'targetType': json['targetType'],
92
- 'targetIid': json['targetIid'],
93
- 'targetTitle': json['targetTitle'],
94
- 'targetUrl': json['targetUrl'],
95
- 'noteUrl': json['noteUrl'],
96
- 'author': (0, ScheduledTaskRunTriggerAuthorUio_1.ScheduledTaskRunTriggerAuthorUioFromJSON)(json['author']),
97
- 'body': json['body'],
98
- 'botUsername': json['botUsername'],
99
- 'routing': (0, ExternalEventRoutingUio_1.ExternalEventRoutingUioFromJSON)(json['routing']),
100
- 'replyUrl': json['replyUrl'],
73
+ 'projectPath': json['projectPath'] == null ? undefined : json['projectPath'],
74
+ 'targetType': json['targetType'] == null ? undefined : json['targetType'],
75
+ 'targetIid': json['targetIid'] == null ? undefined : json['targetIid'],
76
+ 'targetTitle': json['targetTitle'] == null ? undefined : json['targetTitle'],
77
+ 'targetUrl': json['targetUrl'] == null ? undefined : json['targetUrl'],
78
+ 'noteUrl': json['noteUrl'] == null ? undefined : json['noteUrl'],
79
+ 'author': json['author'] == null ? undefined : (0, ScheduledTaskRunTriggerAuthorUio_1.ScheduledTaskRunTriggerAuthorUioFromJSON)(json['author']),
80
+ 'body': json['body'] == null ? undefined : json['body'],
81
+ 'botUsername': json['botUsername'] == null ? undefined : json['botUsername'],
82
+ 'routing': json['routing'] == null ? undefined : (0, ExternalEventRoutingUio_1.ExternalEventRoutingUioFromJSON)(json['routing']),
83
+ 'replyUrl': json['replyUrl'] == null ? undefined : json['replyUrl'],
101
84
  'conversationId': json['conversationId'],
102
85
  };
103
86
  }
@@ -111,6 +94,10 @@ function ScheduledTaskRunTriggerUioToJSONTyped(value, ignoreDiscriminator = fals
111
94
  return {
112
95
  'eventId': value['eventId'],
113
96
  'source': value['source'],
97
+ 'thread': value['thread'],
98
+ 'contentType': value['contentType'],
99
+ 'payload': value['payload'],
100
+ 'payloadTruncated': value['payloadTruncated'],
114
101
  'status': (0, ExternalEventStatusUio_1.ExternalEventStatusUioToJSON)(value['status']),
115
102
  'receivedAt': ((value['receivedAt']).toISOString()),
116
103
  'projectPath': value['projectPath'],
@@ -10,6 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import type { TaskScheduleUio } from './TaskScheduleUio';
13
+ import type { WebhookEndpointUio } from './WebhookEndpointUio';
13
14
  import type { TaskTriggerUio } from './TaskTriggerUio';
14
15
  /**
15
16
  *
@@ -60,7 +61,7 @@ export interface ScheduledTaskUio {
60
61
  */
61
62
  status: ScheduledTaskUioStatusEnum;
62
63
  /**
63
- * null for an automation triggered by an event.
64
+ * null for an automation triggered by an event or a webhook.
64
65
  * @type {TaskScheduleUio}
65
66
  * @memberof ScheduledTaskUio
66
67
  */
@@ -71,6 +72,12 @@ export interface ScheduledTaskUio {
71
72
  * @memberof ScheduledTaskUio
72
73
  */
73
74
  trigger?: TaskTriggerUio;
75
+ /**
76
+ *
77
+ * @type {WebhookEndpointUio}
78
+ * @memberof ScheduledTaskUio
79
+ */
80
+ webhook?: WebhookEndpointUio;
74
81
  /**
75
82
  *
76
83
  * @type {string}
@@ -20,6 +20,7 @@ exports.ScheduledTaskUioFromJSONTyped = ScheduledTaskUioFromJSONTyped;
20
20
  exports.ScheduledTaskUioToJSON = ScheduledTaskUioToJSON;
21
21
  exports.ScheduledTaskUioToJSONTyped = ScheduledTaskUioToJSONTyped;
22
22
  const TaskScheduleUio_1 = require("./TaskScheduleUio");
23
+ const WebhookEndpointUio_1 = require("./WebhookEndpointUio");
23
24
  const TaskTriggerUio_1 = require("./TaskTriggerUio");
24
25
  /**
25
26
  * @export
@@ -85,6 +86,7 @@ function ScheduledTaskUioFromJSONTyped(json, ignoreDiscriminator) {
85
86
  'status': json['status'],
86
87
  'schedule': (0, TaskScheduleUio_1.TaskScheduleUioFromJSON)(json['schedule']),
87
88
  'trigger': json['trigger'] == null ? undefined : (0, TaskTriggerUio_1.TaskTriggerUioFromJSON)(json['trigger']),
89
+ 'webhook': json['webhook'] == null ? undefined : (0, WebhookEndpointUio_1.WebhookEndpointUioFromJSON)(json['webhook']),
88
90
  'cronExpression': json['cronExpression'],
89
91
  'timezone': json['timezone'],
90
92
  'lang': json['lang'],
@@ -113,6 +115,7 @@ function ScheduledTaskUioToJSONTyped(value, ignoreDiscriminator = false) {
113
115
  'status': value['status'],
114
116
  'schedule': (0, TaskScheduleUio_1.TaskScheduleUioToJSON)(value['schedule']),
115
117
  'trigger': (0, TaskTriggerUio_1.TaskTriggerUioToJSON)(value['trigger']),
118
+ 'webhook': (0, WebhookEndpointUio_1.WebhookEndpointUioToJSON)(value['webhook']),
116
119
  'cronExpression': value['cronExpression'],
117
120
  'timezone': value['timezone'],
118
121
  'lang': value['lang'],
@@ -11,7 +11,7 @@
11
11
  */
12
12
  import type { TaskTriggerReplyUio } from './TaskTriggerReplyUio';
13
13
  /**
14
- * What starts the automation. `schedule` (default): its schedule. `event`: a mention of one of the bot accounts in GitLab, in the given kinds of objects and projects (empty: all projects; `groupe/projet` or `groupe/*`).
14
+ * What starts the automation. `schedule` (default): its schedule. `event`: a mention of one of the bot accounts in GitLab, in the given kinds of objects and projects (empty: all projects; `groupe/projet` or `groupe/*`). `webhook`: a call to its webhook (see `ScheduledTask.webhook`); the result goes to `callbackUrl`.
15
15
  * @export
16
16
  * @interface TaskTriggerUio
17
17
  */
@@ -22,6 +22,12 @@ export interface TaskTriggerUio {
22
22
  * @memberof TaskTriggerUio
23
23
  */
24
24
  type: TaskTriggerUioTypeEnum;
25
+ /**
26
+ * `webhook` only, on create or update: the member the conversations run as (default: the caller; another member requires an organization admin). Not stored on the task.
27
+ * @type {string}
28
+ * @memberof TaskTriggerUio
29
+ */
30
+ runAsUserId?: string;
25
31
  /**
26
32
  *
27
33
  * @type {string}
@@ -59,6 +65,7 @@ export interface TaskTriggerUio {
59
65
  export declare const TaskTriggerUioTypeEnum: {
60
66
  readonly Schedule: "schedule";
61
67
  readonly Event: "event";
68
+ readonly Webhook: "webhook";
62
69
  };
63
70
  export type TaskTriggerUioTypeEnum = typeof TaskTriggerUioTypeEnum[keyof typeof TaskTriggerUioTypeEnum];
64
71
  /**
@@ -25,7 +25,8 @@ const TaskTriggerReplyUio_1 = require("./TaskTriggerReplyUio");
25
25
  */
26
26
  exports.TaskTriggerUioTypeEnum = {
27
27
  Schedule: 'schedule',
28
- Event: 'event'
28
+ Event: 'event',
29
+ Webhook: 'webhook'
29
30
  };
30
31
  /**
31
32
  * @export
@@ -59,6 +60,7 @@ function TaskTriggerUioFromJSONTyped(json, ignoreDiscriminator) {
59
60
  }
60
61
  return {
61
62
  'type': json['type'],
63
+ 'runAsUserId': json['runAsUserId'] == null ? undefined : json['runAsUserId'],
62
64
  'source': json['source'] == null ? undefined : json['source'],
63
65
  'botAccountIds': json['botAccountIds'] == null ? undefined : json['botAccountIds'],
64
66
  'kinds': json['kinds'] == null ? undefined : json['kinds'],
@@ -75,6 +77,7 @@ function TaskTriggerUioToJSONTyped(value, ignoreDiscriminator = false) {
75
77
  }
76
78
  return {
77
79
  'type': value['type'],
80
+ 'runAsUserId': value['runAsUserId'],
78
81
  'source': value['source'],
79
82
  'botAccountIds': value['botAccountIds'],
80
83
  'kinds': value['kinds'],
@@ -21,7 +21,23 @@ export interface ToolAllowedToolsRequestUio {
21
21
  * @memberof ToolAllowedToolsRequestUio
22
22
  */
23
23
  allowedTools: Set<string>;
24
+ /**
25
+ * Quand un appel de l'outil demande l'approbation de l'utilisateur, par nom d'outil. Absent : automatique — demandée sauf si le serveur déclare l'outil en lecture seule (readOnlyHint). always : toujours demander, et refuser l'appel quand personne ne peut répondre (tâche planifiée, widget, appel entre agents). never : ne jamais demander.
26
+ * @type {{ [key: string]: string; }}
27
+ * @memberof ToolAllowedToolsRequestUio
28
+ */
29
+ approvalModes?: {
30
+ [key: string]: string;
31
+ };
24
32
  }
33
+ /**
34
+ * @export
35
+ */
36
+ export declare const ToolAllowedToolsRequestUioApprovalModesEnum: {
37
+ readonly Always: "always";
38
+ readonly Never: "never";
39
+ };
40
+ export type ToolAllowedToolsRequestUioApprovalModesEnum = typeof ToolAllowedToolsRequestUioApprovalModesEnum[keyof typeof ToolAllowedToolsRequestUioApprovalModesEnum];
25
41
  /**
26
42
  * Check if a given object implements the ToolAllowedToolsRequestUio interface.
27
43
  */
@@ -13,11 +13,19 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ToolAllowedToolsRequestUioApprovalModesEnum = void 0;
16
17
  exports.instanceOfToolAllowedToolsRequestUio = instanceOfToolAllowedToolsRequestUio;
17
18
  exports.ToolAllowedToolsRequestUioFromJSON = ToolAllowedToolsRequestUioFromJSON;
18
19
  exports.ToolAllowedToolsRequestUioFromJSONTyped = ToolAllowedToolsRequestUioFromJSONTyped;
19
20
  exports.ToolAllowedToolsRequestUioToJSON = ToolAllowedToolsRequestUioToJSON;
20
21
  exports.ToolAllowedToolsRequestUioToJSONTyped = ToolAllowedToolsRequestUioToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.ToolAllowedToolsRequestUioApprovalModesEnum = {
26
+ Always: 'always',
27
+ Never: 'never'
28
+ };
21
29
  /**
22
30
  * Check if a given object implements the ToolAllowedToolsRequestUio interface.
23
31
  */
@@ -35,6 +43,7 @@ function ToolAllowedToolsRequestUioFromJSONTyped(json, ignoreDiscriminator) {
35
43
  }
36
44
  return {
37
45
  'allowedTools': new Set(json['allowedTools']),
46
+ 'approvalModes': json['approvalModes'] == null ? undefined : json['approvalModes'],
38
47
  };
39
48
  }
40
49
  function ToolAllowedToolsRequestUioToJSON(json) {
@@ -46,5 +55,6 @@ function ToolAllowedToolsRequestUioToJSONTyped(value, ignoreDiscriminator = fals
46
55
  }
47
56
  return {
48
57
  'allowedTools': Array.from(value['allowedTools']),
58
+ 'approvalModes': value['approvalModes'],
49
59
  };
50
60
  }
@@ -21,7 +21,23 @@ export interface ToolAllowedToolsResponseUio {
21
21
  * @memberof ToolAllowedToolsResponseUio
22
22
  */
23
23
  allowedTools: Array<string>;
24
+ /**
25
+ * Quand un appel de l'outil demande l'approbation de l'utilisateur, par nom d'outil. Absent : automatique — demandée sauf si le serveur déclare l'outil en lecture seule (readOnlyHint). always : toujours demander, et refuser l'appel quand personne ne peut répondre (tâche planifiée, widget, appel entre agents). never : ne jamais demander.
26
+ * @type {{ [key: string]: string; }}
27
+ * @memberof ToolAllowedToolsResponseUio
28
+ */
29
+ approvalModes?: {
30
+ [key: string]: string;
31
+ };
24
32
  }
33
+ /**
34
+ * @export
35
+ */
36
+ export declare const ToolAllowedToolsResponseUioApprovalModesEnum: {
37
+ readonly Always: "always";
38
+ readonly Never: "never";
39
+ };
40
+ export type ToolAllowedToolsResponseUioApprovalModesEnum = typeof ToolAllowedToolsResponseUioApprovalModesEnum[keyof typeof ToolAllowedToolsResponseUioApprovalModesEnum];
25
41
  /**
26
42
  * Check if a given object implements the ToolAllowedToolsResponseUio interface.
27
43
  */
@@ -13,11 +13,19 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ToolAllowedToolsResponseUioApprovalModesEnum = void 0;
16
17
  exports.instanceOfToolAllowedToolsResponseUio = instanceOfToolAllowedToolsResponseUio;
17
18
  exports.ToolAllowedToolsResponseUioFromJSON = ToolAllowedToolsResponseUioFromJSON;
18
19
  exports.ToolAllowedToolsResponseUioFromJSONTyped = ToolAllowedToolsResponseUioFromJSONTyped;
19
20
  exports.ToolAllowedToolsResponseUioToJSON = ToolAllowedToolsResponseUioToJSON;
20
21
  exports.ToolAllowedToolsResponseUioToJSONTyped = ToolAllowedToolsResponseUioToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.ToolAllowedToolsResponseUioApprovalModesEnum = {
26
+ Always: 'always',
27
+ Never: 'never'
28
+ };
21
29
  /**
22
30
  * Check if a given object implements the ToolAllowedToolsResponseUio interface.
23
31
  */
@@ -35,6 +43,7 @@ function ToolAllowedToolsResponseUioFromJSONTyped(json, ignoreDiscriminator) {
35
43
  }
36
44
  return {
37
45
  'allowedTools': json['allowedTools'],
46
+ 'approvalModes': json['approvalModes'] == null ? undefined : json['approvalModes'],
38
47
  };
39
48
  }
40
49
  function ToolAllowedToolsResponseUioToJSON(json) {
@@ -46,5 +55,6 @@ function ToolAllowedToolsResponseUioToJSONTyped(value, ignoreDiscriminator = fal
46
55
  }
47
56
  return {
48
57
  'allowedTools': value['allowedTools'],
58
+ 'approvalModes': value['approvalModes'],
49
59
  };
50
60
  }
@@ -34,7 +34,7 @@ export interface ToolApprovalUio {
34
34
  */
35
35
  toolName: string;
36
36
  /**
37
- * Which family the approval belongs to. url is an address the agent sandbox may reach; urlPattern is a glob covering a whole site, subdomains included; command is one exact command line it may run.
37
+ * Which family the approval belongs to. url is an address the agent sandbox may reach; urlPattern is a glob covering a whole site, subdomains included; command is one exact command line it may run; mcpTool is an MCP tool that writes, as server/tool (for example builder/update_agent), whatever its arguments — stored under toolName mcp. An mcpTool approval is only ever born of a question the agent asked: it cannot be created or edited by hand.
38
38
  * @type {string}
39
39
  * @memberof ToolApprovalUio
40
40
  */
@@ -73,6 +73,7 @@ export declare const ToolApprovalUioResourceKindEnum: {
73
73
  readonly Url: "url";
74
74
  readonly Command: "command";
75
75
  readonly UrlPattern: "urlPattern";
76
+ readonly McpTool: "mcpTool";
76
77
  };
77
78
  export type ToolApprovalUioResourceKindEnum = typeof ToolApprovalUioResourceKindEnum[keyof typeof ToolApprovalUioResourceKindEnum];
78
79
  /**
@@ -32,7 +32,8 @@ exports.ToolApprovalUioScopeKindEnum = {
32
32
  exports.ToolApprovalUioResourceKindEnum = {
33
33
  Url: 'url',
34
34
  Command: 'command',
35
- UrlPattern: 'urlPattern'
35
+ UrlPattern: 'urlPattern',
36
+ McpTool: 'mcpTool'
36
37
  };
37
38
  /**
38
39
  * Check if a given object implements the ToolApprovalUio interface.
@@ -41,7 +41,7 @@ export interface ToolCallResultRequestUio {
41
41
  */
42
42
  error?: string;
43
43
  /**
44
- * Only read when resolving a bash_network_approval or bash_command_approval call with status completed: how far the approval reaches. once — the suspended reply and nothing after it, so the same request is asked about again next time — is the default, and nothing is stored. agentUser covers this agent, for this user, across all of their conversations, and is kept until revoked. Any other value is refused with a 400. Never widens what the agent is allowed to do: the server-side lock and the per-agent switch remain prerequisites. Only the user the question was asked of may answer it: an approval is a personal consent, so another caller — an admin included — gets a 403.
44
+ * Only read when resolving a bash_network_approval, bash_command_approval or mcp_tool_approval call with status completed: how far the approval reaches. once — the suspended reply and nothing after it, so the same request is asked about again next time — is the default, and nothing is stored. agentUser covers this agent, for this user, across all of their conversations, and is kept until revoked. Any other value is refused with a 400. Never widens what the agent is allowed to do: the server-side lock and the per-agent switch remain prerequisites. Only the user the question was asked of may answer it: an approval is a personal consent, so another caller — an admin included — gets a 403.
45
45
  * @type {string}
46
46
  * @memberof ToolCallResultRequestUio
47
47
  */
@@ -22,7 +22,7 @@ export interface ToolCallUio {
22
22
  */
23
23
  callId: string;
24
24
  /**
25
- * Name of the tool the model called. Three values are produced by the server today. take_screenshot asks the client to capture the screen. bash_network_approval is an agent sandbox asking permission to reach an address: arguments carries url (the full address, to be shown as-is), urlPrefix (what a yes actually grants), origin, host and method. bash_command_approval is an agent sandbox asking permission to run a command through one of its interpreters — python3 or js-exec: arguments carries command, which is both what has to be shown in full and exactly what a yes grants — nothing ran, so a refusal leaves the sandbox untouched. Calls named bash_python_approval, the name this last one carried while python was the only interpreter, may still be waiting in older conversations and resolve exactly the same way.
25
+ * Name of the tool the model called. Four values are produced by the server today. mcp_tool_approval asks permission to run an MCP tool: a write of the builder server, which creates and edits agents, or a tool of an MCP server configured in the organisation, by its approval mode (see Tool.mcp.approvalModes). arguments carries server (builder, or the id of the organisation's tool), serverName (the name to show), tool and arguments (the exact call the model wants to make), and — builder only — preview — what the call changes, for display only: tool, agentName, changes (field, before when something existed, after, with names instead of ids, unchanged fields left out) and warnings (deactivates, rewritesInstructions, changesEngine); null when it could not be built. Allow once covers exactly these arguments; agentUser covers the tool whatever its arguments. take_screenshot asks the client to capture the screen. bash_network_approval is an agent sandbox asking permission to reach an address: arguments carries url (the full address, to be shown as-is), urlPrefix (what a yes actually grants), origin, host and method. bash_command_approval is an agent sandbox asking permission to run a command through one of its interpreters — python3 or js-exec: arguments carries command, which is both what has to be shown in full and exactly what a yes grants — nothing ran, so a refusal leaves the sandbox untouched. Calls named bash_python_approval, the name this last one carried while python was the only interpreter, may still be waiting in older conversations and resolve exactly the same way.
26
26
  * @type {string}
27
27
  * @memberof ToolCallUio
28
28
  */
@@ -35,7 +35,23 @@ export interface ToolSecureMcpUio {
35
35
  * @memberof ToolSecureMcpUio
36
36
  */
37
37
  allowedTools?: Array<string>;
38
+ /**
39
+ * Quand un appel de l'outil demande l'approbation de l'utilisateur, par nom d'outil. Absent : automatique — demandée sauf si le serveur déclare l'outil en lecture seule (readOnlyHint). always : toujours demander, et refuser l'appel quand personne ne peut répondre (tâche planifiée, widget, appel entre agents). never : ne jamais demander.
40
+ * @type {{ [key: string]: string; }}
41
+ * @memberof ToolSecureMcpUio
42
+ */
43
+ approvalModes?: {
44
+ [key: string]: string;
45
+ };
38
46
  }
47
+ /**
48
+ * @export
49
+ */
50
+ export declare const ToolSecureMcpUioApprovalModesEnum: {
51
+ readonly Always: "always";
52
+ readonly Never: "never";
53
+ };
54
+ export type ToolSecureMcpUioApprovalModesEnum = typeof ToolSecureMcpUioApprovalModesEnum[keyof typeof ToolSecureMcpUioApprovalModesEnum];
39
55
  /**
40
56
  * Check if a given object implements the ToolSecureMcpUio interface.
41
57
  */
@@ -13,12 +13,20 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ToolSecureMcpUioApprovalModesEnum = void 0;
16
17
  exports.instanceOfToolSecureMcpUio = instanceOfToolSecureMcpUio;
17
18
  exports.ToolSecureMcpUioFromJSON = ToolSecureMcpUioFromJSON;
18
19
  exports.ToolSecureMcpUioFromJSONTyped = ToolSecureMcpUioFromJSONTyped;
19
20
  exports.ToolSecureMcpUioToJSON = ToolSecureMcpUioToJSON;
20
21
  exports.ToolSecureMcpUioToJSONTyped = ToolSecureMcpUioToJSONTyped;
21
22
  const ToolSecureMcpDefinitionUio_1 = require("./ToolSecureMcpDefinitionUio");
23
+ /**
24
+ * @export
25
+ */
26
+ exports.ToolSecureMcpUioApprovalModesEnum = {
27
+ Always: 'always',
28
+ Never: 'never'
29
+ };
22
30
  /**
23
31
  * Check if a given object implements the ToolSecureMcpUio interface.
24
32
  */
@@ -37,6 +45,7 @@ function ToolSecureMcpUioFromJSONTyped(json, ignoreDiscriminator) {
37
45
  'definition': json['definition'] == null ? undefined : (0, ToolSecureMcpDefinitionUio_1.ToolSecureMcpDefinitionUioFromJSON)(json['definition']),
38
46
  'introspection': json['introspection'] == null ? undefined : json['introspection'],
39
47
  'allowedTools': json['allowedTools'] == null ? undefined : json['allowedTools'],
48
+ 'approvalModes': json['approvalModes'] == null ? undefined : json['approvalModes'],
40
49
  };
41
50
  }
42
51
  function ToolSecureMcpUioToJSON(json) {
@@ -51,5 +60,6 @@ function ToolSecureMcpUioToJSONTyped(value, ignoreDiscriminator = false) {
51
60
  'definition': (0, ToolSecureMcpDefinitionUio_1.ToolSecureMcpDefinitionUioToJSON)(value['definition']),
52
61
  'introspection': value['introspection'],
53
62
  'allowedTools': value['allowedTools'],
63
+ 'approvalModes': value['approvalModes'],
54
64
  };
55
65
  }