@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.
Files changed (73) hide show
  1. package/dist/index.js +8449 -0
  2. package/dist/migrations/20260701002839_sour_cerebro/migration.sql +160 -0
  3. package/dist/migrations/20260701002839_sour_cerebro/snapshot.json +1971 -0
  4. package/dist/migrations/20260701041134_acoustic_hulk/migration.sql +30 -0
  5. package/dist/migrations/20260701041134_acoustic_hulk/snapshot.json +2372 -0
  6. package/dist/migrations/20260701160543_condemned_stryfe/migration.sql +2 -0
  7. package/dist/migrations/20260701160543_condemned_stryfe/snapshot.json +2442 -0
  8. package/dist/migrations/20260701220315_heavy_gorgon/migration.sql +5 -0
  9. package/dist/migrations/20260701220315_heavy_gorgon/snapshot.json +2495 -0
  10. package/dist/migrations/20260701225444_polite_lord_hawal/migration.sql +24 -0
  11. package/dist/migrations/20260701225444_polite_lord_hawal/snapshot.json +2821 -0
  12. package/dist/migrations/20260702030128_flaky_misty_knight/migration.sql +1 -0
  13. package/dist/migrations/20260702030128_flaky_misty_knight/snapshot.json +2821 -0
  14. package/dist/types/ai/index.d.ts +2 -0
  15. package/dist/types/ai/language-model/language-model-registration.d.ts +89 -0
  16. package/dist/types/relay/adapter-outbox.d.ts +19 -0
  17. package/dist/types/relay/client.d.ts +102 -0
  18. package/dist/types/relay/database.d.ts +11 -0
  19. package/dist/types/relay/index.d.ts +10 -0
  20. package/dist/types/relay/operation.d.ts +921 -0
  21. package/dist/types/runtime/address/address-book-service.d.ts +74 -0
  22. package/dist/types/runtime/address/address-resolution-service.d.ts +106 -0
  23. package/dist/types/runtime/agent/agent-loop-service.d.ts +53 -0
  24. package/dist/types/runtime/agent/agent-registry-service.d.ts +31 -0
  25. package/dist/types/runtime/agent/prompt-assembler-service.d.ts +102 -0
  26. package/dist/types/runtime/child/child-run-service.d.ts +90 -0
  27. package/dist/types/runtime/child/parent-notifier-service.d.ts +40 -0
  28. package/dist/types/runtime/cluster/execution-entity.d.ts +393 -0
  29. package/dist/types/runtime/content/artifact-store-service.d.ts +73 -0
  30. package/dist/types/runtime/content/blob-store-service.d.ts +87 -0
  31. package/dist/types/runtime/envelope/envelope-service.d.ts +52 -0
  32. package/dist/types/runtime/execution/event-log-service.d.ts +54 -0
  33. package/dist/types/runtime/execution/execution-service.d.ts +62 -0
  34. package/dist/types/runtime/index.d.ts +25 -0
  35. package/dist/types/runtime/model/language-model-service.d.ts +58 -0
  36. package/dist/types/runtime/model/model-call-policy.d.ts +53 -0
  37. package/dist/types/runtime/observability/runtime-metrics.d.ts +9 -0
  38. package/dist/types/runtime/runner/runner-runtime-service.d.ts +132 -0
  39. package/dist/types/runtime/schedule/scheduler-service.d.ts +34 -0
  40. package/dist/types/runtime/tool/tool-runtime-service.d.ts +85 -0
  41. package/dist/types/runtime/wait/wait-service.d.ts +80 -0
  42. package/dist/types/runtime/wait/wait-signal.d.ts +15 -0
  43. package/dist/types/runtime/workflow/execution-workflow.d.ts +335 -0
  44. package/dist/types/runtime/workspace/workspace-planner-service.d.ts +63 -0
  45. package/dist/types/runtime/workspace/workspace-provider-service.d.ts +108 -0
  46. package/dist/types/runtime/workspace/workspace-runtime-service.d.ts +21 -0
  47. package/dist/types/schema/address-schema.d.ts +77 -0
  48. package/dist/types/schema/agent-schema.d.ts +360 -0
  49. package/dist/types/schema/content-schema.d.ts +106 -0
  50. package/dist/types/schema/envelope-schema.d.ts +167 -0
  51. package/dist/types/schema/execution-schema.d.ts +297 -0
  52. package/dist/types/schema/ids-schema.d.ts +61 -0
  53. package/dist/types/schema/index.d.ts +11 -0
  54. package/dist/types/schema/schedule-schema.d.ts +73 -0
  55. package/dist/types/schema/shared-schema.d.ts +11 -0
  56. package/dist/types/schema/tool-schema.d.ts +53 -0
  57. package/dist/types/schema/workspace-schema.d.ts +78 -0
  58. package/dist/types/store-sql/address/address-book-repository.d.ts +48 -0
  59. package/dist/types/store-sql/agent/agent-definition-repository.d.ts +49 -0
  60. package/dist/types/store-sql/chat/agent-chat-repository.d.ts +31 -0
  61. package/dist/types/store-sql/child/child-execution-repository.d.ts +61 -0
  62. package/dist/types/store-sql/cluster/cluster-registry-repository.d.ts +35 -0
  63. package/dist/types/store-sql/database/database-service.d.ts +25 -0
  64. package/dist/types/store-sql/envelope/envelope-repository.d.ts +158 -0
  65. package/dist/types/store-sql/execution/execution-event-repository.d.ts +86 -0
  66. package/dist/types/store-sql/execution/execution-repository.d.ts +80 -0
  67. package/dist/types/store-sql/idempotency/idempotency-repository.d.ts +42 -0
  68. package/dist/types/store-sql/index.d.ts +15 -0
  69. package/dist/types/store-sql/schedule/schedule-repository.d.ts +83 -0
  70. package/dist/types/store-sql/schema/relay-schema.d.ts +2302 -0
  71. package/dist/types/store-sql/tool/tool-call-repository.d.ts +66 -0
  72. package/dist/types/store-sql/workspace/workspace-lease-repository.d.ts +87 -0
  73. package/package.json +44 -0
