@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,167 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
export declare const WaitMode: Schema.Literals<readonly ["reply", "event", "until", "child"]>;
|
|
3
|
+
export type WaitMode = typeof WaitMode.Type;
|
|
4
|
+
export declare const Wait: Schema.Struct<{
|
|
5
|
+
readonly mode: Schema.Literals<readonly ["reply", "event", "until", "child"]>;
|
|
6
|
+
readonly timeout: Schema.optionalKey<Schema.String>;
|
|
7
|
+
readonly correlation_key: Schema.optionalKey<Schema.String>;
|
|
8
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
9
|
+
}>;
|
|
10
|
+
export interface Wait extends Schema.Schema.Type<typeof Wait> {
|
|
11
|
+
}
|
|
12
|
+
export declare const Envelope: Schema.Struct<{
|
|
13
|
+
readonly id: Schema.brand<Schema.String, "Relay.EnvelopeId"> & {
|
|
14
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EnvelopeId">;
|
|
15
|
+
};
|
|
16
|
+
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
17
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
18
|
+
};
|
|
19
|
+
readonly from: Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
20
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
21
|
+
};
|
|
22
|
+
readonly to: Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
23
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
24
|
+
};
|
|
25
|
+
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
26
|
+
readonly type: Schema.Literal<"text">;
|
|
27
|
+
readonly text: 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<"structured">;
|
|
31
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
32
|
+
readonly schema_ref: Schema.optionalKey<Schema.String>;
|
|
33
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
34
|
+
}>, Schema.Struct<{
|
|
35
|
+
readonly type: Schema.Literal<"blob-reference">;
|
|
36
|
+
readonly uri: Schema.String;
|
|
37
|
+
readonly media_type: Schema.String;
|
|
38
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
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<"artifact-reference">;
|
|
42
|
+
readonly artifact_id: Schema.String;
|
|
43
|
+
readonly media_type: Schema.optionalKey<Schema.String>;
|
|
44
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
45
|
+
}>, Schema.Struct<{
|
|
46
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
47
|
+
readonly call: Schema.Struct<{
|
|
48
|
+
readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
49
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
50
|
+
};
|
|
51
|
+
readonly name: Schema.String;
|
|
52
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
53
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
54
|
+
}>;
|
|
55
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
56
|
+
}>, Schema.Struct<{
|
|
57
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
58
|
+
readonly result: Schema.Struct<{
|
|
59
|
+
readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
60
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
61
|
+
};
|
|
62
|
+
readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
63
|
+
readonly error: Schema.optionalKey<Schema.String>;
|
|
64
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
65
|
+
}>;
|
|
66
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
67
|
+
}>]>>;
|
|
68
|
+
readonly wait: Schema.optionalKey<Schema.Struct<{
|
|
69
|
+
readonly mode: Schema.Literals<readonly ["reply", "event", "until", "child"]>;
|
|
70
|
+
readonly timeout: Schema.optionalKey<Schema.String>;
|
|
71
|
+
readonly correlation_key: Schema.optionalKey<Schema.String>;
|
|
72
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
73
|
+
}>>;
|
|
74
|
+
readonly correlation_key: Schema.optionalKey<Schema.String>;
|
|
75
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
76
|
+
readonly created_at: Schema.Int;
|
|
77
|
+
}>;
|
|
78
|
+
export interface Envelope extends Schema.Schema.Type<typeof Envelope> {
|
|
79
|
+
}
|
|
80
|
+
export declare const SendInput: Schema.Struct<{
|
|
81
|
+
readonly from: Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
82
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
83
|
+
};
|
|
84
|
+
readonly to: Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
85
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
86
|
+
};
|
|
87
|
+
readonly content: Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
88
|
+
readonly type: Schema.Literal<"text">;
|
|
89
|
+
readonly text: Schema.String;
|
|
90
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
91
|
+
}>, Schema.Struct<{
|
|
92
|
+
readonly type: Schema.Literal<"structured">;
|
|
93
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
94
|
+
readonly schema_ref: Schema.optionalKey<Schema.String>;
|
|
95
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
96
|
+
}>, Schema.Struct<{
|
|
97
|
+
readonly type: Schema.Literal<"blob-reference">;
|
|
98
|
+
readonly uri: Schema.String;
|
|
99
|
+
readonly media_type: Schema.String;
|
|
100
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
101
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
102
|
+
}>, Schema.Struct<{
|
|
103
|
+
readonly type: Schema.Literal<"artifact-reference">;
|
|
104
|
+
readonly artifact_id: Schema.String;
|
|
105
|
+
readonly media_type: Schema.optionalKey<Schema.String>;
|
|
106
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
107
|
+
}>, Schema.Struct<{
|
|
108
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
109
|
+
readonly call: Schema.Struct<{
|
|
110
|
+
readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
111
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
112
|
+
};
|
|
113
|
+
readonly name: Schema.String;
|
|
114
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
115
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
116
|
+
}>;
|
|
117
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
118
|
+
}>, Schema.Struct<{
|
|
119
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
120
|
+
readonly result: Schema.Struct<{
|
|
121
|
+
readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
122
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
123
|
+
};
|
|
124
|
+
readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
125
|
+
readonly error: Schema.optionalKey<Schema.String>;
|
|
126
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
127
|
+
}>;
|
|
128
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
129
|
+
}>]>>;
|
|
130
|
+
readonly wait: Schema.optionalKey<Schema.Struct<{
|
|
131
|
+
readonly mode: Schema.Literals<readonly ["reply", "event", "until", "child"]>;
|
|
132
|
+
readonly timeout: Schema.optionalKey<Schema.String>;
|
|
133
|
+
readonly correlation_key: Schema.optionalKey<Schema.String>;
|
|
134
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
135
|
+
}>>;
|
|
136
|
+
readonly correlation_key: Schema.optionalKey<Schema.String>;
|
|
137
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
138
|
+
}>;
|
|
139
|
+
export interface SendInput extends Schema.Schema.Type<typeof SendInput> {
|
|
140
|
+
}
|
|
141
|
+
export declare const EnvelopeAccepted: Schema.Struct<{
|
|
142
|
+
readonly envelope_id: Schema.brand<Schema.String, "Relay.EnvelopeId"> & {
|
|
143
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EnvelopeId">;
|
|
144
|
+
};
|
|
145
|
+
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
146
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
147
|
+
};
|
|
148
|
+
readonly wait_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WaitId"> & {
|
|
149
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
|
|
150
|
+
}>;
|
|
151
|
+
}>;
|
|
152
|
+
export interface EnvelopeAccepted extends Schema.Schema.Type<typeof EnvelopeAccepted> {
|
|
153
|
+
}
|
|
154
|
+
export declare const EnvelopeReady: Schema.Struct<{
|
|
155
|
+
readonly id: Schema.brand<Schema.String, "Relay.EnvelopeReadyId"> & {
|
|
156
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EnvelopeReadyId">;
|
|
157
|
+
};
|
|
158
|
+
readonly envelope_id: Schema.brand<Schema.String, "Relay.EnvelopeId"> & {
|
|
159
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EnvelopeId">;
|
|
160
|
+
};
|
|
161
|
+
readonly route_key: Schema.String;
|
|
162
|
+
readonly available_at: Schema.Int;
|
|
163
|
+
readonly attempt: Schema.Int;
|
|
164
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
165
|
+
}>;
|
|
166
|
+
export interface EnvelopeReady extends Schema.Schema.Type<typeof EnvelopeReady> {
|
|
167
|
+
}
|
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
export declare const ExecutionStatus: Schema.Literals<readonly ["queued", "running", "waiting", "completed", "failed", "cancelled"]>;
|
|
3
|
+
export type ExecutionStatus = typeof ExecutionStatus.Type;
|
|
4
|
+
export declare const Execution: Schema.Struct<{
|
|
5
|
+
readonly id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
6
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
7
|
+
};
|
|
8
|
+
readonly root_address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
9
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
10
|
+
};
|
|
11
|
+
readonly status: Schema.Literals<readonly ["queued", "running", "waiting", "completed", "failed", "cancelled"]>;
|
|
12
|
+
readonly agent_definition_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.AgentDefinitionId"> & {
|
|
13
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AgentDefinitionId">;
|
|
14
|
+
}>;
|
|
15
|
+
readonly agent_definition_revision: Schema.optionalKey<Schema.Int>;
|
|
16
|
+
readonly agent_definition_snapshot: Schema.optionalKey<Schema.Struct<{
|
|
17
|
+
readonly name: Schema.String;
|
|
18
|
+
readonly instructions: Schema.optionalKey<Schema.String>;
|
|
19
|
+
readonly model: Schema.Struct<{
|
|
20
|
+
readonly provider: Schema.String;
|
|
21
|
+
readonly model: Schema.String;
|
|
22
|
+
readonly registration_key: Schema.optionalKey<Schema.String>;
|
|
23
|
+
readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
24
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
25
|
+
}>;
|
|
26
|
+
readonly tool_names: Schema.$Array<Schema.String>;
|
|
27
|
+
readonly permissions: Schema.$Array<Schema.Struct<{
|
|
28
|
+
readonly name: Schema.String;
|
|
29
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
30
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
31
|
+
}>>;
|
|
32
|
+
readonly child_run_presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
33
|
+
readonly instructions: Schema.optionalKey<Schema.String>;
|
|
34
|
+
readonly model: Schema.optionalKey<Schema.Struct<{
|
|
35
|
+
readonly provider: Schema.String;
|
|
36
|
+
readonly model: Schema.String;
|
|
37
|
+
readonly registration_key: Schema.optionalKey<Schema.String>;
|
|
38
|
+
readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
39
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
40
|
+
}>>;
|
|
41
|
+
readonly tool_names: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
42
|
+
readonly permissions: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
43
|
+
readonly workspace_policy: Schema.optionalKey<Schema.Struct<{
|
|
44
|
+
readonly mode: Schema.Literals<readonly ["share", "fork"]>;
|
|
45
|
+
readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["fail", "fresh"]>>;
|
|
46
|
+
}>>;
|
|
47
|
+
readonly output_schema_ref: Schema.optionalKey<Schema.String>;
|
|
48
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
49
|
+
}>>>;
|
|
50
|
+
readonly output_schema_ref: Schema.optionalKey<Schema.String>;
|
|
51
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
52
|
+
}>>;
|
|
53
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
54
|
+
readonly created_at: Schema.Int;
|
|
55
|
+
readonly updated_at: Schema.Int;
|
|
56
|
+
}>;
|
|
57
|
+
export interface Execution extends Schema.Schema.Type<typeof Execution> {
|
|
58
|
+
}
|
|
59
|
+
export declare const ExecutionEventSequence: Schema.Int;
|
|
60
|
+
export type ExecutionEventSequence = typeof ExecutionEventSequence.Type;
|
|
61
|
+
export declare const ChildRunContext: Schema.Struct<{
|
|
62
|
+
readonly instructions: Schema.optionalKey<Schema.String>;
|
|
63
|
+
readonly model: Schema.optionalKey<Schema.Struct<{
|
|
64
|
+
readonly provider: Schema.String;
|
|
65
|
+
readonly model: Schema.String;
|
|
66
|
+
readonly registration_key: Schema.optionalKey<Schema.String>;
|
|
67
|
+
readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
68
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
69
|
+
}>>;
|
|
70
|
+
readonly tool_names: Schema.$Array<Schema.String>;
|
|
71
|
+
readonly permissions: Schema.$Array<Schema.String>;
|
|
72
|
+
readonly output_schema_ref: Schema.optionalKey<Schema.String>;
|
|
73
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
74
|
+
}>;
|
|
75
|
+
export interface ChildRunContext extends Schema.Schema.Type<typeof ChildRunContext> {
|
|
76
|
+
}
|
|
77
|
+
export declare const ChildRunOverride: Schema.Struct<{
|
|
78
|
+
readonly instructions: Schema.optionalKey<Schema.String>;
|
|
79
|
+
readonly model: Schema.optionalKey<Schema.Struct<{
|
|
80
|
+
readonly provider: Schema.String;
|
|
81
|
+
readonly model: Schema.String;
|
|
82
|
+
readonly registration_key: Schema.optionalKey<Schema.String>;
|
|
83
|
+
readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
84
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
85
|
+
}>>;
|
|
86
|
+
readonly tool_names: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
87
|
+
readonly permissions: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
88
|
+
readonly workspace_policy: Schema.optionalKey<Schema.Struct<{
|
|
89
|
+
readonly mode: Schema.Literals<readonly ["share", "fork"]>;
|
|
90
|
+
readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["fail", "fresh"]>>;
|
|
91
|
+
}>>;
|
|
92
|
+
readonly output_schema_ref: Schema.optionalKey<Schema.String>;
|
|
93
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
94
|
+
}>;
|
|
95
|
+
export interface ChildRunOverride extends Schema.Schema.Type<typeof ChildRunOverride> {
|
|
96
|
+
}
|
|
97
|
+
export declare const ChildRunPreset: Schema.Struct<{
|
|
98
|
+
readonly instructions: Schema.optionalKey<Schema.String>;
|
|
99
|
+
readonly model: Schema.optionalKey<Schema.Struct<{
|
|
100
|
+
readonly provider: Schema.String;
|
|
101
|
+
readonly model: Schema.String;
|
|
102
|
+
readonly registration_key: Schema.optionalKey<Schema.String>;
|
|
103
|
+
readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
104
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
105
|
+
}>>;
|
|
106
|
+
readonly tool_names: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
107
|
+
readonly permissions: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
108
|
+
readonly workspace_policy: Schema.optionalKey<Schema.Struct<{
|
|
109
|
+
readonly mode: Schema.Literals<readonly ["share", "fork"]>;
|
|
110
|
+
readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["fail", "fresh"]>>;
|
|
111
|
+
}>>;
|
|
112
|
+
readonly output_schema_ref: Schema.optionalKey<Schema.String>;
|
|
113
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
114
|
+
}>;
|
|
115
|
+
export interface ChildRunPreset extends Schema.Schema.Type<typeof ChildRunPreset> {
|
|
116
|
+
}
|
|
117
|
+
export declare const SpawnChildRunInput: Schema.Struct<{
|
|
118
|
+
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
119
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
120
|
+
};
|
|
121
|
+
readonly child_execution_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.ChildExecutionId"> & {
|
|
122
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildExecutionId">;
|
|
123
|
+
}>;
|
|
124
|
+
readonly address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
125
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
126
|
+
};
|
|
127
|
+
readonly parent_context: Schema.Struct<{
|
|
128
|
+
readonly instructions: Schema.optionalKey<Schema.String>;
|
|
129
|
+
readonly model: Schema.optionalKey<Schema.Struct<{
|
|
130
|
+
readonly provider: Schema.String;
|
|
131
|
+
readonly model: Schema.String;
|
|
132
|
+
readonly registration_key: Schema.optionalKey<Schema.String>;
|
|
133
|
+
readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
134
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
135
|
+
}>>;
|
|
136
|
+
readonly tool_names: Schema.$Array<Schema.String>;
|
|
137
|
+
readonly permissions: Schema.$Array<Schema.String>;
|
|
138
|
+
readonly output_schema_ref: Schema.optionalKey<Schema.String>;
|
|
139
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
140
|
+
}>;
|
|
141
|
+
readonly presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
|
|
142
|
+
readonly instructions: Schema.optionalKey<Schema.String>;
|
|
143
|
+
readonly model: Schema.optionalKey<Schema.Struct<{
|
|
144
|
+
readonly provider: Schema.String;
|
|
145
|
+
readonly model: Schema.String;
|
|
146
|
+
readonly registration_key: Schema.optionalKey<Schema.String>;
|
|
147
|
+
readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
148
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
149
|
+
}>>;
|
|
150
|
+
readonly tool_names: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
151
|
+
readonly permissions: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
152
|
+
readonly workspace_policy: Schema.optionalKey<Schema.Struct<{
|
|
153
|
+
readonly mode: Schema.Literals<readonly ["share", "fork"]>;
|
|
154
|
+
readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["fail", "fresh"]>>;
|
|
155
|
+
}>>;
|
|
156
|
+
readonly output_schema_ref: Schema.optionalKey<Schema.String>;
|
|
157
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
158
|
+
}>>>;
|
|
159
|
+
readonly preset_name: Schema.optionalKey<Schema.String>;
|
|
160
|
+
readonly instructions: Schema.optionalKey<Schema.String>;
|
|
161
|
+
readonly model: Schema.optionalKey<Schema.Struct<{
|
|
162
|
+
readonly provider: Schema.String;
|
|
163
|
+
readonly model: Schema.String;
|
|
164
|
+
readonly registration_key: Schema.optionalKey<Schema.String>;
|
|
165
|
+
readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
166
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
167
|
+
}>>;
|
|
168
|
+
readonly tool_names: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
169
|
+
readonly permissions: Schema.optionalKey<Schema.$Array<Schema.String>>;
|
|
170
|
+
readonly workspace_policy: Schema.optionalKey<Schema.Struct<{
|
|
171
|
+
readonly mode: Schema.Literals<readonly ["share", "fork"]>;
|
|
172
|
+
readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["fail", "fresh"]>>;
|
|
173
|
+
}>>;
|
|
174
|
+
readonly output_schema_ref: Schema.optionalKey<Schema.String>;
|
|
175
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
176
|
+
readonly input: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
177
|
+
readonly type: Schema.Literal<"text">;
|
|
178
|
+
readonly text: Schema.String;
|
|
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<"structured">;
|
|
182
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
183
|
+
readonly schema_ref: Schema.optionalKey<Schema.String>;
|
|
184
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
185
|
+
}>, Schema.Struct<{
|
|
186
|
+
readonly type: Schema.Literal<"blob-reference">;
|
|
187
|
+
readonly uri: Schema.String;
|
|
188
|
+
readonly media_type: Schema.String;
|
|
189
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
190
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
191
|
+
}>, Schema.Struct<{
|
|
192
|
+
readonly type: Schema.Literal<"artifact-reference">;
|
|
193
|
+
readonly artifact_id: Schema.String;
|
|
194
|
+
readonly media_type: Schema.optionalKey<Schema.String>;
|
|
195
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
196
|
+
}>, Schema.Struct<{
|
|
197
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
198
|
+
readonly call: Schema.Struct<{
|
|
199
|
+
readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
200
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
201
|
+
};
|
|
202
|
+
readonly name: Schema.String;
|
|
203
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
204
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
205
|
+
}>;
|
|
206
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
207
|
+
}>, Schema.Struct<{
|
|
208
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
209
|
+
readonly result: Schema.Struct<{
|
|
210
|
+
readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
211
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
212
|
+
};
|
|
213
|
+
readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
214
|
+
readonly error: Schema.optionalKey<Schema.String>;
|
|
215
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
216
|
+
}>;
|
|
217
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
218
|
+
}>]>>>;
|
|
219
|
+
readonly wait: Schema.optionalKey<Schema.Boolean>;
|
|
220
|
+
readonly event_sequence: Schema.optionalKey<Schema.Int>;
|
|
221
|
+
readonly created_at: Schema.optionalKey<Schema.Int>;
|
|
222
|
+
}>;
|
|
223
|
+
export interface SpawnChildRunInput extends Schema.Schema.Type<typeof SpawnChildRunInput> {
|
|
224
|
+
}
|
|
225
|
+
export declare const ChildRunAccepted: Schema.Struct<{
|
|
226
|
+
readonly child_execution_id: Schema.brand<Schema.String, "Relay.ChildExecutionId"> & {
|
|
227
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildExecutionId">;
|
|
228
|
+
};
|
|
229
|
+
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
230
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
231
|
+
};
|
|
232
|
+
}>;
|
|
233
|
+
export interface ChildRunAccepted extends Schema.Schema.Type<typeof ChildRunAccepted> {
|
|
234
|
+
}
|
|
235
|
+
export declare const ExecutionEventType: 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"]>;
|
|
236
|
+
export type ExecutionEventType = typeof ExecutionEventType.Type;
|
|
237
|
+
export declare const ExecutionEvent: Schema.Struct<{
|
|
238
|
+
readonly id: Schema.brand<Schema.String, "Relay.EventId"> & {
|
|
239
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EventId">;
|
|
240
|
+
};
|
|
241
|
+
readonly execution_id: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
242
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
243
|
+
};
|
|
244
|
+
readonly child_execution_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.ChildExecutionId"> & {
|
|
245
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildExecutionId">;
|
|
246
|
+
}>;
|
|
247
|
+
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"]>;
|
|
248
|
+
readonly sequence: Schema.Int;
|
|
249
|
+
readonly cursor: Schema.String;
|
|
250
|
+
readonly content: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
251
|
+
readonly type: Schema.Literal<"text">;
|
|
252
|
+
readonly text: Schema.String;
|
|
253
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
254
|
+
}>, Schema.Struct<{
|
|
255
|
+
readonly type: Schema.Literal<"structured">;
|
|
256
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
257
|
+
readonly schema_ref: Schema.optionalKey<Schema.String>;
|
|
258
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
259
|
+
}>, Schema.Struct<{
|
|
260
|
+
readonly type: Schema.Literal<"blob-reference">;
|
|
261
|
+
readonly uri: Schema.String;
|
|
262
|
+
readonly media_type: Schema.String;
|
|
263
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
264
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
265
|
+
}>, Schema.Struct<{
|
|
266
|
+
readonly type: Schema.Literal<"artifact-reference">;
|
|
267
|
+
readonly artifact_id: Schema.String;
|
|
268
|
+
readonly media_type: Schema.optionalKey<Schema.String>;
|
|
269
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
270
|
+
}>, Schema.Struct<{
|
|
271
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
272
|
+
readonly call: Schema.Struct<{
|
|
273
|
+
readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
274
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
275
|
+
};
|
|
276
|
+
readonly name: Schema.String;
|
|
277
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
278
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
279
|
+
}>;
|
|
280
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
281
|
+
}>, Schema.Struct<{
|
|
282
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
283
|
+
readonly result: Schema.Struct<{
|
|
284
|
+
readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
285
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
286
|
+
};
|
|
287
|
+
readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
288
|
+
readonly error: Schema.optionalKey<Schema.String>;
|
|
289
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
290
|
+
}>;
|
|
291
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
292
|
+
}>]>>>;
|
|
293
|
+
readonly data: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
294
|
+
readonly created_at: Schema.Int;
|
|
295
|
+
}>;
|
|
296
|
+
export interface ExecutionEvent extends Schema.Schema.Type<typeof ExecutionEvent> {
|
|
297
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
export declare const AddressId: Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
3
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
4
|
+
};
|
|
5
|
+
export type AddressId = typeof AddressId.Type;
|
|
6
|
+
export declare const AddressBookEntryId: Schema.brand<Schema.String, "Relay.AddressBookEntryId"> & {
|
|
7
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressBookEntryId">;
|
|
8
|
+
};
|
|
9
|
+
export type AddressBookEntryId = typeof AddressBookEntryId.Type;
|
|
10
|
+
export declare const AgentDefinitionId: Schema.brand<Schema.String, "Relay.AgentDefinitionId"> & {
|
|
11
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AgentDefinitionId">;
|
|
12
|
+
};
|
|
13
|
+
export type AgentDefinitionId = typeof AgentDefinitionId.Type;
|
|
14
|
+
export declare const EnvelopeId: Schema.brand<Schema.String, "Relay.EnvelopeId"> & {
|
|
15
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EnvelopeId">;
|
|
16
|
+
};
|
|
17
|
+
export type EnvelopeId = typeof EnvelopeId.Type;
|
|
18
|
+
export declare const EnvelopeReadyId: Schema.brand<Schema.String, "Relay.EnvelopeReadyId"> & {
|
|
19
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EnvelopeReadyId">;
|
|
20
|
+
};
|
|
21
|
+
export type EnvelopeReadyId = typeof EnvelopeReadyId.Type;
|
|
22
|
+
export declare const ExecutionId: Schema.brand<Schema.String, "Relay.ExecutionId"> & {
|
|
23
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ExecutionId">;
|
|
24
|
+
};
|
|
25
|
+
export type ExecutionId = typeof ExecutionId.Type;
|
|
26
|
+
export declare const ChildExecutionId: Schema.brand<Schema.String, "Relay.ChildExecutionId"> & {
|
|
27
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ChildExecutionId">;
|
|
28
|
+
};
|
|
29
|
+
export type ChildExecutionId = typeof ChildExecutionId.Type;
|
|
30
|
+
export declare const WorkspaceLeaseId: Schema.brand<Schema.String, "Relay.WorkspaceLeaseId"> & {
|
|
31
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkspaceLeaseId">;
|
|
32
|
+
};
|
|
33
|
+
export type WorkspaceLeaseId = typeof WorkspaceLeaseId.Type;
|
|
34
|
+
export declare const WorkspaceSnapshotId: Schema.brand<Schema.String, "Relay.WorkspaceSnapshotId"> & {
|
|
35
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkspaceSnapshotId">;
|
|
36
|
+
};
|
|
37
|
+
export type WorkspaceSnapshotId = typeof WorkspaceSnapshotId.Type;
|
|
38
|
+
export declare const WorkspaceRef: Schema.brand<Schema.String, "Relay.WorkspaceRef"> & {
|
|
39
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WorkspaceRef">;
|
|
40
|
+
};
|
|
41
|
+
export type WorkspaceRef = typeof WorkspaceRef.Type;
|
|
42
|
+
export declare const SnapshotRef: Schema.brand<Schema.String, "Relay.SnapshotRef"> & {
|
|
43
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.SnapshotRef">;
|
|
44
|
+
};
|
|
45
|
+
export type SnapshotRef = typeof SnapshotRef.Type;
|
|
46
|
+
export declare const ToolCallId: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
47
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
48
|
+
};
|
|
49
|
+
export type ToolCallId = typeof ToolCallId.Type;
|
|
50
|
+
export declare const WaitId: Schema.brand<Schema.String, "Relay.WaitId"> & {
|
|
51
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
|
|
52
|
+
};
|
|
53
|
+
export type WaitId = typeof WaitId.Type;
|
|
54
|
+
export declare const ScheduleId: Schema.brand<Schema.String, "Relay.ScheduleId"> & {
|
|
55
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ScheduleId">;
|
|
56
|
+
};
|
|
57
|
+
export type ScheduleId = typeof ScheduleId.Type;
|
|
58
|
+
export declare const EventId: Schema.brand<Schema.String, "Relay.EventId"> & {
|
|
59
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.EventId">;
|
|
60
|
+
};
|
|
61
|
+
export type EventId = typeof EventId.Type;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * as Address from "./address-schema";
|
|
2
|
+
export * as Agent from "./agent-schema";
|
|
3
|
+
export * as Content from "./content-schema";
|
|
4
|
+
export * as Envelope from "./envelope-schema";
|
|
5
|
+
export * as Execution from "./execution-schema";
|
|
6
|
+
export * as Ids from "./ids-schema";
|
|
7
|
+
export * as Schedule from "./schedule-schema";
|
|
8
|
+
export * as Shared from "./shared-schema";
|
|
9
|
+
export * as Tool from "./tool-schema";
|
|
10
|
+
export * as Workspace from "./workspace-schema";
|
|
11
|
+
export declare const schemaPackage = "./index";
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
export declare const ScheduleKind: Schema.Literals<readonly ["once", "cron"]>;
|
|
3
|
+
export type ScheduleKind = typeof ScheduleKind.Type;
|
|
4
|
+
export declare const ScheduleTargetKind: Schema.Literals<readonly ["start-execution", "wake-wait", "timeout-wait"]>;
|
|
5
|
+
export type ScheduleTargetKind = typeof ScheduleTargetKind.Type;
|
|
6
|
+
export declare const ScheduleState: Schema.Literals<readonly ["active", "claimed", "completed", "cancelled", "failed"]>;
|
|
7
|
+
export type ScheduleState = typeof ScheduleState.Type;
|
|
8
|
+
export declare const ScheduleRecord: Schema.Struct<{
|
|
9
|
+
readonly id: Schema.brand<Schema.String, "Relay.ScheduleId"> & {
|
|
10
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ScheduleId">;
|
|
11
|
+
};
|
|
12
|
+
readonly kind: Schema.Literals<readonly ["once", "cron"]>;
|
|
13
|
+
readonly target_kind: Schema.Literals<readonly ["start-execution", "wake-wait", "timeout-wait"]>;
|
|
14
|
+
readonly address_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.AddressId"> & {
|
|
15
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
|
|
16
|
+
}>;
|
|
17
|
+
readonly wait_id: Schema.optionalKey<Schema.brand<Schema.String, "Relay.WaitId"> & {
|
|
18
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.WaitId">;
|
|
19
|
+
}>;
|
|
20
|
+
readonly cron_expr: Schema.optionalKey<Schema.String>;
|
|
21
|
+
readonly input: Schema.optionalKey<Schema.$Array<Schema.Union<readonly [Schema.Struct<{
|
|
22
|
+
readonly type: Schema.Literal<"text">;
|
|
23
|
+
readonly text: Schema.String;
|
|
24
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
25
|
+
}>, Schema.Struct<{
|
|
26
|
+
readonly type: Schema.Literal<"structured">;
|
|
27
|
+
readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
28
|
+
readonly schema_ref: Schema.optionalKey<Schema.String>;
|
|
29
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
30
|
+
}>, Schema.Struct<{
|
|
31
|
+
readonly type: Schema.Literal<"blob-reference">;
|
|
32
|
+
readonly uri: Schema.String;
|
|
33
|
+
readonly media_type: Schema.String;
|
|
34
|
+
readonly filename: Schema.optionalKey<Schema.String>;
|
|
35
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
36
|
+
}>, Schema.Struct<{
|
|
37
|
+
readonly type: Schema.Literal<"artifact-reference">;
|
|
38
|
+
readonly artifact_id: Schema.String;
|
|
39
|
+
readonly media_type: Schema.optionalKey<Schema.String>;
|
|
40
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
41
|
+
}>, Schema.Struct<{
|
|
42
|
+
readonly type: Schema.Literal<"tool-call">;
|
|
43
|
+
readonly call: Schema.Struct<{
|
|
44
|
+
readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
45
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
46
|
+
};
|
|
47
|
+
readonly name: Schema.String;
|
|
48
|
+
readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
49
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
50
|
+
}>;
|
|
51
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
52
|
+
}>, Schema.Struct<{
|
|
53
|
+
readonly type: Schema.Literal<"tool-result">;
|
|
54
|
+
readonly result: Schema.Struct<{
|
|
55
|
+
readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
|
|
56
|
+
make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
|
|
57
|
+
};
|
|
58
|
+
readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
59
|
+
readonly error: Schema.optionalKey<Schema.String>;
|
|
60
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
61
|
+
}>;
|
|
62
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
63
|
+
}>]>>>;
|
|
64
|
+
readonly state: Schema.Literals<readonly ["active", "claimed", "completed", "cancelled", "failed"]>;
|
|
65
|
+
readonly next_run_at: Schema.Int;
|
|
66
|
+
readonly attempt: Schema.Int;
|
|
67
|
+
readonly last_error: Schema.optionalKey<Schema.String>;
|
|
68
|
+
readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
|
|
69
|
+
readonly created_at: Schema.Int;
|
|
70
|
+
readonly updated_at: Schema.Int;
|
|
71
|
+
}>;
|
|
72
|
+
export interface ScheduleRecord extends Schema.Schema.Type<typeof ScheduleRecord> {
|
|
73
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Schema } from "effect";
|
|
2
|
+
export declare const ProtocolVersion: Schema.Literal<1>;
|
|
3
|
+
export type ProtocolVersion = typeof ProtocolVersion.Type;
|
|
4
|
+
export declare const JsonValue: Schema.Codec<Schema.Json, Schema.Json, never, never>;
|
|
5
|
+
export type JsonValue = typeof JsonValue.Type;
|
|
6
|
+
export declare const Metadata: Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>;
|
|
7
|
+
export type Metadata = typeof Metadata.Type;
|
|
8
|
+
export declare const TimestampMillis: Schema.Int;
|
|
9
|
+
export type TimestampMillis = typeof TimestampMillis.Type;
|
|
10
|
+
export declare const NonEmptyString: Schema.String;
|
|
11
|
+
export type NonEmptyString = typeof NonEmptyString.Type;
|