@getmodus/sdk 0.10.0 → 0.11.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 +5 -2
- package/README.md +8 -1
- package/dist/{_client-base-H5rt5EGy.d.cts → _client-base-DdnxB9JA.d.cts} +289 -25
- package/dist/{_client-base-H5rt5EGy.d.ts → _client-base-DdnxB9JA.d.ts} +289 -25
- package/dist/{chunk-NA3ZD35T.cjs → chunk-3MHHVC6C.cjs} +14 -2
- package/dist/chunk-3MHHVC6C.cjs.map +1 -0
- package/dist/{chunk-BMYCORZF.js → chunk-JVTQBBMZ.js} +14 -2
- package/dist/chunk-JVTQBBMZ.js.map +1 -0
- package/dist/index.cjs +157 -128
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +32 -8
- package/dist/index.d.ts +32 -8
- package/dist/index.js +36 -7
- package/dist/index.js.map +1 -1
- package/dist/management/index.cjs +259 -259
- package/dist/management/index.cjs.map +1 -1
- package/dist/management/index.d.cts +3 -3
- package/dist/management/index.d.ts +3 -3
- package/dist/management/index.js +3 -3
- 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
package/CHANGELOG.md
CHANGED
|
@@ -9,14 +9,16 @@ release, including pre-1.0 (`0.x`) releases.
|
|
|
9
9
|
|
|
10
10
|
## [Unreleased]
|
|
11
11
|
|
|
12
|
-
## [0.
|
|
12
|
+
## [0.11.0] — 2026-11-14
|
|
13
13
|
|
|
14
14
|
### Added
|
|
15
15
|
|
|
16
|
+
- **`model` on a conversation.** Conversation reads include `model` (`string | null`), the identifier of the model the conversation's most recent turn ran on. `null` when no turn recorded a model; absent when it could not be read.
|
|
17
|
+
- **`context.items.query({ sql, maxRows? })`.** Runs one read-only SQL statement over the `context_items` table and returns `{ rows, rowCount, truncated }`. The query sees only the items you can read. At most 1,000 rows come back (`maxRows` lowers it); `truncated` says when there were more. A query that is not read-only or not valid fails with 400, and one that runs past 20 s with 422. Off by default per organization; ask Modus to enable it. `ContextItemsQuery` and `ContextItemsQueryResult` import from `@getmodus/sdk`.
|
|
16
18
|
- **`generatedDescription` on a scope.** Scope reads include `generatedDescription` (`string | null`), the summary written for the scope so a caller can choose it. Null when none has been written.
|
|
17
19
|
- **Breaking (pre-1.0): `SupervisionView`.** `mgmt.scopes.supervision(id).get({ view })` takes `SupervisionView` (`'active' | 'draft'`). `published` is not a supervision view. `VariationView` now also allows `'published'`, so a value typed as `VariationView` no longer type-checks there. Migration: type it as `SupervisionView`. Runtime values are unchanged.
|
|
18
20
|
- **`view: 'published'` on scope and workflow list and get.** Returns the published version you can use. A scope or workflow that is only a draft, deleted, or that you can manage but not use is left out. For workflows it is also type workflow only; a task is left out. `active` and `draft` are unchanged.
|
|
19
|
-
- **`scopes.applySelectionOps()`.** Apply selection changes to a scope. Pass `{ validateOnly: true }` to run the same checks and return the scope that would be saved, without writing. A preview result carries `validateOnly: true`; a committed one does not, and every other field keeps its stored value, so a preview still needs a second call to save.
|
|
21
|
+
- **`scopes.applySelectionOps()`.** Apply selection changes to a scope. Pass `{ validateOnly: true }` to run the same checks and return the scope that would be saved, without writing. A preview result carries `validateOnly: true`; a committed one does not, and every other field keeps its stored value, so a preview still needs a second call to save. Set a connection with `setConnectionPreferences` and remove it with `removeConnection`.
|
|
20
22
|
- **`claude-haiku-5.5` model.** Anthropic's Claude Haiku 5.5 is an accepted chat model id.
|
|
21
23
|
- **`gemini-3.8-flash` model.** Google's generally available Gemini 3.8 Flash is an accepted chat
|
|
22
24
|
model id.
|
|
@@ -85,6 +87,7 @@ release, including pre-1.0 (`0.x`) releases.
|
|
|
85
87
|
|
|
86
88
|
### Removed
|
|
87
89
|
|
|
90
|
+
- **Breaking (pre-1.0): scope writes send a connection's selection only as `preferences`.** Each `connectionSet` entry `scopes.create()` and `scopes.update()` send is `{ connection_id, preferences, context_enabled? }`: `path` is removed from the request and `preferences` is required. An entry with `path` or without `preferences` is rejected with 400 and `info.reason` `legacy_entry`. `applySelectionOps()` no longer takes `selectRoot`, `deselectRoot` or `setRootDeepRules`, nor their `path`, `includes` and `excludes` fields: set a connection with `setConnectionPreferences` and remove it with the new `removeConnection`. Reads still return one row per included path, with `path`, so turn a read into one entry per connection before you write it back.
|
|
88
91
|
- **Breaking (pre-1.0): `chatStream()`, `ChatStream` and `ChatRequest`.** Use `chat()`, which streams. `getFinalResult()` is replaced by `await`ing the session.
|
|
89
92
|
- **Breaking (pre-1.0): `version: 'draft'` on scope chat.** API tokens run published scopes only.
|
|
90
93
|
|
package/README.md
CHANGED
|
@@ -170,6 +170,13 @@ for await (const chunk of live.textStream()) {
|
|
|
170
170
|
for await (const item of (await client.context.items.list()).autoPagingIter()) {
|
|
171
171
|
console.log(item.uid, item.description ?? item.uid)
|
|
172
172
|
}
|
|
173
|
+
|
|
174
|
+
// One read-only SQL statement over the items you can read (at most 1,000 rows; `truncated` says when cut).
|
|
175
|
+
// Off by default for an organization; ask Modus to enable it.
|
|
176
|
+
const result = await client.context.items.query({
|
|
177
|
+
sql: 'SELECT context_type, count(*) AS items FROM context_items GROUP BY context_type ORDER BY items DESC',
|
|
178
|
+
})
|
|
179
|
+
console.log(result.rows, result.truncated)
|
|
173
180
|
```
|
|
174
181
|
|
|
175
182
|
### Workflows
|
|
@@ -281,7 +288,7 @@ console.log(access.canManage)
|
|
|
281
288
|
|
|
282
289
|
Requires a token with write access to scopes and workflows (same as the Modus UI). Context file upload/finalize also needs `context:write`; polling status and listing context items need `context:read`.
|
|
283
290
|
|
|
284
|
-
Updating a scope replaces whole lists such as `connectionSet`, `contextSelections`, and `evaluations`. Add or change one evaluation case with `scopes.evaluations(id).addCase`, `updateCase`, or `deleteCase`. Change one connection's selection with `applySelectionOps` (`validateOnly: true` previews and does not write). `
|
|
291
|
+
Updating a scope replaces whole lists such as `connectionSet`, `contextSelections`, and `evaluations`. Add or change one evaluation case with `scopes.evaluations(id).addCase`, `updateCase`, or `deleteCase`. Change one connection's selection with `applySelectionOps` (`validateOnly: true` previews and does not write). Each `connectionSet` entry is `{ connection_id, preferences }`; remove a connection with the `removeConnection` op.
|
|
285
292
|
### Connection-specific toolsets
|
|
286
293
|
|
|
287
294
|
Use the catalog platform key and an explicit lowercase connection UUID. SQL platforms
|
|
@@ -761,6 +761,28 @@ interface paths {
|
|
|
761
761
|
patch?: never;
|
|
762
762
|
trace?: never;
|
|
763
763
|
};
|
|
764
|
+
"/api/v1/context/items/query": {
|
|
765
|
+
parameters: {
|
|
766
|
+
query?: never;
|
|
767
|
+
header?: never;
|
|
768
|
+
path?: never;
|
|
769
|
+
cookie?: never;
|
|
770
|
+
};
|
|
771
|
+
get?: never;
|
|
772
|
+
put?: never;
|
|
773
|
+
/**
|
|
774
|
+
* Query context items with SQL
|
|
775
|
+
* @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.
|
|
776
|
+
*
|
|
777
|
+
* **Requires:** `context:read`
|
|
778
|
+
*/
|
|
779
|
+
post: operations["ContextItemsQueryController_query"];
|
|
780
|
+
delete?: never;
|
|
781
|
+
options?: never;
|
|
782
|
+
head?: never;
|
|
783
|
+
patch?: never;
|
|
784
|
+
trace?: never;
|
|
785
|
+
};
|
|
764
786
|
"/api/v1/context/items/{uid}": {
|
|
765
787
|
parameters: {
|
|
766
788
|
query?: never;
|
|
@@ -1033,7 +1055,7 @@ interface paths {
|
|
|
1033
1055
|
put?: never;
|
|
1034
1056
|
/**
|
|
1035
1057
|
* Create a scope
|
|
1036
|
-
* @description Creates a draft scope you own. Defaults to org-shared use and manage. Reads its own learnings unless `includeOwnLearnings` is false. Publish with POST /scopes/{id}/deploy. `connectionSet` entries name a connection and what the scope reads in it (`preferences`)
|
|
1058
|
+
* @description Creates a draft scope you own. Defaults to org-shared use and manage. Reads its own learnings unless `includeOwnLearnings` is false. Publish with POST /scopes/{id}/deploy. `connectionSet` entries name a connection and what the scope reads in it (`preferences`).
|
|
1037
1059
|
*
|
|
1038
1060
|
* **Requires:** `scopes:write`
|
|
1039
1061
|
*/
|
|
@@ -1071,7 +1093,7 @@ interface paths {
|
|
|
1071
1093
|
head?: never;
|
|
1072
1094
|
/**
|
|
1073
1095
|
* 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`)
|
|
1096
|
+
* @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
1097
|
*
|
|
1076
1098
|
* **Requires:** `scopes:write`
|
|
1077
1099
|
*/
|
|
@@ -2991,12 +3013,6 @@ interface components {
|
|
|
2991
3013
|
* @example 11111111-1111-4111-8111-111111111111
|
|
2992
3014
|
*/
|
|
2993
3015
|
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
3016
|
/**
|
|
3001
3017
|
* @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
3018
|
* @example {
|
|
@@ -3030,7 +3046,7 @@ interface components {
|
|
|
3030
3046
|
* ]
|
|
3031
3047
|
* }
|
|
3032
3048
|
*/
|
|
3033
|
-
preferences
|
|
3049
|
+
preferences: {
|
|
3034
3050
|
[key: string]: unknown;
|
|
3035
3051
|
};
|
|
3036
3052
|
/**
|
|
@@ -3275,6 +3291,11 @@ interface components {
|
|
|
3275
3291
|
messages: components["schemas"]["ConversationMessageDto"][];
|
|
3276
3292
|
/** @description Present only when a bounded message window was requested and honored. */
|
|
3277
3293
|
messageWindow?: components["schemas"]["ConversationMessageWindowDto"];
|
|
3294
|
+
/**
|
|
3295
|
+
* @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.
|
|
3296
|
+
* @example claude-sonnet-5.5
|
|
3297
|
+
*/
|
|
3298
|
+
model?: string | null;
|
|
3278
3299
|
/**
|
|
3279
3300
|
* @description ISO-8601 timestamp of the first checkpoint for this thread.
|
|
3280
3301
|
* @example 2026-05-01T10:00:00.000Z
|
|
@@ -3691,7 +3712,7 @@ interface components {
|
|
|
3691
3712
|
/** @description Model-specific runtime controls such as reasoning effort and context window. */
|
|
3692
3713
|
modelSettings?: components["schemas"]["ModelSettingsDto"];
|
|
3693
3714
|
/**
|
|
3694
|
-
* @description Connections this scope can use. Each entry names a connection and what the scope reads under it in `preferences`; `path
|
|
3715
|
+
* @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
3716
|
* @example [
|
|
3696
3717
|
* {
|
|
3697
3718
|
* "connection_id": "11111111-1111-4111-8111-111111111111",
|
|
@@ -5096,6 +5117,39 @@ interface components {
|
|
|
5096
5117
|
/** @description The version that was just published. */
|
|
5097
5118
|
version: components["schemas"]["DashboardVersionDto"];
|
|
5098
5119
|
};
|
|
5120
|
+
QueryContextItemsRequestDto: {
|
|
5121
|
+
/**
|
|
5122
|
+
* @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.
|
|
5123
|
+
* @example SELECT context_type, count(*) AS items FROM context_items GROUP BY context_type ORDER BY items DESC
|
|
5124
|
+
*/
|
|
5125
|
+
sql: string;
|
|
5126
|
+
/** @description The most rows to return, 1,000 when omitted. A query with more returns this many and sets `truncated`. */
|
|
5127
|
+
maxRows?: number;
|
|
5128
|
+
};
|
|
5129
|
+
QueryContextItemsResponseDto: {
|
|
5130
|
+
/**
|
|
5131
|
+
* @description Result rows, one object per row keyed by column name.
|
|
5132
|
+
* @example [
|
|
5133
|
+
* {
|
|
5134
|
+
* "context_type": "table_metadata",
|
|
5135
|
+
* "items": "412"
|
|
5136
|
+
* }
|
|
5137
|
+
* ]
|
|
5138
|
+
*/
|
|
5139
|
+
rows: {
|
|
5140
|
+
[key: string]: unknown;
|
|
5141
|
+
}[];
|
|
5142
|
+
/**
|
|
5143
|
+
* @description Number of rows returned.
|
|
5144
|
+
* @example 1
|
|
5145
|
+
*/
|
|
5146
|
+
rowCount: number;
|
|
5147
|
+
/**
|
|
5148
|
+
* @description True when rows were left out: the query had more than `maxRows`, or the rows passed 6 MB of JSON.
|
|
5149
|
+
* @example false
|
|
5150
|
+
*/
|
|
5151
|
+
truncated: boolean;
|
|
5152
|
+
};
|
|
5099
5153
|
/**
|
|
5100
5154
|
* @description Optional reasoning effort for models that support it.
|
|
5101
5155
|
* @enum {string}
|
|
@@ -5357,18 +5411,12 @@ interface components {
|
|
|
5357
5411
|
};
|
|
5358
5412
|
SelectionOpDto: {
|
|
5359
5413
|
/**
|
|
5360
|
-
* @description Which selection edit this op makes.
|
|
5414
|
+
* @description Which selection edit this op makes. setConnectionPreferences sets a connection's whole data selection; removeConnection removes the connection from the scope.
|
|
5361
5415
|
* @enum {string}
|
|
5362
5416
|
*/
|
|
5363
|
-
op: "
|
|
5364
|
-
/** @description Connection
|
|
5417
|
+
op: "setConnectionPreferences" | "removeConnection" | "pinItem" | "unpinItem" | "clearPinnedItems" | "setAdditionalContextRules";
|
|
5418
|
+
/** @description Connection whose preferences are set, or which is removed. */
|
|
5365
5419
|
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
5420
|
/** @description The connection’s whole data selection, as workspace access preferences. */
|
|
5373
5421
|
preferences?: {
|
|
5374
5422
|
[key: string]: unknown;
|
|
@@ -5958,7 +6006,7 @@ interface components {
|
|
|
5958
6006
|
/** @description Updated model-specific runtime controls. Pass `null` to clear. */
|
|
5959
6007
|
modelSettings?: components["schemas"]["ModelSettingsDto"] | null;
|
|
5960
6008
|
/**
|
|
5961
|
-
* @description Replacement connection list. Each entry names a connection and what the scope reads under it in `preferences`; `path
|
|
6009
|
+
* @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
6010
|
* @example [
|
|
5963
6011
|
* {
|
|
5964
6012
|
* "connection_id": "11111111-1111-4111-8111-111111111111",
|
|
@@ -6600,7 +6648,7 @@ interface components {
|
|
|
6600
6648
|
connectionSelections?: {
|
|
6601
6649
|
[key: string]: unknown;
|
|
6602
6650
|
}[];
|
|
6603
|
-
/** @description
|
|
6651
|
+
/** @description Connection-set entries (runtime-owned shape): `connection_id`, and optionally `preferences` (the connection's workspace-access preferences), `context_enabled` and `path` (a row the preferences compile to). */
|
|
6604
6652
|
connectionSet?: {
|
|
6605
6653
|
[key: string]: unknown;
|
|
6606
6654
|
}[];
|
|
@@ -6684,9 +6732,9 @@ interface components {
|
|
|
6684
6732
|
subordinateSkillIds?: number[];
|
|
6685
6733
|
};
|
|
6686
6734
|
SupplementalContextDto: {
|
|
6687
|
-
/** @description Background context (e.g. Slack/Teams thread + channel history
|
|
6735
|
+
/** @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
6736
|
text: string;
|
|
6689
|
-
/** @description Only the background that is new since the previous turn,
|
|
6737
|
+
/** @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
6738
|
followUpText?: string;
|
|
6691
6739
|
/** @description Producer that supplied the supplemental context. */
|
|
6692
6740
|
source: components["schemas"]["SupplementalContextSource"];
|
|
@@ -6695,7 +6743,7 @@ interface components {
|
|
|
6695
6743
|
* @description Producer that supplied the supplemental context.
|
|
6696
6744
|
* @enum {string}
|
|
6697
6745
|
*/
|
|
6698
|
-
SupplementalContextSource: "slack" | "teams";
|
|
6746
|
+
SupplementalContextSource: "slack" | "teams" | "mcp";
|
|
6699
6747
|
UserContextDto: {
|
|
6700
6748
|
/** @description End-user email for personalization; also used for usage attribution. */
|
|
6701
6749
|
email?: string;
|
|
@@ -13673,6 +13721,209 @@ interface operations {
|
|
|
13673
13721
|
};
|
|
13674
13722
|
};
|
|
13675
13723
|
};
|
|
13724
|
+
ContextItemsQueryController_query: {
|
|
13725
|
+
parameters: {
|
|
13726
|
+
query?: never;
|
|
13727
|
+
header?: never;
|
|
13728
|
+
path?: never;
|
|
13729
|
+
cookie?: never;
|
|
13730
|
+
};
|
|
13731
|
+
requestBody: {
|
|
13732
|
+
content: {
|
|
13733
|
+
"application/json": components["schemas"]["QueryContextItemsRequestDto"];
|
|
13734
|
+
};
|
|
13735
|
+
};
|
|
13736
|
+
responses: {
|
|
13737
|
+
200: {
|
|
13738
|
+
headers: {
|
|
13739
|
+
[name: string]: unknown;
|
|
13740
|
+
};
|
|
13741
|
+
content: {
|
|
13742
|
+
"application/json": components["schemas"]["QueryContextItemsResponseDto"];
|
|
13743
|
+
};
|
|
13744
|
+
};
|
|
13745
|
+
/** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
|
|
13746
|
+
400: {
|
|
13747
|
+
headers: {
|
|
13748
|
+
[name: string]: unknown;
|
|
13749
|
+
};
|
|
13750
|
+
content: {
|
|
13751
|
+
/**
|
|
13752
|
+
* @example {
|
|
13753
|
+
* "error": {
|
|
13754
|
+
* "code": "BAD_REQUEST",
|
|
13755
|
+
* "status": "INVALID_ARGUMENT",
|
|
13756
|
+
* "message": "Invalid value for query parameter `pageSize`.",
|
|
13757
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
13758
|
+
* }
|
|
13759
|
+
* }
|
|
13760
|
+
*/
|
|
13761
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
13762
|
+
};
|
|
13763
|
+
};
|
|
13764
|
+
/** @description Missing, invalid, or expired access token (`code: UNAUTHORIZED`). */
|
|
13765
|
+
401: {
|
|
13766
|
+
headers: {
|
|
13767
|
+
[name: string]: unknown;
|
|
13768
|
+
};
|
|
13769
|
+
content: {
|
|
13770
|
+
/**
|
|
13771
|
+
* @example {
|
|
13772
|
+
* "error": {
|
|
13773
|
+
* "code": "UNAUTHORIZED",
|
|
13774
|
+
* "status": "UNAUTHENTICATED",
|
|
13775
|
+
* "message": "Missing or invalid access token.",
|
|
13776
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
13777
|
+
* }
|
|
13778
|
+
* }
|
|
13779
|
+
*/
|
|
13780
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
13781
|
+
};
|
|
13782
|
+
};
|
|
13783
|
+
/**
|
|
13784
|
+
* @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.
|
|
13785
|
+
*
|
|
13786
|
+
* Authenticated, but the token lacks a required scope (`code: FORBIDDEN`). The missing scopes are listed in `info`.
|
|
13787
|
+
*/
|
|
13788
|
+
403: {
|
|
13789
|
+
headers: {
|
|
13790
|
+
[name: string]: unknown;
|
|
13791
|
+
};
|
|
13792
|
+
content: {
|
|
13793
|
+
/**
|
|
13794
|
+
* @example {
|
|
13795
|
+
* "error": {
|
|
13796
|
+
* "code": "FORBIDDEN",
|
|
13797
|
+
* "status": "PERMISSION_DENIED",
|
|
13798
|
+
* "message": "Missing required scope(s) for this operation.",
|
|
13799
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS",
|
|
13800
|
+
* "info": {
|
|
13801
|
+
* "missing": [
|
|
13802
|
+
* "<required-scope>"
|
|
13803
|
+
* ]
|
|
13804
|
+
* }
|
|
13805
|
+
* }
|
|
13806
|
+
* }
|
|
13807
|
+
*/
|
|
13808
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
13809
|
+
};
|
|
13810
|
+
};
|
|
13811
|
+
/** @description The resource does not exist, or you do not have access to it (`code: NOT_FOUND`). */
|
|
13812
|
+
404: {
|
|
13813
|
+
headers: {
|
|
13814
|
+
[name: string]: unknown;
|
|
13815
|
+
};
|
|
13816
|
+
content: {
|
|
13817
|
+
/**
|
|
13818
|
+
* @example {
|
|
13819
|
+
* "error": {
|
|
13820
|
+
* "code": "NOT_FOUND",
|
|
13821
|
+
* "status": "NOT_FOUND",
|
|
13822
|
+
* "message": "Resource not found.",
|
|
13823
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
13824
|
+
* }
|
|
13825
|
+
* }
|
|
13826
|
+
*/
|
|
13827
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
13828
|
+
};
|
|
13829
|
+
};
|
|
13830
|
+
/** @description The request conflicts with the current state of the resource, e.g. a duplicate (`code: CONFLICT`). */
|
|
13831
|
+
409: {
|
|
13832
|
+
headers: {
|
|
13833
|
+
[name: string]: unknown;
|
|
13834
|
+
};
|
|
13835
|
+
content: {
|
|
13836
|
+
/**
|
|
13837
|
+
* @example {
|
|
13838
|
+
* "error": {
|
|
13839
|
+
* "code": "CONFLICT",
|
|
13840
|
+
* "status": "ALREADY_EXISTS",
|
|
13841
|
+
* "message": "A resource with that identifier already exists.",
|
|
13842
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
13843
|
+
* }
|
|
13844
|
+
* }
|
|
13845
|
+
*/
|
|
13846
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
13847
|
+
};
|
|
13848
|
+
};
|
|
13849
|
+
/** @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. */
|
|
13850
|
+
413: {
|
|
13851
|
+
headers: {
|
|
13852
|
+
[name: string]: unknown;
|
|
13853
|
+
};
|
|
13854
|
+
content: {
|
|
13855
|
+
/**
|
|
13856
|
+
* @example {
|
|
13857
|
+
* "error": {
|
|
13858
|
+
* "code": "PAYLOAD_TOO_LARGE",
|
|
13859
|
+
* "status": "INVALID_ARGUMENT",
|
|
13860
|
+
* "message": "Request body exceeds the 1 MiB limit.",
|
|
13861
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
13862
|
+
* }
|
|
13863
|
+
* }
|
|
13864
|
+
*/
|
|
13865
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
13866
|
+
};
|
|
13867
|
+
};
|
|
13868
|
+
/** @description The request was well-formed but failed a business rule (`code: VALIDATION`). */
|
|
13869
|
+
422: {
|
|
13870
|
+
headers: {
|
|
13871
|
+
[name: string]: unknown;
|
|
13872
|
+
};
|
|
13873
|
+
content: {
|
|
13874
|
+
/**
|
|
13875
|
+
* @example {
|
|
13876
|
+
* "error": {
|
|
13877
|
+
* "code": "VALIDATION",
|
|
13878
|
+
* "status": "INVALID_ARGUMENT",
|
|
13879
|
+
* "message": "Updates that would revoke your own access are not allowed.",
|
|
13880
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
13881
|
+
* }
|
|
13882
|
+
* }
|
|
13883
|
+
*/
|
|
13884
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
13885
|
+
};
|
|
13886
|
+
};
|
|
13887
|
+
/** @description Too many requests. Wait and retry later (`code: RATE_LIMITED`). */
|
|
13888
|
+
429: {
|
|
13889
|
+
headers: {
|
|
13890
|
+
[name: string]: unknown;
|
|
13891
|
+
};
|
|
13892
|
+
content: {
|
|
13893
|
+
/**
|
|
13894
|
+
* @example {
|
|
13895
|
+
* "error": {
|
|
13896
|
+
* "code": "RATE_LIMITED",
|
|
13897
|
+
* "status": "RESOURCE_EXHAUSTED",
|
|
13898
|
+
* "message": "Too many requests. Please retry after a short delay.",
|
|
13899
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
13900
|
+
* }
|
|
13901
|
+
* }
|
|
13902
|
+
*/
|
|
13903
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
13904
|
+
};
|
|
13905
|
+
};
|
|
13906
|
+
/** @description An unexpected server error occurred (`code: INTERNAL_ERROR`). */
|
|
13907
|
+
500: {
|
|
13908
|
+
headers: {
|
|
13909
|
+
[name: string]: unknown;
|
|
13910
|
+
};
|
|
13911
|
+
content: {
|
|
13912
|
+
/**
|
|
13913
|
+
* @example {
|
|
13914
|
+
* "error": {
|
|
13915
|
+
* "code": "INTERNAL_ERROR",
|
|
13916
|
+
* "status": "INTERNAL",
|
|
13917
|
+
* "message": "An unexpected error occurred.",
|
|
13918
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
13919
|
+
* }
|
|
13920
|
+
* }
|
|
13921
|
+
*/
|
|
13922
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
13923
|
+
};
|
|
13924
|
+
};
|
|
13925
|
+
};
|
|
13926
|
+
};
|
|
13676
13927
|
ContextItemsController_get: {
|
|
13677
13928
|
parameters: {
|
|
13678
13929
|
query?: never;
|
|
@@ -27977,6 +28228,17 @@ declare const OPERATIONS: {
|
|
|
27977
28228
|
readonly responseSchema: null;
|
|
27978
28229
|
readonly idempotent: false;
|
|
27979
28230
|
};
|
|
28231
|
+
readonly ContextItemsQueryController_query: {
|
|
28232
|
+
readonly method: "POST";
|
|
28233
|
+
readonly path: "/api/v1/context/items/query";
|
|
28234
|
+
readonly service: "modus-api";
|
|
28235
|
+
readonly serverUrl: "https://api.getmodus.com";
|
|
28236
|
+
readonly pathParams: readonly [];
|
|
28237
|
+
readonly queryParams: readonly [];
|
|
28238
|
+
readonly requestSchema: "QueryContextItemsRequestDto";
|
|
28239
|
+
readonly responseSchema: "QueryContextItemsResponseDto";
|
|
28240
|
+
readonly idempotent: true;
|
|
28241
|
+
};
|
|
27980
28242
|
readonly CustomContextItemsController_batchCreate: {
|
|
27981
28243
|
readonly method: "POST";
|
|
27982
28244
|
readonly path: "/api/v1/context/custom-items/batch";
|
|
@@ -29257,6 +29519,8 @@ type SupervisionView = 'active' | 'draft';
|
|
|
29257
29519
|
type ContextItem = components['schemas']['ContextItemDto'];
|
|
29258
29520
|
type ContextItemAncestor = components['schemas']['ContextItemAncestorDto'];
|
|
29259
29521
|
type ContextItemLookupRow = components['schemas']['LookupContextItemRowDto'];
|
|
29522
|
+
type ContextItemsQuery = components['schemas']['QueryContextItemsRequestDto'];
|
|
29523
|
+
type ContextItemsQueryResult = components['schemas']['QueryContextItemsResponseDto'];
|
|
29260
29524
|
type ContextItemDeletion = components['schemas']['DeleteContextItemResponseDto'];
|
|
29261
29525
|
type ContextItemMove = components['schemas']['MoveContextItemResponseDto'];
|
|
29262
29526
|
/** Input for `updateAccess()`; all three settings replace the current ones. */
|
|
@@ -29579,4 +29843,4 @@ declare abstract class ModusClientBase {
|
|
|
29579
29843
|
toString(): string;
|
|
29580
29844
|
}
|
|
29581
29845
|
|
|
29582
|
-
export { type Agent as A, type
|
|
29846
|
+
export { type Agent as A, type OperationSpec as B, type Conversation as C, type ScopeStatus as D, type ScopeVariation as E, type Skill as F, type SkillStatus as G, HttpClient as H, type SkillVariation as I, type SupervisionView as J, type UpdateCustomContextItemInput as K, conversationScopeId as L, type ModusConfig as M, conversationSkillId as N, OPERATIONS as O, Page as P, type operations as Q, type paths as R, type Scope as S, type CreatedContextItem as T, type UpdateContextItemAccessInput as U, type VariationView as V, WorkflowType as W, 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 ContextItemAccessUpdate as n, type ContextItemAncestor as o, type ContextItemDeletion as p, type ContextItemMove as q, type ContextType as r, type CreateCustomContextItemInput as s, type CreatedCustomContextItem as t, type CustomAttributeInput as u, type CustomContextItemDeletion as v, type CustomContextItemKind as w, type CustomContextItemRelationInput as x, type Message as y, type OperationId as z };
|