@@ -0,0 +1,77 @@
1
+ import { Schema } from "effect";
2
+ export declare const RouteKind: Schema.Literals<readonly ["local-agent", "remote-relay", "local-adapter", "unavailable", "deferred-retry"]>;
3
+ export type RouteKind = typeof RouteKind.Type;
4
+ export declare const Route: Schema.Struct<{
5
+ readonly kind: Schema.Literals<readonly ["local-agent", "remote-relay", "local-adapter", "unavailable", "deferred-retry"]>;
6
+ readonly route_key: Schema.String;
7
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
8
+ }>;
9
+ export interface Route extends Schema.Schema.Type<typeof Route> {
10
+ }
11
+ export declare const RouteRecord: Schema.Struct<{
12
+ readonly id: Schema.brand<Schema.String, "Relay.AddressBookEntryId"> & {
13
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressBookEntryId">;
14
+ };
15
+ readonly address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
16
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
17
+ };
18
+ readonly route: Schema.Struct<{
19
+ readonly kind: Schema.Literals<readonly ["local-agent", "remote-relay", "local-adapter", "unavailable", "deferred-retry"]>;
20
+ readonly route_key: Schema.String;
21
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
22
+ }>;
23
+ readonly created_at: Schema.Int;
24
+ readonly updated_at: Schema.Int;
25
+ }>;
26
+ export interface RouteRecord extends Schema.Schema.Type<typeof RouteRecord> {
27
+ }
28
+ export declare const RegisterRoutePayload: Schema.Struct<{
29
+ readonly address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
30
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
31
+ };
32
+ readonly route: Schema.Struct<{
33
+ readonly kind: Schema.Literals<readonly ["local-agent", "remote-relay", "local-adapter", "unavailable", "deferred-retry"]>;
34
+ readonly route_key: Schema.String;
35
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
36
+ }>;
37
+ }>;
38
+ export interface RegisterRoutePayload extends Schema.Schema.Type<typeof RegisterRoutePayload> {
39
+ }
40
+ export declare const RouteRegistered: Schema.Struct<{
41
+ readonly record: Schema.Struct<{
42
+ readonly id: Schema.brand<Schema.String, "Relay.AddressBookEntryId"> & {
43
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressBookEntryId">;
44
+ };
45
+ readonly address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
46
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
47
+ };
48
+ readonly route: Schema.Struct<{
49
+ readonly kind: Schema.Literals<readonly ["local-agent", "remote-relay", "local-adapter", "unavailable", "deferred-retry"]>;
50
+ readonly route_key: Schema.String;
51
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
52
+ }>;
53
+ readonly created_at: Schema.Int;
54
+ readonly updated_at: Schema.Int;
55
+ }>;
56
+ }>;
57
+ export interface RouteRegistered extends Schema.Schema.Type<typeof RouteRegistered> {
58
+ }
59
+ export declare const RouteList: Schema.Struct<{
60
+ readonly records: Schema.$Array<Schema.Struct<{
61
+ readonly id: Schema.brand<Schema.String, "Relay.AddressBookEntryId"> & {
62
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressBookEntryId">;
63
+ };
64
+ readonly address_id: Schema.brand<Schema.String, "Relay.AddressId"> & {
65
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AddressId">;
66
+ };
67
+ readonly route: Schema.Struct<{
68
+ readonly kind: Schema.Literals<readonly ["local-agent", "remote-relay", "local-adapter", "unavailable", "deferred-retry"]>;
69
+ readonly route_key: Schema.String;
70
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
71
+ }>;
72
+ readonly created_at: Schema.Int;
73
+ readonly updated_at: Schema.Int;
74
+ }>>;
75
+ }>;
76
+ export interface RouteList extends Schema.Schema.Type<typeof RouteList> {
77
+ }
@@ -0,0 +1,360 @@
1
+ import { Schema } from "effect";
2
+ export declare const DefinitionRevision: Schema.Int;
3
+ export type DefinitionRevision = typeof DefinitionRevision.Type;
4
+ export declare const ModelSelection: Schema.Struct<{
5
+ readonly provider: Schema.String;
6
+ readonly model: Schema.String;
7
+ readonly registration_key: Schema.optionalKey<Schema.String>;
8
+ readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
9
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
10
+ }>;
11
+ export interface ModelSelection extends Schema.Schema.Type<typeof ModelSelection> {
12
+ }
13
+ export declare const ChildRunWorkspacePolicy: Schema.Struct<{
14
+ readonly mode: Schema.Literals<readonly ["share", "fork"]>;
15
+ readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["fail", "fresh"]>>;
16
+ }>;
17
+ export interface ChildRunWorkspacePolicy extends Schema.Schema.Type<typeof ChildRunWorkspacePolicy> {
18
+ }
19
+ export declare const ChildRunPreset: Schema.Struct<{
20
+ readonly instructions: Schema.optionalKey<Schema.String>;
21
+ readonly model: Schema.optionalKey<Schema.Struct<{
22
+ readonly provider: Schema.String;
23
+ readonly model: Schema.String;
24
+ readonly registration_key: Schema.optionalKey<Schema.String>;
25
+ readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
26
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
27
+ }>>;
28
+ readonly tool_names: Schema.optionalKey<Schema.$Array<Schema.String>>;
29
+ readonly permissions: Schema.optionalKey<Schema.$Array<Schema.String>>;
30
+ readonly workspace_policy: Schema.optionalKey<Schema.Struct<{
31
+ readonly mode: Schema.Literals<readonly ["share", "fork"]>;
32
+ readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["fail", "fresh"]>>;
33
+ }>>;
34
+ readonly output_schema_ref: Schema.optionalKey<Schema.String>;
35
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
36
+ }>;
37
+ export interface ChildRunPreset extends Schema.Schema.Type<typeof ChildRunPreset> {
38
+ }
39
+ export declare const Definition: Schema.Struct<{
40
+ readonly name: Schema.String;
41
+ readonly instructions: Schema.optionalKey<Schema.String>;
42
+ readonly model: Schema.Struct<{
43
+ readonly provider: Schema.String;
44
+ readonly model: Schema.String;
45
+ readonly registration_key: Schema.optionalKey<Schema.String>;
46
+ readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
47
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
48
+ }>;
49
+ readonly tool_names: Schema.$Array<Schema.String>;
50
+ readonly permissions: Schema.$Array<Schema.Struct<{
51
+ readonly name: Schema.String;
52
+ readonly value: 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 child_run_presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
56
+ readonly instructions: Schema.optionalKey<Schema.String>;
57
+ readonly model: Schema.optionalKey<Schema.Struct<{
58
+ readonly provider: Schema.String;
59
+ readonly model: Schema.String;
60
+ readonly registration_key: Schema.optionalKey<Schema.String>;
61
+ readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
62
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
63
+ }>>;
64
+ readonly tool_names: Schema.optionalKey<Schema.$Array<Schema.String>>;
65
+ readonly permissions: Schema.optionalKey<Schema.$Array<Schema.String>>;
66
+ readonly workspace_policy: Schema.optionalKey<Schema.Struct<{
67
+ readonly mode: Schema.Literals<readonly ["share", "fork"]>;
68
+ readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["fail", "fresh"]>>;
69
+ }>>;
70
+ readonly output_schema_ref: Schema.optionalKey<Schema.String>;
71
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
72
+ }>>>;
73
+ readonly output_schema_ref: Schema.optionalKey<Schema.String>;
74
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
75
+ }>;
76
+ export interface Definition extends Schema.Schema.Type<typeof Definition> {
77
+ }
78
+ export declare const DefinitionRecord: Schema.Struct<{
79
+ readonly id: Schema.brand<Schema.String, "Relay.AgentDefinitionId"> & {
80
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AgentDefinitionId">;
81
+ };
82
+ readonly current_revision: Schema.Int;
83
+ readonly definition: Schema.Struct<{
84
+ readonly name: Schema.String;
85
+ readonly instructions: Schema.optionalKey<Schema.String>;
86
+ readonly model: Schema.Struct<{
87
+ readonly provider: Schema.String;
88
+ readonly model: Schema.String;
89
+ readonly registration_key: Schema.optionalKey<Schema.String>;
90
+ readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
91
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
92
+ }>;
93
+ readonly tool_names: Schema.$Array<Schema.String>;
94
+ readonly permissions: Schema.$Array<Schema.Struct<{
95
+ readonly name: Schema.String;
96
+ readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
97
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
98
+ }>>;
99
+ readonly child_run_presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
100
+ readonly instructions: Schema.optionalKey<Schema.String>;
101
+ readonly model: Schema.optionalKey<Schema.Struct<{
102
+ readonly provider: Schema.String;
103
+ readonly model: Schema.String;
104
+ readonly registration_key: Schema.optionalKey<Schema.String>;
105
+ readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
106
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
107
+ }>>;
108
+ readonly tool_names: Schema.optionalKey<Schema.$Array<Schema.String>>;
109
+ readonly permissions: Schema.optionalKey<Schema.$Array<Schema.String>>;
110
+ readonly workspace_policy: Schema.optionalKey<Schema.Struct<{
111
+ readonly mode: Schema.Literals<readonly ["share", "fork"]>;
112
+ readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["fail", "fresh"]>>;
113
+ }>>;
114
+ readonly output_schema_ref: Schema.optionalKey<Schema.String>;
115
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
116
+ }>>>;
117
+ readonly output_schema_ref: Schema.optionalKey<Schema.String>;
118
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
119
+ }>;
120
+ readonly created_at: Schema.Int;
121
+ readonly updated_at: Schema.Int;
122
+ }>;
123
+ export interface DefinitionRecord extends Schema.Schema.Type<typeof DefinitionRecord> {
124
+ }
125
+ export declare const DefinitionRevisionRecord: Schema.Struct<{
126
+ readonly id: Schema.brand<Schema.String, "Relay.AgentDefinitionId"> & {
127
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AgentDefinitionId">;
128
+ };
129
+ readonly revision: Schema.Int;
130
+ readonly definition: Schema.Struct<{
131
+ readonly name: Schema.String;
132
+ readonly instructions: Schema.optionalKey<Schema.String>;
133
+ readonly model: Schema.Struct<{
134
+ readonly provider: Schema.String;
135
+ readonly model: Schema.String;
136
+ readonly registration_key: Schema.optionalKey<Schema.String>;
137
+ readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
138
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
139
+ }>;
140
+ readonly tool_names: Schema.$Array<Schema.String>;
141
+ readonly permissions: Schema.$Array<Schema.Struct<{
142
+ readonly name: Schema.String;
143
+ readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
144
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
145
+ }>>;
146
+ readonly child_run_presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
147
+ readonly instructions: Schema.optionalKey<Schema.String>;
148
+ readonly model: Schema.optionalKey<Schema.Struct<{
149
+ readonly provider: Schema.String;
150
+ readonly model: Schema.String;
151
+ readonly registration_key: Schema.optionalKey<Schema.String>;
152
+ readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
153
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
154
+ }>>;
155
+ readonly tool_names: Schema.optionalKey<Schema.$Array<Schema.String>>;
156
+ readonly permissions: Schema.optionalKey<Schema.$Array<Schema.String>>;
157
+ readonly workspace_policy: Schema.optionalKey<Schema.Struct<{
158
+ readonly mode: Schema.Literals<readonly ["share", "fork"]>;
159
+ readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["fail", "fresh"]>>;
160
+ }>>;
161
+ readonly output_schema_ref: Schema.optionalKey<Schema.String>;
162
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
163
+ }>>>;
164
+ readonly output_schema_ref: Schema.optionalKey<Schema.String>;
165
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
166
+ }>;
167
+ readonly created_at: Schema.Int;
168
+ }>;
169
+ export interface DefinitionRevisionRecord extends Schema.Schema.Type<typeof DefinitionRevisionRecord> {
170
+ }
171
+ export declare const RegisterDefinitionPayload: Schema.Struct<{
172
+ readonly id: Schema.brand<Schema.String, "Relay.AgentDefinitionId"> & {
173
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AgentDefinitionId">;
174
+ };
175
+ readonly definition: Schema.Struct<{
176
+ readonly name: Schema.String;
177
+ readonly instructions: Schema.optionalKey<Schema.String>;
178
+ readonly model: Schema.Struct<{
179
+ readonly provider: Schema.String;
180
+ readonly model: Schema.String;
181
+ readonly registration_key: Schema.optionalKey<Schema.String>;
182
+ readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
183
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
184
+ }>;
185
+ readonly tool_names: Schema.$Array<Schema.String>;
186
+ readonly permissions: Schema.$Array<Schema.Struct<{
187
+ readonly name: Schema.String;
188
+ readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
189
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
190
+ }>>;
191
+ readonly child_run_presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
192
+ readonly instructions: Schema.optionalKey<Schema.String>;
193
+ readonly model: Schema.optionalKey<Schema.Struct<{
194
+ readonly provider: Schema.String;
195
+ readonly model: Schema.String;
196
+ readonly registration_key: Schema.optionalKey<Schema.String>;
197
+ readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
198
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
199
+ }>>;
200
+ readonly tool_names: Schema.optionalKey<Schema.$Array<Schema.String>>;
201
+ readonly permissions: Schema.optionalKey<Schema.$Array<Schema.String>>;
202
+ readonly workspace_policy: Schema.optionalKey<Schema.Struct<{
203
+ readonly mode: Schema.Literals<readonly ["share", "fork"]>;
204
+ readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["fail", "fresh"]>>;
205
+ }>>;
206
+ readonly output_schema_ref: Schema.optionalKey<Schema.String>;
207
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
208
+ }>>>;
209
+ readonly output_schema_ref: Schema.optionalKey<Schema.String>;
210
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
211
+ }>;
212
+ }>;
213
+ export interface RegisterDefinitionPayload extends Schema.Schema.Type<typeof RegisterDefinitionPayload> {
214
+ }
215
+ export declare const DefinitionRegistered: Schema.Struct<{
216
+ readonly record: Schema.Struct<{
217
+ readonly id: Schema.brand<Schema.String, "Relay.AgentDefinitionId"> & {
218
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AgentDefinitionId">;
219
+ };
220
+ readonly current_revision: Schema.Int;
221
+ readonly definition: Schema.Struct<{
222
+ readonly name: Schema.String;
223
+ readonly instructions: Schema.optionalKey<Schema.String>;
224
+ readonly model: Schema.Struct<{
225
+ readonly provider: Schema.String;
226
+ readonly model: Schema.String;
227
+ readonly registration_key: Schema.optionalKey<Schema.String>;
228
+ readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
229
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
230
+ }>;
231
+ readonly tool_names: Schema.$Array<Schema.String>;
232
+ readonly permissions: Schema.$Array<Schema.Struct<{
233
+ readonly name: Schema.String;
234
+ readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
235
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
236
+ }>>;
237
+ readonly child_run_presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
238
+ readonly instructions: Schema.optionalKey<Schema.String>;
239
+ readonly model: Schema.optionalKey<Schema.Struct<{
240
+ readonly provider: Schema.String;
241
+ readonly model: Schema.String;
242
+ readonly registration_key: Schema.optionalKey<Schema.String>;
243
+ readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
244
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
245
+ }>>;
246
+ readonly tool_names: Schema.optionalKey<Schema.$Array<Schema.String>>;
247
+ readonly permissions: Schema.optionalKey<Schema.$Array<Schema.String>>;
248
+ readonly workspace_policy: Schema.optionalKey<Schema.Struct<{
249
+ readonly mode: Schema.Literals<readonly ["share", "fork"]>;
250
+ readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["fail", "fresh"]>>;
251
+ }>>;
252
+ readonly output_schema_ref: Schema.optionalKey<Schema.String>;
253
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
254
+ }>>>;
255
+ readonly output_schema_ref: Schema.optionalKey<Schema.String>;
256
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
257
+ }>;
258
+ readonly created_at: Schema.Int;
259
+ readonly updated_at: Schema.Int;
260
+ }>;
261
+ }>;
262
+ export interface DefinitionRegistered extends Schema.Schema.Type<typeof DefinitionRegistered> {
263
+ }
264
+ export declare const DefinitionList: Schema.Struct<{
265
+ readonly records: Schema.$Array<Schema.Struct<{
266
+ readonly id: Schema.brand<Schema.String, "Relay.AgentDefinitionId"> & {
267
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AgentDefinitionId">;
268
+ };
269
+ readonly current_revision: Schema.Int;
270
+ readonly definition: Schema.Struct<{
271
+ readonly name: Schema.String;
272
+ readonly instructions: Schema.optionalKey<Schema.String>;
273
+ readonly model: Schema.Struct<{
274
+ readonly provider: Schema.String;
275
+ readonly model: Schema.String;
276
+ readonly registration_key: Schema.optionalKey<Schema.String>;
277
+ readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, 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 tool_names: Schema.$Array<Schema.String>;
281
+ readonly permissions: Schema.$Array<Schema.Struct<{
282
+ readonly name: Schema.String;
283
+ readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
284
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
285
+ }>>;
286
+ readonly child_run_presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
287
+ readonly instructions: Schema.optionalKey<Schema.String>;
288
+ readonly model: Schema.optionalKey<Schema.Struct<{
289
+ readonly provider: Schema.String;
290
+ readonly model: Schema.String;
291
+ readonly registration_key: Schema.optionalKey<Schema.String>;
292
+ readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
293
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
294
+ }>>;
295
+ readonly tool_names: Schema.optionalKey<Schema.$Array<Schema.String>>;
296
+ readonly permissions: Schema.optionalKey<Schema.$Array<Schema.String>>;
297
+ readonly workspace_policy: Schema.optionalKey<Schema.Struct<{
298
+ readonly mode: Schema.Literals<readonly ["share", "fork"]>;
299
+ readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["fail", "fresh"]>>;
300
+ }>>;
301
+ readonly output_schema_ref: Schema.optionalKey<Schema.String>;
302
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
303
+ }>>>;
304
+ readonly output_schema_ref: Schema.optionalKey<Schema.String>;
305
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
306
+ }>;
307
+ readonly created_at: Schema.Int;
308
+ readonly updated_at: Schema.Int;
309
+ }>>;
310
+ }>;
311
+ export interface DefinitionList extends Schema.Schema.Type<typeof DefinitionList> {
312
+ }
313
+ export declare const DefinitionRevisionList: Schema.Struct<{
314
+ readonly records: Schema.$Array<Schema.Struct<{
315
+ readonly id: Schema.brand<Schema.String, "Relay.AgentDefinitionId"> & {
316
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.AgentDefinitionId">;
317
+ };
318
+ readonly revision: Schema.Int;
319
+ readonly definition: Schema.Struct<{
320
+ readonly name: Schema.String;
321
+ readonly instructions: Schema.optionalKey<Schema.String>;
322
+ readonly model: Schema.Struct<{
323
+ readonly provider: Schema.String;
324
+ readonly model: Schema.String;
325
+ readonly registration_key: Schema.optionalKey<Schema.String>;
326
+ readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
327
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
328
+ }>;
329
+ readonly tool_names: Schema.$Array<Schema.String>;
330
+ readonly permissions: Schema.$Array<Schema.Struct<{
331
+ readonly name: Schema.String;
332
+ readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
333
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
334
+ }>>;
335
+ readonly child_run_presets: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
336
+ readonly instructions: Schema.optionalKey<Schema.String>;
337
+ readonly model: Schema.optionalKey<Schema.Struct<{
338
+ readonly provider: Schema.String;
339
+ readonly model: Schema.String;
340
+ readonly registration_key: Schema.optionalKey<Schema.String>;
341
+ readonly request_options: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
342
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
343
+ }>>;
344
+ readonly tool_names: Schema.optionalKey<Schema.$Array<Schema.String>>;
345
+ readonly permissions: Schema.optionalKey<Schema.$Array<Schema.String>>;
346
+ readonly workspace_policy: Schema.optionalKey<Schema.Struct<{
347
+ readonly mode: Schema.Literals<readonly ["share", "fork"]>;
348
+ readonly fallback: Schema.optionalKey<Schema.Literals<readonly ["fail", "fresh"]>>;
349
+ }>>;
350
+ readonly output_schema_ref: Schema.optionalKey<Schema.String>;
351
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
352
+ }>>>;
353
+ readonly output_schema_ref: Schema.optionalKey<Schema.String>;
354
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
355
+ }>;
356
+ readonly created_at: Schema.Int;
357
+ }>>;
358
+ }>;
359
+ export interface DefinitionRevisionList extends Schema.Schema.Type<typeof DefinitionRevisionList> {
360
+ }
@@ -0,0 +1,106 @@
1
+ import { Schema } from "effect";
2
+ export declare const TextPart: Schema.Struct<{
3
+ readonly type: Schema.Literal<"text">;
4
+ readonly text: Schema.String;
5
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
6
+ }>;
7
+ export interface TextPart extends Schema.Schema.Type<typeof TextPart> {
8
+ }
9
+ export declare const StructuredPart: Schema.Struct<{
10
+ readonly type: Schema.Literal<"structured">;
11
+ readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
12
+ readonly schema_ref: Schema.optionalKey<Schema.String>;
13
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
14
+ }>;
15
+ export interface StructuredPart extends Schema.Schema.Type<typeof StructuredPart> {
16
+ }
17
+ export declare const BlobReferencePart: Schema.Struct<{
18
+ readonly type: Schema.Literal<"blob-reference">;
19
+ readonly uri: Schema.String;
20
+ readonly media_type: Schema.String;
21
+ readonly filename: Schema.optionalKey<Schema.String>;
22
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
23
+ }>;
24
+ export interface BlobReferencePart extends Schema.Schema.Type<typeof BlobReferencePart> {
25
+ }
26
+ export declare const ArtifactReferencePart: Schema.Struct<{
27
+ readonly type: Schema.Literal<"artifact-reference">;
28
+ readonly artifact_id: Schema.String;
29
+ readonly media_type: Schema.optionalKey<Schema.String>;
30
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
31
+ }>;
32
+ export interface ArtifactReferencePart extends Schema.Schema.Type<typeof ArtifactReferencePart> {
33
+ }
34
+ export declare const ToolCallPart: Schema.Struct<{
35
+ readonly type: Schema.Literal<"tool-call">;
36
+ readonly call: Schema.Struct<{
37
+ readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
38
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
39
+ };
40
+ readonly name: Schema.String;
41
+ readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
42
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
43
+ }>;
44
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
45
+ }>;
46
+ export interface ToolCallPart extends Schema.Schema.Type<typeof ToolCallPart> {
47
+ }
48
+ export declare const ToolResultPart: Schema.Struct<{
49
+ readonly type: Schema.Literal<"tool-result">;
50
+ readonly result: Schema.Struct<{
51
+ readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
52
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
53
+ };
54
+ readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
55
+ readonly error: Schema.optionalKey<Schema.String>;
56
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
57
+ }>;
58
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
59
+ }>;
60
+ export interface ToolResultPart extends Schema.Schema.Type<typeof ToolResultPart> {
61
+ }
62
+ export type Part = TextPart | StructuredPart | BlobReferencePart | ArtifactReferencePart | ToolCallPart | ToolResultPart;
63
+ export declare const Part: Schema.Union<readonly [Schema.Struct<{
64
+ readonly type: Schema.Literal<"text">;
65
+ readonly text: Schema.String;
66
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
67
+ }>, Schema.Struct<{
68
+ readonly type: Schema.Literal<"structured">;
69
+ readonly value: Schema.Codec<Schema.Json, Schema.Json, never, never>;
70
+ readonly schema_ref: Schema.optionalKey<Schema.String>;
71
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
72
+ }>, Schema.Struct<{
73
+ readonly type: Schema.Literal<"blob-reference">;
74
+ readonly uri: Schema.String;
75
+ readonly media_type: Schema.String;
76
+ readonly filename: Schema.optionalKey<Schema.String>;
77
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
78
+ }>, Schema.Struct<{
79
+ readonly type: Schema.Literal<"artifact-reference">;
80
+ readonly artifact_id: Schema.String;
81
+ readonly media_type: Schema.optionalKey<Schema.String>;
82
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
83
+ }>, Schema.Struct<{
84
+ readonly type: Schema.Literal<"tool-call">;
85
+ readonly call: Schema.Struct<{
86
+ readonly id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
87
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
88
+ };
89
+ readonly name: Schema.String;
90
+ readonly input: Schema.Codec<Schema.Json, Schema.Json, never, never>;
91
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
92
+ }>;
93
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
94
+ }>, Schema.Struct<{
95
+ readonly type: Schema.Literal<"tool-result">;
96
+ readonly result: Schema.Struct<{
97
+ readonly call_id: Schema.brand<Schema.String, "Relay.ToolCallId"> & {
98
+ make: (input: unknown, options?: import("effect/SchemaAST").ParseOptions) => string & import("effect/Brand").Brand<"Relay.ToolCallId">;
99
+ };
100
+ readonly output: Schema.Codec<Schema.Json, Schema.Json, never, never>;
101
+ readonly error: Schema.optionalKey<Schema.String>;
102
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
103
+ }>;
104
+ readonly metadata: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Codec<Schema.Json, Schema.Json, never, never>>>;
105
+ }>]>;
106
+ export declare const text: (value: string) => TextPart;