@relayfx/sdk 0.0.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/dist/index.js +8449 -0
- package/dist/migrations/20260701002839_sour_cerebro/migration.sql +160 -0
- package/dist/migrations/20260701002839_sour_cerebro/snapshot.json +1971 -0
- package/dist/migrations/20260701041134_acoustic_hulk/migration.sql +30 -0
- package/dist/migrations/20260701041134_acoustic_hulk/snapshot.json +2372 -0
- package/dist/migrations/20260701160543_condemned_stryfe/migration.sql +2 -0
- package/dist/migrations/20260701160543_condemned_stryfe/snapshot.json +2442 -0
- package/dist/migrations/20260701220315_heavy_gorgon/migration.sql +5 -0
- package/dist/migrations/20260701220315_heavy_gorgon/snapshot.json +2495 -0
- package/dist/migrations/20260701225444_polite_lord_hawal/migration.sql +24 -0
- package/dist/migrations/20260701225444_polite_lord_hawal/snapshot.json +2821 -0
- package/dist/migrations/20260702030128_flaky_misty_knight/migration.sql +1 -0
- package/dist/migrations/20260702030128_flaky_misty_knight/snapshot.json +2821 -0
- package/dist/types/ai/index.d.ts +2 -0
- package/dist/types/ai/language-model/language-model-registration.d.ts +89 -0
- package/dist/types/relay/adapter-outbox.d.ts +19 -0
- package/dist/types/relay/client.d.ts +102 -0
- package/dist/types/relay/database.d.ts +11 -0
- package/dist/types/relay/index.d.ts +10 -0
- package/dist/types/relay/operation.d.ts +921 -0
- package/dist/types/runtime/address/address-book-service.d.ts +74 -0
- package/dist/types/runtime/address/address-resolution-service.d.ts +106 -0
- package/dist/types/runtime/agent/agent-loop-service.d.ts +53 -0
- package/dist/types/runtime/agent/agent-registry-service.d.ts +31 -0
- package/dist/types/runtime/agent/prompt-assembler-service.d.ts +102 -0
- package/dist/types/runtime/child/child-run-service.d.ts +90 -0
- package/dist/types/runtime/child/parent-notifier-service.d.ts +40 -0
- package/dist/types/runtime/cluster/execution-entity.d.ts +393 -0
- package/dist/types/runtime/content/artifact-store-service.d.ts +73 -0
- package/dist/types/runtime/content/blob-store-service.d.ts +87 -0
- package/dist/types/runtime/envelope/envelope-service.d.ts +52 -0
- package/dist/types/runtime/execution/event-log-service.d.ts +54 -0
- package/dist/types/runtime/execution/execution-service.d.ts +62 -0
- package/dist/types/runtime/index.d.ts +25 -0
- package/dist/types/runtime/model/language-model-service.d.ts +58 -0
- package/dist/types/runtime/model/model-call-policy.d.ts +53 -0
- package/dist/types/runtime/observability/runtime-metrics.d.ts +9 -0
- package/dist/types/runtime/runner/runner-runtime-service.d.ts +132 -0
- package/dist/types/runtime/schedule/scheduler-service.d.ts +34 -0
- package/dist/types/runtime/tool/tool-runtime-service.d.ts +85 -0
- package/dist/types/runtime/wait/wait-service.d.ts +80 -0
- package/dist/types/runtime/wait/wait-signal.d.ts +15 -0
- package/dist/types/runtime/workflow/execution-workflow.d.ts +335 -0
- package/dist/types/runtime/workspace/workspace-planner-service.d.ts +63 -0
- package/dist/types/runtime/workspace/workspace-provider-service.d.ts +108 -0
- package/dist/types/runtime/workspace/workspace-runtime-service.d.ts +21 -0
- package/dist/types/schema/address-schema.d.ts +77 -0
- package/dist/types/schema/agent-schema.d.ts +360 -0
- package/dist/types/schema/content-schema.d.ts +106 -0
- package/dist/types/schema/envelope-schema.d.ts +167 -0
- package/dist/types/schema/execution-schema.d.ts +297 -0
- package/dist/types/schema/ids-schema.d.ts +61 -0
- package/dist/types/schema/index.d.ts +11 -0
- package/dist/types/schema/schedule-schema.d.ts +73 -0
- package/dist/types/schema/shared-schema.d.ts +11 -0
- package/dist/types/schema/tool-schema.d.ts +53 -0
- package/dist/types/schema/workspace-schema.d.ts +78 -0
- package/dist/types/store-sql/address/address-book-repository.d.ts +48 -0
- package/dist/types/store-sql/agent/agent-definition-repository.d.ts +49 -0
- package/dist/types/store-sql/chat/agent-chat-repository.d.ts +31 -0
- package/dist/types/store-sql/child/child-execution-repository.d.ts +61 -0
- package/dist/types/store-sql/cluster/cluster-registry-repository.d.ts +35 -0
- package/dist/types/store-sql/database/database-service.d.ts +25 -0
- package/dist/types/store-sql/envelope/envelope-repository.d.ts +158 -0
- package/dist/types/store-sql/execution/execution-event-repository.d.ts +86 -0
- package/dist/types/store-sql/execution/execution-repository.d.ts +80 -0
- package/dist/types/store-sql/idempotency/idempotency-repository.d.ts +42 -0
- package/dist/types/store-sql/index.d.ts +15 -0
- package/dist/types/store-sql/schedule/schedule-repository.d.ts +83 -0
- package/dist/types/store-sql/schema/relay-schema.d.ts +2302 -0
- package/dist/types/store-sql/tool/tool-call-repository.d.ts +66 -0
- package/dist/types/store-sql/workspace/workspace-lease-repository.d.ts +87 -0
- package/package.json +44 -0
|
@@ -0,0 +1,921 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
export declare const StartExecutionInput: Schema.Struct<{
|
|
3
|
+
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
4
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
5
|
+
};
|
|
6
|
+
readonly root_address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
7
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
8
|
+
};
|
|
9
|
+
readonly input: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
10
|
+
readonly type: Schema.Literal<"text">;
|
|
11
|
+
readonly text: Schema.String;
|
|
12
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
13
|
+
}>, Schema.Struct<{
|
|
14
|
+
readonly type: Schema.Literal<"structured">;
|
|
15
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
16
|
+
readonly schema_ref: Schema.optionalKey<Schema.String>;
|
|
17
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
18
|
+
}>, Schema.Struct<{
|
|
19
|
+
readonly type: Schema.Literal<"blob-reference">;
|
|
20
|
+
readonly uri: Schema.String;
|
|
21
|
+
readonly media_type: Schema.String;
|
|
22
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
23
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
24
|
+
}>, Schema.Struct<{
|
|
25
|
+
readonly type: Schema.Literal<"artifact-reference">;
|
|
26
|
+
readonly artifact_id: Schema.String;
|
|
27
|
+
readonly media_type: Schema.optionalKey<Schema.String>;
|
|
28
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
29
|
+
}>, Schema.Struct<{
|
|
30
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
31
|
+
readonly call: Schema.Struct<{
|
|
32
|
+
readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
33
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
34
|
+
};
|
|
35
|
+
readonly name: Schema.String;
|
|
36
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
37
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
38
|
+
}>;
|
|
39
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
40
|
+
}>, Schema.Struct<{
|
|
41
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
42
|
+
readonly result: Schema.Struct<{
|
|
43
|
+
readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
44
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
45
|
+
};
|
|
46
|
+
readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
47
|
+
readonly error: Schema.optionalKey<Schema.String>;
|
|
48
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
49
|
+
}>;
|
|
50
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
51
|
+
}>]>>>;
|
|
52
|
+
readonly event_sequence: Schema.Int;
|
|
53
|
+
readonly started_at: Schema.Int;
|
|
54
|
+
readonly completed_at: Schema.Int;
|
|
55
|
+
readonly agent_definition_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.AgentDefinitionId"> & {
|
|
56
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AgentDefinitionId">;
|
|
57
|
+
}>;
|
|
58
|
+
readonly agent_definition_revision: Schema.optionalKey<Schema.Int>;
|
|
59
|
+
readonly agent_definition_snapshot: Schema.optionalKey<Schema.Struct<{
|
|
60
|
+
readonly name: Schema.String;
|
|
61
|
+
readonly instructions: Schema.optionalKey<Schema.String>;
|
|
62
|
+
readonly model: Schema.Struct<{
|
|
63
|
+
readonly provider: Schema.String;
|
|
64
|
+
readonly model: Schema.String;
|
|
65
|
+
readonly registration_key: Schema.optionalKey<Schema.String>;
|
|
66
|
+
readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
67
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
68
|
+
}>;
|
|
69
|
+
readonly tool_names: Schema.$Array<Schema.String>;
|
|
70
|
+
readonly permissions: Schema.$Array<Schema.Struct<{
|
|
71
|
+
readonly name: Schema.String;
|
|
72
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
73
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
74
|
+
}>>;
|
|
75
|
+
readonly child_run_presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
76
|
+
readonly instructions: Schema.optionalKey<Schema.String>;
|
|
77
|
+
readonly model: Schema.optionalKey<Schema.Struct<{
|
|
78
|
+
readonly provider: Schema.String;
|
|
79
|
+
readonly model: Schema.String;
|
|
80
|
+
readonly registration_key: Schema.optionalKey<Schema.String>;
|
|
81
|
+
readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
82
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
83
|
+
}>>;
|
|
84
|
+
readonly tool_names: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
85
|
+
readonly permissions: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
86
|
+
readonly workspace_policy: Schema.optionalKey<Schema.Struct<{
|
|
87
|
+
readonly mode: Schema.Literals<readonly ["share", "fork"]>;
|
|
88
|
+
readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["fail", "fresh"]>>;
|
|
89
|
+
}>>;
|
|
90
|
+
readonly output_schema_ref: Schema.optionalKey<Schema.String>;
|
|
91
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
92
|
+
}>>>;
|
|
93
|
+
readonly output_schema_ref: Schema.optionalKey<Schema.String>;
|
|
94
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
95
|
+
}>>;
|
|
96
|
+
readonly wait_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WaitId"> & {
|
|
97
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
|
|
98
|
+
}>;
|
|
99
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
100
|
+
}>;
|
|
101
|
+
export interface StartExecutionInput extends Schema.Schema.Type<typeof StartExecutionInput> {
|
|
102
|
+
}
|
|
103
|
+
export declare const StartExecutionResult: Schema.Struct<{
|
|
104
|
+
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
105
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
106
|
+
};
|
|
107
|
+
readonly status: Schema.Literals<readonly ["queued", "running", "waiting", "completed", "failed", "cancelled"]>;
|
|
108
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
109
|
+
}>;
|
|
110
|
+
export interface StartExecutionResult extends Schema.Schema.Type<typeof StartExecutionResult> {
|
|
111
|
+
}
|
|
112
|
+
export declare const StreamExecutionInput: Schema.Struct<{
|
|
113
|
+
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
114
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
115
|
+
};
|
|
116
|
+
readonly after_cursor: Schema.optionalKey<Schema.String>;
|
|
117
|
+
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
118
|
+
}>;
|
|
119
|
+
export interface StreamExecutionInput extends Schema.Schema.Type<typeof StreamExecutionInput> {
|
|
120
|
+
}
|
|
121
|
+
export declare const WaitTerminalState: Schema.Literals<readonly ["resolved", "timed_out", "cancelled"]>;
|
|
122
|
+
export type WaitTerminalState = typeof WaitTerminalState.Type;
|
|
123
|
+
export declare const CancelExecutionInput: Schema.Struct<{
|
|
124
|
+
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
125
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
126
|
+
};
|
|
127
|
+
readonly cancelled_at: Schema.Int;
|
|
128
|
+
readonly reason: Schema.optionalKey<Schema.String>;
|
|
129
|
+
}>;
|
|
130
|
+
export interface CancelExecutionInput extends Schema.Schema.Type<typeof CancelExecutionInput> {
|
|
131
|
+
}
|
|
132
|
+
export declare const CancelExecutionAccepted: Schema.Struct<{
|
|
133
|
+
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
134
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
135
|
+
};
|
|
136
|
+
readonly status: Schema.Literals<readonly ["queued", "running", "waiting", "completed", "failed", "cancelled"]>;
|
|
137
|
+
}>;
|
|
138
|
+
export interface CancelExecutionAccepted extends Schema.Schema.Type<typeof CancelExecutionAccepted> {
|
|
139
|
+
}
|
|
140
|
+
export declare const WakeInput: Schema.Struct<{
|
|
141
|
+
readonly wait_id: Schema.brand<Schema.String, "Relay.WaitId"> & {
|
|
142
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
|
|
143
|
+
};
|
|
144
|
+
readonly state: Schema.Literals<readonly ["resolved", "timed_out", "cancelled"]>;
|
|
145
|
+
readonly signaled_at: Schema.Int;
|
|
146
|
+
readonly from: Schema.optionalKey<Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
147
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
148
|
+
}>;
|
|
149
|
+
readonly content: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
150
|
+
readonly type: Schema.Literal<"text">;
|
|
151
|
+
readonly text: Schema.String;
|
|
152
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
153
|
+
}>, Schema.Struct<{
|
|
154
|
+
readonly type: Schema.Literal<"structured">;
|
|
155
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
156
|
+
readonly schema_ref: Schema.optionalKey<Schema.String>;
|
|
157
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
158
|
+
}>, Schema.Struct<{
|
|
159
|
+
readonly type: Schema.Literal<"blob-reference">;
|
|
160
|
+
readonly uri: Schema.String;
|
|
161
|
+
readonly media_type: Schema.String;
|
|
162
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
163
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
164
|
+
}>, Schema.Struct<{
|
|
165
|
+
readonly type: Schema.Literal<"artifact-reference">;
|
|
166
|
+
readonly artifact_id: Schema.String;
|
|
167
|
+
readonly media_type: Schema.optionalKey<Schema.String>;
|
|
168
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
169
|
+
}>, Schema.Struct<{
|
|
170
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
171
|
+
readonly call: Schema.Struct<{
|
|
172
|
+
readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
173
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
174
|
+
};
|
|
175
|
+
readonly name: Schema.String;
|
|
176
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
177
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
178
|
+
}>;
|
|
179
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
180
|
+
}>, Schema.Struct<{
|
|
181
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
182
|
+
readonly result: Schema.Struct<{
|
|
183
|
+
readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
184
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
185
|
+
};
|
|
186
|
+
readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
187
|
+
readonly error: Schema.optionalKey<Schema.String>;
|
|
188
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
189
|
+
}>;
|
|
190
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
191
|
+
}>]>>>;
|
|
192
|
+
readonly correlation_key: Schema.optionalKey<Schema.String>;
|
|
193
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
194
|
+
}>;
|
|
195
|
+
export interface WakeInput extends Schema.Schema.Type<typeof WakeInput> {
|
|
196
|
+
}
|
|
197
|
+
export declare const WakeAccepted: Schema.Struct<{
|
|
198
|
+
readonly wait_id: Schema.brand<Schema.String, "Relay.WaitId"> & {
|
|
199
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
|
|
200
|
+
};
|
|
201
|
+
readonly state: Schema.Literals<readonly ["resolved", "timed_out", "cancelled"]>;
|
|
202
|
+
readonly signaled_at: Schema.Int;
|
|
203
|
+
}>;
|
|
204
|
+
export interface WakeAccepted extends Schema.Schema.Type<typeof WakeAccepted> {
|
|
205
|
+
}
|
|
206
|
+
export declare const WaitState: Schema.Literals<readonly ["open", "resolved", "timed_out", "cancelled"]>;
|
|
207
|
+
export type WaitState = typeof WaitState.Type;
|
|
208
|
+
export declare const ListWaitsInput: Schema.Struct<{
|
|
209
|
+
readonly state: Schema.optionalKey<Schema.Literals<readonly ["open", "resolved", "timed_out", "cancelled"]>>;
|
|
210
|
+
readonly execution_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
211
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
212
|
+
}>;
|
|
213
|
+
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
214
|
+
}>;
|
|
215
|
+
export interface ListWaitsInput extends Schema.Schema.Type<typeof ListWaitsInput> {
|
|
216
|
+
}
|
|
217
|
+
export declare const WaitView: Schema.Struct<{
|
|
218
|
+
readonly wait_id: Schema.brand<Schema.String, "Relay.WaitId"> & {
|
|
219
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
|
|
220
|
+
};
|
|
221
|
+
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
222
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
223
|
+
};
|
|
224
|
+
readonly envelope_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.EnvelopeId"> & {
|
|
225
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EnvelopeId">;
|
|
226
|
+
}>;
|
|
227
|
+
readonly mode: Schema.Literals<readonly ["reply", "event", "until", "child"]>;
|
|
228
|
+
readonly correlation_key: Schema.optionalKey<Schema.String>;
|
|
229
|
+
readonly state: Schema.Literals<readonly ["open", "resolved", "timed_out", "cancelled"]>;
|
|
230
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
231
|
+
readonly created_at: Schema.Int;
|
|
232
|
+
readonly resolved_at: Schema.optionalKey<Schema.Int>;
|
|
233
|
+
}>;
|
|
234
|
+
export interface WaitView extends Schema.Schema.Type<typeof WaitView> {
|
|
235
|
+
}
|
|
236
|
+
export declare const PendingToolApproval: Schema.Struct<{
|
|
237
|
+
readonly wait_id: Schema.brand<Schema.String, "Relay.WaitId"> & {
|
|
238
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
|
|
239
|
+
};
|
|
240
|
+
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
241
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
242
|
+
};
|
|
243
|
+
readonly tool_call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
244
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
245
|
+
};
|
|
246
|
+
readonly tool_name: Schema.String;
|
|
247
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
248
|
+
readonly requested_at: Schema.Int;
|
|
249
|
+
}>;
|
|
250
|
+
export interface PendingToolApproval extends Schema.Schema.Type<typeof PendingToolApproval> {
|
|
251
|
+
}
|
|
252
|
+
export declare const ListPendingApprovalsInput: Schema.Struct<{
|
|
253
|
+
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
254
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
255
|
+
};
|
|
256
|
+
}>;
|
|
257
|
+
export interface ListPendingApprovalsInput extends Schema.Schema.Type<typeof ListPendingApprovalsInput> {
|
|
258
|
+
}
|
|
259
|
+
export declare const PendingToolApprovalList: Schema.Struct<{
|
|
260
|
+
readonly approvals: Schema.$Array<Schema.Struct<{
|
|
261
|
+
readonly wait_id: Schema.brand<Schema.String, "Relay.WaitId"> & {
|
|
262
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
|
|
263
|
+
};
|
|
264
|
+
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
265
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
266
|
+
};
|
|
267
|
+
readonly tool_call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
268
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
269
|
+
};
|
|
270
|
+
readonly tool_name: Schema.String;
|
|
271
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
272
|
+
readonly requested_at: Schema.Int;
|
|
273
|
+
}>>;
|
|
274
|
+
}>;
|
|
275
|
+
export interface PendingToolApprovalList extends Schema.Schema.Type<typeof PendingToolApprovalList> {
|
|
276
|
+
}
|
|
277
|
+
export declare const ResolveToolApprovalInput: Schema.Struct<{
|
|
278
|
+
readonly wait_id: Schema.brand<Schema.String, "Relay.WaitId"> & {
|
|
279
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
|
|
280
|
+
};
|
|
281
|
+
readonly approved: Schema.Boolean;
|
|
282
|
+
readonly comment: Schema.optionalKey<Schema.String>;
|
|
283
|
+
readonly resolved_at: Schema.Int;
|
|
284
|
+
}>;
|
|
285
|
+
export interface ResolveToolApprovalInput extends Schema.Schema.Type<typeof ResolveToolApprovalInput> {
|
|
286
|
+
}
|
|
287
|
+
export declare const SubmitInboundEnvelopeInput: Schema.Struct<{
|
|
288
|
+
readonly envelope: Schema.Struct<{
|
|
289
|
+
readonly from: Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
290
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
291
|
+
};
|
|
292
|
+
readonly to: Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
293
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
294
|
+
};
|
|
295
|
+
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
296
|
+
readonly type: Schema.Literal<"text">;
|
|
297
|
+
readonly text: Schema.String;
|
|
298
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
299
|
+
}>, Schema.Struct<{
|
|
300
|
+
readonly type: Schema.Literal<"structured">;
|
|
301
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
302
|
+
readonly schema_ref: Schema.optionalKey<Schema.String>;
|
|
303
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
304
|
+
}>, Schema.Struct<{
|
|
305
|
+
readonly type: Schema.Literal<"blob-reference">;
|
|
306
|
+
readonly uri: Schema.String;
|
|
307
|
+
readonly media_type: Schema.String;
|
|
308
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
309
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
310
|
+
}>, Schema.Struct<{
|
|
311
|
+
readonly type: Schema.Literal<"artifact-reference">;
|
|
312
|
+
readonly artifact_id: Schema.String;
|
|
313
|
+
readonly media_type: Schema.optionalKey<Schema.String>;
|
|
314
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
315
|
+
}>, Schema.Struct<{
|
|
316
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
317
|
+
readonly call: Schema.Struct<{
|
|
318
|
+
readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
319
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
320
|
+
};
|
|
321
|
+
readonly name: Schema.String;
|
|
322
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
323
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
324
|
+
}>;
|
|
325
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
326
|
+
}>, Schema.Struct<{
|
|
327
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
328
|
+
readonly result: Schema.Struct<{
|
|
329
|
+
readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
330
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
331
|
+
};
|
|
332
|
+
readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
333
|
+
readonly error: Schema.optionalKey<Schema.String>;
|
|
334
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
335
|
+
}>;
|
|
336
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
337
|
+
}>]>>;
|
|
338
|
+
readonly wait: Schema.optionalKey<Schema.Struct<{
|
|
339
|
+
readonly mode: Schema.Literals<readonly ["reply", "event", "until", "child"]>;
|
|
340
|
+
readonly timeout: Schema.optionalKey<Schema.String>;
|
|
341
|
+
readonly correlation_key: Schema.optionalKey<Schema.String>;
|
|
342
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
343
|
+
}>>;
|
|
344
|
+
readonly correlation_key: Schema.optionalKey<Schema.String>;
|
|
345
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
346
|
+
}>;
|
|
347
|
+
readonly wake: Schema.Struct<{
|
|
348
|
+
readonly wait_id: Schema.brand<Schema.String, "Relay.WaitId"> & {
|
|
349
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
|
|
350
|
+
};
|
|
351
|
+
readonly state: Schema.Literals<readonly ["resolved", "timed_out", "cancelled"]>;
|
|
352
|
+
readonly signaled_at: Schema.Int;
|
|
353
|
+
readonly from: Schema.optionalKey<Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
354
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
355
|
+
}>;
|
|
356
|
+
readonly content: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
357
|
+
readonly type: Schema.Literal<"text">;
|
|
358
|
+
readonly text: Schema.String;
|
|
359
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
360
|
+
}>, Schema.Struct<{
|
|
361
|
+
readonly type: Schema.Literal<"structured">;
|
|
362
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
363
|
+
readonly schema_ref: Schema.optionalKey<Schema.String>;
|
|
364
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
365
|
+
}>, Schema.Struct<{
|
|
366
|
+
readonly type: Schema.Literal<"blob-reference">;
|
|
367
|
+
readonly uri: Schema.String;
|
|
368
|
+
readonly media_type: Schema.String;
|
|
369
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
370
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
371
|
+
}>, Schema.Struct<{
|
|
372
|
+
readonly type: Schema.Literal<"artifact-reference">;
|
|
373
|
+
readonly artifact_id: Schema.String;
|
|
374
|
+
readonly media_type: Schema.optionalKey<Schema.String>;
|
|
375
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
376
|
+
}>, Schema.Struct<{
|
|
377
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
378
|
+
readonly call: Schema.Struct<{
|
|
379
|
+
readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
380
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
381
|
+
};
|
|
382
|
+
readonly name: Schema.String;
|
|
383
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
384
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
385
|
+
}>;
|
|
386
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
387
|
+
}>, Schema.Struct<{
|
|
388
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
389
|
+
readonly result: Schema.Struct<{
|
|
390
|
+
readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
391
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
392
|
+
};
|
|
393
|
+
readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
394
|
+
readonly error: Schema.optionalKey<Schema.String>;
|
|
395
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
396
|
+
}>;
|
|
397
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
398
|
+
}>]>>>;
|
|
399
|
+
readonly correlation_key: Schema.optionalKey<Schema.String>;
|
|
400
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
401
|
+
}>;
|
|
402
|
+
}>;
|
|
403
|
+
export interface SubmitInboundEnvelopeInput extends Schema.Schema.Type<typeof SubmitInboundEnvelopeInput> {
|
|
404
|
+
}
|
|
405
|
+
export declare const SubmitInboundEnvelopeAccepted: Schema.Struct<{
|
|
406
|
+
readonly envelope: Schema.Struct<{
|
|
407
|
+
readonly envelope_id: Schema.brand<Schema.String, "Relay.EnvelopeId"> & {
|
|
408
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EnvelopeId">;
|
|
409
|
+
};
|
|
410
|
+
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
411
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
412
|
+
};
|
|
413
|
+
readonly wait_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WaitId"> & {
|
|
414
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
|
|
415
|
+
}>;
|
|
416
|
+
}>;
|
|
417
|
+
readonly wake: Schema.Struct<{
|
|
418
|
+
readonly wait_id: Schema.brand<Schema.String, "Relay.WaitId"> & {
|
|
419
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
|
|
420
|
+
};
|
|
421
|
+
readonly state: Schema.Literals<readonly ["resolved", "timed_out", "cancelled"]>;
|
|
422
|
+
readonly signaled_at: Schema.Int;
|
|
423
|
+
}>;
|
|
424
|
+
}>;
|
|
425
|
+
export interface SubmitInboundEnvelopeAccepted extends Schema.Schema.Type<typeof SubmitInboundEnvelopeAccepted> {
|
|
426
|
+
}
|
|
427
|
+
export declare const ClaimEnvelopeReadyInput: Schema.Struct<{
|
|
428
|
+
readonly route_type: Schema.Literals<readonly ["local-agent", "remote-relay", "local-adapter", "unavailable", "deferred-retry"]>;
|
|
429
|
+
readonly route_key: Schema.optionalKey<Schema.String>;
|
|
430
|
+
readonly worker_id: Schema.String;
|
|
431
|
+
readonly now: Schema.Int;
|
|
432
|
+
readonly claim_expires_at: Schema.Int;
|
|
433
|
+
}>;
|
|
434
|
+
export interface ClaimEnvelopeReadyInput extends Schema.Schema.Type<typeof ClaimEnvelopeReadyInput> {
|
|
435
|
+
}
|
|
436
|
+
export declare const EnvelopeReadyLease: Schema.Struct<{
|
|
437
|
+
readonly ready: Schema.Struct<{
|
|
438
|
+
readonly id: Schema.brand<Schema.String, "Relay.EnvelopeReadyId"> & {
|
|
439
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EnvelopeReadyId">;
|
|
440
|
+
};
|
|
441
|
+
readonly envelope_id: Schema.brand<Schema.String, "Relay.EnvelopeId"> & {
|
|
442
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EnvelopeId">;
|
|
443
|
+
};
|
|
444
|
+
readonly route_key: Schema.String;
|
|
445
|
+
readonly available_at: Schema.Int;
|
|
446
|
+
readonly attempt: Schema.Int;
|
|
447
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
448
|
+
}>;
|
|
449
|
+
readonly worker_id: Schema.String;
|
|
450
|
+
readonly claim_expires_at: Schema.Int;
|
|
451
|
+
}>;
|
|
452
|
+
export interface EnvelopeReadyLease extends Schema.Schema.Type<typeof EnvelopeReadyLease> {
|
|
453
|
+
}
|
|
454
|
+
export declare const AckEnvelopeReadyInput: Schema.Struct<{
|
|
455
|
+
readonly envelope_ready_id: Schema.brand<Schema.String, "Relay.EnvelopeReadyId"> & {
|
|
456
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EnvelopeReadyId">;
|
|
457
|
+
};
|
|
458
|
+
readonly worker_id: Schema.String;
|
|
459
|
+
readonly acknowledged_at: Schema.Int;
|
|
460
|
+
}>;
|
|
461
|
+
export interface AckEnvelopeReadyInput extends Schema.Schema.Type<typeof AckEnvelopeReadyInput> {
|
|
462
|
+
}
|
|
463
|
+
export declare const EnvelopeReadyAcked: Schema.Struct<{
|
|
464
|
+
readonly envelope_ready_id: Schema.brand<Schema.String, "Relay.EnvelopeReadyId"> & {
|
|
465
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EnvelopeReadyId">;
|
|
466
|
+
};
|
|
467
|
+
readonly state: Schema.Literal<"acknowledged">;
|
|
468
|
+
readonly acknowledged_at: Schema.Int;
|
|
469
|
+
}>;
|
|
470
|
+
export interface EnvelopeReadyAcked extends Schema.Schema.Type<typeof EnvelopeReadyAcked> {
|
|
471
|
+
}
|
|
472
|
+
export declare const ReleaseEnvelopeReadyInput: Schema.Struct<{
|
|
473
|
+
readonly envelope_ready_id: Schema.brand<Schema.String, "Relay.EnvelopeReadyId"> & {
|
|
474
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EnvelopeReadyId">;
|
|
475
|
+
};
|
|
476
|
+
readonly worker_id: Schema.String;
|
|
477
|
+
readonly next_available_at: Schema.Int;
|
|
478
|
+
readonly error: Schema.optionalKey<Schema.String>;
|
|
479
|
+
}>;
|
|
480
|
+
export interface ReleaseEnvelopeReadyInput extends Schema.Schema.Type<typeof ReleaseEnvelopeReadyInput> {
|
|
481
|
+
}
|
|
482
|
+
export declare const EnvelopeReadyReleased: Schema.Struct<{
|
|
483
|
+
readonly envelope_ready_id: Schema.brand<Schema.String, "Relay.EnvelopeReadyId"> & {
|
|
484
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EnvelopeReadyId">;
|
|
485
|
+
};
|
|
486
|
+
readonly state: Schema.Literal<"ready">;
|
|
487
|
+
readonly next_available_at: Schema.Int;
|
|
488
|
+
}>;
|
|
489
|
+
export interface EnvelopeReadyReleased extends Schema.Schema.Type<typeof EnvelopeReadyReleased> {
|
|
490
|
+
}
|
|
491
|
+
export declare const CreateScheduleInput: Schema.Struct<{
|
|
492
|
+
readonly schedule_id: Schema.brand<Schema.String, "Relay.ScheduleId"> & {
|
|
493
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ScheduleId">;
|
|
494
|
+
};
|
|
495
|
+
readonly kind: Schema.Literals<readonly ["once", "cron"]>;
|
|
496
|
+
readonly target_kind: Schema.Literals<readonly ["start-execution", "wake-wait", "timeout-wait"]>;
|
|
497
|
+
readonly address_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
498
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
499
|
+
}>;
|
|
500
|
+
readonly wait_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WaitId"> & {
|
|
501
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
|
|
502
|
+
}>;
|
|
503
|
+
readonly cron_expr: Schema.optionalKey<Schema.String>;
|
|
504
|
+
readonly input: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
505
|
+
readonly type: Schema.Literal<"text">;
|
|
506
|
+
readonly text: Schema.String;
|
|
507
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
508
|
+
}>, Schema.Struct<{
|
|
509
|
+
readonly type: Schema.Literal<"structured">;
|
|
510
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
511
|
+
readonly schema_ref: Schema.optionalKey<Schema.String>;
|
|
512
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
513
|
+
}>, Schema.Struct<{
|
|
514
|
+
readonly type: Schema.Literal<"blob-reference">;
|
|
515
|
+
readonly uri: Schema.String;
|
|
516
|
+
readonly media_type: Schema.String;
|
|
517
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
518
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
519
|
+
}>, Schema.Struct<{
|
|
520
|
+
readonly type: Schema.Literal<"artifact-reference">;
|
|
521
|
+
readonly artifact_id: Schema.String;
|
|
522
|
+
readonly media_type: Schema.optionalKey<Schema.String>;
|
|
523
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
524
|
+
}>, Schema.Struct<{
|
|
525
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
526
|
+
readonly call: Schema.Struct<{
|
|
527
|
+
readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
528
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
529
|
+
};
|
|
530
|
+
readonly name: Schema.String;
|
|
531
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
532
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
533
|
+
}>;
|
|
534
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
535
|
+
}>, Schema.Struct<{
|
|
536
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
537
|
+
readonly result: Schema.Struct<{
|
|
538
|
+
readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
539
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
540
|
+
};
|
|
541
|
+
readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
542
|
+
readonly error: Schema.optionalKey<Schema.String>;
|
|
543
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
544
|
+
}>;
|
|
545
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
546
|
+
}>]>>>;
|
|
547
|
+
readonly next_run_at: Schema.Int;
|
|
548
|
+
readonly idempotency_key: Schema.optionalKey<Schema.String>;
|
|
549
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
550
|
+
}>;
|
|
551
|
+
export interface CreateScheduleInput extends Schema.Schema.Type<typeof CreateScheduleInput> {
|
|
552
|
+
}
|
|
553
|
+
export declare const CreateScheduleResult: Schema.Struct<{
|
|
554
|
+
readonly schedule: Schema.Struct<{
|
|
555
|
+
readonly id: Schema.brand<Schema.String, "Relay.ScheduleId"> & {
|
|
556
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ScheduleId">;
|
|
557
|
+
};
|
|
558
|
+
readonly kind: Schema.Literals<readonly ["once", "cron"]>;
|
|
559
|
+
readonly target_kind: Schema.Literals<readonly ["start-execution", "wake-wait", "timeout-wait"]>;
|
|
560
|
+
readonly address_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
561
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
562
|
+
}>;
|
|
563
|
+
readonly wait_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WaitId"> & {
|
|
564
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
|
|
565
|
+
}>;
|
|
566
|
+
readonly cron_expr: Schema.optionalKey<Schema.String>;
|
|
567
|
+
readonly input: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
568
|
+
readonly type: Schema.Literal<"text">;
|
|
569
|
+
readonly text: Schema.String;
|
|
570
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
571
|
+
}>, Schema.Struct<{
|
|
572
|
+
readonly type: Schema.Literal<"structured">;
|
|
573
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
574
|
+
readonly schema_ref: Schema.optionalKey<Schema.String>;
|
|
575
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
576
|
+
}>, Schema.Struct<{
|
|
577
|
+
readonly type: Schema.Literal<"blob-reference">;
|
|
578
|
+
readonly uri: Schema.String;
|
|
579
|
+
readonly media_type: Schema.String;
|
|
580
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
581
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
582
|
+
}>, Schema.Struct<{
|
|
583
|
+
readonly type: Schema.Literal<"artifact-reference">;
|
|
584
|
+
readonly artifact_id: Schema.String;
|
|
585
|
+
readonly media_type: Schema.optionalKey<Schema.String>;
|
|
586
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
587
|
+
}>, Schema.Struct<{
|
|
588
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
589
|
+
readonly call: Schema.Struct<{
|
|
590
|
+
readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
591
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
592
|
+
};
|
|
593
|
+
readonly name: Schema.String;
|
|
594
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
595
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
596
|
+
}>;
|
|
597
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
598
|
+
}>, Schema.Struct<{
|
|
599
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
600
|
+
readonly result: Schema.Struct<{
|
|
601
|
+
readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
602
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
603
|
+
};
|
|
604
|
+
readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
605
|
+
readonly error: Schema.optionalKey<Schema.String>;
|
|
606
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
607
|
+
}>;
|
|
608
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
609
|
+
}>]>>>;
|
|
610
|
+
readonly state: Schema.Literals<readonly ["active", "claimed", "completed", "cancelled", "failed"]>;
|
|
611
|
+
readonly next_run_at: Schema.Int;
|
|
612
|
+
readonly attempt: Schema.Int;
|
|
613
|
+
readonly last_error: Schema.optionalKey<Schema.String>;
|
|
614
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
615
|
+
readonly created_at: Schema.Int;
|
|
616
|
+
readonly updated_at: Schema.Int;
|
|
617
|
+
}>;
|
|
618
|
+
}>;
|
|
619
|
+
export interface CreateScheduleResult extends Schema.Schema.Type<typeof CreateScheduleResult> {
|
|
620
|
+
}
|
|
621
|
+
export declare const CancelScheduleInput: Schema.Struct<{
|
|
622
|
+
readonly schedule_id: Schema.brand<Schema.String, "Relay.ScheduleId"> & {
|
|
623
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ScheduleId">;
|
|
624
|
+
};
|
|
625
|
+
readonly cancelled_at: Schema.Int;
|
|
626
|
+
}>;
|
|
627
|
+
export interface CancelScheduleInput extends Schema.Schema.Type<typeof CancelScheduleInput> {
|
|
628
|
+
}
|
|
629
|
+
export declare const CancelScheduleResult: Schema.Struct<{
|
|
630
|
+
readonly schedule: Schema.Struct<{
|
|
631
|
+
readonly id: Schema.brand<Schema.String, "Relay.ScheduleId"> & {
|
|
632
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ScheduleId">;
|
|
633
|
+
};
|
|
634
|
+
readonly kind: Schema.Literals<readonly ["once", "cron"]>;
|
|
635
|
+
readonly target_kind: Schema.Literals<readonly ["start-execution", "wake-wait", "timeout-wait"]>;
|
|
636
|
+
readonly address_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
637
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
638
|
+
}>;
|
|
639
|
+
readonly wait_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WaitId"> & {
|
|
640
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
|
|
641
|
+
}>;
|
|
642
|
+
readonly cron_expr: Schema.optionalKey<Schema.String>;
|
|
643
|
+
readonly input: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
644
|
+
readonly type: Schema.Literal<"text">;
|
|
645
|
+
readonly text: Schema.String;
|
|
646
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
647
|
+
}>, Schema.Struct<{
|
|
648
|
+
readonly type: Schema.Literal<"structured">;
|
|
649
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
650
|
+
readonly schema_ref: Schema.optionalKey<Schema.String>;
|
|
651
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
652
|
+
}>, Schema.Struct<{
|
|
653
|
+
readonly type: Schema.Literal<"blob-reference">;
|
|
654
|
+
readonly uri: Schema.String;
|
|
655
|
+
readonly media_type: Schema.String;
|
|
656
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
657
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
658
|
+
}>, Schema.Struct<{
|
|
659
|
+
readonly type: Schema.Literal<"artifact-reference">;
|
|
660
|
+
readonly artifact_id: Schema.String;
|
|
661
|
+
readonly media_type: Schema.optionalKey<Schema.String>;
|
|
662
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
663
|
+
}>, Schema.Struct<{
|
|
664
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
665
|
+
readonly call: Schema.Struct<{
|
|
666
|
+
readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
667
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
668
|
+
};
|
|
669
|
+
readonly name: Schema.String;
|
|
670
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
671
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
672
|
+
}>;
|
|
673
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
674
|
+
}>, Schema.Struct<{
|
|
675
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
676
|
+
readonly result: Schema.Struct<{
|
|
677
|
+
readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
678
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
679
|
+
};
|
|
680
|
+
readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
681
|
+
readonly error: Schema.optionalKey<Schema.String>;
|
|
682
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
683
|
+
}>;
|
|
684
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
685
|
+
}>]>>>;
|
|
686
|
+
readonly state: Schema.Literals<readonly ["active", "claimed", "completed", "cancelled", "failed"]>;
|
|
687
|
+
readonly next_run_at: Schema.Int;
|
|
688
|
+
readonly attempt: Schema.Int;
|
|
689
|
+
readonly last_error: Schema.optionalKey<Schema.String>;
|
|
690
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
691
|
+
readonly created_at: Schema.Int;
|
|
692
|
+
readonly updated_at: Schema.Int;
|
|
693
|
+
}>;
|
|
694
|
+
}>;
|
|
695
|
+
export interface CancelScheduleResult extends Schema.Schema.Type<typeof CancelScheduleResult> {
|
|
696
|
+
}
|
|
697
|
+
export declare const ListSchedulesInput: Schema.Struct<{
|
|
698
|
+
readonly state: Schema.optionalKey<Schema.Literals<readonly ["active", "claimed", "completed", "cancelled", "failed"]>>;
|
|
699
|
+
}>;
|
|
700
|
+
export interface ListSchedulesInput extends Schema.Schema.Type<typeof ListSchedulesInput> {
|
|
701
|
+
}
|
|
702
|
+
export declare const ListSchedulesResult: Schema.Struct<{
|
|
703
|
+
readonly schedules: Schema.$Array<Schema.Struct<{
|
|
704
|
+
readonly id: Schema.brand<Schema.String, "Relay.ScheduleId"> & {
|
|
705
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ScheduleId">;
|
|
706
|
+
};
|
|
707
|
+
readonly kind: Schema.Literals<readonly ["once", "cron"]>;
|
|
708
|
+
readonly target_kind: Schema.Literals<readonly ["start-execution", "wake-wait", "timeout-wait"]>;
|
|
709
|
+
readonly address_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
710
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
711
|
+
}>;
|
|
712
|
+
readonly wait_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WaitId"> & {
|
|
713
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
|
|
714
|
+
}>;
|
|
715
|
+
readonly cron_expr: Schema.optionalKey<Schema.String>;
|
|
716
|
+
readonly input: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
717
|
+
readonly type: Schema.Literal<"text">;
|
|
718
|
+
readonly text: Schema.String;
|
|
719
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
720
|
+
}>, Schema.Struct<{
|
|
721
|
+
readonly type: Schema.Literal<"structured">;
|
|
722
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
723
|
+
readonly schema_ref: Schema.optionalKey<Schema.String>;
|
|
724
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
725
|
+
}>, Schema.Struct<{
|
|
726
|
+
readonly type: Schema.Literal<"blob-reference">;
|
|
727
|
+
readonly uri: Schema.String;
|
|
728
|
+
readonly media_type: Schema.String;
|
|
729
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
730
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
731
|
+
}>, Schema.Struct<{
|
|
732
|
+
readonly type: Schema.Literal<"artifact-reference">;
|
|
733
|
+
readonly artifact_id: Schema.String;
|
|
734
|
+
readonly media_type: Schema.optionalKey<Schema.String>;
|
|
735
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
736
|
+
}>, Schema.Struct<{
|
|
737
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
738
|
+
readonly call: Schema.Struct<{
|
|
739
|
+
readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
740
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
741
|
+
};
|
|
742
|
+
readonly name: Schema.String;
|
|
743
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
744
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
745
|
+
}>;
|
|
746
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
747
|
+
}>, Schema.Struct<{
|
|
748
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
749
|
+
readonly result: Schema.Struct<{
|
|
750
|
+
readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
751
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
752
|
+
};
|
|
753
|
+
readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
754
|
+
readonly error: Schema.optionalKey<Schema.String>;
|
|
755
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
756
|
+
}>;
|
|
757
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
758
|
+
}>]>>>;
|
|
759
|
+
readonly state: Schema.Literals<readonly ["active", "claimed", "completed", "cancelled", "failed"]>;
|
|
760
|
+
readonly next_run_at: Schema.Int;
|
|
761
|
+
readonly attempt: Schema.Int;
|
|
762
|
+
readonly last_error: Schema.optionalKey<Schema.String>;
|
|
763
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
764
|
+
readonly created_at: Schema.Int;
|
|
765
|
+
readonly updated_at: Schema.Int;
|
|
766
|
+
}>>;
|
|
767
|
+
}>;
|
|
768
|
+
export interface ListSchedulesResult extends Schema.Schema.Type<typeof ListSchedulesResult> {
|
|
769
|
+
}
|
|
770
|
+
export declare const ListExecutionsInput: Schema.Struct<{
|
|
771
|
+
readonly root_address_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
772
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
773
|
+
}>;
|
|
774
|
+
readonly status: Schema.optionalKey<Schema.Literals<readonly ["queued", "running", "waiting", "completed", "failed", "cancelled"]>>;
|
|
775
|
+
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
776
|
+
readonly cursor: Schema.optionalKey<Schema.String>;
|
|
777
|
+
}>;
|
|
778
|
+
export interface ListExecutionsInput extends Schema.Schema.Type<typeof ListExecutionsInput> {
|
|
779
|
+
}
|
|
780
|
+
export declare const ConversationKind: Schema.Literals<readonly ["user-agent", "agent-agent"]>;
|
|
781
|
+
export type ConversationKind = typeof ConversationKind.Type;
|
|
782
|
+
export declare const ConversationSummary: Schema.Struct<{
|
|
783
|
+
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
784
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
785
|
+
};
|
|
786
|
+
readonly root_address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
787
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
788
|
+
};
|
|
789
|
+
readonly status: Schema.Literals<readonly ["queued", "running", "waiting", "completed", "failed", "cancelled"]>;
|
|
790
|
+
readonly kind: Schema.Literals<readonly ["user-agent", "agent-agent"]>;
|
|
791
|
+
readonly agent_definition_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.AgentDefinitionId"> & {
|
|
792
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AgentDefinitionId">;
|
|
793
|
+
}>;
|
|
794
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
795
|
+
readonly created_at: Schema.Int;
|
|
796
|
+
readonly updated_at: Schema.Int;
|
|
797
|
+
}>;
|
|
798
|
+
export interface ConversationSummary extends Schema.Schema.Type<typeof ConversationSummary> {
|
|
799
|
+
}
|
|
800
|
+
export declare const ListExecutionsResult: Schema.Struct<{
|
|
801
|
+
readonly records: Schema.$Array<Schema.Struct<{
|
|
802
|
+
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
803
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
804
|
+
};
|
|
805
|
+
readonly root_address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
806
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
807
|
+
};
|
|
808
|
+
readonly status: Schema.Literals<readonly ["queued", "running", "waiting", "completed", "failed", "cancelled"]>;
|
|
809
|
+
readonly kind: Schema.Literals<readonly ["user-agent", "agent-agent"]>;
|
|
810
|
+
readonly agent_definition_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.AgentDefinitionId"> & {
|
|
811
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AgentDefinitionId">;
|
|
812
|
+
}>;
|
|
813
|
+
readonly metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
814
|
+
readonly created_at: Schema.Int;
|
|
815
|
+
readonly updated_at: Schema.Int;
|
|
816
|
+
}>>;
|
|
817
|
+
readonly next_cursor: Schema.optionalKey<Schema.String>;
|
|
818
|
+
}>;
|
|
819
|
+
export interface ListExecutionsResult extends Schema.Schema.Type<typeof ListExecutionsResult> {
|
|
820
|
+
}
|
|
821
|
+
export declare const ReplayExecutionInput: Schema.Struct<{
|
|
822
|
+
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
823
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
824
|
+
};
|
|
825
|
+
readonly after_cursor: Schema.optionalKey<Schema.String>;
|
|
826
|
+
readonly limit: Schema.optionalKey<Schema.Int>;
|
|
827
|
+
}>;
|
|
828
|
+
export interface ReplayExecutionInput extends Schema.Schema.Type<typeof ReplayExecutionInput> {
|
|
829
|
+
}
|
|
830
|
+
export declare const ReplayExecutionResult: Schema.Struct<{
|
|
831
|
+
readonly events: Schema.$Array<Schema.Struct<{
|
|
832
|
+
readonly id: Schema.brand<Schema.String, "Relay.EventId"> & {
|
|
833
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EventId">;
|
|
834
|
+
};
|
|
835
|
+
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
836
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
837
|
+
};
|
|
838
|
+
readonly child_execution_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.ChildExecutionId"> & {
|
|
839
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildExecutionId">;
|
|
840
|
+
}>;
|
|
841
|
+
readonly type: Schema.Literals<readonly ["execution.accepted", "execution.started", "execution.completed", "execution.failed", "execution.cancelled", "model.input.prepared", "model.output.delta", "model.output.completed", "tool.call.requested", "tool.result.received", "tool.approval.requested", "tool.approval.resolved", "envelope.accepted", "envelope.routed", "envelope.ready", "delivery.attempt", "wait.created", "wait.woken", "wait.timed_out", "wait.cancelled", "child_run.spawned", "child_run.event", "workspace.lease.planned", "workspace.lease.acquired", "workspace.suspended", "workspace.resumed", "workspace.snapshot.created", "workspace.lease.released", "workspace.lease.failed"]>;
|
|
842
|
+
readonly sequence: Schema.Int;
|
|
843
|
+
readonly cursor: Schema.String;
|
|
844
|
+
readonly content: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
845
|
+
readonly type: Schema.Literal<"text">;
|
|
846
|
+
readonly text: Schema.String;
|
|
847
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
848
|
+
}>, Schema.Struct<{
|
|
849
|
+
readonly type: Schema.Literal<"structured">;
|
|
850
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
851
|
+
readonly schema_ref: Schema.optionalKey<Schema.String>;
|
|
852
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
853
|
+
}>, Schema.Struct<{
|
|
854
|
+
readonly type: Schema.Literal<"blob-reference">;
|
|
855
|
+
readonly uri: Schema.String;
|
|
856
|
+
readonly media_type: Schema.String;
|
|
857
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
858
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
859
|
+
}>, Schema.Struct<{
|
|
860
|
+
readonly type: Schema.Literal<"artifact-reference">;
|
|
861
|
+
readonly artifact_id: Schema.String;
|
|
862
|
+
readonly media_type: Schema.optionalKey<Schema.String>;
|
|
863
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
864
|
+
}>, Schema.Struct<{
|
|
865
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
866
|
+
readonly call: Schema.Struct<{
|
|
867
|
+
readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
868
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
869
|
+
};
|
|
870
|
+
readonly name: Schema.String;
|
|
871
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
872
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
873
|
+
}>;
|
|
874
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
875
|
+
}>, Schema.Struct<{
|
|
876
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
877
|
+
readonly result: Schema.Struct<{
|
|
878
|
+
readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
879
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
880
|
+
};
|
|
881
|
+
readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
882
|
+
readonly error: Schema.optionalKey<Schema.String>;
|
|
883
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
884
|
+
}>;
|
|
885
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
886
|
+
}>]>>>;
|
|
887
|
+
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
888
|
+
readonly created_at: Schema.Int;
|
|
889
|
+
}>>;
|
|
890
|
+
}>;
|
|
891
|
+
export interface ReplayExecutionResult extends Schema.Schema.Type<typeof ReplayExecutionResult> {
|
|
892
|
+
}
|
|
893
|
+
export declare const RunnerSummary: Schema.Struct<{
|
|
894
|
+
readonly address: Schema.String;
|
|
895
|
+
readonly healthy: Schema.Boolean;
|
|
896
|
+
readonly last_heartbeat: Schema.Int;
|
|
897
|
+
readonly owned_shards: Schema.Int;
|
|
898
|
+
}>;
|
|
899
|
+
export interface RunnerSummary extends Schema.Schema.Type<typeof RunnerSummary> {
|
|
900
|
+
}
|
|
901
|
+
export declare const ListRunnersResult: Schema.Struct<{
|
|
902
|
+
readonly runners: Schema.$Array<Schema.Struct<{
|
|
903
|
+
readonly address: Schema.String;
|
|
904
|
+
readonly healthy: Schema.Boolean;
|
|
905
|
+
readonly last_heartbeat: Schema.Int;
|
|
906
|
+
readonly owned_shards: Schema.Int;
|
|
907
|
+
}>>;
|
|
908
|
+
readonly total_shards: Schema.Int;
|
|
909
|
+
}>;
|
|
910
|
+
export interface ListRunnersResult extends Schema.Schema.Type<typeof ListRunnersResult> {
|
|
911
|
+
}
|
|
912
|
+
export declare const RouteExecutionResult: Schema.Struct<{
|
|
913
|
+
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
914
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
915
|
+
};
|
|
916
|
+
readonly shard: Schema.String;
|
|
917
|
+
readonly runner_address: Schema.NullOr<Schema.String>;
|
|
918
|
+
readonly owned: Schema.Boolean;
|
|
919
|
+
}>;
|
|
920
|
+
export interface RouteExecutionResult extends Schema.Schema.Type<typeof RouteExecutionResult> {
|
|
921
|
+
}
|