@getmodus/sdk 0.10.0 → 0.12.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 +45 -1
- package/README.md +8 -1
- package/dist/{_client-base-H5rt5EGy.d.cts → _client-base-DvrAQWuU.d.cts} +837 -114
- package/dist/{_client-base-H5rt5EGy.d.ts → _client-base-DvrAQWuU.d.ts} +837 -114
- package/dist/{chunk-BMYCORZF.js → chunk-3CKUUDEJ.js} +75 -12
- package/dist/chunk-3CKUUDEJ.js.map +1 -0
- package/dist/{chunk-NA3ZD35T.cjs → chunk-QHA3LF2Q.cjs} +75 -12
- package/dist/chunk-QHA3LF2Q.cjs.map +1 -0
- package/dist/index.cjs +167 -138
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +47 -17
- package/dist/index.d.ts +47 -17
- package/dist/index.js +47 -18
- package/dist/index.js.map +1 -1
- package/dist/management/index.cjs +274 -263
- package/dist/management/index.cjs.map +1 -1
- package/dist/management/index.d.cts +26 -7
- package/dist/management/index.d.ts +26 -7
- package/dist/management/index.js +18 -7
- package/dist/management/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-BMYCORZF.js.map +0 -1
- package/dist/chunk-NA3ZD35T.cjs.map +0 -1
|
@@ -147,6 +147,28 @@ interface paths {
|
|
|
147
147
|
patch?: never;
|
|
148
148
|
trace?: never;
|
|
149
149
|
};
|
|
150
|
+
"/api/v1/context/custom-items/batchDelete": {
|
|
151
|
+
parameters: {
|
|
152
|
+
query?: never;
|
|
153
|
+
header?: never;
|
|
154
|
+
path?: never;
|
|
155
|
+
cookie?: never;
|
|
156
|
+
};
|
|
157
|
+
get?: never;
|
|
158
|
+
put?: never;
|
|
159
|
+
/**
|
|
160
|
+
* Delete custom context items by source key
|
|
161
|
+
* @description Soft-deletes custom context items under `sourceId`, optionally narrowed by `collectionId` / `externalId`; integration items are never touched. Deletes only the targeted node unless `cascade`; `kind` picks entity or `entity_samples`. Up to 1000 items per call: when `truncated`, call again with `nextCursor`.
|
|
162
|
+
*
|
|
163
|
+
* **Requires:** `context:write`
|
|
164
|
+
*/
|
|
165
|
+
post: operations["CustomContextItemsController_batchDelete"];
|
|
166
|
+
delete?: never;
|
|
167
|
+
options?: never;
|
|
168
|
+
head?: never;
|
|
169
|
+
patch?: never;
|
|
170
|
+
trace?: never;
|
|
171
|
+
};
|
|
150
172
|
"/api/v1/context/custom-items/relations": {
|
|
151
173
|
parameters: {
|
|
152
174
|
query?: never;
|
|
@@ -761,6 +783,28 @@ interface paths {
|
|
|
761
783
|
patch?: never;
|
|
762
784
|
trace?: never;
|
|
763
785
|
};
|
|
786
|
+
"/api/v1/context/items/query": {
|
|
787
|
+
parameters: {
|
|
788
|
+
query?: never;
|
|
789
|
+
header?: never;
|
|
790
|
+
path?: never;
|
|
791
|
+
cookie?: never;
|
|
792
|
+
};
|
|
793
|
+
get?: never;
|
|
794
|
+
put?: never;
|
|
795
|
+
/**
|
|
796
|
+
* Query context items with SQL
|
|
797
|
+
* @description Runs one read-only SQL statement over the `context_items` table and returns its rows. The query sees only the items you can read. A query that is not read-only or not valid returns 400; one that runs past 20 s returns 422.
|
|
798
|
+
*
|
|
799
|
+
* **Requires:** `context:read`
|
|
800
|
+
*/
|
|
801
|
+
post: operations["ContextItemsQueryController_query"];
|
|
802
|
+
delete?: never;
|
|
803
|
+
options?: never;
|
|
804
|
+
head?: never;
|
|
805
|
+
patch?: never;
|
|
806
|
+
trace?: never;
|
|
807
|
+
};
|
|
764
808
|
"/api/v1/context/items/{uid}": {
|
|
765
809
|
parameters: {
|
|
766
810
|
query?: never;
|
|
@@ -810,7 +854,7 @@ interface paths {
|
|
|
810
854
|
head?: never;
|
|
811
855
|
/**
|
|
812
856
|
* Update context item access
|
|
813
|
-
* @description Replaces who can view and manage a note, saved query, link or
|
|
857
|
+
* @description Replaces who can view and manage a note, saved query, link, uploaded file or organization learning. With visibility shared, sharedWith is ignored; with private, groupPermissions is ignored. You cannot remove your own manage access. An item with no owner becomes yours. Other item types return 422.
|
|
814
858
|
*
|
|
815
859
|
* **Requires:** `context:write`
|
|
816
860
|
*/
|
|
@@ -828,7 +872,7 @@ interface paths {
|
|
|
828
872
|
put?: never;
|
|
829
873
|
/**
|
|
830
874
|
* Move a Files item
|
|
831
|
-
* @description Moves a live file or Files folder to an existing folder
|
|
875
|
+
* @description Moves a live file or Files folder to an existing folder by destinationFolderUid (null is the Files root), or to destinationFolderPath, creating missing folders. Same-parent moves are a no-op. Does not rename or merge folders.
|
|
832
876
|
*
|
|
833
877
|
* **Requires:** `context:write`
|
|
834
878
|
*/
|
|
@@ -1033,7 +1077,7 @@ interface paths {
|
|
|
1033
1077
|
put?: never;
|
|
1034
1078
|
/**
|
|
1035
1079
|
* Create a scope
|
|
1036
|
-
* @description Creates a draft scope you own
|
|
1080
|
+
* @description Creates a draft scope you own (org-shared use/manage), with own and org-wide learnings unless `includeOwnLearnings`/`includeOrgLearnings` is false or the selections name learnings or are context filters without a rule-based query. `connectionSet` entries name a connection and what the scope reads in it (`preferences`).
|
|
1037
1081
|
*
|
|
1038
1082
|
* **Requires:** `scopes:write`
|
|
1039
1083
|
*/
|
|
@@ -1071,7 +1115,7 @@ interface paths {
|
|
|
1071
1115
|
head?: never;
|
|
1072
1116
|
/**
|
|
1073
1117
|
* Update a scope
|
|
1074
|
-
* @description Updates the scope draft. `updateMask` limits which fields change. `managerId` alone moves or detaches the scope. `connectionSet` entries name a connection and what the scope reads in it (`preferences`)
|
|
1118
|
+
* @description Updates the scope draft. `updateMask` limits which fields change. `managerId` alone moves or detaches the scope. `connectionSet` entries name a connection and what the scope reads in it (`preferences`). Lists replace the stored list. Cannot remove your own access.
|
|
1075
1119
|
*
|
|
1076
1120
|
* **Requires:** `scopes:write`
|
|
1077
1121
|
*/
|
|
@@ -1132,7 +1176,7 @@ interface paths {
|
|
|
1132
1176
|
};
|
|
1133
1177
|
/**
|
|
1134
1178
|
* List scope conversations
|
|
1135
|
-
* @description Returns a page of conversation summaries (most recently updated first) for a scope. Use `id=0` for your cross-scope recent history. Optional `userId`, `toolName`, and `timeframe` filters apply. Pass `nextPageToken` as `pageToken`
|
|
1179
|
+
* @description Returns a page of conversation summaries (most recently updated first) for a scope. Use `id=0` for your cross-scope recent history. Optional `userId`, `toolName`, and `timeframe` filters apply. A conversation you took no part in shows only who took part and when. Pass `nextPageToken` as `pageToken` for the next page.
|
|
1136
1180
|
*
|
|
1137
1181
|
* **Requires:** `scopes:read`
|
|
1138
1182
|
*/
|
|
@@ -1154,7 +1198,7 @@ interface paths {
|
|
|
1154
1198
|
};
|
|
1155
1199
|
/**
|
|
1156
1200
|
* Get a conversation
|
|
1157
|
-
* @description Returns conversation messages in chronological order. Pass `messageLimit` to request a bounded message window. Use `id=0` for your cross-scope view.
|
|
1201
|
+
* @description Returns conversation messages in chronological order. Only a participant can read a conversation; anyone else gets 404. Pass `messageLimit` to request a bounded message window. Use `id=0` for your cross-scope view.
|
|
1158
1202
|
*
|
|
1159
1203
|
* **Requires:** `scopes:read`
|
|
1160
1204
|
*/
|
|
@@ -2391,8 +2435,8 @@ interface paths {
|
|
|
2391
2435
|
get?: never;
|
|
2392
2436
|
put?: never;
|
|
2393
2437
|
/**
|
|
2394
|
-
*
|
|
2395
|
-
* @description
|
|
2438
|
+
* Run a workflow
|
|
2439
|
+
* @description Triggers a run of the published workflow and streams its node output as Server-Sent Events. An empty body runs it with no input; send `message` to give it one. The run ends with `workflow_done`, whose `finalOutput` is the result. To continue a conversation, send your own `sessionId` and reuse it. Send Accept: application/json to poll instead of streaming.
|
|
2396
2440
|
*
|
|
2397
2441
|
* **Requires:** `workflows:invoke`
|
|
2398
2442
|
*/
|
|
@@ -2674,7 +2718,7 @@ interface components {
|
|
|
2674
2718
|
*/
|
|
2675
2719
|
AgentType: "task" | "workflow";
|
|
2676
2720
|
AgentVariationDto: {
|
|
2677
|
-
/** @description `trigger_type` is `schedule`, `webhook`, `api`, `slack`, or `manual`. `schedule` is present only for a schedule trigger. Null until a trigger is saved. */
|
|
2721
|
+
/** @description `trigger_type` is `schedule`, `webhook`, `api`, `slack`, `email`, or `manual`. `schedule` is present only for a schedule trigger. Null until a trigger is saved. */
|
|
2678
2722
|
trigger?: components["schemas"]["WorkflowTriggerResponseDto"] | null;
|
|
2679
2723
|
/** @description Workflow graph (`nodes` and `edges`) when `type` is `workflow`. Null when `type` is `task`. */
|
|
2680
2724
|
workflowStructure?: components["schemas"]["WorkflowStructureResponseDto"] | null;
|
|
@@ -2740,7 +2784,7 @@ interface components {
|
|
|
2740
2784
|
* @enum {string}
|
|
2741
2785
|
*/
|
|
2742
2786
|
statusReason?: "approval_timeout" | "agent_reported_issue";
|
|
2743
|
-
/** @description
|
|
2787
|
+
/** @description What started this run: `schedule`, `email`, `api`, `manual`, or the chat channel it came from. A run that did not record it shows the Workflow's current trigger type. */
|
|
2744
2788
|
triggerType?: string;
|
|
2745
2789
|
/** @description ISO-8601 start timestamp. */
|
|
2746
2790
|
startedAt?: string;
|
|
@@ -2761,7 +2805,7 @@ interface components {
|
|
|
2761
2805
|
*/
|
|
2762
2806
|
AutomationRunSource: "live-query" | "history";
|
|
2763
2807
|
BatchCreateCustomContextItemRelationsDto: {
|
|
2764
|
-
/** @description Relations to upsert. Idempotent by (fromUid, toUid, relationType); re-sending
|
|
2808
|
+
/** @description Relations to upsert. Idempotent by (fromUid, toUid, relationType); re-sending replaces edgeProperties. */
|
|
2765
2809
|
relations: components["schemas"]["CreateCustomContextItemRelationDto"][];
|
|
2766
2810
|
};
|
|
2767
2811
|
BatchCreateCustomContextItemRelationsResponseDto: {
|
|
@@ -2779,6 +2823,52 @@ interface components {
|
|
|
2779
2823
|
/** @description Custom context items created or updated by the batch. */
|
|
2780
2824
|
contextItems: components["schemas"]["CreatedCustomContextItemResponseDto"][];
|
|
2781
2825
|
};
|
|
2826
|
+
BatchDeleteCustomContextItemsDto: {
|
|
2827
|
+
/**
|
|
2828
|
+
* @description Customer-defined source to delete from. Required — a batch delete is always scoped to one source.
|
|
2829
|
+
* @example billing-db
|
|
2830
|
+
*/
|
|
2831
|
+
sourceId: string;
|
|
2832
|
+
/**
|
|
2833
|
+
* @description Narrow to one collection inside the source. Omit to target the whole source.
|
|
2834
|
+
* @example contracts
|
|
2835
|
+
*/
|
|
2836
|
+
collectionId?: string;
|
|
2837
|
+
/**
|
|
2838
|
+
* @description Narrow to one entity inside the collection. Requires `collectionId`.
|
|
2839
|
+
* @example contract-123
|
|
2840
|
+
*/
|
|
2841
|
+
externalId?: string;
|
|
2842
|
+
/**
|
|
2843
|
+
* @description Which kind of item to delete at the selected path, for a non-cascade delete. An entity and its `entity_samples` share a path, so this disambiguates them. Defaults to the metadata item at the selected level (`source`/`collection`/`entity`). Must match the selector depth. Ignored when `cascade` is true.
|
|
2844
|
+
* @example entity
|
|
2845
|
+
*/
|
|
2846
|
+
kind?: components["schemas"]["CustomContextItemKind"];
|
|
2847
|
+
/**
|
|
2848
|
+
* @description When `true`, also delete everything beneath the targeted node (its descendants). When `false` (default), delete only the targeted node itself, leaving descendants in place.
|
|
2849
|
+
* @default false
|
|
2850
|
+
*/
|
|
2851
|
+
cascade: boolean;
|
|
2852
|
+
/** @description Continuation cursor from a previous response `nextCursor`. Pass it to delete the next batch when a prior call was truncated. */
|
|
2853
|
+
cursor?: string;
|
|
2854
|
+
};
|
|
2855
|
+
BatchDeleteCustomContextItemsResponseDto: {
|
|
2856
|
+
/**
|
|
2857
|
+
* @description Number of custom context items soft-deleted by this request.
|
|
2858
|
+
* @example 8
|
|
2859
|
+
*/
|
|
2860
|
+
deletedCount: number;
|
|
2861
|
+
/**
|
|
2862
|
+
* @description True when more matching items were ahead of this batch; call again with `nextCursor` to continue the sweep.
|
|
2863
|
+
* @example false
|
|
2864
|
+
*/
|
|
2865
|
+
truncated: boolean;
|
|
2866
|
+
/**
|
|
2867
|
+
* @description Continuation cursor; pass as `cursor` to delete the next batch. `null` means no more matching items were ahead of the cursor at scan time. This is a forward pass, not a snapshot: items added, or recreated with a lower id, during the sweep are not guaranteed to be included — run a fresh pass (no cursor) to catch them.
|
|
2868
|
+
* @example null
|
|
2869
|
+
*/
|
|
2870
|
+
nextCursor: string | null;
|
|
2871
|
+
};
|
|
2782
2872
|
BulkFinalizeDto: {
|
|
2783
2873
|
/** @description Uploads to finalize. Max 100 per request. */
|
|
2784
2874
|
uploads: components["schemas"]["BulkFinalizeItemDto"][];
|
|
@@ -2991,12 +3081,6 @@ interface components {
|
|
|
2991
3081
|
* @example 11111111-1111-4111-8111-111111111111
|
|
2992
3082
|
*/
|
|
2993
3083
|
connection_id: string;
|
|
2994
|
-
/**
|
|
2995
|
-
* @deprecated
|
|
2996
|
-
* @description Deprecated. Use `preferences`. Path of one selected unit; an empty array selects the whole connection. Ignored when `preferences` is sent, required otherwise.
|
|
2997
|
-
* @example []
|
|
2998
|
-
*/
|
|
2999
|
-
path?: string[];
|
|
3000
3084
|
/**
|
|
3001
3085
|
* @description What the scope reads under this connection. `mode` `all` reads the whole connection; `manual` reads only the units its `include` rules select. `exclude` rules remove units in either mode. Each rule's `path` lists id steps `{type, by: "id", id}` from the connection down.
|
|
3002
3086
|
* @example {
|
|
@@ -3030,14 +3114,9 @@ interface components {
|
|
|
3030
3114
|
* ]
|
|
3031
3115
|
* }
|
|
3032
3116
|
*/
|
|
3033
|
-
preferences
|
|
3117
|
+
preferences: {
|
|
3034
3118
|
[key: string]: unknown;
|
|
3035
3119
|
};
|
|
3036
|
-
/**
|
|
3037
|
-
* @deprecated
|
|
3038
|
-
* @description Deprecated. Use `preferences` alone: the scope always reads context from its connections. Omit it; `false` is accepted only when the connection is already stored with `false`.
|
|
3039
|
-
*/
|
|
3040
|
-
context_enabled?: boolean;
|
|
3041
3120
|
};
|
|
3042
3121
|
ConnectionSetItemReadDto: {
|
|
3043
3122
|
/**
|
|
@@ -3046,13 +3125,7 @@ interface components {
|
|
|
3046
3125
|
*/
|
|
3047
3126
|
connection_id: string;
|
|
3048
3127
|
/**
|
|
3049
|
-
* @
|
|
3050
|
-
* @description Deprecated. Use `preferences`. One stored row per included path, derived from `preferences`; an empty array is the whole connection.
|
|
3051
|
-
* @example []
|
|
3052
|
-
*/
|
|
3053
|
-
path: string[];
|
|
3054
|
-
/**
|
|
3055
|
-
* @description What the scope reads under this connection. `mode` `all` reads the whole connection; `manual` reads only the units its `include` rules select. `exclude` rules remove units in either mode. Each rule's `path` lists id steps `{type, by: "id", id}` from the connection down. Present on the connection's first row. Absent on every row of a connection last saved without `preferences`, until the server converts it.
|
|
3128
|
+
* @description What the scope reads under this connection. `mode` `all` reads the whole connection; `manual` reads only the units its `include` rules select. `exclude` rules remove units in either mode. Each rule's `path` lists id steps `{type, by: "id", id}` from the connection down. Absent only on the entry of a deleted connection, whose `connection_id` is a placeholder (`00000000-0000-0000-0000-…`) and which grants nothing.
|
|
3056
3129
|
* @example {
|
|
3057
3130
|
* "mode": "manual",
|
|
3058
3131
|
* "include": [
|
|
@@ -3087,11 +3160,6 @@ interface components {
|
|
|
3087
3160
|
preferences?: {
|
|
3088
3161
|
[key: string]: unknown;
|
|
3089
3162
|
};
|
|
3090
|
-
/**
|
|
3091
|
-
* @deprecated
|
|
3092
|
-
* @description Deprecated. Use `preferences`. Whether the scope reads context from this connection: true, except on a few older entries kept for their tools only.
|
|
3093
|
-
*/
|
|
3094
|
-
context_enabled?: boolean;
|
|
3095
3163
|
};
|
|
3096
3164
|
ContentProjectionDto: {
|
|
3097
3165
|
/**
|
|
@@ -3275,6 +3343,11 @@ interface components {
|
|
|
3275
3343
|
messages: components["schemas"]["ConversationMessageDto"][];
|
|
3276
3344
|
/** @description Present only when a bounded message window was requested and honored. */
|
|
3277
3345
|
messageWindow?: components["schemas"]["ConversationMessageWindowDto"];
|
|
3346
|
+
/**
|
|
3347
|
+
* @description Identifier of the model the most recent turn ran on. Null when no turn recorded one. Absent when it could not be read, or on responses that predate the field.
|
|
3348
|
+
* @example claude-sonnet-5.5
|
|
3349
|
+
*/
|
|
3350
|
+
model?: string | null;
|
|
3278
3351
|
/**
|
|
3279
3352
|
* @description ISO-8601 timestamp of the first checkpoint for this thread.
|
|
3280
3353
|
* @example 2026-05-01T10:00:00.000Z
|
|
@@ -3299,22 +3372,22 @@ interface components {
|
|
|
3299
3372
|
*/
|
|
3300
3373
|
scopeId: number;
|
|
3301
3374
|
/**
|
|
3302
|
-
* @description Preview of the first user turn, used as a list-row caption. Falls back to a stable placeholder when the thread has no human turn yet.
|
|
3375
|
+
* @description Preview of the first user turn, used as a list-row caption. Falls back to a stable placeholder when the thread has no human turn yet. Empty when the caller did not take part in the conversation.
|
|
3303
3376
|
* @example Run the churn analysis for last 30 days.
|
|
3304
3377
|
*/
|
|
3305
3378
|
firstMessage: string;
|
|
3306
3379
|
/**
|
|
3307
|
-
* @description User-managed display title. Null until the user renames the conversation.
|
|
3380
|
+
* @description User-managed display title. Null until the user renames the conversation, and null when the caller did not take part in it.
|
|
3308
3381
|
* @example Q3 Revenue Analysis
|
|
3309
3382
|
*/
|
|
3310
3383
|
title: string | null;
|
|
3311
3384
|
/**
|
|
3312
|
-
* @description UI surface the conversation was started from (e.g. `context_chat`, `home`). Not constrained to the `RunSource` enum: historical rows carry legacy values. Null when unknown, absent on responses that predate the field.
|
|
3385
|
+
* @description UI surface the conversation was started from (e.g. `context_chat`, `home`). Not constrained to the `RunSource` enum: historical rows carry legacy values. Null when unknown or when the caller did not take part in the conversation, absent on responses that predate the field.
|
|
3313
3386
|
* @example context_chat
|
|
3314
3387
|
*/
|
|
3315
3388
|
source?: string | null;
|
|
3316
3389
|
/**
|
|
3317
|
-
* @description Total number of message turns in the (post-collapse) conversation.
|
|
3390
|
+
* @description Total number of message turns in the (post-collapse) conversation. 0 when the caller did not take part in it.
|
|
3318
3391
|
* @example 12
|
|
3319
3392
|
*/
|
|
3320
3393
|
messageCount: number;
|
|
@@ -3329,7 +3402,7 @@ interface components {
|
|
|
3329
3402
|
*/
|
|
3330
3403
|
updatedAt: string;
|
|
3331
3404
|
/**
|
|
3332
|
-
* @description Distinct tool names invoked across this conversation. Present only when `includeTools=true` is requested.
|
|
3405
|
+
* @description Distinct tool names invoked across this conversation. Present only when `includeTools=true` is requested and the caller took part in the conversation.
|
|
3333
3406
|
* @example [
|
|
3334
3407
|
* "sql_runner"
|
|
3335
3408
|
* ]
|
|
@@ -3342,6 +3415,11 @@ interface components {
|
|
|
3342
3415
|
* ]
|
|
3343
3416
|
*/
|
|
3344
3417
|
userIds: string[];
|
|
3418
|
+
/**
|
|
3419
|
+
* @description Whether the caller took part in this conversation. Only a participant can open, rename or download files from a conversation; for any other row the list carries only who took part and when.
|
|
3420
|
+
* @example true
|
|
3421
|
+
*/
|
|
3422
|
+
ownedByCaller?: boolean;
|
|
3345
3423
|
};
|
|
3346
3424
|
ConversationMessageDto: {
|
|
3347
3425
|
/**
|
|
@@ -3418,7 +3496,7 @@ interface components {
|
|
|
3418
3496
|
agentSelection?: components["schemas"]["AgentSelectionDto"];
|
|
3419
3497
|
/** @description Workflow graph (nodes + edges) when `type` is `workflow`. Unknown node/edge keys and out-of-enum node types are rejected with a 422. */
|
|
3420
3498
|
workflowStructure?: components["schemas"]["WorkflowStructureDto"];
|
|
3421
|
-
/** @description Access configuration. Omit to
|
|
3499
|
+
/** @description Access configuration. Omit to create the workflow private, with no group grants and no invitees; its creator can share it later. A service account token that omits it creates the workflow shared with the whole organization (use + manage), since it has no owner. */
|
|
3422
3500
|
accessConfig?: components["schemas"]["AgentAccessConfigDto"];
|
|
3423
3501
|
};
|
|
3424
3502
|
CreateCustomContextItemDto: {
|
|
@@ -3527,13 +3605,19 @@ interface components {
|
|
|
3527
3605
|
*/
|
|
3528
3606
|
toUid: string;
|
|
3529
3607
|
/**
|
|
3530
|
-
* @description Snake_case relation type describing how the source relates to the target.
|
|
3608
|
+
* @description Snake_case relation type describing how the source relates to the target. Reserved system types cannot be used: contains, reads, joins_with, has_context, has_feedback, filters_by, context_relation. Dotted names are also reserved.
|
|
3531
3609
|
* @example depends_on
|
|
3532
3610
|
*/
|
|
3533
3611
|
relationType: string;
|
|
3534
|
-
/**
|
|
3535
|
-
|
|
3536
|
-
|
|
3612
|
+
/**
|
|
3613
|
+
* @description Edge properties, replacing the previous map. Up to 100 keys matching ^[A-Za-z_][A-Za-z0-9_]{0,63}$ and 65536 UTF-8 JSON bytes; fromContextItemUid, toContextItemUid, relationType, createdAt and updatedAt are reserved. Values are strings, finite numbers, booleans, or arrays of those. Omission writes an empty map.
|
|
3614
|
+
* @example {
|
|
3615
|
+
* "version": "v1.1.8",
|
|
3616
|
+
* "source": "go.mod"
|
|
3617
|
+
* }
|
|
3618
|
+
*/
|
|
3619
|
+
edgeProperties?: {
|
|
3620
|
+
[key: string]: string | number | boolean | (string | number | boolean)[];
|
|
3537
3621
|
};
|
|
3538
3622
|
};
|
|
3539
3623
|
CreateDashboardDto: {
|
|
@@ -3662,7 +3746,7 @@ interface components {
|
|
|
3662
3746
|
*/
|
|
3663
3747
|
instructions?: string[];
|
|
3664
3748
|
/**
|
|
3665
|
-
* @description Map of tool key to configuration; unknown keys are rejected. Integrations require `<platform>.byConnection[connectionUuid] = { actions, rules? }`; actions are catalog action names and SQL platforms grant `query`. Flat entries, action-string arrays and retired keys are rejected with HTTP 422.
|
|
3749
|
+
* @description Map of tool key to configuration; unknown keys are rejected. Integrations require `<platform>.byConnection[connectionUuid] = { actions, rules? }`; actions are catalog action names and SQL platforms grant `query`. A platform people connect personally also takes `<platform>.personal = { actions, rules? }`, which runs on each runner’s own personal connection; a save that newly adds a personal connection's UUID to `byConnection` (or grants it new actions there) is rejected with HTTP 422. Flat entries, action-string arrays and retired keys are rejected with HTTP 422.
|
|
3666
3750
|
* @example {
|
|
3667
3751
|
* "slack": {
|
|
3668
3752
|
* "byConnection": {
|
|
@@ -3691,7 +3775,7 @@ interface components {
|
|
|
3691
3775
|
/** @description Model-specific runtime controls such as reasoning effort and context window. */
|
|
3692
3776
|
modelSettings?: components["schemas"]["ModelSettingsDto"];
|
|
3693
3777
|
/**
|
|
3694
|
-
* @description Connections this scope can use. Each entry names a connection and what the scope reads under it in `preferences`; `path
|
|
3778
|
+
* @description Connections this scope can use. Each entry names a connection and what the scope reads under it in `preferences`; an entry without `preferences`, or with `path`, is refused with 400 `legacy_entry`.
|
|
3695
3779
|
* @example [
|
|
3696
3780
|
* {
|
|
3697
3781
|
* "connection_id": "11111111-1111-4111-8111-111111111111",
|
|
@@ -3715,7 +3799,7 @@ interface components {
|
|
|
3715
3799
|
*/
|
|
3716
3800
|
connectionSet?: components["schemas"]["ConnectionSetItemDto"][];
|
|
3717
3801
|
/**
|
|
3718
|
-
* @description Selected context items (sources / docs) the scope may read. The scope's own learnings are added unless
|
|
3802
|
+
* @description Selected context items (sources / docs) the scope may read. The scope's own learnings and the org-wide learnings are added, each unless its include flag is false, when these selections neither mention learnings already nor are context filters without a rule-based query.
|
|
3719
3803
|
* @example []
|
|
3720
3804
|
*/
|
|
3721
3805
|
contextSelections?: {
|
|
@@ -3726,6 +3810,11 @@ interface components {
|
|
|
3726
3810
|
* @default true
|
|
3727
3811
|
*/
|
|
3728
3812
|
includeOwnLearnings: boolean;
|
|
3813
|
+
/**
|
|
3814
|
+
* @description Whether create adds the org-wide learnings path (`auto_generated:org`, what the organization taught Modus) to the scope's selections. Defaults to true, skipped when `contextSelections` already mention learnings or are context filters without a rule-based query; false only skips the addition, so selections naming the path still read it.
|
|
3815
|
+
* @default true
|
|
3816
|
+
*/
|
|
3817
|
+
includeOrgLearnings: boolean;
|
|
3729
3818
|
/** @description MCP interface rows for this scope. Each row has type mcp, an optional id and name, and a config of core tools and exposed integrations. Omitted id and name are assigned. */
|
|
3730
3819
|
interfaces?: components["schemas"]["ScopeMcpInterfaceInputDto"][];
|
|
3731
3820
|
/** @description Access configuration. Omit to use the default (full-org shared with use + manage). */
|
|
@@ -4501,7 +4590,7 @@ interface components {
|
|
|
4501
4590
|
* @enum {string}
|
|
4502
4591
|
*/
|
|
4503
4592
|
statusReason?: "approval_timeout" | "agent_reported_issue";
|
|
4504
|
-
/** @description
|
|
4593
|
+
/** @description What started this run: `schedule`, `email`, `api`, `manual`, or the chat channel it came from. */
|
|
4505
4594
|
triggerType?: string;
|
|
4506
4595
|
/** @description ISO-8601 start timestamp. */
|
|
4507
4596
|
startedAt?: string;
|
|
@@ -4529,6 +4618,10 @@ interface components {
|
|
|
4529
4618
|
}[];
|
|
4530
4619
|
/** @description Set when history was unavailable; `source` will be `live-query` in that case. */
|
|
4531
4620
|
historyUnavailableReason?: string;
|
|
4621
|
+
/** @description Files the run was started with, and files its trigger left out. Empty when there were none. */
|
|
4622
|
+
attachments?: components["schemas"]["WorkflowRunAttachmentDto"][];
|
|
4623
|
+
/** @description Where the run came from. */
|
|
4624
|
+
origin?: components["schemas"]["WorkflowRunOriginDto"];
|
|
4532
4625
|
};
|
|
4533
4626
|
GroupPermissionDto: {
|
|
4534
4627
|
/**
|
|
@@ -4910,7 +5003,7 @@ interface components {
|
|
|
4910
5003
|
* @description Kind of tool this row exposes.
|
|
4911
5004
|
* @enum {string}
|
|
4912
5005
|
*/
|
|
4913
|
-
McpExposureFamily: "integration_actions" | "custom_mcp" | "mcp_server" | "tool";
|
|
5006
|
+
McpExposureFamily: "integration_actions" | "custom_mcp" | "mcp_server" | "tool" | "personal";
|
|
4914
5007
|
McpToolExposureConfigDto: {
|
|
4915
5008
|
/**
|
|
4916
5009
|
* @description Exposure format. Always 1.
|
|
@@ -5036,10 +5129,15 @@ interface components {
|
|
|
5036
5129
|
};
|
|
5037
5130
|
MoveContextItemDto: {
|
|
5038
5131
|
/**
|
|
5039
|
-
* @description Stored context-item uid of an existing Files folder, or null to move to the Files root.
|
|
5132
|
+
* @description Stored context-item uid of an existing Files folder, or null to move to the Files root. Send this or destinationFolderPath, not both.
|
|
5040
5133
|
* @example null
|
|
5041
5134
|
*/
|
|
5042
|
-
destinationFolderUid
|
|
5135
|
+
destinationFolderUid?: string | null;
|
|
5136
|
+
/**
|
|
5137
|
+
* @description Root-relative destination folder path (for example `reports/2026`). Folders missing on the path are created; existing ones are reused. Send this or destinationFolderUid, not both.
|
|
5138
|
+
* @example reports/2026
|
|
5139
|
+
*/
|
|
5140
|
+
destinationFolderPath?: string;
|
|
5043
5141
|
};
|
|
5044
5142
|
MoveContextItemResponseDto: {
|
|
5045
5143
|
/**
|
|
@@ -5096,6 +5194,39 @@ interface components {
|
|
|
5096
5194
|
/** @description The version that was just published. */
|
|
5097
5195
|
version: components["schemas"]["DashboardVersionDto"];
|
|
5098
5196
|
};
|
|
5197
|
+
QueryContextItemsRequestDto: {
|
|
5198
|
+
/**
|
|
5199
|
+
* @description One read-only SQL statement (SELECT, WITH, UNION or VALUES) over the `context_items` table, whose columns are `uid`, `context_type`, `content`, `description`, `user_feedback`, `topics`, `connection_id`, `selection_id`, `data_path`, `created_at` and `updated_at`. Only the items you can read are visible to it.
|
|
5200
|
+
* @example SELECT context_type, count(*) AS items FROM context_items GROUP BY context_type ORDER BY items DESC
|
|
5201
|
+
*/
|
|
5202
|
+
sql: string;
|
|
5203
|
+
/** @description The most rows to return, 1,000 when omitted. A query with more returns this many and sets `truncated`. */
|
|
5204
|
+
maxRows?: number;
|
|
5205
|
+
};
|
|
5206
|
+
QueryContextItemsResponseDto: {
|
|
5207
|
+
/**
|
|
5208
|
+
* @description Result rows, one object per row keyed by column name.
|
|
5209
|
+
* @example [
|
|
5210
|
+
* {
|
|
5211
|
+
* "context_type": "table_metadata",
|
|
5212
|
+
* "items": "412"
|
|
5213
|
+
* }
|
|
5214
|
+
* ]
|
|
5215
|
+
*/
|
|
5216
|
+
rows: {
|
|
5217
|
+
[key: string]: unknown;
|
|
5218
|
+
}[];
|
|
5219
|
+
/**
|
|
5220
|
+
* @description Number of rows returned.
|
|
5221
|
+
* @example 1
|
|
5222
|
+
*/
|
|
5223
|
+
rowCount: number;
|
|
5224
|
+
/**
|
|
5225
|
+
* @description True when rows were left out: the query had more than `maxRows`, or the rows passed 6 MB of JSON.
|
|
5226
|
+
* @example false
|
|
5227
|
+
*/
|
|
5228
|
+
truncated: boolean;
|
|
5229
|
+
};
|
|
5099
5230
|
/**
|
|
5100
5231
|
* @description Optional reasoning effort for models that support it.
|
|
5101
5232
|
* @enum {string}
|
|
@@ -5357,24 +5488,16 @@ interface components {
|
|
|
5357
5488
|
};
|
|
5358
5489
|
SelectionOpDto: {
|
|
5359
5490
|
/**
|
|
5360
|
-
* @description Which selection edit this op makes.
|
|
5491
|
+
* @description Which selection edit this op makes. setConnectionPreferences sets a connection's whole data selection; removeConnection removes the connection from the scope.
|
|
5361
5492
|
* @enum {string}
|
|
5362
5493
|
*/
|
|
5363
|
-
op: "
|
|
5364
|
-
/** @description Connection
|
|
5494
|
+
op: "setConnectionPreferences" | "removeConnection" | "pinItem" | "unpinItem" | "clearPinnedItems" | "setAdditionalContextRules";
|
|
5495
|
+
/** @description Connection whose preferences are set, or which is removed. */
|
|
5365
5496
|
connectionId?: string;
|
|
5366
|
-
/** @description Path of the data-asset root within its connection. */
|
|
5367
|
-
path?: string[];
|
|
5368
|
-
/** @description Fully-selected subtree paths strictly beneath the root. Each path is an array of strings. */
|
|
5369
|
-
includes?: string[][];
|
|
5370
|
-
/** @description Unselected subtree paths beneath the root. Each path is an array of strings. */
|
|
5371
|
-
excludes?: string[][];
|
|
5372
5497
|
/** @description The connection’s whole data selection, as workspace access preferences. */
|
|
5373
5498
|
preferences?: {
|
|
5374
5499
|
[key: string]: unknown;
|
|
5375
5500
|
};
|
|
5376
|
-
/** @description Deprecated. Use `preferences` alone: the scope always reads context from its connections. Omit it; `false` is accepted only when the connection is already stored with `false`. */
|
|
5377
|
-
contextEnabled?: boolean;
|
|
5378
5501
|
/** @description The pinned context item. */
|
|
5379
5502
|
item?: components["schemas"]["SelectedContextItemDto"];
|
|
5380
5503
|
/** @description Uid of the pinned item to remove. */
|
|
@@ -5465,7 +5588,7 @@ interface components {
|
|
|
5465
5588
|
/** @description Model-specific runtime controls such as reasoning effort and context window. */
|
|
5466
5589
|
modelSettings?: components["schemas"]["ModelSettingsDto"];
|
|
5467
5590
|
/**
|
|
5468
|
-
* @description Map of tool key to configuration. Integrations use `<platform>.byConnection[connectionUuid] = { actions, rules? }
|
|
5591
|
+
* @description Map of tool key to configuration. Integrations use `<platform>.byConnection[connectionUuid] = { actions, rules? }`, plus `<platform>.personal = { actions, rules? }` for actions run on each runner’s own personal connection; SQL platforms grant `query`. General tools and MCP configurations keep their own formats.
|
|
5469
5592
|
* @example {
|
|
5470
5593
|
* "postgresql": {
|
|
5471
5594
|
* "byConnection": {
|
|
@@ -5484,7 +5607,7 @@ interface components {
|
|
|
5484
5607
|
toolset: {
|
|
5485
5608
|
[key: string]: unknown;
|
|
5486
5609
|
};
|
|
5487
|
-
/** @description Connections attached to this variation
|
|
5610
|
+
/** @description Connections attached to this variation, one entry per connection. Its `preferences` say what the scope reads under it; an entry with `preferences` can be sent back as it is on update. Drop an entry without them (a deleted connection) first. */
|
|
5488
5611
|
connectionSet: components["schemas"]["ConnectionSetItemReadDto"][];
|
|
5489
5612
|
/** @description Context selections attached to the variation. Free-form builder objects. */
|
|
5490
5613
|
contextSelections: {
|
|
@@ -5634,13 +5757,31 @@ interface components {
|
|
|
5634
5757
|
};
|
|
5635
5758
|
TriggerDto: {
|
|
5636
5759
|
/**
|
|
5637
|
-
* @description Trigger kind.
|
|
5760
|
+
* @description Trigger kind. `schedule` and `email` carry a nested payload; the rest are opaque.
|
|
5638
5761
|
* @example schedule
|
|
5639
5762
|
* @enum {string}
|
|
5640
5763
|
*/
|
|
5641
|
-
trigger_type: "schedule" | "webhook" | "api" | "slack" | "manual";
|
|
5764
|
+
trigger_type: "schedule" | "webhook" | "api" | "slack" | "manual" | "email";
|
|
5642
5765
|
/** @description Schedule details. Required when trigger_type=schedule. Null for every other trigger. */
|
|
5643
5766
|
schedule?: components["schemas"]["TriggerScheduleDto"] | null;
|
|
5767
|
+
/** @description Sender policy. Required when trigger_type=email. Null for every other trigger. */
|
|
5768
|
+
email?: components["schemas"]["TriggerEmailDto"] | null;
|
|
5769
|
+
};
|
|
5770
|
+
TriggerEmailDto: {
|
|
5771
|
+
/**
|
|
5772
|
+
* @description `allowlist` starts runs only for email from `allowed_senders` (an empty list rejects every email); `any` accepts every authenticated sender.
|
|
5773
|
+
* @example allowlist
|
|
5774
|
+
* @enum {string}
|
|
5775
|
+
*/
|
|
5776
|
+
sender_policy: "allowlist" | "any";
|
|
5777
|
+
/**
|
|
5778
|
+
* @description Exact addresses or `@domain` entries (that domain only). Stored lowercase; at most 100. Kept when `sender_policy` is `any`.
|
|
5779
|
+
* @example [
|
|
5780
|
+
* "@acme.com",
|
|
5781
|
+
* "billing@supplier.com"
|
|
5782
|
+
* ]
|
|
5783
|
+
*/
|
|
5784
|
+
allowed_senders: string[];
|
|
5644
5785
|
};
|
|
5645
5786
|
TriggerEvaluationRunResponseDto: {
|
|
5646
5787
|
/** @description The created run ID */
|
|
@@ -5929,7 +6070,7 @@ interface components {
|
|
|
5929
6070
|
*/
|
|
5930
6071
|
instructions?: string[] | null;
|
|
5931
6072
|
/**
|
|
5932
|
-
* @description Map of tool key to configuration; unknown keys are rejected. Integrations require `<platform>.byConnection[connectionUuid] = { actions, rules? }`; actions are catalog action names and SQL platforms grant `query`. Flat entries, action-string arrays and retired keys are rejected with HTTP 422.
|
|
6073
|
+
* @description Map of tool key to configuration; unknown keys are rejected. Integrations require `<platform>.byConnection[connectionUuid] = { actions, rules? }`; actions are catalog action names and SQL platforms grant `query`. A platform people connect personally also takes `<platform>.personal = { actions, rules? }`, which runs on each runner’s own personal connection; a save that newly adds a personal connection's UUID to `byConnection` (or grants it new actions there) is rejected with HTTP 422. Flat entries, action-string arrays and retired keys are rejected with HTTP 422.
|
|
5933
6074
|
* @example {
|
|
5934
6075
|
* "slack": {
|
|
5935
6076
|
* "byConnection": {
|
|
@@ -5958,7 +6099,7 @@ interface components {
|
|
|
5958
6099
|
/** @description Updated model-specific runtime controls. Pass `null` to clear. */
|
|
5959
6100
|
modelSettings?: components["schemas"]["ModelSettingsDto"] | null;
|
|
5960
6101
|
/**
|
|
5961
|
-
* @description Replacement connection list. Each entry names a connection and what the scope reads under it in `preferences`; `path
|
|
6102
|
+
* @description Replacement connection list. Each entry names a connection and what the scope reads under it in `preferences`; an entry without `preferences`, or with `path`, is refused with 400 `legacy_entry`. `null` clears it.
|
|
5962
6103
|
* @example [
|
|
5963
6104
|
* {
|
|
5964
6105
|
* "connection_id": "11111111-1111-4111-8111-111111111111",
|
|
@@ -6270,6 +6411,57 @@ interface components {
|
|
|
6270
6411
|
* @enum {string}
|
|
6271
6412
|
*/
|
|
6272
6413
|
WorkflowNodeType: "start" | "action" | "condition" | "agent" | "humanApproval";
|
|
6414
|
+
WorkflowRunAttachmentDto: {
|
|
6415
|
+
/**
|
|
6416
|
+
* @description File name as it was sent.
|
|
6417
|
+
* @example invoice-4471.pdf
|
|
6418
|
+
*/
|
|
6419
|
+
fileName: string;
|
|
6420
|
+
/**
|
|
6421
|
+
* @description MIME type, when known.
|
|
6422
|
+
* @example application/pdf
|
|
6423
|
+
*/
|
|
6424
|
+
mimeType?: string;
|
|
6425
|
+
/**
|
|
6426
|
+
* Format: int64
|
|
6427
|
+
* @description Size in bytes, when known.
|
|
6428
|
+
* @example 182000
|
|
6429
|
+
*/
|
|
6430
|
+
sizeBytes?: number;
|
|
6431
|
+
/** @description Set when the trigger received the file but did not give it to the run. */
|
|
6432
|
+
skipped?: components["schemas"]["WorkflowRunSkippedAttachmentDto"];
|
|
6433
|
+
};
|
|
6434
|
+
WorkflowRunOriginDto: {
|
|
6435
|
+
/**
|
|
6436
|
+
* @description Where the run came from, for example `api`, `schedule` or `email`. `unknown` for a run that did not record it. New values may be added.
|
|
6437
|
+
* @example schedule
|
|
6438
|
+
*/
|
|
6439
|
+
source: string;
|
|
6440
|
+
/**
|
|
6441
|
+
* @description Email runs: the sender address.
|
|
6442
|
+
* @example dana@acme.com
|
|
6443
|
+
*/
|
|
6444
|
+
from?: string;
|
|
6445
|
+
/**
|
|
6446
|
+
* @description Email runs: the sender display name, when the email has one.
|
|
6447
|
+
* @example Dana Cohen
|
|
6448
|
+
*/
|
|
6449
|
+
fromName?: string;
|
|
6450
|
+
/**
|
|
6451
|
+
* @description Email runs: the subject line.
|
|
6452
|
+
* @example Invoice 4471 for October
|
|
6453
|
+
*/
|
|
6454
|
+
subject?: string;
|
|
6455
|
+
};
|
|
6456
|
+
WorkflowRunSkippedAttachmentDto: {
|
|
6457
|
+
/** @description Why the file was left out: `too_large` = over the per-file size limit; `too_many` = over the file count limit. */
|
|
6458
|
+
reason: components["schemas"]["WorkflowRunSkippedAttachmentReason"];
|
|
6459
|
+
};
|
|
6460
|
+
/**
|
|
6461
|
+
* @description Why the file was left out: `too_large` = over the per-file size limit; `too_many` = over the file count limit.
|
|
6462
|
+
* @enum {string}
|
|
6463
|
+
*/
|
|
6464
|
+
WorkflowRunSkippedAttachmentReason: "too_large" | "too_many";
|
|
6273
6465
|
WorkflowStructureDto: {
|
|
6274
6466
|
/** @description Workflow nodes. Defaults to `[]`. */
|
|
6275
6467
|
nodes?: components["schemas"]["WorkflowNodeDto"][];
|
|
@@ -6284,13 +6476,15 @@ interface components {
|
|
|
6284
6476
|
} | null;
|
|
6285
6477
|
WorkflowTriggerResponseDto: {
|
|
6286
6478
|
/**
|
|
6287
|
-
* @description Trigger kind.
|
|
6479
|
+
* @description Trigger kind. `schedule` and `email` carry a nested payload; the rest are opaque.
|
|
6288
6480
|
* @example schedule
|
|
6289
6481
|
* @enum {string}
|
|
6290
6482
|
*/
|
|
6291
|
-
trigger_type: "schedule" | "webhook" | "api" | "slack" | "manual";
|
|
6483
|
+
trigger_type: "schedule" | "webhook" | "api" | "slack" | "manual" | "email";
|
|
6292
6484
|
/** @description Schedule details. Required when trigger_type=schedule. Null for every other trigger. */
|
|
6293
6485
|
schedule?: components["schemas"]["WorkflowTriggerScheduleResponseDto"] | null;
|
|
6486
|
+
/** @description Sender policy. Present when trigger_type=email. Null for every other trigger. */
|
|
6487
|
+
email?: components["schemas"]["TriggerEmailDto"] | null;
|
|
6294
6488
|
} | null;
|
|
6295
6489
|
WorkflowTriggerScheduleResponseDto: {
|
|
6296
6490
|
/**
|
|
@@ -6376,10 +6570,6 @@ interface components {
|
|
|
6376
6570
|
nextPageToken: string | null;
|
|
6377
6571
|
};
|
|
6378
6572
|
AgentRunDto: {
|
|
6379
|
-
/** @description The user message to send. API tokens are held to the 32,000-character limit; a longer message is refused before the run starts. */
|
|
6380
|
-
message: string;
|
|
6381
|
-
/** @description Opaque client-generated conversation token for continuity. The server NEVER derives the run target identity (scope/workflow/modus) from this string — target identity comes only from the request path and DTO (see RunTarget). It is used solely to thread successive turns of the same conversation together. */
|
|
6382
|
-
sessionId: string;
|
|
6383
6573
|
/** @description Organization id. Ignored for authenticated callers — the server uses the principal's org. */
|
|
6384
6574
|
organizationId?: string;
|
|
6385
6575
|
/**
|
|
@@ -6387,9 +6577,6 @@ interface components {
|
|
|
6387
6577
|
* @enum {string}
|
|
6388
6578
|
*/
|
|
6389
6579
|
version?: "published" | "draft";
|
|
6390
|
-
/** @description Document-scoped conversation thread id. */
|
|
6391
|
-
fileThreadId?: string;
|
|
6392
|
-
config?: components["schemas"]["RunConfigDto"];
|
|
6393
6580
|
attachments?: components["schemas"]["AttachmentsDto"];
|
|
6394
6581
|
userContext?: components["schemas"]["UserContextDto"];
|
|
6395
6582
|
supplementalContext?: components["schemas"]["SupplementalContextDto"];
|
|
@@ -6397,12 +6584,35 @@ interface components {
|
|
|
6397
6584
|
source?: components["schemas"]["RunSource"];
|
|
6398
6585
|
/** @description Client-supplied run id (Idempotency-Key header wins). */
|
|
6399
6586
|
runId?: string;
|
|
6587
|
+
/** @description The run's input, which the workflow's first step receives. Omit it, or send an empty string, to trigger a run with no input. API tokens are held to the 32,000-character limit. */
|
|
6588
|
+
message?: string;
|
|
6589
|
+
/** @description A token you choose that threads runs into one conversation: send the same value on each run. Omit it for a one-off run; the server then assigns an id it does not return, so that run cannot be continued. */
|
|
6590
|
+
sessionId?: string;
|
|
6400
6591
|
/**
|
|
6401
|
-
* @
|
|
6592
|
+
* @deprecated
|
|
6593
|
+
* @description Deprecated: ignored for workflow runs, whose steps use the model and tools set in the workflow. Omit it.
|
|
6594
|
+
*/
|
|
6595
|
+
config?: components["schemas"]["RunConfigDto"];
|
|
6596
|
+
/**
|
|
6597
|
+
* @deprecated
|
|
6598
|
+
* @description Deprecated and ignored: a workflow run takes its settings from the workflow. Omit it; see `message` and `sessionId` for what a run accepts.
|
|
6599
|
+
*/
|
|
6600
|
+
fileThreadId?: string;
|
|
6601
|
+
/**
|
|
6602
|
+
* @deprecated
|
|
6603
|
+
* @description Deprecated and ignored: a workflow run takes its settings from the workflow. Omit it; see `message` and `sessionId` for what a run accepts.
|
|
6402
6604
|
* @enum {integer}
|
|
6403
6605
|
*/
|
|
6404
6606
|
streamProtocolVersion?: 2;
|
|
6607
|
+
/**
|
|
6608
|
+
* @deprecated
|
|
6609
|
+
* @description Deprecated and ignored: a workflow run takes its settings from the workflow. Omit it; see `message` and `sessionId` for what a run accepts.
|
|
6610
|
+
*/
|
|
6405
6611
|
experimentalFeatures?: boolean;
|
|
6612
|
+
/**
|
|
6613
|
+
* @deprecated
|
|
6614
|
+
* @description Deprecated and ignored: a workflow run takes its settings from the workflow. Omit it; see `message` and `sessionId` for what a run accepts.
|
|
6615
|
+
*/
|
|
6406
6616
|
debug?: boolean;
|
|
6407
6617
|
};
|
|
6408
6618
|
ApprovalTargetDto: {
|
|
@@ -6600,7 +6810,7 @@ interface components {
|
|
|
6600
6810
|
connectionSelections?: {
|
|
6601
6811
|
[key: string]: unknown;
|
|
6602
6812
|
}[];
|
|
6603
|
-
/** @description
|
|
6813
|
+
/** @description Connection-set entries (runtime-owned shape): `connection_id`, and optionally `preferences` (the connection's workspace-access preferences) and `path` (a row the preferences compile to). */
|
|
6604
6814
|
connectionSet?: {
|
|
6605
6815
|
[key: string]: unknown;
|
|
6606
6816
|
}[];
|
|
@@ -6650,7 +6860,7 @@ interface components {
|
|
|
6650
6860
|
* @description Origin of the run. Set by the server for API tokens.
|
|
6651
6861
|
* @enum {string}
|
|
6652
6862
|
*/
|
|
6653
|
-
RunSource: "home" | "agent_settings" | "agent" | "api" | "modus_api" | "mcp" | "slack" | "slack_dm" | "teams" | "context_chat" | "context_suggestions" | "dashboard_copilot" | "dashboard_assistant" | "other";
|
|
6863
|
+
RunSource: "home" | "agent_settings" | "agent" | "api" | "modus_api" | "mcp" | "slack" | "slack_dm" | "teams" | "context_chat" | "context_suggestions" | "dashboard_copilot" | "dashboard_assistant" | "email" | "other";
|
|
6654
6864
|
SkillRunDto: {
|
|
6655
6865
|
/** @description The user message to send. API tokens are held to the 32,000-character limit; a longer message is refused before the run starts. */
|
|
6656
6866
|
message: string;
|
|
@@ -6684,9 +6894,9 @@ interface components {
|
|
|
6684
6894
|
subordinateSkillIds?: number[];
|
|
6685
6895
|
};
|
|
6686
6896
|
SupplementalContextDto: {
|
|
6687
|
-
/** @description Background context (e.g. Slack/Teams thread + channel history
|
|
6897
|
+
/** @description Background context in full (e.g. Slack/Teams thread + channel history, or an MCP client's note on its conversation), not only what is new. Stored with the turn until the conversation has stored one; after that, `followUpText` is stored instead when it is sent. */
|
|
6688
6898
|
text: string;
|
|
6689
|
-
/** @description Only the background that is new since the previous turn,
|
|
6899
|
+
/** @description Only the background that is new since the previous turn, stored instead of `text` once the conversation has stored a background. Empty when nothing is new. */
|
|
6690
6900
|
followUpText?: string;
|
|
6691
6901
|
/** @description Producer that supplied the supplemental context. */
|
|
6692
6902
|
source: components["schemas"]["SupplementalContextSource"];
|
|
@@ -6695,7 +6905,7 @@ interface components {
|
|
|
6695
6905
|
* @description Producer that supplied the supplemental context.
|
|
6696
6906
|
* @enum {string}
|
|
6697
6907
|
*/
|
|
6698
|
-
SupplementalContextSource: "slack" | "teams";
|
|
6908
|
+
SupplementalContextSource: "slack" | "teams" | "mcp" | "email";
|
|
6699
6909
|
UserContextDto: {
|
|
6700
6910
|
/** @description End-user email for personalization; also used for usage attribution. */
|
|
6701
6911
|
email?: string;
|
|
@@ -7030,6 +7240,12 @@ interface operations {
|
|
|
7030
7240
|
searchQuery?: string;
|
|
7031
7241
|
/** @description Filter by topic tag. */
|
|
7032
7242
|
topics?: string[];
|
|
7243
|
+
/** @description Restrict to a single customer-defined source. Returns the source and everything beneath it. */
|
|
7244
|
+
sourceId?: string;
|
|
7245
|
+
/** @description Restrict to a collection inside the source. Requires `sourceId`. Returns the collection and everything beneath it. */
|
|
7246
|
+
collectionId?: string;
|
|
7247
|
+
/** @description Restrict to a single entity inside the collection. Requires `sourceId` and `collectionId`. Returns the entity and its fields. */
|
|
7248
|
+
externalId?: string;
|
|
7033
7249
|
};
|
|
7034
7250
|
header?: never;
|
|
7035
7251
|
path?: never;
|
|
@@ -7092,15 +7308,232 @@ interface operations {
|
|
|
7092
7308
|
/**
|
|
7093
7309
|
* @example {
|
|
7094
7310
|
* "error": {
|
|
7095
|
-
* "code": "FORBIDDEN",
|
|
7096
|
-
* "status": "PERMISSION_DENIED",
|
|
7097
|
-
* "message": "Missing required scope(s) for this operation.",
|
|
7098
|
-
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS",
|
|
7099
|
-
* "info": {
|
|
7100
|
-
* "missing": [
|
|
7101
|
-
* "<required-scope>"
|
|
7102
|
-
* ]
|
|
7103
|
-
* }
|
|
7311
|
+
* "code": "FORBIDDEN",
|
|
7312
|
+
* "status": "PERMISSION_DENIED",
|
|
7313
|
+
* "message": "Missing required scope(s) for this operation.",
|
|
7314
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS",
|
|
7315
|
+
* "info": {
|
|
7316
|
+
* "missing": [
|
|
7317
|
+
* "<required-scope>"
|
|
7318
|
+
* ]
|
|
7319
|
+
* }
|
|
7320
|
+
* }
|
|
7321
|
+
* }
|
|
7322
|
+
*/
|
|
7323
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
7324
|
+
};
|
|
7325
|
+
};
|
|
7326
|
+
/** @description The request was well-formed but failed a business rule (`code: VALIDATION`). */
|
|
7327
|
+
422: {
|
|
7328
|
+
headers: {
|
|
7329
|
+
[name: string]: unknown;
|
|
7330
|
+
};
|
|
7331
|
+
content: {
|
|
7332
|
+
/**
|
|
7333
|
+
* @example {
|
|
7334
|
+
* "error": {
|
|
7335
|
+
* "code": "VALIDATION",
|
|
7336
|
+
* "status": "INVALID_ARGUMENT",
|
|
7337
|
+
* "message": "collectionId must not be blank.",
|
|
7338
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
7339
|
+
* }
|
|
7340
|
+
* }
|
|
7341
|
+
*/
|
|
7342
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
7343
|
+
};
|
|
7344
|
+
};
|
|
7345
|
+
/** @description Too many requests. Wait and retry later (`code: RATE_LIMITED`). */
|
|
7346
|
+
429: {
|
|
7347
|
+
headers: {
|
|
7348
|
+
[name: string]: unknown;
|
|
7349
|
+
};
|
|
7350
|
+
content: {
|
|
7351
|
+
/**
|
|
7352
|
+
* @example {
|
|
7353
|
+
* "error": {
|
|
7354
|
+
* "code": "RATE_LIMITED",
|
|
7355
|
+
* "status": "RESOURCE_EXHAUSTED",
|
|
7356
|
+
* "message": "Too many requests. Please retry after a short delay.",
|
|
7357
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
7358
|
+
* }
|
|
7359
|
+
* }
|
|
7360
|
+
*/
|
|
7361
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
7362
|
+
};
|
|
7363
|
+
};
|
|
7364
|
+
/** @description An unexpected server error occurred (`code: INTERNAL_ERROR`). */
|
|
7365
|
+
500: {
|
|
7366
|
+
headers: {
|
|
7367
|
+
[name: string]: unknown;
|
|
7368
|
+
};
|
|
7369
|
+
content: {
|
|
7370
|
+
/**
|
|
7371
|
+
* @example {
|
|
7372
|
+
* "error": {
|
|
7373
|
+
* "code": "INTERNAL_ERROR",
|
|
7374
|
+
* "status": "INTERNAL",
|
|
7375
|
+
* "message": "An unexpected error occurred.",
|
|
7376
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
7377
|
+
* }
|
|
7378
|
+
* }
|
|
7379
|
+
*/
|
|
7380
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
7381
|
+
};
|
|
7382
|
+
};
|
|
7383
|
+
};
|
|
7384
|
+
};
|
|
7385
|
+
CustomContextItemsController_create: {
|
|
7386
|
+
parameters: {
|
|
7387
|
+
query?: never;
|
|
7388
|
+
header?: never;
|
|
7389
|
+
path?: never;
|
|
7390
|
+
cookie?: never;
|
|
7391
|
+
};
|
|
7392
|
+
requestBody: {
|
|
7393
|
+
content: {
|
|
7394
|
+
"application/json": components["schemas"]["CreateCustomContextItemDto"];
|
|
7395
|
+
};
|
|
7396
|
+
};
|
|
7397
|
+
responses: {
|
|
7398
|
+
201: {
|
|
7399
|
+
headers: {
|
|
7400
|
+
[name: string]: unknown;
|
|
7401
|
+
};
|
|
7402
|
+
content: {
|
|
7403
|
+
"application/json": components["schemas"]["CreatedCustomContextItemResponseDto"];
|
|
7404
|
+
};
|
|
7405
|
+
};
|
|
7406
|
+
/** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
|
|
7407
|
+
400: {
|
|
7408
|
+
headers: {
|
|
7409
|
+
[name: string]: unknown;
|
|
7410
|
+
};
|
|
7411
|
+
content: {
|
|
7412
|
+
/**
|
|
7413
|
+
* @example {
|
|
7414
|
+
* "error": {
|
|
7415
|
+
* "code": "BAD_REQUEST",
|
|
7416
|
+
* "status": "INVALID_ARGUMENT",
|
|
7417
|
+
* "message": "Invalid value for query parameter `pageSize`.",
|
|
7418
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
7419
|
+
* }
|
|
7420
|
+
* }
|
|
7421
|
+
*/
|
|
7422
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
7423
|
+
};
|
|
7424
|
+
};
|
|
7425
|
+
/** @description Missing, invalid, or expired access token (`code: UNAUTHORIZED`). */
|
|
7426
|
+
401: {
|
|
7427
|
+
headers: {
|
|
7428
|
+
[name: string]: unknown;
|
|
7429
|
+
};
|
|
7430
|
+
content: {
|
|
7431
|
+
/**
|
|
7432
|
+
* @example {
|
|
7433
|
+
* "error": {
|
|
7434
|
+
* "code": "UNAUTHORIZED",
|
|
7435
|
+
* "status": "UNAUTHENTICATED",
|
|
7436
|
+
* "message": "Missing or invalid access token.",
|
|
7437
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
7438
|
+
* }
|
|
7439
|
+
* }
|
|
7440
|
+
*/
|
|
7441
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
7442
|
+
};
|
|
7443
|
+
};
|
|
7444
|
+
/**
|
|
7445
|
+
* @description Authenticated, but the token lacks a required scope (`code: FORBIDDEN`). The missing scopes are listed in `info`.
|
|
7446
|
+
*
|
|
7447
|
+
* Also returned, with the message `Custom context item writes are not enabled`, when custom context item writes are not enabled for your organization. They are off by default; ask Modus to enable them.
|
|
7448
|
+
*/
|
|
7449
|
+
403: {
|
|
7450
|
+
headers: {
|
|
7451
|
+
[name: string]: unknown;
|
|
7452
|
+
};
|
|
7453
|
+
content: {
|
|
7454
|
+
/**
|
|
7455
|
+
* @example {
|
|
7456
|
+
* "error": {
|
|
7457
|
+
* "code": "FORBIDDEN",
|
|
7458
|
+
* "status": "PERMISSION_DENIED",
|
|
7459
|
+
* "message": "Custom context item writes are not enabled",
|
|
7460
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
7461
|
+
* }
|
|
7462
|
+
* }
|
|
7463
|
+
*/
|
|
7464
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
7465
|
+
};
|
|
7466
|
+
};
|
|
7467
|
+
/** @description The resource does not exist, or you do not have access to it (`code: NOT_FOUND`). */
|
|
7468
|
+
404: {
|
|
7469
|
+
headers: {
|
|
7470
|
+
[name: string]: unknown;
|
|
7471
|
+
};
|
|
7472
|
+
content: {
|
|
7473
|
+
/**
|
|
7474
|
+
* @example {
|
|
7475
|
+
* "error": {
|
|
7476
|
+
* "code": "NOT_FOUND",
|
|
7477
|
+
* "status": "NOT_FOUND",
|
|
7478
|
+
* "message": "Resource not found.",
|
|
7479
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
7480
|
+
* }
|
|
7481
|
+
* }
|
|
7482
|
+
*/
|
|
7483
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
7484
|
+
};
|
|
7485
|
+
};
|
|
7486
|
+
/** @description The request conflicts with the current state of the resource, e.g. a duplicate (`code: CONFLICT`). */
|
|
7487
|
+
409: {
|
|
7488
|
+
headers: {
|
|
7489
|
+
[name: string]: unknown;
|
|
7490
|
+
};
|
|
7491
|
+
content: {
|
|
7492
|
+
/**
|
|
7493
|
+
* @example {
|
|
7494
|
+
* "error": {
|
|
7495
|
+
* "code": "CONFLICT",
|
|
7496
|
+
* "status": "ALREADY_EXISTS",
|
|
7497
|
+
* "message": "A resource with that identifier already exists.",
|
|
7498
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
7499
|
+
* }
|
|
7500
|
+
* }
|
|
7501
|
+
*/
|
|
7502
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
7503
|
+
};
|
|
7504
|
+
};
|
|
7505
|
+
/** @description The request body is larger than this operation accepts (`code: PAYLOAD_TOO_LARGE`). The limit is 100 KiB unless the operation raises it; the message names the limit that applied. */
|
|
7506
|
+
413: {
|
|
7507
|
+
headers: {
|
|
7508
|
+
[name: string]: unknown;
|
|
7509
|
+
};
|
|
7510
|
+
content: {
|
|
7511
|
+
/**
|
|
7512
|
+
* @example {
|
|
7513
|
+
* "error": {
|
|
7514
|
+
* "code": "PAYLOAD_TOO_LARGE",
|
|
7515
|
+
* "status": "INVALID_ARGUMENT",
|
|
7516
|
+
* "message": "Request body exceeds the 1 MiB limit.",
|
|
7517
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
7518
|
+
* }
|
|
7519
|
+
* }
|
|
7520
|
+
*/
|
|
7521
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
7522
|
+
};
|
|
7523
|
+
};
|
|
7524
|
+
/** @description The request was well-formed but failed a business rule (`code: VALIDATION`). */
|
|
7525
|
+
422: {
|
|
7526
|
+
headers: {
|
|
7527
|
+
[name: string]: unknown;
|
|
7528
|
+
};
|
|
7529
|
+
content: {
|
|
7530
|
+
/**
|
|
7531
|
+
* @example {
|
|
7532
|
+
* "error": {
|
|
7533
|
+
* "code": "VALIDATION",
|
|
7534
|
+
* "status": "INVALID_ARGUMENT",
|
|
7535
|
+
* "message": "Updates that would revoke your own access are not allowed.",
|
|
7536
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
7104
7537
|
* }
|
|
7105
7538
|
* }
|
|
7106
7539
|
*/
|
|
@@ -7147,7 +7580,7 @@ interface operations {
|
|
|
7147
7580
|
};
|
|
7148
7581
|
};
|
|
7149
7582
|
};
|
|
7150
|
-
|
|
7583
|
+
CustomContextItemsController_batchCreate: {
|
|
7151
7584
|
parameters: {
|
|
7152
7585
|
query?: never;
|
|
7153
7586
|
header?: never;
|
|
@@ -7156,7 +7589,7 @@ interface operations {
|
|
|
7156
7589
|
};
|
|
7157
7590
|
requestBody: {
|
|
7158
7591
|
content: {
|
|
7159
|
-
"application/json": components["schemas"]["
|
|
7592
|
+
"application/json": components["schemas"]["BatchCreateCustomContextItemsDto"];
|
|
7160
7593
|
};
|
|
7161
7594
|
};
|
|
7162
7595
|
responses: {
|
|
@@ -7165,7 +7598,7 @@ interface operations {
|
|
|
7165
7598
|
[name: string]: unknown;
|
|
7166
7599
|
};
|
|
7167
7600
|
content: {
|
|
7168
|
-
"application/json": components["schemas"]["
|
|
7601
|
+
"application/json": components["schemas"]["BatchCreateCustomContextItemsResponseDto"];
|
|
7169
7602
|
};
|
|
7170
7603
|
};
|
|
7171
7604
|
/** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
|
|
@@ -7345,7 +7778,7 @@ interface operations {
|
|
|
7345
7778
|
};
|
|
7346
7779
|
};
|
|
7347
7780
|
};
|
|
7348
|
-
|
|
7781
|
+
CustomContextItemsController_batchDelete: {
|
|
7349
7782
|
parameters: {
|
|
7350
7783
|
query?: never;
|
|
7351
7784
|
header?: never;
|
|
@@ -7354,16 +7787,16 @@ interface operations {
|
|
|
7354
7787
|
};
|
|
7355
7788
|
requestBody: {
|
|
7356
7789
|
content: {
|
|
7357
|
-
"application/json": components["schemas"]["
|
|
7790
|
+
"application/json": components["schemas"]["BatchDeleteCustomContextItemsDto"];
|
|
7358
7791
|
};
|
|
7359
7792
|
};
|
|
7360
7793
|
responses: {
|
|
7361
|
-
|
|
7794
|
+
200: {
|
|
7362
7795
|
headers: {
|
|
7363
7796
|
[name: string]: unknown;
|
|
7364
7797
|
};
|
|
7365
7798
|
content: {
|
|
7366
|
-
"application/json": components["schemas"]["
|
|
7799
|
+
"application/json": components["schemas"]["BatchDeleteCustomContextItemsResponseDto"];
|
|
7367
7800
|
};
|
|
7368
7801
|
};
|
|
7369
7802
|
/** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
|
|
@@ -13673,6 +14106,209 @@ interface operations {
|
|
|
13673
14106
|
};
|
|
13674
14107
|
};
|
|
13675
14108
|
};
|
|
14109
|
+
ContextItemsQueryController_query: {
|
|
14110
|
+
parameters: {
|
|
14111
|
+
query?: never;
|
|
14112
|
+
header?: never;
|
|
14113
|
+
path?: never;
|
|
14114
|
+
cookie?: never;
|
|
14115
|
+
};
|
|
14116
|
+
requestBody: {
|
|
14117
|
+
content: {
|
|
14118
|
+
"application/json": components["schemas"]["QueryContextItemsRequestDto"];
|
|
14119
|
+
};
|
|
14120
|
+
};
|
|
14121
|
+
responses: {
|
|
14122
|
+
200: {
|
|
14123
|
+
headers: {
|
|
14124
|
+
[name: string]: unknown;
|
|
14125
|
+
};
|
|
14126
|
+
content: {
|
|
14127
|
+
"application/json": components["schemas"]["QueryContextItemsResponseDto"];
|
|
14128
|
+
};
|
|
14129
|
+
};
|
|
14130
|
+
/** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
|
|
14131
|
+
400: {
|
|
14132
|
+
headers: {
|
|
14133
|
+
[name: string]: unknown;
|
|
14134
|
+
};
|
|
14135
|
+
content: {
|
|
14136
|
+
/**
|
|
14137
|
+
* @example {
|
|
14138
|
+
* "error": {
|
|
14139
|
+
* "code": "BAD_REQUEST",
|
|
14140
|
+
* "status": "INVALID_ARGUMENT",
|
|
14141
|
+
* "message": "Invalid value for query parameter `pageSize`.",
|
|
14142
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
14143
|
+
* }
|
|
14144
|
+
* }
|
|
14145
|
+
*/
|
|
14146
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
14147
|
+
};
|
|
14148
|
+
};
|
|
14149
|
+
/** @description Missing, invalid, or expired access token (`code: UNAUTHORIZED`). */
|
|
14150
|
+
401: {
|
|
14151
|
+
headers: {
|
|
14152
|
+
[name: string]: unknown;
|
|
14153
|
+
};
|
|
14154
|
+
content: {
|
|
14155
|
+
/**
|
|
14156
|
+
* @example {
|
|
14157
|
+
* "error": {
|
|
14158
|
+
* "code": "UNAUTHORIZED",
|
|
14159
|
+
* "status": "UNAUTHENTICATED",
|
|
14160
|
+
* "message": "Missing or invalid access token.",
|
|
14161
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
14162
|
+
* }
|
|
14163
|
+
* }
|
|
14164
|
+
*/
|
|
14165
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
14166
|
+
};
|
|
14167
|
+
};
|
|
14168
|
+
/**
|
|
14169
|
+
* @description Also returned, with the message `Context SQL queries are not enabled`, when SQL queries are not enabled for your organization. They are off by default; ask Modus to enable them.
|
|
14170
|
+
*
|
|
14171
|
+
* Authenticated, but the token lacks a required scope (`code: FORBIDDEN`). The missing scopes are listed in `info`.
|
|
14172
|
+
*/
|
|
14173
|
+
403: {
|
|
14174
|
+
headers: {
|
|
14175
|
+
[name: string]: unknown;
|
|
14176
|
+
};
|
|
14177
|
+
content: {
|
|
14178
|
+
/**
|
|
14179
|
+
* @example {
|
|
14180
|
+
* "error": {
|
|
14181
|
+
* "code": "FORBIDDEN",
|
|
14182
|
+
* "status": "PERMISSION_DENIED",
|
|
14183
|
+
* "message": "Missing required scope(s) for this operation.",
|
|
14184
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS",
|
|
14185
|
+
* "info": {
|
|
14186
|
+
* "missing": [
|
|
14187
|
+
* "<required-scope>"
|
|
14188
|
+
* ]
|
|
14189
|
+
* }
|
|
14190
|
+
* }
|
|
14191
|
+
* }
|
|
14192
|
+
*/
|
|
14193
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
14194
|
+
};
|
|
14195
|
+
};
|
|
14196
|
+
/** @description The resource does not exist, or you do not have access to it (`code: NOT_FOUND`). */
|
|
14197
|
+
404: {
|
|
14198
|
+
headers: {
|
|
14199
|
+
[name: string]: unknown;
|
|
14200
|
+
};
|
|
14201
|
+
content: {
|
|
14202
|
+
/**
|
|
14203
|
+
* @example {
|
|
14204
|
+
* "error": {
|
|
14205
|
+
* "code": "NOT_FOUND",
|
|
14206
|
+
* "status": "NOT_FOUND",
|
|
14207
|
+
* "message": "Resource not found.",
|
|
14208
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
14209
|
+
* }
|
|
14210
|
+
* }
|
|
14211
|
+
*/
|
|
14212
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
14213
|
+
};
|
|
14214
|
+
};
|
|
14215
|
+
/** @description The request conflicts with the current state of the resource, e.g. a duplicate (`code: CONFLICT`). */
|
|
14216
|
+
409: {
|
|
14217
|
+
headers: {
|
|
14218
|
+
[name: string]: unknown;
|
|
14219
|
+
};
|
|
14220
|
+
content: {
|
|
14221
|
+
/**
|
|
14222
|
+
* @example {
|
|
14223
|
+
* "error": {
|
|
14224
|
+
* "code": "CONFLICT",
|
|
14225
|
+
* "status": "ALREADY_EXISTS",
|
|
14226
|
+
* "message": "A resource with that identifier already exists.",
|
|
14227
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
14228
|
+
* }
|
|
14229
|
+
* }
|
|
14230
|
+
*/
|
|
14231
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
14232
|
+
};
|
|
14233
|
+
};
|
|
14234
|
+
/** @description The request body is larger than this operation accepts (`code: PAYLOAD_TOO_LARGE`). The limit is 100 KiB unless the operation raises it; the message names the limit that applied. */
|
|
14235
|
+
413: {
|
|
14236
|
+
headers: {
|
|
14237
|
+
[name: string]: unknown;
|
|
14238
|
+
};
|
|
14239
|
+
content: {
|
|
14240
|
+
/**
|
|
14241
|
+
* @example {
|
|
14242
|
+
* "error": {
|
|
14243
|
+
* "code": "PAYLOAD_TOO_LARGE",
|
|
14244
|
+
* "status": "INVALID_ARGUMENT",
|
|
14245
|
+
* "message": "Request body exceeds the 1 MiB limit.",
|
|
14246
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
14247
|
+
* }
|
|
14248
|
+
* }
|
|
14249
|
+
*/
|
|
14250
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
14251
|
+
};
|
|
14252
|
+
};
|
|
14253
|
+
/** @description The request was well-formed but failed a business rule (`code: VALIDATION`). */
|
|
14254
|
+
422: {
|
|
14255
|
+
headers: {
|
|
14256
|
+
[name: string]: unknown;
|
|
14257
|
+
};
|
|
14258
|
+
content: {
|
|
14259
|
+
/**
|
|
14260
|
+
* @example {
|
|
14261
|
+
* "error": {
|
|
14262
|
+
* "code": "VALIDATION",
|
|
14263
|
+
* "status": "INVALID_ARGUMENT",
|
|
14264
|
+
* "message": "Updates that would revoke your own access are not allowed.",
|
|
14265
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
14266
|
+
* }
|
|
14267
|
+
* }
|
|
14268
|
+
*/
|
|
14269
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
14270
|
+
};
|
|
14271
|
+
};
|
|
14272
|
+
/** @description Too many requests. Wait and retry later (`code: RATE_LIMITED`). */
|
|
14273
|
+
429: {
|
|
14274
|
+
headers: {
|
|
14275
|
+
[name: string]: unknown;
|
|
14276
|
+
};
|
|
14277
|
+
content: {
|
|
14278
|
+
/**
|
|
14279
|
+
* @example {
|
|
14280
|
+
* "error": {
|
|
14281
|
+
* "code": "RATE_LIMITED",
|
|
14282
|
+
* "status": "RESOURCE_EXHAUSTED",
|
|
14283
|
+
* "message": "Too many requests. Please retry after a short delay.",
|
|
14284
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
14285
|
+
* }
|
|
14286
|
+
* }
|
|
14287
|
+
*/
|
|
14288
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
14289
|
+
};
|
|
14290
|
+
};
|
|
14291
|
+
/** @description An unexpected server error occurred (`code: INTERNAL_ERROR`). */
|
|
14292
|
+
500: {
|
|
14293
|
+
headers: {
|
|
14294
|
+
[name: string]: unknown;
|
|
14295
|
+
};
|
|
14296
|
+
content: {
|
|
14297
|
+
/**
|
|
14298
|
+
* @example {
|
|
14299
|
+
* "error": {
|
|
14300
|
+
* "code": "INTERNAL_ERROR",
|
|
14301
|
+
* "status": "INTERNAL",
|
|
14302
|
+
* "message": "An unexpected error occurred.",
|
|
14303
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
14304
|
+
* }
|
|
14305
|
+
* }
|
|
14306
|
+
*/
|
|
14307
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
14308
|
+
};
|
|
14309
|
+
};
|
|
14310
|
+
};
|
|
14311
|
+
};
|
|
13676
14312
|
ContextItemsController_get: {
|
|
13677
14313
|
parameters: {
|
|
13678
14314
|
query?: never;
|
|
@@ -15753,10 +16389,10 @@ interface operations {
|
|
|
15753
16389
|
pageSize?: number;
|
|
15754
16390
|
/** @description Filter by user id who participated in the conversation. Exact match against the `conversation_interactions.user_id` column. */
|
|
15755
16391
|
userId?: string;
|
|
15756
|
-
/** @description Filter by tool name invoked in the conversation. Applied post-fetch (requires reading message blobs); use `includeTools=true` to also see the matched tools. */
|
|
16392
|
+
/** @description Filter by tool name invoked in the conversation. Applied post-fetch (requires reading message blobs); use `includeTools=true` to also see the matched tools. Matches only conversations you took part in. With the `userId` of another member it is a 400 on a scope, and a 404 with `id=0`, as for any id but your own there. */
|
|
15757
16393
|
toolName?: string;
|
|
15758
|
-
/** @description Return only conversations started from this UI surface. Cannot be combined with `toolName`, `includeTools=true`, or `kind` other than `all`. */
|
|
15759
|
-
source?: "home" | "agent_settings" | "agent" | "api" | "modus_api" | "mcp" | "slack" | "slack_dm" | "teams" | "context_chat" | "context_suggestions" | "dashboard_copilot" | "dashboard_assistant" | "other";
|
|
16394
|
+
/** @description Return only conversations started from this UI surface. Cannot be combined with `toolName`, `includeTools=true`, or `kind` other than `all`. Matches only conversations you took part in. With the `userId` of another member it is a 400 on a scope, and a 404 with `id=0`, as for any id but your own there. */
|
|
16395
|
+
source?: "home" | "agent_settings" | "agent" | "api" | "modus_api" | "mcp" | "slack" | "slack_dm" | "teams" | "context_chat" | "context_suggestions" | "dashboard_copilot" | "dashboard_assistant" | "email" | "other";
|
|
15760
16396
|
/** @description Narrow `source` to one instance of that surface — for `dashboard_copilot` or `dashboard_assistant`, a dashboard id (both scope conversation history per dashboard). Requires `source`; sent alone it is a 422. */
|
|
15761
16397
|
sourceRef?: string;
|
|
15762
16398
|
/** @description Filter by activity recency. Coarse server-side buckets. */
|
|
@@ -17295,10 +17931,10 @@ interface operations {
|
|
|
17295
17931
|
pageSize?: number;
|
|
17296
17932
|
/** @description Filter by user id who participated in the conversation. Exact match against the `conversation_interactions.user_id` column. */
|
|
17297
17933
|
userId?: string;
|
|
17298
|
-
/** @description Filter by tool name invoked in the conversation. Applied post-fetch (requires reading message blobs); use `includeTools=true` to also see the matched tools. */
|
|
17934
|
+
/** @description Filter by tool name invoked in the conversation. Applied post-fetch (requires reading message blobs); use `includeTools=true` to also see the matched tools. Matches only conversations you took part in. With the `userId` of another member it is a 400 on a scope, and a 404 with `id=0`, as for any id but your own there. */
|
|
17299
17935
|
toolName?: string;
|
|
17300
|
-
/** @description Return only conversations started from this UI surface. Cannot be combined with `toolName`, `includeTools=true`, or `kind` other than `all`. */
|
|
17301
|
-
source?: "home" | "agent_settings" | "agent" | "api" | "modus_api" | "mcp" | "slack" | "slack_dm" | "teams" | "context_chat" | "context_suggestions" | "dashboard_copilot" | "dashboard_assistant" | "other";
|
|
17936
|
+
/** @description Return only conversations started from this UI surface. Cannot be combined with `toolName`, `includeTools=true`, or `kind` other than `all`. Matches only conversations you took part in. With the `userId` of another member it is a 400 on a scope, and a 404 with `id=0`, as for any id but your own there. */
|
|
17937
|
+
source?: "home" | "agent_settings" | "agent" | "api" | "modus_api" | "mcp" | "slack" | "slack_dm" | "teams" | "context_chat" | "context_suggestions" | "dashboard_copilot" | "dashboard_assistant" | "email" | "other";
|
|
17302
17938
|
/** @description Narrow `source` to one instance of that surface — for `dashboard_copilot` or `dashboard_assistant`, a dashboard id (both scope conversation history per dashboard). Requires `source`; sent alone it is a 422. */
|
|
17303
17939
|
sourceRef?: string;
|
|
17304
17940
|
/** @description Filter by activity recency. Coarse server-side buckets. */
|
|
@@ -27977,6 +28613,17 @@ declare const OPERATIONS: {
|
|
|
27977
28613
|
readonly responseSchema: null;
|
|
27978
28614
|
readonly idempotent: false;
|
|
27979
28615
|
};
|
|
28616
|
+
readonly ContextItemsQueryController_query: {
|
|
28617
|
+
readonly method: "POST";
|
|
28618
|
+
readonly path: "/api/v1/context/items/query";
|
|
28619
|
+
readonly service: "modus-api";
|
|
28620
|
+
readonly serverUrl: "https://api.getmodus.com";
|
|
28621
|
+
readonly pathParams: readonly [];
|
|
28622
|
+
readonly queryParams: readonly [];
|
|
28623
|
+
readonly requestSchema: "QueryContextItemsRequestDto";
|
|
28624
|
+
readonly responseSchema: "QueryContextItemsResponseDto";
|
|
28625
|
+
readonly idempotent: true;
|
|
28626
|
+
};
|
|
27980
28627
|
readonly CustomContextItemsController_batchCreate: {
|
|
27981
28628
|
readonly method: "POST";
|
|
27982
28629
|
readonly path: "/api/v1/context/custom-items/batch";
|
|
@@ -27988,6 +28635,17 @@ declare const OPERATIONS: {
|
|
|
27988
28635
|
readonly responseSchema: "BatchCreateCustomContextItemsResponseDto";
|
|
27989
28636
|
readonly idempotent: false;
|
|
27990
28637
|
};
|
|
28638
|
+
readonly CustomContextItemsController_batchDelete: {
|
|
28639
|
+
readonly method: "POST";
|
|
28640
|
+
readonly path: "/api/v1/context/custom-items/batchDelete";
|
|
28641
|
+
readonly service: "modus-api";
|
|
28642
|
+
readonly serverUrl: "https://api.getmodus.com";
|
|
28643
|
+
readonly pathParams: readonly [];
|
|
28644
|
+
readonly queryParams: readonly [];
|
|
28645
|
+
readonly requestSchema: "BatchDeleteCustomContextItemsDto";
|
|
28646
|
+
readonly responseSchema: "BatchDeleteCustomContextItemsResponseDto";
|
|
28647
|
+
readonly idempotent: false;
|
|
28648
|
+
};
|
|
27991
28649
|
readonly CustomContextItemsController_create: {
|
|
27992
28650
|
readonly method: "POST";
|
|
27993
28651
|
readonly path: "/api/v1/context/custom-items";
|
|
@@ -28038,7 +28696,7 @@ declare const OPERATIONS: {
|
|
|
28038
28696
|
readonly service: "modus-api";
|
|
28039
28697
|
readonly serverUrl: "https://api.getmodus.com";
|
|
28040
28698
|
readonly pathParams: readonly [];
|
|
28041
|
-
readonly queryParams: readonly ["pageToken", "pageSize", "contextTypes", "verificationStatuses", "searchQuery", "topics"];
|
|
28699
|
+
readonly queryParams: readonly ["pageToken", "pageSize", "contextTypes", "verificationStatuses", "searchQuery", "topics", "sourceId", "collectionId", "externalId"];
|
|
28042
28700
|
readonly requestSchema: null;
|
|
28043
28701
|
readonly responseSchema: "ListCustomContextItemsResponseDto";
|
|
28044
28702
|
readonly idempotent: false;
|
|
@@ -29257,6 +29915,8 @@ type SupervisionView = 'active' | 'draft';
|
|
|
29257
29915
|
type ContextItem = components['schemas']['ContextItemDto'];
|
|
29258
29916
|
type ContextItemAncestor = components['schemas']['ContextItemAncestorDto'];
|
|
29259
29917
|
type ContextItemLookupRow = components['schemas']['LookupContextItemRowDto'];
|
|
29918
|
+
type ContextItemsQuery = components['schemas']['QueryContextItemsRequestDto'];
|
|
29919
|
+
type ContextItemsQueryResult = components['schemas']['QueryContextItemsResponseDto'];
|
|
29260
29920
|
type ContextItemDeletion = components['schemas']['DeleteContextItemResponseDto'];
|
|
29261
29921
|
type ContextItemMove = components['schemas']['MoveContextItemResponseDto'];
|
|
29262
29922
|
/** Input for `updateAccess()`; all three settings replace the current ones. */
|
|
@@ -29303,7 +29963,7 @@ interface CustomContextItemRelationInput {
|
|
|
29303
29963
|
fromUid: string;
|
|
29304
29964
|
toUid: string;
|
|
29305
29965
|
relationType: string;
|
|
29306
|
-
|
|
29966
|
+
edgeProperties?: Record<string, string | number | boolean | Array<string | number | boolean>>;
|
|
29307
29967
|
}
|
|
29308
29968
|
interface CreatedCustomContextItem {
|
|
29309
29969
|
contextItemId: string;
|
|
@@ -29322,6 +29982,36 @@ interface CustomContextItemDeletion {
|
|
|
29322
29982
|
uid: string;
|
|
29323
29983
|
contextType: string;
|
|
29324
29984
|
}
|
|
29985
|
+
interface BatchDeleteCustomContextItemsInput {
|
|
29986
|
+
/** Customer-defined source to delete from. Required. */
|
|
29987
|
+
sourceId: string;
|
|
29988
|
+
/** Narrow to one collection inside the source. */
|
|
29989
|
+
collectionId?: string;
|
|
29990
|
+
/** Narrow to one entity inside the collection. Requires `collectionId`. */
|
|
29991
|
+
externalId?: string;
|
|
29992
|
+
/**
|
|
29993
|
+
* Which kind to delete at the selected path, for a non-cascade delete — an
|
|
29994
|
+
* entity and its `entity_samples` share a path, so this disambiguates them.
|
|
29995
|
+
* Defaults to the metadata item at the selected level. Ignored when `cascade`.
|
|
29996
|
+
*/
|
|
29997
|
+
kind?: CustomContextItemKind;
|
|
29998
|
+
/** When true, also delete everything beneath the targeted node; default deletes only the targeted node. */
|
|
29999
|
+
cascade?: boolean;
|
|
30000
|
+
/** Continuation cursor from a previous response `nextCursor`. */
|
|
30001
|
+
cursor?: string;
|
|
30002
|
+
}
|
|
30003
|
+
interface BatchDeleteCustomContextItemsResult {
|
|
30004
|
+
/** Number of custom context items soft-deleted by this request. */
|
|
30005
|
+
deletedCount: number;
|
|
30006
|
+
/** True when more matching items were ahead of this batch; call again with `nextCursor`. */
|
|
30007
|
+
truncated: boolean;
|
|
30008
|
+
/**
|
|
30009
|
+
* Continuation cursor; pass as `cursor` to delete the next batch. `null` means no more matching
|
|
30010
|
+
* items were ahead at scan time — this is a forward pass, not a snapshot, so items added (or
|
|
30011
|
+
* recreated with a lower id) during the sweep may be missed; run a fresh pass (no cursor) to catch them.
|
|
30012
|
+
*/
|
|
30013
|
+
nextCursor: string | null;
|
|
30014
|
+
}
|
|
29325
30015
|
/**
|
|
29326
30016
|
* Create, update, and delete custom context items.
|
|
29327
30017
|
*
|
|
@@ -29364,11 +30054,14 @@ declare class CustomContextItemsResource {
|
|
|
29364
30054
|
* @param options.pageToken - Opaque token from a previous page.
|
|
29365
30055
|
* @param options.searchQuery - Word search: returns rows that contain every word of the query, case-insensitive.
|
|
29366
30056
|
* @param options.topics - Filter to items tagged with any of these topics.
|
|
30057
|
+
* @param options.sourceId - Restrict to one customer-defined source and everything beneath it.
|
|
30058
|
+
* @param options.collectionId - Restrict to one collection inside the source. Requires `sourceId`.
|
|
30059
|
+
* @param options.externalId - Restrict to one entity inside the collection. Requires `sourceId` and `collectionId`.
|
|
29367
30060
|
* @returns A page of custom context items.
|
|
29368
30061
|
* @example
|
|
29369
30062
|
* ```ts
|
|
29370
30063
|
* const client = new Modus()
|
|
29371
|
-
* const page = await client.context.customItems.list({
|
|
30064
|
+
* const page = await client.context.customItems.list({ sourceId: 'billing-db' })
|
|
29372
30065
|
* for (const item of page.items) console.log(item.uid, item.contextType)
|
|
29373
30066
|
* ```
|
|
29374
30067
|
*/
|
|
@@ -29377,6 +30070,9 @@ declare class CustomContextItemsResource {
|
|
|
29377
30070
|
pageToken?: string;
|
|
29378
30071
|
searchQuery?: string;
|
|
29379
30072
|
topics?: string[];
|
|
30073
|
+
sourceId?: string;
|
|
30074
|
+
collectionId?: string;
|
|
30075
|
+
externalId?: string;
|
|
29380
30076
|
}): Promise<Page<ContextItem>>;
|
|
29381
30077
|
private listPage;
|
|
29382
30078
|
/**
|
|
@@ -29450,7 +30146,7 @@ declare class CustomContextItemsResource {
|
|
|
29450
30146
|
/**
|
|
29451
30147
|
* Create or update typed relations between context items.
|
|
29452
30148
|
*
|
|
29453
|
-
* @param relations - Relations with source and target item uids, a snake_case type, and optional
|
|
30149
|
+
* @param relations - Relations with source and target item uids, a snake_case type, and optional flat edgeProperties. Omitting edgeProperties on an existing relation replaces its stored properties with `{}`.
|
|
29454
30150
|
* @returns Number of relations created or updated.
|
|
29455
30151
|
* @example
|
|
29456
30152
|
* ```ts
|
|
@@ -29459,6 +30155,7 @@ declare class CustomContextItemsResource {
|
|
|
29459
30155
|
* fromUid: 'SOURCE_UID',
|
|
29460
30156
|
* toUid: 'TARGET_UID',
|
|
29461
30157
|
* relationType: 'depends_on',
|
|
30158
|
+
* edgeProperties: { source_file: 'go.mod' },
|
|
29462
30159
|
* }])
|
|
29463
30160
|
* ```
|
|
29464
30161
|
*/
|
|
@@ -29492,6 +30189,31 @@ declare class CustomContextItemsResource {
|
|
|
29492
30189
|
* ```
|
|
29493
30190
|
*/
|
|
29494
30191
|
delete(uid: string): Promise<CustomContextItemDeletion>;
|
|
30192
|
+
/**
|
|
30193
|
+
* Delete custom context items selected by source key.
|
|
30194
|
+
*
|
|
30195
|
+
* Only items you can manage are deleted, and integration-derived context items
|
|
30196
|
+
* are never affected. By default only the targeted node is removed; set
|
|
30197
|
+
* `cascade` to also remove everything beneath it. Processes up to 1000 items
|
|
30198
|
+
* per call — when `truncated` is true, call again to continue.
|
|
30199
|
+
*
|
|
30200
|
+
* @param input.sourceId - Source to delete from. Required.
|
|
30201
|
+
* @param input.collectionId - Narrow to one collection inside the source.
|
|
30202
|
+
* @param input.externalId - Narrow to one entity inside the collection.
|
|
30203
|
+
* @param input.cascade - Also delete everything beneath the targeted node.
|
|
30204
|
+
* @returns Counts of deleted and skipped items, and whether more remain.
|
|
30205
|
+
* @example
|
|
30206
|
+
* ```ts
|
|
30207
|
+
* const client = new Modus()
|
|
30208
|
+
* const result = await client.context.customItems.batchDelete({
|
|
30209
|
+
* sourceId: 'billing-db',
|
|
30210
|
+
* collectionId: 'contracts',
|
|
30211
|
+
* cascade: true,
|
|
30212
|
+
* })
|
|
30213
|
+
* console.log(result.deletedCount, result.truncated)
|
|
30214
|
+
* ```
|
|
30215
|
+
*/
|
|
30216
|
+
batchDelete(input: BatchDeleteCustomContextItemsInput): Promise<BatchDeleteCustomContextItemsResult>;
|
|
29495
30217
|
}
|
|
29496
30218
|
|
|
29497
30219
|
/** Generated base for the consumption `scopes.conversations` resource. */
|
|
@@ -29505,15 +30227,16 @@ declare class ScopesConversationsResourceBase {
|
|
|
29505
30227
|
* List scope conversations.
|
|
29506
30228
|
*
|
|
29507
30229
|
* Returns a page of conversation summaries (most recently updated first) for a scope. Use `id=0`
|
|
29508
|
-
* for your cross-scope recent history.
|
|
29509
|
-
* page.
|
|
30230
|
+
* for your cross-scope recent history. A conversation you took no part in shows only who took
|
|
30231
|
+
* part and when. Pass `nextPageToken` as `pageToken` for the next page.
|
|
29510
30232
|
*
|
|
29511
30233
|
* **Requires:** `scopes:read`
|
|
29512
30234
|
*
|
|
29513
30235
|
* @param options.pageSize - Items per page. Defaults to 25.
|
|
29514
30236
|
* @param options.pageToken - Opaque page token from a previous response's `nextPageToken`. Omit
|
|
29515
30237
|
* for the first page.
|
|
29516
|
-
* @param options.source - Return only conversations started from this UI surface.
|
|
30238
|
+
* @param options.source - Return only conversations started from this UI surface. Matches only
|
|
30239
|
+
* conversations you took part in.
|
|
29517
30240
|
* @param options.sourceRef - Narrow `source` to one instance of that surface — for
|
|
29518
30241
|
* `dashboard_copilot` or `dashboard_assistant`, a dashboard id (both scope conversation history
|
|
29519
30242
|
* per dashboard). Requires `source`; sent alone it is a 422.
|
|
@@ -29579,4 +30302,4 @@ declare abstract class ModusClientBase {
|
|
|
29579
30302
|
toString(): string;
|
|
29580
30303
|
}
|
|
29581
30304
|
|
|
29582
|
-
export { type Agent as A, type
|
|
30305
|
+
export { type Agent as A, type BatchDeleteCustomContextItemsInput as B, type Conversation as C, type OperationId as D, type OperationSpec as E, type ScopeStatus as F, type ScopeVariation as G, HttpClient as H, type Skill as I, type SkillStatus as J, type SkillVariation as K, type SupervisionView as L, type ModusConfig as M, type UpdateCustomContextItemInput as N, OPERATIONS as O, Page as P, conversationScopeId as Q, conversationSkillId as R, type Scope as S, type operations as T, type UpdateContextItemAccessInput as U, type VariationView as V, WorkflowType as W, type paths as X, type CreatedContextItem as Y, ScopeConversationsResource as a, type ConversationKind as b, type components as c, type ConversationListItem as d, type Workflow as e, type ContextItemsQuery as f, type ContextItemsQueryResult as g, type ContextItem as h, type ContextItemLookupRow as i, CustomContextItemsResource as j, ModusClientBase as k, type ModusOptions as l, AgentType as m, type BatchDeleteCustomContextItemsResult as n, type ContextItemAccessUpdate as o, type ContextItemAncestor as p, type ContextItemDeletion as q, type ContextItemMove as r, type ContextType as s, type CreateCustomContextItemInput as t, type CreatedCustomContextItem as u, type CustomAttributeInput as v, type CustomContextItemDeletion as w, type CustomContextItemKind as x, type CustomContextItemRelationInput as y, type Message as z };
|