@collective-intelligence/ai 0.9.1 → 0.9.2
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/dist/api/attachments-api.d.ts +4 -2
- package/dist/api/catalog-api.d.ts +8 -4
- package/dist/api/chat-api.d.ts +48 -23
- package/dist/api/chat-surface-api.d.ts +88 -43
- package/dist/api/conversations.d.ts +8 -0
- package/dist/api/errors.d.ts +8 -4
- package/dist/api/feedback-api.d.ts +4 -2
- package/dist/api/index.d.ts +2 -1
- package/dist/api/projects-api.d.ts +16 -8
- package/dist/api/speech-api.d.ts +8 -4
- package/dist/api/turns.d.ts +16 -2
- package/dist/api.d.ts +2 -1
- package/dist/api.js +1 -1
- package/dist/domain/errors.d.ts +2 -0
- package/dist/domain-0ah2nsnk.js +2 -0
- package/dist/{domain-tg4azwc2.js → domain-hvnsa0re.js} +1 -1
- package/dist/headless/chat-surface.d.ts +88 -43
- package/dist/headless.js +1 -1
- package/dist/transport/chat-client.d.ts +8 -1
- package/dist/transport/chat-transport.d.ts +2 -2
- package/dist/transport.js +1 -1
- package/dist/views/run-trace/run-stream.d.ts +2 -1
- package/dist/views.js +1 -1
- package/package.json +6 -6
- package/dist/domain-8rwbw2ah.js +0 -2
- /package/dist/{domain-5fpd4fte.js → domain-6wbbkjz0.js} +0 -0
|
@@ -37,7 +37,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
37
37
|
readonly correlationId: import("effect/Schema").String;
|
|
38
38
|
readonly error: import("effect/Schema").Struct<{
|
|
39
39
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
40
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
40
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
41
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
41
42
|
}>>;
|
|
42
43
|
} & {
|
|
43
44
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -150,7 +151,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
150
151
|
readonly correlationId: import("effect/Schema").String;
|
|
151
152
|
readonly error: import("effect/Schema").Struct<{
|
|
152
153
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
153
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
154
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
155
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
154
156
|
}>>;
|
|
155
157
|
} & {
|
|
156
158
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -226,6 +228,7 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
226
228
|
}>>, never, never>, never, never>;
|
|
227
229
|
readonly createConversation: HttpApiClient.Client.Method<import("effect/http-api/HttpApiEndpoint").HttpApiEndpoint<"createConversation", "POST", "/chat/conversations", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
228
230
|
readonly agentId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/AgentId">>;
|
|
231
|
+
readonly clientRequestId: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
229
232
|
readonly projectId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ProjectId">>;
|
|
230
233
|
readonly title: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
231
234
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
@@ -249,7 +252,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
249
252
|
readonly correlationId: import("effect/Schema").String;
|
|
250
253
|
readonly error: import("effect/Schema").Struct<{
|
|
251
254
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
252
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
255
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
256
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
253
257
|
}>>;
|
|
254
258
|
} & {
|
|
255
259
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -329,7 +333,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
329
333
|
readonly correlationId: import("effect/Schema").String;
|
|
330
334
|
readonly error: import("effect/Schema").Struct<{
|
|
331
335
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
332
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
336
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
337
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
333
338
|
}>>;
|
|
334
339
|
} & {
|
|
335
340
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -422,7 +427,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
422
427
|
readonly correlationId: import("effect/Schema").String;
|
|
423
428
|
readonly error: import("effect/Schema").Struct<{
|
|
424
429
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
425
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
430
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
431
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
426
432
|
}>>;
|
|
427
433
|
} & {
|
|
428
434
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -535,7 +541,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
535
541
|
readonly correlationId: import("effect/Schema").String;
|
|
536
542
|
readonly error: import("effect/Schema").Struct<{
|
|
537
543
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
538
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
544
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
545
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
539
546
|
}>>;
|
|
540
547
|
} & {
|
|
541
548
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -632,7 +639,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
632
639
|
readonly correlationId: import("effect/Schema").String;
|
|
633
640
|
readonly error: import("effect/Schema").Struct<{
|
|
634
641
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
635
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
642
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
643
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
636
644
|
}>>;
|
|
637
645
|
} & {
|
|
638
646
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -720,7 +728,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
720
728
|
readonly correlationId: import("effect/Schema").String;
|
|
721
729
|
readonly error: import("effect/Schema").Struct<{
|
|
722
730
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
723
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
731
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
732
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
724
733
|
}>>;
|
|
725
734
|
} & {
|
|
726
735
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -1029,7 +1038,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
1029
1038
|
readonly correlationId: import("effect/Schema").String;
|
|
1030
1039
|
readonly error: import("effect/Schema").Struct<{
|
|
1031
1040
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
1032
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
1041
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
1042
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
1033
1043
|
}>>;
|
|
1034
1044
|
} & {
|
|
1035
1045
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -1132,7 +1142,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
1132
1142
|
readonly correlationId: import("effect/Schema").String;
|
|
1133
1143
|
readonly error: import("effect/Schema").Struct<{
|
|
1134
1144
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
1135
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
1145
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
1146
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
1136
1147
|
}>>;
|
|
1137
1148
|
} & {
|
|
1138
1149
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -1222,7 +1233,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
1222
1233
|
readonly correlationId: import("effect/Schema").String;
|
|
1223
1234
|
readonly error: import("effect/Schema").Struct<{
|
|
1224
1235
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
1225
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
1236
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
1237
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
1226
1238
|
}>>;
|
|
1227
1239
|
} & {
|
|
1228
1240
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -1327,7 +1339,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
1327
1339
|
readonly correlationId: import("effect/Schema").String;
|
|
1328
1340
|
readonly error: import("effect/Schema").Struct<{
|
|
1329
1341
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
1330
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
1342
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
1343
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
1331
1344
|
}>>;
|
|
1332
1345
|
} & {
|
|
1333
1346
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -1440,7 +1453,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
1440
1453
|
readonly correlationId: import("effect/Schema").String;
|
|
1441
1454
|
readonly error: import("effect/Schema").Struct<{
|
|
1442
1455
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
1443
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
1456
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
1457
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
1444
1458
|
}>>;
|
|
1445
1459
|
} & {
|
|
1446
1460
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -1523,7 +1537,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
1523
1537
|
readonly correlationId: import("effect/Schema").String;
|
|
1524
1538
|
readonly error: import("effect/Schema").Struct<{
|
|
1525
1539
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
1526
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
1540
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
1541
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
1527
1542
|
}>>;
|
|
1528
1543
|
} & {
|
|
1529
1544
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -1636,7 +1651,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
1636
1651
|
readonly correlationId: import("effect/Schema").String;
|
|
1637
1652
|
readonly error: import("effect/Schema").Struct<{
|
|
1638
1653
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
1639
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
1654
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
1655
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
1640
1656
|
}>>;
|
|
1641
1657
|
} & {
|
|
1642
1658
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -1740,7 +1756,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
1740
1756
|
readonly correlationId: import("effect/Schema").String;
|
|
1741
1757
|
readonly error: import("effect/Schema").Struct<{
|
|
1742
1758
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
1743
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
1759
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
1760
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
1744
1761
|
}>>;
|
|
1745
1762
|
} & {
|
|
1746
1763
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -1820,7 +1837,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
1820
1837
|
readonly correlationId: import("effect/Schema").String;
|
|
1821
1838
|
readonly error: import("effect/Schema").Struct<{
|
|
1822
1839
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
1823
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
1840
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
1841
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
1824
1842
|
}>>;
|
|
1825
1843
|
} & {
|
|
1826
1844
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -1906,12 +1924,14 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
1906
1924
|
readonly role: import("effect/Schema").Literals<readonly ["system", "user", "assistant"]>;
|
|
1907
1925
|
}>;
|
|
1908
1926
|
readonly messageId: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
1927
|
+
readonly steering: import("effect/Schema").optionalKey<import("effect/Schema").Literals<readonly ["steer", "reject"]>>;
|
|
1909
1928
|
readonly trigger: import("effect/Schema").Literals<readonly ["submit-message", "regenerate-message"]>;
|
|
1910
1929
|
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").String>, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1911
1930
|
readonly correlationId: import("effect/Schema").String;
|
|
1912
1931
|
readonly error: import("effect/Schema").Struct<{
|
|
1913
1932
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
1914
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
1933
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
1934
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
1915
1935
|
}>>;
|
|
1916
1936
|
} & {
|
|
1917
1937
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -2011,7 +2031,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
2011
2031
|
readonly correlationId: import("effect/Schema").String;
|
|
2012
2032
|
readonly error: import("effect/Schema").Struct<{
|
|
2013
2033
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
2014
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
2034
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
2035
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
2015
2036
|
}>>;
|
|
2016
2037
|
} & {
|
|
2017
2038
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -2091,7 +2112,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
2091
2112
|
readonly correlationId: import("effect/Schema").String;
|
|
2092
2113
|
readonly error: import("effect/Schema").Struct<{
|
|
2093
2114
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
2094
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
2115
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
2116
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
2095
2117
|
}>>;
|
|
2096
2118
|
} & {
|
|
2097
2119
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -2192,7 +2214,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
2192
2214
|
readonly correlationId: import("effect/Schema").String;
|
|
2193
2215
|
readonly error: import("effect/Schema").Struct<{
|
|
2194
2216
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
2195
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
2217
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
2218
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
2196
2219
|
}>>;
|
|
2197
2220
|
} & {
|
|
2198
2221
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -2284,7 +2307,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
2284
2307
|
readonly correlationId: import("effect/Schema").String;
|
|
2285
2308
|
readonly error: import("effect/Schema").Struct<{
|
|
2286
2309
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
2287
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
2310
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
2311
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
2288
2312
|
}>>;
|
|
2289
2313
|
} & {
|
|
2290
2314
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -2367,7 +2391,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
2367
2391
|
readonly correlationId: import("effect/Schema").String;
|
|
2368
2392
|
readonly error: import("effect/Schema").Struct<{
|
|
2369
2393
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
2370
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
2394
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
2395
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
2371
2396
|
}>>;
|
|
2372
2397
|
} & {
|
|
2373
2398
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -2453,7 +2478,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
2453
2478
|
readonly correlationId: import("effect/Schema").String;
|
|
2454
2479
|
readonly error: import("effect/Schema").Struct<{
|
|
2455
2480
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
2456
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
2481
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
2482
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
2457
2483
|
}>>;
|
|
2458
2484
|
} & {
|
|
2459
2485
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -2547,7 +2573,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
2547
2573
|
readonly correlationId: import("effect/Schema").String;
|
|
2548
2574
|
readonly error: import("effect/Schema").Struct<{
|
|
2549
2575
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
2550
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
2576
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
2577
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
2551
2578
|
}>>;
|
|
2552
2579
|
} & {
|
|
2553
2580
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -2636,7 +2663,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
2636
2663
|
readonly correlationId: import("effect/Schema").String;
|
|
2637
2664
|
readonly error: import("effect/Schema").Struct<{
|
|
2638
2665
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
2639
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
2666
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
2667
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
2640
2668
|
}>>;
|
|
2641
2669
|
} & {
|
|
2642
2670
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -2724,7 +2752,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
2724
2752
|
readonly correlationId: import("effect/Schema").String;
|
|
2725
2753
|
readonly error: import("effect/Schema").Struct<{
|
|
2726
2754
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
2727
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
2755
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
2756
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
2728
2757
|
}>>;
|
|
2729
2758
|
} & {
|
|
2730
2759
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -2815,7 +2844,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
2815
2844
|
readonly correlationId: import("effect/Schema").String;
|
|
2816
2845
|
readonly error: import("effect/Schema").Struct<{
|
|
2817
2846
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
2818
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
2847
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
2848
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
2819
2849
|
}>>;
|
|
2820
2850
|
} & {
|
|
2821
2851
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -2905,7 +2935,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
2905
2935
|
readonly correlationId: import("effect/Schema").String;
|
|
2906
2936
|
readonly error: import("effect/Schema").Struct<{
|
|
2907
2937
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
2908
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
2938
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
2939
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
2909
2940
|
}>>;
|
|
2910
2941
|
} & {
|
|
2911
2942
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -2993,7 +3024,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
2993
3024
|
readonly correlationId: import("effect/Schema").String;
|
|
2994
3025
|
readonly error: import("effect/Schema").Struct<{
|
|
2995
3026
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
2996
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
3027
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
3028
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
2997
3029
|
}>>;
|
|
2998
3030
|
} & {
|
|
2999
3031
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -3082,7 +3114,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
3082
3114
|
readonly correlationId: import("effect/Schema").String;
|
|
3083
3115
|
readonly error: import("effect/Schema").Struct<{
|
|
3084
3116
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
3085
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
3117
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
3118
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
3086
3119
|
}>>;
|
|
3087
3120
|
} & {
|
|
3088
3121
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -3170,7 +3203,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
3170
3203
|
readonly correlationId: import("effect/Schema").String;
|
|
3171
3204
|
readonly error: import("effect/Schema").Struct<{
|
|
3172
3205
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
3173
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
3206
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
3207
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
3174
3208
|
}>>;
|
|
3175
3209
|
} & {
|
|
3176
3210
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -3250,7 +3284,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
3250
3284
|
readonly correlationId: import("effect/Schema").String;
|
|
3251
3285
|
readonly error: import("effect/Schema").Struct<{
|
|
3252
3286
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
3253
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
3287
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
3288
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
3254
3289
|
}>>;
|
|
3255
3290
|
} & {
|
|
3256
3291
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -3331,7 +3366,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
3331
3366
|
readonly correlationId: import("effect/Schema").String;
|
|
3332
3367
|
readonly error: import("effect/Schema").Struct<{
|
|
3333
3368
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
3334
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
3369
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
3370
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
3335
3371
|
}>>;
|
|
3336
3372
|
} & {
|
|
3337
3373
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -3415,7 +3451,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
3415
3451
|
readonly correlationId: import("effect/Schema").String;
|
|
3416
3452
|
readonly error: import("effect/Schema").Struct<{
|
|
3417
3453
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
3418
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
3454
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
3455
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
3419
3456
|
}>>;
|
|
3420
3457
|
} & {
|
|
3421
3458
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -3507,7 +3544,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
3507
3544
|
readonly correlationId: import("effect/Schema").String;
|
|
3508
3545
|
readonly error: import("effect/Schema").Struct<{
|
|
3509
3546
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
3510
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
3547
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
3548
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
3511
3549
|
}>>;
|
|
3512
3550
|
} & {
|
|
3513
3551
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -3593,7 +3631,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
3593
3631
|
readonly correlationId: import("effect/Schema").String;
|
|
3594
3632
|
readonly error: import("effect/Schema").Struct<{
|
|
3595
3633
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
3596
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
3634
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
3635
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
3597
3636
|
}>>;
|
|
3598
3637
|
} & {
|
|
3599
3638
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -3682,7 +3721,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
3682
3721
|
readonly correlationId: import("effect/Schema").String;
|
|
3683
3722
|
readonly error: import("effect/Schema").Struct<{
|
|
3684
3723
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
3685
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
3724
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
3725
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
3686
3726
|
}>>;
|
|
3687
3727
|
} & {
|
|
3688
3728
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -3772,7 +3812,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
3772
3812
|
readonly correlationId: import("effect/Schema").String;
|
|
3773
3813
|
readonly error: import("effect/Schema").Struct<{
|
|
3774
3814
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
3775
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
3815
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
3816
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
3776
3817
|
}>>;
|
|
3777
3818
|
} & {
|
|
3778
3819
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -3860,7 +3901,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
3860
3901
|
readonly correlationId: import("effect/Schema").String;
|
|
3861
3902
|
readonly error: import("effect/Schema").Struct<{
|
|
3862
3903
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
3863
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
3904
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
3905
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
3864
3906
|
}>>;
|
|
3865
3907
|
} & {
|
|
3866
3908
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -3944,7 +3986,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
3944
3986
|
readonly correlationId: import("effect/Schema").String;
|
|
3945
3987
|
readonly error: import("effect/Schema").Struct<{
|
|
3946
3988
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
3947
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
3989
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
3990
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
3948
3991
|
}>>;
|
|
3949
3992
|
} & {
|
|
3950
3993
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -4025,7 +4068,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
4025
4068
|
readonly correlationId: import("effect/Schema").String;
|
|
4026
4069
|
readonly error: import("effect/Schema").Struct<{
|
|
4027
4070
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
4028
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
4071
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
4072
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
4029
4073
|
}>>;
|
|
4030
4074
|
} & {
|
|
4031
4075
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -4107,7 +4151,8 @@ export declare const makeChatSurfaceClient: ({ transformClient, ...options }: Ch
|
|
|
4107
4151
|
readonly correlationId: import("effect/Schema").String;
|
|
4108
4152
|
readonly error: import("effect/Schema").Struct<{
|
|
4109
4153
|
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
4110
|
-
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
4154
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
4155
|
+
readonly runId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
4111
4156
|
}>>;
|
|
4112
4157
|
} & {
|
|
4113
4158
|
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
@@ -91,6 +91,14 @@ export declare const ListConversationsResponse: Schema.Struct<{
|
|
|
91
91
|
export declare const CreateConversationRequest: Schema.Struct<{
|
|
92
92
|
/** Binds the new Conversation to this Agent; the caller must be admitted. */
|
|
93
93
|
readonly agentId: Schema.optionalKey<Schema.brand<Schema.String, "@collective-intelligence/ai/AgentId">>;
|
|
94
|
+
/**
|
|
95
|
+
* Client-generated identity of the create, scoped to the caller (the user,
|
|
96
|
+
* the app server or the Anonymous Visitor) and the caller Place (the app).
|
|
97
|
+
* A retry with the same value answers the Conversation that the first
|
|
98
|
+
* create started, with no second one, also when two creates race; the
|
|
99
|
+
* other fields of a retry are not read again.
|
|
100
|
+
*/
|
|
101
|
+
readonly clientRequestId: Schema.optionalKey<Schema.String>;
|
|
94
102
|
/** Starts the Conversation in this Project of the caller. */
|
|
95
103
|
readonly projectId: Schema.optionalKey<Schema.brand<Schema.String, "@collective-intelligence/ai/ProjectId">>;
|
|
96
104
|
readonly title: Schema.optionalKey<Schema.String>;
|
package/dist/api/errors.d.ts
CHANGED
|
@@ -14,10 +14,12 @@ export type ChatRefusalReason = (typeof chatRefusalReasons)[number];
|
|
|
14
14
|
* it any more; the chat reads the Conversation again and shows no failure.
|
|
15
15
|
* A Chat Launch of an Intent finds a turn that still runs
|
|
16
16
|
* (`intent_turn_busy`) or an Agent conversation (`intent_turn_agent`); the
|
|
17
|
-
* chat shows why. A
|
|
18
|
-
*
|
|
17
|
+
* chat shows why. A send with `steering: "reject"` finds another turn that
|
|
18
|
+
* runs or starts (`conversation_busy`): its `runId` names that turn when it
|
|
19
|
+
* has a run yet, and the same send can pass once that turn ends. A
|
|
20
|
+
* conflict without a reason (another turn runs) is a failure.
|
|
19
21
|
*/
|
|
20
|
-
export declare const chatConflictReasons: readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"];
|
|
22
|
+
export declare const chatConflictReasons: readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"];
|
|
21
23
|
export type ChatConflictReason = (typeof chatConflictReasons)[number];
|
|
22
24
|
/** Why the chat refuses an uploaded file (`invalid_request`). */
|
|
23
25
|
export declare const uploadRejectionReasons: readonly ["unsupported", "oversized", "malformed", "too_many_files"];
|
|
@@ -76,7 +78,9 @@ export declare const chatFailures: readonly [Schema.Struct<{
|
|
|
76
78
|
readonly correlationId: Schema.String;
|
|
77
79
|
readonly error: Schema.Struct<{
|
|
78
80
|
readonly details: Schema.optionalKey<Schema.Struct<{
|
|
79
|
-
readonly reason: Schema.Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
81
|
+
readonly reason: Schema.Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
82
|
+
/** The run of the turn that holds the Conversation (`conversation_busy`). */
|
|
83
|
+
readonly runId: Schema.optionalKey<Schema.brand<Schema.String, "@collective-intelligence/ai/InvocationId">>;
|
|
80
84
|
}>>;
|
|
81
85
|
} & {
|
|
82
86
|
readonly code: Schema.Literal<"conflict">;
|
|
@@ -17,7 +17,8 @@ declare const ChatFeedbackApi_base: HttpApiGroup.HttpApiGroup<"chatFeedback", Ht
|
|
|
17
17
|
readonly correlationId: Schema.String;
|
|
18
18
|
readonly error: Schema.Struct<{
|
|
19
19
|
readonly details: Schema.optionalKey<Schema.Struct<{
|
|
20
|
-
readonly reason: Schema.Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
20
|
+
readonly reason: Schema.Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
21
|
+
readonly runId: Schema.optionalKey<Schema.brand<Schema.String, "@collective-intelligence/ai/InvocationId">>;
|
|
21
22
|
}>>;
|
|
22
23
|
} & {
|
|
23
24
|
readonly code: Schema.Literal<"conflict">;
|
|
@@ -105,7 +106,8 @@ declare const ChatFeedbackApi_base: HttpApiGroup.HttpApiGroup<"chatFeedback", Ht
|
|
|
105
106
|
readonly correlationId: Schema.String;
|
|
106
107
|
readonly error: Schema.Struct<{
|
|
107
108
|
readonly details: Schema.optionalKey<Schema.Struct<{
|
|
108
|
-
readonly reason: Schema.Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
109
|
+
readonly reason: Schema.Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent", "conversation_busy"]>;
|
|
110
|
+
readonly runId: Schema.optionalKey<Schema.brand<Schema.String, "@collective-intelligence/ai/InvocationId">>;
|
|
109
111
|
}>>;
|
|
110
112
|
} & {
|
|
111
113
|
readonly code: Schema.Literal<"conflict">;
|
package/dist/api/index.d.ts
CHANGED
|
@@ -18,4 +18,5 @@ export type { Project, ProjectFile } from "./projects-api.js";
|
|
|
18
18
|
export { ChatSpeechApi } from "./speech-api.js";
|
|
19
19
|
export { TranscriptSchema } from "./transcript.js";
|
|
20
20
|
export type { Transcript } from "./transcript.js";
|
|
21
|
-
export
|
|
21
|
+
export { ChatSendSteeringSchema } from "./turns.js";
|
|
22
|
+
export type { ChatSendRequest, ChatSendSteering, QueuedMessage, QueueMessageResponse, SendSteeringMessageResponse, TurnWait } from "./turns.js";
|