@getmodus/sdk 0.8.0 → 0.10.0
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.
- package/CHANGELOG.md +189 -0
- package/README.md +182 -14
- package/dist/{conversations-COA6NW8I.d.cts → _client-base-H5rt5EGy.d.cts} +3789 -972
- package/dist/{conversations-COA6NW8I.d.ts → _client-base-H5rt5EGy.d.ts} +3789 -972
- package/dist/{chunk-GFS7CNON.js → chunk-BMYCORZF.js} +656 -325
- package/dist/chunk-BMYCORZF.js.map +1 -0
- package/dist/chunk-NA3ZD35T.cjs +2666 -0
- package/dist/chunk-NA3ZD35T.cjs.map +1 -0
- package/dist/index.cjs +722 -2870
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +743 -497
- package/dist/index.d.ts +743 -497
- package/dist/index.js +601 -434
- package/dist/index.js.map +1 -1
- package/dist/management/index.cjs +1293 -3126
- package/dist/management/index.cjs.map +1 -1
- package/dist/management/index.d.cts +867 -436
- package/dist/management/index.d.ts +867 -436
- package/dist/management/index.js +1110 -680
- package/dist/management/index.js.map +1 -1
- package/package.json +15 -8
- package/dist/chunk-GFS7CNON.js.map +0 -1
|
@@ -1,15 +1,141 @@
|
|
|
1
|
-
import { H as HttpClient, M as ModusConfig,
|
|
1
|
+
import { H as HttpClient, M as ModusConfig, W as WorkflowType, V as VariationView, P as Page, e as Workflow, c as components, x as OperationId, f as ContextItem, n as ContextItemDeletion, o as ContextItemMove, U as UpdateContextItemAccessInput, l as ContextItemAccessUpdate, h as CustomContextItemsResource, Q as CreatedContextItem, S as Scope, G as SupervisionView, a as ScopeConversationsResource, i as ModusClientBase, j as ModusOptions } from '../_client-base-H5rt5EGy.js';
|
|
2
|
+
|
|
3
|
+
/** Generated base for the management `workflows` resource. */
|
|
4
|
+
declare class WorkflowsResourceBase {
|
|
5
|
+
protected readonly http: HttpClient;
|
|
6
|
+
protected readonly config: ModusConfig;
|
|
7
|
+
/** @internal */
|
|
8
|
+
constructor(http: HttpClient, config: ModusConfig);
|
|
9
|
+
/**
|
|
10
|
+
* List workflows.
|
|
11
|
+
*
|
|
12
|
+
* Returns a paginated page of workflows the caller can at least `use`. Workflows the caller
|
|
13
|
+
* cannot see are filtered out. Pagination uses an opaque token returned in `nextPageToken`.
|
|
14
|
+
*
|
|
15
|
+
* **Requires:** `workflows:read`
|
|
16
|
+
*
|
|
17
|
+
* @param options.pageSize - Items per page. Defaults to 25.
|
|
18
|
+
* @param options.pageToken - Opaque page token from a previous response's `nextPageToken`. Omit
|
|
19
|
+
* for the first page.
|
|
20
|
+
* @param options.search - Case-insensitive substring filter on workflow name.
|
|
21
|
+
* @param options.type - Filter by workflow type.
|
|
22
|
+
* @param options.view - Variation view. `active` reads the deployed version. `draft` reads the
|
|
23
|
+
* latest builder snapshot. `published` reads only a published workflow of type workflow that
|
|
24
|
+
* you can use; tasks are excluded.
|
|
25
|
+
* @param options.includeVariation - Include the requested variation payload (`trigger`,
|
|
26
|
+
* `workflowStructure`, `agentSelection`) on list rows.
|
|
27
|
+
* @returns A page of workflows.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* const mgmt = new ModusManagement()
|
|
32
|
+
* for await (const wf of (await mgmt.workflows.list({ search: 'digest' })).autoPagingIter()) {
|
|
33
|
+
* console.log(wf.id, wf.name, wf.status)
|
|
34
|
+
* }
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
list(options?: {
|
|
38
|
+
pageSize?: number;
|
|
39
|
+
pageToken?: string;
|
|
40
|
+
search?: string;
|
|
41
|
+
type?: WorkflowType;
|
|
42
|
+
view?: VariationView;
|
|
43
|
+
includeVariation?: boolean;
|
|
44
|
+
}): Promise<Page<Workflow>>;
|
|
45
|
+
protected listPage(pageSize: number, pageToken: string | undefined, search?: string, type?: WorkflowType, view?: VariationView, includeVariation?: boolean): Promise<Page<Workflow>>;
|
|
46
|
+
/**
|
|
47
|
+
* Delete a workflow.
|
|
48
|
+
*
|
|
49
|
+
* Deletes a workflow and stops its schedule. The workflow can be restored later with POST
|
|
50
|
+
* /workflows/{id}/restore. Returns 404 if the workflow does not exist or is already deleted.
|
|
51
|
+
*
|
|
52
|
+
* **Requires:** `workflows:write`
|
|
53
|
+
*
|
|
54
|
+
* @param workflowId - Numeric workflow id.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```ts
|
|
58
|
+
* const mgmt = new ModusManagement()
|
|
59
|
+
* await mgmt.workflows.delete('PLACEHOLDER_WORKFLOW_ID')
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
delete(workflowId: number | string): Promise<void>;
|
|
63
|
+
/**
|
|
64
|
+
* Restore a deleted workflow.
|
|
65
|
+
*
|
|
66
|
+
* Restores a previously deleted workflow and returns it. The workflow’s schedule is not resumed
|
|
67
|
+
* automatically — re-enable it if it should run again. Restoring an active workflow returns it
|
|
68
|
+
* unchanged.
|
|
69
|
+
*
|
|
70
|
+
* **Requires:** `workflows:write`
|
|
71
|
+
*
|
|
72
|
+
* @param workflowId - Numeric workflow id.
|
|
73
|
+
*/
|
|
74
|
+
restore(workflowId: number | string): Promise<Workflow>;
|
|
75
|
+
/**
|
|
76
|
+
* Cancel ownership transfer.
|
|
77
|
+
*
|
|
78
|
+
* Cancels a pending ownership transfer. The current owner may cancel; the pending recipient may
|
|
79
|
+
* decline.
|
|
80
|
+
*
|
|
81
|
+
* **Requires:** `workflows:write`
|
|
82
|
+
*
|
|
83
|
+
* @param workflowId - Numeric workflow id.
|
|
84
|
+
*/
|
|
85
|
+
cancelOwnershipTransfer(workflowId: number | string): Promise<Workflow>;
|
|
86
|
+
/**
|
|
87
|
+
* Accept ownership transfer.
|
|
88
|
+
*
|
|
89
|
+
* Accepts a pending ownership transfer. Only the pending recipient may invoke this action.
|
|
90
|
+
*
|
|
91
|
+
* **Requires:** `workflows:write`
|
|
92
|
+
*
|
|
93
|
+
* @param workflowId - Numeric workflow id.
|
|
94
|
+
*/
|
|
95
|
+
acceptOwnershipTransfer(workflowId: number | string): Promise<Workflow>;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/** Generated base for the management `workflows.interfaces` resource. */
|
|
99
|
+
declare class WorkflowsInterfacesResourceBase {
|
|
100
|
+
protected readonly http: HttpClient;
|
|
101
|
+
protected readonly config: ModusConfig;
|
|
102
|
+
protected readonly workflowId: number | string;
|
|
103
|
+
/** @internal */
|
|
104
|
+
constructor(http: HttpClient, config: ModusConfig, workflowId: number | string);
|
|
105
|
+
/**
|
|
106
|
+
* List interfaces attached to a workflow.
|
|
107
|
+
*
|
|
108
|
+
* Returns every Slack, MCP, or Teams interface bound to the workflow. Requires manage permission
|
|
109
|
+
* on the workflow: returns 403 if you can only use it, and 404 if you cannot access it.
|
|
110
|
+
*
|
|
111
|
+
* **Requires:** `workflows:read`
|
|
112
|
+
*/
|
|
113
|
+
list(): Promise<AgentInterface[]>;
|
|
114
|
+
/**
|
|
115
|
+
* Remove every interface from a workflow.
|
|
116
|
+
*
|
|
117
|
+
* Deletes all interface rows attached to the workflow. Useful when recreating the interface set
|
|
118
|
+
* from scratch.
|
|
119
|
+
*
|
|
120
|
+
* **Requires:** `workflows:write`
|
|
121
|
+
*/
|
|
122
|
+
deleteAll(): Promise<void>;
|
|
123
|
+
/**
|
|
124
|
+
* Remove a workflow interface.
|
|
125
|
+
*
|
|
126
|
+
* Deletes one interface row. For MCP interfaces, bound MCP tokens are revoked best-effort.
|
|
127
|
+
*
|
|
128
|
+
* **Requires:** `workflows:write`
|
|
129
|
+
*
|
|
130
|
+
* @param interfaceId - Interface row id (UUID).
|
|
131
|
+
*/
|
|
132
|
+
delete(interfaceId: string): Promise<void>;
|
|
133
|
+
}
|
|
2
134
|
|
|
3
135
|
type AgentInterface = components['schemas']['AgentInterfaceDto'];
|
|
4
136
|
type AddAgentInterface = components['schemas']['AddAgentInterfaceDto'];
|
|
5
137
|
type UpdateAgentInterface = components['schemas']['UpdateAgentInterfaceDto'];
|
|
6
|
-
declare class WorkflowInterfacesResource {
|
|
7
|
-
private readonly http;
|
|
8
|
-
private readonly config;
|
|
9
|
-
private readonly workflowId;
|
|
10
|
-
constructor(http: HttpClient, config: ModusConfig, workflowId: number | string);
|
|
11
|
-
/** List interfaces attached to this workflow. */
|
|
12
|
-
list(): Promise<AgentInterface[]>;
|
|
138
|
+
declare class WorkflowInterfacesResource extends WorkflowsInterfacesResourceBase {
|
|
13
139
|
/**
|
|
14
140
|
* Add an interface to this workflow.
|
|
15
141
|
*
|
|
@@ -26,14 +152,6 @@ declare class WorkflowInterfacesResource {
|
|
|
26
152
|
* @returns The updated interface.
|
|
27
153
|
*/
|
|
28
154
|
update(interfaceId: string, options: UpdateAgentInterface, updateMask?: string): Promise<AgentInterface>;
|
|
29
|
-
/**
|
|
30
|
-
* Delete an interface from this workflow.
|
|
31
|
-
*
|
|
32
|
-
* @param interfaceId - Interface id.
|
|
33
|
-
*/
|
|
34
|
-
delete(interfaceId: string): Promise<void>;
|
|
35
|
-
/** Delete every interface from this workflow. */
|
|
36
|
-
deleteAll(): Promise<void>;
|
|
37
155
|
}
|
|
38
156
|
|
|
39
157
|
type TriggerInput = Record<string, unknown>;
|
|
@@ -60,7 +178,6 @@ interface CreateWorkflowOptions {
|
|
|
60
178
|
trigger?: TriggerInput;
|
|
61
179
|
agentSelection?: AgentSelectionInput;
|
|
62
180
|
workflowStructure?: WorkflowGraphInput;
|
|
63
|
-
guardrails?: string[];
|
|
64
181
|
}
|
|
65
182
|
/** @deprecated Use `CreateWorkflowOptions` instead. */
|
|
66
183
|
type CreateAgentOptions = CreateWorkflowOptions;
|
|
@@ -71,53 +188,23 @@ interface UpdateWorkflowOptions {
|
|
|
71
188
|
trigger?: TriggerInput;
|
|
72
189
|
agentSelection?: AgentSelectionInput;
|
|
73
190
|
workflowStructure?: WorkflowGraphInput;
|
|
74
|
-
guardrails?: string[];
|
|
75
191
|
updateMask?: string;
|
|
76
192
|
}
|
|
77
193
|
/** @deprecated Use `UpdateWorkflowOptions` instead. */
|
|
78
194
|
type UpdateAgentOptions = UpdateWorkflowOptions;
|
|
79
|
-
declare class ManagementWorkflowsResource {
|
|
80
|
-
private readonly http;
|
|
81
|
-
private readonly config;
|
|
195
|
+
declare class ManagementWorkflowsResource extends WorkflowsResourceBase {
|
|
82
196
|
protected readonly ops: ManagementWorkflowsOperations;
|
|
83
|
-
constructor(http: HttpClient, config: ModusConfig);
|
|
84
|
-
/**
|
|
85
|
-
* List workflows in the organization.
|
|
86
|
-
*
|
|
87
|
-
* @param options.pageSize - Maximum items per page (default 25).
|
|
88
|
-
* @param options.pageToken - Token from a previous page's `nextPageToken`; omit for the first page.
|
|
89
|
-
* @param options.search - Case-insensitive substring filter on the workflow name.
|
|
90
|
-
* @param options.type - Filter by workflow type: `"task"` or `"workflow"`.
|
|
91
|
-
* @param options.view - Variation view: `"active"` (deployed) or `"draft"`.
|
|
92
|
-
* @param options.includeVariation - Include variation payload on each list row.
|
|
93
|
-
* @returns A page of workflows.
|
|
94
|
-
* @example
|
|
95
|
-
* ```ts
|
|
96
|
-
* const mgmt = new ModusManagement()
|
|
97
|
-
* for await (const wf of (await mgmt.workflows.list({ search: 'digest' })).autoPagingIter()) {
|
|
98
|
-
* console.log(wf.id, wf.name, wf.status)
|
|
99
|
-
* }
|
|
100
|
-
* ```
|
|
101
|
-
*/
|
|
102
|
-
list(options?: {
|
|
103
|
-
pageSize?: number;
|
|
104
|
-
pageToken?: string;
|
|
105
|
-
search?: string;
|
|
106
|
-
type?: WorkflowType;
|
|
107
|
-
view?: VariationView;
|
|
108
|
-
includeVariation?: boolean;
|
|
109
|
-
}): Promise<Page<Workflow>>;
|
|
110
|
-
private listPage;
|
|
111
197
|
/**
|
|
112
198
|
* Retrieve a workflow with full configuration.
|
|
113
199
|
*
|
|
114
|
-
* @param workflowId -
|
|
115
|
-
* @param options.view - Variation view: `"active"` (deployed) or `"
|
|
200
|
+
* @param workflowId - Numeric workflow id.
|
|
201
|
+
* @param options.view - Variation view: `"active"` (deployed), `"draft"`, or `"published"` (published workflow you can use).
|
|
116
202
|
* @returns The workflow.
|
|
117
203
|
* @example
|
|
118
204
|
* ```ts
|
|
119
205
|
* const mgmt = new ModusManagement()
|
|
120
|
-
* const
|
|
206
|
+
* const [first] = (await mgmt.workflows.list()).items
|
|
207
|
+
* const wf = await mgmt.workflows.get(first.id)
|
|
121
208
|
* console.log(wf.name, wf.status)
|
|
122
209
|
* ```
|
|
123
210
|
*/
|
|
@@ -135,14 +222,13 @@ declare class ManagementWorkflowsResource {
|
|
|
135
222
|
* Create a new workflow in the organization.
|
|
136
223
|
*
|
|
137
224
|
* @param options.name - Display name for the workflow.
|
|
138
|
-
* @param options.type - `"task"`
|
|
225
|
+
* @param options.type - `"workflow"`. `"task"` is a deprecated alias the server stores as `"workflow"`.
|
|
139
226
|
* @param options.trigger - Optional trigger configuration.
|
|
140
|
-
* @param options.guardrails - Runtime guardrail labels (for example `"no-pii"`). Omit to create with no guardrails.
|
|
141
227
|
* @returns The created workflow (draft).
|
|
142
228
|
* @example
|
|
143
229
|
* ```ts
|
|
144
230
|
* const mgmt = new ModusManagement()
|
|
145
|
-
* const wf = await mgmt.workflows.create({ name: 'Daily report', type: '
|
|
231
|
+
* const wf = await mgmt.workflows.create({ name: 'Daily report', type: 'workflow' })
|
|
146
232
|
* ```
|
|
147
233
|
*/
|
|
148
234
|
create(options: CreateWorkflowOptions): Promise<Workflow>;
|
|
@@ -150,10 +236,10 @@ declare class ManagementWorkflowsResource {
|
|
|
150
236
|
* Update a workflow's configuration.
|
|
151
237
|
*
|
|
152
238
|
* Only the fields you pass are changed. To clear a field, name it in
|
|
153
|
-
* `updateMask` and leave its argument unset
|
|
239
|
+
* `updateMask` and leave its argument unset: it is sent as `null`.
|
|
154
240
|
*
|
|
155
|
-
* @param workflowId -
|
|
156
|
-
* @param options.
|
|
241
|
+
* @param workflowId - Numeric workflow id.
|
|
242
|
+
* @param options.type - Only `"workflow"` is accepted; `"task"` is rejected with a 422.
|
|
157
243
|
* @param options.updateMask - Comma-separated field names to update or clear.
|
|
158
244
|
* @returns The updated workflow.
|
|
159
245
|
* @example
|
|
@@ -186,25 +272,6 @@ declare class ManagementWorkflowsResource {
|
|
|
186
272
|
toggle(workflowId: number | string, options: {
|
|
187
273
|
active: boolean;
|
|
188
274
|
}): Promise<Workflow>;
|
|
189
|
-
/**
|
|
190
|
-
* Delete a workflow.
|
|
191
|
-
*
|
|
192
|
-
* @param workflowId - Workflow id.
|
|
193
|
-
* @returns Resolves when the workflow is deleted.
|
|
194
|
-
* @example
|
|
195
|
-
* ```ts
|
|
196
|
-
* const mgmt = new ModusManagement()
|
|
197
|
-
* await mgmt.workflows.delete('PLACEHOLDER_WORKFLOW_ID')
|
|
198
|
-
* ```
|
|
199
|
-
*/
|
|
200
|
-
delete(workflowId: number | string): Promise<void>;
|
|
201
|
-
/**
|
|
202
|
-
* Restore a previously deleted workflow.
|
|
203
|
-
*
|
|
204
|
-
* @param workflowId - Workflow id.
|
|
205
|
-
* @returns The restored workflow.
|
|
206
|
-
*/
|
|
207
|
-
restore(workflowId: number | string): Promise<Workflow>;
|
|
208
275
|
/**
|
|
209
276
|
* Start transferring ownership of a workflow to another organization member.
|
|
210
277
|
*
|
|
@@ -215,10 +282,6 @@ declare class ManagementWorkflowsResource {
|
|
|
215
282
|
requestOwnershipTransfer(workflowId: number | string, options: {
|
|
216
283
|
newOwnerUserId: string;
|
|
217
284
|
}): Promise<Workflow>;
|
|
218
|
-
/** Cancel a pending workflow ownership transfer. */
|
|
219
|
-
cancelOwnershipTransfer(workflowId: number | string): Promise<Workflow>;
|
|
220
|
-
/** Accept a pending workflow ownership transfer. */
|
|
221
|
-
acceptOwnershipTransfer(workflowId: number | string): Promise<Workflow>;
|
|
222
285
|
}
|
|
223
286
|
|
|
224
287
|
declare class ManagementContextItemsResource {
|
|
@@ -272,7 +335,7 @@ declare class ManagementContextItemsResource {
|
|
|
272
335
|
* Update a context item.
|
|
273
336
|
*
|
|
274
337
|
* Only the fields you pass are changed. To clear a field, name it in
|
|
275
|
-
* `updateMask` and leave its argument unset
|
|
338
|
+
* `updateMask` and leave its argument unset: it is sent as `null`.
|
|
276
339
|
*
|
|
277
340
|
* @param uid - Context item uid.
|
|
278
341
|
* @param options.content - Replacement type-specific content.
|
|
@@ -327,6 +390,35 @@ declare class ManagementContextItemsResource {
|
|
|
327
390
|
move(uid: string, options: {
|
|
328
391
|
destinationFolderUid: string | null;
|
|
329
392
|
}): Promise<ContextItemMove>;
|
|
393
|
+
/**
|
|
394
|
+
* Replace who can view and manage a note, saved query, link or uploaded file.
|
|
395
|
+
*
|
|
396
|
+
* All three settings are required and replace the current ones. You cannot
|
|
397
|
+
* remove your own manage access. An item created before items had owners
|
|
398
|
+
* becomes yours on the first change.
|
|
399
|
+
*
|
|
400
|
+
* @param uid - UUID of the context item.
|
|
401
|
+
* @param input.visibility - `shared` (the owner plus the groups in
|
|
402
|
+
* `groupPermissions`) or `private` (the owner plus the users in `sharedWith`).
|
|
403
|
+
* @param input.groupPermissions - Group id to `{ use, manage }`. Used only when shared.
|
|
404
|
+
* @param input.sharedWith - Users such as `{ email: 'ana@example.com', permission: 'use' }`.
|
|
405
|
+
* Used only when private.
|
|
406
|
+
* @returns The item's new access settings and whether you can still manage it.
|
|
407
|
+
* @throws {NotFoundError} The item does not exist or you cannot view it.
|
|
408
|
+
* @throws {PermissionDeniedError} You can view the item but not manage it.
|
|
409
|
+
* @throws {ModusError} The item is another type, a group or user is invalid,
|
|
410
|
+
* or the change would remove your own manage access.
|
|
411
|
+
*
|
|
412
|
+
* @example
|
|
413
|
+
* ```ts
|
|
414
|
+
* await mgmt.context.items.updateAccess('PLACEHOLDER_UID', {
|
|
415
|
+
* visibility: 'private',
|
|
416
|
+
* groupPermissions: {},
|
|
417
|
+
* sharedWith: [{ email: 'ana@example.com', permission: 'use' }],
|
|
418
|
+
* })
|
|
419
|
+
* ```
|
|
420
|
+
*/
|
|
421
|
+
updateAccess(uid: string, input: UpdateContextItemAccessInput): Promise<ContextItemAccessUpdate>;
|
|
330
422
|
}
|
|
331
423
|
|
|
332
424
|
type UserFeedback = 'positive' | 'neutral' | 'negative';
|
|
@@ -372,26 +464,144 @@ type UpdateDashboardAccessInput = components['schemas']['UpdateDashboardAccessDt
|
|
|
372
464
|
/** Input for `requestOwnershipTransfer()`. */
|
|
373
465
|
type TransferDashboardOwnershipInput = components['schemas']['TransferDashboardOwnershipDto'];
|
|
374
466
|
|
|
375
|
-
/**
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
*
|
|
380
|
-
* Every change takes the `draftRevision` it is based on as `expectedRevision`;
|
|
381
|
-
* a stale value is rejected with a `ConflictError`.
|
|
382
|
-
*/
|
|
383
|
-
declare class ManagementDashboardElementsResource {
|
|
384
|
-
private readonly http;
|
|
385
|
-
private readonly config;
|
|
386
|
-
private readonly dashboardId;
|
|
467
|
+
/** Generated base for the management `context.dashboards` resource. */
|
|
468
|
+
declare class ContextDashboardsResourceBase {
|
|
469
|
+
protected readonly http: HttpClient;
|
|
470
|
+
protected readonly config: ModusConfig;
|
|
387
471
|
/** @internal */
|
|
388
|
-
constructor(http: HttpClient, config: ModusConfig
|
|
472
|
+
constructor(http: HttpClient, config: ModusConfig);
|
|
389
473
|
/**
|
|
390
|
-
*
|
|
474
|
+
* Delete a dashboard.
|
|
475
|
+
*
|
|
476
|
+
* Removes the dashboard from every listing and deletes its alert workflows. It cannot be restored
|
|
477
|
+
* through the API.
|
|
478
|
+
*
|
|
479
|
+
* **Requires:** `context:write`
|
|
480
|
+
*
|
|
481
|
+
* @param dashboardId - Dashboard id, as shown in the app URL.
|
|
482
|
+
*
|
|
483
|
+
* @example
|
|
484
|
+
* ```ts
|
|
485
|
+
* await mgmt.context.dashboards.delete('DASHBOARD_ID')
|
|
486
|
+
* ```
|
|
487
|
+
*/
|
|
488
|
+
delete(dashboardId: string): Promise<void>;
|
|
489
|
+
/**
|
|
490
|
+
* List dashboard draft snapshots.
|
|
491
|
+
*
|
|
492
|
+
* Returns ids and timestamps of the most recent draft snapshots. Editors only.
|
|
493
|
+
*
|
|
494
|
+
* **Requires:** `context:read`
|
|
495
|
+
*
|
|
496
|
+
* @param dashboardId - Dashboard id, as shown in the app URL.
|
|
497
|
+
*
|
|
498
|
+
* @example
|
|
499
|
+
* ```ts
|
|
500
|
+
* const snapshots = await mgmt.context.dashboards.listDraftSnapshots('DASHBOARD_ID')
|
|
501
|
+
* snapshots.map((snapshot) => snapshot.uid)
|
|
502
|
+
* ```
|
|
503
|
+
*/
|
|
504
|
+
listDraftSnapshots(dashboardId: string): Promise<DashboardDraftSnapshot[]>;
|
|
505
|
+
/**
|
|
506
|
+
* Cancel an ownership transfer.
|
|
507
|
+
*
|
|
508
|
+
* Owner only. Clears the pending transfer and returns the dashboard.
|
|
509
|
+
*
|
|
510
|
+
* **Requires:** `context:write`
|
|
511
|
+
*
|
|
512
|
+
* @param dashboardId - Dashboard id, as shown in the app URL.
|
|
513
|
+
*
|
|
514
|
+
* @example
|
|
515
|
+
* ```ts
|
|
516
|
+
* await mgmt.context.dashboards.cancelOwnershipTransfer('DASHBOARD_ID')
|
|
517
|
+
* ```
|
|
518
|
+
*/
|
|
519
|
+
cancelOwnershipTransfer(dashboardId: string): Promise<Dashboard>;
|
|
520
|
+
/**
|
|
521
|
+
* Accept an ownership transfer.
|
|
522
|
+
*
|
|
523
|
+
* Recipient only. Makes you the owner and clears the pending transfer.
|
|
524
|
+
*
|
|
525
|
+
* **Requires:** `context:write`
|
|
526
|
+
*
|
|
527
|
+
* @param dashboardId - Dashboard id, as shown in the app URL.
|
|
528
|
+
*
|
|
529
|
+
* @example
|
|
530
|
+
* ```ts
|
|
531
|
+
* await mgmt.context.dashboards.acceptOwnershipTransfer('DASHBOARD_ID')
|
|
532
|
+
* ```
|
|
533
|
+
*/
|
|
534
|
+
acceptOwnershipTransfer(dashboardId: string): Promise<Dashboard>;
|
|
535
|
+
/**
|
|
536
|
+
* List dashboard versions.
|
|
537
|
+
*
|
|
538
|
+
* Returns the published versions, newest first, each with its full definition. Draft snapshots
|
|
539
|
+
* are not included. The response is not paginated and can be large.
|
|
540
|
+
*
|
|
541
|
+
* **Requires:** `context:read`
|
|
542
|
+
*
|
|
543
|
+
* @param dashboardId - Dashboard id, as shown in the app URL.
|
|
544
|
+
*
|
|
545
|
+
* @example
|
|
546
|
+
* ```ts
|
|
547
|
+
* const versions = await mgmt.context.dashboards.listVersions('DASHBOARD_ID')
|
|
548
|
+
* versions.map((version) => [version.uid, version.versionNumber])
|
|
549
|
+
* ```
|
|
550
|
+
*/
|
|
551
|
+
listVersions(dashboardId: string): Promise<DashboardVersion[]>;
|
|
552
|
+
/**
|
|
553
|
+
* Get a dashboard version.
|
|
554
|
+
*
|
|
555
|
+
* Returns the dashboard as it was in the given version. For a draft snapshot (editors only) the
|
|
556
|
+
* view is reported as active and selectedVersion.versionNumber is null.
|
|
557
|
+
*
|
|
558
|
+
* **Requires:** `context:read`
|
|
559
|
+
*
|
|
560
|
+
* @param dashboardId - Dashboard id, as shown in the app URL.
|
|
561
|
+
* @param versionId - Version id, or a draft snapshot id for editors.
|
|
562
|
+
*
|
|
563
|
+
* @example
|
|
564
|
+
* ```ts
|
|
565
|
+
* const old = await mgmt.context.dashboards.getVersion('DASHBOARD_ID', 'VERSION_ID')
|
|
566
|
+
* old.selectedVersion.versionNumber
|
|
567
|
+
* ```
|
|
568
|
+
*/
|
|
569
|
+
getVersion(dashboardId: string, versionId: string): Promise<Dashboard>;
|
|
570
|
+
/**
|
|
571
|
+
* Restore a dashboard version.
|
|
572
|
+
*
|
|
573
|
+
* Replaces the current draft with the content of the given version. The outgoing draft is kept as
|
|
574
|
+
* a draft snapshot. Returns the draft view.
|
|
575
|
+
*
|
|
576
|
+
* **Requires:** `context:write`
|
|
577
|
+
*
|
|
578
|
+
* @param dashboardId - Dashboard id, as shown in the app URL.
|
|
579
|
+
* @param versionId - Version id, or a draft snapshot id for editors.
|
|
580
|
+
*
|
|
581
|
+
* @example
|
|
582
|
+
* ```ts
|
|
583
|
+
* await mgmt.context.dashboards.restoreVersion('DASHBOARD_ID', 'VERSION_ID')
|
|
584
|
+
* ```
|
|
585
|
+
*/
|
|
586
|
+
restoreVersion(dashboardId: string, versionId: string): Promise<Dashboard>;
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
/** Generated base for the management `context.dashboards.elements` resource. */
|
|
590
|
+
declare class ContextDashboardsElementsResourceBase {
|
|
591
|
+
protected readonly http: HttpClient;
|
|
592
|
+
protected readonly config: ModusConfig;
|
|
593
|
+
protected readonly dashboardId: number | string;
|
|
594
|
+
/** @internal */
|
|
595
|
+
constructor(http: HttpClient, config: ModusConfig, dashboardId: number | string);
|
|
596
|
+
/**
|
|
597
|
+
* List dashboard elements.
|
|
598
|
+
*
|
|
599
|
+
* Lists every tile and filter on the dashboard draft with id, kind, title and layout. Filters
|
|
600
|
+
* also carry sqlReferences, the exact templates tile SQL must use to reference them. Returns the
|
|
601
|
+
* current draftRevision.
|
|
602
|
+
*
|
|
603
|
+
* **Requires:** `context:read`
|
|
391
604
|
*
|
|
392
|
-
* @returns Each element's id, kind, title and grid position, plus the current
|
|
393
|
-
* `draftRevision` to pass as `expectedRevision` on the next change.
|
|
394
|
-
* @throws NotFoundError - The dashboard does not exist or you cannot edit it.
|
|
395
605
|
* @example
|
|
396
606
|
* ```ts
|
|
397
607
|
* const listed = await mgmt.context.dashboards.elements('DASHBOARD_ID').list()
|
|
@@ -400,12 +610,15 @@ declare class ManagementDashboardElementsResource {
|
|
|
400
610
|
*/
|
|
401
611
|
list(): Promise<DashboardElementsList>;
|
|
402
612
|
/**
|
|
403
|
-
* Get
|
|
613
|
+
* Get a dashboard element.
|
|
614
|
+
*
|
|
615
|
+
* Returns the full draft configuration of one dashboard element, including SQL, chart settings
|
|
616
|
+
* and filter options, with the current draftRevision.
|
|
617
|
+
*
|
|
618
|
+
* **Requires:** `context:read`
|
|
619
|
+
*
|
|
620
|
+
* @param elementId - The dashboard element id to read.
|
|
404
621
|
*
|
|
405
|
-
* @param elementId - Id of the tile or filter, as returned by `list()`.
|
|
406
|
-
* @returns The element's settings and the current `draftRevision`.
|
|
407
|
-
* @throws NotFoundError - The dashboard or the element does not exist, or you cannot
|
|
408
|
-
* edit the dashboard.
|
|
409
622
|
* @example
|
|
410
623
|
* ```ts
|
|
411
624
|
* const result = await mgmt.context.dashboards.elements('DASHBOARD_ID').get('ELEMENT_ID')
|
|
@@ -413,6 +626,19 @@ declare class ManagementDashboardElementsResource {
|
|
|
413
626
|
* ```
|
|
414
627
|
*/
|
|
415
628
|
get(elementId: string): Promise<DashboardElementResult>;
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
/**
|
|
632
|
+
* Tiles and filters on one dashboard draft.
|
|
633
|
+
*
|
|
634
|
+
* Call path: `mgmt.context.dashboards.elements(dashboardId)`.
|
|
635
|
+
*
|
|
636
|
+
* Every change takes the `draftRevision` it is based on as `expectedRevision`;
|
|
637
|
+
* a stale value is rejected with a `ConflictError`.
|
|
638
|
+
*/
|
|
639
|
+
declare class ManagementDashboardElementsResource extends ContextDashboardsElementsResourceBase {
|
|
640
|
+
/** @internal */
|
|
641
|
+
constructor(http: HttpClient, config: ModusConfig, dashboardId: string);
|
|
416
642
|
/**
|
|
417
643
|
* Add a blank tile or filter to the dashboard draft.
|
|
418
644
|
*
|
|
@@ -468,9 +694,7 @@ declare class ManagementDashboardElementsResource {
|
|
|
468
694
|
* - `elements(dashboardId)` — list, get, create and update tiles and filters.
|
|
469
695
|
* - `updateLayout(dashboardId, input)` — move or resize several elements at once.
|
|
470
696
|
*/
|
|
471
|
-
declare class ManagementDashboardsResource {
|
|
472
|
-
private readonly http;
|
|
473
|
-
private readonly config;
|
|
697
|
+
declare class ManagementDashboardsResource extends ContextDashboardsResourceBase {
|
|
474
698
|
/** @internal */
|
|
475
699
|
constructor(http: HttpClient, config: ModusConfig);
|
|
476
700
|
/**
|
|
@@ -569,80 +793,6 @@ declare class ManagementDashboardsResource {
|
|
|
569
793
|
* ```
|
|
570
794
|
*/
|
|
571
795
|
publish(dashboardId: string, input: PublishDashboardInput): Promise<DashboardPublishResult>;
|
|
572
|
-
/**
|
|
573
|
-
* Delete a dashboard and the alert workflows defined on it.
|
|
574
|
-
*
|
|
575
|
-
* A deleted dashboard cannot be restored.
|
|
576
|
-
*
|
|
577
|
-
* @param dashboardId - Id of the dashboard.
|
|
578
|
-
* @throws NotFoundError - The dashboard does not exist or you cannot edit it.
|
|
579
|
-
* @example
|
|
580
|
-
* ```ts
|
|
581
|
-
* await mgmt.context.dashboards.delete('DASHBOARD_ID')
|
|
582
|
-
* ```
|
|
583
|
-
*/
|
|
584
|
-
delete(dashboardId: string): Promise<void>;
|
|
585
|
-
/**
|
|
586
|
-
* List the published versions of a dashboard, newest first.
|
|
587
|
-
*
|
|
588
|
-
* @param dashboardId - Id of the dashboard.
|
|
589
|
-
* @returns Every published version with its full definition. Definitions are
|
|
590
|
-
* returned as stored, so older versions may lack newer fields. The list is
|
|
591
|
-
* not paginated.
|
|
592
|
-
* @throws NotFoundError - The dashboard does not exist or you cannot open it.
|
|
593
|
-
* @example
|
|
594
|
-
* ```ts
|
|
595
|
-
* const versions = await mgmt.context.dashboards.listVersions('DASHBOARD_ID')
|
|
596
|
-
* versions.map((version) => [version.uid, version.versionNumber])
|
|
597
|
-
* ```
|
|
598
|
-
*/
|
|
599
|
-
listVersions(dashboardId: string): Promise<DashboardVersion[]>;
|
|
600
|
-
/**
|
|
601
|
-
* Get a dashboard as it was in one version.
|
|
602
|
-
*
|
|
603
|
-
* @param dashboardId - Id of the dashboard.
|
|
604
|
-
* @param versionId - Id of the version, as returned by `listVersions()`.
|
|
605
|
-
* @returns The dashboard with that version's definition.
|
|
606
|
-
* @throws NotFoundError - The dashboard or the version does not exist, or you cannot
|
|
607
|
-
* open the dashboard.
|
|
608
|
-
* @example
|
|
609
|
-
* ```ts
|
|
610
|
-
* const old = await mgmt.context.dashboards.getVersion('DASHBOARD_ID', 'VERSION_ID')
|
|
611
|
-
* old.selectedVersion.versionNumber
|
|
612
|
-
* ```
|
|
613
|
-
*/
|
|
614
|
-
getVersion(dashboardId: string, versionId: string): Promise<Dashboard>;
|
|
615
|
-
/**
|
|
616
|
-
* Replace the draft with the content of an earlier version.
|
|
617
|
-
*
|
|
618
|
-
* The draft being replaced is kept as a draft snapshot. Call `publish()`
|
|
619
|
-
* afterwards to make the restored content visible.
|
|
620
|
-
*
|
|
621
|
-
* @param dashboardId - Id of the dashboard.
|
|
622
|
-
* @param versionId - Id of the version or draft snapshot to restore.
|
|
623
|
-
* @returns The dashboard draft after the restore.
|
|
624
|
-
* @throws NotFoundError - The dashboard or the version does not exist, or you cannot
|
|
625
|
-
* edit the dashboard.
|
|
626
|
-
* @example
|
|
627
|
-
* ```ts
|
|
628
|
-
* await mgmt.context.dashboards.restoreVersion('DASHBOARD_ID', 'VERSION_ID')
|
|
629
|
-
* ```
|
|
630
|
-
*/
|
|
631
|
-
restoreVersion(dashboardId: string, versionId: string): Promise<Dashboard>;
|
|
632
|
-
/**
|
|
633
|
-
* List recent snapshots of the dashboard draft, newest first.
|
|
634
|
-
*
|
|
635
|
-
* @param dashboardId - Id of the dashboard.
|
|
636
|
-
* @returns Up to 100 snapshots with their id, author and time. Pass an id to
|
|
637
|
-
* `restoreVersion()` to bring that draft back.
|
|
638
|
-
* @throws NotFoundError - The dashboard does not exist or you cannot edit it.
|
|
639
|
-
* @example
|
|
640
|
-
* ```ts
|
|
641
|
-
* const snapshots = await mgmt.context.dashboards.listDraftSnapshots('DASHBOARD_ID')
|
|
642
|
-
* snapshots.map((snapshot) => snapshot.uid)
|
|
643
|
-
* ```
|
|
644
|
-
*/
|
|
645
|
-
listDraftSnapshots(dashboardId: string): Promise<DashboardDraftSnapshot[]>;
|
|
646
796
|
/**
|
|
647
797
|
* Replace who can open and edit a dashboard.
|
|
648
798
|
*
|
|
@@ -686,36 +836,6 @@ declare class ManagementDashboardsResource {
|
|
|
686
836
|
* ```
|
|
687
837
|
*/
|
|
688
838
|
requestOwnershipTransfer(dashboardId: string, input: TransferDashboardOwnershipInput): Promise<Dashboard>;
|
|
689
|
-
/**
|
|
690
|
-
* Accept a pending ownership transfer and become the dashboard owner.
|
|
691
|
-
*
|
|
692
|
-
* Only the requested recipient can accept.
|
|
693
|
-
*
|
|
694
|
-
* @param dashboardId - Id of the dashboard.
|
|
695
|
-
* @returns The dashboard with you as its owner.
|
|
696
|
-
* @throws NotFoundError - The dashboard does not exist, or it has no pending transfer
|
|
697
|
-
* addressed to you.
|
|
698
|
-
* @example
|
|
699
|
-
* ```ts
|
|
700
|
-
* await mgmt.context.dashboards.acceptOwnershipTransfer('DASHBOARD_ID')
|
|
701
|
-
* ```
|
|
702
|
-
*/
|
|
703
|
-
acceptOwnershipTransfer(dashboardId: string): Promise<Dashboard>;
|
|
704
|
-
/**
|
|
705
|
-
* Cancel a pending ownership transfer.
|
|
706
|
-
*
|
|
707
|
-
* Only the owner can cancel.
|
|
708
|
-
*
|
|
709
|
-
* @param dashboardId - Id of the dashboard.
|
|
710
|
-
* @returns The dashboard with no pending transfer.
|
|
711
|
-
* @throws NotFoundError - The dashboard does not exist, you cannot open it, or you are
|
|
712
|
-
* not the owner.
|
|
713
|
-
* @example
|
|
714
|
-
* ```ts
|
|
715
|
-
* await mgmt.context.dashboards.cancelOwnershipTransfer('DASHBOARD_ID')
|
|
716
|
-
* ```
|
|
717
|
-
*/
|
|
718
|
-
cancelOwnershipTransfer(dashboardId: string): Promise<Dashboard>;
|
|
719
839
|
/**
|
|
720
840
|
* Work with the tiles and filters of one dashboard draft.
|
|
721
841
|
*
|
|
@@ -809,6 +929,43 @@ interface BulkFinalizeResult {
|
|
|
809
929
|
failed: FinalizeFailure[];
|
|
810
930
|
}
|
|
811
931
|
|
|
932
|
+
/** Generated base for the management `context.files` resource. */
|
|
933
|
+
declare class ContextFilesResourceBase {
|
|
934
|
+
protected readonly http: HttpClient;
|
|
935
|
+
protected readonly config: ModusConfig;
|
|
936
|
+
/** @internal */
|
|
937
|
+
constructor(http: HttpClient, config: ModusConfig);
|
|
938
|
+
/**
|
|
939
|
+
* List file uploads.
|
|
940
|
+
*
|
|
941
|
+
* Returns a page of durable landed file uploads. Uploads that have not landed yet are visible via
|
|
942
|
+
* `GET /context/files/{uploadId}`, not this list.
|
|
943
|
+
*
|
|
944
|
+
* **Requires:** `context:read`
|
|
945
|
+
*
|
|
946
|
+
* @param options.pageSize - Items per page. Defaults to 50.
|
|
947
|
+
* @param options.pageToken - Opaque page token from a previous response's `nextPageToken`. Omit
|
|
948
|
+
* for the first page.
|
|
949
|
+
* @returns A page of files.
|
|
950
|
+
*/
|
|
951
|
+
list(options?: {
|
|
952
|
+
pageSize?: number;
|
|
953
|
+
pageToken?: string;
|
|
954
|
+
}): Promise<Page<FileUpload>>;
|
|
955
|
+
protected listPage(pageSize: number, pageToken: string | undefined): Promise<Page<FileUpload>>;
|
|
956
|
+
/**
|
|
957
|
+
* Get a file upload.
|
|
958
|
+
*
|
|
959
|
+
* Returns status + metadata for one upload. Prefers the durable landed context item; falls back
|
|
960
|
+
* to in-flight upload status while the object has not landed yet. 404 if neither exists.
|
|
961
|
+
*
|
|
962
|
+
* **Requires:** `context:read`
|
|
963
|
+
*
|
|
964
|
+
* @param uploadId - Upload id returned by `createUploadUrl` / `createUploadUrls`.
|
|
965
|
+
*/
|
|
966
|
+
get(uploadId: string): Promise<FileUpload>;
|
|
967
|
+
}
|
|
968
|
+
|
|
812
969
|
type BatchUploadOptions = {
|
|
813
970
|
concurrency?: number;
|
|
814
971
|
waitUntil?: WaitUntil;
|
|
@@ -824,9 +981,7 @@ type BatchUploadOptions = {
|
|
|
824
981
|
* - `createUploadUrl(s)`, `uploadFromUrl(s)`, `get`, `list` — raw operations.
|
|
825
982
|
* Hierarchy browsing is available through `mgmt.context.items.list`.
|
|
826
983
|
*/
|
|
827
|
-
declare class ManagementContextFilesResource {
|
|
828
|
-
private readonly http;
|
|
829
|
-
private readonly config;
|
|
984
|
+
declare class ManagementContextFilesResource extends ContextFilesResourceBase {
|
|
830
985
|
/** @internal */
|
|
831
986
|
constructor(http: HttpClient, config: ModusConfig);
|
|
832
987
|
/**
|
|
@@ -872,26 +1027,6 @@ declare class ManagementContextFilesResource {
|
|
|
872
1027
|
* failures for the rest — never a partial 4xx.
|
|
873
1028
|
*/
|
|
874
1029
|
uploadFromUrls(urls: readonly UploadFromUrlInput[]): Promise<BulkUploadFromUrlsResult>;
|
|
875
|
-
/**
|
|
876
|
-
* Fetch one file upload by its id.
|
|
877
|
-
*
|
|
878
|
-
* @param uploadId - Upload id returned by `createUploadUrl` / `uploadFromUrl`.
|
|
879
|
-
* @returns The file upload resource, including its processing `status`.
|
|
880
|
-
*/
|
|
881
|
-
get(uploadId: string): Promise<FileUpload>;
|
|
882
|
-
/**
|
|
883
|
-
* List durable file uploads.
|
|
884
|
-
*
|
|
885
|
-
* @param options.pageSize - Items per page (default 50).
|
|
886
|
-
* @param options.pageToken - Opaque token from a previous page's `nextPageToken`.
|
|
887
|
-
* @returns Page of file uploads. Uploads that only have a pending row (not yet
|
|
888
|
-
* landed) aren't included here — use `get(uploadId)` for those.
|
|
889
|
-
*/
|
|
890
|
-
list(options?: {
|
|
891
|
-
pageSize?: number;
|
|
892
|
-
pageToken?: string;
|
|
893
|
-
}): Promise<Page<FileUpload>>;
|
|
894
|
-
private listPage;
|
|
895
1030
|
/**
|
|
896
1031
|
* Turn a file already PUT to a presigned URL into durable context.
|
|
897
1032
|
*
|
|
@@ -1112,67 +1247,226 @@ declare class ManagementContextResource {
|
|
|
1112
1247
|
topics?: string[];
|
|
1113
1248
|
}): Promise<ContextItem>;
|
|
1114
1249
|
/**
|
|
1115
|
-
* Add a URL to the knowledge base.
|
|
1250
|
+
* Add a URL to the knowledge base.
|
|
1251
|
+
*
|
|
1252
|
+
* @param url - Link URL.
|
|
1253
|
+
* @param options.title - Optional display title.
|
|
1254
|
+
* @param options.isCrawl - When true, crawl linked pages into context.
|
|
1255
|
+
* @param options.pageLimit - Maximum pages to crawl when `isCrawl` is true.
|
|
1256
|
+
* @returns The created context item.
|
|
1257
|
+
* @example
|
|
1258
|
+
* ```ts
|
|
1259
|
+
* const mgmt = new ModusManagement()
|
|
1260
|
+
* const link = await mgmt.context.createLink('https://docs.example.com/runbook', {
|
|
1261
|
+
* title: 'Ops runbook',
|
|
1262
|
+
* })
|
|
1263
|
+
* ```
|
|
1264
|
+
*/
|
|
1265
|
+
createLink(url: string, options?: {
|
|
1266
|
+
title?: string;
|
|
1267
|
+
isCrawl?: boolean;
|
|
1268
|
+
pageLimit?: number;
|
|
1269
|
+
}): Promise<CreatedContextItem>;
|
|
1270
|
+
/**
|
|
1271
|
+
* Update link metadata on an existing item.
|
|
1272
|
+
*
|
|
1273
|
+
* Merges `title` and/or `url` into the stored content blob. Does not re-fetch or re-crawl the URL.
|
|
1274
|
+
*
|
|
1275
|
+
* @param uid - Context item uid.
|
|
1276
|
+
* @param options.title - New display title.
|
|
1277
|
+
* @param options.url - New URL.
|
|
1278
|
+
* @param options.existing - Optional cached item to avoid a GET.
|
|
1279
|
+
* @returns The updated context item.
|
|
1280
|
+
* @example
|
|
1281
|
+
* ```ts
|
|
1282
|
+
* const mgmt = new ModusManagement()
|
|
1283
|
+
* const item = await mgmt.context.updateLink('PLACEHOLDER_UID', {
|
|
1284
|
+
* title: 'Ops runbook (2025)',
|
|
1285
|
+
* })
|
|
1286
|
+
* ```
|
|
1287
|
+
*/
|
|
1288
|
+
updateLink(uid: string, options: {
|
|
1289
|
+
title?: string;
|
|
1290
|
+
url?: string;
|
|
1291
|
+
existing?: ContextItem;
|
|
1292
|
+
description?: string;
|
|
1293
|
+
userFeedback?: UserFeedback;
|
|
1294
|
+
topics?: string[];
|
|
1295
|
+
}): Promise<ContextItem>;
|
|
1296
|
+
/** @internal */
|
|
1297
|
+
private create;
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
type McpExposureCatalogRequest = components['schemas']['McpExposureCatalogRequestDto'];
|
|
1301
|
+
type McpExposureCatalog = components['schemas']['McpExposureCatalogResponseDto'];
|
|
1302
|
+
|
|
1303
|
+
/** Generated base for the management `scopes` resource. */
|
|
1304
|
+
declare class ScopesResourceBase {
|
|
1305
|
+
protected readonly http: HttpClient;
|
|
1306
|
+
protected readonly config: ModusConfig;
|
|
1307
|
+
/** @internal */
|
|
1308
|
+
constructor(http: HttpClient, config: ModusConfig);
|
|
1309
|
+
/**
|
|
1310
|
+
* List scopes.
|
|
1311
|
+
*
|
|
1312
|
+
* Returns a paginated page of scopes the caller can at least `use`. Scopes the caller cannot see
|
|
1313
|
+
* are filtered out. Pagination uses an opaque token returned in `nextPageToken`.
|
|
1314
|
+
*
|
|
1315
|
+
* **Requires:** `scopes:read`
|
|
1316
|
+
*
|
|
1317
|
+
* @param options.pageSize - Items per page. Defaults to 25.
|
|
1318
|
+
* @param options.pageToken - Opaque page token from a previous response's `nextPageToken`. Omit
|
|
1319
|
+
* for the first page.
|
|
1320
|
+
* @param options.search - Case-insensitive substring filter on scope name.
|
|
1321
|
+
* @param options.view - Variation view. `active` reads the deployed version, or the latest draft
|
|
1322
|
+
* when nothing is published. `draft` reads the latest builder snapshot. `published` reads only
|
|
1323
|
+
* the published version, and only scopes you can use.
|
|
1324
|
+
* @param options.managerId - Return only scopes supervised by this manager scope id.
|
|
1325
|
+
* @returns A page of scopes.
|
|
1326
|
+
*
|
|
1327
|
+
* @example
|
|
1328
|
+
* ```ts
|
|
1329
|
+
* const mgmt = new ModusManagement()
|
|
1330
|
+
* for await (const scope of (await mgmt.scopes.list()).autoPagingIter()) {
|
|
1331
|
+
* console.log(scope.id, scope.name, scope.status)
|
|
1332
|
+
* }
|
|
1333
|
+
* ```
|
|
1334
|
+
*/
|
|
1335
|
+
list(options?: {
|
|
1336
|
+
pageSize?: number;
|
|
1337
|
+
pageToken?: string;
|
|
1338
|
+
search?: string;
|
|
1339
|
+
view?: VariationView;
|
|
1340
|
+
managerId?: number;
|
|
1341
|
+
}): Promise<Page<Scope>>;
|
|
1342
|
+
protected listPage(pageSize: number, pageToken: string | undefined, search?: string, view?: VariationView, managerId?: number): Promise<Page<Scope>>;
|
|
1343
|
+
/**
|
|
1344
|
+
* Get a scope.
|
|
1345
|
+
*
|
|
1346
|
+
* Returns a scope. `view=active` (default) is the deployed version, or the latest draft when
|
|
1347
|
+
* nothing is published. `view=draft` is the latest edits. `view=published` is only the published
|
|
1348
|
+
* version, and only if you can use the scope. Returns 404 if you cannot access it.
|
|
1349
|
+
*
|
|
1350
|
+
* **Requires:** `scopes:read`
|
|
1351
|
+
*
|
|
1352
|
+
* @param scopeId - Numeric scope id.
|
|
1353
|
+
* @param options.view - Which version to read. Defaults to `active`. `published` is only the
|
|
1354
|
+
* published version, and only if you can use the scope.
|
|
1355
|
+
*
|
|
1356
|
+
* @example
|
|
1357
|
+
* ```ts
|
|
1358
|
+
* const mgmt = new ModusManagement()
|
|
1359
|
+
* const scope = await mgmt.scopes.get('PLACEHOLDER_SCOPE_ID')
|
|
1360
|
+
* console.log(scope.name, scope.status)
|
|
1361
|
+
* ```
|
|
1362
|
+
*/
|
|
1363
|
+
get(scopeId: number | string, options?: {
|
|
1364
|
+
view?: VariationView;
|
|
1365
|
+
}): Promise<Scope>;
|
|
1366
|
+
/**
|
|
1367
|
+
* Delete a scope.
|
|
1368
|
+
*
|
|
1369
|
+
* Deletes a scope. The scope can be restored later with POST /scopes/{id}/restore. Returns 404 if
|
|
1370
|
+
* the scope does not exist or is already deleted.
|
|
1371
|
+
*
|
|
1372
|
+
* **Requires:** `scopes:write`
|
|
1373
|
+
*
|
|
1374
|
+
* @param scopeId - Numeric scope id.
|
|
1116
1375
|
*
|
|
1117
|
-
* @param url - Link URL.
|
|
1118
|
-
* @param options.title - Optional display title.
|
|
1119
|
-
* @param options.isCrawl - When true, crawl linked pages into context.
|
|
1120
|
-
* @param options.pageLimit - Maximum pages to crawl when `isCrawl` is true.
|
|
1121
|
-
* @returns The created context item.
|
|
1122
1376
|
* @example
|
|
1123
1377
|
* ```ts
|
|
1124
1378
|
* const mgmt = new ModusManagement()
|
|
1125
|
-
*
|
|
1126
|
-
* title: 'Ops runbook',
|
|
1127
|
-
* })
|
|
1379
|
+
* await mgmt.scopes.delete('PLACEHOLDER_SCOPE_ID')
|
|
1128
1380
|
* ```
|
|
1129
1381
|
*/
|
|
1130
|
-
|
|
1131
|
-
title?: string;
|
|
1132
|
-
isCrawl?: boolean;
|
|
1133
|
-
pageLimit?: number;
|
|
1134
|
-
}): Promise<CreatedContextItem>;
|
|
1382
|
+
delete(scopeId: number | string): Promise<void>;
|
|
1135
1383
|
/**
|
|
1136
|
-
*
|
|
1384
|
+
* Preview MCP exposure catalog.
|
|
1137
1385
|
*
|
|
1138
|
-
*
|
|
1386
|
+
* Lists tools this scope can expose to MCP clients. A field you send replaces the current draft;
|
|
1387
|
+
* a field you omit stays as stored. Nothing is saved. Entries you cannot access are left out, and
|
|
1388
|
+
* stored selections on them are counted in hiddenSelectedCount.
|
|
1389
|
+
*
|
|
1390
|
+
* **Requires:** `scopes:write`
|
|
1391
|
+
*
|
|
1392
|
+
* @param scopeId - Numeric scope id.
|
|
1393
|
+
* @param request - Request body; see `McpExposureCatalogRequest`.
|
|
1139
1394
|
*
|
|
1140
|
-
* @param uid - Context item uid.
|
|
1141
|
-
* @param options.title - New display title.
|
|
1142
|
-
* @param options.url - New URL.
|
|
1143
|
-
* @param options.existing - Optional cached item to avoid a GET.
|
|
1144
|
-
* @returns The updated context item.
|
|
1145
1395
|
* @example
|
|
1146
1396
|
* ```ts
|
|
1147
|
-
* const
|
|
1148
|
-
*
|
|
1149
|
-
* title: 'Ops runbook (2025)',
|
|
1150
|
-
* })
|
|
1397
|
+
* const catalog = await mgmt.scopes.mcpExposureCatalog(42, {})
|
|
1398
|
+
* catalog.discoveryAllowed
|
|
1151
1399
|
* ```
|
|
1152
1400
|
*/
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1401
|
+
mcpExposureCatalog(scopeId: number | string, request: McpExposureCatalogRequest): Promise<McpExposureCatalog>;
|
|
1402
|
+
/**
|
|
1403
|
+
* Restore a deleted scope.
|
|
1404
|
+
*
|
|
1405
|
+
* Restores a previously deleted scope and returns it. Restoring a scope that is already active
|
|
1406
|
+
* returns it unchanged.
|
|
1407
|
+
*
|
|
1408
|
+
* **Requires:** `scopes:write`
|
|
1409
|
+
*
|
|
1410
|
+
* @param scopeId - Numeric scope id.
|
|
1411
|
+
*/
|
|
1412
|
+
restore(scopeId: number | string): Promise<Scope>;
|
|
1413
|
+
/**
|
|
1414
|
+
* Cancel ownership transfer.
|
|
1415
|
+
*
|
|
1416
|
+
* Cancels a pending ownership transfer. The current owner may cancel, the pending recipient may
|
|
1417
|
+
* decline, and for a scope with no owner an organization owner may cancel.
|
|
1418
|
+
*
|
|
1419
|
+
* **Requires:** `scopes:write`
|
|
1420
|
+
*
|
|
1421
|
+
* @param scopeId - Numeric scope id.
|
|
1422
|
+
*/
|
|
1423
|
+
cancelOwnershipTransfer(scopeId: number | string): Promise<Scope>;
|
|
1424
|
+
/**
|
|
1425
|
+
* Accept ownership transfer.
|
|
1426
|
+
*
|
|
1427
|
+
* Accepts a pending ownership transfer. Only the pending recipient may invoke this action.
|
|
1428
|
+
*
|
|
1429
|
+
* **Requires:** `scopes:write`
|
|
1430
|
+
*
|
|
1431
|
+
* @param scopeId - Numeric scope id.
|
|
1432
|
+
*/
|
|
1433
|
+
acceptOwnershipTransfer(scopeId: number | string): Promise<Scope>;
|
|
1163
1434
|
}
|
|
1164
1435
|
|
|
1165
1436
|
type JsonObjectInput = Record<string, unknown>;
|
|
1166
1437
|
type JsonObjectListInput = JsonObjectInput[];
|
|
1167
1438
|
|
|
1439
|
+
/** Channel restrictions for one integration connection's actions. */
|
|
1440
|
+
interface ToolsetRules {
|
|
1441
|
+
allowedChannelIds?: string[];
|
|
1442
|
+
allowedChannelNames?: Record<string, string>;
|
|
1443
|
+
}
|
|
1444
|
+
/** Operation names granted on one connection, without path or project suffixes. */
|
|
1445
|
+
interface ToolsetSlot {
|
|
1446
|
+
actions: string[];
|
|
1447
|
+
rules?: ToolsetRules;
|
|
1448
|
+
}
|
|
1449
|
+
/** Integration grants keyed by the explicit, lowercase connection UUID. */
|
|
1450
|
+
interface PlatformToolsetEntry {
|
|
1451
|
+
byConnection: Record<string, ToolsetSlot>;
|
|
1452
|
+
}
|
|
1168
1453
|
/**
|
|
1169
|
-
* Skill toolset wire object
|
|
1170
|
-
*
|
|
1171
|
-
*
|
|
1172
|
-
*
|
|
1173
|
-
*
|
|
1174
|
-
*
|
|
1175
|
-
*
|
|
1454
|
+
* Skill toolset wire object, keyed by catalog platform or nonintegration tool name.
|
|
1455
|
+
* Integration values use `PlatformToolsetEntry`; SQL platforms grant `query`.
|
|
1456
|
+
* General tools, MCP, Pipedream and Coding retain their own formats.
|
|
1457
|
+
* The API validates known keys and values; this matches its open-map schema.
|
|
1458
|
+
*
|
|
1459
|
+
* @example
|
|
1460
|
+
* ```ts
|
|
1461
|
+
* const toolset: ToolsetInput = {
|
|
1462
|
+
* postgresql: {
|
|
1463
|
+
* byConnection: {
|
|
1464
|
+
* '11111111-1111-4111-8111-111111111111': { actions: ['query'] },
|
|
1465
|
+
* },
|
|
1466
|
+
* } satisfies PlatformToolsetEntry,
|
|
1467
|
+
* memory: { enabled: true },
|
|
1468
|
+
* }
|
|
1469
|
+
* ```
|
|
1176
1470
|
*/
|
|
1177
1471
|
type ToolsetInput = Record<string, unknown>;
|
|
1178
1472
|
|
|
@@ -1181,18 +1475,25 @@ type MemorySearchRequest = components['schemas']['SearchMemoriesRequestDto'];
|
|
|
1181
1475
|
type MemoryUpdate = components['schemas']['UpdateMemoryRequestDto'];
|
|
1182
1476
|
type MemorySearchResult = components['schemas']['ListMemoriesResponseDto'];
|
|
1183
1477
|
|
|
1184
|
-
/**
|
|
1185
|
-
declare class
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1478
|
+
/** Generated base for the management `scopes.memories` resource. */
|
|
1479
|
+
declare class ScopesMemoriesResourceBase {
|
|
1480
|
+
protected readonly http: HttpClient;
|
|
1481
|
+
protected readonly config: ModusConfig;
|
|
1482
|
+
protected readonly scopeId: number | string;
|
|
1483
|
+
/** @internal */
|
|
1189
1484
|
constructor(http: HttpClient, config: ModusConfig, scopeId: number | string);
|
|
1190
1485
|
/**
|
|
1191
|
-
* List memories
|
|
1486
|
+
* List scope memories.
|
|
1192
1487
|
*
|
|
1193
|
-
*
|
|
1194
|
-
*
|
|
1195
|
-
*
|
|
1488
|
+
* Returns a page of the scope’s memories (up to 1000 total). Pass `nextPageToken` as `pageToken`
|
|
1489
|
+
* to fetch the next page. Optional `userId` filters to one end user.
|
|
1490
|
+
*
|
|
1491
|
+
* **Requires:** `scopes:read`
|
|
1492
|
+
*
|
|
1493
|
+
* @param options.pageSize - Items per page. Defaults to 25.
|
|
1494
|
+
* @param options.pageToken - Opaque page token from a previous response's `nextPageToken`. Omit
|
|
1495
|
+
* for the first page.
|
|
1496
|
+
* @param options.userId - Narrow results to memories tagged with this end-user id.
|
|
1196
1497
|
* @returns A page of memories.
|
|
1197
1498
|
*/
|
|
1198
1499
|
list(options?: {
|
|
@@ -1200,87 +1501,211 @@ declare class ScopeMemoriesResource {
|
|
|
1200
1501
|
pageToken?: string;
|
|
1201
1502
|
userId?: string;
|
|
1202
1503
|
}): Promise<Page<Memory>>;
|
|
1203
|
-
|
|
1504
|
+
protected listPage(pageSize: number, pageToken: string | undefined, userId?: string): Promise<Page<Memory>>;
|
|
1204
1505
|
/**
|
|
1205
|
-
* Search
|
|
1506
|
+
* Search scope memories.
|
|
1206
1507
|
*
|
|
1207
|
-
*
|
|
1208
|
-
*
|
|
1508
|
+
* Returns memories ranked by semantic similarity to the supplied `query`. Caller must at least
|
|
1509
|
+
* `use` the scope. Optional `userId` and `limit` body fields narrow the result set (legacy parity
|
|
1510
|
+
* with `search-memories`).
|
|
1511
|
+
*
|
|
1512
|
+
* **Requires:** `scopes:read`
|
|
1513
|
+
*
|
|
1514
|
+
* @param request - Request body; see `MemorySearchRequest`.
|
|
1209
1515
|
*/
|
|
1210
1516
|
search(request: MemorySearchRequest): Promise<MemorySearchResult>;
|
|
1211
1517
|
/**
|
|
1212
|
-
* Update
|
|
1518
|
+
* Update a memory.
|
|
1519
|
+
*
|
|
1520
|
+
* Updates one memory. Supply at least one of `memory` or `metadata`. Use `updateMask` to limit
|
|
1521
|
+
* which fields change.
|
|
1522
|
+
*
|
|
1523
|
+
* **Requires:** `scopes:write`
|
|
1213
1524
|
*
|
|
1214
|
-
* @param memoryId -
|
|
1215
|
-
* @param update -
|
|
1216
|
-
* @param options.updateMask -
|
|
1217
|
-
*
|
|
1525
|
+
* @param memoryId - Opaque memory id as returned by the list / search endpoints.
|
|
1526
|
+
* @param update - Request body; see `MemoryUpdate`.
|
|
1527
|
+
* @param options.updateMask - Comma-separated list of fields to update. Omit to update all
|
|
1528
|
+
* provided fields.
|
|
1218
1529
|
*/
|
|
1219
1530
|
update(memoryId: string, update: MemoryUpdate, options?: {
|
|
1220
1531
|
updateMask?: string;
|
|
1221
|
-
}): Promise<
|
|
1222
|
-
/**
|
|
1532
|
+
}): Promise<void>;
|
|
1533
|
+
/**
|
|
1534
|
+
* Delete a memory.
|
|
1535
|
+
*
|
|
1536
|
+
* Deletes one memory. Returns 404 if the memory does not exist or is already deleted.
|
|
1537
|
+
*
|
|
1538
|
+
* **Requires:** `scopes:write`
|
|
1539
|
+
*
|
|
1540
|
+
* @param memoryId - Opaque memory id as returned by the list / search endpoints.
|
|
1541
|
+
*/
|
|
1223
1542
|
delete(memoryId: string): Promise<void>;
|
|
1224
1543
|
}
|
|
1225
1544
|
|
|
1545
|
+
/** Long-term memory stored per scope. */
|
|
1546
|
+
declare class ScopeMemoriesResource extends ScopesMemoriesResourceBase {
|
|
1547
|
+
}
|
|
1548
|
+
|
|
1226
1549
|
type EvaluationConfig = components['schemas']['EvaluationConfigDto'];
|
|
1227
1550
|
type UpdateEvaluationConfig = components['schemas']['UpdateEvaluationConfigDto'];
|
|
1228
1551
|
type EvaluationRun = components['schemas']['EvaluationRunDto'];
|
|
1229
1552
|
type EvaluationRunWithResults = components['schemas']['EvaluationRunWithResultsDto'];
|
|
1230
1553
|
type TriggerEvaluationRunResponse = components['schemas']['TriggerEvaluationRunResponseDto'];
|
|
1554
|
+
type EvaluationCase = components['schemas']['EvaluationCaseDto'];
|
|
1555
|
+
type AddEvaluationCase = components['schemas']['EvaluationCaseInputDto'];
|
|
1556
|
+
type UpdateEvaluationCase = components['schemas']['UpdateEvaluationCaseDto'];
|
|
1231
1557
|
|
|
1232
|
-
/**
|
|
1233
|
-
declare class
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1558
|
+
/** Generated base for the management `scopes.evaluations` resource. */
|
|
1559
|
+
declare class ScopesEvaluationsResourceBase {
|
|
1560
|
+
protected readonly http: HttpClient;
|
|
1561
|
+
protected readonly config: ModusConfig;
|
|
1562
|
+
protected readonly scopeId: number | string;
|
|
1563
|
+
/** @internal */
|
|
1237
1564
|
constructor(http: HttpClient, config: ModusConfig, scopeId: number | string);
|
|
1238
|
-
/**
|
|
1565
|
+
/**
|
|
1566
|
+
* Get evaluation configuration.
|
|
1567
|
+
*
|
|
1568
|
+
* Returns the evaluation configuration for a scope, including judge settings, schedule cadence,
|
|
1569
|
+
* and notification preferences.
|
|
1570
|
+
*
|
|
1571
|
+
* **Requires:** `scopes:read`
|
|
1572
|
+
*/
|
|
1239
1573
|
getConfig(): Promise<EvaluationConfig>;
|
|
1240
1574
|
/**
|
|
1241
|
-
* Update
|
|
1575
|
+
* Update evaluation configuration.
|
|
1576
|
+
*
|
|
1577
|
+
* Updates the evaluation configuration for a scope. Changes to the schedule cadence are synced
|
|
1578
|
+
* automatically.
|
|
1242
1579
|
*
|
|
1243
|
-
*
|
|
1244
|
-
*
|
|
1580
|
+
* **Requires:** `scopes:write`
|
|
1581
|
+
*
|
|
1582
|
+
* @param update - Request body; see `UpdateEvaluationConfig`.
|
|
1245
1583
|
*/
|
|
1246
1584
|
updateConfig(update: UpdateEvaluationConfig): Promise<EvaluationConfig>;
|
|
1247
1585
|
/**
|
|
1248
|
-
* Trigger
|
|
1586
|
+
* Trigger evaluation run.
|
|
1587
|
+
*
|
|
1588
|
+
* Triggers a manual evaluation run for the scope. The run executes asynchronously.
|
|
1249
1589
|
*
|
|
1250
|
-
*
|
|
1590
|
+
* **Requires:** `scopes:write`
|
|
1591
|
+
*
|
|
1592
|
+
* @returns Evaluation run accepted and queued. The run executes asynchronously; poll `GET
|
|
1593
|
+
* /scopes/{id}/evaluations/runs/{runId}` for status.
|
|
1251
1594
|
*/
|
|
1252
1595
|
triggerRun(): Promise<TriggerEvaluationRunResponse>;
|
|
1253
1596
|
/**
|
|
1254
|
-
* List evaluation runs
|
|
1597
|
+
* List evaluation runs.
|
|
1255
1598
|
*
|
|
1256
|
-
*
|
|
1257
|
-
*
|
|
1258
|
-
*
|
|
1599
|
+
* Returns a paginated list of evaluation runs for the scope, ordered by most recent first.
|
|
1600
|
+
*
|
|
1601
|
+
* **Requires:** `scopes:read`
|
|
1602
|
+
*
|
|
1603
|
+
* @param options.pageSize - Items per page. Defaults to 25.
|
|
1604
|
+
* @param options.pageToken - Opaque page token from a previous response's `nextPageToken`. Omit
|
|
1605
|
+
* for the first page.
|
|
1606
|
+
* @returns A page of runs.
|
|
1259
1607
|
*/
|
|
1260
1608
|
listRuns(options?: {
|
|
1261
1609
|
pageSize?: number;
|
|
1262
1610
|
pageToken?: string;
|
|
1263
1611
|
}): Promise<Page<EvaluationRun>>;
|
|
1264
|
-
|
|
1612
|
+
protected listRunsPage(pageSize: number, pageToken: string | undefined): Promise<Page<EvaluationRun>>;
|
|
1265
1613
|
/**
|
|
1266
|
-
*
|
|
1614
|
+
* Get evaluation run.
|
|
1615
|
+
*
|
|
1616
|
+
* Returns details of an evaluation run including all per-case results.
|
|
1267
1617
|
*
|
|
1268
|
-
*
|
|
1269
|
-
*
|
|
1618
|
+
* **Requires:** `scopes:read`
|
|
1619
|
+
*
|
|
1620
|
+
* @param runId - Run ID.
|
|
1270
1621
|
*/
|
|
1271
1622
|
getRun(runId: string): Promise<EvaluationRunWithResults>;
|
|
1272
1623
|
}
|
|
1273
1624
|
|
|
1625
|
+
/** Scheduled and manual scope evaluations. */
|
|
1626
|
+
declare class ScopeEvaluationsResource extends ScopesEvaluationsResourceBase {
|
|
1627
|
+
/**
|
|
1628
|
+
* Add one evaluation case and return the stored case.
|
|
1629
|
+
*
|
|
1630
|
+
* @param input.task - What the scope should do. An empty string is allowed.
|
|
1631
|
+
* @param input.expectedOutput - What a correct result looks like. An empty string is allowed.
|
|
1632
|
+
* @param input.id - Stable id. Omit it and the client assigns one before the request, so a retry sends the same id.
|
|
1633
|
+
* @returns The stored evaluation case, including its id.
|
|
1634
|
+
* @throws ConflictError An evaluation case with this id already exists. A retry after the case was stored returns this error. An identical body is not treated as success.
|
|
1635
|
+
* @example
|
|
1636
|
+
* ```ts
|
|
1637
|
+
* const mgmt = new ModusManagement()
|
|
1638
|
+
* const added = await mgmt.scopes.evaluations(42).addCase({
|
|
1639
|
+
* task: "Summarize last quarter's revenue",
|
|
1640
|
+
* expectedOutput: 'A one-paragraph summary with the total',
|
|
1641
|
+
* })
|
|
1642
|
+
* console.log(added.id)
|
|
1643
|
+
* ```
|
|
1644
|
+
*/
|
|
1645
|
+
addCase(input: AddEvaluationCase): Promise<EvaluationCase>;
|
|
1646
|
+
/**
|
|
1647
|
+
* Change the task, the expected output, or both, for one evaluation case.
|
|
1648
|
+
*
|
|
1649
|
+
* @param caseId - Id of the case to change.
|
|
1650
|
+
* @param patch.task - Replacement task. Omit to leave it unchanged.
|
|
1651
|
+
* @param patch.expectedOutput - Replacement expected output. Omit to leave it unchanged.
|
|
1652
|
+
* @returns The evaluation case after the change.
|
|
1653
|
+
* @example
|
|
1654
|
+
* ```ts
|
|
1655
|
+
* const mgmt = new ModusManagement()
|
|
1656
|
+
* const updated = await mgmt.scopes.evaluations(42).updateCase('CASE_ID', {
|
|
1657
|
+
* task: 'Summarize revenue in two sentences',
|
|
1658
|
+
* })
|
|
1659
|
+
* console.log(updated.task)
|
|
1660
|
+
* ```
|
|
1661
|
+
*/
|
|
1662
|
+
updateCase(caseId: string, patch: UpdateEvaluationCase): Promise<EvaluationCase>;
|
|
1663
|
+
/**
|
|
1664
|
+
* Remove one evaluation case. The other cases stay as they are.
|
|
1665
|
+
*
|
|
1666
|
+
* @param caseId - Id of the case to remove.
|
|
1667
|
+
* @example
|
|
1668
|
+
* ```ts
|
|
1669
|
+
* const mgmt = new ModusManagement()
|
|
1670
|
+
* await mgmt.scopes.evaluations(42).deleteCase('CASE_ID')
|
|
1671
|
+
* ```
|
|
1672
|
+
*/
|
|
1673
|
+
deleteCase(caseId: string): Promise<void>;
|
|
1674
|
+
}
|
|
1675
|
+
|
|
1676
|
+
/** Generated base for the management `scopes.interfaces` resource. */
|
|
1677
|
+
declare class ScopesInterfacesResourceBase {
|
|
1678
|
+
protected readonly http: HttpClient;
|
|
1679
|
+
protected readonly config: ModusConfig;
|
|
1680
|
+
protected readonly scopeId: number | string;
|
|
1681
|
+
/** @internal */
|
|
1682
|
+
constructor(http: HttpClient, config: ModusConfig, scopeId: number | string);
|
|
1683
|
+
/**
|
|
1684
|
+
* List the chat interfaces of a scope.
|
|
1685
|
+
*
|
|
1686
|
+
* Returns the chat interfaces (at most one per chat platform) that let people use this scope from
|
|
1687
|
+
* chat. Requires manage permission on the scope, because the config lists allowed emails.
|
|
1688
|
+
*
|
|
1689
|
+
* **Requires:** `scopes:read`
|
|
1690
|
+
*/
|
|
1691
|
+
list(): Promise<ScopeInterface[]>;
|
|
1692
|
+
/**
|
|
1693
|
+
* Remove a scope interface.
|
|
1694
|
+
*
|
|
1695
|
+
* Removes one chat interface from the scope. Mentions on that chat platform stop reaching this
|
|
1696
|
+
* scope immediately.
|
|
1697
|
+
*
|
|
1698
|
+
* **Requires:** `scopes:write`
|
|
1699
|
+
*
|
|
1700
|
+
* @param interfaceId - Interface id (UUID).
|
|
1701
|
+
*/
|
|
1702
|
+
delete(interfaceId: string): Promise<void>;
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1274
1705
|
type ScopeInterface = components['schemas']['ScopeInterfaceDto'];
|
|
1275
1706
|
type AddScopeInterface = components['schemas']['AddScopeInterfaceDto'];
|
|
1276
1707
|
type UpdateScopeInterface = components['schemas']['UpdateScopeInterfaceDto'];
|
|
1277
|
-
declare class ScopeInterfacesResource {
|
|
1278
|
-
private readonly http;
|
|
1279
|
-
private readonly config;
|
|
1280
|
-
private readonly scopeId;
|
|
1281
|
-
constructor(http: HttpClient, config: ModusConfig, scopeId: number | string);
|
|
1282
|
-
/** List the Slack and Microsoft Teams interfaces on this scope. */
|
|
1283
|
-
list(): Promise<ScopeInterface[]>;
|
|
1708
|
+
declare class ScopeInterfacesResource extends ScopesInterfacesResourceBase {
|
|
1284
1709
|
/**
|
|
1285
1710
|
* Add a Slack or Microsoft Teams interface to this scope.
|
|
1286
1711
|
*
|
|
@@ -1297,45 +1722,58 @@ declare class ScopeInterfacesResource {
|
|
|
1297
1722
|
* @returns The updated interface.
|
|
1298
1723
|
*/
|
|
1299
1724
|
update(interfaceId: string, options: UpdateScopeInterface, updateMask?: string): Promise<ScopeInterface>;
|
|
1300
|
-
/**
|
|
1301
|
-
* Remove an interface from this scope.
|
|
1302
|
-
*
|
|
1303
|
-
* @param interfaceId - Interface id.
|
|
1304
|
-
*/
|
|
1305
|
-
delete(interfaceId: string): Promise<void>;
|
|
1306
1725
|
}
|
|
1307
1726
|
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1727
|
+
/** Generated base for the management `scopes.supervision` resource. */
|
|
1728
|
+
declare class ScopesSupervisionResourceBase {
|
|
1729
|
+
protected readonly http: HttpClient;
|
|
1730
|
+
protected readonly config: ModusConfig;
|
|
1731
|
+
protected readonly scopeId: number | string;
|
|
1732
|
+
/** @internal */
|
|
1314
1733
|
constructor(http: HttpClient, config: ModusConfig, scopeId: number | string);
|
|
1315
1734
|
/**
|
|
1316
|
-
*
|
|
1735
|
+
* Read the scope subordinate supervision list.
|
|
1736
|
+
*
|
|
1737
|
+
* Returns the list of subordinate scope ids managed by this scope. `?view=active` (default) reads
|
|
1738
|
+
* the deployed supervision set; `?view=draft` reads the most recent builder snapshot. Returns 404
|
|
1739
|
+
* when the caller cannot at least `use` the scope.
|
|
1740
|
+
*
|
|
1741
|
+
* **Requires:** `scopes:read`
|
|
1317
1742
|
*
|
|
1318
|
-
* @param options.view -
|
|
1319
|
-
* @returns The supervision configuration.
|
|
1743
|
+
* @param options.view - Which variation snapshot to read. Defaults to `active`.
|
|
1320
1744
|
*/
|
|
1321
1745
|
get(options?: {
|
|
1322
|
-
view?:
|
|
1746
|
+
view?: SupervisionView;
|
|
1323
1747
|
}): Promise<Supervision>;
|
|
1324
1748
|
/**
|
|
1325
|
-
* Replace
|
|
1749
|
+
* Replace draft subordinate supervision list.
|
|
1750
|
+
*
|
|
1751
|
+
* Writes the supplied subordinate id list into the draft variation. Replaces the previous list
|
|
1752
|
+
* fully — supply an empty array to clear all subordinates. Requires manage permission on the
|
|
1753
|
+
* supervisor; the change is not visible to runners until the scope is deployed.
|
|
1326
1754
|
*
|
|
1327
|
-
*
|
|
1328
|
-
*
|
|
1755
|
+
* **Requires:** `scopes:write`
|
|
1756
|
+
*
|
|
1757
|
+
* @param request - Request body; see `SetSupervisionRequest`.
|
|
1329
1758
|
*/
|
|
1330
1759
|
set(request: SetSupervisionRequest): Promise<Supervision>;
|
|
1331
1760
|
/**
|
|
1332
|
-
* Replace
|
|
1761
|
+
* Replace active subordinate supervision list.
|
|
1762
|
+
*
|
|
1763
|
+
* Writes directly into the active variation supervision set, bypassing the draft deploy cycle.
|
|
1764
|
+
* Requires `scopes:write` plus manage permission on the supervisor. Use to correct a live
|
|
1765
|
+
* supervision graph without going through the builder.
|
|
1333
1766
|
*
|
|
1334
|
-
*
|
|
1335
|
-
*
|
|
1767
|
+
* **Requires:** `scopes:write`
|
|
1768
|
+
*
|
|
1769
|
+
* @param request - Request body; see `SetSupervisionRequest`.
|
|
1336
1770
|
*/
|
|
1337
1771
|
setActive(request: SetSupervisionRequest): Promise<Supervision>;
|
|
1338
|
-
|
|
1772
|
+
}
|
|
1773
|
+
|
|
1774
|
+
type Supervision = components['schemas']['SupervisionDto'];
|
|
1775
|
+
type SetSupervisionRequest = components['schemas']['SetSupervisionRequestDto'];
|
|
1776
|
+
declare class ScopeSupervisionResource extends ScopesSupervisionResourceBase {
|
|
1339
1777
|
}
|
|
1340
1778
|
|
|
1341
1779
|
/** The canonical `/api/v1/scopes` management operationIds. */
|
|
@@ -1345,6 +1783,7 @@ interface ManagementScopesOperations {
|
|
|
1345
1783
|
readonly create: OperationId;
|
|
1346
1784
|
readonly update: OperationId;
|
|
1347
1785
|
readonly deploy: OperationId;
|
|
1786
|
+
readonly applySelectionOps: OperationId;
|
|
1348
1787
|
readonly delete: OperationId;
|
|
1349
1788
|
readonly restore: OperationId;
|
|
1350
1789
|
readonly requestOwnershipTransfer: OperationId;
|
|
@@ -1353,6 +1792,8 @@ interface ManagementScopesOperations {
|
|
|
1353
1792
|
readonly patchMcpConfig: OperationId;
|
|
1354
1793
|
readonly getVariation: OperationId;
|
|
1355
1794
|
}
|
|
1795
|
+
/** A connectionSet row from `scopes.get`, or a plain `{ connection_id, preferences }` object. */
|
|
1796
|
+
type ConnectionSetRowInput = components['schemas']['ConnectionSetItemDto'];
|
|
1356
1797
|
interface CreateScopeOptions {
|
|
1357
1798
|
name: string;
|
|
1358
1799
|
description?: string;
|
|
@@ -1360,7 +1801,7 @@ interface CreateScopeOptions {
|
|
|
1360
1801
|
instructions?: string[];
|
|
1361
1802
|
toolset?: ToolsetInput;
|
|
1362
1803
|
model?: string;
|
|
1363
|
-
connectionSet?:
|
|
1804
|
+
connectionSet?: ReadonlyArray<ConnectionSetRowInput>;
|
|
1364
1805
|
contextSelections?: JsonObjectListInput;
|
|
1365
1806
|
includeOwnLearnings?: boolean;
|
|
1366
1807
|
interfaces?: JsonObjectListInput;
|
|
@@ -1375,11 +1816,12 @@ interface UpdateScopeOptions {
|
|
|
1375
1816
|
instructions?: string[];
|
|
1376
1817
|
toolset?: ToolsetInput;
|
|
1377
1818
|
model?: string;
|
|
1378
|
-
connectionSet?:
|
|
1819
|
+
connectionSet?: ReadonlyArray<ConnectionSetRowInput>;
|
|
1379
1820
|
contextSelections?: JsonObjectListInput;
|
|
1380
1821
|
interfaces?: JsonObjectListInput;
|
|
1381
1822
|
guardrails?: string[];
|
|
1382
|
-
|
|
1823
|
+
/** Numeric id of the manager scope, or `null` to detach from the current manager. */
|
|
1824
|
+
managerId?: number | null;
|
|
1383
1825
|
evaluations?: JsonObjectListInput;
|
|
1384
1826
|
supervisionSubordinateDescriptions?: Record<string, string>;
|
|
1385
1827
|
updateMask?: string;
|
|
@@ -1391,12 +1833,8 @@ type UpdateSkillOptions = UpdateScopeOptions;
|
|
|
1391
1833
|
*
|
|
1392
1834
|
* Call path: `mgmt.scopes` after `new ModusManagement(...)`.
|
|
1393
1835
|
*/
|
|
1394
|
-
declare class ManagementScopesResource {
|
|
1395
|
-
private readonly http;
|
|
1396
|
-
private readonly config;
|
|
1836
|
+
declare class ManagementScopesResource extends ScopesResourceBase {
|
|
1397
1837
|
protected readonly ops: ManagementScopesOperations;
|
|
1398
|
-
/** @internal */
|
|
1399
|
-
constructor(http: HttpClient, config: ModusConfig);
|
|
1400
1838
|
/**
|
|
1401
1839
|
* Conversations for a scope.
|
|
1402
1840
|
*
|
|
@@ -1432,47 +1870,6 @@ declare class ManagementScopesResource {
|
|
|
1432
1870
|
* @returns An interfaces resource scoped to the scope.
|
|
1433
1871
|
*/
|
|
1434
1872
|
interfaces(scopeId: number | string): ScopeInterfacesResource;
|
|
1435
|
-
/**
|
|
1436
|
-
* List scopes in the organization.
|
|
1437
|
-
*
|
|
1438
|
-
* @param options.pageSize - Maximum items per page (default 25).
|
|
1439
|
-
* @param options.pageToken - Token from a previous page's `nextPageToken`; omit for the first page.
|
|
1440
|
-
* @param options.search - Case-insensitive substring filter on the scope name.
|
|
1441
|
-
* @param options.view - Variation view: `"active"` (deployed) or `"draft"`.
|
|
1442
|
-
* @param options.managerId - Return only scopes supervised by this manager scope id.
|
|
1443
|
-
* @returns A page of scopes — use `.autoPagingIter()` for all pages.
|
|
1444
|
-
* @example
|
|
1445
|
-
* ```ts
|
|
1446
|
-
* const mgmt = new ModusManagement()
|
|
1447
|
-
* for await (const scope of (await mgmt.scopes.list()).autoPagingIter()) {
|
|
1448
|
-
* console.log(scope.id, scope.name, scope.status)
|
|
1449
|
-
* }
|
|
1450
|
-
* ```
|
|
1451
|
-
*/
|
|
1452
|
-
list(options?: {
|
|
1453
|
-
pageSize?: number;
|
|
1454
|
-
pageToken?: string;
|
|
1455
|
-
search?: string;
|
|
1456
|
-
view?: VariationView;
|
|
1457
|
-
managerId?: number;
|
|
1458
|
-
}): Promise<Page<Scope>>;
|
|
1459
|
-
private listPage;
|
|
1460
|
-
/**
|
|
1461
|
-
* Retrieve a scope with full configuration.
|
|
1462
|
-
*
|
|
1463
|
-
* @param scopeId - Scope id.
|
|
1464
|
-
* @param options.view - Variation view: `"active"` (deployed) or `"draft"`.
|
|
1465
|
-
* @returns The scope.
|
|
1466
|
-
* @example
|
|
1467
|
-
* ```ts
|
|
1468
|
-
* const mgmt = new ModusManagement()
|
|
1469
|
-
* const scope = await mgmt.scopes.get('PLACEHOLDER_SCOPE_ID')
|
|
1470
|
-
* console.log(scope.name, scope.status)
|
|
1471
|
-
* ```
|
|
1472
|
-
*/
|
|
1473
|
-
get(scopeId: number | string, options?: {
|
|
1474
|
-
view?: VariationView;
|
|
1475
|
-
}): Promise<Scope>;
|
|
1476
1873
|
/**
|
|
1477
1874
|
* Create a new scope in the organization.
|
|
1478
1875
|
*
|
|
@@ -1496,10 +1893,13 @@ declare class ManagementScopesResource {
|
|
|
1496
1893
|
* Update a scope's configuration.
|
|
1497
1894
|
*
|
|
1498
1895
|
* Only the fields you pass are changed. To clear a field, name it in
|
|
1499
|
-
* `updateMask` (comma-separated field names) and leave its argument unset
|
|
1896
|
+
* `updateMask` (comma-separated field names) and leave its argument unset:
|
|
1897
|
+
* it is sent as `null`.
|
|
1500
1898
|
*
|
|
1501
|
-
* @param scopeId -
|
|
1899
|
+
* @param scopeId - Numeric scope id.
|
|
1502
1900
|
* @param options.guardrails - Guardrail labels to set. Fetches the current scope first to merge. Pass `[]` to clear all.
|
|
1901
|
+
* @param options.managerId - Numeric id of the manager scope to move this scope under, or `null`
|
|
1902
|
+
* to detach it. Send it alone: the server rejects it combined with other fields.
|
|
1503
1903
|
* @param options.updateMask - Comma-separated field names to update or clear.
|
|
1504
1904
|
* @returns The updated scope.
|
|
1505
1905
|
* @example
|
|
@@ -1526,27 +1926,39 @@ declare class ManagementScopesResource {
|
|
|
1526
1926
|
*/
|
|
1527
1927
|
deploy(scopeId: number | string): Promise<Scope>;
|
|
1528
1928
|
/**
|
|
1529
|
-
*
|
|
1929
|
+
* Apply selection changes to a scope.
|
|
1930
|
+
*
|
|
1931
|
+
* Pass `validateOnly: true` to run the same checks and return the scope that would
|
|
1932
|
+
* be saved, without writing. `selectRoot`, `deselectRoot`, and `setRootDeepRules`
|
|
1933
|
+
* are deprecated; send `setConnectionPreferences`.
|
|
1530
1934
|
*
|
|
1531
1935
|
* @param scopeId - Scope id.
|
|
1532
|
-
* @
|
|
1936
|
+
* @param ops - Selection changes, applied in order.
|
|
1937
|
+
* @param options.toolset - The scope toolset after the edit, when the edit changed it.
|
|
1938
|
+
* @param options.validateOnly - When true, check and return the planned scope without writing.
|
|
1939
|
+
* @returns The scope, or the scope that would be saved when `validateOnly` is true.
|
|
1533
1940
|
* @example
|
|
1534
1941
|
* ```ts
|
|
1535
1942
|
* const mgmt = new ModusManagement()
|
|
1536
|
-
* await mgmt.scopes.
|
|
1943
|
+
* const preview = await mgmt.scopes.applySelectionOps(42, [{
|
|
1944
|
+
* op: 'setConnectionPreferences',
|
|
1945
|
+
* connectionId: '11111111-1111-4111-8111-111111111111',
|
|
1946
|
+
* preferences: { schemaVersion: 2, mode: 'all', include: [], exclude: [] },
|
|
1947
|
+
* }], { validateOnly: true })
|
|
1948
|
+
* console.log(preview.id)
|
|
1537
1949
|
* ```
|
|
1538
1950
|
*/
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
* @param scopeId - Scope id.
|
|
1544
|
-
* @returns The restored scope.
|
|
1545
|
-
*/
|
|
1546
|
-
restore(scopeId: number | string): Promise<Scope>;
|
|
1951
|
+
applySelectionOps(scopeId: number | string, ops: ReadonlyArray<Record<string, unknown>>, options?: {
|
|
1952
|
+
toolset?: Record<string, unknown>;
|
|
1953
|
+
validateOnly?: boolean;
|
|
1954
|
+
}): Promise<Scope>;
|
|
1547
1955
|
/**
|
|
1548
1956
|
* Start transferring ownership of a scope to another organization member.
|
|
1549
1957
|
*
|
|
1958
|
+
* The current owner calls this, and the recipient accepts. A scope with no owner (one
|
|
1959
|
+
* created with a service-account token) can be given one by an organization owner;
|
|
1960
|
+
* assigning yourself takes effect at once.
|
|
1961
|
+
*
|
|
1550
1962
|
* @param scopeId - Scope id.
|
|
1551
1963
|
* @param options.newOwnerUserId - User id of the proposed new owner.
|
|
1552
1964
|
* @returns The scope with a pending ownership transfer.
|
|
@@ -1554,10 +1966,6 @@ declare class ManagementScopesResource {
|
|
|
1554
1966
|
requestOwnershipTransfer(scopeId: number | string, options: {
|
|
1555
1967
|
newOwnerUserId: string;
|
|
1556
1968
|
}): Promise<Scope>;
|
|
1557
|
-
/** Cancel a pending scope ownership transfer. */
|
|
1558
|
-
cancelOwnershipTransfer(scopeId: number | string): Promise<Scope>;
|
|
1559
|
-
/** Accept a pending scope ownership transfer. */
|
|
1560
|
-
acceptOwnershipTransfer(scopeId: number | string): Promise<Scope>;
|
|
1561
1969
|
/**
|
|
1562
1970
|
* Update MCP server configuration for a scope.
|
|
1563
1971
|
*
|
|
@@ -1580,13 +1988,37 @@ declare class ManagementScopesResource {
|
|
|
1580
1988
|
}
|
|
1581
1989
|
|
|
1582
1990
|
type UsageReport = components['schemas']['ListUsageResponseDto'];
|
|
1991
|
+
type UsageBucket = components['schemas']['UsageBucketDto'];
|
|
1992
|
+
type UsageTotals = components['schemas']['UsageTotalsDto'];
|
|
1583
1993
|
type UsageRollup = 'hour' | 'day';
|
|
1584
1994
|
type UsageUsersReport = components['schemas']['ListUsageUsersResponseDto'];
|
|
1995
|
+
type UsageUser = components['schemas']['UsageUserDto'];
|
|
1585
1996
|
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1997
|
+
/** Generated base for the management `usage` resource. */
|
|
1998
|
+
declare class UsageResourceBase {
|
|
1999
|
+
protected readonly http: HttpClient;
|
|
2000
|
+
protected readonly config: ModusConfig;
|
|
2001
|
+
/** @internal */
|
|
1589
2002
|
constructor(http: HttpClient, config: ModusConfig);
|
|
2003
|
+
/**
|
|
2004
|
+
* List usage users.
|
|
2005
|
+
*
|
|
2006
|
+
* Returns the distinct acting-user emails that appear in your organization's LLM usage over the
|
|
2007
|
+
* `[since, until)` window. Feeds the usage page's user filter (includes non-Modus Slack/Teams
|
|
2008
|
+
* users). Scoped to your organization.
|
|
2009
|
+
*
|
|
2010
|
+
* **Requires:** `usage:read`
|
|
2011
|
+
*
|
|
2012
|
+
* @param options.since - ISO8601 start of the query window (inclusive).
|
|
2013
|
+
* @param options.until - ISO8601 end of the query window (exclusive).
|
|
2014
|
+
*/
|
|
2015
|
+
listUsers(options: {
|
|
2016
|
+
since: string;
|
|
2017
|
+
until: string;
|
|
2018
|
+
}): Promise<UsageUsersReport>;
|
|
2019
|
+
}
|
|
2020
|
+
|
|
2021
|
+
declare class ManagementUsageResource extends UsageResourceBase {
|
|
1590
2022
|
/**
|
|
1591
2023
|
* List usage metrics for your organization over a time window.
|
|
1592
2024
|
*
|
|
@@ -1606,39 +2038,38 @@ declare class ManagementUsageResource {
|
|
|
1606
2038
|
model?: string;
|
|
1607
2039
|
userEmail?: readonly string[];
|
|
1608
2040
|
}): Promise<UsageReport>;
|
|
1609
|
-
/**
|
|
1610
|
-
* List distinct acting-user emails observed in a time window.
|
|
1611
|
-
*
|
|
1612
|
-
* @param options.since - Start of the window (ISO 8601, inclusive).
|
|
1613
|
-
* @param options.until - End of the window (ISO 8601, exclusive).
|
|
1614
|
-
* @returns User emails seen in usage during the window.
|
|
1615
|
-
* @throws {UnprocessableError} When the request is rejected by the API.
|
|
1616
|
-
* @throws {AuthenticationError} When the API key is invalid or missing.
|
|
1617
|
-
*/
|
|
1618
|
-
listUsers(options: {
|
|
1619
|
-
since: string;
|
|
1620
|
-
until: string;
|
|
1621
|
-
}): Promise<UsageUsersReport>;
|
|
1622
2041
|
}
|
|
1623
2042
|
|
|
1624
2043
|
type ToolCatalogEntry = components['schemas']['ToolCatalogEntryDto'];
|
|
1625
2044
|
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
2045
|
+
/** Generated base for the management `tools` resource. */
|
|
2046
|
+
declare class ToolsResourceBase {
|
|
2047
|
+
protected readonly http: HttpClient;
|
|
2048
|
+
protected readonly config: ModusConfig;
|
|
2049
|
+
/** @internal */
|
|
1629
2050
|
constructor(http: HttpClient, config: ModusConfig);
|
|
1630
2051
|
/**
|
|
1631
|
-
* List
|
|
2052
|
+
* List available tools.
|
|
2053
|
+
*
|
|
2054
|
+
* Returns a page of known tool/integration surfaces a scope can select in its toolset, with the
|
|
2055
|
+
* fixed actions for built-in tools.
|
|
1632
2056
|
*
|
|
1633
|
-
*
|
|
1634
|
-
*
|
|
1635
|
-
* @
|
|
2057
|
+
* **Requires:** `scopes:read`
|
|
2058
|
+
*
|
|
2059
|
+
* @param options.pageSize - Items per page. Defaults to 25.
|
|
2060
|
+
* @param options.pageToken - Opaque page token from a previous response's `nextPageToken`. Omit
|
|
2061
|
+
* for the first page.
|
|
2062
|
+
* @returns A page of tools.
|
|
1636
2063
|
*/
|
|
1637
2064
|
list(options?: {
|
|
1638
2065
|
pageSize?: number;
|
|
1639
2066
|
pageToken?: string;
|
|
1640
2067
|
}): Promise<Page<ToolCatalogEntry>>;
|
|
1641
|
-
|
|
2068
|
+
protected listPage(pageSize: number, pageToken: string | undefined): Promise<Page<ToolCatalogEntry>>;
|
|
2069
|
+
}
|
|
2070
|
+
|
|
2071
|
+
/** Browse the catalog of tool and integration surfaces a scope can select in its toolset. */
|
|
2072
|
+
declare class ManagementToolsResource extends ToolsResourceBase {
|
|
1642
2073
|
}
|
|
1643
2074
|
|
|
1644
2075
|
type MemberGroup = components['schemas']['MemberGroupDto'];
|
|
@@ -1670,4 +2101,4 @@ declare class ModusManagement extends ModusClientBase {
|
|
|
1670
2101
|
constructor(options?: ModusOptions);
|
|
1671
2102
|
}
|
|
1672
2103
|
|
|
1673
|
-
export { type AgentSelectionInput, type BulkUploadFromUrlsResult, type BulkUploadUrlsResult, ContextItemDeletion, ContextItemMove, type CreateAgentOptions, type CreateDashboardElementInput, type CreateDashboardInput, type CreateScopeOptions, type CreateSkillOptions, type CreateWorkflowOptions, type Dashboard, type DashboardDraftSnapshot, type DashboardElementKind, type DashboardElementLayout, type DashboardElementPatch, type DashboardElementResult, type DashboardElementSummary, type DashboardElementsList, type DashboardLayoutElement, type DashboardPublishResult, type DashboardVersion, type DashboardView, type FailedUploadFromUrl, type FailedUploadUrl, type FileUpload, type FileUploadStatus, type FinalizeInput, type Memory, type MemorySearchRequest, type MemorySearchResult, type MemoryUpdate, ModusManagement, ModusOptions, type PublishDashboardInput, type ToolsetInput, type TransferDashboardOwnershipInput, type TriggerInput, type UpdateAgentOptions, type UpdateDashboardAccessInput, type UpdateDashboardDraftInput, type UpdateDashboardElementInput, type UpdateDashboardLayoutInput, type UpdateScopeOptions, type UpdateSkillOptions, type UpdateWorkflowOptions, type UploadDirFailure, type UploadDirResult, type UploadFileInput, type UploadFromUrlInput, type UploadProgress, type UploadProgressCallback, type UploadUrlInput, type UploadUrlSlot, type UserFeedback, type WaitUntil, type WorkflowGraphInput };
|
|
2104
|
+
export { type AddAgentInterface, type AddEvaluationCase, type AddScopeInterface, type AgentInterface, type AgentSelectionInput, type BatchUploadOptions, type BulkFinalizeResult, type BulkUploadFromUrlsResult, type BulkUploadUrlsResult, ContextItemAccessUpdate, ContextItemDeletion, ContextItemMove, type CreateAgentOptions, type CreateDashboardElementInput, type CreateDashboardInput, type CreateScopeOptions, type CreateSkillOptions, type CreateWorkflowOptions, CreatedContextItem, type Dashboard, type DashboardDraftSnapshot, type DashboardElementKind, type DashboardElementLayout, type DashboardElementPatch, type DashboardElementResult, type DashboardElementSummary, type DashboardElementsList, type DashboardLayoutElement, type DashboardPublishResult, type DashboardVersion, type DashboardView, type EvaluationCase, type EvaluationConfig, type EvaluationRun, type EvaluationRunWithResults, type FailedUploadFromUrl, type FailedUploadUrl, type FileUpload, type FileUploadStatus, type FinalizeFailure, type FinalizeInput, type JsonObjectInput, type JsonObjectListInput, ManagementContextFilesResource, ManagementContextItemsResource, ManagementContextResource, ManagementDashboardElementsResource, ManagementDashboardsResource, ManagementScopesResource, ManagementToolsResource, ManagementUsageResource, ManagementUsersResource, ManagementWorkflowsResource, type McpExposureCatalog, type McpExposureCatalogRequest, type MemberGroup, type Memory, type MemorySearchRequest, type MemorySearchResult, type MemoryUpdate, ModusConfig, ModusManagement, ModusOptions, type OrgMember, type PlatformToolsetEntry, type PublishDashboardInput, ScopeEvaluationsResource, type ScopeInterface, ScopeInterfacesResource, ScopeMemoriesResource, ScopeSupervisionResource, type SetSupervisionRequest, type Supervision, type ToolCatalogEntry, type ToolsetInput, type ToolsetRules, type ToolsetSlot, type TransferDashboardOwnershipInput, type TriggerEvaluationRunResponse, type TriggerInput, type UpdateAgentInterface, type UpdateAgentOptions, UpdateContextItemAccessInput, type UpdateDashboardAccessInput, type UpdateDashboardDraftInput, type UpdateDashboardElementInput, type UpdateDashboardLayoutInput, type UpdateEvaluationCase, type UpdateEvaluationConfig, type UpdateScopeInterface, type UpdateScopeOptions, type UpdateSkillOptions, type UpdateWorkflowOptions, type UploadDirFailure, type UploadDirResult, type UploadFileInput, type UploadFromUrlInput, type UploadProgress, type UploadProgressCallback, type UploadUrlInput, type UploadUrlSlot, type UsageBucket, type UsageReport, type UsageRollup, type UsageTotals, type UsageUser, type UsageUsersReport, type UserFeedback, type WaitUntil, type WorkflowGraphInput, WorkflowInterfacesResource };
|