@getmodus/sdk 0.7.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.
- package/CHANGELOG.md +70 -0
- package/README.md +21 -2
- package/dist/{chunk-JMFT5KO5.js → chunk-SP4UYRYG.js} +146 -39
- package/dist/chunk-SP4UYRYG.js.map +1 -0
- package/dist/{conversations-B0_jmEuT.d.cts → conversations-D7ffhHIh.d.cts} +1693 -214
- package/dist/{conversations-B0_jmEuT.d.ts → conversations-D7ffhHIh.d.ts} +1693 -214
- package/dist/index.cjs +435 -222
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +219 -104
- package/dist/index.d.ts +219 -104
- package/dist/index.js +262 -156
- package/dist/index.js.map +1 -1
- package/dist/management/index.cjs +1226 -708
- package/dist/management/index.cjs.map +1 -1
- package/dist/management/index.d.cts +763 -375
- package/dist/management/index.d.ts +763 -375
- package/dist/management/index.js +1011 -594
- package/dist/management/index.js.map +1 -1
- package/package.json +8 -8
- package/dist/chunk-JMFT5KO5.js.map +0 -1
|
@@ -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;
|
|
@@ -67,6 +73,28 @@ interface paths {
|
|
|
67
73
|
patch?: never;
|
|
68
74
|
trace?: never;
|
|
69
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
|
+
};
|
|
70
98
|
"/api/v1/context/custom-items": {
|
|
71
99
|
parameters: {
|
|
72
100
|
query?: never;
|
|
@@ -544,7 +572,7 @@ interface paths {
|
|
|
544
572
|
put?: never;
|
|
545
573
|
/**
|
|
546
574
|
* Finalize uploaded files in bulk
|
|
547
|
-
* @description Finalizes up to 100 uploaded files in one call,
|
|
575
|
+
* @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
576
|
*
|
|
549
577
|
* **Requires:** `context:write`
|
|
550
578
|
*/
|
|
@@ -676,7 +704,7 @@ interface paths {
|
|
|
676
704
|
put?: never;
|
|
677
705
|
/**
|
|
678
706
|
* Finalize an uploaded file
|
|
679
|
-
* @description
|
|
707
|
+
* @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
708
|
*
|
|
681
709
|
* **Requires:** `context:write`
|
|
682
710
|
*/
|
|
@@ -696,7 +724,7 @@ interface paths {
|
|
|
696
724
|
};
|
|
697
725
|
/**
|
|
698
726
|
* List context items
|
|
699
|
-
* @description Returns a page of context items, optionally filtered by context type, verification status, topic,
|
|
727
|
+
* @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
728
|
*
|
|
701
729
|
* **Requires:** `context:read`
|
|
702
730
|
*/
|
|
@@ -749,7 +777,7 @@ interface paths {
|
|
|
749
777
|
post?: never;
|
|
750
778
|
/**
|
|
751
779
|
* Delete a context item
|
|
752
|
-
* @description
|
|
780
|
+
* @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
781
|
*
|
|
754
782
|
* **Requires:** `context:write`
|
|
755
783
|
*/
|
|
@@ -765,6 +793,28 @@ interface paths {
|
|
|
765
793
|
patch: operations["ContextItemsController_update"];
|
|
766
794
|
trace?: never;
|
|
767
795
|
};
|
|
796
|
+
"/api/v1/context/items/{uid}/move": {
|
|
797
|
+
parameters: {
|
|
798
|
+
query?: never;
|
|
799
|
+
header?: never;
|
|
800
|
+
path?: never;
|
|
801
|
+
cookie?: never;
|
|
802
|
+
};
|
|
803
|
+
get?: never;
|
|
804
|
+
put?: never;
|
|
805
|
+
/**
|
|
806
|
+
* Move a Files item
|
|
807
|
+
* @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.
|
|
808
|
+
*
|
|
809
|
+
* **Requires:** `context:write`
|
|
810
|
+
*/
|
|
811
|
+
post: operations["ContextItemsController_move"];
|
|
812
|
+
delete?: never;
|
|
813
|
+
options?: never;
|
|
814
|
+
head?: never;
|
|
815
|
+
patch?: never;
|
|
816
|
+
trace?: never;
|
|
817
|
+
};
|
|
768
818
|
"/api/v1/context/items/{uid}/values": {
|
|
769
819
|
parameters: {
|
|
770
820
|
query?: never;
|
|
@@ -1002,7 +1052,7 @@ interface paths {
|
|
|
1002
1052
|
put?: never;
|
|
1003
1053
|
/**
|
|
1004
1054
|
* 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.
|
|
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`.
|
|
1006
1056
|
*
|
|
1007
1057
|
* **Requires:** `scopes:write`
|
|
1008
1058
|
*/
|
|
@@ -1040,7 +1090,7 @@ interface paths {
|
|
|
1040
1090
|
head?: never;
|
|
1041
1091
|
/**
|
|
1042
1092
|
* Update a scope
|
|
1043
|
-
* @description Updates the scope’s draft
|
|
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`.
|
|
1044
1094
|
*
|
|
1045
1095
|
* **Requires:** `scopes:write`
|
|
1046
1096
|
*/
|
|
@@ -1080,7 +1130,7 @@ interface paths {
|
|
|
1080
1130
|
put?: never;
|
|
1081
1131
|
/**
|
|
1082
1132
|
* Compose scope context
|
|
1083
|
-
* @description
|
|
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.
|
|
1084
1134
|
*
|
|
1085
1135
|
* **Requires:** `scopes:invoke`
|
|
1086
1136
|
*/
|
|
@@ -1257,6 +1307,62 @@ interface paths {
|
|
|
1257
1307
|
patch?: never;
|
|
1258
1308
|
trace?: never;
|
|
1259
1309
|
};
|
|
1310
|
+
"/api/v1/scopes/{id}/interfaces": {
|
|
1311
|
+
parameters: {
|
|
1312
|
+
query?: never;
|
|
1313
|
+
header?: never;
|
|
1314
|
+
path?: never;
|
|
1315
|
+
cookie?: never;
|
|
1316
|
+
};
|
|
1317
|
+
/**
|
|
1318
|
+
* List the chat interfaces of a scope
|
|
1319
|
+
* @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.
|
|
1320
|
+
*
|
|
1321
|
+
* **Requires:** `scopes:read`
|
|
1322
|
+
*/
|
|
1323
|
+
get: operations["ScopeInterfacesController_list"];
|
|
1324
|
+
put?: never;
|
|
1325
|
+
/**
|
|
1326
|
+
* Add a chat interface to a scope
|
|
1327
|
+
* @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.
|
|
1328
|
+
*
|
|
1329
|
+
* **Requires:** `scopes:write`
|
|
1330
|
+
*/
|
|
1331
|
+
post: operations["ScopeInterfacesController_add"];
|
|
1332
|
+
delete?: never;
|
|
1333
|
+
options?: never;
|
|
1334
|
+
head?: never;
|
|
1335
|
+
patch?: never;
|
|
1336
|
+
trace?: never;
|
|
1337
|
+
};
|
|
1338
|
+
"/api/v1/scopes/{id}/interfaces/{interfaceId}": {
|
|
1339
|
+
parameters: {
|
|
1340
|
+
query?: never;
|
|
1341
|
+
header?: never;
|
|
1342
|
+
path?: never;
|
|
1343
|
+
cookie?: never;
|
|
1344
|
+
};
|
|
1345
|
+
get?: never;
|
|
1346
|
+
put?: never;
|
|
1347
|
+
post?: never;
|
|
1348
|
+
/**
|
|
1349
|
+
* Remove a scope interface
|
|
1350
|
+
* @description Removes one chat interface from the scope. Mentions on that chat platform stop reaching this scope immediately.
|
|
1351
|
+
*
|
|
1352
|
+
* **Requires:** `scopes:write`
|
|
1353
|
+
*/
|
|
1354
|
+
delete: operations["ScopeInterfacesController_delete"];
|
|
1355
|
+
options?: never;
|
|
1356
|
+
head?: never;
|
|
1357
|
+
/**
|
|
1358
|
+
* Update a scope interface
|
|
1359
|
+
* @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.
|
|
1360
|
+
*
|
|
1361
|
+
* **Requires:** `scopes:write`
|
|
1362
|
+
*/
|
|
1363
|
+
patch: operations["ScopeInterfacesController_update"];
|
|
1364
|
+
trace?: never;
|
|
1365
|
+
};
|
|
1260
1366
|
"/api/v1/scopes/{id}/mcp-config": {
|
|
1261
1367
|
parameters: {
|
|
1262
1368
|
query?: never;
|
|
@@ -2288,13 +2394,26 @@ interface components {
|
|
|
2288
2394
|
*/
|
|
2289
2395
|
name: string;
|
|
2290
2396
|
/**
|
|
2291
|
-
* @description
|
|
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.
|
|
2292
2398
|
* @example {}
|
|
2293
2399
|
*/
|
|
2294
2400
|
config?: {
|
|
2295
2401
|
[key: string]: unknown;
|
|
2296
2402
|
};
|
|
2297
2403
|
};
|
|
2404
|
+
AddScopeInterfaceDto: {
|
|
2405
|
+
/**
|
|
2406
|
+
* @description Chat platform. One interface per type per scope.
|
|
2407
|
+
* @example slack
|
|
2408
|
+
*/
|
|
2409
|
+
type: components["schemas"]["ChatInterfaceType"];
|
|
2410
|
+
/**
|
|
2411
|
+
* @description Display name. Defaults to the chat platform name.
|
|
2412
|
+
* @example Support
|
|
2413
|
+
*/
|
|
2414
|
+
name?: string;
|
|
2415
|
+
config?: components["schemas"]["ChatInterfaceConfigDto"];
|
|
2416
|
+
};
|
|
2298
2417
|
AgentAccessConfigDto: {
|
|
2299
2418
|
/**
|
|
2300
2419
|
* @description Visibility tier. `shared` applies the group-permission map; `private` ignores groups and uses owner + sharedWith for access.
|
|
@@ -2578,7 +2697,7 @@ interface components {
|
|
|
2578
2697
|
*/
|
|
2579
2698
|
fileName: string;
|
|
2580
2699
|
/**
|
|
2581
|
-
* @description
|
|
2700
|
+
* @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
2701
|
* @example reports/2026/Q3
|
|
2583
2702
|
*/
|
|
2584
2703
|
folderPath?: string;
|
|
@@ -2601,7 +2720,7 @@ interface components {
|
|
|
2601
2720
|
*/
|
|
2602
2721
|
fileName?: string;
|
|
2603
2722
|
/**
|
|
2604
|
-
* @description
|
|
2723
|
+
* @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
2724
|
* @example reports/2026/Q3
|
|
2606
2725
|
*/
|
|
2607
2726
|
folderPath?: string;
|
|
@@ -2643,6 +2762,34 @@ interface components {
|
|
|
2643
2762
|
/** @description Per-item failures (bad MIME type, oversize, etc). Empty when every file succeeded. */
|
|
2644
2763
|
failed: components["schemas"]["FailedUploadUrlDto"][];
|
|
2645
2764
|
};
|
|
2765
|
+
/**
|
|
2766
|
+
* @description Who may use the interface: `all` (anyone in the workspace), `allow-list` (only `allowedEmails`), `allow-org` (members of this organization).
|
|
2767
|
+
* @enum {string}
|
|
2768
|
+
*/
|
|
2769
|
+
ChatInterfaceAccessMode: "all" | "allow-list" | "allow-org";
|
|
2770
|
+
ChatInterfaceConfigDto: {
|
|
2771
|
+
/**
|
|
2772
|
+
* @description Who may use the interface: `all` (anyone in the workspace), `allow-list` (only `allowedEmails`), `allow-org` (members of this organization).
|
|
2773
|
+
* @example allow-list
|
|
2774
|
+
*/
|
|
2775
|
+
accessMode?: components["schemas"]["ChatInterfaceAccessMode"];
|
|
2776
|
+
/**
|
|
2777
|
+
* @description Emails allowed to use the interface when `accessMode` is `allow-list`.
|
|
2778
|
+
* @example [
|
|
2779
|
+
* "ana@example.com"
|
|
2780
|
+
* ]
|
|
2781
|
+
*/
|
|
2782
|
+
allowedEmails?: string[];
|
|
2783
|
+
/**
|
|
2784
|
+
* @description Channels where the interface answers. Channel ids look like `C0ALH2JTRR9`. Empty or absent means every channel.
|
|
2785
|
+
* @example [
|
|
2786
|
+
* "C0ALH2JTRR9"
|
|
2787
|
+
* ]
|
|
2788
|
+
*/
|
|
2789
|
+
availableChannelIds?: string[];
|
|
2790
|
+
};
|
|
2791
|
+
/** @enum {string} */
|
|
2792
|
+
ChatInterfaceType: "slack" | "teams";
|
|
2646
2793
|
ComposeSkillContextRequestDto: {
|
|
2647
2794
|
/**
|
|
2648
2795
|
* @description User message or intent used to compose relevant context (RAG query).
|
|
@@ -2657,7 +2804,7 @@ interface components {
|
|
|
2657
2804
|
};
|
|
2658
2805
|
ComposeSkillContextResponseDto: {
|
|
2659
2806
|
/**
|
|
2660
|
-
* @description Composed context for the scope and intent
|
|
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.
|
|
2661
2808
|
* @example ## Retrieved Context
|
|
2662
2809
|
*
|
|
2663
2810
|
* ### customers
|
|
@@ -2713,6 +2860,27 @@ interface components {
|
|
|
2713
2860
|
* @example postgresql
|
|
2714
2861
|
*/
|
|
2715
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;
|
|
2716
2884
|
};
|
|
2717
2885
|
ContentProjectionDto: {
|
|
2718
2886
|
/**
|
|
@@ -2736,6 +2904,23 @@ interface components {
|
|
|
2736
2904
|
[key: string]: string[];
|
|
2737
2905
|
};
|
|
2738
2906
|
};
|
|
2907
|
+
ContextItemAncestorDto: {
|
|
2908
|
+
/**
|
|
2909
|
+
* @description Stable identifier of the ancestor.
|
|
2910
|
+
* @example ancestor-123
|
|
2911
|
+
*/
|
|
2912
|
+
uid: string;
|
|
2913
|
+
/**
|
|
2914
|
+
* @description Human-readable label. Generic path-token ancestry copies the same platform segment as uid. Null only when an explicit entry stored no name.
|
|
2915
|
+
* @example acme
|
|
2916
|
+
*/
|
|
2917
|
+
display_name: string | null;
|
|
2918
|
+
/**
|
|
2919
|
+
* @description Optional ancestor kind. Null when the source provides only platform path tokens.
|
|
2920
|
+
* @example container
|
|
2921
|
+
*/
|
|
2922
|
+
type: string | null;
|
|
2923
|
+
};
|
|
2739
2924
|
ContextItemDto: {
|
|
2740
2925
|
/**
|
|
2741
2926
|
* @description Stable UUID for the context item. Use this on PATCH / DELETE / values endpoints.
|
|
@@ -2795,6 +2980,8 @@ interface components {
|
|
|
2795
2980
|
* ]
|
|
2796
2981
|
*/
|
|
2797
2982
|
dataPath: string[];
|
|
2983
|
+
/** @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`. */
|
|
2984
|
+
ancestry?: components["schemas"]["ContextItemAncestorDto"][] | null;
|
|
2798
2985
|
/**
|
|
2799
2986
|
* @description Creation timestamp.
|
|
2800
2987
|
* @example 2026-05-01T10:00:00.000Z
|
|
@@ -3216,7 +3403,7 @@ interface components {
|
|
|
3216
3403
|
* ]
|
|
3217
3404
|
*/
|
|
3218
3405
|
instructions?: string[];
|
|
3219
|
-
/** @description Toolset configuration (tools this scope may invoke). Service sanitizes the shape on write. */
|
|
3406
|
+
/** @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
3407
|
toolset?: components["schemas"]["ToolsetDto"];
|
|
3221
3408
|
/**
|
|
3222
3409
|
* @description Model identifier to use at run time (e.g. `claude-sonnet-4-5`). Falls back to org default when absent.
|
|
@@ -3233,19 +3420,19 @@ interface components {
|
|
|
3233
3420
|
[key: string]: unknown;
|
|
3234
3421
|
}[];
|
|
3235
3422
|
/**
|
|
3236
|
-
* @description Selected context items (sources / docs) the scope may read.
|
|
3423
|
+
* @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
3424
|
* @example []
|
|
3238
3425
|
*/
|
|
3239
3426
|
contextSelections?: {
|
|
3240
3427
|
[key: string]: unknown;
|
|
3241
3428
|
}[];
|
|
3242
3429
|
/**
|
|
3243
|
-
* @description
|
|
3244
|
-
* @
|
|
3430
|
+
* @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.
|
|
3431
|
+
* @default true
|
|
3245
3432
|
*/
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3433
|
+
includeOwnLearnings: boolean;
|
|
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"][];
|
|
3249
3436
|
/** @description Access configuration. Omit to use the default (full-org shared with use + manage). */
|
|
3250
3437
|
accessConfig?: components["schemas"]["AccessConfigDto"];
|
|
3251
3438
|
};
|
|
@@ -3828,8 +4015,11 @@ interface components {
|
|
|
3828
4015
|
results: components["schemas"]["EvaluationResultDto"][];
|
|
3829
4016
|
};
|
|
3830
4017
|
EvaluationSlackChannelDto: {
|
|
3831
|
-
/**
|
|
3832
|
-
|
|
4018
|
+
/**
|
|
4019
|
+
* Format: uuid
|
|
4020
|
+
* @description Modus connection UUID for Slack
|
|
4021
|
+
*/
|
|
4022
|
+
connectionId: string;
|
|
3833
4023
|
/** @description Mapping of Clerk user ID to Slack user ID */
|
|
3834
4024
|
slackUserIdByRecipient: Record<string, never>;
|
|
3835
4025
|
};
|
|
@@ -3898,7 +4088,7 @@ interface components {
|
|
|
3898
4088
|
/** @example Q3-churn-report.pdf */
|
|
3899
4089
|
fileName?: string | null;
|
|
3900
4090
|
/**
|
|
3901
|
-
* @description Relative folder
|
|
4091
|
+
* @description Relative folder path within Files. Null at the Files root.
|
|
3902
4092
|
* @example reports/2026/Q3
|
|
3903
4093
|
*/
|
|
3904
4094
|
folderPath?: string | null;
|
|
@@ -3931,7 +4121,7 @@ interface components {
|
|
|
3931
4121
|
*/
|
|
3932
4122
|
fileName: string;
|
|
3933
4123
|
/**
|
|
3934
|
-
* @description
|
|
4124
|
+
* @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
4125
|
* @example reports/2026/Q3
|
|
3936
4126
|
*/
|
|
3937
4127
|
folderPath?: string;
|
|
@@ -4084,6 +4274,12 @@ interface components {
|
|
|
4084
4274
|
[key: string]: number;
|
|
4085
4275
|
};
|
|
4086
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
|
+
};
|
|
4087
4283
|
ListConnectionsResponseDto: {
|
|
4088
4284
|
/** @description Page of integration connections the caller can `use`. Connections the caller cannot access are filtered out (not enumerated). */
|
|
4089
4285
|
connections: components["schemas"]["ConnectionDto"][];
|
|
@@ -4183,6 +4379,10 @@ interface components {
|
|
|
4183
4379
|
ListOrgMembersResponseDto: {
|
|
4184
4380
|
members: components["schemas"]["OrgMemberDto"][];
|
|
4185
4381
|
};
|
|
4382
|
+
ListScopeInterfacesResponseDto: {
|
|
4383
|
+
/** @description Every chat interface on the scope (at most one per type). */
|
|
4384
|
+
interfaces: components["schemas"]["ScopeInterfaceDto"][];
|
|
4385
|
+
};
|
|
4186
4386
|
ListSkillsResponseDto: {
|
|
4187
4387
|
/** @description Page of scopes the caller can at least `use`. Scopes the caller cannot see are filtered out (not enumerated). */
|
|
4188
4388
|
scopes: components["schemas"]["ScopeDto"][];
|
|
@@ -4253,6 +4453,8 @@ interface components {
|
|
|
4253
4453
|
contextType: string;
|
|
4254
4454
|
/** @description Hierarchical data path of the row (same as the request). */
|
|
4255
4455
|
dataPath: string[];
|
|
4456
|
+
/** @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. */
|
|
4457
|
+
ancestry?: components["schemas"]["ContextItemAncestorDto"][] | null;
|
|
4256
4458
|
/** @description Item content. When the request supplied a `contentProjection` the JSONB is shaped accordingly; otherwise the full content blob is returned. */
|
|
4257
4459
|
content: {
|
|
4258
4460
|
[key: string]: unknown;
|
|
@@ -4333,11 +4535,11 @@ interface components {
|
|
|
4333
4535
|
*/
|
|
4334
4536
|
message?: string;
|
|
4335
4537
|
/**
|
|
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.
|
|
4538
|
+
* @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
4539
|
* @example claude-sonnet-4.6
|
|
4338
4540
|
* @enum {string}
|
|
4339
4541
|
*/
|
|
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";
|
|
4542
|
+
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
4543
|
/** @description Continue a pending write-approval interrupt from a prior turn. When true, `message` is ignored. */
|
|
4342
4544
|
approvalContinuation?: boolean;
|
|
4343
4545
|
/**
|
|
@@ -4395,6 +4597,20 @@ interface components {
|
|
|
4395
4597
|
/** @description Session id used for this composition. */
|
|
4396
4598
|
sessionId: string;
|
|
4397
4599
|
};
|
|
4600
|
+
MoveContextItemDto: {
|
|
4601
|
+
/**
|
|
4602
|
+
* @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.
|
|
4603
|
+
* @example null
|
|
4604
|
+
*/
|
|
4605
|
+
destinationFolderUid: string | null;
|
|
4606
|
+
};
|
|
4607
|
+
MoveContextItemResponseDto: {
|
|
4608
|
+
/**
|
|
4609
|
+
* @description Number of context items whose parent changed. Zero is a successful same-parent no-op.
|
|
4610
|
+
* @example 3
|
|
4611
|
+
*/
|
|
4612
|
+
movedItems: number;
|
|
4613
|
+
};
|
|
4398
4614
|
OrgMemberDto: {
|
|
4399
4615
|
user_id: string;
|
|
4400
4616
|
first_name: string;
|
|
@@ -4557,6 +4773,79 @@ interface components {
|
|
|
4557
4773
|
*/
|
|
4558
4774
|
manageDenial: "not_owner" | "needs_group_manage" | null;
|
|
4559
4775
|
};
|
|
4776
|
+
ScopeInterfaceDto: {
|
|
4777
|
+
/**
|
|
4778
|
+
* @description Interface id (UUID).
|
|
4779
|
+
* @example 00000000-0000-4000-a000-000000000500
|
|
4780
|
+
*/
|
|
4781
|
+
id: string;
|
|
4782
|
+
/**
|
|
4783
|
+
* @description Scope id.
|
|
4784
|
+
* @example 42
|
|
4785
|
+
*/
|
|
4786
|
+
scopeId: number;
|
|
4787
|
+
/** @example slack */
|
|
4788
|
+
type: components["schemas"]["ChatInterfaceType"];
|
|
4789
|
+
/**
|
|
4790
|
+
* @description Display name.
|
|
4791
|
+
* @example Slack
|
|
4792
|
+
*/
|
|
4793
|
+
name: string;
|
|
4794
|
+
config: components["schemas"]["ChatInterfaceConfigDto"];
|
|
4795
|
+
/**
|
|
4796
|
+
* @description Creation timestamp.
|
|
4797
|
+
* @example 2026-09-30T10:00:00.000Z
|
|
4798
|
+
*/
|
|
4799
|
+
createdAt: string;
|
|
4800
|
+
/**
|
|
4801
|
+
* @description Most recent update timestamp.
|
|
4802
|
+
* @example 2026-09-30T10:00:00.000Z
|
|
4803
|
+
*/
|
|
4804
|
+
updatedAt: string;
|
|
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";
|
|
4560
4849
|
SearchMemoriesRequestDto: {
|
|
4561
4850
|
/**
|
|
4562
4851
|
* @description Search query string (semantic search over the scope's memories).
|
|
@@ -4574,6 +4863,33 @@ interface components {
|
|
|
4574
4863
|
*/
|
|
4575
4864
|
limit?: number;
|
|
4576
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
|
+
};
|
|
4577
4893
|
SetSupervisionRequestDto: {
|
|
4578
4894
|
/**
|
|
4579
4895
|
* @description Replacement list of subordinate scope ids. The previous list is fully replaced; pass `[]` to clear.
|
|
@@ -4624,11 +4940,11 @@ interface components {
|
|
|
4624
4940
|
*/
|
|
4625
4941
|
message: string;
|
|
4626
4942
|
/**
|
|
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.
|
|
4943
|
+
* @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
4944
|
* @example claude-sonnet-4.6
|
|
4629
4945
|
* @enum {string}
|
|
4630
4946
|
*/
|
|
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";
|
|
4947
|
+
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
4948
|
};
|
|
4633
4949
|
SkillChatResponseDto: {
|
|
4634
4950
|
/**
|
|
@@ -4704,10 +5020,8 @@ interface components {
|
|
|
4704
5020
|
evaluations: {
|
|
4705
5021
|
[key: string]: unknown;
|
|
4706
5022
|
}[];
|
|
4707
|
-
/** @description
|
|
4708
|
-
interfaces:
|
|
4709
|
-
[key: string]: unknown;
|
|
4710
|
-
}[];
|
|
5023
|
+
/** @description MCP interface for this scope. Each row has an id, type mcp, a name, and a config. */
|
|
5024
|
+
interfaces: components["schemas"]["ScopeMcpInterfaceDto"][];
|
|
4711
5025
|
/**
|
|
4712
5026
|
* @description IDs of scopes supervised by this scope (when it is a manager). Stringified for wire stability.
|
|
4713
5027
|
* @example [
|
|
@@ -4792,7 +5106,7 @@ interface components {
|
|
|
4792
5106
|
};
|
|
4793
5107
|
ToolCatalogActionDto: {
|
|
4794
5108
|
/**
|
|
4795
|
-
* @description Stable action id
|
|
5109
|
+
* @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
5110
|
* @example list_dags
|
|
4797
5111
|
*/
|
|
4798
5112
|
name: string;
|
|
@@ -4972,7 +5286,7 @@ interface components {
|
|
|
4972
5286
|
*/
|
|
4973
5287
|
name?: string;
|
|
4974
5288
|
/**
|
|
4975
|
-
* @description
|
|
5289
|
+
* @description Replacement chat interface settings (`accessMode`, `allowedEmails`, `availableChannelIds`). An MCP interface accepts no config keys. Replaces the stored config.
|
|
4976
5290
|
* @example {}
|
|
4977
5291
|
*/
|
|
4978
5292
|
config?: {
|
|
@@ -5121,6 +5435,15 @@ interface components {
|
|
|
5121
5435
|
[key: string]: unknown;
|
|
5122
5436
|
};
|
|
5123
5437
|
};
|
|
5438
|
+
UpdateScopeInterfaceDto: {
|
|
5439
|
+
/**
|
|
5440
|
+
* @description New display name.
|
|
5441
|
+
* @example Support
|
|
5442
|
+
*/
|
|
5443
|
+
name?: string;
|
|
5444
|
+
/** @description Replaces the whole config. */
|
|
5445
|
+
config?: components["schemas"]["ChatInterfaceConfigDto"];
|
|
5446
|
+
};
|
|
5124
5447
|
UpdateSkillDto: {
|
|
5125
5448
|
/**
|
|
5126
5449
|
* @description New display name for the scope.
|
|
@@ -5144,7 +5467,7 @@ interface components {
|
|
|
5144
5467
|
* ]
|
|
5145
5468
|
*/
|
|
5146
5469
|
instructions?: string[];
|
|
5147
|
-
/** @description Updated toolset configuration. */
|
|
5470
|
+
/** @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
5471
|
toolset?: components["schemas"]["ToolsetDto"];
|
|
5149
5472
|
/**
|
|
5150
5473
|
* @description Updated model id. Pass `null` (explicit) to clear and use the org default.
|
|
@@ -5161,19 +5484,14 @@ interface components {
|
|
|
5161
5484
|
[key: string]: unknown;
|
|
5162
5485
|
}[];
|
|
5163
5486
|
/**
|
|
5164
|
-
* @description Updated context selections (sources / docs the scope may read).
|
|
5487
|
+
* @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
5488
|
* @example []
|
|
5166
5489
|
*/
|
|
5167
5490
|
contextSelections?: {
|
|
5168
5491
|
[key: string]: unknown;
|
|
5169
5492
|
}[];
|
|
5170
|
-
/**
|
|
5171
|
-
|
|
5172
|
-
* @example []
|
|
5173
|
-
*/
|
|
5174
|
-
interfaces?: {
|
|
5175
|
-
[key: string]: unknown;
|
|
5176
|
-
}[];
|
|
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"][];
|
|
5177
5495
|
/**
|
|
5178
5496
|
* @description Updated evaluation entries (task + expected-output pairs) saved for the draft variation. Replaces the prior list when present.
|
|
5179
5497
|
* @example []
|
|
@@ -5211,7 +5529,7 @@ interface components {
|
|
|
5211
5529
|
*/
|
|
5212
5530
|
fileName?: string;
|
|
5213
5531
|
/**
|
|
5214
|
-
* @description
|
|
5532
|
+
* @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
5533
|
* @example reports/2026/Q3
|
|
5216
5534
|
*/
|
|
5217
5535
|
folderPath?: string;
|
|
@@ -5264,6 +5582,15 @@ interface components {
|
|
|
5264
5582
|
* @example 2026-08-12T14:15:00.000Z
|
|
5265
5583
|
*/
|
|
5266
5584
|
expiresAt: string;
|
|
5585
|
+
/**
|
|
5586
|
+
* @description Headers to send unchanged with the upload PUT request.
|
|
5587
|
+
* @example {
|
|
5588
|
+
* "Content-Type": "application/pdf"
|
|
5589
|
+
* }
|
|
5590
|
+
*/
|
|
5591
|
+
headers: {
|
|
5592
|
+
[key: string]: string;
|
|
5593
|
+
};
|
|
5267
5594
|
};
|
|
5268
5595
|
UsageBucketDto: {
|
|
5269
5596
|
/** @description ISO8601 timestamp at the start of the bucket. */
|
|
@@ -5520,6 +5847,12 @@ interface components {
|
|
|
5520
5847
|
experimentalFeatures?: boolean;
|
|
5521
5848
|
debug?: boolean;
|
|
5522
5849
|
};
|
|
5850
|
+
ApprovalTargetDto: {
|
|
5851
|
+
toolName: string;
|
|
5852
|
+
args: {
|
|
5853
|
+
[key: string]: unknown;
|
|
5854
|
+
};
|
|
5855
|
+
};
|
|
5523
5856
|
AttachmentsDto: {
|
|
5524
5857
|
images?: components["schemas"]["ImageAttachmentDto"][];
|
|
5525
5858
|
documents?: components["schemas"]["DocumentAttachmentDto"][];
|
|
@@ -5685,6 +6018,8 @@ interface components {
|
|
|
5685
6018
|
* @enum {string}
|
|
5686
6019
|
*/
|
|
5687
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"];
|
|
5688
6023
|
};
|
|
5689
6024
|
RunConfigDto: {
|
|
5690
6025
|
/** @description Model id, e.g. anthropic/claude-sonnet-4.6. */
|
|
@@ -5718,7 +6053,7 @@ interface components {
|
|
|
5718
6053
|
* @description Origin of the run.
|
|
5719
6054
|
* @enum {string}
|
|
5720
6055
|
*/
|
|
5721
|
-
RunSource: "home" | "agent_settings" | "agent" | "api" | "modus_api" | "mcp" | "slack" | "slack_dm" | "teams" | "context_chat" | "dashboard_copilot" | "other";
|
|
6056
|
+
RunSource: "home" | "agent_settings" | "agent" | "api" | "modus_api" | "mcp" | "slack" | "slack_dm" | "teams" | "context_chat" | "dashboard_copilot" | "dashboard_assistant" | "other";
|
|
5722
6057
|
SkillRunDto: {
|
|
5723
6058
|
/** @description The user message to send. */
|
|
5724
6059
|
message: string;
|
|
@@ -5752,8 +6087,10 @@ interface components {
|
|
|
5752
6087
|
subordinateSkillIds?: number[];
|
|
5753
6088
|
};
|
|
5754
6089
|
SupplementalContextDto: {
|
|
5755
|
-
/** @description Background context (e.g. Slack/Teams thread + channel history)
|
|
6090
|
+
/** @description Background context (e.g. Slack/Teams thread + channel history) for a conversation with no saved history yet. */
|
|
5756
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;
|
|
5757
6094
|
/** @description Producer that supplied the supplemental context. */
|
|
5758
6095
|
source: components["schemas"]["SupplementalContextSource"];
|
|
5759
6096
|
};
|
|
@@ -5935,24 +6272,19 @@ interface operations {
|
|
|
5935
6272
|
};
|
|
5936
6273
|
};
|
|
5937
6274
|
};
|
|
5938
|
-
|
|
6275
|
+
ConnectionsController_listSelections: {
|
|
5939
6276
|
parameters: {
|
|
5940
6277
|
query?: {
|
|
5941
6278
|
/** @description Opaque page token from a previous response's `nextPageToken`. Omit for the first page. */
|
|
5942
6279
|
pageToken?: string;
|
|
5943
|
-
/** @description Max items per page. Defaults to 25
|
|
6280
|
+
/** @description Max items per page. Defaults to 25, clamped to 100. */
|
|
5944
6281
|
pageSize?: number;
|
|
5945
|
-
/** @description Filter by one or more context types (repeat the query param). Example: `?contextTypes=note&contextTypes=saved_query`. */
|
|
5946
|
-
contextTypes?: string[];
|
|
5947
|
-
/** @description Filter by verification status (`negative` / `neutral` / `positive`). */
|
|
5948
|
-
verificationStatuses?: string[];
|
|
5949
|
-
/** @description Case-insensitive substring search over content + description + topics. */
|
|
5950
|
-
searchQuery?: string;
|
|
5951
|
-
/** @description Filter by topic tag. */
|
|
5952
|
-
topics?: string[];
|
|
5953
6282
|
};
|
|
5954
6283
|
header?: never;
|
|
5955
|
-
path
|
|
6284
|
+
path: {
|
|
6285
|
+
/** @description Integration connection UUID. */
|
|
6286
|
+
connectionId: string;
|
|
6287
|
+
};
|
|
5956
6288
|
cookie?: never;
|
|
5957
6289
|
};
|
|
5958
6290
|
requestBody?: never;
|
|
@@ -5962,7 +6294,7 @@ interface operations {
|
|
|
5962
6294
|
[name: string]: unknown;
|
|
5963
6295
|
};
|
|
5964
6296
|
content: {
|
|
5965
|
-
"application/json": components["schemas"]["
|
|
6297
|
+
"application/json": components["schemas"]["ListConnectionSelectionsResponseDto"];
|
|
5966
6298
|
};
|
|
5967
6299
|
};
|
|
5968
6300
|
/** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
|
|
@@ -6027,6 +6359,25 @@ interface operations {
|
|
|
6027
6359
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
6028
6360
|
};
|
|
6029
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
|
+
};
|
|
6030
6381
|
/** @description Too many requests. Wait and retry later (`code: RATE_LIMITED`). */
|
|
6031
6382
|
429: {
|
|
6032
6383
|
headers: {
|
|
@@ -6067,16 +6418,148 @@ interface operations {
|
|
|
6067
6418
|
};
|
|
6068
6419
|
};
|
|
6069
6420
|
};
|
|
6070
|
-
|
|
6421
|
+
CustomContextItemsController_list: {
|
|
6071
6422
|
parameters: {
|
|
6072
|
-
query?:
|
|
6073
|
-
|
|
6074
|
-
|
|
6075
|
-
|
|
6076
|
-
|
|
6077
|
-
|
|
6078
|
-
|
|
6079
|
-
|
|
6423
|
+
query?: {
|
|
6424
|
+
/** @description Opaque page token from a previous response's `nextPageToken`. Omit for the first page. */
|
|
6425
|
+
pageToken?: string;
|
|
6426
|
+
/** @description Max items per page. Defaults to 25 (the legacy `list-context-items-olap` action defaulted to 100; the new `clampPageSize` helper standardises every modus-api list surface on 25). Clamped to 200. */
|
|
6427
|
+
pageSize?: number;
|
|
6428
|
+
/** @description Filter by one or more context types (repeat the query param). Example: `?contextTypes=note&contextTypes=saved_query`. */
|
|
6429
|
+
contextTypes?: string[];
|
|
6430
|
+
/** @description Filter by verification status (`negative` / `neutral` / `positive`). */
|
|
6431
|
+
verificationStatuses?: string[];
|
|
6432
|
+
/** @description Word search: returns rows that contain every word of the query, case-insensitive. */
|
|
6433
|
+
searchQuery?: string;
|
|
6434
|
+
/** @description Filter by topic tag. */
|
|
6435
|
+
topics?: string[];
|
|
6436
|
+
};
|
|
6437
|
+
header?: never;
|
|
6438
|
+
path?: never;
|
|
6439
|
+
cookie?: never;
|
|
6440
|
+
};
|
|
6441
|
+
requestBody?: never;
|
|
6442
|
+
responses: {
|
|
6443
|
+
200: {
|
|
6444
|
+
headers: {
|
|
6445
|
+
[name: string]: unknown;
|
|
6446
|
+
};
|
|
6447
|
+
content: {
|
|
6448
|
+
"application/json": components["schemas"]["ListCustomContextItemsResponseDto"];
|
|
6449
|
+
};
|
|
6450
|
+
};
|
|
6451
|
+
/** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
|
|
6452
|
+
400: {
|
|
6453
|
+
headers: {
|
|
6454
|
+
[name: string]: unknown;
|
|
6455
|
+
};
|
|
6456
|
+
content: {
|
|
6457
|
+
/**
|
|
6458
|
+
* @example {
|
|
6459
|
+
* "error": {
|
|
6460
|
+
* "code": "BAD_REQUEST",
|
|
6461
|
+
* "status": "INVALID_ARGUMENT",
|
|
6462
|
+
* "message": "Invalid value for query parameter `pageSize`.",
|
|
6463
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
6464
|
+
* }
|
|
6465
|
+
* }
|
|
6466
|
+
*/
|
|
6467
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
6468
|
+
};
|
|
6469
|
+
};
|
|
6470
|
+
/** @description Missing, invalid, or expired access token (`code: UNAUTHORIZED`). */
|
|
6471
|
+
401: {
|
|
6472
|
+
headers: {
|
|
6473
|
+
[name: string]: unknown;
|
|
6474
|
+
};
|
|
6475
|
+
content: {
|
|
6476
|
+
/**
|
|
6477
|
+
* @example {
|
|
6478
|
+
* "error": {
|
|
6479
|
+
* "code": "UNAUTHORIZED",
|
|
6480
|
+
* "status": "UNAUTHENTICATED",
|
|
6481
|
+
* "message": "Missing or invalid access token.",
|
|
6482
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
6483
|
+
* }
|
|
6484
|
+
* }
|
|
6485
|
+
*/
|
|
6486
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
6487
|
+
};
|
|
6488
|
+
};
|
|
6489
|
+
/** @description Authenticated, but the token lacks a required scope (`code: FORBIDDEN`). The missing scopes are listed in `info`. */
|
|
6490
|
+
403: {
|
|
6491
|
+
headers: {
|
|
6492
|
+
[name: string]: unknown;
|
|
6493
|
+
};
|
|
6494
|
+
content: {
|
|
6495
|
+
/**
|
|
6496
|
+
* @example {
|
|
6497
|
+
* "error": {
|
|
6498
|
+
* "code": "FORBIDDEN",
|
|
6499
|
+
* "status": "PERMISSION_DENIED",
|
|
6500
|
+
* "message": "Missing required scope(s) for this operation.",
|
|
6501
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS",
|
|
6502
|
+
* "info": {
|
|
6503
|
+
* "missing": [
|
|
6504
|
+
* "<required-scope>"
|
|
6505
|
+
* ]
|
|
6506
|
+
* }
|
|
6507
|
+
* }
|
|
6508
|
+
* }
|
|
6509
|
+
*/
|
|
6510
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
6511
|
+
};
|
|
6512
|
+
};
|
|
6513
|
+
/** @description Too many requests. Wait and retry later (`code: RATE_LIMITED`). */
|
|
6514
|
+
429: {
|
|
6515
|
+
headers: {
|
|
6516
|
+
[name: string]: unknown;
|
|
6517
|
+
};
|
|
6518
|
+
content: {
|
|
6519
|
+
/**
|
|
6520
|
+
* @example {
|
|
6521
|
+
* "error": {
|
|
6522
|
+
* "code": "RATE_LIMITED",
|
|
6523
|
+
* "status": "RESOURCE_EXHAUSTED",
|
|
6524
|
+
* "message": "Too many requests. Please retry after a short delay.",
|
|
6525
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
6526
|
+
* }
|
|
6527
|
+
* }
|
|
6528
|
+
*/
|
|
6529
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
6530
|
+
};
|
|
6531
|
+
};
|
|
6532
|
+
/** @description An unexpected server error occurred (`code: INTERNAL_ERROR`). */
|
|
6533
|
+
500: {
|
|
6534
|
+
headers: {
|
|
6535
|
+
[name: string]: unknown;
|
|
6536
|
+
};
|
|
6537
|
+
content: {
|
|
6538
|
+
/**
|
|
6539
|
+
* @example {
|
|
6540
|
+
* "error": {
|
|
6541
|
+
* "code": "INTERNAL_ERROR",
|
|
6542
|
+
* "status": "INTERNAL",
|
|
6543
|
+
* "message": "An unexpected error occurred.",
|
|
6544
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
6545
|
+
* }
|
|
6546
|
+
* }
|
|
6547
|
+
*/
|
|
6548
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
6549
|
+
};
|
|
6550
|
+
};
|
|
6551
|
+
};
|
|
6552
|
+
};
|
|
6553
|
+
CustomContextItemsController_create: {
|
|
6554
|
+
parameters: {
|
|
6555
|
+
query?: never;
|
|
6556
|
+
header?: never;
|
|
6557
|
+
path?: never;
|
|
6558
|
+
cookie?: never;
|
|
6559
|
+
};
|
|
6560
|
+
requestBody: {
|
|
6561
|
+
content: {
|
|
6562
|
+
"application/json": components["schemas"]["CreateCustomContextItemDto"];
|
|
6080
6563
|
};
|
|
6081
6564
|
};
|
|
6082
6565
|
responses: {
|
|
@@ -11930,10 +12413,16 @@ interface operations {
|
|
|
11930
12413
|
contextTypes?: string[];
|
|
11931
12414
|
/** @description Filter by verification status (`negative` / `neutral` / `positive`). */
|
|
11932
12415
|
verificationStatuses?: string[];
|
|
11933
|
-
/** @description
|
|
12416
|
+
/** @description Word search: returns rows that contain every word of the query, case-insensitive. */
|
|
11934
12417
|
searchQuery?: string;
|
|
11935
12418
|
/** @description Filter by topic tag. */
|
|
11936
12419
|
topics?: string[];
|
|
12420
|
+
/** @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. */
|
|
12421
|
+
connectionIds?: string[];
|
|
12422
|
+
/** @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. */
|
|
12423
|
+
parentUids?: string[];
|
|
12424
|
+
/** @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. */
|
|
12425
|
+
ancestorUids?: string[];
|
|
11937
12426
|
};
|
|
11938
12427
|
header?: never;
|
|
11939
12428
|
path?: never;
|
|
@@ -12740,39 +13229,28 @@ interface operations {
|
|
|
12740
13229
|
};
|
|
12741
13230
|
};
|
|
12742
13231
|
};
|
|
12743
|
-
|
|
13232
|
+
ContextItemsController_move: {
|
|
12744
13233
|
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
|
-
};
|
|
13234
|
+
query?: never;
|
|
12761
13235
|
header?: never;
|
|
12762
13236
|
path: {
|
|
12763
|
-
/** @description
|
|
13237
|
+
/** @description Stored context-item uid of the live file or Files folder to move. */
|
|
12764
13238
|
uid: string;
|
|
12765
13239
|
};
|
|
12766
13240
|
cookie?: never;
|
|
12767
13241
|
};
|
|
12768
|
-
requestBody
|
|
13242
|
+
requestBody: {
|
|
13243
|
+
content: {
|
|
13244
|
+
"application/json": components["schemas"]["MoveContextItemDto"];
|
|
13245
|
+
};
|
|
13246
|
+
};
|
|
12769
13247
|
responses: {
|
|
12770
13248
|
200: {
|
|
12771
13249
|
headers: {
|
|
12772
13250
|
[name: string]: unknown;
|
|
12773
13251
|
};
|
|
12774
13252
|
content: {
|
|
12775
|
-
"application/json": components["schemas"]["
|
|
13253
|
+
"application/json": components["schemas"]["MoveContextItemResponseDto"];
|
|
12776
13254
|
};
|
|
12777
13255
|
};
|
|
12778
13256
|
/** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
|
|
@@ -12856,6 +13334,44 @@ interface operations {
|
|
|
12856
13334
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
12857
13335
|
};
|
|
12858
13336
|
};
|
|
13337
|
+
/** @description The request conflicts with the current state of the resource, e.g. a duplicate (`code: CONFLICT`). */
|
|
13338
|
+
409: {
|
|
13339
|
+
headers: {
|
|
13340
|
+
[name: string]: unknown;
|
|
13341
|
+
};
|
|
13342
|
+
content: {
|
|
13343
|
+
/**
|
|
13344
|
+
* @example {
|
|
13345
|
+
* "error": {
|
|
13346
|
+
* "code": "CONFLICT",
|
|
13347
|
+
* "status": "ALREADY_EXISTS",
|
|
13348
|
+
* "message": "A resource with that identifier already exists.",
|
|
13349
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
13350
|
+
* }
|
|
13351
|
+
* }
|
|
13352
|
+
*/
|
|
13353
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
13354
|
+
};
|
|
13355
|
+
};
|
|
13356
|
+
/** @description The request was well-formed but failed a business rule (`code: VALIDATION`). */
|
|
13357
|
+
422: {
|
|
13358
|
+
headers: {
|
|
13359
|
+
[name: string]: unknown;
|
|
13360
|
+
};
|
|
13361
|
+
content: {
|
|
13362
|
+
/**
|
|
13363
|
+
* @example {
|
|
13364
|
+
* "error": {
|
|
13365
|
+
* "code": "VALIDATION",
|
|
13366
|
+
* "status": "INVALID_ARGUMENT",
|
|
13367
|
+
* "message": "Updates that would revoke your own access are not allowed.",
|
|
13368
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
13369
|
+
* }
|
|
13370
|
+
* }
|
|
13371
|
+
*/
|
|
13372
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
13373
|
+
};
|
|
13374
|
+
};
|
|
12859
13375
|
/** @description Too many requests. Wait and retry later (`code: RATE_LIMITED`). */
|
|
12860
13376
|
429: {
|
|
12861
13377
|
headers: {
|
|
@@ -12896,25 +13412,39 @@ interface operations {
|
|
|
12896
13412
|
};
|
|
12897
13413
|
};
|
|
12898
13414
|
};
|
|
12899
|
-
|
|
13415
|
+
ContextItemsController_listValues: {
|
|
12900
13416
|
parameters: {
|
|
12901
|
-
query
|
|
13417
|
+
query: {
|
|
13418
|
+
/** @description Context type of the item (required for partition-aware reads). */
|
|
13419
|
+
contextType: string;
|
|
13420
|
+
/** @description Dot-separated JSON path to the array of values inside `content`. Example: `enumValues` or `sample.values`. */
|
|
13421
|
+
contentKeyPath: string;
|
|
13422
|
+
/** @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. */
|
|
13423
|
+
pageSize?: number;
|
|
13424
|
+
/** @description Cursor offset (numeric). Legacy semantics — prefer `pageToken` for deep pages. */
|
|
13425
|
+
offset?: number;
|
|
13426
|
+
/** @description Opaque page token from a previous response's `nextPageToken`. */
|
|
13427
|
+
pageToken?: string;
|
|
13428
|
+
/** @description Case-insensitive substring search over each value. */
|
|
13429
|
+
searchQuery?: string;
|
|
13430
|
+
/** @description Optional prefix path applied to the data-path filter before slicing values (advanced). */
|
|
13431
|
+
dataPathPrefix?: string[];
|
|
13432
|
+
};
|
|
12902
13433
|
header?: never;
|
|
12903
|
-
path
|
|
12904
|
-
|
|
12905
|
-
|
|
12906
|
-
requestBody: {
|
|
12907
|
-
content: {
|
|
12908
|
-
"application/json": components["schemas"]["CreateLinkDto"];
|
|
13434
|
+
path: {
|
|
13435
|
+
/** @description UUID of the context item (unused on the underlying reader but kept for URL consistency). */
|
|
13436
|
+
uid: string;
|
|
12909
13437
|
};
|
|
13438
|
+
cookie?: never;
|
|
12910
13439
|
};
|
|
13440
|
+
requestBody?: never;
|
|
12911
13441
|
responses: {
|
|
12912
|
-
|
|
13442
|
+
200: {
|
|
12913
13443
|
headers: {
|
|
12914
13444
|
[name: string]: unknown;
|
|
12915
13445
|
};
|
|
12916
13446
|
content: {
|
|
12917
|
-
"application/json": components["schemas"]["
|
|
13447
|
+
"application/json": components["schemas"]["ListContextItemValuesResponseDto"];
|
|
12918
13448
|
};
|
|
12919
13449
|
};
|
|
12920
13450
|
/** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
|
|
@@ -12998,8 +13528,8 @@ interface operations {
|
|
|
12998
13528
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
12999
13529
|
};
|
|
13000
13530
|
};
|
|
13001
|
-
/** @description
|
|
13002
|
-
|
|
13531
|
+
/** @description Too many requests. Wait and retry later (`code: RATE_LIMITED`). */
|
|
13532
|
+
429: {
|
|
13003
13533
|
headers: {
|
|
13004
13534
|
[name: string]: unknown;
|
|
13005
13535
|
};
|
|
@@ -13007,9 +13537,9 @@ interface operations {
|
|
|
13007
13537
|
/**
|
|
13008
13538
|
* @example {
|
|
13009
13539
|
* "error": {
|
|
13010
|
-
* "code": "
|
|
13011
|
-
* "status": "
|
|
13012
|
-
* "message": "
|
|
13540
|
+
* "code": "RATE_LIMITED",
|
|
13541
|
+
* "status": "RESOURCE_EXHAUSTED",
|
|
13542
|
+
* "message": "Too many requests. Please retry after a short delay.",
|
|
13013
13543
|
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
13014
13544
|
* }
|
|
13015
13545
|
* }
|
|
@@ -13017,8 +13547,8 @@ interface operations {
|
|
|
13017
13547
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
13018
13548
|
};
|
|
13019
13549
|
};
|
|
13020
|
-
/** @description
|
|
13021
|
-
|
|
13550
|
+
/** @description An unexpected server error occurred (`code: INTERNAL_ERROR`). */
|
|
13551
|
+
500: {
|
|
13022
13552
|
headers: {
|
|
13023
13553
|
[name: string]: unknown;
|
|
13024
13554
|
};
|
|
@@ -13026,9 +13556,151 @@ interface operations {
|
|
|
13026
13556
|
/**
|
|
13027
13557
|
* @example {
|
|
13028
13558
|
* "error": {
|
|
13029
|
-
* "code": "
|
|
13030
|
-
* "status": "
|
|
13031
|
-
* "message": "
|
|
13559
|
+
* "code": "INTERNAL_ERROR",
|
|
13560
|
+
* "status": "INTERNAL",
|
|
13561
|
+
* "message": "An unexpected error occurred.",
|
|
13562
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
13563
|
+
* }
|
|
13564
|
+
* }
|
|
13565
|
+
*/
|
|
13566
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
13567
|
+
};
|
|
13568
|
+
};
|
|
13569
|
+
};
|
|
13570
|
+
};
|
|
13571
|
+
ContextCreatorsController_createLink: {
|
|
13572
|
+
parameters: {
|
|
13573
|
+
query?: never;
|
|
13574
|
+
header?: never;
|
|
13575
|
+
path?: never;
|
|
13576
|
+
cookie?: never;
|
|
13577
|
+
};
|
|
13578
|
+
requestBody: {
|
|
13579
|
+
content: {
|
|
13580
|
+
"application/json": components["schemas"]["CreateLinkDto"];
|
|
13581
|
+
};
|
|
13582
|
+
};
|
|
13583
|
+
responses: {
|
|
13584
|
+
201: {
|
|
13585
|
+
headers: {
|
|
13586
|
+
[name: string]: unknown;
|
|
13587
|
+
};
|
|
13588
|
+
content: {
|
|
13589
|
+
"application/json": components["schemas"]["CreatedContextItemResponseDto"];
|
|
13590
|
+
};
|
|
13591
|
+
};
|
|
13592
|
+
/** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
|
|
13593
|
+
400: {
|
|
13594
|
+
headers: {
|
|
13595
|
+
[name: string]: unknown;
|
|
13596
|
+
};
|
|
13597
|
+
content: {
|
|
13598
|
+
/**
|
|
13599
|
+
* @example {
|
|
13600
|
+
* "error": {
|
|
13601
|
+
* "code": "BAD_REQUEST",
|
|
13602
|
+
* "status": "INVALID_ARGUMENT",
|
|
13603
|
+
* "message": "Invalid value for query parameter `pageSize`.",
|
|
13604
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
13605
|
+
* }
|
|
13606
|
+
* }
|
|
13607
|
+
*/
|
|
13608
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
13609
|
+
};
|
|
13610
|
+
};
|
|
13611
|
+
/** @description Missing, invalid, or expired access token (`code: UNAUTHORIZED`). */
|
|
13612
|
+
401: {
|
|
13613
|
+
headers: {
|
|
13614
|
+
[name: string]: unknown;
|
|
13615
|
+
};
|
|
13616
|
+
content: {
|
|
13617
|
+
/**
|
|
13618
|
+
* @example {
|
|
13619
|
+
* "error": {
|
|
13620
|
+
* "code": "UNAUTHORIZED",
|
|
13621
|
+
* "status": "UNAUTHENTICATED",
|
|
13622
|
+
* "message": "Missing or invalid access token.",
|
|
13623
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
13624
|
+
* }
|
|
13625
|
+
* }
|
|
13626
|
+
*/
|
|
13627
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
13628
|
+
};
|
|
13629
|
+
};
|
|
13630
|
+
/** @description Authenticated, but the token lacks a required scope (`code: FORBIDDEN`). The missing scopes are listed in `info`. */
|
|
13631
|
+
403: {
|
|
13632
|
+
headers: {
|
|
13633
|
+
[name: string]: unknown;
|
|
13634
|
+
};
|
|
13635
|
+
content: {
|
|
13636
|
+
/**
|
|
13637
|
+
* @example {
|
|
13638
|
+
* "error": {
|
|
13639
|
+
* "code": "FORBIDDEN",
|
|
13640
|
+
* "status": "PERMISSION_DENIED",
|
|
13641
|
+
* "message": "Missing required scope(s) for this operation.",
|
|
13642
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS",
|
|
13643
|
+
* "info": {
|
|
13644
|
+
* "missing": [
|
|
13645
|
+
* "<required-scope>"
|
|
13646
|
+
* ]
|
|
13647
|
+
* }
|
|
13648
|
+
* }
|
|
13649
|
+
* }
|
|
13650
|
+
*/
|
|
13651
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
13652
|
+
};
|
|
13653
|
+
};
|
|
13654
|
+
/** @description The resource does not exist, or you do not have access to it (`code: NOT_FOUND`). */
|
|
13655
|
+
404: {
|
|
13656
|
+
headers: {
|
|
13657
|
+
[name: string]: unknown;
|
|
13658
|
+
};
|
|
13659
|
+
content: {
|
|
13660
|
+
/**
|
|
13661
|
+
* @example {
|
|
13662
|
+
* "error": {
|
|
13663
|
+
* "code": "NOT_FOUND",
|
|
13664
|
+
* "status": "NOT_FOUND",
|
|
13665
|
+
* "message": "Resource not found.",
|
|
13666
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
13667
|
+
* }
|
|
13668
|
+
* }
|
|
13669
|
+
*/
|
|
13670
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
13671
|
+
};
|
|
13672
|
+
};
|
|
13673
|
+
/** @description The request conflicts with the current state of the resource, e.g. a duplicate (`code: CONFLICT`). */
|
|
13674
|
+
409: {
|
|
13675
|
+
headers: {
|
|
13676
|
+
[name: string]: unknown;
|
|
13677
|
+
};
|
|
13678
|
+
content: {
|
|
13679
|
+
/**
|
|
13680
|
+
* @example {
|
|
13681
|
+
* "error": {
|
|
13682
|
+
* "code": "CONFLICT",
|
|
13683
|
+
* "status": "ALREADY_EXISTS",
|
|
13684
|
+
* "message": "A resource with that identifier already exists.",
|
|
13685
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
13686
|
+
* }
|
|
13687
|
+
* }
|
|
13688
|
+
*/
|
|
13689
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
13690
|
+
};
|
|
13691
|
+
};
|
|
13692
|
+
/** @description The request was well-formed but failed a business rule (`code: VALIDATION`). */
|
|
13693
|
+
422: {
|
|
13694
|
+
headers: {
|
|
13695
|
+
[name: string]: unknown;
|
|
13696
|
+
};
|
|
13697
|
+
content: {
|
|
13698
|
+
/**
|
|
13699
|
+
* @example {
|
|
13700
|
+
* "error": {
|
|
13701
|
+
* "code": "VALIDATION",
|
|
13702
|
+
* "status": "INVALID_ARGUMENT",
|
|
13703
|
+
* "message": "Updates that would revoke your own access are not allowed.",
|
|
13032
13704
|
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
13033
13705
|
* }
|
|
13034
13706
|
* }
|
|
@@ -13999,8 +14671,8 @@ interface operations {
|
|
|
13999
14671
|
/** @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
14672
|
toolName?: string;
|
|
14001
14673
|
/** @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. */
|
|
14674
|
+
source?: "home" | "agent_settings" | "agent" | "api" | "modus_api" | "mcp" | "slack" | "slack_dm" | "teams" | "context_chat" | "dashboard_copilot" | "dashboard_assistant" | "other";
|
|
14675
|
+
/** @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
14676
|
sourceRef?: string;
|
|
14005
14677
|
/** @description Filter by activity recency. Coarse server-side buckets. */
|
|
14006
14678
|
timeframe?: "last_day" | "this_week" | "this_month" | "last_7_days" | "last_30_days";
|
|
@@ -15648,8 +16320,8 @@ interface operations {
|
|
|
15648
16320
|
/** @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
16321
|
toolName?: string;
|
|
15650
16322
|
/** @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. */
|
|
16323
|
+
source?: "home" | "agent_settings" | "agent" | "api" | "modus_api" | "mcp" | "slack" | "slack_dm" | "teams" | "context_chat" | "dashboard_copilot" | "dashboard_assistant" | "other";
|
|
16324
|
+
/** @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
16325
|
sourceRef?: string;
|
|
15654
16326
|
/** @description Filter by activity recency. Coarse server-side buckets. */
|
|
15655
16327
|
timeframe?: "last_day" | "this_week" | "this_month" | "last_7_days" | "last_30_days";
|
|
@@ -16077,9 +16749,660 @@ interface operations {
|
|
|
16077
16749
|
/**
|
|
16078
16750
|
* @example {
|
|
16079
16751
|
* "error": {
|
|
16080
|
-
* "code": "VALIDATION",
|
|
16081
|
-
* "status": "INVALID_ARGUMENT",
|
|
16082
|
-
* "message": "Updates that would revoke your own access are not allowed.",
|
|
16752
|
+
* "code": "VALIDATION",
|
|
16753
|
+
* "status": "INVALID_ARGUMENT",
|
|
16754
|
+
* "message": "Updates that would revoke your own access are not allowed.",
|
|
16755
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
16756
|
+
* }
|
|
16757
|
+
* }
|
|
16758
|
+
*/
|
|
16759
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
16760
|
+
};
|
|
16761
|
+
};
|
|
16762
|
+
/** @description Too many requests. Wait and retry later (`code: RATE_LIMITED`). */
|
|
16763
|
+
429: {
|
|
16764
|
+
headers: {
|
|
16765
|
+
[name: string]: unknown;
|
|
16766
|
+
};
|
|
16767
|
+
content: {
|
|
16768
|
+
/**
|
|
16769
|
+
* @example {
|
|
16770
|
+
* "error": {
|
|
16771
|
+
* "code": "RATE_LIMITED",
|
|
16772
|
+
* "status": "RESOURCE_EXHAUSTED",
|
|
16773
|
+
* "message": "Too many requests. Please retry after a short delay.",
|
|
16774
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
16775
|
+
* }
|
|
16776
|
+
* }
|
|
16777
|
+
*/
|
|
16778
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
16779
|
+
};
|
|
16780
|
+
};
|
|
16781
|
+
/** @description An unexpected server error occurred (`code: INTERNAL_ERROR`). */
|
|
16782
|
+
500: {
|
|
16783
|
+
headers: {
|
|
16784
|
+
[name: string]: unknown;
|
|
16785
|
+
};
|
|
16786
|
+
content: {
|
|
16787
|
+
/**
|
|
16788
|
+
* @example {
|
|
16789
|
+
* "error": {
|
|
16790
|
+
* "code": "INTERNAL_ERROR",
|
|
16791
|
+
* "status": "INTERNAL",
|
|
16792
|
+
* "message": "An unexpected error occurred.",
|
|
16793
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
16794
|
+
* }
|
|
16795
|
+
* }
|
|
16796
|
+
*/
|
|
16797
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
16798
|
+
};
|
|
16799
|
+
};
|
|
16800
|
+
};
|
|
16801
|
+
};
|
|
16802
|
+
ScopesController_deploy: {
|
|
16803
|
+
parameters: {
|
|
16804
|
+
query?: never;
|
|
16805
|
+
header?: never;
|
|
16806
|
+
path: {
|
|
16807
|
+
/** @description Numeric scope id. */
|
|
16808
|
+
id: number;
|
|
16809
|
+
};
|
|
16810
|
+
cookie?: never;
|
|
16811
|
+
};
|
|
16812
|
+
requestBody?: {
|
|
16813
|
+
content: {
|
|
16814
|
+
"application/json": components["schemas"]["DeploySkillDto"];
|
|
16815
|
+
};
|
|
16816
|
+
};
|
|
16817
|
+
responses: {
|
|
16818
|
+
200: {
|
|
16819
|
+
headers: {
|
|
16820
|
+
[name: string]: unknown;
|
|
16821
|
+
};
|
|
16822
|
+
content: {
|
|
16823
|
+
"application/json": components["schemas"]["DeployResponseDto"];
|
|
16824
|
+
};
|
|
16825
|
+
};
|
|
16826
|
+
/** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
|
|
16827
|
+
400: {
|
|
16828
|
+
headers: {
|
|
16829
|
+
[name: string]: unknown;
|
|
16830
|
+
};
|
|
16831
|
+
content: {
|
|
16832
|
+
/**
|
|
16833
|
+
* @example {
|
|
16834
|
+
* "error": {
|
|
16835
|
+
* "code": "BAD_REQUEST",
|
|
16836
|
+
* "status": "INVALID_ARGUMENT",
|
|
16837
|
+
* "message": "Invalid value for query parameter `pageSize`.",
|
|
16838
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
16839
|
+
* }
|
|
16840
|
+
* }
|
|
16841
|
+
*/
|
|
16842
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
16843
|
+
};
|
|
16844
|
+
};
|
|
16845
|
+
/** @description Missing, invalid, or expired access token (`code: UNAUTHORIZED`). */
|
|
16846
|
+
401: {
|
|
16847
|
+
headers: {
|
|
16848
|
+
[name: string]: unknown;
|
|
16849
|
+
};
|
|
16850
|
+
content: {
|
|
16851
|
+
/**
|
|
16852
|
+
* @example {
|
|
16853
|
+
* "error": {
|
|
16854
|
+
* "code": "UNAUTHORIZED",
|
|
16855
|
+
* "status": "UNAUTHENTICATED",
|
|
16856
|
+
* "message": "Missing or invalid access token.",
|
|
16857
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
16858
|
+
* }
|
|
16859
|
+
* }
|
|
16860
|
+
*/
|
|
16861
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
16862
|
+
};
|
|
16863
|
+
};
|
|
16864
|
+
/** @description Authenticated, but the token lacks a required scope (`code: FORBIDDEN`). The missing scopes are listed in `info`. */
|
|
16865
|
+
403: {
|
|
16866
|
+
headers: {
|
|
16867
|
+
[name: string]: unknown;
|
|
16868
|
+
};
|
|
16869
|
+
content: {
|
|
16870
|
+
/**
|
|
16871
|
+
* @example {
|
|
16872
|
+
* "error": {
|
|
16873
|
+
* "code": "FORBIDDEN",
|
|
16874
|
+
* "status": "PERMISSION_DENIED",
|
|
16875
|
+
* "message": "Missing required scope(s) for this operation.",
|
|
16876
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS",
|
|
16877
|
+
* "info": {
|
|
16878
|
+
* "missing": [
|
|
16879
|
+
* "<required-scope>"
|
|
16880
|
+
* ]
|
|
16881
|
+
* }
|
|
16882
|
+
* }
|
|
16883
|
+
* }
|
|
16884
|
+
*/
|
|
16885
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
16886
|
+
};
|
|
16887
|
+
};
|
|
16888
|
+
/** @description The resource does not exist, or you do not have access to it (`code: NOT_FOUND`). */
|
|
16889
|
+
404: {
|
|
16890
|
+
headers: {
|
|
16891
|
+
[name: string]: unknown;
|
|
16892
|
+
};
|
|
16893
|
+
content: {
|
|
16894
|
+
/**
|
|
16895
|
+
* @example {
|
|
16896
|
+
* "error": {
|
|
16897
|
+
* "code": "NOT_FOUND",
|
|
16898
|
+
* "status": "NOT_FOUND",
|
|
16899
|
+
* "message": "Resource not found.",
|
|
16900
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
16901
|
+
* }
|
|
16902
|
+
* }
|
|
16903
|
+
*/
|
|
16904
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
16905
|
+
};
|
|
16906
|
+
};
|
|
16907
|
+
/** @description The request conflicts with the current state of the resource, e.g. a duplicate (`code: CONFLICT`). */
|
|
16908
|
+
409: {
|
|
16909
|
+
headers: {
|
|
16910
|
+
[name: string]: unknown;
|
|
16911
|
+
};
|
|
16912
|
+
content: {
|
|
16913
|
+
/**
|
|
16914
|
+
* @example {
|
|
16915
|
+
* "error": {
|
|
16916
|
+
* "code": "CONFLICT",
|
|
16917
|
+
* "status": "ALREADY_EXISTS",
|
|
16918
|
+
* "message": "A resource with that identifier already exists.",
|
|
16919
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
16920
|
+
* }
|
|
16921
|
+
* }
|
|
16922
|
+
*/
|
|
16923
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
16924
|
+
};
|
|
16925
|
+
};
|
|
16926
|
+
/** @description The request was well-formed but failed a business rule (`code: VALIDATION`). */
|
|
16927
|
+
422: {
|
|
16928
|
+
headers: {
|
|
16929
|
+
[name: string]: unknown;
|
|
16930
|
+
};
|
|
16931
|
+
content: {
|
|
16932
|
+
/**
|
|
16933
|
+
* @example {
|
|
16934
|
+
* "error": {
|
|
16935
|
+
* "code": "VALIDATION",
|
|
16936
|
+
* "status": "INVALID_ARGUMENT",
|
|
16937
|
+
* "message": "Updates that would revoke your own access are not allowed.",
|
|
16938
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
16939
|
+
* }
|
|
16940
|
+
* }
|
|
16941
|
+
*/
|
|
16942
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
16943
|
+
};
|
|
16944
|
+
};
|
|
16945
|
+
/** @description Too many requests. Wait and retry later (`code: RATE_LIMITED`). */
|
|
16946
|
+
429: {
|
|
16947
|
+
headers: {
|
|
16948
|
+
[name: string]: unknown;
|
|
16949
|
+
};
|
|
16950
|
+
content: {
|
|
16951
|
+
/**
|
|
16952
|
+
* @example {
|
|
16953
|
+
* "error": {
|
|
16954
|
+
* "code": "RATE_LIMITED",
|
|
16955
|
+
* "status": "RESOURCE_EXHAUSTED",
|
|
16956
|
+
* "message": "Too many requests. Please retry after a short delay.",
|
|
16957
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
16958
|
+
* }
|
|
16959
|
+
* }
|
|
16960
|
+
*/
|
|
16961
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
16962
|
+
};
|
|
16963
|
+
};
|
|
16964
|
+
/** @description An unexpected server error occurred (`code: INTERNAL_ERROR`). */
|
|
16965
|
+
500: {
|
|
16966
|
+
headers: {
|
|
16967
|
+
[name: string]: unknown;
|
|
16968
|
+
};
|
|
16969
|
+
content: {
|
|
16970
|
+
/**
|
|
16971
|
+
* @example {
|
|
16972
|
+
* "error": {
|
|
16973
|
+
* "code": "INTERNAL_ERROR",
|
|
16974
|
+
* "status": "INTERNAL",
|
|
16975
|
+
* "message": "An unexpected error occurred.",
|
|
16976
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
16977
|
+
* }
|
|
16978
|
+
* }
|
|
16979
|
+
*/
|
|
16980
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
16981
|
+
};
|
|
16982
|
+
};
|
|
16983
|
+
};
|
|
16984
|
+
};
|
|
16985
|
+
EvaluationsController_getConfig: {
|
|
16986
|
+
parameters: {
|
|
16987
|
+
query?: never;
|
|
16988
|
+
header?: never;
|
|
16989
|
+
path: {
|
|
16990
|
+
/** @description Scope ID */
|
|
16991
|
+
id: number;
|
|
16992
|
+
};
|
|
16993
|
+
cookie?: never;
|
|
16994
|
+
};
|
|
16995
|
+
requestBody?: never;
|
|
16996
|
+
responses: {
|
|
16997
|
+
200: {
|
|
16998
|
+
headers: {
|
|
16999
|
+
[name: string]: unknown;
|
|
17000
|
+
};
|
|
17001
|
+
content: {
|
|
17002
|
+
"application/json": components["schemas"]["EvaluationConfigDto"];
|
|
17003
|
+
};
|
|
17004
|
+
};
|
|
17005
|
+
/** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
|
|
17006
|
+
400: {
|
|
17007
|
+
headers: {
|
|
17008
|
+
[name: string]: unknown;
|
|
17009
|
+
};
|
|
17010
|
+
content: {
|
|
17011
|
+
/**
|
|
17012
|
+
* @example {
|
|
17013
|
+
* "error": {
|
|
17014
|
+
* "code": "BAD_REQUEST",
|
|
17015
|
+
* "status": "INVALID_ARGUMENT",
|
|
17016
|
+
* "message": "Invalid value for query parameter `pageSize`.",
|
|
17017
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
17018
|
+
* }
|
|
17019
|
+
* }
|
|
17020
|
+
*/
|
|
17021
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
17022
|
+
};
|
|
17023
|
+
};
|
|
17024
|
+
/** @description Missing, invalid, or expired access token (`code: UNAUTHORIZED`). */
|
|
17025
|
+
401: {
|
|
17026
|
+
headers: {
|
|
17027
|
+
[name: string]: unknown;
|
|
17028
|
+
};
|
|
17029
|
+
content: {
|
|
17030
|
+
/**
|
|
17031
|
+
* @example {
|
|
17032
|
+
* "error": {
|
|
17033
|
+
* "code": "UNAUTHORIZED",
|
|
17034
|
+
* "status": "UNAUTHENTICATED",
|
|
17035
|
+
* "message": "Missing or invalid access token.",
|
|
17036
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
17037
|
+
* }
|
|
17038
|
+
* }
|
|
17039
|
+
*/
|
|
17040
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
17041
|
+
};
|
|
17042
|
+
};
|
|
17043
|
+
/** @description Authenticated, but the token lacks a required scope (`code: FORBIDDEN`). The missing scopes are listed in `info`. */
|
|
17044
|
+
403: {
|
|
17045
|
+
headers: {
|
|
17046
|
+
[name: string]: unknown;
|
|
17047
|
+
};
|
|
17048
|
+
content: {
|
|
17049
|
+
/**
|
|
17050
|
+
* @example {
|
|
17051
|
+
* "error": {
|
|
17052
|
+
* "code": "FORBIDDEN",
|
|
17053
|
+
* "status": "PERMISSION_DENIED",
|
|
17054
|
+
* "message": "Missing required scope(s) for this operation.",
|
|
17055
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS",
|
|
17056
|
+
* "info": {
|
|
17057
|
+
* "missing": [
|
|
17058
|
+
* "<required-scope>"
|
|
17059
|
+
* ]
|
|
17060
|
+
* }
|
|
17061
|
+
* }
|
|
17062
|
+
* }
|
|
17063
|
+
*/
|
|
17064
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
17065
|
+
};
|
|
17066
|
+
};
|
|
17067
|
+
/** @description The resource does not exist, or you do not have access to it (`code: NOT_FOUND`). */
|
|
17068
|
+
404: {
|
|
17069
|
+
headers: {
|
|
17070
|
+
[name: string]: unknown;
|
|
17071
|
+
};
|
|
17072
|
+
content: {
|
|
17073
|
+
/**
|
|
17074
|
+
* @example {
|
|
17075
|
+
* "error": {
|
|
17076
|
+
* "code": "NOT_FOUND",
|
|
17077
|
+
* "status": "NOT_FOUND",
|
|
17078
|
+
* "message": "Resource not found.",
|
|
17079
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
17080
|
+
* }
|
|
17081
|
+
* }
|
|
17082
|
+
*/
|
|
17083
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
17084
|
+
};
|
|
17085
|
+
};
|
|
17086
|
+
/** @description Too many requests. Wait and retry later (`code: RATE_LIMITED`). */
|
|
17087
|
+
429: {
|
|
17088
|
+
headers: {
|
|
17089
|
+
[name: string]: unknown;
|
|
17090
|
+
};
|
|
17091
|
+
content: {
|
|
17092
|
+
/**
|
|
17093
|
+
* @example {
|
|
17094
|
+
* "error": {
|
|
17095
|
+
* "code": "RATE_LIMITED",
|
|
17096
|
+
* "status": "RESOURCE_EXHAUSTED",
|
|
17097
|
+
* "message": "Too many requests. Please retry after a short delay.",
|
|
17098
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
17099
|
+
* }
|
|
17100
|
+
* }
|
|
17101
|
+
*/
|
|
17102
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
17103
|
+
};
|
|
17104
|
+
};
|
|
17105
|
+
/** @description An unexpected server error occurred (`code: INTERNAL_ERROR`). */
|
|
17106
|
+
500: {
|
|
17107
|
+
headers: {
|
|
17108
|
+
[name: string]: unknown;
|
|
17109
|
+
};
|
|
17110
|
+
content: {
|
|
17111
|
+
/**
|
|
17112
|
+
* @example {
|
|
17113
|
+
* "error": {
|
|
17114
|
+
* "code": "INTERNAL_ERROR",
|
|
17115
|
+
* "status": "INTERNAL",
|
|
17116
|
+
* "message": "An unexpected error occurred.",
|
|
17117
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
17118
|
+
* }
|
|
17119
|
+
* }
|
|
17120
|
+
*/
|
|
17121
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
17122
|
+
};
|
|
17123
|
+
};
|
|
17124
|
+
};
|
|
17125
|
+
};
|
|
17126
|
+
EvaluationsController_updateConfig: {
|
|
17127
|
+
parameters: {
|
|
17128
|
+
query?: never;
|
|
17129
|
+
header?: never;
|
|
17130
|
+
path: {
|
|
17131
|
+
/** @description Scope ID */
|
|
17132
|
+
id: number;
|
|
17133
|
+
};
|
|
17134
|
+
cookie?: never;
|
|
17135
|
+
};
|
|
17136
|
+
requestBody: {
|
|
17137
|
+
content: {
|
|
17138
|
+
"application/json": components["schemas"]["UpdateEvaluationConfigDto"];
|
|
17139
|
+
};
|
|
17140
|
+
};
|
|
17141
|
+
responses: {
|
|
17142
|
+
200: {
|
|
17143
|
+
headers: {
|
|
17144
|
+
[name: string]: unknown;
|
|
17145
|
+
};
|
|
17146
|
+
content: {
|
|
17147
|
+
"application/json": components["schemas"]["EvaluationConfigDto"];
|
|
17148
|
+
};
|
|
17149
|
+
};
|
|
17150
|
+
/** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
|
|
17151
|
+
400: {
|
|
17152
|
+
headers: {
|
|
17153
|
+
[name: string]: unknown;
|
|
17154
|
+
};
|
|
17155
|
+
content: {
|
|
17156
|
+
/**
|
|
17157
|
+
* @example {
|
|
17158
|
+
* "error": {
|
|
17159
|
+
* "code": "BAD_REQUEST",
|
|
17160
|
+
* "status": "INVALID_ARGUMENT",
|
|
17161
|
+
* "message": "Invalid value for query parameter `pageSize`.",
|
|
17162
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
17163
|
+
* }
|
|
17164
|
+
* }
|
|
17165
|
+
*/
|
|
17166
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
17167
|
+
};
|
|
17168
|
+
};
|
|
17169
|
+
/** @description Missing, invalid, or expired access token (`code: UNAUTHORIZED`). */
|
|
17170
|
+
401: {
|
|
17171
|
+
headers: {
|
|
17172
|
+
[name: string]: unknown;
|
|
17173
|
+
};
|
|
17174
|
+
content: {
|
|
17175
|
+
/**
|
|
17176
|
+
* @example {
|
|
17177
|
+
* "error": {
|
|
17178
|
+
* "code": "UNAUTHORIZED",
|
|
17179
|
+
* "status": "UNAUTHENTICATED",
|
|
17180
|
+
* "message": "Missing or invalid access token.",
|
|
17181
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
17182
|
+
* }
|
|
17183
|
+
* }
|
|
17184
|
+
*/
|
|
17185
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
17186
|
+
};
|
|
17187
|
+
};
|
|
17188
|
+
/** @description Authenticated, but the token lacks a required scope (`code: FORBIDDEN`). The missing scopes are listed in `info`. */
|
|
17189
|
+
403: {
|
|
17190
|
+
headers: {
|
|
17191
|
+
[name: string]: unknown;
|
|
17192
|
+
};
|
|
17193
|
+
content: {
|
|
17194
|
+
/**
|
|
17195
|
+
* @example {
|
|
17196
|
+
* "error": {
|
|
17197
|
+
* "code": "FORBIDDEN",
|
|
17198
|
+
* "status": "PERMISSION_DENIED",
|
|
17199
|
+
* "message": "Missing required scope(s) for this operation.",
|
|
17200
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS",
|
|
17201
|
+
* "info": {
|
|
17202
|
+
* "missing": [
|
|
17203
|
+
* "<required-scope>"
|
|
17204
|
+
* ]
|
|
17205
|
+
* }
|
|
17206
|
+
* }
|
|
17207
|
+
* }
|
|
17208
|
+
*/
|
|
17209
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
17210
|
+
};
|
|
17211
|
+
};
|
|
17212
|
+
/** @description The resource does not exist, or you do not have access to it (`code: NOT_FOUND`). */
|
|
17213
|
+
404: {
|
|
17214
|
+
headers: {
|
|
17215
|
+
[name: string]: unknown;
|
|
17216
|
+
};
|
|
17217
|
+
content: {
|
|
17218
|
+
/**
|
|
17219
|
+
* @example {
|
|
17220
|
+
* "error": {
|
|
17221
|
+
* "code": "NOT_FOUND",
|
|
17222
|
+
* "status": "NOT_FOUND",
|
|
17223
|
+
* "message": "Resource not found.",
|
|
17224
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
17225
|
+
* }
|
|
17226
|
+
* }
|
|
17227
|
+
*/
|
|
17228
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
17229
|
+
};
|
|
17230
|
+
};
|
|
17231
|
+
/** @description The request conflicts with the current state of the resource, e.g. a duplicate (`code: CONFLICT`). */
|
|
17232
|
+
409: {
|
|
17233
|
+
headers: {
|
|
17234
|
+
[name: string]: unknown;
|
|
17235
|
+
};
|
|
17236
|
+
content: {
|
|
17237
|
+
/**
|
|
17238
|
+
* @example {
|
|
17239
|
+
* "error": {
|
|
17240
|
+
* "code": "CONFLICT",
|
|
17241
|
+
* "status": "ALREADY_EXISTS",
|
|
17242
|
+
* "message": "A resource with that identifier already exists.",
|
|
17243
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
17244
|
+
* }
|
|
17245
|
+
* }
|
|
17246
|
+
*/
|
|
17247
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
17248
|
+
};
|
|
17249
|
+
};
|
|
17250
|
+
/** @description The request was well-formed but failed a business rule (`code: VALIDATION`). */
|
|
17251
|
+
422: {
|
|
17252
|
+
headers: {
|
|
17253
|
+
[name: string]: unknown;
|
|
17254
|
+
};
|
|
17255
|
+
content: {
|
|
17256
|
+
/**
|
|
17257
|
+
* @example {
|
|
17258
|
+
* "error": {
|
|
17259
|
+
* "code": "VALIDATION",
|
|
17260
|
+
* "status": "INVALID_ARGUMENT",
|
|
17261
|
+
* "message": "Updates that would revoke your own access are not allowed.",
|
|
17262
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
17263
|
+
* }
|
|
17264
|
+
* }
|
|
17265
|
+
*/
|
|
17266
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
17267
|
+
};
|
|
17268
|
+
};
|
|
17269
|
+
/** @description Too many requests. Wait and retry later (`code: RATE_LIMITED`). */
|
|
17270
|
+
429: {
|
|
17271
|
+
headers: {
|
|
17272
|
+
[name: string]: unknown;
|
|
17273
|
+
};
|
|
17274
|
+
content: {
|
|
17275
|
+
/**
|
|
17276
|
+
* @example {
|
|
17277
|
+
* "error": {
|
|
17278
|
+
* "code": "RATE_LIMITED",
|
|
17279
|
+
* "status": "RESOURCE_EXHAUSTED",
|
|
17280
|
+
* "message": "Too many requests. Please retry after a short delay.",
|
|
17281
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
17282
|
+
* }
|
|
17283
|
+
* }
|
|
17284
|
+
*/
|
|
17285
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
17286
|
+
};
|
|
17287
|
+
};
|
|
17288
|
+
/** @description An unexpected server error occurred (`code: INTERNAL_ERROR`). */
|
|
17289
|
+
500: {
|
|
17290
|
+
headers: {
|
|
17291
|
+
[name: string]: unknown;
|
|
17292
|
+
};
|
|
17293
|
+
content: {
|
|
17294
|
+
/**
|
|
17295
|
+
* @example {
|
|
17296
|
+
* "error": {
|
|
17297
|
+
* "code": "INTERNAL_ERROR",
|
|
17298
|
+
* "status": "INTERNAL",
|
|
17299
|
+
* "message": "An unexpected error occurred.",
|
|
17300
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
17301
|
+
* }
|
|
17302
|
+
* }
|
|
17303
|
+
*/
|
|
17304
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
17305
|
+
};
|
|
17306
|
+
};
|
|
17307
|
+
};
|
|
17308
|
+
};
|
|
17309
|
+
EvaluationsController_listRuns: {
|
|
17310
|
+
parameters: {
|
|
17311
|
+
query?: {
|
|
17312
|
+
pageSize?: number;
|
|
17313
|
+
pageToken?: string;
|
|
17314
|
+
};
|
|
17315
|
+
header?: never;
|
|
17316
|
+
path: {
|
|
17317
|
+
/** @description Scope ID */
|
|
17318
|
+
id: number;
|
|
17319
|
+
};
|
|
17320
|
+
cookie?: never;
|
|
17321
|
+
};
|
|
17322
|
+
requestBody?: never;
|
|
17323
|
+
responses: {
|
|
17324
|
+
200: {
|
|
17325
|
+
headers: {
|
|
17326
|
+
[name: string]: unknown;
|
|
17327
|
+
};
|
|
17328
|
+
content: {
|
|
17329
|
+
"application/json": components["schemas"]["ListEvaluationRunsResponseDto"];
|
|
17330
|
+
};
|
|
17331
|
+
};
|
|
17332
|
+
/** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
|
|
17333
|
+
400: {
|
|
17334
|
+
headers: {
|
|
17335
|
+
[name: string]: unknown;
|
|
17336
|
+
};
|
|
17337
|
+
content: {
|
|
17338
|
+
/**
|
|
17339
|
+
* @example {
|
|
17340
|
+
* "error": {
|
|
17341
|
+
* "code": "BAD_REQUEST",
|
|
17342
|
+
* "status": "INVALID_ARGUMENT",
|
|
17343
|
+
* "message": "Invalid value for query parameter `pageSize`.",
|
|
17344
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
17345
|
+
* }
|
|
17346
|
+
* }
|
|
17347
|
+
*/
|
|
17348
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
17349
|
+
};
|
|
17350
|
+
};
|
|
17351
|
+
/** @description Missing, invalid, or expired access token (`code: UNAUTHORIZED`). */
|
|
17352
|
+
401: {
|
|
17353
|
+
headers: {
|
|
17354
|
+
[name: string]: unknown;
|
|
17355
|
+
};
|
|
17356
|
+
content: {
|
|
17357
|
+
/**
|
|
17358
|
+
* @example {
|
|
17359
|
+
* "error": {
|
|
17360
|
+
* "code": "UNAUTHORIZED",
|
|
17361
|
+
* "status": "UNAUTHENTICATED",
|
|
17362
|
+
* "message": "Missing or invalid access token.",
|
|
17363
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
17364
|
+
* }
|
|
17365
|
+
* }
|
|
17366
|
+
*/
|
|
17367
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
17368
|
+
};
|
|
17369
|
+
};
|
|
17370
|
+
/** @description Authenticated, but the token lacks a required scope (`code: FORBIDDEN`). The missing scopes are listed in `info`. */
|
|
17371
|
+
403: {
|
|
17372
|
+
headers: {
|
|
17373
|
+
[name: string]: unknown;
|
|
17374
|
+
};
|
|
17375
|
+
content: {
|
|
17376
|
+
/**
|
|
17377
|
+
* @example {
|
|
17378
|
+
* "error": {
|
|
17379
|
+
* "code": "FORBIDDEN",
|
|
17380
|
+
* "status": "PERMISSION_DENIED",
|
|
17381
|
+
* "message": "Missing required scope(s) for this operation.",
|
|
17382
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS",
|
|
17383
|
+
* "info": {
|
|
17384
|
+
* "missing": [
|
|
17385
|
+
* "<required-scope>"
|
|
17386
|
+
* ]
|
|
17387
|
+
* }
|
|
17388
|
+
* }
|
|
17389
|
+
* }
|
|
17390
|
+
*/
|
|
17391
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
17392
|
+
};
|
|
17393
|
+
};
|
|
17394
|
+
/** @description The resource does not exist, or you do not have access to it (`code: NOT_FOUND`). */
|
|
17395
|
+
404: {
|
|
17396
|
+
headers: {
|
|
17397
|
+
[name: string]: unknown;
|
|
17398
|
+
};
|
|
17399
|
+
content: {
|
|
17400
|
+
/**
|
|
17401
|
+
* @example {
|
|
17402
|
+
* "error": {
|
|
17403
|
+
* "code": "NOT_FOUND",
|
|
17404
|
+
* "status": "NOT_FOUND",
|
|
17405
|
+
* "message": "Resource not found.",
|
|
16083
17406
|
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
16084
17407
|
* }
|
|
16085
17408
|
* }
|
|
@@ -16127,28 +17450,25 @@ interface operations {
|
|
|
16127
17450
|
};
|
|
16128
17451
|
};
|
|
16129
17452
|
};
|
|
16130
|
-
|
|
17453
|
+
EvaluationsController_triggerRun: {
|
|
16131
17454
|
parameters: {
|
|
16132
17455
|
query?: never;
|
|
16133
17456
|
header?: never;
|
|
16134
17457
|
path: {
|
|
16135
|
-
/** @description
|
|
17458
|
+
/** @description Scope ID */
|
|
16136
17459
|
id: number;
|
|
16137
17460
|
};
|
|
16138
17461
|
cookie?: never;
|
|
16139
17462
|
};
|
|
16140
|
-
requestBody?:
|
|
16141
|
-
content: {
|
|
16142
|
-
"application/json": components["schemas"]["DeploySkillDto"];
|
|
16143
|
-
};
|
|
16144
|
-
};
|
|
17463
|
+
requestBody?: never;
|
|
16145
17464
|
responses: {
|
|
16146
|
-
|
|
17465
|
+
/** @description Evaluation run accepted and queued. The run executes asynchronously; poll `GET /scopes/{id}/evaluations/runs/{runId}` for status. */
|
|
17466
|
+
202: {
|
|
16147
17467
|
headers: {
|
|
16148
17468
|
[name: string]: unknown;
|
|
16149
17469
|
};
|
|
16150
17470
|
content: {
|
|
16151
|
-
"application/json": components["schemas"]["
|
|
17471
|
+
"application/json": components["schemas"]["TriggerEvaluationRunResponseDto"];
|
|
16152
17472
|
};
|
|
16153
17473
|
};
|
|
16154
17474
|
/** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
|
|
@@ -16310,13 +17630,15 @@ interface operations {
|
|
|
16310
17630
|
};
|
|
16311
17631
|
};
|
|
16312
17632
|
};
|
|
16313
|
-
|
|
17633
|
+
EvaluationsController_getRun: {
|
|
16314
17634
|
parameters: {
|
|
16315
17635
|
query?: never;
|
|
16316
17636
|
header?: never;
|
|
16317
17637
|
path: {
|
|
16318
17638
|
/** @description Scope ID */
|
|
16319
17639
|
id: number;
|
|
17640
|
+
/** @description Run ID */
|
|
17641
|
+
runId: string;
|
|
16320
17642
|
};
|
|
16321
17643
|
cookie?: never;
|
|
16322
17644
|
};
|
|
@@ -16327,7 +17649,7 @@ interface operations {
|
|
|
16327
17649
|
[name: string]: unknown;
|
|
16328
17650
|
};
|
|
16329
17651
|
content: {
|
|
16330
|
-
"application/json": components["schemas"]["
|
|
17652
|
+
"application/json": components["schemas"]["EvaluationRunWithResultsDto"];
|
|
16331
17653
|
};
|
|
16332
17654
|
};
|
|
16333
17655
|
/** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
|
|
@@ -16451,28 +17773,24 @@ interface operations {
|
|
|
16451
17773
|
};
|
|
16452
17774
|
};
|
|
16453
17775
|
};
|
|
16454
|
-
|
|
17776
|
+
ScopeInterfacesController_list: {
|
|
16455
17777
|
parameters: {
|
|
16456
17778
|
query?: never;
|
|
16457
17779
|
header?: never;
|
|
16458
17780
|
path: {
|
|
16459
|
-
/** @description
|
|
17781
|
+
/** @description Numeric scope id. */
|
|
16460
17782
|
id: number;
|
|
16461
17783
|
};
|
|
16462
17784
|
cookie?: never;
|
|
16463
17785
|
};
|
|
16464
|
-
requestBody
|
|
16465
|
-
content: {
|
|
16466
|
-
"application/json": components["schemas"]["UpdateEvaluationConfigDto"];
|
|
16467
|
-
};
|
|
16468
|
-
};
|
|
17786
|
+
requestBody?: never;
|
|
16469
17787
|
responses: {
|
|
16470
17788
|
200: {
|
|
16471
17789
|
headers: {
|
|
16472
17790
|
[name: string]: unknown;
|
|
16473
17791
|
};
|
|
16474
17792
|
content: {
|
|
16475
|
-
"application/json": components["schemas"]["
|
|
17793
|
+
"application/json": components["schemas"]["ListScopeInterfacesResponseDto"];
|
|
16476
17794
|
};
|
|
16477
17795
|
};
|
|
16478
17796
|
/** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
|
|
@@ -16556,44 +17874,6 @@ interface operations {
|
|
|
16556
17874
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
16557
17875
|
};
|
|
16558
17876
|
};
|
|
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
17877
|
/** @description Too many requests. Wait and retry later (`code: RATE_LIMITED`). */
|
|
16598
17878
|
429: {
|
|
16599
17879
|
headers: {
|
|
@@ -16634,27 +17914,28 @@ interface operations {
|
|
|
16634
17914
|
};
|
|
16635
17915
|
};
|
|
16636
17916
|
};
|
|
16637
|
-
|
|
17917
|
+
ScopeInterfacesController_add: {
|
|
16638
17918
|
parameters: {
|
|
16639
|
-
query?:
|
|
16640
|
-
pageSize?: number;
|
|
16641
|
-
pageToken?: string;
|
|
16642
|
-
};
|
|
17919
|
+
query?: never;
|
|
16643
17920
|
header?: never;
|
|
16644
17921
|
path: {
|
|
16645
|
-
/** @description
|
|
17922
|
+
/** @description Numeric scope id. */
|
|
16646
17923
|
id: number;
|
|
16647
17924
|
};
|
|
16648
17925
|
cookie?: never;
|
|
16649
17926
|
};
|
|
16650
|
-
requestBody
|
|
17927
|
+
requestBody: {
|
|
17928
|
+
content: {
|
|
17929
|
+
"application/json": components["schemas"]["AddScopeInterfaceDto"];
|
|
17930
|
+
};
|
|
17931
|
+
};
|
|
16651
17932
|
responses: {
|
|
16652
|
-
|
|
17933
|
+
201: {
|
|
16653
17934
|
headers: {
|
|
16654
17935
|
[name: string]: unknown;
|
|
16655
17936
|
};
|
|
16656
17937
|
content: {
|
|
16657
|
-
"application/json": components["schemas"]["
|
|
17938
|
+
"application/json": components["schemas"]["ScopeInterfaceDto"];
|
|
16658
17939
|
};
|
|
16659
17940
|
};
|
|
16660
17941
|
/** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
|
|
@@ -16738,6 +18019,44 @@ interface operations {
|
|
|
16738
18019
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
16739
18020
|
};
|
|
16740
18021
|
};
|
|
18022
|
+
/** @description The request conflicts with the current state of the resource, e.g. a duplicate (`code: CONFLICT`). */
|
|
18023
|
+
409: {
|
|
18024
|
+
headers: {
|
|
18025
|
+
[name: string]: unknown;
|
|
18026
|
+
};
|
|
18027
|
+
content: {
|
|
18028
|
+
/**
|
|
18029
|
+
* @example {
|
|
18030
|
+
* "error": {
|
|
18031
|
+
* "code": "CONFLICT",
|
|
18032
|
+
* "status": "ALREADY_EXISTS",
|
|
18033
|
+
* "message": "A resource with that identifier already exists.",
|
|
18034
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
18035
|
+
* }
|
|
18036
|
+
* }
|
|
18037
|
+
*/
|
|
18038
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18039
|
+
};
|
|
18040
|
+
};
|
|
18041
|
+
/** @description The request was well-formed but failed a business rule (`code: VALIDATION`). */
|
|
18042
|
+
422: {
|
|
18043
|
+
headers: {
|
|
18044
|
+
[name: string]: unknown;
|
|
18045
|
+
};
|
|
18046
|
+
content: {
|
|
18047
|
+
/**
|
|
18048
|
+
* @example {
|
|
18049
|
+
* "error": {
|
|
18050
|
+
* "code": "VALIDATION",
|
|
18051
|
+
* "status": "INVALID_ARGUMENT",
|
|
18052
|
+
* "message": "Updates that would revoke your own access are not allowed.",
|
|
18053
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
18054
|
+
* }
|
|
18055
|
+
* }
|
|
18056
|
+
*/
|
|
18057
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18058
|
+
};
|
|
18059
|
+
};
|
|
16741
18060
|
/** @description Too many requests. Wait and retry later (`code: RATE_LIMITED`). */
|
|
16742
18061
|
429: {
|
|
16743
18062
|
headers: {
|
|
@@ -16778,26 +18097,25 @@ interface operations {
|
|
|
16778
18097
|
};
|
|
16779
18098
|
};
|
|
16780
18099
|
};
|
|
16781
|
-
|
|
18100
|
+
ScopeInterfacesController_delete: {
|
|
16782
18101
|
parameters: {
|
|
16783
18102
|
query?: never;
|
|
16784
18103
|
header?: never;
|
|
16785
18104
|
path: {
|
|
16786
|
-
/** @description
|
|
18105
|
+
/** @description Numeric scope id. */
|
|
16787
18106
|
id: number;
|
|
18107
|
+
/** @description Interface id (UUID). */
|
|
18108
|
+
interfaceId: string;
|
|
16788
18109
|
};
|
|
16789
18110
|
cookie?: never;
|
|
16790
18111
|
};
|
|
16791
18112
|
requestBody?: never;
|
|
16792
18113
|
responses: {
|
|
16793
|
-
|
|
16794
|
-
202: {
|
|
18114
|
+
204: {
|
|
16795
18115
|
headers: {
|
|
16796
18116
|
[name: string]: unknown;
|
|
16797
18117
|
};
|
|
16798
|
-
content
|
|
16799
|
-
"application/json": components["schemas"]["TriggerEvaluationRunResponseDto"];
|
|
16800
|
-
};
|
|
18118
|
+
content?: never;
|
|
16801
18119
|
};
|
|
16802
18120
|
/** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
|
|
16803
18121
|
400: {
|
|
@@ -16958,26 +18276,33 @@ interface operations {
|
|
|
16958
18276
|
};
|
|
16959
18277
|
};
|
|
16960
18278
|
};
|
|
16961
|
-
|
|
18279
|
+
ScopeInterfacesController_update: {
|
|
16962
18280
|
parameters: {
|
|
16963
|
-
query?:
|
|
18281
|
+
query?: {
|
|
18282
|
+
/** @description Comma-separated list of fields to update. Omit to update all provided fields. */
|
|
18283
|
+
updateMask?: string;
|
|
18284
|
+
};
|
|
16964
18285
|
header?: never;
|
|
16965
18286
|
path: {
|
|
16966
|
-
/** @description
|
|
18287
|
+
/** @description Numeric scope id. */
|
|
16967
18288
|
id: number;
|
|
16968
|
-
/** @description
|
|
16969
|
-
|
|
18289
|
+
/** @description Interface id (UUID). */
|
|
18290
|
+
interfaceId: string;
|
|
16970
18291
|
};
|
|
16971
18292
|
cookie?: never;
|
|
16972
18293
|
};
|
|
16973
|
-
requestBody
|
|
18294
|
+
requestBody: {
|
|
18295
|
+
content: {
|
|
18296
|
+
"application/json": components["schemas"]["UpdateScopeInterfaceDto"];
|
|
18297
|
+
};
|
|
18298
|
+
};
|
|
16974
18299
|
responses: {
|
|
16975
18300
|
200: {
|
|
16976
18301
|
headers: {
|
|
16977
18302
|
[name: string]: unknown;
|
|
16978
18303
|
};
|
|
16979
18304
|
content: {
|
|
16980
|
-
"application/json": components["schemas"]["
|
|
18305
|
+
"application/json": components["schemas"]["ScopeInterfaceDto"];
|
|
16981
18306
|
};
|
|
16982
18307
|
};
|
|
16983
18308
|
/** @description Malformed request — invalid query parameters or request body (`code: BAD_REQUEST`). */
|
|
@@ -17061,6 +18386,44 @@ interface operations {
|
|
|
17061
18386
|
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
17062
18387
|
};
|
|
17063
18388
|
};
|
|
18389
|
+
/** @description The request conflicts with the current state of the resource, e.g. a duplicate (`code: CONFLICT`). */
|
|
18390
|
+
409: {
|
|
18391
|
+
headers: {
|
|
18392
|
+
[name: string]: unknown;
|
|
18393
|
+
};
|
|
18394
|
+
content: {
|
|
18395
|
+
/**
|
|
18396
|
+
* @example {
|
|
18397
|
+
* "error": {
|
|
18398
|
+
* "code": "CONFLICT",
|
|
18399
|
+
* "status": "ALREADY_EXISTS",
|
|
18400
|
+
* "message": "A resource with that identifier already exists.",
|
|
18401
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
18402
|
+
* }
|
|
18403
|
+
* }
|
|
18404
|
+
*/
|
|
18405
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18406
|
+
};
|
|
18407
|
+
};
|
|
18408
|
+
/** @description The request was well-formed but failed a business rule (`code: VALIDATION`). */
|
|
18409
|
+
422: {
|
|
18410
|
+
headers: {
|
|
18411
|
+
[name: string]: unknown;
|
|
18412
|
+
};
|
|
18413
|
+
content: {
|
|
18414
|
+
/**
|
|
18415
|
+
* @example {
|
|
18416
|
+
* "error": {
|
|
18417
|
+
* "code": "VALIDATION",
|
|
18418
|
+
* "status": "INVALID_ARGUMENT",
|
|
18419
|
+
* "message": "Updates that would revoke your own access are not allowed.",
|
|
18420
|
+
* "requestId": "req_01HQ7K8ABCDEFGHIJKLMNOPQRS"
|
|
18421
|
+
* }
|
|
18422
|
+
* }
|
|
18423
|
+
*/
|
|
18424
|
+
"application/json": components["schemas"]["ErrorResponseDto"];
|
|
18425
|
+
};
|
|
18426
|
+
};
|
|
17064
18427
|
/** @description Too many requests. Wait and retry later (`code: RATE_LIMITED`). */
|
|
17065
18428
|
429: {
|
|
17066
18429
|
headers: {
|
|
@@ -24092,6 +25455,16 @@ declare const OPERATIONS: {
|
|
|
24092
25455
|
readonly requestSchema: null;
|
|
24093
25456
|
readonly responseSchema: "ListConnectionsResponseDto";
|
|
24094
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
|
+
};
|
|
24095
25468
|
readonly ContextCreatorsController_createLink: {
|
|
24096
25469
|
readonly method: "POST";
|
|
24097
25470
|
readonly path: "/api/v1/context/links";
|
|
@@ -24228,7 +25601,7 @@ declare const OPERATIONS: {
|
|
|
24228
25601
|
readonly service: "modus-api";
|
|
24229
25602
|
readonly serverUrl: "https://api.getmodus.com";
|
|
24230
25603
|
readonly pathParams: readonly [];
|
|
24231
|
-
readonly queryParams: readonly ["pageToken", "pageSize", "contextTypes", "verificationStatuses", "searchQuery", "topics"];
|
|
25604
|
+
readonly queryParams: readonly ["pageToken", "pageSize", "contextTypes", "verificationStatuses", "searchQuery", "topics", "connectionIds", "parentUids", "ancestorUids"];
|
|
24232
25605
|
readonly requestSchema: null;
|
|
24233
25606
|
readonly responseSchema: "ListContextItemsResponseDto";
|
|
24234
25607
|
};
|
|
@@ -24252,6 +25625,16 @@ declare const OPERATIONS: {
|
|
|
24252
25625
|
readonly requestSchema: "LookupContextItemDto";
|
|
24253
25626
|
readonly responseSchema: "LookupContextItemResponseDto";
|
|
24254
25627
|
};
|
|
25628
|
+
readonly ContextItemsController_move: {
|
|
25629
|
+
readonly method: "POST";
|
|
25630
|
+
readonly path: "/api/v1/context/items/{uid}/move";
|
|
25631
|
+
readonly service: "modus-api";
|
|
25632
|
+
readonly serverUrl: "https://api.getmodus.com";
|
|
25633
|
+
readonly pathParams: readonly ["uid"];
|
|
25634
|
+
readonly queryParams: readonly [];
|
|
25635
|
+
readonly requestSchema: "MoveContextItemDto";
|
|
25636
|
+
readonly responseSchema: "MoveContextItemResponseDto";
|
|
25637
|
+
};
|
|
24255
25638
|
readonly ContextItemsController_update: {
|
|
24256
25639
|
readonly method: "PATCH";
|
|
24257
25640
|
readonly path: "/api/v1/context/items/{uid}";
|
|
@@ -24792,6 +26175,46 @@ declare const OPERATIONS: {
|
|
|
24792
26175
|
readonly requestSchema: null;
|
|
24793
26176
|
readonly responseSchema: "ListConversationsResponseDto";
|
|
24794
26177
|
};
|
|
26178
|
+
readonly ScopeInterfacesController_add: {
|
|
26179
|
+
readonly method: "POST";
|
|
26180
|
+
readonly path: "/api/v1/scopes/{id}/interfaces";
|
|
26181
|
+
readonly service: "modus-api";
|
|
26182
|
+
readonly serverUrl: "https://api.getmodus.com";
|
|
26183
|
+
readonly pathParams: readonly ["id"];
|
|
26184
|
+
readonly queryParams: readonly [];
|
|
26185
|
+
readonly requestSchema: "AddScopeInterfaceDto";
|
|
26186
|
+
readonly responseSchema: "ScopeInterfaceDto";
|
|
26187
|
+
};
|
|
26188
|
+
readonly ScopeInterfacesController_delete: {
|
|
26189
|
+
readonly method: "DELETE";
|
|
26190
|
+
readonly path: "/api/v1/scopes/{id}/interfaces/{interfaceId}";
|
|
26191
|
+
readonly service: "modus-api";
|
|
26192
|
+
readonly serverUrl: "https://api.getmodus.com";
|
|
26193
|
+
readonly pathParams: readonly ["id", "interfaceId"];
|
|
26194
|
+
readonly queryParams: readonly [];
|
|
26195
|
+
readonly requestSchema: null;
|
|
26196
|
+
readonly responseSchema: null;
|
|
26197
|
+
};
|
|
26198
|
+
readonly ScopeInterfacesController_list: {
|
|
26199
|
+
readonly method: "GET";
|
|
26200
|
+
readonly path: "/api/v1/scopes/{id}/interfaces";
|
|
26201
|
+
readonly service: "modus-api";
|
|
26202
|
+
readonly serverUrl: "https://api.getmodus.com";
|
|
26203
|
+
readonly pathParams: readonly ["id"];
|
|
26204
|
+
readonly queryParams: readonly [];
|
|
26205
|
+
readonly requestSchema: null;
|
|
26206
|
+
readonly responseSchema: "ListScopeInterfacesResponseDto";
|
|
26207
|
+
};
|
|
26208
|
+
readonly ScopeInterfacesController_update: {
|
|
26209
|
+
readonly method: "PATCH";
|
|
26210
|
+
readonly path: "/api/v1/scopes/{id}/interfaces/{interfaceId}";
|
|
26211
|
+
readonly service: "modus-api";
|
|
26212
|
+
readonly serverUrl: "https://api.getmodus.com";
|
|
26213
|
+
readonly pathParams: readonly ["id", "interfaceId"];
|
|
26214
|
+
readonly queryParams: readonly ["updateMask"];
|
|
26215
|
+
readonly requestSchema: "UpdateScopeInterfaceDto";
|
|
26216
|
+
readonly responseSchema: "ScopeInterfaceDto";
|
|
26217
|
+
};
|
|
24795
26218
|
readonly ScopeMemoriesController_delete: {
|
|
24796
26219
|
readonly method: "DELETE";
|
|
24797
26220
|
readonly path: "/api/v1/scopes/{id}/memories/{memoryId}";
|
|
@@ -25360,8 +26783,10 @@ declare function conversationSkillId(item: ConversationListItem): number | undef
|
|
|
25360
26783
|
type VariationView = 'active' | 'draft';
|
|
25361
26784
|
|
|
25362
26785
|
type ContextItem = components['schemas']['ContextItemDto'];
|
|
26786
|
+
type ContextItemAncestor = components['schemas']['ContextItemAncestorDto'];
|
|
25363
26787
|
type ContextItemLookupRow = components['schemas']['LookupContextItemRowDto'];
|
|
25364
26788
|
type ContextItemDeletion = components['schemas']['DeleteContextItemResponseDto'];
|
|
26789
|
+
type ContextItemMove = components['schemas']['MoveContextItemResponseDto'];
|
|
25365
26790
|
/** Create response; ``uid`` mirrors ``contextItemId`` for list/get parity. */
|
|
25366
26791
|
type CreatedContextItem = components['schemas']['CreatedContextItemResponseDto'] & {
|
|
25367
26792
|
uid: string;
|
|
@@ -25421,6 +26846,11 @@ interface CreatedCustomContextItem {
|
|
|
25421
26846
|
/** Same value as ``contextItemId`` — prefer this in new code (list/get parity). */
|
|
25422
26847
|
uid: string;
|
|
25423
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
|
+
*/
|
|
25424
26854
|
dataPath: string[];
|
|
25425
26855
|
title: string | null;
|
|
25426
26856
|
}
|
|
@@ -25430,6 +26860,28 @@ interface CustomContextItemDeletion {
|
|
|
25430
26860
|
}
|
|
25431
26861
|
/**
|
|
25432
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.
|
|
25433
26885
|
*/
|
|
25434
26886
|
declare class CustomContextItemsResource {
|
|
25435
26887
|
private readonly http;
|
|
@@ -25441,7 +26893,7 @@ declare class CustomContextItemsResource {
|
|
|
25441
26893
|
*
|
|
25442
26894
|
* @param options.pageSize - Maximum items per page (default 25).
|
|
25443
26895
|
* @param options.pageToken - Opaque token from a previous page.
|
|
25444
|
-
* @param options.searchQuery -
|
|
26896
|
+
* @param options.searchQuery - Word search: returns rows that contain every word of the query, case-insensitive.
|
|
25445
26897
|
* @param options.topics - Filter to items tagged with any of these topics.
|
|
25446
26898
|
* @returns A page of custom context items.
|
|
25447
26899
|
* @example
|
|
@@ -25484,12 +26936,16 @@ declare class CustomContextItemsResource {
|
|
|
25484
26936
|
* @example
|
|
25485
26937
|
* ```ts
|
|
25486
26938
|
* const client = new Modus()
|
|
26939
|
+
* // Create the source and collection first, or use batchCreate as shown below.
|
|
25487
26940
|
* const created = await client.context.customItems.create({
|
|
25488
26941
|
* kind: 'entity',
|
|
25489
|
-
* sourceId: '
|
|
26942
|
+
* sourceId: 'billing-db',
|
|
26943
|
+
* collectionId: 'contracts',
|
|
26944
|
+
* externalId: 'contract-123',
|
|
25490
26945
|
* name: 'Q3 churn notes',
|
|
25491
26946
|
* content: { summary: 'Key findings…' },
|
|
25492
26947
|
* })
|
|
26948
|
+
* console.log(created.uid, created.dataPath)
|
|
25493
26949
|
* ```
|
|
25494
26950
|
*/
|
|
25495
26951
|
create(input: CreateCustomContextItemInput): Promise<CreatedCustomContextItem>;
|
|
@@ -25503,9 +26959,22 @@ declare class CustomContextItemsResource {
|
|
|
25503
26959
|
* ```ts
|
|
25504
26960
|
* const client = new Modus()
|
|
25505
26961
|
* const created = await client.context.customItems.batchCreate([
|
|
25506
|
-
* { kind: '
|
|
25507
|
-
* {
|
|
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
|
+
* },
|
|
25508
26976
|
* ])
|
|
26977
|
+
* console.log(created.map((item) => item.dataPath))
|
|
25509
26978
|
* ```
|
|
25510
26979
|
*/
|
|
25511
26980
|
batchCreate(inputs: CreateCustomContextItemInput[]): Promise<CreatedCustomContextItem[]>;
|
|
@@ -25556,24 +27025,30 @@ declare class CustomContextItemsResource {
|
|
|
25556
27025
|
delete(uid: string): Promise<CustomContextItemDeletion>;
|
|
25557
27026
|
}
|
|
25558
27027
|
|
|
25559
|
-
/**
|
|
25560
|
-
declare class
|
|
25561
|
-
|
|
25562
|
-
|
|
25563
|
-
|
|
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 */
|
|
25564
27034
|
constructor(http: HttpClient, config: ModusConfig, scopeId: number | string);
|
|
25565
27035
|
/**
|
|
25566
|
-
* List
|
|
27036
|
+
* List scope conversations.
|
|
25567
27037
|
*
|
|
25568
|
-
*
|
|
25569
|
-
*
|
|
25570
|
-
*
|
|
25571
|
-
*
|
|
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.
|
|
25572
27048
|
* @param options.sourceRef - Narrow `source` to one instance of that surface — for
|
|
25573
|
-
* `
|
|
25574
|
-
*
|
|
25575
|
-
*
|
|
25576
|
-
* @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.
|
|
25577
27052
|
*
|
|
25578
27053
|
* @example
|
|
25579
27054
|
* ```ts
|
|
@@ -25590,7 +27065,11 @@ declare class ScopeConversationsResource {
|
|
|
25590
27065
|
source?: string;
|
|
25591
27066
|
sourceRef?: string;
|
|
25592
27067
|
}): Promise<Page<ConversationListItem>>;
|
|
25593
|
-
|
|
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 {
|
|
25594
27073
|
/**
|
|
25595
27074
|
* Retrieve a thread with full message history.
|
|
25596
27075
|
*
|
|
@@ -25613,4 +27092,4 @@ declare class ScopeConversationsResource {
|
|
|
25613
27092
|
}): Promise<Conversation>;
|
|
25614
27093
|
}
|
|
25615
27094
|
|
|
25616
|
-
export { type Agent as A, type ContextItem as C, HttpClient as H, type ModusConfig as M, OPERATIONS as O, Page as P,
|
|
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 };
|