@collective-intelligence/ai 0.0.0-placeholder.0 → 0.7.1
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 +52 -0
- package/README.md +463 -1
- package/dist/api/access-check.d.ts +18 -0
- package/dist/api/answer-sources.d.ts +48 -0
- package/dist/api/attachments-api.d.ts +187 -0
- package/dist/api/catalog-api.d.ts +408 -0
- package/dist/api/chat-api.d.ts +2401 -0
- package/dist/api/chat-surface-api.d.ts +4186 -0
- package/dist/api/compaction.d.ts +52 -0
- package/dist/api/conversations.d.ts +107 -0
- package/dist/api/errors.d.ts +117 -0
- package/dist/api/feedback-api.d.ts +185 -0
- package/dist/api/files.d.ts +22 -0
- package/dist/api/ids.d.ts +33 -0
- package/dist/api/index.d.ts +21 -0
- package/dist/api/intents-api.d.ts +65 -0
- package/dist/api/place-context.d.ts +34 -0
- package/dist/api/projects-api.d.ts +718 -0
- package/dist/api/speech-api.d.ts +345 -0
- package/dist/api/transcript.d.ts +260 -0
- package/dist/api/turns.d.ts +196 -0
- package/dist/api.d.ts +21 -0
- package/dist/api.js +1 -0
- package/dist/domain/access.d.ts +29 -0
- package/dist/domain/context-trail.d.ts +65 -0
- package/dist/domain/data-parts.d.ts +247 -0
- package/dist/domain/errors.d.ts +28 -0
- package/dist/domain/index.d.ts +14 -0
- package/dist/domain/intents.d.ts +101 -0
- package/dist/domain/message.d.ts +173 -0
- package/dist/domain/place.d.ts +17 -0
- package/dist/domain/runtime-value.d.ts +16 -0
- package/dist/domain-50vzrrp9.js +2 -0
- package/dist/domain-5fpd4fte.js +1 -0
- package/dist/domain-9wzbv87n.js +2 -0
- package/dist/domain-g97xs965.js +2 -0
- package/dist/domain-hk3yw2m7.js +1 -0
- package/dist/domain-qyts6dgz.js +0 -0
- package/dist/domain-s07s1ry1.js +2 -0
- package/dist/domain.d.ts +14 -0
- package/dist/domain.js +1 -0
- package/dist/headless/access/access-store.d.ts +28 -0
- package/dist/headless/access/visibility.d.ts +24 -0
- package/dist/headless/blocked-state.d.ts +21 -0
- package/dist/headless/chat-registry.d.ts +63 -0
- package/dist/headless/chat-session-provider.d.ts +109 -0
- package/dist/headless/chat-surface.d.ts +4210 -0
- package/dist/headless/host-ports.d.ts +146 -0
- package/dist/headless/index.d.ts +33 -0
- package/dist/headless/intents/card-ends.d.ts +22 -0
- package/dist/headless/intents/intent-call.d.ts +28 -0
- package/dist/headless/intents/intents-provider.d.ts +108 -0
- package/dist/headless/intents/page-registry.d.ts +129 -0
- package/dist/headless/intents/use-intent-dispatch.d.ts +60 -0
- package/dist/headless/intents/use-intents.d.ts +11 -0
- package/dist/headless/intents/use-returned-intent-handle.d.ts +11 -0
- package/dist/headless/launch/chat-launch.d.ts +42 -0
- package/dist/headless/launch/launch-target.d.ts +25 -0
- package/dist/headless/launch/submit.d.ts +29 -0
- package/dist/headless/run-state.d.ts +16 -0
- package/dist/headless/sent-files.d.ts +20 -0
- package/dist/headless/server-started-turn-follow.proof.d.ts +26 -0
- package/dist/headless/session-machine.d.ts +745 -0
- package/dist/headless/trail/buffer.d.ts +48 -0
- package/dist/headless/trail/json-ld.d.ts +10 -0
- package/dist/headless/trail/switches.d.ts +10 -0
- package/dist/headless/trail/trail-provider.d.ts +53 -0
- package/dist/headless/transcript-messages.d.ts +26 -0
- package/dist/headless.d.ts +33 -0
- package/dist/headless.js +2 -0
- package/dist/transport/chat-client.d.ts +25 -0
- package/dist/transport/chat-transport.d.ts +57 -0
- package/dist/transport/index.d.ts +6 -0
- package/dist/transport/simulated-chat-transport.d.ts +39 -0
- package/dist/transport.d.ts +6 -0
- package/dist/transport.js +1 -0
- package/dist/views/assistant-sidebar/assistant-sidebar.d.ts +15 -0
- package/dist/views/assistant-sidebar/layout.d.ts +47 -0
- package/dist/views/assistant-sidebar/toggle.d.ts +14 -0
- package/dist/views/assistant-sidebar/use-shortcut.d.ts +11 -0
- package/dist/views/blocked/chat-blocked-state.d.ts +15 -0
- package/dist/views/chat-operations.d.ts +46 -0
- package/dist/views/chat-root.d.ts +14 -0
- package/dist/views/chat.d.ts +51 -0
- package/dist/views/composer/capability-picker.d.ts +77 -0
- package/dist/views/composer/capability-pickers.d.ts +24 -0
- package/dist/views/composer/chat-composer.d.ts +15 -0
- package/dist/views/composer/composer-picks.d.ts +31 -0
- package/dist/views/composer/composer-trail.d.ts +21 -0
- package/dist/views/composer/draft-attachments.d.ts +36 -0
- package/dist/views/composer/queued-messages.d.ts +9 -0
- package/dist/views/composer/send-menu.d.ts +11 -0
- package/dist/views/composer/slash-suggestions.d.ts +37 -0
- package/dist/views/composer/trail-chips.d.ts +15 -0
- package/dist/views/composer/voice-input/microphone.d.ts +14 -0
- package/dist/views/composer/voice-input/remote-transcription.d.ts +12 -0
- package/dist/views/composer/voice-input/use-voice-input.d.ts +30 -0
- package/dist/views/composer/voice-input/voice-input.d.ts +15 -0
- package/dist/views/dock/chat-dock.d.ts +57 -0
- package/dist/views/dock/dock-session.d.ts +22 -0
- package/dist/views/header/chat-header.d.ts +10 -0
- package/dist/views/header/compaction-controls.d.ts +17 -0
- package/dist/views/header/memory-switch.d.ts +16 -0
- package/dist/views/index.d.ts +58 -0
- package/dist/views/intents/form-fields.d.ts +38 -0
- package/dist/views/intents/intent-card.d.ts +61 -0
- package/dist/views/intents/intent-form.d.ts +23 -0
- package/dist/views/intents/intent-notices.d.ts +39 -0
- package/dist/views/intents/intent-trigger.d.ts +46 -0
- package/dist/views/intents/labels.d.ts +23 -0
- package/dist/views/labels/en.d.ts +3 -0
- package/dist/views/labels/index.d.ts +13 -0
- package/dist/views/labels/it.d.ts +3 -0
- package/dist/views/labels/types.d.ts +7 -0
- package/dist/views/launch/chat-launch-button.d.ts +21 -0
- package/dist/views/parts/answer-feedback.d.ts +26 -0
- package/dist/views/parts/evidence-part.d.ts +8 -0
- package/dist/views/parts/file-part.d.ts +8 -0
- package/dist/views/parts/image-generation-part.d.ts +9 -0
- package/dist/views/parts/image-generation.d.ts +84 -0
- package/dist/views/parts/intent-card-part.d.ts +8 -0
- package/dist/views/parts/memory-evidence-part.d.ts +7 -0
- package/dist/views/parts/message-parts.d.ts +21 -0
- package/dist/views/parts/question-part.d.ts +8 -0
- package/dist/views/parts/read-aloud.d.ts +23 -0
- package/dist/views/parts/reasoning-part.d.ts +8 -0
- package/dist/views/parts/steering-message-part.d.ts +7 -0
- package/dist/views/parts/text-part.d.ts +4 -0
- package/dist/views/parts/tool-part.d.ts +11 -0
- package/dist/views/parts/types.d.ts +103 -0
- package/dist/views/parts/use-read-aloud.d.ts +13 -0
- package/dist/views/run-trace/message-run.d.ts +17 -0
- package/dist/views/run-trace/run-stream.d.ts +128 -0
- package/dist/views/run-trace/run-trace-parts.d.ts +26 -0
- package/dist/views/run-trace/run-trace.d.ts +31 -0
- package/dist/views/sidebar/conversation-dialogs.d.ts +38 -0
- package/dist/views/sidebar/conversation-row.d.ts +23 -0
- package/dist/views/sidebar/conversation-sidebar.d.ts +10 -0
- package/dist/views/sidebar/date-groups.d.ts +12 -0
- package/dist/views/sidebar/history-filter.d.ts +57 -0
- package/dist/views/sidebar/projects/project-dialogs.d.ts +40 -0
- package/dist/views/sidebar/projects/project-files.d.ts +16 -0
- package/dist/views/sidebar/projects/project-groups.d.ts +19 -0
- package/dist/views/sidebar/projects/project-view.d.ts +21 -0
- package/dist/views/sidebar/projects/projects-section.d.ts +21 -0
- package/dist/views/sidebar/projects/use-chat-projects.d.ts +32 -0
- package/dist/views/slots.d.ts +148 -0
- package/dist/views/transcript/chat-transcript.d.ts +13 -0
- package/dist/views/transcript/sent-trail.d.ts +13 -0
- package/dist/views/transcript/use-image-reload.d.ts +16 -0
- package/dist/views.d.ts +58 -0
- package/dist/views.js +3 -0
- package/docs/guide/ai/index.md +377 -0
- package/docs/guide/ai/studio.md +245 -0
- package/docs/guide/data/connectors.md +267 -0
- package/docs/guide/data/datasets.md +145 -0
- package/docs/guide/data/documents.md +235 -0
- package/docs/guide/data/index.md +62 -0
- package/docs/guide/data/knowledge.md +214 -0
- package/docs/guide/develop/extensions.md +299 -0
- package/docs/guide/develop/external-apps.md +279 -0
- package/docs/guide/develop/infrastructure.md +135 -0
- package/docs/guide/develop/sdks.md +233 -0
- package/docs/guide/index.md +83 -0
- package/docs/guide/platform/access.md +311 -0
- package/docs/guide/platform/architecture.md +166 -0
- package/docs/guide/platform/built-ins.md +225 -0
- package/docs/guide/platform/entrypoints.md +318 -0
- package/docs/guide/scenarios/index.md +130 -0
- package/docs/guide/template/index.md +295 -0
- package/docs/guide/template/state-machines.md +294 -0
- package/package.json +120 -4
|
@@ -0,0 +1,2401 @@
|
|
|
1
|
+
import { HttpApiEndpoint, HttpApiGroup, HttpApiSchema } from "effect/http-api";
|
|
2
|
+
declare const ChatApi_base: HttpApiGroup.HttpApiGroup<"chat", HttpApiEndpoint.HttpApiEndpoint<"cancelTurn", "POST", "/chat/turns/:invocationId/cancel", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
3
|
+
readonly invocationId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">;
|
|
4
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
5
|
+
readonly invocationId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">;
|
|
6
|
+
readonly status: import("effect/Schema").Literals<readonly ["cancelled", "completed", "error", "running", "waiting_for_approval"]>;
|
|
7
|
+
}>>, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
8
|
+
readonly correlationId: import("effect/Schema").String;
|
|
9
|
+
readonly error: import("effect/Schema").Struct<{
|
|
10
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
11
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
12
|
+
}>>;
|
|
13
|
+
} & {
|
|
14
|
+
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
15
|
+
readonly message: import("effect/Schema").String;
|
|
16
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
17
|
+
}>;
|
|
18
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
19
|
+
}> | import("effect/Schema").Struct<{
|
|
20
|
+
readonly correlationId: import("effect/Schema").String;
|
|
21
|
+
readonly error: import("effect/Schema").Struct<{
|
|
22
|
+
readonly details: import("effect/Schema").Struct<{
|
|
23
|
+
readonly reason: import("effect/Schema").Literals<readonly ["capability_missing", "app_disabled", "principal_not_allowed", "not_available_here", "approval_not_allowed"]>;
|
|
24
|
+
}>;
|
|
25
|
+
} & {
|
|
26
|
+
readonly code: import("effect/Schema").Literal<"forbidden">;
|
|
27
|
+
readonly message: import("effect/Schema").String;
|
|
28
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
29
|
+
}>;
|
|
30
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
31
|
+
}> | import("effect/Schema").Struct<{
|
|
32
|
+
readonly correlationId: import("effect/Schema").String;
|
|
33
|
+
readonly error: import("effect/Schema").Struct<{
|
|
34
|
+
readonly code: import("effect/Schema").Literal<"internal">;
|
|
35
|
+
readonly message: import("effect/Schema").String;
|
|
36
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
37
|
+
}>;
|
|
38
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
39
|
+
}> | import("effect/Schema").Struct<{
|
|
40
|
+
readonly correlationId: import("effect/Schema").String;
|
|
41
|
+
readonly error: import("effect/Schema").Struct<{
|
|
42
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
43
|
+
readonly filename: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
44
|
+
readonly reason: import("effect/Schema").Literals<readonly ["unsupported", "oversized", "malformed", "too_many_files"]>;
|
|
45
|
+
}>>;
|
|
46
|
+
} & {
|
|
47
|
+
readonly code: import("effect/Schema").Literal<"invalid_request">;
|
|
48
|
+
readonly message: import("effect/Schema").String;
|
|
49
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
50
|
+
}>;
|
|
51
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
52
|
+
}> | import("effect/Schema").Struct<{
|
|
53
|
+
readonly correlationId: import("effect/Schema").String;
|
|
54
|
+
readonly error: import("effect/Schema").Struct<{
|
|
55
|
+
readonly code: import("effect/Schema").Literal<"not_found">;
|
|
56
|
+
readonly message: import("effect/Schema").String;
|
|
57
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
58
|
+
}>;
|
|
59
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
60
|
+
}> | import("effect/Schema").Struct<{
|
|
61
|
+
readonly correlationId: import("effect/Schema").String;
|
|
62
|
+
readonly error: import("effect/Schema").Struct<{
|
|
63
|
+
readonly code: import("effect/Schema").Literal<"rate_limited">;
|
|
64
|
+
readonly message: import("effect/Schema").String;
|
|
65
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
66
|
+
}>;
|
|
67
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
68
|
+
}> | import("effect/Schema").Struct<{
|
|
69
|
+
readonly correlationId: import("effect/Schema").String;
|
|
70
|
+
readonly error: import("effect/Schema").Struct<{
|
|
71
|
+
readonly code: import("effect/Schema").Literal<"unauthenticated">;
|
|
72
|
+
readonly message: import("effect/Schema").String;
|
|
73
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
74
|
+
}>;
|
|
75
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
76
|
+
}> | import("effect/Schema").Struct<{
|
|
77
|
+
readonly correlationId: import("effect/Schema").String;
|
|
78
|
+
readonly error: import("effect/Schema").Struct<{
|
|
79
|
+
readonly code: import("effect/Schema").Literal<"unavailable">;
|
|
80
|
+
readonly message: import("effect/Schema").String;
|
|
81
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
82
|
+
}>;
|
|
83
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
84
|
+
}>>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"compact", "POST", "/chat/conversations/:conversationId/compactions", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
85
|
+
readonly conversationId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ConversationId">;
|
|
86
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
87
|
+
readonly compaction: import("effect/Schema").Struct<{
|
|
88
|
+
readonly active: import("effect/Schema").Boolean;
|
|
89
|
+
readonly activeSummary: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
90
|
+
readonly id: import("effect/Schema").String;
|
|
91
|
+
readonly status: import("effect/Schema").String;
|
|
92
|
+
readonly summary: import("effect/Schema").String;
|
|
93
|
+
readonly trigger: import("effect/Schema").String;
|
|
94
|
+
}>>;
|
|
95
|
+
readonly boundary: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
96
|
+
readonly compactedThroughInvocationId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
97
|
+
readonly coveredInvocationCount: import("effect/Schema").Int;
|
|
98
|
+
readonly coveredMessageCount: import("effect/Schema").Int;
|
|
99
|
+
}>>;
|
|
100
|
+
}>;
|
|
101
|
+
readonly conversation: import("effect/Schema").Struct<{
|
|
102
|
+
readonly agentId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/AgentId">>;
|
|
103
|
+
readonly createdAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
104
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ConversationId">;
|
|
105
|
+
readonly lastActivityAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
106
|
+
readonly lastActivityInvocationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
107
|
+
readonly memoryEnabled: import("effect/Schema").Boolean;
|
|
108
|
+
readonly organizationId: import("effect/Schema").String;
|
|
109
|
+
readonly origin: import("effect/Schema").Codec<import("../domain.js").Place, import("../domain.js").Place, never, never>;
|
|
110
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ProjectId">>;
|
|
111
|
+
readonly subject: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
112
|
+
readonly id: import("effect/Schema").String;
|
|
113
|
+
readonly kind: import("effect/Schema").Literals<readonly ["skill_draft", "report_draft", "entity_schema_draft", "organization_identity", "workflow_working_copy"]>;
|
|
114
|
+
}>>;
|
|
115
|
+
readonly title: import("effect/Schema").String;
|
|
116
|
+
readonly updatedAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
117
|
+
readonly userId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
118
|
+
}>;
|
|
119
|
+
}>>, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
120
|
+
readonly correlationId: import("effect/Schema").String;
|
|
121
|
+
readonly error: import("effect/Schema").Struct<{
|
|
122
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
123
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
124
|
+
}>>;
|
|
125
|
+
} & {
|
|
126
|
+
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
127
|
+
readonly message: import("effect/Schema").String;
|
|
128
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
129
|
+
}>;
|
|
130
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
131
|
+
}> | import("effect/Schema").Struct<{
|
|
132
|
+
readonly correlationId: import("effect/Schema").String;
|
|
133
|
+
readonly error: import("effect/Schema").Struct<{
|
|
134
|
+
readonly details: import("effect/Schema").Struct<{
|
|
135
|
+
readonly reason: import("effect/Schema").Literals<readonly ["capability_missing", "app_disabled", "principal_not_allowed", "not_available_here", "approval_not_allowed"]>;
|
|
136
|
+
}>;
|
|
137
|
+
} & {
|
|
138
|
+
readonly code: import("effect/Schema").Literal<"forbidden">;
|
|
139
|
+
readonly message: import("effect/Schema").String;
|
|
140
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
141
|
+
}>;
|
|
142
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
143
|
+
}> | import("effect/Schema").Struct<{
|
|
144
|
+
readonly correlationId: import("effect/Schema").String;
|
|
145
|
+
readonly error: import("effect/Schema").Struct<{
|
|
146
|
+
readonly code: import("effect/Schema").Literal<"internal">;
|
|
147
|
+
readonly message: import("effect/Schema").String;
|
|
148
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
149
|
+
}>;
|
|
150
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
151
|
+
}> | import("effect/Schema").Struct<{
|
|
152
|
+
readonly correlationId: import("effect/Schema").String;
|
|
153
|
+
readonly error: import("effect/Schema").Struct<{
|
|
154
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
155
|
+
readonly filename: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
156
|
+
readonly reason: import("effect/Schema").Literals<readonly ["unsupported", "oversized", "malformed", "too_many_files"]>;
|
|
157
|
+
}>>;
|
|
158
|
+
} & {
|
|
159
|
+
readonly code: import("effect/Schema").Literal<"invalid_request">;
|
|
160
|
+
readonly message: import("effect/Schema").String;
|
|
161
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
162
|
+
}>;
|
|
163
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
164
|
+
}> | import("effect/Schema").Struct<{
|
|
165
|
+
readonly correlationId: import("effect/Schema").String;
|
|
166
|
+
readonly error: import("effect/Schema").Struct<{
|
|
167
|
+
readonly code: import("effect/Schema").Literal<"not_found">;
|
|
168
|
+
readonly message: import("effect/Schema").String;
|
|
169
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
170
|
+
}>;
|
|
171
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
172
|
+
}> | import("effect/Schema").Struct<{
|
|
173
|
+
readonly correlationId: import("effect/Schema").String;
|
|
174
|
+
readonly error: import("effect/Schema").Struct<{
|
|
175
|
+
readonly code: import("effect/Schema").Literal<"rate_limited">;
|
|
176
|
+
readonly message: import("effect/Schema").String;
|
|
177
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
178
|
+
}>;
|
|
179
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
180
|
+
}> | import("effect/Schema").Struct<{
|
|
181
|
+
readonly correlationId: import("effect/Schema").String;
|
|
182
|
+
readonly error: import("effect/Schema").Struct<{
|
|
183
|
+
readonly code: import("effect/Schema").Literal<"unauthenticated">;
|
|
184
|
+
readonly message: import("effect/Schema").String;
|
|
185
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
186
|
+
}>;
|
|
187
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
188
|
+
}> | import("effect/Schema").Struct<{
|
|
189
|
+
readonly correlationId: import("effect/Schema").String;
|
|
190
|
+
readonly error: import("effect/Schema").Struct<{
|
|
191
|
+
readonly code: import("effect/Schema").Literal<"unavailable">;
|
|
192
|
+
readonly message: import("effect/Schema").String;
|
|
193
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
194
|
+
}>;
|
|
195
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
196
|
+
}>>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"createConversation", "POST", "/chat/conversations", never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
197
|
+
readonly agentId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/AgentId">>;
|
|
198
|
+
readonly projectId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ProjectId">>;
|
|
199
|
+
readonly title: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
200
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
201
|
+
readonly agentId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/AgentId">>;
|
|
202
|
+
readonly createdAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
203
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ConversationId">;
|
|
204
|
+
readonly lastActivityAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
205
|
+
readonly lastActivityInvocationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
206
|
+
readonly memoryEnabled: import("effect/Schema").Boolean;
|
|
207
|
+
readonly organizationId: import("effect/Schema").String;
|
|
208
|
+
readonly origin: import("effect/Schema").Codec<import("../domain.js").Place, import("../domain.js").Place, never, never>;
|
|
209
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ProjectId">>;
|
|
210
|
+
readonly subject: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
211
|
+
readonly id: import("effect/Schema").String;
|
|
212
|
+
readonly kind: import("effect/Schema").Literals<readonly ["skill_draft", "report_draft", "entity_schema_draft", "organization_identity", "workflow_working_copy"]>;
|
|
213
|
+
}>>;
|
|
214
|
+
readonly title: import("effect/Schema").String;
|
|
215
|
+
readonly updatedAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
216
|
+
readonly userId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
217
|
+
}>>, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
218
|
+
readonly correlationId: import("effect/Schema").String;
|
|
219
|
+
readonly error: import("effect/Schema").Struct<{
|
|
220
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
221
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
222
|
+
}>>;
|
|
223
|
+
} & {
|
|
224
|
+
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
225
|
+
readonly message: import("effect/Schema").String;
|
|
226
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
227
|
+
}>;
|
|
228
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
229
|
+
}> | import("effect/Schema").Struct<{
|
|
230
|
+
readonly correlationId: import("effect/Schema").String;
|
|
231
|
+
readonly error: import("effect/Schema").Struct<{
|
|
232
|
+
readonly details: import("effect/Schema").Struct<{
|
|
233
|
+
readonly reason: import("effect/Schema").Literals<readonly ["capability_missing", "app_disabled", "principal_not_allowed", "not_available_here", "approval_not_allowed"]>;
|
|
234
|
+
}>;
|
|
235
|
+
} & {
|
|
236
|
+
readonly code: import("effect/Schema").Literal<"forbidden">;
|
|
237
|
+
readonly message: import("effect/Schema").String;
|
|
238
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
239
|
+
}>;
|
|
240
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
241
|
+
}> | import("effect/Schema").Struct<{
|
|
242
|
+
readonly correlationId: import("effect/Schema").String;
|
|
243
|
+
readonly error: import("effect/Schema").Struct<{
|
|
244
|
+
readonly code: import("effect/Schema").Literal<"internal">;
|
|
245
|
+
readonly message: import("effect/Schema").String;
|
|
246
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
247
|
+
}>;
|
|
248
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
249
|
+
}> | import("effect/Schema").Struct<{
|
|
250
|
+
readonly correlationId: import("effect/Schema").String;
|
|
251
|
+
readonly error: import("effect/Schema").Struct<{
|
|
252
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
253
|
+
readonly filename: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
254
|
+
readonly reason: import("effect/Schema").Literals<readonly ["unsupported", "oversized", "malformed", "too_many_files"]>;
|
|
255
|
+
}>>;
|
|
256
|
+
} & {
|
|
257
|
+
readonly code: import("effect/Schema").Literal<"invalid_request">;
|
|
258
|
+
readonly message: import("effect/Schema").String;
|
|
259
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
260
|
+
}>;
|
|
261
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
262
|
+
}> | import("effect/Schema").Struct<{
|
|
263
|
+
readonly correlationId: import("effect/Schema").String;
|
|
264
|
+
readonly error: import("effect/Schema").Struct<{
|
|
265
|
+
readonly code: import("effect/Schema").Literal<"not_found">;
|
|
266
|
+
readonly message: import("effect/Schema").String;
|
|
267
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
268
|
+
}>;
|
|
269
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
270
|
+
}> | import("effect/Schema").Struct<{
|
|
271
|
+
readonly correlationId: import("effect/Schema").String;
|
|
272
|
+
readonly error: import("effect/Schema").Struct<{
|
|
273
|
+
readonly code: import("effect/Schema").Literal<"rate_limited">;
|
|
274
|
+
readonly message: import("effect/Schema").String;
|
|
275
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
276
|
+
}>;
|
|
277
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
278
|
+
}> | import("effect/Schema").Struct<{
|
|
279
|
+
readonly correlationId: import("effect/Schema").String;
|
|
280
|
+
readonly error: import("effect/Schema").Struct<{
|
|
281
|
+
readonly code: import("effect/Schema").Literal<"unauthenticated">;
|
|
282
|
+
readonly message: import("effect/Schema").String;
|
|
283
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
284
|
+
}>;
|
|
285
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
286
|
+
}> | import("effect/Schema").Struct<{
|
|
287
|
+
readonly correlationId: import("effect/Schema").String;
|
|
288
|
+
readonly error: import("effect/Schema").Struct<{
|
|
289
|
+
readonly code: import("effect/Schema").Literal<"unavailable">;
|
|
290
|
+
readonly message: import("effect/Schema").String;
|
|
291
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
292
|
+
}>;
|
|
293
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
294
|
+
}>>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"deleteConversation", "DELETE", "/chat/conversations/:conversationId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
295
|
+
readonly conversationId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ConversationId">;
|
|
296
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
297
|
+
readonly correlationId: import("effect/Schema").String;
|
|
298
|
+
readonly error: import("effect/Schema").Struct<{
|
|
299
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
300
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
301
|
+
}>>;
|
|
302
|
+
} & {
|
|
303
|
+
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
304
|
+
readonly message: import("effect/Schema").String;
|
|
305
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
306
|
+
}>;
|
|
307
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
308
|
+
}> | import("effect/Schema").Struct<{
|
|
309
|
+
readonly correlationId: import("effect/Schema").String;
|
|
310
|
+
readonly error: import("effect/Schema").Struct<{
|
|
311
|
+
readonly details: import("effect/Schema").Struct<{
|
|
312
|
+
readonly reason: import("effect/Schema").Literals<readonly ["capability_missing", "app_disabled", "principal_not_allowed", "not_available_here", "approval_not_allowed"]>;
|
|
313
|
+
}>;
|
|
314
|
+
} & {
|
|
315
|
+
readonly code: import("effect/Schema").Literal<"forbidden">;
|
|
316
|
+
readonly message: import("effect/Schema").String;
|
|
317
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
318
|
+
}>;
|
|
319
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
320
|
+
}> | import("effect/Schema").Struct<{
|
|
321
|
+
readonly correlationId: import("effect/Schema").String;
|
|
322
|
+
readonly error: import("effect/Schema").Struct<{
|
|
323
|
+
readonly code: import("effect/Schema").Literal<"internal">;
|
|
324
|
+
readonly message: import("effect/Schema").String;
|
|
325
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
326
|
+
}>;
|
|
327
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
328
|
+
}> | import("effect/Schema").Struct<{
|
|
329
|
+
readonly correlationId: import("effect/Schema").String;
|
|
330
|
+
readonly error: import("effect/Schema").Struct<{
|
|
331
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
332
|
+
readonly filename: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
333
|
+
readonly reason: import("effect/Schema").Literals<readonly ["unsupported", "oversized", "malformed", "too_many_files"]>;
|
|
334
|
+
}>>;
|
|
335
|
+
} & {
|
|
336
|
+
readonly code: import("effect/Schema").Literal<"invalid_request">;
|
|
337
|
+
readonly message: import("effect/Schema").String;
|
|
338
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
339
|
+
}>;
|
|
340
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
341
|
+
}> | import("effect/Schema").Struct<{
|
|
342
|
+
readonly correlationId: import("effect/Schema").String;
|
|
343
|
+
readonly error: import("effect/Schema").Struct<{
|
|
344
|
+
readonly code: import("effect/Schema").Literal<"not_found">;
|
|
345
|
+
readonly message: import("effect/Schema").String;
|
|
346
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
347
|
+
}>;
|
|
348
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
349
|
+
}> | import("effect/Schema").Struct<{
|
|
350
|
+
readonly correlationId: import("effect/Schema").String;
|
|
351
|
+
readonly error: import("effect/Schema").Struct<{
|
|
352
|
+
readonly code: import("effect/Schema").Literal<"rate_limited">;
|
|
353
|
+
readonly message: import("effect/Schema").String;
|
|
354
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
355
|
+
}>;
|
|
356
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
357
|
+
}> | import("effect/Schema").Struct<{
|
|
358
|
+
readonly correlationId: import("effect/Schema").String;
|
|
359
|
+
readonly error: import("effect/Schema").Struct<{
|
|
360
|
+
readonly code: import("effect/Schema").Literal<"unauthenticated">;
|
|
361
|
+
readonly message: import("effect/Schema").String;
|
|
362
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
363
|
+
}>;
|
|
364
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
365
|
+
}> | import("effect/Schema").Struct<{
|
|
366
|
+
readonly correlationId: import("effect/Schema").String;
|
|
367
|
+
readonly error: import("effect/Schema").Struct<{
|
|
368
|
+
readonly code: import("effect/Schema").Literal<"unavailable">;
|
|
369
|
+
readonly message: import("effect/Schema").String;
|
|
370
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
371
|
+
}>;
|
|
372
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
373
|
+
}>>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getArtifactProgress", "GET", "/chat/conversations/:conversationId/artifact-progress", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
374
|
+
readonly conversationId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ConversationId">;
|
|
375
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
376
|
+
readonly currentArtifact: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
377
|
+
readonly artifactId: import("effect/Schema").String;
|
|
378
|
+
readonly contentType: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
379
|
+
readonly filename: import("effect/Schema").String;
|
|
380
|
+
readonly role: import("effect/Schema").String;
|
|
381
|
+
readonly sourceKind: import("effect/Schema").String;
|
|
382
|
+
}>>;
|
|
383
|
+
readonly failed: import("effect/Schema").Int;
|
|
384
|
+
readonly leased: import("effect/Schema").Int;
|
|
385
|
+
readonly pending: import("effect/Schema").Int;
|
|
386
|
+
readonly processed: import("effect/Schema").Int;
|
|
387
|
+
readonly skipped: import("effect/Schema").Int;
|
|
388
|
+
}>>, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
389
|
+
readonly correlationId: import("effect/Schema").String;
|
|
390
|
+
readonly error: import("effect/Schema").Struct<{
|
|
391
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
392
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
393
|
+
}>>;
|
|
394
|
+
} & {
|
|
395
|
+
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
396
|
+
readonly message: import("effect/Schema").String;
|
|
397
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
398
|
+
}>;
|
|
399
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
400
|
+
}> | import("effect/Schema").Struct<{
|
|
401
|
+
readonly correlationId: import("effect/Schema").String;
|
|
402
|
+
readonly error: import("effect/Schema").Struct<{
|
|
403
|
+
readonly details: import("effect/Schema").Struct<{
|
|
404
|
+
readonly reason: import("effect/Schema").Literals<readonly ["capability_missing", "app_disabled", "principal_not_allowed", "not_available_here", "approval_not_allowed"]>;
|
|
405
|
+
}>;
|
|
406
|
+
} & {
|
|
407
|
+
readonly code: import("effect/Schema").Literal<"forbidden">;
|
|
408
|
+
readonly message: import("effect/Schema").String;
|
|
409
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
410
|
+
}>;
|
|
411
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
412
|
+
}> | import("effect/Schema").Struct<{
|
|
413
|
+
readonly correlationId: import("effect/Schema").String;
|
|
414
|
+
readonly error: import("effect/Schema").Struct<{
|
|
415
|
+
readonly code: import("effect/Schema").Literal<"internal">;
|
|
416
|
+
readonly message: import("effect/Schema").String;
|
|
417
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
418
|
+
}>;
|
|
419
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
420
|
+
}> | import("effect/Schema").Struct<{
|
|
421
|
+
readonly correlationId: import("effect/Schema").String;
|
|
422
|
+
readonly error: import("effect/Schema").Struct<{
|
|
423
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
424
|
+
readonly filename: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
425
|
+
readonly reason: import("effect/Schema").Literals<readonly ["unsupported", "oversized", "malformed", "too_many_files"]>;
|
|
426
|
+
}>>;
|
|
427
|
+
} & {
|
|
428
|
+
readonly code: import("effect/Schema").Literal<"invalid_request">;
|
|
429
|
+
readonly message: import("effect/Schema").String;
|
|
430
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
431
|
+
}>;
|
|
432
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
433
|
+
}> | import("effect/Schema").Struct<{
|
|
434
|
+
readonly correlationId: import("effect/Schema").String;
|
|
435
|
+
readonly error: import("effect/Schema").Struct<{
|
|
436
|
+
readonly code: import("effect/Schema").Literal<"not_found">;
|
|
437
|
+
readonly message: import("effect/Schema").String;
|
|
438
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
439
|
+
}>;
|
|
440
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
441
|
+
}> | import("effect/Schema").Struct<{
|
|
442
|
+
readonly correlationId: import("effect/Schema").String;
|
|
443
|
+
readonly error: import("effect/Schema").Struct<{
|
|
444
|
+
readonly code: import("effect/Schema").Literal<"rate_limited">;
|
|
445
|
+
readonly message: import("effect/Schema").String;
|
|
446
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
447
|
+
}>;
|
|
448
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
449
|
+
}> | import("effect/Schema").Struct<{
|
|
450
|
+
readonly correlationId: import("effect/Schema").String;
|
|
451
|
+
readonly error: import("effect/Schema").Struct<{
|
|
452
|
+
readonly code: import("effect/Schema").Literal<"unauthenticated">;
|
|
453
|
+
readonly message: import("effect/Schema").String;
|
|
454
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
455
|
+
}>;
|
|
456
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
457
|
+
}> | import("effect/Schema").Struct<{
|
|
458
|
+
readonly correlationId: import("effect/Schema").String;
|
|
459
|
+
readonly error: import("effect/Schema").Struct<{
|
|
460
|
+
readonly code: import("effect/Schema").Literal<"unavailable">;
|
|
461
|
+
readonly message: import("effect/Schema").String;
|
|
462
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
463
|
+
}>;
|
|
464
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
465
|
+
}>>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getCompaction", "GET", "/chat/conversations/:conversationId/compaction", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
466
|
+
readonly conversationId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ConversationId">;
|
|
467
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
468
|
+
readonly compaction: import("effect/Schema").Struct<{
|
|
469
|
+
readonly active: import("effect/Schema").Boolean;
|
|
470
|
+
readonly activeSummary: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
471
|
+
readonly id: import("effect/Schema").String;
|
|
472
|
+
readonly status: import("effect/Schema").String;
|
|
473
|
+
readonly summary: import("effect/Schema").String;
|
|
474
|
+
readonly trigger: import("effect/Schema").String;
|
|
475
|
+
}>>;
|
|
476
|
+
readonly boundary: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
477
|
+
readonly compactedThroughInvocationId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
478
|
+
readonly coveredInvocationCount: import("effect/Schema").Int;
|
|
479
|
+
readonly coveredMessageCount: import("effect/Schema").Int;
|
|
480
|
+
}>>;
|
|
481
|
+
}>;
|
|
482
|
+
readonly conversation: import("effect/Schema").Struct<{
|
|
483
|
+
readonly agentId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/AgentId">>;
|
|
484
|
+
readonly createdAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
485
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ConversationId">;
|
|
486
|
+
readonly lastActivityAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
487
|
+
readonly lastActivityInvocationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
488
|
+
readonly memoryEnabled: import("effect/Schema").Boolean;
|
|
489
|
+
readonly organizationId: import("effect/Schema").String;
|
|
490
|
+
readonly origin: import("effect/Schema").Codec<import("../domain.js").Place, import("../domain.js").Place, never, never>;
|
|
491
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ProjectId">>;
|
|
492
|
+
readonly subject: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
493
|
+
readonly id: import("effect/Schema").String;
|
|
494
|
+
readonly kind: import("effect/Schema").Literals<readonly ["skill_draft", "report_draft", "entity_schema_draft", "organization_identity", "workflow_working_copy"]>;
|
|
495
|
+
}>>;
|
|
496
|
+
readonly title: import("effect/Schema").String;
|
|
497
|
+
readonly updatedAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
498
|
+
readonly userId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
499
|
+
}>;
|
|
500
|
+
}>>, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
501
|
+
readonly correlationId: import("effect/Schema").String;
|
|
502
|
+
readonly error: import("effect/Schema").Struct<{
|
|
503
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
504
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
505
|
+
}>>;
|
|
506
|
+
} & {
|
|
507
|
+
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
508
|
+
readonly message: import("effect/Schema").String;
|
|
509
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
510
|
+
}>;
|
|
511
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
512
|
+
}> | import("effect/Schema").Struct<{
|
|
513
|
+
readonly correlationId: import("effect/Schema").String;
|
|
514
|
+
readonly error: import("effect/Schema").Struct<{
|
|
515
|
+
readonly details: import("effect/Schema").Struct<{
|
|
516
|
+
readonly reason: import("effect/Schema").Literals<readonly ["capability_missing", "app_disabled", "principal_not_allowed", "not_available_here", "approval_not_allowed"]>;
|
|
517
|
+
}>;
|
|
518
|
+
} & {
|
|
519
|
+
readonly code: import("effect/Schema").Literal<"forbidden">;
|
|
520
|
+
readonly message: import("effect/Schema").String;
|
|
521
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
522
|
+
}>;
|
|
523
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
524
|
+
}> | import("effect/Schema").Struct<{
|
|
525
|
+
readonly correlationId: import("effect/Schema").String;
|
|
526
|
+
readonly error: import("effect/Schema").Struct<{
|
|
527
|
+
readonly code: import("effect/Schema").Literal<"internal">;
|
|
528
|
+
readonly message: import("effect/Schema").String;
|
|
529
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
530
|
+
}>;
|
|
531
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
532
|
+
}> | import("effect/Schema").Struct<{
|
|
533
|
+
readonly correlationId: import("effect/Schema").String;
|
|
534
|
+
readonly error: import("effect/Schema").Struct<{
|
|
535
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
536
|
+
readonly filename: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
537
|
+
readonly reason: import("effect/Schema").Literals<readonly ["unsupported", "oversized", "malformed", "too_many_files"]>;
|
|
538
|
+
}>>;
|
|
539
|
+
} & {
|
|
540
|
+
readonly code: import("effect/Schema").Literal<"invalid_request">;
|
|
541
|
+
readonly message: import("effect/Schema").String;
|
|
542
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
543
|
+
}>;
|
|
544
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
545
|
+
}> | import("effect/Schema").Struct<{
|
|
546
|
+
readonly correlationId: import("effect/Schema").String;
|
|
547
|
+
readonly error: import("effect/Schema").Struct<{
|
|
548
|
+
readonly code: import("effect/Schema").Literal<"not_found">;
|
|
549
|
+
readonly message: import("effect/Schema").String;
|
|
550
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
551
|
+
}>;
|
|
552
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
553
|
+
}> | import("effect/Schema").Struct<{
|
|
554
|
+
readonly correlationId: import("effect/Schema").String;
|
|
555
|
+
readonly error: import("effect/Schema").Struct<{
|
|
556
|
+
readonly code: import("effect/Schema").Literal<"rate_limited">;
|
|
557
|
+
readonly message: import("effect/Schema").String;
|
|
558
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
559
|
+
}>;
|
|
560
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
561
|
+
}> | import("effect/Schema").Struct<{
|
|
562
|
+
readonly correlationId: import("effect/Schema").String;
|
|
563
|
+
readonly error: import("effect/Schema").Struct<{
|
|
564
|
+
readonly code: import("effect/Schema").Literal<"unauthenticated">;
|
|
565
|
+
readonly message: import("effect/Schema").String;
|
|
566
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
567
|
+
}>;
|
|
568
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
569
|
+
}> | import("effect/Schema").Struct<{
|
|
570
|
+
readonly correlationId: import("effect/Schema").String;
|
|
571
|
+
readonly error: import("effect/Schema").Struct<{
|
|
572
|
+
readonly code: import("effect/Schema").Literal<"unavailable">;
|
|
573
|
+
readonly message: import("effect/Schema").String;
|
|
574
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
575
|
+
}>;
|
|
576
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
577
|
+
}>>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getConversation", "GET", "/chat/conversations/:conversationId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
578
|
+
readonly conversationId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ConversationId">;
|
|
579
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
580
|
+
readonly agentId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/AgentId">>;
|
|
581
|
+
readonly createdAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
582
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ConversationId">;
|
|
583
|
+
readonly lastActivityAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
584
|
+
readonly lastActivityInvocationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
585
|
+
readonly memoryEnabled: import("effect/Schema").Boolean;
|
|
586
|
+
readonly organizationId: import("effect/Schema").String;
|
|
587
|
+
readonly origin: import("effect/Schema").Codec<import("../domain.js").Place, import("../domain.js").Place, never, never>;
|
|
588
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ProjectId">>;
|
|
589
|
+
readonly subject: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
590
|
+
readonly id: import("effect/Schema").String;
|
|
591
|
+
readonly kind: import("effect/Schema").Literals<readonly ["skill_draft", "report_draft", "entity_schema_draft", "organization_identity", "workflow_working_copy"]>;
|
|
592
|
+
}>>;
|
|
593
|
+
readonly title: import("effect/Schema").String;
|
|
594
|
+
readonly updatedAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
595
|
+
readonly userId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
596
|
+
}>>, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
597
|
+
readonly correlationId: import("effect/Schema").String;
|
|
598
|
+
readonly error: import("effect/Schema").Struct<{
|
|
599
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
600
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
601
|
+
}>>;
|
|
602
|
+
} & {
|
|
603
|
+
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
604
|
+
readonly message: import("effect/Schema").String;
|
|
605
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
606
|
+
}>;
|
|
607
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
608
|
+
}> | import("effect/Schema").Struct<{
|
|
609
|
+
readonly correlationId: import("effect/Schema").String;
|
|
610
|
+
readonly error: import("effect/Schema").Struct<{
|
|
611
|
+
readonly details: import("effect/Schema").Struct<{
|
|
612
|
+
readonly reason: import("effect/Schema").Literals<readonly ["capability_missing", "app_disabled", "principal_not_allowed", "not_available_here", "approval_not_allowed"]>;
|
|
613
|
+
}>;
|
|
614
|
+
} & {
|
|
615
|
+
readonly code: import("effect/Schema").Literal<"forbidden">;
|
|
616
|
+
readonly message: import("effect/Schema").String;
|
|
617
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
618
|
+
}>;
|
|
619
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
620
|
+
}> | import("effect/Schema").Struct<{
|
|
621
|
+
readonly correlationId: import("effect/Schema").String;
|
|
622
|
+
readonly error: import("effect/Schema").Struct<{
|
|
623
|
+
readonly code: import("effect/Schema").Literal<"internal">;
|
|
624
|
+
readonly message: import("effect/Schema").String;
|
|
625
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
626
|
+
}>;
|
|
627
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
628
|
+
}> | import("effect/Schema").Struct<{
|
|
629
|
+
readonly correlationId: import("effect/Schema").String;
|
|
630
|
+
readonly error: import("effect/Schema").Struct<{
|
|
631
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
632
|
+
readonly filename: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
633
|
+
readonly reason: import("effect/Schema").Literals<readonly ["unsupported", "oversized", "malformed", "too_many_files"]>;
|
|
634
|
+
}>>;
|
|
635
|
+
} & {
|
|
636
|
+
readonly code: import("effect/Schema").Literal<"invalid_request">;
|
|
637
|
+
readonly message: import("effect/Schema").String;
|
|
638
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
639
|
+
}>;
|
|
640
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
641
|
+
}> | import("effect/Schema").Struct<{
|
|
642
|
+
readonly correlationId: import("effect/Schema").String;
|
|
643
|
+
readonly error: import("effect/Schema").Struct<{
|
|
644
|
+
readonly code: import("effect/Schema").Literal<"not_found">;
|
|
645
|
+
readonly message: import("effect/Schema").String;
|
|
646
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
647
|
+
}>;
|
|
648
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
649
|
+
}> | import("effect/Schema").Struct<{
|
|
650
|
+
readonly correlationId: import("effect/Schema").String;
|
|
651
|
+
readonly error: import("effect/Schema").Struct<{
|
|
652
|
+
readonly code: import("effect/Schema").Literal<"rate_limited">;
|
|
653
|
+
readonly message: import("effect/Schema").String;
|
|
654
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
655
|
+
}>;
|
|
656
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
657
|
+
}> | import("effect/Schema").Struct<{
|
|
658
|
+
readonly correlationId: import("effect/Schema").String;
|
|
659
|
+
readonly error: import("effect/Schema").Struct<{
|
|
660
|
+
readonly code: import("effect/Schema").Literal<"unauthenticated">;
|
|
661
|
+
readonly message: import("effect/Schema").String;
|
|
662
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
663
|
+
}>;
|
|
664
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
665
|
+
}> | import("effect/Schema").Struct<{
|
|
666
|
+
readonly correlationId: import("effect/Schema").String;
|
|
667
|
+
readonly error: import("effect/Schema").Struct<{
|
|
668
|
+
readonly code: import("effect/Schema").Literal<"unavailable">;
|
|
669
|
+
readonly message: import("effect/Schema").String;
|
|
670
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
671
|
+
}>;
|
|
672
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
673
|
+
}>>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getPlaceContext", "GET", "/chat/place-context", never, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
674
|
+
readonly contextTrailEnabled: import("effect/Schema").withDecodingDefaultKey<import("effect/Schema").Boolean, never>;
|
|
675
|
+
readonly contextTrailVisible: import("effect/Schema").withDecodingDefaultKey<import("effect/Schema").Boolean, never>;
|
|
676
|
+
readonly places: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
677
|
+
readonly id: import("effect/Schema").String;
|
|
678
|
+
readonly kind: import("effect/Schema").Literals<readonly ["studio_app", "external_app", "dashboard"]>;
|
|
679
|
+
readonly name: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
680
|
+
}>>;
|
|
681
|
+
readonly readAloud: import("effect/Schema").Boolean;
|
|
682
|
+
readonly voiceInputMode: import("effect/Schema").optionalKey<import("effect/Schema").Literals<readonly ["local", "remote"]>>;
|
|
683
|
+
}>>, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
684
|
+
readonly correlationId: import("effect/Schema").String;
|
|
685
|
+
readonly error: import("effect/Schema").Struct<{
|
|
686
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
687
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
688
|
+
}>>;
|
|
689
|
+
} & {
|
|
690
|
+
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
691
|
+
readonly message: import("effect/Schema").String;
|
|
692
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
693
|
+
}>;
|
|
694
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
695
|
+
}> | import("effect/Schema").Struct<{
|
|
696
|
+
readonly correlationId: import("effect/Schema").String;
|
|
697
|
+
readonly error: import("effect/Schema").Struct<{
|
|
698
|
+
readonly details: import("effect/Schema").Struct<{
|
|
699
|
+
readonly reason: import("effect/Schema").Literals<readonly ["capability_missing", "app_disabled", "principal_not_allowed", "not_available_here", "approval_not_allowed"]>;
|
|
700
|
+
}>;
|
|
701
|
+
} & {
|
|
702
|
+
readonly code: import("effect/Schema").Literal<"forbidden">;
|
|
703
|
+
readonly message: import("effect/Schema").String;
|
|
704
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
705
|
+
}>;
|
|
706
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
707
|
+
}> | import("effect/Schema").Struct<{
|
|
708
|
+
readonly correlationId: import("effect/Schema").String;
|
|
709
|
+
readonly error: import("effect/Schema").Struct<{
|
|
710
|
+
readonly code: import("effect/Schema").Literal<"internal">;
|
|
711
|
+
readonly message: import("effect/Schema").String;
|
|
712
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
713
|
+
}>;
|
|
714
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
715
|
+
}> | import("effect/Schema").Struct<{
|
|
716
|
+
readonly correlationId: import("effect/Schema").String;
|
|
717
|
+
readonly error: import("effect/Schema").Struct<{
|
|
718
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
719
|
+
readonly filename: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
720
|
+
readonly reason: import("effect/Schema").Literals<readonly ["unsupported", "oversized", "malformed", "too_many_files"]>;
|
|
721
|
+
}>>;
|
|
722
|
+
} & {
|
|
723
|
+
readonly code: import("effect/Schema").Literal<"invalid_request">;
|
|
724
|
+
readonly message: import("effect/Schema").String;
|
|
725
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
726
|
+
}>;
|
|
727
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
728
|
+
}> | import("effect/Schema").Struct<{
|
|
729
|
+
readonly correlationId: import("effect/Schema").String;
|
|
730
|
+
readonly error: import("effect/Schema").Struct<{
|
|
731
|
+
readonly code: import("effect/Schema").Literal<"not_found">;
|
|
732
|
+
readonly message: import("effect/Schema").String;
|
|
733
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
734
|
+
}>;
|
|
735
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
736
|
+
}> | import("effect/Schema").Struct<{
|
|
737
|
+
readonly correlationId: import("effect/Schema").String;
|
|
738
|
+
readonly error: import("effect/Schema").Struct<{
|
|
739
|
+
readonly code: import("effect/Schema").Literal<"rate_limited">;
|
|
740
|
+
readonly message: import("effect/Schema").String;
|
|
741
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
742
|
+
}>;
|
|
743
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
744
|
+
}> | import("effect/Schema").Struct<{
|
|
745
|
+
readonly correlationId: import("effect/Schema").String;
|
|
746
|
+
readonly error: import("effect/Schema").Struct<{
|
|
747
|
+
readonly code: import("effect/Schema").Literal<"unauthenticated">;
|
|
748
|
+
readonly message: import("effect/Schema").String;
|
|
749
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
750
|
+
}>;
|
|
751
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
752
|
+
}> | import("effect/Schema").Struct<{
|
|
753
|
+
readonly correlationId: import("effect/Schema").String;
|
|
754
|
+
readonly error: import("effect/Schema").Struct<{
|
|
755
|
+
readonly code: import("effect/Schema").Literal<"unavailable">;
|
|
756
|
+
readonly message: import("effect/Schema").String;
|
|
757
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
758
|
+
}>;
|
|
759
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
760
|
+
}>>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"getTranscript", "GET", "/chat/conversations/:conversationId/transcript", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
761
|
+
readonly conversationId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ConversationId">;
|
|
762
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
763
|
+
readonly agentTurns: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
764
|
+
readonly completedAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
765
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
766
|
+
readonly input: import("effect/Schema").String;
|
|
767
|
+
readonly intentCards: import("effect/Schema").optionalKey<import("effect/Schema").$Array<import("../domain.js").CiStandardSchema<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
768
|
+
readonly dispatchId: import("effect/Schema").String;
|
|
769
|
+
readonly displayName: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
770
|
+
readonly fqn: import("effect/Schema").String;
|
|
771
|
+
readonly state: import("effect/Schema").Literal<"running">;
|
|
772
|
+
}>, import("effect/Schema").Struct<{
|
|
773
|
+
readonly dispatchId: import("effect/Schema").String;
|
|
774
|
+
readonly displayName: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
775
|
+
readonly fqn: import("effect/Schema").String;
|
|
776
|
+
readonly result: import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>;
|
|
777
|
+
readonly state: import("effect/Schema").Literal<"completed">;
|
|
778
|
+
}>, import("effect/Schema").Struct<{
|
|
779
|
+
readonly dispatchId: import("effect/Schema").String;
|
|
780
|
+
readonly displayName: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
781
|
+
readonly fqn: import("effect/Schema").String;
|
|
782
|
+
readonly reason: import("effect/Schema").String;
|
|
783
|
+
readonly state: import("effect/Schema").Literal<"failed">;
|
|
784
|
+
}>, import("effect/Schema").Struct<{
|
|
785
|
+
readonly dispatchId: import("effect/Schema").String;
|
|
786
|
+
readonly displayName: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
787
|
+
readonly fqn: import("effect/Schema").String;
|
|
788
|
+
readonly state: import("effect/Schema").Literal<"ended">;
|
|
789
|
+
}>]>>>>;
|
|
790
|
+
readonly message: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
791
|
+
readonly sequence: import("effect/Schema").Int;
|
|
792
|
+
readonly status: import("effect/Schema").Literals<readonly ["pending", "completed", "failed", "cancelled"]>;
|
|
793
|
+
readonly turnId: import("effect/Schema").String;
|
|
794
|
+
}>>;
|
|
795
|
+
readonly conversation: import("effect/Schema").Struct<{
|
|
796
|
+
readonly agent: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
797
|
+
readonly displayName: import("effect/Schema").String;
|
|
798
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/AgentId">;
|
|
799
|
+
}>>;
|
|
800
|
+
readonly compaction: import("effect/Schema").Struct<{
|
|
801
|
+
readonly active: import("effect/Schema").Boolean;
|
|
802
|
+
readonly activeSummary: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
803
|
+
readonly id: import("effect/Schema").String;
|
|
804
|
+
readonly status: import("effect/Schema").String;
|
|
805
|
+
readonly summary: import("effect/Schema").String;
|
|
806
|
+
readonly trigger: import("effect/Schema").String;
|
|
807
|
+
}>>;
|
|
808
|
+
readonly boundary: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
809
|
+
readonly compactedThroughInvocationId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
810
|
+
readonly coveredInvocationCount: import("effect/Schema").Int;
|
|
811
|
+
readonly coveredMessageCount: import("effect/Schema").Int;
|
|
812
|
+
}>>;
|
|
813
|
+
}>;
|
|
814
|
+
readonly contextUsage: import("effect/Schema").Struct<{
|
|
815
|
+
readonly estimatedCharacters: import("effect/Schema").Int;
|
|
816
|
+
readonly fillRatio: import("effect/Schema").Finite;
|
|
817
|
+
readonly thresholdCharacters: import("effect/Schema").Int;
|
|
818
|
+
}>;
|
|
819
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ConversationId">;
|
|
820
|
+
readonly title: import("effect/Schema").String;
|
|
821
|
+
}>;
|
|
822
|
+
readonly messages: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
823
|
+
readonly approvalRequestId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
824
|
+
readonly attachments: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
825
|
+
readonly characterCount: import("effect/Schema").Int;
|
|
826
|
+
readonly contentType: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
827
|
+
readonly extension: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
828
|
+
readonly extractionStatus: import("effect/Schema").String;
|
|
829
|
+
readonly filename: import("effect/Schema").String;
|
|
830
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/AttachmentId">;
|
|
831
|
+
readonly sizeBytes: import("effect/Schema").Int;
|
|
832
|
+
readonly truncated: import("effect/Schema").Boolean;
|
|
833
|
+
readonly unavailableReason: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
834
|
+
readonly mediaUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
835
|
+
}>>;
|
|
836
|
+
readonly content: import("effect/Schema").String;
|
|
837
|
+
readonly contextTrail: import("effect/Schema").optionalKey<import("effect/Schema").$Array<import("../domain.js").CiStandardSchema<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
838
|
+
readonly at: import("effect/Schema").String;
|
|
839
|
+
readonly data: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>;
|
|
840
|
+
readonly event: import("effect/Schema").String;
|
|
841
|
+
readonly source: import("effect/Schema").String;
|
|
842
|
+
}>, import("effect/Schema").Struct<{
|
|
843
|
+
readonly at: import("effect/Schema").String;
|
|
844
|
+
readonly data: import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
|
|
845
|
+
readonly "@type": import("effect/Schema").String;
|
|
846
|
+
}>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>]>;
|
|
847
|
+
readonly source: import("effect/Schema").String;
|
|
848
|
+
}>, import("effect/Schema").Struct<{
|
|
849
|
+
readonly app: import("effect/Schema").String;
|
|
850
|
+
readonly at: import("effect/Schema").String;
|
|
851
|
+
readonly page: import("effect/Schema").String;
|
|
852
|
+
readonly title: import("effect/Schema").String;
|
|
853
|
+
}>]>>>>;
|
|
854
|
+
readonly conversationId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ConversationId">;
|
|
855
|
+
readonly currentUserFeedback: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
856
|
+
readonly sentiment: import("effect/Schema").NullOr<import("effect/Schema").Literals<readonly ["positive", "negative"]>>;
|
|
857
|
+
readonly submitterNote: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
858
|
+
}>>;
|
|
859
|
+
readonly feedbackTargetId: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
860
|
+
readonly invocationId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">;
|
|
861
|
+
readonly processingEvents: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
862
|
+
readonly data: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>;
|
|
863
|
+
readonly event: import("effect/Schema").String;
|
|
864
|
+
}>>;
|
|
865
|
+
readonly role: import("effect/Schema").Literals<readonly ["assistant", "user"]>;
|
|
866
|
+
readonly run: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
867
|
+
readonly approvalRequestId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
868
|
+
readonly conversationId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ConversationId">;
|
|
869
|
+
readonly durationMs: import("effect/Schema").Finite;
|
|
870
|
+
readonly inputTokens: import("effect/Schema").Int;
|
|
871
|
+
readonly intentCards: import("effect/Schema").optionalKey<import("effect/Schema").$Array<import("../domain.js").CiStandardSchema<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
872
|
+
readonly dispatchId: import("effect/Schema").String;
|
|
873
|
+
readonly displayName: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
874
|
+
readonly fqn: import("effect/Schema").String;
|
|
875
|
+
readonly state: import("effect/Schema").Literal<"running">;
|
|
876
|
+
}>, import("effect/Schema").Struct<{
|
|
877
|
+
readonly dispatchId: import("effect/Schema").String;
|
|
878
|
+
readonly displayName: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
879
|
+
readonly fqn: import("effect/Schema").String;
|
|
880
|
+
readonly result: import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>;
|
|
881
|
+
readonly state: import("effect/Schema").Literal<"completed">;
|
|
882
|
+
}>, import("effect/Schema").Struct<{
|
|
883
|
+
readonly dispatchId: import("effect/Schema").String;
|
|
884
|
+
readonly displayName: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
885
|
+
readonly fqn: import("effect/Schema").String;
|
|
886
|
+
readonly reason: import("effect/Schema").String;
|
|
887
|
+
readonly state: import("effect/Schema").Literal<"failed">;
|
|
888
|
+
}>, import("effect/Schema").Struct<{
|
|
889
|
+
readonly dispatchId: import("effect/Schema").String;
|
|
890
|
+
readonly displayName: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
891
|
+
readonly fqn: import("effect/Schema").String;
|
|
892
|
+
readonly state: import("effect/Schema").Literal<"ended">;
|
|
893
|
+
}>]>>>>;
|
|
894
|
+
readonly invocationId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">;
|
|
895
|
+
readonly memoryEvidence: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
896
|
+
readonly events: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
897
|
+
readonly category: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
898
|
+
readonly conversationId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ConversationId">>;
|
|
899
|
+
readonly invocationId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
900
|
+
readonly kind: import("effect/Schema").String;
|
|
901
|
+
readonly lifecycleStatus: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
902
|
+
readonly memoryId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
903
|
+
readonly reason: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
904
|
+
readonly scope: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
905
|
+
}>>;
|
|
906
|
+
}>>;
|
|
907
|
+
readonly model: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
908
|
+
readonly output: import("effect/Schema").String;
|
|
909
|
+
readonly outputTokens: import("effect/Schema").Int;
|
|
910
|
+
readonly permissionWait: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
911
|
+
readonly capabilityKind: import("effect/Schema").Literals<readonly ["skill", "tool"]>;
|
|
912
|
+
readonly invocationId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">;
|
|
913
|
+
readonly subjectId: import("effect/Schema").String;
|
|
914
|
+
}>>;
|
|
915
|
+
readonly processingEvents: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
916
|
+
readonly data: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>;
|
|
917
|
+
readonly event: import("effect/Schema").String;
|
|
918
|
+
}>>;
|
|
919
|
+
readonly skillOutcome: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
920
|
+
readonly status: import("effect/Schema").String;
|
|
921
|
+
readonly toolTrace: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
922
|
+
readonly displayName: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
923
|
+
readonly displayParts: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
924
|
+
readonly data: import("effect/Schema").Unknown;
|
|
925
|
+
readonly description: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
926
|
+
readonly metadata: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>;
|
|
927
|
+
readonly title: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
928
|
+
readonly type: import("effect/Schema").String;
|
|
929
|
+
}>>;
|
|
930
|
+
readonly durationMs: import("effect/Schema").NullOr<import("effect/Schema").Finite>;
|
|
931
|
+
readonly error: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
932
|
+
readonly fqn: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
933
|
+
readonly toolId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
934
|
+
}>>;
|
|
935
|
+
readonly traceLink: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
936
|
+
readonly userInteraction: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
937
|
+
readonly allowFreeText: import("effect/Schema").Boolean;
|
|
938
|
+
readonly id: import("effect/Schema").String;
|
|
939
|
+
readonly kind: import("effect/Schema").Literals<readonly ["approval", "question"]>;
|
|
940
|
+
readonly mode: import("effect/Schema").NullOr<import("effect/Schema").Literals<readonly ["open", "single_choice"]>>;
|
|
941
|
+
readonly operation: import("effect/Schema").NullOr<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
942
|
+
readonly displayName: import("effect/Schema").String;
|
|
943
|
+
readonly kind: import("effect/Schema").Literal<"tool">;
|
|
944
|
+
readonly toolFqn: import("effect/Schema").String;
|
|
945
|
+
readonly toolId: import("effect/Schema").String;
|
|
946
|
+
}>, import("effect/Schema").Struct<{
|
|
947
|
+
readonly displayName: import("effect/Schema").String;
|
|
948
|
+
readonly fqn: import("effect/Schema").String;
|
|
949
|
+
readonly inputs: import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Codec<import("effect/Schema").Json, import("effect/Schema").Json, never, never>>;
|
|
950
|
+
readonly kind: import("effect/Schema").Literal<"intent">;
|
|
951
|
+
}>]>>;
|
|
952
|
+
readonly options: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
953
|
+
readonly description: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
954
|
+
readonly id: import("effect/Schema").String;
|
|
955
|
+
readonly label: import("effect/Schema").String;
|
|
956
|
+
}>>;
|
|
957
|
+
readonly preview: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
958
|
+
readonly prompt: import("effect/Schema").String;
|
|
959
|
+
readonly safePreview: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
960
|
+
readonly status: import("effect/Schema").Literals<readonly ["pending", "responding", "completed", "cancelled", "failed"]>;
|
|
961
|
+
readonly summary: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
962
|
+
}>>;
|
|
963
|
+
}>>;
|
|
964
|
+
readonly status: import("effect/Schema").String;
|
|
965
|
+
readonly toolDisplay: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
966
|
+
readonly kind: import("effect/Schema").Literal<"text">;
|
|
967
|
+
readonly text: import("effect/Schema").String;
|
|
968
|
+
}>, import("effect/Schema").Struct<{
|
|
969
|
+
readonly kind: import("effect/Schema").Literal<"unavailable">;
|
|
970
|
+
}>]>;
|
|
971
|
+
}>>;
|
|
972
|
+
readonly steeringMessages: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
973
|
+
readonly attachments: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
974
|
+
readonly characterCount: import("effect/Schema").Int;
|
|
975
|
+
readonly contentType: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
976
|
+
readonly extension: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
977
|
+
readonly extractionStatus: import("effect/Schema").String;
|
|
978
|
+
readonly filename: import("effect/Schema").String;
|
|
979
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/AttachmentId">;
|
|
980
|
+
readonly sizeBytes: import("effect/Schema").Int;
|
|
981
|
+
readonly truncated: import("effect/Schema").Boolean;
|
|
982
|
+
readonly unavailableReason: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
983
|
+
readonly mediaUrl: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
984
|
+
}>>;
|
|
985
|
+
readonly claimedAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
986
|
+
readonly content: import("effect/Schema").String;
|
|
987
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/SteeringMessageId">;
|
|
988
|
+
readonly invocationId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">;
|
|
989
|
+
}>>;
|
|
990
|
+
}>>, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
991
|
+
readonly correlationId: import("effect/Schema").String;
|
|
992
|
+
readonly error: import("effect/Schema").Struct<{
|
|
993
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
994
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
995
|
+
}>>;
|
|
996
|
+
} & {
|
|
997
|
+
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
998
|
+
readonly message: import("effect/Schema").String;
|
|
999
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1000
|
+
}>;
|
|
1001
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1002
|
+
}> | import("effect/Schema").Struct<{
|
|
1003
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1004
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1005
|
+
readonly details: import("effect/Schema").Struct<{
|
|
1006
|
+
readonly reason: import("effect/Schema").Literals<readonly ["capability_missing", "app_disabled", "principal_not_allowed", "not_available_here", "approval_not_allowed"]>;
|
|
1007
|
+
}>;
|
|
1008
|
+
} & {
|
|
1009
|
+
readonly code: import("effect/Schema").Literal<"forbidden">;
|
|
1010
|
+
readonly message: import("effect/Schema").String;
|
|
1011
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1012
|
+
}>;
|
|
1013
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1014
|
+
}> | import("effect/Schema").Struct<{
|
|
1015
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1016
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1017
|
+
readonly code: import("effect/Schema").Literal<"internal">;
|
|
1018
|
+
readonly message: import("effect/Schema").String;
|
|
1019
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1020
|
+
}>;
|
|
1021
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1022
|
+
}> | import("effect/Schema").Struct<{
|
|
1023
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1024
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1025
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
1026
|
+
readonly filename: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
1027
|
+
readonly reason: import("effect/Schema").Literals<readonly ["unsupported", "oversized", "malformed", "too_many_files"]>;
|
|
1028
|
+
}>>;
|
|
1029
|
+
} & {
|
|
1030
|
+
readonly code: import("effect/Schema").Literal<"invalid_request">;
|
|
1031
|
+
readonly message: import("effect/Schema").String;
|
|
1032
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1033
|
+
}>;
|
|
1034
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1035
|
+
}> | import("effect/Schema").Struct<{
|
|
1036
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1037
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1038
|
+
readonly code: import("effect/Schema").Literal<"not_found">;
|
|
1039
|
+
readonly message: import("effect/Schema").String;
|
|
1040
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1041
|
+
}>;
|
|
1042
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1043
|
+
}> | import("effect/Schema").Struct<{
|
|
1044
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1045
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1046
|
+
readonly code: import("effect/Schema").Literal<"rate_limited">;
|
|
1047
|
+
readonly message: import("effect/Schema").String;
|
|
1048
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1049
|
+
}>;
|
|
1050
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1051
|
+
}> | import("effect/Schema").Struct<{
|
|
1052
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1053
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1054
|
+
readonly code: import("effect/Schema").Literal<"unauthenticated">;
|
|
1055
|
+
readonly message: import("effect/Schema").String;
|
|
1056
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1057
|
+
}>;
|
|
1058
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1059
|
+
}> | import("effect/Schema").Struct<{
|
|
1060
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1061
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1062
|
+
readonly code: import("effect/Schema").Literal<"unavailable">;
|
|
1063
|
+
readonly message: import("effect/Schema").String;
|
|
1064
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1065
|
+
}>;
|
|
1066
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1067
|
+
}>>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listConversations", "GET", "/chat/conversations", never, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1068
|
+
readonly historyScope: import("effect/Schema").optionalKey<import("effect/Schema").$Array<import("effect/Schema").decodeTo<import("effect/Schema").Codec<import("../domain.js").Place, import("../domain.js").Place, never, never>, import("effect/Schema").TemplateLiteralParser<readonly [import("effect/Schema").Literals<readonly ["studio_app", "external_app", "dashboard"]>, ":", import("effect/Schema").String]>, never, never>>>;
|
|
1069
|
+
readonly subject: import("effect/Schema").optionalKey<import("effect/Schema").decodeTo<import("effect/Schema").Struct<{
|
|
1070
|
+
readonly id: import("effect/Schema").String;
|
|
1071
|
+
readonly kind: import("effect/Schema").Literals<readonly ["skill_draft", "report_draft", "entity_schema_draft", "organization_identity", "workflow_working_copy"]>;
|
|
1072
|
+
}>, import("effect/Schema").TemplateLiteralParser<readonly [import("effect/Schema").Literals<readonly ["skill_draft", "report_draft", "entity_schema_draft", "organization_identity", "workflow_working_copy"]>, ":", import("effect/Schema").String]>, never, never>>;
|
|
1073
|
+
}>>, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1074
|
+
readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1075
|
+
readonly agentId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/AgentId">>;
|
|
1076
|
+
readonly createdAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
1077
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ConversationId">;
|
|
1078
|
+
readonly lastActivityAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
1079
|
+
readonly lastActivityInvocationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1080
|
+
readonly memoryEnabled: import("effect/Schema").Boolean;
|
|
1081
|
+
readonly organizationId: import("effect/Schema").String;
|
|
1082
|
+
readonly origin: import("effect/Schema").Codec<import("../domain.js").Place, import("../domain.js").Place, never, never>;
|
|
1083
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ProjectId">>;
|
|
1084
|
+
readonly subject: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
1085
|
+
readonly id: import("effect/Schema").String;
|
|
1086
|
+
readonly kind: import("effect/Schema").Literals<readonly ["skill_draft", "report_draft", "entity_schema_draft", "organization_identity", "workflow_working_copy"]>;
|
|
1087
|
+
}>>;
|
|
1088
|
+
readonly title: import("effect/Schema").String;
|
|
1089
|
+
readonly updatedAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
1090
|
+
readonly userId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1091
|
+
}>>;
|
|
1092
|
+
}>>, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1093
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1094
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1095
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
1096
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
1097
|
+
}>>;
|
|
1098
|
+
} & {
|
|
1099
|
+
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
1100
|
+
readonly message: import("effect/Schema").String;
|
|
1101
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1102
|
+
}>;
|
|
1103
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1104
|
+
}> | import("effect/Schema").Struct<{
|
|
1105
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1106
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1107
|
+
readonly details: import("effect/Schema").Struct<{
|
|
1108
|
+
readonly reason: import("effect/Schema").Literals<readonly ["capability_missing", "app_disabled", "principal_not_allowed", "not_available_here", "approval_not_allowed"]>;
|
|
1109
|
+
}>;
|
|
1110
|
+
} & {
|
|
1111
|
+
readonly code: import("effect/Schema").Literal<"forbidden">;
|
|
1112
|
+
readonly message: import("effect/Schema").String;
|
|
1113
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1114
|
+
}>;
|
|
1115
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1116
|
+
}> | import("effect/Schema").Struct<{
|
|
1117
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1118
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1119
|
+
readonly code: import("effect/Schema").Literal<"internal">;
|
|
1120
|
+
readonly message: import("effect/Schema").String;
|
|
1121
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1122
|
+
}>;
|
|
1123
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1124
|
+
}> | import("effect/Schema").Struct<{
|
|
1125
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1126
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1127
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
1128
|
+
readonly filename: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
1129
|
+
readonly reason: import("effect/Schema").Literals<readonly ["unsupported", "oversized", "malformed", "too_many_files"]>;
|
|
1130
|
+
}>>;
|
|
1131
|
+
} & {
|
|
1132
|
+
readonly code: import("effect/Schema").Literal<"invalid_request">;
|
|
1133
|
+
readonly message: import("effect/Schema").String;
|
|
1134
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1135
|
+
}>;
|
|
1136
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1137
|
+
}> | import("effect/Schema").Struct<{
|
|
1138
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1139
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1140
|
+
readonly code: import("effect/Schema").Literal<"not_found">;
|
|
1141
|
+
readonly message: import("effect/Schema").String;
|
|
1142
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1143
|
+
}>;
|
|
1144
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1145
|
+
}> | import("effect/Schema").Struct<{
|
|
1146
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1147
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1148
|
+
readonly code: import("effect/Schema").Literal<"rate_limited">;
|
|
1149
|
+
readonly message: import("effect/Schema").String;
|
|
1150
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1151
|
+
}>;
|
|
1152
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1153
|
+
}> | import("effect/Schema").Struct<{
|
|
1154
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1155
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1156
|
+
readonly code: import("effect/Schema").Literal<"unauthenticated">;
|
|
1157
|
+
readonly message: import("effect/Schema").String;
|
|
1158
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1159
|
+
}>;
|
|
1160
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1161
|
+
}> | import("effect/Schema").Struct<{
|
|
1162
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1163
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1164
|
+
readonly code: import("effect/Schema").Literal<"unavailable">;
|
|
1165
|
+
readonly message: import("effect/Schema").String;
|
|
1166
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1167
|
+
}>;
|
|
1168
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1169
|
+
}>>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"listQueuedMessages", "GET", "/chat/conversations/:conversationId/queued-messages", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1170
|
+
readonly conversationId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ConversationId">;
|
|
1171
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1172
|
+
readonly data: import("effect/Schema").$Array<import("effect/Schema").Struct<{
|
|
1173
|
+
readonly content: import("effect/Schema").String;
|
|
1174
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
1175
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/QueuedMessageId">;
|
|
1176
|
+
readonly invocationId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
1177
|
+
readonly position: import("effect/Schema").Int;
|
|
1178
|
+
readonly revision: import("effect/Schema").Int;
|
|
1179
|
+
readonly status: import("effect/Schema").Literals<readonly ["waiting", "claimed", "removed"]>;
|
|
1180
|
+
}>>;
|
|
1181
|
+
}>>, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1182
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1183
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1184
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
1185
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
1186
|
+
}>>;
|
|
1187
|
+
} & {
|
|
1188
|
+
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
1189
|
+
readonly message: import("effect/Schema").String;
|
|
1190
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1191
|
+
}>;
|
|
1192
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1193
|
+
}> | import("effect/Schema").Struct<{
|
|
1194
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1195
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1196
|
+
readonly details: import("effect/Schema").Struct<{
|
|
1197
|
+
readonly reason: import("effect/Schema").Literals<readonly ["capability_missing", "app_disabled", "principal_not_allowed", "not_available_here", "approval_not_allowed"]>;
|
|
1198
|
+
}>;
|
|
1199
|
+
} & {
|
|
1200
|
+
readonly code: import("effect/Schema").Literal<"forbidden">;
|
|
1201
|
+
readonly message: import("effect/Schema").String;
|
|
1202
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1203
|
+
}>;
|
|
1204
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1205
|
+
}> | import("effect/Schema").Struct<{
|
|
1206
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1207
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1208
|
+
readonly code: import("effect/Schema").Literal<"internal">;
|
|
1209
|
+
readonly message: import("effect/Schema").String;
|
|
1210
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1211
|
+
}>;
|
|
1212
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1213
|
+
}> | import("effect/Schema").Struct<{
|
|
1214
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1215
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1216
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
1217
|
+
readonly filename: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
1218
|
+
readonly reason: import("effect/Schema").Literals<readonly ["unsupported", "oversized", "malformed", "too_many_files"]>;
|
|
1219
|
+
}>>;
|
|
1220
|
+
} & {
|
|
1221
|
+
readonly code: import("effect/Schema").Literal<"invalid_request">;
|
|
1222
|
+
readonly message: import("effect/Schema").String;
|
|
1223
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1224
|
+
}>;
|
|
1225
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1226
|
+
}> | import("effect/Schema").Struct<{
|
|
1227
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1228
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1229
|
+
readonly code: import("effect/Schema").Literal<"not_found">;
|
|
1230
|
+
readonly message: import("effect/Schema").String;
|
|
1231
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1232
|
+
}>;
|
|
1233
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1234
|
+
}> | import("effect/Schema").Struct<{
|
|
1235
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1236
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1237
|
+
readonly code: import("effect/Schema").Literal<"rate_limited">;
|
|
1238
|
+
readonly message: import("effect/Schema").String;
|
|
1239
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1240
|
+
}>;
|
|
1241
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1242
|
+
}> | import("effect/Schema").Struct<{
|
|
1243
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1244
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1245
|
+
readonly code: import("effect/Schema").Literal<"unauthenticated">;
|
|
1246
|
+
readonly message: import("effect/Schema").String;
|
|
1247
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1248
|
+
}>;
|
|
1249
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1250
|
+
}> | import("effect/Schema").Struct<{
|
|
1251
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1252
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1253
|
+
readonly code: import("effect/Schema").Literal<"unavailable">;
|
|
1254
|
+
readonly message: import("effect/Schema").String;
|
|
1255
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1256
|
+
}>;
|
|
1257
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1258
|
+
}>>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"queueMessage", "POST", "/chat/conversations/:conversationId/queued-messages", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1259
|
+
readonly conversationId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ConversationId">;
|
|
1260
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1261
|
+
readonly clientMessageId: import("effect/Schema").String;
|
|
1262
|
+
readonly content: import("effect/Schema").String;
|
|
1263
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
1264
|
+
readonly conversationId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ConversationId">;
|
|
1265
|
+
readonly outcome: import("effect/Schema").Literal<"queued">;
|
|
1266
|
+
readonly queuedMessage: import("effect/Schema").Struct<{
|
|
1267
|
+
readonly content: import("effect/Schema").String;
|
|
1268
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
1269
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/QueuedMessageId">;
|
|
1270
|
+
readonly invocationId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
1271
|
+
readonly position: import("effect/Schema").Int;
|
|
1272
|
+
readonly revision: import("effect/Schema").Int;
|
|
1273
|
+
readonly status: import("effect/Schema").Literals<readonly ["waiting", "claimed", "removed"]>;
|
|
1274
|
+
}>;
|
|
1275
|
+
}>, import("effect/Schema").Struct<{
|
|
1276
|
+
readonly conversationId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ConversationId">;
|
|
1277
|
+
readonly invocationId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
1278
|
+
readonly outcome: import("effect/Schema").Literal<"started">;
|
|
1279
|
+
readonly queuedMessageId: import("effect/Schema").optionalKey<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/QueuedMessageId">>;
|
|
1280
|
+
}>, import("effect/Schema").Struct<{
|
|
1281
|
+
readonly conversationId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ConversationId">;
|
|
1282
|
+
readonly invocationId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">;
|
|
1283
|
+
readonly outcome: import("effect/Schema").Literal<"saved">;
|
|
1284
|
+
readonly steeringMessageId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/SteeringMessageId">;
|
|
1285
|
+
}>]>>, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1286
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1287
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1288
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
1289
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
1290
|
+
}>>;
|
|
1291
|
+
} & {
|
|
1292
|
+
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
1293
|
+
readonly message: import("effect/Schema").String;
|
|
1294
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1295
|
+
}>;
|
|
1296
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1297
|
+
}> | import("effect/Schema").Struct<{
|
|
1298
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1299
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1300
|
+
readonly details: import("effect/Schema").Struct<{
|
|
1301
|
+
readonly reason: import("effect/Schema").Literals<readonly ["capability_missing", "app_disabled", "principal_not_allowed", "not_available_here", "approval_not_allowed"]>;
|
|
1302
|
+
}>;
|
|
1303
|
+
} & {
|
|
1304
|
+
readonly code: import("effect/Schema").Literal<"forbidden">;
|
|
1305
|
+
readonly message: import("effect/Schema").String;
|
|
1306
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1307
|
+
}>;
|
|
1308
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1309
|
+
}> | import("effect/Schema").Struct<{
|
|
1310
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1311
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1312
|
+
readonly code: import("effect/Schema").Literal<"internal">;
|
|
1313
|
+
readonly message: import("effect/Schema").String;
|
|
1314
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1315
|
+
}>;
|
|
1316
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1317
|
+
}> | import("effect/Schema").Struct<{
|
|
1318
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1319
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1320
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
1321
|
+
readonly filename: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
1322
|
+
readonly reason: import("effect/Schema").Literals<readonly ["unsupported", "oversized", "malformed", "too_many_files"]>;
|
|
1323
|
+
}>>;
|
|
1324
|
+
} & {
|
|
1325
|
+
readonly code: import("effect/Schema").Literal<"invalid_request">;
|
|
1326
|
+
readonly message: import("effect/Schema").String;
|
|
1327
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1328
|
+
}>;
|
|
1329
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1330
|
+
}> | import("effect/Schema").Struct<{
|
|
1331
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1332
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1333
|
+
readonly code: import("effect/Schema").Literal<"not_found">;
|
|
1334
|
+
readonly message: import("effect/Schema").String;
|
|
1335
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1336
|
+
}>;
|
|
1337
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1338
|
+
}> | import("effect/Schema").Struct<{
|
|
1339
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1340
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1341
|
+
readonly code: import("effect/Schema").Literal<"rate_limited">;
|
|
1342
|
+
readonly message: import("effect/Schema").String;
|
|
1343
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1344
|
+
}>;
|
|
1345
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1346
|
+
}> | import("effect/Schema").Struct<{
|
|
1347
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1348
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1349
|
+
readonly code: import("effect/Schema").Literal<"unauthenticated">;
|
|
1350
|
+
readonly message: import("effect/Schema").String;
|
|
1351
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1352
|
+
}>;
|
|
1353
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1354
|
+
}> | import("effect/Schema").Struct<{
|
|
1355
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1356
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1357
|
+
readonly code: import("effect/Schema").Literal<"unavailable">;
|
|
1358
|
+
readonly message: import("effect/Schema").String;
|
|
1359
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1360
|
+
}>;
|
|
1361
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1362
|
+
}>>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"regenerateCompaction", "POST", "/chat/conversations/:conversationId/compactions/regenerate", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1363
|
+
readonly conversationId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ConversationId">;
|
|
1364
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1365
|
+
readonly compaction: import("effect/Schema").Struct<{
|
|
1366
|
+
readonly active: import("effect/Schema").Boolean;
|
|
1367
|
+
readonly activeSummary: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
1368
|
+
readonly id: import("effect/Schema").String;
|
|
1369
|
+
readonly status: import("effect/Schema").String;
|
|
1370
|
+
readonly summary: import("effect/Schema").String;
|
|
1371
|
+
readonly trigger: import("effect/Schema").String;
|
|
1372
|
+
}>>;
|
|
1373
|
+
readonly boundary: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
1374
|
+
readonly compactedThroughInvocationId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
1375
|
+
readonly coveredInvocationCount: import("effect/Schema").Int;
|
|
1376
|
+
readonly coveredMessageCount: import("effect/Schema").Int;
|
|
1377
|
+
}>>;
|
|
1378
|
+
}>;
|
|
1379
|
+
readonly conversation: import("effect/Schema").Struct<{
|
|
1380
|
+
readonly agentId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/AgentId">>;
|
|
1381
|
+
readonly createdAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
1382
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ConversationId">;
|
|
1383
|
+
readonly lastActivityAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
1384
|
+
readonly lastActivityInvocationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1385
|
+
readonly memoryEnabled: import("effect/Schema").Boolean;
|
|
1386
|
+
readonly organizationId: import("effect/Schema").String;
|
|
1387
|
+
readonly origin: import("effect/Schema").Codec<import("../domain.js").Place, import("../domain.js").Place, never, never>;
|
|
1388
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ProjectId">>;
|
|
1389
|
+
readonly subject: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
1390
|
+
readonly id: import("effect/Schema").String;
|
|
1391
|
+
readonly kind: import("effect/Schema").Literals<readonly ["skill_draft", "report_draft", "entity_schema_draft", "organization_identity", "workflow_working_copy"]>;
|
|
1392
|
+
}>>;
|
|
1393
|
+
readonly title: import("effect/Schema").String;
|
|
1394
|
+
readonly updatedAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
1395
|
+
readonly userId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1396
|
+
}>;
|
|
1397
|
+
}>>, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1398
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1399
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1400
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
1401
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
1402
|
+
}>>;
|
|
1403
|
+
} & {
|
|
1404
|
+
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
1405
|
+
readonly message: import("effect/Schema").String;
|
|
1406
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1407
|
+
}>;
|
|
1408
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1409
|
+
}> | import("effect/Schema").Struct<{
|
|
1410
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1411
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1412
|
+
readonly details: import("effect/Schema").Struct<{
|
|
1413
|
+
readonly reason: import("effect/Schema").Literals<readonly ["capability_missing", "app_disabled", "principal_not_allowed", "not_available_here", "approval_not_allowed"]>;
|
|
1414
|
+
}>;
|
|
1415
|
+
} & {
|
|
1416
|
+
readonly code: import("effect/Schema").Literal<"forbidden">;
|
|
1417
|
+
readonly message: import("effect/Schema").String;
|
|
1418
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1419
|
+
}>;
|
|
1420
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1421
|
+
}> | import("effect/Schema").Struct<{
|
|
1422
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1423
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1424
|
+
readonly code: import("effect/Schema").Literal<"internal">;
|
|
1425
|
+
readonly message: import("effect/Schema").String;
|
|
1426
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1427
|
+
}>;
|
|
1428
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1429
|
+
}> | import("effect/Schema").Struct<{
|
|
1430
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1431
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1432
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
1433
|
+
readonly filename: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
1434
|
+
readonly reason: import("effect/Schema").Literals<readonly ["unsupported", "oversized", "malformed", "too_many_files"]>;
|
|
1435
|
+
}>>;
|
|
1436
|
+
} & {
|
|
1437
|
+
readonly code: import("effect/Schema").Literal<"invalid_request">;
|
|
1438
|
+
readonly message: import("effect/Schema").String;
|
|
1439
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1440
|
+
}>;
|
|
1441
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1442
|
+
}> | import("effect/Schema").Struct<{
|
|
1443
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1444
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1445
|
+
readonly code: import("effect/Schema").Literal<"not_found">;
|
|
1446
|
+
readonly message: import("effect/Schema").String;
|
|
1447
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1448
|
+
}>;
|
|
1449
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1450
|
+
}> | import("effect/Schema").Struct<{
|
|
1451
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1452
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1453
|
+
readonly code: import("effect/Schema").Literal<"rate_limited">;
|
|
1454
|
+
readonly message: import("effect/Schema").String;
|
|
1455
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1456
|
+
}>;
|
|
1457
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1458
|
+
}> | import("effect/Schema").Struct<{
|
|
1459
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1460
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1461
|
+
readonly code: import("effect/Schema").Literal<"unauthenticated">;
|
|
1462
|
+
readonly message: import("effect/Schema").String;
|
|
1463
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1464
|
+
}>;
|
|
1465
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1466
|
+
}> | import("effect/Schema").Struct<{
|
|
1467
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1468
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1469
|
+
readonly code: import("effect/Schema").Literal<"unavailable">;
|
|
1470
|
+
readonly message: import("effect/Schema").String;
|
|
1471
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1472
|
+
}>;
|
|
1473
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1474
|
+
}>>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"removeQueuedMessage", "DELETE", "/chat/conversations/:conversationId/queued-messages/:queuedMessageId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1475
|
+
readonly conversationId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ConversationId">;
|
|
1476
|
+
readonly queuedMessageId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/QueuedMessageId">;
|
|
1477
|
+
}>>, import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1478
|
+
readonly revision: import("effect/Schema").NumberFromString;
|
|
1479
|
+
}>>, never, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent>, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1480
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1481
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1482
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
1483
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
1484
|
+
}>>;
|
|
1485
|
+
} & {
|
|
1486
|
+
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
1487
|
+
readonly message: import("effect/Schema").String;
|
|
1488
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1489
|
+
}>;
|
|
1490
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1491
|
+
}> | import("effect/Schema").Struct<{
|
|
1492
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1493
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1494
|
+
readonly details: import("effect/Schema").Struct<{
|
|
1495
|
+
readonly reason: import("effect/Schema").Literals<readonly ["capability_missing", "app_disabled", "principal_not_allowed", "not_available_here", "approval_not_allowed"]>;
|
|
1496
|
+
}>;
|
|
1497
|
+
} & {
|
|
1498
|
+
readonly code: import("effect/Schema").Literal<"forbidden">;
|
|
1499
|
+
readonly message: import("effect/Schema").String;
|
|
1500
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1501
|
+
}>;
|
|
1502
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1503
|
+
}> | import("effect/Schema").Struct<{
|
|
1504
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1505
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1506
|
+
readonly code: import("effect/Schema").Literal<"internal">;
|
|
1507
|
+
readonly message: import("effect/Schema").String;
|
|
1508
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1509
|
+
}>;
|
|
1510
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1511
|
+
}> | import("effect/Schema").Struct<{
|
|
1512
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1513
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1514
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
1515
|
+
readonly filename: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
1516
|
+
readonly reason: import("effect/Schema").Literals<readonly ["unsupported", "oversized", "malformed", "too_many_files"]>;
|
|
1517
|
+
}>>;
|
|
1518
|
+
} & {
|
|
1519
|
+
readonly code: import("effect/Schema").Literal<"invalid_request">;
|
|
1520
|
+
readonly message: import("effect/Schema").String;
|
|
1521
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1522
|
+
}>;
|
|
1523
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1524
|
+
}> | import("effect/Schema").Struct<{
|
|
1525
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1526
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1527
|
+
readonly code: import("effect/Schema").Literal<"not_found">;
|
|
1528
|
+
readonly message: import("effect/Schema").String;
|
|
1529
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1530
|
+
}>;
|
|
1531
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1532
|
+
}> | import("effect/Schema").Struct<{
|
|
1533
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1534
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1535
|
+
readonly code: import("effect/Schema").Literal<"rate_limited">;
|
|
1536
|
+
readonly message: import("effect/Schema").String;
|
|
1537
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1538
|
+
}>;
|
|
1539
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1540
|
+
}> | import("effect/Schema").Struct<{
|
|
1541
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1542
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1543
|
+
readonly code: import("effect/Schema").Literal<"unauthenticated">;
|
|
1544
|
+
readonly message: import("effect/Schema").String;
|
|
1545
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1546
|
+
}>;
|
|
1547
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1548
|
+
}> | import("effect/Schema").Struct<{
|
|
1549
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1550
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1551
|
+
readonly code: import("effect/Schema").Literal<"unavailable">;
|
|
1552
|
+
readonly message: import("effect/Schema").String;
|
|
1553
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1554
|
+
}>;
|
|
1555
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1556
|
+
}>>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"resetCompaction", "DELETE", "/chat/conversations/:conversationId/compactions/active", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1557
|
+
readonly conversationId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ConversationId">;
|
|
1558
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1559
|
+
readonly compaction: import("effect/Schema").Struct<{
|
|
1560
|
+
readonly active: import("effect/Schema").Boolean;
|
|
1561
|
+
readonly activeSummary: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
1562
|
+
readonly id: import("effect/Schema").String;
|
|
1563
|
+
readonly status: import("effect/Schema").String;
|
|
1564
|
+
readonly summary: import("effect/Schema").String;
|
|
1565
|
+
readonly trigger: import("effect/Schema").String;
|
|
1566
|
+
}>>;
|
|
1567
|
+
readonly boundary: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
1568
|
+
readonly compactedThroughInvocationId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
1569
|
+
readonly coveredInvocationCount: import("effect/Schema").Int;
|
|
1570
|
+
readonly coveredMessageCount: import("effect/Schema").Int;
|
|
1571
|
+
}>>;
|
|
1572
|
+
}>;
|
|
1573
|
+
readonly conversation: import("effect/Schema").Struct<{
|
|
1574
|
+
readonly agentId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/AgentId">>;
|
|
1575
|
+
readonly createdAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
1576
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ConversationId">;
|
|
1577
|
+
readonly lastActivityAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
1578
|
+
readonly lastActivityInvocationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1579
|
+
readonly memoryEnabled: import("effect/Schema").Boolean;
|
|
1580
|
+
readonly organizationId: import("effect/Schema").String;
|
|
1581
|
+
readonly origin: import("effect/Schema").Codec<import("../domain.js").Place, import("../domain.js").Place, never, never>;
|
|
1582
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ProjectId">>;
|
|
1583
|
+
readonly subject: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
1584
|
+
readonly id: import("effect/Schema").String;
|
|
1585
|
+
readonly kind: import("effect/Schema").Literals<readonly ["skill_draft", "report_draft", "entity_schema_draft", "organization_identity", "workflow_working_copy"]>;
|
|
1586
|
+
}>>;
|
|
1587
|
+
readonly title: import("effect/Schema").String;
|
|
1588
|
+
readonly updatedAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
1589
|
+
readonly userId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
1590
|
+
}>;
|
|
1591
|
+
}>>, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1592
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1593
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1594
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
1595
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
1596
|
+
}>>;
|
|
1597
|
+
} & {
|
|
1598
|
+
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
1599
|
+
readonly message: import("effect/Schema").String;
|
|
1600
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1601
|
+
}>;
|
|
1602
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1603
|
+
}> | import("effect/Schema").Struct<{
|
|
1604
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1605
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1606
|
+
readonly details: import("effect/Schema").Struct<{
|
|
1607
|
+
readonly reason: import("effect/Schema").Literals<readonly ["capability_missing", "app_disabled", "principal_not_allowed", "not_available_here", "approval_not_allowed"]>;
|
|
1608
|
+
}>;
|
|
1609
|
+
} & {
|
|
1610
|
+
readonly code: import("effect/Schema").Literal<"forbidden">;
|
|
1611
|
+
readonly message: import("effect/Schema").String;
|
|
1612
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1613
|
+
}>;
|
|
1614
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1615
|
+
}> | import("effect/Schema").Struct<{
|
|
1616
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1617
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1618
|
+
readonly code: import("effect/Schema").Literal<"internal">;
|
|
1619
|
+
readonly message: import("effect/Schema").String;
|
|
1620
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1621
|
+
}>;
|
|
1622
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1623
|
+
}> | import("effect/Schema").Struct<{
|
|
1624
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1625
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1626
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
1627
|
+
readonly filename: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
1628
|
+
readonly reason: import("effect/Schema").Literals<readonly ["unsupported", "oversized", "malformed", "too_many_files"]>;
|
|
1629
|
+
}>>;
|
|
1630
|
+
} & {
|
|
1631
|
+
readonly code: import("effect/Schema").Literal<"invalid_request">;
|
|
1632
|
+
readonly message: import("effect/Schema").String;
|
|
1633
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1634
|
+
}>;
|
|
1635
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1636
|
+
}> | import("effect/Schema").Struct<{
|
|
1637
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1638
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1639
|
+
readonly code: import("effect/Schema").Literal<"not_found">;
|
|
1640
|
+
readonly message: import("effect/Schema").String;
|
|
1641
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1642
|
+
}>;
|
|
1643
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1644
|
+
}> | import("effect/Schema").Struct<{
|
|
1645
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1646
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1647
|
+
readonly code: import("effect/Schema").Literal<"rate_limited">;
|
|
1648
|
+
readonly message: import("effect/Schema").String;
|
|
1649
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1650
|
+
}>;
|
|
1651
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1652
|
+
}> | import("effect/Schema").Struct<{
|
|
1653
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1654
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1655
|
+
readonly code: import("effect/Schema").Literal<"unauthenticated">;
|
|
1656
|
+
readonly message: import("effect/Schema").String;
|
|
1657
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1658
|
+
}>;
|
|
1659
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1660
|
+
}> | import("effect/Schema").Struct<{
|
|
1661
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1662
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1663
|
+
readonly code: import("effect/Schema").Literal<"unavailable">;
|
|
1664
|
+
readonly message: import("effect/Schema").String;
|
|
1665
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1666
|
+
}>;
|
|
1667
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1668
|
+
}>>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"resolveEvidenceNavigation", "POST", "/chat/invocations/:invocationId/evidence-navigation", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1669
|
+
readonly invocationId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">;
|
|
1670
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1671
|
+
readonly evidenceId: import("effect/Schema").NonEmptyString;
|
|
1672
|
+
readonly navigation: import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
1673
|
+
readonly entityId: import("effect/Schema").String;
|
|
1674
|
+
readonly kind: import("effect/Schema").Literal<"entity">;
|
|
1675
|
+
}>, import("effect/Schema").Struct<{
|
|
1676
|
+
readonly fileId: import("effect/Schema").String;
|
|
1677
|
+
readonly kind: import("effect/Schema").Literal<"file">;
|
|
1678
|
+
}>, import("effect/Schema").Struct<{
|
|
1679
|
+
readonly kind: import("effect/Schema").Literal<"external_url">;
|
|
1680
|
+
readonly url: import("effect/Schema").String;
|
|
1681
|
+
}>]>;
|
|
1682
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1683
|
+
readonly target: import("effect/Schema").NullOr<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
1684
|
+
readonly entityId: import("effect/Schema").String;
|
|
1685
|
+
readonly kind: import("effect/Schema").Literal<"entity">;
|
|
1686
|
+
}>, import("effect/Schema").Struct<{
|
|
1687
|
+
readonly fileId: import("effect/Schema").String;
|
|
1688
|
+
readonly kind: import("effect/Schema").Literal<"file">;
|
|
1689
|
+
readonly mediaUrl: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
1690
|
+
}>, import("effect/Schema").Struct<{
|
|
1691
|
+
readonly kind: import("effect/Schema").Literal<"external_url">;
|
|
1692
|
+
readonly url: import("effect/Schema").String;
|
|
1693
|
+
}>]>>;
|
|
1694
|
+
}>>, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1695
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1696
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1697
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
1698
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
1699
|
+
}>>;
|
|
1700
|
+
} & {
|
|
1701
|
+
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
1702
|
+
readonly message: import("effect/Schema").String;
|
|
1703
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1704
|
+
}>;
|
|
1705
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1706
|
+
}> | import("effect/Schema").Struct<{
|
|
1707
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1708
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1709
|
+
readonly details: import("effect/Schema").Struct<{
|
|
1710
|
+
readonly reason: import("effect/Schema").Literals<readonly ["capability_missing", "app_disabled", "principal_not_allowed", "not_available_here", "approval_not_allowed"]>;
|
|
1711
|
+
}>;
|
|
1712
|
+
} & {
|
|
1713
|
+
readonly code: import("effect/Schema").Literal<"forbidden">;
|
|
1714
|
+
readonly message: import("effect/Schema").String;
|
|
1715
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1716
|
+
}>;
|
|
1717
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1718
|
+
}> | import("effect/Schema").Struct<{
|
|
1719
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1720
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1721
|
+
readonly code: import("effect/Schema").Literal<"internal">;
|
|
1722
|
+
readonly message: import("effect/Schema").String;
|
|
1723
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1724
|
+
}>;
|
|
1725
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1726
|
+
}> | import("effect/Schema").Struct<{
|
|
1727
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1728
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1729
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
1730
|
+
readonly filename: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
1731
|
+
readonly reason: import("effect/Schema").Literals<readonly ["unsupported", "oversized", "malformed", "too_many_files"]>;
|
|
1732
|
+
}>>;
|
|
1733
|
+
} & {
|
|
1734
|
+
readonly code: import("effect/Schema").Literal<"invalid_request">;
|
|
1735
|
+
readonly message: import("effect/Schema").String;
|
|
1736
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1737
|
+
}>;
|
|
1738
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1739
|
+
}> | import("effect/Schema").Struct<{
|
|
1740
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1741
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1742
|
+
readonly code: import("effect/Schema").Literal<"not_found">;
|
|
1743
|
+
readonly message: import("effect/Schema").String;
|
|
1744
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1745
|
+
}>;
|
|
1746
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1747
|
+
}> | import("effect/Schema").Struct<{
|
|
1748
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1749
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1750
|
+
readonly code: import("effect/Schema").Literal<"rate_limited">;
|
|
1751
|
+
readonly message: import("effect/Schema").String;
|
|
1752
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1753
|
+
}>;
|
|
1754
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1755
|
+
}> | import("effect/Schema").Struct<{
|
|
1756
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1757
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1758
|
+
readonly code: import("effect/Schema").Literal<"unauthenticated">;
|
|
1759
|
+
readonly message: import("effect/Schema").String;
|
|
1760
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1761
|
+
}>;
|
|
1762
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1763
|
+
}> | import("effect/Schema").Struct<{
|
|
1764
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1765
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1766
|
+
readonly code: import("effect/Schema").Literal<"unavailable">;
|
|
1767
|
+
readonly message: import("effect/Schema").String;
|
|
1768
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1769
|
+
}>;
|
|
1770
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1771
|
+
}>>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"resumeStream", "GET", "/chat/:conversationId/stream", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1772
|
+
readonly conversationId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ConversationId">;
|
|
1773
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<HttpApiSchema.NoContent | import("effect/Schema").String>, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1774
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1775
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1776
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
1777
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
1778
|
+
}>>;
|
|
1779
|
+
} & {
|
|
1780
|
+
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
1781
|
+
readonly message: import("effect/Schema").String;
|
|
1782
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1783
|
+
}>;
|
|
1784
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1785
|
+
}> | import("effect/Schema").Struct<{
|
|
1786
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1787
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1788
|
+
readonly details: import("effect/Schema").Struct<{
|
|
1789
|
+
readonly reason: import("effect/Schema").Literals<readonly ["capability_missing", "app_disabled", "principal_not_allowed", "not_available_here", "approval_not_allowed"]>;
|
|
1790
|
+
}>;
|
|
1791
|
+
} & {
|
|
1792
|
+
readonly code: import("effect/Schema").Literal<"forbidden">;
|
|
1793
|
+
readonly message: import("effect/Schema").String;
|
|
1794
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1795
|
+
}>;
|
|
1796
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1797
|
+
}> | import("effect/Schema").Struct<{
|
|
1798
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1799
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1800
|
+
readonly code: import("effect/Schema").Literal<"internal">;
|
|
1801
|
+
readonly message: import("effect/Schema").String;
|
|
1802
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1803
|
+
}>;
|
|
1804
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1805
|
+
}> | import("effect/Schema").Struct<{
|
|
1806
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1807
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1808
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
1809
|
+
readonly filename: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
1810
|
+
readonly reason: import("effect/Schema").Literals<readonly ["unsupported", "oversized", "malformed", "too_many_files"]>;
|
|
1811
|
+
}>>;
|
|
1812
|
+
} & {
|
|
1813
|
+
readonly code: import("effect/Schema").Literal<"invalid_request">;
|
|
1814
|
+
readonly message: import("effect/Schema").String;
|
|
1815
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1816
|
+
}>;
|
|
1817
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1818
|
+
}> | import("effect/Schema").Struct<{
|
|
1819
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1820
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1821
|
+
readonly code: import("effect/Schema").Literal<"not_found">;
|
|
1822
|
+
readonly message: import("effect/Schema").String;
|
|
1823
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1824
|
+
}>;
|
|
1825
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1826
|
+
}> | import("effect/Schema").Struct<{
|
|
1827
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1828
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1829
|
+
readonly code: import("effect/Schema").Literal<"rate_limited">;
|
|
1830
|
+
readonly message: import("effect/Schema").String;
|
|
1831
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1832
|
+
}>;
|
|
1833
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1834
|
+
}> | import("effect/Schema").Struct<{
|
|
1835
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1836
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1837
|
+
readonly code: import("effect/Schema").Literal<"unauthenticated">;
|
|
1838
|
+
readonly message: import("effect/Schema").String;
|
|
1839
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1840
|
+
}>;
|
|
1841
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1842
|
+
}> | import("effect/Schema").Struct<{
|
|
1843
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1844
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1845
|
+
readonly code: import("effect/Schema").Literal<"unavailable">;
|
|
1846
|
+
readonly message: import("effect/Schema").String;
|
|
1847
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1848
|
+
}>;
|
|
1849
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1850
|
+
}>>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"send", "POST", "/chat/:conversationId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1851
|
+
readonly conversationId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ConversationId">;
|
|
1852
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1853
|
+
readonly message: import("effect/Schema").Struct<{
|
|
1854
|
+
readonly id: import("effect/Schema").NonEmptyString;
|
|
1855
|
+
readonly metadata: import("effect/Schema").optionalKey<import("effect/Schema").Unknown>;
|
|
1856
|
+
readonly parts: import("effect/Schema").$Array<import("effect/Schema").StructWithRest<import("effect/Schema").Struct<{
|
|
1857
|
+
readonly type: import("effect/Schema").String;
|
|
1858
|
+
}>, readonly [import("effect/Schema").$Record<import("effect/Schema").String, import("effect/Schema").Unknown>]>>;
|
|
1859
|
+
readonly role: import("effect/Schema").Literals<readonly ["system", "user", "assistant"]>;
|
|
1860
|
+
}>;
|
|
1861
|
+
readonly messageId: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
1862
|
+
readonly trigger: import("effect/Schema").Literals<readonly ["submit-message", "regenerate-message"]>;
|
|
1863
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").String>, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1864
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1865
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1866
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
1867
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
1868
|
+
}>>;
|
|
1869
|
+
} & {
|
|
1870
|
+
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
1871
|
+
readonly message: import("effect/Schema").String;
|
|
1872
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1873
|
+
}>;
|
|
1874
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1875
|
+
}> | import("effect/Schema").Struct<{
|
|
1876
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1877
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1878
|
+
readonly details: import("effect/Schema").Struct<{
|
|
1879
|
+
readonly reason: import("effect/Schema").Literals<readonly ["capability_missing", "app_disabled", "principal_not_allowed", "not_available_here", "approval_not_allowed"]>;
|
|
1880
|
+
}>;
|
|
1881
|
+
} & {
|
|
1882
|
+
readonly code: import("effect/Schema").Literal<"forbidden">;
|
|
1883
|
+
readonly message: import("effect/Schema").String;
|
|
1884
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1885
|
+
}>;
|
|
1886
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1887
|
+
}> | import("effect/Schema").Struct<{
|
|
1888
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1889
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1890
|
+
readonly code: import("effect/Schema").Literal<"internal">;
|
|
1891
|
+
readonly message: import("effect/Schema").String;
|
|
1892
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1893
|
+
}>;
|
|
1894
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1895
|
+
}> | import("effect/Schema").Struct<{
|
|
1896
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1897
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1898
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
1899
|
+
readonly filename: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
1900
|
+
readonly reason: import("effect/Schema").Literals<readonly ["unsupported", "oversized", "malformed", "too_many_files"]>;
|
|
1901
|
+
}>>;
|
|
1902
|
+
} & {
|
|
1903
|
+
readonly code: import("effect/Schema").Literal<"invalid_request">;
|
|
1904
|
+
readonly message: import("effect/Schema").String;
|
|
1905
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1906
|
+
}>;
|
|
1907
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1908
|
+
}> | import("effect/Schema").Struct<{
|
|
1909
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1910
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1911
|
+
readonly code: import("effect/Schema").Literal<"not_found">;
|
|
1912
|
+
readonly message: import("effect/Schema").String;
|
|
1913
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1914
|
+
}>;
|
|
1915
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1916
|
+
}> | import("effect/Schema").Struct<{
|
|
1917
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1918
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1919
|
+
readonly code: import("effect/Schema").Literal<"rate_limited">;
|
|
1920
|
+
readonly message: import("effect/Schema").String;
|
|
1921
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1922
|
+
}>;
|
|
1923
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1924
|
+
}> | import("effect/Schema").Struct<{
|
|
1925
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1926
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1927
|
+
readonly code: import("effect/Schema").Literal<"unauthenticated">;
|
|
1928
|
+
readonly message: import("effect/Schema").String;
|
|
1929
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1930
|
+
}>;
|
|
1931
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1932
|
+
}> | import("effect/Schema").Struct<{
|
|
1933
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1934
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1935
|
+
readonly code: import("effect/Schema").Literal<"unavailable">;
|
|
1936
|
+
readonly message: import("effect/Schema").String;
|
|
1937
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1938
|
+
}>;
|
|
1939
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1940
|
+
}>>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"sendSteeringMessage", "POST", "/chat/conversations/:conversationId/steering-messages", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
1941
|
+
readonly conversationId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ConversationId">;
|
|
1942
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1943
|
+
readonly clientMessageId: import("effect/Schema").String;
|
|
1944
|
+
readonly content: import("effect/Schema").String;
|
|
1945
|
+
readonly invocationId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">;
|
|
1946
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Union<readonly [import("effect/Schema").Struct<{
|
|
1947
|
+
readonly conversationId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ConversationId">;
|
|
1948
|
+
readonly invocationId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">;
|
|
1949
|
+
readonly outcome: import("effect/Schema").Literal<"started">;
|
|
1950
|
+
readonly status: import("effect/Schema").Literals<readonly ["cancelled", "completed", "error", "running", "waiting_for_approval"]>;
|
|
1951
|
+
}>, import("effect/Schema").Struct<{
|
|
1952
|
+
readonly conversationId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ConversationId">;
|
|
1953
|
+
readonly invocationId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">;
|
|
1954
|
+
readonly outcome: import("effect/Schema").Literal<"saved">;
|
|
1955
|
+
readonly status: import("effect/Schema").Literals<readonly ["cancelled", "completed", "error", "running", "waiting_for_approval"]>;
|
|
1956
|
+
readonly steeringMessageId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/SteeringMessageId">;
|
|
1957
|
+
}>, import("effect/Schema").Struct<{
|
|
1958
|
+
readonly conversationId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ConversationId">;
|
|
1959
|
+
readonly outcome: import("effect/Schema").Literal<"queued">;
|
|
1960
|
+
readonly queuedMessageId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/QueuedMessageId">;
|
|
1961
|
+
readonly revision: import("effect/Schema").Int;
|
|
1962
|
+
}>]>>, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
1963
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1964
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1965
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
1966
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
1967
|
+
}>>;
|
|
1968
|
+
} & {
|
|
1969
|
+
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
1970
|
+
readonly message: import("effect/Schema").String;
|
|
1971
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1972
|
+
}>;
|
|
1973
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1974
|
+
}> | import("effect/Schema").Struct<{
|
|
1975
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1976
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1977
|
+
readonly details: import("effect/Schema").Struct<{
|
|
1978
|
+
readonly reason: import("effect/Schema").Literals<readonly ["capability_missing", "app_disabled", "principal_not_allowed", "not_available_here", "approval_not_allowed"]>;
|
|
1979
|
+
}>;
|
|
1980
|
+
} & {
|
|
1981
|
+
readonly code: import("effect/Schema").Literal<"forbidden">;
|
|
1982
|
+
readonly message: import("effect/Schema").String;
|
|
1983
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1984
|
+
}>;
|
|
1985
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1986
|
+
}> | import("effect/Schema").Struct<{
|
|
1987
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1988
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1989
|
+
readonly code: import("effect/Schema").Literal<"internal">;
|
|
1990
|
+
readonly message: import("effect/Schema").String;
|
|
1991
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
1992
|
+
}>;
|
|
1993
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
1994
|
+
}> | import("effect/Schema").Struct<{
|
|
1995
|
+
readonly correlationId: import("effect/Schema").String;
|
|
1996
|
+
readonly error: import("effect/Schema").Struct<{
|
|
1997
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
1998
|
+
readonly filename: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
1999
|
+
readonly reason: import("effect/Schema").Literals<readonly ["unsupported", "oversized", "malformed", "too_many_files"]>;
|
|
2000
|
+
}>>;
|
|
2001
|
+
} & {
|
|
2002
|
+
readonly code: import("effect/Schema").Literal<"invalid_request">;
|
|
2003
|
+
readonly message: import("effect/Schema").String;
|
|
2004
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
2005
|
+
}>;
|
|
2006
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
2007
|
+
}> | import("effect/Schema").Struct<{
|
|
2008
|
+
readonly correlationId: import("effect/Schema").String;
|
|
2009
|
+
readonly error: import("effect/Schema").Struct<{
|
|
2010
|
+
readonly code: import("effect/Schema").Literal<"not_found">;
|
|
2011
|
+
readonly message: import("effect/Schema").String;
|
|
2012
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
2013
|
+
}>;
|
|
2014
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
2015
|
+
}> | import("effect/Schema").Struct<{
|
|
2016
|
+
readonly correlationId: import("effect/Schema").String;
|
|
2017
|
+
readonly error: import("effect/Schema").Struct<{
|
|
2018
|
+
readonly code: import("effect/Schema").Literal<"rate_limited">;
|
|
2019
|
+
readonly message: import("effect/Schema").String;
|
|
2020
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
2021
|
+
}>;
|
|
2022
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
2023
|
+
}> | import("effect/Schema").Struct<{
|
|
2024
|
+
readonly correlationId: import("effect/Schema").String;
|
|
2025
|
+
readonly error: import("effect/Schema").Struct<{
|
|
2026
|
+
readonly code: import("effect/Schema").Literal<"unauthenticated">;
|
|
2027
|
+
readonly message: import("effect/Schema").String;
|
|
2028
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
2029
|
+
}>;
|
|
2030
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
2031
|
+
}> | import("effect/Schema").Struct<{
|
|
2032
|
+
readonly correlationId: import("effect/Schema").String;
|
|
2033
|
+
readonly error: import("effect/Schema").Struct<{
|
|
2034
|
+
readonly code: import("effect/Schema").Literal<"unavailable">;
|
|
2035
|
+
readonly message: import("effect/Schema").String;
|
|
2036
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
2037
|
+
}>;
|
|
2038
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
2039
|
+
}>>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"streamRun", "GET", "/runs/:runId/stream", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2040
|
+
readonly runId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">;
|
|
2041
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").String>, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2042
|
+
readonly correlationId: import("effect/Schema").String;
|
|
2043
|
+
readonly error: import("effect/Schema").Struct<{
|
|
2044
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
2045
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
2046
|
+
}>>;
|
|
2047
|
+
} & {
|
|
2048
|
+
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
2049
|
+
readonly message: import("effect/Schema").String;
|
|
2050
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
2051
|
+
}>;
|
|
2052
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
2053
|
+
}> | import("effect/Schema").Struct<{
|
|
2054
|
+
readonly correlationId: import("effect/Schema").String;
|
|
2055
|
+
readonly error: import("effect/Schema").Struct<{
|
|
2056
|
+
readonly details: import("effect/Schema").Struct<{
|
|
2057
|
+
readonly reason: import("effect/Schema").Literals<readonly ["capability_missing", "app_disabled", "principal_not_allowed", "not_available_here", "approval_not_allowed"]>;
|
|
2058
|
+
}>;
|
|
2059
|
+
} & {
|
|
2060
|
+
readonly code: import("effect/Schema").Literal<"forbidden">;
|
|
2061
|
+
readonly message: import("effect/Schema").String;
|
|
2062
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
2063
|
+
}>;
|
|
2064
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
2065
|
+
}> | import("effect/Schema").Struct<{
|
|
2066
|
+
readonly correlationId: import("effect/Schema").String;
|
|
2067
|
+
readonly error: import("effect/Schema").Struct<{
|
|
2068
|
+
readonly code: import("effect/Schema").Literal<"internal">;
|
|
2069
|
+
readonly message: import("effect/Schema").String;
|
|
2070
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
2071
|
+
}>;
|
|
2072
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
2073
|
+
}> | import("effect/Schema").Struct<{
|
|
2074
|
+
readonly correlationId: import("effect/Schema").String;
|
|
2075
|
+
readonly error: import("effect/Schema").Struct<{
|
|
2076
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
2077
|
+
readonly filename: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
2078
|
+
readonly reason: import("effect/Schema").Literals<readonly ["unsupported", "oversized", "malformed", "too_many_files"]>;
|
|
2079
|
+
}>>;
|
|
2080
|
+
} & {
|
|
2081
|
+
readonly code: import("effect/Schema").Literal<"invalid_request">;
|
|
2082
|
+
readonly message: import("effect/Schema").String;
|
|
2083
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
2084
|
+
}>;
|
|
2085
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
2086
|
+
}> | import("effect/Schema").Struct<{
|
|
2087
|
+
readonly correlationId: import("effect/Schema").String;
|
|
2088
|
+
readonly error: import("effect/Schema").Struct<{
|
|
2089
|
+
readonly code: import("effect/Schema").Literal<"not_found">;
|
|
2090
|
+
readonly message: import("effect/Schema").String;
|
|
2091
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
2092
|
+
}>;
|
|
2093
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
2094
|
+
}> | import("effect/Schema").Struct<{
|
|
2095
|
+
readonly correlationId: import("effect/Schema").String;
|
|
2096
|
+
readonly error: import("effect/Schema").Struct<{
|
|
2097
|
+
readonly code: import("effect/Schema").Literal<"rate_limited">;
|
|
2098
|
+
readonly message: import("effect/Schema").String;
|
|
2099
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
2100
|
+
}>;
|
|
2101
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
2102
|
+
}> | import("effect/Schema").Struct<{
|
|
2103
|
+
readonly correlationId: import("effect/Schema").String;
|
|
2104
|
+
readonly error: import("effect/Schema").Struct<{
|
|
2105
|
+
readonly code: import("effect/Schema").Literal<"unauthenticated">;
|
|
2106
|
+
readonly message: import("effect/Schema").String;
|
|
2107
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
2108
|
+
}>;
|
|
2109
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
2110
|
+
}> | import("effect/Schema").Struct<{
|
|
2111
|
+
readonly correlationId: import("effect/Schema").String;
|
|
2112
|
+
readonly error: import("effect/Schema").Struct<{
|
|
2113
|
+
readonly code: import("effect/Schema").Literal<"unavailable">;
|
|
2114
|
+
readonly message: import("effect/Schema").String;
|
|
2115
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
2116
|
+
}>;
|
|
2117
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
2118
|
+
}>>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"updateConversation", "PATCH", "/chat/conversations/:conversationId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2119
|
+
readonly conversationId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ConversationId">;
|
|
2120
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2121
|
+
readonly memoryEnabled: import("effect/Schema").optionalKey<import("effect/Schema").Boolean>;
|
|
2122
|
+
readonly projectId: import("effect/Schema").optionalKey<import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ProjectId">>>;
|
|
2123
|
+
readonly title: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
2124
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2125
|
+
readonly agentId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/AgentId">>;
|
|
2126
|
+
readonly createdAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
2127
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ConversationId">;
|
|
2128
|
+
readonly lastActivityAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
2129
|
+
readonly lastActivityInvocationId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2130
|
+
readonly memoryEnabled: import("effect/Schema").Boolean;
|
|
2131
|
+
readonly organizationId: import("effect/Schema").String;
|
|
2132
|
+
readonly origin: import("effect/Schema").Codec<import("../domain.js").Place, import("../domain.js").Place, never, never>;
|
|
2133
|
+
readonly projectId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ProjectId">>;
|
|
2134
|
+
readonly subject: import("effect/Schema").NullOr<import("effect/Schema").Struct<{
|
|
2135
|
+
readonly id: import("effect/Schema").String;
|
|
2136
|
+
readonly kind: import("effect/Schema").Literals<readonly ["skill_draft", "report_draft", "entity_schema_draft", "organization_identity", "workflow_working_copy"]>;
|
|
2137
|
+
}>>;
|
|
2138
|
+
readonly title: import("effect/Schema").String;
|
|
2139
|
+
readonly updatedAt: import("effect/Schema").NullOr<import("effect/Schema").Date>;
|
|
2140
|
+
readonly userId: import("effect/Schema").NullOr<import("effect/Schema").String>;
|
|
2141
|
+
}>>, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2142
|
+
readonly correlationId: import("effect/Schema").String;
|
|
2143
|
+
readonly error: import("effect/Schema").Struct<{
|
|
2144
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
2145
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
2146
|
+
}>>;
|
|
2147
|
+
} & {
|
|
2148
|
+
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
2149
|
+
readonly message: import("effect/Schema").String;
|
|
2150
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
2151
|
+
}>;
|
|
2152
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
2153
|
+
}> | import("effect/Schema").Struct<{
|
|
2154
|
+
readonly correlationId: import("effect/Schema").String;
|
|
2155
|
+
readonly error: import("effect/Schema").Struct<{
|
|
2156
|
+
readonly details: import("effect/Schema").Struct<{
|
|
2157
|
+
readonly reason: import("effect/Schema").Literals<readonly ["capability_missing", "app_disabled", "principal_not_allowed", "not_available_here", "approval_not_allowed"]>;
|
|
2158
|
+
}>;
|
|
2159
|
+
} & {
|
|
2160
|
+
readonly code: import("effect/Schema").Literal<"forbidden">;
|
|
2161
|
+
readonly message: import("effect/Schema").String;
|
|
2162
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
2163
|
+
}>;
|
|
2164
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
2165
|
+
}> | import("effect/Schema").Struct<{
|
|
2166
|
+
readonly correlationId: import("effect/Schema").String;
|
|
2167
|
+
readonly error: import("effect/Schema").Struct<{
|
|
2168
|
+
readonly code: import("effect/Schema").Literal<"internal">;
|
|
2169
|
+
readonly message: import("effect/Schema").String;
|
|
2170
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
2171
|
+
}>;
|
|
2172
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
2173
|
+
}> | import("effect/Schema").Struct<{
|
|
2174
|
+
readonly correlationId: import("effect/Schema").String;
|
|
2175
|
+
readonly error: import("effect/Schema").Struct<{
|
|
2176
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
2177
|
+
readonly filename: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
2178
|
+
readonly reason: import("effect/Schema").Literals<readonly ["unsupported", "oversized", "malformed", "too_many_files"]>;
|
|
2179
|
+
}>>;
|
|
2180
|
+
} & {
|
|
2181
|
+
readonly code: import("effect/Schema").Literal<"invalid_request">;
|
|
2182
|
+
readonly message: import("effect/Schema").String;
|
|
2183
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
2184
|
+
}>;
|
|
2185
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
2186
|
+
}> | import("effect/Schema").Struct<{
|
|
2187
|
+
readonly correlationId: import("effect/Schema").String;
|
|
2188
|
+
readonly error: import("effect/Schema").Struct<{
|
|
2189
|
+
readonly code: import("effect/Schema").Literal<"not_found">;
|
|
2190
|
+
readonly message: import("effect/Schema").String;
|
|
2191
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
2192
|
+
}>;
|
|
2193
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
2194
|
+
}> | import("effect/Schema").Struct<{
|
|
2195
|
+
readonly correlationId: import("effect/Schema").String;
|
|
2196
|
+
readonly error: import("effect/Schema").Struct<{
|
|
2197
|
+
readonly code: import("effect/Schema").Literal<"rate_limited">;
|
|
2198
|
+
readonly message: import("effect/Schema").String;
|
|
2199
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
2200
|
+
}>;
|
|
2201
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
2202
|
+
}> | import("effect/Schema").Struct<{
|
|
2203
|
+
readonly correlationId: import("effect/Schema").String;
|
|
2204
|
+
readonly error: import("effect/Schema").Struct<{
|
|
2205
|
+
readonly code: import("effect/Schema").Literal<"unauthenticated">;
|
|
2206
|
+
readonly message: import("effect/Schema").String;
|
|
2207
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
2208
|
+
}>;
|
|
2209
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
2210
|
+
}> | import("effect/Schema").Struct<{
|
|
2211
|
+
readonly correlationId: import("effect/Schema").String;
|
|
2212
|
+
readonly error: import("effect/Schema").Struct<{
|
|
2213
|
+
readonly code: import("effect/Schema").Literal<"unavailable">;
|
|
2214
|
+
readonly message: import("effect/Schema").String;
|
|
2215
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
2216
|
+
}>;
|
|
2217
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
2218
|
+
}>>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"updateQueuedMessage", "PATCH", "/chat/conversations/:conversationId/queued-messages/:queuedMessageId", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2219
|
+
readonly conversationId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ConversationId">;
|
|
2220
|
+
readonly queuedMessageId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/QueuedMessageId">;
|
|
2221
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2222
|
+
readonly content: import("effect/Schema").String;
|
|
2223
|
+
readonly revision: import("effect/Schema").Int;
|
|
2224
|
+
}>>, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2225
|
+
readonly content: import("effect/Schema").String;
|
|
2226
|
+
readonly createdAt: import("effect/Schema").Date;
|
|
2227
|
+
readonly id: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/QueuedMessageId">;
|
|
2228
|
+
readonly invocationId: import("effect/Schema").NullOr<import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">>;
|
|
2229
|
+
readonly position: import("effect/Schema").Int;
|
|
2230
|
+
readonly revision: import("effect/Schema").Int;
|
|
2231
|
+
readonly status: import("effect/Schema").Literals<readonly ["waiting", "claimed", "removed"]>;
|
|
2232
|
+
}>>, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2233
|
+
readonly correlationId: import("effect/Schema").String;
|
|
2234
|
+
readonly error: import("effect/Schema").Struct<{
|
|
2235
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
2236
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
2237
|
+
}>>;
|
|
2238
|
+
} & {
|
|
2239
|
+
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
2240
|
+
readonly message: import("effect/Schema").String;
|
|
2241
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
2242
|
+
}>;
|
|
2243
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
2244
|
+
}> | import("effect/Schema").Struct<{
|
|
2245
|
+
readonly correlationId: import("effect/Schema").String;
|
|
2246
|
+
readonly error: import("effect/Schema").Struct<{
|
|
2247
|
+
readonly details: import("effect/Schema").Struct<{
|
|
2248
|
+
readonly reason: import("effect/Schema").Literals<readonly ["capability_missing", "app_disabled", "principal_not_allowed", "not_available_here", "approval_not_allowed"]>;
|
|
2249
|
+
}>;
|
|
2250
|
+
} & {
|
|
2251
|
+
readonly code: import("effect/Schema").Literal<"forbidden">;
|
|
2252
|
+
readonly message: import("effect/Schema").String;
|
|
2253
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
2254
|
+
}>;
|
|
2255
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
2256
|
+
}> | import("effect/Schema").Struct<{
|
|
2257
|
+
readonly correlationId: import("effect/Schema").String;
|
|
2258
|
+
readonly error: import("effect/Schema").Struct<{
|
|
2259
|
+
readonly code: import("effect/Schema").Literal<"internal">;
|
|
2260
|
+
readonly message: import("effect/Schema").String;
|
|
2261
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
2262
|
+
}>;
|
|
2263
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
2264
|
+
}> | import("effect/Schema").Struct<{
|
|
2265
|
+
readonly correlationId: import("effect/Schema").String;
|
|
2266
|
+
readonly error: import("effect/Schema").Struct<{
|
|
2267
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
2268
|
+
readonly filename: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
2269
|
+
readonly reason: import("effect/Schema").Literals<readonly ["unsupported", "oversized", "malformed", "too_many_files"]>;
|
|
2270
|
+
}>>;
|
|
2271
|
+
} & {
|
|
2272
|
+
readonly code: import("effect/Schema").Literal<"invalid_request">;
|
|
2273
|
+
readonly message: import("effect/Schema").String;
|
|
2274
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
2275
|
+
}>;
|
|
2276
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
2277
|
+
}> | import("effect/Schema").Struct<{
|
|
2278
|
+
readonly correlationId: import("effect/Schema").String;
|
|
2279
|
+
readonly error: import("effect/Schema").Struct<{
|
|
2280
|
+
readonly code: import("effect/Schema").Literal<"not_found">;
|
|
2281
|
+
readonly message: import("effect/Schema").String;
|
|
2282
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
2283
|
+
}>;
|
|
2284
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
2285
|
+
}> | import("effect/Schema").Struct<{
|
|
2286
|
+
readonly correlationId: import("effect/Schema").String;
|
|
2287
|
+
readonly error: import("effect/Schema").Struct<{
|
|
2288
|
+
readonly code: import("effect/Schema").Literal<"rate_limited">;
|
|
2289
|
+
readonly message: import("effect/Schema").String;
|
|
2290
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
2291
|
+
}>;
|
|
2292
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
2293
|
+
}> | import("effect/Schema").Struct<{
|
|
2294
|
+
readonly correlationId: import("effect/Schema").String;
|
|
2295
|
+
readonly error: import("effect/Schema").Struct<{
|
|
2296
|
+
readonly code: import("effect/Schema").Literal<"unauthenticated">;
|
|
2297
|
+
readonly message: import("effect/Schema").String;
|
|
2298
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
2299
|
+
}>;
|
|
2300
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
2301
|
+
}> | import("effect/Schema").Struct<{
|
|
2302
|
+
readonly correlationId: import("effect/Schema").String;
|
|
2303
|
+
readonly error: import("effect/Schema").Struct<{
|
|
2304
|
+
readonly code: import("effect/Schema").Literal<"unavailable">;
|
|
2305
|
+
readonly message: import("effect/Schema").String;
|
|
2306
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
2307
|
+
}>;
|
|
2308
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
2309
|
+
}>>, never, never> | HttpApiEndpoint.HttpApiEndpoint<"watchTurnWait", "GET", "/chat/conversations/:conversationId/turns/:invocationId/wait", import("effect/Schema").toCodecStringTree<import("effect/Schema").Struct<{
|
|
2310
|
+
readonly conversationId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/ConversationId">;
|
|
2311
|
+
readonly invocationId: import("effect/Schema").brand<import("effect/Schema").String, "@collective-intelligence/ai/InvocationId">;
|
|
2312
|
+
}>>, never, never, never, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2313
|
+
readonly waiting: import("effect/Schema").Boolean;
|
|
2314
|
+
}>>, import("effect/Schema").toCodecJson<import("effect/Schema").Struct<{
|
|
2315
|
+
readonly correlationId: import("effect/Schema").String;
|
|
2316
|
+
readonly error: import("effect/Schema").Struct<{
|
|
2317
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
2318
|
+
readonly reason: import("effect/Schema").Literals<readonly ["turn_ended", "intent_turn_busy", "intent_turn_agent"]>;
|
|
2319
|
+
}>>;
|
|
2320
|
+
} & {
|
|
2321
|
+
readonly code: import("effect/Schema").Literal<"conflict">;
|
|
2322
|
+
readonly message: import("effect/Schema").String;
|
|
2323
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
2324
|
+
}>;
|
|
2325
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
2326
|
+
}> | import("effect/Schema").Struct<{
|
|
2327
|
+
readonly correlationId: import("effect/Schema").String;
|
|
2328
|
+
readonly error: import("effect/Schema").Struct<{
|
|
2329
|
+
readonly details: import("effect/Schema").Struct<{
|
|
2330
|
+
readonly reason: import("effect/Schema").Literals<readonly ["capability_missing", "app_disabled", "principal_not_allowed", "not_available_here", "approval_not_allowed"]>;
|
|
2331
|
+
}>;
|
|
2332
|
+
} & {
|
|
2333
|
+
readonly code: import("effect/Schema").Literal<"forbidden">;
|
|
2334
|
+
readonly message: import("effect/Schema").String;
|
|
2335
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
2336
|
+
}>;
|
|
2337
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
2338
|
+
}> | import("effect/Schema").Struct<{
|
|
2339
|
+
readonly correlationId: import("effect/Schema").String;
|
|
2340
|
+
readonly error: import("effect/Schema").Struct<{
|
|
2341
|
+
readonly code: import("effect/Schema").Literal<"internal">;
|
|
2342
|
+
readonly message: import("effect/Schema").String;
|
|
2343
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
2344
|
+
}>;
|
|
2345
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
2346
|
+
}> | import("effect/Schema").Struct<{
|
|
2347
|
+
readonly correlationId: import("effect/Schema").String;
|
|
2348
|
+
readonly error: import("effect/Schema").Struct<{
|
|
2349
|
+
readonly details: import("effect/Schema").optionalKey<import("effect/Schema").Struct<{
|
|
2350
|
+
readonly filename: import("effect/Schema").optionalKey<import("effect/Schema").String>;
|
|
2351
|
+
readonly reason: import("effect/Schema").Literals<readonly ["unsupported", "oversized", "malformed", "too_many_files"]>;
|
|
2352
|
+
}>>;
|
|
2353
|
+
} & {
|
|
2354
|
+
readonly code: import("effect/Schema").Literal<"invalid_request">;
|
|
2355
|
+
readonly message: import("effect/Schema").String;
|
|
2356
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
2357
|
+
}>;
|
|
2358
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
2359
|
+
}> | import("effect/Schema").Struct<{
|
|
2360
|
+
readonly correlationId: import("effect/Schema").String;
|
|
2361
|
+
readonly error: import("effect/Schema").Struct<{
|
|
2362
|
+
readonly code: import("effect/Schema").Literal<"not_found">;
|
|
2363
|
+
readonly message: import("effect/Schema").String;
|
|
2364
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
2365
|
+
}>;
|
|
2366
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
2367
|
+
}> | import("effect/Schema").Struct<{
|
|
2368
|
+
readonly correlationId: import("effect/Schema").String;
|
|
2369
|
+
readonly error: import("effect/Schema").Struct<{
|
|
2370
|
+
readonly code: import("effect/Schema").Literal<"rate_limited">;
|
|
2371
|
+
readonly message: import("effect/Schema").String;
|
|
2372
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
2373
|
+
}>;
|
|
2374
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
2375
|
+
}> | import("effect/Schema").Struct<{
|
|
2376
|
+
readonly correlationId: import("effect/Schema").String;
|
|
2377
|
+
readonly error: import("effect/Schema").Struct<{
|
|
2378
|
+
readonly code: import("effect/Schema").Literal<"unauthenticated">;
|
|
2379
|
+
readonly message: import("effect/Schema").String;
|
|
2380
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
2381
|
+
}>;
|
|
2382
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
2383
|
+
}> | import("effect/Schema").Struct<{
|
|
2384
|
+
readonly correlationId: import("effect/Schema").String;
|
|
2385
|
+
readonly error: import("effect/Schema").Struct<{
|
|
2386
|
+
readonly code: import("effect/Schema").Literal<"unavailable">;
|
|
2387
|
+
readonly message: import("effect/Schema").String;
|
|
2388
|
+
readonly retryable: import("effect/Schema").Boolean;
|
|
2389
|
+
}>;
|
|
2390
|
+
readonly ok: import("effect/Schema").Literal<false>;
|
|
2391
|
+
}>>, never, never>, false>;
|
|
2392
|
+
/**
|
|
2393
|
+
* The chat of one caller in one Place: its Conversations, the chat stream
|
|
2394
|
+
* and its resume, the run stream, stop, Steering and Queued Messages, the
|
|
2395
|
+
* place context, compaction, and the sources and generated images of an
|
|
2396
|
+
* answer. Every path is relative to the mount prefix (`/studio/ai`,
|
|
2397
|
+
* `/admin`, `/application/v1`); the mount owns the auth.
|
|
2398
|
+
*/
|
|
2399
|
+
export declare class ChatApi extends ChatApi_base {
|
|
2400
|
+
}
|
|
2401
|
+
export {};
|