@getmodus/sdk 0.5.0 → 0.6.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.
@@ -151,6 +151,138 @@ interface paths {
151
151
  patch: operations["CustomContextItemsController_update"];
152
152
  trace?: never;
153
153
  };
154
+ "/api/v1/context/files": {
155
+ parameters: {
156
+ query?: never;
157
+ header?: never;
158
+ path?: never;
159
+ cookie?: never;
160
+ };
161
+ /**
162
+ * List file uploads
163
+ * @description Returns a page of durable landed file uploads. Uploads that have not landed yet are visible via `GET /context/files/{uploadId}`, not this list.
164
+ *
165
+ * **Requires:** `context:read`
166
+ */
167
+ get: operations["ContextFilesController_list"];
168
+ put?: never;
169
+ post?: never;
170
+ delete?: never;
171
+ options?: never;
172
+ head?: never;
173
+ patch?: never;
174
+ trace?: never;
175
+ };
176
+ "/api/v1/context/files/uploadFromUrl": {
177
+ parameters: {
178
+ query?: never;
179
+ header?: never;
180
+ path?: never;
181
+ cookie?: never;
182
+ };
183
+ get?: never;
184
+ put?: never;
185
+ /**
186
+ * Upload a file by fetching it from a URL
187
+ * @description Fetches one file from a URL (SSRF-guarded, redirects re-validated, 50MB cap, same MIME allow-list as `uploadUrl`) and lands it as durable context — status `processing`, with parsing continuing async. One URL = one object; no directory crawl. Rejects (422) a bad URL, MIME type, or size; other fetch failures are 502.
188
+ *
189
+ * **Requires:** `context:write`
190
+ */
191
+ post: operations["ContextFilesController_uploadFromUrl"];
192
+ delete?: never;
193
+ options?: never;
194
+ head?: never;
195
+ patch?: never;
196
+ trace?: never;
197
+ };
198
+ "/api/v1/context/files/uploadFromUrls": {
199
+ parameters: {
200
+ query?: never;
201
+ header?: never;
202
+ path?: never;
203
+ cookie?: never;
204
+ };
205
+ get?: never;
206
+ put?: never;
207
+ /**
208
+ * Upload files by fetching them from URLs in bulk
209
+ * @description Fetches up to 100 files from external URLs (same 50MB/MIME allow-list as the single-URL endpoint). Always returns 200 — a blocked/bad URL or a fetch/validation failure only fails its own entry (`failed[]`), never the whole request. Structural problems (empty `urls`, over 100 entries) reject the whole request (422).
210
+ *
211
+ * **Requires:** `context:write`
212
+ */
213
+ post: operations["ContextFilesController_uploadFromUrls"];
214
+ delete?: never;
215
+ options?: never;
216
+ head?: never;
217
+ patch?: never;
218
+ trace?: never;
219
+ };
220
+ "/api/v1/context/files/uploadUrl": {
221
+ parameters: {
222
+ query?: never;
223
+ header?: never;
224
+ path?: never;
225
+ cookie?: never;
226
+ };
227
+ get?: never;
228
+ put?: never;
229
+ /**
230
+ * Create a presigned upload URL
231
+ * @description Issues a presigned S3 PUT URL for one file and tracks the upload until it lands. Rejects (422) files over 50MB or a MIME type outside PDF, images, text, Office/OpenDocument, audio, and video.
232
+ *
233
+ * **Requires:** `context:write`
234
+ */
235
+ post: operations["ContextFilesController_uploadUrl"];
236
+ delete?: never;
237
+ options?: never;
238
+ head?: never;
239
+ patch?: never;
240
+ trace?: never;
241
+ };
242
+ "/api/v1/context/files/uploadUrls": {
243
+ parameters: {
244
+ query?: never;
245
+ header?: never;
246
+ path?: never;
247
+ cookie?: never;
248
+ };
249
+ get?: never;
250
+ put?: never;
251
+ /**
252
+ * Create presigned upload URLs in bulk
253
+ * @description Issues presigned S3 PUT URLs for up to 100 files (same 50MB/MIME allow-list as the single-file endpoint). Always returns 200 — a bad MIME type or oversize file only fails its own entry (`failed[]`), never the whole request. Structural problems (empty `files`, over 100 entries) reject the whole request (422).
254
+ *
255
+ * **Requires:** `context:write`
256
+ */
257
+ post: operations["ContextFilesController_uploadUrls"];
258
+ delete?: never;
259
+ options?: never;
260
+ head?: never;
261
+ patch?: never;
262
+ trace?: never;
263
+ };
264
+ "/api/v1/context/files/{uploadId}": {
265
+ parameters: {
266
+ query?: never;
267
+ header?: never;
268
+ path?: never;
269
+ cookie?: never;
270
+ };
271
+ /**
272
+ * Get a file upload
273
+ * @description Returns status + metadata for one upload. Prefers the durable landed context item; falls back to in-flight upload status while the object has not landed yet. 404 if neither exists.
274
+ *
275
+ * **Requires:** `context:read`
276
+ */
277
+ get: operations["ContextFilesController_get"];
278
+ put?: never;
279
+ post?: never;
280
+ delete?: never;
281
+ options?: never;
282
+ head?: never;
283
+ patch?: never;
284
+ trace?: never;
285
+ };
154
286
  "/api/v1/context/items": {
155
287
  parameters: {
156
288
  query?: never;
@@ -1914,12 +2046,12 @@ interface components {
1914
2046
  * @description Modus-specific machine code.
1915
2047
  * @enum {string}
1916
2048
  */
1917
- ApiErrorCode: "VALIDATION" | "BAD_REQUEST" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "CONFLICT" | "RATE_LIMITED" | "INTERNAL_ERROR";
2049
+ ApiErrorCode: "VALIDATION" | "BAD_REQUEST" | "UNAUTHORIZED" | "FORBIDDEN" | "NOT_FOUND" | "CONFLICT" | "RATE_LIMITED" | "INTERNAL_ERROR" | "UPSTREAM_ERROR";
1918
2050
  /**
1919
2051
  * @description Canonical status string for the error.
1920
2052
  * @enum {string}
1921
2053
  */
1922
- ApiErrorStatus: "INVALID_ARGUMENT" | "UNAUTHENTICATED" | "PERMISSION_DENIED" | "NOT_FOUND" | "ALREADY_EXISTS" | "RESOURCE_EXHAUSTED" | "INTERNAL";
2054
+ ApiErrorStatus: "INVALID_ARGUMENT" | "UNAUTHENTICATED" | "PERMISSION_DENIED" | "NOT_FOUND" | "ALREADY_EXISTS" | "RESOURCE_EXHAUSTED" | "INTERNAL" | "UNAVAILABLE";
1923
2055
  AutomationRunListItemDto: {
1924
2056
  /**
1925
2057
  * @description Composite run identifier (`workflowId:temporalRunId`).
@@ -1981,6 +2113,55 @@ interface components {
1981
2113
  /** @description Custom context items created or updated by the batch. */
1982
2114
  contextItems: components["schemas"]["CreatedCustomContextItemResponseDto"][];
1983
2115
  };
2116
+ BulkUploadFromUrlItemDto: {
2117
+ /**
2118
+ * @description Source URL to fetch.
2119
+ * @example https://example.com/reports/Q3-churn-report.pdf
2120
+ */
2121
+ url?: string;
2122
+ /**
2123
+ * @description Override file name. Inferred from the URL path when omitted.
2124
+ * @example Q3-churn-report.pdf
2125
+ */
2126
+ fileName?: string;
2127
+ };
2128
+ BulkUploadFromUrlsDto: {
2129
+ /** @description URLs to fetch and upload. Max 100 per request. */
2130
+ urls: components["schemas"]["BulkUploadFromUrlItemDto"][];
2131
+ };
2132
+ BulkUploadFromUrlsResponseDto: {
2133
+ /** @description File upload resources for every URL that was fetched and landed successfully. */
2134
+ uploaded: components["schemas"]["FileUploadResourceDto"][];
2135
+ /** @description Per-item failures. Empty when every URL succeeded. */
2136
+ failed: components["schemas"]["FailedUploadFromUrlDto"][];
2137
+ };
2138
+ BulkUploadUrlItemDto: {
2139
+ /**
2140
+ * @description Original file name, used to build the S3 object key.
2141
+ * @example Q3-churn-report.pdf
2142
+ */
2143
+ fileName?: string;
2144
+ /**
2145
+ * @description MIME type of the file. `application/octet-stream` falls back to an extension-based guess. Allowed categories: PDF, images, text, Office/OpenDocument documents, audio, and video.
2146
+ * @example application/pdf
2147
+ */
2148
+ contentType?: string;
2149
+ /**
2150
+ * @description File size in bytes. Rejected above 50MB.
2151
+ * @example 1048576
2152
+ */
2153
+ fileSize?: number;
2154
+ };
2155
+ BulkUploadUrlsDto: {
2156
+ /** @description Files to create presigned upload URLs for. Max 100 per request. */
2157
+ files: components["schemas"]["BulkUploadUrlItemDto"][];
2158
+ };
2159
+ BulkUploadUrlsResponseDto: {
2160
+ /** @description Presigned upload slots for every file that passed validation. */
2161
+ uploaded: components["schemas"]["UploadUrlResponseDto"][];
2162
+ /** @description Per-item failures (bad MIME type, oversize, etc). Empty when every file succeeded. */
2163
+ failed: components["schemas"]["FailedUploadUrlDto"][];
2164
+ };
1984
2165
  ComposeSkillContextRequestDto: {
1985
2166
  /**
1986
2167
  * @description User message or intent used to compose relevant context (RAG query).
@@ -2106,12 +2287,12 @@ interface components {
2106
2287
  */
2107
2288
  topics: string[];
2108
2289
  /**
2109
- * @description Originating integration connection id for integration-derived items. Null for user-created items.
2290
+ * @description Originating integration connection id, or a virtual connection id such as `custom` or `files` for org-owned context.
2110
2291
  * @example 00000000-0000-4000-a000-000000000111
2111
2292
  */
2112
2293
  connectionId?: string | null;
2113
2294
  /**
2114
- * @description Originating selection id (datamap-scoped) for integration-derived items.
2295
+ * @description Datamap selection id. For custom context, this is the customer-defined source id.
2115
2296
  * @example 00000000-0000-4000-a000-000000000222
2116
2297
  */
2117
2298
  selectionId?: string | null;
@@ -2198,6 +2379,11 @@ interface components {
2198
2379
  * @example Q3 Revenue Analysis
2199
2380
  */
2200
2381
  title: string | null;
2382
+ /**
2383
+ * @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.
2384
+ * @example context_chat
2385
+ */
2386
+ source?: string | null;
2201
2387
  /**
2202
2388
  * @description Total number of message turns in the (post-collapse) conversation.
2203
2389
  * @example 12
@@ -2558,8 +2744,9 @@ interface components {
2558
2744
  */
2559
2745
  contextType: string;
2560
2746
  /**
2561
- * @description Hierarchical path used to group custom context.
2747
+ * @description Canonical hierarchy path rooted at the virtual `custom` connection and the customer-defined source.
2562
2748
  * @example [
2749
+ * "custom",
2563
2750
  * "billing-db",
2564
2751
  * "contracts",
2565
2752
  * "contract-123"
@@ -2813,6 +3000,75 @@ interface components {
2813
3000
  /** @description Mapping of Clerk user ID to Slack user ID */
2814
3001
  slackUserIdByRecipient: Record<string, never>;
2815
3002
  };
3003
+ FailedUploadFromUrlDto: {
3004
+ /**
3005
+ * @description Index of the failing entry in the request `urls` array.
3006
+ * @example 1
3007
+ */
3008
+ index: number;
3009
+ /**
3010
+ * @description URL from the failing request entry.
3011
+ * @example https://internal.example.com/secret
3012
+ */
3013
+ url: string;
3014
+ /**
3015
+ * @description Human-readable failure reason (blocked URL, fetch error, oversize, bad MIME, etc).
3016
+ * @example HTTP 404: Not Found
3017
+ */
3018
+ error: string;
3019
+ };
3020
+ FailedUploadUrlDto: {
3021
+ /**
3022
+ * @description Index of the failing entry in the request `files` array.
3023
+ * @example 2
3024
+ */
3025
+ index: number;
3026
+ /**
3027
+ * @description File name from the failing request entry.
3028
+ * @example malware.exe
3029
+ */
3030
+ fileName: string;
3031
+ /**
3032
+ * @description Human-readable validation failure reason.
3033
+ * @example File type "application/x-msdownload" is not allowed. Allowed types: PDF, images, text, and common document formats.
3034
+ */
3035
+ error: string;
3036
+ };
3037
+ FileUploadResourceDto: {
3038
+ /**
3039
+ * @description Upload id — same value returned by `uploadUrl`/`uploadUrls`.
3040
+ * @example 7a3f9d2c-1111-4000-a000-000000000abc
3041
+ */
3042
+ uploadId: string;
3043
+ /**
3044
+ * @description Current processing status.
3045
+ * @example ready
3046
+ */
3047
+ status: components["schemas"]["FileUploadResourceStatus"];
3048
+ /** @example Q3-churn-report.pdf */
3049
+ fileName?: string | null;
3050
+ /** @example application/pdf */
3051
+ contentType?: string | null;
3052
+ /** @example 1048576 */
3053
+ fileSize?: number | null;
3054
+ /** @example context_uploads/7a3f9d2c.../Q3-churn-report.pdf */
3055
+ s3Key?: string | null;
3056
+ /** @example 2026-08-12T14:00:00.000Z */
3057
+ createdAt?: string | null;
3058
+ /** @description Generated summary once parsing completes. Null until then. */
3059
+ summary?: string | null;
3060
+ /** @description Whether the file was successfully parsed. Null while pending/processing. */
3061
+ parsed?: boolean | null;
3062
+ /** @example 1 */
3063
+ documentCount?: number | null;
3064
+ /** @description Populated when `status` is `failed`. */
3065
+ errorMessage?: string | null;
3066
+ };
3067
+ /**
3068
+ * @description Current processing status.
3069
+ * @enum {string}
3070
+ */
3071
+ FileUploadResourceStatus: "pending" | "processing" | "ready" | "failed";
2816
3072
  GetAutomationRunResponseDto: {
2817
3073
  /**
2818
3074
  * @description Composite run identifier (`workflowId:temporalRunId`).
@@ -2984,6 +3240,15 @@ interface components {
2984
3240
  /** @description Opaque token for the next page; `null` when this was the last page. Pass as `pageToken` on the next request. */
2985
3241
  nextPageToken: string | null;
2986
3242
  };
3243
+ ListFilesResponseDto: {
3244
+ /** @description Page of durable file uploads. Empty when none match. */
3245
+ files: components["schemas"]["FileUploadResourceDto"][];
3246
+ /**
3247
+ * @description Opaque token for the next page; `null` when this was the last page.
3248
+ * @example eyJjcmVhdGVkQXQiOiIyMDI2LTA1LTAxIiwidWlkIjoiYWJjIn0
3249
+ */
3250
+ nextPageToken: string | null;
3251
+ };
2987
3252
  ListMemberGroupsResponseDto: {
2988
3253
  groups: components["schemas"]["MemberGroupDto"][];
2989
3254
  };
@@ -3133,11 +3398,11 @@ interface components {
3133
3398
  */
3134
3399
  message?: string;
3135
3400
  /**
3136
- * @description Canonical model id for this run (required). Allowed values: claude-sonnet-5, claude-sonnet-4.6, claude-opus-4.8, gpt-5.2, gpt-5.5, gpt-5-mini, gpt-oss-120b, gpt-oss-20b, qwen3-235b-a22b-2507, qwen3-coder, qwen3-32b, deepseek-chat-v3.1, minimax-m2.7, llama-4-maverick, llama-4-scout, llama-3.3-70b-instruct, gemini-3.1-pro-preview, gemini-3-flash-preview, grok-4.3-fast, grok-4.3, kimi-k3.
3401
+ * @description Canonical model id for this run (required). Allowed values: claude-sonnet-5, claude-sonnet-4.6, claude-opus-4.8, gpt-5.2, gpt-5.5, gpt-5-mini, 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, minimax-m2.7, llama-4-maverick, llama-4-scout, llama-3.3-70b-instruct, gemini-3.1-pro-preview, gemini-3-flash-preview, grok-4.3-fast, grok-4.3, kimi-k3.
3137
3402
  * @example claude-sonnet-4.6
3138
3403
  * @enum {string}
3139
3404
  */
3140
- model: "claude-sonnet-5" | "claude-sonnet-4.6" | "claude-opus-4.8" | "gpt-5.2" | "gpt-5.5" | "gpt-5-mini" | "gpt-oss-120b" | "gpt-oss-20b" | "qwen3-235b-a22b-2507" | "qwen3-coder" | "qwen3-32b" | "deepseek-chat-v3.1" | "minimax-m2.7" | "llama-4-maverick" | "llama-4-scout" | "llama-3.3-70b-instruct" | "gemini-3.1-pro-preview" | "gemini-3-flash-preview" | "grok-4.3-fast" | "grok-4.3" | "kimi-k3";
3405
+ model: "claude-sonnet-5" | "claude-sonnet-4.6" | "claude-opus-4.8" | "gpt-5.2" | "gpt-5.5" | "gpt-5-mini" | "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" | "minimax-m2.7" | "llama-4-maverick" | "llama-4-scout" | "llama-3.3-70b-instruct" | "gemini-3.1-pro-preview" | "gemini-3-flash-preview" | "grok-4.3-fast" | "grok-4.3" | "kimi-k3";
3141
3406
  /** @description Continue a pending write-approval interrupt from a prior turn. When true, `message` is ignored. */
3142
3407
  approvalContinuation?: boolean;
3143
3408
  /**
@@ -3412,11 +3677,11 @@ interface components {
3412
3677
  */
3413
3678
  message: string;
3414
3679
  /**
3415
- * @description Canonical model id for this run (required). Allowed values: claude-sonnet-5, claude-sonnet-4.6, claude-opus-4.8, gpt-5.2, gpt-5.5, gpt-5-mini, gpt-oss-120b, gpt-oss-20b, qwen3-235b-a22b-2507, qwen3-coder, qwen3-32b, deepseek-chat-v3.1, minimax-m2.7, llama-4-maverick, llama-4-scout, llama-3.3-70b-instruct, gemini-3.1-pro-preview, gemini-3-flash-preview, grok-4.3-fast, grok-4.3, kimi-k3.
3680
+ * @description Canonical model id for this run (required). Allowed values: claude-sonnet-5, claude-sonnet-4.6, claude-opus-4.8, gpt-5.2, gpt-5.5, gpt-5-mini, 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, minimax-m2.7, llama-4-maverick, llama-4-scout, llama-3.3-70b-instruct, gemini-3.1-pro-preview, gemini-3-flash-preview, grok-4.3-fast, grok-4.3, kimi-k3.
3416
3681
  * @example claude-sonnet-4.6
3417
3682
  * @enum {string}
3418
3683
  */
3419
- model: "claude-sonnet-5" | "claude-sonnet-4.6" | "claude-opus-4.8" | "gpt-5.2" | "gpt-5.5" | "gpt-5-mini" | "gpt-oss-120b" | "gpt-oss-20b" | "qwen3-235b-a22b-2507" | "qwen3-coder" | "qwen3-32b" | "deepseek-chat-v3.1" | "minimax-m2.7" | "llama-4-maverick" | "llama-4-scout" | "llama-3.3-70b-instruct" | "gemini-3.1-pro-preview" | "gemini-3-flash-preview" | "grok-4.3-fast" | "grok-4.3" | "kimi-k3";
3684
+ model: "claude-sonnet-5" | "claude-sonnet-4.6" | "claude-opus-4.8" | "gpt-5.2" | "gpt-5.5" | "gpt-5-mini" | "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" | "minimax-m2.7" | "llama-4-maverick" | "llama-4-scout" | "llama-3.3-70b-instruct" | "gemini-3.1-pro-preview" | "gemini-3-flash-preview" | "grok-4.3-fast" | "grok-4.3" | "kimi-k3";
3420
3685
  };
3421
3686
  SkillChatResponseDto: {
3422
3687
  /**
@@ -3932,6 +4197,67 @@ interface components {
3932
4197
  */
3933
4198
  managerId?: number | null;
3934
4199
  };
4200
+ UploadFromUrlDto: {
4201
+ /**
4202
+ * @description Source URL to fetch. SSRF-guarded; every redirect hop is re-validated.
4203
+ * @example https://example.com/reports/Q3-churn-report.pdf
4204
+ */
4205
+ url: string;
4206
+ /**
4207
+ * @description Override file name. Inferred from the URL path when omitted.
4208
+ * @example Q3-churn-report.pdf
4209
+ */
4210
+ fileName?: string;
4211
+ };
4212
+ UploadUrlDto: {
4213
+ /**
4214
+ * @description Original file name, used to build the S3 object key.
4215
+ * @example Q3-churn-report.pdf
4216
+ */
4217
+ fileName: string;
4218
+ /**
4219
+ * @description MIME type of the file. `application/octet-stream` falls back to an extension-based guess. Allowed categories: PDF, images, text, Office/OpenDocument documents, audio, and video.
4220
+ * @example application/pdf
4221
+ */
4222
+ contentType: string;
4223
+ /**
4224
+ * @description File size in bytes. Rejected above 50MB.
4225
+ * @example 1048576
4226
+ */
4227
+ fileSize: number;
4228
+ };
4229
+ UploadUrlResponseDto: {
4230
+ /**
4231
+ * @description Server-generated id for this upload. Use it on `GET /context/files/{uploadId}`.
4232
+ * @example 7a3f9d2c-1111-4000-a000-000000000abc
4233
+ */
4234
+ uploadId: string;
4235
+ /**
4236
+ * @description Presigned S3 URL. PUT the raw file bytes here within 15 minutes.
4237
+ * @example https://tenant-bucket.s3.amazonaws.com/context_uploads/...
4238
+ */
4239
+ uploadUrl: string;
4240
+ /**
4241
+ * @description Tenant S3 key the file will land at once uploaded.
4242
+ * @example context_uploads/7a3f9d2c.../Q3-churn-report.pdf
4243
+ */
4244
+ s3Key: string;
4245
+ /**
4246
+ * @description Sanitized file name (non-alphanumeric characters replaced with `_`).
4247
+ * @example Q3-churn-report.pdf
4248
+ */
4249
+ fileName: string;
4250
+ /**
4251
+ * @description Resolved content type (extension-inferred when the request sent `application/octet-stream`).
4252
+ * @example application/pdf
4253
+ */
4254
+ contentType: string;
4255
+ /**
4256
+ * @description ISO timestamp when the presigned URL expires (15 minutes from creation).
4257
+ * @example 2026-08-12T14:15:00.000Z
4258
+ */
4259
+ expiresAt: string;
4260
+ };
3935
4261
  UsageBucketDto: {
3936
4262
  /** @description ISO8601 timestamp at the start of the bucket. */
3937
4263
  bucket: string;
@@ -4483,18 +4809,845 @@ interface operations {
4483
4809
  /** @description Filter by effective integration category (case-sensitive exact match). */
4484
4810
  type?: string;
4485
4811
  };
4486
- header?: never;
4487
- path?: never;
4812
+ header?: never;
4813
+ path?: never;
4814
+ cookie?: never;
4815
+ };
4816
+ requestBody?: never;
4817
+ responses: {
4818
+ 200: {
4819
+ headers: {
4820
+ [name: string]: unknown;
4821
+ };
4822
+ content: {
4823
+ "application/json": components["schemas"]["ListConnectionsResponseDto"];
4824
+ };
4825
+ };
4826
+ /** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
4827
+ 400: {
4828
+ headers: {
4829
+ [name: string]: unknown;
4830
+ };
4831
+ content: {
4832
+ /**
4833
+ * @example {
4834
+ * "error": {
4835
+ * "code": "BAD_REQUEST",
4836
+ * "status": "INVALID_ARGUMENT",
4837
+ * "message": "Invalid value for query parameter `pageSize`.",
4838
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
4839
+ * }
4840
+ * }
4841
+ */
4842
+ "application/json": components["schemas"]["ErrorResponseDto"];
4843
+ };
4844
+ };
4845
+ /** @description Missing, invalid, or expired access token (`code: UNAUTHORIZED`). */
4846
+ 401: {
4847
+ headers: {
4848
+ [name: string]: unknown;
4849
+ };
4850
+ content: {
4851
+ /**
4852
+ * @example {
4853
+ * "error": {
4854
+ * "code": "UNAUTHORIZED",
4855
+ * "status": "UNAUTHENTICATED",
4856
+ * "message": "Missing or invalid access token.",
4857
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
4858
+ * }
4859
+ * }
4860
+ */
4861
+ "application/json": components["schemas"]["ErrorResponseDto"];
4862
+ };
4863
+ };
4864
+ /** @description Authenticated, but the token lacks a required scope (`code: FORBIDDEN`). The missing scopes are listed in `info`. */
4865
+ 403: {
4866
+ headers: {
4867
+ [name: string]: unknown;
4868
+ };
4869
+ content: {
4870
+ /**
4871
+ * @example {
4872
+ * "error": {
4873
+ * "code": "FORBIDDEN",
4874
+ * "status": "PERMISSION_DENIED",
4875
+ * "message": "Missing required scope(s) for this operation.",
4876
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS",
4877
+ * "info": {
4878
+ * "missing": [
4879
+ * "<required-scope>"
4880
+ * ]
4881
+ * }
4882
+ * }
4883
+ * }
4884
+ */
4885
+ "application/json": components["schemas"]["ErrorResponseDto"];
4886
+ };
4887
+ };
4888
+ /** @description An unexpected server error occurred (`code: INTERNAL_ERROR`). */
4889
+ 500: {
4890
+ headers: {
4891
+ [name: string]: unknown;
4892
+ };
4893
+ content: {
4894
+ /**
4895
+ * @example {
4896
+ * "error": {
4897
+ * "code": "INTERNAL_ERROR",
4898
+ * "status": "INTERNAL",
4899
+ * "message": "An unexpected error occurred.",
4900
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
4901
+ * }
4902
+ * }
4903
+ */
4904
+ "application/json": components["schemas"]["ErrorResponseDto"];
4905
+ };
4906
+ };
4907
+ };
4908
+ };
4909
+ CustomContextItemsController_list: {
4910
+ parameters: {
4911
+ query?: {
4912
+ /** @description Opaque page token from a previous response's `nextPageToken`. Omit for the first page. */
4913
+ pageToken?: string;
4914
+ /** @description Max items per page. Defaults to 25 (the legacy `list-context-items-olap` action defaulted to 100; the new `clampPageSize` helper standardises every modus-api list surface on 25). Clamped to 200. */
4915
+ pageSize?: number;
4916
+ /** @description Filter by one or more context types (repeat the query param). Example: `?contextTypes=note&contextTypes=saved_query`. */
4917
+ contextTypes?: string[];
4918
+ /** @description Filter by verification status (`negative` / `neutral` / `positive`). */
4919
+ verificationStatuses?: string[];
4920
+ /** @description Case-insensitive substring search over content + description + topics. */
4921
+ searchQuery?: string;
4922
+ /** @description Filter by topic tag. */
4923
+ topics?: string[];
4924
+ };
4925
+ header?: never;
4926
+ path?: never;
4927
+ cookie?: never;
4928
+ };
4929
+ requestBody?: never;
4930
+ responses: {
4931
+ 200: {
4932
+ headers: {
4933
+ [name: string]: unknown;
4934
+ };
4935
+ content: {
4936
+ "application/json": components["schemas"]["ListCustomContextItemsResponseDto"];
4937
+ };
4938
+ };
4939
+ /** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
4940
+ 400: {
4941
+ headers: {
4942
+ [name: string]: unknown;
4943
+ };
4944
+ content: {
4945
+ /**
4946
+ * @example {
4947
+ * "error": {
4948
+ * "code": "BAD_REQUEST",
4949
+ * "status": "INVALID_ARGUMENT",
4950
+ * "message": "Invalid value for query parameter `pageSize`.",
4951
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
4952
+ * }
4953
+ * }
4954
+ */
4955
+ "application/json": components["schemas"]["ErrorResponseDto"];
4956
+ };
4957
+ };
4958
+ /** @description Missing, invalid, or expired access token (`code: UNAUTHORIZED`). */
4959
+ 401: {
4960
+ headers: {
4961
+ [name: string]: unknown;
4962
+ };
4963
+ content: {
4964
+ /**
4965
+ * @example {
4966
+ * "error": {
4967
+ * "code": "UNAUTHORIZED",
4968
+ * "status": "UNAUTHENTICATED",
4969
+ * "message": "Missing or invalid access token.",
4970
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
4971
+ * }
4972
+ * }
4973
+ */
4974
+ "application/json": components["schemas"]["ErrorResponseDto"];
4975
+ };
4976
+ };
4977
+ /** @description Authenticated, but the token lacks a required scope (`code: FORBIDDEN`). The missing scopes are listed in `info`. */
4978
+ 403: {
4979
+ headers: {
4980
+ [name: string]: unknown;
4981
+ };
4982
+ content: {
4983
+ /**
4984
+ * @example {
4985
+ * "error": {
4986
+ * "code": "FORBIDDEN",
4987
+ * "status": "PERMISSION_DENIED",
4988
+ * "message": "Missing required scope(s) for this operation.",
4989
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS",
4990
+ * "info": {
4991
+ * "missing": [
4992
+ * "<required-scope>"
4993
+ * ]
4994
+ * }
4995
+ * }
4996
+ * }
4997
+ */
4998
+ "application/json": components["schemas"]["ErrorResponseDto"];
4999
+ };
5000
+ };
5001
+ /** @description An unexpected server error occurred (`code: INTERNAL_ERROR`). */
5002
+ 500: {
5003
+ headers: {
5004
+ [name: string]: unknown;
5005
+ };
5006
+ content: {
5007
+ /**
5008
+ * @example {
5009
+ * "error": {
5010
+ * "code": "INTERNAL_ERROR",
5011
+ * "status": "INTERNAL",
5012
+ * "message": "An unexpected error occurred.",
5013
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
5014
+ * }
5015
+ * }
5016
+ */
5017
+ "application/json": components["schemas"]["ErrorResponseDto"];
5018
+ };
5019
+ };
5020
+ };
5021
+ };
5022
+ CustomContextItemsController_create: {
5023
+ parameters: {
5024
+ query?: never;
5025
+ header?: never;
5026
+ path?: never;
5027
+ cookie?: never;
5028
+ };
5029
+ requestBody: {
5030
+ content: {
5031
+ "application/json": components["schemas"]["CreateCustomContextItemDto"];
5032
+ };
5033
+ };
5034
+ responses: {
5035
+ 201: {
5036
+ headers: {
5037
+ [name: string]: unknown;
5038
+ };
5039
+ content: {
5040
+ "application/json": components["schemas"]["CreatedCustomContextItemResponseDto"];
5041
+ };
5042
+ };
5043
+ /** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
5044
+ 400: {
5045
+ headers: {
5046
+ [name: string]: unknown;
5047
+ };
5048
+ content: {
5049
+ /**
5050
+ * @example {
5051
+ * "error": {
5052
+ * "code": "BAD_REQUEST",
5053
+ * "status": "INVALID_ARGUMENT",
5054
+ * "message": "Invalid value for query parameter `pageSize`.",
5055
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
5056
+ * }
5057
+ * }
5058
+ */
5059
+ "application/json": components["schemas"]["ErrorResponseDto"];
5060
+ };
5061
+ };
5062
+ /** @description Missing, invalid, or expired access token (`code: UNAUTHORIZED`). */
5063
+ 401: {
5064
+ headers: {
5065
+ [name: string]: unknown;
5066
+ };
5067
+ content: {
5068
+ /**
5069
+ * @example {
5070
+ * "error": {
5071
+ * "code": "UNAUTHORIZED",
5072
+ * "status": "UNAUTHENTICATED",
5073
+ * "message": "Missing or invalid access token.",
5074
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
5075
+ * }
5076
+ * }
5077
+ */
5078
+ "application/json": components["schemas"]["ErrorResponseDto"];
5079
+ };
5080
+ };
5081
+ /** @description Authenticated, but the token lacks a required scope (`code: FORBIDDEN`). The missing scopes are listed in `info`. */
5082
+ 403: {
5083
+ headers: {
5084
+ [name: string]: unknown;
5085
+ };
5086
+ content: {
5087
+ /**
5088
+ * @example {
5089
+ * "error": {
5090
+ * "code": "FORBIDDEN",
5091
+ * "status": "PERMISSION_DENIED",
5092
+ * "message": "Missing required scope(s) for this operation.",
5093
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS",
5094
+ * "info": {
5095
+ * "missing": [
5096
+ * "<required-scope>"
5097
+ * ]
5098
+ * }
5099
+ * }
5100
+ * }
5101
+ */
5102
+ "application/json": components["schemas"]["ErrorResponseDto"];
5103
+ };
5104
+ };
5105
+ /** @description The resource does not exist, or you do not have access to it (`code: NOT_FOUND`). */
5106
+ 404: {
5107
+ headers: {
5108
+ [name: string]: unknown;
5109
+ };
5110
+ content: {
5111
+ /**
5112
+ * @example {
5113
+ * "error": {
5114
+ * "code": "NOT_FOUND",
5115
+ * "status": "NOT_FOUND",
5116
+ * "message": "Resource not found.",
5117
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
5118
+ * }
5119
+ * }
5120
+ */
5121
+ "application/json": components["schemas"]["ErrorResponseDto"];
5122
+ };
5123
+ };
5124
+ /** @description The request conflicts with the current state of the resource, e.g. a duplicate (`code: CONFLICT`). */
5125
+ 409: {
5126
+ headers: {
5127
+ [name: string]: unknown;
5128
+ };
5129
+ content: {
5130
+ /**
5131
+ * @example {
5132
+ * "error": {
5133
+ * "code": "CONFLICT",
5134
+ * "status": "ALREADY_EXISTS",
5135
+ * "message": "A resource with that identifier already exists.",
5136
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
5137
+ * }
5138
+ * }
5139
+ */
5140
+ "application/json": components["schemas"]["ErrorResponseDto"];
5141
+ };
5142
+ };
5143
+ /** @description The request was well-formed but failed a business rule (`code: VALIDATION`). */
5144
+ 422: {
5145
+ headers: {
5146
+ [name: string]: unknown;
5147
+ };
5148
+ content: {
5149
+ /**
5150
+ * @example {
5151
+ * "error": {
5152
+ * "code": "VALIDATION",
5153
+ * "status": "INVALID_ARGUMENT",
5154
+ * "message": "Updates that would revoke your own access are not allowed.",
5155
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
5156
+ * }
5157
+ * }
5158
+ */
5159
+ "application/json": components["schemas"]["ErrorResponseDto"];
5160
+ };
5161
+ };
5162
+ /** @description An unexpected server error occurred (`code: INTERNAL_ERROR`). */
5163
+ 500: {
5164
+ headers: {
5165
+ [name: string]: unknown;
5166
+ };
5167
+ content: {
5168
+ /**
5169
+ * @example {
5170
+ * "error": {
5171
+ * "code": "INTERNAL_ERROR",
5172
+ * "status": "INTERNAL",
5173
+ * "message": "An unexpected error occurred.",
5174
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
5175
+ * }
5176
+ * }
5177
+ */
5178
+ "application/json": components["schemas"]["ErrorResponseDto"];
5179
+ };
5180
+ };
5181
+ };
5182
+ };
5183
+ CustomContextItemsController_batchCreate: {
5184
+ parameters: {
5185
+ query?: never;
5186
+ header?: never;
5187
+ path?: never;
5188
+ cookie?: never;
5189
+ };
5190
+ requestBody: {
5191
+ content: {
5192
+ "application/json": components["schemas"]["BatchCreateCustomContextItemsDto"];
5193
+ };
5194
+ };
5195
+ responses: {
5196
+ 201: {
5197
+ headers: {
5198
+ [name: string]: unknown;
5199
+ };
5200
+ content: {
5201
+ "application/json": components["schemas"]["BatchCreateCustomContextItemsResponseDto"];
5202
+ };
5203
+ };
5204
+ /** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
5205
+ 400: {
5206
+ headers: {
5207
+ [name: string]: unknown;
5208
+ };
5209
+ content: {
5210
+ /**
5211
+ * @example {
5212
+ * "error": {
5213
+ * "code": "BAD_REQUEST",
5214
+ * "status": "INVALID_ARGUMENT",
5215
+ * "message": "Invalid value for query parameter `pageSize`.",
5216
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
5217
+ * }
5218
+ * }
5219
+ */
5220
+ "application/json": components["schemas"]["ErrorResponseDto"];
5221
+ };
5222
+ };
5223
+ /** @description Missing, invalid, or expired access token (`code: UNAUTHORIZED`). */
5224
+ 401: {
5225
+ headers: {
5226
+ [name: string]: unknown;
5227
+ };
5228
+ content: {
5229
+ /**
5230
+ * @example {
5231
+ * "error": {
5232
+ * "code": "UNAUTHORIZED",
5233
+ * "status": "UNAUTHENTICATED",
5234
+ * "message": "Missing or invalid access token.",
5235
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
5236
+ * }
5237
+ * }
5238
+ */
5239
+ "application/json": components["schemas"]["ErrorResponseDto"];
5240
+ };
5241
+ };
5242
+ /** @description Authenticated, but the token lacks a required scope (`code: FORBIDDEN`). The missing scopes are listed in `info`. */
5243
+ 403: {
5244
+ headers: {
5245
+ [name: string]: unknown;
5246
+ };
5247
+ content: {
5248
+ /**
5249
+ * @example {
5250
+ * "error": {
5251
+ * "code": "FORBIDDEN",
5252
+ * "status": "PERMISSION_DENIED",
5253
+ * "message": "Missing required scope(s) for this operation.",
5254
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS",
5255
+ * "info": {
5256
+ * "missing": [
5257
+ * "<required-scope>"
5258
+ * ]
5259
+ * }
5260
+ * }
5261
+ * }
5262
+ */
5263
+ "application/json": components["schemas"]["ErrorResponseDto"];
5264
+ };
5265
+ };
5266
+ /** @description The resource does not exist, or you do not have access to it (`code: NOT_FOUND`). */
5267
+ 404: {
5268
+ headers: {
5269
+ [name: string]: unknown;
5270
+ };
5271
+ content: {
5272
+ /**
5273
+ * @example {
5274
+ * "error": {
5275
+ * "code": "NOT_FOUND",
5276
+ * "status": "NOT_FOUND",
5277
+ * "message": "Resource not found.",
5278
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
5279
+ * }
5280
+ * }
5281
+ */
5282
+ "application/json": components["schemas"]["ErrorResponseDto"];
5283
+ };
5284
+ };
5285
+ /** @description The request conflicts with the current state of the resource, e.g. a duplicate (`code: CONFLICT`). */
5286
+ 409: {
5287
+ headers: {
5288
+ [name: string]: unknown;
5289
+ };
5290
+ content: {
5291
+ /**
5292
+ * @example {
5293
+ * "error": {
5294
+ * "code": "CONFLICT",
5295
+ * "status": "ALREADY_EXISTS",
5296
+ * "message": "A resource with that identifier already exists.",
5297
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
5298
+ * }
5299
+ * }
5300
+ */
5301
+ "application/json": components["schemas"]["ErrorResponseDto"];
5302
+ };
5303
+ };
5304
+ /** @description The request was well-formed but failed a business rule (`code: VALIDATION`). */
5305
+ 422: {
5306
+ headers: {
5307
+ [name: string]: unknown;
5308
+ };
5309
+ content: {
5310
+ /**
5311
+ * @example {
5312
+ * "error": {
5313
+ * "code": "VALIDATION",
5314
+ * "status": "INVALID_ARGUMENT",
5315
+ * "message": "Updates that would revoke your own access are not allowed.",
5316
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
5317
+ * }
5318
+ * }
5319
+ */
5320
+ "application/json": components["schemas"]["ErrorResponseDto"];
5321
+ };
5322
+ };
5323
+ /** @description An unexpected server error occurred (`code: INTERNAL_ERROR`). */
5324
+ 500: {
5325
+ headers: {
5326
+ [name: string]: unknown;
5327
+ };
5328
+ content: {
5329
+ /**
5330
+ * @example {
5331
+ * "error": {
5332
+ * "code": "INTERNAL_ERROR",
5333
+ * "status": "INTERNAL",
5334
+ * "message": "An unexpected error occurred.",
5335
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
5336
+ * }
5337
+ * }
5338
+ */
5339
+ "application/json": components["schemas"]["ErrorResponseDto"];
5340
+ };
5341
+ };
5342
+ };
5343
+ };
5344
+ CustomContextItemsController_get: {
5345
+ parameters: {
5346
+ query?: never;
5347
+ header?: never;
5348
+ path: {
5349
+ /** @description Uid of the custom context item. */
5350
+ uid: string;
5351
+ };
5352
+ cookie?: never;
5353
+ };
5354
+ requestBody?: never;
5355
+ responses: {
5356
+ 200: {
5357
+ headers: {
5358
+ [name: string]: unknown;
5359
+ };
5360
+ content: {
5361
+ "application/json": components["schemas"]["ContextItemDto"];
5362
+ };
5363
+ };
5364
+ /** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
5365
+ 400: {
5366
+ headers: {
5367
+ [name: string]: unknown;
5368
+ };
5369
+ content: {
5370
+ /**
5371
+ * @example {
5372
+ * "error": {
5373
+ * "code": "BAD_REQUEST",
5374
+ * "status": "INVALID_ARGUMENT",
5375
+ * "message": "Invalid value for query parameter `pageSize`.",
5376
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
5377
+ * }
5378
+ * }
5379
+ */
5380
+ "application/json": components["schemas"]["ErrorResponseDto"];
5381
+ };
5382
+ };
5383
+ /** @description Missing, invalid, or expired access token (`code: UNAUTHORIZED`). */
5384
+ 401: {
5385
+ headers: {
5386
+ [name: string]: unknown;
5387
+ };
5388
+ content: {
5389
+ /**
5390
+ * @example {
5391
+ * "error": {
5392
+ * "code": "UNAUTHORIZED",
5393
+ * "status": "UNAUTHENTICATED",
5394
+ * "message": "Missing or invalid access token.",
5395
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
5396
+ * }
5397
+ * }
5398
+ */
5399
+ "application/json": components["schemas"]["ErrorResponseDto"];
5400
+ };
5401
+ };
5402
+ /** @description Authenticated, but the token lacks a required scope (`code: FORBIDDEN`). The missing scopes are listed in `info`. */
5403
+ 403: {
5404
+ headers: {
5405
+ [name: string]: unknown;
5406
+ };
5407
+ content: {
5408
+ /**
5409
+ * @example {
5410
+ * "error": {
5411
+ * "code": "FORBIDDEN",
5412
+ * "status": "PERMISSION_DENIED",
5413
+ * "message": "Missing required scope(s) for this operation.",
5414
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS",
5415
+ * "info": {
5416
+ * "missing": [
5417
+ * "<required-scope>"
5418
+ * ]
5419
+ * }
5420
+ * }
5421
+ * }
5422
+ */
5423
+ "application/json": components["schemas"]["ErrorResponseDto"];
5424
+ };
5425
+ };
5426
+ /** @description The resource does not exist, or you do not have access to it (`code: NOT_FOUND`). */
5427
+ 404: {
5428
+ headers: {
5429
+ [name: string]: unknown;
5430
+ };
5431
+ content: {
5432
+ /**
5433
+ * @example {
5434
+ * "error": {
5435
+ * "code": "NOT_FOUND",
5436
+ * "status": "NOT_FOUND",
5437
+ * "message": "Resource not found.",
5438
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
5439
+ * }
5440
+ * }
5441
+ */
5442
+ "application/json": components["schemas"]["ErrorResponseDto"];
5443
+ };
5444
+ };
5445
+ /** @description An unexpected server error occurred (`code: INTERNAL_ERROR`). */
5446
+ 500: {
5447
+ headers: {
5448
+ [name: string]: unknown;
5449
+ };
5450
+ content: {
5451
+ /**
5452
+ * @example {
5453
+ * "error": {
5454
+ * "code": "INTERNAL_ERROR",
5455
+ * "status": "INTERNAL",
5456
+ * "message": "An unexpected error occurred.",
5457
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
5458
+ * }
5459
+ * }
5460
+ */
5461
+ "application/json": components["schemas"]["ErrorResponseDto"];
5462
+ };
5463
+ };
5464
+ };
5465
+ };
5466
+ CustomContextItemsController_delete: {
5467
+ parameters: {
5468
+ query?: never;
5469
+ header?: never;
5470
+ path: {
5471
+ /** @description Uid of the custom context item. */
5472
+ uid: string;
5473
+ };
5474
+ cookie?: never;
5475
+ };
5476
+ requestBody?: never;
5477
+ responses: {
5478
+ 200: {
5479
+ headers: {
5480
+ [name: string]: unknown;
5481
+ };
5482
+ content: {
5483
+ "application/json": components["schemas"]["DeleteContextItemResponseDto"];
5484
+ };
5485
+ };
5486
+ /** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
5487
+ 400: {
5488
+ headers: {
5489
+ [name: string]: unknown;
5490
+ };
5491
+ content: {
5492
+ /**
5493
+ * @example {
5494
+ * "error": {
5495
+ * "code": "BAD_REQUEST",
5496
+ * "status": "INVALID_ARGUMENT",
5497
+ * "message": "Invalid value for query parameter `pageSize`.",
5498
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
5499
+ * }
5500
+ * }
5501
+ */
5502
+ "application/json": components["schemas"]["ErrorResponseDto"];
5503
+ };
5504
+ };
5505
+ /** @description Missing, invalid, or expired access token (`code: UNAUTHORIZED`). */
5506
+ 401: {
5507
+ headers: {
5508
+ [name: string]: unknown;
5509
+ };
5510
+ content: {
5511
+ /**
5512
+ * @example {
5513
+ * "error": {
5514
+ * "code": "UNAUTHORIZED",
5515
+ * "status": "UNAUTHENTICATED",
5516
+ * "message": "Missing or invalid access token.",
5517
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
5518
+ * }
5519
+ * }
5520
+ */
5521
+ "application/json": components["schemas"]["ErrorResponseDto"];
5522
+ };
5523
+ };
5524
+ /** @description Authenticated, but the token lacks a required scope (`code: FORBIDDEN`). The missing scopes are listed in `info`. */
5525
+ 403: {
5526
+ headers: {
5527
+ [name: string]: unknown;
5528
+ };
5529
+ content: {
5530
+ /**
5531
+ * @example {
5532
+ * "error": {
5533
+ * "code": "FORBIDDEN",
5534
+ * "status": "PERMISSION_DENIED",
5535
+ * "message": "Missing required scope(s) for this operation.",
5536
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS",
5537
+ * "info": {
5538
+ * "missing": [
5539
+ * "<required-scope>"
5540
+ * ]
5541
+ * }
5542
+ * }
5543
+ * }
5544
+ */
5545
+ "application/json": components["schemas"]["ErrorResponseDto"];
5546
+ };
5547
+ };
5548
+ /** @description The resource does not exist, or you do not have access to it (`code: NOT_FOUND`). */
5549
+ 404: {
5550
+ headers: {
5551
+ [name: string]: unknown;
5552
+ };
5553
+ content: {
5554
+ /**
5555
+ * @example {
5556
+ * "error": {
5557
+ * "code": "NOT_FOUND",
5558
+ * "status": "NOT_FOUND",
5559
+ * "message": "Resource not found.",
5560
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
5561
+ * }
5562
+ * }
5563
+ */
5564
+ "application/json": components["schemas"]["ErrorResponseDto"];
5565
+ };
5566
+ };
5567
+ /** @description The request conflicts with the current state of the resource, e.g. a duplicate (`code: CONFLICT`). */
5568
+ 409: {
5569
+ headers: {
5570
+ [name: string]: unknown;
5571
+ };
5572
+ content: {
5573
+ /**
5574
+ * @example {
5575
+ * "error": {
5576
+ * "code": "CONFLICT",
5577
+ * "status": "ALREADY_EXISTS",
5578
+ * "message": "A resource with that identifier already exists.",
5579
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
5580
+ * }
5581
+ * }
5582
+ */
5583
+ "application/json": components["schemas"]["ErrorResponseDto"];
5584
+ };
5585
+ };
5586
+ /** @description The request was well-formed but failed a business rule (`code: VALIDATION`). */
5587
+ 422: {
5588
+ headers: {
5589
+ [name: string]: unknown;
5590
+ };
5591
+ content: {
5592
+ /**
5593
+ * @example {
5594
+ * "error": {
5595
+ * "code": "VALIDATION",
5596
+ * "status": "INVALID_ARGUMENT",
5597
+ * "message": "Updates that would revoke your own access are not allowed.",
5598
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
5599
+ * }
5600
+ * }
5601
+ */
5602
+ "application/json": components["schemas"]["ErrorResponseDto"];
5603
+ };
5604
+ };
5605
+ /** @description An unexpected server error occurred (`code: INTERNAL_ERROR`). */
5606
+ 500: {
5607
+ headers: {
5608
+ [name: string]: unknown;
5609
+ };
5610
+ content: {
5611
+ /**
5612
+ * @example {
5613
+ * "error": {
5614
+ * "code": "INTERNAL_ERROR",
5615
+ * "status": "INTERNAL",
5616
+ * "message": "An unexpected error occurred.",
5617
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
5618
+ * }
5619
+ * }
5620
+ */
5621
+ "application/json": components["schemas"]["ErrorResponseDto"];
5622
+ };
5623
+ };
5624
+ };
5625
+ };
5626
+ CustomContextItemsController_update: {
5627
+ parameters: {
5628
+ query?: never;
5629
+ header?: never;
5630
+ path: {
5631
+ /** @description Uid of the custom context item. */
5632
+ uid: string;
5633
+ };
4488
5634
  cookie?: never;
4489
5635
  };
4490
- requestBody?: never;
5636
+ requestBody: {
5637
+ content: {
5638
+ "application/json": components["schemas"]["UpdateCustomContextItemDto"];
5639
+ };
5640
+ };
4491
5641
  responses: {
5642
+ /** @description Patch applied. */
4492
5643
  200: {
4493
5644
  headers: {
4494
5645
  [name: string]: unknown;
4495
5646
  };
4496
5647
  content: {
4497
- "application/json": components["schemas"]["ListConnectionsResponseDto"];
5648
+ "application/json": {
5649
+ uid: string;
5650
+ };
4498
5651
  };
4499
5652
  };
4500
5653
  /** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
@@ -4559,6 +5712,63 @@ interface operations {
4559
5712
  "application/json": components["schemas"]["ErrorResponseDto"];
4560
5713
  };
4561
5714
  };
5715
+ /** @description The resource does not exist, or you do not have access to it (`code: NOT_FOUND`). */
5716
+ 404: {
5717
+ headers: {
5718
+ [name: string]: unknown;
5719
+ };
5720
+ content: {
5721
+ /**
5722
+ * @example {
5723
+ * "error": {
5724
+ * "code": "NOT_FOUND",
5725
+ * "status": "NOT_FOUND",
5726
+ * "message": "Resource not found.",
5727
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
5728
+ * }
5729
+ * }
5730
+ */
5731
+ "application/json": components["schemas"]["ErrorResponseDto"];
5732
+ };
5733
+ };
5734
+ /** @description The request conflicts with the current state of the resource, e.g. a duplicate (`code: CONFLICT`). */
5735
+ 409: {
5736
+ headers: {
5737
+ [name: string]: unknown;
5738
+ };
5739
+ content: {
5740
+ /**
5741
+ * @example {
5742
+ * "error": {
5743
+ * "code": "CONFLICT",
5744
+ * "status": "ALREADY_EXISTS",
5745
+ * "message": "A resource with that identifier already exists.",
5746
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
5747
+ * }
5748
+ * }
5749
+ */
5750
+ "application/json": components["schemas"]["ErrorResponseDto"];
5751
+ };
5752
+ };
5753
+ /** @description The request was well-formed but failed a business rule (`code: VALIDATION`). */
5754
+ 422: {
5755
+ headers: {
5756
+ [name: string]: unknown;
5757
+ };
5758
+ content: {
5759
+ /**
5760
+ * @example {
5761
+ * "error": {
5762
+ * "code": "VALIDATION",
5763
+ * "status": "INVALID_ARGUMENT",
5764
+ * "message": "Updates that would revoke your own access are not allowed.",
5765
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
5766
+ * }
5767
+ * }
5768
+ */
5769
+ "application/json": components["schemas"]["ErrorResponseDto"];
5770
+ };
5771
+ };
4562
5772
  /** @description An unexpected server error occurred (`code: INTERNAL_ERROR`). */
4563
5773
  500: {
4564
5774
  headers: {
@@ -4580,21 +5790,13 @@ interface operations {
4580
5790
  };
4581
5791
  };
4582
5792
  };
4583
- CustomContextItemsController_list: {
5793
+ ContextFilesController_list: {
4584
5794
  parameters: {
4585
5795
  query?: {
4586
5796
  /** @description Opaque page token from a previous response's `nextPageToken`. Omit for the first page. */
4587
5797
  pageToken?: string;
4588
- /** @description Max items per page. Defaults to 25 (the legacy `list-context-items-olap` action defaulted to 100; the new `clampPageSize` helper standardises every modus-api list surface on 25). Clamped to 200. */
5798
+ /** @description Max items per page. Defaults to 25, clamped to 200. */
4589
5799
  pageSize?: number;
4590
- /** @description Filter by one or more context types (repeat the query param). Example: `?contextTypes=note&contextTypes=saved_query`. */
4591
- contextTypes?: string[];
4592
- /** @description Filter by verification status (`negative` / `neutral` / `positive`). */
4593
- verificationStatuses?: string[];
4594
- /** @description Case-insensitive substring search over content + description + topics. */
4595
- searchQuery?: string;
4596
- /** @description Filter by topic tag. */
4597
- topics?: string[];
4598
5800
  };
4599
5801
  header?: never;
4600
5802
  path?: never;
@@ -4607,7 +5809,7 @@ interface operations {
4607
5809
  [name: string]: unknown;
4608
5810
  };
4609
5811
  content: {
4610
- "application/json": components["schemas"]["ListCustomContextItemsResponseDto"];
5812
+ "application/json": components["schemas"]["ListFilesResponseDto"];
4611
5813
  };
4612
5814
  };
4613
5815
  /** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
@@ -4693,7 +5895,7 @@ interface operations {
4693
5895
  };
4694
5896
  };
4695
5897
  };
4696
- CustomContextItemsController_create: {
5898
+ ContextFilesController_uploadFromUrl: {
4697
5899
  parameters: {
4698
5900
  query?: never;
4699
5901
  header?: never;
@@ -4702,7 +5904,7 @@ interface operations {
4702
5904
  };
4703
5905
  requestBody: {
4704
5906
  content: {
4705
- "application/json": components["schemas"]["CreateCustomContextItemDto"];
5907
+ "application/json": components["schemas"]["UploadFromUrlDto"];
4706
5908
  };
4707
5909
  };
4708
5910
  responses: {
@@ -4711,7 +5913,7 @@ interface operations {
4711
5913
  [name: string]: unknown;
4712
5914
  };
4713
5915
  content: {
4714
- "application/json": components["schemas"]["CreatedCustomContextItemResponseDto"];
5916
+ "application/json": components["schemas"]["FileUploadResourceDto"];
4715
5917
  };
4716
5918
  };
4717
5919
  /** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
@@ -4852,9 +6054,28 @@ interface operations {
4852
6054
  "application/json": components["schemas"]["ErrorResponseDto"];
4853
6055
  };
4854
6056
  };
6057
+ /** @description Upstream fetch failed (timeout, HTTP error, or unresolvable DNS) (`code: UPSTREAM_ERROR`). */
6058
+ 502: {
6059
+ headers: {
6060
+ [name: string]: unknown;
6061
+ };
6062
+ content: {
6063
+ /**
6064
+ * @example {
6065
+ * "error": {
6066
+ * "code": "UPSTREAM_ERROR",
6067
+ * "status": "UNAVAILABLE",
6068
+ * "message": "Failed to fetch the remote file.",
6069
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
6070
+ * }
6071
+ * }
6072
+ */
6073
+ "application/json": components["schemas"]["ErrorResponseDto"];
6074
+ };
6075
+ };
4855
6076
  };
4856
6077
  };
4857
- CustomContextItemsController_batchCreate: {
6078
+ ContextFilesController_uploadFromUrls: {
4858
6079
  parameters: {
4859
6080
  query?: never;
4860
6081
  header?: never;
@@ -4863,16 +6084,16 @@ interface operations {
4863
6084
  };
4864
6085
  requestBody: {
4865
6086
  content: {
4866
- "application/json": components["schemas"]["BatchCreateCustomContextItemsDto"];
6087
+ "application/json": components["schemas"]["BulkUploadFromUrlsDto"];
4867
6088
  };
4868
6089
  };
4869
6090
  responses: {
4870
- 201: {
6091
+ 200: {
4871
6092
  headers: {
4872
6093
  [name: string]: unknown;
4873
6094
  };
4874
6095
  content: {
4875
- "application/json": components["schemas"]["BatchCreateCustomContextItemsResponseDto"];
6096
+ "application/json": components["schemas"]["BulkUploadFromUrlsResponseDto"];
4876
6097
  };
4877
6098
  };
4878
6099
  /** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
@@ -5015,24 +6236,25 @@ interface operations {
5015
6236
  };
5016
6237
  };
5017
6238
  };
5018
- CustomContextItemsController_get: {
6239
+ ContextFilesController_uploadUrl: {
5019
6240
  parameters: {
5020
6241
  query?: never;
5021
6242
  header?: never;
5022
- path: {
5023
- /** @description Uid of the custom context item. */
5024
- uid: string;
5025
- };
6243
+ path?: never;
5026
6244
  cookie?: never;
5027
6245
  };
5028
- requestBody?: never;
6246
+ requestBody: {
6247
+ content: {
6248
+ "application/json": components["schemas"]["UploadUrlDto"];
6249
+ };
6250
+ };
5029
6251
  responses: {
5030
- 200: {
6252
+ 201: {
5031
6253
  headers: {
5032
6254
  [name: string]: unknown;
5033
6255
  };
5034
6256
  content: {
5035
- "application/json": components["schemas"]["ContextItemDto"];
6257
+ "application/json": components["schemas"]["UploadUrlResponseDto"];
5036
6258
  };
5037
6259
  };
5038
6260
  /** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
@@ -5116,6 +6338,44 @@ interface operations {
5116
6338
  "application/json": components["schemas"]["ErrorResponseDto"];
5117
6339
  };
5118
6340
  };
6341
+ /** @description The request conflicts with the current state of the resource, e.g. a duplicate (`code: CONFLICT`). */
6342
+ 409: {
6343
+ headers: {
6344
+ [name: string]: unknown;
6345
+ };
6346
+ content: {
6347
+ /**
6348
+ * @example {
6349
+ * "error": {
6350
+ * "code": "CONFLICT",
6351
+ * "status": "ALREADY_EXISTS",
6352
+ * "message": "A resource with that identifier already exists.",
6353
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
6354
+ * }
6355
+ * }
6356
+ */
6357
+ "application/json": components["schemas"]["ErrorResponseDto"];
6358
+ };
6359
+ };
6360
+ /** @description The request was well-formed but failed a business rule (`code: VALIDATION`). */
6361
+ 422: {
6362
+ headers: {
6363
+ [name: string]: unknown;
6364
+ };
6365
+ content: {
6366
+ /**
6367
+ * @example {
6368
+ * "error": {
6369
+ * "code": "VALIDATION",
6370
+ * "status": "INVALID_ARGUMENT",
6371
+ * "message": "Updates that would revoke your own access are not allowed.",
6372
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
6373
+ * }
6374
+ * }
6375
+ */
6376
+ "application/json": components["schemas"]["ErrorResponseDto"];
6377
+ };
6378
+ };
5119
6379
  /** @description An unexpected server error occurred (`code: INTERNAL_ERROR`). */
5120
6380
  500: {
5121
6381
  headers: {
@@ -5137,24 +6397,25 @@ interface operations {
5137
6397
  };
5138
6398
  };
5139
6399
  };
5140
- CustomContextItemsController_delete: {
6400
+ ContextFilesController_uploadUrls: {
5141
6401
  parameters: {
5142
6402
  query?: never;
5143
6403
  header?: never;
5144
- path: {
5145
- /** @description Uid of the custom context item. */
5146
- uid: string;
5147
- };
6404
+ path?: never;
5148
6405
  cookie?: never;
5149
6406
  };
5150
- requestBody?: never;
6407
+ requestBody: {
6408
+ content: {
6409
+ "application/json": components["schemas"]["BulkUploadUrlsDto"];
6410
+ };
6411
+ };
5151
6412
  responses: {
5152
6413
  200: {
5153
6414
  headers: {
5154
6415
  [name: string]: unknown;
5155
6416
  };
5156
6417
  content: {
5157
- "application/json": components["schemas"]["DeleteContextItemResponseDto"];
6418
+ "application/json": components["schemas"]["BulkUploadUrlsResponseDto"];
5158
6419
  };
5159
6420
  };
5160
6421
  /** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
@@ -5297,31 +6558,24 @@ interface operations {
5297
6558
  };
5298
6559
  };
5299
6560
  };
5300
- CustomContextItemsController_update: {
6561
+ ContextFilesController_get: {
5301
6562
  parameters: {
5302
6563
  query?: never;
5303
6564
  header?: never;
5304
6565
  path: {
5305
- /** @description Uid of the custom context item. */
5306
- uid: string;
6566
+ /** @description Upload id returned by `uploadUrl` / `uploadUrls`. */
6567
+ uploadId: string;
5307
6568
  };
5308
6569
  cookie?: never;
5309
6570
  };
5310
- requestBody: {
5311
- content: {
5312
- "application/json": components["schemas"]["UpdateCustomContextItemDto"];
5313
- };
5314
- };
6571
+ requestBody?: never;
5315
6572
  responses: {
5316
- /** @description Patch applied. */
5317
6573
  200: {
5318
6574
  headers: {
5319
6575
  [name: string]: unknown;
5320
6576
  };
5321
6577
  content: {
5322
- "application/json": {
5323
- uid: string;
5324
- };
6578
+ "application/json": components["schemas"]["FileUploadResourceDto"];
5325
6579
  };
5326
6580
  };
5327
6581
  /** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
@@ -5405,44 +6659,6 @@ interface operations {
5405
6659
  "application/json": components["schemas"]["ErrorResponseDto"];
5406
6660
  };
5407
6661
  };
5408
- /** @description The request conflicts with the current state of the resource, e.g. a duplicate (`code: CONFLICT`). */
5409
- 409: {
5410
- headers: {
5411
- [name: string]: unknown;
5412
- };
5413
- content: {
5414
- /**
5415
- * @example {
5416
- * "error": {
5417
- * "code": "CONFLICT",
5418
- * "status": "ALREADY_EXISTS",
5419
- * "message": "A resource with that identifier already exists.",
5420
- * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
5421
- * }
5422
- * }
5423
- */
5424
- "application/json": components["schemas"]["ErrorResponseDto"];
5425
- };
5426
- };
5427
- /** @description The request was well-formed but failed a business rule (`code: VALIDATION`). */
5428
- 422: {
5429
- headers: {
5430
- [name: string]: unknown;
5431
- };
5432
- content: {
5433
- /**
5434
- * @example {
5435
- * "error": {
5436
- * "code": "VALIDATION",
5437
- * "status": "INVALID_ARGUMENT",
5438
- * "message": "Updates that would revoke your own access are not allowed.",
5439
- * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
5440
- * }
5441
- * }
5442
- */
5443
- "application/json": components["schemas"]["ErrorResponseDto"];
5444
- };
5445
- };
5446
6662
  /** @description An unexpected server error occurred (`code: INTERNAL_ERROR`). */
5447
6663
  500: {
5448
6664
  headers: {
@@ -7145,6 +8361,8 @@ interface operations {
7145
8361
  userId?: string;
7146
8362
  /** @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. */
7147
8363
  toolName?: string;
8364
+ /** @description Return only conversations started from this UI surface. Cannot be combined with `toolName`, `includeTools=true`, or `kind` other than `all`. */
8365
+ source?: "home" | "agent_settings" | "agent" | "api" | "modus_api" | "mcp" | "slack" | "slack_dm" | "teams" | "context_chat" | "other";
7148
8366
  /** @description Filter by activity recency. Coarse server-side buckets. */
7149
8367
  timeframe?: "last_day" | "this_week" | "this_month" | "last_7_days" | "last_30_days";
7150
8368
  /** @description When true, populate `toolsUsed` on each list item by scanning message blobs. Defaults to false to keep the list cheap. */
@@ -8600,6 +9818,8 @@ interface operations {
8600
9818
  userId?: string;
8601
9819
  /** @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. */
8602
9820
  toolName?: string;
9821
+ /** @description Return only conversations started from this UI surface. Cannot be combined with `toolName`, `includeTools=true`, or `kind` other than `all`. */
9822
+ source?: "home" | "agent_settings" | "agent" | "api" | "modus_api" | "mcp" | "slack" | "slack_dm" | "teams" | "context_chat" | "other";
8603
9823
  /** @description Filter by activity recency. Coarse server-side buckets. */
8604
9824
  timeframe?: "last_day" | "this_week" | "this_month" | "last_7_days" | "last_30_days";
8605
9825
  /** @description When true, populate `toolsUsed` on each list item by scanning message blobs. Defaults to false to keep the list cheap. */
@@ -15931,6 +17151,66 @@ declare const OPERATIONS: {
15931
17151
  readonly requestSchema: "CreateSavedQueryDto";
15932
17152
  readonly responseSchema: "CreatedContextItemResponseDto";
15933
17153
  };
17154
+ readonly ContextFilesController_get: {
17155
+ readonly method: "GET";
17156
+ readonly path: "/api/v1/context/files/{uploadId}";
17157
+ readonly service: "modus-api";
17158
+ readonly serverUrl: "https://api.getmodus.com";
17159
+ readonly pathParams: readonly ["uploadId"];
17160
+ readonly queryParams: readonly [];
17161
+ readonly requestSchema: null;
17162
+ readonly responseSchema: "FileUploadResourceDto";
17163
+ };
17164
+ readonly ContextFilesController_list: {
17165
+ readonly method: "GET";
17166
+ readonly path: "/api/v1/context/files";
17167
+ readonly service: "modus-api";
17168
+ readonly serverUrl: "https://api.getmodus.com";
17169
+ readonly pathParams: readonly [];
17170
+ readonly queryParams: readonly ["pageToken", "pageSize"];
17171
+ readonly requestSchema: null;
17172
+ readonly responseSchema: "ListFilesResponseDto";
17173
+ };
17174
+ readonly ContextFilesController_uploadFromUrl: {
17175
+ readonly method: "POST";
17176
+ readonly path: "/api/v1/context/files/uploadFromUrl";
17177
+ readonly service: "modus-api";
17178
+ readonly serverUrl: "https://api.getmodus.com";
17179
+ readonly pathParams: readonly [];
17180
+ readonly queryParams: readonly [];
17181
+ readonly requestSchema: "UploadFromUrlDto";
17182
+ readonly responseSchema: "FileUploadResourceDto";
17183
+ };
17184
+ readonly ContextFilesController_uploadFromUrls: {
17185
+ readonly method: "POST";
17186
+ readonly path: "/api/v1/context/files/uploadFromUrls";
17187
+ readonly service: "modus-api";
17188
+ readonly serverUrl: "https://api.getmodus.com";
17189
+ readonly pathParams: readonly [];
17190
+ readonly queryParams: readonly [];
17191
+ readonly requestSchema: "BulkUploadFromUrlsDto";
17192
+ readonly responseSchema: "BulkUploadFromUrlsResponseDto";
17193
+ };
17194
+ readonly ContextFilesController_uploadUrl: {
17195
+ readonly method: "POST";
17196
+ readonly path: "/api/v1/context/files/uploadUrl";
17197
+ readonly service: "modus-api";
17198
+ readonly serverUrl: "https://api.getmodus.com";
17199
+ readonly pathParams: readonly [];
17200
+ readonly queryParams: readonly [];
17201
+ readonly requestSchema: "UploadUrlDto";
17202
+ readonly responseSchema: "UploadUrlResponseDto";
17203
+ };
17204
+ readonly ContextFilesController_uploadUrls: {
17205
+ readonly method: "POST";
17206
+ readonly path: "/api/v1/context/files/uploadUrls";
17207
+ readonly service: "modus-api";
17208
+ readonly serverUrl: "https://api.getmodus.com";
17209
+ readonly pathParams: readonly [];
17210
+ readonly queryParams: readonly [];
17211
+ readonly requestSchema: "BulkUploadUrlsDto";
17212
+ readonly responseSchema: "BulkUploadUrlsResponseDto";
17213
+ };
15934
17214
  readonly ContextItemsController_delete: {
15935
17215
  readonly method: "DELETE";
15936
17216
  readonly path: "/api/v1/context/items/{uid}";
@@ -16157,7 +17437,7 @@ declare const OPERATIONS: {
16157
17437
  readonly service: "modus-api";
16158
17438
  readonly serverUrl: "https://api.getmodus.com";
16159
17439
  readonly pathParams: readonly [];
16160
- readonly queryParams: readonly ["pageToken", "page", "pageSize", "userId", "toolName", "timeframe", "includeTools", "kind"];
17440
+ readonly queryParams: readonly ["pageToken", "page", "pageSize", "userId", "toolName", "source", "timeframe", "includeTools", "kind"];
16161
17441
  readonly requestSchema: null;
16162
17442
  readonly responseSchema: "ListConversationsResponseDto";
16163
17443
  };
@@ -16307,7 +17587,7 @@ declare const OPERATIONS: {
16307
17587
  readonly service: "modus-api";
16308
17588
  readonly serverUrl: "https://api.getmodus.com";
16309
17589
  readonly pathParams: readonly ["id"];
16310
- readonly queryParams: readonly ["pageToken", "page", "pageSize", "userId", "toolName", "timeframe", "includeTools"];
17590
+ readonly queryParams: readonly ["pageToken", "page", "pageSize", "userId", "toolName", "source", "timeframe", "includeTools"];
16311
17591
  readonly requestSchema: null;
16312
17592
  readonly responseSchema: "ListConversationsResponseDto";
16313
17593
  };