@getmodus/sdk 0.12.0 → 0.13.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 +7 -1
- package/dist/{_client-base-DvrAQWuU.d.cts → _client-base-CGqIZtrm.d.cts} +75 -256
- package/dist/{_client-base-DvrAQWuU.d.ts → _client-base-CGqIZtrm.d.ts} +75 -256
- package/dist/{chunk-3CKUUDEJ.js → chunk-KX2P3TAH.js} +3 -13
- package/dist/chunk-KX2P3TAH.js.map +1 -0
- package/dist/{chunk-QHA3LF2Q.cjs → chunk-RK4NLJIN.cjs} +3 -13
- package/dist/chunk-RK4NLJIN.cjs.map +1 -0
- package/dist/index.cjs +118 -164
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -36
- package/dist/index.d.ts +5 -36
- package/dist/index.js +1 -47
- package/dist/index.js.map +1 -1
- package/dist/management/index.cjs +258 -258
- package/dist/management/index.cjs.map +1 -1
- package/dist/management/index.d.cts +4 -2
- package/dist/management/index.d.ts +4 -2
- package/dist/management/index.js +1 -1
- package/dist/management/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-3CKUUDEJ.js.map +0 -1
- package/dist/chunk-QHA3LF2Q.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,14 +9,18 @@ release, including pre-1.0 (`0.x`) releases.
|
|
|
9
9
|
|
|
10
10
|
## [Unreleased]
|
|
11
11
|
|
|
12
|
-
## [0.
|
|
12
|
+
## [0.13.0] — 2026-11-29
|
|
13
13
|
|
|
14
14
|
### Removed
|
|
15
15
|
|
|
16
|
+
- **MAJOR:** `connections.listSelections()` and `connections.iterSelections()` and the `ConnectionSelection` type are removed; the endpoint behind them is gone. A scope's `connectionSet` entry names parts through `preferences`.
|
|
16
17
|
- **MAJOR:** Custom context item relations no longer accept `content`. Use `edgeProperties` (`edge_properties` in Python) for a flat map of primitives or primitive arrays; omitting it replaces the map with `{}`.
|
|
17
18
|
|
|
18
19
|
### Added
|
|
19
20
|
|
|
21
|
+
- **`gemini-4-neon` model.** Google's Gemini 4 Neon is an accepted chat model id.
|
|
22
|
+
- **`qualityScore` on a context item.** Context item reads include `qualityScore`, from 0 to 1: `0` means answers do not use the item unless a user approved it (`userFeedback` is `positive`), `null` means it has no score and is used. Read-only; omitted by readers that do not return it.
|
|
23
|
+
- **`entities` on a usage report.** `usage.list()` reports, which break usage down by scope, include `entities` (`UsageEntity`): one entry per scope id in `buckets`, with `status` (`accessible`, `restricted` or `deleted`) and the owner's `owner_user_id` and `owner_email` when it has one. A restricted or deleted entry exposes only its id and owner. Absent on responses from older servers.
|
|
20
24
|
- **Personal tools in a toolset.** `PlatformToolsetEntry.personal` (`{ actions, rules? }`, beside `byConnection`) grants actions on the personal connection of whoever runs the skill. A runner who has not connected the platform is asked to connect it in chat, or gets a tool error elsewhere; nobody else's connection is used. Only platforms people connect personally (Gmail, Google Calendar, Google Drive and others) take it.
|
|
21
25
|
- **`personal` MCP exposure family.** `McpExposureFamily` includes `personal`: the MCP exposure catalog lists a platform's personal grant as one row (`toolset_personal:<platform>`, with `toolset_action:<platform>:personal:<action>` per tool) that runs on the own personal connection of whoever calls it.
|
|
22
26
|
- **`email` run source.** `RunSource` and `SupplementalContextSource` include `email`, for runs started by an email sent to a workflow's address; the conversation list's `source` filter accepts it. Only the email trigger records it: an API-token run asking for it still records its server-owned source (`api`, or `modus_api` for Modus runs), and `supplementalContext.source: 'email'` is refused with 400.
|
|
@@ -27,6 +31,8 @@ release, including pre-1.0 (`0.x`) releases.
|
|
|
27
31
|
|
|
28
32
|
### Changed
|
|
29
33
|
|
|
34
|
+
- **MAJOR:** Custom context relation types `mentions` and `defines` are reserved for system-managed entity links and cannot be written through `customItems.createRelations()`.
|
|
35
|
+
- **Custom context item writes work for every organization.** `customItems` writes no longer reject with `PermissionDeniedError` ("Custom context item writes are not enabled"); a token with `context:write` is all they need.
|
|
30
36
|
- **`workflows.chat()` runs a workflow without a message or a model.** `message` defaults to `''` and `options` is optional, so `await client.workflows.chat(workflowId)` triggers a run with no input, like Run Now in the app. `workflows.runs.create()` accepts a body without `message` or `sessionId` too.
|
|
31
37
|
- A scope save that adds a personal connection's UUID to `<platform>.byConnection`, or adds actions to one stored there, is refused with 422 (`UnprocessableError`, rule `toolset.personal_connection`); grant it with `personal` instead. Sending a stored entry back unchanged, or with fewer actions, still saves.
|
|
32
38
|
- **Changed:** a workflow created without `accessConfig` (`workflows.create()`) is now private, with no group grants and no invitees; its creator can share it later. Pass an `accessConfig` with `visibility: 'shared'` for the previous behaviour. A service account token that omits it still creates the workflow shared with the whole organization. Existing workflows are unchanged.
|
|
@@ -75,28 +75,6 @@ interface paths {
|
|
|
75
75
|
patch?: never;
|
|
76
76
|
trace?: never;
|
|
77
77
|
};
|
|
78
|
-
"/api/v1/connections/{connectionId}/selections": {
|
|
79
|
-
parameters: {
|
|
80
|
-
query?: never;
|
|
81
|
-
header?: never;
|
|
82
|
-
path?: never;
|
|
83
|
-
cookie?: never;
|
|
84
|
-
};
|
|
85
|
-
/**
|
|
86
|
-
* List selectable units of a connection
|
|
87
|
-
* @description Returns a page of selectable units on a connection you can use. An unknown or inaccessible connection returns 404. Pass `nextPageToken` as `pageToken` for the next page.
|
|
88
|
-
*
|
|
89
|
-
* **Requires:** `context:read`
|
|
90
|
-
*/
|
|
91
|
-
get: operations["ConnectionsController_listSelections"];
|
|
92
|
-
put?: never;
|
|
93
|
-
post?: never;
|
|
94
|
-
delete?: never;
|
|
95
|
-
options?: never;
|
|
96
|
-
head?: never;
|
|
97
|
-
patch?: never;
|
|
98
|
-
trace?: never;
|
|
99
|
-
};
|
|
100
78
|
"/api/v1/context/custom-items": {
|
|
101
79
|
parameters: {
|
|
102
80
|
query?: never;
|
|
@@ -1752,7 +1730,7 @@ interface paths {
|
|
|
1752
1730
|
};
|
|
1753
1731
|
/**
|
|
1754
1732
|
* List LLM usage
|
|
1755
|
-
* @description Returns time-bucketed LLM call counts and input/output tokens by model over the `[since, until)` window. `rollup` selects hour or day buckets. Scoped to your organization.
|
|
1733
|
+
* @description Returns time-bucketed LLM call counts and input/output tokens by model over the `[since, until)` window. `rollup` selects hour or day buckets. When grouping by scope or workflow, `entities` says whether you can access each one. Scoped to your organization.
|
|
1756
1734
|
*
|
|
1757
1735
|
* **Requires:** `usage:read`
|
|
1758
1736
|
*/
|
|
@@ -3056,25 +3034,6 @@ interface components {
|
|
|
3056
3034
|
/** @description How a scope selects units on this connection. Omitted when the connection has none. */
|
|
3057
3035
|
selectionModel?: components["schemas"]["SelectionModelDto"];
|
|
3058
3036
|
};
|
|
3059
|
-
ConnectionSelectionDto: {
|
|
3060
|
-
/**
|
|
3061
|
-
* @description Path of the unit, from the connection down to the unit itself.
|
|
3062
|
-
* @example [
|
|
3063
|
-
* "acme/widgets"
|
|
3064
|
-
* ]
|
|
3065
|
-
*/
|
|
3066
|
-
path: string[];
|
|
3067
|
-
/**
|
|
3068
|
-
* @description Kind of unit, such as repository or schema.
|
|
3069
|
-
* @example repository
|
|
3070
|
-
*/
|
|
3071
|
-
objectType: string;
|
|
3072
|
-
/**
|
|
3073
|
-
* @description Human-readable name, when the connection has one.
|
|
3074
|
-
* @example widgets
|
|
3075
|
-
*/
|
|
3076
|
-
displayName: string | null;
|
|
3077
|
-
};
|
|
3078
3037
|
ConnectionSetItemDto: {
|
|
3079
3038
|
/**
|
|
3080
3039
|
* @description Id of the connection.
|
|
@@ -3301,6 +3260,11 @@ interface components {
|
|
|
3301
3260
|
lastUpdateMetadata?: {
|
|
3302
3261
|
[key: string]: unknown;
|
|
3303
3262
|
} | null;
|
|
3263
|
+
/**
|
|
3264
|
+
* @description How far answers may rely on the item, from 0 to 1. `0` means the item is not used to answer questions unless `userFeedback` is `positive`; `null` means it has no score and is used.
|
|
3265
|
+
* @example null
|
|
3266
|
+
*/
|
|
3267
|
+
qualityScore?: number | null;
|
|
3304
3268
|
/** @description Present for notes, saved queries, links and uploaded files. */
|
|
3305
3269
|
access?: components["schemas"]["ContextItemAccessDto"];
|
|
3306
3270
|
/** @description Present for notes, saved queries, links and uploaded files. */
|
|
@@ -3546,7 +3510,7 @@ interface components {
|
|
|
3546
3510
|
*/
|
|
3547
3511
|
entityType?: string;
|
|
3548
3512
|
/**
|
|
3549
|
-
* @description Human-readable description.
|
|
3513
|
+
* @description Human-readable description. A non-blank description is kept, trimmed of surrounding whitespace; omit it or send a blank one and Modus generates one.
|
|
3550
3514
|
* @example Enterprise contract renewal metadata from the internal billing system.
|
|
3551
3515
|
*/
|
|
3552
3516
|
description?: string;
|
|
@@ -3605,7 +3569,7 @@ interface components {
|
|
|
3605
3569
|
*/
|
|
3606
3570
|
toUid: string;
|
|
3607
3571
|
/**
|
|
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.
|
|
3572
|
+
* @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, mentions, defines. Dotted names are also reserved.
|
|
3609
3573
|
* @example depends_on
|
|
3610
3574
|
*/
|
|
3611
3575
|
relationType: string;
|
|
@@ -4704,12 +4668,6 @@ interface components {
|
|
|
4704
4668
|
[key: string]: number;
|
|
4705
4669
|
};
|
|
4706
4670
|
};
|
|
4707
|
-
ListConnectionSelectionsResponseDto: {
|
|
4708
|
-
/** @description Page of selectable units on this connection. */
|
|
4709
|
-
selections: components["schemas"]["ConnectionSelectionDto"][];
|
|
4710
|
-
/** @description Opaque token for the next page; `null` when this was the last page. Pass as `pageToken` on the next request. */
|
|
4711
|
-
nextPageToken: string | null;
|
|
4712
|
-
};
|
|
4713
4671
|
ListConnectionsResponseDto: {
|
|
4714
4672
|
/** @description Page of integration connections the caller can `use`. Connections the caller cannot access are filtered out (not enumerated). */
|
|
4715
4673
|
connections: components["schemas"]["ConnectionDto"][];
|
|
@@ -4850,6 +4808,8 @@ interface components {
|
|
|
4850
4808
|
group_by: "all" | "skill" | "agent" | "interface" | "model" | "attribution";
|
|
4851
4809
|
buckets: components["schemas"]["UsageBucketDto"][];
|
|
4852
4810
|
totals: components["schemas"]["UsageTotalsDto"];
|
|
4811
|
+
/** @description Present when grouping by scope or workflow. One entry per scope or workflow id in `buckets`, saying whether you can access it. Unattributed usage (`group_value` `""`) and the Super scope (`0`) are not scopes or workflows and have no entry. A restricted or deleted entry exposes only its id and owner. */
|
|
4812
|
+
entities?: components["schemas"]["UsageEntityDto"][];
|
|
4853
4813
|
};
|
|
4854
4814
|
ListUsageUsersResponseDto: {
|
|
4855
4815
|
/** @description Distinct acting-user emails in the window. */
|
|
@@ -5488,7 +5448,7 @@ interface components {
|
|
|
5488
5448
|
};
|
|
5489
5449
|
SelectionOpDto: {
|
|
5490
5450
|
/**
|
|
5491
|
-
* @description Which selection edit this op makes. setConnectionPreferences sets a connection's whole data selection; removeConnection removes the connection from the scope.
|
|
5451
|
+
* @description Which selection edit this op makes. setConnectionPreferences sets a connection's whole data selection; removeConnection removes the connection from the scope with every tool granted on it; when the same request sends a toolset, that toolset is stored instead.
|
|
5492
5452
|
* @enum {string}
|
|
5493
5453
|
*/
|
|
5494
5454
|
op: "setConnectionPreferences" | "removeConnection" | "pinItem" | "unpinItem" | "clearPinnedItems" | "setAdditionalContextRules";
|
|
@@ -6246,6 +6206,21 @@ interface components {
|
|
|
6246
6206
|
/** @description Credits consumed in this bucket. */
|
|
6247
6207
|
credits: number;
|
|
6248
6208
|
};
|
|
6209
|
+
UsageEntityDto: {
|
|
6210
|
+
/** @description Scope or workflow id, as it appears in `group_value`. */
|
|
6211
|
+
id: string;
|
|
6212
|
+
/** @description `accessible`: you can use it. `restricted`: it exists but you are not allowed to use it. `deleted`: it was deleted or no longer exists. */
|
|
6213
|
+
status: components["schemas"]["UsageEntityStatus"];
|
|
6214
|
+
/** @description User id of the owner of the scope or workflow, when it has one. */
|
|
6215
|
+
owner_user_id: string | null;
|
|
6216
|
+
/** @description Email of the owner of the scope or workflow, when it has one. */
|
|
6217
|
+
owner_email: string | null;
|
|
6218
|
+
};
|
|
6219
|
+
/**
|
|
6220
|
+
* @description `accessible`: you can use it. `restricted`: it exists but you are not allowed to use it. `deleted`: it was deleted or no longer exists.
|
|
6221
|
+
* @enum {string}
|
|
6222
|
+
*/
|
|
6223
|
+
UsageEntityStatus: "accessible" | "restricted" | "deleted";
|
|
6249
6224
|
UsageTotalsDto: {
|
|
6250
6225
|
call_count: number;
|
|
6251
6226
|
input_tokens: number;
|
|
@@ -6798,7 +6773,7 @@ interface components {
|
|
|
6798
6773
|
status: string;
|
|
6799
6774
|
};
|
|
6800
6775
|
RunConfigDto: {
|
|
6801
|
-
/** @description Model id, e.g. claude-sonnet-4.6. API tokens must send one of: default, claude-sonnet-5, claude-sonnet-5.5, claude-sonnet-4.6, claude-opus-4.8, claude-opus-5.5, claude-haiku-5.5, gpt-5.2, gpt-5.5, gpt-5-mini, gpt-5.6-luna, gpt-6-luna, gpt-oss-120b, gpt-oss-20b, qwen3-235b-a22b-2507, qwen3-coder, qwen3-32b, deepseek-chat-v3.1, deepseek-v4-pro, deepseek-v4-flash-latest, deepseek-v4.1-flash-1017, minimax-m2.7, llama-4-maverick, llama-4-scout, llama-3.3-70b-instruct, gemini-3.1-pro-preview, gemini-3-flash-preview, gemini-3.8-flash, grok-4.3-fast, grok-4.3, grok-4.7, kimi-k3. */
|
|
6776
|
+
/** @description Model id, e.g. claude-sonnet-4.6. API tokens must send one of: default, claude-sonnet-5, claude-sonnet-5.5, claude-sonnet-4.6, claude-opus-4.8, claude-opus-5.5, claude-haiku-5.5, gpt-5.2, gpt-5.5, gpt-5-mini, gpt-5.6-luna, gpt-6-luna, gpt-oss-120b, gpt-oss-20b, qwen3-235b-a22b-2507, qwen3-coder, qwen3-32b, deepseek-chat-v3.1, deepseek-v4-pro, deepseek-v4-flash-latest, deepseek-v4.1-flash-1017, minimax-m2.7, llama-4-maverick, llama-4-scout, llama-3.3-70b-instruct, gemini-3.1-pro-preview, gemini-3-flash-preview, gemini-3.8-flash, gemini-4-neon, grok-4.3-fast, grok-4.3, grok-4.7, kimi-k3. */
|
|
6802
6777
|
model?: string;
|
|
6803
6778
|
/** @description Model-specific runtime controls. */
|
|
6804
6779
|
modelSettings?: components["schemas"]["RunModelSettingsDto"];
|
|
@@ -7079,152 +7054,6 @@ interface operations {
|
|
|
7079
7054
|
};
|
|
7080
7055
|
};
|
|
7081
7056
|
};
|
|
7082
|
-
ConnectionsController_listSelections: {
|
|
7083
|
-
parameters: {
|
|
7084
|
-
query?: {
|
|
7085
|
-
/** @description Opaque page token from a previous response's `nextPageToken`. Omit for the first page. */
|
|
7086
|
-
pageToken?: string;
|
|
7087
|
-
/** @description Max items per page. Defaults to 25. Values outside 1..100 are clamped to that range. */
|
|
7088
|
-
pageSize?: number;
|
|
7089
|
-
};
|
|
7090
|
-
header?: never;
|
|
7091
|
-
path: {
|
|
7092
|
-
/** @description Integration connection UUID. */
|
|
7093
|
-
connectionId: string;
|
|
7094
|
-
};
|
|
7095
|
-
cookie?: never;
|
|
7096
|
-
};
|
|
7097
|
-
requestBody?: never;
|
|
7098
|
-
responses: {
|
|
7099
|
-
200: {
|
|
7100
|
-
headers: {
|
|
7101
|
-
[name: string]: unknown;
|
|
7102
|
-
};
|
|
7103
|
-
content: {
|
|
7104
|
-
"application/json": components["schemas"]["ListConnectionSelectionsResponseDto"];
|
|
7105
|
-
};
|
|
7106
|
-
};
|
|
7107
|
-
/** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
|
|
7108
|
-
400: {
|
|
7109
|
-
headers: {
|
|
7110
|
-
[name: string]: unknown;
|
|
7111
|
-
};
|
|
7112
|
-
content: {
|
|
7113
|
-
/**
|
|
7114
|
-
* @example {
|
|
7115
|
-
* "error": {
|
|
7116
|
-
* "code": "BAD_REQUEST",
|
|
7117
|
-
* "status": "INVALID_ARGUMENT",
|
|
7118
|
-
* "message": "Invalid value for query parameter `pageSize`.",
|
|
7119
|
-
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
7120
|
-
* }
|
|
7121
|
-
* }
|
|
7122
|
-
*/
|
|
7123
|
-
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
7124
|
-
};
|
|
7125
|
-
};
|
|
7126
|
-
/** @description Missing, invalid, or expired access token (`code: UNAUTHORIZED`). */
|
|
7127
|
-
401: {
|
|
7128
|
-
headers: {
|
|
7129
|
-
[name: string]: unknown;
|
|
7130
|
-
};
|
|
7131
|
-
content: {
|
|
7132
|
-
/**
|
|
7133
|
-
* @example {
|
|
7134
|
-
* "error": {
|
|
7135
|
-
* "code": "UNAUTHORIZED",
|
|
7136
|
-
* "status": "UNAUTHENTICATED",
|
|
7137
|
-
* "message": "Missing or invalid access token.",
|
|
7138
|
-
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
7139
|
-
* }
|
|
7140
|
-
* }
|
|
7141
|
-
*/
|
|
7142
|
-
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
7143
|
-
};
|
|
7144
|
-
};
|
|
7145
|
-
/** @description Authenticated, but the token lacks a required scope (`code: FORBIDDEN`). The missing scopes are listed in `info`. */
|
|
7146
|
-
403: {
|
|
7147
|
-
headers: {
|
|
7148
|
-
[name: string]: unknown;
|
|
7149
|
-
};
|
|
7150
|
-
content: {
|
|
7151
|
-
/**
|
|
7152
|
-
* @example {
|
|
7153
|
-
* "error": {
|
|
7154
|
-
* "code": "FORBIDDEN",
|
|
7155
|
-
* "status": "PERMISSION_DENIED",
|
|
7156
|
-
* "message": "Missing required scope(s) for this operation.",
|
|
7157
|
-
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS",
|
|
7158
|
-
* "info": {
|
|
7159
|
-
* "missing": [
|
|
7160
|
-
* "<required-scope>"
|
|
7161
|
-
* ]
|
|
7162
|
-
* }
|
|
7163
|
-
* }
|
|
7164
|
-
* }
|
|
7165
|
-
*/
|
|
7166
|
-
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
7167
|
-
};
|
|
7168
|
-
};
|
|
7169
|
-
/** @description The resource does not exist, or you do not have access to it (`code: NOT_FOUND`). */
|
|
7170
|
-
404: {
|
|
7171
|
-
headers: {
|
|
7172
|
-
[name: string]: unknown;
|
|
7173
|
-
};
|
|
7174
|
-
content: {
|
|
7175
|
-
/**
|
|
7176
|
-
* @example {
|
|
7177
|
-
* "error": {
|
|
7178
|
-
* "code": "NOT_FOUND",
|
|
7179
|
-
* "status": "NOT_FOUND",
|
|
7180
|
-
* "message": "Resource not found.",
|
|
7181
|
-
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
7182
|
-
* }
|
|
7183
|
-
* }
|
|
7184
|
-
*/
|
|
7185
|
-
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
7186
|
-
};
|
|
7187
|
-
};
|
|
7188
|
-
/** @description Too many requests. Wait and retry later (`code: RATE_LIMITED`). */
|
|
7189
|
-
429: {
|
|
7190
|
-
headers: {
|
|
7191
|
-
[name: string]: unknown;
|
|
7192
|
-
};
|
|
7193
|
-
content: {
|
|
7194
|
-
/**
|
|
7195
|
-
* @example {
|
|
7196
|
-
* "error": {
|
|
7197
|
-
* "code": "RATE_LIMITED",
|
|
7198
|
-
* "status": "RESOURCE_EXHAUSTED",
|
|
7199
|
-
* "message": "Too many requests. Please retry after a short delay.",
|
|
7200
|
-
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
7201
|
-
* }
|
|
7202
|
-
* }
|
|
7203
|
-
*/
|
|
7204
|
-
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
7205
|
-
};
|
|
7206
|
-
};
|
|
7207
|
-
/** @description An unexpected server error occurred (`code: INTERNAL_ERROR`). */
|
|
7208
|
-
500: {
|
|
7209
|
-
headers: {
|
|
7210
|
-
[name: string]: unknown;
|
|
7211
|
-
};
|
|
7212
|
-
content: {
|
|
7213
|
-
/**
|
|
7214
|
-
* @example {
|
|
7215
|
-
* "error": {
|
|
7216
|
-
* "code": "INTERNAL_ERROR",
|
|
7217
|
-
* "status": "INTERNAL",
|
|
7218
|
-
* "message": "An unexpected error occurred.",
|
|
7219
|
-
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
7220
|
-
* }
|
|
7221
|
-
* }
|
|
7222
|
-
*/
|
|
7223
|
-
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
7224
|
-
};
|
|
7225
|
-
};
|
|
7226
|
-
};
|
|
7227
|
-
};
|
|
7228
7057
|
CustomContextItemsController_list: {
|
|
7229
7058
|
parameters: {
|
|
7230
7059
|
query?: {
|
|
@@ -7441,11 +7270,7 @@ interface operations {
|
|
|
7441
7270
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
7442
7271
|
};
|
|
7443
7272
|
};
|
|
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
|
-
*/
|
|
7273
|
+
/** @description Authenticated, but the token lacks a required scope (`code: FORBIDDEN`). The missing scopes are listed in `info`. */
|
|
7449
7274
|
403: {
|
|
7450
7275
|
headers: {
|
|
7451
7276
|
[name: string]: unknown;
|
|
@@ -7456,8 +7281,13 @@ interface operations {
|
|
|
7456
7281
|
* "error": {
|
|
7457
7282
|
* "code": "FORBIDDEN",
|
|
7458
7283
|
* "status": "PERMISSION_DENIED",
|
|
7459
|
-
* "message": "
|
|
7460
|
-
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
7284
|
+
* "message": "Missing required scope(s) for this operation.",
|
|
7285
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS",
|
|
7286
|
+
* "info": {
|
|
7287
|
+
* "missing": [
|
|
7288
|
+
* "<required-scope>"
|
|
7289
|
+
* ]
|
|
7290
|
+
* }
|
|
7461
7291
|
* }
|
|
7462
7292
|
* }
|
|
7463
7293
|
*/
|
|
@@ -7639,11 +7469,7 @@ interface operations {
|
|
|
7639
7469
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
7640
7470
|
};
|
|
7641
7471
|
};
|
|
7642
|
-
/**
|
|
7643
|
-
* @description Authenticated, but the token lacks a required scope (`code: FORBIDDEN`). The missing scopes are listed in `info`.
|
|
7644
|
-
*
|
|
7645
|
-
* 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.
|
|
7646
|
-
*/
|
|
7472
|
+
/** @description Authenticated, but the token lacks a required scope (`code: FORBIDDEN`). The missing scopes are listed in `info`. */
|
|
7647
7473
|
403: {
|
|
7648
7474
|
headers: {
|
|
7649
7475
|
[name: string]: unknown;
|
|
@@ -7654,8 +7480,13 @@ interface operations {
|
|
|
7654
7480
|
* "error": {
|
|
7655
7481
|
* "code": "FORBIDDEN",
|
|
7656
7482
|
* "status": "PERMISSION_DENIED",
|
|
7657
|
-
* "message": "
|
|
7658
|
-
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
7483
|
+
* "message": "Missing required scope(s) for this operation.",
|
|
7484
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS",
|
|
7485
|
+
* "info": {
|
|
7486
|
+
* "missing": [
|
|
7487
|
+
* "<required-scope>"
|
|
7488
|
+
* ]
|
|
7489
|
+
* }
|
|
7659
7490
|
* }
|
|
7660
7491
|
* }
|
|
7661
7492
|
*/
|
|
@@ -7837,11 +7668,7 @@ interface operations {
|
|
|
7837
7668
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
7838
7669
|
};
|
|
7839
7670
|
};
|
|
7840
|
-
/**
|
|
7841
|
-
* @description Authenticated, but the token lacks a required scope (`code: FORBIDDEN`). The missing scopes are listed in `info`.
|
|
7842
|
-
*
|
|
7843
|
-
* 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.
|
|
7844
|
-
*/
|
|
7671
|
+
/** @description Authenticated, but the token lacks a required scope (`code: FORBIDDEN`). The missing scopes are listed in `info`. */
|
|
7845
7672
|
403: {
|
|
7846
7673
|
headers: {
|
|
7847
7674
|
[name: string]: unknown;
|
|
@@ -7852,8 +7679,13 @@ interface operations {
|
|
|
7852
7679
|
* "error": {
|
|
7853
7680
|
* "code": "FORBIDDEN",
|
|
7854
7681
|
* "status": "PERMISSION_DENIED",
|
|
7855
|
-
* "message": "
|
|
7856
|
-
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
7682
|
+
* "message": "Missing required scope(s) for this operation.",
|
|
7683
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS",
|
|
7684
|
+
* "info": {
|
|
7685
|
+
* "missing": [
|
|
7686
|
+
* "<required-scope>"
|
|
7687
|
+
* ]
|
|
7688
|
+
* }
|
|
7857
7689
|
* }
|
|
7858
7690
|
* }
|
|
7859
7691
|
*/
|
|
@@ -8035,11 +7867,7 @@ interface operations {
|
|
|
8035
7867
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
8036
7868
|
};
|
|
8037
7869
|
};
|
|
8038
|
-
/**
|
|
8039
|
-
* @description Authenticated, but the token lacks a required scope (`code: FORBIDDEN`). The missing scopes are listed in `info`.
|
|
8040
|
-
*
|
|
8041
|
-
* 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.
|
|
8042
|
-
*/
|
|
7870
|
+
/** @description Authenticated, but the token lacks a required scope (`code: FORBIDDEN`). The missing scopes are listed in `info`. */
|
|
8043
7871
|
403: {
|
|
8044
7872
|
headers: {
|
|
8045
7873
|
[name: string]: unknown;
|
|
@@ -8050,8 +7878,13 @@ interface operations {
|
|
|
8050
7878
|
* "error": {
|
|
8051
7879
|
* "code": "FORBIDDEN",
|
|
8052
7880
|
* "status": "PERMISSION_DENIED",
|
|
8053
|
-
* "message": "
|
|
8054
|
-
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
7881
|
+
* "message": "Missing required scope(s) for this operation.",
|
|
7882
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS",
|
|
7883
|
+
* "info": {
|
|
7884
|
+
* "missing": [
|
|
7885
|
+
* "<required-scope>"
|
|
7886
|
+
* ]
|
|
7887
|
+
* }
|
|
8055
7888
|
* }
|
|
8056
7889
|
* }
|
|
8057
7890
|
*/
|
|
@@ -8373,11 +8206,7 @@ interface operations {
|
|
|
8373
8206
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
8374
8207
|
};
|
|
8375
8208
|
};
|
|
8376
|
-
/**
|
|
8377
|
-
* @description Authenticated, but the token lacks a required scope (`code: FORBIDDEN`). The missing scopes are listed in `info`.
|
|
8378
|
-
*
|
|
8379
|
-
* 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.
|
|
8380
|
-
*/
|
|
8209
|
+
/** @description Authenticated, but the token lacks a required scope (`code: FORBIDDEN`). The missing scopes are listed in `info`. */
|
|
8381
8210
|
403: {
|
|
8382
8211
|
headers: {
|
|
8383
8212
|
[name: string]: unknown;
|
|
@@ -8388,8 +8217,13 @@ interface operations {
|
|
|
8388
8217
|
* "error": {
|
|
8389
8218
|
* "code": "FORBIDDEN",
|
|
8390
8219
|
* "status": "PERMISSION_DENIED",
|
|
8391
|
-
* "message": "
|
|
8392
|
-
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
8220
|
+
* "message": "Missing required scope(s) for this operation.",
|
|
8221
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS",
|
|
8222
|
+
* "info": {
|
|
8223
|
+
* "missing": [
|
|
8224
|
+
* "<required-scope>"
|
|
8225
|
+
* ]
|
|
8226
|
+
* }
|
|
8393
8227
|
* }
|
|
8394
8228
|
* }
|
|
8395
8229
|
*/
|
|
@@ -8558,11 +8392,7 @@ interface operations {
|
|
|
8558
8392
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
8559
8393
|
};
|
|
8560
8394
|
};
|
|
8561
|
-
/**
|
|
8562
|
-
* @description Authenticated, but the token lacks a required scope (`code: FORBIDDEN`). The missing scopes are listed in `info`.
|
|
8563
|
-
*
|
|
8564
|
-
* 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.
|
|
8565
|
-
*/
|
|
8395
|
+
/** @description Authenticated, but the token lacks a required scope (`code: FORBIDDEN`). The missing scopes are listed in `info`. */
|
|
8566
8396
|
403: {
|
|
8567
8397
|
headers: {
|
|
8568
8398
|
[name: string]: unknown;
|
|
@@ -8573,8 +8403,13 @@ interface operations {
|
|
|
8573
8403
|
* "error": {
|
|
8574
8404
|
* "code": "FORBIDDEN",
|
|
8575
8405
|
* "status": "PERMISSION_DENIED",
|
|
8576
|
-
* "message": "
|
|
8577
|
-
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
8406
|
+
* "message": "Missing required scope(s) for this operation.",
|
|
8407
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS",
|
|
8408
|
+
* "info": {
|
|
8409
|
+
* "missing": [
|
|
8410
|
+
* "<required-scope>"
|
|
8411
|
+
* ]
|
|
8412
|
+
* }
|
|
8578
8413
|
* }
|
|
8579
8414
|
* }
|
|
8580
8415
|
*/
|
|
@@ -28393,17 +28228,6 @@ declare const OPERATIONS: {
|
|
|
28393
28228
|
readonly responseSchema: "ListConnectionsResponseDto";
|
|
28394
28229
|
readonly idempotent: false;
|
|
28395
28230
|
};
|
|
28396
|
-
readonly ConnectionsController_listSelections: {
|
|
28397
|
-
readonly method: "GET";
|
|
28398
|
-
readonly path: "/api/v1/connections/{connectionId}/selections";
|
|
28399
|
-
readonly service: "modus-api";
|
|
28400
|
-
readonly serverUrl: "https://api.getmodus.com";
|
|
28401
|
-
readonly pathParams: readonly ["connectionId"];
|
|
28402
|
-
readonly queryParams: readonly ["pageToken", "pageSize"];
|
|
28403
|
-
readonly requestSchema: null;
|
|
28404
|
-
readonly responseSchema: "ListConnectionSelectionsResponseDto";
|
|
28405
|
-
readonly idempotent: false;
|
|
28406
|
-
};
|
|
28407
28231
|
readonly ContextCreatorsController_createLink: {
|
|
28408
28232
|
readonly method: "POST";
|
|
28409
28233
|
readonly path: "/api/v1/context/links";
|
|
@@ -30036,11 +29860,6 @@ interface BatchDeleteCustomContextItemsResult {
|
|
|
30036
29860
|
* traversable, create the `source`, then the `collection`, then the `entity`, and
|
|
30037
29861
|
* finally any `field` or `entity_samples` rows, repeating the same parent IDs at
|
|
30038
29862
|
* every level.
|
|
30039
|
-
*
|
|
30040
|
-
* Writes (`create`, `batchCreate`, `createRelations`, `update`, `delete`) are off
|
|
30041
|
-
* by default for each organization: until Modus enables them, they reject with a
|
|
30042
|
-
* `PermissionDeniedError` whose message is `Custom context item writes are not
|
|
30043
|
-
* enabled`. Reads (`list`, `get`) always work.
|
|
30044
29863
|
*/
|
|
30045
29864
|
declare class CustomContextItemsResource {
|
|
30046
29865
|
private readonly http;
|