@collective-intelligence/external-apps-client-sdk 0.3.8 → 0.3.9
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/AGENTS.md +1 -0
- package/dist/effect.d.ts +3 -3
- package/dist/{index-DFCHAlar.d.ts → index-D0f9UvVk.d.ts} +97 -97
- package/dist/index.d.ts +1 -1
- package/docs/guide/ai/index.md +1 -1
- package/docs/guide/data/connectors.md +1 -1
- package/docs/guide/develop/extensions.md +1 -1
- package/docs/guide/index.md +1 -0
- package/docs/guide/platform/built-ins.md +225 -0
- package/package.json +4 -4
package/AGENTS.md
CHANGED
|
@@ -39,3 +39,4 @@ package `README.md` holds the full API.
|
|
|
39
39
|
## Platform guide
|
|
40
40
|
|
|
41
41
|
- [docs/guide/index.md](docs/guide/index.md): read before choosing CI primitives for a solution or demo, or when a task needs the platform model (architecture, access, data, AI, template).
|
|
42
|
+
- [docs/guide/platform/built-ins.md](docs/guide/platform/built-ins.md): read before declaring a tool, workflow node, trigger, connector, connection, schema or notification channel, to reuse the `builtin.` FQN that CI already ships and to check which built-in packages an Organization has installed.
|
package/dist/effect.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { A as FederatedAuthError, D as CiError, O as CiErrorCode, d as FederatedAuthValue, f as layerFederated, h as layerServerSessionConfig, i as ClientFetch, j as FederatedAuthErrorCode, k as CiTransportError, m as layerServerSession, p as layerFederatedConfig, u as FederatedAuth } from "./proxy-DRPEFvaV.js";
|
|
2
2
|
import { A as layerProxyConfig, C as CiClient, D as layerDirectConfig, E as layerDirect, O as layerFromExecutor, S as layer, T as ExecuteResult, _ as CiStreamPage$1, b as Chat, d as RunFollowOptions, f as Runs, k as layerProxy, m as layer$5, p as RunsValue, u as DEFAULT_FOLLOW_RUN_DEADLINE_MS, w as CiClientValue, x as ChatValue } from "./client-_rl-iXS8.js";
|
|
3
|
-
import { C as RealtimeChange, T as RealtimeTopicFilter, f as DelegatedApplicationRuntimeOptions, p as DelegatedRuntimeState, w as RealtimeTopic } from "./index-
|
|
3
|
+
import { C as RealtimeChange, T as RealtimeTopicFilter, f as DelegatedApplicationRuntimeOptions, p as DelegatedRuntimeState, w as RealtimeTopic } from "./index-D0f9UvVk.js";
|
|
4
4
|
import { _ as layerLegacy, a as LegacyResourceClient, c as LegacyResourcesValue, d as ResourcesFromEntityTransportOptions, f as ResourcesLayerOptions, g as layerFromEntityTransport, h as layerConfig$3, i as makeEntityHttpExecute, l as ResourceEntityClient, m as layer$4, o as LegacyResources, p as ResourcesValue, s as LegacyResourcesLayerOptions, u as Resources, v as layerLegacyConfig } from "./resources-r2t8pcv2.js";
|
|
5
5
|
import * as Schema from "effect/Schema";
|
|
6
6
|
import * as Config from "effect/Config";
|
|
@@ -144,7 +144,7 @@ declare class DelegatedRuntime extends DelegatedRuntime_base {}
|
|
|
144
144
|
* `FederatedAuth`, `CiClient` and `Runs`. A bad `authBasePath` fails with
|
|
145
145
|
* `configuration_error`; a bad `origin` or `proxyPath` dies with `TypeError`.
|
|
146
146
|
*/
|
|
147
|
-
declare const layer$1: (options: DelegatedApplicationRuntimeOptions) => Layer.Layer<
|
|
147
|
+
declare const layer$1: (options: DelegatedApplicationRuntimeOptions) => Layer.Layer<Runs | CiClient | FederatedAuth | DelegatedRuntime, FederatedAuthError, never>;
|
|
148
148
|
/** `layer` with options that Effect `Config` reads. */
|
|
149
|
-
declare const layerConfig: (config: Config.Wrap<DelegatedApplicationRuntimeOptions>) => Layer.Layer<
|
|
149
|
+
declare const layerConfig: (config: Config.Wrap<DelegatedApplicationRuntimeOptions>) => Layer.Layer<Runs | CiClient | FederatedAuth | DelegatedRuntime, Config.ConfigError | FederatedAuthError, never>;
|
|
150
150
|
export { Chat, type ChatValue, CiClient, type CiClientValue, CiError, CiErrorCode, CiErrorEnvelope, CiResult, CiStreamPage, CiTransportError, DEFAULT_FOLLOW_RUN_DEADLINE_MS, DelegatedRuntime, type DelegatedRuntimeValue, type ExecuteResult, FederatedAuth, FederatedAuthError, FederatedAuthErrorCode, type FederatedAuthValue, type FixedWorkflowRequest, FixedWorkflows, type FixedWorkflowsLayerOptions, type FixedWorkflowsValue, type LegacyResourceClient, LegacyResources, type LegacyResourcesLayerOptions, type LegacyResourcesValue, type RealtimeChange, RealtimeClient, type RealtimeClientLayerOptions, type RealtimeResync, type RealtimeTopic, type RealtimeTopicFilter, type RealtimeUpdate, type ResourceEntityClient, Resources, type ResourcesFromEntityTransportOptions, type ResourcesLayerOptions, type ResourcesValue, type RunFollowOptions, Runs, type RunsValue, layer as layerChat, layerDirect as layerCiClientDirect, layerDirectConfig as layerCiClientDirectConfig, layerFromExecutor as layerCiClientFromExecutor, layerProxy as layerCiClientProxy, layerProxyConfig as layerCiClientProxyConfig, layer$1 as layerDelegatedRuntime, layerConfig as layerDelegatedRuntimeConfig, layerFederated as layerFederatedAuth, layerFederatedConfig as layerFederatedAuthConfig, layer$2 as layerFixedWorkflows, layerConfig$1 as layerFixedWorkflowsConfig, layerLegacy as layerLegacyResources, layerLegacyConfig as layerLegacyResourcesConfig, layer$3 as layerRealtimeClient, layerConfig$2 as layerRealtimeClientConfig, layer$4 as layerResources, layerConfig$3 as layerResourcesConfig, layerFromEntityTransport as layerResourcesFromEntityTransport, layer$5 as layerRuns, layerServerSession as layerServerSessionAuth, layerServerSessionConfig as layerServerSessionAuthConfig, makeEntityHttpExecute, subscribe };
|
|
@@ -667,8 +667,8 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
667
667
|
query?: {
|
|
668
668
|
historyScope?: Array<string>;
|
|
669
669
|
};
|
|
670
|
-
path?: never;
|
|
671
670
|
body?: never;
|
|
671
|
+
path?: never;
|
|
672
672
|
}, {
|
|
673
673
|
data: Array<{
|
|
674
674
|
agentId: string | null;
|
|
@@ -690,12 +690,12 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
690
690
|
}>;
|
|
691
691
|
chat_conversations_create: ClientOperationDefinition<{
|
|
692
692
|
query?: never;
|
|
693
|
-
path?: never;
|
|
694
693
|
body: {
|
|
695
694
|
agentId?: string;
|
|
696
695
|
projectId?: string;
|
|
697
696
|
title?: string;
|
|
698
697
|
};
|
|
698
|
+
path?: never;
|
|
699
699
|
}, {
|
|
700
700
|
agentId: string | null;
|
|
701
701
|
createdAt: string | null;
|
|
@@ -715,10 +715,10 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
715
715
|
}>;
|
|
716
716
|
chat_conversations_get: ClientOperationDefinition<{
|
|
717
717
|
query?: never;
|
|
718
|
+
body?: never;
|
|
718
719
|
path: {
|
|
719
720
|
conversationId: string;
|
|
720
721
|
};
|
|
721
|
-
body?: never;
|
|
722
722
|
}, {
|
|
723
723
|
agentId: string | null;
|
|
724
724
|
createdAt: string | null;
|
|
@@ -738,14 +738,14 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
738
738
|
}>;
|
|
739
739
|
chat_conversations_update: ClientOperationDefinition<{
|
|
740
740
|
query?: never;
|
|
741
|
-
path: {
|
|
742
|
-
conversationId: string;
|
|
743
|
-
};
|
|
744
741
|
body: {
|
|
745
742
|
memoryEnabled?: boolean;
|
|
746
743
|
projectId?: string | null;
|
|
747
744
|
title?: string;
|
|
748
745
|
};
|
|
746
|
+
path: {
|
|
747
|
+
conversationId: string;
|
|
748
|
+
};
|
|
749
749
|
}, {
|
|
750
750
|
agentId: string | null;
|
|
751
751
|
createdAt: string | null;
|
|
@@ -765,17 +765,17 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
765
765
|
}>;
|
|
766
766
|
chat_conversations_delete: ClientOperationDefinition<{
|
|
767
767
|
query?: never;
|
|
768
|
+
body?: never;
|
|
768
769
|
path: {
|
|
769
770
|
conversationId: string;
|
|
770
771
|
};
|
|
771
|
-
body?: never;
|
|
772
772
|
}, void>;
|
|
773
773
|
chat_conversations_transcript: ClientOperationDefinition<{
|
|
774
774
|
query?: never;
|
|
775
|
+
body?: never;
|
|
775
776
|
path: {
|
|
776
777
|
conversationId: string;
|
|
777
778
|
};
|
|
778
|
-
body?: never;
|
|
779
779
|
}, {
|
|
780
780
|
agentTurns: Array<{
|
|
781
781
|
completedAt: string | null;
|
|
@@ -944,7 +944,6 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
944
944
|
}>;
|
|
945
945
|
chat_turns_submit: ClientOperationDefinition<{
|
|
946
946
|
query?: never;
|
|
947
|
-
path?: never;
|
|
948
947
|
body: {
|
|
949
948
|
attachmentIds?: Array<string>;
|
|
950
949
|
clientTurnId?: string;
|
|
@@ -962,6 +961,7 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
962
961
|
}>;
|
|
963
962
|
selectedReportRunId?: string;
|
|
964
963
|
};
|
|
964
|
+
path?: never;
|
|
965
965
|
}, {
|
|
966
966
|
conversationId: string;
|
|
967
967
|
invocationId: string;
|
|
@@ -975,7 +975,6 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
975
975
|
}>;
|
|
976
976
|
chat_turns_stream: ClientOperationDefinition<{
|
|
977
977
|
query?: never;
|
|
978
|
-
path?: never;
|
|
979
978
|
body: {
|
|
980
979
|
attachmentIds?: Array<string>;
|
|
981
980
|
clientTurnId?: string;
|
|
@@ -993,6 +992,7 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
993
992
|
}>;
|
|
994
993
|
selectedReportRunId?: string;
|
|
995
994
|
};
|
|
995
|
+
path?: never;
|
|
996
996
|
}, AsyncIterable<{
|
|
997
997
|
data: string;
|
|
998
998
|
event: "turn_result";
|
|
@@ -1008,24 +1008,24 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
1008
1008
|
}>>;
|
|
1009
1009
|
chat_turns_cancel: ClientOperationDefinition<{
|
|
1010
1010
|
query?: never;
|
|
1011
|
+
body?: never;
|
|
1011
1012
|
path: {
|
|
1012
1013
|
invocationId: string;
|
|
1013
1014
|
};
|
|
1014
|
-
body?: never;
|
|
1015
1015
|
}, {
|
|
1016
1016
|
invocationId: string;
|
|
1017
1017
|
status: "cancelled" | "completed" | "error" | "running" | "waiting_for_approval";
|
|
1018
1018
|
}>;
|
|
1019
1019
|
chat_steering_messages_send: ClientOperationDefinition<{
|
|
1020
1020
|
query?: never;
|
|
1021
|
-
path: {
|
|
1022
|
-
conversationId: string;
|
|
1023
|
-
};
|
|
1024
1021
|
body: {
|
|
1025
1022
|
clientMessageId: string;
|
|
1026
1023
|
content: string;
|
|
1027
1024
|
invocationId: string;
|
|
1028
1025
|
};
|
|
1026
|
+
path: {
|
|
1027
|
+
conversationId: string;
|
|
1028
|
+
};
|
|
1029
1029
|
}, {
|
|
1030
1030
|
conversationId: string;
|
|
1031
1031
|
invocationId: string;
|
|
@@ -1045,13 +1045,13 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
1045
1045
|
}>;
|
|
1046
1046
|
chat_queued_messages_create: ClientOperationDefinition<{
|
|
1047
1047
|
query?: never;
|
|
1048
|
-
path: {
|
|
1049
|
-
conversationId: string;
|
|
1050
|
-
};
|
|
1051
1048
|
body: {
|
|
1052
1049
|
clientMessageId: string;
|
|
1053
1050
|
content: string;
|
|
1054
1051
|
};
|
|
1052
|
+
path: {
|
|
1053
|
+
conversationId: string;
|
|
1054
|
+
};
|
|
1055
1055
|
}, {
|
|
1056
1056
|
conversationId: string;
|
|
1057
1057
|
outcome: "queued";
|
|
@@ -1077,10 +1077,10 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
1077
1077
|
}>;
|
|
1078
1078
|
chat_queued_messages_list: ClientOperationDefinition<{
|
|
1079
1079
|
query?: never;
|
|
1080
|
+
body?: never;
|
|
1080
1081
|
path: {
|
|
1081
1082
|
conversationId: string;
|
|
1082
1083
|
};
|
|
1083
|
-
body?: never;
|
|
1084
1084
|
}, {
|
|
1085
1085
|
data: Array<{
|
|
1086
1086
|
content: string;
|
|
@@ -1094,14 +1094,14 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
1094
1094
|
}>;
|
|
1095
1095
|
chat_queued_messages_update: ClientOperationDefinition<{
|
|
1096
1096
|
query?: never;
|
|
1097
|
-
path: {
|
|
1098
|
-
conversationId: string;
|
|
1099
|
-
queuedMessageId: string;
|
|
1100
|
-
};
|
|
1101
1097
|
body: {
|
|
1102
1098
|
content: string;
|
|
1103
1099
|
revision: number;
|
|
1104
1100
|
};
|
|
1101
|
+
path: {
|
|
1102
|
+
conversationId: string;
|
|
1103
|
+
queuedMessageId: string;
|
|
1104
|
+
};
|
|
1105
1105
|
}, {
|
|
1106
1106
|
content: string;
|
|
1107
1107
|
createdAt: string;
|
|
@@ -1115,16 +1115,16 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
1115
1115
|
query: {
|
|
1116
1116
|
revision: string;
|
|
1117
1117
|
};
|
|
1118
|
+
body?: never;
|
|
1118
1119
|
path: {
|
|
1119
1120
|
conversationId: string;
|
|
1120
1121
|
queuedMessageId: string;
|
|
1121
1122
|
};
|
|
1122
|
-
body?: never;
|
|
1123
1123
|
}, void>;
|
|
1124
1124
|
chat_place_context_get: ClientOperationDefinition<{
|
|
1125
1125
|
query?: never;
|
|
1126
|
-
path?: never;
|
|
1127
1126
|
body?: never;
|
|
1127
|
+
path?: never;
|
|
1128
1128
|
}, {
|
|
1129
1129
|
places: Array<{
|
|
1130
1130
|
id: string;
|
|
@@ -1138,10 +1138,10 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
1138
1138
|
query?: {
|
|
1139
1139
|
afterSequence?: string;
|
|
1140
1140
|
};
|
|
1141
|
+
body?: never;
|
|
1141
1142
|
path: {
|
|
1142
1143
|
invocationId: string;
|
|
1143
1144
|
};
|
|
1144
|
-
body?: never;
|
|
1145
1145
|
}, {
|
|
1146
1146
|
changed: boolean;
|
|
1147
1147
|
latestSequence: number;
|
|
@@ -1183,10 +1183,10 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
1183
1183
|
query?: {
|
|
1184
1184
|
afterSequence?: string;
|
|
1185
1185
|
};
|
|
1186
|
+
body?: never;
|
|
1186
1187
|
path: {
|
|
1187
1188
|
invocationId: string;
|
|
1188
1189
|
};
|
|
1189
|
-
body?: never;
|
|
1190
1190
|
}, AsyncIterable<{
|
|
1191
1191
|
data: string;
|
|
1192
1192
|
event: "presentation";
|
|
@@ -1194,8 +1194,8 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
1194
1194
|
}>>;
|
|
1195
1195
|
chat_agents_list: ClientOperationDefinition<{
|
|
1196
1196
|
query?: never;
|
|
1197
|
-
path?: never;
|
|
1198
1197
|
body?: never;
|
|
1198
|
+
path?: never;
|
|
1199
1199
|
}, {
|
|
1200
1200
|
data: Array<{
|
|
1201
1201
|
agentType: "organization" | "personal";
|
|
@@ -1208,8 +1208,8 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
1208
1208
|
}>;
|
|
1209
1209
|
chat_skills_list: ClientOperationDefinition<{
|
|
1210
1210
|
query?: never;
|
|
1211
|
-
path?: never;
|
|
1212
1211
|
body?: never;
|
|
1212
|
+
path?: never;
|
|
1213
1213
|
}, {
|
|
1214
1214
|
data: Array<{
|
|
1215
1215
|
dataAccess: {
|
|
@@ -1229,8 +1229,8 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
1229
1229
|
conversationId?: string;
|
|
1230
1230
|
usageScope?: "chat" | "skill" | "automation";
|
|
1231
1231
|
};
|
|
1232
|
-
path?: never;
|
|
1233
1232
|
body?: never;
|
|
1233
|
+
path?: never;
|
|
1234
1234
|
}, {
|
|
1235
1235
|
data: Array<{
|
|
1236
1236
|
collectionId: string | null;
|
|
@@ -1245,13 +1245,13 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
1245
1245
|
}>;
|
|
1246
1246
|
chat_agent_conversations_submit_turn: ClientOperationDefinition<{
|
|
1247
1247
|
query?: never;
|
|
1248
|
-
path: {
|
|
1249
|
-
conversationId: string;
|
|
1250
|
-
};
|
|
1251
1248
|
body: {
|
|
1252
1249
|
idempotencyKey: string;
|
|
1253
1250
|
message: string;
|
|
1254
1251
|
};
|
|
1252
|
+
path: {
|
|
1253
|
+
conversationId: string;
|
|
1254
|
+
};
|
|
1255
1255
|
}, {
|
|
1256
1256
|
activationId: string;
|
|
1257
1257
|
activationState: string;
|
|
@@ -1264,13 +1264,13 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
1264
1264
|
}>;
|
|
1265
1265
|
chat_agent_conversations_cancel_turn: ClientOperationDefinition<{
|
|
1266
1266
|
query?: never;
|
|
1267
|
+
body: {
|
|
1268
|
+
idempotencyKey: string;
|
|
1269
|
+
};
|
|
1267
1270
|
path: {
|
|
1268
1271
|
conversationId: string;
|
|
1269
1272
|
turnId: string;
|
|
1270
1273
|
};
|
|
1271
|
-
body: {
|
|
1272
|
-
idempotencyKey: string;
|
|
1273
|
-
};
|
|
1274
1274
|
}, {
|
|
1275
1275
|
conversationId: string;
|
|
1276
1276
|
outcome: "accepted";
|
|
@@ -1278,12 +1278,12 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
1278
1278
|
}>;
|
|
1279
1279
|
chat_agent_conversations_close: ClientOperationDefinition<{
|
|
1280
1280
|
query?: never;
|
|
1281
|
-
path: {
|
|
1282
|
-
conversationId: string;
|
|
1283
|
-
};
|
|
1284
1281
|
body: {
|
|
1285
1282
|
idempotencyKey: string;
|
|
1286
1283
|
};
|
|
1284
|
+
path: {
|
|
1285
|
+
conversationId: string;
|
|
1286
|
+
};
|
|
1287
1287
|
}, {
|
|
1288
1288
|
conversationId: string;
|
|
1289
1289
|
outcome: "accepted";
|
|
@@ -1291,12 +1291,12 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
1291
1291
|
}>;
|
|
1292
1292
|
chat_attachments_upload: ClientOperationDefinition<{
|
|
1293
1293
|
query?: never;
|
|
1294
|
-
path: {
|
|
1295
|
-
conversationId: string;
|
|
1296
|
-
};
|
|
1297
1294
|
readonly body: Readonly<{
|
|
1298
1295
|
files: readonly File[];
|
|
1299
1296
|
}>;
|
|
1297
|
+
path: {
|
|
1298
|
+
conversationId: string;
|
|
1299
|
+
};
|
|
1300
1300
|
}, {
|
|
1301
1301
|
attachments: Array<{
|
|
1302
1302
|
characterCount: number;
|
|
@@ -1312,19 +1312,19 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
1312
1312
|
}>;
|
|
1313
1313
|
chat_attachments_download_url: ClientOperationDefinition<{
|
|
1314
1314
|
query?: never;
|
|
1315
|
+
body?: never;
|
|
1315
1316
|
path: {
|
|
1316
1317
|
attachmentId: string;
|
|
1317
1318
|
conversationId: string;
|
|
1318
1319
|
};
|
|
1319
|
-
body?: never;
|
|
1320
1320
|
}, {
|
|
1321
1321
|
expiresIn: number;
|
|
1322
1322
|
url: string;
|
|
1323
1323
|
}>;
|
|
1324
1324
|
chat_attachments_capabilities: ClientOperationDefinition<{
|
|
1325
1325
|
query?: never;
|
|
1326
|
-
path?: never;
|
|
1327
1326
|
body?: never;
|
|
1327
|
+
path?: never;
|
|
1328
1328
|
}, {
|
|
1329
1329
|
fileTypes: Array<{
|
|
1330
1330
|
extension: string;
|
|
@@ -1337,13 +1337,13 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
1337
1337
|
}>;
|
|
1338
1338
|
chat_feedback_upsert: ClientOperationDefinition<{
|
|
1339
1339
|
query?: never;
|
|
1340
|
-
path: {
|
|
1341
|
-
invocationId: string;
|
|
1342
|
-
};
|
|
1343
1340
|
body: {
|
|
1344
1341
|
sentiment: "positive" | "negative";
|
|
1345
1342
|
submitterNote?: string;
|
|
1346
1343
|
};
|
|
1344
|
+
path: {
|
|
1345
|
+
invocationId: string;
|
|
1346
|
+
};
|
|
1347
1347
|
}, {
|
|
1348
1348
|
currentUserFeedback: {
|
|
1349
1349
|
sentiment: "positive" | "negative" | null;
|
|
@@ -1353,10 +1353,10 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
1353
1353
|
}>;
|
|
1354
1354
|
chat_feedback_clear: ClientOperationDefinition<{
|
|
1355
1355
|
query?: never;
|
|
1356
|
+
body?: never;
|
|
1356
1357
|
path: {
|
|
1357
1358
|
invocationId: string;
|
|
1358
1359
|
};
|
|
1359
|
-
body?: never;
|
|
1360
1360
|
}, {
|
|
1361
1361
|
currentUserFeedback: {
|
|
1362
1362
|
sentiment: "positive" | "negative" | null;
|
|
@@ -1366,13 +1366,13 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
1366
1366
|
}>;
|
|
1367
1367
|
chat_approvals_search_requests: ClientOperationDefinition<{
|
|
1368
1368
|
query?: never;
|
|
1369
|
-
path?: never;
|
|
1370
1369
|
body: {
|
|
1371
1370
|
involvement?: "mine" | "requester" | "reviewer";
|
|
1372
1371
|
limit?: number;
|
|
1373
1372
|
page?: number;
|
|
1374
1373
|
status?: "pending" | "approved" | "rejected" | "cancelled" | "expired";
|
|
1375
1374
|
};
|
|
1375
|
+
path?: never;
|
|
1376
1376
|
}, {
|
|
1377
1377
|
data: Array<{
|
|
1378
1378
|
approvalRuleId: string | null;
|
|
@@ -1432,8 +1432,8 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
1432
1432
|
}>;
|
|
1433
1433
|
chat_approvals_search: ClientOperationDefinition<{
|
|
1434
1434
|
query?: never;
|
|
1435
|
-
path?: never;
|
|
1436
1435
|
body?: never;
|
|
1436
|
+
path?: never;
|
|
1437
1437
|
}, {
|
|
1438
1438
|
canViewAll: boolean;
|
|
1439
1439
|
data: Array<{
|
|
@@ -1493,10 +1493,10 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
1493
1493
|
}>;
|
|
1494
1494
|
chat_approvals_get: ClientOperationDefinition<{
|
|
1495
1495
|
query?: never;
|
|
1496
|
+
body?: never;
|
|
1496
1497
|
path: {
|
|
1497
1498
|
approvalId: string;
|
|
1498
1499
|
};
|
|
1499
|
-
body?: never;
|
|
1500
1500
|
}, {
|
|
1501
1501
|
actionContext: {
|
|
1502
1502
|
action: {
|
|
@@ -1659,13 +1659,13 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
1659
1659
|
}>;
|
|
1660
1660
|
chat_approvals_decide: ClientOperationDefinition<{
|
|
1661
1661
|
query?: never;
|
|
1662
|
-
path: {
|
|
1663
|
-
approvalId: string;
|
|
1664
|
-
};
|
|
1665
1662
|
body: {
|
|
1666
1663
|
comment?: string | null;
|
|
1667
1664
|
decision: "approved" | "rejected";
|
|
1668
1665
|
};
|
|
1666
|
+
path: {
|
|
1667
|
+
approvalId: string;
|
|
1668
|
+
};
|
|
1669
1669
|
}, {
|
|
1670
1670
|
approval: {
|
|
1671
1671
|
approvalRuleId: string | null;
|
|
@@ -1724,12 +1724,12 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
1724
1724
|
}>;
|
|
1725
1725
|
chat_approvals_reject: ClientOperationDefinition<{
|
|
1726
1726
|
query?: never;
|
|
1727
|
-
path: {
|
|
1728
|
-
approvalId: string;
|
|
1729
|
-
};
|
|
1730
1727
|
body: {
|
|
1731
1728
|
reason: string;
|
|
1732
1729
|
};
|
|
1730
|
+
path: {
|
|
1731
|
+
approvalId: string;
|
|
1732
|
+
};
|
|
1733
1733
|
}, {
|
|
1734
1734
|
cause: "invoker_withdrawal" | "rejected";
|
|
1735
1735
|
reason: string;
|
|
@@ -1739,12 +1739,12 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
1739
1739
|
}>;
|
|
1740
1740
|
chat_approvals_withdraw: ClientOperationDefinition<{
|
|
1741
1741
|
query?: never;
|
|
1742
|
-
path: {
|
|
1743
|
-
approvalId: string;
|
|
1744
|
-
};
|
|
1745
1742
|
body: {
|
|
1746
1743
|
reason: string;
|
|
1747
1744
|
};
|
|
1745
|
+
path: {
|
|
1746
|
+
approvalId: string;
|
|
1747
|
+
};
|
|
1748
1748
|
}, {
|
|
1749
1749
|
cause: "invoker_withdrawal" | "rejected";
|
|
1750
1750
|
reason: string;
|
|
@@ -1754,12 +1754,12 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
1754
1754
|
}>;
|
|
1755
1755
|
chat_permissions_decide_wait: ClientOperationDefinition<{
|
|
1756
1756
|
query?: never;
|
|
1757
|
-
path: {
|
|
1758
|
-
invocationId: string;
|
|
1759
|
-
};
|
|
1760
1757
|
body: {
|
|
1761
1758
|
decision: "allow_always" | "allow_this_conversation" | "deny";
|
|
1762
1759
|
};
|
|
1760
|
+
path: {
|
|
1761
|
+
invocationId: string;
|
|
1762
|
+
};
|
|
1763
1763
|
}, {
|
|
1764
1764
|
capabilityKind: string;
|
|
1765
1765
|
conversationId: string | null;
|
|
@@ -1770,8 +1770,8 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
1770
1770
|
}>;
|
|
1771
1771
|
chat_permissions_list: ClientOperationDefinition<{
|
|
1772
1772
|
query?: never;
|
|
1773
|
-
path?: never;
|
|
1774
1773
|
body?: never;
|
|
1774
|
+
path?: never;
|
|
1775
1775
|
}, {
|
|
1776
1776
|
data: Array<{
|
|
1777
1777
|
capabilityKind: string;
|
|
@@ -1784,12 +1784,12 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
1784
1784
|
}>;
|
|
1785
1785
|
chat_permissions_update: ClientOperationDefinition<{
|
|
1786
1786
|
query?: never;
|
|
1787
|
-
path: {
|
|
1788
|
-
permissionId: string;
|
|
1789
|
-
};
|
|
1790
1787
|
body: {
|
|
1791
1788
|
decision: "allow" | "deny";
|
|
1792
1789
|
};
|
|
1790
|
+
path: {
|
|
1791
|
+
permissionId: string;
|
|
1792
|
+
};
|
|
1793
1793
|
}, {
|
|
1794
1794
|
capabilityKind: string;
|
|
1795
1795
|
conversationId: string | null;
|
|
@@ -1800,17 +1800,17 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
1800
1800
|
}>;
|
|
1801
1801
|
chat_permissions_revoke: ClientOperationDefinition<{
|
|
1802
1802
|
query?: never;
|
|
1803
|
+
body?: never;
|
|
1803
1804
|
path: {
|
|
1804
1805
|
permissionId: string;
|
|
1805
1806
|
};
|
|
1806
|
-
body?: never;
|
|
1807
1807
|
}, void>;
|
|
1808
1808
|
chat_artifacts_progress: ClientOperationDefinition<{
|
|
1809
1809
|
query?: never;
|
|
1810
|
+
body?: never;
|
|
1810
1811
|
path: {
|
|
1811
1812
|
conversationId: string;
|
|
1812
1813
|
};
|
|
1813
|
-
body?: never;
|
|
1814
1814
|
}, {
|
|
1815
1815
|
currentArtifact: {
|
|
1816
1816
|
artifactId: string;
|
|
@@ -1827,10 +1827,10 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
1827
1827
|
}>;
|
|
1828
1828
|
chat_compaction_get: ClientOperationDefinition<{
|
|
1829
1829
|
query?: never;
|
|
1830
|
+
body?: never;
|
|
1830
1831
|
path: {
|
|
1831
1832
|
conversationId: string;
|
|
1832
1833
|
};
|
|
1833
|
-
body?: never;
|
|
1834
1834
|
}, {
|
|
1835
1835
|
compaction: {
|
|
1836
1836
|
active: boolean;
|
|
@@ -1866,10 +1866,10 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
1866
1866
|
}>;
|
|
1867
1867
|
chat_compaction_compact: ClientOperationDefinition<{
|
|
1868
1868
|
query?: never;
|
|
1869
|
+
body?: never;
|
|
1869
1870
|
path: {
|
|
1870
1871
|
conversationId: string;
|
|
1871
1872
|
};
|
|
1872
|
-
body?: never;
|
|
1873
1873
|
}, {
|
|
1874
1874
|
compaction: {
|
|
1875
1875
|
active: boolean;
|
|
@@ -1905,10 +1905,10 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
1905
1905
|
}>;
|
|
1906
1906
|
chat_compaction_regenerate: ClientOperationDefinition<{
|
|
1907
1907
|
query?: never;
|
|
1908
|
+
body?: never;
|
|
1908
1909
|
path: {
|
|
1909
1910
|
conversationId: string;
|
|
1910
1911
|
};
|
|
1911
|
-
body?: never;
|
|
1912
1912
|
}, {
|
|
1913
1913
|
compaction: {
|
|
1914
1914
|
active: boolean;
|
|
@@ -1944,10 +1944,10 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
1944
1944
|
}>;
|
|
1945
1945
|
chat_compaction_reset: ClientOperationDefinition<{
|
|
1946
1946
|
query?: never;
|
|
1947
|
+
body?: never;
|
|
1947
1948
|
path: {
|
|
1948
1949
|
conversationId: string;
|
|
1949
1950
|
};
|
|
1950
|
-
body?: never;
|
|
1951
1951
|
}, {
|
|
1952
1952
|
compaction: {
|
|
1953
1953
|
active: boolean;
|
|
@@ -1983,9 +1983,6 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
1983
1983
|
}>;
|
|
1984
1984
|
chat_evidence_resolve: ClientOperationDefinition<{
|
|
1985
1985
|
query?: never;
|
|
1986
|
-
path: {
|
|
1987
|
-
invocationId: string;
|
|
1988
|
-
};
|
|
1989
1986
|
body: {
|
|
1990
1987
|
evidenceId: string;
|
|
1991
1988
|
navigation: {
|
|
@@ -1999,6 +1996,9 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
1999
1996
|
url: string;
|
|
2000
1997
|
};
|
|
2001
1998
|
};
|
|
1999
|
+
path: {
|
|
2000
|
+
invocationId: string;
|
|
2001
|
+
};
|
|
2002
2002
|
}, {
|
|
2003
2003
|
target: {
|
|
2004
2004
|
entityId: string;
|
|
@@ -2014,14 +2014,14 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
2014
2014
|
}>;
|
|
2015
2015
|
chat_interactions_respond: ClientOperationDefinition<{
|
|
2016
2016
|
query?: never;
|
|
2017
|
-
path: {
|
|
2018
|
-
interactionId: string;
|
|
2019
|
-
};
|
|
2020
2017
|
body: {
|
|
2021
2018
|
action?: "answer" | "approve" | "revise" | null;
|
|
2022
2019
|
optionId?: string | null;
|
|
2023
2020
|
text?: string | null;
|
|
2024
2021
|
};
|
|
2022
|
+
path: {
|
|
2023
|
+
interactionId: string;
|
|
2024
|
+
};
|
|
2025
2025
|
}, {
|
|
2026
2026
|
id: string;
|
|
2027
2027
|
invocationId: string;
|
|
@@ -2029,14 +2029,14 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
2029
2029
|
}>;
|
|
2030
2030
|
chat_interactions_stream: ClientOperationDefinition<{
|
|
2031
2031
|
query?: never;
|
|
2032
|
-
path: {
|
|
2033
|
-
interactionId: string;
|
|
2034
|
-
};
|
|
2035
2032
|
body: {
|
|
2036
2033
|
action?: "answer" | "approve" | "revise" | null;
|
|
2037
2034
|
optionId?: string | null;
|
|
2038
2035
|
text?: string | null;
|
|
2039
2036
|
};
|
|
2037
|
+
path: {
|
|
2038
|
+
interactionId: string;
|
|
2039
|
+
};
|
|
2040
2040
|
}, AsyncIterable<{
|
|
2041
2041
|
data: string;
|
|
2042
2042
|
event: "interaction_result";
|
|
@@ -2044,8 +2044,8 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
2044
2044
|
}>>;
|
|
2045
2045
|
chat_projects_list: ClientOperationDefinition<{
|
|
2046
2046
|
query?: never;
|
|
2047
|
-
path?: never;
|
|
2048
2047
|
body?: never;
|
|
2048
|
+
path?: never;
|
|
2049
2049
|
}, {
|
|
2050
2050
|
data: Array<{
|
|
2051
2051
|
createdAt: string;
|
|
@@ -2057,10 +2057,10 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
2057
2057
|
}>;
|
|
2058
2058
|
chat_projects_create: ClientOperationDefinition<{
|
|
2059
2059
|
query?: never;
|
|
2060
|
-
path?: never;
|
|
2061
2060
|
body: {
|
|
2062
2061
|
name: string;
|
|
2063
2062
|
};
|
|
2063
|
+
path?: never;
|
|
2064
2064
|
}, {
|
|
2065
2065
|
createdAt: string;
|
|
2066
2066
|
id: string;
|
|
@@ -2070,13 +2070,13 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
2070
2070
|
}>;
|
|
2071
2071
|
chat_projects_update: ClientOperationDefinition<{
|
|
2072
2072
|
query?: never;
|
|
2073
|
-
path: {
|
|
2074
|
-
projectId: string;
|
|
2075
|
-
};
|
|
2076
2073
|
body: {
|
|
2077
2074
|
instructions?: string | null;
|
|
2078
2075
|
name?: string;
|
|
2079
2076
|
};
|
|
2077
|
+
path: {
|
|
2078
|
+
projectId: string;
|
|
2079
|
+
};
|
|
2080
2080
|
}, {
|
|
2081
2081
|
createdAt: string;
|
|
2082
2082
|
id: string;
|
|
@@ -2086,17 +2086,17 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
2086
2086
|
}>;
|
|
2087
2087
|
chat_projects_delete: ClientOperationDefinition<{
|
|
2088
2088
|
query?: never;
|
|
2089
|
+
body?: never;
|
|
2089
2090
|
path: {
|
|
2090
2091
|
projectId: string;
|
|
2091
2092
|
};
|
|
2092
|
-
body?: never;
|
|
2093
2093
|
}, void>;
|
|
2094
2094
|
chat_projects_list_files: ClientOperationDefinition<{
|
|
2095
2095
|
query?: never;
|
|
2096
|
+
body?: never;
|
|
2096
2097
|
path: {
|
|
2097
2098
|
projectId: string;
|
|
2098
2099
|
};
|
|
2099
|
-
body?: never;
|
|
2100
2100
|
}, {
|
|
2101
2101
|
files: Array<{
|
|
2102
2102
|
contentType: string | null;
|
|
@@ -2112,12 +2112,12 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
2112
2112
|
}>;
|
|
2113
2113
|
chat_projects_upload_file: ClientOperationDefinition<{
|
|
2114
2114
|
query?: never;
|
|
2115
|
-
path: {
|
|
2116
|
-
projectId: string;
|
|
2117
|
-
};
|
|
2118
2115
|
readonly body: Readonly<{
|
|
2119
2116
|
file: File;
|
|
2120
2117
|
}>;
|
|
2118
|
+
path: {
|
|
2119
|
+
projectId: string;
|
|
2120
|
+
};
|
|
2121
2121
|
}, {
|
|
2122
2122
|
contentType: string | null;
|
|
2123
2123
|
createdAt: string;
|
|
@@ -2129,30 +2129,30 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
2129
2129
|
}>;
|
|
2130
2130
|
chat_projects_delete_file: ClientOperationDefinition<{
|
|
2131
2131
|
query?: never;
|
|
2132
|
+
body?: never;
|
|
2132
2133
|
path: {
|
|
2133
2134
|
fileId: string;
|
|
2134
2135
|
projectId: string;
|
|
2135
2136
|
};
|
|
2136
|
-
body?: never;
|
|
2137
2137
|
}, void>;
|
|
2138
2138
|
chat_projects_file_download_url: ClientOperationDefinition<{
|
|
2139
2139
|
query?: never;
|
|
2140
|
+
body?: never;
|
|
2140
2141
|
path: {
|
|
2141
2142
|
fileId: string;
|
|
2142
2143
|
projectId: string;
|
|
2143
2144
|
};
|
|
2144
|
-
body?: never;
|
|
2145
2145
|
}, {
|
|
2146
2146
|
expiresIn: number;
|
|
2147
2147
|
url: string;
|
|
2148
2148
|
}>;
|
|
2149
2149
|
chat_speech_create_clip: ClientOperationDefinition<{
|
|
2150
2150
|
query?: never;
|
|
2151
|
-
path?: never;
|
|
2152
2151
|
body: {
|
|
2153
2152
|
contentType: string;
|
|
2154
2153
|
size: number;
|
|
2155
2154
|
};
|
|
2155
|
+
path?: never;
|
|
2156
2156
|
}, {
|
|
2157
2157
|
clipId: string;
|
|
2158
2158
|
headers: {
|
|
@@ -2163,28 +2163,28 @@ declare const createDelegatedApplicationRuntime: (options: DelegatedApplicationR
|
|
|
2163
2163
|
}>;
|
|
2164
2164
|
chat_speech_transcribe: ClientOperationDefinition<{
|
|
2165
2165
|
query?: never;
|
|
2166
|
-
path?: never;
|
|
2167
2166
|
body: {
|
|
2168
2167
|
clipId: string;
|
|
2169
2168
|
};
|
|
2169
|
+
path?: never;
|
|
2170
2170
|
}, {
|
|
2171
2171
|
text: string;
|
|
2172
2172
|
}>;
|
|
2173
2173
|
chat_speech_availability: ClientOperationDefinition<{
|
|
2174
2174
|
query?: never;
|
|
2175
|
-
path?: never;
|
|
2176
2175
|
body?: never;
|
|
2176
|
+
path?: never;
|
|
2177
2177
|
}, {
|
|
2178
2178
|
readAloud: boolean;
|
|
2179
2179
|
remoteTranscription: boolean;
|
|
2180
2180
|
}>;
|
|
2181
2181
|
chat_speech_read_aloud_part: ClientOperationDefinition<{
|
|
2182
2182
|
query?: never;
|
|
2183
|
+
body?: never;
|
|
2183
2184
|
path: {
|
|
2184
2185
|
invocationId: string;
|
|
2185
2186
|
partIndex: string;
|
|
2186
2187
|
};
|
|
2187
|
-
body?: never;
|
|
2188
2188
|
}, {
|
|
2189
2189
|
partCount: number;
|
|
2190
2190
|
url: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as FederatedAuthError, C as OperationExecutionOptions, E as isClientOperationId, F as JsonValue, G as SearchQuery, H as JsonObject, I as OperationRequest, K as WorkflowInvokeTarget, L as OperationSuccess, N as CiErrorCode, P as CiResult, S as ClientOperationOutput, T as clientOperationIds, U as KnowledgeQuery, W as QueryFilter, _ as createServerSessionAuth, a as FederatedAuth, b as ClientOperationInput, c as FederatedSessionIdentity, g as ServerSessionAuthOptions, i as ClientFetch, j as FederatedAuthErrorCode, k as CiTransportError, l as createFederatedAuth, n as ProxyTransportOptions, o as FederatedAuthOptions, r as createProxyTransport, s as FederatedAuthState, t as ProxyAuthentication, v as ClientOperationDefinition, w as TypedOperationExecutor, x as ClientOperationMap, y as ClientOperationId } from "./proxy-DRPEFvaV.js";
|
|
2
2
|
import { M as createDirectTransport, _ as CiStreamPage, a as clientSdkProtocolVersion, c as FollowRunSource, g as CiStreamEvent, h as CiRunCancellation, i as OrganizationClient, j as DirectTransportOptions, l as followRun, n as ClientSdkClient, o as createClient, r as ClientSdkEntrypoint, s as FollowRunOptions, t as ClientDomains, u as DEFAULT_FOLLOW_RUN_DEADLINE_MS, v as nextStreamCursor, y as ChatClient } from "./client-_rl-iXS8.js";
|
|
3
|
-
import { C as RealtimeChange, E as realtimeTopicKey, S as RealtimeWindow, T as RealtimeTopicFilter, _ as RealtimeStreamEnd, a as RealtimeClientStatus, b as createFetchEventSourceFactory, c as FixedWorkflowClient, d as DelegatedApplicationRuntime, f as DelegatedApplicationRuntimeOptions, g as RealtimeEventSourceFactory, h as RealtimeEventSource, i as RealtimeClientState, l as FixedWorkflowClientOptions, m as createDelegatedApplicationRuntime, n as RealtimeClient, o as RealtimeTimers, p as DelegatedRuntimeState, r as RealtimeClientOptions, s as createRealtimeClient, t as CiError, u as createFixedWorkflowClient, v as RealtimeStreamEvent, w as RealtimeTopic, x as RealtimeDocument, y as RealtimeStreamHandlers } from "./index-
|
|
3
|
+
import { C as RealtimeChange, E as realtimeTopicKey, S as RealtimeWindow, T as RealtimeTopicFilter, _ as RealtimeStreamEnd, a as RealtimeClientStatus, b as createFetchEventSourceFactory, c as FixedWorkflowClient, d as DelegatedApplicationRuntime, f as DelegatedApplicationRuntimeOptions, g as RealtimeEventSourceFactory, h as RealtimeEventSource, i as RealtimeClientState, l as FixedWorkflowClientOptions, m as createDelegatedApplicationRuntime, n as RealtimeClient, o as RealtimeTimers, p as DelegatedRuntimeState, r as RealtimeClientOptions, s as createRealtimeClient, t as CiError, u as createFixedWorkflowClient, v as RealtimeStreamEvent, w as RealtimeTopic, x as RealtimeDocument, y as RealtimeStreamHandlers } from "./index-D0f9UvVk.js";
|
|
4
4
|
import { $ as ResourceDefinition, A as EntityFileFieldWrite, B as EntityRequest, C as EntityBatchInput, Ct as ResourceUpdateRequest, D as EntityClient, E as EntityBatchRefusedDetails, F as EntityOperation, G as EntityUploadSlot, H as EntityTransport, I as EntityOperationResult, J as ResourceCapabilities, K as IdempotencyKey, L as EntityPage, M as EntityFileWrite, N as EntityListQuery, O as EntityCreateInput, P as EntityMemberValue, Q as ResourceCursor, R as EntityProtocol, S as createResourceClient, St as ResourceTransportRequest, T as EntityBatchRefusal, U as EntityUpdateInput, V as EntityRestoreInput, W as EntityUploadInput, X as ResourceCreateInput, Y as ResourceClient, Z as ResourceCreateRequest, _t as ResourceRequestOptions, at as ResourceIdentityField, b as isEntityBatchRefusedError, bt as ResourceSort, ct as ResourceLifecycleRequest, dt as ResourceListResult, et as ResourceError, ft as ResourceMutationInput, gt as ResourceRecordId, ht as ResourceRecord, it as ResourceId, j as EntityFileValue, k as EntityDeleteInput, lt as ResourceListQuery, mt as ResourcePaginationMode, n as EntityHttpTransportOptions, nt as ResourceFilter, ot as ResourceJsonValue, pt as ResourcePagination, q as PortableResourceSchema, r as createEntityHttpTransport, rt as ResourceGetRequest, st as ResourceLifecycleInput, t as EntityHttpDestination, tt as ResourceErrorCode, ut as ResourceListRequest, vt as ResourceResult, w as EntityBatchOp, x as isEntityReadLimitError, xt as ResourceTransport, y as createEntityProtocol, yt as ResourceRevision, z as EntityReadLimitDetails } from "./resources-r2t8pcv2.js";
|
|
5
5
|
export { type ChatClient, CiError, type CiErrorCode, type CiResult, type CiRunCancellation, type CiStreamEvent, type CiStreamPage, CiTransportError, type ClientDomains, type ClientFetch, type ClientOperationDefinition, type ClientOperationId, type ClientOperationInput, type ClientOperationMap, type ClientOperationOutput, type ClientSdkClient, type ClientSdkEntrypoint, DEFAULT_FOLLOW_RUN_DEADLINE_MS, type DelegatedApplicationRuntime, type DelegatedApplicationRuntimeOptions, type DelegatedRuntimeState, type DirectTransportOptions, type EntityBatchInput, type EntityBatchOp, type EntityBatchRefusal, type EntityBatchRefusedDetails, type EntityClient, type EntityCreateInput, type EntityDeleteInput, type EntityFileFieldWrite, type EntityFileValue, type EntityFileWrite, type EntityHttpDestination, type EntityHttpTransportOptions, type EntityListQuery, type EntityMemberValue, type EntityOperation, type EntityOperationResult, type EntityPage, type EntityProtocol, type EntityReadLimitDetails, type EntityRequest, type EntityRestoreInput, type EntityTransport, type EntityUpdateInput, type EntityUploadInput, type EntityUploadSlot, type FederatedAuth, FederatedAuthError, type FederatedAuthErrorCode, type FederatedAuthOptions, type FederatedAuthState, type FederatedSessionIdentity, type FixedWorkflowClient, type FixedWorkflowClientOptions, type FollowRunOptions, type FollowRunSource, type IdempotencyKey, type JsonObject, type JsonValue, type KnowledgeQuery, type OperationExecutionOptions, type OperationRequest, type OperationSuccess, type OrganizationClient, type PortableResourceSchema, type ProxyAuthentication, type ProxyTransportOptions, type QueryFilter, type RealtimeChange, type RealtimeClient, type RealtimeClientOptions, type RealtimeClientState, type RealtimeClientStatus, type RealtimeDocument, type RealtimeEventSource, type RealtimeEventSourceFactory, type RealtimeStreamEnd, type RealtimeStreamEvent, type RealtimeStreamHandlers, type RealtimeTimers, type RealtimeTopic, type RealtimeTopicFilter, type RealtimeWindow, type ResourceCapabilities, type ResourceClient, type ResourceCreateInput, type ResourceCreateRequest, type ResourceCursor, type ResourceDefinition, type ResourceError, type ResourceErrorCode, type ResourceFilter, type ResourceGetRequest, type ResourceId, type ResourceIdentityField, type ResourceJsonValue, type ResourceLifecycleInput, type ResourceLifecycleRequest, type ResourceListQuery, type ResourceListRequest, type ResourceListResult, type ResourceMutationInput, type ResourcePagination, type ResourcePaginationMode, type ResourceRecord, type ResourceRecordId, type ResourceRequestOptions, type ResourceResult, type ResourceRevision, type ResourceSort, type ResourceTransport, type ResourceTransportRequest, type ResourceUpdateRequest, type SearchQuery, type ServerSessionAuthOptions, type TypedOperationExecutor, type WorkflowInvokeTarget, clientOperationIds, clientSdkProtocolVersion, createClient, createDelegatedApplicationRuntime, createDirectTransport, createEntityHttpTransport, createEntityProtocol, createFederatedAuth, createFetchEventSourceFactory, createFixedWorkflowClient, createProxyTransport, createRealtimeClient, createResourceClient, createServerSessionAuth, followRun, isClientOperationId, isEntityBatchRefusedError, isEntityReadLimitError, nextStreamCursor, realtimeTopicKey };
|
package/docs/guide/ai/index.md
CHANGED
|
@@ -67,7 +67,7 @@ declareTool({
|
|
|
67
67
|
|
|
68
68
|
`usageScopes` decides where the tool can appear: in a Skill, in chat, or in automation. The template needs `automation` so that the Lead qualifier Agent can use the tool. When you omit `usageScopes`, the tool appears in all three places, and an explicit empty list makes it unavailable everywhere. The model reads `toolGuidance.useWhen` and `toolGuidance.inputRequirementsSummary` to decide when to call the tool and what to pass, so write both for the model.
|
|
69
69
|
|
|
70
|
-
A package can also bind built-in tools for web search (Exa or Tavily, which need an API key), website scraping, image generation, email, notifications, OCR, speech transcription and synthesis, and report building. External applications can use `publish-run-event`.
|
|
70
|
+
A package can also bind built-in tools for web search (Exa or Tavily, which need an API key), website scraping, image generation, email, notifications, OCR, speech transcription and synthesis, and report building. External applications can use `publish-run-event`. The [Built-in catalog](../platform/built-ins.md) lists every built-in tool and says which ones are ready after install.
|
|
71
71
|
|
|
72
72
|
## Skills
|
|
73
73
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Connect outside systems, map their fields to Knowledge schemas, and run and watch imports.
|
|
4
4
|
|
|
5
|
-
A connector keeps a Data resource in sync with an outside system. CI has two kinds. A Knowledge connector imports records from a source such as Notion, HubSpot or a SQL database into Knowledge records. A Documents connector imports files from Microsoft 365 or Google Drive into one Connected Collection of Documents. The [Data resources](index.md) overview compares Knowledge, Datasets and Documents, and the [Documents](documents.md) page covers Document Collections.
|
|
5
|
+
A connector keeps a Data resource in sync with an outside system. CI has two kinds. A Knowledge connector imports records from a source such as Notion, HubSpot or a SQL database into Knowledge records. A Documents connector imports files from Microsoft 365 or Google Drive into one Connected Collection of Documents. The [Data resources](index.md) overview compares Knowledge, Datasets and Documents, and the [Documents](documents.md) page covers Document Collections. The [Built-in catalog](../platform/built-ins.md) lists every connector and connection type that CI ships.
|
|
6
6
|
|
|
7
7
|
A Knowledge import passes through several stages: CI reads the source page by page, stages the records, commits the accepted ones into Knowledge, and then indexes them for search. An app or agent that reads imported data has to wait for the stage it needs. Most of this page covers Knowledge connectors. The last section compares them with Documents connectors.
|
|
8
8
|
|
|
@@ -40,7 +40,7 @@ Executable kinds also take an `implementation` class from `@collective-intellige
|
|
|
40
40
|
| `declareEventListener` | Selectors plus `normalizeWebhook` or `poll` |
|
|
41
41
|
| `declareNotificationChannel` | `deliver` |
|
|
42
42
|
|
|
43
|
-
A component refers to another component of the same package through the handle that its `declare*` call returned. For a built-in component or one from another package, pass the FQN string instead, for example `"builtin.core.knowledge.tools.query"`. TypeScript does not check these strings. Install resolves them and rolls the package back when one does not exist
|
|
43
|
+
A component refers to another component of the same package through the handle that its `declare*` call returned. For a built-in component or one from another package, pass the FQN string instead, for example `"builtin.core.knowledge.tools.query"`. TypeScript does not check these strings. Install resolves them and rolls the package back when one does not exist. The [Built-in catalog](../platform/built-ins.md) lists what CI ships, and the template pins the FQNs that it uses in a `bun test` that catches a typo before deploy.
|
|
44
44
|
|
|
45
45
|
A package that declares Agents or Skills needs a person to install it; an install with no signed-in user fails. A package can depend on another package by FQN only, for example `dependencies: [{ fqn: "com.acme.base" }]`, and each install picks the latest eligible release of the dependency by promotion order.
|
|
46
46
|
|
package/docs/guide/index.md
CHANGED
|
@@ -61,6 +61,7 @@ GITHUB_TOKEN=$(gh auth token) opensrc path collective-intelligence-solutions/sdk
|
|
|
61
61
|
- [Platform architecture](platform/architecture.md): The parts of Collective Intelligence, the three integration models, and how a package moves from build to install.
|
|
62
62
|
- [Entrypoints](platform/entrypoints.md): The ways people, apps and agents enter CI at runtime, and the package subpaths that your code imports.
|
|
63
63
|
- [Grants and permissions](platform/access.md): How CI decides what a user, a Group, an app or an API key may do, and how to change it in the template.
|
|
64
|
+
- [Built-in catalog](platform/built-ins.md): Every tool, workflow node, trigger, connector, schema, channel and MCP operation that CI ships, and which ones are already installed in an Organization.
|
|
64
65
|
- Data resources
|
|
65
66
|
- [Data resources](data/index.md): Choose between Knowledge, Datasets and Documents, and see where each kind keeps its data.
|
|
66
67
|
- [Knowledge](data/knowledge.md): Declare schemas, store typed records, query them, and read and watch them from an external app.
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
# Built-in catalog
|
|
2
|
+
|
|
3
|
+
Every tool, workflow node, trigger, connector, schema, channel and MCP operation that CI ships, and which ones are already installed in an Organization.
|
|
4
|
+
|
|
5
|
+
Before you declare a tool, a workflow node, a connector or a schema in a demo package, check this page. CI may already ship it. Everything on this page is a package that ships with each CI version and uses an FQN under `builtin.` (schema templates use `core.`). Its manifest and declarations follow the same contracts as your own package, as [Extensions](../develop/extensions.md) describes. Your package refers to a built-in item by its FQN and lists its package as a dependency. Do not copy a built-in item into your package.
|
|
6
|
+
|
|
7
|
+
## Install policies
|
|
8
|
+
|
|
9
|
+
A package that ships with CI is not always installed in an Organization. Each built-in package has one of three install policies:
|
|
10
|
+
|
|
11
|
+
| Policy | What happens | Packages |
|
|
12
|
+
| --------- | ---------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
13
|
+
| Mandatory | Installed in every Organization. An admin cannot uninstall it. | Core Workflows, Core Knowledge, Core Information, Core Activities |
|
|
14
|
+
| Standard | Installed when an admin creates an Organization with "Install packages" on, which is the default. An admin can uninstall it later. | Core Datasets, Core Documents, Core External Apps, Core Messaging, Core Notifications, Core OCR, Core Speech, Core Studio, Core Utilities, SQL databases |
|
|
15
|
+
| Optional | An admin installs it in each Organization that needs it. | Every integration in [Integrations](#integrations), Core Authoring, Core Reporting |
|
|
16
|
+
|
|
17
|
+
When CI is upgraded, it installs the new version of each mandatory package and of each optional package that an Organization already has. An upgrade never installs an optional package that the Organization did not have.
|
|
18
|
+
|
|
19
|
+
> **Warning:** When your manifest lists an integration such as `builtin.integrations.hubspot`
|
|
20
|
+
> in `dependencies` and the Organization does not have it, the deploy of your
|
|
21
|
+
> package installs it too. The integration still has no connection, so its tools
|
|
22
|
+
> and connectors fail until an admin creates one. When the Organization already
|
|
23
|
+
> has another release of the integration or of SQL databases, the deploy stops
|
|
24
|
+
> with a manual prerequisite. An admin then updates that package first.
|
|
25
|
+
|
|
26
|
+
When a package is installed, each of its tools gets the defaults that its declaration sets. With `autoInstantiate`, CI creates the tool in the Organization. With `autoActivate`, CI also turns it on. A tool that is created but not turned on appears in the Dashboard, and an admin turns it on. A tool without `usageScopes` can be used in chat, in Skills and in automation.
|
|
27
|
+
|
|
28
|
+
## Workflow triggers
|
|
29
|
+
|
|
30
|
+
Core Workflows ships these triggers, with FQNs under `builtin.core.workflows.nodes.triggers.`:
|
|
31
|
+
|
|
32
|
+
| Trigger | Starts a run when |
|
|
33
|
+
| -------------------- | -------------------------------------------------------------------- |
|
|
34
|
+
| On-demand | A person or an app starts it |
|
|
35
|
+
| Schedule | A cron rule fires in the time zone that you set |
|
|
36
|
+
| Webhook | An authenticated `POST` arrives at its path; it can answer with JSON |
|
|
37
|
+
| Entity Created | A Knowledge record of the watched schema is created |
|
|
38
|
+
| Entity Updated | A Knowledge record changes; you can watch only some top-level fields |
|
|
39
|
+
| Entity Deleted | A Knowledge record is deleted |
|
|
40
|
+
| External application | An external application starts it through the server SDK |
|
|
41
|
+
| MCP Operation | An MCP client calls `invoke_operation` on it |
|
|
42
|
+
|
|
43
|
+
Integrations add message and file triggers. Slack, Telegram and WhatsApp add "message received". Twilio adds SMS received and WhatsApp message received. Microsoft 365 adds email received, Teams message received and Drive file created. Notion adds page created, page updated and page deleted. [Entrypoints](entrypoints.md) explains as which identity each trigger runs.
|
|
44
|
+
|
|
45
|
+
## Workflow nodes
|
|
46
|
+
|
|
47
|
+
Core Workflows ships these action nodes, with FQNs under `builtin.core.workflows.nodes.actions.`:
|
|
48
|
+
|
|
49
|
+
| Collection | Nodes |
|
|
50
|
+
| ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
51
|
+
| Control flow | If, Switch, Merge, Loop (each item or in batches; 100 iterations by default), Wait (a duration, a time, a callback or an event), Invoke Workflow, Stop & Error |
|
|
52
|
+
| AI | Prompt (a model step that returns text or JSON), Skill (runs one Skill) |
|
|
53
|
+
| Data | Set Variable, Adapter (filter, sort and reshape), Code Block, HTTP Request, Persist Artifact, Stored File Link, File Content, File URL |
|
|
54
|
+
| Human review | Approval |
|
|
55
|
+
| Workflow boundaries | Input, Output |
|
|
56
|
+
|
|
57
|
+
Some limits apply to these nodes. HTTP Request times out after 1 to 60 seconds (10 by default) and can read header values from Organization secrets. File Content reads up to 5 MiB. A File URL link lasts up to 7 days. Wait, Approval and Invoke Workflow pause the run durably and continue it later.
|
|
58
|
+
|
|
59
|
+
The standard packages add nodes for their own areas:
|
|
60
|
+
|
|
61
|
+
| Package | Nodes |
|
|
62
|
+
| ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
63
|
+
| Core Knowledge | Create Knowledge Entity, Update Knowledge Entity, List Knowledge Entities, Save File to Knowledge (an HTTPS file up to 10 MiB), Add Account Knowledge Entity |
|
|
64
|
+
| Core Documents | Collection nodes (create, list, get, update, delete, restore), search nodes (Search Documents, Search Within Document, Expand Passage, Read Document Range), and sync nodes for connected collections |
|
|
65
|
+
| Core Datasets | Describe Dataset, Query Dataset Records, Query Dataset Aggregate, Query Dataset Time Series |
|
|
66
|
+
| Core Messaging | Send Email |
|
|
67
|
+
| Core Notifications | Send Notification |
|
|
68
|
+
| Core OCR | Extract Document |
|
|
69
|
+
| Core Speech | Transcribe Audio, Synthesize Speech |
|
|
70
|
+
| Core Utilities | Web Search, Generate Image |
|
|
71
|
+
| Core External Apps | Gateway Operation |
|
|
72
|
+
|
|
73
|
+
Each tool of an integration is also a workflow action node with the same name, so a workflow can call HubSpot or Gmail without a Skill.
|
|
74
|
+
|
|
75
|
+
### Code Block runtimes
|
|
76
|
+
|
|
77
|
+
A Code Block runs Python or JavaScript in one of two runtimes:
|
|
78
|
+
|
|
79
|
+
| Runtime | Language |
|
|
80
|
+
| ----------------------- | ---------- |
|
|
81
|
+
| Python 3.12 | Python |
|
|
82
|
+
| JavaScript (Node.js 24) | JavaScript |
|
|
83
|
+
|
|
84
|
+
In isolated mode, each run starts a new container with no network, a read-only file system, 128 MB of memory and half a CPU. A run can take 5 seconds and write 16 KiB of output. Use a Code Block for small, deterministic data changes. Use HTTP Request for network calls.
|
|
85
|
+
|
|
86
|
+
### Field types
|
|
87
|
+
|
|
88
|
+
Node settings use field types from two collections. Your own nodes can use them too.
|
|
89
|
+
|
|
90
|
+
- Standard fields: Text, Text list, Number, Integer, Money, Boolean, Select, Multi-select, Email, URL, UUID, JSON, Date, Time, Date and time, Date range, Cron, HTTP method, Code snippet, Condition builder.
|
|
91
|
+
- Platform fields: Connection, Entity schema, Entity instance, Model, Skill, Workflow, User, Users, File, Application Selector, Code Block Docker runtime.
|
|
92
|
+
|
|
93
|
+
## Tools
|
|
94
|
+
|
|
95
|
+
These tools ship in the mandatory and standard packages. They are grouped in tool collections. "Ready" means that the tool is created and turned on when its package is installed.
|
|
96
|
+
|
|
97
|
+
| Tool collection | Tools | Ready |
|
|
98
|
+
| ----------------------- | --------------------------------------------------------------------------------------- | ----------------------------------------------------- |
|
|
99
|
+
| Knowledge | Knowledge Catalog, Knowledge Query, Knowledge Document Read, Knowledge Mutate | Yes, except Knowledge Mutate, which an admin turns on |
|
|
100
|
+
| Information | Advanced Information Retrieval, Expand Passage, Read Source Range | Yes |
|
|
101
|
+
| Documents | Documents Query | Yes |
|
|
102
|
+
| Datasets | Query Dataset (records, aggregates and time series; no SQL) | Yes |
|
|
103
|
+
| Web | Web Search (Tavily by default, or Exa), Website Scraper | An admin turns them on |
|
|
104
|
+
| Code Execution | Script Runner (short Python or Node.js calculations in a locked-down scratchpad) | An admin turns it on |
|
|
105
|
+
| Images | Generate Image | An admin turns it on |
|
|
106
|
+
| Messaging | Send Email | An admin turns it on |
|
|
107
|
+
| Notifications | Send Notification | Yes |
|
|
108
|
+
| OCR | Extract Document (PDF, PNG, JPEG or WebP to Markdown, or to JSON that matches a schema) | An admin turns it on |
|
|
109
|
+
| Speech | Transcribe Audio, Synthesize Speech | An admin turns them on |
|
|
110
|
+
| External App Run Events | Publish Run Event | Yes |
|
|
111
|
+
|
|
112
|
+
Two optional packages add more tools after an admin installs them. Core Reporting adds Build Report, Run Report, Create Report Definition, Update Report Definition, Archive Report Definition, List Report Definitions, List Report Runs and Read Report Run. Core Authoring adds the tools of the Authoring Assistant.
|
|
113
|
+
|
|
114
|
+
[AI](../ai/index.md) explains how to bind a tool to a Skill or an agent, and [Knowledge](../data/knowledge.md) explains which Knowledge tool to choose.
|
|
115
|
+
|
|
116
|
+
### Authoring Assistant
|
|
117
|
+
|
|
118
|
+
Core Authoring ships one agent, the Authoring Assistant. From a conversation, it lists the catalog of tools, Skills, nodes and connections that the person may use, creates private drafts of agents, Skills and workflows, edits them, runs pre-publish review and Sandbox Runs, reads run traces, imports a `SKILL.md` folder and turns a plain-language schedule into a Schedule trigger. It never publishes, turns on, shares or approves anything. A person does those steps.
|
|
119
|
+
|
|
120
|
+
## Data
|
|
121
|
+
|
|
122
|
+
[Data resources](../data/index.md) explains Knowledge, Datasets and Documents. This section lists the parts of them that CI ships.
|
|
123
|
+
|
|
124
|
+
### Knowledge connectors
|
|
125
|
+
|
|
126
|
+
| Connector | Package | What it syncs |
|
|
127
|
+
| ----------------- | ------------------ | -------------------------------------------------------------------------------------------------------------------- |
|
|
128
|
+
| Structured File | Core Knowledge | CSV, XLSX and JSON rows into your schemas, from an upload, an FTP server, Google Drive or Microsoft 365. Import only |
|
|
129
|
+
| Knowledge gateway | Core External Apps | Records in both directions with an external application's server |
|
|
130
|
+
| PostgreSQL | SQL databases | Selected tables into Knowledge. Import only |
|
|
131
|
+
| MySQL | SQL databases | Selected tables into Knowledge. Import only |
|
|
132
|
+
| HubSpot API | HubSpot | Contacts, companies and deals into the CRM schemas. A read-only mirror |
|
|
133
|
+
| monday.com API | monday.com | Workspaces, boards, groups, items and updates into the project management schemas. A read-only mirror |
|
|
134
|
+
| Notion API | Notion | The Notion databases that you choose, into any schema. Import only |
|
|
135
|
+
|
|
136
|
+
No connector imports on its own schedule. After an admin creates a connector instance, they start an import or set an import schedule. During setup, HubSpot and monday.com suggest a delta import every 15 minutes and a full import each night, and Notion suggests a delta import every 5 minutes. [Connectors](../data/connectors.md) explains bindings, sync modes and mapping.
|
|
137
|
+
|
|
138
|
+
### Knowledge schemas
|
|
139
|
+
|
|
140
|
+
CI ships schema templates in domains, with FQNs under `core.schemas.<domain>.`. Your custom schemas can point a relation field at them, so a demo does not need its own Company or Person schema.
|
|
141
|
+
|
|
142
|
+
| Domain | Schemas | When they appear |
|
|
143
|
+
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------- |
|
|
144
|
+
| Strategy | Organization context, strategic dimension, business goal, strategic initiative, metric, constraint, assumption, decision principle, stakeholder, context note | When an Organization is onboarded |
|
|
145
|
+
| Directory | Organization, organizational unit, group, person | When an Organization is onboarded |
|
|
146
|
+
| Assets | Asset | When an Organization is onboarded |
|
|
147
|
+
| CRM | Contact, company, deal, lead, pipeline, stage, activity, task, note | When you choose "Create from template" while mapping a connector |
|
|
148
|
+
| HR | Worker, department, job opening, job opening template, candidate, application, interview, contract, time off, performance review | When you choose "Create from template" while mapping a connector |
|
|
149
|
+
| Project management | Workspace, project, group, task, update | When you choose "Create from template" while mapping a connector |
|
|
150
|
+
|
|
151
|
+
A template creates a schema only once. A later CI version never changes a schema that already exists, so the edits that an admin makes stay.
|
|
152
|
+
|
|
153
|
+
### Documents and Datasets
|
|
154
|
+
|
|
155
|
+
[Documents](../data/documents.md) lists the two Documents connectors, Google Drive Documents and Microsoft 365 Documents. [Datasets](../data/datasets.md) lists the Dataset providers: managed PostgreSQL storage in CI, and external Databricks, Microsoft Fabric and Remote Gateway sources. A managed import reads CSV, JSON, JSON Lines, Parquet and Excel (the first worksheet).
|
|
156
|
+
|
|
157
|
+
### Connection types
|
|
158
|
+
|
|
159
|
+
A connection holds the address and credential of one external system. CI ships these connection types:
|
|
160
|
+
|
|
161
|
+
- Core Knowledge: FTP server.
|
|
162
|
+
- SQL databases: PostgreSQL database, MySQL database.
|
|
163
|
+
- Core External Apps: External app gateway.
|
|
164
|
+
- Core Messaging: Resend, SendGrid, Amazon SES and Azure Communication Services, for email.
|
|
165
|
+
- Each integration: the connection that its row in [Integrations](#integrations) names.
|
|
166
|
+
|
|
167
|
+
## Integrations
|
|
168
|
+
|
|
169
|
+
All integrations are optional. The admin needs the credential in the last column before they install one.
|
|
170
|
+
|
|
171
|
+
| Integration | What it adds | Credential |
|
|
172
|
+
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- |
|
|
173
|
+
| Apollo | 64 tools in three families: prospecting and enrichment, accounts, contacts, tasks and lists, and sequences and outreach email | API key |
|
|
174
|
+
| Lusha | 13 tools that search, enrich and prospect contacts and companies | API key |
|
|
175
|
+
| HubSpot | 17 CRM tools for objects, lists, associations, owners, pipelines and properties; the HubSpot API Knowledge connector | Private app access token |
|
|
176
|
+
| monday.com | The monday.com API Knowledge connector. No tools | API token |
|
|
177
|
+
| Notion | 8 tools that read, search, create, update and delete pages and databases; page triggers; the Notion API Knowledge connector | Internal integration token |
|
|
178
|
+
| Google Workspace | 23 tools for Gmail, Calendar and Drive; the Google Drive Documents connector; sending email from a mailbox; Google sign-in | Service account with domain-wide delegation |
|
|
179
|
+
| Microsoft 365 | 24 tools for Outlook mail, Calendar, OneDrive and Teams; mail, Teams and Drive triggers; the Microsoft 365 Documents connector; sending email from a mailbox; Microsoft Entra sign-in | Entra application (client secret, certificate or federated), and a Teams bot for Teams messages |
|
|
180
|
+
| Slack | Send Slack message, and a message trigger | Bot token and signing secret |
|
|
181
|
+
| Telegram | Send Telegram message, and a message trigger | Bot token |
|
|
182
|
+
| WhatsApp | Send WhatsApp message, and a message trigger | Meta Cloud API access token, app secret and business account ID |
|
|
183
|
+
| Twilio | Send SMS and Send WhatsApp message, with matching triggers | Account SID and Auth Token |
|
|
184
|
+
| Databricks | A read-only Dataset provider for Unity Catalog through one SQL Warehouse | Service principal; personal access tokens are refused |
|
|
185
|
+
| Microsoft Fabric | A read-only Dataset provider for Warehouses and Lakehouse SQL endpoints | Entra service principal; personal access tokens are refused |
|
|
186
|
+
|
|
187
|
+
In Apollo, Lusha and HubSpot, tools that only read can be used in chat, in Skills and in automation, and tools that write can be used only in Skills and in automation. Apollo enrichment and Lusha search tools count as writes because each call spends credits on the provider's account. The message tools of Slack, Telegram, WhatsApp, Twilio and Teams can be used only in Skills and in automation. The other Google Workspace, Microsoft 365 and Notion tools can be used everywhere, so an Organization that offers them in chat lets a model send mail or edit pages from a conversation. WhatsApp sends only a template message to a person who has not written in the last 24 hours.
|
|
188
|
+
|
|
189
|
+
## Email and notifications
|
|
190
|
+
|
|
191
|
+
Send Email and Send Notification deliver through what an admin configures:
|
|
192
|
+
|
|
193
|
+
- Email providers: Resend, SendGrid, Amazon SES and Azure Communication Services. Google Workspace and Microsoft 365 add sending from a mailbox.
|
|
194
|
+
- Notification channels: Studio Internal, which CI creates in every Organization, Email, Slack webhook, Microsoft Teams webhook, Discord webhook and Telegram bot.
|
|
195
|
+
|
|
196
|
+
## MCP
|
|
197
|
+
|
|
198
|
+
CI is an MCP server named `collective-intelligence-mcp`, at `/mcp` and at `/mcp/o/<organizationId>`. It offers these tools:
|
|
199
|
+
|
|
200
|
+
| Tool | What it does |
|
|
201
|
+
| ------------------ | ------------------------------------------------------ |
|
|
202
|
+
| `list_memberships` | Lists the Organizations that the caller belongs to |
|
|
203
|
+
| `list_skills` | Lists the Skills that the caller can run |
|
|
204
|
+
| `run_skill` | Starts a Skill run in the background |
|
|
205
|
+
| `get_skill_run` | Reads the status and result of a Skill run |
|
|
206
|
+
| `list_operations` | Lists the workflows that have an MCP Operation trigger |
|
|
207
|
+
| `invoke_operation` | Starts one of those workflows and returns a handle |
|
|
208
|
+
| `get_operation` | Reads the status and result of an operation |
|
|
209
|
+
| `cancel_operation` | Cancels a running operation |
|
|
210
|
+
| `explain_access` | Explains why a principal can or cannot do something |
|
|
211
|
+
|
|
212
|
+
The Dashboard has ready client settings for Claude (OAuth) and Codex (bearer token). Two MCP Profiles ship. Admin full-access is for administrators and has no rate limits. User-context is for other users and allows 5 operations at a time, 60 starts a minute and 10,000 starts a month. CI does not connect to other MCP servers, and no integration adds one. [Entrypoints](entrypoints.md) explains MCP sign-in and tokens.
|
|
213
|
+
|
|
214
|
+
## Studio and models
|
|
215
|
+
|
|
216
|
+
Core Studio ships the Default Studio app. Its AI section has Activity Center, Chat, Approvals, Notifications, Agents and Skills, and its Productivity section has Documents. [Studio](../ai/studio.md) lists the built-in views that your own Studio app can use.
|
|
217
|
+
|
|
218
|
+
CI ships a catalog of models from several providers. Each Organization chooses a model preset, and the preset sets one model for each tier (complex, balanced, fast and super fast) and for embeddings, OCR, speech-to-text and text-to-speech. A package asks for a tier, not a model. The Prompt node uses the balanced tier. [AI](../ai/index.md) explains how a Skill chooses its model.
|
|
219
|
+
|
|
220
|
+
## Next steps
|
|
221
|
+
|
|
222
|
+
- [Extensions](../develop/extensions.md)
|
|
223
|
+
- [AI primitives](../ai/index.md)
|
|
224
|
+
- [Connectors](../data/connectors.md)
|
|
225
|
+
- [Choosing primitives](../scenarios/index.md)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@collective-intelligence/external-apps-client-sdk",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.9",
|
|
4
4
|
"description": "Framework-neutral client for Collective Intelligence external applications.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"ajv-formats": "3.0.1"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
|
-
"@collective-intelligence/ai-core": "0.3.
|
|
65
|
+
"@collective-intelligence/ai-core": "0.3.9",
|
|
66
66
|
"effect": "^4.1.0"
|
|
67
67
|
},
|
|
68
68
|
"peerDependenciesMeta": {
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@collective-intelligence/ai-core": "0.3.
|
|
74
|
+
"@collective-intelligence/ai-core": "0.3.9",
|
|
75
75
|
"@effect/eslint-plugin": "0.3.2",
|
|
76
76
|
"@effect/vitest": "4.1.4",
|
|
77
77
|
"@oxlint/plugins": "1.94.0",
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
"ultracite": "7.10.7",
|
|
89
89
|
"vitest": "5.0.2"
|
|
90
90
|
},
|
|
91
|
-
"gitHead": "
|
|
91
|
+
"gitHead": "56627fcab8f5db0afbfc57347d0887e6cf7f12a9"
|
|
92
92
|
}
|