@getmodus/sdk 0.8.0 → 0.9.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 +26 -0
- package/dist/{chunk-GFS7CNON.js → chunk-SP4UYRYG.js} +58 -24
- package/dist/chunk-SP4UYRYG.js.map +1 -0
- package/dist/{conversations-COA6NW8I.d.cts → conversations-D7ffhHIh.d.cts} +380 -50
- package/dist/{conversations-COA6NW8I.d.ts → conversations-D7ffhHIh.d.ts} +380 -50
- package/dist/index.cjs +297 -201
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +182 -100
- package/dist/index.d.ts +182 -100
- package/dist/index.js +212 -150
- package/dist/index.js.map +1 -1
- package/dist/management/index.cjs +895 -624
- package/dist/management/index.cjs.map +1 -1
- package/dist/management/index.d.cts +644 -382
- package/dist/management/index.d.ts +644 -382
- package/dist/management/index.js +879 -642
- package/dist/management/index.js.map +1 -1
- package/package.json +8 -8
- package/dist/chunk-GFS7CNON.js.map +0 -1
|
@@ -1,15 +1,140 @@
|
|
|
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, a as Workflow, c as components, q as OperationId, C as ContextItem, m as ContextItemDeletion, n as ContextItemMove, d as CustomContextItemsResource, D as CreatedContextItem, S as Scope, h as ScopeConversationsResource, i as ModusClientBase, j as ModusOptions } from '../conversations-D7ffhHIh.cjs';
|
|
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 deployed; `draft` reads the latest builder
|
|
23
|
+
* snapshot.
|
|
24
|
+
* @param options.includeVariation - Include the requested variation payload (`trigger`,
|
|
25
|
+
* `workflowStructure`, `agentSelection`) on list rows.
|
|
26
|
+
* @returns A page of workflows.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* ```ts
|
|
30
|
+
* const mgmt = new ModusManagement()
|
|
31
|
+
* for await (const wf of (await mgmt.workflows.list({ search: 'digest' })).autoPagingIter()) {
|
|
32
|
+
* console.log(wf.id, wf.name, wf.status)
|
|
33
|
+
* }
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
list(options?: {
|
|
37
|
+
pageSize?: number;
|
|
38
|
+
pageToken?: string;
|
|
39
|
+
search?: string;
|
|
40
|
+
type?: WorkflowType;
|
|
41
|
+
view?: VariationView;
|
|
42
|
+
includeVariation?: boolean;
|
|
43
|
+
}): Promise<Page<Workflow>>;
|
|
44
|
+
protected listPage(pageSize: number, pageToken: string | undefined, search?: string, type?: WorkflowType, view?: VariationView, includeVariation?: boolean): Promise<Page<Workflow>>;
|
|
45
|
+
/**
|
|
46
|
+
* Delete a workflow.
|
|
47
|
+
*
|
|
48
|
+
* Deletes a workflow and stops its schedule. The workflow can be restored later with POST
|
|
49
|
+
* /workflows/{id}/restore. Deleting an already-deleted workflow is a no-op.
|
|
50
|
+
*
|
|
51
|
+
* **Requires:** `workflows:write`
|
|
52
|
+
*
|
|
53
|
+
* @param workflowId - Numeric workflow id.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* const mgmt = new ModusManagement()
|
|
58
|
+
* await mgmt.workflows.delete('PLACEHOLDER_WORKFLOW_ID')
|
|
59
|
+
* ```
|
|
60
|
+
*/
|
|
61
|
+
delete(workflowId: number | string): Promise<void>;
|
|
62
|
+
/**
|
|
63
|
+
* Restore a deleted workflow.
|
|
64
|
+
*
|
|
65
|
+
* Restores a previously deleted workflow and returns it. The workflow’s schedule is not resumed
|
|
66
|
+
* automatically — re-enable it if it should run again. Restoring an active workflow returns it
|
|
67
|
+
* unchanged.
|
|
68
|
+
*
|
|
69
|
+
* **Requires:** `workflows:write`
|
|
70
|
+
*
|
|
71
|
+
* @param workflowId - Numeric workflow id.
|
|
72
|
+
*/
|
|
73
|
+
restore(workflowId: number | string): Promise<Workflow>;
|
|
74
|
+
/**
|
|
75
|
+
* Cancel ownership transfer.
|
|
76
|
+
*
|
|
77
|
+
* Cancels a pending ownership transfer. The current owner may cancel; the pending recipient may
|
|
78
|
+
* decline.
|
|
79
|
+
*
|
|
80
|
+
* **Requires:** `workflows:write`
|
|
81
|
+
*
|
|
82
|
+
* @param workflowId - Numeric workflow id.
|
|
83
|
+
*/
|
|
84
|
+
cancelOwnershipTransfer(workflowId: number | string): Promise<Workflow>;
|
|
85
|
+
/**
|
|
86
|
+
* Accept ownership transfer.
|
|
87
|
+
*
|
|
88
|
+
* Accepts a pending ownership transfer. Only the pending recipient may invoke this action.
|
|
89
|
+
*
|
|
90
|
+
* **Requires:** `workflows:write`
|
|
91
|
+
*
|
|
92
|
+
* @param workflowId - Numeric workflow id.
|
|
93
|
+
*/
|
|
94
|
+
acceptOwnershipTransfer(workflowId: number | string): Promise<Workflow>;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/** Generated base for the management `workflows.interfaces` resource. */
|
|
98
|
+
declare class WorkflowsInterfacesResourceBase {
|
|
99
|
+
protected readonly http: HttpClient;
|
|
100
|
+
protected readonly config: ModusConfig;
|
|
101
|
+
protected readonly workflowId: number | string;
|
|
102
|
+
/** @internal */
|
|
103
|
+
constructor(http: HttpClient, config: ModusConfig, workflowId: number | string);
|
|
104
|
+
/**
|
|
105
|
+
* List interfaces attached to a workflow.
|
|
106
|
+
*
|
|
107
|
+
* Returns every Slack, MCP, or Teams interface bound to the workflow. Requires manage permission
|
|
108
|
+
* on the workflow.
|
|
109
|
+
*
|
|
110
|
+
* **Requires:** `workflows:read`
|
|
111
|
+
*/
|
|
112
|
+
list(): Promise<AgentInterface[]>;
|
|
113
|
+
/**
|
|
114
|
+
* Remove every interface from a workflow.
|
|
115
|
+
*
|
|
116
|
+
* Deletes all interface rows attached to the workflow. Useful when recreating the interface set
|
|
117
|
+
* from scratch.
|
|
118
|
+
*
|
|
119
|
+
* **Requires:** `workflows:write`
|
|
120
|
+
*/
|
|
121
|
+
deleteAll(): Promise<void>;
|
|
122
|
+
/**
|
|
123
|
+
* Remove a workflow interface.
|
|
124
|
+
*
|
|
125
|
+
* Deletes one interface row. For MCP interfaces, bound MCP tokens are revoked best-effort.
|
|
126
|
+
*
|
|
127
|
+
* **Requires:** `workflows:write`
|
|
128
|
+
*
|
|
129
|
+
* @param interfaceId - Interface row id (UUID).
|
|
130
|
+
*/
|
|
131
|
+
delete(interfaceId: string): Promise<void>;
|
|
132
|
+
}
|
|
2
133
|
|
|
3
134
|
type AgentInterface = components['schemas']['AgentInterfaceDto'];
|
|
4
135
|
type AddAgentInterface = components['schemas']['AddAgentInterfaceDto'];
|
|
5
136
|
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[]>;
|
|
137
|
+
declare class WorkflowInterfacesResource extends WorkflowsInterfacesResourceBase {
|
|
13
138
|
/**
|
|
14
139
|
* Add an interface to this workflow.
|
|
15
140
|
*
|
|
@@ -26,14 +151,6 @@ declare class WorkflowInterfacesResource {
|
|
|
26
151
|
* @returns The updated interface.
|
|
27
152
|
*/
|
|
28
153
|
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
154
|
}
|
|
38
155
|
|
|
39
156
|
type TriggerInput = Record<string, unknown>;
|
|
@@ -76,38 +193,8 @@ interface UpdateWorkflowOptions {
|
|
|
76
193
|
}
|
|
77
194
|
/** @deprecated Use `UpdateWorkflowOptions` instead. */
|
|
78
195
|
type UpdateAgentOptions = UpdateWorkflowOptions;
|
|
79
|
-
declare class ManagementWorkflowsResource {
|
|
80
|
-
private readonly http;
|
|
81
|
-
private readonly config;
|
|
196
|
+
declare class ManagementWorkflowsResource extends WorkflowsResourceBase {
|
|
82
197
|
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
198
|
/**
|
|
112
199
|
* Retrieve a workflow with full configuration.
|
|
113
200
|
*
|
|
@@ -186,25 +273,6 @@ declare class ManagementWorkflowsResource {
|
|
|
186
273
|
toggle(workflowId: number | string, options: {
|
|
187
274
|
active: boolean;
|
|
188
275
|
}): 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
276
|
/**
|
|
209
277
|
* Start transferring ownership of a workflow to another organization member.
|
|
210
278
|
*
|
|
@@ -215,10 +283,6 @@ declare class ManagementWorkflowsResource {
|
|
|
215
283
|
requestOwnershipTransfer(workflowId: number | string, options: {
|
|
216
284
|
newOwnerUserId: string;
|
|
217
285
|
}): 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
286
|
}
|
|
223
287
|
|
|
224
288
|
declare class ManagementContextItemsResource {
|
|
@@ -372,26 +436,144 @@ type UpdateDashboardAccessInput = components['schemas']['UpdateDashboardAccessDt
|
|
|
372
436
|
/** Input for `requestOwnershipTransfer()`. */
|
|
373
437
|
type TransferDashboardOwnershipInput = components['schemas']['TransferDashboardOwnershipDto'];
|
|
374
438
|
|
|
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;
|
|
439
|
+
/** Generated base for the management `context.dashboards` resource. */
|
|
440
|
+
declare class ContextDashboardsResourceBase {
|
|
441
|
+
protected readonly http: HttpClient;
|
|
442
|
+
protected readonly config: ModusConfig;
|
|
387
443
|
/** @internal */
|
|
388
|
-
constructor(http: HttpClient, config: ModusConfig
|
|
444
|
+
constructor(http: HttpClient, config: ModusConfig);
|
|
389
445
|
/**
|
|
390
|
-
*
|
|
446
|
+
* Delete a dashboard.
|
|
447
|
+
*
|
|
448
|
+
* Removes the dashboard from every listing and deletes its alert workflows. It cannot be restored
|
|
449
|
+
* through the API.
|
|
450
|
+
*
|
|
451
|
+
* **Requires:** `context:write`
|
|
452
|
+
*
|
|
453
|
+
* @param dashboardId - Dashboard id, as shown in the app URL.
|
|
454
|
+
*
|
|
455
|
+
* @example
|
|
456
|
+
* ```ts
|
|
457
|
+
* await mgmt.context.dashboards.delete('DASHBOARD_ID')
|
|
458
|
+
* ```
|
|
459
|
+
*/
|
|
460
|
+
delete(dashboardId: string): Promise<void>;
|
|
461
|
+
/**
|
|
462
|
+
* List dashboard draft snapshots.
|
|
463
|
+
*
|
|
464
|
+
* Returns ids and timestamps of the most recent draft snapshots. Editors only.
|
|
465
|
+
*
|
|
466
|
+
* **Requires:** `context:read`
|
|
467
|
+
*
|
|
468
|
+
* @param dashboardId - Dashboard id, as shown in the app URL.
|
|
469
|
+
*
|
|
470
|
+
* @example
|
|
471
|
+
* ```ts
|
|
472
|
+
* const snapshots = await mgmt.context.dashboards.listDraftSnapshots('DASHBOARD_ID')
|
|
473
|
+
* snapshots.map((snapshot) => snapshot.uid)
|
|
474
|
+
* ```
|
|
475
|
+
*/
|
|
476
|
+
listDraftSnapshots(dashboardId: string): Promise<DashboardDraftSnapshot[]>;
|
|
477
|
+
/**
|
|
478
|
+
* Cancel an ownership transfer.
|
|
479
|
+
*
|
|
480
|
+
* Owner only. Clears the pending transfer and returns the dashboard.
|
|
481
|
+
*
|
|
482
|
+
* **Requires:** `context:write`
|
|
483
|
+
*
|
|
484
|
+
* @param dashboardId - Dashboard id, as shown in the app URL.
|
|
485
|
+
*
|
|
486
|
+
* @example
|
|
487
|
+
* ```ts
|
|
488
|
+
* await mgmt.context.dashboards.cancelOwnershipTransfer('DASHBOARD_ID')
|
|
489
|
+
* ```
|
|
490
|
+
*/
|
|
491
|
+
cancelOwnershipTransfer(dashboardId: string): Promise<Dashboard>;
|
|
492
|
+
/**
|
|
493
|
+
* Accept an ownership transfer.
|
|
494
|
+
*
|
|
495
|
+
* Recipient only. Makes you the owner and clears the pending transfer.
|
|
496
|
+
*
|
|
497
|
+
* **Requires:** `context:write`
|
|
498
|
+
*
|
|
499
|
+
* @param dashboardId - Dashboard id, as shown in the app URL.
|
|
500
|
+
*
|
|
501
|
+
* @example
|
|
502
|
+
* ```ts
|
|
503
|
+
* await mgmt.context.dashboards.acceptOwnershipTransfer('DASHBOARD_ID')
|
|
504
|
+
* ```
|
|
505
|
+
*/
|
|
506
|
+
acceptOwnershipTransfer(dashboardId: string): Promise<Dashboard>;
|
|
507
|
+
/**
|
|
508
|
+
* List dashboard versions.
|
|
509
|
+
*
|
|
510
|
+
* Returns the published versions, newest first, each with its full definition. Draft snapshots
|
|
511
|
+
* are not included. The response is not paginated and can be large.
|
|
512
|
+
*
|
|
513
|
+
* **Requires:** `context:read`
|
|
514
|
+
*
|
|
515
|
+
* @param dashboardId - Dashboard id, as shown in the app URL.
|
|
516
|
+
*
|
|
517
|
+
* @example
|
|
518
|
+
* ```ts
|
|
519
|
+
* const versions = await mgmt.context.dashboards.listVersions('DASHBOARD_ID')
|
|
520
|
+
* versions.map((version) => [version.uid, version.versionNumber])
|
|
521
|
+
* ```
|
|
522
|
+
*/
|
|
523
|
+
listVersions(dashboardId: string): Promise<DashboardVersion[]>;
|
|
524
|
+
/**
|
|
525
|
+
* Get a dashboard version.
|
|
526
|
+
*
|
|
527
|
+
* Returns the dashboard as it was in the given version. For a draft snapshot (editors only) the
|
|
528
|
+
* view is reported as active and selectedVersion.versionNumber is null.
|
|
529
|
+
*
|
|
530
|
+
* **Requires:** `context:read`
|
|
531
|
+
*
|
|
532
|
+
* @param dashboardId - Dashboard id, as shown in the app URL.
|
|
533
|
+
* @param versionId - Version id, or a draft snapshot id for editors.
|
|
534
|
+
*
|
|
535
|
+
* @example
|
|
536
|
+
* ```ts
|
|
537
|
+
* const old = await mgmt.context.dashboards.getVersion('DASHBOARD_ID', 'VERSION_ID')
|
|
538
|
+
* old.selectedVersion.versionNumber
|
|
539
|
+
* ```
|
|
540
|
+
*/
|
|
541
|
+
getVersion(dashboardId: string, versionId: string): Promise<Dashboard>;
|
|
542
|
+
/**
|
|
543
|
+
* Restore a dashboard version.
|
|
544
|
+
*
|
|
545
|
+
* Replaces the current draft with the content of the given version. The outgoing draft is kept as
|
|
546
|
+
* a draft snapshot. Returns the draft view.
|
|
547
|
+
*
|
|
548
|
+
* **Requires:** `context:write`
|
|
549
|
+
*
|
|
550
|
+
* @param dashboardId - Dashboard id, as shown in the app URL.
|
|
551
|
+
* @param versionId - Version id, or a draft snapshot id for editors.
|
|
552
|
+
*
|
|
553
|
+
* @example
|
|
554
|
+
* ```ts
|
|
555
|
+
* await mgmt.context.dashboards.restoreVersion('DASHBOARD_ID', 'VERSION_ID')
|
|
556
|
+
* ```
|
|
557
|
+
*/
|
|
558
|
+
restoreVersion(dashboardId: string, versionId: string): Promise<Dashboard>;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
/** Generated base for the management `context.dashboards.elements` resource. */
|
|
562
|
+
declare class ContextDashboardsElementsResourceBase {
|
|
563
|
+
protected readonly http: HttpClient;
|
|
564
|
+
protected readonly config: ModusConfig;
|
|
565
|
+
protected readonly dashboardId: number | string;
|
|
566
|
+
/** @internal */
|
|
567
|
+
constructor(http: HttpClient, config: ModusConfig, dashboardId: number | string);
|
|
568
|
+
/**
|
|
569
|
+
* List dashboard elements.
|
|
570
|
+
*
|
|
571
|
+
* Lists every tile and filter on the dashboard draft with id, kind, title and layout. Filters
|
|
572
|
+
* also carry sqlReferences, the exact templates tile SQL must use to reference them. Returns the
|
|
573
|
+
* current draftRevision.
|
|
574
|
+
*
|
|
575
|
+
* **Requires:** `context:read`
|
|
391
576
|
*
|
|
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
577
|
* @example
|
|
396
578
|
* ```ts
|
|
397
579
|
* const listed = await mgmt.context.dashboards.elements('DASHBOARD_ID').list()
|
|
@@ -400,12 +582,15 @@ declare class ManagementDashboardElementsResource {
|
|
|
400
582
|
*/
|
|
401
583
|
list(): Promise<DashboardElementsList>;
|
|
402
584
|
/**
|
|
403
|
-
* Get
|
|
585
|
+
* Get a dashboard element.
|
|
586
|
+
*
|
|
587
|
+
* Returns the full draft configuration of one dashboard element, including SQL, chart settings
|
|
588
|
+
* and filter options, with the current draftRevision.
|
|
589
|
+
*
|
|
590
|
+
* **Requires:** `context:read`
|
|
591
|
+
*
|
|
592
|
+
* @param elementId - The dashboard element id to read.
|
|
404
593
|
*
|
|
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
594
|
* @example
|
|
410
595
|
* ```ts
|
|
411
596
|
* const result = await mgmt.context.dashboards.elements('DASHBOARD_ID').get('ELEMENT_ID')
|
|
@@ -413,6 +598,19 @@ declare class ManagementDashboardElementsResource {
|
|
|
413
598
|
* ```
|
|
414
599
|
*/
|
|
415
600
|
get(elementId: string): Promise<DashboardElementResult>;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
/**
|
|
604
|
+
* Tiles and filters on one dashboard draft.
|
|
605
|
+
*
|
|
606
|
+
* Call path: `mgmt.context.dashboards.elements(dashboardId)`.
|
|
607
|
+
*
|
|
608
|
+
* Every change takes the `draftRevision` it is based on as `expectedRevision`;
|
|
609
|
+
* a stale value is rejected with a `ConflictError`.
|
|
610
|
+
*/
|
|
611
|
+
declare class ManagementDashboardElementsResource extends ContextDashboardsElementsResourceBase {
|
|
612
|
+
/** @internal */
|
|
613
|
+
constructor(http: HttpClient, config: ModusConfig, dashboardId: string);
|
|
416
614
|
/**
|
|
417
615
|
* Add a blank tile or filter to the dashboard draft.
|
|
418
616
|
*
|
|
@@ -468,9 +666,7 @@ declare class ManagementDashboardElementsResource {
|
|
|
468
666
|
* - `elements(dashboardId)` — list, get, create and update tiles and filters.
|
|
469
667
|
* - `updateLayout(dashboardId, input)` — move or resize several elements at once.
|
|
470
668
|
*/
|
|
471
|
-
declare class ManagementDashboardsResource {
|
|
472
|
-
private readonly http;
|
|
473
|
-
private readonly config;
|
|
669
|
+
declare class ManagementDashboardsResource extends ContextDashboardsResourceBase {
|
|
474
670
|
/** @internal */
|
|
475
671
|
constructor(http: HttpClient, config: ModusConfig);
|
|
476
672
|
/**
|
|
@@ -569,80 +765,6 @@ declare class ManagementDashboardsResource {
|
|
|
569
765
|
* ```
|
|
570
766
|
*/
|
|
571
767
|
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
768
|
/**
|
|
647
769
|
* Replace who can open and edit a dashboard.
|
|
648
770
|
*
|
|
@@ -686,36 +808,6 @@ declare class ManagementDashboardsResource {
|
|
|
686
808
|
* ```
|
|
687
809
|
*/
|
|
688
810
|
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
811
|
/**
|
|
720
812
|
* Work with the tiles and filters of one dashboard draft.
|
|
721
813
|
*
|
|
@@ -809,6 +901,43 @@ interface BulkFinalizeResult {
|
|
|
809
901
|
failed: FinalizeFailure[];
|
|
810
902
|
}
|
|
811
903
|
|
|
904
|
+
/** Generated base for the management `context.files` resource. */
|
|
905
|
+
declare class ContextFilesResourceBase {
|
|
906
|
+
protected readonly http: HttpClient;
|
|
907
|
+
protected readonly config: ModusConfig;
|
|
908
|
+
/** @internal */
|
|
909
|
+
constructor(http: HttpClient, config: ModusConfig);
|
|
910
|
+
/**
|
|
911
|
+
* List file uploads.
|
|
912
|
+
*
|
|
913
|
+
* Returns a page of durable landed file uploads. Uploads that have not landed yet are visible via
|
|
914
|
+
* `GET /context/files/{uploadId}`, not this list.
|
|
915
|
+
*
|
|
916
|
+
* **Requires:** `context:read`
|
|
917
|
+
*
|
|
918
|
+
* @param options.pageSize - Items per page. Defaults to 50.
|
|
919
|
+
* @param options.pageToken - Opaque page token from a previous response's `nextPageToken`. Omit
|
|
920
|
+
* for the first page.
|
|
921
|
+
* @returns A page of files.
|
|
922
|
+
*/
|
|
923
|
+
list(options?: {
|
|
924
|
+
pageSize?: number;
|
|
925
|
+
pageToken?: string;
|
|
926
|
+
}): Promise<Page<FileUpload>>;
|
|
927
|
+
protected listPage(pageSize: number, pageToken: string | undefined): Promise<Page<FileUpload>>;
|
|
928
|
+
/**
|
|
929
|
+
* Get a file upload.
|
|
930
|
+
*
|
|
931
|
+
* Returns status + metadata for one upload. Prefers the durable landed context item; falls back
|
|
932
|
+
* to in-flight upload status while the object has not landed yet. 404 if neither exists.
|
|
933
|
+
*
|
|
934
|
+
* **Requires:** `context:read`
|
|
935
|
+
*
|
|
936
|
+
* @param uploadId - Upload id returned by `createUploadUrl` / `createUploadUrls`.
|
|
937
|
+
*/
|
|
938
|
+
get(uploadId: string): Promise<FileUpload>;
|
|
939
|
+
}
|
|
940
|
+
|
|
812
941
|
type BatchUploadOptions = {
|
|
813
942
|
concurrency?: number;
|
|
814
943
|
waitUntil?: WaitUntil;
|
|
@@ -824,9 +953,7 @@ type BatchUploadOptions = {
|
|
|
824
953
|
* - `createUploadUrl(s)`, `uploadFromUrl(s)`, `get`, `list` — raw operations.
|
|
825
954
|
* Hierarchy browsing is available through `mgmt.context.items.list`.
|
|
826
955
|
*/
|
|
827
|
-
declare class ManagementContextFilesResource {
|
|
828
|
-
private readonly http;
|
|
829
|
-
private readonly config;
|
|
956
|
+
declare class ManagementContextFilesResource extends ContextFilesResourceBase {
|
|
830
957
|
/** @internal */
|
|
831
958
|
constructor(http: HttpClient, config: ModusConfig);
|
|
832
959
|
/**
|
|
@@ -872,26 +999,6 @@ declare class ManagementContextFilesResource {
|
|
|
872
999
|
* failures for the rest — never a partial 4xx.
|
|
873
1000
|
*/
|
|
874
1001
|
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
1002
|
/**
|
|
896
1003
|
* Turn a file already PUT to a presigned URL into durable context.
|
|
897
1004
|
*
|
|
@@ -1162,6 +1269,117 @@ declare class ManagementContextResource {
|
|
|
1162
1269
|
private create;
|
|
1163
1270
|
}
|
|
1164
1271
|
|
|
1272
|
+
/** Generated base for the management `scopes` resource. */
|
|
1273
|
+
declare class ScopesResourceBase {
|
|
1274
|
+
protected readonly http: HttpClient;
|
|
1275
|
+
protected readonly config: ModusConfig;
|
|
1276
|
+
/** @internal */
|
|
1277
|
+
constructor(http: HttpClient, config: ModusConfig);
|
|
1278
|
+
/**
|
|
1279
|
+
* List scopes.
|
|
1280
|
+
*
|
|
1281
|
+
* Returns a paginated page of scopes the caller can at least `use`. Scopes the caller cannot see
|
|
1282
|
+
* are filtered out. Pagination uses an opaque token returned in `nextPageToken`.
|
|
1283
|
+
*
|
|
1284
|
+
* **Requires:** `scopes:read`
|
|
1285
|
+
*
|
|
1286
|
+
* @param options.pageSize - Items per page. Defaults to 25.
|
|
1287
|
+
* @param options.pageToken - Opaque page token from a previous response's `nextPageToken`. Omit
|
|
1288
|
+
* for the first page.
|
|
1289
|
+
* @param options.search - Case-insensitive substring filter on scope name.
|
|
1290
|
+
* @param options.view - Variation view. `active` reads deployed; `draft` reads the latest builder
|
|
1291
|
+
* snapshot.
|
|
1292
|
+
* @param options.managerId - Return only scopes supervised by this manager scope id.
|
|
1293
|
+
* @returns A page of scopes.
|
|
1294
|
+
*
|
|
1295
|
+
* @example
|
|
1296
|
+
* ```ts
|
|
1297
|
+
* const mgmt = new ModusManagement()
|
|
1298
|
+
* for await (const scope of (await mgmt.scopes.list()).autoPagingIter()) {
|
|
1299
|
+
* console.log(scope.id, scope.name, scope.status)
|
|
1300
|
+
* }
|
|
1301
|
+
* ```
|
|
1302
|
+
*/
|
|
1303
|
+
list(options?: {
|
|
1304
|
+
pageSize?: number;
|
|
1305
|
+
pageToken?: string;
|
|
1306
|
+
search?: string;
|
|
1307
|
+
view?: VariationView;
|
|
1308
|
+
managerId?: number;
|
|
1309
|
+
}): Promise<Page<Scope>>;
|
|
1310
|
+
protected listPage(pageSize: number, pageToken: string | undefined, search?: string, view?: VariationView, managerId?: number): Promise<Page<Scope>>;
|
|
1311
|
+
/**
|
|
1312
|
+
* Get a scope.
|
|
1313
|
+
*
|
|
1314
|
+
* Returns a scope. `view=active` (default) returns the deployed version; `view=draft` returns the
|
|
1315
|
+
* latest unpublished edits. Returns 404 if you cannot access the scope.
|
|
1316
|
+
*
|
|
1317
|
+
* **Requires:** `scopes:read`
|
|
1318
|
+
*
|
|
1319
|
+
* @param scopeId - Numeric scope id.
|
|
1320
|
+
* @param options.view - Which variation snapshot to read. Defaults to `active`.
|
|
1321
|
+
*
|
|
1322
|
+
* @example
|
|
1323
|
+
* ```ts
|
|
1324
|
+
* const mgmt = new ModusManagement()
|
|
1325
|
+
* const scope = await mgmt.scopes.get('PLACEHOLDER_SCOPE_ID')
|
|
1326
|
+
* console.log(scope.name, scope.status)
|
|
1327
|
+
* ```
|
|
1328
|
+
*/
|
|
1329
|
+
get(scopeId: number | string, options?: {
|
|
1330
|
+
view?: VariationView;
|
|
1331
|
+
}): Promise<Scope>;
|
|
1332
|
+
/**
|
|
1333
|
+
* Delete a scope.
|
|
1334
|
+
*
|
|
1335
|
+
* Deletes a scope. The scope can be restored later with POST /scopes/{id}/restore. Deleting an
|
|
1336
|
+
* already-deleted scope is a no-op.
|
|
1337
|
+
*
|
|
1338
|
+
* **Requires:** `scopes:write`
|
|
1339
|
+
*
|
|
1340
|
+
* @param scopeId - Numeric scope id.
|
|
1341
|
+
*
|
|
1342
|
+
* @example
|
|
1343
|
+
* ```ts
|
|
1344
|
+
* const mgmt = new ModusManagement()
|
|
1345
|
+
* await mgmt.scopes.delete('PLACEHOLDER_SCOPE_ID')
|
|
1346
|
+
* ```
|
|
1347
|
+
*/
|
|
1348
|
+
delete(scopeId: number | string): Promise<void>;
|
|
1349
|
+
/**
|
|
1350
|
+
* Restore a deleted scope.
|
|
1351
|
+
*
|
|
1352
|
+
* Restores a previously deleted scope and returns it. Restoring a scope that is already active
|
|
1353
|
+
* returns it unchanged.
|
|
1354
|
+
*
|
|
1355
|
+
* **Requires:** `scopes:write`
|
|
1356
|
+
*
|
|
1357
|
+
* @param scopeId - Numeric scope id.
|
|
1358
|
+
*/
|
|
1359
|
+
restore(scopeId: number | string): Promise<Scope>;
|
|
1360
|
+
/**
|
|
1361
|
+
* Cancel ownership transfer.
|
|
1362
|
+
*
|
|
1363
|
+
* Cancels a pending ownership transfer. The current owner may cancel; the pending recipient may
|
|
1364
|
+
* decline.
|
|
1365
|
+
*
|
|
1366
|
+
* **Requires:** `scopes:write`
|
|
1367
|
+
*
|
|
1368
|
+
* @param scopeId - Numeric scope id.
|
|
1369
|
+
*/
|
|
1370
|
+
cancelOwnershipTransfer(scopeId: number | string): Promise<Scope>;
|
|
1371
|
+
/**
|
|
1372
|
+
* Accept ownership transfer.
|
|
1373
|
+
*
|
|
1374
|
+
* Accepts a pending ownership transfer. Only the pending recipient may invoke this action.
|
|
1375
|
+
*
|
|
1376
|
+
* **Requires:** `scopes:write`
|
|
1377
|
+
*
|
|
1378
|
+
* @param scopeId - Numeric scope id.
|
|
1379
|
+
*/
|
|
1380
|
+
acceptOwnershipTransfer(scopeId: number | string): Promise<Scope>;
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1165
1383
|
type JsonObjectInput = Record<string, unknown>;
|
|
1166
1384
|
type JsonObjectListInput = JsonObjectInput[];
|
|
1167
1385
|
|
|
@@ -1181,18 +1399,25 @@ type MemorySearchRequest = components['schemas']['SearchMemoriesRequestDto'];
|
|
|
1181
1399
|
type MemoryUpdate = components['schemas']['UpdateMemoryRequestDto'];
|
|
1182
1400
|
type MemorySearchResult = components['schemas']['ListMemoriesResponseDto'];
|
|
1183
1401
|
|
|
1184
|
-
/**
|
|
1185
|
-
declare class
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1402
|
+
/** Generated base for the management `scopes.memories` resource. */
|
|
1403
|
+
declare class ScopesMemoriesResourceBase {
|
|
1404
|
+
protected readonly http: HttpClient;
|
|
1405
|
+
protected readonly config: ModusConfig;
|
|
1406
|
+
protected readonly scopeId: number | string;
|
|
1407
|
+
/** @internal */
|
|
1189
1408
|
constructor(http: HttpClient, config: ModusConfig, scopeId: number | string);
|
|
1190
1409
|
/**
|
|
1191
|
-
* List memories
|
|
1410
|
+
* List scope memories.
|
|
1192
1411
|
*
|
|
1193
|
-
*
|
|
1194
|
-
*
|
|
1195
|
-
*
|
|
1412
|
+
* Returns a page of the scope’s memories (up to 1000 total). Pass `nextPageToken` as `pageToken`
|
|
1413
|
+
* to fetch the next page. Optional `userId` filters to one end user.
|
|
1414
|
+
*
|
|
1415
|
+
* **Requires:** `scopes:read`
|
|
1416
|
+
*
|
|
1417
|
+
* @param options.pageSize - Items per page. Defaults to 25.
|
|
1418
|
+
* @param options.pageToken - Opaque page token from a previous response's `nextPageToken`. Omit
|
|
1419
|
+
* for the first page.
|
|
1420
|
+
* @param options.userId - Narrow results to memories tagged with this end-user id.
|
|
1196
1421
|
* @returns A page of memories.
|
|
1197
1422
|
*/
|
|
1198
1423
|
list(options?: {
|
|
@@ -1200,87 +1425,159 @@ declare class ScopeMemoriesResource {
|
|
|
1200
1425
|
pageToken?: string;
|
|
1201
1426
|
userId?: string;
|
|
1202
1427
|
}): Promise<Page<Memory>>;
|
|
1203
|
-
|
|
1428
|
+
protected listPage(pageSize: number, pageToken: string | undefined, userId?: string): Promise<Page<Memory>>;
|
|
1204
1429
|
/**
|
|
1205
|
-
* Search
|
|
1430
|
+
* Search scope memories.
|
|
1431
|
+
*
|
|
1432
|
+
* Returns memories ranked by semantic similarity to the supplied `query`. Caller must at least
|
|
1433
|
+
* `use` the scope. Optional `userId` and `limit` body fields narrow the result set (legacy parity
|
|
1434
|
+
* with `search-memories`).
|
|
1206
1435
|
*
|
|
1207
|
-
*
|
|
1208
|
-
*
|
|
1436
|
+
* **Requires:** `scopes:read`
|
|
1437
|
+
*
|
|
1438
|
+
* @param request - Request body; see `MemorySearchRequest`.
|
|
1209
1439
|
*/
|
|
1210
1440
|
search(request: MemorySearchRequest): Promise<MemorySearchResult>;
|
|
1211
1441
|
/**
|
|
1212
|
-
* Update
|
|
1442
|
+
* Update a memory.
|
|
1443
|
+
*
|
|
1444
|
+
* Updates one memory. Supply at least one of `memory` or `metadata`. Use `updateMask` to limit
|
|
1445
|
+
* which fields change.
|
|
1213
1446
|
*
|
|
1214
|
-
*
|
|
1215
|
-
*
|
|
1216
|
-
* @param
|
|
1217
|
-
* @
|
|
1447
|
+
* **Requires:** `scopes:write`
|
|
1448
|
+
*
|
|
1449
|
+
* @param memoryId - Opaque memory id as returned by the list / search endpoints.
|
|
1450
|
+
* @param update - Request body; see `MemoryUpdate`.
|
|
1451
|
+
* @param options.updateMask - Comma-separated list of fields to update. Omit to update all
|
|
1452
|
+
* provided fields.
|
|
1218
1453
|
*/
|
|
1219
1454
|
update(memoryId: string, update: MemoryUpdate, options?: {
|
|
1220
1455
|
updateMask?: string;
|
|
1221
1456
|
}): Promise<Memory>;
|
|
1222
|
-
/**
|
|
1457
|
+
/**
|
|
1458
|
+
* Delete a memory.
|
|
1459
|
+
*
|
|
1460
|
+
* Deletes one memory. Deleting an already-deleted memory is a no-op.
|
|
1461
|
+
*
|
|
1462
|
+
* **Requires:** `scopes:write`
|
|
1463
|
+
*
|
|
1464
|
+
* @param memoryId - Opaque memory id as returned by the list / search endpoints.
|
|
1465
|
+
*/
|
|
1223
1466
|
delete(memoryId: string): Promise<void>;
|
|
1224
1467
|
}
|
|
1225
1468
|
|
|
1469
|
+
/** Long-term memory stored per scope. */
|
|
1470
|
+
declare class ScopeMemoriesResource extends ScopesMemoriesResourceBase {
|
|
1471
|
+
}
|
|
1472
|
+
|
|
1226
1473
|
type EvaluationConfig = components['schemas']['EvaluationConfigDto'];
|
|
1227
1474
|
type UpdateEvaluationConfig = components['schemas']['UpdateEvaluationConfigDto'];
|
|
1228
1475
|
type EvaluationRun = components['schemas']['EvaluationRunDto'];
|
|
1229
1476
|
type EvaluationRunWithResults = components['schemas']['EvaluationRunWithResultsDto'];
|
|
1230
1477
|
type TriggerEvaluationRunResponse = components['schemas']['TriggerEvaluationRunResponseDto'];
|
|
1231
1478
|
|
|
1232
|
-
/**
|
|
1233
|
-
declare class
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1479
|
+
/** Generated base for the management `scopes.evaluations` resource. */
|
|
1480
|
+
declare class ScopesEvaluationsResourceBase {
|
|
1481
|
+
protected readonly http: HttpClient;
|
|
1482
|
+
protected readonly config: ModusConfig;
|
|
1483
|
+
protected readonly scopeId: number | string;
|
|
1484
|
+
/** @internal */
|
|
1237
1485
|
constructor(http: HttpClient, config: ModusConfig, scopeId: number | string);
|
|
1238
|
-
/**
|
|
1486
|
+
/**
|
|
1487
|
+
* Get evaluation configuration.
|
|
1488
|
+
*
|
|
1489
|
+
* Returns the evaluation configuration for a scope, including judge settings, schedule cadence,
|
|
1490
|
+
* and notification preferences.
|
|
1491
|
+
*
|
|
1492
|
+
* **Requires:** `scopes:read`
|
|
1493
|
+
*/
|
|
1239
1494
|
getConfig(): Promise<EvaluationConfig>;
|
|
1240
1495
|
/**
|
|
1241
|
-
* Update
|
|
1496
|
+
* Update evaluation configuration.
|
|
1497
|
+
*
|
|
1498
|
+
* Updates the evaluation configuration for a scope. Changes to the schedule cadence are synced
|
|
1499
|
+
* automatically.
|
|
1242
1500
|
*
|
|
1243
|
-
*
|
|
1244
|
-
*
|
|
1501
|
+
* **Requires:** `scopes:write`
|
|
1502
|
+
*
|
|
1503
|
+
* @param update - Request body; see `UpdateEvaluationConfig`.
|
|
1245
1504
|
*/
|
|
1246
1505
|
updateConfig(update: UpdateEvaluationConfig): Promise<EvaluationConfig>;
|
|
1247
1506
|
/**
|
|
1248
|
-
* Trigger
|
|
1507
|
+
* Trigger evaluation run.
|
|
1508
|
+
*
|
|
1509
|
+
* Triggers a manual evaluation run for the scope. The run executes asynchronously.
|
|
1249
1510
|
*
|
|
1250
|
-
*
|
|
1511
|
+
* **Requires:** `scopes:write`
|
|
1512
|
+
*
|
|
1513
|
+
* @returns Evaluation run accepted and queued. The run executes asynchronously; poll `GET
|
|
1514
|
+
* /scopes/{id}/evaluations/runs/{runId}` for status.
|
|
1251
1515
|
*/
|
|
1252
1516
|
triggerRun(): Promise<TriggerEvaluationRunResponse>;
|
|
1253
1517
|
/**
|
|
1254
|
-
* List evaluation runs
|
|
1518
|
+
* List evaluation runs.
|
|
1255
1519
|
*
|
|
1256
|
-
*
|
|
1257
|
-
*
|
|
1258
|
-
*
|
|
1520
|
+
* Returns a paginated list of evaluation runs for the scope, ordered by most recent first.
|
|
1521
|
+
*
|
|
1522
|
+
* **Requires:** `scopes:read`
|
|
1523
|
+
*
|
|
1524
|
+
* @param options.pageSize - Items per page. Defaults to 25.
|
|
1525
|
+
* @returns A page of runs.
|
|
1259
1526
|
*/
|
|
1260
1527
|
listRuns(options?: {
|
|
1261
1528
|
pageSize?: number;
|
|
1262
1529
|
pageToken?: string;
|
|
1263
1530
|
}): Promise<Page<EvaluationRun>>;
|
|
1264
|
-
|
|
1531
|
+
protected listRunsPage(pageSize: number, pageToken: string | undefined): Promise<Page<EvaluationRun>>;
|
|
1265
1532
|
/**
|
|
1266
|
-
*
|
|
1533
|
+
* Get evaluation run.
|
|
1534
|
+
*
|
|
1535
|
+
* Returns details of an evaluation run including all per-case results.
|
|
1267
1536
|
*
|
|
1268
|
-
*
|
|
1269
|
-
*
|
|
1537
|
+
* **Requires:** `scopes:read`
|
|
1538
|
+
*
|
|
1539
|
+
* @param runId - Run ID.
|
|
1270
1540
|
*/
|
|
1271
1541
|
getRun(runId: string): Promise<EvaluationRunWithResults>;
|
|
1272
1542
|
}
|
|
1273
1543
|
|
|
1544
|
+
/** Scheduled and manual scope evaluations. */
|
|
1545
|
+
declare class ScopeEvaluationsResource extends ScopesEvaluationsResourceBase {
|
|
1546
|
+
}
|
|
1547
|
+
|
|
1548
|
+
/** Generated base for the management `scopes.interfaces` resource. */
|
|
1549
|
+
declare class ScopesInterfacesResourceBase {
|
|
1550
|
+
protected readonly http: HttpClient;
|
|
1551
|
+
protected readonly config: ModusConfig;
|
|
1552
|
+
protected readonly scopeId: number | string;
|
|
1553
|
+
/** @internal */
|
|
1554
|
+
constructor(http: HttpClient, config: ModusConfig, scopeId: number | string);
|
|
1555
|
+
/**
|
|
1556
|
+
* List the chat interfaces of a scope.
|
|
1557
|
+
*
|
|
1558
|
+
* Returns the chat interfaces (at most one per chat platform) that let people use this scope from
|
|
1559
|
+
* chat. Requires manage permission on the scope, because the config lists allowed emails.
|
|
1560
|
+
*
|
|
1561
|
+
* **Requires:** `scopes:read`
|
|
1562
|
+
*/
|
|
1563
|
+
list(): Promise<ScopeInterface[]>;
|
|
1564
|
+
/**
|
|
1565
|
+
* Remove a scope interface.
|
|
1566
|
+
*
|
|
1567
|
+
* Removes one chat interface from the scope. Mentions on that chat platform stop reaching this
|
|
1568
|
+
* scope immediately.
|
|
1569
|
+
*
|
|
1570
|
+
* **Requires:** `scopes:write`
|
|
1571
|
+
*
|
|
1572
|
+
* @param interfaceId - Interface id (UUID).
|
|
1573
|
+
*/
|
|
1574
|
+
delete(interfaceId: string): Promise<void>;
|
|
1575
|
+
}
|
|
1576
|
+
|
|
1274
1577
|
type ScopeInterface = components['schemas']['ScopeInterfaceDto'];
|
|
1275
1578
|
type AddScopeInterface = components['schemas']['AddScopeInterfaceDto'];
|
|
1276
1579
|
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[]>;
|
|
1580
|
+
declare class ScopeInterfacesResource extends ScopesInterfacesResourceBase {
|
|
1284
1581
|
/**
|
|
1285
1582
|
* Add a Slack or Microsoft Teams interface to this scope.
|
|
1286
1583
|
*
|
|
@@ -1297,45 +1594,58 @@ declare class ScopeInterfacesResource {
|
|
|
1297
1594
|
* @returns The updated interface.
|
|
1298
1595
|
*/
|
|
1299
1596
|
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
1597
|
}
|
|
1307
1598
|
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1599
|
+
/** Generated base for the management `scopes.supervision` resource. */
|
|
1600
|
+
declare class ScopesSupervisionResourceBase {
|
|
1601
|
+
protected readonly http: HttpClient;
|
|
1602
|
+
protected readonly config: ModusConfig;
|
|
1603
|
+
protected readonly scopeId: number | string;
|
|
1604
|
+
/** @internal */
|
|
1314
1605
|
constructor(http: HttpClient, config: ModusConfig, scopeId: number | string);
|
|
1315
1606
|
/**
|
|
1316
|
-
*
|
|
1607
|
+
* Read the scope subordinate supervision list.
|
|
1608
|
+
*
|
|
1609
|
+
* Returns the list of subordinate scope ids managed by this scope. `?view=active` (default) reads
|
|
1610
|
+
* the deployed supervision set; `?view=draft` reads the most recent builder snapshot. Returns 404
|
|
1611
|
+
* when the caller cannot at least `use` the scope.
|
|
1317
1612
|
*
|
|
1318
|
-
*
|
|
1319
|
-
*
|
|
1613
|
+
* **Requires:** `scopes:read`
|
|
1614
|
+
*
|
|
1615
|
+
* @param options.view - Which variation snapshot to read. Defaults to `active`.
|
|
1320
1616
|
*/
|
|
1321
1617
|
get(options?: {
|
|
1322
1618
|
view?: VariationView;
|
|
1323
1619
|
}): Promise<Supervision>;
|
|
1324
1620
|
/**
|
|
1325
|
-
* Replace
|
|
1621
|
+
* Replace draft subordinate supervision list.
|
|
1622
|
+
*
|
|
1623
|
+
* Writes the supplied subordinate id list into the draft variation. Replaces the previous list
|
|
1624
|
+
* fully — supply an empty array to clear all subordinates. Requires manage permission on the
|
|
1625
|
+
* supervisor; the change is not visible to runners until the scope is deployed.
|
|
1326
1626
|
*
|
|
1327
|
-
*
|
|
1328
|
-
*
|
|
1627
|
+
* **Requires:** `scopes:write`
|
|
1628
|
+
*
|
|
1629
|
+
* @param request - Request body; see `SetSupervisionRequest`.
|
|
1329
1630
|
*/
|
|
1330
1631
|
set(request: SetSupervisionRequest): Promise<Supervision>;
|
|
1331
1632
|
/**
|
|
1332
|
-
* Replace
|
|
1633
|
+
* Replace active subordinate supervision list.
|
|
1634
|
+
*
|
|
1635
|
+
* Writes directly into the active variation supervision set, bypassing the draft deploy cycle.
|
|
1636
|
+
* Requires `scopes:write` plus manage permission on the supervisor. Use to correct a live
|
|
1637
|
+
* supervision graph without going through the builder.
|
|
1333
1638
|
*
|
|
1334
|
-
*
|
|
1335
|
-
*
|
|
1639
|
+
* **Requires:** `scopes:write`
|
|
1640
|
+
*
|
|
1641
|
+
* @param request - Request body; see `SetSupervisionRequest`.
|
|
1336
1642
|
*/
|
|
1337
1643
|
setActive(request: SetSupervisionRequest): Promise<Supervision>;
|
|
1338
|
-
|
|
1644
|
+
}
|
|
1645
|
+
|
|
1646
|
+
type Supervision = components['schemas']['SupervisionDto'];
|
|
1647
|
+
type SetSupervisionRequest = components['schemas']['SetSupervisionRequestDto'];
|
|
1648
|
+
declare class ScopeSupervisionResource extends ScopesSupervisionResourceBase {
|
|
1339
1649
|
}
|
|
1340
1650
|
|
|
1341
1651
|
/** The canonical `/api/v1/scopes` management operationIds. */
|
|
@@ -1391,12 +1701,8 @@ type UpdateSkillOptions = UpdateScopeOptions;
|
|
|
1391
1701
|
*
|
|
1392
1702
|
* Call path: `mgmt.scopes` after `new ModusManagement(...)`.
|
|
1393
1703
|
*/
|
|
1394
|
-
declare class ManagementScopesResource {
|
|
1395
|
-
private readonly http;
|
|
1396
|
-
private readonly config;
|
|
1704
|
+
declare class ManagementScopesResource extends ScopesResourceBase {
|
|
1397
1705
|
protected readonly ops: ManagementScopesOperations;
|
|
1398
|
-
/** @internal */
|
|
1399
|
-
constructor(http: HttpClient, config: ModusConfig);
|
|
1400
1706
|
/**
|
|
1401
1707
|
* Conversations for a scope.
|
|
1402
1708
|
*
|
|
@@ -1432,47 +1738,6 @@ declare class ManagementScopesResource {
|
|
|
1432
1738
|
* @returns An interfaces resource scoped to the scope.
|
|
1433
1739
|
*/
|
|
1434
1740
|
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
1741
|
/**
|
|
1477
1742
|
* Create a new scope in the organization.
|
|
1478
1743
|
*
|
|
@@ -1525,25 +1790,6 @@ declare class ManagementScopesResource {
|
|
|
1525
1790
|
* ```
|
|
1526
1791
|
*/
|
|
1527
1792
|
deploy(scopeId: number | string): Promise<Scope>;
|
|
1528
|
-
/**
|
|
1529
|
-
* Delete a scope.
|
|
1530
|
-
*
|
|
1531
|
-
* @param scopeId - Scope id.
|
|
1532
|
-
* @returns Resolves when the scope is deleted.
|
|
1533
|
-
* @example
|
|
1534
|
-
* ```ts
|
|
1535
|
-
* const mgmt = new ModusManagement()
|
|
1536
|
-
* await mgmt.scopes.delete('PLACEHOLDER_SCOPE_ID')
|
|
1537
|
-
* ```
|
|
1538
|
-
*/
|
|
1539
|
-
delete(scopeId: number | string): Promise<void>;
|
|
1540
|
-
/**
|
|
1541
|
-
* Restore a previously deleted scope.
|
|
1542
|
-
*
|
|
1543
|
-
* @param scopeId - Scope id.
|
|
1544
|
-
* @returns The restored scope.
|
|
1545
|
-
*/
|
|
1546
|
-
restore(scopeId: number | string): Promise<Scope>;
|
|
1547
1793
|
/**
|
|
1548
1794
|
* Start transferring ownership of a scope to another organization member.
|
|
1549
1795
|
*
|
|
@@ -1554,10 +1800,6 @@ declare class ManagementScopesResource {
|
|
|
1554
1800
|
requestOwnershipTransfer(scopeId: number | string, options: {
|
|
1555
1801
|
newOwnerUserId: string;
|
|
1556
1802
|
}): 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
1803
|
/**
|
|
1562
1804
|
* Update MCP server configuration for a scope.
|
|
1563
1805
|
*
|
|
@@ -1583,10 +1825,31 @@ type UsageReport = components['schemas']['ListUsageResponseDto'];
|
|
|
1583
1825
|
type UsageRollup = 'hour' | 'day';
|
|
1584
1826
|
type UsageUsersReport = components['schemas']['ListUsageUsersResponseDto'];
|
|
1585
1827
|
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1828
|
+
/** Generated base for the management `usage` resource. */
|
|
1829
|
+
declare class UsageResourceBase {
|
|
1830
|
+
protected readonly http: HttpClient;
|
|
1831
|
+
protected readonly config: ModusConfig;
|
|
1832
|
+
/** @internal */
|
|
1589
1833
|
constructor(http: HttpClient, config: ModusConfig);
|
|
1834
|
+
/**
|
|
1835
|
+
* List usage users.
|
|
1836
|
+
*
|
|
1837
|
+
* Returns the distinct acting-user emails that appear in your organization's LLM usage over the
|
|
1838
|
+
* `[since, until)` window. Feeds the usage page's user filter (includes non-Modus Slack/Teams
|
|
1839
|
+
* users). Scoped to your organization.
|
|
1840
|
+
*
|
|
1841
|
+
* **Requires:** `usage:read`
|
|
1842
|
+
*
|
|
1843
|
+
* @param options.since - ISO8601 start of the query window (inclusive).
|
|
1844
|
+
* @param options.until - ISO8601 end of the query window (exclusive).
|
|
1845
|
+
*/
|
|
1846
|
+
listUsers(options: {
|
|
1847
|
+
since: string;
|
|
1848
|
+
until: string;
|
|
1849
|
+
}): Promise<UsageUsersReport>;
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1852
|
+
declare class ManagementUsageResource extends UsageResourceBase {
|
|
1590
1853
|
/**
|
|
1591
1854
|
* List usage metrics for your organization over a time window.
|
|
1592
1855
|
*
|
|
@@ -1606,39 +1869,38 @@ declare class ManagementUsageResource {
|
|
|
1606
1869
|
model?: string;
|
|
1607
1870
|
userEmail?: readonly string[];
|
|
1608
1871
|
}): 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
1872
|
}
|
|
1623
1873
|
|
|
1624
1874
|
type ToolCatalogEntry = components['schemas']['ToolCatalogEntryDto'];
|
|
1625
1875
|
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1876
|
+
/** Generated base for the management `tools` resource. */
|
|
1877
|
+
declare class ToolsResourceBase {
|
|
1878
|
+
protected readonly http: HttpClient;
|
|
1879
|
+
protected readonly config: ModusConfig;
|
|
1880
|
+
/** @internal */
|
|
1629
1881
|
constructor(http: HttpClient, config: ModusConfig);
|
|
1630
1882
|
/**
|
|
1631
|
-
* List
|
|
1883
|
+
* List available tools.
|
|
1884
|
+
*
|
|
1885
|
+
* Returns a page of known tool/integration surfaces a scope can select in its toolset, with the
|
|
1886
|
+
* fixed actions for built-in tools.
|
|
1632
1887
|
*
|
|
1633
|
-
*
|
|
1634
|
-
*
|
|
1635
|
-
* @
|
|
1888
|
+
* **Requires:** `scopes:read`
|
|
1889
|
+
*
|
|
1890
|
+
* @param options.pageSize - Items per page. Defaults to 25.
|
|
1891
|
+
* @param options.pageToken - Opaque page token from a previous response's `nextPageToken`. Omit
|
|
1892
|
+
* for the first page.
|
|
1893
|
+
* @returns A page of tools.
|
|
1636
1894
|
*/
|
|
1637
1895
|
list(options?: {
|
|
1638
1896
|
pageSize?: number;
|
|
1639
1897
|
pageToken?: string;
|
|
1640
1898
|
}): Promise<Page<ToolCatalogEntry>>;
|
|
1641
|
-
|
|
1899
|
+
protected listPage(pageSize: number, pageToken: string | undefined): Promise<Page<ToolCatalogEntry>>;
|
|
1900
|
+
}
|
|
1901
|
+
|
|
1902
|
+
/** Browse the catalog of tool and integration surfaces a scope can select in its toolset. */
|
|
1903
|
+
declare class ManagementToolsResource extends ToolsResourceBase {
|
|
1642
1904
|
}
|
|
1643
1905
|
|
|
1644
1906
|
type MemberGroup = components['schemas']['MemberGroupDto'];
|