@nylorun/runtime 0.42.0-beta → 0.44.0-beta
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/CHANGELOG.md +53 -0
- package/dist/api/a2a/endpoint.js +1 -1
- package/dist/api/a2a/push.js +14 -1
- package/dist/api/a2a/routes.js +40 -26
- package/dist/api/a2a/tasks.d.ts +14 -0
- package/dist/api/a2a/tasks.js +42 -0
- package/dist/api/components.d.ts +1109 -188
- package/dist/artifacts/disk.js +7 -0
- package/dist/harness/main.js +8 -4
- package/dist/harness-api/record.js +20 -0
- package/dist/management-openapi.json +15 -4
- package/dist/openapi.json +460 -7
- package/dist/sandbox/pods/lifecycle.d.ts +5 -1
- package/dist/sandbox/pods/lifecycle.js +8 -0
- package/dist/sandbox/pods/network-gate.d.ts +6 -0
- package/dist/sandbox/pods/network-gate.js +20 -4
- package/dist/store/postgres/drizzle/0045_session_queue_delivery.sql +2 -0
- package/dist/store/postgres/drizzle/meta/_journal.json +7 -0
- package/dist/store/postgres/schema.d.ts +19 -1
- package/dist/store/postgres/schema.js +11 -2
- package/dist/store/postgres/store.js +11 -0
- package/dist/store/types.d.ts +11 -1
- package/dist/tenant/commands.d.ts +55 -10
- package/dist/tenant/commands.js +212 -45
- package/dist/tenant/context.d.ts +11 -0
- package/dist/tenant/sweep.js +44 -15
- package/dist/tuning.d.ts +3 -0
- package/dist/tuning.js +12 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
package/dist/api/components.d.ts
CHANGED
|
@@ -2042,6 +2042,7 @@ export declare const PutTenantLimitsRequest: z.ZodObject<{
|
|
|
2042
2042
|
memoryIndexLines: z.ZodOptional<z.ZodNumber>;
|
|
2043
2043
|
memoryIndexBytes: z.ZodOptional<z.ZodNumber>;
|
|
2044
2044
|
sessionQueuedMessages: z.ZodOptional<z.ZodNumber>;
|
|
2045
|
+
queuedStartMs: z.ZodOptional<z.ZodNumber>;
|
|
2045
2046
|
flowConcurrency: z.ZodOptional<z.ZodNumber>;
|
|
2046
2047
|
flowMapItems: z.ZodOptional<z.ZodNumber>;
|
|
2047
2048
|
flowLoopIterations: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2120,6 +2121,7 @@ export declare const TenantLimitsView: z.ZodObject<{
|
|
|
2120
2121
|
memoryIndexLines: z.ZodNumber;
|
|
2121
2122
|
memoryIndexBytes: z.ZodNumber;
|
|
2122
2123
|
sessionQueuedMessages: z.ZodNumber;
|
|
2124
|
+
queuedStartMs: z.ZodNumber;
|
|
2123
2125
|
flowConcurrency: z.ZodNumber;
|
|
2124
2126
|
flowMapItems: z.ZodNumber;
|
|
2125
2127
|
flowLoopIterations: z.ZodNumber;
|
|
@@ -2214,6 +2216,7 @@ export declare const SessionCommand: z.ZodUnion<readonly [z.ZodUnion<readonly [z
|
|
|
2214
2216
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
2215
2217
|
queue: "queue";
|
|
2216
2218
|
reject: "reject";
|
|
2219
|
+
steer: "steer";
|
|
2217
2220
|
}>>;
|
|
2218
2221
|
content: z.ZodString;
|
|
2219
2222
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -2225,6 +2228,7 @@ export declare const SessionCommand: z.ZodUnion<readonly [z.ZodUnion<readonly [z
|
|
|
2225
2228
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
2226
2229
|
queue: "queue";
|
|
2227
2230
|
reject: "reject";
|
|
2231
|
+
steer: "steer";
|
|
2228
2232
|
}>>;
|
|
2229
2233
|
data: z.ZodType<import("@nylorun/core/define").JsonValue, unknown, z.core.$ZodTypeInternals<import("@nylorun/core/define").JsonValue, unknown>>;
|
|
2230
2234
|
}, z.core.$strict>, z.ZodObject<{
|
|
@@ -2236,6 +2240,7 @@ export declare const SessionCommand: z.ZodUnion<readonly [z.ZodUnion<readonly [z
|
|
|
2236
2240
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
2237
2241
|
queue: "queue";
|
|
2238
2242
|
reject: "reject";
|
|
2243
|
+
steer: "steer";
|
|
2239
2244
|
}>>;
|
|
2240
2245
|
parts: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
2241
2246
|
type: z.ZodLiteral<"text">;
|
|
@@ -2273,6 +2278,10 @@ export declare const QueuedResponse: z.ZodObject<{
|
|
|
2273
2278
|
status: z.ZodLiteral<"queued">;
|
|
2274
2279
|
queuedMessageId: z.ZodString;
|
|
2275
2280
|
position: z.ZodNumber;
|
|
2281
|
+
delivery: z.ZodOptional<z.ZodEnum<{
|
|
2282
|
+
queue: "queue";
|
|
2283
|
+
steer: "steer";
|
|
2284
|
+
}>>;
|
|
2276
2285
|
cursor: z.ZodNullable<z.ZodString>;
|
|
2277
2286
|
requestId: z.ZodString;
|
|
2278
2287
|
}, z.core.$strip>;
|
|
@@ -3309,6 +3318,7 @@ export declare const SessionEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
3309
3318
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
3310
3319
|
queue: "queue";
|
|
3311
3320
|
reject: "reject";
|
|
3321
|
+
steer: "steer";
|
|
3312
3322
|
}>>;
|
|
3313
3323
|
queuedMessageId: z.ZodOptional<z.ZodString>;
|
|
3314
3324
|
cause: z.ZodOptional<z.ZodObject<{
|
|
@@ -4431,6 +4441,10 @@ export declare const SessionEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4431
4441
|
queuedMessageId: z.ZodString;
|
|
4432
4442
|
position: z.ZodNumber;
|
|
4433
4443
|
requestId: z.ZodString;
|
|
4444
|
+
delivery: z.ZodOptional<z.ZodEnum<{
|
|
4445
|
+
queue: "queue";
|
|
4446
|
+
steer: "steer";
|
|
4447
|
+
}>>;
|
|
4434
4448
|
}, z.core.$loose>;
|
|
4435
4449
|
}, z.core.$strip> | z.ZodObject<{
|
|
4436
4450
|
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
@@ -4899,11 +4913,158 @@ export declare const SessionEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4899
4913
|
full: "full";
|
|
4900
4914
|
metadata: "metadata";
|
|
4901
4915
|
}>;
|
|
4916
|
+
} & {
|
|
4917
|
+
type: z.ZodLiteral<"queue.cancelled">;
|
|
4918
|
+
payload: z.ZodObject<{
|
|
4919
|
+
queuedMessageIds: z.ZodArray<z.ZodString>;
|
|
4920
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
4921
|
+
}, z.core.$loose>;
|
|
4922
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
4923
|
+
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
4924
|
+
eventId: z.ZodString;
|
|
4925
|
+
tenantId: z.ZodString;
|
|
4926
|
+
sessionId: z.ZodString;
|
|
4927
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
4928
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
4929
|
+
incarnation: z.ZodNumber;
|
|
4930
|
+
epoch: z.ZodNumber;
|
|
4931
|
+
seq: z.ZodNumber;
|
|
4932
|
+
cursor: z.ZodString;
|
|
4933
|
+
time: z.ZodString;
|
|
4934
|
+
schemaVersion: z.ZodNumber;
|
|
4935
|
+
source: z.ZodObject<{
|
|
4936
|
+
kind: z.ZodEnum<{
|
|
4937
|
+
api: "api";
|
|
4938
|
+
client: "client";
|
|
4939
|
+
controller: "controller";
|
|
4940
|
+
core: "core";
|
|
4941
|
+
edge: "edge";
|
|
4942
|
+
"egress-gate": "egress-gate";
|
|
4943
|
+
evidence: "evidence";
|
|
4944
|
+
harness: "harness";
|
|
4945
|
+
human: "human";
|
|
4946
|
+
init: "init";
|
|
4947
|
+
loop: "loop";
|
|
4948
|
+
"model-gate": "model-gate";
|
|
4949
|
+
operator: "operator";
|
|
4950
|
+
sandboxes: "sandboxes";
|
|
4951
|
+
supervisor: "supervisor";
|
|
4952
|
+
"tool-gate": "tool-gate";
|
|
4953
|
+
}>;
|
|
4954
|
+
id: z.ZodString;
|
|
4955
|
+
}, z.core.$strip>;
|
|
4956
|
+
evidence: z.ZodEnum<{
|
|
4957
|
+
asserted: "asserted";
|
|
4958
|
+
attested: "attested";
|
|
4959
|
+
claimed: "claimed";
|
|
4960
|
+
measured: "measured";
|
|
4961
|
+
observed: "observed";
|
|
4962
|
+
}>;
|
|
4963
|
+
principal: z.ZodOptional<z.ZodObject<{
|
|
4964
|
+
kind: z.ZodEnum<{
|
|
4965
|
+
application: "application";
|
|
4966
|
+
core: "core";
|
|
4967
|
+
"flow-host": "flow-host";
|
|
4968
|
+
subject: "subject";
|
|
4969
|
+
trigger: "trigger";
|
|
4970
|
+
}>;
|
|
4971
|
+
id: z.ZodString;
|
|
4972
|
+
}, z.core.$strict>>;
|
|
4973
|
+
trace: z.ZodOptional<z.ZodObject<{
|
|
4974
|
+
traceId: z.ZodString;
|
|
4975
|
+
spanId: z.ZodString;
|
|
4976
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
4977
|
+
}, z.core.$strip>>;
|
|
4978
|
+
visibility: z.ZodEnum<{
|
|
4979
|
+
internal: "internal";
|
|
4980
|
+
public: "public";
|
|
4981
|
+
restricted: "restricted";
|
|
4982
|
+
}>;
|
|
4983
|
+
retention: z.ZodEnum<{
|
|
4984
|
+
full: "full";
|
|
4985
|
+
metadata: "metadata";
|
|
4986
|
+
}>;
|
|
4987
|
+
} & {
|
|
4988
|
+
type: z.ZodLiteral<"queue.failed">;
|
|
4989
|
+
payload: z.ZodObject<{
|
|
4990
|
+
queuedMessageIds: z.ZodArray<z.ZodString>;
|
|
4991
|
+
error: z.ZodObject<{
|
|
4992
|
+
code: z.ZodString;
|
|
4993
|
+
message: z.ZodString;
|
|
4994
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
4995
|
+
}, z.core.$loose>;
|
|
4996
|
+
}, z.core.$loose>;
|
|
4997
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
4998
|
+
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
4999
|
+
eventId: z.ZodString;
|
|
5000
|
+
tenantId: z.ZodString;
|
|
5001
|
+
sessionId: z.ZodString;
|
|
5002
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
5003
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
5004
|
+
incarnation: z.ZodNumber;
|
|
5005
|
+
epoch: z.ZodNumber;
|
|
5006
|
+
seq: z.ZodNumber;
|
|
5007
|
+
cursor: z.ZodString;
|
|
5008
|
+
time: z.ZodString;
|
|
5009
|
+
schemaVersion: z.ZodNumber;
|
|
5010
|
+
source: z.ZodObject<{
|
|
5011
|
+
kind: z.ZodEnum<{
|
|
5012
|
+
api: "api";
|
|
5013
|
+
client: "client";
|
|
5014
|
+
controller: "controller";
|
|
5015
|
+
core: "core";
|
|
5016
|
+
edge: "edge";
|
|
5017
|
+
"egress-gate": "egress-gate";
|
|
5018
|
+
evidence: "evidence";
|
|
5019
|
+
harness: "harness";
|
|
5020
|
+
human: "human";
|
|
5021
|
+
init: "init";
|
|
5022
|
+
loop: "loop";
|
|
5023
|
+
"model-gate": "model-gate";
|
|
5024
|
+
operator: "operator";
|
|
5025
|
+
sandboxes: "sandboxes";
|
|
5026
|
+
supervisor: "supervisor";
|
|
5027
|
+
"tool-gate": "tool-gate";
|
|
5028
|
+
}>;
|
|
5029
|
+
id: z.ZodString;
|
|
5030
|
+
}, z.core.$strip>;
|
|
5031
|
+
evidence: z.ZodEnum<{
|
|
5032
|
+
asserted: "asserted";
|
|
5033
|
+
attested: "attested";
|
|
5034
|
+
claimed: "claimed";
|
|
5035
|
+
measured: "measured";
|
|
5036
|
+
observed: "observed";
|
|
5037
|
+
}>;
|
|
5038
|
+
principal: z.ZodOptional<z.ZodObject<{
|
|
5039
|
+
kind: z.ZodEnum<{
|
|
5040
|
+
application: "application";
|
|
5041
|
+
core: "core";
|
|
5042
|
+
"flow-host": "flow-host";
|
|
5043
|
+
subject: "subject";
|
|
5044
|
+
trigger: "trigger";
|
|
5045
|
+
}>;
|
|
5046
|
+
id: z.ZodString;
|
|
5047
|
+
}, z.core.$strict>>;
|
|
5048
|
+
trace: z.ZodOptional<z.ZodObject<{
|
|
5049
|
+
traceId: z.ZodString;
|
|
5050
|
+
spanId: z.ZodString;
|
|
5051
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
5052
|
+
}, z.core.$strip>>;
|
|
5053
|
+
visibility: z.ZodEnum<{
|
|
5054
|
+
internal: "internal";
|
|
5055
|
+
public: "public";
|
|
5056
|
+
restricted: "restricted";
|
|
5057
|
+
}>;
|
|
5058
|
+
retention: z.ZodEnum<{
|
|
5059
|
+
full: "full";
|
|
5060
|
+
metadata: "metadata";
|
|
5061
|
+
}>;
|
|
4902
5062
|
} & {
|
|
4903
5063
|
type: z.ZodLiteral<"queue.taken">;
|
|
4904
5064
|
payload: z.ZodObject<{
|
|
4905
5065
|
turnId: z.ZodString;
|
|
4906
5066
|
queuedMessageIds: z.ZodArray<z.ZodString>;
|
|
5067
|
+
step: z.ZodOptional<z.ZodNumber>;
|
|
4907
5068
|
}, z.core.$loose>;
|
|
4908
5069
|
}, z.core.$strip> | z.ZodObject<{
|
|
4909
5070
|
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
@@ -6388,6 +6549,7 @@ export declare const SessionEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
6388
6549
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
6389
6550
|
queue: "queue";
|
|
6390
6551
|
reject: "reject";
|
|
6552
|
+
steer: "steer";
|
|
6391
6553
|
}>>;
|
|
6392
6554
|
queuedMessageId: z.ZodOptional<z.ZodString>;
|
|
6393
6555
|
cause: z.ZodOptional<z.ZodObject<{
|
|
@@ -7510,6 +7672,10 @@ export declare const SessionEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7510
7672
|
queuedMessageId: z.ZodString;
|
|
7511
7673
|
position: z.ZodNumber;
|
|
7512
7674
|
requestId: z.ZodString;
|
|
7675
|
+
delivery: z.ZodOptional<z.ZodEnum<{
|
|
7676
|
+
queue: "queue";
|
|
7677
|
+
steer: "steer";
|
|
7678
|
+
}>>;
|
|
7513
7679
|
}, z.core.$loose>;
|
|
7514
7680
|
}, z.core.$strip> | z.ZodObject<{
|
|
7515
7681
|
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
@@ -7979,10 +8145,10 @@ export declare const SessionEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7979
8145
|
metadata: "metadata";
|
|
7980
8146
|
}>;
|
|
7981
8147
|
} & {
|
|
7982
|
-
type: z.ZodLiteral<"queue.
|
|
8148
|
+
type: z.ZodLiteral<"queue.cancelled">;
|
|
7983
8149
|
payload: z.ZodObject<{
|
|
7984
|
-
turnId: z.ZodString;
|
|
7985
8150
|
queuedMessageIds: z.ZodArray<z.ZodString>;
|
|
8151
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
7986
8152
|
}, z.core.$loose>;
|
|
7987
8153
|
}, z.core.$strip> | z.ZodObject<{
|
|
7988
8154
|
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
@@ -8050,50 +8216,14 @@ export declare const SessionEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
8050
8216
|
metadata: "metadata";
|
|
8051
8217
|
}>;
|
|
8052
8218
|
} & {
|
|
8053
|
-
type: z.ZodLiteral<"
|
|
8219
|
+
type: z.ZodLiteral<"queue.failed">;
|
|
8054
8220
|
payload: z.ZodObject<{
|
|
8055
|
-
|
|
8056
|
-
|
|
8057
|
-
|
|
8058
|
-
|
|
8059
|
-
|
|
8060
|
-
|
|
8061
|
-
}>;
|
|
8062
|
-
reason: z.ZodOptional<z.ZodEnum<{
|
|
8063
|
-
invalid_model: "invalid_model";
|
|
8064
|
-
not_in_catalog: "not_in_catalog";
|
|
8065
|
-
provider_not_connected: "provider_not_connected";
|
|
8066
|
-
}>>;
|
|
8067
|
-
requested: z.ZodOptional<z.ZodObject<{
|
|
8068
|
-
provider: z.ZodString;
|
|
8069
|
-
model: z.ZodString;
|
|
8070
|
-
by: z.ZodEnum<{
|
|
8071
|
-
manifest: "manifest";
|
|
8072
|
-
session: "session";
|
|
8073
|
-
}>;
|
|
8074
|
-
}, z.core.$strict>>;
|
|
8075
|
-
previous: z.ZodOptional<z.ZodObject<{
|
|
8076
|
-
provider: z.ZodString;
|
|
8077
|
-
model: z.ZodString;
|
|
8078
|
-
source: z.ZodEnum<{
|
|
8079
|
-
manifest: "manifest";
|
|
8080
|
-
session: "session";
|
|
8081
|
-
tenant: "tenant";
|
|
8082
|
-
}>;
|
|
8083
|
-
reason: z.ZodOptional<z.ZodEnum<{
|
|
8084
|
-
invalid_model: "invalid_model";
|
|
8085
|
-
not_in_catalog: "not_in_catalog";
|
|
8086
|
-
provider_not_connected: "provider_not_connected";
|
|
8087
|
-
}>>;
|
|
8088
|
-
requested: z.ZodOptional<z.ZodObject<{
|
|
8089
|
-
provider: z.ZodString;
|
|
8090
|
-
model: z.ZodString;
|
|
8091
|
-
by: z.ZodEnum<{
|
|
8092
|
-
manifest: "manifest";
|
|
8093
|
-
session: "session";
|
|
8094
|
-
}>;
|
|
8095
|
-
}, z.core.$strict>>;
|
|
8096
|
-
}, z.core.$strict>>;
|
|
8221
|
+
queuedMessageIds: z.ZodArray<z.ZodString>;
|
|
8222
|
+
error: z.ZodObject<{
|
|
8223
|
+
code: z.ZodString;
|
|
8224
|
+
message: z.ZodString;
|
|
8225
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
8226
|
+
}, z.core.$loose>;
|
|
8097
8227
|
}, z.core.$loose>;
|
|
8098
8228
|
}, z.core.$strip> | z.ZodObject<{
|
|
8099
8229
|
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
@@ -8161,35 +8291,218 @@ export declare const SessionEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
8161
8291
|
metadata: "metadata";
|
|
8162
8292
|
}>;
|
|
8163
8293
|
} & {
|
|
8164
|
-
type: z.ZodLiteral<"
|
|
8294
|
+
type: z.ZodLiteral<"queue.taken">;
|
|
8165
8295
|
payload: z.ZodObject<{
|
|
8166
|
-
|
|
8167
|
-
|
|
8168
|
-
|
|
8169
|
-
|
|
8170
|
-
|
|
8171
|
-
|
|
8172
|
-
|
|
8173
|
-
|
|
8174
|
-
|
|
8175
|
-
|
|
8176
|
-
|
|
8177
|
-
|
|
8178
|
-
|
|
8179
|
-
|
|
8180
|
-
|
|
8296
|
+
turnId: z.ZodString;
|
|
8297
|
+
queuedMessageIds: z.ZodArray<z.ZodString>;
|
|
8298
|
+
step: z.ZodOptional<z.ZodNumber>;
|
|
8299
|
+
}, z.core.$loose>;
|
|
8300
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
8301
|
+
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
8302
|
+
eventId: z.ZodString;
|
|
8303
|
+
tenantId: z.ZodString;
|
|
8304
|
+
sessionId: z.ZodString;
|
|
8305
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
8306
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
8307
|
+
incarnation: z.ZodNumber;
|
|
8308
|
+
epoch: z.ZodNumber;
|
|
8309
|
+
seq: z.ZodNumber;
|
|
8310
|
+
cursor: z.ZodString;
|
|
8311
|
+
time: z.ZodString;
|
|
8312
|
+
schemaVersion: z.ZodNumber;
|
|
8313
|
+
source: z.ZodObject<{
|
|
8314
|
+
kind: z.ZodEnum<{
|
|
8315
|
+
api: "api";
|
|
8316
|
+
client: "client";
|
|
8317
|
+
controller: "controller";
|
|
8318
|
+
core: "core";
|
|
8319
|
+
edge: "edge";
|
|
8320
|
+
"egress-gate": "egress-gate";
|
|
8321
|
+
evidence: "evidence";
|
|
8181
8322
|
harness: "harness";
|
|
8182
|
-
|
|
8183
|
-
|
|
8184
|
-
|
|
8185
|
-
|
|
8186
|
-
|
|
8187
|
-
|
|
8188
|
-
|
|
8189
|
-
|
|
8190
|
-
|
|
8191
|
-
|
|
8192
|
-
|
|
8323
|
+
human: "human";
|
|
8324
|
+
init: "init";
|
|
8325
|
+
loop: "loop";
|
|
8326
|
+
"model-gate": "model-gate";
|
|
8327
|
+
operator: "operator";
|
|
8328
|
+
sandboxes: "sandboxes";
|
|
8329
|
+
supervisor: "supervisor";
|
|
8330
|
+
"tool-gate": "tool-gate";
|
|
8331
|
+
}>;
|
|
8332
|
+
id: z.ZodString;
|
|
8333
|
+
}, z.core.$strip>;
|
|
8334
|
+
evidence: z.ZodEnum<{
|
|
8335
|
+
asserted: "asserted";
|
|
8336
|
+
attested: "attested";
|
|
8337
|
+
claimed: "claimed";
|
|
8338
|
+
measured: "measured";
|
|
8339
|
+
observed: "observed";
|
|
8340
|
+
}>;
|
|
8341
|
+
principal: z.ZodOptional<z.ZodObject<{
|
|
8342
|
+
kind: z.ZodEnum<{
|
|
8343
|
+
application: "application";
|
|
8344
|
+
core: "core";
|
|
8345
|
+
"flow-host": "flow-host";
|
|
8346
|
+
subject: "subject";
|
|
8347
|
+
trigger: "trigger";
|
|
8348
|
+
}>;
|
|
8349
|
+
id: z.ZodString;
|
|
8350
|
+
}, z.core.$strict>>;
|
|
8351
|
+
trace: z.ZodOptional<z.ZodObject<{
|
|
8352
|
+
traceId: z.ZodString;
|
|
8353
|
+
spanId: z.ZodString;
|
|
8354
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
8355
|
+
}, z.core.$strip>>;
|
|
8356
|
+
visibility: z.ZodEnum<{
|
|
8357
|
+
internal: "internal";
|
|
8358
|
+
public: "public";
|
|
8359
|
+
restricted: "restricted";
|
|
8360
|
+
}>;
|
|
8361
|
+
retention: z.ZodEnum<{
|
|
8362
|
+
full: "full";
|
|
8363
|
+
metadata: "metadata";
|
|
8364
|
+
}>;
|
|
8365
|
+
} & {
|
|
8366
|
+
type: z.ZodLiteral<"session.model">;
|
|
8367
|
+
payload: z.ZodObject<{
|
|
8368
|
+
provider: z.ZodString;
|
|
8369
|
+
model: z.ZodString;
|
|
8370
|
+
source: z.ZodEnum<{
|
|
8371
|
+
manifest: "manifest";
|
|
8372
|
+
session: "session";
|
|
8373
|
+
tenant: "tenant";
|
|
8374
|
+
}>;
|
|
8375
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
8376
|
+
invalid_model: "invalid_model";
|
|
8377
|
+
not_in_catalog: "not_in_catalog";
|
|
8378
|
+
provider_not_connected: "provider_not_connected";
|
|
8379
|
+
}>>;
|
|
8380
|
+
requested: z.ZodOptional<z.ZodObject<{
|
|
8381
|
+
provider: z.ZodString;
|
|
8382
|
+
model: z.ZodString;
|
|
8383
|
+
by: z.ZodEnum<{
|
|
8384
|
+
manifest: "manifest";
|
|
8385
|
+
session: "session";
|
|
8386
|
+
}>;
|
|
8387
|
+
}, z.core.$strict>>;
|
|
8388
|
+
previous: z.ZodOptional<z.ZodObject<{
|
|
8389
|
+
provider: z.ZodString;
|
|
8390
|
+
model: z.ZodString;
|
|
8391
|
+
source: z.ZodEnum<{
|
|
8392
|
+
manifest: "manifest";
|
|
8393
|
+
session: "session";
|
|
8394
|
+
tenant: "tenant";
|
|
8395
|
+
}>;
|
|
8396
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
8397
|
+
invalid_model: "invalid_model";
|
|
8398
|
+
not_in_catalog: "not_in_catalog";
|
|
8399
|
+
provider_not_connected: "provider_not_connected";
|
|
8400
|
+
}>>;
|
|
8401
|
+
requested: z.ZodOptional<z.ZodObject<{
|
|
8402
|
+
provider: z.ZodString;
|
|
8403
|
+
model: z.ZodString;
|
|
8404
|
+
by: z.ZodEnum<{
|
|
8405
|
+
manifest: "manifest";
|
|
8406
|
+
session: "session";
|
|
8407
|
+
}>;
|
|
8408
|
+
}, z.core.$strict>>;
|
|
8409
|
+
}, z.core.$strict>>;
|
|
8410
|
+
}, z.core.$loose>;
|
|
8411
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
8412
|
+
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
8413
|
+
eventId: z.ZodString;
|
|
8414
|
+
tenantId: z.ZodString;
|
|
8415
|
+
sessionId: z.ZodString;
|
|
8416
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
8417
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
8418
|
+
incarnation: z.ZodNumber;
|
|
8419
|
+
epoch: z.ZodNumber;
|
|
8420
|
+
seq: z.ZodNumber;
|
|
8421
|
+
cursor: z.ZodString;
|
|
8422
|
+
time: z.ZodString;
|
|
8423
|
+
schemaVersion: z.ZodNumber;
|
|
8424
|
+
source: z.ZodObject<{
|
|
8425
|
+
kind: z.ZodEnum<{
|
|
8426
|
+
api: "api";
|
|
8427
|
+
client: "client";
|
|
8428
|
+
controller: "controller";
|
|
8429
|
+
core: "core";
|
|
8430
|
+
edge: "edge";
|
|
8431
|
+
"egress-gate": "egress-gate";
|
|
8432
|
+
evidence: "evidence";
|
|
8433
|
+
harness: "harness";
|
|
8434
|
+
human: "human";
|
|
8435
|
+
init: "init";
|
|
8436
|
+
loop: "loop";
|
|
8437
|
+
"model-gate": "model-gate";
|
|
8438
|
+
operator: "operator";
|
|
8439
|
+
sandboxes: "sandboxes";
|
|
8440
|
+
supervisor: "supervisor";
|
|
8441
|
+
"tool-gate": "tool-gate";
|
|
8442
|
+
}>;
|
|
8443
|
+
id: z.ZodString;
|
|
8444
|
+
}, z.core.$strip>;
|
|
8445
|
+
evidence: z.ZodEnum<{
|
|
8446
|
+
asserted: "asserted";
|
|
8447
|
+
attested: "attested";
|
|
8448
|
+
claimed: "claimed";
|
|
8449
|
+
measured: "measured";
|
|
8450
|
+
observed: "observed";
|
|
8451
|
+
}>;
|
|
8452
|
+
principal: z.ZodOptional<z.ZodObject<{
|
|
8453
|
+
kind: z.ZodEnum<{
|
|
8454
|
+
application: "application";
|
|
8455
|
+
core: "core";
|
|
8456
|
+
"flow-host": "flow-host";
|
|
8457
|
+
subject: "subject";
|
|
8458
|
+
trigger: "trigger";
|
|
8459
|
+
}>;
|
|
8460
|
+
id: z.ZodString;
|
|
8461
|
+
}, z.core.$strict>>;
|
|
8462
|
+
trace: z.ZodOptional<z.ZodObject<{
|
|
8463
|
+
traceId: z.ZodString;
|
|
8464
|
+
spanId: z.ZodString;
|
|
8465
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
8466
|
+
}, z.core.$strip>>;
|
|
8467
|
+
visibility: z.ZodEnum<{
|
|
8468
|
+
internal: "internal";
|
|
8469
|
+
public: "public";
|
|
8470
|
+
restricted: "restricted";
|
|
8471
|
+
}>;
|
|
8472
|
+
retention: z.ZodEnum<{
|
|
8473
|
+
full: "full";
|
|
8474
|
+
metadata: "metadata";
|
|
8475
|
+
}>;
|
|
8476
|
+
} & {
|
|
8477
|
+
type: z.ZodLiteral<"tool.completed">;
|
|
8478
|
+
payload: z.ZodObject<{
|
|
8479
|
+
agent: z.ZodOptional<z.ZodObject<{
|
|
8480
|
+
id: z.ZodString;
|
|
8481
|
+
path: z.ZodString;
|
|
8482
|
+
delegationId: z.ZodOptional<z.ZodString>;
|
|
8483
|
+
}, z.core.$loose>>;
|
|
8484
|
+
callId: z.ZodString;
|
|
8485
|
+
invocationId: z.ZodString;
|
|
8486
|
+
effectId: z.ZodOptional<z.ZodString>;
|
|
8487
|
+
toolName: z.ZodString;
|
|
8488
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
8489
|
+
cancelled: "cancelled";
|
|
8490
|
+
completed: "completed";
|
|
8491
|
+
failed: "failed";
|
|
8492
|
+
}>>;
|
|
8493
|
+
kind: z.ZodOptional<z.ZodEnum<{
|
|
8494
|
+
harness: "harness";
|
|
8495
|
+
http: "http";
|
|
8496
|
+
mcp: "mcp";
|
|
8497
|
+
runtime: "runtime";
|
|
8498
|
+
sandbox: "sandbox";
|
|
8499
|
+
}>>;
|
|
8500
|
+
server: z.ZodOptional<z.ZodString>;
|
|
8501
|
+
tool: z.ZodOptional<z.ZodString>;
|
|
8502
|
+
skill: z.ZodOptional<z.ZodString>;
|
|
8503
|
+
plugin: z.ZodOptional<z.ZodObject<{
|
|
8504
|
+
name: z.ZodString;
|
|
8505
|
+
version: z.ZodOptional<z.ZodString>;
|
|
8193
8506
|
}, z.core.$strict>>;
|
|
8194
8507
|
attempts: z.ZodOptional<z.ZodNumber>;
|
|
8195
8508
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
@@ -9470,6 +9783,7 @@ export declare const SessionItemsResponse: z.ZodObject<{
|
|
|
9470
9783
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
9471
9784
|
queue: "queue";
|
|
9472
9785
|
reject: "reject";
|
|
9786
|
+
steer: "steer";
|
|
9473
9787
|
}>>;
|
|
9474
9788
|
queuedMessageId: z.ZodOptional<z.ZodString>;
|
|
9475
9789
|
cause: z.ZodOptional<z.ZodObject<{
|
|
@@ -10592,6 +10906,10 @@ export declare const SessionItemsResponse: z.ZodObject<{
|
|
|
10592
10906
|
queuedMessageId: z.ZodString;
|
|
10593
10907
|
position: z.ZodNumber;
|
|
10594
10908
|
requestId: z.ZodString;
|
|
10909
|
+
delivery: z.ZodOptional<z.ZodEnum<{
|
|
10910
|
+
queue: "queue";
|
|
10911
|
+
steer: "steer";
|
|
10912
|
+
}>>;
|
|
10595
10913
|
}, z.core.$loose>;
|
|
10596
10914
|
}, z.core.$strip> | z.ZodObject<{
|
|
10597
10915
|
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
@@ -11060,11 +11378,158 @@ export declare const SessionItemsResponse: z.ZodObject<{
|
|
|
11060
11378
|
full: "full";
|
|
11061
11379
|
metadata: "metadata";
|
|
11062
11380
|
}>;
|
|
11381
|
+
} & {
|
|
11382
|
+
type: z.ZodLiteral<"queue.cancelled">;
|
|
11383
|
+
payload: z.ZodObject<{
|
|
11384
|
+
queuedMessageIds: z.ZodArray<z.ZodString>;
|
|
11385
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
11386
|
+
}, z.core.$loose>;
|
|
11387
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
11388
|
+
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
11389
|
+
eventId: z.ZodString;
|
|
11390
|
+
tenantId: z.ZodString;
|
|
11391
|
+
sessionId: z.ZodString;
|
|
11392
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
11393
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
11394
|
+
incarnation: z.ZodNumber;
|
|
11395
|
+
epoch: z.ZodNumber;
|
|
11396
|
+
seq: z.ZodNumber;
|
|
11397
|
+
cursor: z.ZodString;
|
|
11398
|
+
time: z.ZodString;
|
|
11399
|
+
schemaVersion: z.ZodNumber;
|
|
11400
|
+
source: z.ZodObject<{
|
|
11401
|
+
kind: z.ZodEnum<{
|
|
11402
|
+
api: "api";
|
|
11403
|
+
client: "client";
|
|
11404
|
+
controller: "controller";
|
|
11405
|
+
core: "core";
|
|
11406
|
+
edge: "edge";
|
|
11407
|
+
"egress-gate": "egress-gate";
|
|
11408
|
+
evidence: "evidence";
|
|
11409
|
+
harness: "harness";
|
|
11410
|
+
human: "human";
|
|
11411
|
+
init: "init";
|
|
11412
|
+
loop: "loop";
|
|
11413
|
+
"model-gate": "model-gate";
|
|
11414
|
+
operator: "operator";
|
|
11415
|
+
sandboxes: "sandboxes";
|
|
11416
|
+
supervisor: "supervisor";
|
|
11417
|
+
"tool-gate": "tool-gate";
|
|
11418
|
+
}>;
|
|
11419
|
+
id: z.ZodString;
|
|
11420
|
+
}, z.core.$strip>;
|
|
11421
|
+
evidence: z.ZodEnum<{
|
|
11422
|
+
asserted: "asserted";
|
|
11423
|
+
attested: "attested";
|
|
11424
|
+
claimed: "claimed";
|
|
11425
|
+
measured: "measured";
|
|
11426
|
+
observed: "observed";
|
|
11427
|
+
}>;
|
|
11428
|
+
principal: z.ZodOptional<z.ZodObject<{
|
|
11429
|
+
kind: z.ZodEnum<{
|
|
11430
|
+
application: "application";
|
|
11431
|
+
core: "core";
|
|
11432
|
+
"flow-host": "flow-host";
|
|
11433
|
+
subject: "subject";
|
|
11434
|
+
trigger: "trigger";
|
|
11435
|
+
}>;
|
|
11436
|
+
id: z.ZodString;
|
|
11437
|
+
}, z.core.$strict>>;
|
|
11438
|
+
trace: z.ZodOptional<z.ZodObject<{
|
|
11439
|
+
traceId: z.ZodString;
|
|
11440
|
+
spanId: z.ZodString;
|
|
11441
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
11442
|
+
}, z.core.$strip>>;
|
|
11443
|
+
visibility: z.ZodEnum<{
|
|
11444
|
+
internal: "internal";
|
|
11445
|
+
public: "public";
|
|
11446
|
+
restricted: "restricted";
|
|
11447
|
+
}>;
|
|
11448
|
+
retention: z.ZodEnum<{
|
|
11449
|
+
full: "full";
|
|
11450
|
+
metadata: "metadata";
|
|
11451
|
+
}>;
|
|
11452
|
+
} & {
|
|
11453
|
+
type: z.ZodLiteral<"queue.failed">;
|
|
11454
|
+
payload: z.ZodObject<{
|
|
11455
|
+
queuedMessageIds: z.ZodArray<z.ZodString>;
|
|
11456
|
+
error: z.ZodObject<{
|
|
11457
|
+
code: z.ZodString;
|
|
11458
|
+
message: z.ZodString;
|
|
11459
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
11460
|
+
}, z.core.$loose>;
|
|
11461
|
+
}, z.core.$loose>;
|
|
11462
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
11463
|
+
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
11464
|
+
eventId: z.ZodString;
|
|
11465
|
+
tenantId: z.ZodString;
|
|
11466
|
+
sessionId: z.ZodString;
|
|
11467
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
11468
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
11469
|
+
incarnation: z.ZodNumber;
|
|
11470
|
+
epoch: z.ZodNumber;
|
|
11471
|
+
seq: z.ZodNumber;
|
|
11472
|
+
cursor: z.ZodString;
|
|
11473
|
+
time: z.ZodString;
|
|
11474
|
+
schemaVersion: z.ZodNumber;
|
|
11475
|
+
source: z.ZodObject<{
|
|
11476
|
+
kind: z.ZodEnum<{
|
|
11477
|
+
api: "api";
|
|
11478
|
+
client: "client";
|
|
11479
|
+
controller: "controller";
|
|
11480
|
+
core: "core";
|
|
11481
|
+
edge: "edge";
|
|
11482
|
+
"egress-gate": "egress-gate";
|
|
11483
|
+
evidence: "evidence";
|
|
11484
|
+
harness: "harness";
|
|
11485
|
+
human: "human";
|
|
11486
|
+
init: "init";
|
|
11487
|
+
loop: "loop";
|
|
11488
|
+
"model-gate": "model-gate";
|
|
11489
|
+
operator: "operator";
|
|
11490
|
+
sandboxes: "sandboxes";
|
|
11491
|
+
supervisor: "supervisor";
|
|
11492
|
+
"tool-gate": "tool-gate";
|
|
11493
|
+
}>;
|
|
11494
|
+
id: z.ZodString;
|
|
11495
|
+
}, z.core.$strip>;
|
|
11496
|
+
evidence: z.ZodEnum<{
|
|
11497
|
+
asserted: "asserted";
|
|
11498
|
+
attested: "attested";
|
|
11499
|
+
claimed: "claimed";
|
|
11500
|
+
measured: "measured";
|
|
11501
|
+
observed: "observed";
|
|
11502
|
+
}>;
|
|
11503
|
+
principal: z.ZodOptional<z.ZodObject<{
|
|
11504
|
+
kind: z.ZodEnum<{
|
|
11505
|
+
application: "application";
|
|
11506
|
+
core: "core";
|
|
11507
|
+
"flow-host": "flow-host";
|
|
11508
|
+
subject: "subject";
|
|
11509
|
+
trigger: "trigger";
|
|
11510
|
+
}>;
|
|
11511
|
+
id: z.ZodString;
|
|
11512
|
+
}, z.core.$strict>>;
|
|
11513
|
+
trace: z.ZodOptional<z.ZodObject<{
|
|
11514
|
+
traceId: z.ZodString;
|
|
11515
|
+
spanId: z.ZodString;
|
|
11516
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
11517
|
+
}, z.core.$strip>>;
|
|
11518
|
+
visibility: z.ZodEnum<{
|
|
11519
|
+
internal: "internal";
|
|
11520
|
+
public: "public";
|
|
11521
|
+
restricted: "restricted";
|
|
11522
|
+
}>;
|
|
11523
|
+
retention: z.ZodEnum<{
|
|
11524
|
+
full: "full";
|
|
11525
|
+
metadata: "metadata";
|
|
11526
|
+
}>;
|
|
11063
11527
|
} & {
|
|
11064
11528
|
type: z.ZodLiteral<"queue.taken">;
|
|
11065
11529
|
payload: z.ZodObject<{
|
|
11066
11530
|
turnId: z.ZodString;
|
|
11067
11531
|
queuedMessageIds: z.ZodArray<z.ZodString>;
|
|
11532
|
+
step: z.ZodOptional<z.ZodNumber>;
|
|
11068
11533
|
}, z.core.$loose>;
|
|
11069
11534
|
}, z.core.$strip> | z.ZodObject<{
|
|
11070
11535
|
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
@@ -12549,6 +13014,7 @@ export declare const SessionItemsResponse: z.ZodObject<{
|
|
|
12549
13014
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
12550
13015
|
queue: "queue";
|
|
12551
13016
|
reject: "reject";
|
|
13017
|
+
steer: "steer";
|
|
12552
13018
|
}>>;
|
|
12553
13019
|
queuedMessageId: z.ZodOptional<z.ZodString>;
|
|
12554
13020
|
cause: z.ZodOptional<z.ZodObject<{
|
|
@@ -13666,11 +14132,180 @@ export declare const SessionItemsResponse: z.ZodObject<{
|
|
|
13666
14132
|
metadata: "metadata";
|
|
13667
14133
|
}>;
|
|
13668
14134
|
} & {
|
|
13669
|
-
type: z.ZodLiteral<"message.queued">;
|
|
14135
|
+
type: z.ZodLiteral<"message.queued">;
|
|
14136
|
+
payload: z.ZodObject<{
|
|
14137
|
+
queuedMessageId: z.ZodString;
|
|
14138
|
+
position: z.ZodNumber;
|
|
14139
|
+
requestId: z.ZodString;
|
|
14140
|
+
delivery: z.ZodOptional<z.ZodEnum<{
|
|
14141
|
+
queue: "queue";
|
|
14142
|
+
steer: "steer";
|
|
14143
|
+
}>>;
|
|
14144
|
+
}, z.core.$loose>;
|
|
14145
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
14146
|
+
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
14147
|
+
eventId: z.ZodString;
|
|
14148
|
+
tenantId: z.ZodString;
|
|
14149
|
+
sessionId: z.ZodString;
|
|
14150
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
14151
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
14152
|
+
incarnation: z.ZodNumber;
|
|
14153
|
+
epoch: z.ZodNumber;
|
|
14154
|
+
seq: z.ZodNumber;
|
|
14155
|
+
cursor: z.ZodString;
|
|
14156
|
+
time: z.ZodString;
|
|
14157
|
+
schemaVersion: z.ZodNumber;
|
|
14158
|
+
source: z.ZodObject<{
|
|
14159
|
+
kind: z.ZodEnum<{
|
|
14160
|
+
api: "api";
|
|
14161
|
+
client: "client";
|
|
14162
|
+
controller: "controller";
|
|
14163
|
+
core: "core";
|
|
14164
|
+
edge: "edge";
|
|
14165
|
+
"egress-gate": "egress-gate";
|
|
14166
|
+
evidence: "evidence";
|
|
14167
|
+
harness: "harness";
|
|
14168
|
+
human: "human";
|
|
14169
|
+
init: "init";
|
|
14170
|
+
loop: "loop";
|
|
14171
|
+
"model-gate": "model-gate";
|
|
14172
|
+
operator: "operator";
|
|
14173
|
+
sandboxes: "sandboxes";
|
|
14174
|
+
supervisor: "supervisor";
|
|
14175
|
+
"tool-gate": "tool-gate";
|
|
14176
|
+
}>;
|
|
14177
|
+
id: z.ZodString;
|
|
14178
|
+
}, z.core.$strip>;
|
|
14179
|
+
evidence: z.ZodEnum<{
|
|
14180
|
+
asserted: "asserted";
|
|
14181
|
+
attested: "attested";
|
|
14182
|
+
claimed: "claimed";
|
|
14183
|
+
measured: "measured";
|
|
14184
|
+
observed: "observed";
|
|
14185
|
+
}>;
|
|
14186
|
+
principal: z.ZodOptional<z.ZodObject<{
|
|
14187
|
+
kind: z.ZodEnum<{
|
|
14188
|
+
application: "application";
|
|
14189
|
+
core: "core";
|
|
14190
|
+
"flow-host": "flow-host";
|
|
14191
|
+
subject: "subject";
|
|
14192
|
+
trigger: "trigger";
|
|
14193
|
+
}>;
|
|
14194
|
+
id: z.ZodString;
|
|
14195
|
+
}, z.core.$strict>>;
|
|
14196
|
+
trace: z.ZodOptional<z.ZodObject<{
|
|
14197
|
+
traceId: z.ZodString;
|
|
14198
|
+
spanId: z.ZodString;
|
|
14199
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
14200
|
+
}, z.core.$strip>>;
|
|
14201
|
+
visibility: z.ZodEnum<{
|
|
14202
|
+
internal: "internal";
|
|
14203
|
+
public: "public";
|
|
14204
|
+
restricted: "restricted";
|
|
14205
|
+
}>;
|
|
14206
|
+
retention: z.ZodEnum<{
|
|
14207
|
+
full: "full";
|
|
14208
|
+
metadata: "metadata";
|
|
14209
|
+
}>;
|
|
14210
|
+
} & {
|
|
14211
|
+
type: z.ZodLiteral<"model.failed">;
|
|
14212
|
+
payload: z.ZodObject<{
|
|
14213
|
+
agent: z.ZodOptional<z.ZodObject<{
|
|
14214
|
+
id: z.ZodString;
|
|
14215
|
+
path: z.ZodString;
|
|
14216
|
+
delegationId: z.ZodOptional<z.ZodString>;
|
|
14217
|
+
}, z.core.$loose>>;
|
|
14218
|
+
effectId: z.ZodOptional<z.ZodString>;
|
|
14219
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
14220
|
+
gate: z.ZodOptional<z.ZodObject<{
|
|
14221
|
+
startedAt: z.ZodString;
|
|
14222
|
+
endedAt: z.ZodString;
|
|
14223
|
+
}, z.core.$loose>>;
|
|
14224
|
+
firstTokenMs: z.ZodOptional<z.ZodNumber>;
|
|
14225
|
+
meteredUsage: z.ZodOptional<z.ZodObject<{
|
|
14226
|
+
inputTokens: z.ZodNumber;
|
|
14227
|
+
outputTokens: z.ZodNumber;
|
|
14228
|
+
totalTokens: z.ZodNumber;
|
|
14229
|
+
cachedTokens: z.ZodOptional<z.ZodNumber>;
|
|
14230
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
14231
|
+
}, z.core.$loose>>;
|
|
14232
|
+
invocationId: z.ZodOptional<z.ZodString>;
|
|
14233
|
+
code: z.ZodString;
|
|
14234
|
+
message: z.ZodString;
|
|
14235
|
+
retryable: z.ZodBoolean;
|
|
14236
|
+
}, z.core.$loose>;
|
|
14237
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
14238
|
+
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
14239
|
+
eventId: z.ZodString;
|
|
14240
|
+
tenantId: z.ZodString;
|
|
14241
|
+
sessionId: z.ZodString;
|
|
14242
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
14243
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
14244
|
+
incarnation: z.ZodNumber;
|
|
14245
|
+
epoch: z.ZodNumber;
|
|
14246
|
+
seq: z.ZodNumber;
|
|
14247
|
+
cursor: z.ZodString;
|
|
14248
|
+
time: z.ZodString;
|
|
14249
|
+
schemaVersion: z.ZodNumber;
|
|
14250
|
+
source: z.ZodObject<{
|
|
14251
|
+
kind: z.ZodEnum<{
|
|
14252
|
+
api: "api";
|
|
14253
|
+
client: "client";
|
|
14254
|
+
controller: "controller";
|
|
14255
|
+
core: "core";
|
|
14256
|
+
edge: "edge";
|
|
14257
|
+
"egress-gate": "egress-gate";
|
|
14258
|
+
evidence: "evidence";
|
|
14259
|
+
harness: "harness";
|
|
14260
|
+
human: "human";
|
|
14261
|
+
init: "init";
|
|
14262
|
+
loop: "loop";
|
|
14263
|
+
"model-gate": "model-gate";
|
|
14264
|
+
operator: "operator";
|
|
14265
|
+
sandboxes: "sandboxes";
|
|
14266
|
+
supervisor: "supervisor";
|
|
14267
|
+
"tool-gate": "tool-gate";
|
|
14268
|
+
}>;
|
|
14269
|
+
id: z.ZodString;
|
|
14270
|
+
}, z.core.$strip>;
|
|
14271
|
+
evidence: z.ZodEnum<{
|
|
14272
|
+
asserted: "asserted";
|
|
14273
|
+
attested: "attested";
|
|
14274
|
+
claimed: "claimed";
|
|
14275
|
+
measured: "measured";
|
|
14276
|
+
observed: "observed";
|
|
14277
|
+
}>;
|
|
14278
|
+
principal: z.ZodOptional<z.ZodObject<{
|
|
14279
|
+
kind: z.ZodEnum<{
|
|
14280
|
+
application: "application";
|
|
14281
|
+
core: "core";
|
|
14282
|
+
"flow-host": "flow-host";
|
|
14283
|
+
subject: "subject";
|
|
14284
|
+
trigger: "trigger";
|
|
14285
|
+
}>;
|
|
14286
|
+
id: z.ZodString;
|
|
14287
|
+
}, z.core.$strict>>;
|
|
14288
|
+
trace: z.ZodOptional<z.ZodObject<{
|
|
14289
|
+
traceId: z.ZodString;
|
|
14290
|
+
spanId: z.ZodString;
|
|
14291
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
14292
|
+
}, z.core.$strip>>;
|
|
14293
|
+
visibility: z.ZodEnum<{
|
|
14294
|
+
internal: "internal";
|
|
14295
|
+
public: "public";
|
|
14296
|
+
restricted: "restricted";
|
|
14297
|
+
}>;
|
|
14298
|
+
retention: z.ZodEnum<{
|
|
14299
|
+
full: "full";
|
|
14300
|
+
metadata: "metadata";
|
|
14301
|
+
}>;
|
|
14302
|
+
} & {
|
|
14303
|
+
type: z.ZodLiteral<"node.agent">;
|
|
13670
14304
|
payload: z.ZodObject<{
|
|
13671
|
-
|
|
13672
|
-
|
|
13673
|
-
|
|
14305
|
+
path: z.ZodString;
|
|
14306
|
+
iterations: z.ZodOptional<z.ZodString>;
|
|
14307
|
+
sessionId: z.ZodString;
|
|
14308
|
+
turnId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13674
14309
|
}, z.core.$loose>;
|
|
13675
14310
|
}, z.core.$strip> | z.ZodObject<{
|
|
13676
14311
|
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
@@ -13738,31 +14373,23 @@ export declare const SessionItemsResponse: z.ZodObject<{
|
|
|
13738
14373
|
metadata: "metadata";
|
|
13739
14374
|
}>;
|
|
13740
14375
|
} & {
|
|
13741
|
-
type: z.ZodLiteral<"
|
|
14376
|
+
type: z.ZodLiteral<"node.completed">;
|
|
13742
14377
|
payload: z.ZodObject<{
|
|
13743
|
-
|
|
13744
|
-
|
|
13745
|
-
|
|
13746
|
-
|
|
13747
|
-
|
|
13748
|
-
|
|
14378
|
+
path: z.ZodString;
|
|
14379
|
+
kind: z.ZodString;
|
|
14380
|
+
key: z.ZodString;
|
|
14381
|
+
iterations: z.ZodOptional<z.ZodString>;
|
|
14382
|
+
effectId: z.ZodString;
|
|
14383
|
+
status: z.ZodEnum<{
|
|
14384
|
+
cancelled: "cancelled";
|
|
14385
|
+
completed: "completed";
|
|
14386
|
+
failed: "failed";
|
|
14387
|
+
}>;
|
|
13749
14388
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
13750
14389
|
gate: z.ZodOptional<z.ZodObject<{
|
|
13751
14390
|
startedAt: z.ZodString;
|
|
13752
14391
|
endedAt: z.ZodString;
|
|
13753
14392
|
}, z.core.$loose>>;
|
|
13754
|
-
firstTokenMs: z.ZodOptional<z.ZodNumber>;
|
|
13755
|
-
meteredUsage: z.ZodOptional<z.ZodObject<{
|
|
13756
|
-
inputTokens: z.ZodNumber;
|
|
13757
|
-
outputTokens: z.ZodNumber;
|
|
13758
|
-
totalTokens: z.ZodNumber;
|
|
13759
|
-
cachedTokens: z.ZodOptional<z.ZodNumber>;
|
|
13760
|
-
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
13761
|
-
}, z.core.$loose>>;
|
|
13762
|
-
invocationId: z.ZodOptional<z.ZodString>;
|
|
13763
|
-
code: z.ZodString;
|
|
13764
|
-
message: z.ZodString;
|
|
13765
|
-
retryable: z.ZodBoolean;
|
|
13766
14393
|
}, z.core.$loose>;
|
|
13767
14394
|
}, z.core.$strip> | z.ZodObject<{
|
|
13768
14395
|
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
@@ -13830,12 +14457,12 @@ export declare const SessionItemsResponse: z.ZodObject<{
|
|
|
13830
14457
|
metadata: "metadata";
|
|
13831
14458
|
}>;
|
|
13832
14459
|
} & {
|
|
13833
|
-
type: z.ZodLiteral<"node.
|
|
14460
|
+
type: z.ZodLiteral<"node.started">;
|
|
13834
14461
|
payload: z.ZodObject<{
|
|
13835
14462
|
path: z.ZodString;
|
|
14463
|
+
kind: z.ZodString;
|
|
14464
|
+
key: z.ZodString;
|
|
13836
14465
|
iterations: z.ZodOptional<z.ZodString>;
|
|
13837
|
-
sessionId: z.ZodString;
|
|
13838
|
-
turnId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13839
14466
|
}, z.core.$loose>;
|
|
13840
14467
|
}, z.core.$strip> | z.ZodObject<{
|
|
13841
14468
|
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
@@ -13903,22 +14530,18 @@ export declare const SessionItemsResponse: z.ZodObject<{
|
|
|
13903
14530
|
metadata: "metadata";
|
|
13904
14531
|
}>;
|
|
13905
14532
|
} & {
|
|
13906
|
-
type: z.ZodLiteral<"
|
|
14533
|
+
type: z.ZodLiteral<"plan.updated">;
|
|
13907
14534
|
payload: z.ZodObject<{
|
|
13908
|
-
|
|
13909
|
-
|
|
13910
|
-
|
|
13911
|
-
|
|
13912
|
-
|
|
13913
|
-
|
|
13914
|
-
|
|
13915
|
-
|
|
13916
|
-
|
|
13917
|
-
|
|
13918
|
-
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
13919
|
-
gate: z.ZodOptional<z.ZodObject<{
|
|
13920
|
-
startedAt: z.ZodString;
|
|
13921
|
-
endedAt: z.ZodString;
|
|
14535
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
14536
|
+
label: z.ZodString;
|
|
14537
|
+
state: z.ZodEnum<{
|
|
14538
|
+
active: "active";
|
|
14539
|
+
blocked: "blocked";
|
|
14540
|
+
done: "done";
|
|
14541
|
+
pending: "pending";
|
|
14542
|
+
skipped: "skipped";
|
|
14543
|
+
}>;
|
|
14544
|
+
note: z.ZodOptional<z.ZodString>;
|
|
13922
14545
|
}, z.core.$loose>>;
|
|
13923
14546
|
}, z.core.$loose>;
|
|
13924
14547
|
}, z.core.$strip> | z.ZodObject<{
|
|
@@ -13987,12 +14610,10 @@ export declare const SessionItemsResponse: z.ZodObject<{
|
|
|
13987
14610
|
metadata: "metadata";
|
|
13988
14611
|
}>;
|
|
13989
14612
|
} & {
|
|
13990
|
-
type: z.ZodLiteral<"
|
|
14613
|
+
type: z.ZodLiteral<"queue.cancelled">;
|
|
13991
14614
|
payload: z.ZodObject<{
|
|
13992
|
-
|
|
13993
|
-
|
|
13994
|
-
key: z.ZodString;
|
|
13995
|
-
iterations: z.ZodOptional<z.ZodString>;
|
|
14615
|
+
queuedMessageIds: z.ZodArray<z.ZodString>;
|
|
14616
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
13996
14617
|
}, z.core.$loose>;
|
|
13997
14618
|
}, z.core.$strip> | z.ZodObject<{
|
|
13998
14619
|
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
@@ -14060,19 +14681,14 @@ export declare const SessionItemsResponse: z.ZodObject<{
|
|
|
14060
14681
|
metadata: "metadata";
|
|
14061
14682
|
}>;
|
|
14062
14683
|
} & {
|
|
14063
|
-
type: z.ZodLiteral<"
|
|
14684
|
+
type: z.ZodLiteral<"queue.failed">;
|
|
14064
14685
|
payload: z.ZodObject<{
|
|
14065
|
-
|
|
14066
|
-
|
|
14067
|
-
|
|
14068
|
-
|
|
14069
|
-
|
|
14070
|
-
|
|
14071
|
-
pending: "pending";
|
|
14072
|
-
skipped: "skipped";
|
|
14073
|
-
}>;
|
|
14074
|
-
note: z.ZodOptional<z.ZodString>;
|
|
14075
|
-
}, z.core.$loose>>;
|
|
14686
|
+
queuedMessageIds: z.ZodArray<z.ZodString>;
|
|
14687
|
+
error: z.ZodObject<{
|
|
14688
|
+
code: z.ZodString;
|
|
14689
|
+
message: z.ZodString;
|
|
14690
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
14691
|
+
}, z.core.$loose>;
|
|
14076
14692
|
}, z.core.$loose>;
|
|
14077
14693
|
}, z.core.$strip> | z.ZodObject<{
|
|
14078
14694
|
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
@@ -14144,6 +14760,7 @@ export declare const SessionItemsResponse: z.ZodObject<{
|
|
|
14144
14760
|
payload: z.ZodObject<{
|
|
14145
14761
|
turnId: z.ZodString;
|
|
14146
14762
|
queuedMessageIds: z.ZodArray<z.ZodString>;
|
|
14763
|
+
step: z.ZodOptional<z.ZodNumber>;
|
|
14147
14764
|
}, z.core.$loose>;
|
|
14148
14765
|
}, z.core.$strip> | z.ZodObject<{
|
|
14149
14766
|
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
@@ -16546,6 +17163,7 @@ export declare const HistoryPage: z.ZodObject<{
|
|
|
16546
17163
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
16547
17164
|
queue: "queue";
|
|
16548
17165
|
reject: "reject";
|
|
17166
|
+
steer: "steer";
|
|
16549
17167
|
}>>;
|
|
16550
17168
|
queuedMessageId: z.ZodOptional<z.ZodString>;
|
|
16551
17169
|
cause: z.ZodOptional<z.ZodObject<{
|
|
@@ -17663,11 +18281,180 @@ export declare const HistoryPage: z.ZodObject<{
|
|
|
17663
18281
|
metadata: "metadata";
|
|
17664
18282
|
}>;
|
|
17665
18283
|
} & {
|
|
17666
|
-
type: z.ZodLiteral<"message.queued">;
|
|
18284
|
+
type: z.ZodLiteral<"message.queued">;
|
|
18285
|
+
payload: z.ZodObject<{
|
|
18286
|
+
queuedMessageId: z.ZodString;
|
|
18287
|
+
position: z.ZodNumber;
|
|
18288
|
+
requestId: z.ZodString;
|
|
18289
|
+
delivery: z.ZodOptional<z.ZodEnum<{
|
|
18290
|
+
queue: "queue";
|
|
18291
|
+
steer: "steer";
|
|
18292
|
+
}>>;
|
|
18293
|
+
}, z.core.$loose>;
|
|
18294
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
18295
|
+
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
18296
|
+
eventId: z.ZodString;
|
|
18297
|
+
tenantId: z.ZodString;
|
|
18298
|
+
sessionId: z.ZodString;
|
|
18299
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
18300
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
18301
|
+
incarnation: z.ZodNumber;
|
|
18302
|
+
epoch: z.ZodNumber;
|
|
18303
|
+
seq: z.ZodNumber;
|
|
18304
|
+
cursor: z.ZodString;
|
|
18305
|
+
time: z.ZodString;
|
|
18306
|
+
schemaVersion: z.ZodNumber;
|
|
18307
|
+
source: z.ZodObject<{
|
|
18308
|
+
kind: z.ZodEnum<{
|
|
18309
|
+
api: "api";
|
|
18310
|
+
client: "client";
|
|
18311
|
+
controller: "controller";
|
|
18312
|
+
core: "core";
|
|
18313
|
+
edge: "edge";
|
|
18314
|
+
"egress-gate": "egress-gate";
|
|
18315
|
+
evidence: "evidence";
|
|
18316
|
+
harness: "harness";
|
|
18317
|
+
human: "human";
|
|
18318
|
+
init: "init";
|
|
18319
|
+
loop: "loop";
|
|
18320
|
+
"model-gate": "model-gate";
|
|
18321
|
+
operator: "operator";
|
|
18322
|
+
sandboxes: "sandboxes";
|
|
18323
|
+
supervisor: "supervisor";
|
|
18324
|
+
"tool-gate": "tool-gate";
|
|
18325
|
+
}>;
|
|
18326
|
+
id: z.ZodString;
|
|
18327
|
+
}, z.core.$strip>;
|
|
18328
|
+
evidence: z.ZodEnum<{
|
|
18329
|
+
asserted: "asserted";
|
|
18330
|
+
attested: "attested";
|
|
18331
|
+
claimed: "claimed";
|
|
18332
|
+
measured: "measured";
|
|
18333
|
+
observed: "observed";
|
|
18334
|
+
}>;
|
|
18335
|
+
principal: z.ZodOptional<z.ZodObject<{
|
|
18336
|
+
kind: z.ZodEnum<{
|
|
18337
|
+
application: "application";
|
|
18338
|
+
core: "core";
|
|
18339
|
+
"flow-host": "flow-host";
|
|
18340
|
+
subject: "subject";
|
|
18341
|
+
trigger: "trigger";
|
|
18342
|
+
}>;
|
|
18343
|
+
id: z.ZodString;
|
|
18344
|
+
}, z.core.$strict>>;
|
|
18345
|
+
trace: z.ZodOptional<z.ZodObject<{
|
|
18346
|
+
traceId: z.ZodString;
|
|
18347
|
+
spanId: z.ZodString;
|
|
18348
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
18349
|
+
}, z.core.$strip>>;
|
|
18350
|
+
visibility: z.ZodEnum<{
|
|
18351
|
+
internal: "internal";
|
|
18352
|
+
public: "public";
|
|
18353
|
+
restricted: "restricted";
|
|
18354
|
+
}>;
|
|
18355
|
+
retention: z.ZodEnum<{
|
|
18356
|
+
full: "full";
|
|
18357
|
+
metadata: "metadata";
|
|
18358
|
+
}>;
|
|
18359
|
+
} & {
|
|
18360
|
+
type: z.ZodLiteral<"model.failed">;
|
|
18361
|
+
payload: z.ZodObject<{
|
|
18362
|
+
agent: z.ZodOptional<z.ZodObject<{
|
|
18363
|
+
id: z.ZodString;
|
|
18364
|
+
path: z.ZodString;
|
|
18365
|
+
delegationId: z.ZodOptional<z.ZodString>;
|
|
18366
|
+
}, z.core.$loose>>;
|
|
18367
|
+
effectId: z.ZodOptional<z.ZodString>;
|
|
18368
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
18369
|
+
gate: z.ZodOptional<z.ZodObject<{
|
|
18370
|
+
startedAt: z.ZodString;
|
|
18371
|
+
endedAt: z.ZodString;
|
|
18372
|
+
}, z.core.$loose>>;
|
|
18373
|
+
firstTokenMs: z.ZodOptional<z.ZodNumber>;
|
|
18374
|
+
meteredUsage: z.ZodOptional<z.ZodObject<{
|
|
18375
|
+
inputTokens: z.ZodNumber;
|
|
18376
|
+
outputTokens: z.ZodNumber;
|
|
18377
|
+
totalTokens: z.ZodNumber;
|
|
18378
|
+
cachedTokens: z.ZodOptional<z.ZodNumber>;
|
|
18379
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
18380
|
+
}, z.core.$loose>>;
|
|
18381
|
+
invocationId: z.ZodOptional<z.ZodString>;
|
|
18382
|
+
code: z.ZodString;
|
|
18383
|
+
message: z.ZodString;
|
|
18384
|
+
retryable: z.ZodBoolean;
|
|
18385
|
+
}, z.core.$loose>;
|
|
18386
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
18387
|
+
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
18388
|
+
eventId: z.ZodString;
|
|
18389
|
+
tenantId: z.ZodString;
|
|
18390
|
+
sessionId: z.ZodString;
|
|
18391
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
18392
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
18393
|
+
incarnation: z.ZodNumber;
|
|
18394
|
+
epoch: z.ZodNumber;
|
|
18395
|
+
seq: z.ZodNumber;
|
|
18396
|
+
cursor: z.ZodString;
|
|
18397
|
+
time: z.ZodString;
|
|
18398
|
+
schemaVersion: z.ZodNumber;
|
|
18399
|
+
source: z.ZodObject<{
|
|
18400
|
+
kind: z.ZodEnum<{
|
|
18401
|
+
api: "api";
|
|
18402
|
+
client: "client";
|
|
18403
|
+
controller: "controller";
|
|
18404
|
+
core: "core";
|
|
18405
|
+
edge: "edge";
|
|
18406
|
+
"egress-gate": "egress-gate";
|
|
18407
|
+
evidence: "evidence";
|
|
18408
|
+
harness: "harness";
|
|
18409
|
+
human: "human";
|
|
18410
|
+
init: "init";
|
|
18411
|
+
loop: "loop";
|
|
18412
|
+
"model-gate": "model-gate";
|
|
18413
|
+
operator: "operator";
|
|
18414
|
+
sandboxes: "sandboxes";
|
|
18415
|
+
supervisor: "supervisor";
|
|
18416
|
+
"tool-gate": "tool-gate";
|
|
18417
|
+
}>;
|
|
18418
|
+
id: z.ZodString;
|
|
18419
|
+
}, z.core.$strip>;
|
|
18420
|
+
evidence: z.ZodEnum<{
|
|
18421
|
+
asserted: "asserted";
|
|
18422
|
+
attested: "attested";
|
|
18423
|
+
claimed: "claimed";
|
|
18424
|
+
measured: "measured";
|
|
18425
|
+
observed: "observed";
|
|
18426
|
+
}>;
|
|
18427
|
+
principal: z.ZodOptional<z.ZodObject<{
|
|
18428
|
+
kind: z.ZodEnum<{
|
|
18429
|
+
application: "application";
|
|
18430
|
+
core: "core";
|
|
18431
|
+
"flow-host": "flow-host";
|
|
18432
|
+
subject: "subject";
|
|
18433
|
+
trigger: "trigger";
|
|
18434
|
+
}>;
|
|
18435
|
+
id: z.ZodString;
|
|
18436
|
+
}, z.core.$strict>>;
|
|
18437
|
+
trace: z.ZodOptional<z.ZodObject<{
|
|
18438
|
+
traceId: z.ZodString;
|
|
18439
|
+
spanId: z.ZodString;
|
|
18440
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
18441
|
+
}, z.core.$strip>>;
|
|
18442
|
+
visibility: z.ZodEnum<{
|
|
18443
|
+
internal: "internal";
|
|
18444
|
+
public: "public";
|
|
18445
|
+
restricted: "restricted";
|
|
18446
|
+
}>;
|
|
18447
|
+
retention: z.ZodEnum<{
|
|
18448
|
+
full: "full";
|
|
18449
|
+
metadata: "metadata";
|
|
18450
|
+
}>;
|
|
18451
|
+
} & {
|
|
18452
|
+
type: z.ZodLiteral<"node.agent">;
|
|
17667
18453
|
payload: z.ZodObject<{
|
|
17668
|
-
|
|
17669
|
-
|
|
17670
|
-
|
|
18454
|
+
path: z.ZodString;
|
|
18455
|
+
iterations: z.ZodOptional<z.ZodString>;
|
|
18456
|
+
sessionId: z.ZodString;
|
|
18457
|
+
turnId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17671
18458
|
}, z.core.$loose>;
|
|
17672
18459
|
}, z.core.$strip> | z.ZodObject<{
|
|
17673
18460
|
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
@@ -17735,31 +18522,23 @@ export declare const HistoryPage: z.ZodObject<{
|
|
|
17735
18522
|
metadata: "metadata";
|
|
17736
18523
|
}>;
|
|
17737
18524
|
} & {
|
|
17738
|
-
type: z.ZodLiteral<"
|
|
18525
|
+
type: z.ZodLiteral<"node.completed">;
|
|
17739
18526
|
payload: z.ZodObject<{
|
|
17740
|
-
|
|
17741
|
-
|
|
17742
|
-
|
|
17743
|
-
|
|
17744
|
-
|
|
17745
|
-
|
|
18527
|
+
path: z.ZodString;
|
|
18528
|
+
kind: z.ZodString;
|
|
18529
|
+
key: z.ZodString;
|
|
18530
|
+
iterations: z.ZodOptional<z.ZodString>;
|
|
18531
|
+
effectId: z.ZodString;
|
|
18532
|
+
status: z.ZodEnum<{
|
|
18533
|
+
cancelled: "cancelled";
|
|
18534
|
+
completed: "completed";
|
|
18535
|
+
failed: "failed";
|
|
18536
|
+
}>;
|
|
17746
18537
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
17747
18538
|
gate: z.ZodOptional<z.ZodObject<{
|
|
17748
18539
|
startedAt: z.ZodString;
|
|
17749
18540
|
endedAt: z.ZodString;
|
|
17750
18541
|
}, z.core.$loose>>;
|
|
17751
|
-
firstTokenMs: z.ZodOptional<z.ZodNumber>;
|
|
17752
|
-
meteredUsage: z.ZodOptional<z.ZodObject<{
|
|
17753
|
-
inputTokens: z.ZodNumber;
|
|
17754
|
-
outputTokens: z.ZodNumber;
|
|
17755
|
-
totalTokens: z.ZodNumber;
|
|
17756
|
-
cachedTokens: z.ZodOptional<z.ZodNumber>;
|
|
17757
|
-
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
17758
|
-
}, z.core.$loose>>;
|
|
17759
|
-
invocationId: z.ZodOptional<z.ZodString>;
|
|
17760
|
-
code: z.ZodString;
|
|
17761
|
-
message: z.ZodString;
|
|
17762
|
-
retryable: z.ZodBoolean;
|
|
17763
18542
|
}, z.core.$loose>;
|
|
17764
18543
|
}, z.core.$strip> | z.ZodObject<{
|
|
17765
18544
|
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
@@ -17827,12 +18606,12 @@ export declare const HistoryPage: z.ZodObject<{
|
|
|
17827
18606
|
metadata: "metadata";
|
|
17828
18607
|
}>;
|
|
17829
18608
|
} & {
|
|
17830
|
-
type: z.ZodLiteral<"node.
|
|
18609
|
+
type: z.ZodLiteral<"node.started">;
|
|
17831
18610
|
payload: z.ZodObject<{
|
|
17832
18611
|
path: z.ZodString;
|
|
18612
|
+
kind: z.ZodString;
|
|
18613
|
+
key: z.ZodString;
|
|
17833
18614
|
iterations: z.ZodOptional<z.ZodString>;
|
|
17834
|
-
sessionId: z.ZodString;
|
|
17835
|
-
turnId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17836
18615
|
}, z.core.$loose>;
|
|
17837
18616
|
}, z.core.$strip> | z.ZodObject<{
|
|
17838
18617
|
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
@@ -17900,22 +18679,18 @@ export declare const HistoryPage: z.ZodObject<{
|
|
|
17900
18679
|
metadata: "metadata";
|
|
17901
18680
|
}>;
|
|
17902
18681
|
} & {
|
|
17903
|
-
type: z.ZodLiteral<"
|
|
18682
|
+
type: z.ZodLiteral<"plan.updated">;
|
|
17904
18683
|
payload: z.ZodObject<{
|
|
17905
|
-
|
|
17906
|
-
|
|
17907
|
-
|
|
17908
|
-
|
|
17909
|
-
|
|
17910
|
-
|
|
17911
|
-
|
|
17912
|
-
|
|
17913
|
-
|
|
17914
|
-
|
|
17915
|
-
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
17916
|
-
gate: z.ZodOptional<z.ZodObject<{
|
|
17917
|
-
startedAt: z.ZodString;
|
|
17918
|
-
endedAt: z.ZodString;
|
|
18684
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
18685
|
+
label: z.ZodString;
|
|
18686
|
+
state: z.ZodEnum<{
|
|
18687
|
+
active: "active";
|
|
18688
|
+
blocked: "blocked";
|
|
18689
|
+
done: "done";
|
|
18690
|
+
pending: "pending";
|
|
18691
|
+
skipped: "skipped";
|
|
18692
|
+
}>;
|
|
18693
|
+
note: z.ZodOptional<z.ZodString>;
|
|
17919
18694
|
}, z.core.$loose>>;
|
|
17920
18695
|
}, z.core.$loose>;
|
|
17921
18696
|
}, z.core.$strip> | z.ZodObject<{
|
|
@@ -17984,12 +18759,10 @@ export declare const HistoryPage: z.ZodObject<{
|
|
|
17984
18759
|
metadata: "metadata";
|
|
17985
18760
|
}>;
|
|
17986
18761
|
} & {
|
|
17987
|
-
type: z.ZodLiteral<"
|
|
18762
|
+
type: z.ZodLiteral<"queue.cancelled">;
|
|
17988
18763
|
payload: z.ZodObject<{
|
|
17989
|
-
|
|
17990
|
-
|
|
17991
|
-
key: z.ZodString;
|
|
17992
|
-
iterations: z.ZodOptional<z.ZodString>;
|
|
18764
|
+
queuedMessageIds: z.ZodArray<z.ZodString>;
|
|
18765
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
17993
18766
|
}, z.core.$loose>;
|
|
17994
18767
|
}, z.core.$strip> | z.ZodObject<{
|
|
17995
18768
|
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
@@ -18057,19 +18830,14 @@ export declare const HistoryPage: z.ZodObject<{
|
|
|
18057
18830
|
metadata: "metadata";
|
|
18058
18831
|
}>;
|
|
18059
18832
|
} & {
|
|
18060
|
-
type: z.ZodLiteral<"
|
|
18833
|
+
type: z.ZodLiteral<"queue.failed">;
|
|
18061
18834
|
payload: z.ZodObject<{
|
|
18062
|
-
|
|
18063
|
-
|
|
18064
|
-
|
|
18065
|
-
|
|
18066
|
-
|
|
18067
|
-
|
|
18068
|
-
pending: "pending";
|
|
18069
|
-
skipped: "skipped";
|
|
18070
|
-
}>;
|
|
18071
|
-
note: z.ZodOptional<z.ZodString>;
|
|
18072
|
-
}, z.core.$loose>>;
|
|
18835
|
+
queuedMessageIds: z.ZodArray<z.ZodString>;
|
|
18836
|
+
error: z.ZodObject<{
|
|
18837
|
+
code: z.ZodString;
|
|
18838
|
+
message: z.ZodString;
|
|
18839
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
18840
|
+
}, z.core.$loose>;
|
|
18073
18841
|
}, z.core.$loose>;
|
|
18074
18842
|
}, z.core.$strip> | z.ZodObject<{
|
|
18075
18843
|
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
@@ -18141,6 +18909,7 @@ export declare const HistoryPage: z.ZodObject<{
|
|
|
18141
18909
|
payload: z.ZodObject<{
|
|
18142
18910
|
turnId: z.ZodString;
|
|
18143
18911
|
queuedMessageIds: z.ZodArray<z.ZodString>;
|
|
18912
|
+
step: z.ZodOptional<z.ZodNumber>;
|
|
18144
18913
|
}, z.core.$loose>;
|
|
18145
18914
|
}, z.core.$strip> | z.ZodObject<{
|
|
18146
18915
|
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
@@ -19625,6 +20394,7 @@ export declare const HistoryPage: z.ZodObject<{
|
|
|
19625
20394
|
delivery: z.ZodOptional<z.ZodEnum<{
|
|
19626
20395
|
queue: "queue";
|
|
19627
20396
|
reject: "reject";
|
|
20397
|
+
steer: "steer";
|
|
19628
20398
|
}>>;
|
|
19629
20399
|
queuedMessageId: z.ZodOptional<z.ZodString>;
|
|
19630
20400
|
cause: z.ZodOptional<z.ZodObject<{
|
|
@@ -20747,6 +21517,10 @@ export declare const HistoryPage: z.ZodObject<{
|
|
|
20747
21517
|
queuedMessageId: z.ZodString;
|
|
20748
21518
|
position: z.ZodNumber;
|
|
20749
21519
|
requestId: z.ZodString;
|
|
21520
|
+
delivery: z.ZodOptional<z.ZodEnum<{
|
|
21521
|
+
queue: "queue";
|
|
21522
|
+
steer: "steer";
|
|
21523
|
+
}>>;
|
|
20750
21524
|
}, z.core.$loose>;
|
|
20751
21525
|
}, z.core.$strip> | z.ZodObject<{
|
|
20752
21526
|
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
@@ -21215,11 +21989,158 @@ export declare const HistoryPage: z.ZodObject<{
|
|
|
21215
21989
|
full: "full";
|
|
21216
21990
|
metadata: "metadata";
|
|
21217
21991
|
}>;
|
|
21992
|
+
} & {
|
|
21993
|
+
type: z.ZodLiteral<"queue.cancelled">;
|
|
21994
|
+
payload: z.ZodObject<{
|
|
21995
|
+
queuedMessageIds: z.ZodArray<z.ZodString>;
|
|
21996
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
21997
|
+
}, z.core.$loose>;
|
|
21998
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
21999
|
+
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
22000
|
+
eventId: z.ZodString;
|
|
22001
|
+
tenantId: z.ZodString;
|
|
22002
|
+
sessionId: z.ZodString;
|
|
22003
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
22004
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
22005
|
+
incarnation: z.ZodNumber;
|
|
22006
|
+
epoch: z.ZodNumber;
|
|
22007
|
+
seq: z.ZodNumber;
|
|
22008
|
+
cursor: z.ZodString;
|
|
22009
|
+
time: z.ZodString;
|
|
22010
|
+
schemaVersion: z.ZodNumber;
|
|
22011
|
+
source: z.ZodObject<{
|
|
22012
|
+
kind: z.ZodEnum<{
|
|
22013
|
+
api: "api";
|
|
22014
|
+
client: "client";
|
|
22015
|
+
controller: "controller";
|
|
22016
|
+
core: "core";
|
|
22017
|
+
edge: "edge";
|
|
22018
|
+
"egress-gate": "egress-gate";
|
|
22019
|
+
evidence: "evidence";
|
|
22020
|
+
harness: "harness";
|
|
22021
|
+
human: "human";
|
|
22022
|
+
init: "init";
|
|
22023
|
+
loop: "loop";
|
|
22024
|
+
"model-gate": "model-gate";
|
|
22025
|
+
operator: "operator";
|
|
22026
|
+
sandboxes: "sandboxes";
|
|
22027
|
+
supervisor: "supervisor";
|
|
22028
|
+
"tool-gate": "tool-gate";
|
|
22029
|
+
}>;
|
|
22030
|
+
id: z.ZodString;
|
|
22031
|
+
}, z.core.$strip>;
|
|
22032
|
+
evidence: z.ZodEnum<{
|
|
22033
|
+
asserted: "asserted";
|
|
22034
|
+
attested: "attested";
|
|
22035
|
+
claimed: "claimed";
|
|
22036
|
+
measured: "measured";
|
|
22037
|
+
observed: "observed";
|
|
22038
|
+
}>;
|
|
22039
|
+
principal: z.ZodOptional<z.ZodObject<{
|
|
22040
|
+
kind: z.ZodEnum<{
|
|
22041
|
+
application: "application";
|
|
22042
|
+
core: "core";
|
|
22043
|
+
"flow-host": "flow-host";
|
|
22044
|
+
subject: "subject";
|
|
22045
|
+
trigger: "trigger";
|
|
22046
|
+
}>;
|
|
22047
|
+
id: z.ZodString;
|
|
22048
|
+
}, z.core.$strict>>;
|
|
22049
|
+
trace: z.ZodOptional<z.ZodObject<{
|
|
22050
|
+
traceId: z.ZodString;
|
|
22051
|
+
spanId: z.ZodString;
|
|
22052
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
22053
|
+
}, z.core.$strip>>;
|
|
22054
|
+
visibility: z.ZodEnum<{
|
|
22055
|
+
internal: "internal";
|
|
22056
|
+
public: "public";
|
|
22057
|
+
restricted: "restricted";
|
|
22058
|
+
}>;
|
|
22059
|
+
retention: z.ZodEnum<{
|
|
22060
|
+
full: "full";
|
|
22061
|
+
metadata: "metadata";
|
|
22062
|
+
}>;
|
|
22063
|
+
} & {
|
|
22064
|
+
type: z.ZodLiteral<"queue.failed">;
|
|
22065
|
+
payload: z.ZodObject<{
|
|
22066
|
+
queuedMessageIds: z.ZodArray<z.ZodString>;
|
|
22067
|
+
error: z.ZodObject<{
|
|
22068
|
+
code: z.ZodString;
|
|
22069
|
+
message: z.ZodString;
|
|
22070
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
22071
|
+
}, z.core.$loose>;
|
|
22072
|
+
}, z.core.$loose>;
|
|
22073
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
22074
|
+
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
22075
|
+
eventId: z.ZodString;
|
|
22076
|
+
tenantId: z.ZodString;
|
|
22077
|
+
sessionId: z.ZodString;
|
|
22078
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
22079
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
22080
|
+
incarnation: z.ZodNumber;
|
|
22081
|
+
epoch: z.ZodNumber;
|
|
22082
|
+
seq: z.ZodNumber;
|
|
22083
|
+
cursor: z.ZodString;
|
|
22084
|
+
time: z.ZodString;
|
|
22085
|
+
schemaVersion: z.ZodNumber;
|
|
22086
|
+
source: z.ZodObject<{
|
|
22087
|
+
kind: z.ZodEnum<{
|
|
22088
|
+
api: "api";
|
|
22089
|
+
client: "client";
|
|
22090
|
+
controller: "controller";
|
|
22091
|
+
core: "core";
|
|
22092
|
+
edge: "edge";
|
|
22093
|
+
"egress-gate": "egress-gate";
|
|
22094
|
+
evidence: "evidence";
|
|
22095
|
+
harness: "harness";
|
|
22096
|
+
human: "human";
|
|
22097
|
+
init: "init";
|
|
22098
|
+
loop: "loop";
|
|
22099
|
+
"model-gate": "model-gate";
|
|
22100
|
+
operator: "operator";
|
|
22101
|
+
sandboxes: "sandboxes";
|
|
22102
|
+
supervisor: "supervisor";
|
|
22103
|
+
"tool-gate": "tool-gate";
|
|
22104
|
+
}>;
|
|
22105
|
+
id: z.ZodString;
|
|
22106
|
+
}, z.core.$strip>;
|
|
22107
|
+
evidence: z.ZodEnum<{
|
|
22108
|
+
asserted: "asserted";
|
|
22109
|
+
attested: "attested";
|
|
22110
|
+
claimed: "claimed";
|
|
22111
|
+
measured: "measured";
|
|
22112
|
+
observed: "observed";
|
|
22113
|
+
}>;
|
|
22114
|
+
principal: z.ZodOptional<z.ZodObject<{
|
|
22115
|
+
kind: z.ZodEnum<{
|
|
22116
|
+
application: "application";
|
|
22117
|
+
core: "core";
|
|
22118
|
+
"flow-host": "flow-host";
|
|
22119
|
+
subject: "subject";
|
|
22120
|
+
trigger: "trigger";
|
|
22121
|
+
}>;
|
|
22122
|
+
id: z.ZodString;
|
|
22123
|
+
}, z.core.$strict>>;
|
|
22124
|
+
trace: z.ZodOptional<z.ZodObject<{
|
|
22125
|
+
traceId: z.ZodString;
|
|
22126
|
+
spanId: z.ZodString;
|
|
22127
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
22128
|
+
}, z.core.$strip>>;
|
|
22129
|
+
visibility: z.ZodEnum<{
|
|
22130
|
+
internal: "internal";
|
|
22131
|
+
public: "public";
|
|
22132
|
+
restricted: "restricted";
|
|
22133
|
+
}>;
|
|
22134
|
+
retention: z.ZodEnum<{
|
|
22135
|
+
full: "full";
|
|
22136
|
+
metadata: "metadata";
|
|
22137
|
+
}>;
|
|
21218
22138
|
} & {
|
|
21219
22139
|
type: z.ZodLiteral<"queue.taken">;
|
|
21220
22140
|
payload: z.ZodObject<{
|
|
21221
22141
|
turnId: z.ZodString;
|
|
21222
22142
|
queuedMessageIds: z.ZodArray<z.ZodString>;
|
|
22143
|
+
step: z.ZodOptional<z.ZodNumber>;
|
|
21223
22144
|
}, z.core.$loose>;
|
|
21224
22145
|
}, z.core.$strip> | z.ZodObject<{
|
|
21225
22146
|
schema: z.ZodLiteral<"nylorun.event/2">;
|