@nylorun/runtime 0.43.0-beta → 0.44.1-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 +37 -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 +1158 -280
- package/dist/artifacts/disk.js +7 -0
- package/dist/harness/main.js +8 -4
- package/dist/management-openapi.json +14 -4
- package/dist/openapi.json +433 -3
- 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/store.js +11 -0
- package/dist/store/types.d.ts +11 -1
- package/dist/tenant/agent-versions.d.ts +5 -1
- package/dist/tenant/agent-versions.js +8 -1
- package/dist/tenant/commands.d.ts +36 -7
- package/dist/tenant/commands.js +158 -40
- 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;
|
|
@@ -4911,6 +4913,152 @@ export declare const SessionEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
4911
4913
|
full: "full";
|
|
4912
4914
|
metadata: "metadata";
|
|
4913
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
|
+
}>;
|
|
4914
5062
|
} & {
|
|
4915
5063
|
type: z.ZodLiteral<"queue.taken">;
|
|
4916
5064
|
payload: z.ZodObject<{
|
|
@@ -7997,11 +8145,10 @@ export declare const SessionEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
7997
8145
|
metadata: "metadata";
|
|
7998
8146
|
}>;
|
|
7999
8147
|
} & {
|
|
8000
|
-
type: z.ZodLiteral<"queue.
|
|
8148
|
+
type: z.ZodLiteral<"queue.cancelled">;
|
|
8001
8149
|
payload: z.ZodObject<{
|
|
8002
|
-
turnId: z.ZodString;
|
|
8003
8150
|
queuedMessageIds: z.ZodArray<z.ZodString>;
|
|
8004
|
-
|
|
8151
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
8005
8152
|
}, z.core.$loose>;
|
|
8006
8153
|
}, z.core.$strip> | z.ZodObject<{
|
|
8007
8154
|
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
@@ -8069,50 +8216,14 @@ export declare const SessionEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
8069
8216
|
metadata: "metadata";
|
|
8070
8217
|
}>;
|
|
8071
8218
|
} & {
|
|
8072
|
-
type: z.ZodLiteral<"
|
|
8219
|
+
type: z.ZodLiteral<"queue.failed">;
|
|
8073
8220
|
payload: z.ZodObject<{
|
|
8074
|
-
|
|
8075
|
-
|
|
8076
|
-
|
|
8077
|
-
|
|
8078
|
-
|
|
8079
|
-
|
|
8080
|
-
}>;
|
|
8081
|
-
reason: z.ZodOptional<z.ZodEnum<{
|
|
8082
|
-
invalid_model: "invalid_model";
|
|
8083
|
-
not_in_catalog: "not_in_catalog";
|
|
8084
|
-
provider_not_connected: "provider_not_connected";
|
|
8085
|
-
}>>;
|
|
8086
|
-
requested: z.ZodOptional<z.ZodObject<{
|
|
8087
|
-
provider: z.ZodString;
|
|
8088
|
-
model: z.ZodString;
|
|
8089
|
-
by: z.ZodEnum<{
|
|
8090
|
-
manifest: "manifest";
|
|
8091
|
-
session: "session";
|
|
8092
|
-
}>;
|
|
8093
|
-
}, z.core.$strict>>;
|
|
8094
|
-
previous: z.ZodOptional<z.ZodObject<{
|
|
8095
|
-
provider: z.ZodString;
|
|
8096
|
-
model: z.ZodString;
|
|
8097
|
-
source: z.ZodEnum<{
|
|
8098
|
-
manifest: "manifest";
|
|
8099
|
-
session: "session";
|
|
8100
|
-
tenant: "tenant";
|
|
8101
|
-
}>;
|
|
8102
|
-
reason: z.ZodOptional<z.ZodEnum<{
|
|
8103
|
-
invalid_model: "invalid_model";
|
|
8104
|
-
not_in_catalog: "not_in_catalog";
|
|
8105
|
-
provider_not_connected: "provider_not_connected";
|
|
8106
|
-
}>>;
|
|
8107
|
-
requested: z.ZodOptional<z.ZodObject<{
|
|
8108
|
-
provider: z.ZodString;
|
|
8109
|
-
model: z.ZodString;
|
|
8110
|
-
by: z.ZodEnum<{
|
|
8111
|
-
manifest: "manifest";
|
|
8112
|
-
session: "session";
|
|
8113
|
-
}>;
|
|
8114
|
-
}, z.core.$strict>>;
|
|
8115
|
-
}, 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>;
|
|
8116
8227
|
}, z.core.$loose>;
|
|
8117
8228
|
}, z.core.$strip> | z.ZodObject<{
|
|
8118
8229
|
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
@@ -8180,59 +8291,11 @@ export declare const SessionEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
8180
8291
|
metadata: "metadata";
|
|
8181
8292
|
}>;
|
|
8182
8293
|
} & {
|
|
8183
|
-
type: z.ZodLiteral<"
|
|
8294
|
+
type: z.ZodLiteral<"queue.taken">;
|
|
8184
8295
|
payload: z.ZodObject<{
|
|
8185
|
-
|
|
8186
|
-
|
|
8187
|
-
|
|
8188
|
-
delegationId: z.ZodOptional<z.ZodString>;
|
|
8189
|
-
}, z.core.$loose>>;
|
|
8190
|
-
callId: z.ZodString;
|
|
8191
|
-
invocationId: z.ZodString;
|
|
8192
|
-
effectId: z.ZodOptional<z.ZodString>;
|
|
8193
|
-
toolName: z.ZodString;
|
|
8194
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
8195
|
-
cancelled: "cancelled";
|
|
8196
|
-
completed: "completed";
|
|
8197
|
-
failed: "failed";
|
|
8198
|
-
}>>;
|
|
8199
|
-
kind: z.ZodOptional<z.ZodEnum<{
|
|
8200
|
-
harness: "harness";
|
|
8201
|
-
http: "http";
|
|
8202
|
-
mcp: "mcp";
|
|
8203
|
-
runtime: "runtime";
|
|
8204
|
-
sandbox: "sandbox";
|
|
8205
|
-
}>>;
|
|
8206
|
-
server: z.ZodOptional<z.ZodString>;
|
|
8207
|
-
tool: z.ZodOptional<z.ZodString>;
|
|
8208
|
-
skill: z.ZodOptional<z.ZodString>;
|
|
8209
|
-
plugin: z.ZodOptional<z.ZodObject<{
|
|
8210
|
-
name: z.ZodString;
|
|
8211
|
-
version: z.ZodOptional<z.ZodString>;
|
|
8212
|
-
}, z.core.$strict>>;
|
|
8213
|
-
attempts: z.ZodOptional<z.ZodNumber>;
|
|
8214
|
-
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
8215
|
-
gate: z.ZodOptional<z.ZodObject<{
|
|
8216
|
-
startedAt: z.ZodString;
|
|
8217
|
-
endedAt: z.ZodString;
|
|
8218
|
-
}, z.core.$loose>>;
|
|
8219
|
-
policy: z.ZodOptional<z.ZodObject<{
|
|
8220
|
-
decision: z.ZodEnum<{
|
|
8221
|
-
ask: "ask";
|
|
8222
|
-
deny: "deny";
|
|
8223
|
-
}>;
|
|
8224
|
-
reason: z.ZodString;
|
|
8225
|
-
approvedBy: z.ZodOptional<z.ZodString>;
|
|
8226
|
-
}, z.core.$loose>>;
|
|
8227
|
-
output: z.ZodOptional<z.ZodUnknown>;
|
|
8228
|
-
error: z.ZodOptional<z.ZodObject<{
|
|
8229
|
-
code: z.ZodString;
|
|
8230
|
-
message: z.ZodString;
|
|
8231
|
-
server: z.ZodOptional<z.ZodString>;
|
|
8232
|
-
gateway: z.ZodOptional<z.ZodString>;
|
|
8233
|
-
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
8234
|
-
}, z.core.$loose>>;
|
|
8235
|
-
redacted: z.ZodOptional<z.ZodNumber>;
|
|
8296
|
+
turnId: z.ZodString;
|
|
8297
|
+
queuedMessageIds: z.ZodArray<z.ZodString>;
|
|
8298
|
+
step: z.ZodOptional<z.ZodNumber>;
|
|
8236
8299
|
}, z.core.$loose>;
|
|
8237
8300
|
}, z.core.$strip> | z.ZodObject<{
|
|
8238
8301
|
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
@@ -8300,11 +8363,242 @@ export declare const SessionEvent: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
8300
8363
|
metadata: "metadata";
|
|
8301
8364
|
}>;
|
|
8302
8365
|
} & {
|
|
8303
|
-
type: z.ZodLiteral<"
|
|
8366
|
+
type: z.ZodLiteral<"session.model">;
|
|
8304
8367
|
payload: z.ZodObject<{
|
|
8305
|
-
|
|
8306
|
-
|
|
8307
|
-
|
|
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>;
|
|
8506
|
+
}, z.core.$strict>>;
|
|
8507
|
+
attempts: z.ZodOptional<z.ZodNumber>;
|
|
8508
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
8509
|
+
gate: z.ZodOptional<z.ZodObject<{
|
|
8510
|
+
startedAt: z.ZodString;
|
|
8511
|
+
endedAt: z.ZodString;
|
|
8512
|
+
}, z.core.$loose>>;
|
|
8513
|
+
policy: z.ZodOptional<z.ZodObject<{
|
|
8514
|
+
decision: z.ZodEnum<{
|
|
8515
|
+
ask: "ask";
|
|
8516
|
+
deny: "deny";
|
|
8517
|
+
}>;
|
|
8518
|
+
reason: z.ZodString;
|
|
8519
|
+
approvedBy: z.ZodOptional<z.ZodString>;
|
|
8520
|
+
}, z.core.$loose>>;
|
|
8521
|
+
output: z.ZodOptional<z.ZodUnknown>;
|
|
8522
|
+
error: z.ZodOptional<z.ZodObject<{
|
|
8523
|
+
code: z.ZodString;
|
|
8524
|
+
message: z.ZodString;
|
|
8525
|
+
server: z.ZodOptional<z.ZodString>;
|
|
8526
|
+
gateway: z.ZodOptional<z.ZodString>;
|
|
8527
|
+
retryable: z.ZodOptional<z.ZodBoolean>;
|
|
8528
|
+
}, z.core.$loose>>;
|
|
8529
|
+
redacted: z.ZodOptional<z.ZodNumber>;
|
|
8530
|
+
}, z.core.$loose>;
|
|
8531
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
8532
|
+
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
8533
|
+
eventId: z.ZodString;
|
|
8534
|
+
tenantId: z.ZodString;
|
|
8535
|
+
sessionId: z.ZodString;
|
|
8536
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
8537
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
8538
|
+
incarnation: z.ZodNumber;
|
|
8539
|
+
epoch: z.ZodNumber;
|
|
8540
|
+
seq: z.ZodNumber;
|
|
8541
|
+
cursor: z.ZodString;
|
|
8542
|
+
time: z.ZodString;
|
|
8543
|
+
schemaVersion: z.ZodNumber;
|
|
8544
|
+
source: z.ZodObject<{
|
|
8545
|
+
kind: z.ZodEnum<{
|
|
8546
|
+
api: "api";
|
|
8547
|
+
client: "client";
|
|
8548
|
+
controller: "controller";
|
|
8549
|
+
core: "core";
|
|
8550
|
+
edge: "edge";
|
|
8551
|
+
"egress-gate": "egress-gate";
|
|
8552
|
+
evidence: "evidence";
|
|
8553
|
+
harness: "harness";
|
|
8554
|
+
human: "human";
|
|
8555
|
+
init: "init";
|
|
8556
|
+
loop: "loop";
|
|
8557
|
+
"model-gate": "model-gate";
|
|
8558
|
+
operator: "operator";
|
|
8559
|
+
sandboxes: "sandboxes";
|
|
8560
|
+
supervisor: "supervisor";
|
|
8561
|
+
"tool-gate": "tool-gate";
|
|
8562
|
+
}>;
|
|
8563
|
+
id: z.ZodString;
|
|
8564
|
+
}, z.core.$strip>;
|
|
8565
|
+
evidence: z.ZodEnum<{
|
|
8566
|
+
asserted: "asserted";
|
|
8567
|
+
attested: "attested";
|
|
8568
|
+
claimed: "claimed";
|
|
8569
|
+
measured: "measured";
|
|
8570
|
+
observed: "observed";
|
|
8571
|
+
}>;
|
|
8572
|
+
principal: z.ZodOptional<z.ZodObject<{
|
|
8573
|
+
kind: z.ZodEnum<{
|
|
8574
|
+
application: "application";
|
|
8575
|
+
core: "core";
|
|
8576
|
+
"flow-host": "flow-host";
|
|
8577
|
+
subject: "subject";
|
|
8578
|
+
trigger: "trigger";
|
|
8579
|
+
}>;
|
|
8580
|
+
id: z.ZodString;
|
|
8581
|
+
}, z.core.$strict>>;
|
|
8582
|
+
trace: z.ZodOptional<z.ZodObject<{
|
|
8583
|
+
traceId: z.ZodString;
|
|
8584
|
+
spanId: z.ZodString;
|
|
8585
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
8586
|
+
}, z.core.$strip>>;
|
|
8587
|
+
visibility: z.ZodEnum<{
|
|
8588
|
+
internal: "internal";
|
|
8589
|
+
public: "public";
|
|
8590
|
+
restricted: "restricted";
|
|
8591
|
+
}>;
|
|
8592
|
+
retention: z.ZodEnum<{
|
|
8593
|
+
full: "full";
|
|
8594
|
+
metadata: "metadata";
|
|
8595
|
+
}>;
|
|
8596
|
+
} & {
|
|
8597
|
+
type: z.ZodLiteral<"transcript.updated">;
|
|
8598
|
+
payload: z.ZodObject<{
|
|
8599
|
+
keep: z.ZodNumber;
|
|
8600
|
+
entries: z.ZodArray<z.ZodUnknown>;
|
|
8601
|
+
length: z.ZodNumber;
|
|
8308
8602
|
}, z.core.$loose>;
|
|
8309
8603
|
}, z.core.$strip> | z.ZodObject<{
|
|
8310
8604
|
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
@@ -10683,31 +10977,188 @@ export declare const SessionItemsResponse: z.ZodObject<{
|
|
|
10683
10977
|
metadata: "metadata";
|
|
10684
10978
|
}>;
|
|
10685
10979
|
} & {
|
|
10686
|
-
type: z.ZodLiteral<"model.failed">;
|
|
10980
|
+
type: z.ZodLiteral<"model.failed">;
|
|
10981
|
+
payload: z.ZodObject<{
|
|
10982
|
+
agent: z.ZodOptional<z.ZodObject<{
|
|
10983
|
+
id: z.ZodString;
|
|
10984
|
+
path: z.ZodString;
|
|
10985
|
+
delegationId: z.ZodOptional<z.ZodString>;
|
|
10986
|
+
}, z.core.$loose>>;
|
|
10987
|
+
effectId: z.ZodOptional<z.ZodString>;
|
|
10988
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
10989
|
+
gate: z.ZodOptional<z.ZodObject<{
|
|
10990
|
+
startedAt: z.ZodString;
|
|
10991
|
+
endedAt: z.ZodString;
|
|
10992
|
+
}, z.core.$loose>>;
|
|
10993
|
+
firstTokenMs: z.ZodOptional<z.ZodNumber>;
|
|
10994
|
+
meteredUsage: z.ZodOptional<z.ZodObject<{
|
|
10995
|
+
inputTokens: z.ZodNumber;
|
|
10996
|
+
outputTokens: z.ZodNumber;
|
|
10997
|
+
totalTokens: z.ZodNumber;
|
|
10998
|
+
cachedTokens: z.ZodOptional<z.ZodNumber>;
|
|
10999
|
+
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
11000
|
+
}, z.core.$loose>>;
|
|
11001
|
+
invocationId: z.ZodOptional<z.ZodString>;
|
|
11002
|
+
code: z.ZodString;
|
|
11003
|
+
message: z.ZodString;
|
|
11004
|
+
retryable: z.ZodBoolean;
|
|
11005
|
+
}, z.core.$loose>;
|
|
11006
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
11007
|
+
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
11008
|
+
eventId: z.ZodString;
|
|
11009
|
+
tenantId: z.ZodString;
|
|
11010
|
+
sessionId: z.ZodString;
|
|
11011
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
11012
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
11013
|
+
incarnation: z.ZodNumber;
|
|
11014
|
+
epoch: z.ZodNumber;
|
|
11015
|
+
seq: z.ZodNumber;
|
|
11016
|
+
cursor: z.ZodString;
|
|
11017
|
+
time: z.ZodString;
|
|
11018
|
+
schemaVersion: z.ZodNumber;
|
|
11019
|
+
source: z.ZodObject<{
|
|
11020
|
+
kind: z.ZodEnum<{
|
|
11021
|
+
api: "api";
|
|
11022
|
+
client: "client";
|
|
11023
|
+
controller: "controller";
|
|
11024
|
+
core: "core";
|
|
11025
|
+
edge: "edge";
|
|
11026
|
+
"egress-gate": "egress-gate";
|
|
11027
|
+
evidence: "evidence";
|
|
11028
|
+
harness: "harness";
|
|
11029
|
+
human: "human";
|
|
11030
|
+
init: "init";
|
|
11031
|
+
loop: "loop";
|
|
11032
|
+
"model-gate": "model-gate";
|
|
11033
|
+
operator: "operator";
|
|
11034
|
+
sandboxes: "sandboxes";
|
|
11035
|
+
supervisor: "supervisor";
|
|
11036
|
+
"tool-gate": "tool-gate";
|
|
11037
|
+
}>;
|
|
11038
|
+
id: z.ZodString;
|
|
11039
|
+
}, z.core.$strip>;
|
|
11040
|
+
evidence: z.ZodEnum<{
|
|
11041
|
+
asserted: "asserted";
|
|
11042
|
+
attested: "attested";
|
|
11043
|
+
claimed: "claimed";
|
|
11044
|
+
measured: "measured";
|
|
11045
|
+
observed: "observed";
|
|
11046
|
+
}>;
|
|
11047
|
+
principal: z.ZodOptional<z.ZodObject<{
|
|
11048
|
+
kind: z.ZodEnum<{
|
|
11049
|
+
application: "application";
|
|
11050
|
+
core: "core";
|
|
11051
|
+
"flow-host": "flow-host";
|
|
11052
|
+
subject: "subject";
|
|
11053
|
+
trigger: "trigger";
|
|
11054
|
+
}>;
|
|
11055
|
+
id: z.ZodString;
|
|
11056
|
+
}, z.core.$strict>>;
|
|
11057
|
+
trace: z.ZodOptional<z.ZodObject<{
|
|
11058
|
+
traceId: z.ZodString;
|
|
11059
|
+
spanId: z.ZodString;
|
|
11060
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
11061
|
+
}, z.core.$strip>>;
|
|
11062
|
+
visibility: z.ZodEnum<{
|
|
11063
|
+
internal: "internal";
|
|
11064
|
+
public: "public";
|
|
11065
|
+
restricted: "restricted";
|
|
11066
|
+
}>;
|
|
11067
|
+
retention: z.ZodEnum<{
|
|
11068
|
+
full: "full";
|
|
11069
|
+
metadata: "metadata";
|
|
11070
|
+
}>;
|
|
11071
|
+
} & {
|
|
11072
|
+
type: z.ZodLiteral<"node.agent">;
|
|
11073
|
+
payload: z.ZodObject<{
|
|
11074
|
+
path: z.ZodString;
|
|
11075
|
+
iterations: z.ZodOptional<z.ZodString>;
|
|
11076
|
+
sessionId: z.ZodString;
|
|
11077
|
+
turnId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
11078
|
+
}, z.core.$loose>;
|
|
11079
|
+
}, z.core.$strip> | z.ZodObject<{
|
|
11080
|
+
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
11081
|
+
eventId: z.ZodString;
|
|
11082
|
+
tenantId: z.ZodString;
|
|
11083
|
+
sessionId: z.ZodString;
|
|
11084
|
+
runId: z.ZodNullable<z.ZodString>;
|
|
11085
|
+
turnId: z.ZodNullable<z.ZodString>;
|
|
11086
|
+
incarnation: z.ZodNumber;
|
|
11087
|
+
epoch: z.ZodNumber;
|
|
11088
|
+
seq: z.ZodNumber;
|
|
11089
|
+
cursor: z.ZodString;
|
|
11090
|
+
time: z.ZodString;
|
|
11091
|
+
schemaVersion: z.ZodNumber;
|
|
11092
|
+
source: z.ZodObject<{
|
|
11093
|
+
kind: z.ZodEnum<{
|
|
11094
|
+
api: "api";
|
|
11095
|
+
client: "client";
|
|
11096
|
+
controller: "controller";
|
|
11097
|
+
core: "core";
|
|
11098
|
+
edge: "edge";
|
|
11099
|
+
"egress-gate": "egress-gate";
|
|
11100
|
+
evidence: "evidence";
|
|
11101
|
+
harness: "harness";
|
|
11102
|
+
human: "human";
|
|
11103
|
+
init: "init";
|
|
11104
|
+
loop: "loop";
|
|
11105
|
+
"model-gate": "model-gate";
|
|
11106
|
+
operator: "operator";
|
|
11107
|
+
sandboxes: "sandboxes";
|
|
11108
|
+
supervisor: "supervisor";
|
|
11109
|
+
"tool-gate": "tool-gate";
|
|
11110
|
+
}>;
|
|
11111
|
+
id: z.ZodString;
|
|
11112
|
+
}, z.core.$strip>;
|
|
11113
|
+
evidence: z.ZodEnum<{
|
|
11114
|
+
asserted: "asserted";
|
|
11115
|
+
attested: "attested";
|
|
11116
|
+
claimed: "claimed";
|
|
11117
|
+
measured: "measured";
|
|
11118
|
+
observed: "observed";
|
|
11119
|
+
}>;
|
|
11120
|
+
principal: z.ZodOptional<z.ZodObject<{
|
|
11121
|
+
kind: z.ZodEnum<{
|
|
11122
|
+
application: "application";
|
|
11123
|
+
core: "core";
|
|
11124
|
+
"flow-host": "flow-host";
|
|
11125
|
+
subject: "subject";
|
|
11126
|
+
trigger: "trigger";
|
|
11127
|
+
}>;
|
|
11128
|
+
id: z.ZodString;
|
|
11129
|
+
}, z.core.$strict>>;
|
|
11130
|
+
trace: z.ZodOptional<z.ZodObject<{
|
|
11131
|
+
traceId: z.ZodString;
|
|
11132
|
+
spanId: z.ZodString;
|
|
11133
|
+
parentSpanId: z.ZodOptional<z.ZodString>;
|
|
11134
|
+
}, z.core.$strip>>;
|
|
11135
|
+
visibility: z.ZodEnum<{
|
|
11136
|
+
internal: "internal";
|
|
11137
|
+
public: "public";
|
|
11138
|
+
restricted: "restricted";
|
|
11139
|
+
}>;
|
|
11140
|
+
retention: z.ZodEnum<{
|
|
11141
|
+
full: "full";
|
|
11142
|
+
metadata: "metadata";
|
|
11143
|
+
}>;
|
|
11144
|
+
} & {
|
|
11145
|
+
type: z.ZodLiteral<"node.completed">;
|
|
10687
11146
|
payload: z.ZodObject<{
|
|
10688
|
-
|
|
10689
|
-
|
|
10690
|
-
|
|
10691
|
-
|
|
10692
|
-
|
|
10693
|
-
|
|
11147
|
+
path: z.ZodString;
|
|
11148
|
+
kind: z.ZodString;
|
|
11149
|
+
key: z.ZodString;
|
|
11150
|
+
iterations: z.ZodOptional<z.ZodString>;
|
|
11151
|
+
effectId: z.ZodString;
|
|
11152
|
+
status: z.ZodEnum<{
|
|
11153
|
+
cancelled: "cancelled";
|
|
11154
|
+
completed: "completed";
|
|
11155
|
+
failed: "failed";
|
|
11156
|
+
}>;
|
|
10694
11157
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
10695
11158
|
gate: z.ZodOptional<z.ZodObject<{
|
|
10696
11159
|
startedAt: z.ZodString;
|
|
10697
11160
|
endedAt: z.ZodString;
|
|
10698
11161
|
}, z.core.$loose>>;
|
|
10699
|
-
firstTokenMs: z.ZodOptional<z.ZodNumber>;
|
|
10700
|
-
meteredUsage: z.ZodOptional<z.ZodObject<{
|
|
10701
|
-
inputTokens: z.ZodNumber;
|
|
10702
|
-
outputTokens: z.ZodNumber;
|
|
10703
|
-
totalTokens: z.ZodNumber;
|
|
10704
|
-
cachedTokens: z.ZodOptional<z.ZodNumber>;
|
|
10705
|
-
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
10706
|
-
}, z.core.$loose>>;
|
|
10707
|
-
invocationId: z.ZodOptional<z.ZodString>;
|
|
10708
|
-
code: z.ZodString;
|
|
10709
|
-
message: z.ZodString;
|
|
10710
|
-
retryable: z.ZodBoolean;
|
|
10711
11162
|
}, z.core.$loose>;
|
|
10712
11163
|
}, z.core.$strip> | z.ZodObject<{
|
|
10713
11164
|
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
@@ -10775,12 +11226,12 @@ export declare const SessionItemsResponse: z.ZodObject<{
|
|
|
10775
11226
|
metadata: "metadata";
|
|
10776
11227
|
}>;
|
|
10777
11228
|
} & {
|
|
10778
|
-
type: z.ZodLiteral<"node.
|
|
11229
|
+
type: z.ZodLiteral<"node.started">;
|
|
10779
11230
|
payload: z.ZodObject<{
|
|
10780
11231
|
path: z.ZodString;
|
|
11232
|
+
kind: z.ZodString;
|
|
11233
|
+
key: z.ZodString;
|
|
10781
11234
|
iterations: z.ZodOptional<z.ZodString>;
|
|
10782
|
-
sessionId: z.ZodString;
|
|
10783
|
-
turnId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
10784
11235
|
}, z.core.$loose>;
|
|
10785
11236
|
}, z.core.$strip> | z.ZodObject<{
|
|
10786
11237
|
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
@@ -10848,22 +11299,18 @@ export declare const SessionItemsResponse: z.ZodObject<{
|
|
|
10848
11299
|
metadata: "metadata";
|
|
10849
11300
|
}>;
|
|
10850
11301
|
} & {
|
|
10851
|
-
type: z.ZodLiteral<"
|
|
11302
|
+
type: z.ZodLiteral<"plan.updated">;
|
|
10852
11303
|
payload: z.ZodObject<{
|
|
10853
|
-
|
|
10854
|
-
|
|
10855
|
-
|
|
10856
|
-
|
|
10857
|
-
|
|
10858
|
-
|
|
10859
|
-
|
|
10860
|
-
|
|
10861
|
-
|
|
10862
|
-
|
|
10863
|
-
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
10864
|
-
gate: z.ZodOptional<z.ZodObject<{
|
|
10865
|
-
startedAt: z.ZodString;
|
|
10866
|
-
endedAt: z.ZodString;
|
|
11304
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
11305
|
+
label: z.ZodString;
|
|
11306
|
+
state: z.ZodEnum<{
|
|
11307
|
+
active: "active";
|
|
11308
|
+
blocked: "blocked";
|
|
11309
|
+
done: "done";
|
|
11310
|
+
pending: "pending";
|
|
11311
|
+
skipped: "skipped";
|
|
11312
|
+
}>;
|
|
11313
|
+
note: z.ZodOptional<z.ZodString>;
|
|
10867
11314
|
}, z.core.$loose>>;
|
|
10868
11315
|
}, z.core.$loose>;
|
|
10869
11316
|
}, z.core.$strip> | z.ZodObject<{
|
|
@@ -10932,12 +11379,10 @@ export declare const SessionItemsResponse: z.ZodObject<{
|
|
|
10932
11379
|
metadata: "metadata";
|
|
10933
11380
|
}>;
|
|
10934
11381
|
} & {
|
|
10935
|
-
type: z.ZodLiteral<"
|
|
11382
|
+
type: z.ZodLiteral<"queue.cancelled">;
|
|
10936
11383
|
payload: z.ZodObject<{
|
|
10937
|
-
|
|
10938
|
-
|
|
10939
|
-
key: z.ZodString;
|
|
10940
|
-
iterations: z.ZodOptional<z.ZodString>;
|
|
11384
|
+
queuedMessageIds: z.ZodArray<z.ZodString>;
|
|
11385
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
10941
11386
|
}, z.core.$loose>;
|
|
10942
11387
|
}, z.core.$strip> | z.ZodObject<{
|
|
10943
11388
|
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
@@ -11005,19 +11450,14 @@ export declare const SessionItemsResponse: z.ZodObject<{
|
|
|
11005
11450
|
metadata: "metadata";
|
|
11006
11451
|
}>;
|
|
11007
11452
|
} & {
|
|
11008
|
-
type: z.ZodLiteral<"
|
|
11453
|
+
type: z.ZodLiteral<"queue.failed">;
|
|
11009
11454
|
payload: z.ZodObject<{
|
|
11010
|
-
|
|
11011
|
-
|
|
11012
|
-
|
|
11013
|
-
|
|
11014
|
-
|
|
11015
|
-
|
|
11016
|
-
pending: "pending";
|
|
11017
|
-
skipped: "skipped";
|
|
11018
|
-
}>;
|
|
11019
|
-
note: z.ZodOptional<z.ZodString>;
|
|
11020
|
-
}, z.core.$loose>>;
|
|
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>;
|
|
11021
11461
|
}, z.core.$loose>;
|
|
11022
11462
|
}, z.core.$strip> | z.ZodObject<{
|
|
11023
11463
|
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
@@ -13692,15 +14132,180 @@ export declare const SessionItemsResponse: z.ZodObject<{
|
|
|
13692
14132
|
metadata: "metadata";
|
|
13693
14133
|
}>;
|
|
13694
14134
|
} & {
|
|
13695
|
-
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">;
|
|
13696
14304
|
payload: z.ZodObject<{
|
|
13697
|
-
|
|
13698
|
-
|
|
13699
|
-
|
|
13700
|
-
|
|
13701
|
-
queue: "queue";
|
|
13702
|
-
steer: "steer";
|
|
13703
|
-
}>>;
|
|
14305
|
+
path: z.ZodString;
|
|
14306
|
+
iterations: z.ZodOptional<z.ZodString>;
|
|
14307
|
+
sessionId: z.ZodString;
|
|
14308
|
+
turnId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13704
14309
|
}, z.core.$loose>;
|
|
13705
14310
|
}, z.core.$strip> | z.ZodObject<{
|
|
13706
14311
|
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
@@ -13768,31 +14373,23 @@ export declare const SessionItemsResponse: z.ZodObject<{
|
|
|
13768
14373
|
metadata: "metadata";
|
|
13769
14374
|
}>;
|
|
13770
14375
|
} & {
|
|
13771
|
-
type: z.ZodLiteral<"
|
|
14376
|
+
type: z.ZodLiteral<"node.completed">;
|
|
13772
14377
|
payload: z.ZodObject<{
|
|
13773
|
-
|
|
13774
|
-
|
|
13775
|
-
|
|
13776
|
-
|
|
13777
|
-
|
|
13778
|
-
|
|
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
|
+
}>;
|
|
13779
14388
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
13780
14389
|
gate: z.ZodOptional<z.ZodObject<{
|
|
13781
14390
|
startedAt: z.ZodString;
|
|
13782
14391
|
endedAt: z.ZodString;
|
|
13783
14392
|
}, z.core.$loose>>;
|
|
13784
|
-
firstTokenMs: z.ZodOptional<z.ZodNumber>;
|
|
13785
|
-
meteredUsage: z.ZodOptional<z.ZodObject<{
|
|
13786
|
-
inputTokens: z.ZodNumber;
|
|
13787
|
-
outputTokens: z.ZodNumber;
|
|
13788
|
-
totalTokens: z.ZodNumber;
|
|
13789
|
-
cachedTokens: z.ZodOptional<z.ZodNumber>;
|
|
13790
|
-
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
13791
|
-
}, z.core.$loose>>;
|
|
13792
|
-
invocationId: z.ZodOptional<z.ZodString>;
|
|
13793
|
-
code: z.ZodString;
|
|
13794
|
-
message: z.ZodString;
|
|
13795
|
-
retryable: z.ZodBoolean;
|
|
13796
14393
|
}, z.core.$loose>;
|
|
13797
14394
|
}, z.core.$strip> | z.ZodObject<{
|
|
13798
14395
|
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
@@ -13860,12 +14457,12 @@ export declare const SessionItemsResponse: z.ZodObject<{
|
|
|
13860
14457
|
metadata: "metadata";
|
|
13861
14458
|
}>;
|
|
13862
14459
|
} & {
|
|
13863
|
-
type: z.ZodLiteral<"node.
|
|
14460
|
+
type: z.ZodLiteral<"node.started">;
|
|
13864
14461
|
payload: z.ZodObject<{
|
|
13865
14462
|
path: z.ZodString;
|
|
14463
|
+
kind: z.ZodString;
|
|
14464
|
+
key: z.ZodString;
|
|
13866
14465
|
iterations: z.ZodOptional<z.ZodString>;
|
|
13867
|
-
sessionId: z.ZodString;
|
|
13868
|
-
turnId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
13869
14466
|
}, z.core.$loose>;
|
|
13870
14467
|
}, z.core.$strip> | z.ZodObject<{
|
|
13871
14468
|
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
@@ -13933,22 +14530,18 @@ export declare const SessionItemsResponse: z.ZodObject<{
|
|
|
13933
14530
|
metadata: "metadata";
|
|
13934
14531
|
}>;
|
|
13935
14532
|
} & {
|
|
13936
|
-
type: z.ZodLiteral<"
|
|
14533
|
+
type: z.ZodLiteral<"plan.updated">;
|
|
13937
14534
|
payload: z.ZodObject<{
|
|
13938
|
-
|
|
13939
|
-
|
|
13940
|
-
|
|
13941
|
-
|
|
13942
|
-
|
|
13943
|
-
|
|
13944
|
-
|
|
13945
|
-
|
|
13946
|
-
|
|
13947
|
-
|
|
13948
|
-
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
13949
|
-
gate: z.ZodOptional<z.ZodObject<{
|
|
13950
|
-
startedAt: z.ZodString;
|
|
13951
|
-
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>;
|
|
13952
14545
|
}, z.core.$loose>>;
|
|
13953
14546
|
}, z.core.$loose>;
|
|
13954
14547
|
}, z.core.$strip> | z.ZodObject<{
|
|
@@ -14017,12 +14610,10 @@ export declare const SessionItemsResponse: z.ZodObject<{
|
|
|
14017
14610
|
metadata: "metadata";
|
|
14018
14611
|
}>;
|
|
14019
14612
|
} & {
|
|
14020
|
-
type: z.ZodLiteral<"
|
|
14613
|
+
type: z.ZodLiteral<"queue.cancelled">;
|
|
14021
14614
|
payload: z.ZodObject<{
|
|
14022
|
-
|
|
14023
|
-
|
|
14024
|
-
key: z.ZodString;
|
|
14025
|
-
iterations: z.ZodOptional<z.ZodString>;
|
|
14615
|
+
queuedMessageIds: z.ZodArray<z.ZodString>;
|
|
14616
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
14026
14617
|
}, z.core.$loose>;
|
|
14027
14618
|
}, z.core.$strip> | z.ZodObject<{
|
|
14028
14619
|
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
@@ -14090,19 +14681,14 @@ export declare const SessionItemsResponse: z.ZodObject<{
|
|
|
14090
14681
|
metadata: "metadata";
|
|
14091
14682
|
}>;
|
|
14092
14683
|
} & {
|
|
14093
|
-
type: z.ZodLiteral<"
|
|
14684
|
+
type: z.ZodLiteral<"queue.failed">;
|
|
14094
14685
|
payload: z.ZodObject<{
|
|
14095
|
-
|
|
14096
|
-
|
|
14097
|
-
|
|
14098
|
-
|
|
14099
|
-
|
|
14100
|
-
|
|
14101
|
-
pending: "pending";
|
|
14102
|
-
skipped: "skipped";
|
|
14103
|
-
}>;
|
|
14104
|
-
note: z.ZodOptional<z.ZodString>;
|
|
14105
|
-
}, 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>;
|
|
14106
14692
|
}, z.core.$loose>;
|
|
14107
14693
|
}, z.core.$strip> | z.ZodObject<{
|
|
14108
14694
|
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
@@ -17695,15 +18281,180 @@ export declare const HistoryPage: z.ZodObject<{
|
|
|
17695
18281
|
metadata: "metadata";
|
|
17696
18282
|
}>;
|
|
17697
18283
|
} & {
|
|
17698
|
-
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">;
|
|
17699
18453
|
payload: z.ZodObject<{
|
|
17700
|
-
|
|
17701
|
-
|
|
17702
|
-
|
|
17703
|
-
|
|
17704
|
-
queue: "queue";
|
|
17705
|
-
steer: "steer";
|
|
17706
|
-
}>>;
|
|
18454
|
+
path: z.ZodString;
|
|
18455
|
+
iterations: z.ZodOptional<z.ZodString>;
|
|
18456
|
+
sessionId: z.ZodString;
|
|
18457
|
+
turnId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17707
18458
|
}, z.core.$loose>;
|
|
17708
18459
|
}, z.core.$strip> | z.ZodObject<{
|
|
17709
18460
|
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
@@ -17771,31 +18522,23 @@ export declare const HistoryPage: z.ZodObject<{
|
|
|
17771
18522
|
metadata: "metadata";
|
|
17772
18523
|
}>;
|
|
17773
18524
|
} & {
|
|
17774
|
-
type: z.ZodLiteral<"
|
|
18525
|
+
type: z.ZodLiteral<"node.completed">;
|
|
17775
18526
|
payload: z.ZodObject<{
|
|
17776
|
-
|
|
17777
|
-
|
|
17778
|
-
|
|
17779
|
-
|
|
17780
|
-
|
|
17781
|
-
|
|
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
|
+
}>;
|
|
17782
18537
|
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
17783
18538
|
gate: z.ZodOptional<z.ZodObject<{
|
|
17784
18539
|
startedAt: z.ZodString;
|
|
17785
18540
|
endedAt: z.ZodString;
|
|
17786
18541
|
}, z.core.$loose>>;
|
|
17787
|
-
firstTokenMs: z.ZodOptional<z.ZodNumber>;
|
|
17788
|
-
meteredUsage: z.ZodOptional<z.ZodObject<{
|
|
17789
|
-
inputTokens: z.ZodNumber;
|
|
17790
|
-
outputTokens: z.ZodNumber;
|
|
17791
|
-
totalTokens: z.ZodNumber;
|
|
17792
|
-
cachedTokens: z.ZodOptional<z.ZodNumber>;
|
|
17793
|
-
costUsd: z.ZodOptional<z.ZodNumber>;
|
|
17794
|
-
}, z.core.$loose>>;
|
|
17795
|
-
invocationId: z.ZodOptional<z.ZodString>;
|
|
17796
|
-
code: z.ZodString;
|
|
17797
|
-
message: z.ZodString;
|
|
17798
|
-
retryable: z.ZodBoolean;
|
|
17799
18542
|
}, z.core.$loose>;
|
|
17800
18543
|
}, z.core.$strip> | z.ZodObject<{
|
|
17801
18544
|
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
@@ -17863,12 +18606,12 @@ export declare const HistoryPage: z.ZodObject<{
|
|
|
17863
18606
|
metadata: "metadata";
|
|
17864
18607
|
}>;
|
|
17865
18608
|
} & {
|
|
17866
|
-
type: z.ZodLiteral<"node.
|
|
18609
|
+
type: z.ZodLiteral<"node.started">;
|
|
17867
18610
|
payload: z.ZodObject<{
|
|
17868
18611
|
path: z.ZodString;
|
|
18612
|
+
kind: z.ZodString;
|
|
18613
|
+
key: z.ZodString;
|
|
17869
18614
|
iterations: z.ZodOptional<z.ZodString>;
|
|
17870
|
-
sessionId: z.ZodString;
|
|
17871
|
-
turnId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17872
18615
|
}, z.core.$loose>;
|
|
17873
18616
|
}, z.core.$strip> | z.ZodObject<{
|
|
17874
18617
|
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
@@ -17936,22 +18679,18 @@ export declare const HistoryPage: z.ZodObject<{
|
|
|
17936
18679
|
metadata: "metadata";
|
|
17937
18680
|
}>;
|
|
17938
18681
|
} & {
|
|
17939
|
-
type: z.ZodLiteral<"
|
|
18682
|
+
type: z.ZodLiteral<"plan.updated">;
|
|
17940
18683
|
payload: z.ZodObject<{
|
|
17941
|
-
|
|
17942
|
-
|
|
17943
|
-
|
|
17944
|
-
|
|
17945
|
-
|
|
17946
|
-
|
|
17947
|
-
|
|
17948
|
-
|
|
17949
|
-
|
|
17950
|
-
|
|
17951
|
-
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
17952
|
-
gate: z.ZodOptional<z.ZodObject<{
|
|
17953
|
-
startedAt: z.ZodString;
|
|
17954
|
-
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>;
|
|
17955
18694
|
}, z.core.$loose>>;
|
|
17956
18695
|
}, z.core.$loose>;
|
|
17957
18696
|
}, z.core.$strip> | z.ZodObject<{
|
|
@@ -18020,12 +18759,10 @@ export declare const HistoryPage: z.ZodObject<{
|
|
|
18020
18759
|
metadata: "metadata";
|
|
18021
18760
|
}>;
|
|
18022
18761
|
} & {
|
|
18023
|
-
type: z.ZodLiteral<"
|
|
18762
|
+
type: z.ZodLiteral<"queue.cancelled">;
|
|
18024
18763
|
payload: z.ZodObject<{
|
|
18025
|
-
|
|
18026
|
-
|
|
18027
|
-
key: z.ZodString;
|
|
18028
|
-
iterations: z.ZodOptional<z.ZodString>;
|
|
18764
|
+
queuedMessageIds: z.ZodArray<z.ZodString>;
|
|
18765
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
18029
18766
|
}, z.core.$loose>;
|
|
18030
18767
|
}, z.core.$strip> | z.ZodObject<{
|
|
18031
18768
|
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
@@ -18093,19 +18830,14 @@ export declare const HistoryPage: z.ZodObject<{
|
|
|
18093
18830
|
metadata: "metadata";
|
|
18094
18831
|
}>;
|
|
18095
18832
|
} & {
|
|
18096
|
-
type: z.ZodLiteral<"
|
|
18833
|
+
type: z.ZodLiteral<"queue.failed">;
|
|
18097
18834
|
payload: z.ZodObject<{
|
|
18098
|
-
|
|
18099
|
-
|
|
18100
|
-
|
|
18101
|
-
|
|
18102
|
-
|
|
18103
|
-
|
|
18104
|
-
pending: "pending";
|
|
18105
|
-
skipped: "skipped";
|
|
18106
|
-
}>;
|
|
18107
|
-
note: z.ZodOptional<z.ZodString>;
|
|
18108
|
-
}, 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>;
|
|
18109
18841
|
}, z.core.$loose>;
|
|
18110
18842
|
}, z.core.$strip> | z.ZodObject<{
|
|
18111
18843
|
schema: z.ZodLiteral<"nylorun.event/2">;
|
|
@@ -21257,6 +21989,152 @@ export declare const HistoryPage: z.ZodObject<{
|
|
|
21257
21989
|
full: "full";
|
|
21258
21990
|
metadata: "metadata";
|
|
21259
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
|
+
}>;
|
|
21260
22138
|
} & {
|
|
21261
22139
|
type: z.ZodLiteral<"queue.taken">;
|
|
21262
22140
|
payload: z.ZodObject<{
|