@getmodus/sdk 0.8.0 → 0.9.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.
@@ -73,6 +73,28 @@ interface paths {
73
73
  patch?: never;
74
74
  trace?: never;
75
75
  };
76
+ "/api/v1/connections/{connectionId}/selections": {
77
+ parameters: {
78
+ query?: never;
79
+ header?: never;
80
+ path?: never;
81
+ cookie?: never;
82
+ };
83
+ /**
84
+ * List selectable units of a connection
85
+ * @description Returns a page of selectable units on a connection you can use. An unknown or inaccessible connection returns 404. Pass `nextPageToken` as `pageToken` for the next page.
86
+ *
87
+ * **Requires:** `context:read`
88
+ */
89
+ get: operations["ConnectionsController_listSelections"];
90
+ put?: never;
91
+ post?: never;
92
+ delete?: never;
93
+ options?: never;
94
+ head?: never;
95
+ patch?: never;
96
+ trace?: never;
97
+ };
76
98
  "/api/v1/context/custom-items": {
77
99
  parameters: {
78
100
  query?: never;
@@ -1030,7 +1052,7 @@ interface paths {
1030
1052
  put?: never;
1031
1053
  /**
1032
1054
  * Create a scope
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.
1055
+ * @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. List the units with `GET /connections/{id}/selections`.
1034
1056
  *
1035
1057
  * **Requires:** `scopes:write`
1036
1058
  */
@@ -1068,7 +1090,7 @@ interface paths {
1068
1090
  head?: never;
1069
1091
  /**
1070
1092
  * Update a scope
1071
- * @description Updates the scope’s draft and returns it. Use `updateMask` to limit which fields change. Send `managerId` on its own to move the scope under a new manager (or `null` to detach); it cannot be combined with other fields. Updates that would revoke your own access are rejected.
1093
+ * @description Updates the scope’s draft. Use `updateMask` to limit which fields change. Send `managerId` on its own to move the scope under a new manager (or `null` to detach); it cannot be combined with other fields. Updates that would revoke your own access are rejected. List the units with `GET /connections/{id}/selections`.
1072
1094
  *
1073
1095
  * **Requires:** `scopes:write`
1074
1096
  */
@@ -1108,7 +1130,7 @@ interface paths {
1108
1130
  put?: never;
1109
1131
  /**
1110
1132
  * Compose scope context
1111
- * @description Runs the published scope context composer (RAG / context-store) for the supplied user message without invoking the LLM. Returns composed context text for inspection or downstream use. Requires `scopes:invoke` and `use` access on the scope.
1133
+ * @description Composes the published scope context for a user intent without invoking the LLM. Returns composed text with bounded inline previews; REST has no full-file read operation and requires `scopes:invoke` plus `use` access.
1112
1134
  *
1113
1135
  * **Requires:** `scopes:invoke`
1114
1136
  */
@@ -2372,7 +2394,7 @@ interface components {
2372
2394
  */
2373
2395
  name: string;
2374
2396
  /**
2375
- * @description Initial config payload (interface-type-specific). Free-form JSONB.
2397
+ * @description Chat interface settings. `accessMode` is `all`, `allow-list`, or `allow-org`. `allowedEmails` lists email addresses. `availableChannelIds` lists channel ids; empty or absent means every channel. An MCP interface accepts no config keys.
2376
2398
  * @example {}
2377
2399
  */
2378
2400
  config?: {
@@ -2759,7 +2781,7 @@ interface components {
2759
2781
  */
2760
2782
  allowedEmails?: string[];
2761
2783
  /**
2762
- * @description Channels where the interface answers. Slack channel ids look like `C0ALH2JTRR9`. Empty or absent means every channel.
2784
+ * @description Channels where the interface answers. Channel ids look like `C0ALH2JTRR9`. Empty or absent means every channel.
2763
2785
  * @example [
2764
2786
  * "C0ALH2JTRR9"
2765
2787
  * ]
@@ -2782,7 +2804,7 @@ interface components {
2782
2804
  };
2783
2805
  ComposeSkillContextResponseDto: {
2784
2806
  /**
2785
- * @description Composed context for the scope and intent (markdown from the context composer, or structured JSON fallback).
2807
+ * @description Composed context text for the scope and intent. Usually Markdown; older or non-rendered results may use a JSON fallback. Large bodies are bounded inline previews and REST does not expose full-content access.
2786
2808
  * @example ## Retrieved Context
2787
2809
  *
2788
2810
  * ### customers
@@ -2838,6 +2860,27 @@ interface components {
2838
2860
  * @example postgresql
2839
2861
  */
2840
2862
  type: string | null;
2863
+ /** @description How a scope selects units on this connection. Omitted when the connection has none. */
2864
+ selectionModel?: components["schemas"]["SelectionModelDto"];
2865
+ };
2866
+ ConnectionSelectionDto: {
2867
+ /**
2868
+ * @description Path of the unit, from the connection down to the unit itself.
2869
+ * @example [
2870
+ * "acme/widgets"
2871
+ * ]
2872
+ */
2873
+ path: string[];
2874
+ /**
2875
+ * @description Kind of unit, such as repository or schema.
2876
+ * @example repository
2877
+ */
2878
+ objectType: string;
2879
+ /**
2880
+ * @description Human-readable name, when the connection has one.
2881
+ * @example widgets
2882
+ */
2883
+ displayName: string | null;
2841
2884
  };
2842
2885
  ContentProjectionDto: {
2843
2886
  /**
@@ -3388,13 +3431,8 @@ interface components {
3388
3431
  * @default true
3389
3432
  */
3390
3433
  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.
3393
- * @example []
3394
- */
3395
- interfaces?: {
3396
- [key: string]: unknown;
3397
- }[];
3434
+ /** @description MCP interface rows for this scope. Each row has type mcp, an optional id and name, and a config of core tools and exposed integrations. Omitted id and name are assigned. */
3435
+ interfaces?: components["schemas"]["ScopeMcpInterfaceInputDto"][];
3398
3436
  /** @description Access configuration. Omit to use the default (full-org shared with use + manage). */
3399
3437
  accessConfig?: components["schemas"]["AccessConfigDto"];
3400
3438
  };
@@ -3977,8 +4015,11 @@ interface components {
3977
4015
  results: components["schemas"]["EvaluationResultDto"][];
3978
4016
  };
3979
4017
  EvaluationSlackChannelDto: {
3980
- /** @description Nango connection ID for Slack */
3981
- nangoConnectionId: string;
4018
+ /**
4019
+ * Format: uuid
4020
+ * @description Modus connection UUID for Slack
4021
+ */
4022
+ connectionId: string;
3982
4023
  /** @description Mapping of Clerk user ID to Slack user ID */
3983
4024
  slackUserIdByRecipient: Record<string, never>;
3984
4025
  };
@@ -4233,6 +4274,12 @@ interface components {
4233
4274
  [key: string]: number;
4234
4275
  };
4235
4276
  };
4277
+ ListConnectionSelectionsResponseDto: {
4278
+ /** @description Page of selectable units on this connection. */
4279
+ selections: components["schemas"]["ConnectionSelectionDto"][];
4280
+ /** @description Opaque token for the next page; `null` when this was the last page. Pass as `pageToken` on the next request. */
4281
+ nextPageToken: string | null;
4282
+ };
4236
4283
  ListConnectionsResponseDto: {
4237
4284
  /** @description Page of integration connections the caller can `use`. Connections the caller cannot access are filtered out (not enumerated). */
4238
4285
  connections: components["schemas"]["ConnectionDto"][];
@@ -4756,6 +4803,49 @@ interface components {
4756
4803
  */
4757
4804
  updatedAt: string;
4758
4805
  };
4806
+ ScopeMcpInterfaceDto: {
4807
+ /**
4808
+ * @description Interface id.
4809
+ * @example 00000000-0000-4000-a000-000000000500
4810
+ */
4811
+ id: string;
4812
+ /**
4813
+ * @description Interface type. A scope has an MCP interface only.
4814
+ * @example mcp
4815
+ */
4816
+ type: components["schemas"]["ScopeMcpInterfaceType"];
4817
+ /**
4818
+ * @description Display name.
4819
+ * @example MCP Server
4820
+ */
4821
+ name: string;
4822
+ /** @description Core tools and the integrations this interface exposes. */
4823
+ config: components["schemas"]["SkillMcpInterfaceConfigDto"];
4824
+ };
4825
+ ScopeMcpInterfaceInputDto: {
4826
+ /**
4827
+ * @description Interface id. Assigned when omitted.
4828
+ * @example 00000000-0000-4000-a000-000000000500
4829
+ */
4830
+ id?: string;
4831
+ /**
4832
+ * @description Interface type. A scope has an MCP interface only.
4833
+ * @example mcp
4834
+ */
4835
+ type: components["schemas"]["ScopeMcpInterfaceType"];
4836
+ /**
4837
+ * @description Display name. Assigned when omitted.
4838
+ * @example MCP Server
4839
+ */
4840
+ name?: string;
4841
+ /** @description Core tools and the integrations this interface exposes. */
4842
+ config?: components["schemas"]["SkillMcpInterfaceConfigDto"];
4843
+ };
4844
+ /**
4845
+ * @description Interface type. A scope has an MCP interface only.
4846
+ * @enum {string}
4847
+ */
4848
+ ScopeMcpInterfaceType: "mcp";
4759
4849
  SearchMemoriesRequestDto: {
4760
4850
  /**
4761
4851
  * @description Search query string (semantic search over the scope's memories).
@@ -4773,6 +4863,33 @@ interface components {
4773
4863
  */
4774
4864
  limit?: number;
4775
4865
  };
4866
+ SelectionModelDto: {
4867
+ /**
4868
+ * @description What one selectable unit is called.
4869
+ * @example Repository
4870
+ */
4871
+ unitTerm: string;
4872
+ /** @description The kinds of unit a scope may select on this connection. */
4873
+ roots: components["schemas"]["SelectionModelRootDto"][];
4874
+ /**
4875
+ * @description How many levels below a unit a scope may still name. 0 means the unit itself only.
4876
+ * @example 0
4877
+ * @enum {number}
4878
+ */
4879
+ depthBelowRoot: 0 | 1;
4880
+ };
4881
+ SelectionModelRootDto: {
4882
+ /**
4883
+ * @description Kind of unit, such as repository or schema.
4884
+ * @example repository
4885
+ */
4886
+ objectType: string;
4887
+ /**
4888
+ * @description Number of path segments in a unit of this kind.
4889
+ * @example 1
4890
+ */
4891
+ arity: number;
4892
+ };
4776
4893
  SetSupervisionRequestDto: {
4777
4894
  /**
4778
4895
  * @description Replacement list of subordinate scope ids. The previous list is fully replaced; pass `[]` to clear.
@@ -4903,10 +5020,8 @@ interface components {
4903
5020
  evaluations: {
4904
5021
  [key: string]: unknown;
4905
5022
  }[];
4906
- /** @description Interface entries attached to the variation (chat, slack, webhook, etc.). Each is a builder-managed object. */
4907
- interfaces: {
4908
- [key: string]: unknown;
4909
- }[];
5023
+ /** @description MCP interface for this scope. Each row has an id, type mcp, a name, and a config. */
5024
+ interfaces: components["schemas"]["ScopeMcpInterfaceDto"][];
4910
5025
  /**
4911
5026
  * @description IDs of scopes supervised by this scope (when it is a manager). Stringified for wire stability.
4912
5027
  * @example [
@@ -5171,7 +5286,7 @@ interface components {
5171
5286
  */
5172
5287
  name?: string;
5173
5288
  /**
5174
- * @description New config payload (interface-type-specific). Free-form JSONB. Replaces the prior config.
5289
+ * @description Replacement chat interface settings (`accessMode`, `allowedEmails`, `availableChannelIds`). An MCP interface accepts no config keys. Replaces the stored config.
5175
5290
  * @example {}
5176
5291
  */
5177
5292
  config?: {
@@ -5375,13 +5490,8 @@ interface components {
5375
5490
  contextSelections?: {
5376
5491
  [key: string]: unknown;
5377
5492
  }[];
5378
- /**
5379
- * @description Updated MCP interface configuration. Only entries with `type: "mcp"` are accepted; any other type is rejected with 400.
5380
- * @example []
5381
- */
5382
- interfaces?: {
5383
- [key: string]: unknown;
5384
- }[];
5493
+ /** @description Updated MCP interface rows. Each row has type mcp, an optional id and name, and a config of core tools and exposed integrations. Omitted id and name are assigned. Replaces the whole list. */
5494
+ interfaces?: components["schemas"]["ScopeMcpInterfaceInputDto"][];
5385
5495
  /**
5386
5496
  * @description Updated evaluation entries (task + expected-output pairs) saved for the draft variation. Replaces the prior list when present.
5387
5497
  * @example []
@@ -5737,6 +5847,12 @@ interface components {
5737
5847
  experimentalFeatures?: boolean;
5738
5848
  debug?: boolean;
5739
5849
  };
5850
+ ApprovalTargetDto: {
5851
+ toolName: string;
5852
+ args: {
5853
+ [key: string]: unknown;
5854
+ };
5855
+ };
5740
5856
  AttachmentsDto: {
5741
5857
  images?: components["schemas"]["ImageAttachmentDto"][];
5742
5858
  documents?: components["schemas"]["DocumentAttachmentDto"][];
@@ -5902,6 +6018,8 @@ interface components {
5902
6018
  * @enum {string}
5903
6019
  */
5904
6020
  decision: "approve" | "deny" | "connected" | "cancelled";
6021
+ /** @description The paused call an approval decision answers. Only that call is resolved and any other paused write is rejected; without it the first pending approval is resolved. */
6022
+ approvalTarget?: components["schemas"]["ApprovalTargetDto"];
5905
6023
  };
5906
6024
  RunConfigDto: {
5907
6025
  /** @description Model id, e.g. anthropic/claude-sonnet-4.6. */
@@ -5969,8 +6087,10 @@ interface components {
5969
6087
  subordinateSkillIds?: number[];
5970
6088
  };
5971
6089
  SupplementalContextDto: {
5972
- /** @description Background context (e.g. Slack/Teams thread + channel history) to prepend to the system prompt. */
6090
+ /** @description Background context (e.g. Slack/Teams thread + channel history) for a conversation with no saved history yet. */
5973
6091
  text: string;
6092
+ /** @description Only the background that is new since the previous turn, used once the conversation has saved history. Empty when nothing is new. */
6093
+ followUpText?: string;
5974
6094
  /** @description Producer that supplied the supplemental context. */
5975
6095
  source: components["schemas"]["SupplementalContextSource"];
5976
6096
  };
@@ -6152,6 +6272,152 @@ interface operations {
6152
6272
  };
6153
6273
  };
6154
6274
  };
6275
+ ConnectionsController_listSelections: {
6276
+ parameters: {
6277
+ query?: {
6278
+ /** @description Opaque page token from a previous response's `nextPageToken`. Omit for the first page. */
6279
+ pageToken?: string;
6280
+ /** @description Max items per page. Defaults to 25, clamped to 100. */
6281
+ pageSize?: number;
6282
+ };
6283
+ header?: never;
6284
+ path: {
6285
+ /** @description Integration connection UUID. */
6286
+ connectionId: string;
6287
+ };
6288
+ cookie?: never;
6289
+ };
6290
+ requestBody?: never;
6291
+ responses: {
6292
+ 200: {
6293
+ headers: {
6294
+ [name: string]: unknown;
6295
+ };
6296
+ content: {
6297
+ "application/json": components["schemas"]["ListConnectionSelectionsResponseDto"];
6298
+ };
6299
+ };
6300
+ /** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
6301
+ 400: {
6302
+ headers: {
6303
+ [name: string]: unknown;
6304
+ };
6305
+ content: {
6306
+ /**
6307
+ * @example {
6308
+ * "error": {
6309
+ * "code": "BAD_REQUEST",
6310
+ * "status": "INVALID_ARGUMENT",
6311
+ * "message": "Invalid value for query parameter `pageSize`.",
6312
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
6313
+ * }
6314
+ * }
6315
+ */
6316
+ "application/json": components["schemas"]["ErrorResponseDto"];
6317
+ };
6318
+ };
6319
+ /** @description Missing, invalid, or expired access token (`code: UNAUTHORIZED`). */
6320
+ 401: {
6321
+ headers: {
6322
+ [name: string]: unknown;
6323
+ };
6324
+ content: {
6325
+ /**
6326
+ * @example {
6327
+ * "error": {
6328
+ * "code": "UNAUTHORIZED",
6329
+ * "status": "UNAUTHENTICATED",
6330
+ * "message": "Missing or invalid access token.",
6331
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
6332
+ * }
6333
+ * }
6334
+ */
6335
+ "application/json": components["schemas"]["ErrorResponseDto"];
6336
+ };
6337
+ };
6338
+ /** @description Authenticated, but the token lacks a required scope (`code: FORBIDDEN`). The missing scopes are listed in `info`. */
6339
+ 403: {
6340
+ headers: {
6341
+ [name: string]: unknown;
6342
+ };
6343
+ content: {
6344
+ /**
6345
+ * @example {
6346
+ * "error": {
6347
+ * "code": "FORBIDDEN",
6348
+ * "status": "PERMISSION_DENIED",
6349
+ * "message": "Missing required scope(s) for this operation.",
6350
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS",
6351
+ * "info": {
6352
+ * "missing": [
6353
+ * "<required-scope>"
6354
+ * ]
6355
+ * }
6356
+ * }
6357
+ * }
6358
+ */
6359
+ "application/json": components["schemas"]["ErrorResponseDto"];
6360
+ };
6361
+ };
6362
+ /** @description The resource does not exist, or you do not have access to it (`code: NOT_FOUND`). */
6363
+ 404: {
6364
+ headers: {
6365
+ [name: string]: unknown;
6366
+ };
6367
+ content: {
6368
+ /**
6369
+ * @example {
6370
+ * "error": {
6371
+ * "code": "NOT_FOUND",
6372
+ * "status": "NOT_FOUND",
6373
+ * "message": "Resource not found.",
6374
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
6375
+ * }
6376
+ * }
6377
+ */
6378
+ "application/json": components["schemas"]["ErrorResponseDto"];
6379
+ };
6380
+ };
6381
+ /** @description Too many requests. Wait and retry later (`code: RATE_LIMITED`). */
6382
+ 429: {
6383
+ headers: {
6384
+ [name: string]: unknown;
6385
+ };
6386
+ content: {
6387
+ /**
6388
+ * @example {
6389
+ * "error": {
6390
+ * "code": "RATE_LIMITED",
6391
+ * "status": "RESOURCE_EXHAUSTED",
6392
+ * "message": "Too many requests. Please retry after a short delay.",
6393
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
6394
+ * }
6395
+ * }
6396
+ */
6397
+ "application/json": components["schemas"]["ErrorResponseDto"];
6398
+ };
6399
+ };
6400
+ /** @description An unexpected server error occurred (`code: INTERNAL_ERROR`). */
6401
+ 500: {
6402
+ headers: {
6403
+ [name: string]: unknown;
6404
+ };
6405
+ content: {
6406
+ /**
6407
+ * @example {
6408
+ * "error": {
6409
+ * "code": "INTERNAL_ERROR",
6410
+ * "status": "INTERNAL",
6411
+ * "message": "An unexpected error occurred.",
6412
+ * "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
6413
+ * }
6414
+ * }
6415
+ */
6416
+ "application/json": components["schemas"]["ErrorResponseDto"];
6417
+ };
6418
+ };
6419
+ };
6420
+ };
6155
6421
  CustomContextItemsController_list: {
6156
6422
  parameters: {
6157
6423
  query?: {
@@ -6163,7 +6429,7 @@ interface operations {
6163
6429
  contextTypes?: string[];
6164
6430
  /** @description Filter by verification status (`negative` / `neutral` / `positive`). */
6165
6431
  verificationStatuses?: string[];
6166
- /** @description Case-insensitive substring search over content + description + topics. */
6432
+ /** @description Word search: returns rows that contain every word of the query, case-insensitive. */
6167
6433
  searchQuery?: string;
6168
6434
  /** @description Filter by topic tag. */
6169
6435
  topics?: string[];
@@ -12147,7 +12413,7 @@ interface operations {
12147
12413
  contextTypes?: string[];
12148
12414
  /** @description Filter by verification status (`negative` / `neutral` / `positive`). */
12149
12415
  verificationStatuses?: string[];
12150
- /** @description Case-insensitive substring search over content + description + topics. */
12416
+ /** @description Word search: returns rows that contain every word of the query, case-insensitive. */
12151
12417
  searchQuery?: string;
12152
12418
  /** @description Filter by topic tag. */
12153
12419
  topics?: string[];
@@ -25189,6 +25455,16 @@ declare const OPERATIONS: {
25189
25455
  readonly requestSchema: null;
25190
25456
  readonly responseSchema: "ListConnectionsResponseDto";
25191
25457
  };
25458
+ readonly ConnectionsController_listSelections: {
25459
+ readonly method: "GET";
25460
+ readonly path: "/api/v1/connections/{connectionId}/selections";
25461
+ readonly service: "modus-api";
25462
+ readonly serverUrl: "https://api.getmodus.com";
25463
+ readonly pathParams: readonly ["connectionId"];
25464
+ readonly queryParams: readonly ["pageToken", "pageSize"];
25465
+ readonly requestSchema: null;
25466
+ readonly responseSchema: "ListConnectionSelectionsResponseDto";
25467
+ };
25192
25468
  readonly ContextCreatorsController_createLink: {
25193
25469
  readonly method: "POST";
25194
25470
  readonly path: "/api/v1/context/links";
@@ -26570,6 +26846,11 @@ interface CreatedCustomContextItem {
26570
26846
  /** Same value as ``contextItemId`` — prefer this in new code (list/get parity). */
26571
26847
  uid: string;
26572
26848
  contextType: string;
26849
+ /**
26850
+ * Canonical address of the represented object in the custom platform hierarchy.
26851
+ * This is distinct from `uid`: multiple context representations of one object,
26852
+ * such as `entity` and `entity_samples`, share a data path.
26853
+ */
26573
26854
  dataPath: string[];
26574
26855
  title: string | null;
26575
26856
  }
@@ -26579,6 +26860,28 @@ interface CustomContextItemDeletion {
26579
26860
  }
26580
26861
  /**
26581
26862
  * Create, update, and delete custom context items.
26863
+ *
26864
+ * The stable IDs supplied on create define each item's canonical `dataPath`:
26865
+ *
26866
+ * - `source`: `['custom', sourceId]`
26867
+ * - `collection`: `['custom', sourceId, collectionId]`
26868
+ * - `entity` and `entity_samples`:
26869
+ * `['custom', sourceId, collectionId, externalId]`
26870
+ * - `field`: `['custom', sourceId, collectionId, externalId, fieldName]`
26871
+ *
26872
+ * A data path identifies the represented object in the custom platform; `uid`
26873
+ * identifies a stored context row. Consequently, an entity and its samples row
26874
+ * share a data path but have different UIDs.
26875
+ *
26876
+ * The API derives `dataPath` and `ancestry`; do not send either field. Ancestry is
26877
+ * the ordered chain of parent platform IDs, excluding the virtual `custom` root
26878
+ * and the item's own final path segment. For example, an entity's ancestry is
26879
+ * `[sourceId, collectionId]`.
26880
+ *
26881
+ * Creating a child does not create its parent rows. To make the hierarchy
26882
+ * traversable, create the `source`, then the `collection`, then the `entity`, and
26883
+ * finally any `field` or `entity_samples` rows, repeating the same parent IDs at
26884
+ * every level.
26582
26885
  */
26583
26886
  declare class CustomContextItemsResource {
26584
26887
  private readonly http;
@@ -26590,7 +26893,7 @@ declare class CustomContextItemsResource {
26590
26893
  *
26591
26894
  * @param options.pageSize - Maximum items per page (default 25).
26592
26895
  * @param options.pageToken - Opaque token from a previous page.
26593
- * @param options.searchQuery - Free-text search filter.
26896
+ * @param options.searchQuery - Word search: returns rows that contain every word of the query, case-insensitive.
26594
26897
  * @param options.topics - Filter to items tagged with any of these topics.
26595
26898
  * @returns A page of custom context items.
26596
26899
  * @example
@@ -26633,12 +26936,16 @@ declare class CustomContextItemsResource {
26633
26936
  * @example
26634
26937
  * ```ts
26635
26938
  * const client = new Modus()
26939
+ * // Create the source and collection first, or use batchCreate as shown below.
26636
26940
  * const created = await client.context.customItems.create({
26637
26941
  * kind: 'entity',
26638
- * sourceId: 'my-source',
26942
+ * sourceId: 'billing-db',
26943
+ * collectionId: 'contracts',
26944
+ * externalId: 'contract-123',
26639
26945
  * name: 'Q3 churn notes',
26640
26946
  * content: { summary: 'Key findings…' },
26641
26947
  * })
26948
+ * console.log(created.uid, created.dataPath)
26642
26949
  * ```
26643
26950
  */
26644
26951
  create(input: CreateCustomContextItemInput): Promise<CreatedCustomContextItem>;
@@ -26652,9 +26959,22 @@ declare class CustomContextItemsResource {
26652
26959
  * ```ts
26653
26960
  * const client = new Modus()
26654
26961
  * const created = await client.context.customItems.batchCreate([
26655
- * { kind: 'field', sourceId: 'src', fieldName: 'region', dataType: 'string' },
26656
- * { kind: 'field', sourceId: 'src', fieldName: 'amount', dataType: 'number' },
26962
+ * { kind: 'source', sourceId: 'billing-db', name: 'Billing database' },
26963
+ * {
26964
+ * kind: 'collection',
26965
+ * sourceId: 'billing-db',
26966
+ * collectionId: 'contracts',
26967
+ * name: 'Contracts',
26968
+ * },
26969
+ * {
26970
+ * kind: 'entity',
26971
+ * sourceId: 'billing-db',
26972
+ * collectionId: 'contracts',
26973
+ * externalId: 'contract-123',
26974
+ * name: 'Acme renewal',
26975
+ * },
26657
26976
  * ])
26977
+ * console.log(created.map((item) => item.dataPath))
26658
26978
  * ```
26659
26979
  */
26660
26980
  batchCreate(inputs: CreateCustomContextItemInput[]): Promise<CreatedCustomContextItem[]>;
@@ -26705,24 +27025,30 @@ declare class CustomContextItemsResource {
26705
27025
  delete(uid: string): Promise<CustomContextItemDeletion>;
26706
27026
  }
26707
27027
 
26708
- /** Conversation threads for a single published scope (`client.scopes.conversations(scopeId)`). */
26709
- declare class ScopeConversationsResource {
26710
- private readonly http;
26711
- private readonly config;
26712
- private readonly scopeId;
27028
+ /** Generated base for the consumption `scopes.conversations` resource. */
27029
+ declare class ScopesConversationsResourceBase {
27030
+ protected readonly http: HttpClient;
27031
+ protected readonly config: ModusConfig;
27032
+ protected readonly scopeId: number | string;
27033
+ /** @internal */
26713
27034
  constructor(http: HttpClient, config: ModusConfig, scopeId: number | string);
26714
27035
  /**
26715
- * List conversation threads for this scope, newest first.
27036
+ * List scope conversations.
26716
27037
  *
26717
- * @param options.pageSize - Items per page (default 25).
26718
- * @param options.pageToken - Opaque token from a previous page.
26719
- * @param options.source - Restrict to conversations started from this UI surface
26720
- * (e.g. `"context_chat"`, `"dashboard_copilot"`, `"slack"`).
27038
+ * Returns a page of conversation summaries (most recently updated first) for a scope. Use `id=0`
27039
+ * for your cross-scope recent history. Pass `nextPageToken` as `pageToken` to fetch the next
27040
+ * page.
27041
+ *
27042
+ * **Requires:** `scopes:read`
27043
+ *
27044
+ * @param options.pageSize - Items per page. Defaults to 25.
27045
+ * @param options.pageToken - Opaque page token from a previous response's `nextPageToken`. Omit
27046
+ * for the first page.
27047
+ * @param options.source - Return only conversations started from this UI surface.
26721
27048
  * @param options.sourceRef - Narrow `source` to one instance of that surface — for
26722
- * `"dashboard_copilot"`, a dashboard id. Requires `source`; the API throws an
26723
- * `UnprocessableError` (422) if sent on its own. Conversations recorded before
26724
- * this filter shipped carry no instance key and never match it.
26725
- * @returns Page of conversation list items (`threadId`, `firstMessage`, `messageCount`).
27049
+ * `dashboard_copilot` or `dashboard_assistant`, a dashboard id (both scope conversation history
27050
+ * per dashboard). Requires `source`; sent alone it is a 422.
27051
+ * @returns A page of conversations.
26726
27052
  *
26727
27053
  * @example
26728
27054
  * ```ts
@@ -26739,7 +27065,11 @@ declare class ScopeConversationsResource {
26739
27065
  source?: string;
26740
27066
  sourceRef?: string;
26741
27067
  }): Promise<Page<ConversationListItem>>;
26742
- private listPage;
27068
+ protected listPage(pageSize: number, pageToken: string | undefined, source?: string, sourceRef?: string): Promise<Page<ConversationListItem>>;
27069
+ }
27070
+
27071
+ /** Conversation threads for a single published scope (`client.scopes.conversations(scopeId)`). */
27072
+ declare class ScopeConversationsResource extends ScopesConversationsResourceBase {
26743
27073
  /**
26744
27074
  * Retrieve a thread with full message history.
26745
27075
  *
@@ -26762,4 +27092,4 @@ declare class ScopeConversationsResource {
26762
27092
  }): Promise<Conversation>;
26763
27093
  }
26764
27094
 
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 };
27095
+ 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, type Scope 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 Conversation as e, type ConversationKind as f, type ConversationListItem as g, ScopeConversationsResource 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 };