@getmodus/sdk 0.7.0 → 0.8.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.
@@ -22,6 +22,11 @@ interface ModusOptions {
22
22
  timeoutMs?: number;
23
23
  /** Retries on rate limits and server errors (default 2). */
24
24
  maxRetries?: number;
25
+ /**
26
+ * Headers sent on every request. They override the SDK's own defaults, except
27
+ * `Authorization`, which always comes from `apiKey`.
28
+ */
29
+ defaultHeaders?: Record<string, string>;
25
30
  /**
26
31
  * Custom fetch implementation.
27
32
  * @internal Test injection only.
@@ -36,6 +41,7 @@ interface ModusConfig {
36
41
  readonly baseUrls: Readonly<Record<string, string>>;
37
42
  readonly timeoutMs: number;
38
43
  readonly maxRetries: number;
44
+ readonly defaultHeaders: Readonly<Record<string, string>>;
39
45
  readonly fetch: typeof fetch;
40
46
  }
41
47
  declare function createModusConfig(options?: ModusOptions): ModusConfig;
@@ -544,7 +550,7 @@ interface paths {
544
550
  put?: never;
545
551
  /**
546
552
  * Finalize uploaded files in bulk
547
- * @description Finalizes up to 100 uploaded files in one call, so a directory upload costs one request per 100 files. Always returns 200 — a file that has not been received only fails its own entry (`failed[]`). Structural problems (empty `uploads`, over 100 entries) reject the whole request (422).
553
+ * @description Finalizes up to 100 uploaded files in one call, each checked as in the single finalize. Always returns 200: a file that has not been received, or is executable content, fails only its own entry (`failed[]`). Structural problems (empty `uploads`, over 100 entries) reject the whole request (422).
548
554
  *
549
555
  * **Requires:** `context:write`
550
556
  */
@@ -676,7 +682,7 @@ interface paths {
676
682
  put?: never;
677
683
  /**
678
684
  * Finalize an uploaded file
679
- * @description Turns a file already uploaded to a presigned URL into durable context. Call this once the PUT completes. Validates the size and type of the object actually stored. Safe to retry — a second call returns the same resource. 404 if the file has not been received.
685
+ * @description Makes an uploaded file durable context once its PUT completes. Checks the stored size and type: executable content returns 422, and a file whose bytes show another allowed type (a PNG named `.jpg`) is processed as that type, reported in `contentType`. Safe to retry. 404 if the file has not been received.
680
686
  *
681
687
  * **Requires:** `context:write`
682
688
  */
@@ -696,7 +702,7 @@ interface paths {
696
702
  };
697
703
  /**
698
704
  * List context items
699
- * @description Returns a page of context items, optionally filtered by context type, verification status, topic, or free-text search. Pass `nextPageToken` as `pageToken` to fetch the next page.
705
+ * @description Returns a page of context items, optionally filtered by context type, verification status, topic, free-text search, connection, parent, or ancestor. Pass `nextPageToken` as `pageToken` to fetch the next page.
700
706
  *
701
707
  * **Requires:** `context:read`
702
708
  */
@@ -749,7 +755,7 @@ interface paths {
749
755
  post?: never;
750
756
  /**
751
757
  * Delete a context item
752
- * @description Removes a context item created via the SPA / public API. Only items in the user-created allowlist (`note`, `link`, `saved_query`, `golden_query`, `file_upload`) can be deleted via this surface — integration-derived items are managed by their owning syncer and respond with 422. Returns 404 when the row is missing.
758
+ * @description Deletes a user-created context item. Deleting a Files folder also removes all files, subfolders and parsed file items it contains. Integration-owned items return 422; missing items return 404.
753
759
  *
754
760
  * **Requires:** `context:write`
755
761
  */
@@ -765,6 +771,28 @@ interface paths {
765
771
  patch: operations["ContextItemsController_update"];
766
772
  trace?: never;
767
773
  };
774
+ "/api/v1/context/items/{uid}/move": {
775
+ parameters: {
776
+ query?: never;
777
+ header?: never;
778
+ path?: never;
779
+ cookie?: never;
780
+ };
781
+ get?: never;
782
+ put?: never;
783
+ /**
784
+ * Move a Files item
785
+ * @description Moves a live file or Files folder to an existing folder, or to the Files root when destinationFolderUid is null. Same-parent moves succeed as a no-op. Does not rename or merge folders.
786
+ *
787
+ * **Requires:** `context:write`
788
+ */
789
+ post: operations["ContextItemsController_move"];
790
+ delete?: never;
791
+ options?: never;
792
+ head?: never;
793
+ patch?: never;
794
+ trace?: never;
795
+ };
768
796
  "/api/v1/context/items/{uid}/values": {
769
797
  parameters: {
770
798
  query?: never;
@@ -1002,7 +1030,7 @@ interface paths {
1002
1030
  put?: never;
1003
1031
  /**
1004
1032
  * Create a scope
1005
- * @description Creates a scope (owned by you) and returns it in draft state. Defaults to org-shared `use` + `manage` access. Call POST /scopes/{id}/deploy to publish it.
1033
+ * @description Creates a scope (owned by you) and returns it in draft state. Defaults to org-shared `use` + `manage` access. The scope reads its own learnings unless `includeOwnLearnings` is false. Call POST /scopes/{id}/deploy to publish it.
1006
1034
  *
1007
1035
  * **Requires:** `scopes:write`
1008
1036
  */
@@ -1257,6 +1285,62 @@ interface paths {
1257
1285
  patch?: never;
1258
1286
  trace?: never;
1259
1287
  };
1288
+ "/api/v1/scopes/{id}/interfaces": {
1289
+ parameters: {
1290
+ query?: never;
1291
+ header?: never;
1292
+ path?: never;
1293
+ cookie?: never;
1294
+ };
1295
+ /**
1296
+ * List the chat interfaces of a scope
1297
+ * @description Returns the chat interfaces (at most one per chat platform) that let people use this scope from chat. Requires manage permission on the scope, because the config lists allowed emails.
1298
+ *
1299
+ * **Requires:** `scopes:read`
1300
+ */
1301
+ get: operations["ScopeInterfacesController_list"];
1302
+ put?: never;
1303
+ /**
1304
+ * Add a chat interface to a scope
1305
+ * @description Lets people use a deployed scope from a chat platform. The organization needs a connection to that platform. One interface per type per scope. Takes effect immediately, without a deploy.
1306
+ *
1307
+ * **Requires:** `scopes:write`
1308
+ */
1309
+ post: operations["ScopeInterfacesController_add"];
1310
+ delete?: never;
1311
+ options?: never;
1312
+ head?: never;
1313
+ patch?: never;
1314
+ trace?: never;
1315
+ };
1316
+ "/api/v1/scopes/{id}/interfaces/{interfaceId}": {
1317
+ parameters: {
1318
+ query?: never;
1319
+ header?: never;
1320
+ path?: never;
1321
+ cookie?: never;
1322
+ };
1323
+ get?: never;
1324
+ put?: never;
1325
+ post?: never;
1326
+ /**
1327
+ * Remove a scope interface
1328
+ * @description Removes one chat interface from the scope. Mentions on that chat platform stop reaching this scope immediately.
1329
+ *
1330
+ * **Requires:** `scopes:write`
1331
+ */
1332
+ delete: operations["ScopeInterfacesController_delete"];
1333
+ options?: never;
1334
+ head?: never;
1335
+ /**
1336
+ * Update a scope interface
1337
+ * @description Changes the name and/or config (access mode, allowed emails, channels) of a chat interface. A new config replaces the old one. Pass `?updateMask=<csv>` to limit which fields are written.
1338
+ *
1339
+ * **Requires:** `scopes:write`
1340
+ */
1341
+ patch: operations["ScopeInterfacesController_update"];
1342
+ trace?: never;
1343
+ };
1260
1344
  "/api/v1/scopes/{id}/mcp-config": {
1261
1345
  parameters: {
1262
1346
  query?: never;
@@ -2295,6 +2379,19 @@ interface components {
2295
2379
  [key: string]: unknown;
2296
2380
  };
2297
2381
  };
2382
+ AddScopeInterfaceDto: {
2383
+ /**
2384
+ * @description Chat platform. One interface per type per scope.
2385
+ * @example slack
2386
+ */
2387
+ type: components["schemas"]["ChatInterfaceType"];
2388
+ /**
2389
+ * @description Display name. Defaults to the chat platform name.
2390
+ * @example Support
2391
+ */
2392
+ name?: string;
2393
+ config?: components["schemas"]["ChatInterfaceConfigDto"];
2394
+ };
2298
2395
  AgentAccessConfigDto: {
2299
2396
  /**
2300
2397
  * @description Visibility tier. `shared` applies the group-permission map; `private` ignores groups and uses owner + sharedWith for access.
@@ -2578,7 +2675,7 @@ interface components {
2578
2675
  */
2579
2676
  fileName: string;
2580
2677
  /**
2581
- * @description Relative folder label to store with the upload.
2678
+ * @description Root-relative folder path for this upload (for example `reports/2026`). Omit to store at the Files root. To reuse a folder created by an upload, pass its `folderPath`.
2582
2679
  * @example reports/2026/Q3
2583
2680
  */
2584
2681
  folderPath?: string;
@@ -2601,7 +2698,7 @@ interface components {
2601
2698
  */
2602
2699
  fileName?: string;
2603
2700
  /**
2604
- * @description Relative folder label to store with the upload.
2701
+ * @description Root-relative folder path for this upload (for example `reports/2026`). Omit to store at the Files root. To reuse a folder created by an upload, pass its `folderPath`.
2605
2702
  * @example reports/2026/Q3
2606
2703
  */
2607
2704
  folderPath?: string;
@@ -2643,6 +2740,34 @@ interface components {
2643
2740
  /** @description Per-item failures (bad MIME type, oversize, etc). Empty when every file succeeded. */
2644
2741
  failed: components["schemas"]["FailedUploadUrlDto"][];
2645
2742
  };
2743
+ /**
2744
+ * @description Who may use the interface: `all` (anyone in the workspace), `allow-list` (only `allowedEmails`), `allow-org` (members of this organization).
2745
+ * @enum {string}
2746
+ */
2747
+ ChatInterfaceAccessMode: "all" | "allow-list" | "allow-org";
2748
+ ChatInterfaceConfigDto: {
2749
+ /**
2750
+ * @description Who may use the interface: `all` (anyone in the workspace), `allow-list` (only `allowedEmails`), `allow-org` (members of this organization).
2751
+ * @example allow-list
2752
+ */
2753
+ accessMode?: components["schemas"]["ChatInterfaceAccessMode"];
2754
+ /**
2755
+ * @description Emails allowed to use the interface when `accessMode` is `allow-list`.
2756
+ * @example [
2757
+ * "ana@example.com"
2758
+ * ]
2759
+ */
2760
+ allowedEmails?: string[];
2761
+ /**
2762
+ * @description Channels where the interface answers. Slack channel ids look like `C0ALH2JTRR9`. Empty or absent means every channel.
2763
+ * @example [
2764
+ * "C0ALH2JTRR9"
2765
+ * ]
2766
+ */
2767
+ availableChannelIds?: string[];
2768
+ };
2769
+ /** @enum {string} */
2770
+ ChatInterfaceType: "slack" | "teams";
2646
2771
  ComposeSkillContextRequestDto: {
2647
2772
  /**
2648
2773
  * @description User message or intent used to compose relevant context (RAG query).
@@ -2736,6 +2861,23 @@ interface components {
2736
2861
  [key: string]: string[];
2737
2862
  };
2738
2863
  };
2864
+ ContextItemAncestorDto: {
2865
+ /**
2866
+ * @description Stable identifier of the ancestor.
2867
+ * @example ancestor-123
2868
+ */
2869
+ uid: string;
2870
+ /**
2871
+ * @description Human-readable label. Generic path-token ancestry copies the same platform segment as uid. Null only when an explicit entry stored no name.
2872
+ * @example acme
2873
+ */
2874
+ display_name: string | null;
2875
+ /**
2876
+ * @description Optional ancestor kind. Null when the source provides only platform path tokens.
2877
+ * @example container
2878
+ */
2879
+ type: string | null;
2880
+ };
2739
2881
  ContextItemDto: {
2740
2882
  /**
2741
2883
  * @description Stable UUID for the context item. Use this on PATCH / DELETE / values endpoints.
@@ -2795,6 +2937,8 @@ interface components {
2795
2937
  * ]
2796
2938
  */
2797
2939
  dataPath: string[];
2940
+ /** @description Ordered ancestors. Omitted on older responses that do not yet include the field. Null means stored ancestry is unknown. An empty array means the item has no ancestors. Each entry uses `uid`, `display_name`, and `type`. */
2941
+ ancestry?: components["schemas"]["ContextItemAncestorDto"][] | null;
2798
2942
  /**
2799
2943
  * @description Creation timestamp.
2800
2944
  * @example 2026-05-01T10:00:00.000Z
@@ -3216,7 +3360,7 @@ interface components {
3216
3360
  * ]
3217
3361
  */
3218
3362
  instructions?: string[];
3219
- /** @description Toolset configuration (tools this scope may invoke). Service sanitizes the shape on write. */
3363
+ /** @description Toolset configuration (tools this scope may invoke). Service sanitizes the shape on write. A connected integration given as `{actions, rules?}` is bound to the organization's newest workspace connection of that integration and returned as `{byConnection: {<connectionId>: {actions, rules?}}}`. */
3220
3364
  toolset?: components["schemas"]["ToolsetDto"];
3221
3365
  /**
3222
3366
  * @description Model identifier to use at run time (e.g. `claude-sonnet-4-5`). Falls back to org default when absent.
@@ -3233,14 +3377,19 @@ interface components {
3233
3377
  [key: string]: unknown;
3234
3378
  }[];
3235
3379
  /**
3236
- * @description Selected context items (sources / docs) the scope may read.
3380
+ * @description Selected context items (sources / docs) the scope may read. The scope's own learnings are added unless `includeOwnLearnings` is false or these selections already mention learnings.
3237
3381
  * @example []
3238
3382
  */
3239
3383
  contextSelections?: {
3240
3384
  [key: string]: unknown;
3241
3385
  }[];
3242
3386
  /**
3243
- * @description Interface configuration (chat, API, webhook…). Shape is interface-specific.
3387
+ * @description Whether the scope reads what is taught while using it: learnings, facts, glossary terms and preferences. Defaults to true. Set false to create the scope without them; it can be included later in the scope's context selections.
3388
+ * @default true
3389
+ */
3390
+ includeOwnLearnings: boolean;
3391
+ /**
3392
+ * @description The scope's MCP interface configuration. Only entries with `type: "mcp"` are accepted; any other type is rejected with 400.
3244
3393
  * @example []
3245
3394
  */
3246
3395
  interfaces?: {
@@ -3898,7 +4047,7 @@ interface components {
3898
4047
  /** @example Q3-churn-report.pdf */
3899
4048
  fileName?: string | null;
3900
4049
  /**
3901
- * @description Relative folder label supplied when the upload was finalized.
4050
+ * @description Relative folder path within Files. Null at the Files root.
3902
4051
  * @example reports/2026/Q3
3903
4052
  */
3904
4053
  folderPath?: string | null;
@@ -3931,7 +4080,7 @@ interface components {
3931
4080
  */
3932
4081
  fileName: string;
3933
4082
  /**
3934
- * @description Relative folder label to store with the upload.
4083
+ * @description Root-relative folder path for this upload (for example `reports/2026`). Omit to store at the Files root. To reuse a folder created by an upload, pass its `folderPath`.
3935
4084
  * @example reports/2026/Q3
3936
4085
  */
3937
4086
  folderPath?: string;
@@ -4183,6 +4332,10 @@ interface components {
4183
4332
  ListOrgMembersResponseDto: {
4184
4333
  members: components["schemas"]["OrgMemberDto"][];
4185
4334
  };
4335
+ ListScopeInterfacesResponseDto: {
4336
+ /** @description Every chat interface on the scope (at most one per type). */
4337
+ interfaces: components["schemas"]["ScopeInterfaceDto"][];
4338
+ };
4186
4339
  ListSkillsResponseDto: {
4187
4340
  /** @description Page of scopes the caller can at least `use`. Scopes the caller cannot see are filtered out (not enumerated). */
4188
4341
  scopes: components["schemas"]["ScopeDto"][];
@@ -4253,6 +4406,8 @@ interface components {
4253
4406
  contextType: string;
4254
4407
  /** @description Hierarchical data path of the row (same as the request). */
4255
4408
  dataPath: string[];
4409
+ /** @description Ordered ancestors. Omitted on older responses that do not yet include the field. Null means stored ancestry is unknown. An empty array is stored empty ancestry. */
4410
+ ancestry?: components["schemas"]["ContextItemAncestorDto"][] | null;
4256
4411
  /** @description Item content. When the request supplied a `contentProjection` the JSONB is shaped accordingly; otherwise the full content blob is returned. */
4257
4412
  content: {
4258
4413
  [key: string]: unknown;
@@ -4333,11 +4488,11 @@ interface components {
4333
4488
  */
4334
4489
  message?: string;
4335
4490
  /**
4336
- * @description Canonical model id for this run (required). Allowed values: claude-sonnet-5, claude-sonnet-4.6, claude-opus-4.8, claude-opus-5.5, 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, grok-4.7, kimi-k3.
4491
+ * @description Canonical model id for this run (required). Allowed values: claude-sonnet-5, claude-sonnet-5.5, claude-sonnet-4.6, claude-opus-4.8, claude-opus-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, 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, grok-4.7, kimi-k3.
4337
4492
  * @example claude-sonnet-4.6
4338
4493
  * @enum {string}
4339
4494
  */
4340
- model: "claude-sonnet-5" | "claude-sonnet-4.6" | "claude-opus-4.8" | "claude-opus-5.5" | "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" | "grok-4.7" | "kimi-k3";
4495
+ model: "claude-sonnet-5" | "claude-sonnet-5.5" | "claude-sonnet-4.6" | "claude-opus-4.8" | "claude-opus-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" | "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" | "grok-4.7" | "kimi-k3";
4341
4496
  /** @description Continue a pending write-approval interrupt from a prior turn. When true, `message` is ignored. */
4342
4497
  approvalContinuation?: boolean;
4343
4498
  /**
@@ -4395,6 +4550,20 @@ interface components {
4395
4550
  /** @description Session id used for this composition. */
4396
4551
  sessionId: string;
4397
4552
  };
4553
+ MoveContextItemDto: {
4554
+ /**
4555
+ * @description Stored context-item uid of an existing Files folder, or null to move to the Files root. The destination must already exist. Move does not rename or merge folders.
4556
+ * @example null
4557
+ */
4558
+ destinationFolderUid: string | null;
4559
+ };
4560
+ MoveContextItemResponseDto: {
4561
+ /**
4562
+ * @description Number of context items whose parent changed. Zero is a successful same-parent no-op.
4563
+ * @example 3
4564
+ */
4565
+ movedItems: number;
4566
+ };
4398
4567
  OrgMemberDto: {
4399
4568
  user_id: string;
4400
4569
  first_name: string;
@@ -4557,6 +4726,36 @@ interface components {
4557
4726
  */
4558
4727
  manageDenial: "not_owner" | "needs_group_manage" | null;
4559
4728
  };
4729
+ ScopeInterfaceDto: {
4730
+ /**
4731
+ * @description Interface id (UUID).
4732
+ * @example 00000000-0000-4000-a000-000000000500
4733
+ */
4734
+ id: string;
4735
+ /**
4736
+ * @description Scope id.
4737
+ * @example 42
4738
+ */
4739
+ scopeId: number;
4740
+ /** @example slack */
4741
+ type: components["schemas"]["ChatInterfaceType"];
4742
+ /**
4743
+ * @description Display name.
4744
+ * @example Slack
4745
+ */
4746
+ name: string;
4747
+ config: components["schemas"]["ChatInterfaceConfigDto"];
4748
+ /**
4749
+ * @description Creation timestamp.
4750
+ * @example 2026-09-30T10:00:00.000Z
4751
+ */
4752
+ createdAt: string;
4753
+ /**
4754
+ * @description Most recent update timestamp.
4755
+ * @example 2026-09-30T10:00:00.000Z
4756
+ */
4757
+ updatedAt: string;
4758
+ };
4560
4759
  SearchMemoriesRequestDto: {
4561
4760
  /**
4562
4761
  * @description Search query string (semantic search over the scope's memories).
@@ -4624,11 +4823,11 @@ interface components {
4624
4823
  */
4625
4824
  message: string;
4626
4825
  /**
4627
- * @description Canonical model id for this run (required). Allowed values: claude-sonnet-5, claude-sonnet-4.6, claude-opus-4.8, claude-opus-5.5, 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, grok-4.7, kimi-k3.
4826
+ * @description Canonical model id for this run (required). Allowed values: claude-sonnet-5, claude-sonnet-5.5, claude-sonnet-4.6, claude-opus-4.8, claude-opus-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, 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, grok-4.7, kimi-k3.
4628
4827
  * @example claude-sonnet-4.6
4629
4828
  * @enum {string}
4630
4829
  */
4631
- model: "claude-sonnet-5" | "claude-sonnet-4.6" | "claude-opus-4.8" | "claude-opus-5.5" | "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" | "grok-4.7" | "kimi-k3";
4830
+ model: "claude-sonnet-5" | "claude-sonnet-5.5" | "claude-sonnet-4.6" | "claude-opus-4.8" | "claude-opus-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" | "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" | "grok-4.7" | "kimi-k3";
4632
4831
  };
4633
4832
  SkillChatResponseDto: {
4634
4833
  /**
@@ -4792,7 +4991,7 @@ interface components {
4792
4991
  };
4793
4992
  ToolCatalogActionDto: {
4794
4993
  /**
4795
- * @description Stable action id — the exact string to put in `toolset.<id>.actions`.
4994
+ * @description Stable action id: the exact string to list in `toolset.<id>.byConnection.<connectionId>.actions` (or `toolset.<id>.actions`, which binds to the newest workspace connection).
4796
4995
  * @example list_dags
4797
4996
  */
4798
4997
  name: string;
@@ -5121,6 +5320,15 @@ interface components {
5121
5320
  [key: string]: unknown;
5122
5321
  };
5123
5322
  };
5323
+ UpdateScopeInterfaceDto: {
5324
+ /**
5325
+ * @description New display name.
5326
+ * @example Support
5327
+ */
5328
+ name?: string;
5329
+ /** @description Replaces the whole config. */
5330
+ config?: components["schemas"]["ChatInterfaceConfigDto"];
5331
+ };
5124
5332
  UpdateSkillDto: {
5125
5333
  /**
5126
5334
  * @description New display name for the scope.
@@ -5144,7 +5352,7 @@ interface components {
5144
5352
  * ]
5145
5353
  */
5146
5354
  instructions?: string[];
5147
- /** @description Updated toolset configuration. */
5355
+ /** @description Updated toolset configuration. A connected integration given as `{actions, rules?}` is bound to the organization's newest workspace connection of that integration and returned as `{byConnection: {<connectionId>: {actions, rules?}}}`. */
5148
5356
  toolset?: components["schemas"]["ToolsetDto"];
5149
5357
  /**
5150
5358
  * @description Updated model id. Pass `null` (explicit) to clear and use the org default.
@@ -5161,14 +5369,14 @@ interface components {
5161
5369
  [key: string]: unknown;
5162
5370
  }[];
5163
5371
  /**
5164
- * @description Updated context selections (sources / docs the scope may read).
5372
+ * @description Updated context selections (sources / docs the scope may read). Replaces the whole list, so send every selection to keep, including the scope's own learnings.
5165
5373
  * @example []
5166
5374
  */
5167
5375
  contextSelections?: {
5168
5376
  [key: string]: unknown;
5169
5377
  }[];
5170
5378
  /**
5171
- * @description Updated interface configuration.
5379
+ * @description Updated MCP interface configuration. Only entries with `type: "mcp"` are accepted; any other type is rejected with 400.
5172
5380
  * @example []
5173
5381
  */
5174
5382
  interfaces?: {
@@ -5211,7 +5419,7 @@ interface components {
5211
5419
  */
5212
5420
  fileName?: string;
5213
5421
  /**
5214
- * @description Relative folder label to store with the upload.
5422
+ * @description Root-relative folder path for this upload (for example `reports/2026`). Omit to store at the Files root. To reuse a folder created by an upload, pass its `folderPath`.
5215
5423
  * @example reports/2026/Q3
5216
5424
  */
5217
5425
  folderPath?: string;
@@ -5264,6 +5472,15 @@ interface components {
5264
5472
  * @example 2026-08-12T14:15:00.000Z
5265
5473
  */
5266
5474
  expiresAt: string;
5475
+ /**
5476
+ * @description Headers to send unchanged with the upload PUT request.
5477
+ * @example {
5478
+ * "Content-Type": "application/pdf"
5479
+ * }
5480
+ */
5481
+ headers: {
5482
+ [key: string]: string;
5483
+ };
5267
5484
  };
5268
5485
  UsageBucketDto: {
5269
5486
  /** @description ISO8601 timestamp at the start of the bucket. */
@@ -5718,7 +5935,7 @@ interface components {
5718
5935
  * @description Origin of the run.
5719
5936
  * @enum {string}
5720
5937
  */
5721
- RunSource: "home" | "agent_settings" | "agent" | "api" | "modus_api" | "mcp" | "slack" | "slack_dm" | "teams" | "context_chat" | "dashboard_copilot" | "other";
5938
+ RunSource: "home" | "agent_settings" | "agent" | "api" | "modus_api" | "mcp" | "slack" | "slack_dm" | "teams" | "context_chat" | "dashboard_copilot" | "dashboard_assistant" | "other";
5722
5939
  SkillRunDto: {
5723
5940
  /** @description The user message to send. */
5724
5941
  message: string;
@@ -11934,6 +12151,12 @@ interface operations {
11934
12151
  searchQuery?: string;
11935
12152
  /** @description Filter by topic tag. */
11936
12153
  topics?: string[];
12154
+ /** @description Restrict to these connection ids, intersected with connections you can access. Repeat the query param. An empty list matches no rows. Omit for no extra connection restriction. */
12155
+ connectionIds?: string[];
12156
+ /** @description Exact ordered parent ancestry UID chain (repeat the query param). Omit for no parent restriction. Pass empty (`?parentUids=`) to list items with known empty ancestry. A nonempty chain matches cardinality and each stored ancestor UID by position, not the item's own UID. Display name and type are not identity. */
12157
+ parentUids?: string[];
12158
+ /** @description Ordered ancestry UID prefix for strict descendants (repeat the query param). Omit for no ancestor restriction. Pass empty (`?ancestorUids=`) for the virtual-root subtree (any non-null ancestry). A nonempty prefix matches descendants whose ancestry starts with that chain. Does not compare the item's own UID to a native ancestor UID. */
12159
+ ancestorUids?: string[];
11937
12160
  };
11938
12161
  header?: never;
11939
12162
  path?: never;
@@ -12740,39 +12963,28 @@ interface operations {
12740
12963
  };
12741
12964
  };
12742
12965
  };
12743
- ContextItemsController_listValues: {
12966
+ ContextItemsController_move: {
12744
12967
  parameters: {
12745
- query: {
12746
- /** @description Context type of the item (required for partition-aware reads). */
12747
- contextType: string;
12748
- /** @description Dot-separated JSON path to the array of values inside `content`. Example: `enumValues` or `sample.values`. */
12749
- contentKeyPath: string;
12750
- /** @description Max values per page. Defaults to 25 (the legacy `get-context-values` action defaulted to 50; the new `clampPageSize` helper standardises every modus-api list surface on 25). Clamped to 200. */
12751
- pageSize?: number;
12752
- /** @description Cursor offset (numeric). Legacy semantics — prefer `pageToken` for deep pages. */
12753
- offset?: number;
12754
- /** @description Opaque page token from a previous response's `nextPageToken`. */
12755
- pageToken?: string;
12756
- /** @description Case-insensitive substring search over each value. */
12757
- searchQuery?: string;
12758
- /** @description Optional prefix path applied to the data-path filter before slicing values (advanced). */
12759
- dataPathPrefix?: string[];
12760
- };
12968
+ query?: never;
12761
12969
  header?: never;
12762
12970
  path: {
12763
- /** @description UUID of the context item (unused on the underlying reader but kept for URL consistency). */
12971
+ /** @description Stored context-item uid of the live file or Files folder to move. */
12764
12972
  uid: string;
12765
12973
  };
12766
12974
  cookie?: never;
12767
12975
  };
12768
- requestBody?: never;
12976
+ requestBody: {
12977
+ content: {
12978
+ "application/json": components["schemas"]["MoveContextItemDto"];
12979
+ };
12980
+ };
12769
12981
  responses: {
12770
12982
  200: {
12771
12983
  headers: {
12772
12984
  [name: string]: unknown;
12773
12985
  };
12774
12986
  content: {
12775
- "application/json": components["schemas"]["ListContextItemValuesResponseDto"];
12987
+ "application/json": components["schemas"]["MoveContextItemResponseDto"];
12776
12988
  };
12777
12989
  };
12778
12990
  /** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
@@ -12856,6 +13068,44 @@ interface operations {
12856
13068
  "application/json": components["schemas"]["ErrorResponseDto"];
12857
13069
  };
12858
13070
  };
13071
+ /** @description The request conflicts with the current state of the resource, e.g. a duplicate (`code: CONFLICT`). */
13072
+ 409: {
13073
+ headers: {
13074
+ [name: string]: unknown;
13075
+ };
13076
+ content: {
13077
+ /**
13078
+ * @example {
13079
+ * "error": {
13080
+ * "code": "CONFLICT",
13081
+ * "status": "ALREADY_EXISTS",
13082
+ * "message": "A resource with that identifier already exists.",
13083
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
13084
+ * }
13085
+ * }
13086
+ */
13087
+ "application/json": components["schemas"]["ErrorResponseDto"];
13088
+ };
13089
+ };
13090
+ /** @description The request was well-formed but failed a business rule (`code: VALIDATION`). */
13091
+ 422: {
13092
+ headers: {
13093
+ [name: string]: unknown;
13094
+ };
13095
+ content: {
13096
+ /**
13097
+ * @example {
13098
+ * "error": {
13099
+ * "code": "VALIDATION",
13100
+ * "status": "INVALID_ARGUMENT",
13101
+ * "message": "Updates that would revoke your own access are not allowed.",
13102
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
13103
+ * }
13104
+ * }
13105
+ */
13106
+ "application/json": components["schemas"]["ErrorResponseDto"];
13107
+ };
13108
+ };
12859
13109
  /** @description Too many requests. Wait and retry later (`code: RATE_LIMITED`). */
12860
13110
  429: {
12861
13111
  headers: {
@@ -12896,25 +13146,39 @@ interface operations {
12896
13146
  };
12897
13147
  };
12898
13148
  };
12899
- ContextCreatorsController_createLink: {
13149
+ ContextItemsController_listValues: {
12900
13150
  parameters: {
12901
- query?: never;
13151
+ query: {
13152
+ /** @description Context type of the item (required for partition-aware reads). */
13153
+ contextType: string;
13154
+ /** @description Dot-separated JSON path to the array of values inside `content`. Example: `enumValues` or `sample.values`. */
13155
+ contentKeyPath: string;
13156
+ /** @description Max values per page. Defaults to 25 (the legacy `get-context-values` action defaulted to 50; the new `clampPageSize` helper standardises every modus-api list surface on 25). Clamped to 200. */
13157
+ pageSize?: number;
13158
+ /** @description Cursor offset (numeric). Legacy semantics — prefer `pageToken` for deep pages. */
13159
+ offset?: number;
13160
+ /** @description Opaque page token from a previous response's `nextPageToken`. */
13161
+ pageToken?: string;
13162
+ /** @description Case-insensitive substring search over each value. */
13163
+ searchQuery?: string;
13164
+ /** @description Optional prefix path applied to the data-path filter before slicing values (advanced). */
13165
+ dataPathPrefix?: string[];
13166
+ };
12902
13167
  header?: never;
12903
- path?: never;
12904
- cookie?: never;
12905
- };
12906
- requestBody: {
12907
- content: {
12908
- "application/json": components["schemas"]["CreateLinkDto"];
13168
+ path: {
13169
+ /** @description UUID of the context item (unused on the underlying reader but kept for URL consistency). */
13170
+ uid: string;
12909
13171
  };
13172
+ cookie?: never;
12910
13173
  };
13174
+ requestBody?: never;
12911
13175
  responses: {
12912
- 201: {
13176
+ 200: {
12913
13177
  headers: {
12914
13178
  [name: string]: unknown;
12915
13179
  };
12916
13180
  content: {
12917
- "application/json": components["schemas"]["CreatedContextItemResponseDto"];
13181
+ "application/json": components["schemas"]["ListContextItemValuesResponseDto"];
12918
13182
  };
12919
13183
  };
12920
13184
  /** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
@@ -12998,8 +13262,8 @@ interface operations {
12998
13262
  "application/json": components["schemas"]["ErrorResponseDto"];
12999
13263
  };
13000
13264
  };
13001
- /** @description The request conflicts with the current state of the resource, e.g. a duplicate (`code: CONFLICT`). */
13002
- 409: {
13265
+ /** @description Too many requests. Wait and retry later (`code: RATE_LIMITED`). */
13266
+ 429: {
13003
13267
  headers: {
13004
13268
  [name: string]: unknown;
13005
13269
  };
@@ -13007,9 +13271,9 @@ interface operations {
13007
13271
  /**
13008
13272
  * @example {
13009
13273
  * "error": {
13010
- * "code": "CONFLICT",
13011
- * "status": "ALREADY_EXISTS",
13012
- * "message": "A resource with that identifier already exists.",
13274
+ * "code": "RATE_LIMITED",
13275
+ * "status": "RESOURCE_EXHAUSTED",
13276
+ * "message": "Too many requests. Please retry after a short delay.",
13013
13277
  * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
13014
13278
  * }
13015
13279
  * }
@@ -13017,8 +13281,8 @@ interface operations {
13017
13281
  "application/json": components["schemas"]["ErrorResponseDto"];
13018
13282
  };
13019
13283
  };
13020
- /** @description The request was well-formed but failed a business rule (`code: VALIDATION`). */
13021
- 422: {
13284
+ /** @description An unexpected server error occurred (`code: INTERNAL_ERROR`). */
13285
+ 500: {
13022
13286
  headers: {
13023
13287
  [name: string]: unknown;
13024
13288
  };
@@ -13026,9 +13290,9 @@ interface operations {
13026
13290
  /**
13027
13291
  * @example {
13028
13292
  * "error": {
13029
- * "code": "VALIDATION",
13030
- * "status": "INVALID_ARGUMENT",
13031
- * "message": "Updates that would revoke your own access are not allowed.",
13293
+ * "code": "INTERNAL_ERROR",
13294
+ * "status": "INTERNAL",
13295
+ * "message": "An unexpected error occurred.",
13032
13296
  * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
13033
13297
  * }
13034
13298
  * }
@@ -13036,13 +13300,155 @@ interface operations {
13036
13300
  "application/json": components["schemas"]["ErrorResponseDto"];
13037
13301
  };
13038
13302
  };
13039
- /** @description Too many requests. Wait and retry later (`code: RATE_LIMITED`). */
13040
- 429: {
13041
- headers: {
13042
- [name: string]: unknown;
13043
- };
13044
- content: {
13045
- /**
13303
+ };
13304
+ };
13305
+ ContextCreatorsController_createLink: {
13306
+ parameters: {
13307
+ query?: never;
13308
+ header?: never;
13309
+ path?: never;
13310
+ cookie?: never;
13311
+ };
13312
+ requestBody: {
13313
+ content: {
13314
+ "application/json": components["schemas"]["CreateLinkDto"];
13315
+ };
13316
+ };
13317
+ responses: {
13318
+ 201: {
13319
+ headers: {
13320
+ [name: string]: unknown;
13321
+ };
13322
+ content: {
13323
+ "application/json": components["schemas"]["CreatedContextItemResponseDto"];
13324
+ };
13325
+ };
13326
+ /** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
13327
+ 400: {
13328
+ headers: {
13329
+ [name: string]: unknown;
13330
+ };
13331
+ content: {
13332
+ /**
13333
+ * @example {
13334
+ * "error": {
13335
+ * "code": "BAD_REQUEST",
13336
+ * "status": "INVALID_ARGUMENT",
13337
+ * "message": "Invalid value for query parameter `pageSize`.",
13338
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
13339
+ * }
13340
+ * }
13341
+ */
13342
+ "application/json": components["schemas"]["ErrorResponseDto"];
13343
+ };
13344
+ };
13345
+ /** @description Missing, invalid, or expired access token (`code: UNAUTHORIZED`). */
13346
+ 401: {
13347
+ headers: {
13348
+ [name: string]: unknown;
13349
+ };
13350
+ content: {
13351
+ /**
13352
+ * @example {
13353
+ * "error": {
13354
+ * "code": "UNAUTHORIZED",
13355
+ * "status": "UNAUTHENTICATED",
13356
+ * "message": "Missing or invalid access token.",
13357
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
13358
+ * }
13359
+ * }
13360
+ */
13361
+ "application/json": components["schemas"]["ErrorResponseDto"];
13362
+ };
13363
+ };
13364
+ /** @description Authenticated, but the token lacks a required scope (`code: FORBIDDEN`). The missing scopes are listed in `info`. */
13365
+ 403: {
13366
+ headers: {
13367
+ [name: string]: unknown;
13368
+ };
13369
+ content: {
13370
+ /**
13371
+ * @example {
13372
+ * "error": {
13373
+ * "code": "FORBIDDEN",
13374
+ * "status": "PERMISSION_DENIED",
13375
+ * "message": "Missing required scope(s) for this operation.",
13376
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS",
13377
+ * "info": {
13378
+ * "missing": [
13379
+ * "<required-scope>"
13380
+ * ]
13381
+ * }
13382
+ * }
13383
+ * }
13384
+ */
13385
+ "application/json": components["schemas"]["ErrorResponseDto"];
13386
+ };
13387
+ };
13388
+ /** @description The resource does not exist, or you do not have access to it (`code: NOT_FOUND`). */
13389
+ 404: {
13390
+ headers: {
13391
+ [name: string]: unknown;
13392
+ };
13393
+ content: {
13394
+ /**
13395
+ * @example {
13396
+ * "error": {
13397
+ * "code": "NOT_FOUND",
13398
+ * "status": "NOT_FOUND",
13399
+ * "message": "Resource not found.",
13400
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
13401
+ * }
13402
+ * }
13403
+ */
13404
+ "application/json": components["schemas"]["ErrorResponseDto"];
13405
+ };
13406
+ };
13407
+ /** @description The request conflicts with the current state of the resource, e.g. a duplicate (`code: CONFLICT`). */
13408
+ 409: {
13409
+ headers: {
13410
+ [name: string]: unknown;
13411
+ };
13412
+ content: {
13413
+ /**
13414
+ * @example {
13415
+ * "error": {
13416
+ * "code": "CONFLICT",
13417
+ * "status": "ALREADY_EXISTS",
13418
+ * "message": "A resource with that identifier already exists.",
13419
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
13420
+ * }
13421
+ * }
13422
+ */
13423
+ "application/json": components["schemas"]["ErrorResponseDto"];
13424
+ };
13425
+ };
13426
+ /** @description The request was well-formed but failed a business rule (`code: VALIDATION`). */
13427
+ 422: {
13428
+ headers: {
13429
+ [name: string]: unknown;
13430
+ };
13431
+ content: {
13432
+ /**
13433
+ * @example {
13434
+ * "error": {
13435
+ * "code": "VALIDATION",
13436
+ * "status": "INVALID_ARGUMENT",
13437
+ * "message": "Updates that would revoke your own access are not allowed.",
13438
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
13439
+ * }
13440
+ * }
13441
+ */
13442
+ "application/json": components["schemas"]["ErrorResponseDto"];
13443
+ };
13444
+ };
13445
+ /** @description Too many requests. Wait and retry later (`code: RATE_LIMITED`). */
13446
+ 429: {
13447
+ headers: {
13448
+ [name: string]: unknown;
13449
+ };
13450
+ content: {
13451
+ /**
13046
13452
  * @example {
13047
13453
  * "error": {
13048
13454
  * "code": "RATE_LIMITED",
@@ -13999,8 +14405,8 @@ interface operations {
13999
14405
  /** @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. */
14000
14406
  toolName?: string;
14001
14407
  /** @description Return only conversations started from this UI surface. Cannot be combined with `toolName`, `includeTools=true`, or `kind` other than `all`. */
14002
- source?: "home" | "agent_settings" | "agent" | "api" | "modus_api" | "mcp" | "slack" | "slack_dm" | "teams" | "context_chat" | "dashboard_copilot" | "other";
14003
- /** @description Narrow `source` to one instance of that surface — for `dashboard_copilot`, a dashboard id. Requires `source`; sent alone it is a 422. */
14408
+ source?: "home" | "agent_settings" | "agent" | "api" | "modus_api" | "mcp" | "slack" | "slack_dm" | "teams" | "context_chat" | "dashboard_copilot" | "dashboard_assistant" | "other";
14409
+ /** @description Narrow `source` to one instance of that surface — for `dashboard_copilot` or `dashboard_assistant`, a dashboard id (both scope conversation history per dashboard). Requires `source`; sent alone it is a 422. */
14004
14410
  sourceRef?: string;
14005
14411
  /** @description Filter by activity recency. Coarse server-side buckets. */
14006
14412
  timeframe?: "last_day" | "this_week" | "this_month" | "last_7_days" | "last_30_days";
@@ -15648,8 +16054,8 @@ interface operations {
15648
16054
  /** @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. */
15649
16055
  toolName?: string;
15650
16056
  /** @description Return only conversations started from this UI surface. Cannot be combined with `toolName`, `includeTools=true`, or `kind` other than `all`. */
15651
- source?: "home" | "agent_settings" | "agent" | "api" | "modus_api" | "mcp" | "slack" | "slack_dm" | "teams" | "context_chat" | "dashboard_copilot" | "other";
15652
- /** @description Narrow `source` to one instance of that surface — for `dashboard_copilot`, a dashboard id. Requires `source`; sent alone it is a 422. */
16057
+ source?: "home" | "agent_settings" | "agent" | "api" | "modus_api" | "mcp" | "slack" | "slack_dm" | "teams" | "context_chat" | "dashboard_copilot" | "dashboard_assistant" | "other";
16058
+ /** @description Narrow `source` to one instance of that surface — for `dashboard_copilot` or `dashboard_assistant`, a dashboard id (both scope conversation history per dashboard). Requires `source`; sent alone it is a 422. */
15653
16059
  sourceRef?: string;
15654
16060
  /** @description Filter by activity recency. Coarse server-side buckets. */
15655
16061
  timeframe?: "last_day" | "this_week" | "this_month" | "last_7_days" | "last_30_days";
@@ -16039,9 +16445,655 @@ interface operations {
16039
16445
  /**
16040
16446
  * @example {
16041
16447
  * "error": {
16042
- * "code": "NOT_FOUND",
16043
- * "status": "NOT_FOUND",
16044
- * "message": "Resource not found.",
16448
+ * "code": "NOT_FOUND",
16449
+ * "status": "NOT_FOUND",
16450
+ * "message": "Resource not found.",
16451
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
16452
+ * }
16453
+ * }
16454
+ */
16455
+ "application/json": components["schemas"]["ErrorResponseDto"];
16456
+ };
16457
+ };
16458
+ /** @description The request conflicts with the current state of the resource, e.g. a duplicate (`code: CONFLICT`). */
16459
+ 409: {
16460
+ headers: {
16461
+ [name: string]: unknown;
16462
+ };
16463
+ content: {
16464
+ /**
16465
+ * @example {
16466
+ * "error": {
16467
+ * "code": "CONFLICT",
16468
+ * "status": "ALREADY_EXISTS",
16469
+ * "message": "A resource with that identifier already exists.",
16470
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
16471
+ * }
16472
+ * }
16473
+ */
16474
+ "application/json": components["schemas"]["ErrorResponseDto"];
16475
+ };
16476
+ };
16477
+ /** @description The request was well-formed but failed a business rule (`code: VALIDATION`). */
16478
+ 422: {
16479
+ headers: {
16480
+ [name: string]: unknown;
16481
+ };
16482
+ content: {
16483
+ /**
16484
+ * @example {
16485
+ * "error": {
16486
+ * "code": "VALIDATION",
16487
+ * "status": "INVALID_ARGUMENT",
16488
+ * "message": "Updates that would revoke your own access are not allowed.",
16489
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
16490
+ * }
16491
+ * }
16492
+ */
16493
+ "application/json": components["schemas"]["ErrorResponseDto"];
16494
+ };
16495
+ };
16496
+ /** @description Too many requests. Wait and retry later (`code: RATE_LIMITED`). */
16497
+ 429: {
16498
+ headers: {
16499
+ [name: string]: unknown;
16500
+ };
16501
+ content: {
16502
+ /**
16503
+ * @example {
16504
+ * "error": {
16505
+ * "code": "RATE_LIMITED",
16506
+ * "status": "RESOURCE_EXHAUSTED",
16507
+ * "message": "Too many requests. Please retry after a short delay.",
16508
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
16509
+ * }
16510
+ * }
16511
+ */
16512
+ "application/json": components["schemas"]["ErrorResponseDto"];
16513
+ };
16514
+ };
16515
+ /** @description An unexpected server error occurred (`code: INTERNAL_ERROR`). */
16516
+ 500: {
16517
+ headers: {
16518
+ [name: string]: unknown;
16519
+ };
16520
+ content: {
16521
+ /**
16522
+ * @example {
16523
+ * "error": {
16524
+ * "code": "INTERNAL_ERROR",
16525
+ * "status": "INTERNAL",
16526
+ * "message": "An unexpected error occurred.",
16527
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
16528
+ * }
16529
+ * }
16530
+ */
16531
+ "application/json": components["schemas"]["ErrorResponseDto"];
16532
+ };
16533
+ };
16534
+ };
16535
+ };
16536
+ ScopesController_deploy: {
16537
+ parameters: {
16538
+ query?: never;
16539
+ header?: never;
16540
+ path: {
16541
+ /** @description Numeric scope id. */
16542
+ id: number;
16543
+ };
16544
+ cookie?: never;
16545
+ };
16546
+ requestBody?: {
16547
+ content: {
16548
+ "application/json": components["schemas"]["DeploySkillDto"];
16549
+ };
16550
+ };
16551
+ responses: {
16552
+ 200: {
16553
+ headers: {
16554
+ [name: string]: unknown;
16555
+ };
16556
+ content: {
16557
+ "application/json": components["schemas"]["DeployResponseDto"];
16558
+ };
16559
+ };
16560
+ /** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
16561
+ 400: {
16562
+ headers: {
16563
+ [name: string]: unknown;
16564
+ };
16565
+ content: {
16566
+ /**
16567
+ * @example {
16568
+ * "error": {
16569
+ * "code": "BAD_REQUEST",
16570
+ * "status": "INVALID_ARGUMENT",
16571
+ * "message": "Invalid value for query parameter `pageSize`.",
16572
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
16573
+ * }
16574
+ * }
16575
+ */
16576
+ "application/json": components["schemas"]["ErrorResponseDto"];
16577
+ };
16578
+ };
16579
+ /** @description Missing, invalid, or expired access token (`code: UNAUTHORIZED`). */
16580
+ 401: {
16581
+ headers: {
16582
+ [name: string]: unknown;
16583
+ };
16584
+ content: {
16585
+ /**
16586
+ * @example {
16587
+ * "error": {
16588
+ * "code": "UNAUTHORIZED",
16589
+ * "status": "UNAUTHENTICATED",
16590
+ * "message": "Missing or invalid access token.",
16591
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
16592
+ * }
16593
+ * }
16594
+ */
16595
+ "application/json": components["schemas"]["ErrorResponseDto"];
16596
+ };
16597
+ };
16598
+ /** @description Authenticated, but the token lacks a required scope (`code: FORBIDDEN`). The missing scopes are listed in `info`. */
16599
+ 403: {
16600
+ headers: {
16601
+ [name: string]: unknown;
16602
+ };
16603
+ content: {
16604
+ /**
16605
+ * @example {
16606
+ * "error": {
16607
+ * "code": "FORBIDDEN",
16608
+ * "status": "PERMISSION_DENIED",
16609
+ * "message": "Missing required scope(s) for this operation.",
16610
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS",
16611
+ * "info": {
16612
+ * "missing": [
16613
+ * "<required-scope>"
16614
+ * ]
16615
+ * }
16616
+ * }
16617
+ * }
16618
+ */
16619
+ "application/json": components["schemas"]["ErrorResponseDto"];
16620
+ };
16621
+ };
16622
+ /** @description The resource does not exist, or you do not have access to it (`code: NOT_FOUND`). */
16623
+ 404: {
16624
+ headers: {
16625
+ [name: string]: unknown;
16626
+ };
16627
+ content: {
16628
+ /**
16629
+ * @example {
16630
+ * "error": {
16631
+ * "code": "NOT_FOUND",
16632
+ * "status": "NOT_FOUND",
16633
+ * "message": "Resource not found.",
16634
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
16635
+ * }
16636
+ * }
16637
+ */
16638
+ "application/json": components["schemas"]["ErrorResponseDto"];
16639
+ };
16640
+ };
16641
+ /** @description The request conflicts with the current state of the resource, e.g. a duplicate (`code: CONFLICT`). */
16642
+ 409: {
16643
+ headers: {
16644
+ [name: string]: unknown;
16645
+ };
16646
+ content: {
16647
+ /**
16648
+ * @example {
16649
+ * "error": {
16650
+ * "code": "CONFLICT",
16651
+ * "status": "ALREADY_EXISTS",
16652
+ * "message": "A resource with that identifier already exists.",
16653
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
16654
+ * }
16655
+ * }
16656
+ */
16657
+ "application/json": components["schemas"]["ErrorResponseDto"];
16658
+ };
16659
+ };
16660
+ /** @description The request was well-formed but failed a business rule (`code: VALIDATION`). */
16661
+ 422: {
16662
+ headers: {
16663
+ [name: string]: unknown;
16664
+ };
16665
+ content: {
16666
+ /**
16667
+ * @example {
16668
+ * "error": {
16669
+ * "code": "VALIDATION",
16670
+ * "status": "INVALID_ARGUMENT",
16671
+ * "message": "Updates that would revoke your own access are not allowed.",
16672
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
16673
+ * }
16674
+ * }
16675
+ */
16676
+ "application/json": components["schemas"]["ErrorResponseDto"];
16677
+ };
16678
+ };
16679
+ /** @description Too many requests. Wait and retry later (`code: RATE_LIMITED`). */
16680
+ 429: {
16681
+ headers: {
16682
+ [name: string]: unknown;
16683
+ };
16684
+ content: {
16685
+ /**
16686
+ * @example {
16687
+ * "error": {
16688
+ * "code": "RATE_LIMITED",
16689
+ * "status": "RESOURCE_EXHAUSTED",
16690
+ * "message": "Too many requests. Please retry after a short delay.",
16691
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
16692
+ * }
16693
+ * }
16694
+ */
16695
+ "application/json": components["schemas"]["ErrorResponseDto"];
16696
+ };
16697
+ };
16698
+ /** @description An unexpected server error occurred (`code: INTERNAL_ERROR`). */
16699
+ 500: {
16700
+ headers: {
16701
+ [name: string]: unknown;
16702
+ };
16703
+ content: {
16704
+ /**
16705
+ * @example {
16706
+ * "error": {
16707
+ * "code": "INTERNAL_ERROR",
16708
+ * "status": "INTERNAL",
16709
+ * "message": "An unexpected error occurred.",
16710
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
16711
+ * }
16712
+ * }
16713
+ */
16714
+ "application/json": components["schemas"]["ErrorResponseDto"];
16715
+ };
16716
+ };
16717
+ };
16718
+ };
16719
+ EvaluationsController_getConfig: {
16720
+ parameters: {
16721
+ query?: never;
16722
+ header?: never;
16723
+ path: {
16724
+ /** @description Scope ID */
16725
+ id: number;
16726
+ };
16727
+ cookie?: never;
16728
+ };
16729
+ requestBody?: never;
16730
+ responses: {
16731
+ 200: {
16732
+ headers: {
16733
+ [name: string]: unknown;
16734
+ };
16735
+ content: {
16736
+ "application/json": components["schemas"]["EvaluationConfigDto"];
16737
+ };
16738
+ };
16739
+ /** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
16740
+ 400: {
16741
+ headers: {
16742
+ [name: string]: unknown;
16743
+ };
16744
+ content: {
16745
+ /**
16746
+ * @example {
16747
+ * "error": {
16748
+ * "code": "BAD_REQUEST",
16749
+ * "status": "INVALID_ARGUMENT",
16750
+ * "message": "Invalid value for query parameter `pageSize`.",
16751
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
16752
+ * }
16753
+ * }
16754
+ */
16755
+ "application/json": components["schemas"]["ErrorResponseDto"];
16756
+ };
16757
+ };
16758
+ /** @description Missing, invalid, or expired access token (`code: UNAUTHORIZED`). */
16759
+ 401: {
16760
+ headers: {
16761
+ [name: string]: unknown;
16762
+ };
16763
+ content: {
16764
+ /**
16765
+ * @example {
16766
+ * "error": {
16767
+ * "code": "UNAUTHORIZED",
16768
+ * "status": "UNAUTHENTICATED",
16769
+ * "message": "Missing or invalid access token.",
16770
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
16771
+ * }
16772
+ * }
16773
+ */
16774
+ "application/json": components["schemas"]["ErrorResponseDto"];
16775
+ };
16776
+ };
16777
+ /** @description Authenticated, but the token lacks a required scope (`code: FORBIDDEN`). The missing scopes are listed in `info`. */
16778
+ 403: {
16779
+ headers: {
16780
+ [name: string]: unknown;
16781
+ };
16782
+ content: {
16783
+ /**
16784
+ * @example {
16785
+ * "error": {
16786
+ * "code": "FORBIDDEN",
16787
+ * "status": "PERMISSION_DENIED",
16788
+ * "message": "Missing required scope(s) for this operation.",
16789
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS",
16790
+ * "info": {
16791
+ * "missing": [
16792
+ * "<required-scope>"
16793
+ * ]
16794
+ * }
16795
+ * }
16796
+ * }
16797
+ */
16798
+ "application/json": components["schemas"]["ErrorResponseDto"];
16799
+ };
16800
+ };
16801
+ /** @description The resource does not exist, or you do not have access to it (`code: NOT_FOUND`). */
16802
+ 404: {
16803
+ headers: {
16804
+ [name: string]: unknown;
16805
+ };
16806
+ content: {
16807
+ /**
16808
+ * @example {
16809
+ * "error": {
16810
+ * "code": "NOT_FOUND",
16811
+ * "status": "NOT_FOUND",
16812
+ * "message": "Resource not found.",
16813
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
16814
+ * }
16815
+ * }
16816
+ */
16817
+ "application/json": components["schemas"]["ErrorResponseDto"];
16818
+ };
16819
+ };
16820
+ /** @description Too many requests. Wait and retry later (`code: RATE_LIMITED`). */
16821
+ 429: {
16822
+ headers: {
16823
+ [name: string]: unknown;
16824
+ };
16825
+ content: {
16826
+ /**
16827
+ * @example {
16828
+ * "error": {
16829
+ * "code": "RATE_LIMITED",
16830
+ * "status": "RESOURCE_EXHAUSTED",
16831
+ * "message": "Too many requests. Please retry after a short delay.",
16832
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
16833
+ * }
16834
+ * }
16835
+ */
16836
+ "application/json": components["schemas"]["ErrorResponseDto"];
16837
+ };
16838
+ };
16839
+ /** @description An unexpected server error occurred (`code: INTERNAL_ERROR`). */
16840
+ 500: {
16841
+ headers: {
16842
+ [name: string]: unknown;
16843
+ };
16844
+ content: {
16845
+ /**
16846
+ * @example {
16847
+ * "error": {
16848
+ * "code": "INTERNAL_ERROR",
16849
+ * "status": "INTERNAL",
16850
+ * "message": "An unexpected error occurred.",
16851
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
16852
+ * }
16853
+ * }
16854
+ */
16855
+ "application/json": components["schemas"]["ErrorResponseDto"];
16856
+ };
16857
+ };
16858
+ };
16859
+ };
16860
+ EvaluationsController_updateConfig: {
16861
+ parameters: {
16862
+ query?: never;
16863
+ header?: never;
16864
+ path: {
16865
+ /** @description Scope ID */
16866
+ id: number;
16867
+ };
16868
+ cookie?: never;
16869
+ };
16870
+ requestBody: {
16871
+ content: {
16872
+ "application/json": components["schemas"]["UpdateEvaluationConfigDto"];
16873
+ };
16874
+ };
16875
+ responses: {
16876
+ 200: {
16877
+ headers: {
16878
+ [name: string]: unknown;
16879
+ };
16880
+ content: {
16881
+ "application/json": components["schemas"]["EvaluationConfigDto"];
16882
+ };
16883
+ };
16884
+ /** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
16885
+ 400: {
16886
+ headers: {
16887
+ [name: string]: unknown;
16888
+ };
16889
+ content: {
16890
+ /**
16891
+ * @example {
16892
+ * "error": {
16893
+ * "code": "BAD_REQUEST",
16894
+ * "status": "INVALID_ARGUMENT",
16895
+ * "message": "Invalid value for query parameter `pageSize`.",
16896
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
16897
+ * }
16898
+ * }
16899
+ */
16900
+ "application/json": components["schemas"]["ErrorResponseDto"];
16901
+ };
16902
+ };
16903
+ /** @description Missing, invalid, or expired access token (`code: UNAUTHORIZED`). */
16904
+ 401: {
16905
+ headers: {
16906
+ [name: string]: unknown;
16907
+ };
16908
+ content: {
16909
+ /**
16910
+ * @example {
16911
+ * "error": {
16912
+ * "code": "UNAUTHORIZED",
16913
+ * "status": "UNAUTHENTICATED",
16914
+ * "message": "Missing or invalid access token.",
16915
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
16916
+ * }
16917
+ * }
16918
+ */
16919
+ "application/json": components["schemas"]["ErrorResponseDto"];
16920
+ };
16921
+ };
16922
+ /** @description Authenticated, but the token lacks a required scope (`code: FORBIDDEN`). The missing scopes are listed in `info`. */
16923
+ 403: {
16924
+ headers: {
16925
+ [name: string]: unknown;
16926
+ };
16927
+ content: {
16928
+ /**
16929
+ * @example {
16930
+ * "error": {
16931
+ * "code": "FORBIDDEN",
16932
+ * "status": "PERMISSION_DENIED",
16933
+ * "message": "Missing required scope(s) for this operation.",
16934
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS",
16935
+ * "info": {
16936
+ * "missing": [
16937
+ * "<required-scope>"
16938
+ * ]
16939
+ * }
16940
+ * }
16941
+ * }
16942
+ */
16943
+ "application/json": components["schemas"]["ErrorResponseDto"];
16944
+ };
16945
+ };
16946
+ /** @description The resource does not exist, or you do not have access to it (`code: NOT_FOUND`). */
16947
+ 404: {
16948
+ headers: {
16949
+ [name: string]: unknown;
16950
+ };
16951
+ content: {
16952
+ /**
16953
+ * @example {
16954
+ * "error": {
16955
+ * "code": "NOT_FOUND",
16956
+ * "status": "NOT_FOUND",
16957
+ * "message": "Resource not found.",
16958
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
16959
+ * }
16960
+ * }
16961
+ */
16962
+ "application/json": components["schemas"]["ErrorResponseDto"];
16963
+ };
16964
+ };
16965
+ /** @description The request conflicts with the current state of the resource, e.g. a duplicate (`code: CONFLICT`). */
16966
+ 409: {
16967
+ headers: {
16968
+ [name: string]: unknown;
16969
+ };
16970
+ content: {
16971
+ /**
16972
+ * @example {
16973
+ * "error": {
16974
+ * "code": "CONFLICT",
16975
+ * "status": "ALREADY_EXISTS",
16976
+ * "message": "A resource with that identifier already exists.",
16977
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
16978
+ * }
16979
+ * }
16980
+ */
16981
+ "application/json": components["schemas"]["ErrorResponseDto"];
16982
+ };
16983
+ };
16984
+ /** @description The request was well-formed but failed a business rule (`code: VALIDATION`). */
16985
+ 422: {
16986
+ headers: {
16987
+ [name: string]: unknown;
16988
+ };
16989
+ content: {
16990
+ /**
16991
+ * @example {
16992
+ * "error": {
16993
+ * "code": "VALIDATION",
16994
+ * "status": "INVALID_ARGUMENT",
16995
+ * "message": "Updates that would revoke your own access are not allowed.",
16996
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
16997
+ * }
16998
+ * }
16999
+ */
17000
+ "application/json": components["schemas"]["ErrorResponseDto"];
17001
+ };
17002
+ };
17003
+ /** @description Too many requests. Wait and retry later (`code: RATE_LIMITED`). */
17004
+ 429: {
17005
+ headers: {
17006
+ [name: string]: unknown;
17007
+ };
17008
+ content: {
17009
+ /**
17010
+ * @example {
17011
+ * "error": {
17012
+ * "code": "RATE_LIMITED",
17013
+ * "status": "RESOURCE_EXHAUSTED",
17014
+ * "message": "Too many requests. Please retry after a short delay.",
17015
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
17016
+ * }
17017
+ * }
17018
+ */
17019
+ "application/json": components["schemas"]["ErrorResponseDto"];
17020
+ };
17021
+ };
17022
+ /** @description An unexpected server error occurred (`code: INTERNAL_ERROR`). */
17023
+ 500: {
17024
+ headers: {
17025
+ [name: string]: unknown;
17026
+ };
17027
+ content: {
17028
+ /**
17029
+ * @example {
17030
+ * "error": {
17031
+ * "code": "INTERNAL_ERROR",
17032
+ * "status": "INTERNAL",
17033
+ * "message": "An unexpected error occurred.",
17034
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
17035
+ * }
17036
+ * }
17037
+ */
17038
+ "application/json": components["schemas"]["ErrorResponseDto"];
17039
+ };
17040
+ };
17041
+ };
17042
+ };
17043
+ EvaluationsController_listRuns: {
17044
+ parameters: {
17045
+ query?: {
17046
+ pageSize?: number;
17047
+ pageToken?: string;
17048
+ };
17049
+ header?: never;
17050
+ path: {
17051
+ /** @description Scope ID */
17052
+ id: number;
17053
+ };
17054
+ cookie?: never;
17055
+ };
17056
+ requestBody?: never;
17057
+ responses: {
17058
+ 200: {
17059
+ headers: {
17060
+ [name: string]: unknown;
17061
+ };
17062
+ content: {
17063
+ "application/json": components["schemas"]["ListEvaluationRunsResponseDto"];
17064
+ };
17065
+ };
17066
+ /** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
17067
+ 400: {
17068
+ headers: {
17069
+ [name: string]: unknown;
17070
+ };
17071
+ content: {
17072
+ /**
17073
+ * @example {
17074
+ * "error": {
17075
+ * "code": "BAD_REQUEST",
17076
+ * "status": "INVALID_ARGUMENT",
17077
+ * "message": "Invalid value for query parameter `pageSize`.",
17078
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
17079
+ * }
17080
+ * }
17081
+ */
17082
+ "application/json": components["schemas"]["ErrorResponseDto"];
17083
+ };
17084
+ };
17085
+ /** @description Missing, invalid, or expired access token (`code: UNAUTHORIZED`). */
17086
+ 401: {
17087
+ headers: {
17088
+ [name: string]: unknown;
17089
+ };
17090
+ content: {
17091
+ /**
17092
+ * @example {
17093
+ * "error": {
17094
+ * "code": "UNAUTHORIZED",
17095
+ * "status": "UNAUTHENTICATED",
17096
+ * "message": "Missing or invalid access token.",
16045
17097
  * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
16046
17098
  * }
16047
17099
  * }
@@ -16049,8 +17101,8 @@ interface operations {
16049
17101
  "application/json": components["schemas"]["ErrorResponseDto"];
16050
17102
  };
16051
17103
  };
16052
- /** @description The request conflicts with the current state of the resource, e.g. a duplicate (`code: CONFLICT`). */
16053
- 409: {
17104
+ /** @description Authenticated, but the token lacks a required scope (`code: FORBIDDEN`). The missing scopes are listed in `info`. */
17105
+ 403: {
16054
17106
  headers: {
16055
17107
  [name: string]: unknown;
16056
17108
  };
@@ -16058,18 +17110,23 @@ interface operations {
16058
17110
  /**
16059
17111
  * @example {
16060
17112
  * "error": {
16061
- * "code": "CONFLICT",
16062
- * "status": "ALREADY_EXISTS",
16063
- * "message": "A resource with that identifier already exists.",
16064
- * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
17113
+ * "code": "FORBIDDEN",
17114
+ * "status": "PERMISSION_DENIED",
17115
+ * "message": "Missing required scope(s) for this operation.",
17116
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS",
17117
+ * "info": {
17118
+ * "missing": [
17119
+ * "<required-scope>"
17120
+ * ]
17121
+ * }
16065
17122
  * }
16066
17123
  * }
16067
17124
  */
16068
17125
  "application/json": components["schemas"]["ErrorResponseDto"];
16069
17126
  };
16070
17127
  };
16071
- /** @description The request was well-formed but failed a business rule (`code: VALIDATION`). */
16072
- 422: {
17128
+ /** @description The resource does not exist, or you do not have access to it (`code: NOT_FOUND`). */
17129
+ 404: {
16073
17130
  headers: {
16074
17131
  [name: string]: unknown;
16075
17132
  };
@@ -16077,9 +17134,9 @@ interface operations {
16077
17134
  /**
16078
17135
  * @example {
16079
17136
  * "error": {
16080
- * "code": "VALIDATION",
16081
- * "status": "INVALID_ARGUMENT",
16082
- * "message": "Updates that would revoke your own access are not allowed.",
17137
+ * "code": "NOT_FOUND",
17138
+ * "status": "NOT_FOUND",
17139
+ * "message": "Resource not found.",
16083
17140
  * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
16084
17141
  * }
16085
17142
  * }
@@ -16127,28 +17184,25 @@ interface operations {
16127
17184
  };
16128
17185
  };
16129
17186
  };
16130
- ScopesController_deploy: {
17187
+ EvaluationsController_triggerRun: {
16131
17188
  parameters: {
16132
17189
  query?: never;
16133
17190
  header?: never;
16134
17191
  path: {
16135
- /** @description Numeric scope id. */
17192
+ /** @description Scope ID */
16136
17193
  id: number;
16137
17194
  };
16138
17195
  cookie?: never;
16139
17196
  };
16140
- requestBody?: {
16141
- content: {
16142
- "application/json": components["schemas"]["DeploySkillDto"];
16143
- };
16144
- };
17197
+ requestBody?: never;
16145
17198
  responses: {
16146
- 200: {
17199
+ /** @description Evaluation run accepted and queued. The run executes asynchronously; poll `GET /scopes/{id}/evaluations/runs/{runId}` for status. */
17200
+ 202: {
16147
17201
  headers: {
16148
17202
  [name: string]: unknown;
16149
17203
  };
16150
17204
  content: {
16151
- "application/json": components["schemas"]["DeployResponseDto"];
17205
+ "application/json": components["schemas"]["TriggerEvaluationRunResponseDto"];
16152
17206
  };
16153
17207
  };
16154
17208
  /** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
@@ -16310,13 +17364,15 @@ interface operations {
16310
17364
  };
16311
17365
  };
16312
17366
  };
16313
- EvaluationsController_getConfig: {
17367
+ EvaluationsController_getRun: {
16314
17368
  parameters: {
16315
17369
  query?: never;
16316
17370
  header?: never;
16317
17371
  path: {
16318
17372
  /** @description Scope ID */
16319
17373
  id: number;
17374
+ /** @description Run ID */
17375
+ runId: string;
16320
17376
  };
16321
17377
  cookie?: never;
16322
17378
  };
@@ -16327,7 +17383,7 @@ interface operations {
16327
17383
  [name: string]: unknown;
16328
17384
  };
16329
17385
  content: {
16330
- "application/json": components["schemas"]["EvaluationConfigDto"];
17386
+ "application/json": components["schemas"]["EvaluationRunWithResultsDto"];
16331
17387
  };
16332
17388
  };
16333
17389
  /** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
@@ -16451,28 +17507,24 @@ interface operations {
16451
17507
  };
16452
17508
  };
16453
17509
  };
16454
- EvaluationsController_updateConfig: {
17510
+ ScopeInterfacesController_list: {
16455
17511
  parameters: {
16456
17512
  query?: never;
16457
17513
  header?: never;
16458
17514
  path: {
16459
- /** @description Scope ID */
17515
+ /** @description Numeric scope id. */
16460
17516
  id: number;
16461
17517
  };
16462
17518
  cookie?: never;
16463
17519
  };
16464
- requestBody: {
16465
- content: {
16466
- "application/json": components["schemas"]["UpdateEvaluationConfigDto"];
16467
- };
16468
- };
17520
+ requestBody?: never;
16469
17521
  responses: {
16470
17522
  200: {
16471
17523
  headers: {
16472
17524
  [name: string]: unknown;
16473
17525
  };
16474
17526
  content: {
16475
- "application/json": components["schemas"]["EvaluationConfigDto"];
17527
+ "application/json": components["schemas"]["ListScopeInterfacesResponseDto"];
16476
17528
  };
16477
17529
  };
16478
17530
  /** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
@@ -16556,44 +17608,6 @@ interface operations {
16556
17608
  "application/json": components["schemas"]["ErrorResponseDto"];
16557
17609
  };
16558
17610
  };
16559
- /** @description The request conflicts with the current state of the resource, e.g. a duplicate (`code: CONFLICT`). */
16560
- 409: {
16561
- headers: {
16562
- [name: string]: unknown;
16563
- };
16564
- content: {
16565
- /**
16566
- * @example {
16567
- * "error": {
16568
- * "code": "CONFLICT",
16569
- * "status": "ALREADY_EXISTS",
16570
- * "message": "A resource with that identifier already exists.",
16571
- * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
16572
- * }
16573
- * }
16574
- */
16575
- "application/json": components["schemas"]["ErrorResponseDto"];
16576
- };
16577
- };
16578
- /** @description The request was well-formed but failed a business rule (`code: VALIDATION`). */
16579
- 422: {
16580
- headers: {
16581
- [name: string]: unknown;
16582
- };
16583
- content: {
16584
- /**
16585
- * @example {
16586
- * "error": {
16587
- * "code": "VALIDATION",
16588
- * "status": "INVALID_ARGUMENT",
16589
- * "message": "Updates that would revoke your own access are not allowed.",
16590
- * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
16591
- * }
16592
- * }
16593
- */
16594
- "application/json": components["schemas"]["ErrorResponseDto"];
16595
- };
16596
- };
16597
17611
  /** @description Too many requests. Wait and retry later (`code: RATE_LIMITED`). */
16598
17612
  429: {
16599
17613
  headers: {
@@ -16634,27 +17648,28 @@ interface operations {
16634
17648
  };
16635
17649
  };
16636
17650
  };
16637
- EvaluationsController_listRuns: {
17651
+ ScopeInterfacesController_add: {
16638
17652
  parameters: {
16639
- query?: {
16640
- pageSize?: number;
16641
- pageToken?: string;
16642
- };
17653
+ query?: never;
16643
17654
  header?: never;
16644
17655
  path: {
16645
- /** @description Scope ID */
17656
+ /** @description Numeric scope id. */
16646
17657
  id: number;
16647
17658
  };
16648
17659
  cookie?: never;
16649
17660
  };
16650
- requestBody?: never;
17661
+ requestBody: {
17662
+ content: {
17663
+ "application/json": components["schemas"]["AddScopeInterfaceDto"];
17664
+ };
17665
+ };
16651
17666
  responses: {
16652
- 200: {
17667
+ 201: {
16653
17668
  headers: {
16654
17669
  [name: string]: unknown;
16655
17670
  };
16656
17671
  content: {
16657
- "application/json": components["schemas"]["ListEvaluationRunsResponseDto"];
17672
+ "application/json": components["schemas"]["ScopeInterfaceDto"];
16658
17673
  };
16659
17674
  };
16660
17675
  /** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
@@ -16738,6 +17753,44 @@ interface operations {
16738
17753
  "application/json": components["schemas"]["ErrorResponseDto"];
16739
17754
  };
16740
17755
  };
17756
+ /** @description The request conflicts with the current state of the resource, e.g. a duplicate (`code: CONFLICT`). */
17757
+ 409: {
17758
+ headers: {
17759
+ [name: string]: unknown;
17760
+ };
17761
+ content: {
17762
+ /**
17763
+ * @example {
17764
+ * "error": {
17765
+ * "code": "CONFLICT",
17766
+ * "status": "ALREADY_EXISTS",
17767
+ * "message": "A resource with that identifier already exists.",
17768
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
17769
+ * }
17770
+ * }
17771
+ */
17772
+ "application/json": components["schemas"]["ErrorResponseDto"];
17773
+ };
17774
+ };
17775
+ /** @description The request was well-formed but failed a business rule (`code: VALIDATION`). */
17776
+ 422: {
17777
+ headers: {
17778
+ [name: string]: unknown;
17779
+ };
17780
+ content: {
17781
+ /**
17782
+ * @example {
17783
+ * "error": {
17784
+ * "code": "VALIDATION",
17785
+ * "status": "INVALID_ARGUMENT",
17786
+ * "message": "Updates that would revoke your own access are not allowed.",
17787
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
17788
+ * }
17789
+ * }
17790
+ */
17791
+ "application/json": components["schemas"]["ErrorResponseDto"];
17792
+ };
17793
+ };
16741
17794
  /** @description Too many requests. Wait and retry later (`code: RATE_LIMITED`). */
16742
17795
  429: {
16743
17796
  headers: {
@@ -16778,26 +17831,25 @@ interface operations {
16778
17831
  };
16779
17832
  };
16780
17833
  };
16781
- EvaluationsController_triggerRun: {
17834
+ ScopeInterfacesController_delete: {
16782
17835
  parameters: {
16783
17836
  query?: never;
16784
17837
  header?: never;
16785
17838
  path: {
16786
- /** @description Scope ID */
17839
+ /** @description Numeric scope id. */
16787
17840
  id: number;
17841
+ /** @description Interface id (UUID). */
17842
+ interfaceId: string;
16788
17843
  };
16789
17844
  cookie?: never;
16790
17845
  };
16791
17846
  requestBody?: never;
16792
17847
  responses: {
16793
- /** @description Evaluation run accepted and queued. The run executes asynchronously; poll `GET /scopes/{id}/evaluations/runs/{runId}` for status. */
16794
- 202: {
17848
+ 204: {
16795
17849
  headers: {
16796
17850
  [name: string]: unknown;
16797
17851
  };
16798
- content: {
16799
- "application/json": components["schemas"]["TriggerEvaluationRunResponseDto"];
16800
- };
17852
+ content?: never;
16801
17853
  };
16802
17854
  /** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
16803
17855
  400: {
@@ -16958,26 +18010,33 @@ interface operations {
16958
18010
  };
16959
18011
  };
16960
18012
  };
16961
- EvaluationsController_getRun: {
18013
+ ScopeInterfacesController_update: {
16962
18014
  parameters: {
16963
- query?: never;
18015
+ query?: {
18016
+ /** @description Comma-separated list of fields to update. Omit to update all provided fields. */
18017
+ updateMask?: string;
18018
+ };
16964
18019
  header?: never;
16965
18020
  path: {
16966
- /** @description Scope ID */
18021
+ /** @description Numeric scope id. */
16967
18022
  id: number;
16968
- /** @description Run ID */
16969
- runId: string;
18023
+ /** @description Interface id (UUID). */
18024
+ interfaceId: string;
16970
18025
  };
16971
18026
  cookie?: never;
16972
18027
  };
16973
- requestBody?: never;
18028
+ requestBody: {
18029
+ content: {
18030
+ "application/json": components["schemas"]["UpdateScopeInterfaceDto"];
18031
+ };
18032
+ };
16974
18033
  responses: {
16975
18034
  200: {
16976
18035
  headers: {
16977
18036
  [name: string]: unknown;
16978
18037
  };
16979
18038
  content: {
16980
- "application/json": components["schemas"]["EvaluationRunWithResultsDto"];
18039
+ "application/json": components["schemas"]["ScopeInterfaceDto"];
16981
18040
  };
16982
18041
  };
16983
18042
  /** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
@@ -17061,6 +18120,44 @@ interface operations {
17061
18120
  "application/json": components["schemas"]["ErrorResponseDto"];
17062
18121
  };
17063
18122
  };
18123
+ /** @description The request conflicts with the current state of the resource, e.g. a duplicate (`code: CONFLICT`). */
18124
+ 409: {
18125
+ headers: {
18126
+ [name: string]: unknown;
18127
+ };
18128
+ content: {
18129
+ /**
18130
+ * @example {
18131
+ * "error": {
18132
+ * "code": "CONFLICT",
18133
+ * "status": "ALREADY_EXISTS",
18134
+ * "message": "A resource with that identifier already exists.",
18135
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
18136
+ * }
18137
+ * }
18138
+ */
18139
+ "application/json": components["schemas"]["ErrorResponseDto"];
18140
+ };
18141
+ };
18142
+ /** @description The request was well-formed but failed a business rule (`code: VALIDATION`). */
18143
+ 422: {
18144
+ headers: {
18145
+ [name: string]: unknown;
18146
+ };
18147
+ content: {
18148
+ /**
18149
+ * @example {
18150
+ * "error": {
18151
+ * "code": "VALIDATION",
18152
+ * "status": "INVALID_ARGUMENT",
18153
+ * "message": "Updates that would revoke your own access are not allowed.",
18154
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
18155
+ * }
18156
+ * }
18157
+ */
18158
+ "application/json": components["schemas"]["ErrorResponseDto"];
18159
+ };
18160
+ };
17064
18161
  /** @description Too many requests. Wait and retry later (`code: RATE_LIMITED`). */
17065
18162
  429: {
17066
18163
  headers: {
@@ -24228,7 +25325,7 @@ declare const OPERATIONS: {
24228
25325
  readonly service: "modus-api";
24229
25326
  readonly serverUrl: "https://api.getmodus.com";
24230
25327
  readonly pathParams: readonly [];
24231
- readonly queryParams: readonly ["pageToken", "pageSize", "contextTypes", "verificationStatuses", "searchQuery", "topics"];
25328
+ readonly queryParams: readonly ["pageToken", "pageSize", "contextTypes", "verificationStatuses", "searchQuery", "topics", "connectionIds", "parentUids", "ancestorUids"];
24232
25329
  readonly requestSchema: null;
24233
25330
  readonly responseSchema: "ListContextItemsResponseDto";
24234
25331
  };
@@ -24252,6 +25349,16 @@ declare const OPERATIONS: {
24252
25349
  readonly requestSchema: "LookupContextItemDto";
24253
25350
  readonly responseSchema: "LookupContextItemResponseDto";
24254
25351
  };
25352
+ readonly ContextItemsController_move: {
25353
+ readonly method: "POST";
25354
+ readonly path: "/api/v1/context/items/{uid}/move";
25355
+ readonly service: "modus-api";
25356
+ readonly serverUrl: "https://api.getmodus.com";
25357
+ readonly pathParams: readonly ["uid"];
25358
+ readonly queryParams: readonly [];
25359
+ readonly requestSchema: "MoveContextItemDto";
25360
+ readonly responseSchema: "MoveContextItemResponseDto";
25361
+ };
24255
25362
  readonly ContextItemsController_update: {
24256
25363
  readonly method: "PATCH";
24257
25364
  readonly path: "/api/v1/context/items/{uid}";
@@ -24792,6 +25899,46 @@ declare const OPERATIONS: {
24792
25899
  readonly requestSchema: null;
24793
25900
  readonly responseSchema: "ListConversationsResponseDto";
24794
25901
  };
25902
+ readonly ScopeInterfacesController_add: {
25903
+ readonly method: "POST";
25904
+ readonly path: "/api/v1/scopes/{id}/interfaces";
25905
+ readonly service: "modus-api";
25906
+ readonly serverUrl: "https://api.getmodus.com";
25907
+ readonly pathParams: readonly ["id"];
25908
+ readonly queryParams: readonly [];
25909
+ readonly requestSchema: "AddScopeInterfaceDto";
25910
+ readonly responseSchema: "ScopeInterfaceDto";
25911
+ };
25912
+ readonly ScopeInterfacesController_delete: {
25913
+ readonly method: "DELETE";
25914
+ readonly path: "/api/v1/scopes/{id}/interfaces/{interfaceId}";
25915
+ readonly service: "modus-api";
25916
+ readonly serverUrl: "https://api.getmodus.com";
25917
+ readonly pathParams: readonly ["id", "interfaceId"];
25918
+ readonly queryParams: readonly [];
25919
+ readonly requestSchema: null;
25920
+ readonly responseSchema: null;
25921
+ };
25922
+ readonly ScopeInterfacesController_list: {
25923
+ readonly method: "GET";
25924
+ readonly path: "/api/v1/scopes/{id}/interfaces";
25925
+ readonly service: "modus-api";
25926
+ readonly serverUrl: "https://api.getmodus.com";
25927
+ readonly pathParams: readonly ["id"];
25928
+ readonly queryParams: readonly [];
25929
+ readonly requestSchema: null;
25930
+ readonly responseSchema: "ListScopeInterfacesResponseDto";
25931
+ };
25932
+ readonly ScopeInterfacesController_update: {
25933
+ readonly method: "PATCH";
25934
+ readonly path: "/api/v1/scopes/{id}/interfaces/{interfaceId}";
25935
+ readonly service: "modus-api";
25936
+ readonly serverUrl: "https://api.getmodus.com";
25937
+ readonly pathParams: readonly ["id", "interfaceId"];
25938
+ readonly queryParams: readonly ["updateMask"];
25939
+ readonly requestSchema: "UpdateScopeInterfaceDto";
25940
+ readonly responseSchema: "ScopeInterfaceDto";
25941
+ };
24795
25942
  readonly ScopeMemoriesController_delete: {
24796
25943
  readonly method: "DELETE";
24797
25944
  readonly path: "/api/v1/scopes/{id}/memories/{memoryId}";
@@ -25360,8 +26507,10 @@ declare function conversationSkillId(item: ConversationListItem): number | undef
25360
26507
  type VariationView = 'active' | 'draft';
25361
26508
 
25362
26509
  type ContextItem = components['schemas']['ContextItemDto'];
26510
+ type ContextItemAncestor = components['schemas']['ContextItemAncestorDto'];
25363
26511
  type ContextItemLookupRow = components['schemas']['LookupContextItemRowDto'];
25364
26512
  type ContextItemDeletion = components['schemas']['DeleteContextItemResponseDto'];
26513
+ type ContextItemMove = components['schemas']['MoveContextItemResponseDto'];
25365
26514
  /** Create response; ``uid`` mirrors ``contextItemId`` for list/get parity. */
25366
26515
  type CreatedContextItem = components['schemas']['CreatedContextItemResponseDto'] & {
25367
26516
  uid: string;
@@ -25613,4 +26762,4 @@ declare class ScopeConversationsResource {
25613
26762
  }): Promise<Conversation>;
25614
26763
  }
25615
26764
 
25616
- export { type Agent as A, type ContextItem as C, HttpClient as H, type ModusConfig as M, OPERATIONS as O, Page as P, ScopeConversationsResource as S, type VariationView as V, WorkflowType as W, type Workflow as a, type ContextItemLookupRow as b, type components as c, CustomContextItemsResource as d, type ConversationKind as e, type ConversationListItem as f, type Conversation as g, type Scope as h, ModusClientBase as i, type ModusOptions as j, AgentType as k, type ContextType as l, type Message as m, type OperationId as n, type OperationSpec as o, type ScopeStatus as p, type ScopeVariation as q, type Skill as r, type SkillStatus as s, type SkillVariation as t, conversationScopeId as u, conversationSkillId as v, type operations as w, type paths as x, type ContextItemDeletion as y, type CreatedContextItem as z };
26765
+ export { type Agent as A, type paths as B, type ContextItem as C, type CreatedContextItem as D, HttpClient as H, type ModusConfig as M, OPERATIONS as O, Page as P, ScopeConversationsResource as S, type VariationView as V, WorkflowType as W, type Workflow as a, type ContextItemLookupRow as b, type components as c, CustomContextItemsResource as d, type ConversationKind as e, type ConversationListItem as f, type Conversation as g, type Scope as h, ModusClientBase as i, type ModusOptions as j, AgentType as k, type ContextItemAncestor as l, type ContextItemDeletion as m, type ContextItemMove as n, type ContextType as o, type Message as p, type OperationId as q, type OperationSpec as r, type ScopeStatus as s, type ScopeVariation as t, type Skill as u, type SkillStatus as v, type SkillVariation as w, conversationScopeId as x, conversationSkillId as y, type operations as z };